/* ============================================================
   HighRise Growth - light-canvas adaptation of Framer system.
   Display type, 5px spacing, pill CTAs, and gradient spotlight
   cards are kept verbatim; surface tokens are inverted.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:ital,wght@0,200..900;1,200..900&family=Inter:opsz,wght@14..32,100..900&display=swap");

:root {
  /* Surfaces - warm cream canvas, two soft lifts, forest panel */
  --canvas:      #F0EDE8;
  --surface-1:   #FFFFFF;
  --surface-2:   #E6E2D9;
  --surface-3:   #2B4A35; /* deep forest green - used for high-contrast bands */

  /* Ink */
  --ink:         #131210;
  --ink-2:       #2A2926;
  --ink-muted:   #7A766E;
  --ink-faint:   #B8B5AC;
  --on-dark:     #FAF8F2;

  /* Hairlines */
  --hairline:      rgba(19,18,16,0.10);
  --hairline-soft: rgba(19,18,16,0.06);

  /* Accent - single bright lime chromatic (HighRise Growth brand). */
  --accent:        #7EC84A;
  --accent-soft:   #E4F2D2;
  --accent-ink:    #2B4A35; /* dark forest - sits on lime */

  /* Brand gradient spotlights - forest + lime atmosphere */
  --grad-orange:
    radial-gradient(120% 90% at 20% 100%, #C5E58B 0%, #7EC84A 45%, #2B4A35 100%);
  --grad-coral:
    radial-gradient(120% 90% at 50% 0%, #B6D69B 0%, #5FA63A 50%, #1F3526 100%);

  /* Spacing - Framer's 5px base */
  --sp-xxs: 4px;
  --sp-xs:  8px;
  --sp-sm:  12px;
  --sp-md:  15px;
  --sp-lg:  20px;
  --sp-xl:  30px;
  --sp-xxl: 40px;
  --sp-section: 96px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   15px;
  --r-xl:   20px;
  --r-xxl:  30px;
  --r-pill: 100px;
  --r-full: 9999px;

  /* Type families */
  --font-display: "Mona Sans", "GT Walsheim Medium", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-feature-body: "cv01","cv05","cv09","cv11","ss03","ss07","dlig";

  /* Type scale (from Framer) */
  --t-display-xxl: 110px;
  --t-display-xl:   85px;
  --t-display-lg:   62px;
  --t-display-md:   32px;
  --t-headline:     22px;
  --t-subhead:      24px;
  --t-body-lg:      18px;
  --t-body:         15px;
  --t-body-sm:      14px;
  --t-caption:      13px;
  --t-micro:        12px;

  /* Elevation */
  --elev-card:    0 1px 0 rgba(19,18,16,0.03), 0 18px 40px -24px rgba(19,18,16,0.18);
  --elev-mockup:
      inset 0 0.5px 0 rgba(255,255,255,0.5),
      0 24px 60px -28px rgba(19,18,16,0.25);
  --elev-focus:   0 0 0 1px var(--accent), 0 0 0 4px rgba(126,200,74,0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: var(--font-feature-body);
  font-size: var(--t-body);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ----- Type ---------------------------------------------------- */
.display, .display-xl, .display-lg, .display-md {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-feature-settings: normal;
  margin: 0;
}
.display    { font-size: var(--t-display-xl); line-height: 0.92; letter-spacing: -4.25px; }
.display-xl { font-size: var(--t-display-xl); line-height: 0.92; letter-spacing: -4.25px; }
.display-lg { font-size: var(--t-display-lg); line-height: 0.98; letter-spacing: -3.1px; }
.display-md { font-size: var(--t-display-md); line-height: 1.10; letter-spacing: -1.0px; }
.headline   { font-family: var(--font-body); font-weight: 700; font-size: var(--t-headline); line-height: 1.20; letter-spacing: -0.8px; margin: 0; }
.subhead    { font-family: var(--font-body); font-weight: 400; font-size: var(--t-subhead);  line-height: 1.30; letter-spacing: -0.01px; margin: 0; }
.body-lg    { font-size: var(--t-body-lg);   line-height: 1.45; letter-spacing: -0.18px; margin: 0; }
.body       { font-size: var(--t-body);      line-height: 1.5;  letter-spacing: -0.15px; margin: 0; }
.body-sm    { font-size: var(--t-body-sm);   line-height: 1.45; letter-spacing: -0.14px; margin: 0; font-weight: 500; }
.caption    { font-size: var(--t-caption);   line-height: 1.20; letter-spacing: -0.13px; margin: 0; font-weight: 500; }
.micro      { font-size: var(--t-micro);     line-height: 1.20; letter-spacing: -0.12px; margin: 0; }
.eyebrow    {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-muted); margin: 0;
}

.muted   { color: var(--ink-muted); }
.faint   { color: var(--ink-faint); }
.accent  { color: var(--accent); }
.italic  { font-style: italic; }

/* ----- Buttons (pill, from Framer) ----------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 500;
  font-size: 14px; letter-spacing: -0.14px;
  border: 0; cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease;
  text-decoration: none; white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn-primary   { background: var(--ink); color: var(--on-dark); padding-right: 8px; }
/* Base arrow badge - keeps the circle shape even on plain (variant-less) buttons.
   Variant rules below override size/colors where present. */
.btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-full); flex: none;
}
.btn-primary .btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-full);
  background: var(--canvas); color: var(--ink);
}
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: var(--surface-1); color: var(--ink); border: 1px solid var(--hairline); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost     { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn-ghost:hover { background: var(--surface-1); }
.btn-accent    { background: var(--accent); color: var(--accent-ink); padding-right: 8px; }
.btn-accent .btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--r-full);
  background: rgba(43,74,53,0.18); color: var(--accent-ink);
}
.btn-accent:hover { background: #6FB83C; }
.btn-lg { padding: 16px 24px; padding-right: 10px; font-size: 15px; }
.btn-lg .btn-arrow { width: 32px; height: 32px; }

.btn-ghost-mail.btn-lg { padding-right: 10px; }
.btn-mail-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-full);
  background: var(--surface-2); color: var(--ink);
}

