/* ============================================
   ILAN LENZNER - 3D MEDICAL APPLICATIONS
   Clinical Design System - Dark Med-Tech Edition
   ============================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --navy: #070b14;
  --navy-transparent: rgba(7, 11, 20, 0);
  --navy-light: #0e1526;
  --bg-alt: #0a101d;
  --bg-deep: #04070e;
  --teal: #19b8de;
  --teal-light: #3adcff;
  --cyan: #3adcff;
  --cyan-glow: rgba(58, 220, 255, 0.14);
  --accent: #e8a838;
  --green: #10b981;

  --white: #ffffff;
  --off-white: #eef2f8;
  --gray-50: #f2f2f2;
  --gray-100: #e0e0e0;
  --gray-200: #b9c3d4;
  --gray-400: #8b98ad;
  --gray-500: #a5b1c4;
  --gray-700: #dbe4f0;
  --gray-900: #eef2f8;

  --ink: #eef2f8;
  --ink-soft: #a5b1c4;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 163, 184, 0.16);
  --line-soft: rgba(148, 163, 184, 0.09);
  --glow: rgba(58, 220, 255, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
  --shadow-xl: 0 25px 60px rgba(0,0,0,0.6);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --nav-height: 72px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--ink-soft);
  background: var(--navy);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ---------- LOADING SCREEN ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-pulse {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.5s ease-in-out infinite;
  position: absolute;
  opacity: 0.3;
}

.loader-icon {
  width: 50px; height: 50px;
  color: var(--cyan);
  animation: float 2s ease-in-out infinite;
  position: relative; z-index: 1;
}

.loader-text {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.cursor, .cursor-follower { display: none; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: var(--nav-height);
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(148, 163, 184, 0.12);
}

.nav.hidden { transform: translateY(-100%); }

.nav-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 0 10px var(--glow);
  width: 0%;
  transition: width 0.1s linear;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-logo { display: flex; align-items: center; gap: 0.25rem; }

.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.4s ease;
}
.nav.scrolled .nav-logo-text { color: var(--white); }

.nav-logo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--glow);
}

.nav-links { display: flex; gap: 2rem; }

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}
.nav.scrolled .nav-link { color: rgba(255,255,255,0.7); }
.nav-link:hover { color: var(--cyan); }

.nav-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-menu-btn span { width: 22px; height: 2px; background: var(--white); transition: all 0.3s ease; }
.nav.scrolled .nav-menu-btn span { background: var(--white); }
.nav-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7, 11, 20, 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem; font-weight: 600;
  color: var(--white);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
.mobile-menu.open .mobile-menu-link { opacity: 1; transform: translateY(0); }
.mobile-menu-link:hover { color: var(--cyan); }
.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(25, 184, 222, 0.08) 0%, transparent 60%),
    var(--navy);
  overflow: hidden;
}

/* Blueprint grid overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58, 220, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 220, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
  z-index: 1;
}

#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.section-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Ensure content sits above section canvases */
.stats .container,
.section-dark .container,
.section-work-intro .container,
.footer .container {
  position: relative;
  z-index: 1;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(0,0,0,0.3) 70%);
  z-index: 2;
}

/* Scanning line */
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58, 220, 255, 0.12), transparent);
  z-index: 2;
  animation: scanDown 5s ease-in-out infinite;
}

@keyframes scanDown {
  0%   { top: 0%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  padding: 0 2rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2rem;
  opacity: 0;
}

.hero-label-line {
  width: 32px; height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-title-line { display: block; overflow: hidden; }

.hero-title-word {
  display: inline-block;
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--white);
  transform: translateY(100%);
  letter-spacing: -0.03em;
}

.hero-title-line:first-child .hero-title-word {
  background: linear-gradient(135deg, var(--white) 30%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--gray-200);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  opacity: 0;
}

.hero-cta-group {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--teal));
  color: #04222e;
  box-shadow: 0 4px 20px -4px var(--glow);
}
.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 30px -6px rgba(58, 220, 255, 0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--white);
  background: rgba(58, 220, 255, 0.08);
}

