/*
 * BLACFOX: shared design system. The single base stylesheet.
 *
 * Every page links this file first. A page that needs rules nobody else
 * needs (Method's diagrams, the Work case stats) adds one small file from
 * assets/css/pages/, which assumes this file has already loaded. Nothing in
 * a page file redefines a token or a shared component; if a rule should
 * apply site-wide it lives here, once.
 *
 * Order: tokens, base type, chrome, hero, buttons, sections and cadence,
 * proof and stats, reveal and motion, marks, transcript, meters, cards,
 * comparison, FAQ, callout, services, case study, mistakes, pull quote,
 * testimonial, carousel, article body, contact and forms, CTA, footer,
 * keyframes, responsive, reduced motion.
 */

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

/* =========================================================
   1. TOKENS
   ========================================================= */
:root{
  /* Colour */
  --ink:#0a0a0a;
  --paper:#f2efe8;
  --paper-2:#e5e2dc;
  --orange:#e95c25;
  --orange-dark:#d24f1c;
  --orange-ink:#af451c;        /* small orange text on white: passes 4.5:1 where --orange does not */
  --dark:#0a0a0a;
  --mid:#f3f0ec;
  --card:#ffffff;
  --light:#15130f;             /* heading ink */
  --muted:#5c5952;             /* body ink */
  --muted2:rgba(10,10,10,0.65);
  --border:rgba(10,10,10,0.10);
  --bg-page:#ffffff;
  --bg-alt:var(--paper);
  --grid-line:rgba(233,92,37,0.05);

  /* Layout */
  --site-px:60px;              /* single source of truth for horizontal margins */
  --site-max:1200px;           /* single content column, hero included */
  --gutter:24px;
  --sec-top:96px;
  --sec-bottom:112px;
  --radius-card:16px;
  --radius-btn:100px;

  /* Motion */
  --ease:cubic-bezier(0.22,0.61,0.36,1);
  --t-fast:180ms;
  --t-base:600ms;
  --t-slow:1200ms;
  --stagger:70ms;

  /* Meter */
  --meter-track:rgba(10,10,10,0.08);
  --meter-bench:rgba(10,10,10,0.25);
  --meter-glow:0 0 18px rgba(233,92,37,0.9);
}
@media(max-width:1024px){ :root{ --site-px:32px; --sec-top:64px; --sec-bottom:80px; } }
@media(max-width:640px) { :root{ --site-px:20px; --sec-top:48px; --sec-bottom:64px; } }

/* =========================================================
   2. BASE TYPE
   ========================================================= */
html{scroll-behavior:smooth;font-size:16px;background:#fff}

body{
  font-family:'Montserrat',sans-serif;font-size:17px;line-height:1.65;color:var(--light);
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
  padding-top:112px;padding-bottom:0;
  background-color:#fff;
}

a{color:inherit}
h1,h2,h3,h4,h5{text-wrap:pretty}
p,li,blockquote,
.card-body,.faq-a,.service-lead,.hero-sub,.hero-meta,.section-p,
.stat-label,.footer-brand p,.contact-item p,.case-stat-label,.card-title{text-wrap:pretty}

/* Measure: no paragraph spans the container */
.section-p,.section-lead,.hero-sub,.card-body,.article-body p,.article-body li,
.service-lead,.faq-a,.cta-p,.band-p{max-width:62ch}

/* Numerals that count or sit in meters never jitter */
.stat-num,.meter-num,.meter-col-num,.count,.case-stat-num,.cmp-outcome-num,.band-num,
.chart-stat-num,.ig9-stat-num,.tnum{font-variant-numeric:tabular-nums}

/* Eyebrow: the one small-caps style, reused by every label */
.eyebrow,.section-tag,.transcript-label,.transcript-attr,.hero-device-caption,.proof-attr,
.band-attr,.meter-kicker,.card-num,.service-name,.form-label,.footer-col h5,.contact-item h4{
  font-size:11px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;
}

/* Text links inside copy: hairline underline, orange line draws from the left */
.section-p a,.section-lead a,.article-body a,.faq-a a,.card-body a,.form-note a,.hero-sub a,.link{
  color:inherit;text-decoration:none;
  background-image:linear-gradient(var(--orange),var(--orange)),linear-gradient(rgba(10,10,10,0.3),rgba(10,10,10,0.3));
  background-size:0 1px,100% 1px;background-position:0 100%,0 100%;background-repeat:no-repeat;
  padding-bottom:1px;
  transition:background-size 200ms var(--ease),color 200ms var(--ease);
}
.section-p a:hover,.section-lead a:hover,.article-body a:hover,.faq-a a:hover,.card-body a:hover,
.form-note a:hover,.hero-sub a:hover,.link:hover{color:var(--orange);background-size:100% 1px,100% 1px}

/* Keyboard users are welcome */
a:focus-visible,button:focus-visible,[tabindex]:focus-visible,summary:focus-visible{
  outline:3px solid rgba(233,92,37,0.5);outline-offset:3px;
}
.skip-link{
  position:absolute;left:16px;top:-120px;z-index:2000;
  background:var(--orange);color:#fff;font-weight:700;font-size:14px;
  padding:12px 20px;border-radius:var(--radius-btn);text-decoration:none;
}
.skip-link:focus{top:16px}

/* =========================================================
   3. CHROME: header bar, grain, nav
   ========================================================= */
#header-bg{
  position:fixed;top:0;left:0;right:0;height:130px;
  background-color:#000;
  background-image:
    linear-gradient(rgba(233,92,37,0.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(233,92,37,0.04) 1px,transparent 1px);
  background-size:64px 64px;
  z-index:998;pointer-events:none;
}

/* Frosted strip behind the nav pills */
body::before{
  content:'';position:fixed;top:0;left:0;right:0;height:130px;
  background:linear-gradient(to bottom,rgba(0,0,0,0.32) 0%,rgba(0,0,0,0.12) 65%,transparent 100%);
  backdrop-filter:blur(10px) saturate(1.5) brightness(1.05);
  -webkit-backdrop-filter:blur(10px) saturate(1.5) brightness(1.05);
  z-index:999;pointer-events:none;
  border-bottom:1px solid rgba(255,255,255,0.10);
}

/* Grain overlay: the one texture, never animated */
body::after{
  content:'';position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:0.09;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size:300px 300px;
}

#bottom-nav{
  position:fixed;top:20px;left:50%;transform:translateX(-50%);
  z-index:1000;display:flex;align-items:center;gap:18px;
  animation:navSlideDown 0.9s 0.4s var(--ease) both;
  white-space:nowrap;
}

.nav-pill-glass{
  background:rgba(0,0,0,0.6);
  backdrop-filter:blur(24px) saturate(1.8) brightness(1.1);
  -webkit-backdrop-filter:blur(24px) saturate(1.8) brightness(1.1);
  border:1px solid rgba(255,255,255,0.18);border-radius:var(--radius-btn);
  box-shadow:0 8px 32px rgba(0,0,0,0.35);
}
.nav-links-pill.nav-pill-glass{border-color:rgba(233,92,37,0.6)}

.nav-logo{
  display:flex;align-items:center;justify-content:center;
  width:90px;height:90px;text-decoration:none;flex-shrink:0;
  transition:background var(--t-fast) var(--ease);
}
.nav-logo:hover{background:rgba(255,255,255,0.06);border-radius:var(--radius-btn)}
.nav-logo-svg{width:48px;height:48px;object-fit:contain;display:block}

.nav-links-pill{display:flex;align-items:center;gap:6px;padding:12px 20px;height:90px}

