/* ============================================================
   ISA Talent Hub — styles.css
   Design System: Confident Authority (adapted for staffing)
   Palette: captured_brand (deep teal + lime green)
   ============================================================ */

/* --- CUSTOM PROPERTIES ------------------------------------ */
:root {
  /* Typography */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Raleway', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.5rem;
  --text-5xl:  3.5rem;
  --text-6xl:  4.5rem;

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-28: 7rem;

  /* Brand palette — from approved vision */
  --color-teal:          #005374;
  --color-teal-dark:     #003B52;
  --color-teal-light:    #006A94;
  --color-lime:          #9CB925;
  --color-lime-dark:     #7D9A12;
  --color-lime-hover:    #B3D42E;
  --color-canvas-bg:     #F5F7F3;
  --color-slate-bg:      #E9EDEA;
  --color-text-primary:  #0E1E26;
  --color-text-secondary:#3D5260;
  --color-text-muted:    #6B8290;
  --color-text-on-depth: #E6F2F8;
  --color-text-on-signal:#1A2200;
  --color-border-light:  #D4DCD6;
  --color-border-depth:  rgba(230,242,248,0.15);
  --color-overlay:       rgba(0,83,116,0.12);

  /* Surface tokens */
  --surface-canvas-bg:   #F5F7F3;
  --surface-canvas-text: #0E1E26;
  --surface-canvas-display-weight: 700;
  --surface-canvas-display-letter-spacing: -0.02em;

  --surface-depth-bg:    #005374;
  --surface-depth-text:  #E6F2F8;
  --surface-depth-display-weight: 700;
  --surface-depth-display-letter-spacing: -0.02em;

  --surface-signal-bg:   #9CB925;
  --surface-signal-text: #1A2200;
  --surface-signal-display-weight: 700;
  --surface-signal-display-letter-spacing: 0em;

  --surface-slate-bg:    #E9EDEA;
  --surface-slate-text:  #0E1E26;

  /* Section spacing */
  --section-pad-y:       110px;
  --section-pad-y-sm:    64px;

  /* Layout */
  --container-max:       1280px;
  --container-narrow:    780px;
  --container-padding:   clamp(20px, 5vw, 80px);

  /* Radius — sharp per design direction */
  --radius-sm: 2px;
  --radius-md: 2px;

  /* Transitions */
  --ease-authority: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast:  0.2s;
  --duration-med:   0.35s;
  --duration-slow:  0.7s;
}


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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--surface-canvas-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}


/* --- SURFACE UTILITIES ------------------------------------ */
.surface-canvas {
  background: var(--surface-canvas-bg);
  color: var(--surface-canvas-text);
}
.surface-canvas h1, .surface-canvas h2, .surface-canvas h3,
.surface-canvas h4, .surface-canvas h5, .surface-canvas h6 {
  font-weight: var(--surface-canvas-display-weight);
  letter-spacing: var(--surface-canvas-display-letter-spacing);
}

.surface-depth {
  background: var(--surface-depth-bg);
  color: var(--surface-depth-text);
}
.surface-depth h1, .surface-depth h2, .surface-depth h3,
.surface-depth h4, .surface-depth h5, .surface-depth h6 {
  color: var(--surface-depth-text);
  font-weight: var(--surface-depth-display-weight);
  letter-spacing: var(--surface-depth-display-letter-spacing);
}
.surface-depth .eyebrow { color: var(--color-lime); }
.surface-depth .text-muted { color: rgba(230,242,248,0.7); }

.surface-signal {
  background: var(--surface-signal-bg);
  color: var(--surface-signal-text);
}
.surface-signal h1, .surface-signal h2, .surface-signal h3,
.surface-signal h4, .surface-signal h5, .surface-signal h6 {
  color: var(--surface-signal-text);
  font-weight: var(--surface-signal-display-weight);
  letter-spacing: var(--surface-signal-display-letter-spacing);
}

.surface-slate {
  background: var(--surface-slate-bg);
  color: var(--surface-slate-text);
}
.surface-slate h1, .surface-slate h2, .surface-slate h3,
.surface-slate h4, .surface-slate h5, .surface-slate h6 {
  color: var(--surface-slate-text);
}


