/* ============================================
   AUTOSPHERE — style.css
   Linking Intelligent Systems Worldwide
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── Palette: "Futuristic Evolution" ───────────────────────────
     Design Philosophy: Tron Legacy meets biotech startup.
     Deep navy depth + electric cyan intelligence + mint growth.
     Color is felt as much as seen. Professional but unmistakably futuristic.
     • Navy    #1A2350 — Trust, depth, the foundation (anchor)
     • Cyan    #00D4FF — Futuristic — electric, AI interfaces, sci-fi tech energy
     • Mint    #00E5A0 — Evolution — bioluminescent, growth, organic intelligence
     • Midnight #0D0F1E — Dark depth — hero/footer/dark section backgrounds
     • Surface  #F4FDFF — Near-white with barely-there cyan tint
     • Muted   #8B9BB4 — Secondary text, muted blue-gray
     ────────────────────────────────────────────────────────────── */
  --navy:        #1A2350;   /* anchor — trust & continuity */
  --cyan:        #00D4FF;   /* futuristic — electric cyan */
  --mint:        #00E5A0;   /* evolution — bioluminescent mint */
  --midnight:    #0D0F1E;   /* deep dark — hero/footer backgrounds */
  --surface:     #F4FDFF;   /* near-white with cyan tint */
  --muted:       #8B9BB4;   /* secondary text, muted blue-gray */

  /* legacy aliases kept for compatibility */
  --light:       #F4FDFF;   /* remapped → surface */
  --white:       #ffffff;
  --text:        #16192B;   /* near-black, slight warmth */
  --border:      rgba(0,212,255,0.10);
  --shadow-sm:   0 2px 12px rgba(13,15,30,0.08);
  --shadow-md:   0 8px 32px rgba(13,15,30,0.14);
  --shadow-lg:   0 20px 60px rgba(13,15,30,0.20);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { font-weight: 400; }

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

/* ── Utility ── */
.container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.section-title {
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 400;
  max-width: 580px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 2rem;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--midnight);
  box-shadow: 0 4px 20px rgba(0,212,255,0.28);
}

.btn-primary:hover {
  background: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,229,160,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(0,212,255,0.50);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.8);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--cyan);
  color: var(--midnight);
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}

.btn-navy:hover {
  background: var(--mint);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,229,160,0.38);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   HEADER / NAV
   ============================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.4rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

#header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 0;
}

#header.scrolled .nav-link {
  color: var(--navy);
}

#header.scrolled .nav-link:hover {
  color: var(--cyan);
}

/* Active nav link — cyan underline dot indicator */
.nav-link.active {
  color: var(--cyan);
}

.nav-link.active::after {
  width: 100%;
  background: var(--cyan);
}

#header.scrolled .btn-nav {
  background: var(--cyan);
  color: var(--midnight);
  border-color: transparent;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}

#header.scrolled .nav-logo img {
  filter: none;
}

.nav-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  transition: color 0.4s ease;
}

#header.scrolled .nav-wordmark {
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  list-style: none;
}

.nav-link {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition);
}

.nav-link:hover::after { width: 100%; }

.btn-nav {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.6rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.7);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-nav:hover {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#header.scrolled .hamburger span {
  background: var(--navy);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay & drawer — hidden on desktop */
.mobile-nav-overlay,
.mobile-nav-drawer {
  display: none;
}

/* ============================================
   HERO
   ============================================ */
#hero {
  min-height: 100vh;
  background-image: url('dor/dor-3.jpeg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Dark overlay — --midnight at 65% opacity */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,15,30,0.7), rgba(26,35,80,0.5));
  pointer-events: none;
  z-index: 0;
}

/* Neural network canvas — full bleed, on top of photo + overlay */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

/* Subtle vignette on top of canvas */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(13,15,30,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

/* Make container sit above canvas */
#hero .container {
  position: relative;
  z-index: 2;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,212,255,0.9);
  margin-bottom: 1.8rem;
}

.hero-label::before, .hero-label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(0,212,255,0.35);
}

.hero-title {
  color: var(--white);
  margin-bottom: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-title span {
  font-weight: 700;
  color: var(--white);
}

/* "Your Business" — explicit Syne 800, no decorative override */
.hero-title-biz {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--white);
}