.btn-large { padding: 1rem 2.5rem; font-size: 1rem; }

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
}
.hero-scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

/* Hero floating elements */
.hero-float {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  opacity: 0.05;
}
.hero-float-1 { width: 500px; height: 500px; background: rgba(58,220,255,0.5); top: -150px; right: -150px; }
.hero-float-2 { width: 300px; height: 300px; background: rgba(58,220,255,0.4); bottom: -80px; left: -80px; }
.hero-float-3 { width: 200px; height: 200px; background: rgba(58,220,255,0.3); top: 25%; right: 10%; }

/* ---------- STATS RIBBON ---------- */
.stats {
  background: var(--navy);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: flex;
  align-items: center; justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1; min-width: 140px;
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.stat-item:hover {
  border-color: rgba(58, 220, 255, 0.35);
  box-shadow: 0 0 30px -12px var(--glow);
}

.stat-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: var(--white);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-400);
  letter-spacing: 0.02em;
}

.stat-divider { display: none; }

@media (max-width: 768px) {
  .stats-grid { gap: 1rem; }
  .stat-item { min-width: 120px; }
}

/* ---------- SECTION COMMON ---------- */
.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}
.section.section-3d-overflow {
  overflow: visible;
}

/* ---------- SOFT SECTION BOUNDARIES ---------- */
/* Every themed section fades to the shared base color at its top and
   bottom edges, so dots / ribbon effects dissolve into each other
   instead of meeting at a hard line. Sits above the effect canvases
   (painted after them) but below .container content (z-index: 1). */
.section-blue-dots::after,
.section-showcase::after,
.section-dark::after,
.section-work-intro::after,
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(to bottom, var(--navy) 0%, var(--navy-transparent) clamp(110px, 16vw, 220px)),
    linear-gradient(to top, var(--navy) 0%, var(--navy-transparent) clamp(110px, 16vw, 220px));
}

/* ---------- FLOATING GRADIENT ORBS ---------- */
.bg-orbs {
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(25, 184, 222, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(58, 220, 255, 0.05) 0%, transparent 55%);
}

.bg-orbs::after {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 184, 222, 0.08) 0%, rgba(25, 184, 222, 0.03) 35%, transparent 65%);
  top: -20%; right: -15%;
  animation: orbFloat1 18s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.bg-orbs::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 220, 255, 0.07) 0%, rgba(58, 220, 255, 0.025) 35%, transparent 65%);
  bottom: -15%; left: -12%;
  animation: orbFloat2 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Alternate orb position for reversed sections */
.bg-orbs-alt {
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(25, 184, 222, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(58, 220, 255, 0.05) 0%, transparent 55%);
}
.bg-orbs-alt::after {
  left: -15%; right: auto;
  top: auto; bottom: -20%;
  animation: orbFloat2 20s ease-in-out infinite;
}
.bg-orbs-alt::before {
  right: -12%; left: auto;
  bottom: auto; top: -15%;
  animation: orbFloat1 24s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-40px, 50px) scale(1.08); }
  50% { transform: translate(10px, 20px) scale(0.96); }
  75% { transform: translate(30px, -30px) scale(1.03); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(35px, -40px) scale(0.95); }
  50% { transform: translate(-20px, 30px) scale(1.06); }
  75% { transform: translate(-10px, -15px) scale(0.98); }
}

/* Keep content above orbs */
.bg-orbs > .container {
  position: relative;
  z-index: 1;
}

