/* ============================================================
   Viable Initiatives Consulting
   Design tokens
   ============================================================ */
:root {
  --navy:        #10222E;
  --navy-deep:   #0A171F;
  --navy-light:  #1B3B4E;
  --teal:        #2F7A73;
  --teal-deep:   #235C57;
  --teal-tint:   #EAF3F1;
  --gold:        #C79A56;
  --gold-soft:   #F5B335;
  --gold-glow:   rgba(245, 179, 53, 0.38);
  --cream:       #FAF7F1;
  --cream-warm:  #F4EFE5;
  --white:       #FFFFFF;
  --ink:         #1E2A32;
  --ink-muted:   #4E5D65;
  --border:      #E5E1D6;
  --hairline:    rgba(30, 42, 50, 0.10);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;

  /* spacious scale */
  --s-1: 8px;   --s-2: 16px;  --s-3: 24px;  --s-4: 32px;
  --s-5: 48px;  --s-6: 64px;  --s-7: 88px;  --s-8: 128px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 18px 50px -20px rgba(16, 34, 46, 0.22);
  --shadow-lift: 0 28px 70px -24px rgba(16, 34, 46, 0.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.14;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.018em;
}

p { margin: 0 0 1.15em; color: var(--ink-muted); }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
img { max-width: 100%; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-4); }
.narrow { max-width: 780px; }
.center { text-align: center; }

.section { padding: var(--s-8) 0; scroll-margin-top: 78px; position: relative; }

.display { font-size: clamp(2rem, 4vw, 3.05rem); }
.lede {
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  color: var(--ink);
  line-height: 1.6;
}

.label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin: 0 0 1.1em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.center .label { justify-content: center; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 12px 18px; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ============================================================
   Reveal system
   ============================================================ */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.js-anim .reveal.is-visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.09s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.27s; }
.delay-4 { transition-delay: 0.36s; }
.delay-5 { transition-delay: 0.45s; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.94rem;
  letter-spacing: 0.02em;
  padding: 16px 34px;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease);
  min-height: 48px;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::after { transform: translateX(130%); }

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px var(--gold-glow);
}
.btn-ghost {
  background: rgba(6, 16, 22, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cream);
  border: 1px solid rgba(250, 247, 241, 0.55);
}
.btn-ghost:hover {
  background: rgba(250, 247, 241, 0.12);
  border-color: var(--cream);
  transform: translateY(-2px);
}
.btn-dark { background: var(--navy); color: var(--cream); }
.btn-dark:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn-gold {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold); color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px var(--gold-glow);
}
.section-cta { margin-top: var(--s-6); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.80);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 247, 241, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -18px rgba(16, 34, 46, 0.28);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
  transition: height 0.4s var(--ease);
}
.site-header.scrolled .header-inner { height: 66px; }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--navy); }
.brand-logo {
  height: 44px; width: auto; display: block;
  transition: height 0.4s var(--ease), opacity 0.3s var(--ease);
}
.site-header.scrolled .brand-logo { height: 38px; }
.brand:hover .brand-logo { opacity: 0.82; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  text-decoration: none; color: var(--ink);
  font-size: 0.9rem; font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta).active::after { transform: scaleX(1); transform-origin: left; }
.site-nav a:not(.nav-cta):hover,
.site-nav a:not(.nav-cta).active { color: var(--teal); }

