/* ══════════════════════════════════════════════════════════════════
   CASE STUDY PAGES — shared design system
   Used by /blog/case_studies/* pages. Dark theme by default with a
   light remap under html[data-theme="light"]. Per-client palettes are
   applied through a small inline <style> block in each page that
   redefines the --cyan* accent tokens below.
   ══════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   RESET & TOKENS
   ───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─────────────────────────────────────────────
   FONTS — self-hosted variable Raleway (latin).
   One file per style covers wght 100–900; Google static cuts removed.
   The 100 900 RANGE descriptor is what makes off-round weights (220,
   340, 560…) render exactly — ma_customfonts.css (loaded by every case
   study page) declares the same variable files but at single weights,
   which would snap 220 → 200. Roboto needs no faces here: that file
   already self-hosts the full Roboto family locally.
   unicode-range keeps latin-ext/cyrillic subsets off the wire unless
   a client name actually needs them.
   ───────────────────────────────────────────── */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/raleway/latin/Raleway-VariableFont_wght.woff2') format('woff2-variations'),
       url('/assets/fonts/raleway/latin/Raleway-VariableFont_wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/raleway/latin/Raleway-VariableFont_wght-italic.woff2') format('woff2-variations'),
       url('/assets/fonts/raleway/latin/Raleway-VariableFont_wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* Use ACSS 10px root (62.5%) like the rest of the site so shared
     header/footer chrome CSS (site-chrome.css, rem-based) resolves correctly */
  --bg:         #0c0c14;
  --bg-card:    #15151f;
  --bg-card-2:  #1a1a28;
  --surface:    #1e1e2e;
  --border:     rgba(255,255,255,.06);
  --white:      #ffffff;            /* "ink" — primary foreground (flips in light) */
  --dark:       #0c0c14;
  --cyan:       #1DB5ED;            /* per-client accent (token name kept) */
  --cyan-glow:  rgba(29,181,237,.15);
  --cyan-soft:  rgba(29,181,237,.08);
  --cyan-edge:  rgba(29,181,237,.18);
  --cream:      #f1ddb1;
  --text:       rgba(255,255,255,.87);
  --text-mid:   rgba(255,255,255,.6);
  --text-muted: rgba(255,255,255,.48);
  /* Approach bento: card top-sheen + ghost step-number ink
     (ghost-ink is denser than it looks: the engraved pinstripe halves
     perceived density, so the token compensates) */
  --sheen:           rgba(255,255,255,.028);
  --ghost-ink:       rgba(255,255,255,.09);
  --ghost-ink-hover: rgba(255,255,255,.1);
  --radius:     22.5px;
  --radius-lg:  24px;
  --radius-sm:  12px;
  --font-head:  'Raleway', sans-serif;
  --font-body:  'Roboto', sans-serif;
  --font-mono:  'DM Mono', monospace;
  /* Type — variable Raleway weight scale. Off-round values on purpose:
     680 reads as "set", 700 reads as "Bold". */
  --wght-hero:       220;
  --wght-hero-str:   820;
  --wght-h2:         680;
  --wght-h3:         560;
  --wght-dim:        340;   /* .ch-line--dim: contrast by weight, not just colour */
  --wght-quote:      260;
  --wght-ghost:      900;
  --wght-ghost-hov:  700;
  --wght-metric:     800;
  --wght-metric-hov: 880;
  --track-display:   -.035em;   /* ≤300 at display sizes */
  --track-heavy:     -.045em;   /* ≥800 */
  --track-tight:     -.02em;    /* 500–700 */
  /* Texture inks — ride the ink colour so light mode remaps them */
  --grain-alpha:     .055;
  --grid-ink:        rgba(255,255,255,.045);
  --grid-ink-minor:  rgba(255,255,255,.02);
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --ease-out:   cubic-bezier(0, 0, .2, 1);
}

/* Keep case study dark background over Bricks default */
body { background: #0c0c14 !important; }
html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: var(--dark); }

/* Signature grain — one fixed sheet under <main>. Opaque cards cover it,
   so it lives only in the page background; that gap is what makes cards
   read as lifted. Overlay blend modulates luminance rather than tinting,
   so client accents and light mode are untouched. Never animated. */
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--grain-alpha);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}
main, #bx-header, #bx-footer { position: relative; z-index: 1; }

#bx-header.x-header_sticky-active { z-index: 1000; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────────────── */
/* font-synthesis: none — the italic variable file ships true italics;
   never let Chrome fake-slant while it loads */
h1, h2, h3, .quote__text, .challenge-quote p { font-synthesis: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; }

h1 {
  font-weight: var(--wght-hero);
  font-size: clamp(3.84rem, 5.5vw, 7.68rem);
  letter-spacing: var(--track-display);
  color: var(--white);
  text-wrap: balance;
}
h1 strong { font-weight: var(--wght-hero-str); letter-spacing: var(--track-heavy); color: var(--cyan); }
/* theme.css sets `html[data-theme="dark"] strong` to near-white at equal
   position but higher specificity — re-assert the accent under dark mode. */
