/* =========================================================
   TRUWEALTH TECHNOLOGY SOLUTIONS — Apple-sharp MSP site
   ========================================================= */

:root {
  /* Dark Apple theme */
  --black: #000000;
  --ink: #f5f5f7;          /* primary text (light on dark) */
  --ink-2: #a1a1a6;        /* secondary text */
  --ink-3: #6e6e73;        /* tertiary / muted */
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.06);
  --white: #ffffff;
  --paper: #0a0a0c;        /* dark section bg */
  --paper-2: #141417;      /* slightly lighter dark */
  --card: #1c1c1f;         /* card bg on sections */
  --card-2: #141417;       /* alt card bg */
  --gold: #c9a55b;
  --gold-2: #e8c988;
  --blue: #2997ff;         /* electric blue accent */
  --blue-2: #7dd3fc;        /* lighter blue */
  --green: #1db954;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 10px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 30px 60px rgba(0,0,0,.12);

  --font: "Mulish", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1200px;
  --container-tight: 980px;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--black);
  line-height: 1.5;
  font-size: 16.5px;
  font-weight: 400;
  letter-spacing: 0;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: .75; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ----------- Section scaffolding ----------- */
.section { padding: 140px 0; position: relative; }
.section--soft { background: var(--paper); }
.section--dark { background: var(--black); color: var(--white); }
.section--dark .section__eyebrow { color: var(--blue-2); }
.section--dark .muted { color: var(--ink-3); }
.section--contact {
  padding-bottom: 80px;
  background:
    radial-gradient(ellipse at top right, rgba(41,151,255,.10), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(125,211,252,.06), transparent 60%),
    #050507;
  position: relative;
}
.section--contact::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41,151,255,.5), transparent);
  pointer-events: none;
}

.section__head { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.section__title {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--blue-2);
  text-shadow: 0 0 24px rgba(41,151,255,.25);
}
.section__title .muted { color: var(--ink); font-weight: 600; }
.section--dark .section__title { color: var(--blue-2); }
/* Subtitle / intro line / supporting line — used under section titles */
.section__subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: -6px auto 18px;
  text-align: center;
}
.section__intro-line {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-2);
  max-width: 640px;
  margin: 18px auto 0;
  text-align: center;
}
.section__supporting {
  font-size: 14.5px;
  color: var(--ink-3);
  max-width: 640px;
  margin: 14px auto 0;
  line-height: 1.55;
}
.section__supporting--left { text-align: left; margin-left: 0; }

.section__lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-2);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}
.section--dark .section__lede { color: #a1a1a6; }

/* ----------- NAV ----------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.65);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s ease;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}
.nav__wordmark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--white);
}
.nav__wordmark-thin { font-weight: 400; color: var(--ink-2); }

.nav__menu { display: flex; gap: 32px; }
.nav__menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.nav__cta {
  font-size: 14px;
  font-weight: 500;
  background: var(--white);
  color: var(--black) !important;
  padding: 8px 16px;
  border-radius: 100px;
}
.nav__cta:hover { opacity: .85; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.nav__burger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ----------- HERO ----------- */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 140px 24px 0;
}
.hero__backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  filter: saturate(0.8) contrast(1.1);
  mix-blend-mode: screen;
}
.hero__video.is-loaded { opacity: 0.45; }
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0.85;
  pointer-events: auto;
}
.hero__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 35%, rgba(0,0,0,.4) 75%, rgba(0,0,0,.7) 100%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5) 100%);
  pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.85), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,.85), transparent 70%);
}
.hero__glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .55;
}
.hero__glow--1 {
  background: radial-gradient(circle, rgba(41,151,255,.55), transparent 60%);
  top: -140px; left: -140px;
}
.hero__glow--2 {
  background: radial-gradient(circle, rgba(125,211,252,.32), transparent 60%);
  bottom: -180px; right: -160px;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  padding: 40px 0 80px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #d1d1d6;
  margin-bottom: 28px;
}
.hero__eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2cc66b;
  box-shadow: 0 0 12px #2cc66b;
}
.hero__title {
  font-size: clamp(42px, 7.4vw, 96px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero__title .grad {
  background: linear-gradient(135deg, #b8e5ff 0%, #2997ff 50%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(18px, 1.7vw, 22px);
  color: #a1a1a6;
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.45;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__chips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.chip {
  font-size: 13px;
  font-weight: 500;
  color: #d1d1d6;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 100px;
  background: rgba(255,255,255,.02);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn--primary { background: var(--white); color: var(--black) !important; }
.btn--primary:hover { background: var(--blue); color: var(--white) !important; }
.btn--ghost { color: var(--white) !important; border: 1px solid rgba(255,255,255,.25); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--light { background: var(--white); color: var(--black) !important; }
.btn--ghost-dark { color: var(--ink) !important; border: 1px solid rgba(255,255,255,.2); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.06); }
/* Electric-blue CTA — primary action button across the site */
.btn--electric {
  background: linear-gradient(135deg, #2997ff 0%, #1d6fde 100%);
  color: var(--white) !important;
  box-shadow:
    0 0 0 1px rgba(125,211,252,.4),
    0 0 20px rgba(41,151,255,.45),
    0 8px 24px rgba(0,0,0,.35);
}
.btn--electric:hover {
  background: linear-gradient(135deg, #7dd3fc 0%, #2997ff 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.45),
    0 0 28px rgba(125,211,252,.7),
    0 12px 28px rgba(0,0,0,.4);
}
.btn--wide { width: 100%; padding: 15px; }

/* Credential strip */
.credstrip {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  padding: 28px 24px;
}
.credstrip__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.credstrip__item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.credstrip__num {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
  background: linear-gradient(135deg, #b8e5ff, #2997ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Keep the actual "Gold" credential rendered in gold so the Microsoft tier reads correctly */
.credstrip__item--gold .credstrip__num {
  background: linear-gradient(135deg, #f5cd79, #c9a55b);
  -webkit-background-clip: text;
  background-clip: text;
}
.credstrip__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: #a1a1a6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.credstrip__div { width: 1px; height: 30px; background: rgba(255,255,255,.1); }

/* ----------- AGENTS ----------- */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.agent-card {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #141417 0%, #0a0a0c 100%);
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.agent-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(201,165,91,.14), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
}
.agent-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,165,91,.35);
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}
.agent-card:hover::before { opacity: 1; }
.agent-card > * { position: relative; z-index: 1; }
.agent-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,165,91,.25), rgba(201,165,91,.05));
  color: var(--gold-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.agent-card__icon svg { width: 24px; height: 24px; }

/* EVA mascot avatar — replaces the abstract icon on each agent card */
.agent-card__avatar {
  width: 92px;
  height: 74px;
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,.4))
          drop-shadow(0 0 12px rgba(41,151,255,.3));
}
.agent-card__avatar svg { width: 100%; height: 100%; display: block; }
.agent-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--white);
}
.agent-card p {
  color: #a1a1a6;
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.agent-card__bullets { list-style: none; border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; }
.agent-card__bullets li {
  font-size: 13px;
  color: #d1d1d6;
  padding: 4px 0 4px 18px;
  position: relative;
}
.agent-card__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}

.agents-foot {
  margin-top: 64px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.agents-foot p {
  max-width: 720px;
  color: #a1a1a6;
  font-size: 17px;
}
.agents-foot__lead {
  font-size: 19px !important;
  font-weight: 700;
  color: var(--blue-2) !important;
  letter-spacing: -0.01em;
}
.agents-foot__sub {
  font-family: var(--font-mono);
  font-size: 12px !important;
  color: var(--ink-3) !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px !important;
}

/* Closing benefit line on agent cards (added under bullets) */
.agent-card__close {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(125,211,252,.18);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-2);
  letter-spacing: -0.005em;
  line-height: 1.45;
}

/* ----------- SERVICES ----------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

/* Services carousel — horizontal scroll-snap with arrow controls */
.services-carousel {
  position: relative;
  margin: 48px -24px 0;
}
.services-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 18px 24px 36px;
  scroll-padding-left: 24px;
  scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }
.service--card {
  flex: 0 0 calc(33.333% - 12px);
  min-width: 280px;
  scroll-snap-align: start;
  min-height: 280px;
  padding: 32px 28px 28px;
}
.service__oneliner {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--blue-2);
  margin-bottom: 14px;
  line-height: 1.3;
}
.service h3 + p,
.service__oneliner + h3 + p { color: var(--ink-2); }
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-2);
  letter-spacing: 0;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
