/* ============================================================
   DESIGN TOKENS
   Brand colors sourced from OLG Logo Main.svg
   ============================================================ */
:root {
  /* Brand palette */
  --color-brand:       #00a4ff;   /* OLG logo cyan (wreath/scales) */
  --color-navy:        #01295f;   /* OLG logo navy (text elements) */
  --color-gold:        #7bd3ff;   /* Section labels (founder lock 2026-05-19: no gold/warm tones; this is the brand glow cyan) */
  --color-black:       #000000;
  --color-dark:        #090e1a;   /* Page background */
  --color-surface:     #0d1424;   /* Card / section bg */
  --color-surface-2:   #131d30;   /* Elevated card */
  --color-border:      rgba(0, 164, 255, 0.12);
  --color-overlay:     rgba(0, 10, 30, 0.62);

  /* Text */
  --color-text-primary:   #ffffff;
  --color-text-secondary: #b0bfd4;
  --color-text-muted:     #6b7e9b;

  /* Typography
     IM Fell English is the closest free Google Font to Baskerville BT.
     It gives the same Old English serifs for headings. */
  --font-heading:  'IM Fell English', 'Baskerville BT', 'Baskerville Old Face', Baskerville, 'Times New Roman', serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --font-label:    'Inter', system-ui, sans-serif;

  /* Type scale */
  --text-hero:     clamp(3.25rem, 7vw, 6.5rem);
  --text-h1:       clamp(2.25rem, 4.5vw, 3.75rem);
  --text-h2:       clamp(1.75rem, 3.5vw, 2.75rem);
  --text-h3:       clamp(1.25rem, 2vw, 1.5rem);
  --text-body:     1rem;
  --text-sm:       0.875rem;
  --text-label:    0.6875rem;   /* 11px — gold uppercase section label */

  /* Spacing */
  --space-section: clamp(4.5rem, 9vw, 8rem);
  --space-gap:     clamp(1.25rem, 2.5vw, 2rem);

  /* Radii */
  --radius-pill:   999px;
  --radius-card:   1rem;
  --radius-sm:     0.5rem;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;

  /* Shadows */
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-btn:   0 4px 20px rgba(0, 164, 255, 0.35);
  --glow-brand:   0 0 24px rgba(0, 164, 255, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-dark);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* ============================================================
   TYPOGRAPHY IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: #1ab2ff;
  box-shadow: 0 6px 28px rgba(0, 164, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline {
  background: transparent;
  color: var(--color-brand);
  border: 1.5px solid var(--color-brand);
}

.btn-outline:hover {
  background: rgba(0, 164, 255, 0.1);
}

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

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal,
.reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.visible,
.reveal-hero.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-hero {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              padding var(--duration-base) var(--ease-out);
}

.navbar.sticky {
  background: rgba(9, 14, 26, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 164, 255, 0.12),
              0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 0.875rem 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(1280px, 100% - 3rem);
  margin-inline: auto;
}

.navbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  /* Pure-white logo + a soft dark halo so it stays crisp and legible over
     bright video frames (was washing out / looking faded at the top). */
  filter: brightness(0) invert(1)
          drop-shadow(0 0 1px rgba(0, 0, 0, 0.9))
          drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}

.logo-fallback {
  display: none;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.logo-subtext {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-pill);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Animated header contact pill: breathing ring around the phone icon,
   number revealed in full on hover. Subtle, non-intrusive. */
.navbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.375rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast),
              border-color var(--duration-fast),
              background var(--duration-fast);
}

.navbar-contact:hover {
  color: #fff;
  border-color: rgba(0, 164, 255, 0.35);
  background: rgba(0, 164, 255, 0.08);
}

.contact-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--color-brand);
  background: rgba(0, 164, 255, 0.1);
}

.contact-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 164, 255, 0.5);
  animation: contactPulse 3.2s var(--ease-out) infinite;
}

@keyframes contactPulse {
  0%        { transform: scale(1);   opacity: 0.7; }
  60%, 100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-ring::after { animation: none; opacity: 0; }
}

.contact-number {
  letter-spacing: 0.01em;
}