html[data-theme="dark"] main h1 strong { color: var(--cyan); }

h2 {
  font-weight: var(--wght-h2);
  font-size: clamp(3.2rem, 5vw, 6.08rem);
  color: var(--white);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}

h3 {
  font-weight: var(--wght-h3);
  font-size: clamp(1.84rem, 2vw, 2.24rem);
  color: var(--white);
}

p { color: var(--text-mid); line-height: 1.8; }

a { color: var(--text); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--cyan); }

/* Small-caps meta label — used sparingly (panel titles, stat names).
   Body font, not mono: mono-everything was a template tell. */
.meta-label {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ─────────────────────────────────────────────
   LAYOUT
   ───────────────────────────────────────────── */
.wrap { max-width: 1280px; width: 100%; margin: 0 auto; padding: 0 clamp(2.4rem, 4vw, 5.6rem); align-items: stretch; gap: 0; }
.wrap--narrow { max-width: 900px; }

.sec {
  padding: clamp(4.8rem, 5.5vw, 8rem) 0;
  position: relative;
  overflow: hidden;
  gap: 0;
}

/* Section header block: heading left-aligned, optional intro copy.
   No width cap on the h2 — an arbitrary ch limit orphans words depending
   on the string; text-wrap: balance breaks any length cleanly. */
.sec-head { margin-bottom: clamp(3.2rem, 4vw, 5.6rem); }
.sec-head p {
  max-width: 60ch;
  margin-top: 1.6rem;
  font-size: 1.68rem;
}

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.96rem;
  font-family: var(--font-body);
  font-size: 1.52rem; font-weight: 500;
  padding: 1.6rem 3.6rem;
  border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  text-decoration: none;
  position: relative;
}

.btn--primary {
  background: var(--cream); color: var(--dark);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  color: var(--dark);
}
.btn--ghost {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.28);
}
.btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

/* Site-matching CTA button — mirrors the main WebPath action button */
.btn--site-cta {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1.7px solid #fbf4e6;
  box-shadow: rgba(50,50,93,.25) 0 2px 5px -1px, rgba(0,0,0,.3) 0 1px 3px -1px;
  color: #000;
}
.btn--site-cta svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn--site-cta:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 120px); /* subtract approx header height so content centres in viewport */
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding-top: 6.4rem; padding-bottom: 6.4rem;
}
.breadcrumb {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 3.2rem;
  font-family: var(--font-body);
  font-size: 1.36rem;
  color: var(--text-muted);
}
.breadcrumb__link {
  color: var(--cyan); text-decoration: none;
  transition: color .2s var(--ease);
}
.breadcrumb__link:hover { color: var(--white); }
.breadcrumb__sep { color: var(--text-muted); }
.breadcrumb__current { color: var(--text-mid); }

.hero__content { position: relative; z-index: 2; max-width: 960px; }

.hero__sub {
  font-size: clamp(1.6rem, 2vw, 2rem);
  color: var(--text-mid);
  margin-top: 2.8rem;
  max-width: 600px;
  font-weight: 300;
}