.service__link:hover { gap: 8px; color: var(--white); }
.service__close {
  margin-top: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--blue-2) !important;
  letter-spacing: -0.01em;
  text-shadow: 0 0 10px rgba(41,151,255,.18);
  line-height: 1.45;
}
.services-foot {
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.service--highlight {
  background:
    radial-gradient(circle at top right, rgba(41,151,255,.12), transparent 55%),
    linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border-color: rgba(41,151,255,.45);
  box-shadow: 0 0 0 1px rgba(41,151,255,.2), 0 20px 40px rgba(0,0,0,.4);
}
.service--highlight .service__tag { color: var(--blue-2); }

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(41,151,255,.15);
  border: 1px solid rgba(41,151,255,.4);
  color: var(--blue-2);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.carousel__btn:hover {
  background: rgba(41,151,255,.3);
  border-color: rgba(125,211,252,.7);
  transform: translateY(-50%) scale(1.05);
}
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }

.services-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.services-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.18);
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
  padding: 0;
}
.services-dots button.is-active {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .service--card { flex: 0 0 calc(50% - 9px); min-width: 280px; }
}
@media (max-width: 680px) {
  .service--card { flex: 0 0 88%; min-width: auto; }
  .carousel__btn { display: none; }
}

.service {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--card-2);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .25s ease, transform .25s ease, border-color .25s ease, box-shadow .35s ease;
  min-height: 240px;
  display: flex; flex-direction: column;
  position: relative;
  isolation: isolate;
}
/* Electric-white highlight backdrop — fades in on hover */
.service::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(135deg,
    rgba(255,255,255,.55) 0%,
    rgba(255,255,255,.15) 40%,
    rgba(255,255,255,0) 100%);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity .3s ease;
  filter: blur(0.5px);
}
.service:hover {
  background: #1f1f23;
  border-color: rgba(255,255,255,.85);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.6),
    0 0 30px rgba(255,255,255,.35),
    0 0 70px rgba(255,255,255,.18),
    0 20px 40px rgba(0,0,0,.5);
  transform: translateY(-4px);
}
.service:hover::after { opacity: 1; }
.service:hover h3 { color: #ffffff; text-shadow: 0 0 18px rgba(255,255,255,.4); }
.service__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.service h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
  color: var(--white);
}
.service p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ----------- PARTNERS / CREDS ----------- */
.creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
.cred {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.cred__badge {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f5cd79, #c9a55b);
  color: #3d2c0a;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6);
}
.cred__badge--green { background: linear-gradient(135deg, #6ee7b7, #10b981); color: #04331d; }
.cred__badge--blue { background: linear-gradient(135deg, #93c5fd, #2563eb); color: #fff; }
.cred h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  color: var(--white);
}
.cred p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
}

/* Partners section — split layout: heading on the left, connector grid on the right */
.section--partners { padding-top: 120px; padding-bottom: 120px; }
.partners-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.55fr);
  gap: 88px;
  align-items: center;
}
.partners-layout__intro {
  position: sticky;
  top: 100px;
  align-self: start;
  padding-top: 8px;
}
.section__title--left { text-align: left; }
.section__lede--left { text-align: left; margin-left: 0; }
.partners-layout__intro .section__eyebrow { display: block; margin-bottom: 22px; }

.partner-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  perspective: 1000px;
}