.hero-tagline {
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(235,240,248,0.65);
  margin-bottom: 1.8rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(235,240,248,0.8);
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 2.8rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  opacity: 0.5;
}

.scroll-indicator span {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1px solid rgba(0,212,255,0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  width: 3px;
  height: 6px;
  background: var(--cyan);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-dot 1.8s ease infinite;
}

@keyframes scroll-dot {
  0%   { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 18px; }
}

/* ============================================
   SERVICES
   ============================================ */
/* Wide-screen grid caps */
@media (min-width: 1400px) {
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

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

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

#services {
  padding: 7rem 0;
  background: linear-gradient(135deg, #0D0F1E 0%, #1A2350 40%, #0D2B3E 70%, #0D0F1E 100%);
  position: relative;
  overflow: hidden;
}

/* Dot grid overlay */
#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,212,255,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Glow spot — off-center top-right */
#services::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
  z-index: 0;
}

/* Section header text — white on dark */
#services .section-label {
  color: rgba(235,240,248,0.55);
}

#services .section-title {
  color: var(--white);
  text-align: center;
}

#services .section-subtitle {
  color: rgba(255,255,255,0.70);
  text-align: center;
}

#services .section-header {
  text-align: center;
}

.services-header {
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
  z-index: 1;
  backdrop-filter: blur(6px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--cyan);
  transition: height var(--transition);
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 40px rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.40);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(0,212,255,0.10);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: background var(--transition);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: rgba(0,212,255,0.18);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--transition);
}

.service-card:hover .service-icon svg {
  stroke: var(--cyan);
}

.service-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.service-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Service card image */
.service-card-img {
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2.2rem -1.8rem 1.4rem;
  width: calc(100% + 3.6rem);
  position: relative;
  z-index: 1;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  opacity: 0.92;
}

.service-card:hover .service-card-img img {
  transform: scale(1.06);
  opacity: 1;
}

.service-card-body {
  position: relative;
  z-index: 1;
}

/* ============================================
   WHY AUTOSPHERE
   ============================================ */
#why {
  padding: 7rem 0;
  background-image: url('dor/dor-10.jpeg');
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
}

/* Dark overlay — 65% opacity */
#why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 30, 0.65);
  pointer-events: none;
  z-index: 0;
}

#why .container {
  position: relative;
  z-index: 1;
}

.why-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.why-header .section-label {
  color: rgba(235,240,248,0.55);
}

.why-header .section-title {
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.why-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(0,229,160,0.20);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.2rem;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(0,229,160,0.40);
  transform: translateY(-4px);
}

.why-number {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: rgba(0,229,160,0.18);
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}

.why-icon {
  width: 60px;
  height: 60px;
  background: rgba(0,229,160,0.08);
  border: 1px solid rgba(0,229,160,0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.4rem;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--mint);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.why-card p {
  color: rgba(235,240,248,0.7);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Why card top image strip */
.why-card-img-wrap {
  width: calc(100% + 4.4rem);
  height: 130px;
  margin: -2.8rem -2.2rem 1.6rem;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}

.why-card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.why-card:hover .why-card-bg-img {
  opacity: 0.6;
  transform: scale(1.05);
}

/* Gradient overlay on why card image */
.why-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, rgba(13,15,30,0.88));
  pointer-events: none;
}

/* ============================================
   ABOUT
   ============================================ */
#about {
  padding: 7rem 0;
  background-image: url('dor/dor-1.jpeg');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Dark overlay — 70% opacity */
#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 30, 0.70);
  pointer-events: none;
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 1;
}

.about-inner {
  display: block;
  max-width: 760px;
}

.about-content .section-subtitle {
  max-width: none;
  margin-bottom: 1.6rem;
}

/* Text colors — dark background */
#about .section-label {
  color: rgba(235, 240, 248, 0.55);
}

#about .section-title {
  color: var(--white);
}

#about .section-subtitle {
  color: rgba(235, 240, 248, 0.75);
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--cyan);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: rgba(235, 240, 248, 0.65);
  letter-spacing: 0.03em;
  text-transform: none;
  font-weight: 500;
}

/* ============================================
   STATS / NUMBERS
   ============================================ */