/* ----- Layout helpers ------------------------------------------ */
.shell { max-width: 1220px; margin: 0 auto; padding: 0 32px; }
.section { padding-block: var(--sp-section); }
.section-sm { padding-block: 60px; }
hr.rule { border: 0; border-top: 1px solid var(--hairline-soft); margin: 0; }

/* ----- Cards --------------------------------------------------- */
.card {
  background: var(--surface-1);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--elev-card);
}
.card-flat {
  background: var(--surface-1);
  border-radius: var(--r-xl);
  padding: 28px;
  border: 1px solid var(--hairline-soft);
}
.card-stat {
  background: var(--surface-1);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.card-mockup {
  background: var(--surface-1);
  border-radius: var(--r-xl);
  padding: 14px;
  box-shadow: var(--elev-mockup);
}
.spotlight {
  border-radius: var(--r-xxl);
  padding: 36px;
  color: #fff;
  background: var(--grad-orange);
  position: relative;
  overflow: hidden;
}

/* ----- Top nav ------------------------------------------------- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-link {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; letter-spacing: -0.14px;
  color: var(--ink-muted); transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ""; display: block; width: 16px; height: 2px;
  background: var(--ink); border-radius: 2px;
  margin: 4px auto 0;
}
.nav-right { display: flex; gap: 8px; align-items: center; }

/* ----- Logo ---------------------------------------------------- */
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 19px; letter-spacing: -0.6px;
  color: var(--ink);
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}
.logo-mark::after { content: none; }
.logo-mark span,
.logo-mark svg { position: relative; z-index: 1; }

