/* LetsReach — Shared Website Styles
   Blue · Black · White · bold + sleek
   Unbounded is self-hosted (assets/fonts/). Inter + JetBrains Mono via Google Fonts. */

@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('assets/fonts/unbounded-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-adjusted fallback so the pre-swap paint occupies the same box as Unbounded.
   Kills the hero CLS on slow mobile without changing how headlines look once the real font arrives. */
@font-face {
  font-family: 'Unbounded Fallback';
  src: local('Arial Black'), local('Helvetica Neue Bold'), local('Arial Bold'), local('Arial');
  font-weight: 500 900;
  font-style: normal;
  ascent-override: 92%;
  descent-override: 23%;
  line-gap-override: 0%;
  size-adjust: 108%;
}

/* ════════════════════════════════════════════════
   DARK TOKENS — the brand default
   Surface tokens (--lr-fg-*, --lr-bg, --lr-line, etc.) flip with theme.
   Brand tokens (--lr-blue, --lr-blue-soft) remain constant where the
   ink-on-cream version would lose recognizability.
   RGB triplets (--lr-bg-rgb, --lr-fg-rgb) exist so scrims that need
   alpha can theme correctly: rgb(var(--lr-bg-rgb) / 0.85)
   ════════════════════════════════════════════════ */
:root {
  color-scheme: dark;

  /* Brand blues — constant across themes */
  --lr-blue:        #1B4BFF;
  --lr-blue-deep:   #0C2AC4;
  --lr-blue-dark:   #081F8F;
  --lr-blue-ink:    #040B3B;
  --lr-blue-soft:   #5B7CFF;
  --lr-blue-glow:   rgba(27, 75, 255, 0.35);

  /* Surface neutrals (theme-aware) */
  --lr-black:       #050507;
  --lr-black-2:     #0B0C10;
  --lr-black-3:     #14161C;
  --lr-line:        #1E2230;
  --lr-line-soft:   rgba(255,255,255,0.08);
  --lr-white:       #FFFFFF;
  --lr-fog:         rgba(255,255,255,0.62);
  --lr-mist:        rgba(255,255,255,0.38);

  /* RGB triplets — for tinted scrims/backdrops that need rgb(var() / alpha) */
  --lr-bg-rgb:      5, 5, 7;
  --lr-fg-rgb:      255, 255, 255;
  --lr-blue-rgb:    27, 75, 255;

  /* Gradient */
  --lr-gradient: linear-gradient(135deg, #5B7CFF 0%, #1B4BFF 40%, #0C2AC4 100%);
  --lr-gradient-text: linear-gradient(135deg, #7C95FF 0%, #1B4BFF 60%);

  /* Semantic foreground/background */
  --lr-fg-1: #FFFFFF;
  --lr-fg-2: rgba(255,255,255,0.62);
  --lr-fg-3: rgba(255,255,255,0.38);
  --lr-bg:   #050507;
  --lr-accent: #1B4BFF;

  /* Component tokens (theme-aware) */
  --lr-nav-bg:        rgba(5,5,7,0.72);
  --lr-nav-saturate:  saturate(160%);
  --lr-cell-hover:    rgba(27,75,255,0.07);
  --lr-card-tint:     rgba(255,255,255,0.04);
  --lr-card-tint-2:   rgba(255,255,255,0.10);
  --lr-card-hover-bg: #0d1024;
  /* Chip shadow doubles as the hero "glow source" — a soft blue halo around
     each video chip in the H1. Three layers: a wide diffuse blue ring at
     low alpha (so it reads as ambient glow, not a billboard), a tighter
     mid shadow for the chip itself, and a dark drop for grounding. */
  --lr-shadow-chip:   0 0 70px 4px rgba(27,75,255,0.18), 0 16px 40px -12px rgba(27,75,255,0.35), 0 10px 24px -8px rgba(0,0,0,0.7);
  --lr-shadow-card:   0 20px 60px -20px rgba(27,75,255,0.30), 0 10px 30px -10px rgba(0,0,0,0.80);
  --lr-grid-line:     rgba(255,255,255,0.03);

  /* Hero scrim (used by .page-hero — theme-aware blue blobs) */
  --lr-hero-scrim-a:  rgba(27,75,255,0.24);
  --lr-hero-scrim-b:  rgba(12,42,196,0.18);

  /* Logo treatment for marquee — dark mode washes brand logos to white */
  --lr-logo-filter:   grayscale(1) brightness(2);
  --lr-logo-opacity:  0.7;

  /* Fonts */
  --lr-font-display: 'Unbounded', 'Unbounded Fallback', 'Archivo Black', ui-sans-serif, system-ui, sans-serif;
  --lr-font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --lr-font-text:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Type scale */
  --lr-hero:        clamp(48px, 9vw, 144px);
  --lr-display-xl:  clamp(40px, 6vw, 88px);
  --lr-display-lg:  clamp(32px, 4.2vw, 64px);
  --lr-display-md:  clamp(24px, 2.8vw, 40px);
  --lr-display-sm:  22px;
  --lr-lead:  19px;
  --lr-body:  16px;
  --lr-small: 14px;
  --lr-mono-md: 12px;
  --lr-mono-sm: 11px;
  --lr-numeric-xl: clamp(56px, 8vw, 120px);
  --lr-lh-display: 0.94;
  --lr-lh-heading: 1.05;
  --lr-lh-body: 1.6;

  /* Spacing */
  --lr-gutter: clamp(20px, 4vw, 56px);
  --lr-max: 1440px;
  --lr-section-y: clamp(80px, 10vw, 160px);

  /* Radii */
  --lr-r-sm: 4px; --lr-r-md: 10px; --lr-r-lg: 16px; --lr-r-xl: 24px; --lr-r-pill: 9999px;

  /* Motion */
  --lr-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lr-dur: 240ms;
}

/* ════════════════════════════════════════════════
   LIGHT TOKENS
   Two triggers, in order of precedence (lower beats higher):
   1. System preference  (when html has no explicit data-theme)
   2. data-theme="light" (explicit user override; wins over system)
   data-theme="dark" forces dark even when system says light.
   ════════════════════════════════════════════════ */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) {
    color-scheme: light;

    --lr-black:     #F8F6F2;
    --lr-black-2:   #FFFFFF;
    --lr-black-3:   #EDE9E2;
    --lr-line:      #DDD9D0;
    --lr-line-soft: rgba(13,12,10,0.07);
    --lr-white:     #0D0C0A;
    --lr-fog:       rgba(13,12,10,0.78);
    --lr-mist:      rgba(13,12,10,0.58);

    --lr-bg-rgb:    248, 246, 242;
    --lr-fg-rgb:    13, 12, 10;
    --lr-blue-rgb:  12, 42, 196;

    --lr-fg-1: #0D0C0A;
    --lr-fg-2: rgba(13,12,10,0.78);
    --lr-fg-3: rgba(13,12,10,0.58);
    --lr-bg:   #F8F6F2;
    --lr-accent: #0C2AC4;

    /* Light-mode blue tightens to deeper ink to keep ratio against cream */
    --lr-blue:      #0C2AC4;
    --lr-blue-soft: #1B4BFF;
    --lr-blue-glow: rgba(12,42,196,0.15);

    --lr-nav-bg:        rgba(248,246,242,0.85);
    --lr-nav-saturate:  saturate(110%);
    --lr-cell-hover:    rgba(12,42,196,0.05);
    --lr-card-tint:     rgba(13,12,10,0.04);
    --lr-card-tint-2:   rgba(13,12,10,0.08);
    --lr-card-hover-bg: #ECEAFE;
    /* Light-mode chip glow: still blue but desaturated and softer to avoid
     a glowing-screen feel against the cream page. */
    --lr-shadow-chip:   0 0 64px 8px rgba(12,42,196,0.14), 0 16px 40px -12px rgba(12,42,196,0.22), 0 6px 16px -6px rgba(13,12,10,0.10);
    --lr-shadow-card:   0 20px 60px -20px rgba(12,42,196,0.12), 0 8px 24px -8px rgba(13,12,10,0.08);
    --lr-grid-line:     rgba(13,12,10,0.05);

    --lr-hero-scrim-a:  rgba(12,42,196,0.06);
    --lr-hero-scrim-b:  rgba(12,42,196,0.03);

    /* Logos render at native color on cream — no inversion */
    --lr-logo-filter:   none;
    --lr-logo-opacity:  0.85;
  }
}

[data-theme="light"] {
  color-scheme: light;

  --lr-black:     #F8F6F2;
  --lr-black-2:   #FFFFFF;
  --lr-black-3:   #EDE9E2;
  --lr-line:      #DDD9D0;
  --lr-line-soft: rgba(13,12,10,0.07);
  --lr-white:     #0D0C0A;
  --lr-fog:       rgba(13,12,10,0.78);
  --lr-mist:      rgba(13,12,10,0.58);

  --lr-bg-rgb:    248, 246, 242;
  --lr-fg-rgb:    13, 12, 10;
  --lr-blue-rgb:  12, 42, 196;

  --lr-fg-1: #0D0C0A;
  --lr-fg-2: rgba(13,12,10,0.78);
  --lr-fg-3: rgba(13,12,10,0.58);
  --lr-bg:   #F8F6F2;
  --lr-accent: #0C2AC4;

  --lr-blue:      #0C2AC4;
  --lr-blue-soft: #1B4BFF;
  --lr-blue-glow: rgba(12,42,196,0.15);

  --lr-nav-bg:        rgba(248,246,242,0.85);
  --lr-nav-saturate:  saturate(110%);
  --lr-cell-hover:    rgba(12,42,196,0.05);
  --lr-card-tint:     rgba(13,12,10,0.04);
  --lr-card-tint-2:   rgba(13,12,10,0.08);
  --lr-card-hover-bg: #ECEAFE;
  --lr-shadow-chip:   0 0 64px 8px rgba(12,42,196,0.14), 0 16px 40px -12px rgba(12,42,196,0.22), 0 6px 16px -6px rgba(13,12,10,0.10);
  --lr-shadow-card:   0 20px 60px -20px rgba(12,42,196,0.12), 0 8px 24px -8px rgba(13,12,10,0.08);
  --lr-grid-line:     rgba(13,12,10,0.05);

  --lr-hero-scrim-a:  rgba(12,42,196,0.06);
  --lr-hero-scrim-b:  rgba(12,42,196,0.03);

  --lr-logo-filter:   none;
  --lr-logo-opacity:  0.85;
}

/* Type classes — colors flow from tokens so they flip with theme */
.lr-hero { font-family: var(--lr-font-display); font-weight:700; font-size: var(--lr-hero); line-height: var(--lr-lh-display); letter-spacing:-0.035em; text-wrap:balance; color: var(--lr-fg-1); }
.lr-h1   { font-family: var(--lr-font-display); font-weight:700; font-size: var(--lr-display-xl); line-height: var(--lr-lh-display); letter-spacing:-0.03em; text-wrap:balance; color: var(--lr-fg-1); }
.lr-h2   { font-family: var(--lr-font-display); font-weight:700; font-size: var(--lr-display-lg); line-height: var(--lr-lh-heading); letter-spacing:-0.025em; text-wrap:balance; color: var(--lr-fg-1); }
.lr-h3   { font-family: var(--lr-font-display); font-weight:600; font-size: var(--lr-display-md); line-height: var(--lr-lh-heading); letter-spacing:-0.02em; color: var(--lr-fg-1); }
.lr-h4   { font-family: var(--lr-font-display); font-weight:600; font-size: var(--lr-display-sm); line-height:1.15; letter-spacing:-0.015em; color: var(--lr-fg-1); }
.lr-lead { font-family: var(--lr-font-text); font-size: var(--lr-lead); line-height:1.55; color: var(--lr-fg-2); max-width:60ch; font-weight:400; }
.lr-body { font-family: var(--lr-font-text); font-size: var(--lr-body); line-height: var(--lr-lh-body); color: var(--lr-fg-2); }

/* Eyebrows / labels — moved to Inter (was mono); 11px mono was too small and
   had insufficient contrast. Inter 13px 600 reads cleanly at any size and
   themes correctly. Mono is now reserved for tabular/numeric contexts only
   (.lr-index, stat counter labels). */
.lr-eyebrow { font-family: var(--lr-font-text); font-size: 13px; letter-spacing:0.05em; text-transform:uppercase; color: var(--lr-blue-soft); font-weight:600; }
.lr-label   { font-family: var(--lr-font-text); font-size: 13px; letter-spacing:0.04em; text-transform:uppercase; font-weight:700; color: var(--lr-fg-1); }
.lr-index   { font-family: var(--lr-font-mono); font-size: var(--lr-mono-md); letter-spacing:0.08em; color: var(--lr-fg-3); font-feature-settings:'tnum'; }
.lr-gradient-text { background: var(--lr-gradient-text); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* Reset */
html, body { margin:0; background: var(--lr-bg); color: var(--lr-fg-1); font-family: var(--lr-font-text); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; transition: background-color var(--lr-dur) var(--lr-ease), color var(--lr-dur) var(--lr-ease); }
* { box-sizing: border-box; }
::selection { background: var(--lr-blue); color: #FFFFFF; }
a { color: inherit; text-decoration: none; }
button { font:inherit; cursor:pointer; border:none; background:none; color:inherit; padding:0; }
img, svg, video { display:block; max-width:100%; }
html { scroll-behavior: smooth; }

/* ─── Layout primitives ─── */
.wrap { max-width: var(--lr-max); margin: 0 auto; padding: 0 var(--lr-gutter); }
.section { padding-block: var(--lr-section-y); position: relative; }
.grid { display: grid; gap: 24px; }
.rule { height: 1px; background: var(--lr-line); border: 0; margin: 0; }
.rule-soft { height: 1px; background: var(--lr-line-soft); border: 0; margin: 0; }

/* ─── Header / Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) var(--lr-nav-saturate);
  -webkit-backdrop-filter: blur(16px) var(--lr-nav-saturate);
  background: var(--lr-nav-bg);
  border-bottom: 1px solid var(--lr-line);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--lr-gutter);
  max-width: var(--lr-max);
  margin: 0 auto;
  gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; height: 56px; }
.nav-brand img { height: 52px; width: auto; }
.footer-brand img { height: 30px; width: auto; }
/* Brand wordmark uses two real assets (no inversion filter) — white-on-transparent
   for the dark canvas, dark-on-transparent for cream. Default state shows the
   dark-mode file; light-mode rules below swap to the light file. */
.nav-brand .logo-light-only,
.footer-brand .logo-light-only { display: none; }
.nav-brand .logo-dark-only,
.footer-brand .logo-dark-only { display: inline-block; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .nav-brand .logo-dark-only,
  html:not([data-theme="dark"]) .footer-brand .logo-dark-only { display: none; }
  html:not([data-theme="dark"]) .nav-brand .logo-light-only,
  html:not([data-theme="dark"]) .footer-brand .logo-light-only { display: inline-block; }
}
[data-theme="light"] .nav-brand .logo-dark-only,
[data-theme="light"] .footer-brand .logo-dark-only { display: none; }
[data-theme="light"] .nav-brand .logo-light-only,
[data-theme="light"] .footer-brand .logo-light-only { display: inline-block; }
[data-theme="dark"] .nav-brand .logo-dark-only,
[data-theme="dark"] .footer-brand .logo-dark-only { display: inline-block; }
[data-theme="dark"] .nav-brand .logo-light-only,
[data-theme="dark"] .footer-brand .logo-light-only { display: none; }
.nav-center {
  display: flex; align-items: center; gap: 6px;
  justify-self: center;
  background: var(--lr-card-tint);
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-r-pill);
  padding: 4px;
}
.nav-link {
  font-family: var(--lr-font-text);
  font-size: 14px; font-weight: 500;
  color: var(--lr-fg-2);
  padding: 8px 16px;
  border-radius: var(--lr-r-pill);
  transition: color var(--lr-dur) var(--lr-ease), background var(--lr-dur) var(--lr-ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--lr-fg-1); background: var(--lr-card-tint); }
.nav-link.active { color: var(--lr-fg-1); background: rgb(var(--lr-blue-rgb) / 0.16); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav-mobile-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: var(--lr-r-md);
  border: 1px solid var(--lr-line);
  align-items: center; justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  background: transparent;
  cursor: pointer;
  color: var(--lr-fg-1);
}
.nav-mobile-toggle svg { width: 20px; height: 20px; stroke: currentColor; }

/* ─── Theme toggle ─── */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--lr-r-pill);
  border: 1px solid var(--lr-line);
  background: transparent;
  color: var(--lr-fg-2);
  cursor: pointer;
  transition: color var(--lr-dur) var(--lr-ease), border-color var(--lr-dur) var(--lr-ease), background var(--lr-dur) var(--lr-ease);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.theme-toggle:hover { color: var(--lr-fg-1); border-color: var(--lr-blue-soft); background: var(--lr-card-tint); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show only the icon that matches the active theme */
.theme-toggle .icon-light { display: none; }
.theme-toggle .icon-dark { display: block; }
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .theme-toggle .icon-light { display: block; }
  html:not([data-theme="dark"]) .theme-toggle .icon-dark { display: none; }
}
[data-theme="light"] .theme-toggle .icon-light { display: block; }
[data-theme="light"] .theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: block; }