.nav-links-pill a{
  position:relative;text-decoration:none;font-size:15px;font-weight:500;
  color:rgba(255,255,255,0.5);padding:14px 22px;border-radius:var(--radius-btn);
  transition:color var(--t-fast) var(--ease);letter-spacing:0.01em;
}
.nav-links-pill a:hover{color:#fff}
.nav-links-pill a.active{color:#fff}
.nav-links-pill a:focus-visible{outline-offset:-3px}

/* Active underline (kept: it is good) */
.nav-links-pill a::after{
  content:'';position:absolute;bottom:9px;left:50%;
  transform:translateX(-50%) scaleX(0);width:16px;height:2px;
  border-radius:2px;background:var(--orange);
  transition:transform 0.3s var(--ease);
}
.nav-links-pill a.active::after{transform:translateX(-50%) scaleX(1)}

.nav-links-list{display:flex;align-items:center;gap:6px}

.nav-toggle{
  display:none;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;width:44px;height:44px;background:transparent;border:none;cursor:pointer;padding:0;
}
.nav-toggle-bar{width:22px;height:2px;border-radius:2px;background:#fff;transition:transform 0.25s var(--ease),opacity 0.25s var(--ease)}
.nav-toggle.open .nav-toggle-bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open .nav-toggle-bar:nth-child(2){opacity:0}
.nav-toggle.open .nav-toggle-bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* =========================================================
   4. HERO
   The hero is fixed; the page slides over it. A spacer (#hero-spacer on
   Home, #page-hero-spacer elsewhere) reserves its height, synced by the page
   script. Dark hero: body.theme-hero-dark. Paper hero: default.
   The !important flags override inline position/min-height/overflow that
   legacy markup carries on the section and the split.
   ========================================================= */
#hero,.page-hero,.hero-section{
  position:fixed !important;top:0 !important;left:0 !important;
  width:100% !important;height:auto !important;min-height:0 !important;
  z-index:0;padding-top:130px !important;overflow:visible !important;
  background-color:var(--paper-2) !important;
}
#hero{padding-top:112px !important;overflow:hidden !important}

body.theme-hero-dark #hero,
body.theme-hero-dark .page-hero,
body.theme-hero-dark .hero-section{background-color:#000 !important}

#hero-spacer{height:100vh}

/* Everything after the hero scrolls over it: opaque, no grid (the grid lives
   on heroes, the dark band and the CTA only) */
#page-content,.other-page-content{position:relative;z-index:1;background:#fff}

.hero-bg-grid{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}

/* The split: 7/12 headline, 5/12 device, both on the 1200px column */
.hero-split{
  position:relative;z-index:1;
  display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:center;text-align:left;
  width:100%;max-width:var(--site-max) !important;margin:0 auto;
  min-height:0 !important;
  padding:56px var(--site-px) 88px !important;
}
/* Grid items default to min-width:auto, so a wide image in the device column
   would size the track by its intrinsic width and push the text off screen */
.hero-split > *,.band-split > *{min-width:0}
.hero-section > .section-inner{position:relative;z-index:1;padding-top:56px;padding-bottom:88px}

.hero-title{
  font-size:clamp(36px,4.3vw,60px);font-weight:800;line-height:1.02;
  letter-spacing:-0.035em;text-wrap:pretty;
  animation:fadeSlideUp 0.9s 0.15s var(--ease) both;
}
.hero-title .line{display:block;overflow:hidden;padding-bottom:0.16em;margin-bottom:-0.16em}
.hero-title .word{display:inline-block;animation:revealWord 0.8s var(--ease) both}
.hero-title .word:nth-child(2){animation-delay:0.1s}
.hero-title .word:nth-child(3){animation-delay:0.2s}
.hero-title em{font-style:italic;font-weight:800;color:var(--orange)}

.hero-sub{
  font-size:19px;font-weight:400;line-height:1.6;color:var(--muted);
  margin:24px 0 40px;
  animation:fadeSlideUp 0.9s 0.4s var(--ease) both;
}
.hero-sub strong{font-weight:700;color:var(--light)}

.hero-ctas{display:flex;gap:14px;flex-wrap:wrap;animation:fadeSlideUp 0.9s 0.55s var(--ease) both}

.hero-meta{
  font-size:13px;font-weight:500;color:var(--muted);margin-top:18px;letter-spacing:0.02em;
  animation:fadeSlideUp 0.9s 0.65s var(--ease) both;
}

/* The device column: holds a .transcript or another device */
.hero-device{position:relative;animation:fadeSlideUp var(--t-base) 0.5s var(--ease) both}
.hero-device-caption{margin-top:16px;color:var(--muted)}

/* Hero text tones: paper by default, white on dark */
#hero .hero-title,.page-hero .hero-title,.hero-section .hero-title,
.hero-section .section-h{color:#111}
#hero .hero-sub,.page-hero .hero-sub,.hero-section .hero-sub,
.hero-section .section-p,.hero-section .section-tag{color:rgba(0,0,0,0.62)}
.hero-section .section-tag{color:var(--orange-ink)}
#hero .hero-sub strong,.page-hero .hero-sub strong,.hero-section .hero-sub strong{color:#111}
#hero .hero-meta,.page-hero .hero-meta,.hero-section .hero-meta,
#hero .hero-device-caption,.page-hero .hero-device-caption,.hero-section .hero-device-caption{color:rgba(0,0,0,0.55)}
#hero .hero-title em,.page-hero .hero-title em,.hero-section .hero-title em,.hero-section .section-h em{color:var(--orange)}

body.theme-hero-dark #hero .hero-title,
body.theme-hero-dark .page-hero .hero-title,
body.theme-hero-dark .hero-section .hero-title,
body.theme-hero-dark .hero-section .section-h{color:#fff}
body.theme-hero-dark #hero .hero-sub,
body.theme-hero-dark .page-hero .hero-sub,
body.theme-hero-dark .hero-section .hero-sub,
body.theme-hero-dark .hero-section .section-p{color:rgba(255,255,255,0.68)}
body.theme-hero-dark .hero-section .section-tag{color:var(--orange)}
body.theme-hero-dark #hero .hero-sub strong,
body.theme-hero-dark .page-hero .hero-sub strong,
body.theme-hero-dark .hero-section .hero-sub strong{color:#fff}
body.theme-hero-dark #hero .hero-meta,
body.theme-hero-dark .page-hero .hero-meta,
body.theme-hero-dark .hero-section .hero-meta,
body.theme-hero-dark #hero .hero-device-caption,
body.theme-hero-dark .page-hero .hero-device-caption,
body.theme-hero-dark .hero-section .hero-device-caption{color:rgba(255,255,255,0.55)}

/* Legacy quote panel (still in the CMS vocabulary). Replaced by .transcript
   in the new heroes; kept so older markup renders. */
.hero-quote-panel{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius-card);
  padding:32px;display:flex;flex-direction:column;gap:20px;
  animation:fadeSlideUp 0.9s 0.5s var(--ease) both;
}
.hero-quote-panel blockquote{font-size:15px;line-height:1.7;color:var(--light);font-style:normal}
.hero-quote-panel blockquote em{font-style:italic;color:var(--orange);font-weight:700}
.hero-attribution{font-size:11px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--orange-ink)}
.hero-quote-panel.is-placeholder{
  align-items:center;justify-content:center;text-align:center;min-height:320px;gap:14px;color:var(--muted);
  border:2px dashed rgba(233,92,37,0.35);background:rgba(233,92,37,0.04);
}
.hero-quote-panel.is-placeholder svg{opacity:0.55}
.hero-quote-panel.is-placeholder span{font-size:11px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase}
.hero-quote-panel.has-image{padding:0;background:transparent;border:none;display:flex;align-items:center;justify-content:center;height:320px}
.hero-quote-panel.has-image.size-sm{height:180px}
.hero-quote-panel.has-image.size-lg{height:480px}
.hero-quote-panel.has-image img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}

/* =========================================================
   5. BUTTONS: one primary, one secondary
   Markup: <a class="btn-primary" href="…">Label <span class="btn-arrow" aria-hidden="true">→</span></a>
   ========================================================= */
.btn-primary,.btn-ghost,.btn-white{
  display:inline-flex;align-items:center;gap:10px;
  font-family:inherit;font-size:15px;font-weight:700;line-height:1.2;letter-spacing:0.005em;
  padding:16px 30px;border-radius:var(--radius-btn);text-decoration:none;cursor:pointer;
  transition:background var(--t-fast) var(--ease),color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease);
  -webkit-appearance:none;appearance:none;
}
.btn-primary,.btn-white{background:var(--orange);color:#fff;border:1px solid var(--orange)}
.btn-primary:hover,.btn-white:hover{background:var(--orange-dark);border-color:var(--orange-dark);color:#fff}

.btn-ghost{background:transparent;color:var(--light);border:1px solid rgba(10,10,10,0.25);font-weight:600}
.btn-ghost:hover{color:var(--orange);border-color:var(--orange)}

/* Secondary on dark grounds */
body.theme-hero-dark #hero .btn-ghost,
body.theme-hero-dark .page-hero .btn-ghost,
body.theme-hero-dark .hero-section .btn-ghost,
.band-dark .btn-ghost,.transcript--dark .btn-ghost,footer .btn-ghost{color:#fff;border-color:rgba(255,255,255,0.35)}
body.theme-hero-dark #hero .btn-ghost:hover,
body.theme-hero-dark .page-hero .btn-ghost:hover,
body.theme-hero-dark .hero-section .btn-ghost:hover,
.band-dark .btn-ghost:hover,.transcript--dark .btn-ghost:hover,footer .btn-ghost:hover{color:var(--orange);border-color:var(--orange)}

.btn-primary:focus-visible,.btn-ghost:focus-visible,.btn-white:focus-visible{
  outline:none;box-shadow:0 0 0 3px rgba(233,92,37,0.3);
}

/* The trailing arrow nudges 4px right */
.btn-arrow{display:inline-block;transition:transform var(--t-fast) var(--ease)}
.btn-primary:hover .btn-arrow,.btn-ghost:hover .btn-arrow,.btn-white:hover .btn-arrow,
.btn-primary:hover > svg:last-child,.btn-ghost:hover > svg:last-child,.btn-white:hover > svg:last-child{transform:translateX(4px)}
.btn-primary > svg,.btn-ghost > svg,.btn-white > svg{transition:transform var(--t-fast) var(--ease);flex-shrink:0}

/* =========================================================
   6. SECTIONS AND CADENCE
   No dividers between sections. Tone does the work:
   hero, white, black band, paper, white, CTA paper-2, black footer.
   ========================================================= */
section{position:relative;overflow:clip}

.section-inner{max-width:var(--site-max);margin:0 auto;padding:var(--sec-top) var(--site-px) var(--sec-bottom)}

.section-tag{display:inline-flex;align-items:center;gap:8px;color:var(--orange-ink);margin-bottom:20px}
.section-tag::before{content:'';display:block;width:20px;height:1.5px;background:var(--orange)}

.section-h{
  font-size:clamp(30px,3.8vw,54px);font-weight:800;letter-spacing:-0.03em;
  line-height:1.02;margin-bottom:20px;color:var(--light);
}
.section-h em{font-style:italic;font-weight:800;color:var(--orange)}

.section-lead{font-size:19px;font-weight:400;line-height:1.6;color:var(--muted);margin-bottom:20px}
.section-p{font-size:17px;color:var(--muted);line-height:1.65}
.section-p + .section-p{margin-top:16px}
.section-h + .section-lead,.section-h + .section-p{margin-top:0}

/* Section tones */
.section-light,.bg-white{background:var(--bg-page)}
.section-light .section-h{color:var(--dark)}
.section-mid{background:transparent;box-shadow:none}
.bg-paper,.bg-grey{background:var(--paper)}
.bg-paper .card,.bg-grey .card{background:#fff}
.bg-paper .panel,.bg-grey .panel{background:#fff}

/* The dark band: black, grid with a radial spotlight, one large quote and one number */
.band-dark{
  position:relative;isolation:isolate;overflow:clip;
  background:var(--ink);color:#fff;
  border-top:1px solid rgba(233,92,37,0.3);border-bottom:1px solid rgba(233,92,37,0.3);
}
.band-dark::before{
  content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:
    linear-gradient(rgba(233,92,37,0.12) 1px,transparent 1px),
    linear-gradient(90deg,rgba(233,92,37,0.12) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 62% 72% at 50% 50%,#000 0%,rgba(0,0,0,0.55) 50%,transparent 100%);
  mask-image:radial-gradient(ellipse 62% 72% at 50% 50%,#000 0%,rgba(0,0,0,0.55) 50%,transparent 100%);
}
/* The hero grid canvas is allowed inside the band; it gets the same spotlight */
.band-dark .hero-bg-grid{
  z-index:-1;
  -webkit-mask-image:radial-gradient(ellipse 62% 72% at 50% 50%,#000 0%,rgba(0,0,0,0.55) 50%,transparent 100%);
  mask-image:radial-gradient(ellipse 62% 72% at 50% 50%,#000 0%,rgba(0,0,0,0.55) 50%,transparent 100%);
}
.band-dark .section-tag{color:var(--orange)}
.band-dark .section-h,.band-dark .card-title,.band-dark .faq-q{color:#fff}
.band-dark .section-p,.band-dark .section-lead,.band-dark .card-body,.band-dark .faq-a,.band-dark .band-p{color:rgba(255,255,255,0.68)}
.band-dark .card{background:transparent;border-color:rgba(255,255,255,0.15)}
.band-dark .panel{background:rgba(255,255,255,0.06)}
.band-dark .meter-label,.band-dark .meter-source{color:rgba(255,255,255,0.6)}
.band-dark .meter-track{background:rgba(255,255,255,0.12)}
.band-dark .meter-bench .meter-num{color:rgba(255,255,255,0.6)}
.band-dark .meter-bench .meter-fill,.band-dark .meter-bench .meter-dot{background:rgba(255,255,255,0.35)}

.band-split{display:grid;grid-template-columns:7fr 5fr;gap:48px;align-items:end}
.band-quote{
  font-size:clamp(28px,3.2vw,44px);font-weight:600;font-style:italic;line-height:1.2;
  letter-spacing:-0.01em;color:#fff;max-width:26ch;text-wrap:pretty;
}
.band-quote em{font-style:italic;color:var(--orange)}
.band-attr{color:rgba(255,255,255,0.55);margin-top:24px}
.band-num{font-size:clamp(44px,4.5vw,56px);font-weight:800;letter-spacing:-0.03em;line-height:1;color:#fff}
.band-num em{font-style:italic;color:var(--orange)}
.band-num-label{font-size:14px;font-weight:500;color:rgba(255,255,255,0.6);margin-top:12px;line-height:1.5}
.band-p{font-size:17px;line-height:1.65;margin-top:20px}

/* Chart pair grid: 2 cols desktop, stacked on phone */
.chart-pair{display:grid;grid-template-columns:1fr 1fr;gap:var(--gutter);margin-top:56px}

/* PMF wave wrapper matches the content column */
.pmf-wave-pad{max-width:var(--site-max);margin:0 auto;padding:0 var(--site-px)}

/* =========================================================
   7. PROOF STRIP, STATS, TRUST BAR
   ========================================================= */
/* Three short verbatim fragments in the buyer's words (or three logos) */
.proof-strip{
  max-width:var(--site-max);margin:0 auto;padding:48px var(--site-px);
  display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gutter);
}
.proof-item{padding:6px 0 6px 24px;border-left:1px solid var(--border)}
.proof-quote{font-size:17px;font-weight:600;font-style:italic;line-height:1.45;color:var(--light);text-wrap:pretty}
.proof-quote::before{content:'\201C';color:var(--orange);margin-right:1px}
.proof-quote::after{content:'\201D';color:var(--orange);margin-left:1px}
.proof-attr{color:var(--muted);margin-top:12px;font-size:10px}
.proof-item img{display:block;max-height:36px;width:auto;opacity:0.85}

.stats-section{background:transparent;padding:56px var(--site-px);box-shadow:none}
.stats-inner{max-width:var(--site-max);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gutter)}
.stat-item{text-align:center}
.stat-num{font-size:clamp(30px,2.9vw,42px);font-weight:800;letter-spacing:-0.03em;color:var(--light);line-height:1}
.stat-num em{font-style:italic;color:var(--orange)}
.stat-label{font-size:14px;font-weight:500;color:var(--muted);margin-top:10px;line-height:1.5}

.trust-bar{padding:28px var(--site-px);display:flex;align-items:center;justify-content:center;background:var(--paper)}
.trust-label{font-size:12px;font-weight:600;letter-spacing:0.1em;color:var(--muted)}

/* =========================================================
   8. REVEAL AND MOTION
   Reveal once: the observer adds .visible and unobserves.
   ========================================================= */
.reveal,.reveal-left,.reveal-right,.reveal-scale{
  opacity:0;transition:opacity var(--t-base) var(--ease),transform var(--t-base) var(--ease);
}
.reveal{transform:translateY(24px)}
.reveal-left{transform:translateX(-24px)}
.reveal-right{transform:translateX(24px)}
.reveal-scale{transform:scale(0.96)}
.reveal.visible,.reveal-left.visible,.reveal-right.visible,.reveal-scale.visible{opacity:1;transform:none}

.stagger>*{opacity:0;transform:translateY(24px);transition:opacity var(--t-base) var(--ease),transform var(--t-base) var(--ease)}
.stagger.visible>*{opacity:1;transform:none}
.stagger.visible>*:nth-child(2){transition-delay:calc(var(--stagger) * 1)}
.stagger.visible>*:nth-child(3){transition-delay:calc(var(--stagger) * 2)}
.stagger.visible>*:nth-child(4){transition-delay:calc(var(--stagger) * 3)}
.stagger.visible>*:nth-child(5){transition-delay:calc(var(--stagger) * 4)}
.stagger.visible>*:nth-child(6){transition-delay:calc(var(--stagger) * 5)}
.stagger.visible>*:nth-child(7){transition-delay:calc(var(--stagger) * 6)}
.stagger.visible>*:nth-child(n+8){transition-delay:calc(var(--stagger) * 7)}

/* Without JavaScript nothing is hidden (add class="no-js" to <html>, removed by script) */
html.no-js .reveal,html.no-js .reveal-left,html.no-js .reveal-right,html.no-js .reveal-scale,html.no-js .stagger>*{opacity:1;transform:none}

/* Numbers count up once when visible (JS reads data-to); the CSS only pins the width */
.count{display:inline-block}

/* =========================================================
   9. MARKS: the listener's pen
   One hand, 3.5px round caps, orange on paper and white, white on black.
   Markup: <span class="strike">assumed<svg class="mark mark--strike" viewBox="0 0 300 22"
   preserveAspectRatio="none" aria-hidden="true"><use href="#mark-strike"/></svg></span> <em>heard</em>
   Symbols live in partials/head.html. --mark-len must be at least the
   symbol path length in its own units (set --mark-len:100 if the symbol
   path carries pathLength="100"). Draws when an ancestor gets .visible; in
   the hero it draws after the headline lands; in body copy it redraws on hover.
   ========================================================= */
.strike,.hero-strike{position:relative;display:inline-block}

.mark{
  position:absolute;overflow:visible;pointer-events:none;
  fill:none;stroke:var(--mark-colour,var(--orange));stroke-width:3.5;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:var(--mark-len,480);stroke-dashoffset:var(--mark-len,480);
}
.mark--strike{left:-6px;top:50%;width:calc(100% + 12px);height:22px;transform:translateY(-38%);--mark-len:320}
.mark--underline{left:-4px;bottom:-0.2em;width:calc(100% + 8px);height:0.32em;--mark-len:320}
.mark--circle{left:-0.45em;top:-0.28em;width:calc(100% + 0.9em);height:calc(100% + 0.56em);--mark-len:900}
.mark--bracket{left:-28px;top:0;width:14px;height:100%;--mark-len:640}
.mark--tick{position:static;display:inline-block;width:22px;height:22px;vertical-align:-4px;margin-right:12px;flex-shrink:0;--mark-len:80}

.visible .mark,.mark.visible{animation:markDraw 550ms var(--ease) 300ms forwards}
.hero-title .mark,.hero-device .mark,.transcript.is-done .mark,.transcript.is-typed .mark{animation:markDraw 550ms var(--ease) 1.4s forwards}
.transcript.is-done .mark,.transcript.is-typed .mark{animation-delay:200ms}
.strike:hover .mark{animation:markRedraw 550ms var(--ease) forwards}

/* Colour by ground */
body.theme-hero-dark #hero,
body.theme-hero-dark .page-hero,
body.theme-hero-dark .hero-section,
.band-dark,.transcript--dark,footer{--mark-colour:#fff}
.transcript,.card,.panel,.bg-white,.bg-paper,.bg-grey{--mark-colour:var(--orange)}

/* The legacy inline strike path on Home keeps working and follows the same rules */
.strike-svg{
  position:absolute;left:-6px;top:50%;width:calc(100% + 12px);height:22px;
  transform:translateY(-38%);overflow:visible;pointer-events:none;
}
.strike-svg path{
  stroke:var(--mark-colour,var(--orange));fill:none;stroke-width:3.5;stroke-linecap:round;
  stroke-dasharray:420;stroke-dashoffset:420;
  animation:drawStrike 550ms var(--ease) 1.4s forwards;
}

/* =========================================================
   10. TRANSCRIPT PANEL
   A plain paper card on dark grounds; .transcript--dark for paper and white
   grounds. Content comes from data-label, data-quote and data-attr on the
   panel; the script types the quote at 40 characters a second and toggles
   .is-typing then .is-done. Without JS the full text in .transcript-text shows.
   ========================================================= */
.transcript{
  position:relative;background:var(--paper);color:var(--light);
  border-radius:var(--radius-card);padding:32px;border:0;
}
.transcript--dark{background:var(--ink);color:#fff}

.transcript-label{color:var(--orange-ink);margin-bottom:18px}
.transcript--dark .transcript-label{color:var(--orange)}

.transcript-text{
  font-size:clamp(19px,1.7vw,24px);font-weight:600;line-height:1.4;letter-spacing:-0.01em;
  min-height:2.8em;color:inherit;text-wrap:pretty;
}
.transcript-text em{font-style:italic;color:var(--orange)}

.transcript-cursor{
  display:inline-block;width:10px;height:10px;border-radius:50%;
  background:var(--orange);margin-left:8px;vertical-align:0.05em;
  box-shadow:0 0 8px rgba(233,92,37,0.5);
}
.transcript.is-typing .transcript-cursor{animation:cursorPulse 0.9s ease-in-out infinite;box-shadow:var(--meter-glow)}
.transcript.is-done .transcript-cursor,.transcript.is-typed .transcript-cursor{animation:none;opacity:1}

.transcript-attr{color:var(--muted);margin-top:22px;font-size:10px}
.transcript--dark .transcript-attr{color:rgba(255,255,255,0.55)}

/* =========================================================
   11. METERS: the one chart language
   Hairline track, orange fill, glowing end dot, number large at the row
   head, label small, benchmark in ink at 25%, source line in 9px caps.
   Markup:
   <div class="meter">
     <p class="meter-kicker">Pipeline performance</p>
     <p class="meter-heading">Pipeline ACV return on campaign spend</p>
     <div class="meter-row" style="--value:100">
       <div class="meter-head"><span class="meter-label">Blacfox portfolio average (n=11)</span><span class="meter-num">10:1</span></div>
       <div class="meter-track"><div class="meter-fill"></div><div class="meter-dot"></div></div>
     </div>
     <div class="meter-row meter-bench" style="--value:30">…</div>
     <p class="meter-source">Source: …</p>
   </div>
   --value is a unitless percentage (72, not 72%). Fills animate once when
   an ancestor gets .visible.
   ========================================================= */
.meter{position:relative}
.meter-kicker{color:var(--orange-ink);margin-bottom:6px}
.meter-heading{font-size:15px;font-weight:700;color:var(--light);line-height:1.3;margin-bottom:32px}
.meter-row{position:relative}
.meter-row + .meter-row{margin-top:32px}
.meter-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:12px}
.meter-label{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:0.01em}
.meter-num{font-size:34px;font-weight:900;color:var(--orange);letter-spacing:-0.03em;line-height:1;white-space:nowrap}
.meter-track{position:relative;height:2px;background:var(--meter-track);border-radius:2px;overflow:visible}
.meter-fill{
  position:absolute;left:0;top:0;height:100%;width:0;border-radius:2px;
  background:linear-gradient(to right,var(--orange) 70%,rgba(233,92,37,0.55) 100%);
  box-shadow:0 0 10px rgba(233,92,37,0.35);
  transition:width var(--t-slow) var(--ease) 200ms;
}
.meter-dot{
  position:absolute;top:50%;left:0;width:12px;height:12px;border-radius:50%;
  background:var(--orange);box-shadow:var(--meter-glow);
  transform:translate(-50%,-50%);opacity:0;
  transition:left var(--t-slow) var(--ease) 200ms,opacity var(--t-fast) var(--ease) calc(var(--t-slow) + 200ms);
}
.visible .meter-fill,.meter.visible .meter-fill{width:calc(var(--value,0) * 1%)}
.visible .meter-dot,.meter.visible .meter-dot{left:calc(var(--value,0) * 1%);opacity:1}

/* Benchmark row: thinner, quieter, never orange */
.meter-bench .meter-num{font-size:24px;font-weight:700;color:var(--muted2)}
.meter-bench .meter-track{height:1px}
.meter-bench .meter-fill{background:var(--meter-bench);box-shadow:none;border-radius:1px}
.meter-bench .meter-dot{width:7px;height:7px;background:var(--meter-bench);box-shadow:none}

.meter-source{font-size:9px;font-weight:500;letter-spacing:0.08em;text-transform:uppercase;color:var(--muted);margin-top:28px;line-height:1.5}

/* Vertical variant for before/after: bars on a hairline baseline, values above, no axis */
.meter-cols{display:flex;align-items:flex-end;justify-content:center;gap:40px;height:200px;border-bottom:1px solid var(--meter-track);padding:0 8px}
.meter-col{flex:0 1 96px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}
.meter-col-num{font-size:24px;font-weight:800;letter-spacing:-0.03em;line-height:1;color:var(--muted2);margin-bottom:12px}
.meter-col-fill{
  width:100%;max-width:64px;height:0;border-radius:2px 2px 0 0;background:var(--meter-bench);
  transition:height var(--t-slow) var(--ease) 200ms;
}
.visible .meter-col-fill{height:calc(var(--value,0) * 1%)}
.meter-col.is-orange .meter-col-num{color:var(--orange)}
.meter-col.is-orange .meter-col-fill{background:var(--orange);box-shadow:0 0 14px rgba(233,92,37,0.35)}
.meter-col-label{font-size:12px;font-weight:500;color:var(--muted);margin-top:12px;text-align:center;line-height:1.4}
.meter-cols + .meter-col-labels{display:flex;justify-content:center;gap:40px;padding:0 8px}
.meter-col-labels > *{flex:0 1 96px;text-align:center;font-size:12px;font-weight:500;color:var(--muted);margin-top:12px}

/* Arc ring variant for shares and durations. --arc-len is the circumference,
   --arc-target the final dashoffset (circumference minus the share). */
.meter-arc{display:block;margin:0 auto;overflow:visible}
.meter-arc-track{fill:none;stroke:var(--meter-track);stroke-width:2}
.meter-arc-fill{
  fill:none;stroke:var(--orange);stroke-width:2.5;stroke-linecap:round;
  stroke-dasharray:var(--arc-len,490);stroke-dashoffset:var(--arc-len,490);
  filter:drop-shadow(0 0 10px rgba(233,92,37,0.35));
  transition:stroke-dashoffset var(--t-slow) var(--ease) 200ms;
}
.visible .meter-arc-fill{stroke-dashoffset:var(--arc-target,0)}
.meter-arc-dot{fill:var(--orange);opacity:0;filter:drop-shadow(0 0 18px rgba(233,92,37,0.9));transition:opacity var(--t-fast) var(--ease) calc(var(--t-slow) + 200ms)}
.visible .meter-arc-dot{opacity:1}
.meter-arc-num{font-size:32px;font-weight:900;fill:var(--orange);font-family:'Montserrat',sans-serif;letter-spacing:-0.02em}
.meter-legend{display:flex;gap:20px;justify-content:center;margin-top:14px;flex-wrap:wrap}
.meter-legend > *{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}
.meter-legend i{display:block;width:8px;height:8px;border-radius:50%;background:var(--meter-bench);flex-shrink:0}
.meter-legend .is-orange i{background:var(--orange);box-shadow:0 0 8px rgba(233,92,37,0.6)}

/* Legacy chart classes (Home charts and the CMS chart component) keep working.
   They play their keyframes on arrival; the page script replays them. */
.chart-stat-row{position:relative}
.chart-stat-desc{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:0.01em}
.chart-stat-fill{position:absolute;left:0;top:0;height:100%}
.chart-stat-dot{position:absolute;top:50%}
.chart-arc-panel{display:block;margin:0 auto;overflow:visible}
.chart-arc-text{font-family:'Montserrat',sans-serif}
.bar-blacfox{
  position:absolute;left:0;top:0;height:100%;width:0;border-radius:2px;
  background:linear-gradient(to right,var(--orange) 70%,rgba(233,92,37,0.55) 100%);
  box-shadow:0 0 10px rgba(233,92,37,0.35);
  animation:barGrow 1.5s var(--ease) 0.4s forwards;
}
.bar-dot-blacfox{
  position:absolute;right:0;top:50%;transform:translateY(-50%);
  width:12px;height:12px;border-radius:50%;background:var(--orange);
  box-shadow:var(--meter-glow),0 0 6px rgba(233,92,37,1);
  opacity:0;animation:dotFade 0.2s ease 1.85s forwards;
}
.bar-bench{
  position:absolute;left:0;top:0;height:100%;width:0;border-radius:1px;
  background:var(--meter-bench);
  animation:benchGrow 1.3s var(--ease) 0.6s forwards;
}
.bar-dot-bench{
  position:absolute;left:30%;top:50%;transform:translateX(-50%) translateY(-50%);
  width:7px;height:7px;border-radius:50%;background:var(--meter-bench);
  opacity:0;animation:dotFade 0.2s ease 1.75s forwards;
}
.arc-fill{
  stroke-dasharray:490;stroke-dashoffset:490;
  animation:arcGrow 1.5s var(--ease) 0.4s forwards;
  filter:drop-shadow(0 0 10px rgba(233,92,37,0.35));
}
#arcDotEnd{
  opacity:0;animation:arcDotFade 0.2s ease 1.85s forwards;
  filter:drop-shadow(0 0 18px rgba(233,92,37,0.9)) drop-shadow(0 0 6px rgba(233,92,37,1));
}

/* =========================================================
   12. CARDS AND PANELS
   .card: white, 1px border, 16px radius, 32px padding. .panel: paper, no border.
   Static cards have no hover. Interactive cards (a.card, .card.is-link,
   .article-card) warm the border to orange 40% and move the arrow 4px. No lift.
   ========================================================= */
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);padding:32px;position:relative}
.panel{background:var(--paper);border:0;border-radius:var(--radius-card);padding:32px;position:relative}

a.card,.card.is-link,a.dark-card,.dark-card.is-link,.article-card{
  display:block;text-decoration:none;color:inherit;
  transition:border-color var(--t-fast) var(--ease);
}
a.card:hover,.card.is-link:hover,a.dark-card:hover,.dark-card.is-link:hover,.article-card:hover{border-color:rgba(233,92,37,0.4)}

.card-arrow{
  position:absolute;right:28px;bottom:26px;color:var(--orange);font-size:18px;line-height:1;
  transition:transform var(--t-fast) var(--ease);
}
a.card:hover .card-arrow,.card.is-link:hover .card-arrow,a.dark-card:hover .card-arrow,
.dark-card.is-link:hover .card-arrow,.article-card:hover .card-arrow{transform:translateX(4px)}
.card.has-arrow,.dark-card.has-arrow{padding-bottom:56px}

.card-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gutter);margin-top:56px}
.card-grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gutter);margin-top:56px}

/* .dark-card is the historical name of the white content card; same spec as .card */
.dark-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);
  padding:32px;position:relative;overflow:hidden;cursor:default;box-shadow:none;
}
a.dark-card,.dark-card.is-link{cursor:pointer}

.card-num{color:var(--orange-ink);margin-bottom:16px}
.card-title{font-size:20px;font-weight:700;letter-spacing:-0.01em;line-height:1.25;margin-bottom:10px;color:var(--light)}
.card-body{font-size:15px;color:var(--muted);line-height:1.6}

.glass-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:none}
.biz-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card)}
.text-card-stack{display:flex;flex-direction:column;gap:16px}

/* Article and case study cards (grids and the featured carousel) */
.article-card{overflow:hidden}
.article-card-thumb{
  aspect-ratio:16/9;margin:-33px -33px 20px;border-radius:var(--radius-card) var(--radius-card) 0 0;
  overflow:hidden;background-color:#000;
  background-image:
    linear-gradient(rgba(233,92,37,0.15) 1px,transparent 1px),
    linear-gradient(90deg,rgba(233,92,37,0.15) 1px,transparent 1px);
  background-size:32px 32px;
}
.article-card-thumb img{width:100%;height:100%;object-fit:contain;display:block}

/* =========================================================
   13. COMPARISON (agency versus Blacfox). Stays as designed on Home.
   ========================================================= */
.compare-infographic{display:grid;grid-template-columns:1fr 1fr;gap:var(--gutter);margin-top:56px}
.cmp-col{padding:40px 36px;display:flex;flex-direction:column;border-radius:var(--radius-card);background:#fff;border:1px solid var(--border)}
.cmp-col.bad{border-color:var(--border)}
.cmp-col.good{border-color:var(--orange)}
.cmp-col-label{font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;margin-bottom:20px;color:var(--muted2)}
.cmp-col.good .cmp-col-label{color:var(--orange-ink)}
.cmp-col-title{font-size:22px;font-weight:900;letter-spacing:-0.02em;margin-bottom:32px;color:var(--light)}
.cmp-steps{display:flex;flex-direction:column}
.cmp-step{display:flex;align-items:flex-start;gap:16px;padding:18px 0;border-bottom:1px solid var(--border)}
.cmp-step:last-child{border-bottom:none}
.cmp-step-num{font-size:10px;font-weight:800;letter-spacing:0.12em;width:24px;flex-shrink:0;padding-top:2px;color:var(--muted2)}
.cmp-col.good .cmp-step-num{color:var(--orange-ink)}
.cmp-step-text{font-size:15px;font-weight:700;color:var(--light)}
.cmp-step-sub{font-size:12px;color:var(--muted);margin-top:3px;font-weight:500}
.cmp-step-icon{font-size:14px;margin-left:auto;flex-shrink:0}
.cmp-dead-end{margin-top:32px;padding:18px 22px;background:var(--paper);border-radius:10px;border:1px solid var(--border);font-size:13px;color:var(--muted2);font-style:italic}
.cmp-outcome{margin-top:32px;padding:20px 22px;background:transparent;border-radius:10px;border:1px solid var(--orange);font-size:13px;color:var(--light);font-weight:700}
.cmp-outcome-num{font-size:28px;font-weight:900;letter-spacing:-0.02em;color:var(--orange-ink)}

/* =========================================================
   14. FAQ (plus rotates to a cross; wired in nav.js)
   ========================================================= */
.faq-list{display:flex;flex-direction:column;gap:12px;margin-top:56px}
.faq-item{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);
  padding:28px 32px;transition:border-color var(--t-fast) var(--ease);cursor:pointer;user-select:none;
}
.faq-item:hover{border-color:rgba(233,92,37,0.4)}
.faq-item.open{border-color:rgba(233,92,37,0.5)}
.faq-q{
  font-size:17px;font-weight:700;color:var(--light);
  display:flex;justify-content:space-between;align-items:flex-start;gap:16px;
  margin-bottom:0;transition:margin-bottom 0.25s var(--ease);
}
.faq-item.open .faq-q{margin-bottom:14px}
.faq-q::after{
  content:'+';flex-shrink:0;width:24px;height:24px;border-radius:50%;
  background:rgba(233,92,37,0.12);border:1px solid rgba(233,92,37,0.3);color:var(--orange);
  display:inline-flex;align-items:center;justify-content:center;
  font-size:16px;font-weight:400;line-height:1;margin-top:1px;
  transition:transform 0.35s var(--ease),background var(--t-fast),border-color var(--t-fast),color var(--t-fast);
}
.faq-item.open .faq-q::after{transform:rotate(45deg);background:var(--orange);border-color:var(--orange);color:#fff}
.faq-a{
  font-size:15px;color:var(--muted);line-height:1.7;
  max-height:0;overflow:hidden;opacity:0;
  transition:max-height 0.45s var(--ease),opacity 0.3s var(--ease);
}
.faq-item.open .faq-a{max-height:800px;opacity:1}

/* =========================================================
   15. CALLOUT
   ========================================================= */
.callout-box{
  border:1px solid rgba(233,92,37,0.35);border-radius:var(--radius-card);padding:28px 32px;
  background:rgba(233,92,37,0.07);margin:32px 0;box-shadow:none;
}
.callout-box p{font-size:19px;font-weight:700;color:var(--light);line-height:1.5;max-width:62ch}
.callout-box p em{font-style:italic;color:var(--orange)}

/* =========================================================
   16. SERVICES
   ========================================================= */
.service-card{
  background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);
  padding:40px;margin-bottom:var(--gutter);
}
.service-name{color:var(--orange-ink);margin-bottom:16px}
.service-headline{font-size:clamp(22px,2.2vw,30px);font-weight:800;letter-spacing:-0.02em;color:var(--light);margin-bottom:16px;line-height:1.1}
.service-headline em{font-style:italic;color:var(--orange)}
.service-lead{font-size:17px;color:var(--muted);line-height:1.65;margin-bottom:32px}
.service-meta{font-size:11px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--orange-ink);padding-top:24px;border-top:1px solid var(--border);margin-top:32px}
.service-includes-title{font-size:11px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted);margin-bottom:16px;margin-top:28px}
.service-list{list-style:none;display:flex;flex-direction:column;gap:10px}
.service-list li{font-size:15px;color:var(--muted);padding-left:22px;position:relative;line-height:1.5}
.service-list li::before{content:'';position:absolute;left:0;top:0.7em;width:12px;height:1.5px;background:var(--orange)}

