/* i2platform.com — module pages (modules/*.html), v2. ONE sheet for every module page: it loads after
   site.css + tokens.css (as home.css does on the home page) and is scoped to <html class="mod">.
   Type and colour come from tokens.css; the hero backdrop and the scroll-reveal idiom are home.css's —
   CSS scroll-driven, static without animation-timeline support or with reduced motion, no JS motion.
   Pages keep no inline style: a new need is a class here. Market Stats first (card bpx8d048573h199); the other
   twelve module pages and the Modules index (modules.html) follow it (card l0rcquc2fh9p0ha). */
.mod main{overflow-x:clip}
.mod body{counter-reset:msec}

/* ── hero: the home page's backdrop (red wash + record dot-grid, fading out) ── */
.mod-hero{position:relative;isolation:isolate;padding:clamp(64px,10vh,120px) 0 clamp(16px,3vh,32px)}
.mod-hero::before{content:"";position:absolute;inset:0;z-index:-1;background:
  radial-gradient(55% 60% at 80% 20%,rgba(180,1,1,.07),transparent 60%),
  radial-gradient(circle,rgba(26,26,26,.16) 1px,transparent 1.5px) 0 0/28px 28px;mask-image:linear-gradient(180deg,#000 40%,transparent)}
.mod-hero .eyebrow{display:inline-flex;align-items:center;gap:10px}
.mod-hero .eyebrow::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--red)}
.mod-hero h1{font-size:var(--t-h1);line-height:var(--lh-h1);letter-spacing:var(--ls-h1);font-weight:800;max-width:16ch}
.mod-hero .lede{margin-top:26px;max-width:62ch;font-size:var(--t-lede);line-height:var(--lh-lede)}
.mod .modnav{margin-top:40px}
.mod .modnav a{background:color-mix(in srgb,var(--panel) 72%,transparent);transition:border-color var(--dur-fast),color var(--dur-fast)}
.mod .modnav a.on{background:var(--ink);border-color:var(--ink);color:var(--white)}
.mod .modnav a.on::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--red);margin-right:8px;vertical-align:middle}
@supports (animation-timeline: scroll()){@media (prefers-reduced-motion:no-preference){
  .mod-hero>.wrap{animation:modHeroOut linear both;animation-timeline:scroll(root);animation-range:0 55vh}
}}
@keyframes modHeroOut{to{opacity:.25;transform:translateY(-24px)}}

/* ── sections: numbered chapters, sticky text beside the screens, tinted every other one ── */
.mod .msec{counter-increment:msec;padding:clamp(64px,11vh,128px) 0;border-top:0;scroll-margin-top:var(--header-h);view-timeline-name:--msec;view-timeline-axis:block}
.mod .msec:nth-of-type(odd){background:var(--panel-2)}
.mod .msec .grid2{grid-template-columns:5fr 7fr;gap:clamp(32px,4vw,64px);align-items:start}
.mod .msec:nth-of-type(even) .grid2{grid-template-columns:7fr 5fr}
.mod .msec .grid2>div:first-child{position:sticky;top:calc(var(--header-h) + 40px)}
.mod .msec .grid2>div:first-child::before,.mod .msec>.wrap>div:not([class])::before{content:counter(msec,decimal-leading-zero);content:counter(msec,decimal-leading-zero) / "";display:block;margin-bottom:18px;font-family:var(--m);font-size:var(--t-label);font-weight:500;letter-spacing:.14em;color:var(--red)}
.mod .msec .grid2>div:first-child::after,.mod .msec>.wrap>div:not([class])::after{content:"";display:block;width:min(100%,220px);height:2px;margin-top:32px;border-radius:1px;background:linear-gradient(var(--ink),var(--ink)) 0 0/var(--msec-read) 100% no-repeat,var(--rule)}
.mod .msec h2{font-size:clamp(28px,3vw,42px);line-height:var(--lh-h2);letter-spacing:var(--ls-h2);max-width:20ch}
.mod .msec p.body{margin-top:18px;font-size:var(--t-body);line-height:var(--lh-body);color:var(--ink-2);max-width:46ch}