/* Kill iOS double-tap-to-zoom on interactive elements so near-miss taps on small targets
   trigger the click instantly instead of fighting the browser's zoom gesture. Pinch zoom still works. */
button, a, .btn, .faq-q, .nav-link { touch-action: manipulation; }

/* Mobile menu hidden by default at all sizes */
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-center { display: none; }
  .nav-right .btn { display: none; }
  .nav-mobile-toggle { display: flex; }
  .mobile-menu.open {
    display: block;
    position: fixed;
    top: 92px;
    left: 0; right: 0; bottom: 0;
    border-top: 1px solid var(--lr-line);
    background: var(--lr-bg);
    padding: 24px var(--lr-gutter) 32px;
    overflow-y: auto;
    z-index: 60;
  }
  .mobile-menu.open a {
    display: block;
    padding: 14px 0;
    font-family: var(--lr-font-display);
    font-size: 22px; font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--lr-fg-1);
    border-bottom: 1px solid var(--lr-line-soft);
  }
  .mobile-menu.open a:last-of-type { border-bottom: 0; }
  .mobile-menu.open .btn {
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 16px 24px;
  }
  /* Lock page scroll when the menu is open (modern browsers) */
  html:has(.mobile-menu.open) { overflow: hidden; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--lr-font-text);
  font-size: 15px; font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--lr-r-pill);
  border: 1px solid transparent;
  transition: transform var(--lr-dur) var(--lr-ease), background var(--lr-dur) var(--lr-ease), color var(--lr-dur) var(--lr-ease), border-color var(--lr-dur) var(--lr-ease);
  cursor: pointer;
  white-space: nowrap;
}
/* Primary button — blue base; light mode uses ink-blue automatically via --lr-blue */
.btn-primary { background: var(--lr-blue); color: #FFFFFF; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 30px -10px var(--lr-blue-glow); }
.btn-primary:hover { background: var(--lr-blue-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--lr-fg-1); border-color: var(--lr-line); }
.btn-ghost:hover { background: var(--lr-card-tint); border-color: var(--lr-fg-3); }
/* Invert button — flips fg/bg, used for white-on-dark or dark-on-white CTAs */
.btn-invert { background: var(--lr-fg-1); color: var(--lr-bg); }
.btn-invert:hover { background: var(--lr-fg-2); transform: translateY(-1px); }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-arrow { width: 14px; height: 14px; transition: transform var(--lr-dur) var(--lr-ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ─── Pills / chips ─── */
/* Chips switched from JetBrains Mono 11px to Inter 12px 600. Same compact
   look but readable on both light and dark surfaces. */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--lr-r-pill);
  background: var(--lr-card-tint);
  border: 1px solid var(--lr-line);
  font-family: var(--lr-font-text);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lr-fg-2);
  font-weight: 600;
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lr-blue); box-shadow: 0 0 10px var(--lr-blue-glow); }