/* --- LAYOUT ----------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

@media (max-width: 767px) {
  .section {
    padding-top: var(--section-pad-y-sm);
    padding-bottom: var(--section-pad-y-sm);
  }
}


/* --- TYPOGRAPHY ------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: var(--space-4);
  display: block;
}
.surface-canvas .eyebrow,
.surface-slate .eyebrow {
  color: var(--color-teal);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: var(--text-xl); }

.text-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 60ch;
}

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

.text-balance {
  text-wrap: balance;
}


/* --- NAVIGATION ------------------------------------------- */
[data-nav-role="header"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-canvas-bg);
  border-bottom: 1px solid transparent;
  transition: background var(--duration-fast) ease,
              border-color var(--duration-fast) ease,
              box-shadow var(--duration-fast) ease;
}

[data-nav-role="header"].is-scrolled {
  background: rgba(245,247,243,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border-light);
  box-shadow: 0 1px 8px rgba(0,83,116,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4) var(--container-padding);
  min-height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-teal);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

[data-nav-role="desktop-nav"] {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

[data-nav-role="desktop-nav"] a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  padding: var(--space-2) 0;
  transition: color var(--duration-fast) ease;
}

[data-nav-role="desktop-nav"] a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-lime);
  transition: width var(--duration-med) var(--ease-authority);
}

[data-nav-role="desktop-nav"] a:hover,
[data-nav-role="desktop-nav"] a[aria-current="page"] {
  color: var(--color-teal);
}

[data-nav-role="desktop-nav"] a:hover::after,
[data-nav-role="desktop-nav"] a[aria-current="page"]::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--space-6);
}

/* Mobile toggle */
[data-nav-role="mobile-toggle"] {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: var(--space-2);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
}

[data-nav-role="mobile-toggle"] span,
[data-nav-role="mobile-toggle"] span::before,
[data-nav-role="mobile-toggle"] span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-teal);
  transition: transform var(--duration-med) ease, opacity var(--duration-fast) ease;
  position: absolute;
  left: 10px;
}

[data-nav-role="mobile-toggle"] span::before {
  content: '';
  top: -7px;
  position: absolute;
}

[data-nav-role="mobile-toggle"] span::after {
  content: '';
  top: 7px;
  position: absolute;
}

[data-nav-role="mobile-toggle"][aria-expanded="true"] span {
  background: transparent;
}

[data-nav-role="mobile-toggle"][aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

[data-nav-role="mobile-toggle"][aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile drawer */
[data-nav-role="mobile-drawer"] {
  display: none;
}

@media (max-width: 1023px) {
  [data-nav-role="desktop-nav"] { display: none; }
  .nav-cta.desktop-only { display: none; }

  [data-nav-role="mobile-toggle"] {
    display: inline-flex;
  }

  [data-nav-role="mobile-drawer"] {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-canvas-bg);
    flex-direction: column;
    padding: var(--space-8) var(--container-padding);
    z-index: 99;
    overflow-y: auto;
  }

  [data-nav-role="mobile-drawer"][aria-expanded="true"] {
    display: flex;
  }

  [data-nav-role="mobile-drawer"] a {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border-light);
    display: block;
    text-decoration: none;
  }

  [data-nav-role="mobile-drawer"] a:last-child {
    border-bottom: none;
  }

  [data-nav-role="mobile-drawer"] .btn {
    margin-top: var(--space-8);
    text-align: center;
    justify-content: center;
  }
}


/* --- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--duration-fast) ease,
              transform 0.15s ease,
              box-shadow var(--duration-fast) ease;
  min-height: 48px;
  min-width: 160px;
}

.btn-primary {
  background: var(--color-lime);
  color: var(--color-text-primary);
}

.btn-primary:hover {
  background: var(--color-lime-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(156,185,37,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-teal);
  border: 2px solid var(--color-teal);
  padding: 0.75rem 1.875rem;
}

.btn-secondary:hover {
  background: var(--color-teal);
  color: var(--surface-depth-text);
}

/* On depth surface */
.surface-depth .btn-primary {
  background: var(--color-lime);
  color: var(--surface-signal-text);
}

