/* ENVSN Studios — Stylesheet
   Native CSS nesting. No preprocessor.
   https://envsnstudios.com
   ============================================= */

/* =============================================
   DESIGN TOKENS
============================================= */
:root {
  --bg:           #FFFFFF;
  --surface:      #F4F4F5;
  --surface-2:    #E4E4E7;
  --border:       #D4D4D8;
  --text:         #09090B;
  --text-muted:   #52525B;
  --text-subtle:  light-dark(#575760, #9A9AA2);
  --brand:        light-dark(#6D28D9, #915CE6);
  --brand-hover:  #7C3AED;
  --brand-light:  #EDE9FE;
  --brand-dark:   #4C1D95;
  --brand-text:   #FFFFFF;

  color-scheme: light dark;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-h: 68px;
  --max-w: 1160px;
  --gap:   clamp(1rem, 4vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #09090B;
    --surface:     #18181B;
    --surface-2:   #27272A;
    --border:      #3F3F46;
    --text:        #FAFAFA;
    --text-muted:  #A1A1AA;
    --brand-text:  #EDE9FE;
    color-scheme:  dark;
  }
}

[data-theme="dark"] {
  --bg:          #09090B;
  --surface:     #18181B;
  --surface-2:   #27272A;
  --border:      #3F3F46;
  --text:        #FAFAFA;
  --text-muted:  #A1A1AA;
  --brand-text:  #EDE9FE;
  color-scheme:  dark;
}

[data-theme="light"] {
  --bg:          #FFFFFF;
  --surface:     #F4F4F5;
  --surface-2:   #E4E4E7;
  --border:      #D4D4D8;
  --text:        #09090B;
  --text-muted:  #52525B;
  --brand-text:  #FFFFFF;
  color-scheme:  light;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 200ms ease, color 200ms ease;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* =============================================
   ACCESSIBILITY
============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #6D28D9;
  color: var(--brand-text);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  transition: top 0.1s;

  &:focus { top: 1rem; }
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =============================================
   LAYOUT
============================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section { padding-block: clamp(4rem, 8vw, 7rem); }

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

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.7;
}

/* =============================================
   BUTTONS
============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  text-decoration: none;
  background: none;

  &.btn-primary {
    background: #6D28D9;
    color: #FFFFFF;
    border-color: #6D28D9;

    &:hover { background: #5B21B6; border-color: #5B21B6; }
  }

  &.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);

    &:hover { border-color: var(--text-muted); background: var(--surface); }
  }

  &.btn-white {
    background: #FFFFFF;
    color: var(--brand-dark);
    border-color: #FFFFFF;
    font-weight: 600;

    &:hover { background: #EDE9FE; border-color: #EDE9FE; }
  }

  &.btn-nav { font-size: 14px; padding: 0.5rem 1.125rem; }
}

/* =============================================
   THEME TOGGLE
============================================= */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
  flex-shrink: 0;

  &:hover { color: var(--text); background: var(--surface); }

  & svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    pointer-events: none;
  }
}

.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] {
  & .icon-sun  { display: block; }
  & .icon-moon { display: none; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    & .icon-sun  { display: block; }
    & .icon-moon { display: none; }
  }
}

/* =============================================
   NAVIGATION
============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 200ms ease, border-color 200ms ease;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #7C3AED;

  & > svg { height: 40px; width: auto; display: block; }
}

[data-theme="dark"] .nav-logo { color: var(--text); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-logo { color: var(--text); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;

  & a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    transition: color 150ms ease, background 150ms ease;

    &:hover { color: var(--text); background: var(--surface); }
    &[aria-current="page"] { color: var(--brand); background: var(--surface); }
  }
}

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

.nav-cta-desktop { display: flex; }

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text);
  transition: background 150ms ease;

  &:hover { background: var(--surface); }

  & svg {
    width: 20px; height: 20px;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    fill: none;
  }
}

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

/* =============================================
   MOBILE NAV DIALOG
============================================= */
#mobile-nav {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%; height: 100%;
  max-width: 100%; max-height: 100%;
  background: var(--bg);
  border: none;
  padding: 0;
  z-index: 200;

  &::backdrop { background: transparent; }
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem var(--gap);

  & .nav-logo > svg { height: 32px; }
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text);

  & svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    fill: none;
  }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;

  & a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    transition: color 150ms ease;

    &:hover { color: var(--brand); }
  }
}