/* =========================================================
   17. CASE STUDY
   ========================================================= */
.case-study-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);overflow:hidden;margin-top:56px}
.case-study-body{padding:40px}
.case-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(233,92,37,0.1);border:1px solid rgba(233,92,37,0.3);
  border-radius:var(--radius-btn);padding:6px 14px;font-size:11px;font-weight:700;
  letter-spacing:0.08em;text-transform:uppercase;color:var(--orange-ink);margin-bottom:24px;
}
.case-headline{font-size:clamp(22px,2.8vw,34px);font-weight:800;letter-spacing:-0.02em;line-height:1.1;color:var(--light);margin-bottom:24px}
.case-headline em{font-style:italic;color:var(--orange)}
.case-meta{font-size:13px;color:var(--muted);margin-bottom:8px;font-weight:500;text-transform:uppercase;letter-spacing:0.08em}
.case-stats-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gutter);
  padding:36px 40px;border-top:1px solid var(--border);background:var(--paper);
}
.case-stat-num{font-size:28px;font-weight:800;letter-spacing:-0.03em;color:var(--orange);line-height:1;margin-bottom:6px}
.case-stat-label{font-size:13px;color:var(--muted);line-height:1.4}

/* =========================================================
   18. MISTAKES GRID, PULL QUOTE, TESTIMONIAL
   ========================================================= */
