/* Performance Connect — light-mode AI/tech consulting site */

:root, [data-theme="light"] {
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 1rem + 6vw, 7rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Surfaces — very light, airy */
  --color-bg: #F7F9FE;
  --color-surface: #FFFFFF;
  --color-surface-2: #FBFCFF;
  --color-surface-offset: #EEF2FB;
  --color-surface-offset-2: #E4EAF7;
  --color-divider: #DFE5F2;
  --color-border: #CFD7EA;

  /* Text — cool near-black */
  --color-text: #0B1526;
  --color-text-muted: #4A5878;
  --color-text-faint: #8A96B4;
  --color-text-inverse: #F8FAFF;

  /* Accents — electric cyan → violet gradient */
  --color-primary: #2A6BFF;         /* electric blue */
  --color-primary-hover: #1D53D9;
  --color-primary-active: #163FA6;
  --color-primary-highlight: #DDE7FF;

  --color-accent-cyan: #00C7FF;
  --color-accent-violet: #7A5CFF;
  --color-accent-pink: #C86BFF;

  /* Semantic */
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-error: #DC2626;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — cool tone */
  --shadow-sm: 0 1px 2px oklch(0.4 0.05 260 / 0.06);
  --shadow-md: 0 8px 24px oklch(0.4 0.08 260 / 0.08);
  --shadow-lg: 0 24px 60px oklch(0.4 0.1 260 / 0.14);
  --shadow-glow: 0 0 40px oklch(0.7 0.18 260 / 0.35);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1240px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Gradients */
  --grad-brand: linear-gradient(115deg, #00C7FF 0%, #2A6BFF 45%, #7A5CFF 100%);
  --grad-brand-soft: linear-gradient(115deg, #00C7FF20, #2A6BFF20, #7A5CFF20);
  --grad-hero-bg:
    radial-gradient(60% 60% at 50% 30%, #E2ECFF 0%, transparent 70%),
    radial-gradient(45% 45% at 20% 70%, #E7DEFF 0%, transparent 70%),
    radial-gradient(50% 50% at 85% 60%, #D5F0FF 0%, transparent 70%),
    #F7F9FE;
}

[data-theme="dark"] {
  --color-bg: #070A14;
  --color-surface: #0E1424;
  --color-surface-2: #131A2E;
  --color-surface-offset: #182140;
  --color-surface-offset-2: #1D2850;
  --color-divider: #1E2848;
  --color-border: #2A3763;

  --color-text: #E7EDFC;
  --color-text-muted: #9AA5C7;
  --color-text-faint: #5A688F;
  --color-text-inverse: #0B1526;

  --color-primary: #5B8CFF;
  --color-primary-hover: #7BA3FF;
  --color-primary-active: #97B7FF;
  --color-primary-highlight: #1B2647;

  --grad-hero-bg:
    radial-gradient(60% 60% at 50% 30%, #1A2547 0%, transparent 70%),
    radial-gradient(45% 45% at 20% 70%, #241A47 0%, transparent 70%),
    radial-gradient(50% 50% at 85% 60%, #0F2540 0%, transparent 70%),
    #070A14;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.6);
  --shadow-glow: 0 0 60px oklch(0.7 0.2 260 / 0.5);
}

/* ---------- Layout containers ---------- */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}

section {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  padding: var(--space-2) var(--space-3);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.25);
  border-radius: var(--radius-full);
  background: oklch(from var(--color-primary) l c h / 0.06);
  backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.05;
  margin-top: var(--space-4);
  max-width: 22ch;
}
.section-title .grad {
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.section-lede {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-top: var(--space-4);
  max-width: 60ch;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.site-header.scrolled {
  border-bottom-color: var(--color-divider);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}
.brand svg { width: 34px; height: 34px; }
.brand-mark-name { line-height: 1; }
.brand-mark-name .sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.7em; color: var(--color-text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px;}

.nav-links {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}
.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  position: relative;
  padding-block: var(--space-2);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-interactive);
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-primary); }

.mobile-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  color: white;
  background: var(--grad-brand);
  box-shadow: 0 6px 20px oklch(from var(--color-primary) l c h / 0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform 600ms cubic-bezier(0.16,1,0.3,1);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px oklch(from var(--color-primary) l c h / 0.5); }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

/* ---------- HERO — centrepiece ---------- */

.hero {
  position: relative;
  padding-top: clamp(var(--space-6), 3vw, var(--space-10));
  padding-bottom: clamp(var(--space-10), 6vw, var(--space-20));
  background: var(--grad-hero-bg);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(from var(--color-primary) l c h / 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(from var(--color-primary) l c h / 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-copy { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }

.hero-title {
  font-family: var(--font-display);
  /* Tightened from --text-hero so the hologram is visible on first paint */
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
  margin: 0;
}
.hero-title .grad {
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.5;
}

.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* Hero centrepiece (image + effects) */
.hero-stage {
  position: relative;
  width: 100%;
  /* Wider + shorter card so it sits above the fold on typical laptop screens */
  max-width: 720px;
  aspect-ratio: 16 / 11;
  margin: var(--space-5) auto 0;
  display: grid;
  place-items: center;
  /* Dark rounded stage card that makes the hologram pop and enables screen blend of the black PNG bg */
  background: radial-gradient(ellipse at center, oklch(0.25 0.06 265) 0%, oklch(0.18 0.05 265) 60%, oklch(0.14 0.04 265) 100%);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 40px 80px -30px oklch(0.35 0.15 265 / 0.35),
    0 0 0 1px oklch(0.9 0.02 265 / 0.8) inset,
    0 0 120px -20px oklch(0.6 0.2 275 / 0.4) inset;
}
[data-theme="dark"] .hero-stage {
  background: radial-gradient(ellipse at center, oklch(0.22 0.06 265) 0%, oklch(0.14 0.04 265) 60%, oklch(0.1 0.03 265) 100%);
  box-shadow:
    0 40px 80px -30px oklch(0.4 0.2 275 / 0.5),
    0 0 0 1px oklch(0.4 0.1 265 / 0.4) inset,
    0 0 120px -20px oklch(0.6 0.25 275 / 0.5) inset;
}
.hero-stage-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Cover so the wider 16:11 stage is filled edge-to-edge with the hologram */
  object-fit: cover;
  object-position: center 30%;
  /* PNG has black background — screen blend removes black, keeps bright hologram + lightning.
     IMPORTANT: no filter on this element — filter creates an isolated stacking context that
     breaks mix-blend-mode with the page background. */
  mix-blend-mode: screen;
  animation: hero-float 6s ease-in-out infinite;
  z-index: 3;
}
[data-theme="dark"] .hero-stage-image {
  mix-blend-mode: screen;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Orbital rings */
.hero-orbits {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid oklch(from var(--color-primary) l c h / 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin 24s linear infinite;
}
.orbit::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 12px var(--color-accent-cyan), 0 0 24px var(--color-accent-cyan);
  top: -5px; left: 50%;
  transform: translateX(-50%);
}
.orbit-1 { width: 90%; aspect-ratio: 1; animation-duration: 20s; }
.orbit-2 { width: 70%; aspect-ratio: 1; animation-duration: 30s; animation-direction: reverse; border-color: oklch(from var(--color-accent-violet) l c h / 0.35); }
.orbit-2::before { background: var(--color-accent-violet); box-shadow: 0 0 12px var(--color-accent-violet), 0 0 24px var(--color-accent-violet); }
.orbit-3 { width: 55%; aspect-ratio: 1; animation-duration: 16s; border-color: oklch(from var(--color-accent-pink) l c h / 0.3); border-style: dashed; }
.orbit-3::before { background: var(--color-accent-pink); box-shadow: 0 0 12px var(--color-accent-pink); }

@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Glowing halo behind figure */
/* Subtle blue-violet halo behind hologram — sits behind the image and screen-blends with it */
.hero-halo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, oklch(0.75 0.18 260 / 0.35) 0%, oklch(0.7 0.15 300 / 0.22) 40%, transparent 70%);
  filter: blur(45px);
  animation: halo-pulse 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}
[data-theme="dark"] .hero-halo {
  background: radial-gradient(circle, oklch(0.6 0.22 260 / 0.55) 0%, oklch(0.55 0.2 300 / 0.35) 40%, transparent 70%);
}
@keyframes halo-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Lightning bolts (SVG animated) */
.hero-lightning {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.lightning-path {
  fill: none;
  stroke: url(#lightning-gradient);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px oklch(0.75 0.2 240)) drop-shadow(0 0 12px oklch(0.75 0.2 260));
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: lightning-flash 3.4s ease-in-out infinite;
  opacity: 0;
}
.lightning-path.bolt-2 { animation-delay: 1.7s; }
@keyframes lightning-flash {
  0%, 100% { opacity: 0; stroke-dashoffset: 300; }
  8% { opacity: 1; stroke-dashoffset: 0; }
  20% { opacity: 0.9; }
  25% { opacity: 0; }
  30% { opacity: 0.7; }
  35% { opacity: 0; }
}

/* Floating particle dots */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent-cyan);
  box-shadow: 0 0 8px currentColor;
  opacity: 0.7;
  animation: particle-drift 8s ease-in-out infinite;
}
.particle:nth-child(1) { top: 20%; left: 15%; color: var(--color-accent-cyan); animation-delay: 0s; }
.particle:nth-child(2) { top: 70%; left: 10%; color: var(--color-accent-violet); animation-delay: 1.5s; width: 4px; height: 4px; }
.particle:nth-child(3) { top: 30%; right: 12%; color: var(--color-accent-pink); animation-delay: 3s; }
.particle:nth-child(4) { top: 75%; right: 18%; color: var(--color-accent-cyan); animation-delay: 4.5s; width: 5px; height: 5px; }
.particle:nth-child(5) { top: 50%; left: 5%; color: var(--color-accent-violet); animation-delay: 2s; width: 4px; height: 4px; }
.particle:nth-child(6) { top: 15%; right: 25%; color: var(--color-accent-cyan); animation-delay: 5s; width: 3px; height: 3px; }
@keyframes particle-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(20px, -30px) scale(1.4); opacity: 1; }
}

/* Stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-16);
  padding: var(--space-6);
  background: oklch(from var(--color-surface) l c h / 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Trusted-by / Logo strip ---------- */
.trusted {
  padding-block: var(--space-16);
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.trusted-inner { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; justify-content: space-between; }
.trusted-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.trusted-logos {
  display: flex;
  gap: clamp(var(--space-4), 2.4vw, var(--space-8));
  flex-wrap: wrap;
  align-items: center;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2);
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color var(--transition-interactive), border-color var(--transition-interactive), transform var(--transition-interactive);
}
.logo-chip:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-divider);
  transform: translateY(-1px);
}
.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}
.logo-chip:hover .logo-mark { transform: rotate(-4deg); }
.logo-name {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* Category tinting — mirrors work-card tag colours */
.logo-chip-beauty { color: oklch(from var(--color-accent-pink) 0.55 c h); }
.logo-chip-wine { color: #8B2A20; }
.logo-chip-travel { color: oklch(from var(--color-accent-cyan) 0.45 c h); }
.logo-chip-ai { color: oklch(from var(--color-accent-violet) 0.55 c h); }
@media (max-width: 720px) {
  .trusted-inner { justify-content: center; }
  .trusted-logos { justify-content: center; gap: var(--space-3); }
  .logo-chip { padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); }
  .logo-mark { width: 28px; height: 28px; }
  .logo-name { font-size: var(--text-xs); }
}

/* ---------- Services ---------- */

.services { background: var(--color-bg); }
.services-header { text-align: center; margin-bottom: var(--space-16); display: flex; flex-direction: column; align-items: center; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}
.service-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--transition-interactive);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--grad-brand-soft);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.2);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.service-card p { color: var(--color-text-muted); font-size: var(--text-base); }
.service-card ul {
  list-style: none;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-card ul li {
  font-size: var(--text-sm);
  color: var(--color-text);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.service-card ul li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--grad-brand);
  border-radius: 50%;
  margin-top: 8px;
}