.nav-cta {
  background: var(--navy); color: var(--cream) !important;
  padding: 11px 22px !important; border-radius: 2px;
  font-weight: 600 !important;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(16, 34, 46, 0.5);
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
  min-height: 90vh;
  display: flex; align-items: center;
  padding: 118px 0 104px;
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(16, 34, 46, 0.76) 0%, rgba(58, 124, 150, 0.58) 100%);
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: blur(7px) saturate(0.7);
  transform: scale(1.04);
}
.hero .hero-bg::after,
.contact .hero-bg::after {
  background:
    radial-gradient(ellipse 76% 58% at 50% 44%, rgba(6, 16, 22, 0.60) 0%, rgba(6, 16, 22, 0.34) 52%, rgba(6, 16, 22, 0.12) 76%),
    linear-gradient(180deg, rgba(6, 16, 22, 0.52) 0%, rgba(6, 16, 22, 0.30) 40%, rgba(6, 16, 22, 0.34) 72%, rgba(6, 16, 22, 0.52) 100%);
}
.services-banner .hero-bg::after {
  background:
    radial-gradient(ellipse 72% 70% at 50% 50%, rgba(6, 16, 22, 0.66) 0%, rgba(6, 16, 22, 0.42) 58%, rgba(6, 16, 22, 0.20) 80%),
    linear-gradient(180deg, rgba(6, 16, 22, 0.44) 0%, rgba(6, 16, 22, 0.52) 100%);
}
.hero .hero-bg img,
.contact .hero-bg img,
.services-banner .hero-bg img {
  filter: saturate(0.92) brightness(1.02);
  transform: scale(1.08);
  will-change: transform;
}
.hero-inner, .contact-inner {
  position: relative; z-index: 1;
  text-shadow: 0 1px 2px rgba(4, 12, 18, 0.55), 0 2px 22px rgba(4, 12, 18, 0.45);
}
.hero .eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em;
  font-size: 0.74rem; font-weight: 600;
  color: var(--gold-soft); margin-bottom: 28px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 26px;
}
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--gold-soft); font-style: italic; font-weight: 400; }

.hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--cream);
  opacity: 0.92;
  max-width: 660px; margin: 0 auto 40px;
  line-height: 1.65;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 44px;
}

.credibility {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  padding: 18px 30px;
  background: rgba(6, 16, 22, 0.60);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(245, 179, 53, 0.28);
  border-radius: 3px;
  max-width: 900px; margin: 0 auto;
}
.cred-stat { display: flex; align-items: center; gap: 14px; }
.cred-num {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 600; color: var(--gold-soft);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cred-label {
  font-size: 0.82rem; color: var(--cream);
  text-align: left; line-height: 1.35; white-space: nowrap;
}
.cred-div { width: 1px; height: 40px; background: rgba(250, 247, 241, 0.30); }
.cred-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--cream);
}
.cred-list li { position: relative; white-space: nowrap; }
.cred-list li + li::before {
  content: "";
  position: absolute; left: -12px; top: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); transform: translateY(-50%);
}

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 44px;
  display: flex; justify-content: center;
  z-index: 2;
}
.scroll-cue-line {
  width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(250,247,241,0.7));
  position: relative; overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute; top: -50%; left: 0;
  width: 1px; height: 50%;
  background: var(--gold);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%   { top: -50%; opacity: 0; }
  30%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ============================================================
   The Challenge
   ============================================================ */
.challenge { background: var(--cream); text-align: center; }
.challenge .display { margin-bottom: var(--s-4); }
.challenge .lede { margin-bottom: 1.2em; }
.pull {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--navy);
  margin-top: var(--s-5);
  position: relative;
  display: inline-block;
  padding-top: var(--s-4);
}
.pull::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 1px; background: var(--gold);
}

/* ============================================================
   Services / What We Do
   ============================================================ */
.services { background: var(--white); }
.services-banner {
  position: relative; overflow: hidden;
  max-width: var(--wrap);
  margin: 0 auto var(--s-7);
  padding: var(--s-7) var(--s-4);
  border-radius: 4px;
}
.services-banner-inner { position: relative; z-index: 1; text-shadow: 0 1px 2px rgba(4,12,18,0.55), 0 2px 18px rgba(4,12,18,0.45); }
.services-banner-inner .label { color: var(--gold-soft); }
.services-banner-inner .label::before { background: var(--gold-soft); }
.services-banner-inner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  margin: 0;
}

.pillars-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--s-5) var(--s-5) var(--s-5);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
}
.pillar-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
}
.pillar-card:hover::before { transform: scaleX(1); }

.pillar-top { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-3); }
.pillar-icon {
  width: 54px; height: 54px; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease);
}
.pillar-card:hover .pillar-icon { transform: scale(1.08) rotate(-3deg); }
.pillar-icon img { width: 100%; height: 100%; object-fit: contain; }
.pillar-kicker {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; font-weight: 700;
  color: var(--teal); margin: 0;
}
.pillar-card h3 { font-size: 1.42rem; margin-bottom: 0.6em; }
.pillar-card > p { font-size: 0.98rem; margin-bottom: var(--s-3); }