.mobile-nav-footer {
  display: flex;
  gap: 0.75rem;
  padding-block: 2rem;

  & .btn { flex: 1; justify-content: center; }
}

/* =============================================
   LOGO SVG SIZES
============================================= */
.footer-logo {
  display: flex;
  align-items: center;
  color: #7C3AED;

  & > svg { height: 28px; width: auto; display: block; }
}

[data-theme="dark"] .footer-logo { color: var(--text); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .footer-logo { color: var(--text); }
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  transition: border-color 200ms ease;

  &.contact-footer { margin-top: clamp(4rem, 8vw, 6rem); }
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-tagline { font-size: 13px; color: var(--text-subtle); margin-top: 4px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;

  & a {
    font-size: 14px;
    color: var(--text-muted);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    transition: color 150ms ease;

    &:hover { color: var(--text); }
  }
}

.footer-copy { font-size: 13px; color: var(--text-subtle); }

/* =============================================
   CONTENT VISIBILITY — below-fold sections
============================================= */
.marquee-section,
#services,
#about,
[aria-label="Get started"],
.clients-section,
.cta-strip,
.contact-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* =============================================
   HOMEPAGE — HERO
============================================= */
.hero {
  padding-block: clamp(4rem, 10vw, 8rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.375rem 1rem;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;

  & em { font-style: normal; color: var(--brand); }
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 48ch;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.hero-image-wrap {
  position: relative;

  & img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
  }

  @media (max-width: 768px) {
    order: -1;
    margin-inline: calc(var(--gap) * -1);

    & img { border-radius: 0; border-left: none; border-right: none; }
  }
}

.hero-image-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;

  @media (max-width: 768px) { left: 1rem; bottom: -1rem; }
}

.hero-card-icon {
  width: 40px; height: 40px;
  background: #6D28D9;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  & svg {
    width: 20px; height: 20px;
    stroke: #EDE9FE;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }
}

.hero-card-label {
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-top: 2px;
}

/* =============================================
   HOMEPAGE — MARQUEE
============================================= */
.marquee-section {
  border-block: 1px solid var(--border);
  padding-block: 3rem;
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.marquee-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 42s linear infinite;

  &:hover { animation-play-state: paused; }

  @media (prefers-reduced-motion: reduce) {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 1.5rem;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: var(--text-subtle);
  opacity: 0.75;
  transition: opacity 200ms ease, color 200ms ease;

  &:hover { opacity: 1; color: var(--text-muted); }
}

.logo-mark {
  width: 22px; height: 22px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
}

/* =============================================
   HOMEPAGE — SERVICES
============================================= */
.services-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
  align-items: center;

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;

  @media (max-width: 900px) { grid-template-columns: 1fr; }
  @media (min-width: 560px) and (max-width: 900px) { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 200ms ease, background 200ms ease;

  &:hover { border-color: var(--brand); background: var(--surface-2); }
}

.service-icon {
  width: 48px; height: 48px;
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;

  & svg {
    width: 24px; height: 24px;
    stroke: var(--brand);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* =============================================
   HOMEPAGE — ABOUT
============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;

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

.about-image {
  & img {
    width: 100%;
    aspect-ratio: 5/4;
    object-fit: cover;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
  }

  @media (max-width: 768px) {
    margin-inline: calc(var(--gap) * -1);

    & img { border-radius: 0; border-left: none; border-right: none; }
  }
}

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.about-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;

  & span { color: var(--brand); }
}

.about-stat-label { font-size: 13px; color: var(--text-muted); }

.about-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* =============================================
   HOMEPAGE — CTA BANNER
============================================= */
.cta-banner {
  background: #6D28D9;
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.cta-banner-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #EDE9FE;
  line-height: 1.2;
  max-width: 18ch;
}

.cta-banner-sub {
  font-size: 1.0625rem;
  color: #EDE9FE;
  max-width: 46ch;
}

/* =============================================
   SHARED — PAGE HEADER
============================================= */
.page-header {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--border);
}

.page-header-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-end;
  justify-content: space-between;
}

.page-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.page-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.page-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 50ch;
}