.mistakes-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:56px}
.mistake-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);padding:28px 24px;position:relative;overflow:clip;box-shadow:none}
.mistake-num{font-size:10px;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:var(--orange-ink);margin-bottom:10px}
.mistake-q{font-size:15px;font-weight:800;color:var(--light);line-height:1.4;margin-bottom:12px;letter-spacing:-0.01em}
.mistake-a{font-size:13px;color:var(--muted);line-height:1.7}
.mistake-a em{color:var(--orange-ink);font-style:normal;font-weight:700}
.mistake-bg-num{position:absolute;right:16px;top:12px;font-size:80px;font-weight:900;font-style:italic;color:rgba(10,10,10,0.04);line-height:1;user-select:none}
.mistakes-bottom{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:16px}

.pull-quote-block{border-left:3px solid var(--orange);padding:4px 0 4px 28px;margin:40px 0}
.pull-quote-eyebrow{font-size:11px;font-weight:700;letter-spacing:0.12em;text-transform:uppercase;color:var(--orange-ink);margin-bottom:10px}
.pull-quote-text{font-size:clamp(20px,2.4vw,28px);font-weight:600;font-style:italic;color:var(--light);line-height:1.35;max-width:30ch}
.pull-quote-text em{font-style:italic;color:var(--orange)}