/* ─── Footer ─── */
.footer-prompt {
  border-top: 1px solid var(--lr-line);
  background: linear-gradient(180deg, transparent 0%, rgb(var(--lr-blue-rgb) / 0.06) 100%);
}
.footer-prompt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--lr-line);
  border-bottom: 1px solid var(--lr-line);
}
.footer-prompt-cell {
  padding: 56px var(--lr-gutter);
  border-right: 1px solid var(--lr-line);
  display: flex; flex-direction: column; gap: 20px;
  transition: background var(--lr-dur) var(--lr-ease);
}
/* On viewports wider than --lr-max, .wrap content is centered with whitespace
   on both sides, but the footer-prompt grid spans the full viewport. Without
   this rule, the cell's content sits flush at gutter from the page edge while
   .wrap content above starts much further inward — they look misaligned.
   Pad the outer edge of the first/last cell so cell content lines up with
   the wrap's effective left/right edge. */
.footer-prompt-cell:first-child {
  padding-left: max(var(--lr-gutter), calc((100vw - var(--lr-max)) / 2 + var(--lr-gutter)));
}
.footer-prompt-cell:last-child {
  padding-right: max(var(--lr-gutter), calc((100vw - var(--lr-max)) / 2 + var(--lr-gutter)));
}
.footer-prompt-cell:last-child { border-right: 0; }
.footer-prompt-cell:hover { background: var(--lr-cell-hover); }
.footer-prompt-cell .lr-eyebrow { color: var(--lr-blue-soft); }
.footer-prompt-cell h3 { font-family: var(--lr-font-display); font-size: clamp(28px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.025em; margin: 0; line-height: 1.05; color: var(--lr-fg-1); }
.footer-prompt-cell h3 em { font-style: normal; font-weight: 700; color: var(--lr-blue); }
.footer-prompt-cell .btn { align-self: flex-start; }

@media (max-width: 720px) {
  .footer-prompt-grid { grid-template-columns: 1fr; }
  .footer-prompt-cell { border-right: 0; border-bottom: 1px solid var(--lr-line); padding: 40px var(--lr-gutter); }
  /* On mobile both cells stack and there's no overflow vs .wrap, so reset
     the alignment overrides — gutter-only is correct here. */
  .footer-prompt-cell:first-child { padding-left: var(--lr-gutter); }
  .footer-prompt-cell:last-child  { padding-right: var(--lr-gutter); }
  .footer-prompt-cell:last-child { border-bottom: 0; }
}

.footer {
  padding: 48px var(--lr-gutter) 40px;
  max-width: var(--lr-max); margin: 0 auto;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 30px; width: auto; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-size: 16px; color: var(--lr-fg-2); transition: color var(--lr-dur) var(--lr-ease); }
.footer-nav a:hover { color: var(--lr-fg-1); }
/* Footer copyright bar uses Inter (was mono); themes correctly. */
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--lr-line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-family: var(--lr-font-text); font-size: 12px; color: var(--lr-fg-3); letter-spacing: 0.02em; }
.footer-bottom .copy-symbol { font-size: 1.5em; line-height: 0.9; vertical-align: -2px; margin-right: 2px; }

