/* ═══════════════════════════════════════════════════════════
   ADEPT Agency Template — main.css
   All static styles. Dynamic values live in index.html JSX.
   ═══════════════════════════════════════════════════════════

   TABLE OF CONTENTS
   ─────────────────
    1. Reset & Root Variables
    2. Custom Cursor
    3. Loader
    4. Animations
    5. Scroll Reveal
    6. Typography Utilities
    7. Buttons
    8. Cards
    9. Noise & Cursor Glow
   10. Navbar
   11. Hero
   12. Marquee
   13. Metrics
   14. Services
   15. CTA Breaker
   16. Case Studies
   17. Testimonials
   18. Contact
   19. Footer
   20. Image Placeholder
   21. Utilities
   22. Reduced Motion (Accessibility — WCAG 2.1 AA)
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   1. RESET & ROOT VARIABLES
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Set by applyTheme() at runtime — defaults = Adept mustard */
  --bg:              #070707;
  --bg-card:         #111111;
  --bg-card-hover:   #161616;
  --bg-elevated:     #0d0d0d;
  --accent:          #ffb81c;
  --accent-hover:    #ffc94d;
  --accent-subtle:   rgba(255,184,28,0.05);
  --accent-faint:    rgba(255,184,28,0.1);
  --accent-dim:      rgba(255,184,28,0.15);
  --accent-soft:     rgba(255,184,28,0.2);
  --accent-medium:   rgba(255,184,28,0.3);
  --accent-strong:   rgba(255,184,28,0.4);
  --accent-bright:   rgba(255,184,28,0.6);
  --accent-glow:     rgba(255,184,28,0.12);
  --border:          rgba(255,184,28,0.08);
  --border-hover:    rgba(255,184,28,0.35);

  /* Static */
  --text:            #ececec;
  --text-secondary:  #b8b8b8;
  --text-muted:      #8c8c8c;
  --font-display:    'Syne', sans-serif;
  --font-body:       'Outfit', sans-serif;
  --radius:          16px;
  --radius-sm:       8px;
  --radius-btn:      6px;
  --ease-out:        cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
button { font-family: var(--font-body); }
img { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════
   2. CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 99999;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s, opacity 0.3s;
}

.cursor-dot.hovered {
  width: 48px;
  height: 48px;
  background: var(--accent);
  opacity: 0.5;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-strong);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.3s, opacity 0.3s;
}

.cursor-ring.hovered {
  width: 64px;
  height: 64px;
  border-color: var(--accent-soft);
  opacity: 0.7;
}

/* Cursor on accent backgrounds */
body.over-accent .cursor-dot {
  background: #000;
  mix-blend-mode: normal;
}
body.over-accent .cursor-dot.hovered {
  background: #000;
}
body.over-accent .cursor-ring {
  border-color: rgba(0,0,0,0.6);
}
body.over-accent .cursor-ring.hovered {
  border-color: rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ═══════════════════════════════════════════════════════════
   3. LOADER
   ═══════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: clip-path 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }

.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
}

.loader-logo span { color: var(--accent); }

.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 32px;
}

.loader-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════
   4. ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-medium); }
  50%       { box-shadow: 0 0 20px 4px var(--accent-dim); }
}
@keyframes glowPulse {
  0%, 100% { filter: drop-shadow(0 0 8px var(--accent-strong)); }
  50%       { filter: drop-shadow(0 0 16px var(--accent-bright)); }
}
@keyframes slideUpBounce {
  0%   { opacity: 0; transform: translateY(30px); }
  60%  { transform: translateY(-8px); }
  80%  { transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes borderGlow {
  0%, 100% { border-color: var(--border); }
  50%       { border-color: var(--accent-soft); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10%       { transform: translate(-5%, -10%); }
  30%       { transform: translate(7%, -25%); }
  50%       { transform: translate(-15%, 10%); }
  70%       { transform: translate(0, 15%); }
  90%       { transform: translate(-10%, 10%); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   5. SCROLL REVEAL
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ═══════════════════════════════════════════════════════════
   6. TYPOGRAPHY UTILITIES
   ═══════════════════════════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════
   7. BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 34px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px var(--accent-strong), 0 0 20px var(--accent-soft);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::after { opacity: 1; animation: shimmer 1.2s ease-in-out; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-dim), inset 0 0 20px var(--accent-subtle);
  background: var(--accent-subtle);
}

/* ═══════════════════════════════════════════════════════════
   8. CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--border) 0%, transparent 60%);
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-dim), inset 0 1px 0 var(--accent-faint);
}
.card:hover::before { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   9. NOISE & CURSOR GLOW
   ═══════════════════════════════════════════════════════════ */
.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.4;
  animation: grain 8s steps(10) infinite;
}

.cursor-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--accent-subtle) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.12s, top 0.12s;
  z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   10. NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 60px);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  list-style: none;
}
.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.1s linear;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════════
   10b. MOBILE MENU
   ═══════════════════════════════════════════════════════════ */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 10001;
  border-radius: 8px;
  transition: background 0.3s;
}