.pillar-list {
  list-style: none; margin: 0; padding: var(--s-3) 0 0;
  border-top: 1px solid var(--hairline);
  display: grid; gap: 9px;
}
.pillar-list li {
  font-size: 0.92rem; color: var(--ink);
  padding-left: 20px; position: relative;
}
.pillar-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px; background: var(--gold);
}

/* ============================================================
   Why Viable Initiatives
   ============================================================ */
.why { background: var(--cream-warm); overflow: hidden; }
/* content must sit above the background figures */
.why-copy, .why .why-grid { position: relative; z-index: 1; }
/* cream-warm is darker than the white behind the About section, so the same
   opacity reads much louder here -- dial it back to match that whisper. */
.why .about-bg-fill { opacity: 0.030; }
.why .about-figure  { opacity: 0.055; }
.why-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-7);
}
.why-item {
  flex: 1 1 260px; max-width: 320px;
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
  position: relative;
  transition: transform 0.4s var(--ease);
}
.why-item::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.6s var(--ease);
}
.why-item:hover::before { width: 46px; }
.why-item:hover { transform: translateY(-4px); }
.why-item h3 { font-size: 1.16rem; margin-bottom: 0.45em; }
.why-item p { font-size: 0.94rem; margin: 0; }

/* ============================================================
   Who We Are
   ============================================================ */
.about { background: var(--white); overflow: hidden; }
.about-bg { position: absolute; inset: 0; pointer-events: none; }
.about-bg-fill {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  opacity: 0.05; filter: grayscale(30%);
}
.about-figure {
  position: absolute; top: 50%; height: 90%; width: auto;
  object-fit: contain; opacity: 0.09; filter: grayscale(25%);
}
.about-figure-left  { left: -40px;  transform: translateY(-50%) scaleX(-1); }
.about-figure-right { right: -40px; transform: translateY(-50%); }
.about-copy { position: relative; z-index: 1; }

.principle {
  margin: var(--s-6) 0;
  padding: var(--s-5) var(--s-4);
  background: var(--teal-tint);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.principle::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(180deg, var(--gold), var(--teal));
}
.principle-label {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.7rem; font-weight: 700;
  color: var(--teal-deep); margin-bottom: 1em;
}
.principle-line {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 22px; margin: 0;
}
.principle-line span {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  color: var(--navy);
  font-weight: 500;
  position: relative;
  transition: color 0.3s var(--ease);
}
.principle-line span + span::before {
  content: "";
  position: absolute; left: -14px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); transform: translateY(-50%);
}

/* ============================================================
   How We Work — steps
   ============================================================ */
.approach { background: var(--navy); color: var(--cream); overflow: hidden; }
/* The five-step progression is about time, so the clock earns its place here.
   Kept as texture only -- the step content sits above it. */
.approach-bg { position: absolute; inset: 0; pointer-events: none; }
.approach-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.10; filter: grayscale(55%);
}
.approach .wrap { position: relative; z-index: 1; }
.approach .label { color: var(--gold); }
.approach .label::before { background: var(--gold); }
.approach h2, .approach h3 { color: var(--white); }