.btn-nav-cta {
  padding: 0.5625rem 1.375rem;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.btn-nav-cta:hover {
  background: #1ab2ff;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  padding: 0.25rem;
  margin-left: auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

@media (max-width: 900px) {
  /* Tighter bar on small screens so it covers less of the hero */
  .navbar { padding: 0.75rem 0; }

  /* Soft top scrim (only before sticky kicks in) keeps the logo + menu icon
     readable over bright video without a hard bar covering the hero */
  .navbar:not(.sticky)::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(6, 10, 20, 0.7), rgba(6, 10, 20, 0));
    pointer-events: none;
  }

  /* When the dropdown is open, make the whole header a solid panel so the menu
     no longer floats over (and block) the video — it reads as one surface */
  .navbar:has(.nav-menu.active),
  .navbar.menu-open {
    background: var(--color-dark);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  }
  .navbar:has(.nav-menu.active)::before,
  .navbar.menu-open::before { display: none; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-dark);
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    display: block;            /* was inline -> padding overflowed, overlapping tap targets */
    border-radius: 0;
    padding: 0.95rem 1.75rem;
    width: 100%;
    font-size: 1rem;
    text-align: center;
  }

  .navbar-right {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

/* ============================================================
   HERO — VIDEO BACKGROUND
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-dark);
  overflow: hidden;
}

/* Film stage: a tall, immersive band (cover-cropped to the action) on laptop;
   stepped down for tablet and phone so the video stays prominent on every
   screen without filling the whole viewport. */
.hero-media {
  position: relative;
  width: 100%;
  height: 62svh;
  max-height: 740px;
  overflow: hidden;
  background: #060a14;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  z-index: 0;
}

/* Tablet / iPad: keep the film large but a touch shorter than desktop */
@media (max-width: 1024px) {
  .hero-media { height: 54svh; }
}

/* Soft fade only at the foot of the film, melting it into the content below */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(6, 10, 20, 0) 58%,
    rgba(6, 10, 20, 0.45) 84%,
    var(--color-dark) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 100% - 3rem);
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 4rem) 1rem clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

.br-desktop {
  display: none;
}

@media (min-width: 768px) {
  .br-desktop { display: block; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The film is now an in-flow band, so the floating scroll cue is redundant */
.hero-scroll-indicator { display: none; }

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--color-brand));
  animation: scrollLine 2.4s ease-in-out infinite;
}

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

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: rgba(0, 164, 255, 0.06);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.125rem 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.trust-rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-stars {
  color: #7bd3ff;   /* No warm tones per founder lock */
  font-size: 1rem;
  letter-spacing: 2px;
}

.trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.trust-score {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.trust-source {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--color-border);
}

.trust-badges {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* ============================================================
   PRACTICE AREAS
   ============================================================ */
.services {
  padding: var(--space-section) 0;
  background: var(--color-dark);
}

.practice-group {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  scroll-margin-top: 6rem;   /* Offset for fixed navbar on anchor jump */
}

.practice-group:last-child {
  margin-bottom: 0;
}

.practice-group-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 400;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.practice-group-sub {
  font-size: var(--text-sm);
  color: var(--color-brand);
  letter-spacing: 0.04em;
  margin-bottom: 1.75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-out-expo),
              border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 164, 255, 0.35);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(0, 164, 255, 0.1);
}

.card-image {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon {
  width: 42px;
  height: 42px;
  color: #7bd3ff;
  filter: drop-shadow(0 2px 10px rgba(0, 164, 255, 0.35));
  transition: transform var(--duration-base) var(--ease-out-expo);
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card:hover .card-icon {
  transform: translateY(-3px) scale(1.06);
}

.card-label {
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  padding: 1.25rem 1.5rem 0.25rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  padding: 0 1.5rem 0.75rem;
  line-height: 1.25;
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: 0 1.5rem 1rem;
  flex: 1;
  line-height: 1.6;
}

.card-link {
  display: block;
  padding: 0.875rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brand);
  border-top: 1px solid var(--color-border);
  transition: color var(--duration-fast), letter-spacing var(--duration-fast);
}

.card-link:hover {
  color: #fff;
  letter-spacing: 0.02em;
}


/* ============================================================
   PROCESS — 3 STEPS
   ============================================================ */
.process {
  padding: var(--space-section) 0;
  background: var(--color-dark);
  position: relative;
}

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

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

.process-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color var(--duration-base),
              transform var(--duration-base) var(--ease-out-expo);
}