.mobile-menu-toggle:hover {
  background: var(--accent-subtle);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  animation: fadeIn 0.3s var(--ease-out);
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  min-height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-hover);
  padding: 100px 32px 32px;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 8px;
}

.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateX(8px);
}

.mobile-menu-cta {
  margin-top: 24px !important;
  background: var(--accent) !important;
  color: #000 !important;
  text-align: center;
  font-size: 14px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px var(--accent-strong);
}

.mobile-menu-cta:hover,
.mobile-menu-cta:focus {
  background: var(--accent-hover) !important;
  transform: translateX(0) translateY(-2px) !important;
  box-shadow: 0 8px 24px var(--accent-strong);
}

.mobile-menu-cta::before {
  display: none;
}

/* Scrollbar for mobile menu */
.mobile-menu::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 4px;
}

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

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════
   11. HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(100px, 14vh, 180px) clamp(20px, 5vw, 80px) clamp(60px, 8vh, 100px);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}
.hero-overline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: clamp(10px, 1vw, 13px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(16px, 2.5vh, 28px);
}
.hero-overline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseGlow 2s infinite;
  flex-shrink: 0;
}
.hero-title { margin: 0; font: inherit; }
.hero-headline-wrap { overflow: hidden; display: block; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 6.5vw, 100px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  display: block;
}
.hero-headline--accent {
  font-weight: 700;
  color: var(--accent);
}
.hero-desc {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: min(92%, 540px);
  line-height: 1.65;
  margin-top: clamp(20px, 3.5vh, 36px);
}
.hero-cta-row {
  display: flex;
  gap: clamp(12px, 1.5vw, 16px);
  margin-top: clamp(28px, 4.5vh, 48px);
  flex-wrap: wrap;
}
.hero-sidebar-line {
  position: absolute;
  top: 15%;
  right: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.3;
}
.hero-sidebar-text {
  position: absolute;
  top: 18%;
  right: calc(10% + 18px);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--accent);
  opacity: 0.4;
}
@media (max-width: 900px) {
  .hero-sidebar-line, .hero-sidebar-text, .hero-scroll-indicator { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   12. MARQUEE
   ═══════════════════════════════════════════════════════════ */
.marquee-band {
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-band--accent {
  background: var(--accent);
  border-color: transparent;
}
.marquee-inner {
  display: flex;
  white-space: nowrap;
  width: fit-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.08);
  margin-right: 48px;
}
.marquee-band--accent .marquee-item { color: rgba(0,0,0,0.5); }
.marquee-star {
  color: var(--accent-soft);
  margin: 0 4px;
}
.marquee-band--accent .marquee-star { color: rgba(0,0,0,0.3); }

/* ═══════════════════════════════════════════════════════════
   13. METRICS
   ═══════════════════════════════════════════════════════════ */
.metrics-section {
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 80px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.metrics-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}
.metric-item {
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.metric-suffix { color: var(--accent); }
.metric-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ═══════════════════════════════════════════════════════════
   13b. ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-section {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 80px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.about-header {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.about-intro {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}
.about-subheading {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.about-philosophy-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}
.about-philosophy-text em {
  color: var(--accent);
  font-style: italic;
}
.about-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--border), transparent);
  margin-bottom: clamp(40px, 5vw, 64px);
  opacity: 0.5;
}

/* Values grid */
.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.about-value-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.about-value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 20px var(--accent-glow);
}
.about-value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 20px;
}
.about-value-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.about-value-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Team callout */
.about-team {
  padding: clamp(32px, 4vw, 56px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

/* Animated gradient mesh layer */
.about-team::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 20% 30%, var(--accent-strong) 0%, transparent 30%),
    radial-gradient(circle at 80% 70%, var(--accent-medium) 0%, transparent 35%),
    radial-gradient(circle at 50% 50%, var(--accent-medium) 0%, transparent 25%),
    radial-gradient(circle at 65% 20%, var(--accent-soft) 0%, transparent 30%);
  background-size: 100% 100%;
  animation: meshMove 12s ease-in-out infinite;
  filter: blur(60px);
  z-index: 0;
  opacity: 0.8;
}