.steps {
  list-style: none; margin: var(--s-7) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
  position: relative;
}
.steps::before {
  content: "";
  position: absolute; top: 26px; left: 10%; right: 10%;
  height: 1px; background: rgba(250, 247, 241, 0.18);
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(199, 154, 86, 0.5);
  border-radius: 50%;
  background: var(--navy);
  font-family: var(--font-head);
  font-size: 0.98rem; color: var(--gold);
  margin-bottom: var(--s-3);
  position: relative; z-index: 1;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.step:hover .step-num {
  background: var(--gold); color: var(--navy);
  border-color: var(--gold);
  transform: translateY(-4px) scale(1.06);
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
.step p { font-size: 0.9rem; color: rgba(250, 247, 241, 0.72); margin: 0; }

/* ============================================================
   Who We Serve
   ============================================================ */
.who-we-serve { background: var(--cream); }
.serve-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4); margin-top: var(--s-7);
}
.serve-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--s-5) var(--s-4);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.serve-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.serve-card h3 { font-size: 1.2rem; margin-bottom: 0.55em; }
.serve-card > p { font-size: 0.94rem; margin-bottom: var(--s-3); }
.tag-list {
  list-style: none; margin: 0; padding: var(--s-3) 0 0;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag-list li {
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.serve-card:hover .tag-list li { border-color: rgba(47, 122, 115, 0.35); }

/* ============================================================
   Featured Capability
   ============================================================ */
.featured {
  background: var(--navy-deep);
  color: var(--cream);
  overflow: hidden;
}
.featured-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 18% 12%, rgba(47, 122, 115, 0.30), transparent 62%),
    radial-gradient(ellipse 55% 50% at 88% 88%, rgba(199, 154, 86, 0.20), transparent 62%);
}
.featured-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s-7); align-items: center;
}
.featured .label { color: var(--gold); }
.featured .label::before { background: var(--gold); }
.featured h2 { color: var(--white); }
.featured .lede { color: var(--cream); opacity: 0.94; }
.featured p { color: rgba(250, 247, 241, 0.76); }
.featured-tag {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--gold-soft) !important;
  margin: var(--s-4) 0 var(--s-5) !important;
}
.featured-list-wrap {
  background: rgba(250, 247, 241, 0.05);
  border: 1px solid rgba(250, 247, 241, 0.13);
  border-radius: 4px;
  padding: var(--s-5) var(--s-4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.featured-list-label {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.7rem; font-weight: 700;
  color: var(--gold) !important; margin-bottom: 1.2em !important;
}
.featured-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
}
.featured-list li {
  font-size: 0.92rem; color: var(--cream);
  padding-left: 18px; position: relative;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.featured-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 7px; height: 1px; background: var(--gold);
  transition: width 0.35s var(--ease);
}
.featured-list li:hover { color: var(--gold-soft); transform: translateX(3px); }
.featured-list li:hover::before { width: 12px; }

/* ============================================================
   Values
   ============================================================ */
.values { background: var(--white); overflow: hidden; }
.values-bg { position: absolute; inset: 0; pointer-events: none; }
.values-bg-fill {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.12; filter: grayscale(30%);
}
.values-copy { position: relative; z-index: 1; }
.values-grid {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--s-5) var(--s-4);
  margin-top: var(--s-7);
  text-align: center;
}
.value-item {
  flex: 1 1 190px; max-width: 216px;
  transition: transform 0.4s var(--ease);
}
.value-item:hover { transform: translateY(-6px); }
.value-icon {
  width: 68px; height: 68px; border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s-3);
  background: var(--white);
  transition: background 0.45s var(--ease), transform 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}
.value-item:hover .value-icon {
  background: var(--cream);
  transform: scale(1.06);
  box-shadow: 0 12px 28px -14px var(--gold-glow);
}
.value-icon img { width: 38px; height: 38px; object-fit: contain; }
.value-item h3 { font-size: 1.08rem; margin-bottom: 0.35em; }
.value-lead {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--teal) !important;
  font-size: 0.95rem;
  margin-bottom: 0.5em !important;
}
.value-item p { font-size: 0.88rem; margin: 0; }

/* ============================================================
   Founder
   ============================================================ */
.founder { background: var(--cream); }
.founder-grid {
  display: grid; grid-template-columns: 0.62fr 1.38fr;
  gap: var(--s-7); align-items: start;
}
.avatar-photo {
  width: 100%; max-width: 280px; aspect-ratio: 1 / 1;
  margin: 0 auto; border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-soft);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.avatar-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-lift);
}
.avatar-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.8s var(--ease);
}
.avatar-photo:hover img { transform: scale(1.05); }

