/* ==========================================================================
   Ezewag Overseas — Site Design System
   Replaces: clean-site.css, premium-skin.css, pages/home/home.css,
             blog/assets/blog.css, and the inline <style> blocks.

   Design language: white canvas, deep violet-ink contrast sections, one
   violet accent with gold as the heritage secondary, unified corporate sans
   typography, generous radii, and a fluid clamp() scale.

   Structure
     01 Tokens
     02 Reset & base
     03 Typography
     04 Layout primitives
     05 Navigation
     06 Buttons
     07 Heroes
     08 Section headers
     09 Card system
     10 Number / step system
     11 Pills, tags, chips, labels
     12 Lists
     13 Metrics & logo strip
     14 Rails (scroll-snap carousels)
     15 Media
     16 Tables
     17 FAQ / accordion
     18 Forms
     19 Global CTA band
     20 Footer
     21 Floating WhatsApp
     22 Blog
     23 Reveal / motion utilities
     24 Page-specific adjustments
     25 Responsive
   ========================================================================== */

/* ---------- 01 TOKENS ---------------------------------------------------- */

:root {
  /* Surfaces */
  --surface:        #FFFFFF;
  --surface-alt:    #F7F5FC;   /* violet-tinted alternating band */
  --surface-sunken: #F1EEF9;

  /* Contrast sections */
  --dark:           #140A2B;   /* hero, CTA band, footer */
  --dark-soft:      #1F1240;   /* cards inside dark sections */
  --dark-line:      rgba(255, 255, 255, .12);

  /* Text */
  --ink:            #0B1220;   /* 18.1:1 on white */
  --ink-soft:       #46536B;   /*  7.4:1 on white */
  --ink-faint:      #6B7689;
  --on-dark:        #FFFFFF;
  --on-dark-soft:   rgba(255, 255, 255, .72);

  /* Accents — every text-bearing value passes WCAG AA (4.5:1) */
  --accent:         #6D3DE8;   /* 6.2:1 on white */
  --accent-strong:  #5B21B6;   /* 8.9:1 on white — hover/active */
  --accent-bright:  #A78BFA;   /* violet on dark only */
  --accent-wash:    #F3EEFE;
  --accent-line:    rgba(109, 61, 232, .22);

  --gold:           #9A6315;   /* 5.0:1 on white */
  --gold-bright:    #E9C46A;   /* gold on dark only */
  --gold-wash:      #FDF6E7;

  --line:           #E8E4F2;
  --line-strong:    #D5CEE8;

  /* Type */
  --font-body:    Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --font-display: var(--font-body);
  --font-hero:    var(--font-body);

  --fs-display: clamp(2.5rem, 1.1rem + 5.6vw, 4.75rem);
  --fs-h1:      clamp(2.25rem, 1.2rem + 4vw, 3.75rem);
  --fs-h2:      clamp(1.75rem, 1.1rem + 2.8vw, 3rem);
  --fs-h3:      clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --fs-h4:      clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  --fs-lead:    clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-tiny:    0.8125rem;
  --fs-eyebrow: 0.75rem;

  /* Shape */
  --radius-sm:   0.625rem;
  --radius:      1rem;
  --radius-card: 1.75rem;
  --radius-lg:   2.5rem;
  --radius-pill: 999px;

  /* Rhythm */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.5rem;   --space-6: 2rem;
  --space-7: 3rem;     --space-8: 4rem;     --space-9: 6rem;
  --space-section: clamp(3.25rem, 6.5vw, 5.5rem);
  --container-max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Depth */
  --shadow-sm:   0 2px 8px rgba(20, 10, 43, .05);
  --shadow-card: 0 20px 50px -24px rgba(20, 10, 43, .18);
  --shadow-lift: 0 28px 60px -22px rgba(20, 10, 43, .26);
  --shadow-nav:  0 8px 32px -12px rgba(20, 10, 43, .16);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 84px;

  /* --- Compatibility aliases -------------------------------------------
     service-suite.css (tabs, SWOT, gauges, geo cards, lead panels) was
     written against the retired clean-site.css token names. Mapping the old
     names onto the new palette re-skins it to the violet system without
     touching that file or the eight service pages that load it. */
  --white:      var(--surface);
  --ivory:      var(--surface-alt);
  --ash-50:     var(--surface-sunken);
  --ink-pure:   var(--ink);
  --body:       var(--ink-soft);
  --muted:      var(--ink-faint);
  --navy-900:   var(--dark);
  --gold:       var(--accent);
  --gold-deep:  var(--accent-strong);
  --gold-line:  var(--accent-line);
  --border:     var(--line);
  --border-md:  var(--line-strong);
  --r:          var(--radius);
  --r-lg:       var(--radius-card);
  --r-xl:       var(--radius-lg);
  --shadow-md:  var(--shadow-card);
  --shadow-lg:  var(--shadow-lift);
}

/* ---------- 02 RESET & BASE --------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-radius: inherit; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent-strong); }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

address { font-style: normal; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

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

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  z-index: 2000;
  background: var(--dark);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  font-size: var(--fs-small);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

/* ---------- 03 TYPOGRAPHY ----------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-wrap: balance;
  /* Long single words (MANUFACTURERS, DOCUMENTATION) must not push the
     layout wider than a 360px phone. */
  overflow-wrap: break-word;
}

h1 { font-size: var(--fs-h1); font-weight: 900; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }
h5, h6 { font-size: 1rem; letter-spacing: 0; }

/* Existing markup uses <em> inside headings for the accented phrase. */
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--accent);
}

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; color: var(--ink); }

small { font-size: var(--fs-small); }

blockquote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-6);
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-lead);
}

code, pre {
  font-family: var(--font-body);
  font-size: .9em;
}
code { background: var(--surface-sunken); padding: .15em .4em; border-radius: 5px; }

/* Eyebrow — the small uppercase label above section headings. */
.eyebrow,
.svc-tab-eyebrow,
.global-cta__eyebrow,
.consulting-section-label,
.consulting-areas-label,
.org-hero-panel-label {
  display: block;
  margin: 0 0 var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-lead,
.hero-lead,
.audience-copy > p,
.faq-copy > p,
.cs-honesty-copy > p {
  font-size: var(--fs-lead);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 68ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: currentColor; }

/* Dark-section typography inversion */
.section-dark, .hero--dark, .page-hero, .services-hero,
.team-page-hero, .blog-hero, .global-cta, .site-footer,
.dark-band, .home-cinematic-hero {
  color: var(--on-dark-soft);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.hero--dark h1, .hero--dark h2, .hero--dark h3,
.page-hero h1, .page-hero h2, .page-hero h3,
.services-hero h1, .services-hero h2, .services-hero h3,
.team-page-hero h1, .team-page-hero h2,
.blog-hero h1, .blog-hero h2,
.home-cinematic-hero h1, .home-cinematic-hero h2,
.dark-band h2, .dark-band h3,
.global-cta h2, .site-footer h2 { color: var(--on-dark); }

.section-dark .eyebrow, .hero--dark .eyebrow, .page-hero .eyebrow,
.services-hero .eyebrow, .team-page-hero .eyebrow, .blog-hero .eyebrow,
.home-cinematic-hero .eyebrow, .dark-band .eyebrow,
.global-cta__eyebrow { color: var(--gold-bright); }

.section-dark h1 em, .section-dark h2 em,
.hero--dark h1 em, .page-hero h1 em, .services-hero h1 em,
.team-page-hero h1 em, .blog-hero h1 em, .home-cinematic-hero h1 em,
.dark-band h2 em, .global-cta h2 em { color: var(--accent-bright); }

.section-dark p, .hero--dark p, .page-hero p, .services-hero p,
.team-page-hero p, .blog-hero p, .home-cinematic-hero p,
.dark-band p, .global-cta p { color: var(--on-dark-soft); }

.section-dark .section-lead, .hero--dark .hero-lead, .page-hero .section-lead,
.home-cinematic-hero .hero-lead, .services-hero .section-lead { color: var(--on-dark-soft); }

/* ---------- 04 LAYOUT PRIMITIVES ---------------------------------------- */

.container,
.hero-copy-shell,
.footer-inner,
.global-cta__shell {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { display: block; }

section { position: relative; }

/* Every *-section class shares the vertical rhythm. */
.section,
[class*="-section"]:not([class*="-section-"]) {
  padding-block: var(--space-section);
}

.section-white  { background: var(--surface); }
.section-ash,
.section-light  { background: var(--surface-alt); }
.section-sunken { background: var(--surface-sunken); }

.section-dark,
.dark-band {
  background: var(--dark);
  color: var(--on-dark-soft);
}

/* Two-column editorial layouts */
[class*="-layout"]:not([class*="-layout-"]),
.careers-two-col {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 900px) {
  .audience-layout, .faq-layout, .faq-live-layout, .cs-honesty-layout,
  .hiw-intro-layout, .org-hero-layout, .org-markets-layout,
  .industry-market-layout, .business-expansion-layout, .contact-layout,
  .resource-category-layout, .process-layout, .careers-two-col,
  .services-hero-layout, .svc-tabs-layout, .blog-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .contact-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .services-hero-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
}

.reverse > *:first-child { order: 2; }

.sticky-col { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

/* Universal auto-fit grids */
[class*="-grid"]:not([class*="-grid-"]) {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.start-here-grid, .conversion-step-grid, .hiw-paths-grid,
.org-values-grid, .case-proof-grid, .cs-honesty-grid, .about-proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.detailed-service-grid, .services-live-grid, .package-live-grid,
.package-grid, .resource-card-grid, .team-grid, .careers-grid,
.leadership-grid, .blog-grid, .industry-card-grid, .career-areas-grid,
.svc-geo-grid, .hiw-detail-grid, .hiw-output-grid, .cs-roadmap-grid,
.cs-challenges-grid, .process-live-grid, .service-proof-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.market-pill-grid, .org-markets-grid, .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

/* The only elements that carry both a card class and a `-card-` variant
   class, so the :not() guard above skips them. */
.industry-visual-card {
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* ---------- 06 BUTTONS -------------------------------------------------- */

.btn,
.start-here-link,
.cs-roadmap-link,
.footer-consult,
.global-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease),
              box-shadow .2s var(--ease);
}

.btn-primary,
.start-here-link,
.global-cta__button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(109, 61, 232, .75);
}
.btn-primary:hover,
.start-here-link:hover,
.global-cta__button--primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(109, 61, 232, .85);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent-line);
}
.btn-ghost:hover { background: var(--accent-wash); color: var(--accent-strong); }

/* Buttons sitting on dark backgrounds */
.section-dark .btn-secondary,
.page-hero .btn-secondary,
.services-hero .btn-secondary,
.home-cinematic-hero .btn-secondary,
.dark-band .btn-secondary,
.org-hero .btn-secondary,
.hero--dark .btn-secondary,
.blog-hero .btn-secondary,
.global-cta__button--secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .06);
}
.section-dark .btn-secondary:hover,
.page-hero .btn-secondary:hover,
.services-hero .btn-secondary:hover,
.home-cinematic-hero .btn-secondary:hover,
.dark-band .btn-secondary:hover,
.org-hero .btn-secondary:hover,
.hero--dark .btn-secondary:hover,
.blog-hero .btn-secondary:hover,
.global-cta__button--secondary:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.section-mini-cta { margin-top: var(--space-6); }