.surface-depth .btn-secondary {
  color: var(--surface-depth-text);
  border-color: rgba(230,242,248,0.4);
}

.surface-depth .btn-secondary:hover {
  background: rgba(230,242,248,0.1);
  border-color: var(--surface-depth-text);
}

/* On signal surface */
.surface-signal .btn-primary {
  background: var(--color-teal);
  color: var(--surface-depth-text);
}

.surface-signal .btn-primary:hover {
  background: var(--color-teal-dark);
  box-shadow: 0 6px 20px rgba(0,83,116,0.3);
}

/* Text link button */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-lime);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--duration-fast) ease;
  min-height: 44px;
}

.btn-text:hover {
  border-bottom-color: var(--color-lime);
}

.btn-text svg,
.btn-text .arrow {
  transition: transform var(--duration-fast) ease;
}

.btn-text:hover svg,
.btn-text:hover .arrow {
  transform: translateX(4px);
}


/* --- HERO ------------------------------------------------- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-content {
  max-width: 560px;
}

.hero h1 {
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-6);
}

.hero .text-lead {
  margin-bottom: var(--space-8);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .hero { min-height: auto; padding-top: var(--space-16); padding-bottom: var(--space-12); }
  .hero-split { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero-image { order: -1; aspect-ratio: 16 / 9; max-height: 400px; }
}


/* --- PAGE HERO (inner pages) ------------------------------ */
.page-hero {
  padding: var(--space-24) 0 var(--space-16);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  margin-bottom: var(--space-4);
}

.page-hero .text-lead {
  margin-left: auto;
  margin-right: auto;
}


/* --- STATS BAR -------------------------------------------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  border-right: 1px solid var(--color-border-depth);
}

.stat:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 700;
  color: var(--color-lime);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230,242,248,0.7);
}

@media (max-width: 767px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--color-border-depth); padding: var(--space-8) var(--space-4); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 479px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; }
  .stat:last-child { border-bottom: none; }
}


/* --- INDUSTRY CARDS (2×2 grid, home page) ----------------- */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.industry-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-authority);
}

.industry-card:hover img {
  transform: scale(1.04);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,59,82,0.88) 0%,
    rgba(0,83,116,0.35) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
  transition: background var(--duration-med) ease;
}

.industry-card:hover .industry-card-overlay {
  background: linear-gradient(
    to top,
    rgba(0,59,82,0.92) 0%,
    rgba(0,83,116,0.5) 60%,
    rgba(0,83,116,0.15) 100%
  );
}

.industry-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-2);
}

.industry-card p {
  font-size: var(--text-sm);
  color: rgba(230,242,248,0.85);
  line-height: 1.5;
  max-width: 32ch;
}

.industry-card .btn-text {
  color: var(--color-lime);
  margin-top: var(--space-3);
}

@media (max-width: 639px) {
  .industries-grid { grid-template-columns: 1fr; }
  .industry-card { aspect-ratio: 16 / 10; }
}


/* --- SPLIT LAYOUTS ---------------------------------------- */
.split-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split-60-40 {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split-40-60 {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--space-16);
  align-items: center;
}

.split-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.split-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-content h2 {
  margin-bottom: var(--space-4);
}

.split-content p {
  margin-bottom: var(--space-4);
  max-width: 52ch;
}

.split-content .role-list {
  margin-bottom: var(--space-6);
}

.split-content .role-list li {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  padding-left: var(--space-6);
}

.split-content .role-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 2px;
  background: var(--color-lime);
}

/* Reverse on even sections for alternation */
.split-reverse {
  direction: rtl;
}
.split-reverse > * {
  direction: ltr;
}

@media (max-width: 767px) {
  .split-50,
  .split-60-40,
  .split-40-60 {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .split-reverse { direction: ltr; }
  .split-image { order: -1; }
}


/* --- TIMELINE / PROCESS ----------------------------------- */
.timeline {
  position: relative;
  padding-left: var(--space-16);
  max-width: 760px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border-light);
}