.testimonial-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);padding:32px;margin:32px 0}
.testimonial-quote{font-size:19px;font-weight:600;color:var(--light);line-height:1.5;margin-bottom:20px;max-width:62ch}
.testimonial-quote em{font-style:italic;color:var(--orange)}
.testimonial-author{display:flex;flex-direction:column;gap:2px}
.testimonial-name{font-size:13px;font-weight:700;color:var(--light)}
.testimonial-role{font-size:12px;color:var(--muted)}

/* =========================================================
   19. FEATURED CAROUSEL (articles and case studies, from build.js)
   ========================================================= */
.featured-carousel-section .section-inner{padding-bottom:32px}
.featured-carousel-wrap{position:relative;max-width:var(--site-max);margin:0 auto;padding:0 var(--site-px) var(--sec-bottom)}
.featured-carousel-track{
  display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x proximity;
  padding:4px 2px 12px;scrollbar-width:none;
}
.featured-carousel-track::-webkit-scrollbar{display:none}
.featured-carousel-card{flex:0 0 300px;scroll-snap-align:start;margin-top:0}
.carousel-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:2;
  width:40px;height:40px;border-radius:50%;background:#fff;
  border:1px solid var(--border);color:var(--light);cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:border-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease);
}
.carousel-arrow:hover{border-color:var(--orange);color:var(--orange)}
.carousel-prev{left:16px}
.carousel-next{right:16px}

