/* ============================================================
   CASE STUDY DESIGN SYSTEM v3 — premium / conversion-focused
   Shared stylesheet for every case study page in this folder.
   Do not fork this file per case study — add a new HTML page
   using template.html and this same stylesheet will apply.

   Brand source: brandingnuts.com (meta theme-color #4302b2,
   header logo, nav structure, footer content, award badges).
   ============================================================ */

:root {
  /* ---- Color tokens (Brandingnuts brand) ---- */
  --purple: #4302B2;
  --purple-deep: #26015F;
  --purple-mid: #6420D6;
  --black: #0B0616;          /* premium near-black base for dark sections */
  --black-soft: #130A26;
  --ink: #150B2E;
  --ink-soft: #56506E;
  --paper: #FFFFFF;
  --mist: #F6F4FC;
  --mist-line: #E4DDF5;
  --line: #EAE6F2;
  --amber: #FFB020;
  --amber-deep: #E8930A;
  --white: #FFFFFF;

  /* ---- Type ---- */
  --font-display: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --step-1: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-2: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-3: clamp(1.7rem, 1.45rem + 1.2vw, 2.3rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.3vw, 3.2rem);
  --step-5: clamp(2.8rem, 2rem + 3.8vw, 4.6rem);
  --step-big: clamp(3.4rem, 2.2rem + 6vw, 6.5rem);

  --content-max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 16px -6px rgba(11,6,22,0.12);
  --shadow-md: 0 20px 48px -14px rgba(11,6,22,0.28);
  --shadow-purple: 0 24px 56px -18px rgba(67,2,178,0.55);

  /* subtle grain texture used across dark sections */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { max-width: var(--content-max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ================= TOP NAV — glass, sticky ================= */
.site-nav {
  background: rgba(11,6,22,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--white);
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.8rem; }
.site-nav .brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--white); flex-shrink: 0; }
.site-nav .brand img { height: 60px; width: auto; display: block; }
.site-nav .menu { list-style: none; display: flex; align-items: center; gap: 1.9rem; margin: 0; padding: 0; font-size: 0.9rem; }
.site-nav .menu a { text-decoration: none; color: rgba(255,255,255,0.8); padding-block: 0.3rem; border-bottom: 1px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
.site-nav .menu a:hover { color: var(--white); border-color: var(--amber); }
.site-nav .menu .current a { color: var(--white); border-color: var(--amber); }
.site-nav .cta {
  display: inline-block; background: var(--amber); color: var(--black); font-weight: 600; font-size: 0.86rem;
  text-decoration: none; padding: 0.62rem 1.25rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 6px 18px -6px rgba(255,176,32,0.5); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.site-nav .cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(255,176,32,0.65); }
.site-nav .nav-right { display: flex; align-items: center; gap: 1.5rem; }

.subnav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 57px; z-index: 20; }
.subnav .wrap { display: flex; gap: 1.75rem; overflow-x: auto; padding-block: 0.75rem; font-size: 0.85rem; }
.subnav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; font-weight: 500; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--purple); border-color: var(--mist-line); }
.subnav .breadcrumb-mini { color: var(--ink-soft); font-weight: 400; }
.subnav .breadcrumb-mini a { color: var(--purple); font-weight: 500; }

/* ---- Section rhythm ---- */
section { padding-block: clamp(3.2rem, 6.5vw, 6rem); scroll-margin-top: 6rem; }
.section--dark {
  background: linear-gradient(165deg, var(--black) 0%, var(--purple-deep) 65%, var(--purple) 130%);
  background-image: var(--grain), linear-gradient(165deg, var(--black) 0%, var(--purple-deep) 65%, var(--purple) 130%);
  color: var(--white); position: relative; overflow: hidden;
}
.section--dark .label { color: var(--amber); }
.section--sage { background: var(--mist); border-top: 1px solid var(--mist-line); border-bottom: 1px solid var(--mist-line); }
.section--white { background: var(--white); }
section + .section--dark, .section--dark + section { border-top: none; }
.section--white + .section--white, .section--white + section:not(.section--dark) { border-top: 1px solid var(--line); }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
  color: var(--white); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.42rem 0.95rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.eyebrow-pill.on-light { background: rgba(67,2,178,0.08); border-color: rgba(67,2,178,0.18); color: var(--purple); }
.eyebrow-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

