/* Draft F — shared editorial styles for the Industries section (overview + four sector pages).
   Loaded by page-industries.php and each sector template. Tokens only; prefix .ind- */

.ind { color: var(--body); font-family: var(--text); font-size: 18px; line-height: 1.6; }
.ind *, .ind *::before, .ind *::after { box-sizing: border-box; }
:where(.ind) img { display: block; max-width: 100%; height: auto; }
:where(.ind) a:not(.rp-btn) { color: inherit; }
:where(.ind) :is(h1, h2, h3) { font-family: var(--display); font-weight: 400; color: var(--ink); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.ind h1 em, .ind h2 em, .ind h3 em { font-style: italic; }
.ind p:where(:not([class])) { margin: 0 0 1em; }
.ind-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.ind-sec { padding-block: clamp(56px, 8vw, 112px); }
.ind-sec--band { background: var(--paper-2); }
.ind-sec--tight { padding-block: clamp(40px, 5vw, 72px); }

/* small kicker: "Industries · Mining & tunnels" */
.ind-kicker { font: 500 13px/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 0 0 20px; }
.ind-kicker a { text-decoration: none; }
.ind-kicker a:hover { color: var(--red); }
.ind-kicker span[aria-hidden] { margin-inline: 8px; color: var(--sand); }
.ind-data { font: 500 14px/1.4 var(--text); color: var(--mute); }

/* ---------- hero: headline + dek beside a large captioned photograph ---------- */
.ind-hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.ind-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ind-hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; }
.ind-hero__dek { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--body); max-width: 34em; margin: 24px 0 32px; }
.ind-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ind-link { font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--sand); padding-bottom: 2px; transition: border-color .15s, color .15s; }
.ind-link:hover { color: var(--red); border-bottom-color: var(--red); }
.ind-fig { margin: 0; }
.ind-fig img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.ind-hero .ind-fig img { aspect-ratio: 4 / 3.4; }
.ind-fig figcaption { font-size: 14px; line-height: 1.5; color: var(--mute); margin-top: 12px; max-width: 52ch; }

/* ---------- article spread: the moment ---------- */
.ind-spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ind-spread__head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; }
.ind-spread__head .ind-data { margin-top: 18px; }
.ind-prose { max-width: 64ch; }
.ind-prose > p:first-child { font-size: clamp(20px, 1.8vw, 23px); line-height: 1.55; color: var(--ink); }
.ind-prose ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.ind-prose li { margin-bottom: .4em; }
.ind-prose li::marker { color: var(--red); }

.ind-pull { margin: clamp(32px, 4vw, 48px) 0; padding: 0 0 0 clamp(20px, 3vw, 32px); border-left: 3px solid var(--red); }
.ind-pull p { font: italic 400 clamp(24px, 2.4vw, 32px)/1.3 var(--display); color: var(--ink); margin: 0 0 12px; }
.ind-pull cite { font-style: normal; font-size: 14px; color: var(--mute); }
.ind-pull cite a { color: var(--mute); }

/* ---------- what changes: numbered editorial items ---------- */
.ind-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.ind-head h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
.ind-head > p:not(.ind-kicker) { font-size: 19px; margin-top: 18px; max-width: 60ch; }
.ind-changes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); counter-reset: ind; }
.ind-changes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ind-changes > li { counter-increment: ind; border-top: 1px solid var(--sand); padding-top: 24px; }
.ind-changes > li::before { content: counter(ind); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--red-soft); font: 600 14px/1 var(--text); color: var(--red-dark); margin-bottom: 16px; }
.ind-changes h3 { font-size: clamp(23px, 2vw, 28px); line-height: 1.2; margin-bottom: 12px; }
.ind-changes p { font-size: 17px; margin: 0; }
.ind-changes p + p { margin-top: .8em; }

/* ---------- full-bleed photo band ---------- */
.ind-band { position: relative; margin: 0; }
.ind-band img { width: 100%; height: clamp(300px, 46vw, 620px); object-fit: cover; }
.ind-band figcaption { font-size: 14px; color: var(--mute); padding: 12px var(--gutter) 0; max-width: var(--max); margin-inline: auto; }