/* ---------- 07 HEROES --------------------------------------------------- */

.home-cinematic-hero,
.page-hero,
.services-hero,
.team-page-hero,
.blog-hero,
.hero--dark {
  position: relative;
  isolation: isolate;
  background: var(--dark);
  padding-block: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}

/* Ambient violet/gold glow — replaces the old orb + world-map ornaments. */
.home-cinematic-hero::before,
.page-hero::before,
.services-hero::before,
.team-page-hero::before,
.blog-hero::before,
.hero--dark::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 80%;
  z-index: -1;
  background:
    radial-gradient(48% 60% at 22% 30%, rgba(109, 61, 232, .38) 0%, transparent 68%),
    radial-gradient(42% 55% at 82% 18%, rgba(233, 196, 106, .16) 0%, transparent 70%);
  pointer-events: none;
}

.home-cinematic-hero::after,
.page-hero::after,
.services-hero::after,
.hero--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 100%);
  pointer-events: none;
}

.home-cinematic-hero h1 {
  font-family: var(--font-hero);
  font-size: var(--fs-display);
  font-weight: 900;
  max-width: 20ch;
}

.hero-copy-shell { position: relative; z-index: 1; }

.home-cinematic-hero .hero-copy-shell { text-align: center; }
.home-cinematic-hero h1,
.home-cinematic-hero .hero-lead { margin-inline: auto; }
.home-cinematic-hero .hero-actions { justify-content: center; }

.page-hero h1, .services-hero h1, .team-page-hero h1, .blog-hero h1 {
  font-family: var(--font-hero);
  max-width: 22ch;
}

.hero-lead { max-width: 62ch; }

.hero-trust-line,
.services-hero-tags,
.svc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: var(--space-6);
  padding: 0;
}
.home-cinematic-hero .hero-trust-line { justify-content: center; }

.hero-trust-line span,
.services-hero-tags span,
.services-hero-tags li {
  padding: .4rem 1rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
}

/* ---- Hero photography --------------------------------------------------
   Each page hero carries a .hero-photo-* class naming its background image.
   The image sits behind the dark field at low opacity so the headline keeps
   full contrast — the SAAP-style dark hero, but with the brand photography
   still visible rather than discarded. */
.hero-photo-diagnosis::after,
.hero-photo-market-research::after,
.hero-photo-market-entry::after,
.hero-photo-buyer-development::after,
.hero-photo-readiness::after,
.hero-photo-cross-border::after,
.hero-photo-export-compliance::after,
.hero-photo-product-positioning::after,
.hero-photo-partnership::after,
.hero-photo-services::after,
.hero-photo-team::after,
.hero-photo-contact::after,
.hero-photo-india::after,
.hero-photo-coimbatore::after,
.hero-photo-case-studies::after,
.hero-photo-industries::after,
.hero-photo-how-it-works::after,
.hero-photo-resources::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .22;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  pointer-events: none;
}


@media (max-width: 700px) {
  .hero-photo-team::after     { background-image: url('/ezewag-website-assets/images/ezewag-globe-hero-mobile.webp'); }
  .hero-photo-how-it-works::after { background-image: url('/ezewag-website-assets/images/hero-organization-trade-consulting-mobile.webp'); }
  .hero-photo-case-studies::after { background-image: url('/ezewag-website-assets/images/section-bg-trade-port-mobile.webp'); }
}


/* Retired ornament wrappers — hidden rather than hunted through 27 files. */
.site-map-bg, .hero-ambient, .hero-overlay,
.hero-orb-1, .hero-orb-2, .hero-ambient-orb, .hero-ambient-grid,
.hero-globe-wrap { display: none !important; }

/* ---------- 08 SECTION HEADERS ------------------------------------------ */

.section-heading {
  margin: 0 0 var(--space-4);
  font-size: var(--fs-h2);
}

.section-heading + .section-lead { margin-bottom: var(--space-7); }

.team-section-heading,
.careers-col-title,
.faq-live-support-head {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-4);
}

/* A section header block: eyebrow + heading + lead, then content. */
.section > .container > .eyebrow,
[class*="-section"]:not([class*="-section-"]) > .container > .eyebrow { margin-bottom: var(--space-3); }

/* ---------- 09 CARD SYSTEM ---------------------------------------------- */

/* One card recipe shared by every *-card class on the site. */
[class*="-card"]:not([class*="-card-"]),
.hire-step,
.problem-item,
.faq-item,
.cs-honesty-item,
.process-step,
.org-model-step,
.hiw-step,
.service-flow-step,
.next-step,
.visual-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  min-width: 0;
}

[class*="-card"]:not([class*="-card-"]):hover,
.hire-step:hover,
.problem-item:hover,
.cs-honesty-item:hover,
.process-step:hover,
.hiw-step:hover,
.next-step:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-card);
}

[class*="-card"]:not([class*="-card-"]) h2,
[class*="-card"]:not([class*="-card-"]) h3,
[class*="-card"]:not([class*="-card-"]) h4,
.hire-step h3, .hire-step h4,
.problem-item h3, .problem-item h4,
.hiw-step h3, .process-step h3, .org-model-step h3 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-h4);
}

[class*="-card"]:not([class*="-card-"]) p,
.hire-step p, .problem-item p, .hiw-step p,
.process-step p, .org-model-step p, .cs-honesty-item p {
  margin-bottom: 0;
  font-size: var(--fs-small);
  line-height: 1.62;
  color: var(--ink-soft);
}

[class*="-card"]:not([class*="-card-"]) > *:last-child { margin-bottom: 0; }

/* Cards on tinted bands stay white so they lift off the background. */
.section-ash [class*="-card"]:not([class*="-card-"]),
.section-light [class*="-card"]:not([class*="-card-"]) { background: var(--surface); }

/* Cards inside dark sections — covers every element in the card recipe,
   not only the ones whose class ends in -card. */
.section-dark [class*="-card"]:not([class*="-card-"]),
.section-dark .visual-node, .section-dark .hire-step, .section-dark .problem-item,
.page-hero [class*="-card"]:not([class*="-card-"]),
.page-hero .visual-node, .page-hero .hire-step,
.team-page-hero [class*="-card"]:not([class*="-card-"]),
.services-hero [class*="-card"]:not([class*="-card-"]),
.services-hero .visual-node,
.home-cinematic-hero [class*="-card"]:not([class*="-card-"]),
.blog-hero [class*="-card"]:not([class*="-card-"]),
.dark-band [class*="-card"]:not([class*="-card-"]),
.global-cta [class*="-card"]:not([class*="-card-"]) {
  background: var(--dark-soft);
  border-color: var(--dark-line);
  box-shadow: none;
  color: var(--on-dark-soft);
}

.section-dark [class*="-card"]:not([class*="-card-"]) p,
.page-hero [class*="-card"]:not([class*="-card-"]) p,
.team-page-hero [class*="-card"]:not([class*="-card-"]) p,
.services-hero [class*="-card"]:not([class*="-card-"]) p,
.blog-hero [class*="-card"]:not([class*="-card-"]) p,
.dark-band [class*="-card"]:not([class*="-card-"]) p { color: var(--on-dark-soft); }

/* Headings and lead text inside dark cards must invert too, otherwise the
   default --ink colour leaves them near-invisible. */
.section-dark [class*="-card"]:not([class*="-card-"]) h2,
.section-dark [class*="-card"]:not([class*="-card-"]) h3,
.section-dark [class*="-card"]:not([class*="-card-"]) h4,
.section-dark [class*="-card"]:not([class*="-card-"]) strong,
.page-hero [class*="-card"]:not([class*="-card-"]) h3,
.page-hero [class*="-card"]:not([class*="-card-"]) strong,
.team-page-hero [class*="-card"]:not([class*="-card-"]) h3,
.team-page-hero [class*="-card"]:not([class*="-card-"]) strong,
.services-hero [class*="-card"]:not([class*="-card-"]) h3,
.services-hero [class*="-card"]:not([class*="-card-"]) strong,
.blog-hero [class*="-card"]:not([class*="-card-"]) strong,
.dark-band [class*="-card"]:not([class*="-card-"]) strong { color: var(--on-dark); }

.section-dark [class*="-card"]:not([class*="-card-"]) small,
.page-hero [class*="-card"]:not([class*="-card-"]) small,
.services-hero [class*="-card"]:not([class*="-card-"]) small,
.team-page-hero [class*="-card"]:not([class*="-card-"]) small,
.blog-hero [class*="-card"]:not([class*="-card-"]) small { color: var(--on-dark-soft); }

/* Route / path cards: label, headline, note. */
.visual-route-card > span:first-child,
.hero-path-card > span:first-child,
.blog-signal-card > .eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.visual-route-card strong,
.hero-path-card strong,
.blog-signal-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.visual-route-card small,
.hero-path-card small { font-size: var(--fs-small); line-height: 1.55; }

/* The two circular waypoints in the services hero diagram. */
.visual-node {
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  padding: 0;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--gold-bright);
}

/* Accent-led card variant — the first card in a router grid, packages, etc. */
.package-card.is-featured,
.package-live-card.is-featured,
.start-here-card:first-child {
  border-color: var(--accent);
  box-shadow: 0 24px 60px -28px rgba(109, 61, 232, .5);
}

/* Detailed service cards carry a top accent rule on hover. */
.detailed-service-card::before,
.services-live-card::before,
.resource-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--gold-bright));
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.detailed-service-card:hover::before,
.services-live-card:hover::before,
.resource-card:hover::before { opacity: 1; }

/* Team / leadership cards */
.team-card, .leadership-card { gap: 0; padding: 0; overflow: hidden; }

.team-card-media, .leadership-card > img:first-child {
  aspect-ratio: 4 / 3;
  background: var(--surface-sunken);
  overflow: hidden;
}
.team-card-media img, .leadership-card > img:first-child {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform .5s var(--ease);
}
.team-card:hover .team-card-media img { transform: scale(1.05); }

