/* ================================================================
   DENTLUX STUDIO — V6
   Responsive, dark mode, refactored
   ================================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --bg-card: rgba(255,255,255,0.55);
  --border: #e0ddd7;
  --muted: #999590;
  --text-2: #5c5955;
  --text: #1a1916;
  --black: #0d0d0c;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r: 16px;
  --r-lg: 24px;
}

/* dark mode variables */
body.dark {
  --bg: #111113;
  --bg-alt: #1a1a1e;
  --bg-card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.1);
  --muted: #777;
  --text-2: #aaa;
  --text: #f0ede8;
  --black: #000;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; overflow-x: hidden; transition: background 0.4s, color 0.4s; }
body.dark { background: #111113; color: #f0ede8; }
img, video { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 40px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--text); color: var(--bg); padding: 8px 16px; font-size: 14px; font-weight: 500; border-radius: var(--r); transition: top 0.2s; }
.skip-link:focus { top: 16px; }

.label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.label--light { color: rgba(255,255,255,0.5); }

/* ================================================================
   NAV
   ================================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 40px; transition: padding 0.4s var(--ease); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1320px; margin: 0 auto; }

.logo { display: flex; align-items: center; gap: 8px; color: var(--bg); transition: color 0.3s; z-index: 2; }
.dark .logo { color: #f0ede8; }
.logo-icon { width: 30px; height: 30px; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { font-size: 18px; font-weight: 700; }
.logo-text span { font-weight: 400; opacity: 0.5; margin-left: 2px; }

.nav-glass {
  display: flex; align-items: center; gap: 2px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.nav-glass a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); padding: 10px 20px; border-radius: 100px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
@media(hover:hover) { .nav-glass a:hover { color: #fff; background: rgba(255,255,255,0.12); } }

.nav-right { display: flex; align-items: center; gap: 16px; z-index: 2; }
.nav-social { display: flex; gap: 8px; }

/* social buttons with colored circle bg */
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.social-btn svg { width: 16px; height: 16px; }
.social-btn:active { transform: scale(0.93); }
.social-fb { background: #1877F2; }
.social-ig { background: linear-gradient(135deg, #FFDC80 0%, #F77737 25%, #E1306C 50%, #C13584 75%, #833AB4 100%); }
@media(hover:hover) { .social-btn:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,0.2); } }

.social-btn--contact { width: 48px; height: 48px; }
.social-btn--contact svg { width: 20px; height: 20px; }

.nav.scrolled .social-btn { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.nav-cta { font-size: 14px; font-weight: 600; padding: 12px 26px; background: #fff; color: var(--black); border-radius: 100px; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.nav-cta:active { transform: scale(0.97); }
@media(hover:hover) { .nav-cta:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.15); } }

/* theme toggle */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.7);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.theme-toggle svg { width: 16px; height: 16px; }
@media(hover:hover) { .theme-toggle:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); } }
.nav.scrolled .theme-toggle { border-color: var(--border); color: var(--text); }
@media(hover:hover) { .nav.scrolled .theme-toggle:hover { background: var(--bg-alt); } }