/* ----- Inputs -------------------------------------------------- */
.input, .textarea, .select {
  width: 100%;
  background: var(--surface-1);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font: 400 15px/1.3 var(--font-body);
  letter-spacing: -0.15px;
  font-feature-settings: var(--font-feature-body);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  box-shadow: var(--elev-focus);
  border-color: transparent;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field-label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.1px; }

/* ----- Tag / chip ---------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500; letter-spacing: -0.12px;
  color: var(--ink-2);
}
.chip-dot { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--accent); }
.chip-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }

/* ----- Decorative -------------------------------------------- */
.asterisk {
  display: inline-block; color: var(--accent);
  font-family: var(--font-display); font-weight: 500;
}
.svg-asterisk { color: var(--accent); width: 22px; height: 22px; flex: none; }

/* Underline-highlight for words */
.hl-accent { color: var(--accent); }
.hl-strike { text-decoration: line-through; text-decoration-color: var(--ink-faint); text-decoration-thickness: 3px; }

/* ----- Footer -------------------------------------------------- */
.footer {
  background: var(--surface-3);
  color: var(--on-dark);
  padding: 80px 0 40px;
  margin-top: 80px;
}
.footer a { color: rgba(250,248,242,0.7); transition: color .15s ease; }
.footer a:hover { color: #fff; }
.footer-hr { border: 0; border-top: 1px solid rgba(250,248,242,0.12); margin: 60px 0 32px; }

/* ----- Misc ---------------------------------------------------- */
.dot { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--accent); display: inline-block; }
.avatar {
  width: 36px; height: 36px; border-radius: var(--r-full);
  background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  border: 2px solid var(--canvas);
}
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar + .avatar { margin-left: -10px; }

.kbd-arrow { display: inline-block; transform: translateY(-1px); }

/* ----- Page heading band -------------------------------------- */
.page-band {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--hairline-soft);
}
.page-band .eyebrow { margin-bottom: 18px; }

/* ----- Small "browser" mockup chrome -------------------------- */
.browser {
  background: var(--surface-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline-soft);
  box-shadow: var(--elev-mockup);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--hairline-soft);
}
.browser-bar .tl { width: 10px; height: 10px; border-radius: var(--r-full); background: var(--ink-faint); }
.browser-url {
  flex: 1; margin-left: 8px; height: 22px;
  background: var(--surface-1); border-radius: 6px;
  display: flex; align-items: center; padding: 0 10px;
  font-size: 11px; color: var(--ink-muted);
}

/* ============================================================
   Responsive - tablet (≤1024) and mobile (≤760, ≤430)
   ============================================================ */

/* Tablet - keep layout, tighten gutters + headings */
@media (max-width: 1024px) {
  :root {
    --t-display-xl: 72px;
    --t-display-lg: 52px;
    --t-display-md: 28px;
    --sp-section: 80px;
  }
  .shell { padding: 0 24px; }
}