.founder-copy h2 { margin-bottom: 0.1em; }
.founder-role {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.74rem; font-weight: 600;
  color: var(--teal); margin-bottom: 1.4em;
}
.founder-copy .btn { margin-top: var(--s-3); }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
  overflow: hidden;
}
.contact .label { color: var(--gold-soft); }
.contact .label::before { background: var(--gold-soft); }
.contact h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.contact .lede { color: var(--cream); opacity: 0.9; }
.contact-kicker {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--gold-soft) !important;
  margin: var(--s-5) 0 var(--s-4) !important;
}
.contact-sub { color: rgba(250, 247, 241, 0.94) !important; font-size: 1rem; }
.contact-email {
  display: inline-block; margin-top: var(--s-3);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  color: var(--gold-soft); text-decoration: none;
  position: relative;
  padding: 12px 26px;
  background: rgba(6, 16, 22, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 179, 53, 0.55);
  border-radius: 3px;
}
.contact-email {
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              color 0.35s var(--ease), transform 0.35s var(--ease);
}
.contact-email:hover {
  color: var(--navy); background: var(--gold-soft);
  border-color: var(--gold-soft); transform: translateY(-2px);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--cream); border-top: 1px solid var(--border);
  padding: var(--s-6) 0 var(--s-4);
}
.footer-top {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-4); margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.footer-motto {
  font-family: var(--font-head);
  font-size: 1.02rem; color: var(--navy);
  margin: 0;
}
.footer-nav {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-3); flex-wrap: wrap; margin-top: 6px;
}
.footer-nav a {
  text-decoration: none; color: var(--ink);
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.3s var(--ease);
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; font-size: 0.84rem; color: var(--ink-muted);
  text-align: center;
}
.footer-tagline { font-style: italic; font-family: var(--font-head); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  :root { --s-8: 96px; --s-7: 68px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250, 247, 241, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column; align-items: flex-start; gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s var(--ease);
  }
  .site-nav.open { max-height: 460px; }
  .site-nav a { width: 100%; padding: 16px var(--s-4); border-top: 1px solid var(--border); }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { border-radius: 0; text-align: center; justify-content: center; }

  .featured-inner { grid-template-columns: 1fr; gap: var(--s-5); }
  /* Match the WHY VIABLE INITIATIVES arrangement: 2-up, wrapping,
     last item centered -- same flex pattern as .why-grid. */
  .steps {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: var(--s-5) var(--s-5);
  }
  .steps .step { flex: 1 1 240px; max-width: 300px; }
  .steps::before { display: none; }
  .serve-grid { grid-template-columns: 1fr; }
}

/* Short viewports (e.g. 1280x720 laptops): tighten the hero so the
   CTAs and credibility strip stay reachable without a long scroll. */
@media (min-width: 861px) and (max-height: 800px) {
  .hero { min-height: 0; padding: 88px 0 76px; }
  .hero-actions { margin-bottom: 32px; }
  .credibility { padding-top: 22px; }
  .hero-lead { margin-bottom: 32px; }
}

@media (max-width: 860px) {
  .founder-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .founder-portrait { max-width: 220px; margin: 0 auto; }
  .pillars-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}