.surface-slate .timeline::before {
  background: var(--color-border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-16);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-16) + 12px);
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-lime);
  border: 3px solid var(--surface-canvas-bg);
  z-index: 1;
}

.surface-slate .timeline-item::before {
  border-color: var(--surface-slate-bg);
}

.timeline-step-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-teal);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.timeline-item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.timeline-item p {
  color: var(--color-text-secondary);
  max-width: 48ch;
}

.timeline-inset-image {
  position: relative;
  margin-top: var(--space-6);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  max-width: 480px;
}

.timeline-inset-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 639px) {
  .timeline { padding-left: var(--space-10); }
  .timeline::before { left: 12px; }
  .timeline-item::before { left: calc(-1 * var(--space-10) + 4px); width: 14px; height: 14px; }
}


/* --- TESTIMONIAL ------------------------------------------ */
.testimonial-block {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding: var(--space-4);
}

.testimonial-block::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--color-lime);
  opacity: 0.25;
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
  pointer-events: none;
}

.testimonial-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.45;
  color: var(--surface-depth-text);
  margin-bottom: var(--space-8);
}

.testimonial-attribution {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-lime);
}

.testimonial-meta {
  font-size: var(--text-sm);
  color: rgba(230,242,248,0.6);
  margin-top: var(--space-1);
}


/* --- CTA BAND --------------------------------------------- */
.cta-band {
  text-align: center;
  padding: var(--space-16) var(--container-padding);
}

.cta-band h2 {
  margin-bottom: var(--space-4);
}

.cta-band p {
  margin-bottom: var(--space-8);
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}


/* --- LOGO WALL -------------------------------------------- */
.logo-wall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.logo-wall img {
  height: 36px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity var(--duration-fast) ease, filter var(--duration-fast) ease;
}

.logo-wall img:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}


/* --- TEAM GRID -------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.team-card {
  text-align: center;
}

.team-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.team-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}

.team-card:hover .team-card-image img {
  filter: grayscale(0%);
}

.team-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.team-card .team-role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 639px) {
  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
}


/* --- DIFFERENTIATORS / WHY ISA ---------------------------- */
.differentiators-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: 800px;
}

.diff-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-6);
  align-items: start;
}

.diff-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-lime);
  opacity: 0.5;
  line-height: 1;
}

.diff-item h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.diff-item p {
  color: var(--color-text-secondary);
}


/* --- CONTACT SPLIT ---------------------------------------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info h2 {
  margin-bottom: var(--space-6);
}

.contact-detail {
  margin-bottom: var(--space-6);
}

.contact-detail-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.contact-detail p,
.contact-detail a {
  font-size: var(--text-base);
  color: var(--color-text-primary);
}

.contact-detail a:hover {
  color: var(--color-teal);
}

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


/* --- FORMS ------------------------------------------------ */
.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  background: #fff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
  min-height: 48px;
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236B8290' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0,83,116,0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #C53030;
}

.form-error {
  font-size: var(--text-xs);
  color: #C53030;
  margin-top: var(--space-1);
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}


/* --- VETTING STANDARDS ------------------------------------ */
.vetting-list {
  list-style: none;
  padding: 0;
}

.vetting-list li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-weight: 500;
}

.vetting-list li:last-child {
  border-bottom: none;
}

.vetting-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--color-lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.vetting-check svg {
  width: 12px;
  height: 12px;
  stroke: var(--surface-signal-text);
  stroke-width: 2.5;
  fill: none;
}


/* --- GUARANTEE SECTION ------------------------------------ */
.guarantee-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.guarantee-block h2 {
  margin-bottom: var(--space-4);
}

.guarantee-block p {
  margin-bottom: var(--space-8);
  color: rgba(230,242,248,0.8);
}


/* --- GRID UTILITIES --------------------------------------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 767px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}


/* --- FOOTER ----------------------------------------------- */
.site-footer {
  background: var(--color-teal-dark);
  color: var(--surface-depth-text);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}