/* ---------- BLUE DOT FIELD SECTIONS ---------- */
.section-blue-dots {
  background: var(--bg-alt);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(58, 220, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(25, 184, 222, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(58, 220, 255, 0.03) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.section-blue-dots > .container {
  position: relative;
  z-index: 1;
}

/* Glassmorphic cards inside blue-dot sections */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* 3D tilt hover shared transition */
.section-blue-dots .case-study-content,
.section-blue-dots .origin-story,
.innovation-top,
.showcase-header,
.process-step {
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.section-blue-dots .case-study-content:hover,
.section-blue-dots .origin-story:hover,
.innovation-top:hover,
.showcase-header:hover,
.process-step:hover {
  box-shadow: 0 16px 60px rgba(0,0,0,0.55), 0 0 50px -20px var(--glow);
}

.section-blue-dots .case-study-content {
  position: relative;
  overflow: visible;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

/* 3D model canvas inside case study cards */
.card-3d-canvas {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 130%;
  pointer-events: none;
  z-index: 1;
}

.section-blue-dots .case-study-images {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.section-blue-dots .case-study-images .gallery-item img {
  border-radius: var(--radius-md);
}

.section-blue-dots .origin-story {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}


.section-blue-dots .innovation-features-row {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.section-blue-dots .section-process .section-header {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  padding: 2rem 3rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.label-medical {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.08);
  border: 1px solid rgba(58, 220, 255, 0.22);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-overline {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.08);
  border: 1px solid rgba(58, 220, 255, 0.22);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section-title-large {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 1rem;
}

/* ---------- DOT GRID BACKGROUND ---------- */
.bg-dots {
  background-image: radial-gradient(circle, rgba(58, 220, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- ORIGIN STORY ---------- */
.section-origin {
  /* background inherited from section-blue-dots */
}

.origin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 968px) {
  .origin-layout { grid-template-columns: 1fr; }
}

.section-header { margin-bottom: 3rem; }

.origin-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.origin-text-large {
  font-size: 1.2rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ---------- CLINICAL IMAGE FRAME ---------- */
.clinical-frame {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.clinical-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.clinical-frame img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- IMAGE GALLERY GRID ---------- */
.image-gallery {
  display: grid;
  gap: 1rem;
}

.image-gallery-2 {
  grid-template-columns: 1fr 1fr;
}

.image-gallery-3 {
  grid-template-columns: repeat(3, 1fr);
}

.image-gallery-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .image-gallery-2,
  .image-gallery-3 {
    grid-template-columns: 1fr;
  }
  .image-gallery-4 {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  background: var(--panel);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45), 0 0 24px -10px var(--glow);
  border-color: rgba(58, 220, 255, 0.35);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-blue-dots .gallery-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148, 163, 184, 0.14);
}

.section-blue-dots .case-study-tag {
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.08);
}

.section-blue-dots .case-study-title {
  color: var(--ink);
}

.section-blue-dots .case-study-desc {
  color: var(--ink-soft);
}

.section-blue-dots .label-medical,
.section-blue-dots .section-overline {
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.08);
}

.section-blue-dots .section-title {
  color: var(--ink);
}

.section-blue-dots .section-subtitle {
  color: var(--ink-soft);
}

/* Dark theme gallery items */
.section-dark .gallery-item {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.06);
}

/* ---------- CASE STUDY SECTION ---------- */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.case-study.reversed {
  grid-template-columns: 1.1fr 1fr;
}
.case-study.reversed .case-study-content { order: 2; }
.case-study.reversed .case-study-images { order: 1; }

@media (max-width: 968px) {
  .case-study,
  .case-study.reversed {
    grid-template-columns: 1fr;
  }
  .case-study.reversed .case-study-content { order: 1; }
  .case-study.reversed .case-study-images { order: 2; }
  .case-study-images-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .case-study-images-3 { grid-template-columns: repeat(2, 1fr); }
  .case-study-images-4 { grid-template-columns: repeat(2, 1fr); }
}

.case-study-content {}

.case-study-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.08);
  border: 1px solid rgba(58, 220, 255, 0.22);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.case-study-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.case-study-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.case-study-images {
  display: grid;
  gap: 0.5rem;
}

.case-study-images-2 { grid-template-columns: 1fr 1fr; }
.case-study-images-3 { grid-template-columns: repeat(3, 1fr); }
.case-study-images-4 { grid-template-columns: repeat(4, 1fr); }

.case-study-images .gallery-item img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---------- SECTION DARK ---------- */
.section-dark {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(58, 220, 255, 0.06) 0%, transparent 55%),
    var(--bg-deep);
  position: relative;
  overflow: hidden;
}

/* Blueprint grid on dark sections */
.section-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58, 220, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 220, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.section-dark .case-study-tag {
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.1);
}
.section-dark .case-study-title { color: var(--white); }
.section-dark .case-study-desc { color: var(--gray-200); }
.section-dark .label-medical,
.section-dark .section-overline {
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.1);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: var(--gray-200); }

.section-dark .gallery-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

/* ---------- SECTION LIGHT ALT ---------- */
.section-light-alt {
  /* background inherited from section-blue-dots */
}

/* ---------- WORK INTRO ---------- */
.section-work-intro {
  background:
    radial-gradient(ellipse 80% 70% at 50% 30%, rgba(58, 220, 255, 0.07) 0%, transparent 60%),
    var(--bg-deep);
  text-align: center;
  padding: clamp(6rem, 12vw, 9rem) 0;
  position: relative;
  overflow: hidden;
}

.section-work-intro::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(58, 220, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.section-work-intro .section-overline {
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.1);
}
.section-work-intro .section-title { color: var(--white); }
.section-work-intro .section-subtitle {
  color: var(--gray-200);
  margin: 1rem auto 0;
}

.work-intro-content { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* ---------- DIVIDER ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(148, 163, 184, 0.14) 50%, transparent 95%);
  border: none;
  margin: 0;
}

/* ---------- INNOVATION SECTION ---------- */
.section-innovation {
  /* background inherited from section-blue-dots */
  overflow: hidden;
}

.innovation-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}

@media (max-width: 768px) {
  .innovation-top { grid-template-columns: 1fr; }
}

.innovation-header {
  max-width: 600px;
}

.innovation-hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  display: block;
}