.process-step:hover {
  border-color: rgba(0, 164, 255, 0.3);
  transform: translateY(-4px);
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-brand);
  font-weight: 700;
}

.process-step h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
}

.process-connector {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 80%);
  bottom: calc(var(--space-section) + 6rem);
  pointer-events: none;
  opacity: 0.7;
}

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

  .process-connector {
    display: none;
  }
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team {
  padding: var(--space-section) 0;
  background: var(--color-surface);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.team-card {
  flex: 0 0 auto;
  width: 100%;                 /* phones: one per row, full width */
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out-expo),
              border-color var(--duration-base),
              box-shadow var(--duration-base);
}

/* Responsive columns. Fixed widths (not flex-grow) keep every card identical
   and let any wrapped row center cleanly. The -1px absorbs sub-pixel rounding
   so the intended count never wraps early. */
@media (min-width: 600px) {                 /* 2 per row — large phones */
  .team-card { width: calc((100% - 1.5rem) / 2 - 1px); }
}
@media (min-width: 768px) {                 /* 3 per row — tablets */
  .team-card { width: calc((100% - 3rem) / 3 - 1px); }
}
@media (min-width: 1024px) {                /* all 5 on one row — laptop + up */
  .team-card { width: calc((100% - 6rem) / 5 - 1px); }
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 164, 255, 0.3);
  box-shadow: var(--shadow-card);
}

.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #0d1a2e 0%, #05101f 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  /* Feather the lower edge into the card so cutouts sit in the scene
     instead of floating on it */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, rgba(0, 0, 0, 0.35) 96%, rgba(0, 0, 0, 0.15) 100%);
  mask-image: linear-gradient(to bottom, #000 78%, rgba(0, 0, 0, 0.35) 96%, rgba(0, 0, 0, 0.15) 100%);
}

.team-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.team-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.team-title {
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.625rem;
}

.team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: var(--space-section) 0;
  background: var(--color-dark);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.about-text > p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.founder-quote {
  margin-top: 2rem;
  border-left: 3px solid var(--color-brand);
  padding-left: 1.5rem;
}

.founder-quote p {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.founder-quote cite {
  font-size: var(--text-sm);
  color: var(--color-gold);
  font-style: normal;
  letter-spacing: 0.04em;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  transition: border-color var(--duration-base),
              transform var(--duration-base) var(--ease-out);
}

.stat:hover {
  border-color: rgba(0, 164, 255, 0.3);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 400;
  color: var(--color-brand);
  line-height: 1.15;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.about-cta {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

@media (max-width: 800px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews {
  padding: var(--space-section) 0;
  background: var(--color-surface);
}

.greviews {
  max-width: 880px;
  margin: 0 auto;
}

.greviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: var(--space-gap);
}

.greviews-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.greviews-meta {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.greviews-title {
  font-weight: 600;
  color: var(--color-text-primary);
}

.greviews-rating {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.greviews-rating:empty {
  display: none;
}

.greviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-gap);
}

.greview-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 4vw, 3rem);
  transition: border-color var(--duration-base) var(--ease-out);
}

.greview-card:hover {
  border-color: rgba(0, 164, 255, 0.3);
}

.greview-stars {
  color: var(--color-gold);
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.greview-quote p {
  font-family: var(--font-heading);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.greview-author {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.greview-name {
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
}

.greview-source {
  font-size: var(--text-sm);
  color: var(--color-gold);
  letter-spacing: 0.06em;
}

@media (min-width: 720px) {
  .greviews-grid:has(.greview-card:nth-child(2)) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .greviews-grid:has(.greview-card:nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  padding: var(--space-section) 0;
  background: var(--color-dark);
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto 3rem;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  transition: transform var(--duration-base) var(--ease-out-expo),
              border-color var(--duration-base);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 164, 255, 0.3);
}

.contact-icon {
  width: 34px;
  height: 34px;
  color: #7bd3ff;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 2px 8px rgba(0, 164, 255, 0.3));
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 0.125rem;
}

.contact-card a {
  color: var(--color-brand);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--duration-fast);
}

.contact-card a:hover {
  color: #fff;
}

.contact-card p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.contact-address {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* Two-office grid with embedded maps */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.office-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--duration-base),
              transform var(--duration-base) var(--ease-out-expo);
}

.office-card:hover {
  border-color: rgba(0, 164, 255, 0.3);
  transform: translateY(-4px);
}

.office-info {
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.office-info .section-label {
  margin-bottom: 0;
}

.map-container {
  border-top: 1px solid var(--color-border);
  flex: 1;
}

.map-container iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
  /* Blends the default light map into the dark theme */
  filter: invert(0.9) hue-rotate(180deg) saturate(0.7) brightness(0.9);
}

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

.contact-cta {
  text-align: center;
  max-width: 480px;
  margin-inline: auto;
}

.contact-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.625rem;
}

.contact-cta p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: clamp(3rem, 6vw, 5rem) 0 3rem;
}