.label { display: block; font-family: var(--font-body); font-size: 0.88rem; color: var(--purple); font-weight: 600; margin-bottom: 0.6rem; letter-spacing: 0.01em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0 0 0.5rem; line-height: 1.1; letter-spacing: -0.01em; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }

.dek { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); color: var(--purple); margin: 0 0 1.4rem; }
.section--dark .dek { color: var(--amber); }

p { max-width: 62ch; color: var(--ink-soft); }
.section--dark p { color: rgba(255,255,255,0.78); }

/* ================= HERO — abstract dark premium, no stock photo ================= */
.hero {
  position: relative; color: var(--white);
  background:
    radial-gradient(circle at 82% -10%, rgba(255,176,32,0.22), transparent 45%),
    radial-gradient(circle at 8% 15%, rgba(100,32,214,0.5), transparent 50%),
    linear-gradient(165deg, var(--black) 0%, var(--purple-deep) 70%, var(--purple) 130%);
  background-image:
    var(--grain),
    radial-gradient(circle at 82% -10%, rgba(255,176,32,0.22), transparent 45%),
    radial-gradient(circle at 8% 15%, rgba(100,32,214,0.5), transparent 50%),
    linear-gradient(165deg, var(--black) 0%, var(--purple-deep) 70%, var(--purple) 130%);
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: 0;
  overflow: hidden;
}
/* Photo variant — use when a real, reliable (ideally self-hosted) image exists.
   Add class="hero hero--photo" and set --hero-image inline. Falls back to the
   plain abstract .hero treatment when this modifier isn't used.
   Implemented as a separate ::before image layer + ::after gradient scrim
   (rather than one multi-layer `background` shorthand) — simpler layering,
   more broadly compatible, and easier to reason about. */
.hero.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-image); background-size: cover; background-position: center;
}
.hero.hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--grain), linear-gradient(165deg, rgba(11,6,22,0.88) 0%, rgba(38,1,95,0.82) 55%, rgba(67,2,178,0.7) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-content { max-width: 780px; }
.hero h1 { font-size: var(--step-5); letter-spacing: -0.02em; color: var(--white); }
.hero .intro { font-size: 1.12rem; max-width: 46ch; color: rgba(255,255,255,0.82); margin-bottom: 2rem; }
.hero .client-chip { display: inline-flex; align-items: center; gap: 0.65rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; padding: 0.35rem 0.9rem 0.35rem 0.35rem; margin-bottom: 1.6rem; font-size: 0.85rem; }
.hero .client-chip .logo-img { height: 24px; width: auto; display: block; background: var(--white); border-radius: 999px; padding: 3px 8px; }
.hero .client-chip .monogram {
  width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: var(--black);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 0.72rem; flex-shrink: 0;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Scrolling stat marquee ---- */
.marquee { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,0.12); margin-top: clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 0.9rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); color: rgba(255,255,255,0.9); padding-block: 1.1rem; white-space: nowrap; }
.marquee-track span b { color: var(--amber); font-weight: 700; }
.marquee-track span .sep { color: rgba(255,255,255,0.3); margin-inline: 1.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Floating stat cards (glass, overlapping hero) ---- */
.stat-float { position: relative; z-index: 3; transform: translateY(50%); }
.stat-float .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-md); display: flex; align-items: flex-start; gap: 0.9rem;
}
.stat-card .icon-badge { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.stat-card .value { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; color: var(--ink); line-height: 1.1; }
.stat-card .term { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }
.hero-spacer { height: clamp(3.5rem, 7vw, 5.5rem); }

/* ---- Trust bar — self-contained badge chips, no external image dependency ---- */
.trust-bar { background: var(--mist); padding-block: 1.5rem; border-bottom: 1px solid var(--mist-line); }
.trust-bar .wrap { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap; justify-content: space-between; }
.trust-bar .trust-label { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.trust-bar .badges { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--white);
  border: 1px solid var(--mist-line); border-radius: 999px; padding: 0.5rem 1rem 0.5rem 0.7rem;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.badge-chip .icon { color: var(--purple); width: 1.05em; height: 1.05em; flex-shrink: 0; }
.badge-chip b { color: var(--ink); font-weight: 700; }

/* ---- Two column layout ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.2; }
.mini-stats { display: flex; gap: 1.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.mini-stats .n { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--purple); }
.mini-stats .l { font-size: 0.8rem; color: var(--ink-soft); }

/* ---- Credibility panel — replaces a stock/client photo with a designed graphic ---- */
.cred-panel {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 2.2rem;
  background: linear-gradient(165deg, var(--black) 0%, var(--purple-deep) 65%, var(--purple) 130%);
  background-image: var(--grain), linear-gradient(165deg, var(--black) 0%, var(--purple-deep) 65%, var(--purple) 130%);
  color: var(--white); box-shadow: var(--shadow-purple); min-height: 340px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cred-panel::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,0.22), transparent 70%); right: -100px; bottom: -110px;
}
.cred-panel .top { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.9rem; }
.cred-panel .top .monogram {
  width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--black);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; flex-shrink: 0;
}
.cred-panel .top .name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.cred-panel .top .sub { font-size: 0.82rem; color: rgba(255,255,255,0.65); }
.cred-panel .grid4 { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 1.5rem; }
.cred-panel .grid4 > div { flex: 1 1 40%; min-width: 110px; }
.cred-panel .grid4 .n { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--amber); line-height: 1; }
.cred-panel .grid4 .l { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-top: 0.3rem; }