/* ── figures: the home page's plates (window chrome drawn here, no markup) ── */
.mod .figs{gap:28px}
.mod .fig{border-radius:var(--r-lg);box-shadow:var(--shadow-plate);transition:box-shadow var(--dur) var(--ease-out)}
.mod .fig::before{content:"";display:block;height:30px;border-bottom:1px solid var(--rule);background:
  radial-gradient(circle at 18px 50%,var(--rule) 4px,transparent 4.5px),
  radial-gradient(circle at 34px 50%,var(--rule) 4px,transparent 4.5px),
  radial-gradient(circle at 50px 50%,var(--rule) 4px,transparent 4.5px),var(--panel-2)}
.mod .fig figcaption{padding:12px 16px;font-size:11.5px;letter-spacing:.02em;line-height:1.5}
@media (hover:hover){.mod .fig:hover{box-shadow:var(--shadow-plate-elev)}}

/* ── cards (the Modules index and In build): plates too; a card's text is .card-note ── */
.mod .card{border-radius:var(--r-lg);box-shadow:var(--shadow-plate);transition:box-shadow var(--dur) var(--ease-out),border-color var(--dur-fast)}
.mod .card h3{font-size:var(--t-h3);line-height:1.2}
.mod .card-note{margin-top:10px;color:var(--ink-2);font-size:15.5px}
.mod .card .pill{display:inline-block;white-space:nowrap}
@media (hover:hover){.mod a.card:hover{box-shadow:var(--shadow-plate-elev);border-color:var(--ink)}}
.mod .msec>.wrap>div:not([class]){max-width:68ch}
.mod .msec>.wrap>div:not([class]) h2{max-width:none}
.mod .msec>.wrap>div:not([class]) p.body{max-width:62ch}

/* ── the Modules index: each billing group a numbered chapter, tinted every other one ── */
.mod .mgroup{counter-increment:msec;padding:clamp(56px,9vh,104px) 0}
.mod .mgroup:nth-of-type(odd){background:var(--panel-2)}
.mod .mgroup>.wrap>.eyebrow{margin-bottom:28px;font-size:var(--t-label)}
.mod .mgroup>.wrap>.eyebrow::before{content:counter(msec,decimal-leading-zero) "  ·  ";content:counter(msec,decimal-leading-zero) "  ·  " / "";color:var(--red);font-weight:500}
.mod-hero.idx h1{max-width:20ch}

/* ── scroll reveal: site.css already raises every section's text and settles each plate (the home page's
   arrive/settle); a section adds its reading line, drawn as it scrolls past. Static (full) otherwise. ── */
@property --msec-read{syntax:"<percentage>";inherits:true;initial-value:100%}
.mod .msec{--msec-read:100%}
@supports (animation-timeline: view()){@media (prefers-reduced-motion:no-preference){
  .mod .msec{animation:modRead linear both;animation-timeline:--msec;animation-range:cover 15% cover 85%}
}}
@keyframes modRead{from{--msec-read:0%}to{--msec-read:100%}}

/* ── close: the home page's dark band ── */
.mod-cta{padding:clamp(64px,11vh,128px) 0 clamp(16px,3vh,32px)}
.mod-cta .band{position:relative;isolation:isolate;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap;padding:56px;border-radius:var(--r-xl)}
.mod-cta .band::before{content:"";position:absolute;inset:0;z-index:-1;background:
  radial-gradient(50% 80% at 90% 10%,rgba(180,1,1,.22),transparent 60%),
  radial-gradient(circle,rgba(255,255,255,.08) 1px,transparent 1.5px) 0 0/28px 28px}
.mod-cta h2{font-size:var(--t-h2);line-height:var(--lh-h2);letter-spacing:var(--ls-h2);color:var(--white);max-width:18ch}
.mod-cta p{margin:12px 0 0;color:rgba(255,255,255,.72);max-width:52ch}
.mod-cta .acts{display:flex;gap:12px;flex-wrap:wrap}
.mod .btn.ghost{color:var(--white);border-color:rgba(255,255,255,.4)}
.mod .btn.ghost:hover{border-color:var(--white)}
.mod .foot-blurb{margin-top:14px;color:var(--ink-2);max-width:34ch}

/* ── responsive ── */
@media (max-width:900px){
  .mod .msec .grid2,.mod .msec:nth-of-type(even) .grid2{grid-template-columns:1fr}
  .mod .msec .grid2>div:first-child{position:static}
  .mod-cta .band{padding:36px 28px}
}
