/* Reusable content components. */

/* ---- Home hero: full-bleed, generous height, centered content ----
   Deliberately bigger and more declarative than a compact split hero —
   the background is the "mechanical" placeholder art (production/machine
   texture, see StitchArtTagHelper), read as the brand's opening statement
   rather than tied to one specific category. */
.hero-full {
  position: relative;
  min-height: min(92dvh, 820px);
  display: flex;
  align-items: center;
  padding: var(--space-9) 0;
  overflow: hidden;
  color: var(--color-text-on-ink);
  background: radial-gradient(ellipse at 20% 0%, #2c2f33 0%, var(--color-ink-900, #16181b) 70%);
}
.hero-full-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-full-bg img,
.hero-full-bg .stitch-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Scrim as a pseudo-element of the same container (rather than a sibling
   div) so it shares one stacking context with the placeholder-art label
   below — a separate sibling scrim would paint above that label's own
   z-index regardless of value, since z-index only orders elements within
   the same stacking context. */
.hero-full-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 24, 27, 0.55) 0%, rgba(22, 24, 27, 0.85) 100%);
}
.hero-full-bg .media-slot-tag { z-index: 2; }
.hero-full-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-full-content .eyebrow {
  display: flex;
  justify-content: center;
  color: var(--color-accent-bright);
}
.hero-full-content h1 { color: var(--color-text-on-ink); }
.hero-full-content .accent-text { color: var(--color-accent-bright); }
.hero-full-content .hero-actions { justify-content: center; margin-bottom: 0; }

/* .btn-primary/.btn-secondary default to tokens meant for a light section;
   on this dark hero they'd be invisible (dark-on-dark) — same bug class
   already fixed for .section-ink and .cta-banner, same fix here. */
.hero-full-content .btn-primary {
  background: var(--color-accent);
  color: var(--color-slate-900);
}
.hero-full-content .btn-primary:hover {
  background: var(--color-accent-bright);
  color: var(--color-slate-900);
}
.hero-full-content .btn-secondary {
  color: var(--color-text-on-ink);
  border-color: rgba(240, 241, 242, 0.35);
}
.hero-full-content .btn-secondary:hover {
  border-color: var(--color-accent-bright);
  color: var(--color-accent-bright);
}

@media (max-width: 600px) {
  .hero-full { min-height: min(80dvh, 640px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Modifier: alternating left/right layout for a repeated hero-grid section
   (e.g. one per service category) — swaps which column comes first.
   Reordering with `order` changes which grid track each item lands in
   (auto-placement fills tracks in order value, not DOM order), so without
   also swapping the column-width ratio here, the text and image quietly
   swap widths too — the image ends up in the wider 1.1fr track and the
   text in the narrower 0.9fr one, the opposite of the non-reversed layout.
   Real bug, caught by comparing rendered image/text widths across sections. */
.hero-grid.is-reversed {
  grid-template-columns: 0.9fr 1.1fr;
}
.hero-grid.is-reversed > *:first-child { order: 2; }
.hero-grid.is-reversed > .hero-visual { order: 1; }

/* Alternating text/image order is a desktop-only rhythm device — in a
   single stacked column it just makes reading order inconsistent from one
   category section to the next, so always show text first here. Must come
   after the rule above (same specificity — source order decides). */
@media (max-width: 900px) {
  .hero-grid.is-reversed > *:first-child,
  .hero-grid.is-reversed > .hero-visual {
    order: initial;
  }
}

.hero-full-content h1 { margin-bottom: var(--space-6); }
.hero-full-content .hero-lead { color: var(--color-text-on-ink); max-width: 56ch; margin: 0 auto var(--space-6); opacity: .9; }

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}
/* Modifier: centered actions (e.g. a centered error/empty state) */
.hero-actions--center { justify-content: center; }
/* Modifier: used inside a repeated section rather than the page hero —
   no trailing margin, since it's the section's last element. */
.hero-actions--section { margin-top: var(--space-6); margin-bottom: 0; }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual .stitch-art { width: 100%; height: 100%; }
/* Modifier: wider/shorter crop for a repeated section visual (vs. the tall
   4:5 crop used for the page-level hero image). */
.hero-visual--wide { aspect-ratio: 4 / 3; }

/* ---- Stitch-pattern art (inline SVG placeholders, no external images) ---- */

.stitch-art {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-slate-900);
}

/* Honest label shown only over a generated placeholder (never over a real
   <img>, see _MediaSlot.cshtml) — top-left so it never collides with a
   bottom-anchored caption like .portfolio-caption. */
.media-slot-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-on-ink);
  background: rgba(22, 24, 27, 0.6);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