.innovation-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-top: 1rem;
}

.innovation-desc strong { color: var(--gray-700); }

.innovation-features-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 768px) {
  .innovation-features-row { grid-template-columns: 1fr; }
}

.innovation-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: all 0.3s ease;
}

.innovation-feature:hover {
  background: rgba(58, 220, 255, 0.06);
  border-color: rgba(58, 220, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.innovation-feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan-glow);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  color: var(--cyan);
}

.innovation-feature-icon svg {
  width: 22px; height: 22px;
}

.innovation-feature:hover .innovation-feature-icon {
  background: rgba(58, 220, 255, 0.2);
  color: var(--cyan);
}

.innovation-feature strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.innovation-feature span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- SCANNER GALLERY ---------- */
.scanner-gallery {
  max-width: 900px;
  margin: 0 auto;
}

.scanner-videos {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1rem;
  margin-bottom: 1rem;
  height: 420px;
}

.scanner-video-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  overflow: hidden;
}

.scanner-video-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  display: block;
  background: #000;
}

.scanner-video-portrait video {
  object-fit: cover;
}

@media (max-width: 768px) {
  .scanner-videos { height: 320px; }
}
@media (max-width: 600px) {
  .scanner-videos { grid-template-columns: 1fr; height: auto; }
  .scanner-video-card { max-height: 350px; }
}

.scanner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.scanner-grid .gallery-item {
  aspect-ratio: 1;
}