.hero__ctas {
  display: flex; gap: 1.6rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

/* Decorative sun — inside the header, top-right, exactly like the rest of
   the site (#bx-header is position:relative via vendor-bundle).
   Responsive width 15vw -> 30vw -> 57.5vw to match the site. */
.hero__sun {
  position: absolute;
  top: -25px; right: 0;
  width: 15vw; height: auto;
  z-index: 34;
  pointer-events: none;
  overflow: hidden;
}
/* Match site: sun-cut (with cloud) shows on desktop; sun-no-cloud <=991px. */
.hero__sun--full { display: none; }            /* no-cloud: hidden on desktop */
.hero__sun--cut  { display: block; }           /* with-cloud: shown on desktop */
@media (max-width: 991px) {
  .hero__sun--cut  { display: none; }
  .hero__sun--full { display: block; }
}
@media (max-width: 767px) {
  .hero__sun { width: 30vw; }
  /* Clip sun at header boundary so it can't cause horizontal scroll, but ONLY
     while the header is non-sticky. overflow-x:hidden silently forces
     overflow-y:auto, which clips the header "in half" once the sticky JS makes
     it position:fixed on iOS. The sun row is display:none when sticky anyway,
     so there's nothing to clip in the sticky state. */
  #bx-header:not(.x-header_sticky-active) { overflow-x: hidden; }
}
@media (max-width: 478px) {
  .hero__sun { width: 57.5vw; top: -200px; }
}

/* ─────────────────────────────────────────────
   CHALLENGE — SPLIT SECTION
   ───────────────────────────────────────────── */
.challenge-top {
  display: grid;
  gap: clamp(3.2rem, 4vw, 8rem);
  align-items: start;
  margin-bottom: 4.8rem;
}
@media (min-width: 900px) {
  .challenge-top { grid-template-columns: 1fr 1fr; align-items: center; }
}

.challenge-heading {
  font-size: clamp(4.48rem, 5.5vw, 8.8rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.ch-line { display: block; }
/* Two-tone heading: the dim line contrasts by weight as well as colour —
   colour-only contrast was the flat part of the old treatment */
.ch-line--bright { color: var(--white); font-weight: 760; }
.ch-line--dim { color: var(--text-muted); font-weight: var(--wght-dim); letter-spacing: -.015em; }

/* Project meta — compact definition list, hairline separators */
.project-meta {
  display: flex; flex-wrap: wrap;
  gap: 1.2rem 0;
  margin-bottom: 2.4rem;
}
.project-meta > div {
  display: flex; align-items: baseline; gap: 0.8rem;
  padding-right: 2rem;
}
.project-meta > div + div {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}
.project-meta dt {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-muted);
}
.project-meta dd { font-size: 1.4rem; font-weight: 600; color: var(--white); }

/* Context paragraph */
.challenge-desc {
  color: var(--text-mid);
  font-size: 1.68rem;
  line-height: 1.75;
  margin: 0;
}

/* Pain point grid */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 5.6rem;
}
@media (min-width: 600px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pain-grid { grid-template-columns: repeat(3, 1fr); } }
.pain-card {
  display: flex; align-items: flex-start; gap: 1.6rem;
  padding: 2.4rem;
  background: var(--bg-card);
  transition: background .25s var(--ease);
}
.pain-card:hover { background: var(--bg-card-2); }
.pain-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-edge);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
}
.pain-icon svg { width: 16px; height: 16px; }
.pain-card p {
  margin: 0;
  font-size: 1.44rem;
  color: var(--text-mid);
  line-height: 1.55;
  padding-top: 0.32rem;
}

/* Featured quote */
.challenge-quote {
  position: relative;
  text-align: center;
  padding: 5.6rem 3.2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.challenge-quote p {
  font-family: var(--font-head);
  font-weight: var(--wght-quote);
  font-size: clamp(1.76rem, 2.2vw, 2.24rem);
  line-height: 1.6;
  color: var(--white);
  font-style: italic;
  max-width: 52ch;
  margin: 0 auto;
}
.quote-mark {
  display: block;
  width: 28px; height: 28px;
  margin: 0 auto 1.6rem;
  color: var(--cyan);
  opacity: .55;
}
.challenge-quote cite {
  display: block;
  margin-top: 2rem;
  font-size: 1.28rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────
   APPROACH — SPOTLIGHT BENTO
   Asymmetric 12-col grid (7/5 over 5/7) on desktop. Each card carries a
   cursor-tracking interior glow (::before) and a masked 1px border beam
   (::after), fed by --mx/--my from case-study-animations.js. The step
   number is a giant low-ink watermark behind the content.
   ───────────────────────────────────────────── */
.approach { overflow: visible; padding-top: clamp(3.2rem, 3.5vw, 4.8rem); }

/* Drafting grid — the bento's diagrams sit on a drawing surface.
   Major 4.8rem / minor 1.2rem lines, radially masked so it only exists
   behind the cards and dies before the section edge. Static. */
.approach::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg,  var(--grid-ink) 0 1px, transparent 1px 4.8rem),
    repeating-linear-gradient(90deg, var(--grid-ink) 0 1px, transparent 1px 4.8rem),
    repeating-linear-gradient(0deg,  var(--grid-ink-minor) 0 1px, transparent 1px 1.2rem),
    repeating-linear-gradient(90deg, var(--grid-ink-minor) 0 1px, transparent 1px 1.2rem);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 100%);
}
.approach__header, .approach__track { position: relative; z-index: 1; }
.approach__header { margin-bottom: 3.2rem; }

.approach__track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.4rem;
  width: 100%;
  padding: 3.2rem 0;
}
@media (min-width: 901px) {
  .approach__card:nth-child(1) { grid-column: span 7; }
  .approach__card:nth-child(2) { grid-column: span 5; }
  .approach__card:nth-child(3) { grid-column: span 5; }
  .approach__card:nth-child(4) { grid-column: span 7; }
}

.approach__card {
  min-width: 0;
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, var(--sheen), transparent 34%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem;
  position: relative;
  overflow: hidden;
  /* translate (not transform) so GSAP's inline reveal transform can never
     block the hover lift */
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), translate .4s var(--ease);
}
.approach__card:hover {
  translate: 0 -4px;
  border-color: var(--cyan-edge);
  box-shadow: 0 24px 60px -28px rgba(0,0,0,.6);
}