/* ─── Page hero ─── */
.page-hero {
  padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--lr-line);
  position: relative;
  overflow: hidden;
}
.page-hero .page-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Scrim blobs theme-aware: dark mode = saturated blue, light mode = faint ink */
  background:
    radial-gradient(circle at 20% 0%, var(--lr-hero-scrim-a), transparent 55%),
    radial-gradient(circle at 90% 100%, var(--lr-hero-scrim-b), transparent 50%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .lr-eyebrow { color: var(--lr-blue-soft); margin-bottom: 24px; display: block; }
.page-hero h1 { margin: 0 0 24px; max-width: 16ch; }
.page-hero .lr-lead { max-width: 56ch; }

/* ─── Utility ─── */
.stack > * + * { margin-top: var(--gap, 16px); }
.hidden { display: none !important; }
.text-fog { color: var(--lr-fg-2); }
.text-mist { color: var(--lr-fg-3); }

/* ─── Section titles ─── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head .lr-h2 { margin: 0; max-width: 18ch; }
.section-head .lr-lead { max-width: 46ch; margin: 0; }

/* ─── Cards ─── */
.card {
  background: var(--lr-black-2);
  border: 1px solid var(--lr-line);
  border-radius: var(--lr-r-lg);
  padding: 32px;
  position: relative;
  transition: transform var(--lr-dur) var(--lr-ease), border-color var(--lr-dur) var(--lr-ease), background var(--lr-dur) var(--lr-ease);
}
.card:hover { border-color: rgb(var(--lr-blue-rgb) / 0.45); background: var(--lr-card-hover-bg); }
.card .card-index { position: absolute; top: 20px; right: 24px; color: var(--lr-fg-3); }


/* ─── Video Spacers — inline autoplay chips ─── */
.video-spacer {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
  background: var(--lr-black);
  border-top: 1px solid var(--lr-line);
  border-bottom: 1px solid var(--lr-line);
}
.video-spacer-row {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.video-spacer-word {
  font-family: var(--lr-font-display);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 120px);
  letter-spacing: -0.035em;
  line-height: 0.95;
  color: var(--lr-fg-1);
  text-transform: uppercase;
}
.video-spacer-word.blue { color: var(--lr-blue); }
.video-chip {
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--lr-black-2);
  border: 1px solid var(--lr-line);
  box-shadow: var(--lr-shadow-card);
  transform-origin: center;
}
.video-chip-sm { width: clamp(140px, 14vw, 220px); aspect-ratio: 16/10; }
.video-chip-md { width: clamp(180px, 18vw, 280px); aspect-ratio: 16/10; }
.video-chip-lg { width: clamp(220px, 24vw, 360px); aspect-ratio: 16/9; }
.video-chip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-chip.tilt-l { transform: rotate(-3deg); }
.video-chip.tilt-r { transform: rotate(3deg); }