.nav.scrolled { padding: 10px 40px; }
.nav.scrolled .nav-glass { background: rgba(255,255,255,0.75); border-color: rgba(0,0,0,0.06); box-shadow: 0 4px 30px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.6); }
.dark .nav.scrolled .nav-glass { background: rgba(30,30,34,0.8); border-color: rgba(255,255,255,0.08); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav.scrolled .nav-glass a { color: var(--text-2); }
@media(hover:hover) { .nav.scrolled .nav-glass a:hover { color: var(--text); background: rgba(0,0,0,0.05); } }
.dark .nav.scrolled .nav-glass a:hover { background: rgba(255,255,255,0.06); }
.nav.scrolled .logo { color: var(--text); }
.nav.scrolled .nav-cta { background: var(--text); color: var(--bg); }
.nav.scrolled .nav-social a { border-color: var(--border); }
@media(hover:hover) { .nav.scrolled .nav-social a:hover { border-color: var(--muted); background: var(--bg-alt); } }
.nav.scrolled .nav-toggle span { background: var(--text); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; z-index: 2; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: #fff; transition: transform 0.3s var(--ease-out); }
.nav-toggle.active span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: 0; z-index: 99; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 80px 40px 40px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-inner { display: flex; flex-direction: column; width: 100%; }
.mobile-menu-inner > a { display: block; font-size: 32px; font-weight: 600; color: var(--text); padding: 16px 0; border-bottom: 1px solid var(--border); opacity: 0; transform: translateY(20px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.mobile-menu.active .mobile-menu-inner > a { opacity: 1; transform: translateY(0); }
.mobile-menu-footer { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; opacity: 0; transform: translateY(20px); transition: opacity 0.4s var(--ease-out) 0.2s, transform 0.4s var(--ease-out) 0.2s; }
.mobile-menu.active .mobile-menu-footer { opacity: 1; transform: translateY(0); }
.mobile-menu-footer a { font-size: 16px; color: var(--text-2); }
.mobile-cta { display: inline-block; background: var(--text); color: var(--bg) !important; padding: 14px 28px; font-weight: 600; font-size: 15px !important; border-radius: var(--r); }

/* ================================================================
   HERO
   ================================================================ */
.hero { position: relative; height: 100dvh; min-height: 600px; display: flex; align-items: flex-end; background: var(--black); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; transform: scale(1.05); animation: heroZoom 15s ease-in-out infinite alternate; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,13,12,0.2) 0%, rgba(13,13,12,0.1) 30%, rgba(13,13,12,0.6) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 40px 80px; }
.hero-title { margin-bottom: 36px; }
.hero-line { display: block; font-size: clamp(56px, 10vw, 130px); font-weight: 800; line-height: 0.9; color: #fff; letter-spacing: -0.04em; opacity: 0; transform: translateY(100%); animation: heroSlideUp 0.9s var(--ease-out) forwards; }
.hero-line:nth-child(1) { animation-delay: 0.15s; }
.hero-line:nth-child(2) { animation-delay: 0.3s; }
.hero-line:nth-child(3) { animation-delay: 0.45s; }
.hero-bottom { max-width: 480px; opacity: 0; transform: translateY(24px); animation: fadeUp 0.8s var(--ease-out) 0.7s forwards; }
.hero-bottom p { font-size: 17px; font-weight: 300; color: rgba(255,255,255,0.6); line-height: 1.65; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta { display: inline-block; font-size: 14px; font-weight: 600; color: var(--black); background: #fff; padding: 14px 32px; border-radius: var(--r); transition: box-shadow 0.25s, transform 0.15s; }
.hero-cta:active { transform: scale(0.97); }
@media(hover:hover) { .hero-cta:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.2); } }
.hero-cta--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
@media(hover:hover) { .hero-cta--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); box-shadow: none; } }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-indicator { width: 1px; height: 48px; background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* ================================================================
   ABOUT — floating photos
   ================================================================ */
.about { padding: 0 0 80px; background: #f7f7f5; transition: background 0.4s; }
.dark .about { background: #1a1a1e; }
.about-wrap { position: relative; min-height: 720px; display: flex; align-items: center; justify-content: center; padding: 100px 40px; overflow: hidden; }
.about-photos { position: absolute; inset: 0; pointer-events: none; }

.fp { position: absolute; border-radius: var(--r); overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.1); border: 3px solid var(--bg); will-change: transform; transition: border-color 0.4s; }
.fp img { width: 100%; height: 100%; object-fit: cover; }

.fp-1  { top: 4%;  left: 6%;   width: 155px; height: 200px; transform: rotate(-3deg); }
.fp-2  { top: 1%;  left: 21%;  width: 140px; height: 180px; transform: rotate(4deg); }
.fp-3  { top: 7%;  left: 40%;  width: 120px; height: 155px; transform: rotate(-2deg); }
.fp-4  { top: 2%;  right: 20%; width: 145px; height: 185px; transform: rotate(3deg); left: auto; }
.fp-5  { top: 5%;  right: 5%;  width: 135px; height: 175px; transform: rotate(-4deg); left: auto; }
.fp-6  { bottom: 6%; left: 5%;  width: 150px; height: 195px; transform: rotate(2deg); top: auto; }
.fp-7  { bottom: 3%; left: 22%; width: 130px; height: 170px; transform: rotate(-3deg); top: auto; }
.fp-8  { bottom: 5%; right: 6%; width: 155px; height: 200px; transform: rotate(4deg); top: auto; left: auto; }
.fp-9  { bottom: 8%; right: 20%; width: 125px; height: 165px; transform: rotate(-2deg); top: auto; left: auto; }
.fp-10 { top: 40%; right: 6%;  width: 115px; height: 150px; transform: rotate(5deg); left: auto; }

.about-center {
  position: relative; z-index: 2; text-align: center;
  max-width: 580px; width: 100%;
  padding: 52px 48px;
  background: rgba(247,247,245,0.9);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
  transition: background 0.4s, border-color 0.4s;
}
.dark .about-center { background: rgba(26,26,30,0.85); border-color: rgba(255,255,255,0.08); }
.about-center h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.about-center h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--text-2); }
.about-center > p { font-size: 15px; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; }

.about-features { display: flex; justify-content: center; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.about-feat { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.about-feat svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text); }

/* shared scroll nav buttons */
.scroll-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--text); background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.scroll-nav-btn svg { width: 18px; height: 18px; }
.scroll-nav-btn:active { transform: scale(0.93); }
@media(hover:hover) { .scroll-nav-btn:hover { border-color: var(--muted); box-shadow: 0 4px 12px rgba(0,0,0,0.06); } }

.team-nav, .about-mobile-nav { display: none; justify-content: center; gap: 12px; margin-top: 24px; }

.about-btn { display: inline-block; font-size: 14px; font-weight: 600; padding: 13px 28px; background: var(--text); color: var(--bg); border-radius: var(--r); transition: box-shadow 0.2s, transform 0.15s; }
.about-btn:active { transform: scale(0.97); }
@media(hover:hover) { .about-btn:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.18); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: border-color 0.4s; }
.stat { padding: 40px 0; text-align: center; transition: background 0.3s; }
.stat + .stat { border-left: 1px solid var(--border); }
@media(hover:hover) { .stat:hover { background: var(--bg); } }
.stat-val { font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-val .sfx { font-weight: 400; color: var(--muted); }
.stat-label { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ================================================================
   FEATURE BANNER
   ================================================================ */
.feature-banner { position: relative; height: 520px; display: flex; align-items: center; justify-content: center; background: var(--black); overflow: hidden; }
.parallax-img { position: absolute; inset: -60px 0; width: 100%; height: calc(100% + 120px); object-fit: cover; opacity: 0.4; will-change: transform; }
.feature-overlay { position: absolute; inset: 0; background: rgba(13,13,12,0.35); }
.feature-content { position: relative; z-index: 2; text-align: center; max-width: 600px; padding: 0 40px; }
.feature-content h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin-bottom: 16px; }
.feature-content p { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.65; margin-bottom: 28px; }
.banner-cta { display: inline-block; font-size: 14px; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,0.35); padding: 14px 32px; border-radius: var(--r); transition: background 0.25s, border-color 0.25s; }
@media(hover:hover) { .banner-cta:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); } }

