/* Strativest immersive preview — built on the production s3 theme tokens.
   Motion is enhancement only: without JS (or with reduced motion) every
   scene renders as a static, fully readable stacked layout. */
:root{
  --paper:#F7F5F0; --white:#FFFFFF; --ink:#161511; --body:#2B2A26;
  --muted:#6F6D66; --line:#E1DDD2; --line-strong:#C9C4B4; --tint:#ECE8DD;
  --blue:#1B2CC1; --rust:#A63A22;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,monospace;
  --ease:cubic-bezier(.22,.61,.21,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:auto}
body{background:var(--paper);color:var(--body);font-family:var(--sans);font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
::selection{background:var(--ink);color:var(--paper)}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
img{display:block;max-width:100%}
.wrap{max-width:1120px;margin:0 auto;padding-left:clamp(20px,4vw,44px);padding-right:clamp(20px,4vw,44px)}
.mono{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* ---------- masthead (production chrome, kept quiet) ---------- */
.mast{position:sticky;top:0;z-index:60;background:var(--paper);border-bottom:1px solid var(--line)}
.mast .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;padding-bottom:14px}
.word{font-family:var(--mono);font-size:15px;letter-spacing:.22em;color:var(--ink);font-weight:500}
.word span{color:var(--muted)}
.word:hover{text-decoration:none}
.nav{display:flex;gap:26px;flex-wrap:wrap}
.nav a{font-size:14px;font-weight:500;color:var(--ink)}
.nav a.on{color:var(--blue)}
.nav a:hover{text-decoration:none;color:var(--blue)}
@media (max-width:560px){ .nav{gap:16px} .nav a{font-size:13px} .word{font-size:13px} }

/* ---------- generic sections ---------- */
.sec{padding:clamp(56px,9vh,96px) 0}
.label{display:flex;justify-content:space-between;gap:16px;border-bottom:2px solid var(--ink);padding-bottom:14px;margin-bottom:34px}
.label .mono{color:var(--ink)}
.label .mono:last-child{color:var(--muted)}

/* reveals (JS-gated: content is visible unless JS says it can reveal) */
html.js .rv{opacity:0;transform:translateY(14px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
html.js .rv.in{opacity:1;transform:none}

/* ---------- HERO scene ---------- */
.hero-static{position:relative;padding:clamp(64px,10vh,110px) 0 clamp(48px,7vh,72px);overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;object-position:50% 78%}
.hero-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 68% 52% at 30% 34%,rgba(247,245,240,.92),rgba(247,245,240,0) 62%),radial-gradient(ellipse 60% 40% at 26% 88%,rgba(247,245,240,.75),rgba(247,245,240,0) 60%)}
.hero-shade{position:absolute;inset:0;background:var(--ink);opacity:0;z-index:1}
.hero-inner{position:relative;z-index:2}
.hero-a .kick{margin-bottom:22px}
.hero-a h1,.hero-b h2{font-size:clamp(42px,6.6vw,72px);line-height:1.06;font-weight:600;letter-spacing:-.015em;color:var(--ink);max-width:15ch}
.hero-a .sub{margin-top:20px;font-size:clamp(17px,2vw,20px);color:var(--muted)}
.btns{margin-top:34px;display:flex;gap:14px;flex-wrap:wrap}
.btn{display:inline-block;padding:13px 24px;font-size:15px;font-weight:500;border:1px solid var(--ink)}
.btn.fill{background:var(--ink);color:var(--paper)}
.btn.line{color:var(--ink);background:transparent}
.btn:hover{text-decoration:none;background:var(--blue);border-color:var(--blue);color:#fff}
.hero-b{margin-top:clamp(48px,8vh,80px)}
.hero-b h2{max-width:18ch}
.figs{display:flex;flex-wrap:wrap;gap:clamp(28px,5vw,64px);margin-top:36px}
.figs div b{display:block;font-size:clamp(26px,3.4vw,38px);font-weight:600;color:var(--ink);line-height:1.1}
.figs div span{font-size:13px;color:var(--muted)}
.scrollcue{display:none}

/* motion mode: pinned descent */
html.jsm .scene-hero{height:215vh;position:relative}
html.jsm .hero-static{position:sticky;top:0;height:100vh;height:100svh;padding:0;display:flex;align-items:flex-start;overflow:hidden}
html.jsm .hero-inner{padding-top:11vh}
html.jsm .hero-bg img{transform:scale(calc(1 + var(--p,0)*.18)) translateY(calc(var(--p,0)*-2%));will-change:transform}
html.jsm .hero-shade{opacity:calc(var(--p,0)*.42)}
html.jsm .hero-a{opacity:calc(1 - var(--fa,0));transform:translateY(calc(var(--fa,0)*-34px))}
html.jsm .hero-b{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-start;padding-top:11vh;margin-top:0;opacity:var(--fb,0);transform:translateY(calc((1 - var(--fb,0))*28px));pointer-events:none}
html.jsm .hero-b h2,html.jsm .hero-b .figs div b{color:var(--ink)}
html.jsm .scrollcue{display:flex;position:absolute;left:50%;bottom:26px;transform:translateX(-50%);z-index:3;flex-direction:column;align-items:center;gap:8px;opacity:calc(1 - var(--p,0)*2.4)}
html.jsm .scrollcue i{display:block;width:1px;height:44px;background:var(--ink);opacity:.5}

/* ---------- Latest rows (production pattern) ---------- */
.rows{border-top:1px solid var(--line)}
.row{display:grid;grid-template-columns:110px 74px 1fr auto;gap:8px 22px;align-items:baseline;padding:19px 4px;border-bottom:1px solid var(--line);color:var(--ink)}
.row:hover{text-decoration:none;background:var(--tint)}
.row .d{font-family:var(--mono);font-size:12px;letter-spacing:.08em;color:var(--muted)}
.row .t{font-weight:600;font-size:16px}
.row .c{font-size:16px}
.row .c span{color:var(--muted)}
.row .ty{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
@media (max-width:700px){ .row{grid-template-columns:74px 1fr auto} .row .d{display:none} }

/* ---------- SHOWCASE scene ---------- */
.show-frame{position:relative;overflow:hidden;border:1px solid var(--line-strong);background:var(--white)}
.show-frame .ph{aspect-ratio:16/6.9;overflow:hidden}
.show-frame .ph img{width:100%;height:100%;object-fit:cover}
.show-meta{display:flex;flex-wrap:wrap;gap:10px 28px;padding:18px 22px;border-top:1px solid var(--line);font-size:13.5px;color:var(--muted)}
.show-meta b{color:var(--ink);font-weight:600}
.show-head{margin-bottom:30px}
.show-head h2{font-size:clamp(30px,4.4vw,48px);font-weight:600;line-height:1.14;letter-spacing:-.01em;color:var(--ink);max-width:24ch;margin-top:14px}
.show-head .dek{margin-top:12px;color:var(--muted);font-size:clamp(16px,2vw,19px);max-width:56ch}
.verdict{margin-top:30px;border-left:3px solid var(--rust);padding-left:22px}
.verdict .big{font-size:clamp(30px,4.6vw,50px);font-weight:600;color:var(--ink);line-height:1.1}
.verdict p{margin-top:8px;font-size:clamp(16px,2vw,19px);color:var(--body);max-width:52ch}
.read-link{display:inline-block;margin-top:22px;font-size:15.5px;font-weight:500}
html.jsm .scene-show{height:230vh;position:relative}
html.jsm .show-sticky{position:sticky;top:0;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:30px 0}
@media (max-height:840px){ html.jsm .show-frame .ph{aspect-ratio:16/6} .verdict{margin-top:20px} }
/* motion mode: the pinned showcase stage must fit one viewport, verdict included */
html.jsm .show-frame .ph{aspect-ratio:auto;height:min(37vh,400px)}
html.jsm .show-head{margin-bottom:20px}
html.jsm .show-head h2{font-size:clamp(28px,3.8vw,42px)}
html.jsm .verdict{margin-top:20px}
html.jsm .verdict .big{font-size:clamp(28px,4vw,42px)}
html.jsm .show-frame .ph img{transform:translateX(calc(3% - var(--p,0)*6%)) scale(1.22);will-change:transform}
html.jsm .verdict{opacity:var(--fv,0);transform:translateY(calc((1 - var(--fv,0))*18px))}

/* ---------- CHAIN EXPLORER (dark stage) ---------- */
.explorer{background:var(--ink);color:#EDEAE2;position:relative;overflow:hidden}
.explorer .bgimg{position:absolute;inset:0;opacity:.34}
.explorer .bgimg img{width:100%;height:100%;object-fit:cover}
.explorer .wrap{position:relative;z-index:1;padding-top:clamp(56px,9vh,96px);padding-bottom:clamp(56px,9vh,96px)}
.explorer .label{border-bottom-color:#EDEAE2}
.explorer .label .mono{color:#EDEAE2}
.explorer .label .mono:last-child{color:#9d9a90}
.explorer h2{font-size:clamp(30px,4.4vw,48px);font-weight:600;line-height:1.14;color:#fff;max-width:22ch}
.explorer .hint{margin-top:12px;color:#b9b6ab;max-width:54ch}
.chain{display:flex;align-items:flex-start;gap:0;margin-top:46px;position:relative}
.chain::before{content:"";position:absolute;left:0;right:0;top:21px;height:1px;background:#4a483f}
.node{flex:1;background:none;border:none;cursor:pointer;padding:0 4px;text-align:center;color:#EDEAE2;font-family:var(--sans)}
.node .dot{width:43px;height:43px;margin:0 auto;border:1.5px solid #8a877c;border-radius:50%;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:14px;background:var(--ink);position:relative;z-index:1;transition:border-color .3s var(--ease),background .3s var(--ease),color .3s var(--ease)}
.node .nt{display:block;margin-top:11px;font-size:12.5px;line-height:1.35;color:#b9b6ab}
.node:hover .dot{border-color:#EDEAE2}
.node[aria-expanded="true"] .dot{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.node.denied[aria-expanded="true"] .dot{background:var(--rust);border-color:var(--rust);color:#fff}
.node:focus-visible{outline:none}
.node:focus-visible .dot{outline:2px solid var(--blue);outline-offset:3px}
.ev-panel{margin-top:40px;border:1px solid #4a483f;background:rgba(22,21,17,.72);padding:clamp(22px,3.4vw,36px);max-width:820px}
.ev-panel .grade{display:inline-block;font-family:var(--mono);font-size:11.5px;letter-spacing:.13em;text-transform:uppercase;border:1px solid #8a877c;padding:4px 10px;color:#EDEAE2}
.ev-panel .grade.denied{border-color:var(--rust);color:#e8a08c}
.ev-panel h3{font-size:clamp(21px,2.8vw,28px);font-weight:600;color:#fff;margin-top:16px;line-height:1.25}
.ev-panel .est{margin-top:12px;color:#d8d5ca;font-size:16.5px;max-width:62ch}
.ev-panel .src{margin-top:16px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:#9d9a90;text-transform:uppercase}
.ev-panel.swap{animation:evfade .45s var(--ease)}
@keyframes evfade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ev-static{display:none}
html:not(.js) .ev-static,html.rm .ev-static{display:block;margin-top:40px}
html:not(.js) .ev-panel,html.rm .ev-panel{display:none}
.ev-static .ev-item{border-top:1px solid #4a483f;padding:20px 0}
.ev-static h3{color:#fff;font-size:19px;font-weight:600}
.ev-static p{color:#d8d5ca;margin-top:6px;max-width:62ch}
.ev-static .src{font-family:var(--mono);font-size:11.5px;color:#9d9a90;text-transform:uppercase;letter-spacing:.06em;margin-top:8px}
@media (max-width:760px){
  .chain{flex-direction:column;gap:6px}
  .chain::before{left:21px;right:auto;top:0;bottom:0;width:1px;height:auto}
  .node{display:flex;align-items:center;gap:14px;text-align:left;padding:4px 0}
  .node .dot{margin:0;flex:none}
  .node .nt{margin-top:0;font-size:14px}
}

/* ---------- method / library / case study / about / subscribe ---------- */
.method p{font-size:clamp(21px,3vw,30px);font-weight:500;color:var(--ink);padding:20px 0;border-bottom:1px solid var(--line);display:flex;gap:22px;align-items:baseline}
.method p i{font-style:normal;font-family:var(--mono);font-size:13px;color:var(--muted)}
.bigsearch{width:100%;border:1px solid var(--line-strong);background:var(--white);padding:18px 20px;font-family:var(--sans);font-size:17px;color:var(--ink);border-radius:0}
.bigsearch::placeholder{color:var(--muted)}
.case{display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,56px);align-items:center}
.case .ph{border:1px solid var(--line-strong)}
.case .ph img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.case h2{font-size:clamp(28px,3.8vw,40px);font-weight:600;color:var(--ink);line-height:1.15}
.case p{color:var(--muted);margin-top:12px;max-width:40ch}
.sheet{display:block;background:var(--white);border:1px solid var(--line-strong);padding:26px;color:var(--ink)}
.sheet:hover{text-decoration:none;border-color:var(--ink)}
.sheet h3{font-size:clamp(20px,2.6vw,26px);font-weight:600;line-height:1.3;margin:14px 0 20px}
.sheet .foot{display:flex;justify-content:space-between}
@media (max-width:760px){ .case{grid-template-columns:1fr} }
.about-line{font-size:clamp(21px,2.8vw,30px);font-weight:500;color:var(--ink);max-width:36ch}
.sub-form{display:flex;gap:12px;flex-wrap:wrap;max-width:640px}
.sub-form input{flex:1 1 200px;border:1px solid var(--line-strong);background:var(--white);padding:13px 16px;font-family:var(--sans);font-size:15.5px;color:var(--ink);border-radius:0}
.sub-form button{background:var(--ink);color:var(--paper);border:1px solid var(--ink);padding:13px 26px;font-size:15px;font-weight:500;cursor:pointer;font-family:var(--sans)}
.sub-form button:hover{background:var(--blue);border-color:var(--blue)}
.sub-error{color:#9C2B2B;margin-top:12px;font-size:14.5px}
.sub-done{font-size:16.5px;color:var(--ink)}
.foot{border-top:2px solid var(--ink);margin-top:clamp(56px,9vh,96px)}
.foot .wrap{display:flex;flex-wrap:wrap;gap:10px 34px;justify-content:space-between;padding-top:22px;padding-bottom:30px;font-size:13.5px;color:var(--muted)}

/* ---------- page head (reports) ---------- */
.pagehead{padding:clamp(52px,8vh,84px) 0 0}
.pagehead h1{font-size:clamp(40px,6vw,64px);font-weight:600;letter-spacing:-.015em;color:var(--ink);line-height:1.08;margin-top:16px}
.pagehead .sub{color:var(--muted);margin-top:14px;font-size:clamp(16px,2vw,19px);max-width:52ch}

/* ---------- CAROUSEL — spotlight (discrete-step focus carousel) ----------
   Static by default: cards stack as a plain list and each carries its own
   read link. Under html.jsm the stage becomes the spotlight: a wide row,
   then one focused card at centre with blurred ghosts to the right. */
.spot{position:relative}
.spot-card{background:var(--white);border:1px solid var(--line-strong);color:var(--ink);max-width:560px;margin:0 auto 18px}
.spot-card .motif{height:132px;overflow:hidden;border-bottom:1px solid var(--line)}
.spot-card .motif img{width:100%;height:100%;object-fit:cover}
.spot-card .bd{padding:18px 20px 20px}
.spot-card .co{font-size:27px;font-weight:600;line-height:1.15;margin-top:8px}
.spot-card .co span{color:var(--muted);font-weight:500}
.spot-card .ind{font-size:13px;color:var(--muted);margin-top:4px}
.spot-card .go{display:inline-block;margin-top:12px;font-weight:500;color:var(--blue)}
.chev,.spot-cap{display:none}
html.jsm .spot{height:min(62vh,560px);min-height:430px;overflow:hidden}
html.jsm .spot-card{position:absolute;left:50%;top:44%;width:320px;max-width:80vw;margin:0;cursor:pointer;box-shadow:0 1px 2px rgba(22,21,17,.05);transition:transform .55s var(--ease),opacity .55s var(--ease),filter .55s var(--ease),box-shadow .55s var(--ease)}
html.jsm .spot-card .go{display:none}
html.jsm .spot-card.focused{box-shadow:0 24px 60px rgba(22,21,17,.18)}
html.jsm .spot-card.is-ghost{filter:blur(7px)}
html.jsm .spot.stepping .spot-card:not(.focused){filter:blur(4px)}
html.jsm .spot.stepping .spot-card.is-ghost{filter:blur(10px)}
html.jsm .chev{display:flex;position:absolute;top:44%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:1px solid var(--line-strong);background:transparent;color:var(--muted);cursor:pointer;z-index:9;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .4s var(--ease)}
html.jsm .chev svg{width:18px;height:18px}
html.jsm .chev.prev{left:2px}
html.jsm .chev.next{right:2px}
html.jsm .spot-wrap.has-focus .chev{opacity:.8;pointer-events:auto}
html.jsm .chev:hover{opacity:1;color:var(--ink);border-color:var(--ink)}
html.jsm .spot-cap{display:block;text-align:center;margin-top:2px;min-height:124px;opacity:0;transition:opacity .45s var(--ease)}
html.jsm .spot-wrap.has-focus .spot-cap{opacity:1}
.spot-cap .nm{font-size:15px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--ink)}
.spot-cap .pills{margin-top:12px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.pill{display:inline-block;padding:9px 20px;border-radius:999px;font-size:14px;font-weight:500;border:1px solid var(--ink)}
.pill.solid{background:var(--ink);color:var(--paper)}
.pill.line{color:var(--ink);background:transparent}
.pill:hover{text-decoration:none;background:var(--blue);border-color:var(--blue);color:#fff}
.spot-cap .grey{margin-top:12px;font-size:13.5px;color:var(--muted);max-width:64ch;margin-left:auto;margin-right:auto}
.spot-wide-cta{text-align:center;margin-top:2px}
html.jsm .spot-wrap.has-focus .spot-wide-cta{display:none}
@media (max-width:560px){ html.jsm .spot{min-height:400px} html.jsm .spot-card .co{font-size:23px} }

/* ---------- SUBSCRIBE PROMO (side dock) ---------- */
.promo{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:55;width:302px;background:var(--paper);border:1px solid var(--line-strong);border-right:none;padding:22px 22px 20px;box-shadow:-8px 0 24px rgba(22,21,17,.06)}
.promo h3{font-size:19px;font-weight:600;color:var(--ink);line-height:1.3;margin-top:10px}
.promo p{font-size:14px;color:var(--muted);margin-top:6px}
.promo .sub-form{flex-direction:column;gap:10px;margin-top:16px}
.promo .sub-form input{flex:none;width:100%}
.promo .sub-form button{width:100%}
.promo .x{position:absolute;top:8px;right:8px;background:none;border:none;font-size:19px;line-height:1;color:var(--muted);cursor:pointer;padding:8px;min-width:40px;min-height:40px}
.promo .x:hover{color:var(--ink)}
.promo .sub-done{font-size:14.5px}
.promo[hidden]{display:none}
.promo-expand{display:none}
@media (min-width:761px){
  body:has(.promo:not([hidden])) .chev.next{right:314px}
}
@media (max-width:760px){
  .promo{top:auto;bottom:0;right:0;left:0;width:auto;transform:none;border-right:1px solid var(--line-strong);border-bottom:none;padding:14px 18px calc(14px + env(safe-area-inset-bottom))}
  .promo h3{font-size:16px;margin-top:6px}
  .promo p{display:none}
  .promo .sub-form{display:none}
  .promo.open .sub-form{display:flex;flex-direction:column;margin-top:12px}
  .promo-expand{display:inline-block;margin-top:10px;background:var(--ink);color:var(--paper);border:1px solid var(--ink);padding:10px 22px;font-size:14.5px;font-weight:500;cursor:pointer;font-family:var(--sans);min-height:44px}
  .promo.open .promo-expand{display:none}
  body:has(.promo:not([hidden])) main{padding-bottom:104px}
}

/* reduced motion: everything static & final (JS also gates .jsm) */
@media (prefers-reduced-motion:reduce){
  html.js .rv{opacity:1;transform:none;transition:none}
  .ev-panel.swap{animation:none}
}