/* Mobile / small tablet - stack columns, hamburger nav */
@media (max-width: 760px) {
  :root {
    --t-display-xl: 48px;
    --t-display-lg: 36px;
    --t-display-md: 24px;
    --t-headline: 20px;
    --t-subhead: 20px;
    --t-body-lg: 16px;
    --sp-section: 64px;
  }
  .shell { padding: 0 20px; }
  .section { padding-block: var(--sp-section); }
  .display, .display-xl { letter-spacing: -1.6px; line-height: 0.98; }
  .display-lg { letter-spacing: -1.2px; line-height: 1.02; }

  /* Stack: top-level grids - shell-as-grid, direct shell children, and tagged grids */
  .shell[style*="grid-template-columns"],
  .shell > div[style*="grid-template-columns"],
  .shell > form[style*="grid-template-columns"],
  .grid-stack[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    align-items: start !important;
  }
  /* Footer: 4-col → 2x2 instead of 1col; minmax(0) lets long emails/URLs shrink */
  .footer .shell > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 32px !important;
  }
  .footer a, .footer p { overflow-wrap: anywhere; word-break: break-word; }

  /* Drop sticky positioning when columns are stacked */
  [style*="position: sticky"],
  [style*="position:sticky"] {
    position: static !important;
    top: auto !important;
  }

  /* Nav - show hamburger, hide pill-link nav */
  .nav-links { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .nav { height: 60px; }
  .nav-cta { padding: 9px 14px !important; padding-right: 8px !important; font-size: 13px; }
  .nav-cta .btn-arrow { width: 22px !important; height: 22px !important; }

  /* Hero bubble - anchor inside the image, not negative-left */
  .hero-bubble {
    left: 16px !important;
    right: auto !important;
    bottom: 16px !important;
    padding: 10px 14px !important;
  }

  /* Hero stat trust row - slimmer dividers */
  .hero-anim .display-md { font-size: 44px !important; }

  /* Cards - gentler padding so content breathes on phones */
  .card-flat { padding: 22px; }
  .spotlight { padding: 28px; border-radius: var(--r-xl); }

  /* Case-study card visual band - gentler min-height & padding */
  .grid-stack > div[style*="min-height: 460px"],
  .grid-stack > div[style*="minHeight: 460"] { min-height: 320px !important; padding: 28px !important; }

  /* Form / button compaction */
  .btn-lg { padding: 14px 20px; padding-right: 10px; font-size: 14px; }

  /* Footer hairline spacing */
  .footer { padding: 56px 0 32px; }
  .footer-hr { margin: 40px 0 24px; }

  /* Ticker stays full-width; just slow type a touch */
  .ticker-track { font-size: 22px; }
}

/* Phone - 430px and under */
@media (max-width: 430px) {
  :root {
    --t-display-xl: 38px;
    --t-display-lg: 30px;
    --t-display-md: 22px;
  }
  .shell { padding: 0 16px; }
  .nav { padding: 0; }
  .nav-cta-label { display: none; }
  /* Icon-only CTA collapses to a clean, perfectly centered circle */
  .nav-cta {
    width: 40px !important; height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center !important;
    gap: 0 !important;
    flex: none;
  }
  .hero-anim .display-md { font-size: 36px !important; }
  .card-flat { padding: 20px; }
  .spotlight { padding: 24px; }
}

/* ============================================================
   Mobile nav drawer - hidden on desktop, full-screen on mobile
   ============================================================ */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--hairline);
  background: var(--surface-1);
  border-radius: var(--r-full);
  align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
  position: relative;
  flex: none;
}
.nav-burger span {
  display: block; width: 16px; height: 1.6px;
  background: var(--ink); border-radius: 2px;
  position: absolute; left: 11px;
  transition: transform .25s var(--ease-out-soft, ease), opacity .2s ease, top .25s var(--ease-out-soft, ease);
}
.nav-burger span:nth-child(1) { top: 13px; }
.nav-burger span:nth-child(2) { top: 18px; }
.nav-burger span:nth-child(3) { top: 23px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* Compact dropdown card anchored under the bar. NOTE: must be position:absolute,
   not fixed - .nav-wrap has a backdrop-filter, which makes it the containing block
   for fixed descendants and would collapse a full-height drawer into a sliver. */
.nav-mobile {
  position: absolute;
  top: calc(100% + 6px);
  right: 16px;
  width: min(260px, calc(100vw - 32px));
  background: var(--surface-1, var(--canvas));
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: 0 20px 48px -14px rgba(19,18,16,0.30), 0 4px 12px -4px rgba(19,18,16,0.12);
  padding: 8px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .2s var(--ease-out-soft, ease), transform .2s var(--ease-out-soft, ease);
  z-index: 60;
  display: none;
}
.nav-mobile.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-mobile-list { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--ink);
  transition: background .15s ease;
}
.nav-mobile-link:hover { background: rgba(19,18,16,0.045); }
.nav-mobile-link.active { color: var(--accent-ink); background: rgba(19,18,16,0.05); }
.nav-mobile-link.active::after {
  content: "→"; color: var(--accent); font-size: 16px;
}

