/* ============================================================
   KnackRCM — brand system (2026 rebrand)
   Aubergine-led, Poppins, electric-teal accent used sparingly.
   Primary #28003C · Accent #00E5CC — the logo gradient.
   Token names kept (navy/cyan/orange) so the cascade stays stable;
   only their VALUES moved to the new two-colour palette.
   ============================================================ */

:root {
  /* Brand — deep aubergine primary + electric teal accent (new logo) */
  --navy:       oklch(21% 0.107 311);  /* #28003C primary (aubergine) */
  --navy-deep:  oklch(17% 0.085 313);  /* #1C0029 deeper — headings, hovers */
  --navy-ink:   oklch(13% 0.066 314);  /* #11001A hero gradient floor */
  --blue:       oklch(57% 0.102 181);  /* #0C8C7C deep teal — links, eyebrows */
  --cyan:       oklch(83% 0.149 181);  /* #00E5CC electric teal accent */
  --cyan-soft:  oklch(97% 0.027 185);  /* #E2FBF7 light teal fill */
  --orange:     oklch(69% 0.123 182);  /* vivid teal — loud accent slot */
  --orange-soft:oklch(97% 0.027 185);  /* light teal fill */

  --bg:      oklch(98% 0.004 255);
  --surface: oklch(100% 0 0);
  --raise:   oklch(99.2% 0.003 255);
  --fg:      oklch(25% 0.006 40);
  --muted:   oklch(52% 0.015 262);
  --faint:   oklch(64% 0.012 262);
  --border:  oklch(92% 0.006 262);
  --border-strong: oklch(86% 0.01 262);

  --success: oklch(58% 0.13 150);

  --font:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px oklch(21% 0.107 311 / 0.05), 0 4px 16px oklch(21% 0.107 311 / 0.06);
  --shadow-2: 0 8px 28px oklch(21% 0.107 311 / 0.14);
  --ring: 0 0 0 4px oklch(83% 0.149 181 / 0.40);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; color: var(--navy-deep); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--blue); text-decoration: none; transition: color .18s var(--ease); }
a:hover { text-decoration: none; }
img, svg { max-width: 100%; display: block; }
strong { font-weight: 600; color: var(--navy-deep); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); width: 100%; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content:""; width: 22px; height: 1.5px; background: var(--orange); display:inline-block; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); margin-top: 16px; }
.lead { font-size: clamp(17px,1.5vw,19px); color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  --b: var(--navy);
  display: inline-flex; align-items: center; gap: 9px;
  font: inherit; font-weight: 500; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-2); }