@media (max-width: 720px) {
  :root { --s-8: 76px; --s-7: 56px; }
  body { font-size: 16px; }
  .hero { padding: 120px 0 100px; }
  .services-banner { padding: var(--s-6) var(--s-3); margin-bottom: var(--s-6); }
  .featured-list { grid-template-columns: 1fr; }
  .credibility { flex-direction: column; gap: var(--s-2); padding: 18px 20px; }
  .cred-div { display: none; }
  .cred-label { text-align: center; white-space: normal; max-width: 200px; }
  .cred-list li { white-space: normal; }
  .cred-list { justify-content: center; gap: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .scroll-cue { display: none; }
}

@media (max-width: 460px) {
  .value-item { max-width: none; flex-basis: 100%; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-cue-line::after { animation: none; }
  .btn::after { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Multi-page: inner page hero
   ============================================================ */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--cream);
  padding: 190px 0 110px;
  overflow: hidden;
  text-align: center;
}
.page-hero .hero-bg::after {
  background:
    radial-gradient(ellipse 74% 66% at 50% 50%, rgba(6, 16, 22, 0.66) 0%, rgba(6, 16, 22, 0.42) 58%, rgba(6, 16, 22, 0.20) 80%),
    linear-gradient(180deg, rgba(6, 16, 22, 0.56) 0%, rgba(6, 16, 22, 0.44) 100%);
}
.page-hero .hero-bg img {
  filter: saturate(0.92) brightness(1.02);
  transform: scale(1.06);
  will-change: transform;
}
.page-hero-inner {
  position: relative; z-index: 1;
  text-shadow: 0 1px 2px rgba(4, 12, 18, 0.55), 0 2px 22px rgba(4, 12, 18, 0.45);
}
.page-hero .label { color: var(--gold-soft); }
.page-hero .label::before { background: var(--gold-soft); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  font-weight: 500;
  letter-spacing: -0.024em;
  margin-bottom: 20px;
}
.page-hero-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--cream);
  max-width: 660px; margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   Home: service teasers
   ============================================================ */
.teaser-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.teaser-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--s-4) var(--s-3) var(--s-4);
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
}
.teaser-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.55s var(--ease);
}
.teaser-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.teaser-card:hover::before { transform: scaleX(1); }
.teaser-card .pillar-icon { width: 48px; height: 48px; margin-bottom: 12px; }
.teaser-card:hover .pillar-icon { transform: scale(1.08) rotate(-3deg); }
.teaser-card h3 { font-size: 1.12rem; margin-bottom: 0.5em; }
.teaser-card > p { font-size: 0.9rem; margin-bottom: var(--s-3); flex: 1; }
.teaser-link {
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 600;
  color: var(--teal-deep);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 7px;
}
.teaser-link::after {
  content: "\2192";
  transition: transform 0.35s var(--ease);
}
.teaser-card:hover .teaser-link::after { transform: translateX(4px); }

/* ============================================================
   What We Do page: detail cards
   ============================================================ */
.services-detail { background: var(--white); }
.pillar-card h2 {
  font-size: 1.42rem;
  margin-bottom: 0.6em;
  letter-spacing: -0.015em;
}
.pillar-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: var(--s-3);
  font-family: var(--font-body);
  font-size: 0.86rem; font-weight: 600;
  color: var(--teal-deep); text-decoration: none;
  padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
  width: 100%;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.pillar-cta:hover { color: var(--gold); gap: 13px; }

/* ============================================================
   Current page indicator
   ============================================================ */
.site-nav a.current { color: var(--teal-deep); }
.site-nav a:not(.nav-cta).current::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 1100px) {
  .teaser-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
}
@media (max-width: 1024px) {
  .page-hero { padding: 150px 0 90px; }
}
@media (max-width: 620px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 130px 0 76px; }
}

/* ============================================================
   Premium motion: line masking, line-draw, image wipe
   All scoped under .js-anim so the watchdog (or a JS failure)
   leaves everything in its final, readable state.
   ============================================================ */

/* --- Headline lines rise out of a mask ------------------------------- */
.mask-lines .line { display: block; }
.js-anim .mask-lines { opacity: 1 !important; transform: none !important; transition: none !important; }
.js-anim .mask-lines .line { overflow: hidden; padding-bottom: 0.06em; }
.js-anim .mask-lines .line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.05s var(--ease-out);
}
.js-anim .mask-lines.is-visible .line > span { transform: translateY(0); }
.js-anim .mask-lines .line:nth-child(1) > span { transition-delay: 0.05s; }
.js-anim .mask-lines .line:nth-child(2) > span { transition-delay: 0.17s; }
.js-anim .mask-lines .line:nth-child(3) > span { transition-delay: 0.29s; }

/* --- Approach timeline draws itself ---------------------------------- */
.js-anim .steps.reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.js-anim .steps::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s var(--ease-out) 0.25s;
}
.js-anim .steps.is-visible::before { transform: scaleX(1); }

/* --- Photographs wipe in rather than fade ----------------------------
   Clip the inner <img>, never the observed element: clipping the element
   IntersectionObserver is watching makes it report as not-visible, so
   .is-visible is never added and the wipe deadlocks shut. */
