/* ═══════════════════════════════════════════════════
   E2E PGx — Draft 4 stylesheet
   Palette locked to E2EBrand.pdf (supersedes the INTERIM
   --sand / --bg-alt tones from Draft 3).

   Brand:  #18182E ink · #46597E steel · #F8ECE1 cream
           #8FA0C5 periwinkle · #F06543 accent/CTA
           #82846D olive · #05668D teal

   ── Accent system (each accent has ONE job) ──
   ORANGE  action only — CTA buttons, hero eyebrow bullet.
           Never as text on a light surface (3.16:1 on white).
   TEAL    the light-surface accent — links, icons, section
           eyebrows, selected tab. 6.38:1 on white.
   OLIVE   structural numerals only, at large sizes on cream
           (3.30:1 — large text / graphics only, never body).

   ── Hard rules, verified by contrast math ──
   · CTA text is INK on orange (5.50:1). Never white (3.16:1).
   · --peri is a DARK-surface color. On cream it is 2.26:1 —
     borders only, never text.
   · Logo files are named for the ARTWORK color, not the
     surface: light-*.svg is the cream logo, for dark
     backgrounds. Do not swap these.
   ═══════════════════════════════════════════════════ */

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

:root {
  /* ── Brand core ── */
  --ink:        #18182E;   /* background / ink */
  --steel:      #46597E;   /* secondary surface */
  --cream:      #F8ECE1;   /* headline / light logo / light surface */
  --peri:       #8FA0C5;   /* muted text on DARK / borders */

  /* ── Brand accents ── */
  --accent:     #F06543;   /* primary accent · CTA */
  --olive:      #82846D;   /* secondary accent */
  --teal:       #05668D;   /* tertiary accent */

  /* ── Derived (contrast-safe variants) ── */
  --accent-hi:  #F2734F;   /* CTA hover — ink stays 6.07:1 */
  --accent-ink: #B53716;   /* orange as TEXT on light: 5.96:1 white, 5.13:1 cream */
  --ink-95:     #0F0F1E;   /* footer */
  --steel-deep: #3A4A6B;   /* hero gradient end — darkened so hero body text passes */
  --steel-lift: #5A6F96;   /* hero radial wash */
  --peri-light: #B0BDD6;   /* hero/mission body text — measured 6.2:1+ on the tuned hero */
  --cream-lo:   #FCF6F1;   /* faintest cream, for chips on white */
  --white:      #FFFFFF;

  /* ── Functional ── */
  --text:        var(--ink);
  --text-mid:    var(--steel);
  --bg:          var(--white);
  --bg-alt:      var(--cream);              /* alt section surface */
  --border:      rgba(24, 24, 46, 0.14);    /* reads on white AND cream */
  --border-firm: rgba(24, 24, 46, 0.26);
  --hairline-dk: rgba(143, 160, 197, 0.18); /* dividers on ink */

  /* Typography */
  --font-body:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head:  'Newsreader', Georgia, serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* Layout */
  --max-w:      1120px;
  --nav-h:      72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Focus visibility (was missing entirely in Draft 3) ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.hero :focus-visible,
.strip :focus-visible,
.mission :focus-visible,
.contact :focus-visible,
.footer :focus-visible,
.nav :focus-visible {
  outline-color: var(--cream);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Section scaffolding ── */
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);            /* light-surface accent · 6.38:1 on white */
  margin-bottom: var(--space-xs);
}

.section__headline {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

.section__intro {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 660px;
  margin-bottom: var(--space-xl);
}

/* ══════════════════════════════════════ BUTTONS ══════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

/* PRIMARY — brand CTA. Ink on orange = 5.50:1. */
.btn--primary {
  background: var(--accent);
  color: var(--ink);
}
.btn--primary:hover {
  background: var(--accent-hi);       /* ink stays 6.07:1 */
  box-shadow: 0 3px 14px rgba(240, 101, 67, 0.32);
}

/* LIGHT — secondary solid, for use on ink surfaces. */
.btn--light {
  background: var(--cream);
  color: var(--ink);
}
.btn--light:hover {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* GHOST — outline on ink surfaces only. */
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(248, 236, 225, 0.38);
}
.btn--ghost:hover {
  border-color: var(--cream);
  background: rgba(248, 236, 225, 0.10);
}

/* ══════════════════════════════════════ NAV ══════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav--scrolled {
  background: rgba(24, 24, 46, 0.97);
  box-shadow: 0 1px 0 rgba(248, 236, 225, 0.08);
  backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; text-decoration: none; }
.nav__logo-img { height: 30px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(248, 236, 225, 0.85);   /* 11.01:1 on ink */
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--cream); }