#stats {
  padding: 5rem 0;
  background: var(--midnight);
  position: relative;
  overflow: hidden;
}

#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2.5rem 1.5rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(0,229,160,0.28);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
}

.stat-number .stat-count {
  display: inline-block;
}

.stat-number .stat-suffix {
  font-size: 0.6em;
  font-weight: 600;
  opacity: 0.85;
}

.stat-number.stat-special {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.stat-divider {
  width: 32px;
  height: 1px;
  background: rgba(0,229,160,0.55);
  margin: 0 auto 0.8rem;
}

#stats .stat-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(235,240,248,0.75);
  font-weight: 500;
  margin: 0;
}

/* ============================================
   TEAM
   ============================================ */
#team {
  padding: 7rem 0;
  background: linear-gradient(180deg, #0D0F1E 0%, #1A2350 50%, #0D0F1E 100%);
  position: relative;
  overflow: hidden;
}

#team::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,229,160,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all team content sits above the dot pattern */
#team .container {
  position: relative;
  z-index: 1;
}

/* Team header text — white on dark background */
#team .section-label {
  color: rgba(235,240,248,0.55);
}

#team .section-title {
  color: var(--white);
}

#team .section-subtitle {
  color: rgba(235,240,248,0.7);
}

.team-header {
  margin-bottom: 4rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.team-card {
  background: linear-gradient(145deg, #0D0F1E 0%, #1A2350 100%);
  border: 1px solid rgba(0,229,160,0.16);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
  position: relative;
  z-index: 1;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,212,255,0.15);
  border-color: rgba(0,229,160,0.38);
  background: linear-gradient(145deg, #0D0F1E 0%, #1E2B5A 100%);
}

.team-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  overflow: hidden;
  border: 2px solid rgba(0,229,160,0.25);
  transition: border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.team-card:hover .team-avatar-wrap {
  border-color: rgba(0,212,255,0.60);
  transform: scale(1.04);
}

.team-avatar-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.team-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.team-role {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.team-desc {
  font-size: 0.83rem;
  color: rgba(235,240,248,0.6);
  line-height: 1.65;
  font-weight: 400;
}

/* ============================================
   CONTACT
   ============================================ */
#contact {
  padding: 7rem 0;
  background-image: url('dor/dor-9.jpeg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13,15,30,0.75);
  z-index: 0;
}

#contact .container {
  position: relative;
  z-index: 1;
}

/* Contact section — text on dark background */
#contact .section-label {
  color: rgba(235,240,248,0.55);
}

#contact .section-title {
  color: var(--white);
}

#contact .section-subtitle {
  color: rgba(235,240,248,0.75);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info .section-subtitle {
  margin-bottom: 2.5rem;
  max-width: none;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
  color: rgba(235,240,248,0.80);
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: rgba(0,212,255,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--cyan);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item a {
  color: var(--cyan);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-item a:hover { color: var(--white); }

/* Form */
.contact-form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,212,255,0.22);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.4rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.30);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(8px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: var(--radius);
  padding: 0.85rem 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.38);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.field-hint {
  color: rgba(255,255,255,0.40);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--cyan);
  color: var(--midnight);
  border: none;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,229,160,0.38);
  background: var(--mint);
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--white);
}

.form-success svg {
  width: 48px;
  height: 48px;
  stroke: #2ecc71;
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 1rem;
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--midnight);
  padding: 4rem 0 2rem;
  border-top: 2px solid rgba(0,229,160,0.30);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.8rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
}

.footer-tagline {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(235,240,248,0.45);
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.footer-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(235,240,248,0.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--cyan); }

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.footer-bottom {
  font-size: 0.78rem;
  color: rgba(235,240,248,0.35);
  letter-spacing: 0.08em;
}

/* Social media icon buttons */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(235,240,248,0.45);
  white-space: nowrap;
  margin-right: 0.25rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  background: transparent;
  transition: var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}

.social-icon-btn svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
}

.social-icon-btn:hover {
  background: var(--cyan);
  color: var(--midnight);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,212,255,0.30);
}