/* ─── Monumental hero (inline video chips) ─── */
.hero-mono {
  position: relative;
  padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 7vw, 100px);
  background: var(--lr-black);
  border-bottom: 1px solid var(--lr-line);
  overflow: hidden;
}
.hero-mono::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--lr-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lr-grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 70%);
  pointer-events: none;
}
.hero-mono-inner { position: relative; z-index: 1; }

.hero-mono h1 {
  font-family: var(--lr-font-display);
  font-weight: 800;
  font-size: clamp(44px, 8.5vw, 132px);
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0 0 40px;
  color: var(--lr-fg-1);
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-mono h1 .hero-chip-inline {
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.15em;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lr-black-2);
  border: 1px solid var(--lr-line);
  box-shadow: var(--lr-shadow-chip);
  position: relative;
  top: -0.1em; /* optical align to cap-height baseline */
}
.hero-mono h1 .hero-chip-inline video {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-mono h1 .hero-chip-inline.size-1 { width: clamp(110px, 11vw, 180px); aspect-ratio: 16/10; }
.hero-mono h1 .hero-chip-inline.size-2 { width: clamp(100px, 10vw, 160px); aspect-ratio: 1/1; }
.hero-mono h1 .hero-chip-inline.size-3 { width: clamp(130px, 13vw, 210px); aspect-ratio: 16/9; }
.hero-mono h1 .hero-chip-inline.tilt-l { transform: rotate(-4deg); }
.hero-mono h1 .hero-chip-inline.tilt-r { transform: rotate(3deg); }
.hero-mono h1 .blue { color: var(--lr-blue); }
.hero-mono-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--lr-fg-2); max-width: 58ch; margin: 0 0 40px; line-height: 1.55; }
.hero-mono-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Real-logo marquee — theme-aware logo treatment, with breathing room above
   and below to keep the strip from feeling cramped against neighboring content. */