/* ---------- Service details (deep-dive expand) ---------- */
.service-details {
  margin-top: var(--space-5);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}
.service-details summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-primary);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--transition-interactive);
  user-select: none;
}
.service-details summary::-webkit-details-marker { display: none; }
.service-details summary:hover { color: var(--color-primary-hover); }
.service-details summary span {
  transition: transform var(--transition-interactive);
  display: inline-block;
}
.service-details[open] summary span { transform: rotate(90deg); }
.service-details-body {
  margin-top: var(--space-5);
  animation: fadeInDown 0.3s ease-out;
}
.service-details-body h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin: var(--space-5) 0 var(--space-3);
}
.service-details-body h4:first-child { margin-top: 0; }
.service-details-body p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.service-details-body .detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 0;
  padding-top: 0;
  gap: var(--space-2);
}
.service-details-body .detail-list li {
  font-size: var(--text-sm);
  color: var(--color-text);
  padding-left: 0;
}
.detail-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-interactive), color var(--transition-interactive);
}
.detail-cta:hover {
  color: var(--color-primary-hover);
  border-bottom-color: currentColor;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Case studies / Selected work ---------- */
.work {
  padding-block: var(--space-24);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-offset) 100%);
  position: relative;
  overflow: hidden;
}
.work::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 50% at 15% 20%, oklch(from var(--color-accent-cyan) l c h / 0.08) 0%, transparent 60%),
    radial-gradient(45% 45% at 85% 80%, oklch(from var(--color-accent-violet) l c h / 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.work > .container { position: relative; z-index: 1; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.work-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.work-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--transition-interactive);
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.work-card:hover::before { opacity: 1; }
.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}
.work-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  border: 1px solid var(--color-divider);
}
.work-tag-beauty { background: oklch(from var(--color-accent-pink) l c h / 0.12); color: oklch(from var(--color-accent-pink) 0.45 c h); border-color: oklch(from var(--color-accent-pink) l c h / 0.2); }
.work-tag-wine { background: oklch(from #C0392B l c h / 0.1); color: #8B2A20; border-color: oklch(from #C0392B l c h / 0.2); }
.work-tag-travel { background: oklch(from var(--color-accent-cyan) l c h / 0.15); color: oklch(from var(--color-accent-cyan) 0.4 c h); border-color: oklch(from var(--color-accent-cyan) l c h / 0.25); }
.work-tag-ai { background: oklch(from var(--color-accent-violet) l c h / 0.13); color: oklch(from var(--color-accent-violet) 0.45 c h); border-color: oklch(from var(--color-accent-violet) l c h / 0.22); }
.work-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-success);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.work-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 8px oklch(from var(--color-success) l c h / 0.5);
  animation: pulse-live 2s ease-in-out infinite;
}
.work-status-soon { color: var(--color-warning); }
.work-status-soon::before { background: var(--color-warning); box-shadow: 0 0 8px oklch(from var(--color-warning) l c h / 0.5); }
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}
.work-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.work-blurb {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--space-5);
}
.work-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-4);
}
.work-highlights li {
  font-size: var(--text-sm);
  color: var(--color-text);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.work-highlights li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  background: var(--grad-brand);
  border-radius: 50%;
  margin-top: 8px;
}
.work-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.work-link:hover { color: var(--color-primary-hover); }
.work-link-muted {
  color: var(--color-text-faint);
  font-weight: 500;
  font-style: italic;
}
.work-cta {
  margin-top: var(--space-16);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.work-cta p {
  font-size: var(--text-lg);
  color: var(--color-text);
  font-weight: 500;
  margin: 0;
}

/* ---------- Process ---------- */
.process {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-offset) 50%, var(--color-bg) 100%);
  position: relative;
}
.process::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('./assets/energy-ribbon.png');
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  mix-blend-mode: multiply;
  pointer-events: none;
}
[data-theme="dark"] .process::before {
  opacity: 0.18;
  mix-blend-mode: screen;
}