/* ---- Grids ---- */

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Badge (small category/status label) ---- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-accent-surface);
  color: var(--color-accent-deep);
  white-space: nowrap;
}
/* On a dark/photo scrim (e.g. the portfolio caption overlay), swap to
   tokens that read against a dark background instead of the light default. */
.badge--on-dark {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-accent-bright);
}

/* ---- Category / capability card ---- */

.card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.category-card h3 { margin-bottom: var(--space-2); }

.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-surface);
  color: var(--color-accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}
.category-icon svg { width: 24px; height: 24px; }
/* Modifier: extra bottom space when the icon sits alone above a heading in
   a centered card (vs. tight against body copy in a category-card). */
.category-icon--spaced { margin-bottom: var(--space-3); }

/* Services page: pairs the icon with its (large) heading on one row instead
   of stacking a small icon above a much bigger heading, which read as two
   unrelated elements rather than one unit. */
.category-heading-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.category-heading-row .category-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}
.category-heading-row h2,
.category-heading-row h3 {
  margin-bottom: 0;
}

.category-highlights {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.category-highlights li {
  font-size: var(--text-sm);
  color: var(--color-slate-600);
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}
.category-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}

.card-link {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-deep);
}

/* ---- Process steps ---- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}
@media (max-width: 980px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}

.process-step {
  position: relative;
  padding-top: var(--space-6);
}
.process-step-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-bright);
  display: block;
  margin-bottom: var(--space-2);
}
.process-step h4 { margin-bottom: var(--space-2); }
.process-step p { font-size: var(--text-sm); color: var(--color-slate-400); margin-bottom: 0; }

/* ---- Brand pillars (About) ----
   A divided row rather than four boxed cards — no elevation/hierarchy is
   being communicated between the four pillars (they're equal, not ranked),
   so a shared hairline divider reads as one coherent statement instead of
   four disconnected tiles. See DESIGN-SYSTEM.md "Cards" for when to use
   .card vs. this pattern. */
.pillar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pillar {
  padding: 0 var(--space-5);
  border-left: var(--border-width) solid var(--color-border);
}
.pillar:first-child {
  padding-left: 0;
  border-left: none;
}
.pillar-number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.pillar h3 { margin-bottom: var(--space-2); }

@media (max-width: 900px) {
  .pillar-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-6) 0; }
  .pillar { border-left: none; padding-left: 0; }
  .pillar:nth-child(even) { border-left: var(--border-width) solid var(--color-border); padding-left: var(--space-5); }
}
@media (max-width: 560px) {
  .pillar-row { grid-template-columns: 1fr; gap: 0; }
  .pillar {
    padding: var(--space-5) 0;
    border-left: none;
    border-top: var(--border-width) solid var(--color-border);
  }
  .pillar:first-child { padding-top: 0; border-top: none; }
}

/* ---- Industries / applications ---- */

.industry-pill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-3);
}

.industry-card {
  flex: 1 1 220px;
}
.industry-card h4 { margin-bottom: var(--space-2); }
.industry-card p { font-size: var(--text-sm); margin-bottom: 0; color: var(--color-text-muted); }

/* On a dark section, .card's default light background/border and this
   card's default muted-on-light text all need the dark-context tokens —
   same pattern as ".section-ink .text-muted" in theme.css. */
.section-ink .industry-card {
  background: rgba(240, 241, 242, 0.06);
  border-color: rgba(240, 241, 242, 0.14);
}
.section-ink .industry-card h4 { color: var(--color-text-on-ink); }
.section-ink .industry-card p { color: var(--color-slate-400); }

/* ---- Portfolio / gallery ---- */

.portfolio-filters {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
  justify-content: center;
}

.filter-chip {
  border: var(--border-width) solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-slate-800);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.filter-chip:hover { border-color: var(--color-accent); color: var(--color-accent-deep); }
.filter-chip.is-active {
  background: var(--color-slate-900);
  color: var(--color-text-on-ink);
  border-color: var(--color-slate-900);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
@media (max-width: 980px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}
.portfolio-item:hover { box-shadow: var(--shadow-md); }
.portfolio-item img,
.portfolio-item .stitch-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-item:hover img,
.portfolio-item:hover .stitch-art { transform: scale(1.05); }

/* Always visible (not hover-only) — a hover-reveal caption is invisible by
   default on touch devices, which is most of this audience on mobile. */
.portfolio-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-4);
  background: linear-gradient(180deg, transparent, rgba(22, 24, 27, 0.9));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.portfolio-caption .badge--on-dark { align-self: flex-start; }
.portfolio-caption strong { display: block; font-size: var(--text-sm); }
.portfolio-detail { font-size: var(--text-xs); color: rgba(255, 255, 255, 0.75); }

