/* ============================================================
   TWIN CITIES DIGITAL PARTNERS — design tokens + component styles
   Palette: deep navy/slate foundation, warm amber accent.
   Fonts: Cabinet Grotesk (display) + Satoshi (body) — Fontshare.
   ============================================================ */

:root {
  /* ---------- 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);

  /* ---------- Spacing (4px system) ---------- */
  --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;

  /* ---------- Radius ---------- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

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

  /* ---------- Content widths ---------- */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;
  --content-full: 100%;

  /* ---------- Fonts ---------- */
  --font-display: 'Cabinet Grotesk', 'Georgia', serif;
  --font-body: 'Satoshi', 'Segoe UI', sans-serif;
}

/* ---------- Light mode (default) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f4f6f8;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfd;
  --color-surface-offset: #eaedf1;
  --color-surface-offset-2: #dde2e8;
  --color-surface-dynamic: #e3e7ec;
  --color-divider: #dde1e7;
  --color-border: #d2d8e0;

  --color-text: #101827;
  --color-text-muted: #55606f;
  --color-text-faint: #94a0ae;
  --color-text-inverse: #f8f9fb;

  /* Primary accent: warm amber */
  --color-primary: #c1690f;
  --color-primary-hover: #a3560a;
  --color-primary-active: #834407;
  --color-primary-highlight: #f4e0c6;

  /* Deep navy (used for header, footer, dark panels in light mode) */
  --color-navy: #0f1b30;
  --color-navy-2: #142238;

  --color-warning: #964219;
  --color-warning-hover: #713417;
  --color-warning-highlight: #ddcfc6;

  --color-error: #b3261e;
  --color-error-hover: #8c1d17;
  --color-error-highlight: #f2d6d3;

  --color-success: #227048;
  --color-success-hover: #185635;
  --color-success-highlight: #d3e6da;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.06);
  --shadow-md: 0 4px 14px oklch(0.2 0.02 250 / 0.09);
  --shadow-lg: 0 16px 40px oklch(0.2 0.02 250 / 0.14);
}

/* ---------- Dark mode ---------- */
[data-theme='dark'] {
  --color-bg: #0b1120;
  --color-surface: #111a2c;
  --color-surface-2: #141f34;
  --color-surface-offset: #17233a;
  --color-surface-offset-2: #1c2a44;
  --color-surface-dynamic: #223252;
  --color-divider: #1e2b45;
  --color-border: #29395a;

  --color-text: #e7ebf1;
  --color-text-muted: #9aa7bb;
  --color-text-faint: #616f88;
  --color-text-inverse: #101827;

  --color-primary: #e58a2e;
  --color-primary-hover: #f2a349;
  --color-primary-active: #f7b563;
  --color-primary-highlight: #3a2c19;

  --color-navy: #060a14;
  --color-navy-2: #0a1120;

  --color-warning: #d4813f;
  --color-warning-hover: #e29455;
  --color-warning-highlight: #3d2f22;

  --color-error: #e5766e;
  --color-error-hover: #ec918a;
  --color-error-highlight: #402420;

  --color-success: #5fb383;
  --color-success-hover: #7cc79a;
  --color-success-highlight: #1f3629;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b1120;
    --color-surface: #111a2c;
    --color-surface-2: #141f34;
    --color-surface-offset: #17233a;
    --color-surface-offset-2: #1c2a44;
    --color-surface-dynamic: #223252;
    --color-divider: #1e2b45;
    --color-border: #29395a;
    --color-text: #e7ebf1;
    --color-text-muted: #9aa7bb;
    --color-text-faint: #616f88;
    --color-text-inverse: #101827;
    --color-primary: #e58a2e;
    --color-primary-hover: #f2a349;
    --color-primary-active: #f7b563;
    --color-primary-highlight: #3a2c19;
    --color-navy: #060a14;
    --color-navy-2: #0a1120;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
  }
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.wrap {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 200;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-10);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.eyebrow svg {
  width: 14px;
  height: 14px;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.section-head p {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-base);
}
.section-head--center p {
  margin-inline: auto;
}