/* Featured card: faint accent aurora in the top corner */
.approach__card:nth-child(1) {
  background:
    radial-gradient(140% 110% at 0% 0%, var(--cyan-soft), transparent 55%),
    linear-gradient(180deg, var(--sheen), transparent 34%),
    var(--bg-card);
}

/* Cursor spotlight — interior wash (z:0, under content) */
.approach__card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), var(--cyan-glow), transparent 45%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
  z-index: 0;
}
/* Cursor spotlight — border beam (masked to a 1px ring, over content) */
.approach__card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--cyan), transparent 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
  z-index: 2;
}
.approach__card:hover::before { opacity: 1; }
.approach__card:hover::after { opacity: .8; }

/* Micro-visual exhibit panel — each card's top half is a purpose-built
   SVG diagram (positioning quadrant, type specimen, browser mock,
   sparkline) instead of a stock icon chip. All SVG colors come from the
   v-* token classes so every client palette + light mode adapt. */
.approach__viz {
  position: relative; z-index: 1;
  margin: 0 0 2.4rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  min-height: 13.6rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: border-color .4s var(--ease);
}
.approach__card:hover .approach__viz { border-color: var(--cyan-edge); }
.approach__viz svg { width: 100%; max-width: 26rem; height: auto; display: block; }

.approach__viz .v-ink    { fill: var(--white); }
.approach__viz .v-fill   { fill: var(--cyan); }
.approach__viz .v-accent { stroke: var(--cyan); fill: none; }
.approach__viz .v-soft   { fill: var(--cyan-soft); }
.approach__viz .v-line   { stroke: var(--text-muted); opacity: .3; fill: none; }
.approach__viz .v-muted  { fill: var(--text-muted); opacity: .55; }
.approach__viz .v-frame  { fill: var(--bg-card-2); stroke: var(--border); }
.approach__viz .viz-aa {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 5.6rem;
  letter-spacing: -.02em;
}

/* Giant watermark step number (decorative — aria-hidden in markup).
   Anchored bottom-right with a slight bleed so it reads as a cropped
   editorial watermark and never collides with the viz panel up top. */
.approach__num {
  position: absolute;
  bottom: -1.8rem; right: 1.2rem;
  z-index: 0;
  font-family: var(--font-head);
  font-variation-settings: 'wght' var(--wght-ghost);
  font-size: clamp(8rem, 9vw, 12rem);
  line-height: .8;
  letter-spacing: -.04em;
  /* Engraved, not painted: hairline 45° pinstripe clipped to the glyph */
  color: transparent;
  background-image: repeating-linear-gradient(-45deg, var(--ghost-ink) 0 1px, transparent 1px 5px);
  -webkit-background-clip: text;
          background-clip: text;
  pointer-events: none;
  user-select: none;
  transition: font-variation-settings .4s var(--ease), background-image .4s var(--ease);
}
/* Hover fills the pinstripe solid and thins the weight, so total ink
   stays level while the numeral brightens — it never competes with the h3 */
.approach__card:hover .approach__num {
  font-variation-settings: 'wght' var(--wght-ghost-hov);
  background-image: linear-gradient(var(--ghost-ink-hover), var(--ghost-ink-hover));
}

.approach__card h3 { position: relative; z-index: 1; margin-bottom: 1.6rem; }
.approach__card p { position: relative; z-index: 1; font-size: 1.52rem; }

@media (max-width: 900px) {
  /* 2-column grid on tablet */
  .approach__track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  /* Single column on mobile — same card language as desktop */
  .approach__track { grid-template-columns: 1fr; }
  .approach__card { padding: 3.2rem 2.8rem; }
  .approach__viz { min-height: 11.2rem; }
}

/* ─────────────────────────────────────────────
   SHOWCASE — BROWSER FRAME
   ───────────────────────────────────────────── */
