/* Home page (2026-11 redesign): hero stats, program showcase, resource cards, about and founder. */

/* Hero */
.mx-home .c-hero .lead{max-width:36rem}
/* Hero title: only the initials R, M, P, S are colored, with the orange-to-red fade of the logo's sun and A triangles */
.hp-title .hp-init{color:#fa6801;background:linear-gradient(180deg,#fd9900 18%,#fa6801 48%,#fc3c00 70%,#e91d00 92%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 18px rgba(250,104,1,.28))}
@media (forced-colors:active){.hp-title .hp-init{-webkit-text-fill-color:currentColor;background:none;filter:none}}

/* Shared section head */
.hp-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,27rem);column-gap:clamp(28px,5vw,72px);align-items:end;max-width:none}
.hp-head>.m-eyebrow{grid-column:1 / -1}
.hp-head h2{margin-bottom:0}
.hp-head .lead{margin:0;padding-bottom:6px}
@media (max-width:980px){.hp-head{grid-template-columns:1fr}.hp-head .lead{margin-top:14px}}

/* Hero preview: a silent loop with a pause button in the window bar */
.hp-teaser video{opacity:0;transition:opacity .6s}
.hp-teaser video.on{opacity:1}
.hp-teaser__toggle{margin-left:auto;display:inline-grid;place-items:center;width:30px;height:24px;padding:0;border:1px solid rgba(164,174,221,.35);border-radius:7px;background:rgba(255,255,255,.04);color:#C4CDF3;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.hp-teaser__toggle:hover{background:rgba(255,255,255,.1);border-color:#fff;color:#fff}
.hp-teaser__toggle:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.hp-teaser__toggle svg{width:13px;height:13px;grid-area:1/1}
.hp-teaser__toggle .i-play,.hp-teaser__toggle.is-paused .i-pause{display:none}
.hp-teaser__toggle.is-paused .i-play{display:block}
.c-hero__stage figcaption a{color:#fff;font-weight:600}
/* Click-to-play showcase videos inside a window frame stay visible once loaded */
.m-window__media .m-video video{opacity:1}
.m-window__media .m-video,.m-window__media .m-video__play{position:absolute;inset:0;width:100%;height:100%}

/* Program carousel */
.hp-programs{padding-block:clamp(72px,9vw,128px) clamp(64px,8vw,112px)}
.hp-car{--slide-w:min(940px,76vw);position:relative;margin-top:clamp(28px,4vw,48px)}
.hp-car__track{list-style:none;margin:0;display:flex;gap:clamp(16px,2.4vw,32px);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:10px calc((100% - var(--slide-w))/2) 24px;position:relative;overscroll-behavior-x:contain}
.hp-car__track::-webkit-scrollbar{display:none}
.hp-slide{flex:0 0 var(--slide-w);margin:0;scroll-snap-align:center;scroll-snap-stop:always;transition:opacity .5s var(--c-ease),transform .6s var(--c-ease)}
.hp-car.is-js .hp-slide:not(.is-active){opacity:.45;transform:scale(.92)}
.hp-car.is-js .hp-slide:not(.is-active) .hp-slide__body{visibility:hidden}
.hp-car.is-js .hp-slide:not(.is-active) .m-video__btn,.hp-car.is-js .hp-slide:not(.is-active) .m-video__meta{opacity:0}
.hp-car.is-js .hp-slide:not(.is-active):hover{opacity:.6;cursor:pointer}
.hp-screen{box-shadow:0 50px 120px -40px rgba(0,0,0,.95),0 0 0 1px rgba(160,178,255,.3),0 0 110px -30px rgb(var(--hp-glow,76 110 255) / .7)}
.hp-play video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .6s}
.hp-play video.on{opacity:1}
.hp-play .m-video__btn,.hp-play .m-video__meta{z-index:1;transition:opacity .3s}
.hp-play .m-video__meta b{color:#fff}
.hp-slide__body{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(18px,3vw,40px);align-items:end;margin-top:clamp(18px,2.4vw,26px)}
.hp-slide__body>*{grid-column:1}
.hp-slide__body .btn-row{grid-column:2;grid-row:1 / span 4;margin:0;flex-wrap:nowrap}
.hp-slide__k{margin:0;font:600 .75rem/1.2 var(--font-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--hp-c,var(--gold))}
.hp-slide h3{display:flex;align-items:center;gap:12px;margin:8px 0 0;font-size:clamp(1.6rem,2.6vw,2.1rem)}
.hp-slide h3 img{width:44px;height:44px;flex:none}
.hp-slide__task{margin:6px 0 0;font:600 1.05rem/1.35 var(--font-head);color:#fff}
.hp-slide__desc{margin:8px 0 0;color:#C4CDF3;max-width:40rem}
.prog-shieldscope{--hp-c:#FF8A1F;--hp-glow:255 138 31}
.prog-quantiray{--hp-c:#F5B82E;--hp-glow:245 184 46}
.prog-cocomply{--hp-c:#6E9BFF;--hp-glow:110 155 255}
.prog-evalurad{--hp-c:#2FD6A8;--hp-glow:47 214 168}
.prog-imageware{--hp-c:#3FC8F2;--hp-glow:63 200 242}

.hp-car__nav{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2vw,20px);margin-top:clamp(8px,1.6vw,16px)}
.hp-car__arrow{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid rgba(164,174,221,.4);background:rgba(255,255,255,.04);color:#fff;cursor:pointer;transition:background .2s,border-color .2s}
.hp-car__arrow:hover{background:rgba(255,255,255,.1);border-color:#fff}
.hp-car__arrow svg{width:18px;height:18px}
.hp-car__arrow:focus-visible,.hp-dot:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.hp-dots{list-style:none;margin:0;padding:6px;display:flex;gap:4px;border-radius:999px;background:var(--c-glass);border:1px solid var(--c-glass-b);overflow-x:auto;scrollbar-width:none}
.hp-dots::-webkit-scrollbar{display:none}
.hp-dots li{margin:0;flex:none}
.hp-dot{position:relative;display:flex;align-items:center;gap:8px;padding:8px 14px 8px 8px;border:0;border-radius:999px;background:transparent;color:var(--muted-ink);font:600 .875rem/1 var(--font-body);cursor:pointer;overflow:hidden;transition:background .25s,color .25s}
.hp-dot img{width:28px;height:28px;opacity:.65;filter:saturate(.5);transition:opacity .25s,filter .25s}
.hp-dot:hover{color:#fff}
.hp-dot[aria-current="true"]{background:rgba(255,255,255,.09);color:#fff}
.hp-dot[aria-current="true"] img{opacity:1;filter:none}
.hp-dot__bar{position:absolute;left:14px;right:14px;bottom:3px;height:2px;border-radius:2px;background:var(--hp-c,var(--gold));transform:scaleX(0);transform-origin:left}
.hp-car.is-auto .hp-dot[aria-current="true"] .hp-dot__bar{animation:hp-progress 8s linear forwards;animation-play-state:paused}
.hp-car.is-auto.is-visible:not(.is-held) .hp-dot[aria-current="true"] .hp-dot__bar{animation-play-state:running}
@keyframes hp-progress{to{transform:scaleX(1)}}
.hp-all-row{margin:18px auto 0;text-align:center}
.hp-all{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.hp-all .arw{width:16px;height:16px}

/* Resource cards */
.hp-res{padding-block:clamp(72px,9vw,128px)}
.hp-cards{list-style:none;padding:0;margin:clamp(28px,4vw,44px) 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,1.8vw,22px)}
.hp-cards li{margin:0}
.hp-card{display:flex;flex-direction:column;height:100%;border-radius:20px;overflow:hidden;background:var(--surface);border:1px solid var(--border);color:var(--text);text-decoration:none;box-shadow:0 20px 50px -34px rgba(11,16,48,.5);transition:border-color .25s,box-shadow .25s,transform .35s var(--c-ease)}
.hp-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow);transform:translateY(-3px);color:var(--text)}
.hp-card__art{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--c-ink)}
.hp-card__art>img{width:100%;height:100%;object-fit:cover;transition:transform .9s var(--c-ease)}
.hp-card:hover .hp-card__art>img{transform:scale(1.06)}
.hp-card__body{display:flex;flex-direction:column;gap:8px;flex:1;padding:18px 20px 20px}
.hp-card b{font:700 1.2rem/1.2 var(--font-head)}
.hp-card__body>span:not(.m-tag):not(.hp-card__go){color:var(--muted);font-size:.9375rem;line-height:1.5}
.hp-card__go{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:6px;font-weight:600;color:var(--primary)}
.hp-card__go .arw{width:16px;height:16px;transition:transform .25s}
.hp-card:hover .hp-card__go .arw{transform:translateX(3px)}

/* Fanned form pages */

/* About and experience */
.hp-about{background:var(--surface-2);padding-block:clamp(72px,9vw,120px)}
.hp-about__in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:center}
.hp-about__copy p{max-width:36rem;font-size:1.0625rem;line-height:1.65;color:var(--muted)}
.hp-about__copy .btn-row{margin-top:26px}
.hp-proof{padding:clamp(22px,2.6vw,34px);border-radius:22px;background:var(--surface);border:1px solid var(--border);box-shadow:0 30px 70px -40px rgba(11,16,48,.55)}
.hp-proof .m-eyebrow{margin:0}
.hp-proof h3{margin:8px 0 10px;font-size:clamp(1.3rem,2vw,1.55rem)}
.hp-proof>p:not(.m-eyebrow){margin:0;color:var(--muted);line-height:1.6}
.hp-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
.hp-metrics div{display:flex;flex-direction:column-reverse;gap:6px;margin:0;padding:14px;border-radius:14px;background:var(--bg);border:1px solid var(--border)}
.hp-metrics dd{margin:0;font:800 clamp(1.5rem,2.4vw,1.9rem)/1 var(--font-head);color:var(--primary)}
.hp-metrics dt{font-size:.8125rem;line-height:1.35;color:var(--muted)}

/* Responsive */
@media (max-width:1180px){
  .hp-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hp-card__art{aspect-ratio:16/9}
  .hp-about__in{grid-template-columns:1fr}
}
@media (max-width:980px){
  .hp-slide__body{grid-template-columns:1fr}
  .hp-slide__body .btn-row{grid-column:1;grid-row:auto;margin-top:16px;flex-wrap:wrap}
  .hp-dot span{display:none}
  .hp-dot{padding:8px}
  .hp-dot__bar{left:8px;right:8px}
}
@media (max-width:700px){
  .hp-cards{grid-template-columns:1fr}
  .hp-card__art{aspect-ratio:2/1}
  .hp-car{--slide-w:86vw}
  .hp-car.is-js .hp-slide:not(.is-active){transform:scale(.95)}
  .hp-car__arrow{width:40px;height:40px}
  .hp-metrics{grid-template-columns:1fr}
  .hp-metrics div{flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:14px}
}
@media (prefers-reduced-motion:reduce){
  .hp-card,.hp-card__art>img,.hp-card__go .arw{transition:none}
  .hp-card:hover{transform:none}
  .hp-slide,.hp-car__arrow,.hp-dot,.hp-dot img{transition:none}
}
html.js:not(.c-motion) .hp-slide{transition:none}
html:not(.c-motion) .hp-card:hover{transform:none}

/* ---------- The live dose field behind the whole home page ----------
   The canvas is pinned to the viewport under every section; sections are see-through.
   The hero photo is screened over the field (as before) and fades out at its bottom edge. */
html:has(body.mx-home){background:var(--c-ink)}
body.mx-home{background:transparent}
.mx-home .hp-field{position:fixed;inset:0;width:100%;height:100%;z-index:-1;opacity:.5;pointer-events:none}
.mx-home main,.mx-home main>section,.mx-home .c-dark,.mx-home .c-close{background:transparent}
.mx-home .c-hero{isolation:auto}
.mx-home .c-hero__bg{mix-blend-mode:screen;-webkit-mask-image:linear-gradient(180deg,#000 62%,transparent 100%);mask-image:linear-gradient(180deg,#000 62%,transparent 100%)}

/* Resources on the dark page */
.mx-home .hp-card{background:rgba(10,16,51,.78);border-color:var(--c-glass-b);color:var(--text-ink);box-shadow:0 30px 60px -40px rgba(0,0,0,.8);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.mx-home .hp-card:hover{border-color:rgba(175,192,255,.5);color:var(--text-ink);box-shadow:0 26px 60px -30px rgba(var(--c-glow),.35)}
.mx-home .hp-card .m-tag{color:var(--gold)}
.mx-home .hp-card__body>span:not(.m-tag):not(.hp-card__go){color:var(--muted-ink)}
.mx-home .hp-card__go{color:#AFC0FF}

/* About on the dark page */
.mx-home .hp-about__copy p{color:#C4CDF3}
.mx-home .hp-proof{background:rgba(10,16,51,.78);border-color:var(--c-glass-b);color:var(--text-ink);box-shadow:0 30px 70px -40px rgba(0,0,0,.85);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.mx-home .hp-proof .m-eyebrow{color:var(--gold)}
.mx-home .hp-proof>p:not(.m-eyebrow){color:#C4CDF3}
.mx-home .hp-metrics div{background:rgba(255,255,255,.05);border-color:var(--c-glass-b)}
.mx-home .hp-metrics dd{color:#fff}
.mx-home .hp-metrics dt{color:var(--muted-ink)}
.mx-home .hp-proof .m-textlink{color:#AFC0FF}
.mx-home .hp-card b{color:#fff}
/* Hero title: one word per line */
.c-hero h1.hp-title{letter-spacing:.06em}
.c-hero h1.hp-title .hp-init{font-size:1.35em}
/* One fade across all four initials: each initial shows its own quarter of a gradient four letters tall */
.c-hero h1.hp-title .hp-init{background:linear-gradient(180deg,#fd9900 8%,#fa6801 38%,#fc3c00 66%,#e91d00 94%) 0 0/100% 400% no-repeat}
.c-hero h1.hp-title .hp-w:nth-child(2) .hp-init{background-position:0 33.333%}
.c-hero h1.hp-title .hp-w:nth-child(3) .hp-init{background-position:0 66.667%}
.c-hero h1.hp-title .hp-w:nth-child(4) .hp-init{background-position:0 100%}
.c-hero h1.hp-title .hp-init{-webkit-background-clip:text;background-clip:text}
@media (forced-colors:active){.c-hero h1.hp-title .hp-init{background:none}}
.hp-title .hp-w{display:block}