.team-card-body, .leadership-card > .leader-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.team-name, .leader-title {
  margin: 0;
  font-size: var(--fs-h4);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.team-role {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent);
}
.team-category {
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.team-bio { font-size: var(--fs-small); color: var(--ink-soft); }

/* Cards that are really list rows */
.hiw-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.hiw-detail-row:last-child { border-bottom: 0; }
.hiw-detail-row-label {
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hiw-detail-row-val { font-size: var(--fs-small); color: var(--ink-soft); }

/* ---------- 10 NUMBER / STEP SYSTEM ------------------------------------- */

/* Big ghost numerals — the Discovery / Strategy / Precision / Scale pattern. */
.service-number,
.process-number,
.start-here-num,
.org-model-num,
.hiw-step-num,
.hiw-output-num,
.hiw-detail-num,
.hiw-path-number,
.cs-challenge-num,
.cs-roadmap-number,
.next-step-num,
.conversion-step-card > .step-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: .22;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}

[class*="-card"]:not([class*="-card-"]):hover .service-number,
.process-step:hover .process-number,
.hiw-step:hover .hiw-step-num,
.start-here-card:hover .start-here-num,
.next-step:hover .next-step-num { opacity: .5; }

.section-dark .service-number,
.section-dark .process-number,
.page-hero .hiw-path-number { color: var(--gold-bright); opacity: .35; }

/* Cards whose step number is an unclassed first-child <span>. */
.services-live-card > span:first-child,
.process-live-card > span:first-child,
.conversion-step-card > span:first-child,
.hire-step > span:first-child {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -0.04em;
  color: var(--accent);
  opacity: .22;
  transition: opacity .3s var(--ease);
}
.services-live-card:hover > span:first-child,
.process-live-card:hover > span:first-child,
.conversion-step-card:hover > span:first-child { opacity: .5; }

/* Cards whose first-child <span> is a word label, not a number. */
.service-proof-card > span:first-child {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Proof cards lead with a big figure. */
.proof-live-card > div:first-child { display: flex; align-items: center; gap: var(--space-3); }
.proof-live-card strong,
.team-page-hero-card strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.section-dark .proof-live-card strong,
.team-page-hero .team-page-hero-card strong { color: var(--gold-bright); }
.proof-live-card svg {
  width: 24px; height: 24px;
  flex: 0 0 auto;
  fill: none; stroke: var(--accent); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.next-step-arrow {
  display: inline-block;
  color: var(--accent);
  font-size: 1.25rem;
  transition: transform .25s var(--ease);
}
.next-step:hover .next-step-arrow { transform: translateX(4px); }

.hiw-step-tag,
.cs-roadmap-badge,
.hiw-path-badge,
.cs-trust-badge {
  align-self: flex-start;
  padding: .3rem .8rem;
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-wash);
  border-radius: var(--radius-pill);
}

/* ---------- 11 PILLS, TAGS, CHIPS, LABELS ------------------------------- */

.org-market-pill,
.svc-chip,
.svc-geo-tag,
.team-tags > span,
.team-tags > li,
.resource-meta > span,
.blog-post-meta > span,
.cs-roadmap-col-label,
.svc-compare-label,
.hiw-compare-label,
.cs-before-label,
.cs-after-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .85rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-soft);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.team-tags, .market-pill-grid, .resource-meta, .blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.market-pill-grid { display: flex; }

.svc-chip { background: var(--accent-wash); color: var(--accent-strong); border-color: var(--accent-line); }

.cs-before-label, .svc-compare-label.bad, .hiw-compare-label.bad {
  background: #FEF2F2; color: #9F1239; border-color: #FECDD3;
}
.cs-after-label, .svc-compare-label.good, .hiw-compare-label.good {
  background: #ECFDF5; color: #065F46; border-color: #A7F3D0;
}

.svc-geo-flag { font-size: 1.25rem; line-height: 1; }

/* Icon chips */
.org-value-icon,
.cs-honesty-icon,
.svc-google-form-icon,
.thank-you-icon,
.visual-node > svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  flex: 0 0 auto;
  color: var(--accent);
  background: var(--accent-wash);
  border-radius: var(--radius);
}
.org-value-icon svg, .cs-honesty-icon svg,
.svc-google-form-icon svg, .thank-you-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 12 LISTS ---------------------------------------------------- */

.svc-check-list,
.careers-check-list,
.careers-value-list,
.case-proof-list,
.cs-roadmap-list,
.cs-no-fake-list,
.faq-live-list,
.contact-info-list,
.svc-google-form-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.svc-check-list li,
.careers-check-list li,
.careers-value-list li,
.case-proof-list li,
.cs-roadmap-list li,
.cs-no-fake-list li,
.svc-google-form-points li {
  position: relative;
  padding-left: 1.9rem;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-soft);
}

.svc-check-list li::before,
.careers-check-list li::before,
.careers-value-list li::before,
.case-proof-list li::before,
.cs-roadmap-list li::before,
.svc-google-form-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.1rem; height: 1.1rem;
  background: var(--accent-wash);
  border-radius: 50%;
}
.svc-check-list li::after,
.careers-check-list li::after,
.careers-value-list li::after,
.case-proof-list li::after,
.cs-roadmap-list li::after,
.svc-google-form-points li::after {
  content: "";
  position: absolute;
  left: .32rem; top: .72em;
  width: .42rem; height: .22rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.cs-no-fake-list li::before { background: #FEF2F2; }
.cs-no-fake-list li::after {
  border: 0;
  left: .3rem; top: .68em;
  width: .5rem; height: .5rem;
  background:
    linear-gradient(45deg, transparent 44%, #9F1239 44%, #9F1239 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, #9F1239 44%, #9F1239 56%, transparent 56%);
  transform: none;
}

.section-dark .svc-check-list li,
.section-dark .case-proof-list li { color: var(--on-dark-soft); }
.section-dark .svc-check-list li::before { background: rgba(167, 139, 250, .18); }
.section-dark .svc-check-list li::after { border-color: var(--accent-bright); }

/* Some of these lists hold <article> children with a <span> label and a <p>
   rather than <li>, so they need their own treatment. */
.case-proof-list > article,
.svc-check-list > article,
.cs-roadmap-list > article,
.faq-live-list > article {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-line);
}
.case-proof-list > article > span:first-child,
.svc-check-list > article > span:first-child,
.cs-roadmap-list > article > span:first-child {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.case-proof-list > article p,
.svc-check-list > article p { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }

.section-dark .case-proof-list > article > span:first-child { color: var(--on-dark); }
.section-dark .case-proof-list > article p { color: var(--on-dark-soft); }

.tick { color: var(--accent); font-weight: 700; }

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-small);
}

/* ---------- 13 METRICS & LOGO STRIP ------------------------------------- */

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: var(--space-6);
}

.metric { text-align: center; }

.metric-number,
.count-up {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.metric-label,
.org-fact-label {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.section-dark .metric-number,
.section-dark .count-up,
.page-hero .count-up,
.page-hero .org-fact-value { color: var(--gold-bright); }
.section-dark .metric-label,
.page-hero .org-fact-label { color: var(--on-dark-soft); }

.org-fact, .org-hero-stat { text-align: center; }

/* Client / credential marquee */
.logo-strip {
  overflow: hidden;
  padding-block: var(--space-6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-strip-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: max-content;
  animation: logo-marquee 38s linear infinite;
}
.logo-strip:hover .logo-strip-track { animation-play-state: paused; }

.logo-strip-track > * {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: .75;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}
.logo-strip-track > *:hover { opacity: 1; color: var(--accent); }
.logo-strip-track img { height: 34px; width: auto; object-fit: contain; }

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

@media (prefers-reduced-motion: reduce) {
  .logo-strip-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .logo-strip { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- 14 RAILS (scroll-snap carousels) ---------------------------- */

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 30%);
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-4);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.rail > * { scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.rail::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 640px) {
  .rail { grid-auto-columns: minmax(250px, 82%); }
}

/* ---------- 15 MEDIA ---------------------------------------------------- */

.service-photo,
.industry-visual-card,
.hero-photo-team,
.services-hero-visual,
.photo-section img,
.resource-feature-card img {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.service-photo img,
.hero-photo-team img,
.services-hero-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.photo-zoom { overflow: hidden; border-radius: var(--radius-card); }
.photo-zoom img { transition: transform .7s var(--ease); }
.photo-zoom:hover img { transform: scale(1.06); }

.service-photo-row {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) {
  .service-photo-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .service-photo-row.reverse .service-photo { order: 2; }
}

/* ---------- 16 TABLES --------------------------------------------------- */

.svc-compare,
.svc-swot,
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.svc-compare, .svc-swot { display: grid; gap: var(--space-4); }
@media (min-width: 700px) {
  .svc-compare { grid-template-columns: 1fr 1fr; }
  .svc-swot { grid-template-columns: 1fr 1fr; }
}

th, td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: var(--font-display);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.table-scroll { overflow-x: auto; }

/* ---------- 17 FAQ / ACCORDION ------------------------------------------ */

.faq-list, .faq-live-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Homepage FAQ support panel and assurance strip. These SVGs are authored
   inline, so they need an explicit box and stroke treatment; otherwise an
   unstyled path falls back to a large, solid black fill. */
.faq-live-copy { min-width: 0; }

.faq-live-support {
  margin-top: var(--space-6);
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  background: linear-gradient(145deg, #fff 0%, var(--accent-wash) 100%);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.faq-live-support-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  font-size: inherit;
}

.faq-live-support-head i,
.faq-live-trust i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  color: var(--accent);
  background: rgba(109, 61, 232, .1);
  border: 1px solid var(--accent-line);
  border-radius: 12px;
}

.faq-live-support-head i svg,
.faq-live-trust i svg,
.faq-live-support > a svg {
  width: 22px;
  height: 22px;
  max-width: none;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-live-support-head strong,
.faq-live-support-head span {
  display: block;
}

.faq-live-support-head strong {
  margin-bottom: .2rem;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  line-height: 1.25;
  color: var(--ink);
}

.faq-live-support-head span {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-soft);
}

.faq-live-support > a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: 100%;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--accent-strong);
  overflow-wrap: anywhere;
}

.faq-live-support > a svg { width: 18px; height: 18px; }

.faq-live-trust {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.faq-live-trust > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: var(--space-3);
  row-gap: .25rem;
  min-width: 0;
  padding: var(--space-4);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-live-trust i { grid-row: 1 / span 2; }

.faq-live-trust strong {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  line-height: 1.3;
  color: var(--ink);
}

.faq-live-trust span {
  font-size: var(--fs-tiny);
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 1100px) {
  .faq-live-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the FAQ introduction sticky without letting the assurance cards
   travel underneath it. On the two-column layout the assurances belong to
   the FAQ column, so the sticky grid row ends before they begin. */
@media (min-width: 900px) {
  .faq-live-copy.sticky-col {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
    align-self: start;
  }

  .faq-live-trust {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: start;
  }
}

@media (max-width: 899px) {
  .faq-live-copy.sticky-col { position: static; }
}

@media (max-width: 620px) {
  .faq-live-trust { grid-template-columns: 1fr; }
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item > button,
.faq-item > summary,
[data-accordion] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  background: transparent;
  border: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }

.faq-item > button::after,
.faq-item > summary::after,
[data-accordion]::after {
  content: "";
  flex: 0 0 auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s var(--ease);
}
.faq-item > button[aria-expanded="true"]::after,
.faq-item[open] > summary::after,
[data-accordion][aria-expanded="true"]::after {
  transform: rotate(225deg) translateY(-3px);
}

.faq-item > div,
.faq-item > p,
.faq-item > button + * {
  padding: 0 clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.1rem, 2.2vw, 1.5rem);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.faq-item[open], .faq-item:has(> button[aria-expanded="true"]) {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-card);
}

/* ---------- 18 FORMS ---------------------------------------------------- */

.contact-form-card,
.svc-lead-panel,
.svc-google-form-card {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.form-grid { gap: var(--space-4); }

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="number"], input[type="search"],
select, textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-wash);
}

textarea { min-height: 130px; resize: vertical; }

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

.form-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.form-status {
  margin-top: var(--space-4);
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status.is-loading { background: var(--surface-sunken); color: var(--ink-soft); }
.form-status.is-success { background: #ECFDF5; color: #065F46; }
.form-status.is-error   { background: #FEF2F2; color: #9F1239; }

.form-success-panel,
.thank-you-card {
  margin-top: var(--space-5);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-card);
}

.form-full { grid-column: 1 / -1; }
.form-heading { margin-bottom: var(--space-4); }
.form-privacy-note { font-size: var(--fs-tiny); color: var(--ink-faint); }
.form-whatsapp { font-size: var(--fs-small); }

/* Honeypot / screen-reader-only fields.
   .form-hp is the contact form's bot trap — it must never be visible or a
   real visitor could fill it and have their genuine enquiry rejected. */
.visually-hidden, .sr-only, .hp-field, .form-hp {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- CONSULTATION MODAL ----------------------------------------- */

.consultation-modal[hidden] { display: none; }

.consultation-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2rem);
}

.consultation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 5, 25, .76);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity .22s var(--ease);
}