.btn-accent { background: var(--cyan); color: var(--navy-deep); font-weight: 600; }
.btn-accent:hover { background: var(--orange); color: var(--navy-deep); }
.btn-accent:hover { background: oklch(72% 0.13 182); box-shadow: 0 8px 24px oklch(83% 0.149 181 / .3); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--navy); background: var(--surface); }
.btn-light { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,.2); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border); transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 12px oklch(20% 0.06 312 / .10); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 96px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--navy-deep); letter-spacing: -0.02em; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand-logo { height: 64px; width: auto; display: block; flex: none; }
@media (max-width: 560px){ .brand-logo { height: 46px; } }
.brand small { display:block; font-size: 9.5px; font-weight: 500; letter-spacing: .22em; color: var(--orange); text-transform: uppercase; margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links > a, .nav-item { flex: none; }
.nav-links a { color: var(--fg); font-size: 15px; font-weight: 500; padding: 9px 12px; border-radius: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.nav-links a:hover { text-decoration: none; background: var(--navy); color: #fff; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active:hover { color: #fff; }

/* L2 dropdown */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-caret { font-size: 9px; opacity: .55; margin-left: 3px; vertical-align: middle; transition: transform .2s; display: inline-block; }
.nav-has-sub:hover .nav-caret, .nav-has-sub:focus-within .nav-caret { transform: rotate(180deg); opacity: 1; }
.nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 248px;
  display: flex; flex-direction: column; gap: 1px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 7px; box-shadow: var(--shadow-2); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(7px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-sub::before { content: ""; position: absolute; top: -9px; left: 0; right: 0; height: 9px; } /* hover bridge */
.nav-has-sub:hover .nav-sub, .nav-has-sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-links .nav-sub a { display: block; width: 100%; padding: 10px 12px; font-size: 14px; font-weight: 500; color: var(--fg); white-space: nowrap; border-radius: 8px; }
.nav-links .nav-sub a:hover { background: var(--navy); color: #fff; }
/* Mega menu — Solutions (Segments + Services side by side). Left-anchored, so kept in its proven width envelope. */
.nav-sub.nav-mega { flex-direction: row; gap: 10px; min-width: 462px; padding: 14px; left: 0; max-width: calc(100vw - 20px); }
.nav-mega-col { display: flex; flex-direction: column; gap: 2px; min-width: 210px; }
.nav-mega-col + .nav-mega-col { padding-left: 10px; border-left: 1px solid var(--border); }
/* Resources mega — right-anchored, so it can run wider/airier without overflow */
.nav-links .nav-sub.nav-mega.nav-mega-end { gap: 18px; padding: 20px; }
.nav-links .nav-sub.nav-mega .nav-mega-head {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); padding: 4px 12px 9px; margin-bottom: 6px; border-radius: 0;
  border-bottom: 1px solid var(--border);
}
.nav-links .nav-sub.nav-mega .nav-mega-head:hover { background: transparent; color: var(--cyan); }
.nav-cta { margin-left: 8px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; background: var(--navy); }
.nav-links a.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-2); }
.nav-links a.btn-accent, .nav-links a.btn-accent:hover { color: var(--navy-deep); background: var(--cyan); }
.nav-links a.btn-accent:hover { background: oklch(72% 0.13 182); box-shadow: 0 8px 24px oklch(83% 0.149 181 / .3); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border-strong); border-radius: 9px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content:""; display:block; width:18px; height:2px; background: var(--navy); position: relative; transition: .25s; }
.nav-toggle span::before { position:absolute; top:-6px; } .nav-toggle span::after { position:absolute; top:6px; }

/* ---------- mobile nav — full-height accordion sheet (Adonis-style) ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  /* full-height sheet from under the bar to the bottom of the viewport */
  .nav-links {
    position: fixed; inset: 96px 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); padding: 6px var(--gutter) 28px;
    overflow-y: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .26s var(--ease), transform .26s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }

  /* top-level rows: Home, Contact, and the accordion parents */
  .nav-links > a:not(.nav-cta),
  .nav-has-sub > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 17px 4px; font-size: 17px; font-weight: 600; color: var(--navy-deep);
    border-radius: 0; border-bottom: 1px solid var(--border); white-space: normal;
  }
  .nav-links > a:not(.nav-cta):hover,
  .nav-has-sub > a:hover { background: transparent; color: var(--navy); }
  .nav-links a.active { color: var(--navy); background: transparent; }

  .nav-item { display: block; }

  /* chevron on accordion parents — rotates + turns teal when open */
  .nav-caret { display: inline-block; font-size: 13px; opacity: .5; margin: 0; transition: transform .25s var(--ease), color .2s; }
  .nav-item.mobile-open .nav-caret { transform: rotate(180deg); opacity: 1; color: var(--cyan); }

  /* accordion body — collapsed by default, expands on .mobile-open.
     High-specificity selectors (incl. .nav-mega-end) override the base mega rules. */
  .nav-links .nav-sub,
  .nav-links .nav-sub.nav-mega,
  .nav-links .nav-sub.nav-mega.nav-mega-end {
    position: static; opacity: 1; visibility: visible; transform: none;
    flex-direction: column; background: transparent; border: none; box-shadow: none;
    min-width: 0; gap: 0; max-height: 0; overflow: hidden; padding: 0;
    transition: max-height .34s var(--ease), padding .34s var(--ease);
  }
  .nav-sub::before { display: none; }
  .nav-links .nav-item.mobile-open > .nav-sub,
  .nav-links .nav-item.mobile-open > .nav-sub.nav-mega.nav-mega-end {
    max-height: 1400px; padding: 10px 0 14px;
  }
  .nav-mega-col { min-width: 0; margin: 0 0 4px; padding: 0; }
  .nav-mega-col + .nav-mega-col { padding-left: 0; border-left: none; }

  /* uppercase section label inside an open accordion */
  .nav-links .nav-sub.nav-mega .nav-mega-head {
    display: block; border: none; margin: 8px 4px 8px; padding: 0;
    font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--muted); background: transparent;
  }
  .nav-links .nav-sub.nav-mega .nav-mega-head:hover { color: var(--cyan); background: transparent; }

  /* leaf links as soft grey rounded pill cards (the Adonis signature) */
  .nav-links .nav-sub a:not(.nav-mega-head) {
    display: block; width: 100%; margin: 0 0 8px; padding: 14px 16px;
    font-size: 15px; font-weight: 500; color: var(--fg); white-space: normal;
    background: oklch(96.6% 0.005 262); border: 1px solid transparent; border-radius: 12px;
    transition: background .18s, color .18s, border-color .18s;
  }
  .nav-links .nav-sub a:not(.nav-mega-head):hover,
  .nav-links .nav-sub a:not(.nav-mega-head):active {
    background: var(--navy); color: #fff; border-color: var(--navy);
  }

  /* marketing feature panels stay out of the mobile sheet */
  .nav-mega-feat { display: none; }

  /* prominent full-width CTA at the foot of the sheet */
  .nav-cta { margin: 20px 0 6px; }
  .nav-links a.btn-primary.nav-cta {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 16px; font-size: 16px; border-radius: 12px;
  }

  /* hamburger morphs into an X when the sheet is open */
  .nav.menu-open .nav-toggle span { background: transparent; }
  .nav.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
}
/* lock the page behind the open mobile sheet */
body.nav-locked { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, oklch(62% 0.13 181) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 110%, oklch(42% 0.15 322) 0%, transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-ink) 100%);
}
/* hero video background (home only — sits behind the scrim + content) */
.hero-media { position:absolute; inset:0; z-index:0; overflow:hidden;
  background:#15203f url("hero-poster.jpg") center/cover no-repeat; }
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .9s ease; }
.hero-video.is-playing { opacity:1; }
/* navy scrim so white hero copy stays legible over the footage; only where a video exists */
.hero:has(.hero-video)::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(165deg, oklch(22% 0.07 314 /.86) 0%, oklch(20% 0.06 314 /.6) 48%, oklch(24% 0.08 314 /.9) 100%),
    radial-gradient(120% 90% at 85% -10%, oklch(62% 0.13 181 /.4) 0%, transparent 55%); }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display:none; }   /* poster background remains as a still */
}
.hero::after { content:""; position:absolute; inset:0; z-index:1; opacity:.5; pointer-events:none;
  background-image: linear-gradient(oklch(100% 0 0 /.05) 1px, transparent 1px), linear-gradient(90deg, oklch(100% 0 0 /.05) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(120% 90% at 70% 0%, #000 30%, transparent 75%); }
.hero .wrap { position: relative; z-index: 2; padding-block: clamp(72px, 11vw, 132px); }
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 68px); font-weight: 600; max-width: 16ch; }
.hero h1 .em { color: var(--cyan); }
.hero p.sub { font-size: clamp(17px, 1.8vw, 21px); color: oklch(90% 0.02 255); max-width: 56ch; margin-top: 22px; font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-badges { display:flex; flex-wrap:wrap; gap: 10px 22px; margin-top: 44px; color: oklch(86% 0.02 255); font-size: 13.5px; }
.hero-badges span { display:inline-flex; align-items:center; gap:8px; }
.hero-badges .dot { width:6px; height:6px; border-radius:50%; background: var(--cyan); }
/* GSAP owns the hero entrance: hide the pieces up front so they never flash in
   before the timeline runs. Added only after GSAP confirms it loaded; the layer's
   catch/fallback removes .js-gsap, so content is never left invisible. */
.js-gsap .hero .eyebrow, .js-gsap .hero h1, .js-gsap .hero .sub,
.js-gsap .hero .hero-cta, .js-gsap .hero .hero-badges > span { opacity: 0; }
/* Top scroll-progress bar (GSAP scales it on scroll). Lives outside the smooth
   wrapper so it stays fixed; inert (scaleX 0) when GSAP is absent. */
.scroll-progress { position:fixed; top:0; left:0; height:3px; width:100%; transform:scaleX(0); transform-origin:0 50%; z-index:60; pointer-events:none; background:linear-gradient(90deg, var(--blue), var(--cyan), var(--orange)); }
/* Leadership team cards — warm navy→ivory duotone portraits. The scrim uses the
   neutral navy-ink (not the bright --navy) and sits low, so the warm tone reads
   through and the orange hover accent harmonizes instead of clashing. */
/* Portraits are pre-processed to ONE uniform brand backdrop + face-normalized,
   so circular crops align eye-to-eye across the row. No card chrome — just a
   clean circle, centered name/role, and a restrained orange ring on hover. */
.team { text-align:center; padding:0; overflow:visible; border:none; background:transparent; }
.team:hover { transform:none; box-shadow:none; border-color:transparent; }
.team-photo { position:relative; aspect-ratio:1/1; overflow:hidden; background:#EEF1F6; border:1px solid var(--border); border-radius:50%; max-width:188px; margin:0 auto; }
.team-photo img { width:100%; height:100%; object-fit:cover; object-position:50% 32%; display:block; filter:grayscale(1) contrast(1.03); transition:transform .6s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.team-photo::after { content:""; position:absolute; inset:0; border-radius:50%; background:var(--navy); mix-blend-mode:color; opacity:.34; transition:opacity .5s ease; z-index:1; pointer-events:none; }
.team-photo::before { content:""; position:absolute; inset:0; border-radius:50%; box-shadow:inset 0 0 0 0 var(--cyan); transition:box-shadow .4s cubic-bezier(.2,.7,.2,1); z-index:2; pointer-events:none; }
.team:hover .team-photo img { transform:scale(1.05); filter:grayscale(0) contrast(1); }
.team:hover .team-photo::after { opacity:0; }
.team:hover .team-photo::before { box-shadow:inset 0 0 0 3px var(--cyan); }
.team h3 { font-size:16px; margin:16px 8px 0; }
.team .role { color:var(--muted); font-size:13px; line-height:1.4; margin:2px 8px 0; }

/* ---------- stat band ---------- */
.statband { background: var(--navy-deep); color:#fff; }
.statband .grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: oklch(100% 0 0 /.1); border-radius: var(--radius); overflow:hidden; }
.statband .cell { background: var(--navy-deep); padding: 30px clamp(18px,2.4vw,34px); }
.statband .num { font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.03em; color:#fff; font-variant-numeric: tabular-nums; }
.statband .num .u { color: var(--cyan); }
.statband .lbl { color: oklch(82% 0.02 255); font-size: 13.5px; margin-top: 6px; }
@media (max-width: 1080px){ .statband .grid { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 760px){ .statband .grid { grid-template-columns: repeat(2,1fr);} }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 22px); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 940px){ .cols-3,.cols-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .cols-2,.cols-3,.cols-4 { grid-template-columns: 1fr;} }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s, color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
/* when a card IS a link, invert it on hover (aubergine fill, light text) */
a.card:hover { background: var(--navy); border-color: var(--navy); color:#fff; }
a.card:hover h3 { color:#fff; }
a.card:hover p { color: rgba(255,255,255,.74); }
a.card:hover .tag { color: var(--cyan); }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 15px; }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display:grid; place-items:center; margin-bottom: 18px;
  background: var(--cyan-soft); color: var(--navy); }
.card .ico svg { width: 23px; height: 23px; }
.card--accent .ico { background: var(--orange-soft); color: var(--orange); }
.card .tag { display:inline-block; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--blue); margin-bottom: 14px; }

/* feature list */
.flist { list-style:none; padding:0; margin: 14px 0 0; display:grid; gap: 11px; }
.flist li { display:flex; gap: 11px; font-size: 15px; color: var(--muted); align-items:flex-start; }
.flist li::before { content:""; flex:none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2328003C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat; }

/* pills */
.pill { display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:999px; font-size:13.5px; font-weight:500;
  background: var(--surface); border:1px solid var(--border); color: var(--fg); }
.pill svg { width:15px; height:15px; color: var(--blue); }
a.pill { transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
a.pill:hover { background: var(--navy); color:#fff; border-color: var(--navy); }
a.pill:hover svg { color:#fff; }

/* ---------- service directory (bold clickable nav) ---------- */
.svc-nav-label { font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color: var(--navy); margin-bottom:18px; }
.svc-nav-label span { color: var(--muted); font-weight:600; letter-spacing:0; text-transform:none; }
.svc-nav { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
@media (max-width:860px){ .svc-nav { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .svc-nav { grid-template-columns:1fr; } }

.svc-tile { position:relative; display:flex; align-items:center; gap:16px;
  padding:18px; border-radius:16px; background:var(--bg); overflow:hidden;
  border:1.5px solid var(--border); text-decoration:none; color:var(--fg);
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease), box-shadow .22s var(--ease); }
.svc-tile::after { content:""; position:absolute; left:18px; right:18px; bottom:0; height:3px; border-radius:3px 3px 0 0;
  background:var(--cyan); transform:scaleX(0); transform-origin:left; transition:transform .26s var(--ease); }
.svc-tile:hover { transform:translateY(-4px); border-color:var(--navy); background:var(--navy); color:#fff;
  box-shadow:0 14px 30px -16px oklch(21% .11 311 / .5); }
.svc-tile:hover .svc-tile-name { color:#fff; }
.svc-tile:hover .svc-tile-desc { color:rgba(255,255,255,.72); }
.svc-tile:hover::after { transform:scaleX(1); }
.svc-tile:focus-visible { outline:2px solid var(--navy); outline-offset:3px; }

.svc-badge { flex:none; display:grid; place-items:center; width:46px; height:46px; border-radius:12px;
  background: color-mix(in oklch, var(--navy) 10%, var(--surface)); color:var(--navy);
  transition: background .22s var(--ease), color .22s var(--ease); }
.svc-badge--num { font-family:var(--font-mono, ui-monospace, monospace); font-size:17px; font-weight:700; letter-spacing:-.02em; }
.svc-badge--icon svg { width:23px; height:23px; }
.svc-tile:hover .svc-badge { background:#fff; color:var(--navy); }

.svc-tile--accent .svc-badge { background: color-mix(in oklch, var(--cyan) 18%, var(--surface)); color:var(--navy-deep); }
.svc-tile--accent:hover { border-color:var(--navy); box-shadow:0 14px 30px -16px oklch(21% .11 311 / .5); }
.svc-tile--accent:hover .svc-badge { background:var(--cyan); color:var(--navy-deep); }
.svc-tile--accent::after { background:var(--navy); }

.svc-tile-body { display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; }
.svc-tile-name { font-size:16.5px; font-weight:700; letter-spacing:-.01em; line-height:1.2; }
.svc-tile-desc { font-size:13px; color:var(--muted); line-height:1.35; }
.svc-arr { flex:none; width:20px; height:20px; color:var(--muted); transform:translateX(-2px);
  transition: transform .22s var(--ease), color .22s var(--ease); }
.svc-tile:hover .svc-arr { color:#fff; transform:translateX(2px); }
.svc-tile--accent:hover .svc-arr { color:#fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay:.08s } .reveal[data-d="2"]{ transition-delay:.16s }
.reveal[data-d="3"]{ transition-delay:.24s } .reveal[data-d="4"]{ transition-delay:.32s }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* ---------- testimonial ---------- */
.quote { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color:#fff; border-radius: var(--radius); padding: clamp(34px,5vw,64px); position:relative; overflow:hidden; }
.quote::before { content:"\201C"; position:absolute; top: -30px; left: 26px; font-size: 220px; line-height:1; color: oklch(83% 0.149 181 / .18); font-family: Georgia, serif; }
.quote blockquote { font-size: clamp(20px, 2.6vw, 30px); font-weight: 300; line-height: 1.4; letter-spacing:-.01em; margin:0; position:relative; max-width: 30ch; color:#fff; }
.quote cite { display:block; margin-top: 24px; font-style: normal; font-size: 14px; color: var(--cyan); font-weight:500; letter-spacing:.02em; }

/* ---------- band / cta ---------- */
.band { background: var(--navy); color:#fff; border-radius: clamp(20px,3vw,28px); padding: clamp(36px,6vw,72px); position:relative; overflow:hidden; text-align:center; }
.band::after { content:""; position:absolute; inset:0; opacity:.4;
  background: radial-gradient(80% 120% at 100% 0%, oklch(83% 0.149 181 /.5), transparent 60%); }
.band > * { position:relative; z-index:1; }
.band h2 { color:#fff; font-size: clamp(28px,4vw,46px); }
.band p { color: oklch(88% 0.02 255); max-width: 52ch; margin: 16px auto 0; font-size: 18px; }
.band .hero-cta { justify-content:center; }

/* ---------- footer ---------- */
.footer { background: var(--navy-ink); color: oklch(82% 0.02 255); padding-block: clamp(48px,6vw,72px) 32px; margin-top: 0; }
.footer a { color: oklch(84% 0.02 255); font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer h4 { color:#fff; font-size: 13px; letter-spacing:.08em; text-transform:uppercase; margin-bottom: 16px; }
.footer ul { list-style:none; padding:0; margin:0; display:grid; gap: 10px; }
.footer .brand { color:#fff; margin-bottom: 14px; }
.footer .brand small{ color: var(--cyan); }
.footer .brand-logo { height: 60px; }
.footer-bottom { display:flex; flex-wrap:wrap; gap: 12px; justify-content:space-between; align-items:center;
  border-top: 1px solid oklch(100% 0 0 /.12); margin-top: 40px; padding-top: 24px; font-size: 13px; color: oklch(70% 0.02 255); }
.compliance-row { display:flex; flex-wrap:wrap; gap: 8px; }
.compliance-row span { font-size: 11px; font-weight:600; letter-spacing:.06em; padding: 5px 10px; border-radius: 6px; border:1px solid oklch(100% 0 0 /.18); color: oklch(86% 0.02 255); }

/* ---------- utility ---------- */
.tabnums { font-variant-numeric: tabular-nums; }
.center { text-align:center; } .mx-auto{ margin-inline:auto; }
.split { display:grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,5vw,64px); align-items:center; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; } }
.mt-s{margin-top:16px} .mt-m{margin-top:28px} .mt-l{margin-top:44px}
.text-orange{ color: var(--orange); } .text-cyan{ color: var(--blue); }

/* ============================================================
   RevTrue — conversational ROI assessment
   ============================================================ */
.revtrue{
  display:grid; grid-template-columns: 1.15fr .85fr; gap: clamp(18px,2.4vw,28px);
  align-items:stretch; margin-top: 8px;
}
@media (max-width: 940px){ .revtrue{ grid-template-columns: 1fr; } }

/* ---- chat shell ---- */
.rt-chat{
  display:flex; flex-direction:column; min-height: 540px; max-height: 620px;
  background: var(--surface); border:1px solid var(--border); border-radius: 18px;
  overflow:hidden; box-shadow: 0 2px 10px oklch(21% .107 311 / .06);
}
.rt-head{
  display:flex; align-items:center; gap: 12px; padding: 14px 16px;
  border-bottom:1px solid var(--border);
  background: linear-gradient(180deg, oklch(98% .01 262), var(--surface));
}
.rt-avatar{ width: 44px; height: 44px; flex:none; }
.rt-avatar svg{ width:100%; height:100%; overflow:visible; display:block; }
.rt-id{ display:flex; flex-direction:column; line-height:1.25; }
.rt-id strong{ font-size: 15px; color: var(--navy-deep); font-weight:600; }
.rt-statusline{ display:flex; align-items:center; gap:6px; font-size: 12px; color: var(--muted); }
.rt-live{ width:7px; height:7px; border-radius:50%; background: var(--orange); box-shadow:0 0 0 0 var(--orange); animation: rtLive 2.2s ease-out infinite; }
@keyframes rtLive{ 0%{box-shadow:0 0 0 0 oklch(83% .149 181 / .5);} 70%{box-shadow:0 0 0 7px oklch(83% .149 181 / 0);} 100%{box-shadow:0 0 0 0 oklch(83% .149 181 / 0);} }
.rt-badge{ margin-left:auto; font-size:10.5px; font-weight:600; letter-spacing:.07em; text-transform:uppercase;
  color: var(--blue); background: var(--cyan-soft); border:1px solid oklch(88% .06 181); padding: 4px 9px; border-radius: 999px; }

/* ---- message log ---- */
.rt-log{ flex:1; overflow-y:auto; padding: 18px 16px; display:flex; flex-direction:column; gap: 12px; scroll-behavior:smooth; }
.rt-log::-webkit-scrollbar{ width: 9px; }
.rt-log::-webkit-scrollbar-thumb{ background: var(--border-strong); border-radius: 99px; border: 3px solid var(--surface); }
.rt-log::-webkit-scrollbar-track{ background: transparent; }
.rt-msg{ display:flex; gap: 9px; align-items:flex-end; max-width: 86%; }
.rt-msg.rt-user{ align-self:flex-end; flex-direction:row-reverse; }
.rt-dot{ width:22px; height:22px; flex:none; border-radius:7px; background: var(--navy);
  background-image: linear-gradient(135deg, var(--navy), var(--blue)); margin-bottom:2px; }
.rt-bub{ padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height:1.55; }
.rt-bot .rt-bub{ background: oklch(97% .008 262); color: var(--fg); border-bottom-left-radius:5px; }
.rt-user .rt-bub{ background: var(--navy); color:#fff; border-bottom-right-radius:5px; }
.rt-bub em{ color: var(--blue); font-style:italic; }
.rt-bub strong{ font-weight:600; }
.rt-list{ margin: 8px 0 2px; padding-left: 18px; display:grid; gap:6px; }
.rt-list li{ font-size:14px; }

/* fit-score chip inside a bubble */
.rt-fit{ display:flex; align-items:center; gap: 13px; }
.rt-fit-ring{ --s:0; width:54px; height:54px; flex:none; border-radius:50%; display:grid; place-items:center;
  background: conic-gradient(var(--orange) calc(var(--s)*1%), oklch(90% .02 262) 0); position:relative; }
.rt-fit-ring::before{ content:''; position:absolute; inset:5px; border-radius:50%; background: oklch(97% .008 262); }
.rt-fit-ring b{ position:relative; font-size:16px; font-weight:700; color: var(--navy-deep); font-variant-numeric:tabular-nums; }
.rt-fit span:last-child{ display:flex; flex-direction:column; }
.rt-fit small{ color: var(--muted); font-size:12px; }

/* typing indicator */
.rt-typing .rt-bub{ display:flex; gap:4px; padding: 13px 14px; }
.rt-typing i{ width:6px; height:6px; border-radius:50%; background: var(--faint); animation: rtType 1.2s infinite ease-in-out; }
.rt-typing i:nth-child(2){ animation-delay:.15s; } .rt-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes rtType{ 0%,60%,100%{ transform:translateY(0); opacity:.4; } 30%{ transform:translateY(-4px); opacity:1; } }

/* quick-reply chips */
.rt-quick{ display:flex; flex-wrap:wrap; gap: 8px; padding: 0 16px; }
.rt-quick:not(:empty){ padding-bottom: 12px; }
.rt-chip{ font: inherit; font-size: 13px; cursor:pointer; padding: 8px 13px; border-radius: 999px;
  border:1px solid var(--border-strong); background: var(--surface); color: var(--navy-deep); transition: .16s; }
.rt-chip:hover{ border-color: var(--blue); color: var(--blue); background: oklch(98% .01 262); transform: translateY(-1px); }

/* composer */
.rt-input{ display:flex; gap: 8px; padding: 12px 14px; border-top:1px solid var(--border); background: var(--surface); }
.rt-input input{ flex:1; font: inherit; font-size: 14.5px; padding: 11px 14px; border-radius: 11px;
  border:1px solid var(--border-strong); background: var(--bg); color: var(--fg); }
.rt-input input:focus{ outline:none; border-color: var(--blue); box-shadow: 0 0 0 3px oklch(57% .102 181 / .16); }
.rt-send{ flex:none; width:44px; border:none; border-radius:11px; background: var(--navy); color:#fff; cursor:pointer; display:grid; place-items:center; transition:.16s; }
.rt-send svg{ width:20px; height:20px; }
.rt-send:hover{ background: var(--orange); }

/* ---- right column: live result + fine-tune ---- */
.rt-side{ display:flex; flex-direction:column; gap: 14px; }
.rt-result{ background-image: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color:#fff;
  padding: clamp(24px,2.8vw,34px); display:flex; flex-direction:column; gap: 18px; flex:1; position:relative; overflow:hidden; }
.rt-result::after{ content:''; position:absolute; top:-90px; right:-70px; width:240px; height:240px; border-radius:50%; pointer-events:none;
  background: radial-gradient(circle, oklch(74% .13 182 / .34), transparent 68%); }
.rt-result > *{ position:relative; z-index:1; }
.rt-result-eyebrow{ font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color: var(--cyan); margin:0; }
.rt-result-cap{ font-size:12.5px; line-height:1.5; color: oklch(82% .03 238); margin:7px 0 0; max-width:36ch; }
.rt-result-stats{ flex:1; display:flex; flex-direction:column; justify-content:center; }
.rt-result-stats .roi-out{ padding:15px 0; border-bottom:1px solid oklch(100% 0 0 / .09); }
.rt-result-stats .roi-out:first-child{ padding-top:2px; }
.rt-result-stats .roi-out:nth-last-child(2){ border-bottom:none; }
.rt-result-stats .roi-total{ border-bottom:none; padding-bottom:2px; }
.rt-result .roi-out strong{ transition: color .3s; }
.rt-tune{ border:1px solid var(--border); border-radius: 14px; background: var(--surface); }
.rt-tune summary{ cursor:pointer; list-style:none; padding: 14px 18px; font-size: 13.5px; font-weight:500; color: var(--navy-deep); display:flex; align-items:center; gap:8px; }
.rt-tune summary::-webkit-details-marker{ display:none; }
.rt-tune summary::before{ content:'+'; font-size:17px; color: var(--blue); width:16px; }
.rt-tune[open] summary::before{ content:'–'; }
.rt-tune-body{ padding: 4px 18px 20px; }

/* character motion fallback (no GSAP) */
.rt-anim-idle .rt-face{ animation: rtFloat 2.6s ease-in-out infinite; }
@keyframes rtFloat{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-4px); } }
.rt-anim-think .rt-ring{ animation: rtSpin 2.2s linear infinite; transform-origin: 32px 32px; }
@keyframes rtSpin{ to{ transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce){
  .rt-live, .rt-anim-idle .rt-face, .rt-anim-think .rt-ring, .rt-typing i{ animation:none !important; }
}

/* ============================================================
   ABOUT — Right to Win, Vision/Mission, KNACK values
   ============================================================ */

/* Right-to-Win positioning statement */
.rtw{ font-size:clamp(24px,3.4vw,40px); font-weight:600; line-height:1.28;
  letter-spacing:-.01em; max-width:20ch; text-wrap:balance; }
.rtw em{ font-style:normal; color:var(--cyan); }
.rtw-band{ color:#fff; }
.rtw-band .rtw em{ color:var(--cyan); }

/* Vision + Mission pair */
.mvv-pair{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(16px,2.4vw,28px); }
.mvv-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:clamp(24px,3vw,40px); position:relative; overflow:hidden; }
.mvv-card::before{ content:""; position:absolute; inset:0 auto 0 0; width:4px;
  background:linear-gradient(var(--navy),var(--cyan)); }
.mvv-card .eyebrow{ margin-bottom:14px; }
.mvv-statement{ font-family:var(--font); font-weight:600; letter-spacing:-.01em;
  font-size:clamp(22px,2.8vw,32px); line-height:1.28; color:var(--navy-deep); text-wrap:balance; }
.mvv-statement b{ color:var(--cyan); font-weight:600; }
@media (max-width:760px){ .mvv-pair{ grid-template-columns:1fr; } }

/* KNACK values — the initials spell the name top-to-bottom */
.knack-list{ border-top:1px solid var(--border); margin-top:8px; }
.knack-item{ display:grid; grid-template-columns:clamp(64px,8vw,104px) 1fr; align-items:center;
  gap:clamp(16px,3vw,40px); padding:clamp(18px,2.6vw,28px) 0; border-bottom:1px solid var(--border);
  transition:padding-left .3s var(--ease); }
.knack-item:hover{ padding-left:10px; }
.knack-letter{ font-size:clamp(46px,7vw,88px); font-weight:700; line-height:.86; color:var(--navy);
  letter-spacing:-.03em; transition:color .3s var(--ease); position:relative; }
.knack-item:hover .knack-letter{ color:var(--cyan); }
.knack-body h3{ font-size:clamp(17px,2.2vw,22px); margin:0 0 4px; letter-spacing:-.01em; }
.knack-body h3 span{ color:var(--cyan); }
.knack-body p{ color:var(--muted); margin:0; max-width:62ch; font-size:15.5px; }
@media (max-width:560px){
  .knack-item{ grid-template-columns:48px 1fr; gap:18px; }
  /* long button labels (e.g. hero CTAs) wrap + stay within the viewport instead of being
     clipped by body overflow-x:hidden or forcing the page layout wider than the phone */
  .btn{ white-space: normal; max-width: 100%; }
  .hero-cta{ width: 100%; }
  .hero-cta .btn{ flex: 1 1 100%; justify-content: center; text-align: center; }
}

/* ============ Nav mega-menu featured panel (Solutions / About / Resources) ============ */
.nav-mega-feat {
  display: flex; flex-direction: column; justify-content: space-between;
  min-width: 224px; max-width: 240px; margin-left: 4px; padding: 16px;
  border-radius: 12px; gap: 14px;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative; overflow: hidden;
}
.nav-mega-feat::after {
  content: ""; position: absolute; top: -40%; right: -30%; width: 75%; height: 80%;
  background: radial-gradient(circle, oklch(83% 0.149 181 / .22), transparent 70%);
  pointer-events: none;
}
.nav-mega-feat .feat-kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); position: relative;
}
.nav-mega-feat .feat-stat { position: relative; }
.nav-mega-feat .feat-stat b {
  display: block; font-size: 30px; line-height: 1.04; font-weight: 700; color: #fff;
  letter-spacing: -.015em; font-variant-numeric: tabular-nums;
}
.nav-mega-feat .feat-stat span { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: oklch(100% 0 0 / .74); }
.nav-mega-feat .feat-rule { height: 1px; background: oklch(100% 0 0 / .16); position: relative; }
.nav-mega-feat .feat-row { position: relative; display: flex; gap: 7px; align-items: baseline; font-size: 12.5px; color: oklch(100% 0 0 / .84); }
.nav-mega-feat .feat-row b { color: var(--cyan); font-weight: 700; }
.nav-mega-feat .feat-head { position: relative; font-size: 14.5px; line-height: 1.32; font-weight: 600; color: #fff; letter-spacing: -.01em; }
.nav-links .nav-sub.nav-mega a.feat-cta {
  position: relative; display: inline-flex; align-items: center; gap: 6px; width: auto;
  padding: 9px 14px; border-radius: 9px; background: var(--cyan); color: var(--navy-deep);
  font-size: 13px; font-weight: 600; white-space: nowrap; align-self: flex-start;
}
.nav-links .nav-sub.nav-mega a.feat-cta:hover { background: oklch(72% 0.13 182); color: var(--navy-deep); }
/* Desktop-only width/anchoring — gated so the mobile hamburger nav (which stacks these) is untouched */
@media (min-width: 1024px) {
  .nav-links .nav-sub.nav-mega { min-width: 712px; align-items: stretch; }
  .nav-links .nav-sub.nav-mega.nav-mega-duo { min-width: 478px; }
  .nav-links .nav-sub.nav-mega.nav-mega-end { min-width: 736px; left: auto; right: 0; }
  .nav-mega-duo .nav-mega-col { min-width: 188px; }
  .nav-mega-duo .nav-mega-feat { min-width: 224px; max-width: 244px; }
  .nav-mega-end .nav-mega-col { min-width: 206px; }
  .nav-mega-end .nav-mega-feat { min-width: 248px; max-width: 268px; padding: 20px; gap: 15px; }
}
@media (max-width: 1023px) { .nav-mega-feat { display: none; } }