/* For fill-based icons (X, TikTok), flip fill on hover */
.social-icon-btn:hover svg[style*="stroke:none"] {
  fill: var(--midnight);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .stat-item:nth-child(3)::before {
    display: none;
  }

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

  .contact-inner {
    gap: 3rem;
  }
}

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

  .hamburger {
    display: flex;
  }

  /* ── Mobile nav backdrop ── */
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgba(13, 15, 30, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Mobile nav drawer (slides from right) ── */
  .mobile-nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 280px;
    z-index: 1999;
    background: linear-gradient(160deg, #0D0F1E 0%, #1A2350 100%);
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-nav-drawer.open {
    transform: translateX(0);
  }

  /* ── Drawer header ── */
  .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem 0.85rem;
    border-bottom: 1px solid rgba(0,212,255,0.15);
    flex-shrink: 0;
  }
  .drawer-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }
  .drawer-logo img {
    height: auto;
    width: auto;
    max-width: 100px;
    max-height: 28px;
    filter: brightness(0) invert(1);
  }
  .drawer-logo span {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--white);
    text-transform: uppercase;
  }

  /* ── Drawer close ✕ button ── */
  .drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
  }
  .drawer-close span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    transition: background 0.2s ease;
  }
  .drawer-close span:nth-child(1) { transform: rotate(45deg); }
  .drawer-close span:nth-child(2) { transform: rotate(-45deg); }
  .drawer-close:hover span { background: rgba(255, 255, 255, 0.7); }

  /* ── Drawer nav links ── */
  .drawer-nav {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: auto;
    padding: 0.5rem 0;
  }
  .drawer-nav a {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    padding: 14px 1.5rem;
    border-bottom: 1px solid rgba(0,212,255,0.10);
    transition: background 0.2s ease;
  }
  .drawer-nav a:first-child {
    border-top: 1px solid rgba(0,212,255,0.10);
  }
  .drawer-nav a:hover,
  .drawer-nav a:focus-visible {
    background: rgba(0,212,255,0.06);
    outline: none;
  }

  /* ── Drawer footer CTA ── */
  .drawer-footer {
    margin-top: auto;
    padding: 1.5rem 2rem 2.5rem;
    flex-shrink: 0;
  }
  .drawer-cta {
    display: block;
    width: 100%;
    padding: 12px 24px;
    text-align: center;
    background: var(--cyan);
    color: var(--midnight);
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  }
  .drawer-cta:hover {
    background: var(--mint);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,229,160,0.30);
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .about-photo {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-item + .stat-item::before {
    display: none;
  }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(0,212,255,0.15);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
  }
}

/* ============================================
   ACCESSIBILITY — WCAG 2.1 AA
   ============================================ */

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 99999;
  padding: 0.6rem 1.4rem;
  background: var(--navy);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-decoration: underline;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Global focus-visible styles (keyboard navigation) */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* High-contrast focus for dark backgrounds */
#header *:focus-visible,
#hero *:focus-visible,
#why *:focus-visible,
#footer *:focus-visible,
.mobile-nav-drawer *:focus-visible {
  outline-color: #ffffff;
}

/* Form field hint text */
.field-hint {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: -0.25rem;
}

/* Required field star */
.required-star {
  color: #c0392b;
  margin-left: 2px;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  display: none; /* shown via JS if no consent stored */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: rgba(14, 21, 48, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,212,255,0.15);
  padding: 1rem 2rem;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  color: rgba(235,240,248,0.85);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.cookie-banner p a {
  color: var(--cyan);
  text-decoration: underline;
}

.cookie-banner p a:hover {
  color: var(--white);
}

.cookie-dismiss {
  padding: 0.55rem 1.6rem;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.cookie-dismiss:hover {
  background: var(--surface);
  transform: translateY(-1px);
}

/* ============================================
   LEGAL PAGES (privacy.html, terms.html)
   ============================================ */
.legal-page {
  padding-top: 7rem; /* clear fixed header */
  padding-bottom: 6rem;
  background: var(--white);
  min-height: 100vh;
}

.legal-page .legal-hero {
  background: linear-gradient(135deg, var(--midnight) 0%, #0D1535 35%, var(--navy) 75%, #1A2350 100%);
  padding: 5rem 0 4rem;
  margin-bottom: 4rem;
}

.legal-page .legal-hero .section-label {
  color: rgba(235,240,248,0.55);
}

.legal-page .legal-hero h1 {
  color: var(--white);
  font-weight: 200;
  margin-bottom: 0.8rem;
}

.legal-page .legal-hero .legal-date {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(235,240,248,0.5);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--cyan);
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0,212,255,0.15);
  letter-spacing: 0.08em;
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--navy);
  margin: 1.8rem 0 0.5rem;
  letter-spacing: 0.06em;
}