.process-header { text-align: center; margin-bottom: var(--space-16); display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  position: relative;
  z-index: 2;
}
.step {
  padding: var(--space-6);
  background: oklch(from var(--color-surface) l c h / 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
}
.step-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.step p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ---------- About ---------- */

.about {
  background: var(--color-surface);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.about-copy .section-title { max-width: 18ch; }
.about-copy p { color: var(--color-text-muted); font-size: var(--text-lg); margin-top: var(--space-4); }
.about-list {
  list-style: none;
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-4);
}
.about-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.about-list li strong { color: var(--color-text); }
.check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.about-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--grad-hero-bg);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  padding: var(--space-6);
}
.about-visual .stat-card {
  position: absolute;
  padding: var(--space-4) var(--space-5);
  background: oklch(from var(--color-surface) l c h / 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  font-size: var(--text-sm);
  min-width: 160px;
}
.about-visual .stat-card .big {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1;
  display: block;
}
.about-visual .stat-card .label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.about-visual .card-1 { top: 12%; left: 8%; animation: card-float 6s ease-in-out infinite; }
.about-visual .card-2 { bottom: 15%; right: 8%; animation: card-float 6s ease-in-out 2s infinite; }
.about-visual .card-3 { top: 45%; right: 12%; animation: card-float 6s ease-in-out 4s infinite; }
@keyframes card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.about-visual svg.brain {
  width: 60%;
  height: auto;
  color: var(--color-primary);
  opacity: 0.85;
}

/* ---------- Testimonials ---------- */

.testimonials { background: var(--color-bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}
.quote-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
}
.quote-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  opacity: 0.5;
}
.quote-card blockquote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  font-style: normal;
}
.quote-author { display: flex; align-items: center; gap: var(--space-3); }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
}
.author-name { font-weight: 600; font-size: var(--text-sm); color: var(--color-text); }
.author-role { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---------- CTA ---------- */

.cta-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta-inner {
  padding: clamp(var(--space-10), 6vw, var(--space-20));
  background: var(--grad-brand);
  border-radius: var(--radius-2xl);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12) 0%, transparent 40%);
  pointer-events: none;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: white;
  max-width: 24ch;
  margin: 0 auto;
  position: relative;
}
.cta-inner p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.9);
  margin: var(--space-4) auto var(--space-8);
  max-width: 50ch;
  position: relative;
}
.cta-inner .btn-primary {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  position: relative;
}
.cta-inner .btn-primary:hover { background: rgba(255,255,255,0.95); transform: translateY(-2px); }