/* ---------- by the numbers ---------- */
.ind-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin: 0; }
.ind-nums--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ind-nums > div { border-top: 1px solid var(--sand); padding-top: 20px; }
.ind-nums dt { white-space: nowrap; font: 400 clamp(40px, 4.4vw, 66px)/1 var(--display); color: var(--ink); letter-spacing: -.02em; margin-bottom: 12px; }
.ind-nums dt small { font-size: .45em; letter-spacing: 0; }
.ind-nums dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--body); max-width: 26ch; }
.ind-note { font-size: 14px; color: var(--mute); margin-top: 28px; max-width: 70ch; }

/* ---------- proof: story cards ---------- */
.ind-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.ind-stories--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ind-story { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.ind-story:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(27,25,22,.06), 0 18px 40px rgba(27,25,22,.12); }
.ind-story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ind-story__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ind-story h3 { font-size: clamp(22px, 1.9vw, 27px); line-height: 1.2; }
.ind-story p { font-size: 16px; margin: 0; }
.ind-story p.ind-data { font-size: 14px; }
.ind-story__more { margin-top: auto; padding-top: 8px; font-weight: 500; font-size: 15px; color: var(--red); }
.ind-story .ind-kpis { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding: 0; list-style: none; }
.ind-story .ind-kpis li { font-size: 14px; color: var(--mute); }
.ind-story .ind-kpis b { font: 500 19px/1 var(--display); color: var(--ink); margin-right: 4px; }

/* resources: brochures / PDFs */
.ind-files { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ind-files a { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--paper); text-decoration: none; font-weight: 500; font-size: 16px; transition: border-color .15s, color .15s; }
.ind-files a:hover { border-color: var(--red); color: var(--red); }
.ind-files a span { font: 500 13px/1 var(--text); color: var(--mute); background: var(--paper-2); border-radius: 999px; padding: 6px 10px; }

/* ---------- how it works: exact specs ---------- */
.ind-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ind-how h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; }
.ind-how__intro p:not(.ind-kicker) { margin-top: 18px; }
.ind-specs { margin: 0; border-top: 1px solid var(--sand); }
.ind-specs > div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--sand); }
.ind-specs dt { font: 600 15px/1.6 var(--text); color: var(--ink); padding-top: 1px; }
.ind-specs dd { margin: 0; font-size: 17px; color: var(--body); }
.ind-specs dd b { font-weight: 600; color: var(--ink); }

/* ---------- overview: sector features ---------- */
.ind-sector { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--sand); }
.ind-sector:first-child { border-top: 0; padding-top: 0; }
.ind-sector:nth-child(even) .ind-fig { order: 2; }
.ind-sector .ind-fig img { aspect-ratio: 3 / 2; }
.ind-sector h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.08; margin-bottom: 18px; }
.ind-sector__moment { font: italic 400 clamp(20px, 1.8vw, 24px)/1.45 var(--display); color: var(--ink); margin-bottom: 16px; }
.ind-sector__fact { display: flex; gap: 14px; align-items: baseline; border-top: 1px solid var(--sand); padding-top: 16px; margin: 24px 0 24px; }
.ind-sector__fact b { font: 400 clamp(30px, 3vw, 40px)/1 var(--display); color: var(--ink); white-space: nowrap; }
.ind-sector__fact span { font-size: 15px; color: var(--mute); line-height: 1.45; }

/* ---------- other industries strip ---------- */
.ind-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ind-next a { display: block; padding: 22px 24px; border: 1px solid var(--sand); border-radius: var(--radius); text-decoration: none; background: var(--paper); transition: border-color .15s; }
.ind-next a:hover { border-color: var(--ink); }
.ind-next b { display: block; font: 400 24px/1.2 var(--display); color: var(--ink); margin-bottom: 6px; }
.ind-next span { font-size: 15px; color: var(--mute); }

/* ---------- healthcare savings calculator ---------- */
.ind-calc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(16px, 3vw, 32px); }
.ind-calc iframe { display: block; width: 100%; height: 1500px; min-height: 560px; border: 0; } /* Calculoid posts its real height; 1500px avoids a big layout jump */
.ind-calc__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: baseline; margin-top: 16px; border-top: 1px solid var(--sand); padding-top: 14px; }
.ind-calc__foot p { font-size: 13px; line-height: 1.5; color: var(--mute); margin: 0; max-width: 80ch; }