@keyframes meshMove {
  0%, 100% {
    transform: translate(0%, 0%) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(5%, -8%) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translate(-8%, 5%) rotate(240deg) scale(0.95);
  }
}

/* Grid overlay + Yellow accent bar combined */
.about-team::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--accent) 4px, transparent 4px),
    linear-gradient(var(--accent-dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent-dim) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 0 0;
  z-index: 1;
  pointer-events: none;
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .about-team::before {
    animation: none;
  }
}

.about-team-inner {
  position: relative;
  z-index: 2;
  padding-left: clamp(16px, 2vw, 28px);
}
.about-team-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 640px;
}
.about-team-btn {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.about-team-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.about-team-btn:hover {
  color: #000;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 184, 28, 0.3);
}

.about-team-btn:hover::before {
  transform: translateY(0);
}

/* About responsive */
@media (max-width: 768px) {
  .about-columns {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   14. SERVICES
   ═══════════════════════════════════════════════════════════ */
.services-section {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 80px);
  background: var(--bg);
  position: relative;
}
.services-inner { max-width: 1400px; margin: 0 auto; }
.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 64px;
}
.services-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-medium);
  padding-bottom: 4px;
  transition: all 0.3s;
}
.services-link:hover {
  border-color: var(--accent);
  text-shadow: 0 0 10px var(--accent-strong);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

/* Service Card */
.service-card {
  padding: 36px 32px;
  cursor: default;
  height: 100%;
  background: #111111 !important; /* Pure grey — no theme color tint */
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  animation: borderGlow 4s ease-in-out infinite;
}
.service-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-dim);
}
.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.service-num {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}
.service-icon {
  font-size: 22px;
  color: var(--text-muted);
  opacity: 0.4;
}
.service-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.service-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  max-height: 100px;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}

.service-card:hover .service-tags {
  max-height: 300px;
}

.service-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  background: var(--accent-subtle);
  transition: opacity 0.3s var(--ease-out);
}

.service-tag:nth-child(n+3) {
  opacity: 0.5;
}

