/* ═══════════════════════════════════════════════════════════════════════════
   HOME 8 — the part that holds in both themes
   ───────────────────────────────────────────────────────────────────────────
   Loaded by templates/home8-body.php after /assets/home7.css and before
   /assets/home8.css. home8.css is the dark theme and the header toggle can
   switch it off; this sheet is never switched off. So it carries what Home 8
   changes beyond colour — the heading weights, the industries stack, the
   glow's stacking, the toggle itself — and, for the few places that only exist
   on Home 8, their light-theme colours.

   Section numbers continue home8.css's, so 18 and 21 kept theirs when they
   moved here.

   html[data-theme="light"] is set by the page's inline theme script, in the same
   tick that turns the dark sheet off, so the two never disagree.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   18 · HEADING WEIGHT
   One weight for every heading on this page: 700.

   Home 7 runs five weights across its headings — 600 on card titles, 650 on the
   solutions standfirst, 700 on the section headings, 750 on the checklist
   labels and 800 on the letter train, the method chips and the footer mark.
   Here they all land on 700.

   Each selector below is written to match the one in home7.css exactly, so it
   wins on source order; where that file scopes a rule to a section (#solutions
   .sol-tag, #method .mth-chip) the scope is repeated, or the override would
   lose on specificity. The spans nested inside headings already inherit their
   weight from home7.css, so .fade, .g, .gr, .grad-os and .ci-g follow.

   This is a typographic change, not a colour one, so unlike everything above it
   does move the layout: heavier and lighter glyphs are wider and narrower, so
   wrap points can shift. It is deliberate and scoped to this page.

   Two things are left alone:
     · <strong> inside the solutions checklists (w750). That is inline emphasis
       inside a sentence, not a heading.
     · the hero application preview and the dashboard mock-ups. Their headings
       belong to a simulated product UI that this page presents as a screenshot;
       restyling their type would misrepresent the product rather than the page.
   ═══════════════════════════════════════════════════════════════════════════ */

/* display headings */
.hero-h,.sec-h,.why-h,.cta-h{font-weight:700}
.ci-line{font-weight:700}
#method .mth-chip{font-weight:700}

/* block and card titles */
.cf-name{font-weight:700}
.fn-name{font-weight:700}
.sol-name{font-weight:700}
#solutions .sol-tag{font-weight:700}
.case-title{font-weight:700}
.tech-name{font-weight:700}
.why-fname{font-weight:700}
.ind-scard-title{font-weight:700}
.ind-block-label{font-weight:700}
#method .mth-panel-h{font-weight:700}

/* figures and the footer mark */
.hstat-n{font-weight:700}
.sol-metric-v{font-weight:700}
.ft-logo{font-weight:700}

/* ═══════════════════════════════════════════════════════════════════════════
   21 · INDUSTRIES — overlapping panel stack (Home 8 only)
   Home 7 keeps its sliding row of wide cards. Here the six industries are tall
   rounded panels standing side by side, each overlapping the next; page scroll
   opens them one at a time.

   Only colour and box live here — every width comes from the driver in the
   markup, which solves them against the container so the open panel always
   lands flush. CSS reads two custom properties per panel:
     --w  the panel's width right now
     --k  0..1, how open it is; drives fade, scale and the panel's own tone
   Both are continuous, so there is nothing to transition and no transition to
   fight the scrollbar. Without JS (or on a phone, or under reduced motion) the
   .is-live class is never set and the rules below fall back to a plain stacked
   list, which is what the markup is on its own. */

/* The run deliberately overhangs the right boundary, so the section has to
   clip it or the page gains a horizontal scrollbar. clip, not hidden: hidden
   would make this a scroll container and silently kill the sticky pin inside
   it, which is the whole animation. */
#industries{overflow-x:clip}
#industries .is-outer{position:relative}
#industries .is-sticky{width:100%}
#industries .is-head{text-align:center;margin-bottom:2.75rem}