.consultation-modal__panel {
  position: relative;
  width: min(100%, 850px);
  max-height: min(92dvh, 880px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 34px 90px -24px rgba(8, 3, 22, .72);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}

.consultation-modal.is-open .consultation-modal__backdrop { opacity: 1; }
.consultation-modal.is-open .consultation-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.consultation-open { overflow: hidden; }

.consultation-modal__close {
  position: sticky;
  z-index: 2;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -.35rem -.35rem .25rem .75rem;
  padding: 0;
  background: var(--surface-sunken);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.consultation-modal__close:hover,
.consultation-modal__close:focus-visible {
  background: var(--accent-wash);
  color: var(--accent-strong);
}

.consultation-modal__heading {
  max-width: 670px;
  margin-bottom: var(--space-5);
}
.consultation-modal__heading h2 { margin-block: .4rem .75rem; }
.consultation-modal__heading > p:last-child { color: var(--ink-soft); }

.consultation-modal__form {
  clear: both;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.consultation-modal__form textarea { min-height: 105px; }

.consultation-modal__thanks {
  clear: both;
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  text-align: center;
}
.consultation-modal__success-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto var(--space-5);
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
}
.consultation-modal__thanks h2 { margin-block: .4rem .75rem; }
.consultation-modal__thanks > p:not(.eyebrow) {
  max-width: 52ch;
  margin: 0 auto var(--space-6);
  color: var(--ink-soft);
}

@media (max-width: 680px) {
  .consultation-modal { padding: .5rem; }
  .consultation-modal__panel {
    max-height: calc(100dvh - 1rem);
    padding: 1.15rem;
    border-radius: 1.25rem;
  }
  .consultation-modal .form-grid { grid-template-columns: 1fr; }
  .consultation-modal .form-submit-row { align-items: stretch; }
  .consultation-modal .form-submit-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .consultation-modal__backdrop,
  .consultation-modal__panel { transition: none; }
}

/* ---------- 19 GLOBAL CTA BAND ------------------------------------------ */

.global-cta {
  position: relative;
  isolation: isolate;
  background: var(--dark);
  padding-block: var(--space-section);
  overflow: hidden;
}

.global-cta::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% ;
  height: 90%;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 20% 80%, rgba(109, 61, 232, .42) 0%, transparent 70%),
    radial-gradient(40% 55% at 85% 60%, rgba(233, 196, 106, .14) 0%, transparent 72%);
  pointer-events: none;
}

.global-cta__shell {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (min-width: 980px) {
  .global-cta__shell { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .global-cta__trust { grid-column: 2; }
}

.global-cta h2 {
  font-size: var(--fs-h2);
  font-weight: 900;
  margin-bottom: var(--space-4);
}

.global-cta__rule {
  display: block;
  width: 72px; height: 3px;
  margin-bottom: var(--space-4);
  background: linear-gradient(90deg, var(--accent-bright), var(--gold-bright));
  border-radius: 2px;
}

.global-cta__lead { max-width: 56ch; }

.global-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.global-cta__button svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.global-cta__benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--space-4);
}
.global-cta__benefits li {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--on-dark);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.global-cta__benefits li:hover {
  background: rgba(167, 139, 250, .12);
  border-color: rgba(167, 139, 250, .35);
}
.global-cta__benefits svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--gold-bright); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

.global-cta__trust {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-card);
}
.global-cta__trust svg {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  fill: none; stroke: var(--gold-bright); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.global-cta__trust p {
  margin: 0;
  font-weight: 700;
  color: var(--on-dark);
  font-size: var(--fs-small);
}
.global-cta__trust span { color: var(--gold-bright); letter-spacing: .1em; font-size: var(--fs-tiny); }

/* ---------- 20 FOOTER --------------------------------------------------- */

.site-footer {
  background: var(--dark);
  color: var(--on-dark-soft);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) var(--space-6);
  border-top: 1px solid var(--dark-line);
}

.footer-inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

@media (min-width: 1000px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; }
}

.footer-brand-block { display: flex; flex-direction: column; gap: var(--space-4); }

.footer-logo .site-logo-img {
  height: 44px; width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .95;
}

.footer-tagline {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--on-dark-soft);
  max-width: 42ch;
}

.footer-consult {
  align-self: flex-start;
  padding: .8rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-size: var(--fs-small);
}
.footer-consult:hover { background: var(--accent-strong); color: #fff; transform: translateY(-2px); }

.footer-col-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 var(--space-4);
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.footer-col-title svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.footer-col-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-col-links a {
  font-size: var(--fs-small);
  color: var(--on-dark-soft);
  transition: color .2s var(--ease), transform .2s var(--ease);
  display: inline-block;
}
.footer-col-links a:hover { color: #fff; transform: translateX(3px); }

.footer-more { margin-top: var(--space-4); }
.footer-more summary {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  cursor: pointer;
  list-style: none;
}
.footer-more summary::-webkit-details-marker { display: none; }
.footer-more summary svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.footer-more[open] summary svg { transform: rotate(180deg); }
.footer-more-links { margin-top: var(--space-3); }

.footer-contact { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-contact a, .footer-contact address {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--on-dark-soft);
}
.footer-contact a:hover { color: #fff; }
.footer-contact svg {
  width: 17px; height: 17px;
  flex: 0 0 auto;
  margin-top: .22em;
  fill: none; stroke: var(--accent-bright); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: var(--container-max);
  margin: var(--space-8) auto 0;
  padding: var(--space-5) var(--gutter) 0;
  border-top: 1px solid var(--dark-line);
  font-size: var(--fs-tiny);
  color: var(--on-dark-soft);
}
.footer-cin { display: inline-flex; align-items: center; gap: .5rem; }
.footer-cin svg {
  width: 16px; height: 16px;
  fill: none; stroke: var(--gold-bright); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- 21 FLOATING WHATSAPP ---------------------------------------- */

.floating-whatsapp,
.svc-whatsapp-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.35rem;
  background: #128C7E;
  color: #fff !important;
  font-size: var(--fs-small);
  font-weight: 650;
  border-radius: var(--radius-pill);
  box-shadow: 0 14px 34px -12px rgba(18, 140, 126, .8);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.floating-whatsapp:hover, .svc-whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px -12px rgba(18, 140, 126, .9);
}
.floating-whatsapp__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .02em;
  background: rgba(255, 255, 255, .22);
  border-radius: 50%;
}

@media (max-width: 560px) {
  .floating-whatsapp__text { display: none; }
  .floating-whatsapp { padding: .85rem; }
}

/* ---------- 22 BLOG ----------------------------------------------------- */

.blog-card { padding: 0; overflow: hidden; }
.blog-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.blog-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 0; }
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}
.blog-card h2, .blog-card h3 { font-size: var(--fs-h4); margin: 0; }
.blog-card:hover h2, .blog-card:hover h3 { color: var(--accent); }

.blog-post-meta { font-size: var(--fs-tiny); color: var(--ink-faint); }

.blog-card-image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-sunken); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder tile for posts with no featured image: the category initials
   on a violet field, cycling through six tints so a grid stays varied. */
