/* ──────────────────────────────────────────────────────────
   Mobile optimization — mobile-first conversion focus.
   Goals:
     1. Preserve every section (no hidden content)
     2. CTAs always reachable + above the fold
     3. Touch targets ≥ 44px
     4. Tight section rhythm, no dead space
     5. Hero punchy + scannable
   Breakpoints:
     ≤ 980px : tablet (some grids collapse to 2-col)
     ≤ 720px : mobile (full single-column + size adjustments)
     ≤ 480px : small mobile (final size pass)
   ────────────────────────────────────────────────────────── */

/* Safety: prevent any overflow on body */
html, body { overflow-x: hidden; max-width: 100vw; }

/* iOS — let safe areas hug the bottom for the sticky CTA */
.sticky-cta { padding-bottom: env(safe-area-inset-bottom, 0) !important; }


/* ===== TABLET (≤ 980px) ===== */

/* Mobile-first safety: never allow horizontal scroll from any errant element */
html, body { overflow-x: hidden; max-width: 100vw; }
.marquee-ticker { overflow: hidden !important; }

@media (max-width: 980px) {
  :root { --maxw: 100%; }

  .nav { padding: 12px 18px; }
  .nav-inner { grid-template-columns: 110px 1fr auto; gap: 12px; }
  .nav-meta { display: none; }

  /* Hero — tame oversized desktop sizing */
  .hero { padding: 100px 24px 56px; min-height: auto; }
  .hero-floating-card { display: none; }

  /* Collapse multi-col grids to 2-col */
  .wyg-grid-5 { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
  .lucase-stats { grid-template-columns: repeat(2, 1fr); }
  .lucase-grid-2 { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 36px; }
  .proof-tiles { grid-template-columns: repeat(3, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .basecamp-grid { grid-template-columns: 1fr !important; }
  .intake-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* Dashboard — 16:9 preview frame. Dashboard renders at its native
     1420px desktop layout, then transform: scale()s to fit container
     width via container-query units. Bottom is cropped (with fade). */
  .basecamp-app {
    margin-top: 32px !important;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
  }
  .basecamp-app::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
  }
  .basecamp-app .bk-dash {
    position: absolute !important;
    top: 0; left: 0;
    width: 1420px !important;
    transform: scale(calc((100vw - 36px) / 1420px)) !important;
    transform-origin: top left !important;
    min-height: 0 !important;
    margin: 0 !important;
    zoom: 1;
  }
}


/* ===== MOBILE (≤ 720px) ===== */
@media (max-width: 720px) {
  /* Global rhythm */
  body { font-size: 15px; padding-bottom: 64px !important; /* room for sticky CTA */ }

  /* Hide empty section heads that add only margin */
  .why-head:empty { display: none; }

  /* Section paddings — uniform 40px top/bottom, 18px horizontal */
  .hero { padding: 100px 0 40px !important; }

  /* ── Nav ────────────────────────────────────────────── */
  .nav {
    padding: 10px 14px;
    background: rgba(10,10,11,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-inner { grid-template-columns: 1fr auto; gap: 10px; }
  .nav-logo img { height: 18px; }
  .nav-links { display: none !important; }
  .nav-signin { display: none; }
  .nav-cta .btn { padding: 9px 14px; font-size: 12px; min-height: 38px; }
  .nav-cta { gap: 8px; }

  /* Hamburger button */
  /* Hamburger button */
  .nav-burger {
    display: flex !important;
    flex-direction: column; justify-content: center; gap: 4px;
    width: 44px; height: 44px;
    padding: 0; background: transparent; border: 1px solid var(--line);
    border-radius: 100px; cursor: pointer;
    align-items: center;
    position: relative;
    z-index: 200;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(170,255,15,0.2);
    touch-action: manipulation;
  }
  .nav-burger span {
    display: block; width: 18px; height: 1.5px; background: var(--fg);
    border-radius: 2px; transition: transform .25s, opacity .2s;
    pointer-events: none;
  }
  .nav-menu-open .nav-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .nav-menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-menu-open .nav-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

  /* Mobile menu — flat layout, no positioning tricks */
  .nav-mobile-menu {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: #0a0a0b !important;
    z-index: 150 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-mobile-menu.open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity .25s ease, visibility 0s linear 0s;
  }
  .nav-mobile-menu-inner {
    display: flex;
    flex-direction: column;
    padding-top: 12px;
    min-height: 100%;
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  /* Close button — replaces eyebrow at top of mobile menu */
  .nav-mobile-close {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: 14px 22px;
    font-size: 10.5px; letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-2);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    font-family: inherit;
  }
  .nav-mobile-close:hover,
  .nav-mobile-close:focus-visible {
    color: var(--fg);
    background: rgba(255,255,255,0.02);
    outline: none;
  }
  .nav-mobile-close-x {
    font-size: 22px;
    line-height: 1;
    font-weight: 300;
    letter-spacing: 0;
  }
  /* Link list */
  .nav-mobile-links {
    display: flex; flex-direction: column;
    flex: 1;
    padding: 4px 0;
  }
  .nav-mobile-link {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    color: var(--fg);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    min-height: 60px;
  }
  .nav-mobile-link:last-child { border-bottom: none; }
  .nav-mobile-link-num {
    font-size: 10px; letter-spacing: 0.14em;
    color: var(--fg-dim); font-weight: 500;
  }
  .nav-mobile-link-label {
    font-family: 'Instrument Serif', serif;
    font-size: 26px; letter-spacing: -0.01em;
    line-height: 1; text-transform: none;
  }
  .nav-mobile-link-arrow {
    color: var(--fg-dim); font-size: 16px;
  }
  /* Footer block */
  .nav-mobile-foot {
    display: flex; flex-direction: column;
    padding: 16px 22px 32px;
    border-top: 1px solid var(--line);
    gap: 14px;
  }
  .nav-mobile-signin {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--fg-2);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .nav-mobile-apply {
    justify-content: center !important;
    min-height: 56px !important;
    font-size: 15px !important;
    padding: 16px 22px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border-radius: 10px !important;
  }
  .nav-mobile-meta {
    display: flex; justify-content: space-between;
    font-size: 9.5px; letter-spacing: 0.1em;
    color: var(--fg-dim);
    padding-top: 4px;
  }

  /* ── Sticky bottom CTA (primary conversion path) ───── */
  .sticky-cta {
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0));
  }
  .sticky-cta-inner { gap: 10px; }
  .sticky-cta-text { font-size: 11.5px; flex: 1; min-width: 0; line-height: 1.3; }
  .sticky-cta-btn {
    padding: 12px 18px !important;
    font-size: 13px;
    min-height: 44px;
    white-space: nowrap;
  }

  /* Hide background particles on mobile — too noisy on small screens */
  .particle-field { display: none !important; }

  /* ── Section primitives ───────────────────────────── */
  .section-eyebrow { font-size: 10.5px; letter-spacing: 0.1em; }
  .section-title {
    font-size: clamp(44px, 12vw, 68px) !important;
    letter-spacing: -0.02em;
    line-height: 1.02;
  }
  .lead { font-size: 15.5px; line-height: 1.5; max-width: none; }
  .lead-2 { font-size: 14px; }

  /* ── Hero ──────────────────────────────────────────── */
  .hero {
    padding: 0 0 44px;
    display: flex;
    flex-direction: column;
  }
  /* Flatten .hero-inner so its children participate in .hero's flex layout,
     allowing us to reorder them (push .hero-meta above the video on mobile). */
  .hero-inner {
    display: contents;
  }
  /* Reorder: meta first (above video), then video, then everything else */
  .hero-meta {
    order: 1;
    padding: 44px 18px 0;
    margin-bottom: 14px !important;
    gap: 6px 10px;
    font-size: 10.5px;
  }
  .hero-video-bg {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin-top: 0;
    overflow: hidden;
    order: 2;
    /* Fade the edges into the page background so it doesn't read as a hard rectangle */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 85%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 85%, transparent 100%);
  }
  /* Subtle radial glow + scrim layered on top so the chrome wordmark sits in the
     same dark editorial atmosphere as the rest of the page */
  .hero-video-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(10,10,11,0.55) 90%),
      radial-gradient(ellipse at 50% 50%, rgba(170,255,15,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
  }
  .hero-video-tint { display: none !important; }
  .hero-video-bg video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
  /* Push remaining content (headline, sub, meta-strip, CTAs, partner) below video */
  .hero-headline {
    order: 3;
    padding: 28px 18px 0 !important;
    margin-bottom: 24px !important;
    font-size: clamp(60px, 17vw, 108px) !important;
    line-height: 0.94 !important;
    letter-spacing: -0.035em !important;
  }
  /* Mobile-only forced line breaks: "Full-stack / TikTok Shop / Agency." */
  .hero-headline .hl-line { display: block; }
  .hero-headline em {
    display: block;
    width: fit-content;
  }
  .hero-headline em::after {
    bottom: 0.04em !important;
    height: 0.06em !important;
  }
  .hero-headline br { display: none; }
  .hero-sub { order: 4; padding: 0 18px !important; margin-bottom: 24px !important; }
  .hero-meta-line { display: none !important; }
  .hero-meta { display: none !important; }
  .hero-partner { order: 5; padding: 0 18px !important; margin-top: 0 !important; margin-bottom: 32px !important; }
  .hero-meta-strip { order: 6; padding: 0 18px !important; margin-bottom: 24px !important; }
  .hero-cta { order: 7; padding: 0 18px !important; }
  /* Hide the desktop TikTok phone mock — too dense to scale */
  .tt-phone { display: none !important; }
  .hero-meta {
    gap: 6px 10px;
    margin-bottom: 22px;
    font-size: 10.5px;
  }
  .hero-headline {
    font-size: clamp(54px, 15vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.03em;
    max-width: none;
    margin-bottom: 22px;
  }
  .hero-sub {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 22px;
    max-width: none;
  }
  .hero-meta-strip {
    font-size: 11px;
    margin-bottom: 28px;
    line-height: 1.5;
  }
  .hero-cta {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn {
    padding: 16px 22px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }
  .hero-partner {
    margin-top: 26px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-partner-badge { height: 24px; }

  /* ── Trust bar (4 logos) ──────────────────────────── */
  .trustbar { padding: 32px 18px; }
  .trustbar-eyebrow { margin-bottom: 20px; font-size: 10.5px; }
  .trustbar-logos-4 {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    grid-template-columns: none !important;
    gap: 36px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  .tb-logo-img {
    flex: 0 0 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50% !important;
    height: 80px !important;
    min-height: 0 !important;
    overflow: hidden;
  }
  .tb-logo-img img {
    display: block;
    height: auto !important;
    width: auto !important;
    max-height: 44px;
    max-width: 130px;
    margin: 0 !important;
  }
  /* Magnolia Park is a square seal — let it run taller */
  .tb-logo-img:nth-child(3) img {
    max-height: 72px;
    max-width: 72px;
  }
  .tb-logo { font-size: clamp(18px, 5.5vw, 24px); }
  .tb-stat-line { font-size: clamp(24px, 7vw, 36px); }
  .tb-stat-link { margin-top: 18px; }

  /* ── Headline stat (1% → 24% / +445%) ───────────── */
  .hstat { padding: 40px 18px; }
  .hstat-figure {
    font-size: clamp(76px, 22vw, 140px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }
  .hstat-lede { font-size: 18px; line-height: 1.4; margin-top: 4px; }
  .hstat-sub { font-size: 11px; margin-top: 12px; }

  /* ── Where we plug in (2-col table → 1 col) ─────── */
  .plugin { padding: 40px 18px; }
  .plugin-head { margin-bottom: 32px; }
  .plugin-thead, .plugin-row { grid-template-columns: 1fr !important; }
  .plugin-th, .plugin-cell { padding: 16px 18px; }
  .plugin-th-kamp, .plugin-cell-kamp {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(170,255,15,0.18);
  }

  /* ── What you get (5 outcomes) ────────────────────── */
  .wyg { padding: 40px 18px; }
  .wyg-head { margin-bottom: 32px; }
  .wyg-grid, .wyg-grid-5 {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .wyg-cell {
    padding: 18px 18px;
    gap: 14px;
    min-height: 0;
    flex-direction: row !important;
    align-items: center !important;
  }
  .wyg-text { font-size: 15px; flex: 1; }
  .wyg-icon { width: 36px; height: 36px; flex-shrink: 0; }
  .wyg-num { display: none; }

  /* ── 30-day flow stepper ──────────────────────────── */
  .flow { padding: 40px 18px; }
  .flow-head { margin-bottom: 32px; }
  .flow-track { padding-top: 0; padding-left: 22px; position: relative; }
  /* Vertical green progress line on the left, filled by scroll progress */
  .flow-line {
    display: block !important;
    position: absolute !important;
    top: 29px !important; bottom: 0 !important;
    left: 6px !important; right: auto !important;
    width: 2px !important; height: auto !important;
    background: var(--line);
    /* Fade out at the bottom — the timeline reads as continuing past view */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
  }
  .flow-line-fill {
    position: absolute; top: 0; left: 0;
    width: 100% !important;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    transition: height .12s linear;
  }
  .flow-nodes {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow-node {
    padding: 18px 18px 18px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0));
    position: relative;
  }
  /* Dot indicator on the left line for each step */
  .flow-node::before {
    content: '';
    position: absolute;
    left: -23px; top: 24px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line);
    z-index: 2;
    transition: border-color .3s, background .3s, box-shadow .3s;
  }
  .flow-node.reached::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px rgba(170,255,15,0.5);
  }
  .flow-node-dot { display: none; }
  .flow-node-window {
    margin-bottom: 6px;
    opacity: 1 !important;
    transform: none !important;
    font-size: 10.5px;
    color: var(--accent);
  }
  .flow-node-num { margin-bottom: 8px; font-size: 10.5px; }
  .flow-node-title { font-size: 22px; margin-bottom: 8px; }
  .flow-node-body { font-size: 14px; }
  .flow-node-detail { display: none; }

  /* ── Pillars (Full stack) ─────────────────────────── */
  .pillars { padding: 40px 18px; }
  .pillars-head { margin-bottom: 32px; }
  .pillars-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .pillar-card {
    padding: 22px 20px;
    min-height: 0;
  }
  .pillar-num-big { font-size: 44px; }
  .pillar-glyph { width: 42px; height: 42px; }
  .pillar-title { font-size: 22px; }
  .pillar-body { font-size: 14px; }
  .pillar-bullet {
    max-height: 200px !important;
    opacity: 1 !important;
    color: var(--fg-2) !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
  }
  .pillar-corner { display: none; }

  /* ── Studio (NYC + LA + map) ──────────────────────── */
  .studio { padding: 40px 0 !important; }
  .studio-head { padding: 0 18px !important; margin-bottom: 32px !important; }
  .studio-rail-wrap { padding: 0 !important; margin-bottom: 32px !important; }
  .studio-rail-photos {
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 0 18px !important;
  }
  .studio-photo-real { aspect-ratio: 16/10 !important; }
  .studio-callout {
    padding: 18px !important;
    margin: 0 18px 32px !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
  }
  .us-map { margin: 0 !important; }
  /* Hide the dot pattern fill on mobile — sub-pixel rendering at small
     scale aliases one row of dots into a stray horizontal line. */
  .us-map-svg g[mask] rect:first-child { display: none !important; }
  .us-map-stats {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-top: 16px !important;
  }
  .map-stat { padding: 10px 12px !important; }
  .map-stat .mono { font-size: 9px !important; letter-spacing: 0.10em !important; }
  .map-stat-v { font-size: 14px !important; margin-top: 4px !important; }
  .ping-label, .studio-label { font-size: 16px !important; }
  .us-map-svg .ping-label { font-weight: 500 !important; opacity: 0.85 !important; }

  /* ── Base KAMP section ────────────────────────────── */
  .basecamp { padding: 40px 18px !important; }
  .basecamp-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
    gap: 24px;
    display: flex !important;
    flex-direction: column !important;
  }
  /* Mobile order: eyebrow → title → dashboard preview → logo + copy */
  .basecamp-eyebrow-wrap { order: 1; }
  .basecamp-title-wrap { order: 2; }
  .basecamp-app { order: 3; }
  .basecamp-text { order: 4; }
  .basecamp-text { max-width: none !important; }
  .basekamp-logo { max-width: 240px !important; margin: 0 0 24px !important; }
  .basecamp-sub { font-size: 15px; margin-bottom: 24px; }
  .basecamp-features { margin-top: 0; gap: 8px; }
  .basecamp-feature {
    padding: 12px 0 !important;
    font-size: 13.5px !important;
    flex-direction: column !important;
    gap: 4px !important;
  }
  .basecamp-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 16px 22px !important;
    font-size: 15px !important;
    min-height: 52px !important;
    margin-top: 24px !important;
  }
  /* Dashboard — 16:9 preview frame on mobile. Native 1420px layout,
     scaled via transform with container-query units to fit. */
  .basecamp-app {
    margin: 12px 0 24px !important;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: none;
  }
  .basecamp-app::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 48px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
  }
  .basecamp-app .bk-dash {
    position: absolute !important;
    top: 0; left: 0;
    width: 1420px !important;
    transform: scale(calc((100vw - 36px) / 1420px)) !important;
    transform-origin: top left !important;
    min-height: 0 !important;
    margin: 0 !important;
    zoom: 1;
    grid-template-columns: 220px 1fr !important;
  }
  .basecamp-app .bk-sidebar { display: flex !important; }
  .bc-row, .bc-row-2 { grid-template-columns: 1fr !important; gap: 12px; }
  .bk-dashframe, .basekamp-frame, .bk-dash-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── Reebok receipts (if rendered) ────────────────── */
  .receipts { padding: 40px 18px; }
  .receipts-grid { grid-template-columns: 1fr !important; }
  .receipt-card { padding: 24px 20px; }
  .receipt-grid { grid-template-columns: 1fr !important; gap: 24px; }

  /* ── More clients (collapsibles) ──────────────────── */
  .clients { padding: 40px 18px; }
  .clients-head { margin-bottom: 32px; }
  .client-head { padding: 18px 18px !important; min-height: 56px; }
  .client-body.open { padding: 0 18px 22px !important; }
  .client-brand { font-size: 20px !important; }
  .client-tag { font-size: 10px !important; }
  .client-head-right { width: 32px; height: 32px; font-size: 24px; }

  /* ── Laced Up case study ──────────────────────────── */
  .lucase { padding: 40px 18px; }
  .lucase-head { margin-bottom: 32px; }
  .lucase-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
  .lucase-stat { padding: 18px 14px; }
  .lucase-stat-v { font-size: clamp(28px, 8.5vw, 44px); margin-bottom: 8px; }
  .lucase-stat-k { font-size: 10px; }
  .lucase-stat-sub { font-size: 10px; }
  .lucase-grid-2 { grid-template-columns: 1fr !important; gap: 16px; }
  .lucase-card { padding: 20px 18px; }
  .lucase-halo-num { font-size: clamp(40px, 11vw, 56px); }
  .lucase-halo-label { font-size: 18px; }
  .lucase-halo-body { font-size: 14px; }
  .lucase-cta-row { flex-direction: column; align-items: stretch; }
  .lucase-cta-row .btn { width: 100%; justify-content: center; min-height: 52px; padding: 16px 22px; }
  /* Chart: let it scroll horizontally — keep the data intact */
  .lucase-chart-wrap, .lucase-chart, .ttslot-chart {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -18px;
    padding: 0 18px;
  }
  .lucase-chart-wrap svg, .lucase-chart svg, .ttslot-chart svg {
    min-width: 680px;
    height: auto;
  }

  /* ── Why KAMP ─────────────────────────────────────── */
  .why { padding: 16px 18px 40px; }
  .why-list { border-top: none !important; }
  .why-list { grid-template-columns: 1fr !important; }
  .why-line {
    grid-template-columns: 36px 1fr !important;
    gap: 12px;
    padding: 16px 0;
    font-size: 16px;
    line-height: 1.4;
  }
  .why-line .why-icon { display: none; }
  .why-num { color: var(--accent) !important; }
  .credibility-band {
    grid-template-columns: 1fr !important;
    margin-top: 32px !important;
  }
  .cred-stat { padding: 20px 18px !important; }
  .cred-v { font-size: clamp(32px, 8vw, 44px) !important; }

  /* ── Final close ──────────────────────────────────── */
  .final-close { padding: 40px 18px; }
  .final-close-line { font-size: clamp(32px, 10vw, 52px); }
  .final-close-btn {
    padding: 16px 28px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  /* ── Intake / Apply form ──────────────────────────── */
  .intake { padding: 40px 18px; }
  .intake-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .intake-text { padding-top: 0 !important; }
  .intake-sub { margin-bottom: 24px !important; }
  .intake-exclusive {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    font-size: 10.5px !important;
    line-height: 1.5;
    text-transform: uppercase;
    border-radius: 12px;
    text-align: left;
  }
  .intake-exclusive-dot {
    flex-shrink: 0;
    margin-top: 4px;
  }
  .intake-form { gap: 18px; }
  .intake-field { gap: 8px; }
  .intake-field label { font-size: 10.5px; }
  .intake-field input,
  .intake-field textarea,
  .intake-field select {
    font-size: 16px !important; /* avoids iOS zoom-on-focus */
    padding: 14px 14px !important;
    min-height: 50px;
  }
  .intake-radios {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .intake-radio {
    padding: 14px 12px !important;
    font-size: 13px !important;
    min-height: 48px;
    text-align: center;
    justify-content: center;
  }
  .intake-submit {
    width: 100% !important;
    padding: 16px 22px !important;
    font-size: 15px !important;
    min-height: 56px;
    justify-content: center;
  }

  /* ── Footer ───────────────────────────────────────── */
  .footer { padding: 32px 18px 24px; }
  .footer-mark-row { gap: 12px; margin-bottom: 18px; }
  .footer-wordmark { height: 28px; }
  .footer-partner-badge { height: 20px; }
  .footer-tagline {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 22px;
  }
  .footer-links {
    gap: 8px 14px;
    margin-bottom: 22px;
    font-size: 11.5px;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 14px;
    font-size: 10px;
  }
}


/* ===== SMALL MOBILE (≤ 480px) ===== */
@media (max-width: 480px) {
  .hero-headline { font-size: clamp(46px, 14vw, 66px); }
  .hero-sub { font-size: 16px; }
  .section-title { font-size: clamp(38px, 11vw, 54px) !important; }
  .trustbar-logos-4 { gap: 18px 22px; }
  .hstat-figure { font-size: clamp(64px, 24vw, 100px); }
  .lucase-stats { grid-template-columns: 1fr; }
  .receipt-grid { grid-template-columns: 1fr; }

  /* Footer collapses to 1 col on tiny screens — no longer needs the old cols rule */

  /* Tweaks panel — keep on-screen if user opens */
  .tweaks-panel, [class*="TweaksPanel"] {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    right: 12px !important;
    bottom: 80px !important;
  }
}


/* ===== Base KAMP standalone page ===== */
@media (max-width: 720px) {
  .bk-page { padding: 0; }
  .bk-h1 { font-size: 24px; }
  .bk-card { padding: 16px; }
  .bk-stat-v { font-size: 28px; }
  .bk-topbar { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .bk-header-actions { gap: 6px; }
  .bk-content { padding: 16px; }
  .bk-grid, .bk-stats-row, .bk-cards-row { grid-template-columns: 1fr !important; }
}


/* ===== Careers page ===== */
@media (max-width: 720px) {
  .careers-hero, .careers-section { padding: 40px 18px !important; }
  .careers-hero-title { font-size: clamp(44px, 12vw, 68px) !important; }
  .careers-stats { grid-template-columns: 1fr !important; }
  .role-row-head { grid-template-columns: 1fr !important; gap: 6px !important; }
  .role-apply { width: 100%; }
}


/* ===== Sign in page ===== */
@media (max-width: 720px) {
  .stage { padding: 20px !important; }
  .center { gap: 28px !important; }
  .auth-card { padding: 24px 20px !important; }
}
