/* ============================================================
   MITHRA 2026 — Home page styles
   ============================================================ */
.ic { display: inline-flex; align-items: center; justify-content: center; }
.ic svg { width: 100%; height: 100%; }

/* Make whole-card links keep card styling, not link styling */
a.card { display: block; color: var(--ink); text-decoration: none; }
a.card h3, a.card p { color: inherit; }
a.card p { color: var(--slate); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px,8vw,104px) 0 clamp(72px,9vw,120px);
  background:
    radial-gradient(46% 50% at 16% 4%, rgba(58,107,255,.62), transparent 60%),
    radial-gradient(44% 48% at 64% 2%, rgba(34,211,255,.58), transparent 62%),
    radial-gradient(52% 56% at 92% 50%, rgba(138,47,240,.62), transparent 60%),
    radial-gradient(40% 46% at 58% 102%, rgba(34,200,210,.46), transparent 62%),
    radial-gradient(34% 40% at 86% 92%, rgba(226,107,255,.40), transparent 64%),
    radial-gradient(125% 130% at 80% -12%, #0c34b8 0%, var(--deep-ocean) 48%, var(--deep-ocean-2) 100%);
}
/* ink-in-water — neon fields warped by fractal-noise turbulence (SVG filters), drifting + screen-blended over the deep base */
.hero-fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-fx-defs { position: absolute; width: 0; height: 0; }
.hero-ink {
  position: absolute; inset: -30%; mix-blend-mode: screen; will-change: transform; transform: translateZ(0); backface-visibility: hidden;
  background:
    radial-gradient(33% 40% at 22% 16%, rgba(58,107,255,.92) 0%, rgba(58,107,255,.66) 20%, transparent 55%),
    radial-gradient(30% 36% at 66% 8%, rgba(34,211,255,.88) 0%, rgba(34,211,255,.6) 18%, transparent 55%),
    radial-gradient(40% 46% at 90% 56%, rgba(138,47,240,.88) 0%, rgba(138,47,240,.6) 22%, transparent 56%),
    radial-gradient(30% 36% at 56% 98%, rgba(34,200,210,.72) 0%, transparent 56%),
    radial-gradient(26% 32% at 84% 92%, rgba(226,107,255,.6) 0%, transparent 58%);
  filter: url(#inkWarp);
  animation: inkA 42s cubic-bezier(0.45,0,0.55,1) infinite alternate;
}
.hero-ink--fine {
  inset: -28%; will-change: transform; transform: translateZ(0); backface-visibility: hidden;
  background:
    radial-gradient(28% 34% at 72% 30%, rgba(34,211,255,.7) 0%, transparent 52%),
    radial-gradient(26% 32% at 26% 82%, rgba(120,70,255,.62) 0%, transparent 54%),
    radial-gradient(22% 28% at 92% 16%, rgba(58,140,255,.6) 0%, transparent 54%),
    radial-gradient(20% 26% at 46% 54%, rgba(60,230,212,.5) 0%, transparent 56%);
  filter: url(#inkWarpFine);
  animation: inkB 33s cubic-bezier(0.45,0,0.55,1) infinite alternate;
}
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,17,74,.74) 0%, rgba(0,17,74,.34) 32%, rgba(0,17,74,0) 56%),
    linear-gradient(0deg, rgba(0,12,52,.5) 0%, rgba(0,12,52,0) 32%);
}
@keyframes inkA {
  0%   { transform: translate3d(0,0,0) scale(1) rotate(0deg); }
  33%  { transform: translate3d(-3%,2%,0) scale(1.07) rotate(3deg); }
  66%  { transform: translate3d(2%,-2%,0) scale(1.1) rotate(-2deg); }
  100% { transform: translate3d(-4%,3%,0) scale(1.14) rotate(6deg); }
}
@keyframes inkB {
  0%   { transform: translate3d(0,0,0) scale(1.06) rotate(0deg); }
  33%  { transform: translate3d(4%,-3%,0) scale(1.13) rotate(-4deg); }
  66%  { transform: translate3d(-3%,2%,0) scale(1.1) rotate(3deg); }
  100% { transform: translate3d(5%,-4%,0) scale(1.2) rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce){ .hero-ink, .hero-ink--fine { animation: none; } }
.hero-tiles {
  position: absolute; inset: 0 0 0 auto; width: 30%;
  background-image: url('../assets/bg-dotgrid.png'); background-size: 26px; background-position: right center;
  opacity: .55; -webkit-mask-image: linear-gradient(90deg, transparent, #000 65%); mask-image: linear-gradient(90deg, transparent, #000 65%);
  pointer-events: none;
}
@media (max-width: 900px){ .hero-tiles { display: none; } }
/* interactive cursor-gravity dot field (replaces the static dot PNG in the hero) */
.hero-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
@media (max-width: 900px){ .hero-dots { display: none; } }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
@media (max-width: 980px){ .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero-copy .h1 { color: #fff; }
.hero-trust { margin-top: 28px; font-size: 14.5px; color: rgba(255,255,255,.62); max-width: 440px; }
.hero-trust strong { color: #fff; font-weight: 600; }

.hero-visual { position: relative; }
.hero-visual .ui-frame { transform: perspective(1600px) rotateY(-6deg) rotateX(1.5deg); transform-origin: left center; }
@media (max-width: 980px){ .hero-visual .ui-frame { transform: none; } }
.hero-kpi { position: absolute; bottom: -34px; left: -28px; z-index: 3; animation: floaty 5s ease-in-out infinite; }
@media (max-width: 980px){ .hero-kpi { left: 8px; bottom: -28px; } }
@media (max-width: 480px){ .hero-kpi { display: none; } }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }
@media (prefers-reduced-motion: reduce){ .hero-kpi { animation: none; } }
.kpi-ic .ic { width: 20px; height: 20px; }

/* ---------- LOGO WALL ---------- */
.logo-head { text-align: center; font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }
.logo-sub { text-align: center; max-width: 720px; margin: 30px auto 0; color: var(--slate); font-size: 15.5px; min-height: 1.4em; transition: color .2s; }
/* story logos (have a case study) are clickable */
.marquee-track a.ml-story { display: inline-flex; align-items: center; position: relative; }
.marquee-track a.ml-story::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -9px; height: 2px; background: var(--really-blue); border-radius: 2px; opacity: 0; transition: opacity .2s; }
.marquee-track a.ml-story:hover::after { opacity: 1; }
.marquee-track a.ml-story:hover img { opacity: 1; filter: grayscale(0); }
.logo-sub.is-impact { color: var(--ink); }
.logo-sub.is-impact b { font-family: var(--font-head); color: var(--ink); }
.logo-sub .ls-stat { font-family: var(--font-head); font-weight: 700; color: var(--really-blue); }
.marquee-track span.ml-stat { display: inline-flex; align-items: center; cursor: default; }

/* story logos with always-on stat: stat above, logo, caption below */
.marquee-track .ml-story.has-stat { flex-direction: column; justify-content: center; gap: 6px; text-align: center; width: 150px; height: 96px; }
.marquee-track .ml-story.has-stat::after { bottom: -6px; }
.marquee-track .ml-story.has-stat img { width: 104px; height: 30px; opacity: .78; filter: grayscale(1); }
.marquee-track .ml-story.has-stat:hover img { opacity: 1; filter: grayscale(0); }
.marquee-track .ms-stat { font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1; letter-spacing: -.02em; color: var(--really-blue); }
.marquee-track .ms-cap { font-size: 11px; line-height: 1.3; color: var(--slate); max-width: 150px; }
.logo-sub.is-impact a { display: inline-flex; align-items: center; gap: 5px; color: var(--really-blue); font-weight: 600; white-space: nowrap; }
.logo-sub.is-impact a .ic { width: 15px; height: 15px; display: inline-flex; }
.logo-sub.is-impact a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- IMPACT BAND ---------- */
.impact-band { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.impact-col { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 22px 32px; text-align: center; position: relative; transition: background .2s var(--ease); }
.impact-col + .impact-col::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--soft-border); }
.impact-col img { height: 26px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .5; transition: filter .2s, opacity .2s; }
a.impact-col:hover { background: var(--off-white); }
a.impact-col:hover img { filter: grayscale(0); opacity: 1; }
.impact-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.impact-cap { font-size: 13.5px; color: var(--slate); max-width: 190px; line-height: 1.42; }
@media (max-width: 760px){
  .impact-band { grid-template-columns: repeat(2, 1fr); }
  .impact-col:nth-child(odd)::before { display: none; }
  .impact-col:nth-child(n+3) { border-top: 1px solid var(--soft-border); }
}

/* ---------- AWARDS ---------- */
.awards-row { display: flex; align-items: center; justify-content: center; gap: clamp(28px,5vw,72px); flex-wrap: wrap; }
.award { display: flex; align-items: center; gap: 16px; max-width: 320px; }
.award img { height: 128px; width: auto; object-fit: contain; flex: 0 0 auto; }
.award span { font-size: 14px; color: var(--slate); line-height: 1.4; }
.award strong { color: var(--ink); font-weight: 600; }

/* ---------- AGENT CARDS ---------- */
.agent-card {
  background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-lg);
  padding: 38px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.agent-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.agent-name { font-size: clamp(34px,4vw,46px); margin: 18px 0 6px; letter-spacing: -.03em; }
.agent-head { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--ink); line-height: 1.25; }
.agent-body { color: var(--slate); margin-top: 14px; font-size: 16px; }
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 24px 0 8px; }
.cap-list li { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.cap-list .ic { width: 18px; height: 18px; color: var(--green); flex: 0 0 auto; }
.cap-list.pulse-list .ic { color: var(--green); }
.agent-visual { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--soft-border); background: var(--off-white); }
.agent-visual img { width: 100%; display: block; }
.agent-card .arrow-link { margin-top: auto; padding-top: 20px; }
@media (max-width: 560px){ .cap-list { grid-template-columns: 1fr; } .agent-card { padding: 28px; } }