.service-card:hover .service-tag:nth-child(n+3) {
  opacity: 1;
}
.service-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.service-metric {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.service-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   15. CTA BREAKER
   ═══════════════════════════════════════════════════════════ */
.cta-breaker {
  padding: clamp(60px, 10vw, 100px) clamp(20px, 5vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-breaker--dark { background: var(--bg-elevated); }
.cta-breaker--light { background: var(--bg-card); }
.cta-breaker--accent {
  background: var(--accent);
}
.cta-breaker--accent .cta-headline {
  color: #0a0a0a;
}
.cta-breaker--accent .cta-headline span {
  color: rgba(0,0,0,0.65);
}
.cta-breaker--accent .btn-primary {
  background: transparent;
  color: #000;
  border: 2px solid #000;
}
.cta-breaker--accent .btn-primary:hover {
  background: #000;
  color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 0 20px rgba(0,0,0,0.4);
}
.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 36px;
  line-height: 1.1;
}
.cta-headline span { color: var(--accent); }
.cta-subtext {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   16. CASE STUDIES
   ═══════════════════════════════════════════════════════════ */
.cases-section {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 80px);
  background: var(--bg);
}
.cases-inner { max-width: 1400px; margin: 0 auto; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.case-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.case-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px var(--accent-dim);
}
/* First card spans 2 rows for asymmetric grid */
.case-card:nth-child(4n+1) { grid-row: span 2; }
/* Tall card: let the photo absorb the extra row height instead of leaving a gap */
.case-card:nth-child(4n+1) { display: flex; flex-direction: column; }
.case-card:nth-child(4n+1) .case-img { flex: 1 1 auto; }
.case-card:nth-child(4n+4) { grid-column: span 2; }

.case-img {
  width: 100%;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.case-card:nth-child(4n+1) .case-img { height: 520px; }
.case-card:nth-child(4n+2) .case-img,
.case-card:nth-child(4n+3) .case-img { height: 240px; }
.case-card:nth-child(4n+4) .case-img { height: 280px; }

.case-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.case-card:hover .case-img-overlay { opacity: 1; }

.case-body {
  padding: 24px 28px 28px;
  background: var(--bg-card);
}
.case-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-subtle);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.case-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.case-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}
.case-metric-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.case-metric {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.case-metric-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .cases-grid { grid-template-columns: 1fr; }
  .case-card:nth-child(4n+1) { grid-row: span 1; }
  .case-card:nth-child(4n+4) { grid-column: span 1; }
  .case-card:nth-child(4n+1) .case-img { height: 240px; }
}

/* ═══════════════════════════════════════════════════════════
   17. TESTIMONIALS
   ═══════════════════════════════════════════════════════════ */
.testimonials-section {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 80px);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.testimonials-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 20px;
  display: block;
}
.testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  transition: opacity 0.5s, transform 0.5s;
}
.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
}
.testimonial-star { color: var(--accent); font-size: 16px; }
.testimonial-author {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.testimonial-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.testimonial-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.testimonial-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}
.testimonial-dots {
  display: flex;
  gap: 8px;
}
.testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-hover);
  cursor: pointer;
  transition: all 0.3s;
}
.testimonial-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════════════════
   18. CONTACT
   ═══════════════════════════════════════════════════════════ */
.contact-section {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 80px);
  background: var(--bg);
}
.contact-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.contact-info-item {
  margin-bottom: 32px;
}
.contact-info-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.contact-info-value {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
}
.contact-info-value a:hover { color: var(--accent); }

.form-field { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-textarea { resize: vertical; min-height: 140px; }

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

/* ═══════════════════════════════════════════════════════════
   19. FOOTER
   ═══════════════════════════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 80px) 40px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand-name span { color: var(--accent); }
.footer-tagline {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 240px;
}
.footer-col-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   20. IMAGE PLACEHOLDER
   ═══════════════════════════════════════════════════════════ */
.img-placeholder {
  width: 100%;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.img-placeholder-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.img-placeholder-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ═══════════════════════════════════════════════════════════
   21. UTILITIES
   ═══════════════════════════════════════════════════════════ */
.container {
  max-width: 1400px;
  margin: 0 auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* ═══════════════════════════════════════════════════════
   22. REDUCED MOTION (Accessibility — WCAG 2.1 Level AA)
   ═══════════════════════════════════════════════════════ */
@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;
  }

  /* Keep essential animations functional but instant */
  .loader {
    animation: none;
  }

  .loader-fill {
    transition: none;
  }

  .marquee-inner {
    animation: none;
  }

  .hero-scroll-indicator {
    animation: none;
  }

  .hero-overline-dot {
    animation: none;
  }

  /* Disable cursor animations */
  .cursor-dot,
  .cursor-ring {
    transition: none;
  }

  .cursor-glow {
    transition: none;
  }

  /* Disable card tilt effects */
  .service-card {
    animation: none;
  }

  /* Mobile menu - instant transitions */
  .mobile-menu,
  .mobile-menu-overlay,
  .hamburger span {
    transition: none !important;
  }

  /* Keep reveal animations but make instant */
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    transition: opacity 0.01ms, transform 0.01ms;
  }

  /* Disable modal animations */
  .modal-overlay,
  .modal-content {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   MODAL (Success Modal for Contact Form)
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s var(--ease-out);
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 48px);
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.4s var(--ease-out);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
}

.modal-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   FORM VALIDATION ERRORS
   ═══════════════════════════════════════════════════════════ */