.legal-content p {
  color: #3a4560;
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0.5rem 0 1rem 1.4rem;
  color: #3a4560;
  font-size: 0.97rem;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 0.3rem;
}

.legal-content a {
  color: var(--cyan);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--navy);
}

.legal-content .legal-notice {
  background: var(--surface);
  border-left: 3px solid rgba(0,212,255,0.50);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.93rem;
  color: var(--navy);
}

/* ============================================
   REDUCED MOTION — Disable animations
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveal elements appear immediately */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  /* Hide canvas animation for reduced motion */
  #heroCanvas {
    display: none !important;
  }

  .service-card-img img,
  .why-card-bg-img,
  .about-photo,
  .team-avatar-wrap {
    transition: none !important;
    transform: none !important;
  }
}

/* ============================================
   ACCESSIBILITY WIDGET
   ============================================ */

/* ── Floating trigger button ── */
.a11y-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
  transition: background 0.2s, transform 0.18s, bottom 0.3s ease;
  padding: 0;
}
.a11y-btn:hover {
  background: #1e2b5a;
  transform: scale(1.08);
}
.a11y-btn:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.a11y-btn.cookie-raised {
  bottom: 90px;
}

/* ── Panel ── */
.a11y-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 292px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.18);
  z-index: 9999;
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s cubic-bezier(.4,0,.2,1), opacity 0.22s;
}
.a11y-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.a11y-panel.cookie-raised {
  bottom: 156px;
}