/* =============================================
   CLIENTS — FILTER BAR
============================================= */
.filter-wrap {
  padding-block: 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  transition: background 200ms ease;
}

.filter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  min-height: 36px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;

  &:hover { border-color: var(--text-muted); color: var(--text); }
  &[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-text); }
}

.filter-count {
  font-size: 13px;
  color: var(--text-subtle);
  white-space: nowrap;
  flex-shrink: 0;

  & strong { color: var(--text-muted); font-weight: 500; }
}

/* =============================================
   CLIENTS — CLIENT GRID & CARDS
============================================= */
.clients-section { padding-block: clamp(2.5rem, 5vw, 4rem); }

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;

  @media (max-width: 900px) { grid-template-columns: repeat(2, 1fr); }
  @media (max-width: 540px) { grid-template-columns: 1fr; }
}

/* CSS-driven filtering */
.client-grid:not([data-filter="all"]) .client-card { display: none; }
.client-grid[data-filter="ecommerce"]    [data-cat="ecommerce"],
.client-grid[data-filter="healthcare"]   [data-cat="healthcare"],
.client-grid[data-filter="education"]    [data-cat="education"],
.client-grid[data-filter="entertainment"] [data-cat="entertainment"],
.client-grid[data-filter="insurance"]    [data-cat="insurance"],
.client-grid[data-filter="residential"]  [data-cat="residential"] { display: flex; }

.client-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;

  &:hover { border-color: var(--brand); transform: translateY(-2px); }
}