.marquee-strip {
  /* If the homepage section that holds the marquee uses .marquee-strip as a
     wrapper, this gives it consistent vertical padding regardless of theme.
     Pages can opt into this; existing pages may also use .section. */
  padding-block: clamp(64px, 7vw, 96px);
}
.marquee-logos {
  /* Inline padding around the moving track itself adds top/bottom breathing
     room in any container the marquee is dropped into. */
  padding-block: clamp(40px, 4vw, 56px);
}
.marquee-logos .marquee-item {
  height: 36px;
  display: inline-flex;
  align-items: center;
}
.marquee-logos .marquee-item img {
  height: 100%;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  opacity: var(--lr-logo-opacity);
  filter: var(--lr-logo-filter);
  transition: opacity var(--lr-dur) var(--lr-ease), filter var(--lr-dur) var(--lr-ease);
}
/* Pictorial marks (Plarium, Hungry Minds dark) need extra optical weight
   vs the wordmark logos, so render them taller. */
.marquee-logos .marquee-item img[src*="plarium"],
.marquee-logos .marquee-item img[src*="hungry-minds"]:not([src*="hungry-minds-light"]) {
  height: 63px;
  max-width: 320px;
  transform: translateY(-6px);
}
/* RAID at 75% of the bigger-pictorial size — the metallic mark already
   has lots of internal whitespace, so it reads heavier than Plarium at
   the same height. */