.scanner-grid .gallery-item img {
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 600px) {
  .scanner-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- SHOWCASE SECTION (Specialized Splints) ---------- */
.section-showcase {
  background: var(--bg-alt);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(58, 220, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(25, 184, 222, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(58, 220, 255, 0.03) 0%, transparent 50%);
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.dot-field-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: auto;
  cursor: default;
}

.showcase-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.section-showcase .section-overline {
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.08);
}
.section-showcase .section-title { color: var(--ink); }
.section-showcase .section-subtitle {
  color: var(--ink-soft);
  margin: 1rem auto 0;
}

.showcase-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

@media (max-width: 768px) {
  .showcase-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .showcase-gallery { grid-template-columns: 1fr; }
}

.showcase-gallery .gallery-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.showcase-gallery .gallery-item img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.showcase-gallery .gallery-item:hover img {
  transform: scale(1.03);
}

.showcase-hero-image {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 60px -25px var(--glow);
}

.showcase-hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* ---------- PROCESS SECTION ---------- */
.section-process {
  /* background inherited from section-blue-dots */
}

.section-process .section-header { text-align: center; margin-bottom: 3rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

.process-step {
  text-align: center;
  padding: 2rem 1.25rem;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: all 0.3s ease;
}

.process-step:hover {
  background: rgba(58, 220, 255, 0.05);
  border-color: rgba(58, 220, 255, 0.3);
  transform: translateY(-3px);
}

.process-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
  color: var(--cyan);
  opacity: 0.45;
}

.process-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.process-content p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.process-connector { display: none; }

/* ---------- FOOTER ---------- */
.footer {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(58, 220, 255, 0.07) 0%, transparent 60%),
    var(--bg-deep);
  padding: clamp(5rem, 10vw, 8rem) 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.footer .section-overline {
  color: var(--cyan);
  background: rgba(58, 220, 255, 0.1);
}

.footer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.footer-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-200);
  max-width: 460px;
  margin: 0 auto 2rem;
}

