/* RaPM R18 - intentional mobile-only header and native flow visual.
   Desktop experience, shared design tokens and sections below the hero are unchanged. */
.r18-menu-toggle,.r18-menu-panel,.r18-menu-backdrop,.r18-mobile-flow{display:none}
.r18-menu-panel[hidden],.r18-menu-backdrop[hidden]{display:none!important}
@media(max-width:820px){
  html.r18-ready .header-wrap{z-index:110;pointer-events:none}
  html.r18-ready:not(.r13-scrolled):not(.r18-menu-open) .header-wrap{
    background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
  html.r18-ready.r18-menu-open .header-wrap{
    background:rgba(23,23,22,.985)!important;backdrop-filter:blur(14px)!important;-webkit-backdrop-filter:blur(14px)!important;
  }
  html.r18-ready .header-inner{
    box-sizing:border-box;display:flex!important;grid-template-columns:none!important;grid-template-rows:none!important;
    width:calc(100% - 40px)!important;min-height:78px;max-height:none;
    align-items:center;justify-content:space-between;gap:12px!important;
    padding:14px 0!important;flex-wrap:nowrap!important;
  }
  html.r18-ready .brand{display:inline-flex;flex:0 1 auto;min-width:0;gap:10px;align-items:center;}
  html.r18-ready .brand-mark{font-size:23px!important;line-height:1.1;letter-spacing:-.025em;white-space:nowrap;}
  html.r18-ready .brand-rule{display:block!important;height:28px;width:1px;flex:none;background:rgba(240,238,232,.24)}
  html.r18-ready .brand-long{
    display:block!important;max-width:none;white-space:nowrap;
    font:500 7.4px/1.4 var(--mono);letter-spacing:.95px;color:#afa69b;
  }
  html.r18-ready .nav-standard{display:none!important}
  html.r18-ready .r18-menu-toggle{
    display:grid;place-content:center;justify-items:center;gap:6px;pointer-events:auto;flex:none;
    width:46px;height:44px;padding:0;border:1px solid rgba(184,154,120,.5);
    border-radius:3px;color:var(--ivory);background:transparent;cursor:pointer;
  }
  html.r18-ready .r18-menu-toggle span{
    width:18px;height:1px;display:block;background:var(--ivory);
    transition:transform .22s ease;
  }
  html.r18-ready .r18-menu-toggle[aria-expanded="true"] span:first-child{transform:translateY(3.5px) rotate(45deg)}
  html.r18-ready .r18-menu-toggle[aria-expanded="true"] span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
  html.r18-ready .r18-menu-panel{
    display:block;position:absolute;top:100%;left:16px;right:16px;max-width:520px;
    margin:0 auto;padding:16px 22px 24px;background:#202120;
    border:1px solid rgba(239,234,225,.15);box-shadow:0 28px 56px rgba(0,0,0,.58);
    pointer-events:auto;
  }
  html.r18-ready .r18-menu-panel nav{display:flex;flex-direction:column;gap:0}
  html.r18-ready .r18-menu-panel a{
    display:flex;align-items:center;justify-content:space-between;
    padding:14px 0;min-height:54px;border-bottom:1px solid rgba(239,234,225,.12);
    color:var(--ivory);font-size:20px;line-height:1.35;
  }
  html.r18-ready .r18-menu-panel a:not(.r18-menu-cta):after{
    content:"↗";color:var(--bronze);font-size:15px;
  }
  html.r18-ready .r18-menu-panel a[aria-current="page"]{color:#c9ad90}
  html.r18-ready .r18-menu-panel .r18-menu-cta{
    justify-content:center;min-height:48px;margin-top:23px;padding:12px 18px;
    border:1px solid rgba(184,154,120,.65);border-radius:3px;color:#c8a989;font-size:15px;
  }
  html.r18-ready .r18-menu-backdrop{
    position:fixed;inset:0;display:block;z-index:90;background:rgba(0,0,0,.58);
  }
  html.r18-menu-open,html.r18-menu-open body{overflow:hidden}
  .hero-card{min-height:auto!important}
  .hero-inner{
    grid-template-columns:minmax(0,1fr)!important;
    width:calc(100% - 40px)!important;min-height:0!important;
    padding-top:112px!important;padding-bottom:44px!important;
    gap:25px!important;align-items:start!important;
  }
  .hero-copy{max-width:570px}
  .hero-copy h1{
    max-width:18ch!important;
    font-size:clamp(31px,8.8vw,39px)!important;
    letter-spacing:-.035em!important;line-height:1.13!important;
  }
  .hero-support{margin-top:23px!important;max-width:40ch!important;gap:10px!important;font-size:15px!important;line-height:1.58!important}
  .hero-support p{margin:0!important}
  .hero-copy .primary-cta{margin-top:25px!important;min-height:48px;font-size:14.5px!important;padding:13px 22px!important}
  .hero-copy .page-rail{display:none!important}
  .hero-visual{display:block!important;width:100%!important;min-width:0;min-height:0!important;margin:3px 0 0!important;overflow:visible!important}
  .hero-visual workflow-visual,.hero-visual .hero-mobile-outcomes{display:none!important}
  .r18-mobile-flow{display:block;margin:0;width:100%;max-width:590px;border-top:1px solid rgba(240,238,232,.13);padding-top:18px}
  .r18-mobile-flow__caption{margin:0 0 12px;color:#b89a78;font:500 9px/1.45 var(--mono);letter-spacing:.15em;text-transform:uppercase}
  .r18-mobile-flow img{display:block;width:100%;max-width:460px;height:auto;margin:0 auto;aspect-ratio:350/224}
}
@media(max-width:360px){
  html.r18-ready .header-inner,.hero-inner{width:calc(100% - 32px)!important}
  html.r18-ready .brand{gap:8px}
  html.r18-ready .brand-mark{font-size:21px!important}
  html.r18-ready .brand-long{font-size:6.65px;letter-spacing:.65px}
  .hero-copy h1{font-size:31px!important}
  .r18-mobile-flow__caption{font-size:8.5px}
}
@media(prefers-reduced-motion:reduce){
  .r18-menu-toggle span{transition:none!important}
}