/* ============================================================
   DRAFT BANNER
   ============================================================ */

.draft-banner {
  background: var(--color-primary-highlight);
  color: var(--color-text);
  font-size: var(--text-xs);
  text-align: center;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid oklch(from var(--color-primary) l c h / 0.3);
}
.draft-banner strong {
  color: var(--color-primary-hover);
  margin-right: var(--space-1);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.1;
}
.brand svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .brand small {
    display: none;
  }
  .brand span {
    white-space: nowrap;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-8);
}
.nav-desktop a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}
.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--color-text);
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-interactive);
}
.nav-desktop a:hover::after,
.nav-desktop a:focus-visible::after {
  width: 100%;
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.icon-btn:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

.btn.header-cta {
  display: none;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .btn.header-cta {
    display: inline-flex;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  border: 1px solid transparent;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}
.btn--primary:active {
  background: var(--color-primary-active);
}
.btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-faint);
}
.btn--lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}
.btn--block {
  width: 100%;
}

/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu[data-open='true'] {
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu__scrim {
  position: absolute;
  inset: 0;
  background: oklch(0.1 0.02 250 / 0.5);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu[data-open='true'] .mobile-menu__scrim {
  opacity: 1;
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 88vw);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu[data-open='true'] .mobile-menu__panel {
  transform: translateX(0);
}
.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-menu__links a {
  display: block;
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.mobile-menu__links a:hover {
  background: var(--color-surface-offset);
}
.mobile-menu__ctas {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-menu__note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20)) clamp(var(--space-10), 6vw, var(--space-16));
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-3xl);
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--color-text);
}
.hero h1 em {
  font-style: normal;
  color: var(--color-primary);
}

.lede {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-10);
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.hero-meta svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   COMPARE SECTION (one-stop-shop vs stacked subscriptions)
   ============================================================ */

.compare-section {
  background: var(--color-surface-offset);
}
.stat-callout {
  max-width: 920px;
  margin: 0 auto var(--space-10);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6) var(--space-8);
  background: var(--color-primary-highlight);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.35);
  border-radius: var(--radius-xl);
}
.stat-callout__number {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
}
.stat-callout__text p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.stat-callout__text p:first-child {
  font-size: var(--text-base);
}
.stat-callout__source {
  margin-top: var(--space-2) !important;
  font-size: var(--text-xs) !important;
  color: var(--color-text-muted) !important;
}
.stat-callout__source a {
  color: var(--color-text-muted);
  text-decoration: underline;
}
@media (max-width: 640px) {
  .stat-callout {
    flex-direction: column;
    text-align: center;
    padding: var(--space-6);
  }
}

.compare-grid {
  display: grid;
  gap: var(--space-6);
  max-width: 920px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .compare-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
.compare-card {
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
}
.compare-card--old {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.compare-card--new {
  background: var(--color-navy);
  border: 1px solid var(--color-navy);
  box-shadow: 0 12px 32px -12px oklch(from var(--color-navy) l c h / 0.5);
}
.compare-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.compare-label--new {
  color: var(--color-primary);
}
.compare-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.compare-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.15em;
}
.compare-list--old li svg {
  color: var(--color-text-muted);
}
.compare-list--old li span {
  color: var(--color-text-muted);
}
.compare-list--new li svg {
  color: var(--color-primary);
}
.compare-list--new li span {
  color: oklch(0.92 0.01 250 / 0.92);
}
.compare-total {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.compare-total--new {
  color: #fff;
  border-top: 1px solid oklch(0.92 0.01 250 / 0.2);
}

/* ============================================================
   VALUE STRIP
   ============================================================ */

.value-strip {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  padding-block: var(--space-10);
}
.value-strip .wrap {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 780px) {
  .value-strip .wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}
.value-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.value-item .icon-wrap {
  color: var(--color-primary);
  flex-shrink: 0;
}
.value-item .icon-wrap svg {
  width: 26px;
  height: 26px;
}
.value-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: #fff;
}
.value-item p {
  font-size: var(--text-sm);
  color: oklch(0.9 0.01 250 / 0.72);
}

/* ============================================================
   SERVICES GRID
   ============================================================ */

.services-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.service-card .icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.service-card .icon-wrap svg {
  width: 26px;
  height: 26px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.service-card > p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}
.service-card ul {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.service-card li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.service-card li svg {
  width: 15px;
  height: 15px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   PROCESS
   ============================================================ */

.process-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
  box-shadow: var(--shadow-md);
}
.process-image img {
  width: 100%;
}

.process-steps {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.process-step h4 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.process-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary-hover);
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   EXAMPLES / PORTFOLIO GRID
   ============================================================ */

.examples-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.example-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}
.example-card.is-live {
  background: linear-gradient(160deg, var(--color-surface) 55%, var(--color-primary-highlight) 150%);
  border-color: oklch(from var(--color-primary) l c h / 0.35);
}
.example-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.example-card .icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}
.example-card .icon-wrap svg {
  width: 26px;
  height: 26px;
}
.badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}
.badge--live {
  background: var(--color-success-highlight);
  color: var(--color-success-hover);
}
.badge--soon {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}
.example-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.example-card > p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  flex-grow: 1;
}