/* ================================================================
   SERVICES
   ================================================================ */
.services { position: relative; padding: 120px 0; background: var(--black); }
.services-bg { position: absolute; inset: 0; }
.services-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.2; filter: blur(2px); }
.services-bg-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(13,13,12,0.6), rgba(13,13,12,0.85)); }
.services-container { position: relative; z-index: 2; }
.services-header { text-align: center; margin-bottom: 60px; }
.services-header h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin-bottom: 16px; }
.services-header p { font-size: 16px; color: rgba(255,255,255,0.5); max-width: 480px; margin: 0 auto; }

.services-carousel { display: flex; gap: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 20px; scrollbar-width: none; }
.services-carousel::-webkit-scrollbar { display: none; }

.svc-card { flex: 0 0 280px; scroll-snap-align: start; background: rgba(255,255,255,0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-lg); overflow: hidden; color: #fff; transition: transform 0.4s var(--ease-out), box-shadow 0.4s, background 0.4s; }
@media(hover:hover) { .svc-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,0.25); background: rgba(255,255,255,0.16); } .svc-card:hover .svc-card-img img { transform: scale(1.08); } }
.svc-card-img { height: 220px; overflow: hidden; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.svc-card-label { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.4); padding: 20px 24px 0; }
.svc-card h3 { font-size: 20px; font-weight: 700; padding: 8px 24px 0; }
.svc-card p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.55; padding: 8px 24px 24px; }