/* ---------- Contact / Footer ---------- */

.contact { background: var(--color-surface); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.contact-info h2 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; margin-bottom: var(--space-4); max-width: 16ch; }
.contact-info p { color: var(--color-text-muted); font-size: var(--text-lg); margin-bottom: var(--space-8); }
.contact-details { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-item {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
  text-decoration: none;
}
.contact-item:hover { color: var(--color-primary); }
.contact-item .icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--grad-brand-soft);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.2);
  display: grid; place-items: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.contact-item .icon svg { width: 20px; height: 20px; }
.contact-item .contact-label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item .contact-value { font-size: var(--text-base); font-weight: 500; margin-top: 2px; display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.contact-item .contact-hint { font-size: var(--text-xs); font-weight: 400; color: var(--color-text-muted); }

.contact-form {
  padding: var(--space-8);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.field input, .field textarea, .field select {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  font-family: var(--font-body);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* Footer */
.site-footer {
  padding-block: var(--space-12) var(--space-6);
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.footer-brand p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 32ch;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { color: var(--color-text-muted); text-decoration: none; font-size: var(--text-sm); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

/* ---------- Reveal on scroll ---------- */
/* Fallback: always visible. JS + IntersectionObserver adds .is-visible when it enters. */
.reveal {
  opacity: 1;
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.js-reveal .reveal {
  opacity: 0;
  filter: blur(4px);
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  filter: blur(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: var(--space-10); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .mobile-toggle {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text);
    background: var(--color-surface);
  }
  .brand-mark-name .sub { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-8); }
  .field-row { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.75rem); }
  .hero-stage { max-width: 100%; aspect-ratio: 4/5; margin-top: var(--space-4); }
  .services-grid, .process-steps, .testimonials-grid, .work-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: var(--space-8); }
  .nav-actions .btn { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }

  /* Mobile nav overlay */
  .nav-links.open {
    display: flex;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: var(--space-6);
    flex-direction: column;
    gap: var(--space-4);
    border-bottom: 1px solid var(--color-divider);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; padding: var(--space-4); }
  .about-visual .stat-card { min-width: 130px; padding: var(--space-3); }
}

/* ============================================================
   CALLBACK BUTTON + MODAL
   ============================================================ */

/* Contact item as a <button> */
.contact-item-btn {
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, rgba(0,199,255,0.04), rgba(122,92,255,0.03));
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  position: relative;
  padding-right: calc(var(--space-6) + 20px);
  transition: transform 240ms cubic-bezier(0.16,1,0.3,1), box-shadow 240ms, border-color 240ms, background 240ms;
}
.contact-item-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
  box-shadow: 0 12px 28px -18px rgba(42,107,255,0.45);
  background: linear-gradient(180deg, rgba(0,199,255,0.08), rgba(122,92,255,0.05));
}
.contact-item-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.contact-item .contact-chev {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  transition: transform 240ms, color 240ms;
}
.contact-item-btn:hover .contact-chev {
  transform: translateY(-50%) translateX(4px);
  color: var(--color-primary);
}

/* Icon with pulse */
.icon-live {
  position: relative;
  overflow: visible;
  background: linear-gradient(135deg, #00C7FF22, #7A5CFF22);
  color: var(--color-primary);
}
.pulse-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16C784;
  box-shadow: 0 0 0 0 rgba(22,199,132,0.55);
  animation: pulseDot 1.8s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(22,199,132,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(22,199,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,199,132,0); }
}
.pulse-dot-inline {
  position: static;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* LIVE tag */
.live-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16C78422, #16C78411);
  color: #109463;
  border: 1px solid #16C78455;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
}
[data-theme="dark"] .live-tag {
  color: #4AE0A2;
  border-color: #16C78488;
  background: linear-gradient(135deg, #16C78433, #16C7841a);
}

/* ============= MODAL ============= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 30, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade 240ms ease-out;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl, 20px);
  box-shadow: 0 40px 80px -20px rgba(10, 14, 30, 0.35), 0 0 0 1px rgba(0,199,255,0.06);
  overflow: hidden;
  animation: modalRise 320ms cubic-bezier(0.16,1,0.3,1);
  max-height: calc(100vh - var(--space-8));
  overflow-y: auto;
}
.modal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,199,255,0.35), rgba(122,92,255,0.25), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 200ms, transform 200ms;
}
.modal-close:hover {
  background: color-mix(in srgb, var(--color-bg) 60%, var(--color-surface));
  transform: rotate(90deg);
}
.modal-body {
  padding: var(--space-8) var(--space-6) var(--space-6);
}
.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #109463;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16C78422, #16C78411);
  border: 1px solid #16C78455;
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .modal-eyebrow { color: #4AE0A2; }
.modal-title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-3);
}
.modal-sub {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-6);
  line-height: 1.55;
}

/* Modal form */
.callback-form .field { margin-bottom: var(--space-4); }
.callback-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.callback-form input[type="text"],
.callback-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  transition: border-color 200ms, box-shadow 200ms, background 200ms;
}
.callback-form input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(42,107,255,0.14);
  background: var(--color-surface);
}
.field-radio .radio-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.radio-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.radio-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all 200ms;
  background: var(--color-bg);
}
.radio-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-chip:hover {
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
  color: var(--color-text);
}
.radio-chip:has(input:checked) {
  background: linear-gradient(135deg, rgba(0,199,255,0.12), rgba(122,92,255,0.10));
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.btn-callback {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 1rem;
  margin-top: var(--space-2);
}
.btn-callback-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-callback:disabled { opacity: 0.7; cursor: not-allowed; }

.modal-status {
  min-height: 1.2em;
  font-size: 0.85rem;
  text-align: center;
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
}
.modal-privacy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  margin: var(--space-4) 0 0;
}

/* Success state */
.modal-success {
  text-align: center;
  padding: var(--space-4) 0;
}
.modal-success .success-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: linear-gradient(135deg, #16C78433, #16C7841a);
  border: 2px solid #16C784;
  color: #109463;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 500ms cubic-bezier(0.16,1,0.3,1);
}
[data-theme="dark"] .modal-success .success-ring { color: #4AE0A2; }
@keyframes successPop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-success h3 {
  font-family: var(--font-display, inherit);
  font-size: 1.6rem;
  margin: 0 0 var(--space-2);
}
.modal-success p {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-5);
}

/* Mobile modal tweaks */
@media (max-width: 640px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-card {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
  }
  .modal-body { padding: var(--space-6) var(--space-5) var(--space-5); }
  .contact-item-btn { padding-right: var(--space-5); }
  .contact-item .contact-chev { right: var(--space-3); }
}