/* Fills the item and carries the click/keyboard interaction that opens the
   lightbox below — reset to invisible button chrome so it doesn't change
   how .portfolio-item looks. */
.portfolio-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: block;
}
.portfolio-trigger:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---- Lightbox ----
   Native <dialog> + showModal(): browser handles top-layer stacking,
   ::backdrop dimming and Escape-to-close, so the rest of the page is
   already visually and interactively out of the way without extra JS. */
.lightbox {
  border: 0;
  padding: 0;
  max-width: min(760px, 92vw);
  max-height: 88vh;
  background: var(--color-slate-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
}
.lightbox::backdrop {
  background: rgba(22, 24, 27, 0.88);
}
.lightbox-media {
  position: relative;
  width: min(760px, 92vw);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-slate-900);
}
.lightbox-media img,
.lightbox-media .stitch-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.lightbox-media img { object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 0;
  background: rgba(22, 24, 27, 0.55);
  color: var(--color-text-on-ink);
  cursor: pointer;
}
.lightbox-close svg { width: 18px; height: 18px; }
.lightbox-close:hover { background: rgba(22, 24, 27, 0.75); }
.lightbox-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.lightbox-caption {
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.lightbox-caption .badge--on-dark { align-self: flex-start; }
.lightbox-title { display: block; font-size: var(--text-md); color: var(--color-text-on-ink); }
.lightbox-detail { font-size: var(--text-sm); }

@media (max-width: 640px) {
  .lightbox, .lightbox-media { max-width: 100vw; width: 100vw; }
  .lightbox { max-height: 100vh; height: 100vh; border-radius: 0; }
  .lightbox-media { flex: 1 1 auto; aspect-ratio: auto; }
}

/* ---- Testimonials ---- */

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: var(--border-width) solid var(--color-border);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-5);
}
.testimonial-quote::before { content: "\201C"; color: var(--color-accent); }
.testimonial-quote::after { content: "\201D"; color: var(--color-accent); }
.testimonial-author { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.testimonial-role { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ---- FAQ accordion ---- */

.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: var(--border-width) solid var(--color-border);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  cursor: pointer;
  font-weight: var(--weight-semibold);
  list-style: none;
  font-size: var(--text-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: var(--border-width) solid var(--color-border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.15s ease;
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item p {
  padding-bottom: var(--space-5);
  color: var(--color-slate-600);
  max-width: 640px;
}

/* ---- Bulk order / CTA banner ---- */

.cta-banner {
  background: var(--color-slate-900);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  color: var(--color-text-on-ink);
}
.cta-banner h2 { color: var(--color-text-on-ink); margin-bottom: var(--space-2); }
.cta-banner p { color: var(--color-slate-400); margin-bottom: 0; max-width: 34rem; }
.cta-banner-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* .btn-primary is ink-on-nothing by design (it's meant to read against a
   light section) — on this banner's own ink-900 background it would be
   invisible as a button (identical bg color, text floating with no shape).
   Swap to the accent-gold surface here instead. Excludes --muted, whose
   light background doesn't have this problem. */
.cta-banner:not(.cta-banner--muted) .btn-primary {
  background: var(--color-accent);
  color: var(--color-slate-900);
}
.cta-banner:not(.cta-banner--muted) .btn-primary:hover {
  background: var(--color-accent-bright);
  color: var(--color-slate-900);
}

/* Same issue as .btn-primary above: .btn-secondary's default ink-900 text
   on a transparent background is invisible against this banner's own
   ink-900 background. Same treatment as .section-ink .btn-secondary. */
.cta-banner:not(.cta-banner--muted) .btn-secondary {
  color: var(--color-text-on-ink);
  border-color: rgba(240, 241, 242, 0.35);
}
.cta-banner:not(.cta-banner--muted) .btn-secondary:hover {
  border-color: var(--color-accent-bright);
  color: var(--color-accent-bright);
}

/* Modifier: lighter variant for a banner that sits on a section that's
   already .section-surface (avoids two dark blocks back to back). */
.cta-banner--muted {
  background: var(--color-surface-sunken);
  color: var(--color-text);
}
.cta-banner--muted h2 { color: var(--color-text); }
.cta-banner--muted p { color: var(--color-text-muted); }

/* ---- Quantity scale strip ----
   Individually tinted tiles rather than one flush bar — each quantity gets
   its own accent-tinted card so the numbers read as distinct, confident
   facts instead of one muted row of text (five numbers on a single flat
   background under-sell the "we handle every scale" point they're making). */

.scale-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
@media (max-width: 720px) {
  .scale-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Modifier: four tiles instead of five (e.g. Home's network summary) —
   same tile styling, just matching the actual item count so the row divides
   evenly instead of leaving an odd fifth track. */
.scale-strip--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  .scale-strip--4 { grid-template-columns: repeat(2, 1fr); }
}

.scale-strip-item {
  text-align: center;
  padding: var(--space-5) var(--space-3);
  background: var(--color-accent-surface);
  border-radius: var(--radius-md);
}
.scale-strip-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-deep);
}
.scale-strip-item span { font-size: var(--text-xs); color: var(--color-slate-600); }

/* Modifier: a short strip (e.g. two network-level figures) rather than the
   full five-up quantity strip — centers a handful of tiles at a fixed width
   instead of stretching them across all five grid tracks. */
.network-strip {
  grid-template-columns: repeat(auto-fit, minmax(0, 220px));
  justify-content: center;
  margin-top: var(--space-5);
}

/* ---- Per-category network capacity (Home) ----
   Each card reads top-to-bottom as "people/machines in the network" then
   "the monthly output that capacity produces" — the arrow between the two
   rows is the only thing that needs to communicate that relationship, so
   the card stays plain otherwise (no icons, no extra chrome). */
.network-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) {
  .network-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .network-stat-grid { grid-template-columns: 1fr; }
}

.network-stat-card {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.network-stat-card h3 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.network-stat-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-deep);
}
.network-stat-row span {
  font-size: var(--text-xs);
  color: var(--color-slate-600);
}
.network-stat-row--output strong { color: var(--color-text); }
.network-stat-arrow {
  display: block;
  margin: var(--space-2) 0;
  color: var(--color-slate-400);
  font-size: var(--text-sm);
  line-height: 1;
}

/* ---- Page hero (secondary pages) ---- */

.page-hero {
  padding: var(--space-8) 0 var(--space-7);
  background: var(--color-surface-sunken);
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; display: flex; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--color-slate-600); }