/* Flip-in animation — staggered via inline animation-delay set in JS */
.partner-wall--flip .partner-wall__tile {
  opacity: 0;
  transform: rotateY(82deg) translateZ(-30px);
  transform-origin: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.partner-wall--flip.is-revealed .partner-wall__tile {
  animation: tileFlipIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes tileFlipIn {
  0%   { opacity: 0; transform: rotateY(82deg) translateZ(-30px); }
  60%  { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0) translateZ(0); }
}
@media (prefers-reduced-motion: reduce) {
  .partner-wall--flip .partner-wall__tile { opacity: 1; transform: none; animation: none; }
}

/* ----------- RANDOM FLIP + ELECTRIC-BLUE GLOW (partner tiles + agent cards) ----------- */
.partner-wall__tile,
.agent-card { transform-style: preserve-3d; isolation: isolate; }

/* ----- PARTNER TILE: slow visible flip + electric blue on the tile ----- */
.partner-wall__tile::before {
  content: "";
  position: absolute;
  inset: -14px -32px;
  border-radius: 28px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(41,151,255,0.45) 10%,
      rgba(41,151,255,0.95) 28%,
      rgba(125,211,252,1) 50%,
      rgba(41,151,255,0.95) 72%,
      rgba(41,151,255,0.45) 90%,
      transparent 100%);
  filter: blur(10px);
  box-shadow:
    0 0 50px rgba(41,151,255,.7),
    0 0 110px rgba(125,211,252,.4);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transform: scaleX(0.5);
  transition: opacity .3s ease;
}
.partner-wall__tile.is-flipping::before {
  animation: ledStripGlow 2.6s ease-in-out;
}
.partner-wall__tile.is-flipping {
  animation: partnerTileFlip 2.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 6;
}
/* Slow 360° rotation — tile itself bathes in electric blue at the apex */
@keyframes partnerTileFlip {
  0% {
    transform: rotateY(0) scale(1);
    background-color: var(--card);
    border-color: rgba(255,255,255,.06);
    box-shadow: 0 0 0 rgba(41,151,255,0);
  }
  50% {
    transform: rotateY(180deg) scale(1.07);
    background-color: rgba(41,151,255,.22);
    border-color: rgba(125,211,252,.85);
    box-shadow:
      0 0 0 1.5px rgba(125,211,252,.85),
      0 0 60px rgba(41,151,255,.65),
      0 0 120px rgba(125,211,252,.35),
      inset 0 0 30px rgba(125,211,252,.4);
  }
  100% {
    transform: rotateY(360deg) scale(1);
    background-color: var(--card);
    border-color: rgba(255,255,255,.06);
    box-shadow: 0 0 0 rgba(41,151,255,0);
  }
}
@keyframes ledStripGlow {
  0%   { opacity: 0;    transform: scaleX(0.5); }
  20%  { opacity: 0.65; transform: scaleX(1); }
  50%  { opacity: 1;    transform: scaleX(1.12); }
  80%  { opacity: 0.65; transform: scaleX(1); }
  100% { opacity: 0;    transform: scaleX(0.5); }
}

/* ----- AGENT CARD: faster flip, radial halo backdrop (unchanged) ----- */
.agent-card::before {
  content: "";
  position: absolute;
  inset: -28px;
  border-radius: 32px;
  background:
    radial-gradient(ellipse at center,
      rgba(41,151,255,0.85) 0%,
      rgba(41,151,255,0.35) 30%,
      rgba(125,211,252,0.18) 55%,
      transparent 75%);
  filter: blur(18px);
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity .25s ease;
}
.agent-card.is-flipping::before {
  animation: tileGlowPulse 1.0s ease-in-out;
}
.agent-card.is-flipping {
  animation: agentTileFlip 1.0s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 6;
}
@keyframes agentTileFlip {
  0% {
    transform: rotateY(0) scale(1);
    box-shadow: 0 0 0 rgba(41,151,255,0);
  }
  35% {
    box-shadow:
      0 0 70px 14px rgba(41,151,255,.75),
      0 0 140px 30px rgba(41,151,255,.4),
      0 0 0 1.5px rgba(125,211,252,.6);
  }
  50% {
    transform: rotateY(180deg) scale(1.08);
    box-shadow:
      0 0 110px 24px rgba(41,151,255,.95),
      0 0 220px 60px rgba(125,211,252,.55),
      0 0 0 2px rgba(125,211,252,.95);
  }
  65% {
    box-shadow:
      0 0 70px 14px rgba(41,151,255,.75),
      0 0 140px 30px rgba(41,151,255,.4),
      0 0 0 1.5px rgba(125,211,252,.6);
  }
  100% {
    transform: rotateY(360deg) scale(1);
    box-shadow: 0 0 0 rgba(41,151,255,0);
  }
}
@keyframes tileGlowPulse {
  0%, 100% { opacity: 0; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-wall__tile.is-flipping,
  .agent-card.is-flipping { animation: none !important; }
  .partner-wall__tile::before,
  .agent-card::before { display: none; }
}
.partner-wall__tile {
  padding: 22px 14px 18px;
  text-align: center;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 130px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.partner-wall__tile:hover {
  background: #1f1f23;
  border-color: rgba(255,255,255,.85);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.6),
    0 0 30px rgba(255,255,255,.35),
    0 0 70px rgba(255,255,255,.18),
    0 20px 40px rgba(0,0,0,.5);
}
.partner-wall__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 100%;
}
.partner-wall__logo .partner-logo {
  max-height: 44px;
  max-width: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* No silhouette — show real brand colours */
  transition: transform .25s ease;
}
.partner-wall__tile:hover .partner-logo { transform: scale(1.05); }
.partner-wall__name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color .25s ease;
}
.partner-wall__tile:hover .partner-wall__name {
  color: var(--white);
  text-shadow: 0 0 14px rgba(255,255,255,.4);
}

/* ----------- C.F.I. ----------- */
.cfi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.cfi {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.cfi:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
  border-color: rgba(201,165,91,.3);
}
.cfi__letter {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #000;
  color: var(--blue-2);
  border: 1px solid rgba(41,151,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cfi h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--white);
}
.cfi p.cfi__lead {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-2);
  margin-bottom: 10px;
}
.cfi p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.cfi p.cfi__close {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(125,211,252,.18);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-2);
  letter-spacing: -0.01em;
}
.cfi-connector {
  margin: 56px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 16px;
  color: var(--ink-2);
  font-style: italic;
  position: relative;
}
.cfi-connector::before,
.cfi-connector::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 1px;
  background: rgba(125,211,252,.4);
  vertical-align: middle;
  margin: 0 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 72px;
  padding: 40px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #b8e5ff, #2997ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.stat__label {
  font-size: 13px;
  color: #a1a1a6;
  letter-spacing: 0.04em;
}