.form-input.error,
.form-textarea.error {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.05);
}

.form-input.error:focus,
.form-textarea.error:focus {
  outline: 2px solid rgba(255, 68, 68, 0.5);
  border-color: #ff4444;
}

.form-error {
  display: block;
  color: #ff4444;
  font-size: 13px;
  margin-top: 6px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   LOADING SPINNER
   ═══════════════════════════════════════════════════════════ */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   CAROUSEL AUTO-ROTATION INDICATOR
   ═══════════════════════════════════════════════════════════ */
.carousel-auto-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.6;
  animation: rotate 2s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   CASE STUDY MODAL
   ═══════════════════════════════════════════════════════════ */
.case-modal {
  max-width: 900px;
  padding: 0;
  text-align: left;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s var(--ease-out);
}

.modal-close:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: rotate(90deg);
}

.case-modal-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.case-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-modal-body {
  padding: clamp(32px, 5vw, 48px);
}

.case-modal-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin: 12px 0 16px;
}

.case-modal-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.case-modal-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.case-modal-details h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 12px;
}

.case-modal-details h4:first-child {
  margin-top: 0;
}

.case-modal-details p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.case-modal-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-modal-details li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}

.case-modal-details li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Ensure minimum touch targets of 44px */
  .nav-link {
    padding: 12px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Hamburger button touch target */
  .nav-cta button {
    min-width: 44px;
    min-height: 44px;
    padding: 12px;
  }

  /* Testimonial dots - increase touch area */
  .testimonial-dot {
    width: 10px;
    height: 10px;
    padding: 12px;
  }

  .testimonial-dot.active {
    width: 28px;
    height: 10px;
  }

  /* Form inputs - better mobile UX */
  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
  }

  .form-textarea {
    min-height: 120px;
  }

  /* Service cards - prevent horizontal scroll */
  .service-card {
    width: 100%;
    min-width: 0;
  }

  /* Case study cards - full width on mobile */
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-card {
    width: 100%;
  }

  /* Modal - better mobile spacing */
  .modal-content {
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .case-modal {
    max-width: 100%;
  }

  .case-modal-image {
    height: 250px;
  }

  .case-modal-body {
    padding: 24px;
  }

  /* Hero buttons - stack on very small screens */
  @media (max-width: 414px) {
    .hero-cta {
      flex-direction: column;
      gap: 12px;
    }

    .btn {
      width: 100%;
      justify-content: center;
    }
  }
}

/* Prevent horizontal scroll on all screen sizes */
body {
  overflow-x: hidden;
}

section {
  overflow-x: hidden;
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* ═══════════════════════════════════════════════════════════
   SKIP TO CONTENT (ACCESSIBILITY)
   ═══════════════════════════════════════════════════════════ */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100000;
  padding: 12px 24px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: top 0.3s var(--ease-out);
}

.skip-to-content:focus {
  top: 20px;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   LOADER SKIP BUTTON
   ═══════════════════════════════════════════════════════════ */
.loader-skip {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  opacity: 0;
  animation: fadeInSkip 0.5s 1.5s forwards;
}

.loader-skip:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(-50%) translateY(-2px);
}

@keyframes fadeInSkip {
  to {
    opacity: 1;
  }
}


/* ═══════════════════════════════════════════════════════════
   CTA BREAKER MICRO-ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
.cta-breaker .btn {
  position: relative;
  overflow: visible;
}

.cta-breaker .btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--accent-glow);
  border-radius: calc(var(--radius-btn) + 4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  z-index: -1;
  filter: blur(12px);
}

.cta-breaker .btn:hover::before {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.4;
  }
}


/* ═══════════════════════════════════════════════════════════
   ADEPT SOLUTIONS — production fixes
   ═══════════════════════════════════════════════════════════ */