.services-nav { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.svc-nav-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); display: grid; place-items: center; color: #fff; transition: background 0.2s, border-color 0.2s, transform 0.15s; }
.svc-nav-btn svg { width: 20px; height: 20px; }
.svc-nav-btn:active { transform: scale(0.93); }
@media(hover:hover) { .svc-nav-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); } }

/* ================================================================
   TEAM — liquid glass
   ================================================================ */
.team { padding: 120px 0; background: #f7f7f5; transition: background 0.4s; }
.dark .team { background: #1a1a1e; }
.team-header { margin-bottom: 60px; }
.team-header h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }

.team-grid { display: flex; gap: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.team-grid::-webkit-scrollbar { display: none; }

.team-card {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.dark .team-card { border-color: rgba(255,255,255,0.08); box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
@media(hover:hover) { .team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); } .team-card:hover .tc-photo img { transform: scale(1.04); } }

.tc-photo { aspect-ratio: 1/1.1; overflow: hidden; margin: 14px 14px 0; border-radius: var(--r); background: var(--border); }
.tc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.tc-body { padding: 20px 22px 24px; }
.tc-body h3 { font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.tc-role { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.tc-body p { font-size: 13px; color: var(--text-2); line-height: 1.55; margin-bottom: 14px; }
.tc-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.tc-exp { font-size: 11px; color: var(--muted); }
.tc-rating { font-size: 12px; font-weight: 600; color: #b8860b; background: rgba(184,134,11,0.08); padding: 4px 10px; border-radius: 100px; }

/* ================================================================
   TESTIMONIALS — 3 visible cards carousel
   ================================================================ */
.testimonials { padding: 120px 0; background: #f7f7f5; transition: background 0.4s; }
.dark .testimonials { background: #1a1a1e; }
.tst-header { text-align: center; margin-bottom: 60px; }
.tst-header h2 { font-size: clamp(32px, 3.5vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 12px; }
.tst-header p { font-size: 16px; color: var(--text-2); }

.tst-carousel { position: relative; max-width: 1100px; margin: 0 auto; height: 420px; overflow: visible; }
.tst-track { position: relative; width: 100%; height: 100%; }

.tst-card {
  position: absolute; top: 50%; left: 50%; width: 440px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transition: transform 0.55s var(--ease-out), opacity 0.55s, filter 0.4s, box-shadow 0.55s;
  will-change: transform, opacity;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 340px;
  transform: translate(-50%, -50%) scale(0.75); opacity: 0; pointer-events: none;
}
.tst-card[data-pos="center"] { transform: translate(-50%, -50%) scale(1); opacity: 1; z-index: 3; pointer-events: auto; box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.tst-card[data-pos="left"] { transform: translate(calc(-50% - 380px), -50%) scale(0.85); opacity: 0.6; z-index: 2; filter: blur(1px); }
.tst-card[data-pos="right"] { transform: translate(calc(-50% + 380px), -50%) scale(0.85); opacity: 0.6; z-index: 2; filter: blur(1px); }
.tst-card[data-pos="far-left"] { transform: translate(calc(-50% - 680px), -50%) scale(0.7); opacity: 0; z-index: 1; }
.tst-card[data-pos="far-right"] { transform: translate(calc(-50% + 680px), -50%) scale(0.7); opacity: 0; z-index: 1; }
.tst-card[data-pos="hidden"] { transform: translate(-50%, -50%) scale(0.7); opacity: 0; z-index: 0; }

.tst-stars { font-size: 15px; color: #e8b100; letter-spacing: 2px; margin-bottom: 16px; }
.tst-card p { font-family: var(--font-serif); font-size: 19px; font-style: italic; line-height: 1.55; flex: 1; margin-bottom: 24px; }
.tst-author { display: flex; align-items: center; gap: 14px; }
.tst-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tst-author strong { font-family: var(--font); font-style: normal; font-size: 14px; font-weight: 600; display: block; }
.tst-author span { font-family: var(--font); font-style: normal; font-size: 13px; color: var(--muted); display: block; }

.tst-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; position: relative; z-index: 10; }
.tst-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text); background: var(--bg); transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.tst-btn svg { width: 18px; height: 18px; }
.tst-btn:active { transform: scale(0.93); }
@media(hover:hover) { .tst-btn:hover { border-color: var(--muted); box-shadow: 0 4px 12px rgba(0,0,0,0.06); } }

.tst-dots { display: flex; gap: 6px; }
.tst-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; transition: background 0.3s, transform 0.3s; }
.tst-dot.active { background: var(--text); transform: scale(1.3); }

/* ================================================================
   GALLERY
   ================================================================ */
.gallery-strip { overflow: hidden; padding: 4px 0; background: #ffffff; transition: background 0.4s; }
.dark .gallery-strip { background: #111113; }
.gallery-track { display: flex; gap: 4px; animation: galleryScroll 40s linear infinite; width: max-content; will-change: transform; }
.gallery-item { width: 320px; height: 220px; flex-shrink: 0; overflow: hidden; border-radius: var(--r); background: var(--border); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out), filter 0.5s; filter: grayscale(20%); }
@media(hover:hover) { .gallery-item:hover img { transform: scale(1.06); filter: grayscale(0%); } }

/* ================================================================
   CONTACT
   ================================================================ */
.contact { padding: 120px 0; background: #ffffff; transition: background 0.4s; }
.dark .contact { background: #111113; }
.contact-header { text-align: center; margin-bottom: 32px; }
.contact-header h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 12px; }
.contact-lead { font-size: 16px; color: var(--text-2); max-width: 460px; margin: 0 auto; }

.contact-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 60px; flex-wrap: wrap; }
.contact-action-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; padding: 14px 32px; background: var(--text); color: var(--bg); border-radius: var(--r); transition: box-shadow 0.2s, transform 0.15s; }
.contact-action-btn svg { width: 18px; height: 18px; }
.contact-action-btn:active { transform: scale(0.97); }
@media(hover:hover) { .contact-action-btn:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.15); } }
.contact-action-btn--outline { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
@media(hover:hover) { .contact-action-btn--outline:hover { background: var(--bg-alt); box-shadow: 0 8px 28px rgba(0,0,0,0.06); } }

.contact-body { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: stretch; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-card { display: flex; align-items: flex-start; gap: 14px; padding: 24px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--r); transition: border-color 0.3s, box-shadow 0.3s, background 0.4s; }
@media(hover:hover) { .c-card:hover { border-color: var(--muted); box-shadow: 0 8px 24px rgba(0,0,0,0.04); } }
.c-card svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--text); margin-top: 2px; }
.c-card strong { font-size: 14px; font-weight: 600; display: block; margin-bottom: 4px; }
.c-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.c-card a { color: var(--text-2); transition: color 0.2s; }
@media(hover:hover) { .c-card a:hover { color: var(--text); } }

.contact-map { border-radius: var(--r-lg); overflow: hidden; min-height: 360px; background: var(--border); border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 100%; min-height: 360px; display: block; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--black); color: rgba(255,255,255,0.4); padding: 32px 0; }
.dark .footer { background: #0a0a0c; }
.footer-bottom { display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ================================================================
   REVEAL
   ================================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.services-carousel .reveal:nth-child(1) { transition-delay: 0ms; } .services-carousel .reveal:nth-child(2) { transition-delay: 80ms; } .services-carousel .reveal:nth-child(3) { transition-delay: 160ms; } .services-carousel .reveal:nth-child(4) { transition-delay: 240ms; } .services-carousel .reveal:nth-child(5) { transition-delay: 320ms; }
.team-grid .reveal:nth-child(1) { transition-delay: 0ms; } .team-grid .reveal:nth-child(2) { transition-delay: 100ms; } .team-grid .reveal:nth-child(3) { transition-delay: 200ms; }

/* ================================================================
   KEYFRAMES
   ================================================================ */
@keyframes heroSlideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; transform: scaleY(1); } 50% { opacity: 0.8; transform: scaleY(1.3); } }
@keyframes heroZoom { 0% { transform: scale(1.05); } 100% { transform: scale(1.12); } }
@keyframes galleryScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ampScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media(max-width: 1080px) {
  .hero-video { object-position: 65% center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .contact-body { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }
  .about-photos { display: none; }
  .about-wrap { min-height: auto; padding: 60px 40px; }
  .about-center {
    max-width: 100%; width: 100%; padding: 0;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: none; box-shadow: none; border-radius: 0;
  }
  .dark .about-center { background: none; border-color: transparent; }
  .about-mobile-photos {
    display: flex; gap: 12px; overflow: hidden;
    padding: 0; margin-top: -10px; width: 100%;
  }
  .about-mobile-photos .amp-track {
    display: flex; gap: 12px;
    animation: ampScroll 18s linear infinite;
    width: max-content; will-change: transform;
  }
  .about-mobile-photos img {
    width: 280px; height: 190px; object-fit: cover;
    border-radius: var(--r); flex-shrink: 0;
  }
  .team-nav { display: flex; }
}

@media(max-width: 960px) {
  .nav-social { display: none; }
  .nav-glass a { padding: 8px 14px; font-size: 13px; }
  .nav-cta { padding: 10px 20px; font-size: 13px; }
}

@media(max-width: 830px) {
  .nav-glass, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.scrolled .nav-toggle span { background: var(--text); }
}

@media(max-width: 760px) {
  .container { padding: 0 20px; }
  .nav { padding: 12px 16px; }
  .nav-inner { padding: 0; }
  .nav-glass, .nav-cta, .nav-social { display: none; }
  .nav-toggle { display: flex; }

  .hero-video { object-position: 70% center; }

  .hero-content { padding: 0 20px 60px; }
  .hero-line { font-size: clamp(40px, 12vw, 56px); }
  .feature-banner { height: 340px; }
  .feature-content { padding: 0 20px; }

  /* ABOUT — mobile: no floating photos, stacked layout */
  .about-wrap { min-height: auto; padding: 60px 20px; }
  .about-photos { display: none; }
  .about-center {
    max-width: 100%; width: 100%;
    padding: 0;
    background: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border: none; box-shadow: none;
    border-radius: 0;
  }
  .dark .about-center { background: none; border-color: transparent; }
  .about-center h2 { font-size: 28px; }
  .about-features { gap: 16px; justify-content: flex-start; }
  .about-btn { width: 100%; text-align: center; }

  /* ABOUT — photo strip for mobile: auto-scrolling */
  .about-mobile-photos {
    display: flex; gap: 12px;
    overflow: hidden;
    padding: 0; margin-top: -10px;
    width: 100%;
  }
  .about-mobile-photos .amp-track {
    display: flex; gap: 12px;
    animation: ampScroll 18s linear infinite;
    width: max-content;
    will-change: transform;
  }
  .about-mobile-photos img {
    width: 220px; height: 150px; object-fit: cover;
    border-radius: var(--r); flex-shrink: 0;
  }
  .about-mobile-nav { display: none; }

  .services, .team, .testimonials, .contact { padding: 60px 0; }

  .team-header { margin-bottom: 32px; }
  .team-nav { display: flex; }
  .about-mobile-nav { display: flex; }
  .team-card { flex: 0 0 260px; min-width: 260px; }
  .tc-photo { aspect-ratio: 1/1; }

  .tst-carousel { height: 360px; overflow: hidden; }
  .tst-card { width: 85vw; max-width: 360px; padding: 28px 24px; min-height: 280px; }
  .tst-card p { font-size: 16px; }
  .tst-card[data-pos="left"] { transform: translate(calc(-50% - 180px), -50%) scale(0.8); opacity: 0.25; }
  .tst-card[data-pos="right"] { transform: translate(calc(-50% + 180px), -50%) scale(0.8); opacity: 0.25; }
  .tst-card[data-pos="far-left"], .tst-card[data-pos="far-right"] { opacity: 0; }

  .contact-cards { grid-template-columns: 1fr; }
  .contact-actions { gap: 12px; }
  .social-btn--contact { width: 48px; height: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 0; }
  .stat-val { font-size: 36px; }
  .gallery-item { width: 240px; height: 160px; }
}

@media(min-width: 1081px) {
  .about-mobile-photos { display: none; }
}

@media(max-width: 440px) {
  .hero-line { font-size: 38px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
  .contact-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .contact-action-btn { flex: 1; min-width: 140px; justify-content: center; }
  .team-card { flex: 0 0 240px; min-width: 240px; }
}

@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-line, .hero-bottom { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-video { animation: none; transform: none; }
  .scroll-indicator, .gallery-track { animation: none; }
  .reveal { transition: opacity 0.25s ease; transform: none; }
  .tst-card { transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