/* ── Panel header ── */
.a11y-panel-header {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Panel body ── */
.a11y-panel-body {
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Row (label + control) ── */
.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.a11y-row-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: #333;
  flex: 1;
}

/* ── Font-size buttons ── */
.a11y-font-controls {
  display: flex;
  gap: 5px;
}
.a11y-font-controls button {
  width: 32px;
  height: 30px;
  border: 1.5px solid #d0d0d0;
  background: #f6f6f6;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  color: #333;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: 1;
}
.a11y-font-controls button:hover,
.a11y-font-controls button:focus-visible {
  background: var(--cyan);
  color: var(--midnight);
  border-color: var(--cyan);
  outline: none;
}

/* ── Toggle switch ── */
.a11y-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}
.a11y-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.a11y-toggle-track {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 22px;
  transition: background 0.2s;
}
.a11y-toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.a11y-toggle input:checked + .a11y-toggle-track {
  background: var(--cyan);
}
.a11y-toggle input:checked + .a11y-toggle-track::after {
  transform: translateX(18px);
}
.a11y-toggle input:focus-visible + .a11y-toggle-track {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ── Reset All button ── */
.a11y-reset-btn {
  width: 100%;
  padding: 9px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: #444;
  transition: background 0.15s, color 0.15s;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.a11y-reset-btn:hover,
.a11y-reset-btn:focus-visible {
  background: var(--navy);
  color: #fff;
  outline: none;
}

/* ── Divider inside panel ── */
.a11y-divider {
  height: 1px;
  background: #eee;
  margin: 2px 0;
}

/* ── High Contrast Mode ── */
body.a11y-high-contrast {
  background: #000 !important;
  color: #ff0 !important;
}
body.a11y-high-contrast header,
body.a11y-high-contrast footer,
body.a11y-high-contrast section,
body.a11y-high-contrast main,
body.a11y-high-contrast div,
body.a11y-high-contrast article,
body.a11y-high-contrast nav,
body.a11y-high-contrast aside,
body.a11y-high-contrast p,
body.a11y-high-contrast span,
body.a11y-high-contrast li,
body.a11y-high-contrast ul,
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast h5 {
  background-color: #000 !important;
  color: #ff0 !important;
  border-color: #ff0 !important;
}
body.a11y-high-contrast a {
  color: #0ff !important;
}
body.a11y-high-contrast input,
body.a11y-high-contrast textarea,
body.a11y-high-contrast button {
  background-color: #111 !important;
  color: #ff0 !important;
  border-color: #ff0 !important;
}
body.a11y-high-contrast .a11y-btn {
  background: #111 !important;
  border: 2px solid #ff0 !important;
  color: #ff0 !important;
}
body.a11y-high-contrast .a11y-panel {
  background: #111 !important;
  border: 2px solid #ff0 !important;
}
body.a11y-high-contrast .a11y-panel-header {
  background: #000 !important;
  color: #ff0 !important;
  border-bottom: 1px solid #ff0 !important;
}
body.a11y-high-contrast .a11y-row-label {
  color: #ff0 !important;
}
body.a11y-high-contrast .a11y-toggle-track {
  background: #444 !important;
  border: 1px solid #ff0 !important;
}
body.a11y-high-contrast .a11y-toggle input:checked + .a11y-toggle-track {
  background: #ff0 !important;
}
body.a11y-high-contrast .a11y-toggle-track::after {
  background: #ff0 !important;
}
body.a11y-high-contrast .a11y-font-controls button {
  background: #111 !important;
  color: #ff0 !important;
  border-color: #ff0 !important;
}
body.a11y-high-contrast .a11y-reset-btn {
  background: #111 !important;
  color: #ff0 !important;
  border: 1px solid #ff0 !important;
}
body.a11y-high-contrast .a11y-divider {
  background: #ff0 !important;
}

/* ── Grayscale Mode ── */
body.a11y-grayscale {
  filter: grayscale(100%);
}

/* ── Underline Links Mode ── */
body.a11y-underline-links a {
  text-decoration: underline !important;
}

/* ── Big Cursor Mode ── */
body.a11y-big-cursor,
body.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M6 6 L6 34 L14 27 L19 39 L24 37 L19 25 L30 25 Z' fill='white' stroke='black' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 6, auto !important;
}

/* ── Drag handle (hidden on desktop, shown on mobile) ── */
.a11y-drag-handle {
  display: none;
}

/* ── Panel close button (hidden on desktop, shown on mobile) ── */
.a11y-panel-close {
  display: none;
}

/* ============================================
   ACCESSIBILITY WIDGET — MOBILE (≤768px)
   Bottom sheet + larger tap targets
   ============================================ */
@media (max-width: 768px) {

  /* ── Button: 16px from edges on mobile ── */
  .a11y-btn {
    bottom: 16px;
    right: 16px;
  }
  .a11y-btn.cookie-raised {
    bottom: 84px;
  }

  /* ── Panel: full-width bottom sheet ── */
  .a11y-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    /* Slide-up animation: start off-screen below */
    transform: translateY(100%);
    opacity: 1;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    /* Always full opacity — only translate changes */
    pointer-events: none;
  }
  .a11y-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  /* Cookie banner doesn't affect sheet position (sheet sits at bottom: 0) */
  .a11y-panel.cookie-raised {
    bottom: 0;
  }

  /* ── Drag handle: gray pill at top of sheet ── */
  .a11y-drag-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 6px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    cursor: grab;
  }
  .a11y-drag-handle::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
  }

  /* ── Panel header: flex row with close button ── */
  .a11y-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
  }

  /* ── Close ✕ button in panel header ── */
  .a11y-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.15s;
  }
  .a11y-panel-close:hover,
  .a11y-panel-close:focus-visible {
    background: rgba(255, 255, 255, 0.32);
    outline: none;
  }

  /* ── Panel body padding ── */
  .a11y-panel-body {
    padding: 8px 18px 28px;
    gap: 4px;
  }

  /* ── Rows: minimum 48px touch target ── */
  .a11y-row {
    min-height: 48px;
    padding: 4px 0;
  }
  .a11y-row-label {
    font-size: 0.92rem;
  }

  /* ── Font-size row: stacked, full-width buttons ── */
  .a11y-font-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0;
  }
  .a11y-font-row .a11y-row-label {
    margin-bottom: 4px;
  }
  .a11y-font-controls {
    gap: 0;
    width: 100%;
  }
  .a11y-font-controls button {
    flex: 1;
    height: 48px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0;
    border-right-width: 0;
  }
  .a11y-font-controls button:first-child {
    border-radius: 8px 0 0 8px;
    border-right-width: 0;
  }
  .a11y-font-controls button:last-child {
    border-radius: 0 8px 8px 0;
    border-right-width: 1.5px;
  }

  /* ── Toggle rows: 48px tall touch zone ── */
  .a11y-toggle-row {
    min-height: 48px;
  }
  .a11y-toggle {
    /* Expand touch area without changing visual size */
    position: relative;
    width: 40px;
    height: 48px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  /* Override inset: 0 — pin track to fixed 22px height, centered */
  .a11y-toggle .a11y-toggle-track {
    inset: auto;
    top: 50%;
    left: 0;
    right: 0;
    height: 22px;
    transform: translateY(-50%);
  }

  /* ── Reset All: full width, bigger ── */
  .a11y-reset-btn {
    padding: 14px;
    font-size: 0.9rem;
    border-radius: 10px;
    margin-top: 6px;
  }

  /* ── Dividers: a little breathing room ── */
  .a11y-divider {
    margin: 4px 0;
  }
}