.marquee-logos .marquee-item img[src*="raid"] {
  height: 47px;
  max-width: 240px;
  transform: translateY(-4px);
}
/* Light-mode Hungry Minds file is a different lockup but should match
   the dark-mode optical weight, so render close to the same height. */
.marquee-logos .marquee-item img[src*="hungry-minds-light"] {
  height: 60px;
  max-width: 200px;
  transform: translateY(-4px);
}
.marquee-logos .marquee-item:hover img { opacity: 1; }
/* The brand-logo asset files are pre-processed white-on-transparent for the
   dark canvas. In light mode that renders as faint white-on-cream, so we
   invert+dim to flip them dark. Slight grayscale keeps the wash consistent. */
@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .marquee-logos .marquee-item img {
    filter: invert(1) brightness(0.5) contrast(1.1);
  }
}
[data-theme="light"] .marquee-logos .marquee-item img {
  filter: invert(1) brightness(0.5) contrast(1.1);
}

/* Hungry Minds is the only logo that can't be auto-inverted cleanly (the
   illustrated portrait has baked-in shading), so it carries two files —
   .logo-dark-only and .logo-light-only — and CSS shows the right one. */
.marquee-logos .marquee-item .logo-light-only { display: none; }
.marquee-logos .marquee-item .logo-dark-only { display: inline-block; }

