/* FusorX mobile layout fixes. Desktop design remains controlled by styles.css. */

@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body { -webkit-text-size-adjust: 100%; }
  p, li, small, .hero-summary, .manifesto-bottom p, .section-head-cinematic p,
  .platform-intro p, .system-heading > p, .system-card > p, .method-heading p,
  .method-card p, .trust-copy p, .waitlist-copy > p, .final-cta-copy p {
    overflow-wrap: break-word;
  }

  .site-header { padding-left: 20px; padding-right: 20px; }
  .header-center { display: none; }

  .menu-panel { padding: 105px 20px 28px; overflow-y: auto; }
  .menu-panel-grid { display: block; height: auto; }
  .menu-meta { padding: 0 0 28px; }
  .menu-meta p { max-width: 420px; margin: 20px 0 0; font-size: 19px; line-height: 1.2; }
  .menu-contact { display: none; }
  .menu-nav a { grid-template-columns: 38px minmax(0,1fr); padding: 14px 0; }
  .menu-nav span { font-size: clamp(46px, 11vw, 78px); line-height: .92; letter-spacing: -.055em; }

  .manifesto,
  .section-head-cinematic,
  .platform-intro,
  .system-heading,
  .method-heading,
  .trust-section,
  .final-cta { grid-template-columns: 1fr; }

  .manifesto { min-height: auto; padding: 110px 28px 90px; }
  .manifesto-rail { flex-direction: row; padding: 0 0 34px; }
  .manifesto-bottom { grid-template-columns: 1fr; align-items: start; }
  .arrow-link { justify-self: start; margin-top: 12px; }

  .section-head-cinematic { align-items: start; }
  .section-head-cinematic p { margin-top: 28px; }

  .platform-intro { align-items: start; }
  .platform-intro > span { grid-column: auto; }
  .platform-intro p { margin-top: 26px; }

  .system-heading { align-items: start; }
  .system-heading > p { margin-top: 26px; }

  .method-heading { align-items: start; }
  .method-heading > span { grid-column: auto; }
  .method-heading p { margin-top: 28px; }
  .method-stack { grid-template-columns: repeat(2, minmax(0,1fr)); }

  .trust-section { min-height: auto; }
  .privacy-orbit { width: min(520px, 90vw); justify-self: center; }

  .final-cta { min-height: auto; gap: 50px; }
  .final-cta-links { justify-self: start; align-items: flex-start; }

  .footer-meta { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 760px) {
  :root { --mobile-pad: 20px; }

  .site-header { height: 76px; padding: 0 var(--mobile-pad); grid-template-columns: 1fr auto; }
  .site-header.is-scrolled { height: 68px; }
  .wordmark-logo-only { height: 68px; }
  .wordmark-full-logo { width: auto !important; height: 52px !important; max-width: 52px !important; }
  .site-header.is-scrolled .wordmark-full-logo { height: 48px !important; }
  .header-actions { gap: 12px; }
  .header-actions .text-link { font-size: 8px; letter-spacing: .12em; white-space: nowrap; }
  .header-actions .text-link:before { content: "" !important; }
  .menu-toggle { width: 42px; height: 42px; }
  .menu-toggle span { left: 12px; }

  .menu-panel { padding: 92px var(--mobile-pad) 26px; }
  .menu-meta { display: none; }
  .menu-nav a { grid-template-columns: 32px minmax(0,1fr); padding: 16px 0; }
  .menu-nav span { font-size: clamp(42px, 15vw, 64px); line-height: .9; }

  .hero-cinematic { min-height: 100svh; }
  .hero-copy-cinematic {
    min-height: 100svh;
    padding: 116px var(--mobile-pad) 205px;
    justify-content: flex-start;
  }
  .hero-kicker { margin: 14px 0 0; max-width: 280px; font-size: 8px; line-height: 1.5; letter-spacing: .2em; }
  .hero-title {
    max-width: 100%;
    margin: 26px 0 0;
    font-size: clamp(56px, 17vw, 82px);
    line-height: .78;
    letter-spacing: -.07em;
  }
  .hero-line,
  .hero-line-offset,
  .hero-line-outline { margin-left: 0 !important; }
  .hero-line { max-width: 100%; white-space: normal; }
  .hero-summary {
    width: 100%; max-width: 350px; margin: 30px 0 0;
    font-size: 14px; line-height: 1.6;
  }
  .hero-orbit-label { display: none; }
  .hero-controls {
    left: var(--mobile-pad); right: var(--mobile-pad); top: auto; bottom: 92px;
    transform: none; justify-content: flex-start; gap: 18px;
  }
  .blast-control { width: 96px; height: 96px; flex: 0 0 96px; }
  .blast-copy { width: 62px; height: 62px; }
  .blast-copy small { font-size: 7px; }
  .blast-copy strong { font-size: 8px; }
  .blast-status { width: min(170px, 45vw); font-size: 7px; line-height: 1.55; }
  .hero-footer-row {
    height: 72px; left: var(--mobile-pad); right: var(--mobile-pad);
    grid-template-columns: 1fr; font-size: 8px;
  }
  .hero-scroll, .hero-index { display: none; }
  .hero-cta { width: 100%; justify-self: stretch; justify-content: space-between; }
  .hero-cta i { width: 38px; height: 38px; }

  .manifesto { padding: 88px var(--mobile-pad) 76px; }
  .manifesto-rail { padding-bottom: 24px; font-size: 8px; }
  .section-eyebrow { font-size: 8px; line-height: 1.55; letter-spacing: .2em; }
  .kinetic-copy {
    max-width: 100%; margin: 28px 0 42px;
    font-size: clamp(42px, 12vw, 58px); line-height: .92; letter-spacing: -.055em;
  }
  .kinetic-copy .word { max-width: 100%; }
  .manifesto-bottom { gap: 22px; padding-top: 22px; }
  .manifesto-bottom p { font-size: 14px; line-height: 1.65; }
  .arrow-link { gap: 18px; font-size: 8px; }
  .arrow-link span { width: 42px; height: 42px; }

  .pathways-section { min-height: auto; padding: 82px var(--mobile-pad) 70px; }
  .section-head-cinematic h2 {
    margin-top: 14px; font-size: clamp(48px, 13vw, 66px); line-height: .88; letter-spacing: -.06em;
  }
  .section-head-cinematic p { margin-top: 24px; font-size: 14px; line-height: 1.65; }
  .pathways-stage { height: 760px; min-height: 760px; margin-top: 48px; }
  .pathway-card {
    grid-template-columns: 1fr; grid-template-rows: auto auto auto auto;
    align-content: start; align-items: start; gap: 20px; padding: 24px 0;
    transform: translateX(14%);
  }
  .pathway-number { padding: 0; font-size: 30px; }
  .pathway-visual { width: min(72vw, 290px); justify-self: center; }
  .pathway-visual > b { font-size: clamp(68px, 20vw, 94px); }
  .pathway-visual > small { top: 66%; font-size: 7px; letter-spacing: .14em; }
  .stop-visual > span { font-size: 190px; }
  .pathway-copy h3 { margin: 11px 0 14px; font-size: clamp(42px, 11.5vw, 58px); line-height: .93; }
  .pathway-copy p { font-size: 13px; line-height: 1.6; }
  .pathway-metric { align-self: auto; padding: 0; }
  .pathway-nav { grid-template-columns: auto 1fr auto auto; gap: 10px; }
  .pathway-nav button { width: 44px; height: 44px; }

  .platform-showcase { padding: 88px var(--mobile-pad) 115px; }
  .platform-intro h2 { font-size: clamp(50px, 13vw, 68px); line-height: .88; letter-spacing: -.06em; }
  .platform-intro p { font-size: 14px; line-height: 1.65; }
  .platform-frame-wrap { margin-top: 54px; perspective: none; }
  .platform-frame { border-radius: 12px; transform: none !important; }
  .platform-window-bar { height: 50px; padding: 0 14px; grid-template-columns: 1fr auto; }
  .platform-window-bar > span { display: none; }
  .platform-window-grid { min-height: 0; grid-template-columns: 1fr; }
  .platform-mini-sidebar { display: none; }
  .platform-mini-main { padding: 18px 14px 24px; }
  .mini-head { flex-direction: column; gap: 12px; }
  .mini-head h3 { font-size: clamp(30px, 8vw, 38px); line-height: .95; }
  .mini-head > strong { align-self: flex-start; }
  .mini-kpis { margin-top: 24px; grid-template-columns: 1fr 1fr; }
  .mini-kpis div { min-width: 0; padding: 14px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
  .mini-kpis b { margin-top: 10px; font-size: 25px; }
  .mini-kpis small { line-height: 1.35; }
  .mini-lower { grid-template-columns: 1fr; gap: 14px; }
  .mini-chart, .mini-risks { min-height: 270px; padding: 16px; }
  .mini-bars { height: 175px; }
  .platform-launch { width: 118px; height: 118px; right: 14px; bottom: -58px; font-size: 7px; text-align: center; }
  .platform-launch b { font-size: 24px; }

  .system-section { min-height: auto; padding: 88px var(--mobile-pad); }
  .system-heading h2 { font-size: clamp(48px, 12.5vw, 64px); line-height: .9; }
  .system-heading > p { font-size: 14px; line-height: 1.65; }
  .system-grid { margin-top: 50px; grid-template-columns: 1fr; }
  .system-card { min-height: auto; padding: 28px 22px 30px; }
  .system-card h3 { margin: 42px 0 18px; font-size: clamp(44px, 12vw, 58px); line-height: .92; }
  .system-card > p { font-size: 13px; line-height: 1.65; }
  .system-card ul { margin-top: 34px; }
  .system-card li { padding: 14px 0; font-size: 10px; line-height: 1.45; }
  .system-card > a { margin-top: 38px; }
  .system-roadmap-note { font-size: 10px; }

  .ticker-section { padding: 24px 0; }
  .ticker-track { gap: 22px; }
  .ticker-track span { font-size: 34px; }

  .method-section { padding: 88px var(--mobile-pad); }
  .method-heading h2 { margin-top: 18px; font-size: clamp(50px, 13vw, 68px); line-height: .86; letter-spacing: -.065em; }
  .method-heading p { font-size: 14px; line-height: 1.65; }
  .method-stack { margin-top: 52px; grid-template-columns: 1fr; }
  .method-card { min-height: 360px; padding: 24px; }
  .method-card h3 { margin: 48px 0 18px; font-size: 38px; }
  .method-card p { font-size: 13px; }
  .method-symbol { height: 120px; bottom: 20px; }
  .symbol-decide { font-size: 100px; }

  .trust-section { padding: 88px var(--mobile-pad); }
  .trust-copy h2 { margin: 18px 0 24px; font-size: clamp(50px, 13vw, 68px); line-height: .88; }
  .trust-copy p { font-size: 14px; line-height: 1.7; }
  .trust-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .privacy-orbit { display: none; }

  .waitlist-section { min-height: auto; padding: 88px var(--mobile-pad); grid-template-columns: 1fr; gap: 44px; }
  .waitlist-copy { position: static; }
  .waitlist-copy h2 { font-size: clamp(52px, 14vw, 70px); line-height: .88; }
  .waitlist-copy > p { font-size: 14px; line-height: 1.65; }
  .waitlist-points { margin-top: 38px; }
  .waitlist-points div { grid-template-columns: 1fr; gap: 7px; }
  .waitlist-form { width: 100%; min-width: 0; padding: 22px 16px; }
  .waitlist-form-grid { grid-template-columns: 1fr; }
  .waitlist-field-wide { grid-column: auto; }
  .waitlist-form input[type="text"], .waitlist-form input[type="email"], .waitlist-form select, .waitlist-form textarea { font-size: 16px; }
  .waitlist-check span { font-size: 10px !important; line-height: 1.55; }

  .final-cta { padding: 88px var(--mobile-pad); grid-template-columns: 1fr; gap: 44px; }
  .final-cta-copy h2 { font-size: clamp(54px, 14vw, 74px); line-height: .86; }
  .final-cta-copy p { font-size: 14px; }
  .final-cta-orb { width: 90vw; height: 90vw; right: -28vw; top: 5vh; }
  .final-cta-links { width: 100%; justify-self: start; align-items: flex-start; }
  .magnetic-button { width: 165px; height: 165px; font-size: 8px; }
  .magnetic-button b { font-size: 30px; }
  .footer-logo { font-size: clamp(82px, 27vw, 120px); line-height: .82; }
  .footer-tagline { margin: 28px 0 40px; font-size: 8px; line-height: 1.5; letter-spacing: .22em; }
  .footer-meta { display: grid; gap: 14px; justify-content: stretch; font-size: 8px; }

  .app-shell { display: block; }
  .sidebar {
    width: min(310px, 86vw); height: 100dvh; position: fixed; left: 0; top: 0;
    transform: translateX(-105%); transition: transform .28s var(--ease);
    box-shadow: 28px 0 80px rgba(0,0,0,.55);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; flex: 0 0 40px; }
  .app-topbar { min-height: 72px; padding: 10px 14px; gap: 10px; }
  .demo-topbar-title { width: 100%; }
  .demo-topbar-title > div { min-width: 0; }
  .app-topbar h1 { max-width: 100%; font-size: 18px; line-height: 1.05; white-space: normal; }
  .app-topbar p { max-width: 240px; font-size: 8px; line-height: 1.35; white-space: normal; }
  .app-actions { display: none; }
  .data-strip { min-height: 0; padding: 11px 14px; display: block; font-size: 9px; line-height: 1.5; }
  .data-strip a { display: inline-block; margin-top: 7px; }
  .app-content { padding: 18px 12px 42px; }
  .view-head { margin-bottom: 18px; flex-direction: column; gap: 12px; }
  .view-head h2 { font-size: 31px; line-height: 1; }
  .view-head p { font-size: 10px; line-height: 1.45; }
  .notice { padding: 13px 14px; font-size: 10px; line-height: 1.55; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { min-height: 132px; padding: 15px; }
  .kpi .label { font-size: 7px; line-height: 1.35; }
  .kpi .value { margin-top: 18px; font-size: 26px; }
  .kpi .delta { font-size: 8px; line-height: 1.4; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 10px; }
  .panel { min-width: 0; }
  .panel-head { min-height: 0; padding: 14px; align-items: flex-start; flex-direction: column; gap: 11px; }
  .panel-head h3 { font-size: 18px; }
  .panel-body { padding: 14px; }
  .recommendation-large { min-height: 0; padding: 20px 16px; }
  .recommendation-large h3 { font-size: 31px; line-height: .98; }
  .recommendation-large p { font-size: 11px; line-height: 1.55; }
  .rec-reasons { grid-template-columns: 1fr; }
  .risk-item-top { gap: 8px; }
  .risk-item h4 { font-size: 11px; }
  .risk-item p { font-size: 9px; }
  .demo-index-row { grid-template-columns: 78px minmax(60px,1fr) 58px; gap: 8px; }
  .demo-index-row span { font-size: 8px; line-height: 1.2; }
  .demo-index-row b { font-size: 13px; white-space: nowrap; }
  .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { padding: 10px 9px; font-size: 9px; }
  .demo-unlock-grid { grid-template-columns: 1fr; }
  .demo-unlock-grid article { min-height: 0; }
  .demo-unlock-grid strong { margin-top: 16px; }
  .demo-access-list { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 12px; }
  .modal { width: 100%; max-height: 88dvh; }
  .modal-head { padding: 14px; align-items: flex-start; gap: 10px; }
  .modal-head h3 { font-size: 20px; line-height: 1.05; }
  .modal-body { padding: 16px; }
  .modal-foot { padding: 12px 14px; flex-direction: column-reverse; }
  .modal-foot .btn { width: 100%; }

  .legal-main { padding: 105px var(--mobile-pad) 70px; }
  .legal-layout { grid-template-columns: 1fr; gap: 30px; }
  .legal-aside { position: static; }
  .legal-aside h1 { font-size: 48px; }
  .legal-document { padding: 26px 20px; }
  .legal-lede { font-size: 16px; }
}

@media (max-width: 430px) {
  .header-actions .text-link { display: none; }
  .hero-title { font-size: clamp(52px, 16.5vw, 70px); }
  .hero-summary { font-size: 13px; }
  .hero-controls { bottom: 86px; }
  .blast-status { width: 145px; }
  .pathways-stage { height: 735px; min-height: 735px; }
  .pathway-visual { width: min(74vw, 270px); }
  .mini-kpis { grid-template-columns: 1fr; }
  .mini-kpis div { border-right: 0; }
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi { min-height: 118px; }
  .demo-index-row { grid-template-columns: 70px minmax(54px,1fr) 54px; }
  .cookie-banner-actions { grid-template-columns: 1fr; }
}