/* Same fade-up entrance as the Home hero (see theme.css "Motion"), applied
   structurally here instead of per-page so every page-hero gets it without
   touching each page's markup — `.container > *` matches the eyebrow, h1
   and p in source order, which is exactly the read order we want staggered. */
.page-hero .container > * { animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.page-hero .container > *:nth-child(2) { animation-delay: 80ms; }
.page-hero .container > *:nth-child(3) { animation-delay: 160ms; }

/* ---- Simple breadcrumb-free back link ---- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-5);
}

/* ---- Home hero: service pills ---- */
.hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.hero-pill {
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: var(--color-text-on-ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.hero-pill:hover { background: rgba(255, 255, 255, 0.12); }

/* ---- Equal-weight service cards ---- */
.category-card-media { margin: calc(var(--space-6) * -1) calc(var(--space-6) * -1) var(--space-5); aspect-ratio: 16 / 7; overflow: hidden; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; position: relative; }
.category-card-media > * { width: 100%; height: 100%; }
.card-title-link { color: inherit; }
.chip-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.chip { display: inline-block; padding: var(--space-1) var(--space-3); border: 1px solid var(--color-border); border-radius: 999px; font-size: var(--text-sm); color: var(--color-slate-800); }
.chip:hover { border-color: var(--color-accent-deep); color: var(--color-accent-deep); }

.breadcrumb { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.breadcrumb a { color: inherit; text-decoration: underline; }


/* ---- Buyer-type tiles & service tags ---- */
.industry-card .chip-list { margin: var(--space-3) 0 0; }
.industry-card .chip { font-size: var(--text-xs, 0.8rem); color: inherit; border-color: currentColor; opacity: .85; }

/* ---- "Which service?" chooser ---- */
.chooser-row { display: flex; flex-direction: column; gap: var(--space-2); }
.chooser-row .need { font-weight: var(--weight-semibold, 600); }

/* ---- Guide page ---- */
.guide-list { max-width: 760px; margin: 0 auto; display: grid; gap: var(--space-5); }
.guide-list h3 { margin-bottom: var(--space-2); }

@media (min-width: 901px) {
  .pillar-row--3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-7) 0; }
  .pillar-row--3 .pillar:nth-child(3n+1) { border-left: none; padding-left: 0; }
}
.industry-pill-list { align-items: stretch; }

/* ---- Client logo strip ---- */
.client-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
.client-logo { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: var(--space-3); border: 1px dashed var(--color-border); border-radius: var(--radius-md, 8px); background: var(--color-surface); }
.client-logo img { max-width: 100%; max-height: 52px; object-fit: contain; filter: grayscale(1); opacity: .8; }
.client-logo-placeholder { font-size: var(--text-xs, 0.8rem); color: var(--color-text-muted); text-align: center; }
@media (max-width: 900px) { .client-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .client-logos { grid-template-columns: repeat(2, 1fr); } }

/* Inline links inside CTA banner copy inherit the banner's text colour. */
.cta-banner p a { color: inherit; text-decoration: underline; }