/* ── the stack ── */
/* The run keeps its left inset but bleeds off the right edge, so the last tab
   is cropped by the boundary instead of stopping short of it. The left margin
   reproduces what centring a 1240px box used to give, and the negative right
   margin cancels the section's own gutter — exact, and unlike 50vw it does not
   drift when a scrollbar is present. flex-start, because with the widths now
   solved to fill there is no slack left to distribute. */
#industries .is-stack{
 display:flex;align-items:stretch;justify-content:flex-start;
 max-width:none;
 margin-left:max(0px,calc((100% - 1240px) / 2));
 margin-right:calc(-1 * var(--sp-gutter));
 padding-inline:var(--gut,0px) 0;
}
#industries .is-panel{
 position:relative;min-width:0;
 border-radius:26px;overflow:hidden;isolation:isolate;
 background:#0B100E;border:1px solid #1A221E;
}

/* ── open state ──
   The panel's emphasis rides --k rather than a class, so it builds as the panel
   opens instead of switching on at the end. color-mix gives the tone, the ring
   and the glow one source of truth; a browser without it keeps the base above. */
@supports (color: color-mix(in srgb, red, blue)){
 #industries .is-live .is-panel{
  background:
    linear-gradient(162deg,
      color-mix(in srgb,#101A15 calc(var(--k,0) * 100%),#0B100E) 0%,
      color-mix(in srgb,#0B120F calc(var(--k,0) * 100%),#090D0B) 100%);
  border-color:color-mix(in srgb,rgba(50,180,111,.26) calc(var(--k,0) * 100%),#1A221E);
 }
}
#industries .is-live .is-panel{
 flex:0 0 var(--w,96px);
 /* The depth is carried by the black drop shadow; the green is only a hint at
    the edge. 70px of spread at .55 read as neon bloom and washed the ground
    around the card — this is a quarter of it. */
 box-shadow:
   0 26px 60px -24px rgba(0,0,0,.85),
   -16px 0 24px -16px rgba(0,0,0,.9),
   16px 0 24px -16px rgba(0,0,0,.9),
   0 0 calc(var(--k,0) * 18px) calc(var(--k,0) * -8px) rgba(50,180,111,.18);
 /* collapsed panels sit a little shorter, which is the depth cue. Doing this
    with margin rather than transform:scale keeps the measured width exact —
    a scaled box reports its scaled size, and the stack came out ~20px narrow. */
 margin-block:calc((1 - var(--k,0)) * 15px);
}
#industries .is-live .is-panel + .is-panel{margin-left:calc(-1 * var(--ov,24px))}

/* ── the spine: all a collapsed panel shows ──
   vertical-rl plus the half-turn gives bottom-to-top, which is the only vertical
   setting that stays readable with the head tilted left. It fades out as the
   panel opens, so the two never overlap. */
#industries .is-spine{
 position:absolute;left:0;top:0;bottom:0;width:var(--col,96px);
 display:flex;align-items:center;justify-content:flex-start;gap:1.1rem;
 padding-top:30px;
 writing-mode:vertical-rl;transform:rotate(180deg);
 pointer-events:none;white-space:nowrap;
}
#industries .is-live .is-spine{opacity:calc(1 - max(0, var(--k,0) - .55) / .45)}
/* A collapsed panel is covered on the side facing the open one, so the spine
   centres on the half still showing. The driver sets --sh, and eases it to 0
   as the panel opens and stops being covered at all. */
#industries .is-live .is-spine{margin-left:var(--sh,0px)}
#industries .is-num{
 font-family:var(--font);font-style:normal;font-size:12px;font-weight:700;
 letter-spacing:.14em;color:#5FD394;
}
#industries .is-name{
 font-family:var(--font);font-weight:700;font-size:clamp(15px,1.15vw,18px);
 letter-spacing:.02em;color:#D5DEDA;
}

/* ── the open panel's content ──
   .is-body is the fixed-width canvas the copy is laid out on, so the text never
   reflows while the panel is moving — it is revealed, not re-wrapped. */