/* ================= BIG NUMBERS — signature premium moment ================= */
.big-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.big-numbers .item { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 1.4rem; }
.big-numbers .figure {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-big); line-height: 1;
  color: var(--amber);
  letter-spacing: -0.03em; margin-bottom: 0.6rem;
}
.big-numbers .cap { font-size: 0.98rem; color: rgba(255,255,255,0.75); max-width: 24ch; }

/* ---- Issue cards ---- */
.issue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2rem; }
.issue-card {
  background: var(--white); border: 1px solid var(--mist-line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm); display: flex; gap: 1rem; align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.issue-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.issue-card .icon-badge { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; background: rgba(67,2,178,0.08); color: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.issue-card h4 { margin: 0 0 0.3rem; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ink); }
.issue-card p { margin: 0; font-size: 0.92rem; }

/* ---- Numbered process (timeline) ---- */
.process { position: relative; margin-top: 2.5rem; display: grid; gap: 0; }
.process::before { content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 2px; background: var(--mist-line); }
.process-item { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding-bottom: 2.2rem; position: relative; }
.process-item:last-child { padding-bottom: 0; }
.process-item .num { width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--purple); color: var(--purple); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; position: relative; z-index: 1; }
.process-item h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; color: var(--ink); margin: 0.35rem 0 0.35rem; }
.process-item p { margin: 0; }

/* ---- Mid-page conversion band ---- */
.mid-cta { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 3.2rem); }
.mid-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mid-cta h3 { font-size: 1.5rem; margin: 0; max-width: 32ch; }
.mid-cta p.small { margin: 0.35rem 0 0; font-size: 0.92rem; max-width: 42ch; }