/* ---------- motion ---------- */
.ind-rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.ind-rv.is-in { opacity: 1; transform: none; }
html:not(.ind-js) .ind-rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ind-rv { opacity: 1; transform: none; transition: none; }
  .ind-story, .ind-story:hover { transition: none; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ind-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-stories--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ind-hero__grid, .ind-spread, .ind-how, .ind-sector { grid-template-columns: minmax(0, 1fr); }
  .ind-sector:nth-child(even) .ind-fig { order: 0; }
  .ind-changes, .ind-changes--2 { grid-template-columns: minmax(0, 1fr); }
  .ind-next { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ind { font-size: 17px; }
  .ind-stories, .ind-stories--3 { grid-template-columns: minmax(0, 1fr); }
  .ind-nums--3 { grid-template-columns: minmax(0, 1fr); }
  .ind-nums dt { font-size: 36px; white-space: normal; }
  .ind-nums { gap: 24px 16px; }
  .ind-specs > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ind-hero .ind-fig img { aspect-ratio: 4 / 3; }
  .ind-calc { padding: 12px; }
  .ind-files a { width: 100%; justify-content: space-between; }
}

/* spacing helpers */
.ind-mt { margin-top: clamp(40px, 5vw, 64px); }
.ind-sub { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--sand); }

/* ======================================================================
   Draft F — sector illustrations (.ind-illo). Friendly plan-view drawings
   on F's tokens. The markup is the still frame (reduced motion / no JS);
   industry.js animates it while on screen and sets data-step on the figure.
   ====================================================================== */