.blog-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--dark) 0%, #3A2270 100%);
}
.blog-card-visual span {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: .85;
}
.blog-card-visual-2 { background: linear-gradient(135deg, #1B0F38 0%, #4A2A86 100%); }
.blog-card-visual-3 { background: linear-gradient(135deg, #150B2E 0%, #6D3DE8 100%); }
.blog-card-visual-4 { background: linear-gradient(135deg, #221046 0%, #8253F0 100%); }
.blog-card-visual-5 { background: linear-gradient(135deg, #120826 0%, #5B21B6 100%); }
.blog-card-visual-6 { background: linear-gradient(135deg, #1E1140 0%, #3F2278 100%); }

.blog-card-link {
  margin-top: auto;
  font-weight: 650;
  font-size: var(--fs-small);
  color: var(--accent);
}

/* Hero topic chips */
.blog-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-5); }
.blog-tags span {
  padding: .4rem 1rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
}

.blog-signal-card { align-self: start; gap: var(--space-4); }

/* Long-form post body */
.post-body {
  max-width: 72ch;
  margin-inline: auto;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--ink-soft);
}
.post-body h2, .post-body h3 {
  margin-top: var(--space-7);
  text-transform: none;
  letter-spacing: -0.015em;
}
.post-body ul, .post-body ol { margin: 0 0 var(--space-4); padding-left: 1.4rem; }
.post-body li { list-style: disc; margin-bottom: .5rem; }
.post-body ol li { list-style: decimal; }
.post-body img { border-radius: var(--radius-card); margin-block: var(--space-6); }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 23 REVEAL / MOTION UTILITIES -------------------------------- */

/* Progressive enhancement: content is hidden ONLY when JavaScript is running
   AND the visitor has not asked for reduced motion. No JS, no IntersectionObserver,
   or reduced-motion => everything is visible from the first paint. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal,
  html.js .reveal-on-scroll,
  html.js .slide-left,
  html.js .slide-right,
  html.js .slide-up,
  html.js .slide-down,
  html.js .scale-in,
  html.js [data-stagger] > * {
    opacity: 0;
    transition:
      opacity .65s var(--ease) var(--reveal-delay, 0ms),
      transform .65s var(--ease) var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  html.js .reveal,
  html.js .reveal-on-scroll,
  html.js .slide-up,
  html.js [data-stagger] > *  { transform: translateY(22px); }
  html.js .slide-down { transform: translateY(-22px); }
  html.js .slide-left { transform: translateX(-26px); }
  html.js .slide-right{ transform: translateX(26px); }
  html.js .scale-in   { transform: scale(.94); }

  html.js .reveal.is-visible,
  html.js .reveal-on-scroll.is-visible,
  html.js .slide-left.is-visible,
  html.js .slide-right.is-visible,
  html.js .slide-up.is-visible,
  html.js .slide-down.is-visible,
  html.js .scale-in.is-visible,
  html.js [data-stagger] > .is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Never fade a whole <section>. Several pages put .reveal-on-scroll on the
   section element itself, which would fade its background band too and leave
   the viewport blank until the observer fires. Sections paint immediately;
   only their contents animate. */
@media (prefers-reduced-motion: no-preference) {
  html.js section.reveal,
  html.js section.reveal-on-scroll,
  html.js main.reveal,
  html.js main.reveal-on-scroll,
  html.js footer.reveal,
  html.js footer.reveal-on-scroll {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

/* Legacy class emitted by the old engine — kept so nothing regresses. */
.visible { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 24 PAGE-SPECIFIC ADJUSTMENTS -------------------------------- */

/* Homepage start-here router */
.start-here-card { text-align: left; }
.start-here-link { margin-top: auto; align-self: flex-start; }

/* ---- Homepage: Nine Services ------------------------------------------
   These nine cards are one ordered journey — diagnosis, readiness, research,
   positioning, compliance, market entry, buyer development, partnerships,
   representation — so the container is an <ol> and the visual order must
   always equal the DOM order. Nothing below may resequence it. */
.services-live-heading { margin-bottom: var(--space-7); }
.services-live-heading .section-lead { margin-top: var(--space-4); }

.services-live-grid {
  /* `row`, never `dense`: dense packing would reorder cards around gaps. */
  grid-auto-flow: row;
}
/* No card may set its own position, so the single-column mobile stack is
   identical to 01-08 in the source. */
.services-live-grid > li { order: 0; }

.services-live-card {
  /* Tighter corners than the site default — reads as an institutional
     services index rather than a SaaS pricing card. */
  border-radius: 1rem;
  gap: var(--space-2);
}
.services-live-card::before { border-radius: 1rem 1rem 0 0; }
.services-live-card h3 { margin-bottom: var(--space-1); }
.services-live-card p { flex: 1 1 auto; }

.services-live-card > a {
  align-self: flex-start;
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--fs-small);
  font-weight: 650;
  color: var(--accent);
}
.services-live-card > a::after {
  content: "\2192";
  transition: transform .25s var(--ease);
}

/* Hover: lift (inherited), number brightens (inherited), CTA nudges, border
   accent strengthens. Deliberately no scale. */
.services-live-card:hover { border-color: rgba(109, 61, 232, .45); }
.services-live-card:hover > a { color: var(--accent-strong); }
.services-live-card:hover > a::after { transform: translateX(4px); }

@media (prefers-reduced-motion: no-preference) {
  /* Hold the cards back so the eyebrow, heading and supporting line land
     first, then 01-08 wave in behind them. */
  html.js .services-live-grid > li {
    transition-delay: calc(var(--reveal-delay, 0ms) + 240ms);
  }
}

@media (max-width: 640px) {
  .services-live-grid { grid-template-columns: 1fr; }
}

/* ---- Services page: showcase grid ------------------------------------
   The "Explore Each Service In Depth" grid on services.php. A dedicated
   dark, premium band with a fixed 3x3 layout at desktop width and a 3D
   tilt-up reveal as each row scrolls into view. Scoped entirely through
   the services-showcase-* modifier classes so the plain detailed-service-
   card recipe used on the nine individual service pages is untouched. */
.services-showcase-section {
  position: relative;
  background:
    radial-gradient(60% 55% at 14% 10%, rgba(109, 61, 232, .38), transparent 62%),
    radial-gradient(55% 50% at 88% 88%, rgba(233, 196, 106, .16), transparent 65%),
    var(--dark);
}
.services-showcase-section .eyebrow { color: var(--gold-bright); }
.services-showcase-section h2 { color: var(--on-dark); }
.services-showcase-section .section-lead { color: var(--on-dark-soft); }

.services-showcase-grid {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .services-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .services-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* The sitewide [class*="-card"] recipe (section 09) carries higher
   specificity than a single class selector, so every rule below that
   overrides a shared property is qualified through the full
   section > grid > card chain to win outright, not just on source order. */
.services-showcase-section .services-showcase-grid > .services-showcase-card {
  gap: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .65);
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), border-color .35s var(--ease),
              box-shadow .4s var(--ease), background .35s var(--ease);
}

.services-showcase-section .services-showcase-grid > .services-showcase-card:hover,
.services-showcase-section .services-showcase-grid > .services-showcase-card:focus-visible {
  transform: perspective(1200px) rotateX(-4deg) rotateY(4deg) translateY(-10px) scale(1.015);
  border-color: rgba(233, 196, 106, .5);
  box-shadow: 0 44px 84px -30px rgba(109, 61, 232, .5);
  background: linear-gradient(165deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .03));
}

.services-showcase-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(109, 61, 232, .4), rgba(233, 196, 106, .22));
  border: 1px solid rgba(255, 255, 255, .18);
}
.services-showcase-icon .nav-ico { width: 26px; height: 26px; opacity: 1; color: var(--gold-bright); }

.services-showcase-section .services-showcase-grid > .services-showcase-card .service-number {
  position: absolute;
  top: clamp(1.5rem, 2.4vw, 2rem);
  right: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--gold-bright);
}

.services-showcase-section .services-showcase-grid > .services-showcase-card h3 { color: var(--on-dark); margin: 0 0 var(--space-2); }
.services-showcase-section .services-showcase-grid > .services-showcase-card p  { color: var(--on-dark-soft); margin: 0; }

.services-showcase-cta {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--gold-bright);
}
.services-showcase-cta::after {
  content: "\2192";
  display: inline-block;
  margin-left: .4rem;
  transition: transform .25s var(--ease);
}
.services-showcase-section .services-showcase-grid > .services-showcase-card:hover .services-showcase-cta,
.services-showcase-section .services-showcase-grid > .services-showcase-card:focus-visible .services-showcase-cta { color: var(--on-dark); }
.services-showcase-section .services-showcase-grid > .services-showcase-card:hover .services-showcase-cta::after,
.services-showcase-section .services-showcase-grid > .services-showcase-card:focus-visible .services-showcase-cta::after { transform: translateX(5px); }

/* 3D scroll reveal: overrides the generic [data-stagger] > * translateY
   for this grid only — cards tilt up out of the page as each row enters
   the viewport, instead of the sitewide plain fade-up. */
@media (prefers-reduced-motion: no-preference) {
  html.js .services-showcase-grid > .services-showcase-card {
    transform: perspective(1600px) rotateX(40deg) translateY(70px) scale(.9);
    transform-origin: 50% 100%;
  }
  html.js .services-showcase-grid > .services-showcase-card.is-visible {
    transform: none;
  }
}


/* Service suite lead panels sit on the accent wash */
.svc-lead-panel { background: var(--accent-wash); border-color: var(--accent-line); }
.svc-lead-copy { font-size: var(--fs-small); color: var(--ink-soft); }
.svc-secondary-note { font-size: var(--fs-tiny); color: var(--ink-faint); }
.svc-google-form-note { font-size: var(--fs-tiny); color: var(--ink-faint); }

/* Organization page leadership feature */
.team-leader-feature,
.org-hero-panel {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
@media (min-width: 860px) {
  .team-leader-feature { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
.team-leader-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.team-leader-copy > h2, .leader-copy > h2 { text-transform: none; letter-spacing: -0.02em; }
.team-leader-photo { border-radius: var(--radius-card); overflow: hidden; }
.team-leader-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.team-leader-name, .leader-role {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-soft);
}
.team-leader-headline { margin: 0; font-size: var(--fs-h3); }

.team-leader-quote {
  margin: 0;
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--accent);
  background: var(--accent-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Tag pills and the founded/services stat pair. */
.team-leader-tags, .leader-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.team-leader-tags > span, .leader-tags > span {
  display: inline-flex;
  padding: .35rem .85rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.team-leader-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.team-leader-stats > div { display: flex; flex-direction: column; gap: .15rem; }
.team-leader-stats strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
}
.team-leader-stats small {
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Same stat pattern appears in the team and organization hero cards. */
.team-page-hero-card > div:last-child,
.org-hero-panel > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.team-page-hero-card > div:last-child > div,
.org-hero-panel > div:last-child > div { display: flex; flex-direction: column; gap: .15rem; }
.team-page-hero-card small, .org-hero-panel small {
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

/* ---- Organization page ---------------------------------------------- */
/* Its 1,615-line inline stylesheet was retired; these rules rebuild the page
   on the shared system. `.org-hero` is its own hero class, so it is opted in
   to the dark treatment explicitly. */
.org-hero {
  position: relative;
  isolation: isolate;
  background: var(--dark);
  color: var(--on-dark-soft);
  padding-block: calc(var(--nav-h) + clamp(3rem, 7vw, 5.5rem)) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.org-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto;
  height: 80%;
  z-index: -1;
  background:
    radial-gradient(48% 60% at 22% 30%, rgba(109, 61, 232, .38) 0%, transparent 68%),
    radial-gradient(42% 55% at 82% 18%, rgba(233, 196, 106, .16) 0%, transparent 70%);
}
.org-hero h1, .org-hero h2 { color: var(--on-dark); }
.org-hero h1 em { color: var(--accent-bright); }
.org-hero p { color: var(--on-dark-soft); }
.org-hero .eyebrow { color: var(--gold-bright); }

.org-hero-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
  background: var(--dark-soft);
  border-color: var(--dark-line);
  box-shadow: none;
}
.org-hero-panel-label { color: var(--gold-bright); }

.org-hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-5); }
.org-hero-chips span {
  padding: .4rem 1rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
}

/* These "stats" are short phrases, not figures, so they take a heading size
   rather than the big-number treatment. */
.org-hero-stat { display: flex; flex-direction: column; gap: .2rem; }
.org-hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  overflow-wrap: anywhere;
}
.org-hero-stat span { font-size: var(--fs-tiny); color: var(--on-dark-soft); }

.org-hero-services {
  display: flex;
  flex-direction: column;
  gap: clamp(1.1rem, 2.2vw, 1.6rem);
  width: 100%;
  min-width: 0;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px -42px rgba(0, 0, 0, .85);
}
.org-hero-services-head {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  max-width: 52ch;
}
.org-hero-services-head .eyebrow { margin: 0; }
.org-hero-services-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem);
  line-height: 1.15;
}
.org-hero-services-head p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.55;
}
.org-hero-services .org-hero-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.65rem, 1.3vw, 1rem);
}
.org-hero-service-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
}
.org-hero-service-column-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 58px;
  padding: .75rem .85rem;
  border-bottom: 1px solid var(--dark-line);
}
.org-hero-service-column-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  font-size: .68rem;
  font-weight: 800;
  color: var(--dark);
  background: var(--gold-bright);
  border-radius: 50%;
}
.org-hero-service-column h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--on-dark);
}
.org-hero-service-column ul {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.org-hero-service-column li { display: flex; flex: 1; }
.org-hero-service-column li + li { border-top: 1px solid var(--dark-line); }
.org-hero-service-column a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  width: 100%;
  min-height: 78px;
  padding: .75rem .85rem;
  color: var(--on-dark-soft);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.org-hero-service-column a:hover,
.org-hero-service-column a:focus-visible {
  color: var(--on-dark);
  background: rgba(233, 196, 106, .08);
}
.org-hero-service-column a > span {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gold-bright);
}
.org-hero-service-column a > strong {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.35;
  color: inherit;
}
.org-hero-services-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  align-self: flex-start;
  padding-bottom: .2rem;
  border-bottom: 1px solid rgba(233, 196, 106, .45);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--gold-bright);
}