.footer-content { margin-bottom: 4rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-copy, .footer-credit {
  font-size: 0.75rem;
  color: var(--gray-400);
}

@media (max-width: 580px) {
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ---------- KEYFRAME ANIMATIONS ---------- */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  33% { transform: translateY(-12px); }
  66% { transform: translateY(6px); }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- SCROLL ANIMATIONS ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
}

/* ---------- SELECTION & SCROLLBAR ---------- */
::selection { background: var(--cyan); color: #04222e; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: #26344d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 480px) {
  .hero-subtitle br { display: none; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.nav-logo { margin-right: auto; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin-left: 1.25rem;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.theme-toggle:hover {
  color: var(--cyan);
  border-color: rgba(58, 220, 255, 0.5);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: inline; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: inline; }

/* ============================================
   LIGHT THEME  (opt-in, dark stays default)
   ============================================ */
html[data-theme="light"] {
  --navy: #eaf0f7;
  --navy-transparent: rgba(234, 240, 247, 0);
  --navy-light: #dfe7f1;
  --bg-alt: #f6f9fc;
  --bg-deep: #dde5f0;

  --teal: #0e86b8;
  --teal-light: #17a9d6;
  --cyan: #0e86b8;
  --cyan-glow: rgba(14, 134, 184, 0.12);
  --glow: rgba(14, 134, 184, 0.24);

  --ink: #0b1220;
  --ink-soft: #46586f;
  --off-white: #0b1220;

  --gray-200: #35455c;
  --gray-400: #5a6980;
  --gray-500: #46586f;
  --gray-700: #1b2740;
  --gray-900: #0b1220;

  --panel: rgba(255, 255, 255, 0.6);
  --panel-strong: rgba(255, 255, 255, 0.75);
  --line: rgba(12, 19, 34, 0.12);
  --line-soft: rgba(12, 19, 34, 0.07);
}

html[data-theme="light"] body { color: var(--ink-soft); }

/* Nav */
html[data-theme="light"] .nav.scrolled {
  background: rgba(244, 247, 251, 0.85);
  box-shadow: 0 1px 0 rgba(12, 19, 34, 0.08);
}
html[data-theme="light"] .nav-logo-text,
html[data-theme="light"] .nav.scrolled .nav-logo-text { color: var(--ink); }
html[data-theme="light"] .nav-link,
html[data-theme="light"] .nav.scrolled .nav-link { color: rgba(12, 19, 34, 0.66); }
html[data-theme="light"] .nav-link:hover { color: var(--cyan); }
html[data-theme="light"] .nav-menu-btn span,
html[data-theme="light"] .nav.scrolled .nav-menu-btn span { background: var(--ink); }
html[data-theme="light"] .theme-toggle {
  color: var(--ink-soft);
  border-color: rgba(12, 19, 34, 0.14);
  background: rgba(12, 19, 34, 0.03);
}
html[data-theme="light"] .theme-toggle:hover { color: var(--cyan); border-color: rgba(14, 134, 184, 0.5); }
html[data-theme="light"] .mobile-menu { background: rgba(244, 247, 251, 0.97); }
html[data-theme="light"] .mobile-menu-link { color: var(--ink); }

/* Hero */
html[data-theme="light"] .hero-title-word { color: var(--ink); }
html[data-theme="light"] .hero-title-line:first-child .hero-title-word {
  background: linear-gradient(135deg, var(--ink) 30%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .hero-subtitle { color: var(--ink-soft); }
html[data-theme="light"] .btn-ghost { color: var(--ink); border-color: rgba(12, 19, 34, 0.2); }
html[data-theme="light"] .btn-ghost:hover { color: var(--ink); background: rgba(14, 134, 184, 0.08); border-color: var(--cyan); }

/* Stats */
html[data-theme="light"] .stat-number { color: var(--ink); }

/* Frosted glass panels -> light frosted cards */
html[data-theme="light"] .glass-card,
html[data-theme="light"] .section-blue-dots .case-study-content,
html[data-theme="light"] .section-blue-dots .case-study-images,
html[data-theme="light"] .section-blue-dots .origin-story,
html[data-theme="light"] .section-blue-dots .innovation-features-row,
html[data-theme="light"] .section-blue-dots .section-process .section-header,
html[data-theme="light"] .innovation-top,
html[data-theme="light"] .scanner-video-card,
html[data-theme="light"] .scanner-grid,
html[data-theme="light"] .showcase-header,
html[data-theme="light"] .showcase-hero-image,
html[data-theme="light"] .process-step,
html[data-theme="light"] .stat-item {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(12, 19, 34, 0.08);
}

html[data-theme="light"] .innovation-feature {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(12, 19, 34, 0.07);
}
html[data-theme="light"] .innovation-feature:hover {
  background: rgba(14, 134, 184, 0.06);
  border-color: rgba(14, 134, 184, 0.28);
}
html[data-theme="light"] .process-step:hover {
  background: rgba(14, 134, 184, 0.05);
  border-color: rgba(14, 134, 184, 0.28);
}
html[data-theme="light"] .stat-item:hover {
  border-color: rgba(14, 134, 184, 0.35);
}

/* Gallery tiles */
html[data-theme="light"] .gallery-item,
html[data-theme="light"] .section-blue-dots .gallery-item,
html[data-theme="light"] .section-dark .gallery-item,
html[data-theme="light"] .showcase-gallery .gallery-item {
  background: #ffffff;
  border-color: rgba(12, 19, 34, 0.08);
}

/* "Dark" feature sections become deep cool-grey light bands */
html[data-theme="light"] .section-dark .section-title,
html[data-theme="light"] .section-dark .case-study-title,
html[data-theme="light"] .section-work-intro .section-title,
html[data-theme="light"] .footer-title { color: var(--ink); }
html[data-theme="light"] .section-dark .case-study-desc,
html[data-theme="light"] .section-dark .section-subtitle,
html[data-theme="light"] .section-work-intro .section-subtitle,
html[data-theme="light"] .footer-subtitle { color: var(--ink-soft); }

/* Scrollbar */
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #b9c4d4; }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: var(--teal); }
