/* ============================================================
   MITHRA 2026 — Home page styles
   ============================================================ */
.ic { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; flex: 0 0 auto; }
.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 ---------- */
/* 2026: flat near-black ink field. No aurora mesh, no dot grid — one restrained
   accent gradient field behind the product window + film grain. The product UI
   (Pulse chat) is the visual. */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px,8vw,104px) 0 clamp(72px,9vw,120px);
  /* Near-black field with a contained royal-blue glow blooming from the
     right side — most of the hero stays black, blue is just the accent. */
  background:
    radial-gradient(42% 50% at 76% 42%, rgba(46,86,190,.40) 0%, rgba(28,56,140,.16) 38%, transparent 64%),
    radial-gradient(90% 110% at 78% 40%, #0a163c 0%, #060d26 48%, #04081a 74%, #02050f 100%);
}
/* film grain — the only texture in the hero */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); background-size: 180px; opacity: .18;
}
/* hairline that seats the hero against the page field below */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255,255,255,.08); }
/* interactive cursor-gravity dot field (canvas sized by js/hero-dots.js) */
.hero-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
@media (max-width: 900px){ .hero-dots { opacity: .85; } }
/* full-bleed grain veil for other dark sections (kept class name from the old dot tiles) */
.hero-tiles {
  position: absolute; inset: 0;
  background-image: var(--grain); background-size: 180px;
  opacity: .14; pointer-events: 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(--accent); 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(--accent-text); }
.marquee-track span.ml-stat { display: inline-flex; align-items: center; cursor: default; }