.showcase-sec { background: var(--bg-card); }
.showcase {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
  transition: box-shadow .6s var(--ease);
}
.showcase__bar {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.8rem 1.2rem 1.2rem;
}
.showcase__dot { width: 10px; height: 10px; border-radius: 50%; }
.showcase__dot:nth-child(1) { background: #ff5f57; }
.showcase__dot:nth-child(2) { background: #ffbd2e; }
.showcase__dot:nth-child(3) { background: #28ca41; }
.showcase__url {
  flex: 1; text-align: center;
  font-family: var(--font-mono);
  font-size: 1.2rem; color: var(--text-muted);
  background: var(--bg); border-radius: 8px;
  padding: 0.64rem 1.6rem; margin-left: 0.8rem;
  border: 1px solid var(--border);
}
a.showcase__url:hover { color: var(--cyan); }
.showcase__frame {
  width: 100%; aspect-ratio: 16/9;
  border: none; border-radius: var(--radius-sm);
  display: block;
  object-fit: cover;
  object-position: top center;
}
/* Static screenshots never crop: on phones they show the full desktop capture
   scaled to width instead of a zoomed 3/4 slice. The 3/4 portrait box is only
   for the interactive iframe embed (Pampered Paws), where it pairs with the
   tap-to-open overlay. */
img.showcase__frame { aspect-ratio: auto; }
.showcase__note {
  text-align: center; margin-top: 2rem;
  font-size: 1.32rem; color: var(--text-muted);
}
.showcase__note a { color: var(--cyan); }

/* "Open live site" affordance in the browser-chrome bar — works on every
   device and never depends on the embedded iframe loading. */
.showcase__open {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 1.1rem; letter-spacing: .02em;
  padding: 0.56rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-mid);
  margin-left: 0.8rem;
  flex-shrink: 0;
  transition: border-color .2s, color .2s, transform .2s;
}
.showcase__open svg { width: 13px; height: 13px; flex-shrink: 0; }
.showcase__open:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); }
.showcase__viewport { position: relative; }
/* Mobile/touch: a full website crammed into a small, scroll-trapped iframe
   is a poor experience. Present a tappable framed preview that opens the
   real site full-screen in a new tab instead, and let touch-drags scroll
   the page normally (the iframe is non-interactive here). Desktop keeps the
   rich, directly-interactive embed. */
.showcase__tap { display: none; }
@media (hover: none) and (pointer: coarse) {
  .showcase__open { display: none; } /* the tap overlay below is the touch CTA */
  iframe.showcase__frame { aspect-ratio: 3/4; pointer-events: none; }
  .showcase__tap {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 1.6rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 42%);
    -webkit-tap-highlight-color: transparent;
  }
  .showcase__tap-pill {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 1.3rem; font-weight: 500;
    color: #fff;
    padding: 1rem 1.8rem;
    background: rgba(18,18,18,.88);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 100px;
    box-shadow: 0 6px 24px rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
  }
  .showcase__tap-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
}

/* ─────────────────────────────────────────────
   RESULTS — METRIC CARDS
   ───────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.4rem;
  margin-top: 4rem;
}
@media (max-width: 900px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .metrics { grid-template-columns: 1fr; } }

.metric {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.2rem 2.8rem;
  text-align: center;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.metric:hover {
  border-color: var(--cyan-edge);
  box-shadow: 0 18px 45px -25px rgba(0,0,0,.55);
}

/* Weight morph on hover — transition font-variation-settings, not
   font-weight: Safari steps the latter. font-weight stays set so face
   selection is correct even if the variation setting is dropped.
   No letter-spacing here: negative tracking on word-length values
   ("End-to-End") turns 800 into a cramped slab. The counter JS only
   touches textContent, so no conflict with the tween. */