/* ----------- CTA BANNER ----------- */
.cta-banner {
  padding: 120px 24px;
  background: linear-gradient(135deg, #050507 0%, #0a1428 60%, #0a0a0c 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cta-banner::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(41,151,255,.28), transparent 60%);
  top: -200px; right: -200px;
  filter: blur(60px);
}
.cta-banner::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,165,91,.18), transparent 60%);
  bottom: -180px; left: -160px;
  filter: blur(70px);
}
.cta-banner__inner { position: relative; }
.cta-banner h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--white);
}
.cta-banner p {
  font-size: 19px;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta-banner__ctas {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}

/* ----------- CONTACT ----------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-grid .section__title { text-align: left; }
.contact-grid .section__lede { text-align: left; margin-left: 0; margin-bottom: 40px; }
.contact-grid .section__eyebrow { text-align: left; }

.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-info > div { display: flex; flex-direction: column; gap: 4px; }
.contact-info__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-info a, .contact-info span { font-size: 15px; color: var(--ink); font-weight: 500; }
.contact-info__social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.contact-info__social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(41,151,255,.06);
  border: 1px solid rgba(41,151,255,.2);
  color: var(--blue-2);
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.contact-info__social a:hover {
  color: var(--white);
  background: rgba(41,151,255,.15);
  border-color: rgba(41,151,255,.5);
  transform: translateY(-2px);
  opacity: 1;
}
.contact-info__social svg { width: 16px; height: 16px; }

.contact-form {
  padding: 36px;
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(255,255,255,.3);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  animation: contactFormPulse 3.2s ease-in-out infinite;
}
.contact-form:hover { animation-play-state: paused; }
@keyframes contactFormPulse {
  0%, 100% {
    border-color: rgba(255,255,255,.30);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.10),
      0 0 30px rgba(255,255,255,.14),
      0 0 60px rgba(125,211,252,.10),
      0 20px 40px rgba(0,0,0,.4);
  }
  50% {
    border-color: rgba(255,255,255,.75);
    box-shadow:
      0 0 0 1.5px rgba(255,255,255,.55),
      0 0 60px rgba(255,255,255,.4),
      0 0 130px rgba(125,211,252,.28),
      0 20px 40px rgba(0,0,0,.4);
  }
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; }
.contact-form label span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: #050507;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  background: #000;
  box-shadow: 0 0 0 3px rgba(41,151,255,.18);
}
.contact-form textarea { resize: vertical; }
.contact-form__note { font-size: 13px; color: var(--blue-2); min-height: 18px; }

/* ----------- FOOTER ----------- */
.footer { background: var(--black); color: #a1a1a6; padding: 72px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__logo { height: 32px; width: auto; }
.footer__name { color: var(--white); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.footer__tag { font-size: 13px; color: var(--blue-2); letter-spacing: 0.04em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h5 { color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer__cols a, .footer__cols span { display: block; font-size: 14px; color: #a1a1a6; padding: 4px 0; }
.footer__cols a:hover { color: var(--white); }
.footer__bar { padding: 22px 0; }
.footer__bar-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #6e6e73;
}

/* ----------- INTRO SPLASH ----------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(ellipse at center, #0a0a0c 0%, #000 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 1;
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(41,151,255,.18), transparent 55%),
    radial-gradient(circle at 30% 70%, rgba(201,165,91,.10), transparent 50%);
  animation: splashBgPulse 2.6s ease-in-out infinite;
}
.splash__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.splash__rings span {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(41,151,255,.4);
  animation: splashRing 2.6s ease-out infinite;
}
.splash__rings span:nth-child(2) { animation-delay: 0.86s; }
.splash__rings span:nth-child(3) { animation-delay: 1.72s; }
.splash__logo {
  position: relative;
  width: 280px;
  height: auto;
  filter:
    drop-shadow(0 0 50px rgba(41,151,255,.7))
    drop-shadow(0 0 18px rgba(41,151,255,.45));
  animation: splashLogoPulse 2.6s ease-in-out infinite;
}
.splash__wordmark {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: -8px;
  animation: splashFadeIn 1.4s ease-out 0.4s both;
}
.splash__wordmark-line {
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue-2);
  text-shadow: 0 0 18px rgba(41,151,255,.55);
}
.splash__wordmark-line--lg {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--white);
  text-shadow: 0 0 22px rgba(125,211,252,.7);
}
.splash__wordmark-line:not(.splash__wordmark-line--lg) {
  font-size: 13px;
}
.splash__tagline {
  position: relative;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-top: 12px;
  animation: splashFadeIn 1.4s ease-out 0.8s both;
}
@keyframes splashLogoPulse {
  0%, 100% {
    transform: scale(1);
    filter:
      drop-shadow(0 0 30px rgba(41,151,255,.4))
      drop-shadow(0 0 10px rgba(41,151,255,.25));
  }
  50% {
    transform: scale(1.06);
    filter:
      drop-shadow(0 0 80px rgba(41,151,255,.85))
      drop-shadow(0 0 30px rgba(41,151,255,.55));
  }
}
@keyframes splashBgPulse {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}
@keyframes splashRing {
  0%   { transform: scale(0.6); opacity: 0.7; }
  80%  { opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}
@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .splash__logo,
  .splash__bg,
  .splash__rings span { animation: none; }
}
@media (max-width: 680px) {
  .splash__logo { width: 150px; }
  .splash__rings span { width: 180px; height: 180px; }
  .splash__tagline { font-size: 11px; letter-spacing: 0.28em; }
}

/* ----------- AI BOT MASCOT (head + floating hand pods, chatbot trigger) ----------- */
.bot {
  position: fixed;
  width: 100px;
  height: 120px;          /* viewBox 200:240 ≈ 0.83 */
  left: 0;
  top: 50vh;
  z-index: 90;
  pointer-events: none;
  transform: translate(24px, -50%);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity .6s ease;
  filter:
    drop-shadow(0 16px 30px rgba(0,0,0,.55))
    drop-shadow(0 0 24px rgba(41,151,255,.55))
    drop-shadow(0 0 8px rgba(255,255,255,.3));
  will-change: transform;
}
.bot__body {
  width: 100%; height: 100%;
  animation: botFloat 3.6s ease-in-out infinite;
  pointer-events: auto;
  cursor: pointer;
}

/* Idle hand-pod sway — origins set at the pod's inner top (closest to body) */
.bot__arm {
  transform-origin: 50% 60%;
  animation: armSway 4.4s ease-in-out infinite;
}
.bot__arm--l { transform-origin: 47px 130px; }
.bot__arm--r { transform-origin: 153px 130px; animation-delay: -2.2s; }

/* Cape — JS-driven tilt that trails the bot's motion across the screen.
   The --cape-tilt custom property is updated each frame in animateBot()
   based on horizontal velocity, with a sine-wave idle billow layered in. */
.bot__cape {
  transform-origin: 130px 132px;
  transform: rotate(var(--cape-tilt, 0deg));
  transition: transform .08s linear; /* tiny lag for organic feel */
}
@media (prefers-reduced-motion: reduce) {
  .bot__cape { transform: none; }
}

/* Pupils track cursor via CSS vars set in JS */
.bot__pupil {
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform .18s ease-out;
}

/* Hover — glow pulses, faster bob, hand-pods invite */
.bot:hover .bot__glow { animation: glowPulse .85s ease-in-out infinite; }
.bot:hover .bot__body { animation-duration: 2.2s; }

/* Click — right hand waves, glow flashes */
.bot.is-waving .bot__arm--r { animation: handWave 1.4s ease-in-out 1; }
.bot.is-waving .bot__glow   { animation: glowBurst .9s ease-in-out 1; }

@keyframes glowPulse {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 1; }
}
@keyframes glowBurst {
  0%   { opacity: 0.9; }
  35%  { opacity: 1; }
  100% { opacity: 0.9; }
}
@keyframes armSway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}
@keyframes handWave {
  0%   { transform: rotate(0); }
  18%  { transform: rotate(-32deg); }
  36%  { transform: rotate(20deg); }
  54%  { transform: rotate(-26deg); }
  72%  { transform: rotate(14deg); }
  100% { transform: rotate(0); }
}
.bot__shadow {
  position: absolute;
  inset: auto 0 -10px 0;
  height: 10px;
  margin: 0 auto;
  width: 70px;
  background: radial-gradient(ellipse at center, rgba(41,151,255,.55), transparent 70%);
  filter: blur(7px);
  opacity: .85;
  animation: shadowPulse 3.6s ease-in-out infinite;
}
@keyframes botFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-7px) rotate(2deg); }
}
@keyframes shadowPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(.78); opacity: .5; }
}
.bot.is-hidden { opacity: 0; }
@media (max-width: 680px) {
  .bot { width: 76px; height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .bot { display: none; }
}

/* ----------- CHATBOT BUBBLE ----------- */
.chatbot {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: linear-gradient(180deg, #1a1a1f 0%, #131318 100%);
  border: 1px solid rgba(41,151,255,.35);
  border-radius: 20px;
  padding: 22px 22px 18px;
  z-index: 200;
  box-shadow:
    0 30px 60px rgba(0,0,0,.55),
    0 0 60px rgba(41,151,255,.25),
    inset 0 0 0 1px rgba(255,255,255,.04);
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity .35s cubic-bezier(0.22, 1, 0.36, 1),
    transform .35s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font);
  color: var(--ink);
}
.chatbot[hidden] { display: none; }
.chatbot.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chatbot__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.chatbot__close:hover {
  background: rgba(255,255,255,.06);
  color: var(--white);
  border-color: rgba(255,255,255,.1);
}
.chatbot__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.chatbot__avatar {
  position: relative;
  width: 48px;
  height: 38px;
  flex-shrink: 0;
}
.chatbot__avatar svg { width: 100%; height: 100%; }
.chatbot__online {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 2px #131318, 0 0 8px rgba(52,211,153,.7);
}
.chatbot__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.chatbot__role {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.chatbot__msg {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  background: rgba(41,151,255,.08);
  border: 1px solid rgba(41,151,255,.2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.chatbot__wave {
  display: inline-block;
  animation: waveHand 1.6s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes waveHand {
  0%, 100%  { transform: rotate(0); }
  10%, 30%  { transform: rotate(14deg); }
  20%, 40%  { transform: rotate(-8deg); }
  50%       { transform: rotate(0); }
}
.chatbot__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.chatbot__chip {
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: 7px 12px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.chatbot__chip:hover {
  background: rgba(41,151,255,.12);
  border-color: rgba(41,151,255,.5);
  color: var(--blue-2);
}
.chatbot__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
  background: var(--white);
  border-radius: 12px;
  padding: 12px 16px;
  border: 0;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.chatbot__cta:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-1px);
}
.chatbot__cta > span:last-child {
  font-size: 18px;
  transition: transform .2s ease;
}
.chatbot__cta:hover > span:last-child { transform: translateX(3px); }
.chatbot__footer {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin-top: 12px;
}
.chatbot__footer a { color: var(--blue-2); }
@media (max-width: 480px) {
  .chatbot { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 18px; }
}

/* ----------- NEWEST VENTURES ----------- */
/* ----------- REVIEWS / TESTIMONIALS ----------- */
.section--reviews { padding: 120px 0; background: #050507; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.review {
  position: relative;
  padding: 32px 28px 26px;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), border-color .3s ease, box-shadow .3s ease;
  isolation: isolate;
}
.review::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 80px;
  line-height: 1;
  color: var(--blue);
  opacity: 0.55;
  pointer-events: none;
}
.review:hover {
  transform: translateY(-4px);
  border-color: rgba(41,151,255,.45);
  box-shadow: 0 24px 48px rgba(0,0,0,.45), 0 0 30px rgba(41,151,255,.15);
}
.review__stars {
  color: var(--blue-2);
  font-size: 15px;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  text-shadow: 0 0 12px rgba(41,151,255,.4);
}
.review__quote {
  margin: 0 0 22px;
  padding: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
  font-style: normal;
  flex: 1;
}
.review__meta {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 14px;
  margin-top: auto;
}
.review__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}
.review__role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Featured review — middle card slightly elevated with electric-blue accent */
.review--feature {
  background:
    radial-gradient(circle at top right, rgba(41,151,255,.12), transparent 55%),
    linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border-color: rgba(41,151,255,.3);
}
.review--feature::before { color: var(--blue-2); opacity: 0.85; }
.review--feature .review__stars { color: var(--white); text-shadow: 0 0 14px rgba(125,211,252,.6); }

.reviews-foot {
  margin-top: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.reviews-foot p {
  color: var(--ink-2);
  font-size: 17px;
}

/* Legacy ventures classes (kept harmless — no DOM consumers anymore) */
.section--ventures { padding: 110px 0 120px; background: #050507; }
.ventures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.venture {
  padding: 32px 28px;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s ease, border-color .3s ease;
  position: relative;
  overflow: hidden;
}
.venture::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(41,151,255,.12), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.venture:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,.45);
  border-color: rgba(41,151,255,.4);
}
.venture:hover::before { opacity: 1; }
.venture > * { position: relative; }
.venture__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.venture__brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 10px;
}
.venture p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 20px;
}
.venture__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
}
.venture--flag {
  background:
    radial-gradient(circle at top right, rgba(201,165,91,.18), transparent 55%),
    linear-gradient(135deg, #0e0e10 0%, #1c1c1f 100%);
  color: var(--white);
  border-color: rgba(201,165,91,.35);
}
.venture--flag .venture__brand { color: var(--white); }
.venture--flag p { color: #a1a1a6; }
.venture--flag .venture__tag {
  color: var(--gold-2);
  background: rgba(201,165,91,.08);
  border-color: rgba(201,165,91,.4);
}

/* ----------- FOOTER MARQUEE ----------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, #050505 0%, #0a0a0c 100%);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 60s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #8a8a8f;
  white-space: nowrap;
  padding: 8px 0;
  transition: color .3s ease, transform .3s ease;
  display: inline-flex;
  align-items: center;
  height: 32px;
}
.marquee__item:hover { color: var(--white); transform: scale(1.05); }
.marquee__item.has-logo .partner-logo {
  height: 28px;
  width: auto;
  max-width: 200px;
}
/* Real brand logo (PNG from logo.dev) — colour on both surfaces now. */
.partner-logo--real {
  object-fit: contain;
  transition: filter .3s ease, transform .3s ease, opacity .3s ease;
}
/* Marquee — keep logos in their original brand colours (with subtle desaturation at rest) */
.marquee__item .partner-logo--real {
  filter: saturate(0.85);
  opacity: 0.78;
}
.marquee__item:hover .partner-logo--real {
  filter: saturate(1.15);
  opacity: 1;
}
.partner-wall__tile .partner-logo--real {
  filter: none;
  opacity: 0.92;
}
.partner-wall__tile:hover .partner-logo--real { opacity: 1; }
.marquee__fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.marquee__fade--l { left: 0; background: linear-gradient(90deg, #050505, transparent); }
.marquee__fade--r { right: 0; background: linear-gradient(-90deg, #050505, transparent); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ----------- FOOTER SOCIALS / LEGAL ----------- */
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.footer__socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #a1a1a6;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer__socials a:hover {
  color: var(--blue-2);
  background: rgba(41,151,255,.1);
  border-color: rgba(41,151,255,.4);
  transform: translateY(-2px);
  opacity: 1;
}
.footer__socials svg { width: 16px; height: 16px; }

.footer__legal {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.footer__legal a { color: #a1a1a6; }
.footer__legal a:hover { color: var(--white); }
.footer__dot { color: #424245; }

/* ----------- REVEAL ANIMATIONS ----------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ----------- RESPONSIVE ----------- */
@media (max-width: 1024px) {
  .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ventures-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .cfi-grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .partner-wall { grid-template-columns: repeat(3, 1fr); }
  .partners-layout { grid-template-columns: 1fr; gap: 40px; }
  .partners-layout__intro { position: static; }
  .section__title--left { text-align: center; }
  .section__lede--left { text-align: center; margin-left: auto; margin-right: auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 100px 0; }
}

@media (max-width: 680px) {
  .nav__menu { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__menu.is-open {
    display: flex;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .hero { padding-top: 100px; }
  .hero__title { font-size: clamp(40px, 11vw, 64px); }
  .hero__ctas .btn { width: 100%; }

  .credstrip__inner { gap: 16px; }
  .credstrip__div { display: none; }

  .agents-grid { grid-template-columns: 1fr; gap: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .ventures-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .marquee__item { font-size: 16px; }
  .marquee__track { gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 28px; }
  .partner-wall { grid-template-columns: repeat(2, 1fr); padding: 16px; }
  .footer__cols { grid-template-columns: 1fr; gap: 24px; }
  .contact-info { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }
}

/* ----------- PRE-FOOTER HELP BANNER ----------- */
.pre-footer {
  padding: 56px 0;
  background:
    linear-gradient(90deg, rgba(41,151,255,.08), rgba(125,211,252,.04) 50%, rgba(41,151,255,.08)),
    #050507;
  border-top: 1px solid rgba(41,151,255,.18);
  border-bottom: 1px solid rgba(41,151,255,.18);
}
.pre-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.pre-footer__head {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
  margin: 0 0 4px;
}
.pre-footer__sub {
  font-size: 15px;
  color: var(--ink-2);
  margin: 0;
}

/* ----------- FOOTER CLOSING TAGLINE ----------- */
.footer__tagline {
  padding: 18px 24px 4px;
  text-align: center;
}
.footer__tagline p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin: 0;
  text-shadow: 0 0 14px rgba(41,151,255,.3);
}

/* ════════════════════════════════════════════════════════════════
   THE TRUWEALTH OPERATING SYSTEM — vertical-stack layers
   Three layers reveal sequentially on scroll (Construct first as the
   foundation, then Formulate, then Innovate at the top).
   ════════════════════════════════════════════════════════════════ */

.os-stack {
  position: relative;
  margin: 56px auto 0;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  perspective: 1200px;
  perspective-origin: center bottom;
}

.os-layer {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr 250px;
  gap: 28px;
  align-items: center;
  padding: 30px 36px;
  background: linear-gradient(135deg, var(--card) 0%, var(--card-2) 100%);
  border: 1px solid rgba(255,255,255,.07);
  margin-top: -1px;        /* layers visually connect into a stack */
  /* Default hidden / pre-reveal state */
  opacity: 0;
  transform: translateY(60px) rotateX(12deg);
  transform-origin: center bottom;
  transition:
    opacity .9s cubic-bezier(0.22, 1, 0.36, 1),
    transform .9s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .8s ease,
    border-color .6s ease;
  isolation: isolate;
}

/* Stack rounding — the visual top corners belong to the visually-top layer
   (in DOM order: Innovate is first, so it gets the rounded top). */
.os-stack > .os-layer:first-child {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.os-stack > .os-layer:last-child {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  border-bottom-width: 2px;
  border-bottom-color: rgba(255,255,255,.14);
  /* Foundation gets a subtle ground shadow */
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}

/* Per-layer accents — Innovate brightest, Construct grounded */
.os-layer--innovate {
  background:
    radial-gradient(circle at top right, rgba(125,211,252,.18), transparent 50%),
    linear-gradient(135deg, rgba(41,151,255,.16) 0%, rgba(20,20,23,.95) 100%);
  border-color: rgba(125,211,252,.4);
}
.os-layer--formulate {
  background: linear-gradient(135deg, rgba(41,151,255,.10) 0%, rgba(20,20,23,.92) 100%);
  border-color: rgba(41,151,255,.3);
}
.os-layer--construct {
  background: linear-gradient(135deg, var(--card) 0%, var(--card-2) 100%);
  border-color: rgba(255,255,255,.08);
}

/* Reveal state — set by JS once the section enters the viewport */
.os-layer.is-in {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}
.os-layer.is-in.os-layer--innovate {
  box-shadow:
    0 0 0 1px rgba(125,211,252,.55),
    0 0 70px rgba(41,151,255,.42),
    0 0 140px rgba(125,211,252,.18),
    inset 0 0 30px rgba(125,211,252,.08);
}
.os-layer.is-in.os-layer--formulate {
  box-shadow:
    0 0 0 1px rgba(41,151,255,.45),
    0 0 50px rgba(41,151,255,.28),
    0 14px 30px rgba(0,0,0,.3);
}
.os-layer.is-in.os-layer--construct {
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 30px 60px rgba(0,0,0,.45);
}

/* Layer letter badge */
.os-layer__letter {
  font-size: 84px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.85;
  color: var(--blue-2);
  text-shadow:
    0 0 30px rgba(41,151,255,.55),
    0 0 60px rgba(125,211,252,.25);
  text-align: center;
  font-family: var(--font);
}
.os-layer--construct .os-layer__letter { color: var(--white); text-shadow: 0 0 24px rgba(255,255,255,.15); }
.os-layer--formulate .os-layer__letter { color: var(--blue); }
.os-layer--innovate  .os-layer__letter { color: var(--blue-2); }

/* Layer content */
.os-layer__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.os-layer--innovate .os-layer__tag { color: var(--blue-2); }
.os-layer--formulate .os-layer__tag { color: var(--blue); }

.os-layer__content h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 10px;
}
.os-layer__content p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* Outcome panel (right-aligned punch line) */
.os-layer__close {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-2);
  letter-spacing: -0.005em;
  line-height: 1.45;
  padding: 14px 0 14px 22px;
  border-left: 2px solid rgba(125,211,252,.3);
}
.os-layer__close-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ─── Integrated CTA card (replaces the standalone "unfair advantage" banner) ─── */
.os-cta {
  position: relative;
  margin: 80px auto 0;
  max-width: 760px;
  text-align: center;
  padding: 56px 36px;
  background:
    linear-gradient(135deg, rgba(41,151,255,.10) 0%, rgba(20,20,23,.95) 100%);
  border: 1px solid rgba(41,151,255,.45);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(125,211,252,.15),
    0 30px 60px rgba(0,0,0,.4);
  isolation: isolate;
}
.os-cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(125,211,252,.25), transparent 60%),
    radial-gradient(circle at 30% 110%, rgba(41,151,255,.18), transparent 55%);
  z-index: -1;
  animation: osCtaGlow 6s ease-in-out infinite;
}
@keyframes osCtaGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
.os-cta__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 14px;
}
.os-cta__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 14px;
  text-shadow: 0 0 30px rgba(41,151,255,.25);
}
.os-cta__sub {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 36px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.02em;
  line-height: 1.25;
  animation: ctaSubPulse 1.9s ease-in-out infinite;
}
@keyframes ctaSubPulse {
  0%, 100% {
    opacity: 0.9;
    text-shadow:
      0 0 22px rgba(255,255,255,.6),
      0 0 50px rgba(125,211,252,.32);
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 50px rgba(255,255,255,1),
      0 0 110px rgba(255,255,255,.7),
      0 0 180px rgba(125,211,252,.65),
      0 0 260px rgba(41,151,255,.4);
  }
}
.os-cta__btn { font-size: 15.5px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .os-layer {
    grid-template-columns: 80px 1fr;
    gap: 22px;
    padding: 26px 24px;
  }
  .os-layer__letter { font-size: 64px; }
  .os-layer__close {
    grid-column: 1 / -1;
    padding: 14px 0 0;
    margin-top: 8px;
    border-left: 0;
    border-top: 1px solid rgba(125,211,252,.18);
  }
  .os-cta { padding: 44px 24px; }
}
@media (max-width: 600px) {
  .os-layer {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    padding: 24px 20px;
  }
  .os-layer__close { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .os-layer {
    opacity: 1;
    transform: none;
    transition: box-shadow .3s ease;
  }
  .os-cta__glow { animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   ELECTRIC-WHITE PULSE FRAME — applied to the services carousel
   and the partner-wall connector grid for a unified animated edge.
   ════════════════════════════════════════════════════════════════ */
.services-carousel,
.partner-wall {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(255,255,255,0.28);
  background:
    radial-gradient(ellipse at top, rgba(125,211,252,.04), transparent 60%),
    rgba(20,20,23,0.4);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.1),
    0 0 30px rgba(255,255,255,.12);
  animation: ewPulseFrame 3.2s ease-in-out infinite;
}
@keyframes ewPulseFrame {
  0%, 100% {
    border-color: rgba(255,255,255,0.28);
    box-shadow:
      0 0 0 1px rgba(255,255,255,.10),
      0 0 30px rgba(255,255,255,.12),
      0 0 60px rgba(125,211,252,.08);
  }
  50% {
    border-color: rgba(255,255,255,0.65);
    box-shadow:
      0 0 0 1.5px rgba(255,255,255,.45),
      0 0 60px rgba(255,255,255,.35),
      0 0 120px rgba(125,211,252,.22);
  }
}
.services-carousel { padding: 6px; margin: 48px 0 0; }
.partner-wall { padding: 30px; }

/* Marquee on the carousel — pulse should pause on hover so users can read */
.services-carousel:hover { animation-play-state: paused; }
.partner-wall:hover { animation-play-state: paused; }

/* ════════════════════════════════════════════════════════════════
   INNOVATE LAYER — brighter, continuously pulsing white halo
   ════════════════════════════════════════════════════════════════ */
.os-layer.is-in.os-layer--innovate {
  animation: innovatePulseBright 2.8s ease-in-out infinite;
}
@keyframes innovatePulseBright {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,255,255,.55),
      0 0 80px rgba(255,255,255,.45),
      0 0 160px rgba(125,211,252,.28),
      inset 0 0 30px rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.5);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(255,255,255,.92),
      0 0 130px rgba(255,255,255,.78),
      0 0 240px rgba(125,211,252,.55),
      inset 0 0 60px rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.95);
  }
}
.os-layer--innovate .os-layer__letter {
  animation: innovateLetterGlow 2.8s ease-in-out infinite;
}
@keyframes innovateLetterGlow {
  0%, 100% {
    color: var(--blue-2);
    text-shadow: 0 0 30px rgba(255,255,255,.5), 0 0 60px rgba(125,211,252,.35);
  }
  50% {
    color: var(--white);
    text-shadow: 0 0 50px rgba(255,255,255,1), 0 0 100px rgba(125,211,252,.7);
  }
}

/* Marquee CSS overrides since carousel/wall now have padding */
.services-carousel { margin: 48px -10px 0; }
.partner-wall { margin: 0; }

/* ════════════════════════════════════════════════════════════════
   PARTNER-WALL MAGNETIC CURSOR
   Tiles tilt in 3D toward the cursor; the closest one (.is-focal)
   gets a bright electric-white border. JS-driven; CSS handles only
   the smooth transitions and focal state.
   ════════════════════════════════════════════════════════════════ */
.partner-wall__tile {
  /* Smooth easing for both magnetic tilt and snap-back */
  transition:
    transform .22s cubic-bezier(0.22, 1, 0.36, 1),
    border-color .25s ease,
    box-shadow .35s ease,
    background .25s ease;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Focal tile — closest to the cursor gets the brightest white border.
   Skips application during a flip so the flip animation stays clean. */
.partner-wall__tile.is-focal:not(.is-flipping) {
  border-color: rgba(255, 255, 255, 0.95);
  background: #1c1c1f;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.75),
    0 0 32px rgba(255, 255, 255, 0.42),
    0 0 64px rgba(125, 211, 252, 0.28),
    0 18px 32px rgba(0, 0, 0, 0.5);
  z-index: 3;
}

/* Pump up the partner-wall name in the focal state */
.partner-wall__tile.is-focal:not(.is-flipping) .partner-wall__name {
  color: var(--white);
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

/* If the tile content includes a real logo, brighten it */
.partner-wall__tile.is-focal:not(.is-flipping) .partner-logo--real {
  opacity: 1;
  filter: brightness(1.12) saturate(1.05);
}

/* ════════════════════════════════════════════════════════════════
   AGENT-CARD PROP BADGES — role-specific icons in the corner of
   each agent's avatar, coloured to match the agent's eye gradient.
   ════════════════════════════════════════════════════════════════ */
.agent-card { position: relative; }
.agent-card__avatar { position: relative; }

.agent-card__prop {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #1c1c1f 0%, #050507 100%);
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 16px currentColor,
    0 0 0 1px rgba(0,0,0,.6),
    inset 0 0 8px rgba(0,0,0,.4);
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s ease;
  z-index: 2;
}
.agent-card__prop svg {
  width: 18px;
  height: 18px;
  color: currentColor;
  filter: drop-shadow(0 0 4px currentColor);
}
.agent-card:hover .agent-card__prop {
  transform: scale(1.12) rotate(-5deg);
  box-shadow:
    0 0 28px currentColor,
    0 0 0 1px rgba(0,0,0,.6),
    inset 0 0 12px rgba(0,0,0,.4);
}

/* Per-agent prop colour — matches the agent's eye gradient */
.agent-card__prop[data-prop="procurement"] { color: #2997ff; }   /* electric blue */
.agent-card__prop[data-prop="sales"]       { color: #34d399; }   /* emerald */
.agent-card__prop[data-prop="finance"]     { color: #fbbf24; }   /* gold */
.agent-card__prop[data-prop="pa"]          { color: #c084fc; }   /* purple */
.agent-card__prop[data-prop="compliance"]  { color: #22d3ee; }   /* cyan */
.agent-card__prop[data-prop="itops"]       { color: #fb7185; }   /* coral */

/* ════════════════════════════════════════════════════════════════
   CHATBOT — message thread, input, send button, typing indicator
   ════════════════════════════════════════════════════════════════ */
.chatbot__thread {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(41,151,255,.3) transparent;
}
.chatbot__thread::-webkit-scrollbar { width: 6px; }
.chatbot__thread::-webkit-scrollbar-thumb {
  background: rgba(41,151,255,.3);
  border-radius: 3px;
}
.chatbot__bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: chatBubbleIn .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.chatbot__bubble p { margin: 0; }
.chatbot__bubble--bot {
  align-self: flex-start;
  background: rgba(41,151,255,.10);
  border: 1px solid rgba(41,151,255,.22);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chatbot__bubble--user {
  align-self: flex-end;
  background: rgba(255,255,255,.92);
  color: var(--black);
  font-weight: 500;
  border-bottom-right-radius: 4px;
}
@keyframes chatBubbleIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Typing indicator (3 dots) */
.chatbot__typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.chatbot__typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-2);
  animation: chatTypingDot 1.2s ease-in-out infinite;
}
.chatbot__typing span:nth-child(2) { animation-delay: .15s; }
.chatbot__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatTypingDot {
  0%, 60%, 100% { opacity: .3; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-3px); }
}

/* Input form */
.chatbot__form {
  display: flex;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 10px;
}
.chatbot__input {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 14px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.chatbot__input::placeholder { color: var(--ink-3); }
.chatbot__input:focus {
  border-color: rgba(41,151,255,.55);
  background: rgba(0,0,0,.6);
  box-shadow: 0 0 0 3px rgba(41,151,255,.12);
}
.chatbot__send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #2997ff, #1d6fde);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 0 16px rgba(41,151,255,.4);
}
.chatbot__send svg { width: 16px; height: 16px; }
.chatbot__send:hover:not(:disabled) {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 22px rgba(41,151,255,.6);
}
.chatbot__send:disabled { opacity: .5; cursor: not-allowed; }

/* When chat is "active" (user has sent a message), hide the chips for cleaner UI */
.chatbot.is-chatting .chatbot__chips { display: none; }
.chatbot.is-chatting .chatbot__cta { display: none; }
.chatbot.is-chatting .chatbot__footer { font-size: 11px; opacity: .7; margin-top: 4px; }