.js-anim .img-wipe { opacity: 1 !important; transform: none !important; }
.js-anim .img-wipe img {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.15s var(--ease-out);
}
.js-anim .img-wipe.is-visible img { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .mask-lines .line > span { transform: none !important; }
  .steps::before { transform: scaleX(1) !important; }
  .img-wipe img { clip-path: none !important; }
}

/* ============================================================
   Approach steps: number becomes a dialog trigger
   A <button>, not an <a> -- it opens a dialog rather than
   navigating, and that is what assistive tech should announce.
   ============================================================ */
button.step-num {
  font-family: var(--font-head);
  font-size: 0.98rem;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}
button.step-num::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
/* a faint ring is always present so the number reads as pressable,
   then firms up on hover/focus */
button.step-num::after { border-color: rgba(245, 179, 53, 0.20); }
button.step-num:hover::after,
button.step-num:focus-visible::after { border-color: rgba(245, 179, 53, 0.55); }

.approach-hint {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 247, 241, 0.62);
  margin-top: -0.4em;
}
.step-detail { display: none; }

/* ---- Dialog ---- */
.step-modal {
  border: none;
  padding: 0;
  max-width: 560px;
  width: calc(100% - 40px);
  background: var(--cream);
  color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 40px 90px -30px rgba(6, 16, 22, 0.6);
}
.step-modal::backdrop {
  background: rgba(6, 16, 22, 0.62);
  backdrop-filter: blur(3px);
}
.step-modal-inner { padding: var(--s-5) var(--s-5) var(--s-4); position: relative; }
.step-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink-muted);
  border-radius: 2px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.step-modal-close:hover { color: var(--navy); background: rgba(16, 34, 46, 0.06); }
.step-modal-num {
  font-family: var(--font-head);
  font-size: 2.1rem; color: var(--gold);
  line-height: 1; margin: 0 0 6px;
}
.step-modal-title { font-size: 1.6rem; margin-bottom: 0.5em; }
.step-detail-lead { font-size: 1.02rem; color: var(--ink); line-height: 1.65; }
.step-detail-list {
  list-style: none; margin: var(--s-3) 0 0; padding: var(--s-3) 0 0;
  border-top: 1px solid var(--hairline);
  display: grid; gap: 9px;
}
.step-detail-list li {
  font-size: 0.93rem; color: var(--ink-muted);
  padding-left: 20px; position: relative;
}
.step-detail-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px; background: var(--gold);
}
.step-modal-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--hairline);
}
.step-modal-nav button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  color: var(--teal-deep);
  padding: 10px 4px; min-height: 44px;
  transition: color 0.25s var(--ease);
}
.step-modal-nav button:hover:not(:disabled) { color: var(--gold); }
.step-modal-nav button:disabled { color: var(--border); cursor: default; }
.step-modal-count {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 520px) {
  .step-modal-inner { padding: var(--s-5) var(--s-3) var(--s-3); }
  .step-modal-title { font-size: 1.35rem; }
}

/* Motion, only where it is welcome */
@media (prefers-reduced-motion: no-preference) {
  .step-modal[open] { animation: stepModalIn 0.32s var(--ease-out); }
  .step-modal[open]::backdrop { animation: stepBackdropIn 0.32s var(--ease-out); }
}
@keyframes stepModalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes stepBackdropIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   Cross-links: give the two deep pages a path into each other
   rather than only into the contact band.
   ============================================================ */
.cross-link {
  background: var(--cream-warm);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
}
.cross-link-label {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.9em;
}
.cross-link-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 6px 4px;
  position: relative;
}
.cross-link-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.018em;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  transition: color 0.35s var(--ease);
}
.cross-link-title::after {
  content: "\2192";
  font-family: var(--font-body);
  font-size: 0.7em;
  transition: transform 0.4s var(--ease);
}
.cross-link-cta:hover .cross-link-title { color: var(--teal-deep); }
.cross-link-cta:hover .cross-link-title::after { transform: translateX(7px); }
.cross-link-sub {
  font-size: 0.93rem;
  color: var(--ink-muted);
  max-width: 560px;
  text-wrap: balance;
}
.cross-link-cta::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transition: left 0.45s var(--ease), right 0.45s var(--ease);
}
.cross-link-cta:hover::after { left: 0; right: 0; }
