/* ==========================================================================
   timingpulley.biz — industry.css
   Industries hub (application.php) + industry pages (<name>-industry.php).
   Tokens only. Shared components (btn-tp, mono-label, xmarks, faq2, product-card)
   come from components.css.
   ========================================================================== */

/* ---------- Breadcrumb ---------- */
.crumbs { margin: 0 0 18px; font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--c-field); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary); }
.crumbs [aria-current="page"] { color: var(--c-primary); }

/* ---------- Hero (hub + industry) ---------- */
.ind-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ind-hero__ctas .btn-tp { flex: 1 1 auto; max-width: 280px; }
@media (max-width: 575.98px) { .ind-hero__ctas .btn-tp { flex-basis: 100%; max-width: none; } }
.ind-hero__trust { --tp: 14px; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; margin: 24px 0 0 calc(var(--tp) * -1); overflow: hidden; font-size: 13px; font-weight: 600; color: var(--c-ink); }
.ind-hero__trust li { margin-left: -1px; padding: 0 var(--tp); border-left: 1px solid var(--c-field); }

/* industry hero visual: photo + "Products used" callout, or an icon panel when no photo yet */
.ind-hero__visual { position: relative; min-width: 0; padding-bottom: 28px; }
.ind-hero__photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ind-hero__iconpanel { aspect-ratio: 4 / 3; display: grid; place-items: center; background-color: var(--c-primary-deep); background-image: var(--grid-dark); background-size: var(--grid-size) var(--grid-size); color: var(--c-accent); }
.ind-hero__iconpanel span { width: 120px; height: 120px; display: grid; place-items: center; border: 1px solid rgba(245, 165, 36, .4); background: rgba(245, 165, 36, .08); }
.ind-hero__iconpanel .ico { width: 64px; height: 64px; stroke-width: 1.25; }
.ind-hero__callout { position: absolute; left: -10px; bottom: 0; width: min(320px, 88%); padding: 16px 18px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--sh-3); }
.ind-hero__callout ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ind-hero__callout li { padding: 4px 10px; border: 1px solid var(--c-line); font-size: 12px; font-weight: 600; color: var(--c-ink); }
@media (max-width: 575.98px) { .ind-hero__callout { left: 0; } }