.footer-column h4 {
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.footer-column p,
.footer-column a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  transition: color var(--duration-fast);
}

.footer-column a:hover {
  color: var(--color-text-primary);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  transition: background var(--duration-fast), color var(--duration-fast),
              transform var(--duration-fast);
}

.social-icon:hover {
  background: var(--color-brand);
  color: #fff;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

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

@media (max-width: 560px) {
  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   CHATBOX WIDGET
   ============================================================ */
.chatbox-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
}

.chatbox-toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 164, 255, 0.45);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast);
}

.chatbox-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 164, 255, 0.6);
}

.chatbox-container {
  display: none;
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: min(360px, calc(100vw - 2rem));
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: chatboxOpen var(--duration-base) var(--ease-out-expo);
}

.chatbox-container.open {
  display: flex;
  flex-direction: column;
}

@keyframes chatboxOpen {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.chatbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--color-navy);
  border-bottom: 1px solid var(--color-border);
}

.chatbox-header-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.chatbox-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.chatbox-header h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
}

.chatbox-header button {
  font-size: 1.375rem;
  color: var(--color-text-muted);
  line-height: 1;
  transition: color var(--duration-fast);
}

.chatbox-header button:hover {
  color: var(--color-text-primary);
}

.chatbox-body {
  flex: 1;
  max-height: 260px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  max-width: 85%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.875rem;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.bot-message {
  background: rgba(0, 164, 255, 0.12);
  border: 1px solid rgba(0, 164, 255, 0.18);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-message {
  background: var(--color-brand);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

.chatbox-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.chatbox-quick-replies button {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--color-brand);
  color: var(--color-brand);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.chatbox-quick-replies button:hover {
  background: var(--color-brand);
  color: #fff;
}

.chatbox-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.chatbox-input input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.5625rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--duration-fast);
}

.chatbox-input input:focus {
  border-color: var(--color-brand);
}

.chatbox-input input::placeholder {
  color: var(--color-text-muted);
}

.chatbox-input button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.chatbox-input button:hover {
  background: #1ab2ff;
  transform: scale(1.05);
}

/* ============================================================
   CONSULTATION MODAL (consultation-form.js controls open/close)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn var(--duration-base) var(--ease-out);
}

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

.modal-box {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 3rem);
  width: min(560px, 100%);
  max-height: 90svh;
  overflow-y: auto;
  animation: modalSlideUp var(--duration-slow) var(--ease-out-expo);
  position: relative;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

.modal-box h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.modal-box > p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.125rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.375rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6875rem 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7e9b' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: rgba(255, 255, 255, 0.04);
  padding-right: 2.5rem;
}

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

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

.modal-submit {
  width: 100%;
  padding: 0.9375rem;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: background var(--duration-fast), transform var(--duration-fast);
}

.modal-submit:hover {
  background: #1ab2ff;
  transform: translateY(-1px);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1;
  transition: color var(--duration-fast);
}

.modal-close:hover {
  color: var(--color-text-primary);
}

.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #22c55e;
}

/* ============================================================
   RESPONSIVE — GLOBAL MOBILE
   ============================================================ */
@media (max-width: 640px) {
  /* On phones the full-frame cinematic ratio is too short, so give the film a
     taller stage (cover-cropped to the action) — it reaches down toward the
     headline and reads much better than the thin ribbon. */
  .hero-media {
    aspect-ratio: auto;
    height: 44svh;
    max-height: none;
  }
  .hero-video {
    object-fit: cover;
    object-position: center 42%;
  }

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

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

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

  .trust-bar-inner {
    justify-content: flex-start;
  }
}

/* ============================================================
   SCROLLBAR (Webkit)
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-dark); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 164, 255, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-brand); }

/* Selection */
::selection {
  background: rgba(0, 164, 255, 0.3);
  color: #fff;
}

/* ============================================================
   HERO SOUND TOGGLE + CONTINUE CONTROL
   ============================================================ */
.hero-sound-toggle {
  position: absolute;
  bottom: 2rem;
  right: clamp(1.5rem, 5vw, 4rem);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 12, 24, 0.55);
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast);
}
.hero-sound-toggle:hover {
  border-color: var(--color-brand);
  background: rgba(5, 12, 24, 0.78);
  transform: translateY(-1px);
}
.hero-sound-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-sound-toggle .icon-unmuted { display: none; }
.hero-sound-toggle.is-on .icon-muted { display: none; }
.hero-sound-toggle.is-on .icon-unmuted { display: inline; }
.hero-sound-toggle.is-on { border-color: var(--color-brand); color: var(--color-brand); }