#industries .is-body{
 --bl:calc(var(--col,96px) - var(--k,0) * (var(--col,96px) - 34px));
 position:absolute;left:var(--bl);top:0;bottom:0;
 width:calc(var(--exp,880px) - var(--bl));
 display:flex;align-items:center;
 opacity:0;pointer-events:none;
}
#industries .is-live .is-body{
 opacity:calc(max(0, var(--k,0) - .62) / .38);
}
#industries .is-live .is-panel.is-on .is-body{pointer-events:auto}
#industries .is-body-in{padding:2.6rem 2.8rem;width:100%;max-width:820px}

#industries .is-top{display:flex;align-items:center;gap:1.1rem;margin-bottom:2rem}
#industries .is-ico{
 flex:none;display:flex;align-items:center;justify-content:center;
 width:56px;height:56px;border-radius:16px;
 background:rgba(50,180,111,.12);border:1px solid rgba(50,180,111,.3);color:#5FD394;
}
#industries .is-ico svg{width:26px;height:26px;display:block}
#industries .is-title{
 font-family:var(--font);font-size:clamp(22px,1.9vw,28px);font-weight:700;
 letter-spacing:-.02em;line-height:1.2;color:#fff;margin:0 0 .3rem;
}
#industries .is-tag{font-family:var(--font);font-size:14px;color:#8C9A93;line-height:1.5}

#industries .is-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 2.4rem;margin-bottom:2rem}
#industries .is-col-h{
 display:flex;align-items:center;gap:9px;margin-bottom:.9rem;
 font-family:var(--font);font-size:12px;font-weight:700;
 text-transform:uppercase;letter-spacing:.1em;color:#C2CDC7;
}
#industries .is-rule{width:16px;height:2px;border-radius:2px;flex:none}
#industries .is-rule-p{background:#FF6B6B}
#industries .is-rule-s{background:#32b46f}
#industries .is-line{
 display:flex;align-items:flex-start;gap:9px;margin-bottom:.6rem;
 font-family:var(--font);font-size:14px;line-height:1.55;color:#A7B5AD;
}
#industries .is-line svg{flex:none;margin-top:3px}
#industries .is-col:first-child .is-line svg{color:#FF6B6B}
#industries .is-col:last-child  .is-line svg{color:#5FD394}
#industries .is-cta{
 display:inline-flex;align-items:center;gap:8px;
 font-family:var(--font);font-size:12.5px;font-weight:700;
 text-transform:uppercase;letter-spacing:.07em;text-decoration:none;
 padding:13px 24px;border-radius:9px;background:#32b46f;color:#04110a;
 transition:opacity .2s;
}
#industries .is-cta:hover{opacity:.88}

/* ── pinned, once the driver is running ── */
#industries .is-live .is-sticky{position:sticky;top:var(--is-top,90px)}
#industries .is-live .is-stack{height:clamp(430px,62vh,600px)}

/* ── no JS, phone, or reduced motion: a plain stacked list ──
   The panels are already full-width blocks at this point; the spine goes and the
   body stops being absolute, so each one simply reads top to bottom. */
#industries .is-outer:not(.is-live) .is-stack{flex-direction:column;gap:16px;height:auto}
#industries .is-outer:not(.is-live) .is-spine{display:none}
#industries .is-outer:not(.is-live) .is-body{position:static;width:auto;opacity:1;pointer-events:auto}
#industries .is-outer:not(.is-live) .is-body-in{padding:1.9rem 1.6rem;max-width:none}
@media(max-width:640px){
 #industries .is-cols{grid-template-columns:1fr;gap:1.5rem}
 #industries .is-body-in{padding:1.6rem 1.3rem}
}

/* ── light theme ──
   Home 7 has no stack, so there is no light version to fall back to: the panels
   are restated on Home 7's own tokens. Greens used as text are deepened to
   #157A4F, because #32b46f on white is 2.7:1. */