/* ============================================================
   ABOUT / TEAM
   ============================================================ */

.about-grid {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
.about-copy p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.team-list__heading {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
}
.team-member {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--color-divider);
}
.team-member:first-of-type {
  border-top: none;
  padding-top: 0;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  flex-shrink: 0;
}
.team-member__body h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.team-member__tagline {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
}
.team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.team-bio--placeholder {
  font-style: italic;
  color: var(--color-text-faint);
  font-size: var(--text-xs);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: 0.75fr 1.25fr;
  }
}

.contact-info-card {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  height: fit-content;
}
.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}
.contact-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  margin-bottom: var(--space-5);
}
.contact-row .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row .icon-wrap svg {
  width: 18px;
  height: 18px;
}
.contact-row .label {
  font-size: var(--text-xs);
  color: oklch(0.9 0.01 250 / 0.6);
  margin-bottom: 2px;
}
.contact-row a,
.contact-row .value {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: var(--text-sm);
}
.contact-row a:hover {
  color: var(--color-primary);
}
.placeholder-note {
  font-size: var(--text-xs);
  color: oklch(0.9 0.01 250 / 0.55);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid oklch(1 0 0 / 0.1);
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
}

.form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}
@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.form-row .field {
  margin-bottom: 0;
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-base);
  color: var(--color-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.18);
}
.field-error {
  display: none;
  font-size: var(--text-xs);
  color: var(--color-error);
}
.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea {
  border-color: var(--color-error);
}
.field[data-invalid='true'] .field-error {
  display: block;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  text-align: left;
}
.form-success[data-visible='true'] {
  display: flex;
}
.contact-form[data-submitted='true'] form {
  display: none;
}
.form-success .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--color-success-highlight);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success .icon-wrap svg {
  width: 26px;
  height: 26px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.form-success p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}
.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--color-text-faint);
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}
.faq-question[aria-expanded='true'] svg {
  transform: rotate(45deg);
  color: var(--color-primary);
}
.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   CTA BAND
   ============================================================ */

.cta-band {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2));
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  text-align: center;
  color: #fff;
}
.cta-band h2 {
  color: #fff;
  font-size: var(--text-xl);
}
.cta-band p {
  margin-top: var(--space-3);
  color: oklch(0.9 0.01 250 / 0.75);
  max-width: 52ch;
  margin-inline: auto;
}
.cta-band .hero-ctas {
  justify-content: center;
  margin-top: var(--space-8);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-navy);
  color: oklch(0.9 0.01 250 / 0.85);
  padding-block: var(--space-16) var(--space-8);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-12);
}
@media (min-width: 780px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand p {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: oklch(0.9 0.01 250 / 0.6);
  max-width: 32ch;
}
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: oklch(0.9 0.01 250 / 0.65);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid oklch(1 0 0 / 0.1);
  font-size: var(--text-xs);
  color: oklch(0.9 0.01 250 / 0.5);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.9 0.01 250 / 0.7);
}
.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
}
.footer-social svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
  .contact-info-card,
  .contact-form {
    padding: var(--space-6);
  }
}