@media (min-width: 900px) {
  .org-hero-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
}
@media (max-width: 720px) {
  .org-hero-services .org-hero-service-grid { grid-template-columns: 1fr; }
  .org-hero-service-column a { min-height: 0; }
}

.org-facts-strip { padding-block: var(--space-7); background: var(--surface-alt); }
.org-facts-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: var(--space-5);
}
.org-fact { display: flex; flex-direction: column; gap: .35rem; text-align: center; }
.org-fact-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.org-model-step { gap: var(--space-2); }
.org-value-card { align-items: flex-start; }
.org-markets-grid { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Organization leadership and consulting model --------------------------
   The organization page uses the editorial, horizontal composition from the
   approved visual reference while retaining all CMS-managed profile content. */
.our-organization .leadership-reference-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: #fff;
}

.our-organization .leadership-reference-heading,
.our-organization .org-model-reference-heading {
  max-width: 920px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.our-organization .leadership-reference-heading {
  max-width: none;
  width: 100%;
}

.our-organization .leadership-reference-heading .eyebrow,
.our-organization .org-model-reference-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.our-organization .leadership-reference-heading .eyebrow::after,
.our-organization .org-model-reference-heading .eyebrow::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--accent);
}

.our-organization .leadership-reference-heading h2,
.our-organization .org-model-reference-heading h2 {
  max-width: 820px;
  margin-bottom: .8rem;
  font-size: clamp(2.35rem, 4.8vw, 4.5rem);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.our-organization .leadership-reference-heading h2 {
  max-width: none;
  width: 100%;
}

.our-organization .leadership-reference-heading .section-lead {
  max-width: 1000px;
}

.our-organization .leadership-reference-heading .section-lead,
.our-organization .org-model-reference-heading .section-lead {
  max-width: 800px;
  margin: 0;
  color: var(--ink-soft);
}

.our-organization .leadership-reference-grid {
  display: block;
}

.our-organization .leadership-reference-grid .leadership-card {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.38fr);
  gap: 0;
  min-height: 400px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 20px 50px -42px rgba(7, 26, 43, .55);
}

.our-organization .leadership-reference-grid .leadership-card:hover {
  transform: none;
  border-color: var(--accent-line);
  box-shadow: 0 24px 56px -42px rgba(7, 26, 43, .65);
}

.our-organization .leadership-reference-grid .leader-photo {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  background: var(--surface-sunken);
}

.our-organization .leadership-reference-grid .leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 0;
}

.our-organization .leadership-reference-grid .leader-location {
  position: absolute;
  inset: auto auto 1rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  color: #fff;
  background: rgba(5, 21, 33, .76);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.our-organization .leadership-reference-grid .leader-location::before {
  content: "";
  width: .45rem;
  height: .45rem;
  background: var(--gold-bright);
  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;
}

.our-organization .leadership-reference-grid .leader-copy {
  justify-content: center;
  gap: .7rem;
  padding: clamp(2rem, 4vw, 4rem);
}

.our-organization .leadership-reference-grid .leader-role {
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.our-organization .leadership-reference-grid .leader-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1;
  letter-spacing: -.025em;
  text-transform: none;
}

.our-organization .leadership-reference-grid .leader-title {
  margin: 0 0 .45rem;
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.our-organization .leadership-reference-grid .leader-title::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 1px;
  margin-top: .8rem;
  background: var(--accent);
}

.our-organization .leadership-reference-grid .leader-bio {
  margin: 0;
  font-size: clamp(.9rem, 1.15vw, 1rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.our-organization .leadership-reference-grid .leader-tags {
  gap: .45rem;
  margin-top: .4rem;
}

.our-organization .leadership-reference-grid .leader-tags > span {
  padding: .42rem .78rem;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border-color: transparent;
  border-radius: 999px;
  font-size: .68rem;
}

.our-organization .leadership-reference-action {
  margin-top: 1.5rem;
  text-align: center;
}

.our-organization .org-model-reference-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: var(--surface-alt);
}

.our-organization .org-model-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.our-organization .org-model-flow .org-model-step {
  display: grid;
  grid-template-columns: 64px 54px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 142px;
  padding: 1.35rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .8rem;
  box-shadow: 0 12px 30px -28px rgba(7, 26, 43, .5);
}

.our-organization .org-model-flow .org-model-step:hover {
  transform: none;
  border-color: var(--accent-line);
}

.our-organization .org-model-num {
  align-self: start;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: .9;
  color: rgba(174, 112, 25, .3);
}

.our-organization .org-model-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--accent);
  background: var(--surface-alt);
  border-radius: 50%;
}

.our-organization .org-model-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.our-organization .org-model-copy h3 {
  margin: 0 0 .3rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.2;
}

.our-organization .org-model-copy p {
  margin: 0;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .our-organization .leadership-reference-grid .leadership-card {
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  }

  .our-organization .org-model-flow { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .our-organization .leadership-reference-section,
  .our-organization .org-model-reference-section {
    padding-block: 3.5rem;
  }

  .our-organization .leadership-reference-heading h2,
  .our-organization .org-model-reference-heading h2 {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }

  .our-organization .leadership-title-break { display: none; }

  .our-organization .leadership-reference-grid .leadership-card {
    display: block;
    min-height: 0;
  }

  .our-organization .leadership-reference-grid .leader-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .our-organization .leadership-reference-grid .leader-copy {
    padding: 1.5rem;
  }

  .our-organization .leadership-reference-grid .leader-copy h3 {
    font-size: 2rem;
  }

  .our-organization .org-model-flow .org-model-step {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: .8rem 1rem;
    min-height: 0;
    padding: 1.25rem;
  }

  .our-organization .org-model-num {
    grid-column: 1;
    grid-row: 1;
    font-size: 2.6rem;
  }

  .our-organization .org-model-icon {
    grid-column: 1;
    grid-row: 2;
    width: 46px;
    height: 46px;
  }

  .our-organization .org-model-copy {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

/* Careers empty state */
.careers-empty-title { font-size: var(--fs-h4); }

/* Thank-you page */
.thank-you-card { text-align: center; max-width: 640px; margin-inline: auto; }
.thank-you-icon { margin-inline: auto; width: 64px; height: 64px; }

/* Visual route diagram (how-it-works) */
.visual-node { align-items: center; text-align: center; }
.process-flow, .process-live-grid { display: grid; gap: var(--space-5); }

/* Anchor offset helper used by service pages */
.service-anchor-alias { display: block; height: 0; scroll-margin-top: calc(var(--nav-h) + 2rem); }

/* Before / after comparison (case studies) */
.cs-client-section { background: var(--surface-alt); }
.cs-client-section .section-heading { max-width: 780px; }
.cs-client-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
.cs-client-section .cs-client-grid > .cs-client-card {
  gap: var(--space-5);
  height: 100%;
  padding: clamp(1.25rem, 2.6vw, 2rem);
}
.cs-client-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
}
.cs-client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  padding: .8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cs-client-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.cs-client-identity { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.cs-client-identity h3 { margin: 0; font-size: clamp(1.3rem, 1.1rem + .65vw, 1.75rem); }
.cs-client-identity p { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.cs-client-service,
.cs-client-label {
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.cs-client-scope { display: flex; flex-direction: column; gap: var(--space-3); }
.cs-client-scope ul { display: flex; flex-direction: column; gap: .7rem; }
.cs-client-scope li {
  position: relative;
  padding-left: 1.45rem;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-soft);
}
.cs-client-scope li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: .68rem;
  height: .36rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.cs-client-link { align-self: flex-start; margin-top: auto; }
.cs-client-note {
  max-width: 880px;
  margin: var(--space-5) 0 0;
  padding-left: var(--space-4);
  border-left: 2px solid var(--accent-line);
  font-size: var(--fs-tiny);
  line-height: 1.6;
  color: var(--ink-faint);
}

@media (max-width: 820px) {
  .cs-client-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cs-client-head { grid-template-columns: 1fr; }
  .cs-client-logo { max-width: 180px; }
}

.cs-roadmap-section .section-heading {
  max-width: 820px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.cs-roadmap-section .section-heading h2 { color: var(--on-dark); }
.cs-roadmap-section .section-heading .section-lead { color: var(--on-dark-soft); }
.cs-roadmap-section .cs-roadmap-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1120px;
  margin-inline: auto;
}
.cs-roadmap-section .cs-roadmap-grid > .cs-roadmap-card {
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .98);
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 28px 70px -38px rgba(0, 0, 0, .75);
}
.cs-roadmap-section .cs-roadmap-grid > .cs-roadmap-card:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 196, 106, .55);
}
.cs-roadmap-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(90deg, var(--accent-wash), var(--surface-sunken));
  border-bottom: 1px solid var(--line);
}
.cs-roadmap-type {
  font-size: var(--fs-tiny);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cs-roadmap-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  padding: .8rem clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.cs-roadmap-services > span {
  margin-right: .25rem;
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.cs-roadmap-services > a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .38rem .72rem;
  font-size: var(--fs-tiny);
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink-soft);
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.cs-roadmap-services > a:hover,
.cs-roadmap-services > a:focus-visible {
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-wash);
}
.cs-roadmap-body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) repeat(2, minmax(0, 1fr));
}
.cs-roadmap-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.cs-roadmap-col + .cs-roadmap-col { border-left: 1px solid var(--line); }
.cs-roadmap-col h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.15rem + .7vw, 1.85rem);
  line-height: 1.15;
}
.cs-roadmap-col > p:not(.cs-roadmap-col-label) {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--ink-soft);
}
.cs-roadmap-col-label { align-self: flex-start; }
.cs-roadmap-list { gap: .65rem; }
.cs-roadmap-list li { line-height: 1.5; }