@media (prefers-color-scheme: light) {
  html:not([data-theme="dark"]) .marquee-logos .marquee-item .logo-dark-only { display: none; }
  html:not([data-theme="dark"]) .marquee-logos .marquee-item .logo-light-only { display: inline-block; filter: none; }
}
[data-theme="light"] .marquee-logos .marquee-item .logo-dark-only { display: none; }
[data-theme="light"] .marquee-logos .marquee-item .logo-light-only { display: inline-block; filter: none; }
[data-theme="dark"] .marquee-logos .marquee-item .logo-light-only { display: none; }
[data-theme="dark"] .marquee-logos .marquee-item .logo-dark-only { display: inline-block; }

/* ─── A11y baseline ─── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--lr-blue);
  outline-offset: 3px;
  border-radius: 4px;
}
a.btn:focus-visible, button:focus-visible { outline-offset: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 300;
  background: var(--lr-blue);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 8px;
  font: 600 14px/1 var(--lr-font-text);
  text-decoration: none;
  transition: top 180ms ease;
}
.skip-link:focus { top: 16px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Theme-aware brand wordmark ───
   The Letsreach wordmark file is a white SVG/PNG. In light mode we invert
   the brightness to render dark, and tighten contrast. Picks up both the
   nav and footer brand without needing a second asset file. */
/* Theme-aware brand logo handled via dual-asset swap — see .nav-brand /
   .footer-brand .logo-dark-only / .logo-light-only rules above. */