.nav__cta {
  padding: 0.55rem 1.25rem !important;
  border: 1px solid rgba(248, 236, 225, 0.35) !important;
  border-radius: 4px;
  color: var(--cream) !important;
}
.nav__cta:hover {
  background: rgba(248, 236, 225, 0.10);
  border-color: var(--cream) !important;
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cream);
  transition: all 0.25s ease;
}

/* ══════════════════════════════════════ HERO ══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: max(82vh, 540px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + var(--space-xl)) var(--space-md) var(--space-xl);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }

/* Gradient end darkened from #46597E to --steel-deep, radial wash eased
   from .45 to .32. Reason, measured by sampling rendered pixels at 7
   viewports: the HERO EYEBROW (--peri, 12px) fell to 4.25–4.44:1 at
   768–1024px widths on the original gradient — a real fail at tablet
   sizes. It now measures 4.93–5.19:1 everywhere. Body and sub text were
   always fine (5.1:1+); they are unchanged. */
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 65% at 18% 45%, rgba(90, 111, 150, 0.32) 0%, transparent 72%),
    radial-gradient(ellipse 65% 55% at 82% 28%, rgba(143, 160, 197, 0.16) 0%, transparent 70%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink) 38%, var(--steel-deep) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* Orange square bullet, per the brand sheet's hero lockup. */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peri);                 /* 6.62:1 on ink */
  margin-bottom: var(--space-md);
}
.hero__eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: var(--accent);          /* 5.50:1 on ink as a graphic */
}

.hero__headline {
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--cream);                /* 14.95:1 on ink */
  margin-bottom: var(--space-md);
  max-width: 720px;
}
.hero__sub {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--peri-light);
  margin-bottom: var(--space-sm);
}
.hero__body {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--peri-light);
  max-width: 600px;
  margin-bottom: var(--space-lg);
  font-weight: 300;
}
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* ══════════════════════════════════════ VALUE STRIP ══════════════════════════════════════ */
.strip {
  background: var(--ink);
  border-top: 1px solid var(--hairline-dk);
  border-bottom: 1px solid var(--hairline-dk);
}
.strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
}
.strip__item { text-align: center; }
.strip__num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.strip__label { font-size: 0.78rem; color: var(--peri); letter-spacing: 0.03em; }
/* Olive's one job on the site: it is muted by nature, which is exactly
   what a divider wants, and it clears 4.53:1 against ink. */
.strip__divider { width: 1px; height: 40px; background: var(--olive); }

/* ══════════════════════════════════════ SERVICES ══════════════════════════════════════ */
.services { padding: var(--space-2xl) 0; background: var(--bg); }

.section__intro + .services-tabs { margin-top: calc(var(--space-xl) * -1 + var(--space-md)); }

/* Audience filter tabs */
.services-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.tab-btn {
  padding: 0.55rem 1.4rem;
  border: 1.5px solid var(--border-firm);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.tab-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.tab-btn.active {
  background: var(--teal);            /* white on teal = 6.38:1 */
  border-color: var(--teal);
  color: var(--white);
}

.audience-panel { display: none; }
.audience-panel.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.audience-intro {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.service-card {
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(24, 24, 46, 0.10);
}
.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--teal);                 /* 5.49:1 on the cream chip */
  background: var(--cream);
  border-radius: 8px;
  padding: 7px;
  margin-bottom: var(--space-sm);
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.service-card__desc { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* Catchline for dropped categories */
.services__catchline {
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-radius: 6px;
  border-left: 3px solid var(--accent);   /* orange as a graphic: 3.4:1 on cream */
}
.services__catchline p { font-size: 0.98rem; color: var(--text-mid); margin: 0; }
.services__catchline a {
  color: var(--teal);                 /* 5.49:1 on cream */
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.services__catchline a:hover { color: var(--ink); text-decoration: underline; }

/* ══════════════════════════════════════ APPROACH ══════════════════════════════════════ */
.approach { padding: var(--space-2xl) 0; background: var(--bg-alt); }
.approach__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
/* :not() guard — a bare `.approach__text p` selector (0,1,1) outranks
   `.section__eyebrow` (0,1,0) and silently swallowed the eyebrow color. */
.approach__text p:not(.section__eyebrow) { color: var(--text-mid); margin-bottom: var(--space-sm); font-size: 1rem; }
.approach__pillars { display: grid; gap: var(--space-md); }
.pillar {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: 0 var(--space-sm);
}
/* Teal, not olive. Olive on cream is 3.30:1 — technically legal for
   large text, but on screen the numerals nearly vanished. Teal is
   5.49:1 and reads as a deliberate anchor. */
.pillar__num {
  grid-row: 1 / 3;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--teal);
  line-height: 1;
  padding-top: 2px;
}
.pillar__title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.25rem; }
.pillar__desc { font-size: 0.88rem; color: var(--text-mid); line-height: 1.55; }

/* ══════════════════════════════════════ MISSION / COMMITMENT ══════════════════════════════════════ */
.mission { padding: var(--space-2xl) 0; background: var(--ink); }
.mission__content { max-width: 760px; margin: 0 auto; text-align: center; }
.mission__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--peri);
  margin-bottom: var(--space-sm);
}
.mission__headline {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--cream);
  margin-bottom: var(--space-md);
}
.mission__text { font-size: 1.05rem; color: var(--peri-light); line-height: 1.7; font-weight: 300; }