.ind-illo { margin: clamp(40px, 5vw, 64px) 0 0; background: var(--card); border-radius: calc(var(--radius) * 1.5); box-shadow: var(--shadow); padding: clamp(14px, 2.4vw, 28px); }
.ind-illo__stage svg { display: block; width: 100%; height: auto; }
.ind-illo__cap { margin-top: clamp(14px, 2vw, 22px); }
.ind-illo__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 10px; counter-reset: il; }
.ind-illo__steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); font-size: 15px; line-height: 1.4; color: var(--mute); transition: background .45s ease, color .45s ease; }
.ind-illo__steps li::before { content: counter(il); counter-increment: il; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--paper-2); color: var(--mute); font: 600 12.5px/1 var(--text); transition: background .45s ease, color .45s ease; }
.ind-illo[data-step="1"] .ind-illo__steps li:nth-child(1),
.ind-illo[data-step="2"] .ind-illo__steps li:nth-child(2),
.ind-illo[data-step="3"] .ind-illo__steps li:nth-child(3),
.ind-illo[data-step="4"] .ind-illo__steps li:nth-child(4) { background: var(--paper-2); color: var(--ink); }
.ind-illo[data-step="1"] .ind-illo__steps li:nth-child(1)::before,
.ind-illo[data-step="2"] .ind-illo__steps li:nth-child(2)::before,
.ind-illo[data-step="3"] .ind-illo__steps li:nth-child(3)::before,
.ind-illo[data-step="4"] .ind-illo__steps li:nth-child(4)::before { background: var(--red); color: #fff; }
.ind-illo.is-clear .ind-illo__steps li:last-child::before { background: var(--safe); color: #fff; }
.ind-illo__note { font-size: 15px; line-height: 1.5; color: var(--mute); margin: 0; max-width: 72ch; }
.ind-illo__note b { color: var(--ink); font-weight: 600; }

/* --- drawing primitives (SVG) --- */
.il-floor { fill: var(--paper-2); }
.il-rack { fill: var(--card); stroke: var(--sand-2); stroke-width: 1.5; }
.il-bay { stroke: var(--sand); stroke-width: 1.5; fill: none; }
.il-stack { fill: var(--sand); fill-opacity: .6; }
.il-pallet { fill: var(--card); stroke: var(--sand-2); stroke-width: 1.5; }
.il-wall { fill: var(--card); stroke: var(--sand-2); stroke-width: 2; }
.il-rock { fill: var(--sand); }
.il-line { fill: none; stroke: var(--sand-2); stroke-width: 1.5; stroke-linecap: round; }
.il-dim { fill: none; stroke: var(--mute); stroke-width: 1.5; stroke-linecap: round; }
.il-label { font: 500 15px/1 var(--text); fill: var(--mute); }
.il-label--ink { fill: var(--ink); font-weight: 600; }
.il-pill { fill: var(--card); stroke: var(--sand-2); stroke-width: 1.5; }

.il-body { fill: var(--card); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.il-guard { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; }
.il-ink { fill: var(--ink); }
.il-fork { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.il-tag { fill: var(--red); stroke: var(--card); stroke-width: 2; }
.il-disc { fill: var(--card); stroke: var(--ink); stroke-width: 2; }
.il-disc--staff { fill: var(--ink); }
.il-glyph--light { fill: var(--card); }
.il-bed { fill: var(--card); stroke: var(--sand-2); stroke-width: 1.5; }
.il-pillow { fill: var(--paper-2); stroke: var(--sand-2); stroke-width: 1.5; }
.il-anchor rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.75; }
.il-anchor path { fill: none; stroke: var(--red); stroke-width: 1.75; stroke-linecap: round; }
.il-anchor circle { fill: var(--red); }

/* zones: soft red tint; red outline only while active; green moment when the path clears */
.il-zone { fill: var(--red-soft); fill-opacity: .5; stroke: var(--red); stroke-opacity: 0; stroke-width: 2; transition: stroke-opacity .4s ease, fill .4s ease, fill-opacity .4s ease, stroke .4s ease; }
.il-zone.is-on { stroke-opacity: 1; fill-opacity: .6; }
.il-zone.is-clear { fill: var(--safe-soft); stroke: var(--safe); stroke-opacity: 1; fill-opacity: .85; }
.il-link { fill: none; stroke: var(--red); stroke-width: 2.25; stroke-linecap: round; stroke-dasharray: 1 8; opacity: 0; transition: opacity .35s ease; }
.il-link.is-on { opacity: 1; }
.il-warn { fill: var(--red-soft); stroke: var(--red); stroke-width: 2; opacity: 0; transition: opacity .35s ease; }
.il-warn.is-on { opacity: 1; }
.il-ripple { fill: none; stroke: var(--red); stroke-width: 1.5; }
.il-range { fill: none; stroke: var(--ink); stroke-opacity: .28; stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.il-contact { fill: var(--red-soft); fill-opacity: .75; stroke: var(--red); stroke-width: 2; opacity: 0; transition: opacity .4s ease; }
.il-contact.is-on { opacity: 1; }
.il-record { opacity: 0; transition: opacity .4s ease; }
.il-record.is-on { opacity: 1; }
.il-record rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.75; }
.il-record path { fill: none; stroke: var(--safe); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* healthcare contact log (HTML, readable at any width) */
.ind-log { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--card); font-size: 15px; line-height: 1.4; color: var(--body); transition: opacity .4s ease; }
.ind-log__icon { flex: none; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: var(--safe-soft); }
.ind-log__icon svg { width: 14px; height: 14px; fill: none; stroke: var(--safe); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ind-log b { color: var(--ink); font-weight: 600; }
.ind-log .ind-log__meta { color: var(--mute); }
.ind-illo[data-step="1"] .ind-log, .ind-illo[data-step="2"] .ind-log { opacity: .4; }

/* mining: anchor spacing comparison (HTML) */
.ind-scale { display: grid; gap: 8px; margin: 0 0 16px; }
.ind-scale__row { display: grid; grid-template-columns: minmax(0, 19em) minmax(0, 1fr); gap: 16px; align-items: center; font-size: 15px; color: var(--mute); }
.ind-scale__row b { color: var(--ink); font-weight: 600; }
.ind-scale__track { position: relative; height: 22px; }
.ind-scale__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--sand-2); }
.ind-scale__track i { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 3px; background: var(--card); border: 1.75px solid var(--mute); }
.ind-scale__row--rp .ind-scale__track i { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 4px; border-color: var(--red); }

/* overview: small spot illustrations on the sector cards */
.ind-spot { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--paper-2); margin-bottom: 18px; }
.ind-spot svg { width: 36px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ind-spot svg .r { stroke: var(--red); }
.ind-spot svg .f { fill: var(--red-soft); stroke: none; }
.ind-spot svg .k { fill: var(--ink); stroke: none; }

@media (max-width: 900px) {
  .ind-illo__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ind-illo { padding: 10px; border-radius: var(--radius); }
  .ind-illo__steps { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ind-illo__steps li { padding: 8px 10px; }
  .il-label, .il-hide-sm { display: none; }
  .ind-scale__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ind-illo *, .ind-illo *::before { transition: none !important; }
}
.ind-illo--lead { margin: 0 0 clamp(40px, 5vw, 64px); }
.ind-scale__track { margin-inline: 7px; }