.client-card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;

  [data-cat="healthcare"]    & { background: color-mix(in srgb, #0EA5E9 12%, var(--surface-2)); }
  [data-cat="ecommerce"]     & { background: color-mix(in srgb, #10B981 12%, var(--surface-2)); }
  [data-cat="education"]     & { background: color-mix(in srgb, #F59E0B 12%, var(--surface-2)); }
  [data-cat="entertainment"] & { background: color-mix(in srgb, #EC4899 12%, var(--surface-2)); }
  [data-cat="insurance"]     & { background: color-mix(in srgb, #6D28D9 12%, var(--surface-2)); }
  [data-cat="residential"]   & { background: color-mix(in srgb, #F97316 12%, var(--surface-2)); }
}

.thumb-icon {
  width: 56px; height: 56px;
  opacity: 0.4;

  & svg {
    width: 56px; height: 56px;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
  }

  [data-cat="healthcare"]    & svg { stroke: #0EA5E9; }
  [data-cat="ecommerce"]     & svg { stroke: #10B981; }
  [data-cat="education"]     & svg { stroke: #F59E0B; }
  [data-cat="entertainment"] & svg { stroke: #EC4899; }
  [data-cat="insurance"]     & svg { stroke: #6D28D9; }
  [data-cat="residential"]   & svg { stroke: #F97316; }
}

.client-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
  gap: 0.5rem;
}

.client-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.client-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.client-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

[data-cat="healthcare"]    .client-badge { background: #E0F2FE; color: #0369A1; }
[data-cat="ecommerce"]     .client-badge { background: #DCFCE7; color: #15803D; }
[data-cat="education"]     .client-badge { background: #FEF3C7; color: #B45309; }
[data-cat="entertainment"] .client-badge { background: #FCE7F3; color: #BE185D; }
[data-cat="insurance"]     .client-badge { background: #EDE9FE; color: #6D28D9; }
[data-cat="residential"]   .client-badge { background: #FFEDD5; color: #C2410C; }

[data-theme="dark"] {
  & [data-cat="healthcare"]    .client-badge { background: #0C4A6E; color: #7DD3FC; }
  & [data-cat="ecommerce"]     .client-badge { background: #14532D; color: #86EFAC; }
  & [data-cat="education"]     .client-badge { background: #78350F; color: #FCD34D; }
  & [data-cat="entertainment"] .client-badge { background: #831843; color: #F9A8D4; }
  & [data-cat="insurance"]     .client-badge { background: #2E1065; color: #C4B5FD; }
  & [data-cat="residential"]   .client-badge { background: #7C2D12; color: #FDBA74; }
}

.client-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; }

.client-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.service-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
}

/* =============================================
   CLIENTS — CTA STRIP
============================================= */
.cta-strip {
  border-top: 1px solid var(--border);
  padding-block: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.cta-strip-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.cta-strip-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 46ch;
  margin-inline: auto;
}

/* =============================================
   CONTACT — LAYOUT
============================================= */
.contact-section { padding-block: clamp(3rem, 7vw, 5rem); }

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;

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

/* =============================================
   CONTACT — FORM
============================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
}

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

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

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.required-mark { color: light-dark(var(--error),#DF3A3A); margin-left: 2px; font-size: 13px; }
.form-hint, .form-label-hint { font-size: 12px; color: var(--text-subtle); }
.form-label-hint { font-weight: 400; margin-left: 4px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  min-height: 44px;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
  appearance: none;
  -webkit-appearance: none;

  &::placeholder { color: var(--text-subtle); }
  &:hover { border-color: var(--text-subtle); }

  &:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
  }

  &[aria-invalid="true"] {
    border-color: light-dark(var(--error),#DF3A3A);

    &:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--error) 20%, transparent); }
  }
}

.form-select-wrap {
  position: relative;

  &::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-muted);
    pointer-events: none;
  }

  & .form-select { padding-right: 2.5rem; cursor: pointer; }
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.field-error {
  font-size: 12px;
  color: light-dark(var(--error),#DF3A3A);
  display: flex;
  align-items: center;
  gap: 0.375rem;

  & svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; flex-shrink: 0; }
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: none;

  &.visible { display: block; }
  &[data-type="error"] { background: var(--error-bg); border-color: var(--error-border); color: light-dark(var(--error),#DF3A3A); }
  &[data-type="success"] { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
}

.required-note {
  font-size: 12px;
  color: var(--text-subtle);
  margin-bottom: 1.5rem;

  & span { color: light-dark(var(--error),#DF3A3A); font-weight: 500; }
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 0.875rem 1.5rem;
  min-height: 52px;

  &:disabled { opacity: 0.6; cursor: not-allowed; }
}

/* =============================================
   CONTACT — SUCCESS STATE
============================================= */
.success-state {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;

  &.visible { display: block; }
}

.success-icon {
  width: 64px; height: 64px;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;

  & svg { width: 28px; height: 28px; stroke: var(--success); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
}

.success-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.success-body {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 40ch;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* =============================================
   CONTACT — INFO PANEL
============================================= */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.info-block-heading {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-block: 0.625rem;

  & + & { border-top: 1px solid var(--border); }
}

.info-item-icon {
  width: 36px; height: 36px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;

  & svg { width: 16px; height: 16px; stroke: var(--brand); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; fill: none; }
}

.info-item-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.info-item-value {
  font-size: 14px;
  color: var(--text);

  & a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
    text-underline-offset: 3px;
    transition: text-decoration-color 150ms ease;

    &:hover { text-decoration-color: var(--brand); }
  }
}

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.fit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.fit-item-check {
  width: 18px; height: 18px;
  background: color-mix(in srgb, var(--success) 15%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;

  & svg { width: 10px; height: 10px; stroke: var(--success); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
}

/* =============================================
   CONTACT — ERROR/SUCCESS TOKENS (dark mode)
============================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --error-bg:       #450A0A;
    --error-border:   #991B1B;
    --success-bg:     #052E16;
    --success-border: #166534;
  }
}

[data-theme="dark"] {
  --error-bg:       #450A0A;
  --error-border:   #991B1B;
  --success-bg:     #052E16;
  --success-border: #166534;
}

:root {
  --error:        #DC2626;
  --error-bg:     #FEF2F2;
  --error-border: #FECACA;
  --success:      #16A34A;
  --success-bg:   #F0FDF4;
  --success-border: #BBF7D0;
}