html[data-theme="light"] #industries .is-panel{background:var(--white);border-color:var(--border)}
@supports (color: color-mix(in srgb, red, blue)){
 html[data-theme="light"] #industries .is-live .is-panel{
  background:
    linear-gradient(162deg,
      color-mix(in srgb,#F1F9F4 calc(var(--k,0) * 100%),#ffffff) 0%,
      color-mix(in srgb,#FFFFFF calc(var(--k,0) * 100%),#F7F7F5) 100%);
  border-color:color-mix(in srgb,rgba(50,180,111,.4) calc(var(--k,0) * 100%),var(--border));
 }
}
html[data-theme="light"] #industries .is-live .is-panel{
 box-shadow:
   0 26px 60px -28px rgba(17,17,18,.28),
   -16px 0 24px -18px rgba(17,17,18,.22),
   16px 0 24px -18px rgba(17,17,18,.22),
   0 0 calc(var(--k,0) * 18px) calc(var(--k,0) * -8px) rgba(50,180,111,.2);
}
html[data-theme="light"] #industries .is-num{color:#157A4F}
html[data-theme="light"] #industries .is-name{color:var(--g600)}
html[data-theme="light"] #industries .is-ico{background:rgba(50,180,111,.1);border-color:rgba(50,180,111,.32);color:#157A4F}
html[data-theme="light"] #industries .is-title{color:var(--black)}
html[data-theme="light"] #industries .is-tag{color:var(--g500)}
html[data-theme="light"] #industries .is-col-h{color:var(--g600)}
html[data-theme="light"] #industries .is-line{color:var(--g500)}
html[data-theme="light"] #industries .is-rule-p{background:#D64545}
html[data-theme="light"] #industries .is-col:first-child .is-line svg{color:#D64545}
html[data-theme="light"] #industries .is-col:last-child .is-line svg{color:#157A4F}

/* ═══════════════════════════════════════════════════════════════════════════
   19 · HERO CURSOR GLOW — stacking
   Layering inside #hero: the artwork band is z-index 0, .hero-stars is 1 and
   .hero-grid (the copy and the dashboard) is 2. The glow goes at 1, inserted
   before the stars, so it washes over the artwork and the stars still twinkle
   on top of it. Nothing can reach the copy. #hero already has overflow:hidden
   and position:relative, so the layer is clipped without touching the section.
   The glow's colour for the dark ground is in home8.css. */
#hero .ah-fx{z-index:1}

/* ═══════════════════════════════════════════════════════════════════════════
   22 · THEME TOGGLE
   A round icon button beside the header CTA, rendered by partials/nav.php on
   this page only. It shows where it would take you: a sun while the page is
   dark, a moon while it is light. Colours come from the tokens, so it follows
   whichever theme is on without rules of its own for each. */
.nav-end{display:flex;align-items:center;gap:.75rem;flex-shrink:0}
.theme-toggle{
 display:inline-flex;align-items:center;justify-content:center;
 width:36px;height:36px;padding:0;border-radius:50%;
 background:transparent;border:1px solid var(--border);color:var(--g600);
 cursor:pointer;transition:color .15s,border-color .15s,background-color .15s;
}
.theme-toggle:hover{color:var(--black);border-color:#32b46f}
.theme-toggle:focus-visible{outline:2px solid #32b46f;outline-offset:2px}
.theme-toggle svg{width:17px;height:17px;display:block}
.theme-toggle .tt-moon{display:none}
html[data-theme="light"] .theme-toggle .tt-sun{display:none}
html[data-theme="light"] .theme-toggle .tt-moon{display:block}

/* ═══════════════════════════════════════════════════════════════════════════
   24 · TECH STACK MODULE MAP
   The map itself is tools/home8-tech.svg, swapped in by tools/sync-home8.pl:
   fifteen module cards wired to the Centralized hub by dashed, square-routed
   connectors. Every connector is drawn from its card toward the hub, so moving
   the dash offset down by one dash period makes the dashes travel inward.
   The section is dark in both themes (inline background), so the colours live
   in the SVG and nothing here changes with the toggle. */
#tech .ts-hub .ts-links{animation:tsLinkFlow 1.1s linear infinite}
@keyframes tsLinkFlow{from{stroke-dashoffset:10}to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){#tech .ts-hub .ts-links{animation:none}}
/* Hero layout: copy left, live industry preview right, shared trust strip below. */
#hero{
 display:block;min-height:0;padding:7.5rem 3.5rem 0;
}
#hero .hero-grid{
 grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:center;justify-items:stretch;gap:clamp(2rem,4vw,4.5rem);
 max-width:1480px;
}
#hero .hero-left{max-width:none;text-align:left}
#hero .hero-eyebrow{margin-left:0;margin-right:0}
#hero .hero-h{font-size:clamp(36px,3.5vw,58px);text-align:left}
#hero .hero-p{max-width:560px;margin-left:0;margin-right:0}
#hero .hero-btns{justify-content:flex-start}
#hero .hero-right{width:100%;max-width:none;margin:0}
#hero .hero-stats{
 width:fit-content;max-width:100%;margin:3rem auto;padding:40px;border-radius:16px;
 background:linear-gradient(112deg,#080b09 0%,#0c1711 45%,#12633a 100%);
 border-block:1px solid rgba(110,232,161,.2);
}
#hero .hero-stats .hstat-n{color:#fff}
#hero .hero-stats .hstat-l{color:rgba(255,255,255,.68)}
#hero .hero-stats .hstat-ico{background:rgba(122,235,169,.14);color:#69e6a0}
@media(max-width:960px){
 #hero{padding:6rem 1.5rem 0}
 #hero .hero-grid{grid-template-columns:1fr;gap:2.5rem;max-width:760px}
 #hero .hero-left{text-align:center}
 #hero .hero-eyebrow{margin-left:auto;margin-right:auto}
 #hero .hero-h{text-align:center}
 #hero .hero-p{margin-left:auto;margin-right:auto}
 #hero .hero-btns{justify-content:center}
 #hero .hero-right{max-width:none}
 #hero .hero-stats{max-width:100%;margin:2.5rem auto;padding:40px}
}
@media(max-width:560px){
 #hero{padding:5.5rem 1.25rem 0}
 #hero .hero-stats{margin:2rem auto;padding:40px}
}

/* About section directly follows the capabilities marquee. */
#about-drawlead{margin:40px;padding:clamp(4.5rem,8vw,7rem) var(--sp-gutter);border-radius:30px;overflow:hidden;background-color:#062719;background-image:radial-gradient(ellipse at 14% 18%,rgba(65,210,131,.18),transparent 42%),linear-gradient(rgba(139,243,181,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(139,243,181,.09) 1px,transparent 1px),linear-gradient(120deg,#041a11 0%,#07502e 54%,#0b7040 100%);background-size:auto,52px 52px,52px 52px,auto;color:#f5fff8}
.about-drawlead-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:clamp(3rem,7vw,7rem);align-items:center}
.about-drawlead-visual{position:relative;min-height:470px;padding:0 52px 46px 0}
.about-drawlead-main{display:block;width:100%;height:424px;object-fit:cover;border-radius:24px;box-shadow:0 10px 28px rgba(16,32,48,.08)}
.about-drawlead-founder{position:absolute;right:0;bottom:0;width:42%;height:220px;padding:8px;background:#fff;border:1px solid rgba(255,255,255,.95);border-radius:20px;box-shadow:0 8px 22px rgba(16,32,48,.12);overflow:hidden}
.about-drawlead-founder img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 18%;border-radius:13px;background:#f1f4f2}
.about-drawlead-trust{position:absolute;left:-18px;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:12px;padding:16px 20px;border:1px solid rgba(255,255,255,.88);border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 8px 22px rgba(16,32,48,.1);color:#101613}
.about-drawlead-trust strong{font-size:32px;line-height:1;color:#20a765;font-weight:750}
.about-drawlead-trust span{font-size:12px;line-height:1.25;font-weight:650;letter-spacing:.04em;text-transform:uppercase}
.about-drawlead-copy{text-align:left}#about-drawlead .about-drawlead-copy .eyebrow{display:inline-flex;width:fit-content;align-self:flex-start;background:transparent;border:0}#about-drawlead .about-drawlead-copy .eyebrow-text{color:#9af0b9;background:rgba(91,224,145,.1);border-color:rgba(141,240,178,.3)}
#about-drawlead .about-drawlead-copy .sec-h{color:#f5fff8}
#about-drawlead .about-drawlead-copy .sec-sub{color:rgba(240,255,246,.78)}
#about-drawlead .about-drawlead-copy .sec-h .g{background:linear-gradient(95deg,#8df0b2,#39d581);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.about-drawlead-copy .eyebrow{margin-left:0;margin-right:0;justify-content:flex-start}
.about-drawlead-copy .sec-h,.about-drawlead-copy .sec-sub{text-align:left;margin-left:0;margin-right:0}
.about-drawlead-copy .btn-primary{display:inline-flex;align-items:center;justify-content:center;padding:14px 24px;border-radius:8px;background:#20ad67;color:#fff;font-weight:700;letter-spacing:.04em;box-shadow:0 6px 16px rgba(32,173,103,.18)}
.about-drawlead-copy .btn-primary:hover{background:#168d52;transform:translateY(-1px)}.about-drawlead-copy .eyebrow{margin-bottom:1.1rem}
.about-drawlead-copy .sec-h{max-width:600px;margin-bottom:1.25rem}
.about-drawlead-copy .sec-sub{max-width:560px;margin-bottom:1.75rem;line-height:1.75}
@media(max-width:960px){.about-drawlead-grid{grid-template-columns:1fr;gap:3rem;max-width:720px}.about-drawlead-visual{min-height:420px}.about-drawlead-main{height:380px}}
@media(max-width:960px){#about-drawlead{margin:24px;border-radius:26px}}
@media(max-width:560px){#about-drawlead{margin:16px;padding:4rem 1.25rem;border-radius:22px}.about-drawlead-visual{min-height:310px;padding:0 30px 32px 0}.about-drawlead-main{height:280px;border-radius:18px}.about-drawlead-founder{width:43%;height:150px;padding:6px;border-radius:15px}.about-drawlead-founder img{border-radius:10px}.about-drawlead-trust{left:-8px;padding:12px 14px;gap:9px}.about-drawlead-trust strong{font-size:25px}.about-drawlead-trust span{font-size:10px}}

/* Industries: dark green gradient panels in the light theme, with high-contrast icons. */
html[data-theme="light"] #industries .is-panel,
html[data-theme="light"] #industries .is-live .is-panel{
 background:linear-gradient(145deg,#050907 0%,#0a1b11 48%,#0d6036 100%);
 border-color:rgba(77,218,136,.55);
}
html[data-theme="light"] #industries .is-live .is-panel{box-shadow:0 24px 54px -24px rgba(3,37,20,.48),0 0 calc(var(--k,0) * 20px) calc(var(--k,0) * -8px) rgba(50,180,111,.28)}
html[data-theme="light"] #industries .is-num{color:#6ce7a0}
html[data-theme="light"] #industries .is-name{color:#f2fff6}
html[data-theme="light"] #industries .is-ico{background:linear-gradient(135deg,#31d17b,#08733e);border-color:rgba(153,255,194,.62);color:#fff;box-shadow:0 5px 18px rgba(33,185,101,.28)}
html[data-theme="light"] #industries .is-ico svg{filter:drop-shadow(0 1px 2px rgba(0,0,0,.22))}
html[data-theme="light"] #industries .is-title{color:#fff}
html[data-theme="light"] #industries .is-tag{color:rgba(233,255,241,.72)}
html[data-theme="light"] #industries .is-col-h{color:rgba(240,255,246,.9)}
html[data-theme="light"] #industries .is-line{color:rgba(238,255,244,.76)}
html[data-theme="light"] #industries .is-col:first-child .is-line svg{color:#ff8a8a}
html[data-theme="light"] #industries .is-col:last-child .is-line svg{color:#70efaa}
html[data-theme="light"] #industries .is-cta{background:linear-gradient(110deg,#36dc83,#159352);color:#04150b;box-shadow:0 7px 20px rgba(26,189,101,.2)}