button.hero-scroll-indicator {
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .hero-sound-label { display: none; }
  .hero-sound-toggle { padding: 0.55rem; }
}

/* ============================================================
   ADA ASSISTANT — avatar, nudge, rows, contact card, typing
   ============================================================ */
.ada-avatar {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.ada-avatar svg { display: block; border-radius: 50%; }
.ada-avatar-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--color-navy);
}

/* Toggle button: icon swap + unread badge */
.chatbox-toggle { position: relative; }
.chatbox-toggle-close { display: none; }
.chatbox-widget.is-open .chatbox-toggle-chat { display: none; }
.chatbox-widget.is-open .chatbox-toggle-close { display: inline; }
.chatbox-toggle-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-dark);
}

/* Header meta */
.chatbox-header-meta { display: flex; flex-direction: column; line-height: 1.2; }
.chatbox-header-sub { font-size: 0.6875rem; color: var(--color-text-muted); }

/* Proactive nudge bubble */
.ada-nudge {
  position: absolute;
  bottom: calc(100% + 0.75rem);
  right: 0;
  width: min(290px, calc(100vw - 2rem));
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  animation: chatboxOpen var(--duration-base) var(--ease-out-expo);
}
.ada-nudge-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
}
.ada-nudge-inner:hover { background: rgba(0, 164, 255, 0.06); border-radius: var(--radius-card); }
.ada-nudge-text { display: flex; flex-direction: column; gap: 0.15rem; }
.ada-nudge-text strong { font-size: 0.8125rem; color: var(--color-text-primary); }
.ada-nudge-text span { font-size: 0.78rem; color: var(--color-text-secondary); line-height: 1.4; }
.ada-nudge-close {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
}
.ada-nudge-close:hover { color: var(--color-text-primary); }

/* Message rows with mini avatar */
.chat-row { display: flex; align-items: flex-end; gap: 0.5rem; }
.chat-mini-avatar {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a3d6b, #00a4ff);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bot-row .message { margin-bottom: 0; }
.message p + p { margin-top: 0.4rem; }

/* Typing dots */
.typing-indicator { display: inline-flex; gap: 4px; align-items: center; padding: 0.75rem 0.9rem; }
.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  opacity: 0.5;
  animation: adaTyping 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes adaTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* In-chat contact card */
.chat-contact-card {
  align-self: stretch;
  background: rgba(0, 164, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--text-sm);
}
.cc-row { display: flex; gap: 0.75rem; }
.cc-label {
  flex-shrink: 0;
  width: 56px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  padding-top: 2px;
}
.cc-values { display: flex; flex-direction: column; gap: 0.15rem; }
.cc-values a { color: var(--color-brand); }
.cc-values a:hover { text-decoration: underline; }
.cc-values span { color: var(--color-text-secondary); }

/* Chatbox disclaimer */
.chatbox-disclaimer {
  padding: 0 1.25rem 0.875rem;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .typing-indicator span { animation: none; }
  .ada-nudge { animation: none; }
}

/* ============================================================
   WHERE WE SERVE — INTERACTIVE GLOBE
   ============================================================ */
.serve {
  position: relative;
  padding: var(--space-section) 0 calc(var(--space-section) * 0.4);
  background: #04060c;
  overflow: hidden;
}
.serve::before {
  /* faint radial vignette behind the globe */
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 60%, rgba(0, 80, 180, 0.12), transparent 70%);
  pointer-events: none;
}

