/* ============================================================
   MineWorks - product page
   Builds on shared tokens + patterns in styles.css / facecapture.css
   ============================================================ */

/* Hero background (no inline styles - CSP) */
.page-hero__bg--mineworks{background-image:url(../images/hero-mineworks.webp)}
/* This photo is a bright office (white desk, light walls) and the copy sits over
   its left half, so the shared .page-hero scrim isn't enough: measured, the lead
   and badges fell to 3.2-4.3:1 at tablet and phone widths. A heavier fade on the
   left, easing off over the person on the right; on phones the copy spans the
   full width, so the whole frame is darkened. Re-measure if the photo changes. */
.page-hero--mineworks:after{background:linear-gradient(90deg,#101418e6 0%,#101418d4 38%,#10141899 58%,#10141833 82%,#10141814 100%),linear-gradient(#10141800 45%,#1014186b)}
@media (width<=900px){.page-hero--mineworks:after{background:linear-gradient(90deg,#101418eb 0%,#101418d9 55%,#101418a6 100%),linear-gradient(#10141800 45%,#1014186b)}}

/* Fixed 88px header + the 86px sticky .fc-subnav (it carries the product
   lockup), so in-page anchors clear both instead of landing under them. */
#what-you-get,#platform,#your-data,#experts,#applications,#connected,#in-action,#mapping,#minegenome{scroll-margin-top:180px}
@media (width<=640px){#what-you-get,#platform,#your-data,#experts,#applications,#connected,#in-action,#mapping,#minegenome{scroll-margin-top:100px}}

/* Shared number label: What you get cards and MineGenome points */
.mw-num{font-family:var(--font-mono);letter-spacing:.1em;color:var(--olive-text);margin-bottom:.9rem;font-size:.72rem;font-weight:700;display:block}

/* ---------- Hero: proof badges + button pair ---------- */
.mw-hero-badges{list-style:none;flex-wrap:wrap;gap:.5rem .6rem;margin:1.6rem 0 0;padding:0;display:flex}
.mw-hero-badges li{font-family:var(--font-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--white);background:#ffffff14;border:1px solid #ffffff3d;padding:.34rem .7rem;font-size:.62rem;font-weight:500}
.mw-hero-actions{flex-wrap:wrap;gap:.8rem;margin-top:2rem;display:flex}
.page-hero .mw-hero-actions .btn--ghost{color:var(--white);border-color:#ffffff66}
.page-hero .mw-hero-actions .btn--ghost:hover{background:#ffffff1f;border-color:#ffffffa6}

/* ---------- What you get ---------- */
/* .fc-value-cards already goes 4 / 2 / 1; the section head carries the gap */
.mw-value-cards{margin-top:0}
.mw-value-card{flex-direction:column;display:flex}
.mw-value-card p{flex:1}
.mw-value-card__arrow{color:var(--olive-text);width:16px;height:16px;margin-top:1.2rem;transition:transform var(--motion-transform)}
.mw-value-card:hover .mw-value-card__arrow{transform:translateY(3px)}

/* ---------- The platform: connectivity, applications, connected (#platform) ---------- */
.mw-platform{background:var(--paper)}
/* Three blocks under one section head, divided by hairlines */
.mw-block{border-top:1px solid var(--line);padding-top:clamp(2.5rem,5vw,4rem)}
.mw-block+.mw-block{margin-top:clamp(3rem,6vw,5rem)}
.mw-block__label{font-family:var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--olive-text);margin-bottom:.8rem;font-size:.7rem;font-weight:500;display:block}
.mw-block__title{font-size:clamp(1.45rem,2.4vw,2rem);line-height:1.15}

.mw-block__head{max-width:720px;margin-bottom:2.4rem}

/* Connected: export logos beside the copy (grid styles from facecapture.css) */
.mw-logos{margin:0}

/* ---------- Split layout: copy beside a graphic ---------- */
.mw-split{grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center;display:grid}
/* The cloud's five chips need the full width below this */
@media (width<=1100px){.mw-split{grid-template-columns:1fr}}
.mw-split__body{max-width:720px;color:var(--slate);font-size:var(--fs-lead);margin-top:1rem;line-height:1.65}
.mw-connected__quote{margin:2rem 0 0}
.mw-connected__quote cite strong{color:var(--ink);letter-spacing:.06em;font-style:normal;font-weight:600;display:block}

/* Pull quote, same rules as .cs-blockquote in case-study.css and solutions.css
   (neither stylesheet loads on this page) */
.cs-blockquote{border-left:3px solid var(--mvs-green);padding:1.4rem 0 1.4rem 1.8rem}
.cs-blockquote p{color:var(--ink);margin-bottom:.8rem;font-size:clamp(1.05rem,1.7vw,1.2rem);font-style:italic;line-height:1.65}
.cs-blockquote cite{color:var(--slate);font-size:.88rem;font-style:normal;line-height:1.5;display:block}

/* MineWorks cloud graphic - one node over a rail of five chips, built in CSS.
   Markup comes from js/mineworks.js. Stacks into a column on phones. */
.mw-cloud{--mw-rail:1.6rem;--mw-gap:.6rem;justify-items:center;width:100%;display:grid}
.mw-cloud__node{font-family:var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--white);background:var(--olive);text-align:center;padding:1.1rem 1.6rem;font-size:.78rem;font-weight:500;position:relative}
.mw-cloud__node:after{content:"";background:var(--stone-300);width:1px;height:var(--mw-rail);position:absolute;top:100%;left:50%}
.mw-cloud__chips{grid-template-columns:repeat(5,1fr);gap:var(--mw-gap);width:100%;margin:var(--mw-rail) 0 0;padding:var(--mw-rail) 0 0;list-style:none;display:grid;position:relative}
/* Rail from the first chip's centre to the last chip's centre */
.mw-cloud__chips:before{content:"";background:var(--stone-300);height:1px;position:absolute;top:0;left:calc((100% - 4 * var(--mw-gap)) / 10);right:calc((100% - 4 * var(--mw-gap)) / 10)}
.mw-cloud__chip{font-family:var(--font-display);color:var(--slate);background:var(--white);border:1px solid var(--line);text-align:center;padding:.75rem .4rem;font-size:.85rem;font-weight:600;position:relative}
.mw-cloud__chip:before{content:"";background:var(--stone-300);width:1px;height:var(--mw-rail);position:absolute;bottom:100%;left:50%}
@media (width<=640px){
  .mw-cloud__chips{grid-template-columns:1fr;max-width:15rem;margin-top:0}
  .mw-cloud__chips:before{width:1px;height:auto;inset:0 auto 0 50%}
  .mw-cloud__chip:before{display:none}
}

/* ---------- Applications in action: Digital Face Mapping (#in-action) ---------- */
/* Dark .fc-integrated band; the shared .showcase__row and .list-row patterns
   are built for light grounds, so their colours are swapped here. */
.mw-action__row+.mw-action__row{border-top-color:#ffffff1a}
.mw-action__row{grid-template-columns:1fr 1.15fr}
.mw-action__row.reverse{grid-template-columns:1.15fr 1fr}
.mw-action .mw-block__label{color:var(--sage)}
.mw-action .showcase__text h3{color:var(--white)}
.mw-action .showcase__text p{color:#ffffffb8}
.mw-action .list-row,.mw-action .list-row:last-child{border-color:#ffffff1a}
.mw-action .list-row__inner{padding-block:1.1rem}
.mw-action .list-row__num{color:var(--sage)}
.mw-action .list-row__title{color:var(--white);font-size:1.1rem}
.mw-action .list-row__desc{color:#ffffffad;font-size:.95rem}
.mw-action .list-row__desc strong{color:var(--white)}
.mw-action__media{margin-top:0}
/* Stack below 900px: at tablet width the copy column got too narrow for the
   numbered rows. Both selectors, or .reverse's desktop rule wins. Media goes
   after the copy once stacked. */
@media (width<=900px){.mw-action__row,.mw-action__row.reverse{grid-template-columns:1fr}.mw-action__row.reverse .showcase__media{order:0}}

/* ---------- Our experts, closer ---------- */
/* White here and stone on the ROI strip below it: the reverse of the shared
   defaults, scoped to /mineworks (the only page loading this file). */
.mw-experts{background:var(--white)}
.roi-strip{background:var(--stone)}
.mw-experts__grid{margin-top:0}
/* Four items: 4 across on desktop, 2x2 on tablet, stacked on phones */
.mw-experts__grid{grid-template-columns:repeat(4,1fr)}
@media (width<=1024px){.mw-experts__grid{grid-template-columns:repeat(2,1fr)}}
@media (width<=640px){.mw-experts__grid{grid-template-columns:1fr}}
.mw-experts .fc-cap-item h3{font-size:1.15rem}
.mw-experts .fc-cap-item p{color:var(--stone-600)}
.mw-experts__link{color:var(--olive-deep);margin-top:2.6rem}
.mw-experts__link:hover svg{transform:translateX(4px)}

/* ---------- Applications grid (inside #platform) ---------- */

/* Six cards (five applications + More on the way): 3 + 3 on desktop,
   2 across on tablet, 1 on mobile */
.mw-app-grid{grid-template-columns:repeat(3,1fr);gap:1.25rem;display:grid}
@media (width<=900px){.mw-app-grid{grid-template-columns:repeat(2,1fr)}}
@media (width<=560px){.mw-app-grid{grid-template-columns:1fr}}

.mw-app{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);transition:border-color var(--motion-color), box-shadow var(--motion-color);padding:1.4rem 1.4rem 1.5rem}
.mw-app:hover{box-shadow:var(--shadow-md);border-color:var(--mvs-green)}
/* Cards with an href in MINEWORKS_APPS link down to their row in #in-action */
.mw-app--link{text-decoration:none;display:block}
.mw-app__more{font-family:var(--font-display);color:var(--olive-text);align-items:center;gap:.45rem;margin-top:.9rem;font-size:.85rem;font-weight:600;display:inline-flex}
.mw-app__more svg{width:14px;height:14px;transition:transform var(--motion-transform)}
.mw-app--link:hover .mw-app__more svg{transform:translateY(3px)}
.mw-app__name{font-family:var(--font-display);color:var(--ink);margin:0 0 .6rem;font-size:1rem;font-weight:600}
.mw-app__desc{color:var(--slate);margin:0;font-size:.875rem;line-height:1.65}
/* Closing card: outlined, muted, no description */
/* "More on the way": a button that opens the upcoming-applications panel
   (js/mineworks.js). The wrapper takes the grid cell and anchors the panel. */
.mw-more{position:relative}
.mw-app--more{font:inherit;text-align:left;cursor:pointer;background:transparent;border-style:dashed;border-color:var(--stone-400);flex-direction:column;justify-content:center;align-items:flex-start;gap:.5rem;width:100%;display:flex}
/* Fill the grid cell beside the other cards; on phones the panel sits in-flow
   under the card, so the card must keep its own height there */
@media (width>=761px){.mw-app--more{height:100%}}
.mw-app--more:hover,.mw-more.is-open .mw-app--more{box-shadow:none;border-color:var(--mvs-green)}
.mw-app--more .mw-app__name{color:var(--stone-500);margin:0}
.mw-more__hint{font-family:var(--font-display);color:var(--olive-text);align-items:center;gap:.4rem;font-size:.85rem;font-weight:600;display:inline-flex}
.mw-more__hint svg{width:14px;height:14px;transition:transform var(--motion-transform)}
.mw-more.is-open .mw-more__hint svg{transform:rotate(45deg)}

/* The panel rises out of the top of the card, right-aligned, over the cards above */
.mw-upcoming{z-index:5;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);width:max(100%,320px);opacity:0;transition:opacity var(--motion-considered), transform var(--motion-considered);padding:1.1rem 1.2rem .6rem;position:absolute;bottom:calc(100% + 8px);right:0;transform:translateY(6px)}
.mw-more.is-open .mw-upcoming{opacity:1;transform:none}
.mw-upcoming__title{font-family:var(--font-mono);letter-spacing:.14em;text-transform:uppercase;color:var(--olive-text);margin:0 0 .5rem;font-size:.68rem;font-weight:500}
.mw-upcoming__list{margin:0;padding:0;list-style:none}
.mw-upcoming__item{border-top:1px solid var(--line);align-items:center;gap:.8rem;padding:.6rem 0;display:flex}
.mw-upcoming__item:first-child{border-top:0}
.mw-upcoming__tile{color:var(--white);background:var(--olive);border-radius:6px;flex:none;justify-content:center;align-items:center;width:32px;height:32px;display:flex}
.mw-upcoming__tile svg{width:17px;height:17px}
.mw-upcoming__name{font-family:var(--font-display);color:var(--ink);flex:1;font-size:.95rem;font-weight:600;line-height:1.3}
.mw-upcoming__group{font-family:var(--font-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--stone-500);flex:none;font-size:.62rem;font-weight:500}
/* Phones: in-flow under the card instead of floating */
@media (width<=760px){
  .mw-upcoming{width:100%;margin-top:.6rem;position:static;transform:none}
}

/* ---------- MineGenome teaser (full story on /minegenome) ---------- */
.mw-genome-teaser{background:var(--white);border-top:1px solid var(--line);padding-block:clamp(3rem,5vw,4.5rem)}
.mw-genome-teaser__inner{grid-template-columns:auto 1fr auto;gap:clamp(1.5rem,3vw,2.5rem);align-items:center;display:grid}
/* Sized by its width/height attributes (viewBox x 0.7) */
.mw-genome-teaser__glyph{height:auto}
.mw-genome-teaser__text .eyebrow{margin-bottom:.6rem}
.mw-genome-teaser__text h2{font-size:clamp(1.5rem,2.6vw,2.1rem)}
.mw-genome-teaser__text p{font-size:var(--fs-lead);margin-top:.5rem}
@media (width<=760px){
  .mw-genome-teaser__inner{grid-template-columns:1fr;justify-items:start}
  .mw-genome-teaser__glyph{width:auto;height:61px}
}