/* ══════════════════════════════════════ TEAM ══════════════════════════════════════ */
.team { padding: var(--space-2xl) 0; background: var(--bg); }
.team__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.team-card { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-md); align-items: start; }
.team-card__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--cream);
  background: var(--cream);
}
.team-card__name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; color: var(--ink); margin-bottom: 0.1rem; }
/* Was --peri (2.62:1 on white — failed). Steel is 7.02:1. */
.team-card__cred { font-size: 0.78rem; color: var(--text-mid); margin-bottom: 0.15rem; min-height: 1em; }
.team-card__role { font-size: 0.82rem; font-weight: 600; color: var(--teal); margin-bottom: 0.75rem; }
.team-card__bio { font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 0.75rem; }
.team-card__contact { display: flex; gap: 0.6rem; }
.team-card__icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-firm);
  border-radius: 6px;
  color: var(--teal);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.team-card__icon svg { width: 18px; height: 18px; }
.team-card__icon:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ══════════════════════════════════════ CONTACT ══════════════════════════════════════ */
.contact { padding: var(--space-2xl) 0; background: var(--ink); }
.contact__layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.contact__eyebrow { color: var(--peri); }
.contact__headline { color: var(--cream); }
/* Same specificity guard as .approach__text — see note there. */
.contact__text p:not(.section__eyebrow) { color: var(--peri-light); font-size: 1.05rem; max-width: 440px; font-weight: 300; }
.contact__info { display: flex; flex-direction: column; gap: var(--space-md); align-items: flex-start; }
.contact__method { display: flex; flex-direction: column; gap: 0.2rem; }
.contact__method-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--peri);
}
.contact__method-value { font-size: 1.2rem; color: var(--cream); text-decoration: none; font-weight: 500; }
.contact__method-value:hover { color: var(--white); text-decoration: underline; }

/* Cognito form embed — keeps the iframe on a light card inside the ink section */
.contact__form {
  width: 100%;
  background: var(--cream);
  border-radius: 6px;
  padding: var(--space-sm);
}

/* ══════════════════════════════════════ FOOTER ══════════════════════════════════════ */
.footer { background: var(--ink-95); padding: var(--space-xl) 0 var(--space-lg); }
.footer__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); }
.footer__brand { margin-bottom: var(--space-md); }
.footer__logo { height: 26px; width: auto; }
/* Draft 3 footer text ran 1.91:1–3.32:1. Alphas raised to clear 4.5:1. */
.footer__tagline { font-size: 0.82rem; color: rgba(143, 160, 197, 0.80); margin-top: 0.5rem; }
.footer__links {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(143, 160, 197, 0.16);
}
.footer__links a { font-size: 0.82rem; color: rgba(143, 160, 197, 0.85); text-decoration: none; }
.footer__links a:hover { color: var(--cream); }
.footer__legal p { font-size: 0.75rem; color: rgba(143, 160, 197, 0.75); }

/* Styled ahead of the company LinkedIn launch — the markup in index.html
   is commented out until the page exists. Nothing renders until then. */
.footer__social { display: flex; gap: 0.6rem; margin-bottom: var(--space-md); }
.footer__social-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(143, 160, 197, 0.30);
  border-radius: 6px;
  color: var(--peri);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer__social-icon svg { width: 18px; height: 18px; }
.footer__social-icon:hover {
  color: var(--cream);
  border-color: var(--cream);
  background: rgba(248, 236, 225, 0.08);
}

/* ══════════════════════════════════════ RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .approach__layout { grid-template-columns: 1fr; gap: var(--space-lg); }
  .team__grid { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; gap: var(--space-lg); }
}

@media (max-width: 640px) {
  :root { --space-2xl: 3.5rem; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(24, 24, 46, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-sm);
    border-bottom: 1px solid var(--hairline-dk);
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }

  .hero__headline { font-size: 2rem; }
  .hero__body { font-size: 1rem; }

  .strip__inner { flex-direction: column; gap: var(--space-md); }
  .strip__divider { width: 40px; height: 1px; }

  .services__grid { grid-template-columns: 1fr; }
  .services__catchline p { display: flex; flex-direction: column; gap: 0.5rem; }
  .services__catchline a { white-space: normal; }

  .team-card { grid-template-columns: 1fr; justify-items: start; }
  .team-card__photo { width: 96px; height: 96px; }

  .footer__links { flex-wrap: wrap; gap: var(--space-sm) var(--space-md); }
}