.footer-desc {
  font-size: var(--text-sm);
  color: rgba(230,242,248,0.6);
  max-width: 30ch;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-lime);
  margin-bottom: var(--space-4);
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(230,242,248,0.7);
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid rgba(230,242,248,0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bar p {
  font-size: var(--text-xs);
  color: rgba(230,242,248,0.4);
}

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

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


/* --- SCROLL REVEAL ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-authority),
              transform var(--duration-slow) var(--ease-authority);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-reveal-stagger] > [data-reveal] {
  transition-delay: calc(var(--reveal-index, 0) * 0.08s);
}


/* --- IMAGE LOADING ---------------------------------------- */
img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.is-loaded {
  opacity: 1;
}

/* Don't hide images that are already loaded or have no src */
img[src=""],
img:not([src]) {
  opacity: 1;
}


/* --- COUNTER ANIMATION ------------------------------------ */
[data-counter] {
  font-variant-numeric: tabular-nums;
}


/* --- ACCESSIBILITY ---------------------------------------- */
.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;
}

:focus-visible {
  outline: 2px solid var(--color-lime);
  outline-offset: 2px;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}


/* --- MIDPAGE STATS (industries page) ---------------------- */
.midpage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  text-align: center;
}

.midpage-stat {
  padding: var(--space-10) var(--space-6);
  border-right: 1px solid var(--color-border-depth);
}

.midpage-stat:last-child {
  border-right: none;
}

.midpage-stat .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--color-lime);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.midpage-stat .stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(230,242,248,0.7);
}

@media (max-width: 639px) {
  .midpage-stats { grid-template-columns: 1fr; }
  .midpage-stat { border-right: none; border-bottom: 1px solid var(--color-border-depth); }
  .midpage-stat:last-child { border-bottom: none; }
}


/* --- UTILITY ---------------------------------------------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.pt-0 { padding-top: 0; }

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 1023px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}


/* ── CSS safety-net (injected by proxy-orchestrator) ──
   Ensures image containers always have resolvable dimensions so imgs with
   height:100% don't collapse. Scoped to common container class patterns.

   :where() gives zero specificity so any explicit rule the Styles agent wrote
   (e.g. .hero-image-wrap { aspect-ratio: 4/5 }) wins. Without this, the broad
   [class*="image-wrap"] selector at equal specificity but later source order
   was overriding intended hero portrait ratios to landscape. */
:where(
  [class*="image-col"],
  [class*="image-wrap"],
  [class*="img-wrap"],
  [class*="img-container"],
  [class*="image-container"],
  [class*="photo-wrap"],
  [class*="photo-container"],
  .bento-card,
  .listing-img-wrap,
  .card-image,
  .feature-image,
  .hero-image,
  .hero-media
) {
  min-height: 320px;
  aspect-ratio: 3 / 2;
  position: relative;
}

/* Nav role contract (Phase 6a+, 2026-04-20). Elements declare semantic role
   via data-nav-role; safety-net targets roles, not structural attributes.
   Roles: header | desktop-nav | mobile-toggle | mobile-drawer.
   Styles Agent stays free to invent any HTML + layout; must annotate roles.
   This replaces the earlier [data-mobile-nav]{display:none} rule, which
   collided when Styles used one container for both desktop + mobile nav. */
[data-nav-role="mobile-drawer"] { display: none; }
[data-nav-role="mobile-toggle"] { display: none; }
@media (max-width: 1023px) {
  [data-nav-role="desktop-nav"] { display: none; }
  [data-nav-role="mobile-toggle"] { display: inline-flex; }
  [data-nav-role="mobile-drawer"][aria-expanded="true"] { display: flex; }
}
[class*="image-col"] > img,
[class*="image-wrap"] > img,
[class*="img-wrap"] > img,
[class*="img-container"] > img,
[class*="image-container"] > img,
[class*="photo-wrap"] > img,
[class*="photo-container"] > img,
.bento-card > img,
.bento-card-image > img,
.listing-img-wrap > img,
.card-image > img,
.feature-image > img,
.hero-image > img,
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .hero-image-col,
  .hero-media,
  .hero-image {
    aspect-ratio: auto;
    min-height: 100vh;
  }
}
/* Fallback for any bare img with percentage height */
img[style*="height: 100%"],
img[style*="height:100%"] {
  min-height: 320px;
}
/* ── end safety-net ── */