/* =========================================================
   20. ARTICLE BODY (post pages)
   ========================================================= */
/* A post title is a sentence, not a headline: lower ceiling than the site heroes */
.article-hero .hero-title{font-size:clamp(34px,4.6vw,64px);letter-spacing:-0.03em;line-height:1.02}
.article-grid{margin-top:56px}

.article-body{max-width:760px;margin:0 auto;padding:var(--sec-top) var(--site-px) 40px}
.article-body p{font-size:17px;line-height:1.75;color:var(--muted);margin-bottom:22px}
.article-body li{font-size:17px;line-height:1.75;color:var(--muted)}
.article-body ol,.article-body ul{padding-left:1.4em;margin-bottom:22px}
.article-body h2{font-size:30px;font-weight:800;letter-spacing:-0.02em;line-height:1.1;color:var(--light);margin:40px 0 16px}
.article-body h3{font-size:21px;font-weight:700;color:var(--light);margin:32px 0 12px}
.article-body img{width:100%;border-radius:var(--radius-card);margin:28px 0;display:block}
.article-body p > img:only-child{margin:28px 0}
.article-body figure{margin:28px 0}
.article-body figcaption{font-size:13px;color:var(--muted);margin-top:10px;text-align:center}
.article-body blockquote{
  border-left:3px solid var(--orange);padding:4px 0 4px 22px;margin:32px 0;
  font-size:21px;font-style:italic;color:var(--light);line-height:1.5;
}
.article-body .hero-ctas{margin:32px 0}

/* =========================================================
   21. CONTACT AND FORMS
   ========================================================= */