.contact-tail {
  padding-top: calc(var(--space-section) * 0.5);
}

.globe-stage {
  position: relative;
  width: 100%;
  max-width: 1320px;
  height: clamp(560px, 84vh, 920px);
  margin: 1.5rem auto 0;
}

.globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.globe-canvas canvas { display: block; }

/* Search bar — glassmorphism */
.globe-search {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(340px, calc(100% - 2rem));
  padding: 0.65rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 16, 32, 0.5);
  border: 1px solid rgba(123, 211, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--color-text-muted);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.globe-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--color-text-primary);
  font-size: var(--text-sm);
}
.globe-search input::placeholder { color: var(--color-text-muted); }

/* Animated scan line sweeping down the stage */
.globe-scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.globe-scanline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, rgba(0, 164, 255, 0.05) 45%, rgba(123, 211, 255, 0.11) 50%, rgba(0, 164, 255, 0.05) 55%, transparent);
  animation: globeScan 8s linear infinite;
}
@keyframes globeScan {
  0% { top: -16%; }
  100% { top: 116%; }
}

/* Idle hint */
.globe-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0.7;
  transition: opacity var(--duration-base);
  pointer-events: none;
}
.globe-hint.is-hidden { opacity: 0; }

/* Hover tooltip (globe.gl injects .scene-tooltip wrapper) */
.globe-tip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.7rem;
  background: rgba(8, 18, 36, 0.65);
  border: 1px solid rgba(123, 211, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 164, 255, 0.25);
  font-family: var(--font-body);
}
.globe-tip strong { color: #fff; font-size: 0.82rem; }
.globe-tip span { color: var(--color-brand-glow, #7bd3ff); font-size: 0.72rem; }

/* Slide-in office panel */
.globe-panel {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translate(110%, -50%);
  z-index: 5;
  width: min(340px, calc(100% - 2.5rem));
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: rgba(8, 16, 32, 0.72);
  border: 1px solid rgba(123, 211, 255, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 120, 255, 0.12);
  opacity: 0;
  transition: transform 600ms var(--ease-out-expo), opacity 400ms ease;
}
.globe-panel.open {
  transform: translate(0, -50%);
  opacity: 1;
}
.globe-panel-close {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
}
.globe-panel-close:hover { color: #fff; }
.globe-panel-eyebrow {
  font-size: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand);
  margin-bottom: 0.35rem;
}
.globe-panel-city {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #fff;
  margin-bottom: 1.25rem;
}
.globe-panel-row { margin-bottom: 1rem; }
.globe-panel-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}
.globe-panel-row p,
.globe-panel-row a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.globe-panel-row a { color: var(--color-brand); }
.globe-panel-row a:hover { text-decoration: underline; }
.globe-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.globe-panel-actions .btn { width: 100%; text-align: center; }

/* Fallback (no WebGL): static office cards */
.globe-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-content: center;
  justify-content: center;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  padding: 2rem;
}
.globe-stage.is-fallback .globe-fallback { display: grid; }
.globe-stage.is-fallback .globe-search,
.globe-stage.is-fallback .globe-scanline,
.globe-stage.is-fallback .globe-hint { display: none; }
.globe-fallback .office-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
}

/* Consultation / office details below the map */
.serve-offices {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--color-border);
}
.serve-office-city {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 0.5rem;
}
.serve-office-address {
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}
.serve-office-contact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.6rem;
}
.serve-office-contact a { color: var(--color-brand); font-size: var(--text-sm); }
.serve-office-contact a:hover { text-decoration: underline; }
.serve-office-dir {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}
.serve-office-dir:hover { color: var(--color-brand); }
.serve-cta { display: flex; justify-content: flex-end; }