.cs-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
}
.cs-before, .cs-after {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.cs-before { background: #FEF7F7; border-color: #FBD5D5; }
.cs-after  { background: #F2FCF7; border-color: #B7EBD0; }
.cs-before ul, .cs-after ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1rem;
}
.cs-before li, .cs-after li {
  position: relative;
  padding-left: 1.2rem;
  line-height: 1.45;
}
.cs-before li::before, .cs-after li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}
.cs-before li::before { content: "\00d7"; color: #BE123C; }
.cs-after li::before { content: "\2713"; color: #047857; }

.cs-roadmap-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 1rem clamp(1.25rem, 3vw, 2rem);
  background: var(--surface-sunken);
  border-top: 1px solid var(--line);
}
.cs-roadmap-number {
  font-size: 1.15rem;
  opacity: .55;
}

@media (max-width: 860px) {
  .cs-roadmap-body { grid-template-columns: 1fr; }
  .cs-roadmap-col + .cs-roadmap-col { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .cs-roadmap-topbar { align-items: flex-start; flex-direction: column; }
  .cs-roadmap-services > span { flex-basis: 100%; margin-bottom: .1rem; }
  .cs-before-after { grid-template-columns: 1fr; }
  .cs-before ul, .cs-after ul { grid-template-columns: 1fr; }
  .cs-roadmap-footer { align-items: flex-start; }
}

/* Journey / path wrappers that only need flow */
.hiw-step-content, .hiw-step-detail, .hiw-path-services,
.process-left, .service-photo-content, .contact-copy,
.cs-trust-content, .contact-next-steps, .thank-you-main,
.single-service-flow, .industry-route-flow, .blog-post-header,
.hire-steps, .service-path-tags {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.hiw-path-service, .service-path-tags > span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.hiw-path-services { flex-direction: column; gap: var(--space-2); }
.service-path-tags { flex-direction: row; flex-wrap: wrap; gap: .5rem; }

.next-step-text { font-size: var(--fs-small); color: var(--ink-soft); }
.thank-you-note { font-size: var(--fs-small); color: var(--ink-soft); }
.thank-you-home { margin-top: var(--space-5); }
.compact-mini-cta { margin-top: var(--space-5); }

.contact-map-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.contact-map-embed iframe { display: block; width: 100%; border: 0; min-height: 320px; }

.service-menu-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

/* Reusable dark photo band */
.dark-band-photo {
  position: relative;
  isolation: isolate;
  background: var(--dark);
  color: var(--on-dark-soft);
  overflow: hidden;
}
.dark-band-photo-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: .28;
}
.dark-band-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 10, 43, .82), rgba(20, 10, 43, .94));
}

/* ---------- 25 RESPONSIVE ----------------------------------------------- */

@media (max-width: 980px) {
  :root { --nav-h: 76px; }

  .site-menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1001;
    width: min(88vw, 380px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--nav-h) + 1.5rem) var(--space-5) var(--space-7);
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px -20px rgba(20, 10, 43, .3);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }

  .nav-links.is-open { transform: translateX(0); visibility: visible; }

  .nav-links > li { border-bottom: 1px solid var(--line); }
  .nav-links > li:last-child { border-bottom: 0; }

  .nav-links > li > a {
    justify-content: space-between;
    width: 100%;
    padding: 1rem .25rem;
    font-size: 1.0625rem;
    color: var(--ink);
  }

  .has-menu::after { display: none; }

  .nav-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    max-width: none;
    margin: 0 0 .75rem;
    padding: 0 0 0 .5rem;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--accent-line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .has-menu.is-mobile-expanded > .nav-dropdown { display: block; }
  .nav-dropdown a { padding: .6rem .75rem; }
  .nav-dropdown a small { display: none; }

  .nav-cta {
    justify-content: center;
    margin-top: var(--space-5);
    padding: .9rem 1.5rem !important;
  }

  .site-nav { inset: .75rem .75rem auto; padding: .65rem 1rem; }
  .nav-logo .site-logo-img { height: 32px; }
}

@media (max-width: 760px) {
  .hiw-detail-row { grid-template-columns: 1fr; gap: var(--space-2); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .global-cta__actions .global-cta__button { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .sticky-col { position: static; }
}

@media (max-width: 520px) {
  :root { --radius-card: 1.35rem; --radius-lg: 1.75rem; }
  .metric-row { gap: var(--space-5); }
}

/* ---------- PRINT ------------------------------------------------------- */

@media print {
  .site-nav, .nav-scrim, .floating-whatsapp, .global-cta,
  .skip-link, .site-footer { display: none !important; }
  body { color: #000; background: #fff; }
  .reveal, .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* ---- Homepage: video hero ---------------------------------------------
   Replaces the photographic background. The poster paints first (and is
   preloaded), the video takes over once it can play, and the whole thing is
   decorative — the headline is the only content. */
.hero-video {
  display: flex;
  align-items: center;
  /* Full-screen hero. dvh tracks the mobile URL bar so the video always fills
     the visible area; vh is the fallback for browsers without dvh. */
  min-height: 100vh;
  min-height: 100dvh;
  /* Symmetric padding keeps the headline optically centred while still
     clearing the floating nav on short/landscape viewports. */
  padding-block: calc(var(--nav-h) + 1rem);
  /* The photo background from the previous hero must not sit under the video. */
  background-image: none;
  background-color: var(--dark);
}

.hero-video-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  /* Poster shows through until the first frame decodes. */
  background: var(--dark) center / cover no-repeat;
}

/* Scrim: a vertical wash plus a vignette centred on the headline. The video
   changes frame to frame, so this is deliberately strong enough to hold
   contrast on its brightest frame, not just its average one. */
.hero-video-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 85% at 50% 50%,
      rgba(20, 10, 43, .70) 0%,
      rgba(20, 10, 43, .55) 55%,
      rgba(20, 10, 43, .45) 100%),
    linear-gradient(180deg,
      rgba(20, 10, 43, .60) 0%,
      rgba(20, 10, 43, .50) 45%,
      rgba(20, 10, 43, .93) 100%);
}

/* The grid texture is redundant over moving footage. */
.hero-video::after { display: none; }

.hero-video .hero-copy-shell { text-align: center; }

.hero-headline {
  margin: 0;
  font-size: clamp(2.75rem, 1.2rem + 6.4vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--on-dark);
  text-wrap: balance;
}

/* Each word is its own span so it can rise independently. inline-block is
   required — transforms do not apply to inline boxes. */
.hero-headline > span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* Slightly quicker than the site default: this is the LCP text, so the
     cascade should finish fast rather than linger. */
  html.js .hero-headline > span {
    transition-duration: .55s;
  }

  /* Scroll-linked movement uses the individual translate property so it
     composes with the existing entrance transform. Odd words travel left,
     even words travel right; deriving the value from scroll position makes
     the exact movement play backwards when the visitor scrolls up. */
  .hero-scroll-motion .hero-headline > span.is-visible {
    opacity: var(--hero-scroll-opacity, 1);
    translate: var(--hero-slide-left, 0) 0;
    transition:
      opacity .08s linear,
      translate .08s linear;
    will-change: opacity, translate;
  }

  .hero-scroll-motion .hero-headline > span.is-visible:nth-child(even) {
    translate: var(--hero-slide-right, 0) 0;
  }
}

/* Reduced motion, or a browser that blocks autoplay: the poster frame stands
   in and nothing moves. */
.hero-video-el[data-video-paused] { display: none; }
.hero-video-media[data-poster-only] {
  background: var(--dark) url('/ezewag-website-assets/images/hero-home-poster.jpg') center / cover no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-el { display: none; }
  .hero-video-media {
    background: var(--dark) url('/ezewag-website-assets/images/hero-home-poster.jpg') center / cover no-repeat;
  }
}

@media (max-width: 700px) {
  .hero-video { padding-block: calc(var(--nav-h) + 0.5rem); }
}



/* ==========================================================================
   Navigation — macOS-style cascading menubar
   A compact row of labels; the open label wears a light pill; each panel is
   translucent dark glass holding icon + label rows, with hairline separators
   between groups and an optional third-level flyout on .has-sub rows.
   ========================================================================== */

:root {
  --menu-bg:        rgba(24, 26, 34, .74);
  --menu-bg-solid:  rgba(24, 26, 34, .94);
  --menu-border:    rgba(255, 255, 255, .13);
  --menu-text:      rgba(255, 255, 255, .88);
  --menu-dim:       rgba(255, 255, 255, .58);
  --menu-sep:       rgba(255, 255, 255, .10);
  --menu-radius:    14px;
  --menu-shadow:    0 24px 60px -18px rgba(0, 0, 0, .55),
                    0 2px 8px rgba(0, 0, 0, .25);
}

/* The sprite only supplies <use> targets and must never occupy space. */
.nav-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- the bar ----------------------------------------------------------- */

.site-nav {
  gap: clamp(.5rem, 1.2vw, 1rem);
  padding: .5rem .6rem .5rem 1rem;
  background: var(--menu-bg);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  box-shadow: var(--menu-shadow);
}
.site-nav.is-scrolled { background: var(--menu-bg-solid); }

.nav-logo .site-logo-img { height: 30px; filter: brightness(0) invert(1); opacity: .95; }

.nav-links { gap: .15rem; }