.contact-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:80px;margin-top:56px}
.contact-info{display:flex;flex-direction:column;gap:24px}
.contact-item{background:#fff;border:1px solid var(--border);border-radius:var(--radius-card);padding:24px 28px}
.contact-item h4{color:var(--orange-ink);margin-bottom:8px}
.contact-item p,.contact-item a{font-size:17px;color:var(--light);text-decoration:none;transition:color var(--t-fast) var(--ease);line-height:1.5}
.contact-item a:hover{color:var(--orange)}

.form-grid{display:flex;flex-direction:column;gap:16px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-label{color:var(--muted);letter-spacing:0.1em}
.form-input,.form-select,.form-textarea{
  background:#fbfaf8;border:1px solid var(--border);border-radius:10px;
  padding:14px 18px;font-family:'Montserrat',sans-serif;font-size:15px;
  color:var(--light);outline:none;transition:border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease),background var(--t-fast);width:100%;
}
.form-input:focus,.form-select:focus,.form-textarea:focus{
  background:#fff;border-color:rgba(233,92,37,0.6);box-shadow:0 0 0 3px rgba(233,92,37,0.12);
}
.form-textarea{min-height:120px;resize:vertical}
.form-select{
  appearance:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%235c5952' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 18px center;
}
.form-select option{background:var(--mid)}
.form-note{font-size:13px;color:var(--muted);line-height:1.5}

/* Inline success state (the script adds .is-visible instead of reloading) */
.form-success{display:none;background:var(--paper);border-radius:var(--radius-card);padding:32px}
.form-success.is-visible{display:block}
.form-success .mark--tick{margin-right:10px}
.form-success p{font-size:17px;color:var(--light);line-height:1.6}

/* =========================================================
   22. CTA: paper-2 with the grid
   ========================================================= */
.cta-section{
  background:var(--paper-2);padding:var(--sec-top) var(--site-px) var(--sec-bottom);
  text-align:center;position:relative;overflow:hidden;isolation:isolate;
}
.cta-section::before{
  content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  background-image:
    linear-gradient(rgba(233,92,37,0.07) 1px,transparent 1px),
    linear-gradient(90deg,rgba(233,92,37,0.07) 1px,transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 70% 90% at 50% 50%,#000 0%,rgba(0,0,0,0.5) 55%,transparent 100%);
  mask-image:radial-gradient(ellipse 70% 90% at 50% 50%,#000 0%,rgba(0,0,0,0.5) 55%,transparent 100%);
}
.cta-section > :not(.hero-bg-grid){position:relative;z-index:1}
.cta-section > .hero-bg-grid{position:absolute;inset:0;z-index:0}
.cta-h{
  font-size:clamp(30px,3.8vw,54px);font-weight:800;letter-spacing:-0.03em;
  color:var(--light);line-height:1.02;margin:0 auto 20px;max-width:22ch;
}
.cta-h em{font-style:italic;font-weight:800;color:var(--orange)}
.cta-p{font-size:19px;line-height:1.6;color:var(--muted);margin:0 auto 40px}
.cta-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* =========================================================
   23. FOOTER
   ========================================================= */
footer{background:#000;color:#fff;border-top:1px solid rgba(255,255,255,0.1);padding:56px var(--site-px) 24px}
.footer-grid{max-width:var(--site-max);margin:0 auto 60px;display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1fr;gap:48px}
.footer-brand p{font-size:14px;color:rgba(255,255,255,0.55);line-height:1.7;margin:16px 0 24px;max-width:280px}
.footer-socials{display:flex;gap:10px}
.soc{
  width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.05);display:flex;align-items:center;justify-content:center;
  text-decoration:none;color:rgba(255,255,255,0.6);
  transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease),color var(--t-fast) var(--ease);
}
.soc:hover{background:var(--orange);border-color:var(--orange);color:#fff}
.footer-col h5{color:#fff;margin-bottom:20px}
.footer-col ul{list-style:none}
.footer-col li{margin-bottom:10px}
.footer-col a{text-decoration:none;font-size:14px;color:rgba(255,255,255,0.55);transition:color var(--t-fast) var(--ease)}
.footer-col a:hover{color:#fff}
.footer-bottom{
  max-width:var(--site-max);margin:0 auto;display:flex;align-items:center;justify-content:space-between;
  padding-top:32px;border-top:1px solid rgba(255,255,255,0.1);font-size:13px;color:rgba(255,255,255,0.5);gap:16px;flex-wrap:wrap;
}

/* =========================================================
   24. KEYFRAMES (arrival animations run once; only the typing cursor loops)
   ========================================================= */
@keyframes navSlideDown{from{opacity:0;transform:translateX(-50%) translateY(-24px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}
@keyframes fadeSlideDown{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeSlideUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes revealWord{from{transform:translateY(110%);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes drawStrike{to{stroke-dashoffset:0}}
@keyframes markDraw{to{stroke-dashoffset:0}}
@keyframes markRedraw{from{stroke-dashoffset:var(--mark-len,480)}to{stroke-dashoffset:0}}
@keyframes cursorPulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:0.35;transform:scale(0.8)}}
@keyframes barGrow{to{width:var(--bar-target,100%)}}
@keyframes benchGrow{to{width:var(--bar-target,30%)}}
@keyframes dotFade{to{opacity:1}}
@keyframes arcGrow{to{stroke-dashoffset:var(--arc-target,147)}}
@keyframes arcDotFade{to{opacity:1}}

/* =========================================================
   25. RESPONSIVE
   ========================================================= */
@media(max-width:1024px){
  .hero-split{grid-template-columns:1fr;gap:40px;padding-top:40px !important;padding-bottom:64px !important}
  .hero-device{max-width:560px}
  .hero-quote-panel{display:none}
  .band-split{grid-template-columns:1fr;gap:40px}
  .card-grid-3{grid-template-columns:1fr 1fr}
  .contact-layout{grid-template-columns:1fr;gap:48px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
  footer{padding-top:40px;padding-bottom:18px}
  .featured-carousel-wrap{padding-left:44px;padding-right:44px}
  .featured-carousel-card{flex-basis:78vw}
  .case-stats-strip{grid-template-columns:repeat(2,1fr)}
  .mistakes-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:900px){
  .compare-infographic{grid-template-columns:1fr}
  .mistakes-grid,.mistakes-bottom{grid-template-columns:1fr}
  .chart-pair{grid-template-columns:1fr}
}

@media(max-width:640px){
  #bottom-nav{top:12px;gap:10px}
  .nav-logo{width:70px;height:70px}
  .nav-links-pill{position:relative;height:70px;width:70px;padding:0;justify-content:center}
  .nav-toggle{display:flex}
  .nav-links-list{
    display:none;position:absolute;top:calc(100% + 12px);right:0;
    flex-direction:column;align-items:stretch;gap:4px;
    width:min(80vw,280px);max-height:calc(100vh - 140px);overflow-y:auto;
    padding:14px;border-radius:24px;
    background:rgba(8,8,8,0.94);
    backdrop-filter:blur(24px) saturate(1.8) brightness(1.1);
    -webkit-backdrop-filter:blur(24px) saturate(1.8) brightness(1.1);
    border:1px solid rgba(255,255,255,0.13);
    box-shadow:0 8px 32px rgba(0,0,0,0.35);
  }
  .nav-links-list.open{display:flex}
  .nav-links-pill a{padding:12px 16px;font-size:14px;text-align:center}

  .hero-split{padding-top:32px !important;padding-bottom:56px !important}
  .hero-sub{font-size:17px;margin:20px 0 32px}
  .btn-primary,.btn-ghost,.btn-white{padding:14px 24px;font-size:14px}
  .card,.panel,.dark-card,.transcript,.service-card,.testimonial-card{padding:24px}
  .card.has-arrow,.dark-card.has-arrow{padding-bottom:52px}
  .card-arrow{right:22px;bottom:22px}
  .article-card-thumb{margin:-25px -25px 18px}
  .case-study-body{padding:24px}
  .case-stats-strip{padding:24px}
  .cmp-col{padding:28px 22px}
  .faq-item{padding:22px 20px}
  .stats-section{padding-top:40px;padding-bottom:40px}
  .stats-inner{grid-template-columns:repeat(2,1fr)}
  .proof-strip{grid-template-columns:1fr;gap:20px;padding-top:32px;padding-bottom:32px}
  .card-grid-3,.card-grid-2{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;gap:10px;text-align:center}
  .form-row{grid-template-columns:1fr}
  .featured-carousel-wrap{padding-left:12px;padding-right:12px}
  .carousel-arrow{width:34px;height:34px}
  .featured-carousel-card{flex-basis:82vw}
  .meter-cols{gap:24px;height:160px}

  /* Legacy inline grids (style="display:grid;grid-template-columns:…") never
     collapse on their own and push content off a phone screen. Stack them. */
  #page-content [style*="grid-template-columns"],
  .other-page-content [style*="grid-template-columns"]{grid-template-columns:1fr !important}
}

/* =========================================================
   26. REDUCED MOTION: nothing moves, everything is already there
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:1ms !important;animation-iteration-count:1 !important;
    animation-delay:0ms !important;transition-duration:1ms !important;transition-delay:0ms !important;
    scroll-behavior:auto !important;
  }
  .reveal,.reveal-left,.reveal-right,.reveal-scale,.stagger>*{opacity:1;transform:none}
  .mark,.strike-svg path{stroke-dashoffset:0;animation:none}
  .transcript-cursor,.transcript.is-typing .transcript-cursor{animation:none;opacity:1}
  .meter-fill{width:calc(var(--value,0) * 1%)}
  .meter-dot{left:calc(var(--value,0) * 1%);opacity:1}
  .meter-col-fill{height:calc(var(--value,0) * 1%)}
  .meter-arc-fill{stroke-dashoffset:var(--arc-target,0)}
  .meter-arc-dot{opacity:1}
  .bar-blacfox,.bar-bench{width:var(--bar-target,100%)}
  .bar-dot-blacfox,.bar-dot-bench,#arcDotEnd{opacity:1}
  .arc-fill{stroke-dashoffset:var(--arc-target,147)}
  .hero-title,.hero-title .word,.hero-sub,.hero-ctas,.hero-meta,.hero-device,.hero-quote-panel,#bottom-nav{animation:none;opacity:1;transform:none}
  #bottom-nav{transform:translateX(-50%)}
}

/* Buttons may wrap on narrow phones instead of overflowing the pill */
@media (max-width:480px){
  .hero-ctas .btn-primary,.hero-ctas .btn-ghost,.cta-actions .btn-primary,.cta-actions .btn-ghost{white-space:normal;text-align:center;line-height:1.3;padding-top:12px;padding-bottom:12px}
}

/* ---- Final pass, 24 September 2026 ---- */
html{overflow-x:clip}
.proof-fact{font-size:17px;font-weight:700;line-height:1.45;color:var(--light);text-wrap:pretty}
.hero-photo{display:block;width:100%;height:auto;border-radius:16px;object-fit:cover}
.mark.drawn{stroke-dashoffset:0;transition:stroke-dashoffset 550ms var(--ease)}
.transcript-line{display:block;min-height:4em}
.transcript-line .transcript-text{display:inline}
/* Below 1024px the hero sits in normal flow so its device (transcript, photo, list) is reachable; the spacer is not needed. */
@media (max-width:1024px){
  #hero,.page-hero,.hero-section{position:relative !important;top:auto !important;left:auto !important;right:auto !important;min-height:0 !important}
  #hero-spacer,#page-hero-spacer{display:none !important;height:0 !important}
}

/* =========================================================
   27. HOME HERO, 24 September 2026: the Power Listening loop
   The home hero is the one place ambient motion is allowed. The client
   asked for the gradient and the life back, so creative-direction.md
   rule 1 (quiet by default) is relaxed here and nowhere else. Under the
   copy sit three layers: the listening grid canvas (unchanged),
   .hero-glow (two slow orange glows that drift and breathe) and
   .hero-rings (concentric rings behind the device, breathing very
   slowly). The device is .loop-device: a stack of glass cards with the
   five stops of the loop down the front card and one orange line drawn
   through them. CSS owns the arrival (cards rise with a 70ms stagger,
   then the line draws and the stops light up in turn). hero-loop.js adds
   the cursor tilt; without it the stack still rises and draws.
   Colour is the brand orange throughout, at low alpha on black.
   ========================================================= */

/* ---- The glow: one large warm glow top right, behind the device, and a
        softer answer bottom left. Both drift and breathe on a 16 to 22s
        alternate loop so the stage never looks frozen. ---- */
.hero-glow{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.hero-glow::before,.hero-glow::after{content:'';position:absolute;border-radius:50%;will-change:transform,opacity}
.hero-glow::before{
  width:1100px;height:1100px;right:-16%;top:-30%;
  background:radial-gradient(circle,rgba(233,92,37,0.42) 0%,rgba(233,92,37,0.18) 26%,rgba(233,92,37,0.06) 48%,rgba(233,92,37,0) 66%);
  animation:heroGlowA 18s ease-in-out infinite alternate;
}
.hero-glow::after{
  width:820px;height:820px;left:-20%;bottom:-46%;
  background:radial-gradient(circle,rgba(233,92,37,0.20) 0%,rgba(233,92,37,0.07) 34%,rgba(233,92,37,0) 66%);
  animation:heroGlowB 22s ease-in-out infinite alternate;
}
@keyframes heroGlowA{from{transform:translate3d(0,0,0) scale(1);opacity:.82}to{transform:translate3d(-6%,5%,0) scale(1.14);opacity:1}}
@keyframes heroGlowB{from{transform:translate3d(0,0,0) scale(1.08);opacity:.7}to{transform:translate3d(7%,-6%,0) scale(1);opacity:1}}

/* ---- The headline treatment: the home h1 is four words, so it may go
        past the site scale. Eyebrow above it in the small caps voice. ---- */
.hero-eyebrow{
  font-size:11px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;color:var(--orange);
  margin:0 0 22px;animation:fadeSlideUp 0.9s 0.05s var(--ease) both;
}
.hero-title--display{font-size:clamp(56px,7.2vw,104px);line-height:0.95;letter-spacing:-0.035em}
/* Room for the italic overhang on the left so .line's overflow clip never nicks it */
.hero-title--display .line{padding-left:0.06em;margin-left:-0.06em}
.hero-title--display em{font-style:italic;font-weight:800;color:var(--orange)}
.hero-title--display + .hero-sub{max-width:560px}

/* ---- The rings: five thin concentric circles and one dotted ring, centred
        behind the device, orange at 8 to 22 percent. The whole set breathes
        over 20s; the dotted ring turns once every 140s. ---- */
.hero-device--loop{position:relative;translate:var(--par-x,0px) var(--par-y,0px)}
.hero-rings{
  position:absolute;left:50%;top:50%;width:132%;aspect-ratio:1/1;
  transform:translate(-50%,-50%);pointer-events:none;z-index:0;
}
.hero-rings svg{display:block;width:100%;height:100%;overflow:visible;transform-origin:50% 50%;animation:ringBreathe 20s ease-in-out infinite alternate}
.hero-rings circle{fill:none;stroke:var(--orange);stroke-width:1;vector-effect:non-scaling-stroke}
.hero-rings .ring-dots{stroke-width:1.5;stroke-dasharray:1.5 7;stroke-linecap:round;transform-box:fill-box;transform-origin:center;animation:ringTurn 140s linear infinite}
@keyframes ringBreathe{from{transform:scale(1);opacity:.78}to{transform:scale(1.045);opacity:1}}
@keyframes ringTurn{to{transform:rotate(360deg)}}

/* ---- The device: three glass cards in a 3D stack. The front card is in
        flow and sizes the stack; the two behind are absolute, offset,
        rotated and pushed back in Z so the perspective makes them smaller.
        --tilt-x / --tilt-y are written by hero-loop.js. ---- */
.loop-device{
  position:relative;z-index:1;width:100%;max-width:460px;margin:0 auto;
  transform:perspective(1100px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));
  transform-style:preserve-3d;will-change:transform;
}
.loop-card{
  border-radius:var(--radius-card);
  border:1px solid rgba(255,255,255,0.14);
  background:linear-gradient(150deg,rgba(255,255,255,0.10) 0%,rgba(255,255,255,0.045) 55%,rgba(255,255,255,0.02) 100%);
  box-shadow:0 0 34px rgba(233,92,37,0.16),0 28px 60px rgba(0,0,0,0.55);
  animation:loopCardRise 0.9s var(--ease) both;
  transition:box-shadow 0.5s var(--ease),border-color 0.5s var(--ease);
}
/* A 1px light catch along the top edge sells the glass */
.loop-card::before{
  content:'';position:absolute;left:8%;right:8%;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.45) 50%,rgba(255,255,255,0) 100%);
}
.loop-card--back,.loop-card--mid{position:absolute;inset:0}
.loop-card--back{translate:38px 44px -110px;rotate:7deg;opacity:.55;animation-delay:.55s}
.loop-card--mid{translate:19px 22px -55px;rotate:3.5deg;opacity:.8;animation-delay:.62s}
.loop-card--front{
  position:relative;padding:30px 32px 34px;animation-delay:.69s;
  border-color:rgba(255,255,255,0.18);
  /* A dark base under the glass, so the two cards behind read as behind rather than through */
  background:linear-gradient(150deg,rgba(255,255,255,0.11) 0%,rgba(255,255,255,0.05) 55%,rgba(255,255,255,0.025) 100%),rgba(14,12,11,0.8);
  box-shadow:0 0 44px rgba(233,92,37,0.22),0 34px 70px rgba(0,0,0,0.6);
}
/* On hover the front card's glow warms */
.loop-device:hover .loop-card--front{
  border-color:rgba(233,92,37,0.45);
  box-shadow:0 0 72px rgba(233,92,37,0.42),0 34px 70px rgba(0,0,0,0.6);
}
@keyframes loopCardRise{from{opacity:0;transform:translateY(48px)}to{transform:translateY(0)}}

/* ---- Inside the front card: a label, then the five stops with the line.
        Each stop is a fixed 52px row; the node x offset (--x) zigzags so
        the line between the stops is a wave rather than a ruler. The path
        below is drawn in the same px, so the geometry never depends on the
        card's width. ---- */
.loop-label{font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;color:var(--orange)}
.loop-stops-wrap{position:relative;margin-top:22px}
.loop-stops{list-style:none;position:relative;margin:0;padding:0}
.loop-stops li{
  position:relative;height:52px;display:flex;align-items:center;
  padding-left:calc(var(--x) + 26px);
  font-size:12px;font-weight:700;letter-spacing:0.14em;text-transform:uppercase;white-space:nowrap;
  color:rgba(255,255,255,0.86);
  animation:loopStop .6s var(--ease) both;
}
.loop-stops li:nth-child(1){--x:20px;animation-delay:1.35s}
.loop-stops li:nth-child(2){--x:66px;animation-delay:1.65s}
.loop-stops li:nth-child(3){--x:20px;animation-delay:1.95s}
.loop-stops li:nth-child(4){--x:66px;animation-delay:2.25s}
.loop-stops li:nth-child(5){--x:20px;animation-delay:2.55s;color:var(--orange)}
/* The node: a hollow ring on the line; a filled, glowing dot at the last stop */
.loop-stops li::before{
  content:'';position:absolute;left:calc(var(--x) - 6px);top:50%;width:12px;height:12px;margin-top:-6px;
  border-radius:50%;background:#0a0a0a;border:2px solid var(--orange);box-sizing:border-box;
}
.loop-stops li:last-child::before{
  width:16px;height:16px;margin-top:-8px;left:calc(var(--x) - 8px);
  background:var(--orange);
  box-shadow:0 0 0 6px rgba(233,92,37,0.18),0 0 26px rgba(233,92,37,0.75);
}
@keyframes loopStop{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}

/* The line: 3.5px, round caps, drawn on with pathLength="1" so the dash
   arithmetic needs no measuring. It starts 1.3s in, after the cards land. */
.loop-path{position:absolute;left:0;top:0;width:120px;height:260px;pointer-events:none;overflow:visible}
.loop-path path{
  fill:none;stroke:var(--orange);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:1;stroke-dashoffset:1;
  animation:loopDraw 1.4s var(--ease) 1.3s forwards;
}
@keyframes loopDraw{to{stroke-dashoffset:0}}

/* ---- Desktop: the hero is fixed and the page slides over it, so the stage
        fills the first screen (capped, so a tall monitor does not get a void).
        min-height only ever adds room; content still sizes the box when the
        viewport is shorter than it, so nothing is pushed under the fold. ---- */
@media(min-width:1025px){
  #hero.hero--loop .hero-split{min-height:min(calc(100vh - 112px),960px) !important}
}

/* ---- Responsive: the device sits under the headline from 1024 down and
        is centred so the rings stay inside the viewport; on phones the
        stack tightens so the back cards never leave the screen. ---- */
@media(max-width:1024px){
  /* justify-self, not auto margins: an auto-margined grid item shrinks to its
     content and the stack would collapse to the width of its labels */
  .hero-device--loop{justify-self:center;width:100%;max-width:520px}
}
@media(max-width:640px){
  .hero-rings{width:100%}
  .loop-device{max-width:calc(100% - 28px)}
  .loop-card--back{translate:12px 20px -110px;rotate:5deg}
  .loop-card--mid{translate:6px 10px -55px;rotate:2.5deg}
  .loop-card--front{padding:24px 22px 26px}
  .loop-stops li{font-size:11px;letter-spacing:0.12em}
}

/* ---- Reduced motion: the stage is still, the stack is landed, the line
        is drawn, and hero-loop.js never attaches its listeners. ---- */
@media (prefers-reduced-motion: reduce){
  .hero-glow::before,.hero-glow::after,.hero-rings svg,.hero-rings .ring-dots,
  .loop-card,.loop-stops li,.loop-path path,.hero-eyebrow{animation:none}
  .hero-glow::before,.hero-glow::after,.hero-rings svg{opacity:1;transform:none}
  .hero-eyebrow,.loop-stops li{opacity:1;transform:none}
  .loop-path path{stroke-dashoffset:0}
  .loop-device{transform:perspective(1100px) rotateX(0deg) rotateY(0deg)}
  .hero-device--loop{translate:0px 0px}
}