/* ============================================================
   CHATBOT WIDGET
   ============================================================ */

.chatbot {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 60;
  font-family: var(--font-body);
}

.chatbot-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--color-navy);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
  animation: chatbotFabAttention 2.4s ease-in-out infinite;
}
.chatbot-fab:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}
.chatbot[data-open='true'] .chatbot-fab {
  animation: none;
  border-color: var(--color-navy);
}
@keyframes chatbotFabAttention {
  0%, 100% {
    border-color: var(--color-navy);
    box-shadow: var(--shadow-lg), 0 0 0 0 oklch(from var(--color-navy) l c h / 0.45);
  }
  50% {
    border-color: oklch(from var(--color-navy) calc(l + 0.18) c h);
    box-shadow: var(--shadow-lg), 0 0 0 9px oklch(from var(--color-navy) l c h / 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chatbot-fab {
    animation: none;
  }
}
.chatbot-fab__icon {
  width: 26px;
  height: 26px;
  position: absolute;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.chatbot-fab__icon--chat {
  opacity: 1;
  transform: scale(1);
}
.chatbot-fab__icon--close {
  opacity: 0;
  transform: scale(0.5);
}
.chatbot[data-open='true'] .chatbot-fab__icon--chat {
  opacity: 0;
  transform: scale(0.5);
}
.chatbot[data-open='true'] .chatbot-fab__icon--close {
  opacity: 1;
  transform: scale(1);
}
.chatbot-fab__dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  border: 2px solid var(--color-bg);
  transition: opacity 0.15s ease;
}
.chatbot[data-open='true'] .chatbot-fab__dot {
  opacity: 0;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + var(--space-4));
  width: min(380px, calc(100vw - 2 * var(--space-6)));
  max-height: min(600px, calc(100vh - 140px));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: bottom right;
}
.chatbot[data-open='true'] .chatbot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chatbot-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  background: var(--color-navy);
  color: var(--color-text-inverse);
  flex-shrink: 0;
}
.chatbot-panel__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.chatbot-panel__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}
.chatbot-panel__avatar svg {
  width: 18px;
  height: 18px;
}
.chatbot-panel__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.chatbot-panel__brand-text strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-inverse);
  white-space: nowrap;
}
.chatbot-panel__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: #b7c0cf;
}
.chatbot-panel__status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: #4ade80;
  flex-shrink: 0;
}
.chatbot-panel__header .icon-btn {
  color: #b7c0cf;
  flex-shrink: 0;
}
.chatbot-panel__header .icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chatbot-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-surface-2);
  min-height: 200px;
}

.chatbot-msg {
  max-width: 84%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.chatbot-msg--bot {
  align-self: flex-start;
  background: var(--color-surface-offset);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
}
.chatbot-msg--user {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
  border-bottom-right-radius: var(--radius-sm);
}
.chatbot-msg--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
}
.chatbot-msg--typing span {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-text-faint);
  animation: chatbotTyping 1.2s ease-in-out infinite;
}
.chatbot-msg--typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chatbot-msg--typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes chatbotTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.chatbot-panel__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
}
.chatbot-chip {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.chatbot-chip:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.chatbot-panel__input {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}
.chatbot-panel__input input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
}
.chatbot-panel__input input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.chatbot-panel__input .icon-btn--primary {
  background: var(--color-primary);
  color: #fff;
  flex-shrink: 0;
}
.chatbot-panel__input .icon-btn--primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}
.chatbot-panel__disclaimer {
  padding: var(--space-2) var(--space-4) var(--space-3);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  color: var(--color-text-faint);
  background: var(--color-surface);
  margin: 0;
}

@media (max-width: 640px) {
  .chatbot {
    right: var(--space-4);
    bottom: var(--space-4);
  }
  .chatbot-panel {
    position: fixed;
    right: var(--space-3);
    left: var(--space-3);
    bottom: calc(var(--space-4) + 72px);
    width: auto;
    max-height: min(70vh, 520px);
  }
}