/* ---- Ledger (execution stats) ---- */
.ledger { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 1rem; }
.ledger-row { display: flex; align-items: center; gap: 1rem; padding-block: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.18); }
.ledger-row .icon-badge { flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.1); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.ledger-row .term { flex: 1; font-size: 0.95rem; color: rgba(255,255,255,0.78); }
.ledger-row .value { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; color: var(--white); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Conversion funnel — stage bars with drop-off percentages ---- */
.funnel { margin-top: 2rem; display: grid; gap: 1.1rem; }
.funnel-row { display: grid; grid-template-columns: 130px 1fr 70px; align-items: center; gap: 1rem; }
.funnel-row .stage { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.funnel-row .stage small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 0.78rem; }
.funnel-row .bar-track { background: var(--mist); border-radius: 10px; height: 44px; overflow: hidden; }
.funnel-row .bar-fill {
  background: linear-gradient(90deg, var(--purple), var(--purple-mid));
  height: 100%; border-radius: 10px; display: flex; align-items: center;
  padding-left: 1rem; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  white-space: nowrap; transition: width 0.3s ease;
}
.funnel-row:last-child .bar-fill { background: linear-gradient(90deg, var(--amber-deep), var(--amber)); color: var(--black); }
.funnel-row .pct { text-align: right; font-weight: 700; color: var(--purple); font-size: 0.95rem; }

/* ---- Targeting / layer cards (lettered, not numbered — simultaneous, not sequential) ---- */
.layer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.layer-card { background: var(--white); border: 1px solid var(--mist-line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.layer-card .letter {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(67,2,178,0.08); color: var(--purple);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1.1rem; margin-bottom: 1rem;
}
.layer-card h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin: 0 0 0.5rem; color: var(--ink); }
.layer-card p { font-size: 0.9rem; margin: 0 0 1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-pill { font-size: 0.76rem; font-weight: 600; color: var(--purple); background: rgba(67,2,178,0.07); border-radius: 999px; padding: 0.28rem 0.7rem; }

/* ---- Reframe callout — old positioning vs. new positioning ---- */
.reframe { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); margin-top: 2rem; }
.reframe .old { color: var(--ink-soft); font-size: 1rem; text-decoration: line-through; text-decoration-color: rgba(86,80,110,0.5); }
.reframe .arrow-down { color: var(--purple); margin-block: 0.6rem; font-size: 1.1rem; }
.reframe .new { font-family: var(--font-display); font-weight: 600; font-size: var(--step-3); color: var(--ink); margin: 0; }

/* ---- Journey flow — a chain of stages connected by arrows ---- */
.journey { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 2rem; }
.journey .stage-pill {
  background: var(--white); border: 1px solid var(--mist-line); border-radius: 999px;
  padding: 0.6rem 1.2rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
}
.section--dark .journey .stage-pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: var(--white); }
.journey .arrow { color: var(--purple); flex-shrink: 0; }
.section--dark .journey .arrow { color: var(--amber); }
.journey .arrow svg { width: 1.1rem; height: 1.1rem; }

/* ---- Placeholder / pending-confirmation marker ---- */
.pending {
  display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700;
  color: var(--amber-deep); background: rgba(255,176,32,0.14); border: 1px dashed var(--amber);
  border-radius: 999px; padding: 0.2rem 0.65rem; text-transform: uppercase; letter-spacing: 0.03em; margin-left: 0.5rem;
}

/* ---- Results tables in cards ---- */
.card-table { background: var(--white); border: 1px solid var(--mist-line); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); margin-top: 1.75rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table caption { text-align: left; font-weight: 600; color: var(--ink); margin-bottom: 1rem; font-size: 1.05rem; }
.data-table th, .data-table td { text-align: left; padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--mist-line); font-size: 0.96rem; }
.data-table th { font-weight: 600; color: var(--ink-soft); font-size: 0.83rem; border-bottom: 2px solid var(--purple); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td:last-child, .data-table th:last-child { font-variant-numeric: tabular-nums; color: var(--purple); font-weight: 600; }
.tables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; margin-top: 1.75rem; }
.tables-grid .card-table { margin-top: 0; }

/* ---- Reel (phone mockup, on dark) + testimonial ---- */
.reel-block { display: grid; grid-template-columns: 0.55fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before {
  content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,0.28), transparent 70%); filter: blur(10px); z-index: 0;
}
.phone {
  position: relative; z-index: 1; width: min(100%, 260px); aspect-ratio: 9/19.5;
  background: #0d0620; border-radius: 34px; padding: 10px;
  box-shadow: var(--shadow-md), 0 0 0 2px rgba(255,255,255,0.06);
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; background: #0d0620; border-radius: 0 0 14px 14px; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: linear-gradient(165deg, var(--purple), var(--purple-deep) 75%); }
.phone-screen video, .phone-screen .reel-fallback { width: 100%; height: 100%; object-fit: cover; }
.phone-screen .reel-fallback { display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; color: rgba(255,255,255,0.8); font-size: 0.82rem; }
.phone-screen .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.phone-screen .play .play-circle { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; }
.phone-screen .play svg { width: 1.3rem; height: 1.3rem; }
.reel-caption { text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 1.1rem; }

.testimonial .stars { display: flex; gap: 0.25rem; color: var(--amber); margin-bottom: 1rem; }
.testimonial .stars svg { width: 1.1rem; height: 1.1rem; fill: var(--amber); stroke: none; }
.testimonial blockquote { font-family: var(--font-display); font-weight: 500; font-style: normal; font-size: var(--step-3); line-height: 1.35; color: var(--white); margin: 0 0 1.5rem; quotes: none; }
.testimonial .who { display: flex; align-items: center; gap: 0.85rem; }
.testimonial .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--black); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.testimonial cite { font-style: normal; display: block; font-weight: 600; color: var(--white); font-size: 0.98rem; }
.testimonial .role { color: rgba(255,255,255,0.6); font-size: 0.88rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--amber); color: var(--black); font-weight: 600;
  text-decoration: none; padding: 0.9rem 1.7rem; border-radius: 999px; font-size: 0.98rem;
  box-shadow: 0 10px 24px -8px rgba(255,176,32,0.55); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: var(--white); font-weight: 600;
  text-decoration: none; padding: 0.9rem 1.6rem; border-radius: 999px; font-size: 0.98rem; border: 1px solid rgba(255,255,255,0.32);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.06); }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: none; }