@media (max-width: 820px) {
  .serve-offices {
    grid-template-columns: 1fr 1fr;
  }
  .serve-cta { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 540px) {
  .serve-offices { grid-template-columns: 1fr; text-align: left; }
  .serve-cta { justify-content: stretch; }
  .serve-cta .btn { width: 100%; }
}

@media (max-width: 720px) {
  .globe-stage { height: clamp(380px, 60vh, 520px); }
  .globe-panel {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    transform: translateY(110%);
    border-radius: var(--radius-card) var(--radius-card) 0 0;
  }
  .globe-panel.open { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .globe-scanline::after { animation: none; opacity: 0.4; }
}

/* ============================================================
   WHERE WE SERVE — INTERACTIVE MOTION MAP (Leaflet)
   ============================================================ */
.serve-map-wrap {
  position: relative;
  width: 100%;
  margin-top: 1.5rem;
  height: clamp(520px, 80vh, 860px);
  background: #050a16;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.serve-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050a16;
}

/* Leaflet dark theming */
.serve-map .leaflet-container { background: #04122e; font-family: var(--font-body); }

/* Duotone the gray CARTO tiles into deep blue so the whole frame reads
   black-and-blue with no gray ocean / foreign-land. Filter the whole tile
   PANE (not each tile) so there are no per-tile seam lines. Markers, routes
   and labels live in separate panes and stay crisp. */
.serve-map .leaflet-tile-pane {
  filter: brightness(0.55) sepia(1) hue-rotate(178deg) saturate(3.2) contrast(1.02);
}
.serve-map .leaflet-bar {
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}
.serve-map .leaflet-bar a {
  background: rgba(13, 20, 36, 0.92);
  color: #cfe3ff;
  border-bottom: 1px solid rgba(123, 211, 255, 0.15);
  backdrop-filter: blur(8px);
}
.serve-map .leaflet-bar a:hover { background: rgba(0, 164, 255, 0.25); color: #fff; }
.serve-map .leaflet-control-attribution {
  background: rgba(5, 8, 16, 0.72);
  color: #5f78a0;
  font-size: 10px;
}
.serve-map .leaflet-control-attribution a { color: #7bd3ff; }

/* Glowing office pin */
.serve-pin-wrap { background: none; border: none; }
.serve-pin {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}
.serve-pin-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px 3px rgba(0, 164, 255, 0.9), 0 0 22px 6px rgba(0, 164, 255, 0.45);
  z-index: 2;
}
.serve-pin::before,
.serve-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(0, 164, 255, 0.8);
  animation: servePulse 2.2s ease-out infinite;
}
.serve-pin::after { animation-delay: 1.1s; }
@keyframes servePulse {
  0% { width: 14px; height: 14px; opacity: 0.9; }
  100% { width: 56px; height: 56px; opacity: 0; }
}
.serve-pin-label {
  position: absolute;
  top: -6px;
  left: 26px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}

/* User location dot */
.serve-me span {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.3), 0 0 14px 3px rgba(255, 59, 48, 0.7);
}

/* Animated routes */
.serve-route { animation: serveDash 0.9s linear infinite; }
@keyframes serveDash { to { stroke-dashoffset: -22; } }
.serve-route-glow { filter: drop-shadow(0 0 6px rgba(0, 164, 255, 0.6)); }
@media (prefers-reduced-motion: reduce) { .serve-route { animation: none; } }

/* Travel-time chip */
.serve-time-chip { background: none; border: none; }
.serve-time-chip span {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 16, 32, 0.78);
  border: 1px solid rgba(123, 211, 255, 0.3);
  color: #cfe3ff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* State hover tooltip */
.serve-state-tip {
  background: rgba(8, 16, 32, 0.9) !important;
  border: 1px solid rgba(123, 211, 255, 0.25) !important;
  color: #fff !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5) !important;
}
.serve-state-tip::before { display: none !important; }

/* Dark popups */
.serve-map .leaflet-popup-content-wrapper,
.serve-map .leaflet-popup-tip {
  background: rgba(8, 16, 32, 0.94);
  color: #fff;
  border: 1px solid rgba(123, 211, 255, 0.22);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px);
}
.serve-map .leaflet-popup-content { margin: 1rem 1.1rem; }
.serve-map .leaflet-popup-close-button { color: var(--color-text-muted); }
.serve-pop-city {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.serve-pop-address {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.serve-pop-phone { display: block; color: var(--color-brand); font-size: 0.85rem; margin-bottom: 0.5rem; }
.serve-pop-dir {
  display: inline-block;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--color-brand), var(--color-gold));
}

/* Floating "find nearest office" control */
.serve-locate {
  position: absolute;
  left: 1.25rem;
  bottom: 1.5rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(8, 16, 32, 0.8);
  border: 1px solid rgba(123, 211, 255, 0.28);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  transition: border-color var(--duration-fast), transform var(--duration-fast);
}
.serve-locate:hover { border-color: var(--color-brand); transform: translateY(-1px); }
.serve-locate.is-loading { opacity: 0.7; pointer-events: none; }
.serve-locate.is-loading span { opacity: 0.6; }

/* Fallback */
.serve-map-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-content: center;
  justify-content: center;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  padding: 2rem;
}
.serve-map-wrap.is-fallback .serve-map-fallback { display: grid; }
.serve-map-wrap.is-fallback .serve-locate { display: none; }
.serve-map-fallback .office-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
}