.metric__val {
  font-family: var(--font-head);
  font-weight: var(--wght-metric);
  font-variation-settings: 'wght' var(--wght-metric);
  font-size: clamp(4.48rem, 5vw, 5.76rem);
  line-height: 1;
  color: var(--cyan);
  transition: font-variation-settings .35s var(--ease);
}
.metric:hover .metric__val { font-variation-settings: 'wght' var(--wght-metric-hov); }
.metric__name {
  font-weight: 600; color: var(--white);
  margin-top: 1.6rem; font-size: 1.6rem;
}
.metric__desc {
  font-size: 1.28rem; color: var(--text-muted);
  margin-top: 0.64rem;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   BEFORE / AFTER
   ───────────────────────────────────────────── */
.before-after {
  margin-top: 5.6rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* Header row */
.ba-header { display: grid; grid-template-columns: 1fr 44px 1fr; }
.ba-header__col {
  padding: 1.28rem 2.8rem;
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.ba-header__col--before { color: var(--text-muted); }
.ba-header__col--sep { border-bottom: 1px solid var(--border); }
.ba-header__col--after { color: var(--cyan); }

/* Data rows */
.ba-row { display: grid; grid-template-columns: 1fr 44px 1fr; }
.ba-row + .ba-row .ba-before,
.ba-row + .ba-row .ba-after,
.ba-row + .ba-row .ba-arrow {
  border-top: 1px solid var(--border);
}

.ba-before {
  padding: 2.4rem 2.8rem;
  display: flex; flex-direction: column; gap: 0.64rem;
}
.ba-category {
  font-size: 1.12rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-muted);
}
.ba-before p {
  margin: 0; font-size: 1.44rem; line-height: 1.55;
  color: var(--text-muted);
}

.ba-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.ba-arrow svg { width: 13px; height: 13px; }

.ba-after {
  padding: 2.4rem 2.8rem;
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
}
.ba-metric {
  font-family: var(--font-head);
  font-size: 3.04rem; font-weight: 800; letter-spacing: -.03em; line-height: 1;
  color: var(--cyan);
}
.ba-after p {
  margin: 0; font-size: 1.4rem; line-height: 1.5;
  color: var(--text-mid);
}
.ba-after--text p {
  font-size: 1.52rem; font-weight: 600; color: var(--white);
}

.results-note {
  margin-top: 2.4rem;
  font-size: 1.28rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 64ch;
}

/* ─────────────────────────────────────────────
   MID-PAGE CTA BRIDGE
   ───────────────────────────────────────────── */
.mid-cta {
  padding: 4rem 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mid-cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 3.2rem; flex-wrap: wrap;
}
.mid-cta__text {
  font-size: clamp(1.76rem, 2vw, 2.16rem);
  font-weight: 600;
  color: var(--white);
  margin: 0;
}
@media (max-width: 600px) {
  .mid-cta__inner { flex-direction: column; align-items: stretch; }
  .mid-cta__text { text-align: center; }
  .mid-cta__inner .btn { justify-content: center; }
}

/* ─────────────────────────────────────────────
   DESIGN SHOWCASE (color palette + typography)
   ───────────────────────────────────────────── */
.design-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
  margin-top: 3.2rem;
}
@media (max-width: 700px) { .design-cols { grid-template-columns: 1fr; } }

.palette {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.2rem;
}
.palette__title {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.palette__swatches {
  display: flex; gap: 1.6rem;
  flex-wrap: wrap;
}
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  cursor: default;
}
.swatch__color {
  width: 56px; height: 56px;
  border-radius: 14px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.swatch:hover .swatch__color { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.swatch__label {
  font-family: var(--font-mono);
  font-size: 1.04rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: .03em;
}
/* 2-column swatch grid on small screens — 4 swatches make an even 2×2 */
@media (max-width: 520px) {
  .palette__swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .swatch { width: 100%; }
  .swatch__color { width: 100%; height: 44px; border-radius: 10px; }
  .swatch__label { font-size: 0.8rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: 0; }
}

.type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3.2rem;
}
.type-card__title {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.type-sample { margin-bottom: 1.6rem; }
.type-sample__name {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}
.type-sample__preview {
  color: var(--white);
  line-height: 1.3;
}
.type-sample__preview--display {
  font-family: 'Raleway', sans-serif;
  font-size: 2.88rem;
  font-weight: 700;
}
.type-sample__preview--body {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.6rem;
}

/* ─────────────────────────────────────────────
   TESTIMONIAL
   ───────────────────────────────────────────── */
.testimonial {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.quote {
  max-width: 800px; margin: 0 auto;
  text-align: center; position: relative;
}
/* Vendor Bricks blockquote rule adds a 4px left bar — drop it for the
   centered pull-quote */
blockquote.quote__text { border-left: none; }
.quote__text {
  font-family: var(--font-head);
  font-size: clamp(1.84rem, 2.5vw, 2.56rem);
  font-weight: var(--wght-quote);
  font-style: italic;
  color: var(--text);
  line-height: 1.9;
  margin: 0;
}
.quote__attribution {
  margin-top: 3.2rem;
}
.quote__author {
  font-weight: 600; color: var(--white); font-size: 1.6rem;
}
.quote__role {
  font-size: 1.28rem; color: var(--text-muted);
  margin-top: 0.32rem;
}

/* ─────────────────────────────────────────────
   CTA
   ───────────────────────────────────────────── */
.cta-sec { position: relative; }

/* 2-col grid */
.cta-grid {
  display: grid;
  gap: clamp(4rem, 5vw, 8rem);
  position: relative; z-index: 2;
  align-items: center;
}
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.1fr 1fr; } }

/* Left: CTA copy */
.cta-left h2 { text-align: left; }
.cta-left > p { text-align: left; margin: 1.6rem 0 0; max-width: 48ch; }

.cta__buttons {
  display: flex; gap: 1.6rem;
  justify-content: flex-start;
  margin-top: 3.2rem;
  flex-wrap: wrap;
}

/* Trust signals — plain inline list, icon + text, dot-free hairline separators */
.cta__trust-pills {
  display: flex; flex-wrap: wrap; gap: 1rem 0;
  margin-top: 2.4rem;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 0.72rem;
  padding-right: 2rem;
  font-size: 1.32rem;
  color: var(--text-mid);
}
.trust-pill + .trust-pill {
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}
.trust-pill__icon { width: 14px; height: 14px; color: var(--cyan); flex-shrink: 0; }

/* Right: included panel */
.cta-right {
  padding: 3.2rem 3.2rem 2.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.cta-right__label {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.cta-right__label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Deliverables list */
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.del-chip {
  display: flex; align-items: center; gap: 0.96rem;
  padding: 1.04rem 0;
  font-size: 1.36rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.del-chip:nth-last-child(-n+2) { border-bottom: none; }
.del-chip__check { width: 13px; height: 13px; color: var(--cyan); flex-shrink: 0; }

@media (max-width: 899px) {
  .cta-grid { gap: 2.8rem; }
  .cta-right {
    box-shadow: 0 22px 55px -30px rgba(0,0,0,.8);
  }
}
@media (max-width: 520px) {
  .cta__trust-pills { flex-direction: column; gap: 1rem; }
  .trust-pill { padding-right: 0; }
  .trust-pill + .trust-pill { padding-left: 0; border-left: none; }
  .deliverables-grid { grid-template-columns: 1fr; }
  .del-chip { padding: 1.25rem 0; font-size: 1.5rem; gap: 1.2rem; }
  .del-chip:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .del-chip:last-child { border-bottom: none; }
}

/* ─────────────────────────────────────────────
   GSAP-DRIVEN VISIBILITY (initial states)
   ───────────────────────────────────────────── */
[data-animate] { opacity: 0; }
[data-animate="fade-up"] { transform: translateY(40px); }
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="scale-up"] { transform: scale(.92); }

/* ─────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* ─────────────────────────────────────────────
   SECTION CLIP REVEAL
   ───────────────────────────────────────────── */
.clip-reveal {
  clip-path: inset(8% 4% 8% 4% round 16px);
  transition: clip-path .01s linear;
}
.clip-reveal--visible {
  clip-path: inset(0% 0% 0% 0% round 0px);
}

@media (max-width: 520px) {
  h1 { font-size: clamp(2.9rem, 8.6vw, 4.2rem); letter-spacing: -1px; line-height: 1.08; }
  /* CTA section buttons stack vertically on small screens */
  .cta__buttons { flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .btn--site-cta { font-size: 1.6rem; padding: 13px 20px; justify-content: center; }
  /* Hero CTAs also stack full-width on small screens */
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { text-align: center; justify-content: center; }
  /* Project meta: separators off, rows stacked */
  .project-meta { flex-direction: column; gap: 0.8rem; }
  .project-meta > div { padding-right: 0; }
  .project-meta > div + div { padding-left: 0; border-left: none; }
}

/* ─────────────────────────────────────────────
   BACK TO TOP
   ───────────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 3.2rem; right: 3.2rem;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.back-top--visible {
  opacity: 1; pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover {
  border-color: var(--cyan);
}
.back-top svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .ba-header__col { padding: 1.04rem 1.4rem; }
  .ba-before,
  .ba-after { padding: 1.6rem 1.4rem; }
}

/* ─────────────────────────────────────────────
   SCREEN-READER ONLY UTILITY
   ───────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─────────────────────────────────────────────
   SKIP NAVIGATION LINK
   ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1.6rem;
  z-index: 10000;
  padding: 1.2rem 2.4rem;
  background: var(--cyan);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.44rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 1.6rem;
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────
   FOOTER — ADAPTATION LAYER (structure + fixed dark-purple section)
   ───────────────────────────────────────────── */
/* container: real footer uses .c-container max-width, centered, no flex gap */
#bx-footer .footer.c-section { display:flex; padding-left:24px; padding-right:24px; box-sizing:border-box; }
#bx-footer .footer__container { display:flex; flex-direction:row; align-items:stretch; width:calc(100% - 26px); max-width:100%; margin:0 auto; box-sizing:border-box; }
#bx-footer .flex--col { display:flex; flex-direction:column; }
#bx-footer .list--none { list-style:none; }
#bx-footer .display--none { display:none !important; }
/* Footer is a fixed dark-purple section in BOTH themes, matching the live site
   (#32314e). The footer's native styling (white text, dark inputs, the panel
   darkening, near-white icons) is designed for exactly this purple bg, so we
   keep that treatment in both themes and don't theme-swap footer colors. */
#bx-footer .footer.c-section { background-color: #32314e; }
#bx-footer .footer.c-section { font-size: 18px; line-height: 1.7; }  /* real footer inherits body --text-m = 18px @10px-root; set explicitly so unstyled text isn't 16px*1.6 */
/* divider is a 1px line, not a filled full-height slab */
#bx-footer .footer-divider.c-div { height:1px; min-height:1px; flex:0 0 1px; background-color: rgba(255,255,255,.12); border-radius:0; border-top-width:0; }
/* email: the <br>/unbroken copy toggle is owned by theme.css so every page
   agrees; only the width reset is case-study specific. */
#bx-footer .footer-email.c-text-basic { width:auto; }
/* logo size to match real footer (130px) */
#bx-footer .footer__logo.c-svg { width:130px; height:auto; }
/* Terms line <p> picks up the global `p { color: var(--text-mid) }` rule, which
   is low-contrast purple on the #32314e footer. Force light text (links keep
   their own light-blue color). */
#bx-footer .footer-terms,
#bx-footer .footer-terms p,
#bx-footer .footer-terms.c-text { color: rgba(255,255,255,.7) !important; }
/* mobile: stack + clear fixed back-to-top button */
@media (max-width: 767px) { #bx-footer .footer__container { flex-direction:column; margin:0; } #bx-footer .footer.c-section { padding-left:20px; padding-right:20px; } }
@media (max-width: 600px) { #bx-footer .footer.c-section { padding-bottom: 90px; } }

/* ══════════════════════════════════════════════════════════════════
   LIGHT MODE — remap page tokens + hardcoded overrides
   ══════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
  --bg:         #efeffb;
  --bg-card:    #ffffff;
  --bg-card-2:  #f3f3f9;
  --surface:    #e8e8f2;
  --border:     rgba(79, 79, 125, 0.22);
  --white:      #1e1c3a;
  --cyan:       #0e8ab5;
  --cyan-glow:  rgba(14, 138, 181, 0.12);
  --cyan-soft:  rgba(14, 138, 181, 0.08);
  --cyan-edge:  rgba(14, 138, 181, 0.20);
  --text:       #1e1c3a;
  --text-mid:   #4f4f7d;
  --text-muted: #636390;
  --sheen:           rgba(30,28,58,.02);
  --ghost-ink:       rgba(30,28,58,.08);
  --ghost-ink-hover: rgba(30,28,58,.13);
  --grain-alpha:     .035;
  --grid-ink:        rgba(30,28,58,.07);
  --grid-ink-minor:  rgba(30,28,58,.03);
}

html[data-theme="light"] body {
  background: #efeffb !important;
}

html[data-theme="light"] .btn--ghost {
  color: #1e1c3a;
  border-color: rgba(79, 79, 125, 0.28);
}
html[data-theme="light"] .btn--ghost:hover {
  border-color: #1e1c3a;
  color: #1e1c3a;
  box-shadow: none;
}

html[data-theme="light"] .btn--primary:hover {
  box-shadow: 0 10px 30px rgba(20,16,50,.18);
}

/* Breadcrumb link hover */
html[data-theme="light"] .breadcrumb__link:hover {
  color: #1e1c3a;
}

/* Card hovers — lighter shadow on light backgrounds */
html[data-theme="light"] .approach__card:hover,
html[data-theme="light"] .metric:hover {
  box-shadow: 0 24px 60px -28px rgba(20,16,50,.28);
}

/* Showcase frame */
html[data-theme="light"] .showcase {
  box-shadow: 0 40px 100px rgba(20, 16, 50, 0.15);
}

/* Swatch shadow */
html[data-theme="light"] .swatch:hover .swatch__color {
  box-shadow: 0 6px 24px rgba(20, 16, 50, 0.18);
}

/* CTA panel shadow */
html[data-theme="light"] .cta-right {
  box-shadow: none;
}
@media (max-width: 899px) {
  html[data-theme="light"] .cta-right {
    box-shadow: 0 18px 45px -28px rgba(20,16,50,.28);
  }
}

/* Header non-sticky — keep light bg in light mode */
html[data-theme="light"] .header.c-xheaderrow {
  background-color: #efeffb;
}

/* Submenu — light mode needs light background */
html[data-theme="light"] .header__menu.c-nav-menu .cmp-nav-menu .sub-menu {
  background-color: #ffffff;
  border-color: rgba(79,79,125,.14);
}
html[data-theme="light"] .header__menu.c-nav-menu .cmp-nav-menu .sub-menu > li > a,
html[data-theme="light"] .header__menu.c-nav-menu .cmp-nav-menu .sub-menu > li > .bx-submenu-toggle > * {
  color: #1e1c3a;
}

/* Sticky nav submenu */
html[data-theme="light"] .fr-nav-bravo--sticky.c-nav-menu .cmp-nav-menu .sub-menu {
  background-color: #ffffff;
  border-color: rgba(79,79,125,.14);
}
html[data-theme="light"] .fr-nav-bravo--sticky.c-nav-menu .cmp-nav-menu .sub-menu > li > a,
html[data-theme="light"] .fr-nav-bravo--sticky.c-nav-menu .cmp-nav-menu .sub-menu > li > .bx-submenu-toggle > * {
  color: #1e1c3a;
}
html[data-theme="light"] .fr-nav-bravo--sticky.c-nav-menu .cmp-nav-menu .sub-menu .menu-item:hover {
  background-color: rgba(79,79,125,.06);
}
html[data-theme="light"] .header__menu.c-nav-menu .cmp-nav-menu .sub-menu .menu-item:hover {
  background-color: rgba(79,79,125,.06);
}

/* Burger label on mobile (was white) */
html[data-theme="light"] .header__burger--label.c-text-basic {
  color: #1e1c3a;
}

/* Back-to-top button */
html[data-theme="light"] .back-top:hover { border-color: var(--cyan); }