/* ---------- AGENT ROSTER (standalone-agent concept) ---------- */
.agent-id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.agent-id .agent-name { margin: 3px 0 0; font-size: clamp(30px,3.4vw,40px); }
.agent-orb, .sub-orb {
  border-radius: 50%; flex: 0 0 auto; position: relative; isolation: isolate; overflow: hidden;
  --c4: var(--c1); --c5: var(--c2);
  background:
    radial-gradient(70% 76% at 30% 28%, var(--c1) 0%, var(--c1) 28%, transparent 74%),
    radial-gradient(74% 80% at 72% 26%, var(--c4) 0%, var(--c4) 28%, transparent 76%),
    radial-gradient(82% 88% at 70% 74%, var(--c3) 0%, var(--c3) 32%, transparent 78%),
    radial-gradient(72% 78% at 28% 73%, var(--c5) 0%, var(--c5) 28%, transparent 76%),
    radial-gradient(110% 110% at 50% 50%, var(--c2) 0%, var(--c3) 100%);
}
/* full neon mesh, blurred so edges melt while bold colour zones stay distinct — parent circle crops it */
.agent-orb::before, .sub-orb::before {
  content: ""; position: absolute; inset: -28%; border-radius: 50%;
  background:
    radial-gradient(46% 46% at 32% 30%, var(--c1) 0%, var(--c1) 32%, transparent 72%),
    radial-gradient(48% 48% at 70% 28%, var(--c4) 0%, var(--c4) 32%, transparent 74%),
    radial-gradient(54% 54% at 68% 72%, var(--c3) 0%, var(--c3) 36%, transparent 76%),
    radial-gradient(46% 46% at 30% 72%, var(--c5) 0%, var(--c5) 32%, transparent 74%),
    radial-gradient(44% 44% at 50% 50%, var(--c2) 0%, transparent 68%);
  filter: blur(6px) saturate(1.32) var(--ink, url(#orbInk1));
  animation: orbSwirl var(--swirl, 22s) linear infinite;
  animation-direction: var(--swirl-dir, normal);
}
.sub-orb::before { filter: blur(3.4px) saturate(1.35) var(--ink, url(#orbInk1)); inset: -26%; }
@keyframes orbSwirl { to { transform: rotate(360deg); } }
.agent-orb { width: 56px; height: 56px; box-shadow: 0 7px 18px rgba(20,30,80,.18); }
.sub-orb { width: 40px; height: 40px; box-shadow: 0 3px 9px rgba(20,30,80,.16); }
/* no gloss — just a whisper of edge definition so the circle reads on white */
.agent-orb::after, .sub-orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 -2px 7px rgba(20,30,80,.08);
}
@media (prefers-reduced-motion: reduce){ .agent-orb::before, .sub-orb::before { animation: none; } }
/* Each orb mixes 4-5 CONTRASTING hues (like the amber benchmark) so the
   colour zones stay distinct instead of melting into one flat tone. Each
   keeps a recognisable lead hue + companions spread across the wheel. */
/* Per-orb: contrasting palette + a distinct turbulence signature (--ink) and
   swirl timing (--swirl / --swirl-dir) so every blob's pattern reads as unique. */
/* Atlas (parent) — NOT mono. A swirl of its four specialists' dominant hues:
   classification orange, taxonomy azure, normalization violet, enrichment magenta. */
.orb-atlas  { --c1:#ff8a3a; --c2:#8a3ce0; --c3:#7a22f0; --c4:#e01f8e; --c5:#1f6ef0; --ink:url(#orbInk8); --swirl:24s; }
/* Pulse (parent) — NOT mono. A swirl of four roster hues:
   benchmark gold, tail spend lime, maverick teal, ppv indigo. */
.orb-pulse  { --c1:#f5b41a; --c2:#1f9e7a; --c3:#0fa8b2; --c4:#6fcf24; --c5:#2e3ae0; --ink:url(#orbInk9); --swirl:24s; --swirl-dir:reverse; }
.orb-blue   { --c1:#bce0ff; --c2:#2f7bff; --c3:#6a1fe0; --c4:#2fe6c0; --c5:#ffb84a; --ink:url(#orbInk2); --swirl:24s; }
.orb-violet { --c1:#ecd2ff; --c2:#9a3fff; --c3:#4a1fe0; --c4:#ff6bc8; --c5:#4ad6ff; --ink:url(#orbInk3); --swirl:19s; --swirl-dir:reverse; }
.orb-cyan   { --c1:#c9fbff; --c2:#1fc8db; --c3:#1f5fe0; --c4:#5cff9c; --c5:#ff7ad6; --ink:url(#orbInk5); --swirl:28s; }
.orb-magenta{ --c1:#ffd2fb; --c2:#ec1fb0; --c3:#7a1fe0; --c4:#ff8a4a; --c5:#4ad6ff; --ink:url(#orbInk6); --swirl:21s; --swirl-dir:reverse; }
.orb-green  { --c1:#c6ffcf; --c2:#2bbf5f; --c3:#0a8f7a; --c4:#7ad0ff; --c5:#ffb066; --ink:url(#orbInk3); --swirl:25s; }
.orb-slate  { --c1:#eef1f8; --c2:#8aa0c8; --c3:#4a5a7a; --c4:#b6a0ff; --c5:#7ad6e6; --ink:url(#orbInk5); --swirl:18s; --swirl-dir:reverse; }
.orb-amber  { --c1:#ffeec0; --c2:#fcc04a; --c3:#e8851f; --c4:#9ac6ff; --c5:#f0a0e6; --ink:url(#orbInk1); --swirl:27s; }
.orb-red    { --c1:#ffd6d6; --c2:#fb4f6b; --c3:#c01f9d; --c4:#ff9a3f; --c5:#6b8aff; --ink:url(#orbInk4); --swirl:20s; }
.orb-cobalt { --c1:#c2cfff; --c2:#2f3ee0; --c3:#1f8f9d; --c4:#ff8a5c; --c5:#ffd24a; --ink:url(#orbInk5); --swirl:23s; --swirl-dir:reverse; }
.orb-purple { --c1:#ffd6f0; --c2:#c64aff; --c3:#7a1f9d; --c4:#ffcf4a; --c5:#4ad6b6; --ink:url(#orbInk6); --swirl:30s; }
.orb-lime   { --c1:#f0ffc2; --c2:#9ed13f; --c3:#1f8f6f; --c4:#b07aff; --c5:#ff9a3f; --ink:url(#orbInk2); --swirl:21s; }
.orb-teal   { --c1:#b6fff2; --c2:#0fbfa6; --c3:#0a5f9d; --c4:#c46bff; --c5:#ff6bb0; --ink:url(#orbInk3); --swirl:25s; }
/* Solar plasma — hot yellow-white core, vivid orange body, deep maroon
   filaments, golden rim, with one cool-blue corona spot like the limb of the sun. */
.orb-sun    { --c1:#fff1b0; --c2:#ff6a16; --c3:#8e1a00; --c4:#ffb22e; --c5:#8fd0ff; --ink:url(#orbInk7); --swirl:16s; }
/* Near-mono dominance: every stop is a tint/shade of ONE hue. */
/* Atlas roster — each sub-agent its own dominant hue (matches reference) */
.orb-class  { --c1:#ffc98a; --c2:#f06012; --c3:#5e1d02; --c4:#ff8a3a; --c5:#ffb070; --ink:url(#orbInk7); --swirl:16s; }           /* orange */
.orb-norm   { --c1:#c9a6ff; --c2:#7a22f0; --c3:#280860; --c4:#9a44ff; --c5:#b87aff; --ink:url(#orbInk8); --swirl:18s; }           /* violet */
.orb-tax    { --c1:#a6cdff; --c2:#1f6ef0; --c3:#06205e; --c4:#4a92ff; --c5:#7ab0ff; --ink:url(#orbInk7); --swirl:20s; --swirl-dir:reverse; } /* azure blue */
.orb-enrich { --c1:#ffaee0; --c2:#e01f8e; --c3:#5e0640; --c4:#ff4ab8; --c5:#ff7ad0; --ink:url(#orbInk9); --swirl:17s; }           /* magenta */
.orb-recon  { --c1:#9ae6c2; --c2:#10a86a; --c3:#063e2a; --c4:#3fd494; --c5:#6ee0b0; --ink:url(#orbInk8); --swirl:24s; }           /* emerald */
.orb-review { --c1:#c2cee0; --c2:#5f7596; --c3:#222f44; --c4:#8a9cc0; --c5:#a6b4cc; --ink:url(#orbInk5); --swirl:18s; --swirl-dir:reverse; } /* slate */
/* Pulse roster — each sub-agent its own dominant hue (matches reference) */
.orb-tail     { --c1:#cdf09a; --c2:#5fbf1f; --c3:#1d4d06; --c4:#92e04a; --c5:#aee07a; --ink:url(#orbInk7); --swirl:18s; }            /* lime   */
.orb-maverick { --c1:#a6f0ea; --c2:#0fa8b2; --c3:#063e46; --c4:#3fd4d0; --c5:#6ee0dc; --ink:url(#orbInk8); --swirl:20s; --swirl-dir:reverse; } /* teal   */
.orb-bench    { --c1:#ffe19a; --c2:#e09a0f; --c3:#5e3c04; --c4:#ffc23a; --c5:#ffd06e; --ink:url(#orbInk9); --swirl:17s; }            /* gold   */
.orb-ppv      { --c1:#aeb8ff; --c2:#2e3ae0; --c3:#0a1252; --c4:#5f6cff; --c5:#8a94ff; --ink:url(#orbInk7); --swirl:21s; --swirl-dir:reverse; } /* indigo */
.orb-leak     { --c1:#ffaeb8; --c2:#e01f3a; --c3:#5e0612; --c4:#ff4a60; --c5:#ff7a8a; --ink:url(#orbInk8); --swirl:19s; }            /* crimson*/
.orb-rebate   { --c1:#e6aeff; --c2:#9a22e0; --c3:#3a0860; --c4:#c04aff; --c5:#d27aff; --ink:url(#orbInk9); --swirl:22s; --swirl-dir:reverse; } /* purple */
.roster-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); display: block; margin: 2px 0 6px; }
.agent-roster { margin-top: 6px; display: grid; gap: 0; }
.sub-agent { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--soft-border-2); }
.sub-agent b { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; color: var(--ink); display: block; line-height: 1.25; }
.sub-agent .sa-desc { display: block; margin-top: 3px; font-size: 12.5px; color: var(--slate); line-height: 1.4; }

/* ---------- INTEGRATIONS GRID ---------- */
.integ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.integ-cell {
  aspect-ratio: 1.5/1; background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius);
  display: grid; place-items: center; padding: 16px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.integ-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--cool-water); }
.integ-cell img { max-height: 68px; max-width: 86%; width: auto; object-fit: contain; }
/* SAP is a solid rectangle — present it inside a circular white badge so it matches the Excel/Salesforce circle marks */
.integ-cell img[alt="SAP"] { width: 72px; height: 72px; max-height: 72px; border-radius: 50%; background: #fff; border: 1px solid var(--soft-border); padding: 13px; box-sizing: border-box; object-fit: contain; }
.integ-cell .integ-txt { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--deep-ocean); letter-spacing: -.02em; }
@media (max-width: 560px){ .integ-grid { grid-template-columns: repeat(2,1fr); } }

/* 6-up logo wall (integrations page) — steps down cleanly on small screens */
.integ-grid-6 { grid-template-columns: repeat(6,1fr); }
@media (max-width: 1040px){ .integ-grid-6 { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 720px){ .integ-grid-6 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 460px){ .integ-grid-6 { grid-template-columns: repeat(2,1fr); } }

/* ---------- QUOTE CARDS ---------- */
.quote-card {
  background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-lg);
  padding: 32px; margin: 0; display: flex; flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.quote-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.quote-card .q-logo { height: 30px; width: auto; object-fit: contain; margin-bottom: 22px; align-self: flex-start; }
.quote-card blockquote { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 19px; line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
.quote-card figcaption { display: flex; align-items: center; gap: 13px; margin-top: 24px; }
.quote-card figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-card figcaption span { display: flex; flex-direction: column; font-size: 13.5px; color: var(--slate); line-height: 1.35; }
.quote-card figcaption b { font-family: var(--font-head); color: var(--ink); font-size: 15px; }
.quote-card .q-link { margin-top: 20px; font-size: 14.5px; }

/* ---------- VIDEO TESTIMONIAL CARDS ---------- */
.video-card {
  background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-lg);
  padding: 16px; margin: 0; display: flex; flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.video-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden; background: #001D6C;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 0 6px 6px; }
.video-card figcaption > img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.video-card figcaption span { display: flex; flex-direction: column; font-size: 13px; color: var(--slate); line-height: 1.32; min-width: 0; }
.video-card figcaption b { font-family: var(--font-head); color: var(--ink); font-size: 15px; }
.video-card figcaption img.vc-logo { flex: 0 0 auto; height: 26px; width: auto; max-width: 160px; margin-left: auto; opacity: .82; border-radius: 0; object-fit: contain; }
.video-card .vc-quote {
  margin: 22px 0 0; padding: 0 6px;
  font-family: var(--font-head); font-weight: 500;
  font-size: 19px; line-height: 1.42; letter-spacing: -.012em;
  color: var(--ink); text-wrap: pretty;
}
.video-card .vc-proof {
  margin: auto 6px 4px; padding-top: 18px;
  display: flex; align-items: baseline; gap: 14px;
  border-top: 1px solid var(--soft-border-2);
}
.video-card .vc-stat {
  flex: 0 0 auto; font-family: var(--font-head); font-weight: 600;
  font-size: 26px; line-height: 1; letter-spacing: -.02em;
  color: var(--really-blue); white-space: nowrap;
}
.video-card .vc-stat-cap { font-size: 12.5px; line-height: 1.4; color: var(--slate); text-wrap: pretty; }
.video-card .vc-stat-cap b { color: var(--ink); font-weight: 600; }

/* ---------- ADVISOR CARDS ---------- */
.advisor-card figcaption { margin-top: 26px; gap: 16px; }
.advisor-card figcaption img { width: 76px; height: 76px; border: 3px solid #fff; box-shadow: var(--shadow-md); }
.advisor-card figcaption span { font-size: 14.5px; }
.advisor-card figcaption b { font-size: 17px; }

/* ---------- RESOURCE CARDS ---------- */
.res-card { background: #fff; border: 1px solid var(--soft-border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.res-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.res-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; }
/* thumbnail system: format chip (TL) + brand/icon (TR) + outcome stat (BL) + optional dot texture */
.res-thumb--spar { background: linear-gradient(135deg,#001D6C,#0F62FE); }
.res-thumb--guide { background: linear-gradient(135deg,#E8F0FF,#CFE0FF); }
.res-thumb--mc { background: var(--deep-ocean); }
.res-thumb-deco { position: absolute; inset: 0; background-image: url('../assets/bg-dotgrid.png'); background-size: 42px; opacity: .38; -webkit-mask-image: linear-gradient(135deg, transparent 30%, #000); mask-image: linear-gradient(135deg, transparent 30%, #000); pointer-events: none; }
.res-thumb-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.res-thumb-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: var(--radius-pill); }
.res-thumb-tag.on-dark { background: rgba(255,255,255,.16); color: #fff; }
.res-thumb-tag.on-light { background: #fff; color: var(--really-blue); border: 1px solid rgba(15,98,254,.18); }
.res-thumb-brand { height: 28px; width: auto; filter: brightness(0) invert(1); flex: 0 0 auto; transition: transform .25s var(--ease); }
/* full-colour logo on a white chip (for marks that aren't transparent white) */
.res-thumb-brand--chip { filter: none; height: 26px; background: #fff; border-radius: 6px; padding: 5px 8px; box-sizing: content-box; box-shadow: var(--shadow-xs); }
.res-thumb-icbtn { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: 0 0 auto; transition: transform .25s var(--ease); }
.res-thumb-icbtn .ic { width: 24px; height: 24px; }
.res-thumb-icbtn--guide { background: #fff; color: var(--really-blue); box-shadow: var(--shadow-sm); }
.res-thumb-icbtn--mc { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.res-card:hover .res-thumb-brand, .res-card:hover .res-thumb-icbtn { transform: translateY(-2px); }
.res-thumb-stat { position: relative; z-index: 1; }
.res-thumb-stat b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.025em; }
.res-thumb-stat span { display: block; font-size: 11.5px; font-weight: 600; margin-top: 5px; opacity: .9; }
.res-thumb--spar .res-thumb-stat, .res-thumb--mc .res-thumb-stat { color: #fff; }
.res-thumb--guide .res-thumb-stat { color: var(--deep-ocean); }
.res-thumb-title { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--deep-ocean); text-align: center; line-height: 1.15; letter-spacing: -.02em; }
.res-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.res-kind { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--cool-water); }
.res-body h3 { font-size: 19px; margin: 10px 0 20px; line-height: 1.25; }
.res-body .arrow-link { margin-top: auto; font-size: 14.5px; }

/* dark section tile edge */
.dark-tile-edge { position: relative; overflow: hidden; }
.dark-tile-edge::before { content:""; position:absolute; inset:0 0 0 60%; background-image:url('../assets/bg-dotgrid.png'); background-size:44px; opacity:.5; -webkit-mask-image:linear-gradient(90deg,transparent,#000 70%); mask-image:linear-gradient(90deg,transparent,#000 70%); pointer-events:none; }
.dark-tile-edge .container { position: relative; z-index: 1; }

.final-cta { position: relative; overflow: hidden; }