@media (max-width: 600px) {
  .serve-locate { left: 50%; transform: translateX(-50%); right: auto; bottom: 1rem; }
  .serve-locate:hover { transform: translateX(-50%) translateY(-1px); }
}

/* ============================================================
   PRACTICE AREAS — CINEMATIC IMMERSIVE BACKGROUND
   ============================================================ */
.section-cinema {
  position: relative;
  isolation: isolate;
  background: #04070e;
  padding: 0;            /* hero + cards manage their own spacing */
}

/* TOP HERO BAND: open video stage that features the victim's face silhouette */
.services-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 62vh, 700px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.services-hero .container { position: relative; z-index: 3; width: 100%; }

/* Heading sits to the LEFT so the victim's face stays visible on the right */
.services-hero-header {
  max-width: 600px;
  margin: 0;
  text-align: left;
}

/* Cards live BELOW on solid dark (no video behind them) */
.services-cards {
  position: relative;
  z-index: 1;
  background: #04070e;
  padding: var(--space-section) 0;
  border-top: 1px solid var(--color-border);
}

/* Cinematic looping video background (+ still poster fallback), JS parallax */
.services-bg {
  position: absolute;
  inset: -6% -3%;
  z-index: 0;
  background: #04070e url('media/whatwedo-victim.jpg') center 42% / cover no-repeat;
  will-change: transform;
}
.services-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 42%;   /* keep the victim's profile in view */
  /* Slow cinematic push that settles on the seated victim's face silhouette */
  transform-origin: 80% 46%;
  animation: cameraPush 20s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes cameraPush {
  from { transform: scale(1.04); }
  to   { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .services-bg-video { animation: none; }
}

/* Scrim: darker on the LEFT (behind the heading), clearer on the RIGHT so the
   victim's face silhouette stays visible. */
.section-cinema .section-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,6,14,0.92) 0%, rgba(3,6,14,0.6) 42%, rgba(3,6,14,0.22) 72%, rgba(3,6,14,0.45) 100%),
    linear-gradient(180deg, rgba(3,6,14,0.35) 0%, transparent 30%, transparent 65%, rgba(3,6,14,0.6) 100%);
}

/* Light sweep */
.services-lightsweep {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.services-lightsweep::before {
  content: '';
  position: absolute;
  top: 0;
  left: -45%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(0,164,255,0.05) 40%, rgba(123,211,255,0.12) 50%, rgba(0,164,255,0.05) 60%, transparent);
  transform: skewX(-12deg);
  animation: lightSweep 11s ease-in-out infinite;
}
@keyframes lightSweep {
  0% { left: -45%; }
  55%, 100% { left: 145%; }
}

/* Floating particles removed per founder ("remove the stars") */
.cinema-particle { display: none; }
@keyframes cinemaFloat {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.85; }
  85% { opacity: 0.45; }
  100% { transform: translateY(-78vh); opacity: 0; }
}

/* Hero heading readability over the scene */
.services-hero .section-title,
.services-hero .section-subtitle,
.services-hero .section-label {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}

/* Cards now sit on solid dark below the hero — keep them as solid surfaces */
.services-cards .service-card {
  background: var(--color-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}
.services-cards .service-card:hover {
  background: var(--color-surface-2);
  border-color: rgba(0, 164, 255, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .services-bg { animation: none; }
  .services-lightsweep::before { animation: none; opacity: 0.3; }
  .cinema-particle { animation: none; opacity: 0; }
}