/* ---------- Section heads used on these pages ---------- */
.ind-sec { padding-block: var(--section-y); }
.ind-sec--surface { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.ind-sec--dark { background-color: var(--c-primary-deep); background-image: var(--grid-dark); background-size: var(--grid-size) var(--grid-size); color: var(--c-on-dark); }
.ind-sec--dark h2, .ind-sec--dark .sec-title { color: #fff; }
.ind-sec--dark .eyebrow { color: var(--c-accent); }
.ind-sec .section-head { margin-bottom: 28px; }
.ind-sec__lead { margin-top: 12px; max-width: 62ch; }

/* ---------- Sector filter + industry cards ---------- */
/* .sector-chips / .sector-chip moved to components.css (2026-10-29: the homepage product filter uses them too) */

.ind-cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .ind-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1200px) { .ind-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.ind-cards > li[hidden] { display: none; }
.ind-card { position: relative; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); transition: border-color var(--t-fast), box-shadow var(--t-fast), translate var(--t-fast) var(--ease); }
.ind-card:hover { border-color: var(--c-primary-line); box-shadow: var(--sh-hover); translate: 0 -3px; }
.ind-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-surface); }
.ind-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ind-card:hover .ind-card__media img { transform: scale(1.04); }
.ind-card__badge { position: absolute; left: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: #fff; color: var(--c-primary); box-shadow: 0 6px 16px -6px rgba(20, 18, 26, .4); }
.ind-card__badge .ico { width: 22px; height: 22px; stroke-width: 1.75; }
.ind-card__iconpanel { aspect-ratio: 4 / 3; display: grid; place-items: center; background-color: var(--c-primary-deep); background-image: var(--grid-dark); background-size: var(--grid-size) var(--grid-size); color: var(--c-accent); }
.ind-card__iconpanel span { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid rgba(245, 165, 36, .4); background: rgba(245, 165, 36, .08); }
.ind-card__iconpanel .ico { width: 40px; height: 40px; stroke-width: 1.5; }
.ind-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.ind-card__sector { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.ind-card__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: clamp(15px, 13px + .4vw, 19px); line-height: 1.25; }
.ind-card__name a { color: var(--c-ink); }
.ind-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ind-card__name .ico { flex: 0 0 auto; color: var(--c-primary); }
.ind-card:focus-within { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.ind-card__fit { font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.ind-card__uses { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; color: var(--c-primary); }
@media (max-width: 575.98px) {
  .ind-card__body { padding: 12px; }
  .ind-card__fit { display: none; }
  .ind-card__badge { width: 34px; height: 34px; left: 8px; top: 8px; }
}

/* ---------- Product x industry matrix ---------- */
.ind-matrix-wrap { overflow-x: auto; border: 1px solid var(--c-line); background: #fff; }
.ind-matrix { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 13px; }
.ind-matrix thead th { padding: 14px 10px; background: var(--c-primary-50); color: var(--c-ink); font-weight: 600; font-size: 12px; line-height: 1.3; text-align: center; }
.ind-matrix thead th:first-child { text-align: left; padding-left: 16px; font-family: var(--ff-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ind-matrix th:first-child { position: sticky; left: 0; z-index: 1; }
.ind-matrix tbody th { padding: 10px 16px; background: #fff; text-align: left; font-weight: 600; white-space: nowrap; }
.ind-matrix tbody th a { color: var(--c-ink); }
.ind-matrix tbody th a:hover { color: var(--c-primary); }
.ind-matrix tbody tr { border-top: 1px solid var(--c-line); }
.ind-matrix td { padding: 10px; text-align: center; }
.ind-matrix__yes { display: inline-grid; place-items: center; width: 22px; height: 22px; background: var(--c-accent); color: var(--c-ink); }
.ind-matrix__yes .ico { width: 14px; height: 14px; stroke-width: 2.5; }
.ind-matrix__no { color: var(--c-field); }
.ind-matrix-note { margin-top: 12px; color: var(--c-muted); }

/* ---------- Icon cards (support, machines, conditions, steps) ---------- */
.icard-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .icard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .icard-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.icard { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2vw, 28px); border: 1px solid var(--c-line); background: #fff; }
.icard--surface { background: var(--c-surface); }
.icard--dark { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--c-on-dark); }
.icard--deep { border-color: var(--c-primary-deep); background-color: var(--c-primary-deep); color: var(--c-on-dark); }
.icard__icon { width: 48px; height: 48px; display: grid; place-items: center; background: var(--c-primary-50); color: var(--c-primary); }
.icard__icon .ico { width: 24px; height: 24px; stroke-width: 1.6; }
.icard--dark .icard__icon, .icard--deep .icard__icon { background: rgba(245, 165, 36, .14); border: 1px solid rgba(245, 165, 36, .35); color: var(--c-accent); }
.icard__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icard .mono-label { color: var(--c-muted); }
.icard--dark .mono-label, .icard--deep .mono-label { color: var(--c-steel); }
.icard h3, .icard .htitle { font-size: 19px; line-height: 1.3; }
.icard--dark h3, .icard--deep h3, .icard--dark .htitle, .icard--deep .htitle { color: #fff; }
.icard p { font-size: 14px; line-height: 1.6; }
.icard__parts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.icard__parts li { padding: 3px 9px; border: 1px solid rgba(255, 255, 255, .16); color: var(--c-on-dark); font-size: 12px; font-weight: 500; }
.icard__rule { height: 1px; background: var(--c-line); }
.icard__answer-label { color: var(--c-primary) !important; }

/* machines grid: 3 across on desktop */
@media (min-width: 992px) { .icard-grid--machines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* steps (a real sequence, so numbered) */
.ind-steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 576px) { .ind-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ind-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ind-steps li { padding: 20px; border: 1px solid var(--c-line); background: #fff; }
.ind-steps__top { display: flex; align-items: center; justify-content: space-between; }
.ind-steps__n { font-family: var(--ff-head); font-weight: 700; font-size: 40px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--c-primary-line); }
.ind-steps__top .ico { width: 26px; height: 26px; color: var(--c-primary); stroke-width: 1.6; }
.ind-steps h3, .ind-steps .htitle { margin-top: 12px; font-size: 16px; }
.ind-steps p { margin-top: 6px; font-size: 14px; line-height: 1.55; }
.ind-split { display: grid; grid-template-columns: 1fr; gap: 28px 64px; align-items: start; }
.ind-split > :first-child { max-width: 860px; }


/* related industries: 4 across, compact */
.ind-cards--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .ind-cards--related { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ind-cards--related .ind-card__media, .ind-cards--related .ind-card__iconpanel { aspect-ratio: 16 / 9; }
.ind-cards--related .ind-card__iconpanel span { width: 60px; height: 60px; }
.ind-cards--related .ind-card__iconpanel .ico { width: 32px; height: 32px; }

/* FAQ on these pages reuses .faq2 (components.css) inside a split layout */
.ind-faq { display: grid; grid-template-columns: 1fr; gap: 24px 64px; }
@media (min-width: 1200px) { .ind-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* ---------- Hover: icon cards + steps (shared by industry and product pages) ---------- */
.icard { transition: border-color var(--t-fast), box-shadow var(--t-fast), translate var(--t-fast) var(--ease), background-color var(--t-fast); }
.icard__icon { transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.icard__icon .ico { transition: transform .35s var(--ease); }
@media (hover: hover) {
  .icard:hover { border-color: var(--c-primary-line); box-shadow: var(--sh-hover); translate: 0 -3px; }
  .icard:hover .icard__icon { background: var(--c-primary); color: #fff; }
  .icard:hover .icard__icon .ico { transform: scale(1.1) rotate(-6deg); }
  .icard--dark:hover, .icard--deep:hover { border-color: rgba(245, 165, 36, .45); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .5); }
  .icard--dark:hover .icard__icon, .icard--deep:hover .icard__icon { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-ink); }
  .ind-steps li:hover { border-color: var(--c-primary-line); box-shadow: var(--sh-hover); translate: 0 -3px; }
  .ind-steps li:hover .ind-steps__n { -webkit-text-stroke-color: var(--c-primary); }
  .ind-steps li:hover .ind-steps__top .ico { transform: translateX(3px); }
}
.ind-steps li { transition: border-color var(--t-fast), box-shadow var(--t-fast), translate var(--t-fast) var(--ease); }
.ind-steps__n { transition: -webkit-text-stroke-color var(--t-fast); }
.ind-steps__top .ico { transition: transform .3s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .icard, .ind-steps li { translate: none !important; }
  .icard__icon .ico, .ind-steps__top .ico { transform: none !important; }
}

/* FAQ heading stays in view while the questions scroll (same as the homepage FAQ aside) */
@media (min-width: 1200px) {
  .ind-faq { align-items: start; }
  .ind-faq > :first-child { position: sticky; top: calc(var(--header-h) + 32px); }
  .psec .ind-faq > :first-child { top: 150px; }   /* product pages: below the sticky section bar */
}

/* ---------- Inner-page header (every inner page): H1 + breadcrumb on the blueprint background ----------
   Markup: tools/shared/page-head.mjs. Nothing else goes in it (user rule, 2026-10-22). */
/* 2026-10-29 (rework): flat deep purple, faint static line art, breadcrumb above the H1, at most ~280px tall */
.page-head { position: relative; overflow: hidden; isolation: isolate; background-color: var(--c-primary-deep); color: var(--c-on-dark); }
.page-head__inner { position: relative; z-index: 1; display: flex; flex-direction: column; padding-block: clamp(36px, 24px + 3vw, 64px); }
.page-head h1 { max-width: 30ch; color: #fff; font-size: var(--fs-page-title); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.page-head__crumbs { order: -1; margin: 0 0 14px; color: var(--c-on-dark-muted); }
.page-head__crumbs a { color: var(--c-on-dark-muted); }
.page-head__crumbs a:hover { color: #fff; }
.page-head__crumbs li + li::before { color: rgba(255, 255, 255, .3); }
.page-head__crumbs [aria-current="page"] { color: var(--c-accent); }
.page-head__art { position: absolute; z-index: 0; top: 50%; right: max(-140px, calc((100vw - 1316px) / 2 - 140px)); width: 560px; height: 560px; translate: 0 -50%; pointer-events: none; }
.page-head__teeth { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1.5; stroke-linejoin: round; }
.page-head__ring { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 1.5; }
.page-head__axis { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1; stroke-dasharray: 10 6 2 6; }
@media (max-width: 767.98px) { .page-head__art { width: 300px; height: 300px; right: -120px; opacity: .7; } }

/* ---------- First section after the page header: lead, CTA pair, trust line + visual ----------
   (the hero's content, moved out of the header 2026-10-22). Industry pages; product pages use .pov. */
.ind-intro { display: grid; grid-template-columns: 1fr; gap: 32px 64px; align-items: center; }
@media (min-width: 992px) { .ind-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ind-intro__lead { margin-top: 4px; max-width: 54ch; font-weight: 500; font-size: clamp(17px, 15px + .45vw, 20px); line-height: 1.55; color: var(--c-ink); text-wrap: pretty; }
.ind-intro .ind-hero__trust, .pov .ind-hero__trust { margin-top: 22px; }

/* ---------- Shared by the hand-written inner pages (contact, quote, legal, company): one H2 per page ---------- */
/* ---------- Card / step / section titles that are not H2 (one H2 per page) ---------- */
.icard .icard__title { font-family: var(--ff-head); font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--c-ink); }
.icard--dark .icard__title { color: #fff; }
.ind-steps .ind-steps__title { margin-top: 12px; font-family: var(--ff-head); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--c-ink); }
.ind-sec--dark .sec-title { color: #fff; }
/* dark steps (same .ind-steps, on the deep section) */
.ind-steps--dark li { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: var(--c-on-dark); }
.ind-steps--dark .ind-steps__n { -webkit-text-stroke-color: rgba(245, 165, 36, .6); }
.ind-steps--dark .ind-steps__top .ico { color: var(--c-accent); }
.ind-steps--dark p { color: var(--c-on-dark); }
.ind-steps--dark .ind-steps__title { color: #fff; }
@media (hover: hover) {
  .ind-steps--dark li:hover { border-color: rgba(245, 165, 36, .45); box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .5); }
  .ind-steps--dark li:hover .ind-steps__n { -webkit-text-stroke-color: var(--c-accent); }
}

/* ---------- Shape tiers (2026-10-28, user): see tokens.css ---------- */
.sector-chip, .ind-hero__iconpanel span, .ind-hero__callout li, .ind-card__badge, .ind-card__iconpanel span, .icard__icon, .icard__parts li { border-radius: var(--r-sm); }
.ind-hero__photo, .ind-hero__iconpanel, .ind-hero__callout, .ind-matrix-wrap, .icard, .ind-steps li { border-radius: var(--r-md); }
.ind-card { overflow: hidden; border-radius: var(--r-md); }

/* ---------- Type (2026-10-29, rework): labels in Inter; monospace only for data values ---------- */
.crumbs, .sector-chip span, .ind-card__sector, .ind-matrix thead th:first-child { font-family: var(--ff-body); font-size: 13px; font-weight: 600; letter-spacing: .01em; text-transform: none; }