/* ---- Closing / CTA ---- */
.cta-band { position: relative; overflow: hidden; text-align: center; }
.cta-band::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,176,32,0.16), transparent 70%); right: -180px; top: -260px; }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--step-5); max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 48ch; margin-inline: auto; font-size: 1.05rem; }
.cta-band .hero-ctas { justify-content: center; margin-top: 2rem; }
.cta-band .contact-line { margin-top: 1.75rem; font-size: 0.92rem; color: rgba(255,255,255,0.65); }
.cta-band .contact-line a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Related case studies ---- */
.related { }
.related .row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.related-card { display: block; text-decoration: none; color: var(--ink); background: var(--mist); border-radius: var(--radius); padding: 1.5rem; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.related-card .tag { font-size: 0.76rem; font-weight: 600; color: var(--purple); text-transform: uppercase; letter-spacing: 0.04em; }
.related-card h4 { font-family: var(--font-display); font-size: 1.15rem; margin: 0.4rem 0 0.3rem; }
.related-card .res { font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; }
.related-card.soon { opacity: 0.55; }

/* ---- Pagination row ---- */
.pagination { background: var(--white); border-top: 1px solid var(--line); }
.pagination .wrap { padding-block: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.9rem; }
.pagination a { text-decoration: none; color: var(--purple); font-weight: 600; display: inline-flex; align-items: center; gap: 0.4rem; }
.pagination a:hover { text-decoration: underline; }

/* ---- Floating persistent CTA ---- */
.floating-cta {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 40;
  display: inline-flex; align-items: center; gap: 0.55rem; background: var(--amber); color: var(--black);
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; text-decoration: none;
  padding: 0.85rem 1.35rem; border-radius: 999px; box-shadow: 0 14px 32px -10px rgba(255,176,32,0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.floating-cta:hover { transform: translateY(-2px) scale(1.02); }
.floating-cta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--black); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ================= FOOTER ================= */
.site-footer { background: var(--black); color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.site-footer .footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-block: 3rem 2rem; }
.site-footer .f-brand img { height: 30px; margin-bottom: 1rem; }
.site-footer .f-brand p { color: rgba(255,255,255,0.55); max-width: 34ch; font-size: 0.9rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white); }
.site-footer .f-brand .brand-name { margin-bottom: 1rem; }
.site-footer h5 { font-family: var(--font-body); color: var(--white); font-size: 0.95rem; font-weight: 600; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.65rem; }
.site-footer ul a { text-decoration: none; color: rgba(255,255,255,0.65); }
.site-footer ul a:hover { color: var(--amber); }
.site-footer .socials { display: flex; gap: 0.85rem; margin-top: 1.2rem; }
.site-footer .socials a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--white); font-size: 0.85rem; transition: background 0.15s ease, border-color 0.15s ease; }
.site-footer .socials a:hover { background: var(--amber); border-color: var(--amber); color: var(--black); }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-block: 1.2rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .split, .reel-block, .tables-grid, .site-footer .footer-top, .stat-float .grid3, .issue-grid, .big-numbers, .related-grid, .layer-grid { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 100px 1fr 55px; gap: 0.6rem; }
  .reel-block { text-align: center; }
  .site-nav .menu { display: none; }
  .subnav .wrap { gap: 1.1rem; }
  .stat-float { transform: translateY(30%); }
  .hero-spacer { height: clamp(3rem, 8vw, 4.5rem); }
  .mid-cta .wrap { flex-direction: column; align-items: flex-start; }
  .floating-cta span.label-text { display: none; }
  .big-numbers .item { border-top: none; padding-top: 0; border-left: 1px solid rgba(255,255,255,0.18); padding-left: 1.4rem; }
}

/* ---- One deliberate load animation: hero stat cards rise in ---- */
@media (prefers-reduced-motion: no-preference) {
  .stat-card { opacity: 0; transform: translateY(14px); animation: rise 0.55s ease forwards; }
  .stat-card:nth-child(1) { animation-delay: 0.1s; }
  .stat-card:nth-child(2) { animation-delay: 0.22s; }
  .stat-card:nth-child(3) { animation-delay: 0.34s; }
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