/* Modals: the content scrolls inside the viewport instead of running off it */
.modal-overlay {
  overflow-y: auto;
  overscroll-behavior: contain;
  align-items: flex-start;
  padding: clamp(16px, 4vh, 48px) 16px;
}
.modal-content {
  margin: auto;
  max-height: none;
  overflow: visible;
}
.case-modal { border-radius: var(--radius); }
.case-modal-image { border-radius: var(--radius) var(--radius) 0 0; }
.modal-close {
  position: sticky;
  float: right;
  top: 12px;
  margin: 12px 12px -52px 0;
  background: rgba(7,7,7,0.85);
}
@media (max-width: 768px) {
  .modal-content { margin: auto 0; max-height: none; overflow: visible; }
}

/* Hero: photo, then showreel, then a shade so the headline stays readable */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  transition: opacity 1.2s var(--ease-out);
}
.hero-video { background: transparent; }
.hero-media-shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(7,7,7,0.78) 50%, rgba(7,7,7,0.45)),
    linear-gradient(to bottom, rgba(7,7,7,0.55), transparent 30%);
}
@media (max-width: 768px) {
  .hero-media-shade { background: linear-gradient(to bottom, rgba(7,7,7,0.6), rgba(7,7,7,0.82) 60%, var(--bg)); }
}
.hero-sound {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 5vw, 80px);
  bottom: clamp(20px, 4vh, 36px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(7,7,7,0.6);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.hero-sound:hover, .hero-sound:focus-visible { border-color: var(--accent); color: var(--accent); }
.hero-sound-icon { font-size: 15px; line-height: 1; }

/* Contact form: sending failure message */
.form-send-error {
  display: block;
  margin: 4px 0 12px;
  font-size: 14px;
  line-height: 1.5;
}
.form-send-error a { color: var(--accent); text-decoration: underline; }

/* Small labels were 10–11px in muted grey: lift them to a readable size */
.contact-info-label, .form-label, .metric-label, .service-metric-label, .case-metric-label, .footer-col-heading { font-size: 12px; }
.about-philosophy-text, .about-value-text { color: var(--text-secondary); }

/* Keyboard focus that is visible on the dark background */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Anchor links land below the fixed navigation bar */
section[id] { scroll-margin-top: 80px; }

/* Brand logo image (falls back to the text logo) */
.brand-logo-img { display: block; width: auto; max-width: none; }
.nav-logo, .footer-brand-name, .loader-logo { display: inline-flex; align-items: center; }

/* WhatsApp: a circle the same size as scroll-to-top, centred on the same line,
   lifted above it while that button is showing */
.whatsapp-btn {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 9998;
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  transition: bottom 0.35s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s;
}
.scroll-top-btn ~ .whatsapp-btn { bottom: 98px; }
.whatsapp-btn:hover, .whatsapp-btn:focus-visible { background: var(--accent-hover); transform: translateY(-3px); }
.whatsapp-btn-label { display: none; }
@media (max-width: 768px) {
  .whatsapp-btn { right: 20px; bottom: 20px; width: 48px; height: 48px; }
  .whatsapp-btn svg { width: 24px; height: 24px; }
  .scroll-top-btn ~ .whatsapp-btn { bottom: 80px; }
  .scroll-top-btn { right: 20px !important; bottom: 20px !important; width: 48px !important; height: 48px !important; }
}

/* Team */
.team-section { padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 80px); }
.team-inner { max-width: 1240px; margin: 0 auto; }
.team-intro { max-width: 620px; margin-top: 18px; font-size: 16px; line-height: 1.7; color: var(--text-secondary); }
.team-grid { display: grid; gap: 24px; margin-top: 56px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.team-grid--1 { grid-template-columns: minmax(0, 1fr); }
.team-grid--1 .team-card { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; }
.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.3s;
}
.team-card:hover { border-color: var(--border-hover); }
.team-photo { aspect-ratio: 4 / 5; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-initials { font-family: var(--font-display); font-size: 64px; font-weight: 700; color: var(--accent); letter-spacing: -0.04em; }
.team-body { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.team-name { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text); }
.team-role { margin-top: 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.team-bio { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--text-secondary); }
.team-link { margin-top: 20px; align-self: flex-start; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.team-link:hover { color: var(--accent); }
@media (max-width: 700px) { .team-grid--1 .team-card { grid-template-columns: 1fr; } }

/* Call button icon in the nav and phone menu */
.nav-cta-desktop, .mobile-menu-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cta-icon { flex-shrink: 0; }