/* ── High contrast overrides for mobile close button ── */
body.a11y-high-contrast .a11y-panel-close {
  background: #111 !important;
  color: #ff0 !important;
  border: 1px solid #ff0 !important;
}
body.a11y-high-contrast .a11y-drag-handle::before {
  background: #ff0 !important;
}

/* Gallery section removed */

/* ── Scroll Progress Bar ──────────────────────── */
#scrollProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,212,255,0.35), rgba(0,229,160,0.25));
  backdrop-filter: blur(4px);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s;
}

/* ── Chatbot Widget ────────────────────────────── */
#chatWidget { position: fixed; bottom: 24px; left: 24px; z-index: 9000; }

#chatToggle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  border: none; cursor: pointer; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0,212,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s; position: relative;
}
#chatToggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,212,255,0.6); }

.chat-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--mint); color: var(--midnight);
  font-size: 9px; font-weight: 700; padding: 2px 5px;
  border-radius: 10px; font-family: 'Space Grotesk', sans-serif;
}

#chatPanel {
  position: absolute; bottom: 70px; left: 0;
  width: 340px; background: var(--midnight);
  border: 1px solid rgba(0,212,255,0.2); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(0.9) translateY(10px); opacity: 0;
  pointer-events: none; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 500px;
}
#chatPanel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.chat-header {
  padding: 16px; background: rgba(26,35,80,0.9);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0,212,255,0.15);
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar { font-size: 24px; }
.chat-name { font-family: 'Syne', sans-serif; font-weight: 700; color: white; font-size: 14px; }
.chat-status { font-size: 11px; color: var(--mint); font-family: 'Space Grotesk', sans-serif; }
.chat-close { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; font-size: 18px; padding: 4px 8px; }
.chat-close:hover { color: white; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px; max-height: 320px;
}
.chat-msg { max-width: 85%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }
.chat-msg p {
  margin: 0; padding: 10px 14px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; font-family: 'Space Grotesk', sans-serif;
}
.chat-msg.bot p { background: rgba(0,212,255,0.1); color: rgba(255,255,255,0.9); border-radius: 4px 12px 12px 12px; }
.chat-msg.user p { background: var(--cyan); color: var(--midnight); font-weight: 500; border-radius: 12px 4px 12px 12px; }

.chat-typing p { color: rgba(255,255,255,0.5) !important; font-style: italic; }

.chat-input-row {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid rgba(0,212,255,0.15);
  background: rgba(13,15,30,0.8);
}
#chatInput {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  border-radius: 8px; padding: 10px 12px; color: white; font-size: 13px;
  font-family: 'Space Grotesk', sans-serif; outline: none;
}
#chatInput:focus { border-color: var(--cyan); }
#chatInput::placeholder { color: rgba(255,255,255,0.35); }
#chatSend {
  background: var(--cyan); border: none; border-radius: 8px;
  width: 40px; height: 40px; cursor: pointer; color: var(--midnight);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#chatSend:hover { background: var(--mint); }

@media (max-width: 480px) {
  #chatPanel { width: calc(100vw - 32px); left: 0; }
}