@media (max-width: 760px) {
  .nav-mobile { display: block; }
}

/* ============================================================
   Motion - scroll reveals, hero stagger, ticker, micro-interactions
   ============================================================ */
:root {
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reveal - fade up 20px, stagger via --i */
.reveal-target {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 720ms var(--ease-out-soft),
    transform 720ms var(--ease-out-soft);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal-target.is-in,
.section.is-in .reveal-target,
.page-band.is-in .reveal-target { opacity: 1; transform: none; }

/* Hero load animations */
.hero-anim {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 800ms var(--ease-out-soft),
    transform 800ms var(--ease-out-soft);
  transition-delay: calc(var(--i, 0) * 110ms + 60ms);
}
.hero-anim.is-in { opacity: 1; transform: none; }

.hero-headline .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms var(--ease-out-soft),
    transform 700ms var(--ease-out-soft);
  transition-delay: calc(var(--w, 0) * 55ms + 80ms);
  will-change: opacity, transform;
}
.hero-headline.is-in .word { opacity: 1; transform: none; }

.hero-image-wrap {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 900ms var(--ease-out-soft),
    transform 900ms var(--ease-out-soft);
  transition-delay: 380ms;
}
.hero-image-wrap.is-in { opacity: 1; transform: none; }

.hero-bubble {
  opacity: 0;
  transform: translate(24px, 24px);
  transition:
    opacity 700ms var(--ease-out-soft),
    transform 800ms var(--ease-out-soft);
  transition-delay: 980ms;
}
.hero-bubble.is-in { opacity: 1; transform: none; }

/* Buttons - hover scale + glow */
.btn { transition:
  background 180ms ease,
  color 180ms ease,
  transform 200ms var(--ease-out-soft),
  box-shadow 220ms var(--ease-out-soft),
  filter 200ms ease;
}
.btn:hover { transform: translateY(-1px) scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 26px -10px rgba(19,18,16,0.45); }
.btn-accent:hover  { filter: brightness(1.06); box-shadow: 0 12px 30px -10px rgba(126,200,74,0.55); }

/* Card hover lift */
.card-flat {
  transition:
    transform 260ms var(--ease-out-soft),
    box-shadow 260ms var(--ease-out-soft),
    border-color 260ms ease;
}
.card-flat:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px -18px rgba(19,18,16,0.22);
  border-color: var(--hairline);
}

/* Ticker - quiet service marquee on canvas, Figma trust-strip style */
.ticker {
  background: var(--canvas);
  color: var(--ink-muted);
  overflow: hidden;
  position: relative;
  padding-block: 48px;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 96px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0;  background: linear-gradient(90deg,  var(--canvas), rgba(240,237,232,0)); }
.ticker::after  { right: 0; background: linear-gradient(270deg, var(--canvas), rgba(240,237,232,0)); }
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 60s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.8px;
  line-height: 1;
  color: var(--ink-2);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; flex: none;
}
.ticker-dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent); flex: none;
}
@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-target, .hero-anim, .hero-headline .word, .hero-image-wrap, .hero-bubble {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .ticker-track { animation: none !important; }
  .btn:hover, .card-flat:hover { transform: none !important; }
}

/* ============================================================
   Case-studies aggregate stat - fully fluid so it scales on
   every phone size (replaces a fixed 70px inline that didn't scale)
   ============================================================ */
.display-xl.agg-stat {
  font-size: clamp(26px, 6.5vw, 70px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
@media (max-width: 760px) {
  .agg-card { padding: 28px !important; }
}
@media (max-width: 430px) {
  .agg-card { padding: 22px !important; }
}

/* Keep the footer logo wordmark on one line - the mobile
   word-break rule for long emails must not split it. */
.footer a.logo,
.footer a.logo span {
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}