/* Top-level labels: no chevrons, and the open one wears a light pill. */
.nav-links > li > a {
  padding: .38rem .7rem;
  border-radius: 8px;
  font-size: clamp(.8125rem, .74rem + .2vw, .9375rem);
  font-weight: 550;
  color: var(--menu-text);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-links > li > a:hover { background: rgba(255, 255, 255, .10); color: #fff; }

.has-menu > a::after { content: none; }

.nav-links > li > a[aria-current="page"],
.has-menu:hover > a,
.has-menu:focus-within > a,
.nav-links > li > a.is-active-parent {
  background: rgba(255, 255, 255, .92);
  color: #16181f;
}

.nav-cta {
  margin-left: .35rem;
  padding: .42rem 1rem !important;
  border-radius: 8px;
  font-size: clamp(.75rem, .7rem + .18vw, .875rem);
}

/* ---- panels ------------------------------------------------------------ */

.nav-dropdown {
  left: 0;
  transform: translate(0, 8px) scale(.98);
  transform-origin: 20px -8px;
  min-width: 244px;
  max-width: none;
  margin-top: .55rem;
  padding: .4rem;
  background: var(--menu-bg);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  box-shadow: var(--menu-shadow);
}
.has-menu:hover > .nav-dropdown,
.has-menu:focus-within > .nav-dropdown { transform: translate(0, 0) scale(1); }

/* Single column — the reference panel is one list, not a grid. */
.nav-dropdown:has(> a:nth-child(7)) {
  display: block;
  grid-template-columns: none;
  min-width: 268px;
}

/* ---- rows -------------------------------------------------------------- */

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  color: var(--menu-text);
  white-space: nowrap;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.nav-dropdown > a:hover,
.nav-dropdown > a:focus-visible {
  background: var(--accent);
  color: #fff;
  transform: none;
}

.nav-dropdown > a span {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.nav-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .78;
}
.nav-dropdown > a:hover .nav-ico { opacity: 1; }

/* Hairline group separator, drawn above the marked row. */
.nav-dropdown > a.nav-sep {
  margin-top: .4rem;
  padding-top: .6rem;
  border-top: 1px solid var(--menu-sep);
  border-radius: 0 0 8px 8px;
}

/* ---- third level ------------------------------------------------------- */
/* Any row marked .has-sub shows a chevron and reveals its own panel to the
   right, exactly like the reference. No menu uses this yet — the site is two
   levels deep — but the pattern is here when the content needs it. */

.nav-dropdown > .has-sub { position: relative; }
.nav-dropdown > .has-sub::after {
  content: "";
  width: 6px; height: 6px;
  margin-left: auto;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  opacity: .55;
}
.nav-subdropdown {
  position: absolute;
  top: -.4rem;
  left: 100%;
  margin-left: .35rem;
  min-width: 200px;
  padding: .4rem;
  background: var(--menu-bg);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--menu-border);
  border-radius: var(--menu-radius);
  box-shadow: var(--menu-shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.has-sub:hover > .nav-subdropdown,
.has-sub:focus-within > .nav-subdropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

/* ---- mobile drawer keeps the light treatment --------------------------- */

@media (max-width: 980px) {
  /* backdrop-filter makes an element a containing block for its
     position:fixed descendants, which pinned the drawer to the 62px nav
     instead of the viewport. Drop the glass here so the drawer can size
     itself against the screen; the bar takes a solid fill instead. */
  .site-nav {
    padding: .5rem .75rem;
    background: var(--menu-bg-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-menu-toggle span { background: var(--menu-text); }
  .nav-links {
    background: #fff;
    gap: 0;
  }
  .nav-links > li > a { color: var(--ink); border-radius: 0; }
  .nav-links > li > a:hover { background: var(--accent-wash); color: var(--accent-strong); }
  .nav-dropdown {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 0 .5rem;
  }
  .nav-dropdown > a { color: var(--ink-soft); }
  .nav-dropdown > a.nav-sep { border-top-color: var(--line); }
  .nav-ico { opacity: .6; }
}

/* ---- Left rail (scroll-up state) --------------------------------------
   Past the hero the menubar docks to the left edge as a vertical glass
   panel. It overlays the page — no content gutter, so scrolling down simply
   slides it away and the layout underneath never moves. Desktop only; below
   980px the drawer still owns the nav. */

@media (min-width: 981px) {

  .site-nav.is-vertical {
    inset: 1rem auto auto 1rem;
    width: 202px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem;
  }

  /* Hiding slides left, not up. */
  .site-nav.is-vertical.is-hidden {
    transform: translateX(calc(-100% - 1.5rem));
  }

  .site-nav.is-vertical .nav-logo {
    padding: .35rem .5rem .6rem;
    margin-bottom: .45rem;
    border-bottom: 1px solid var(--menu-sep);
  }
  .site-nav.is-vertical .nav-logo .site-logo-img { height: 26px; }

  .site-nav.is-vertical .nav-links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: .08rem;
  }

  .site-nav.is-vertical .nav-links > li > a {
    justify-content: flex-start;
    padding: .45rem .6rem;
  }

  .site-nav.is-vertical .nav-cta {
    margin: .5rem 0 0;
    justify-content: center;
  }

  /* Panels open to the right, away from the screen edge. */
  .site-nav.is-vertical .nav-dropdown {
    top: -.5rem;
    left: 100%;
    margin: 0 0 0 .5rem;
    transform: translateX(-6px) scale(.98);
    transform-origin: 0 28px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
  .site-nav.is-vertical .has-menu:hover > .nav-dropdown,
  .site-nav.is-vertical .has-menu:focus-within > .nav-dropdown {
    transform: translateX(0) scale(1);
  }

  /* Bridge the gap so the pointer can travel from label to panel. */
  .site-nav.is-vertical .has-menu::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%;
    width: .6rem;
  }
}

/* ---- Nav logo: large, gold ---------------------------------------------
   The source artwork is muted bronze with a clean alpha channel, so instead
   of trying to filter it toward gold the shape is used as a mask and a gold
   gradient is painted through it. That gives an exact colour rather than
   whatever a filter chain happens to land on.

   Guarded by @supports: where masking is unavailable the logo keeps the
   plain white treatment rather than rendering as a solid gold block. */

.nav-logo .site-logo-img {
  height: 64px;
  width: auto;
  transition: height .3s var(--ease);
}

@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .nav-logo .site-logo-img {
    filter: none;
    opacity: 1;
    background: linear-gradient(135deg, #F7E2AE 0%, #E9C46A 42%, #C99A38 78%, #F0D592 100%);
    -webkit-mask-image: url('/ezewag-website-assets/images/ezewag-logo-header.webp');
    mask-image: url('/ezewag-website-assets/images/ezewag-logo-header.webp');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }
}

/* The bar keeps its proportions around the larger mark. */
.site-nav { padding-block: .45rem; }

@media (min-width: 981px) {
  /* In the rail the mark runs nearly the full panel width. */
  .site-nav.is-vertical .nav-logo {
    padding: .5rem .4rem .7rem;
  }
  .site-nav.is-vertical .nav-logo .site-logo-img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 980px) {
  .nav-logo .site-logo-img { height: 44px; }
}

/* ---- "What makes Ezewag different" ------------------------------------
   This section had no layout rules at all: the container and the metric
   list both fell back to block flow, so four short stats each took a
   full-width row and the section ran to roughly three screens for a
   handful of facts. It is now a two-column band — argument on the left,
   a 2x2 stat block on the right — on a dark ground, which also breaks up
   a long run of white sections either side of it. */

.proof-live-section {
  background: var(--dark);
  color: var(--on-dark-soft);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.proof-live-section::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 90%;
  z-index: -1;
  background:
    radial-gradient(45% 60% at 18% 25%, rgba(109, 61, 232, .40) 0%, transparent 70%),
    radial-gradient(40% 55% at 88% 15%, rgba(233, 196, 106, .13) 0%, transparent 72%);
  pointer-events: none;
}

.proof-live-container {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .proof-live-container { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

.proof-live-main { display: flex; flex-direction: column; gap: var(--space-4); }
.proof-live-main .eyebrow { color: var(--gold-bright); margin-bottom: 0; }
.proof-live-main h2 { color: var(--on-dark); margin-bottom: 0; }
.proof-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--on-dark-soft); margin: 0; }

/* Pull quote — the strongest line in the section, so it gets the weight. */
.proof-quote {
  margin: var(--space-2) 0 0;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-6);
  background: rgba(255, 255, 255, .05);
  border-left: 3px solid var(--gold-bright);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.proof-quote p {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  text-transform: none;
}
.proof-quote cite {
  font-style: normal;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.proof-example {
  margin: 0;
  padding-left: var(--space-4);
  border-left: 1px solid var(--dark-line);
  font-size: var(--fs-small);
  color: var(--on-dark-soft);
}

/* 2x2 stat block: the whole point is that four short facts should read at
   a glance, not fill three screens. */
.proof-live-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.15rem);
}
@media (max-width: 520px) {
  .proof-live-metrics { grid-template-columns: 1fr; }
}

.proof-live-section .proof-live-card {
  gap: var(--space-2);
  padding: clamp(1.1rem, 2.2vw, 1.5rem);
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease);
}
.proof-live-section .proof-live-card:hover {
  background: rgba(167, 139, 250, .12);
  border-color: rgba(167, 139, 250, .35);
  transform: translateY(-3px);
}

.proof-live-section .proof-live-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.proof-live-section .proof-live-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--gold-bright);
}
.proof-live-section .proof-live-card i { display: inline-flex; flex: 0 0 auto; }
.proof-live-section .proof-live-card svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}
.proof-live-section .proof-live-card p {
  margin: 0;
  font-size: var(--fs-tiny);
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.proof-live-right {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  min-width: 0;
}
.proof-client-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
}
.proof-client-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.proof-client-panel-head > div { display: flex; flex-direction: column; gap: .35rem; }
.proof-client-panel-head .eyebrow { margin: 0; color: var(--gold-bright); }
.proof-client-panel-head h3 {
  margin: 0;
  color: var(--on-dark);
  font-size: clamp(1.15rem, 1rem + .55vw, 1.45rem);
}
.proof-client-panel-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
  padding-bottom: .15rem;
  border-bottom: 1px solid rgba(233, 196, 106, .45);
  font-size: var(--fs-tiny);
  font-weight: 700;
  color: var(--gold-bright);
}
.proof-client-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1rem); }
.proof-client-logo {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: .75rem;
  align-items: center;
  min-width: 0;
  padding: .7rem;
  color: var(--on-dark);
  background: rgba(255, 255, 255, .065);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.proof-client-logo:hover,
.proof-client-logo:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(233, 196, 106, .45);
}
.proof-client-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 54px;
  padding: .35rem;
  background: #fff;
  border-radius: .65rem;
  overflow: hidden;
}
.proof-client-logo-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.proof-client-logo > span:last-child { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.proof-client-logo strong { font-family: var(--font-display); font-size: var(--fs-small); line-height: 1.25; color: var(--on-dark); }
.proof-client-logo small { font-size: var(--fs-tiny); color: var(--on-dark-soft); }

@media (max-width: 620px) {
  .proof-client-panel-head { align-items: flex-start; flex-direction: column; }
  .proof-client-logos { grid-template-columns: 1fr; }
}

/* ---- Nine Services ----------------------------------------------------
   The numerals are gone from the cards, so each one
   gets a short accent rule as its visual anchor instead — it grows on hover.
   The <ol> still carries the journey order for assistive tech. */

@media (min-width: 760px) {
  .services-live-section .services-live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .services-live-section .services-live-grid { grid-template-columns: 1fr; }
}

/* Accent rule replaces the numeral: sits in flow as the card's first item
   rather than as an absolutely-positioned bar across the top. */
.services-live-section .services-live-card::before {
  content: "";
  position: static;
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: .35rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 1;
  transition: width .4s var(--ease);
}
.services-live-section .services-live-card:hover::before { width: 58px; }

.services-live-section .services-live-card {
  padding: clamp(1.5rem, 2.6vw, 2rem);
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              box-shadow .3s var(--ease), background .3s var(--ease);
}
.services-live-section .services-live-card:hover { background: #FCFBFF; }

@media (prefers-reduced-motion: no-preference) {
  /* Cards arrive from their own side of the grid, so the wave reads as two
     columns converging rather than one flat upward nudge. */
  html.js .services-live-section .services-live-grid > li:nth-child(odd)  { transform: translate(-20px, 16px); }
  html.js .services-live-section .services-live-grid > li:nth-child(even) { transform: translate(20px, 16px); }
  html.js .services-live-section .services-live-grid > li:nth-child(odd).is-visible,
  html.js .services-live-section .services-live-grid > li:nth-child(even).is-visible { transform: none; }

  /* Title and CTA settle a beat after their card. */
  html.js .services-live-section .services-live-card h3,
  html.js .services-live-section .services-live-card > a {
    transition: color .2s var(--ease), transform .45s var(--ease) .12s, opacity .45s var(--ease) .12s;
  }
}