/* story logos: "Case study" tag above, logo, stat + caption together below */
.marquee-track .ml-story.has-stat { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center; gap: 5px; text-align: center; width: 170px; height: 96px; }
.marquee-track .ml-story.has-stat .ms-tag { align-self: end; }
.marquee-track .ml-story.has-stat .ms-line { align-self: start; }
.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-tag { font-size: 11px; font-weight: 600; line-height: 1; color: var(--ink); background: var(--off-white); border: 1px solid var(--soft-border); border-radius: var(--radius-pill); padding: 4px 10px; }
.marquee-track .ms-tag-ghost { visibility: hidden; padding: 4px 0; border: 1px solid transparent; }
a.ml-story.has-stat:hover .ms-tag { background: var(--ink); border-color: var(--ink); color: #fff; }
.marquee-track .ms-line { font-size: 11.5px; line-height: 1.35; color: var(--slate); max-width: 170px; }
.marquee-track .ms-line strong { font-family: var(--font-head); font-weight: 700; color: var(--accent-text); font-size: 12.5px; letter-spacing: -.01em; }
.logo-sub.is-impact a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-text); 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(--ink); flex: 0 0 auto; }
.cap-list.pulse-list .ic { color: var(--ink); }
.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; }
.sub-orb { width: 40px; height: 40px; }
/* no gloss, no drop shadow — 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);
}
@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) — LIGHT / airy pastel swirl of its specialists. */
.orb-atlas  { --c1:#e0a187; --c2:#7bc0b4; --c3:#7db4e6; --c4:#e0c479; --c5:#c2e6de; --ink:url(#orbInk8); --swirl:24s; }  /* pale mix: classification + normalization + taxonomy + enrichment */
/* Pulse (parent) — DEEP / grounded jewel swirl of its roster. */
.orb-pulse  { --c1:#6f7a32; --c2:#a8702a; --c3:#8f3f34; --c4:#3f4f86; --c5:#b388ad; --ink:url(#orbInk9); --swirl:24s; --swirl-dir:reverse; }  /* deep mix of pulse roster */
.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) */
/* FINISH-SPLIT palette — each group spans the full hue wheel (so its 6 agents
   are distinct), groups separated by WEIGHT: Atlas = light/airy pastels,
   Pulse = deep/grounded jewels. Both subtle. */
/* --- Atlas roster: LIGHT pastels, full spectrum --- */
.orb-class  { --c1:#f4d9cb; --c2:#e0a187; --c3:#b96f52; --c4:#ecc2ac; --c5:#f0cdb9; --ink:url(#orbInk7); --swirl:16s; }           /* pale coral */
.orb-norm   { --c1:#c2e6de; --c2:#7bc0b4; --c3:#4a8d80; --c4:#a0d6cb; --c5:#b2ded5; --ink:url(#orbInk8); --swirl:18s; }           /* pale teal */
.orb-tax    { --c1:#cce4f6; --c2:#7db4e6; --c3:#4f86bc; --c4:#a6cef0; --c5:#bbd9f2; --ink:url(#orbInk7); --swirl:20s; --swirl-dir:reverse; } /* pale sky */
.orb-enrich { --c1:#f3e6bf; --c2:#e0c479; --c3:#b1924a; --c4:#ecd9a2; --c5:#f0e0b4; --ink:url(#orbInk9); --swirl:17s; }           /* pale gold */
.orb-recon  { --c1:#d2e6c6; --c2:#9cc290; --c3:#6a9460; --c4:#bcd9b0; --c5:#c8e0bf; --ink:url(#orbInk8); --swirl:24s; }           /* pale sage */
.orb-review { --c1:#e2d3ee; --c2:#b89ad0; --c3:#896aa2; --c4:#d0bce2; --c5:#d9c9ea; --ink:url(#orbInk5); --swirl:18s; --swirl-dir:reverse; } /* pale lilac */
/* --- Pulse roster: DEEP jewels, full spectrum --- */
.orb-tail     { --c1:#aeb87a; --c2:#6f7a32; --c3:#3a401a; --c4:#8a9450; --c5:#9ca866; --ink:url(#orbInk7); --swirl:18s; }            /* deep olive   */
.orb-maverick { --c1:#7fb0b4; --c2:#2f6e72; --c3:#173e42; --c4:#56908f; --c5:#6fa1a3; --ink:url(#orbInk8); --swirl:20s; --swirl-dir:reverse; } /* deep petrol */
.orb-bench    { --c1:#d3a86e; --c2:#a8702a; --c3:#5e3d14; --c4:#c08f48; --c5:#c99c5e; --ink:url(#orbInk9); --swirl:17s; }            /* deep bronze  */
.orb-ppv      { --c1:#8c97c4; --c2:#3f4f86; --c3:#222a52; --c4:#6471a8; --c5:#7886b6; --ink:url(#orbInk7); --swirl:21s; --swirl-dir:reverse; } /* deep indigo */
.orb-leak     { --c1:#cf8e80; --c2:#8f3f34; --c3:#4e1f18; --c4:#b56a5c; --c5:#c27e70; --ink:url(#orbInk8); --swirl:19s; }            /* deep maroon  */
.orb-rebate   { --c1:#b388ad; --c2:#6e3a66; --c3:#3c1f38; --c4:#945a8c; --c5:#a672a0; --ink:url(#orbInk9); --swirl:22s; --swirl-dir:reverse; } /* deep plum    */
.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, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--soft-border); border-left: 1px solid var(--soft-border); }
.integ-cell { min-width: 0; }
.integ-cell {
  aspect-ratio: 1.5/1; background: transparent; border: 0;
  border-right: 1px solid var(--soft-border); border-bottom: 1px solid var(--soft-border); border-radius: 0;
  display: grid; place-items: center; padding: 16px; transition: background .2s var(--ease);
}
.integ-cell:hover { background: rgba(11,14,20,.025); }
.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"], .integ-cell img[alt="Ariba"], .integ-cell img[alt="Coupa"], .integ-cell img[alt="Ivalua"] { 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 img[alt="Ivalua"] { padding: 7px 9px; }
.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: 36px; 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: var(--ink);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Explicit full-screen toggle overlaid on inline video embeds */
.video-frame .vframe-full {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28); background: rgba(8,14,32,.5);
  color: #fff; display: grid; place-items: center; cursor: pointer;
  opacity: 0; transition: opacity .18s var(--ease), background .16s var(--ease);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.video-frame:hover .vframe-full, .video-frame .vframe-full:focus-visible { opacity: 1; }
.video-frame .vframe-full:hover { background: rgba(8,14,32,.74); }
.video-frame .vframe-full svg { width: 17px; height: 17px; }
.video-frame .vframe-full .vff-exit { display: none; }
/* Maximized state — fills the viewport (native Fullscreen API is blocked inside
   embedded/preview frames, so this CSS overlay is the reliable path). */
.video-frame.is-max {
  position: fixed; inset: 0; z-index: 2000;
  width: 100vw; height: 100vh; aspect-ratio: auto;
  border-radius: 0; background: #000;
}
.video-frame.is-max .vframe-full { opacity: 1; top: 18px; right: 18px; }
.video-frame.is-max .vframe-full .vff-enter { display: none; }
.video-frame.is-max .vframe-full .vff-exit { display: block; }
.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(--accent-text); 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, #1A202B, var(--ink)); }
.res-thumb--guide { background: linear-gradient(135deg, #F1EEE6, #E4E0D2); }
.res-thumb--mc { background: var(--deep-ocean); }
/* imageless "article-panel" thumbnails: big centred name + dot-grid + corner icon
   (mirrors the library article tiles for a cohesive resources page) */
.res-thumb--panel { background: linear-gradient(135deg, #0b1533, #00114a); }
.res-thumb--panel.rt-cpo  { background: linear-gradient(135deg, #10204d, #25337d); }
.res-thumb--panel.rt-aop  { background: linear-gradient(135deg, #0e2a3a, #0b4a5e); }
.res-thumb--panel.rt-mag  { background: linear-gradient(135deg, #2a1140, #4d1f78); }
.res-thumb--panel.rt-scape{ background: linear-gradient(135deg, #0c2e2a, #0a4a3b); }
.res-thumb--panel::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('../assets/bg-dotgrid.png'); background-size: 34px; opacity: .16;
}
.res-thumb--panel .rt-pub {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: #fff;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1.12; letter-spacing: -.01em;
  text-align: center; padding: 0 24px;
}
.res-thumb--panel .res-ext {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.42);
  color: #fff; display: grid; place-items: center; transition: background .2s var(--ease);
}
.res-thumb--panel .res-ext .ic { width: 16px; height: 16px; }
.res-card:hover .res-thumb--panel .res-ext { background: rgba(255,255,255,.3); }
.res-thumb-deco { position: absolute; inset: 0; background-image: var(--grain); background-size: 180px; opacity: .22; -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(--ink); border: 1px solid var(--soft-border); }
.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(--ink); 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(--accent-text); }
.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; }

/* video cards in the guides grid: real cover frame + scrim + centred play */
.res-thumb.has-cover { background: #0b1533; }
.res-thumb-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .45s var(--ease); }
.res-thumb.has-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,12,32,.46) 0%, rgba(6,12,32,.08) 40%, rgba(6,12,32,.30) 64%, rgba(6,12,32,.84) 100%);
}
.res-card:hover .res-thumb-cover { transform: scale(1.045); }
/* on a cover frame the play moves to centre and grows; the corner icbtn is hidden */
.res-thumb.has-cover .res-thumb-icbtn--mc {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(11,21,51,.52); border: 1.5px solid rgba(255,255,255,.7);
  backdrop-filter: blur(2px); box-shadow: 0 6px 20px rgba(0,0,0,.32);
}
.res-thumb.has-cover .res-thumb-icbtn--mc .ic { width: 26px; height: 26px; }
.res-card:hover .res-thumb.has-cover .res-thumb-icbtn--mc { transform: translate(-50%, -50%) scale(1.08); background: rgba(11,21,51,.68); }
.res-thumb.has-cover .res-thumb-top { position: static; }
.res-thumb.has-cover .res-thumb-tag { position: relative; z-index: 2; }
.res-thumb.has-cover .res-thumb-tag.on-dark { background: rgba(8,15,38,.66); backdrop-filter: blur(3px); }
.res-thumb.has-cover .res-thumb-stat { display: none; }

/* dark section — flat near-black ink with film grain (dot grid retired) */
.dark-tile-edge { position: relative; overflow: hidden; }
/* ink wash the grain sits on */
.dark-tile-edge::after {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background: linear-gradient(180deg, #161B24 0%, #0E1219 46%, var(--ink) 100%);
}
/* film grain veil */
.dark-tile-edge::before {
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background-image: var(--grain); background-size: 180px;
  opacity: .14;
}
.dark-tile-edge .container { position: relative; z-index: 2; }

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