:root {
  /* ==========================================================
     COLOR
     See static/css/token_dictionary.md for the full reference.
     ========================================================== */

  /* --- Brand red ---
     Softer and less aggressive than the original vivid red —
     preserves Intercast's energy without excessive vibration
     against white. */
  --color-bg-brand: #D9363E;
  --color-bg-brand-hover: #C32931;
  --color-bg-brand-soft: #C83F45;   /* large fills (banners) */
  --color-bg-brand-subtle: #F8EEEE; /* light red-tinted cards */
  --color-border-brand: #D9363E;
  --color-border-brand-hover: #C32931;
  --color-text-brand: #D9363E;

  /* --- Surfaces --- */
  --color-bg-surface: #FFFFFF;
  --color-bg-surface-alt: #F5F5F4;  /* warmer than pure gray */
  --color-bg-surface-warm: #F8F6F2; /* editorial/premium sections */
  --color-bg-surface-dark: #222222;

  /* --- Text --- */
  --color-text-primary: #24272A;
  --color-text-secondary: #666C70;
  --color-text-inverse: #FFFFFF;

  /* --- Borders --- */
  --color-border: #DDDEDE;
  --color-border-dark: #3B3B3B;

  /* --- Status — reserved, not used yet. Deliberately distinct
     from brand red so "error" and "brand button" never get
     confused side by side. --- */
  --color-bg-success-subtle: #E6F4EA;
  --color-bg-warning-subtle: #FCF0DD;
  --color-bg-danger-subtle: #FBE9E7;
  --color-bg-info-subtle: #E7F1FA;
  --color-text-success: #1E8E3E;
  --color-text-warning: #8A5300;
  --color-text-danger: #D32F2F;
  --color-text-info: #0B5FA5;
  --color-border-success: #1E8E3E;
  --color-border-warning: #B25E00;
  --color-border-danger: #D32F2F;
  --color-border-info: #0B5FA5;

  /* --- Neutrals (not tied to one UI element) --- */
  --color-ink: #171717;
  --color-steel: #5E6468;

  /* --- Industrial accent ---
     Secondary color, used sparingly and always with semantic
     meaning (e.g. "in-house" tags, process/technical callouts) —
     never as a second CTA color. Keeps pages from reading as
     "everything is either red or gray." */
  --color-bg-accent: #2F4C5E;
  --color-bg-accent-subtle: #EAF0F2;
  --color-text-accent: #2F4C5E;
  --color-border-accent: #2F4C5E;


  /* ==========================================================
     FONT
     ========================================================== */

  --font-family-body: 'Inter', sans-serif;
  --font-family-heading: 'Archivo', sans-serif;
  --font-family-cta: 'Archivo', sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3rem;
  --font-size-4xl: 4.75rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;


  /* ==========================================================
     SPACE
     Most spacing in the templates comes from Bootstrap utility
     classes (gap-4, py-5...) — these primitives back the custom
     rules in this file, not a wholesale replacement.
     ========================================================== */

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;


  /* ==========================================================
     RADIUS
     rounded-* classes in templates are Bootstrap's own utility,
     unrelated to this scale.
     ========================================================== */

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-full: 9999px;


  /* ==========================================================
     SHADOW — reserved, not used yet
     ========================================================== */

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .10);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .14);


  /* ==========================================================
     MOTION
     ========================================================== */

  --motion-duration-fast: 150ms;
  --motion-duration-base: 200ms;
  --motion-easing-standard: ease;
}


/* ==========================================================
   BASE
   ========================================================== */

body {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-md);
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-surface);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  color: var(--color-ink);
  margin-top: 0;
}

/* H1 — Hero / primary page statement */
h1 {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* H2 — Major section headings */
h2 {
  font-size: clamp(var(--font-size-2xl), 3vw, var(--font-size-3xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

/* H3 — Cards / subsection headings */
h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* H4 */
h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* H5 / H6 */
h5,
h6 {
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
  letter-spacing: -0.005em;
}


/* ==========================================================
   BODY COPY
   ========================================================== */

p {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-regular);
  line-height: 1.7;
}

/* Recommended class for introductory / lead paragraphs. */
.lead {
  font-family: var(--font-family-body);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  line-height: 1.65;
  letter-spacing: -0.005em;
}


/* ==========================================================
   LINKS
   ========================================================== */

a {
  text-underline-offset: 0.18em;
}


/* ==========================================================
   SMALL / META TEXT
   Certifications, dates, technical metadata, captions, etc.
   ========================================================== */

small,
.small {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}


/* ==========================================================
   OPTIONAL DISPLAY TEXT
   Use sparingly for major marketing statements where a larger
   typographic treatment is desired without using H1.
   ========================================================== */

.display-heading {
  font-family: var(--font-family-heading);
  font-size: clamp(var(--font-size-2xl), 4vw, var(--font-size-3xl));
  font-weight: var(--font-weight-bold);
  line-height: 1.06;
  letter-spacing: -0.035em;
}


/* ==========================================================
   PRIMARY BUTTON
   ========================================================== */

/*
 * Primary CTA remains RED.
 *
 * This is intentional.
 * Intercast's red is an important part of the visual identity
 * and provides energy against the neutral page backgrounds.
 *
 * The softer red reduces the aggressive white/red contrast
 * of the previous palette.
 */

.btn-brand {
  font-family: var(--font-family-cta);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;

  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);

  background-color: var(--color-bg-brand);
  border: 1px solid var(--color-border-brand);
  color: var(--color-text-inverse);

  transition:
    background-color var(--motion-duration-base) var(--motion-easing-standard),
    border-color var(--motion-duration-base) var(--motion-easing-standard),
    transform var(--motion-duration-base) var(--motion-easing-standard);
}


.btn-brand:hover,
.btn-brand:focus {
  background-color: var(--color-bg-brand-hover);
  border-color: var(--color-border-brand-hover);
  color: var(--color-text-inverse);
}


/* ==========================================================
   OUTLINE BUTTON
   ========================================================== */

.btn-brand-outline {
  font-family: var(--font-family-cta);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;

  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-xl);

  background-color: transparent;
  border: 1px solid var(--color-border-brand);
  color: var(--color-text-brand);

  transition:
    background-color var(--motion-duration-base) var(--motion-easing-standard),
    border-color var(--motion-duration-base) var(--motion-easing-standard),
    color var(--motion-duration-base) var(--motion-easing-standard);
}


.btn-brand-outline:hover,
.btn-brand-outline:focus {
  background-color: var(--color-bg-brand);
  border-color: var(--color-border-brand);
  color: var(--color-text-inverse);
}


/* ==========================================================
   BRAND BACKGROUNDS
   ========================================================== */

/*
 * Strong red surface.
 * Use sparingly.
 */

.bg-brand {
  background-color: var(--color-bg-brand);
  color: var(--color-text-inverse);
}


/*
 * Softer red surface.
 *
 * Preferred when a larger area needs to carry Intercast red.
 */

.bg-brand-soft {
  background-color: var(--color-bg-brand-soft);
  color: var(--color-text-inverse);
}


/*
 * Neutral alternate section.
 */

.bg-brand-alt {
  background-color: var(--color-bg-surface-alt);
}


/*
 * Very subtle red-tinted section.
 */

.bg-brand-light {
  background-color: var(--color-bg-brand-subtle);
  color: var(--color-text-primary);
}


/*
 * Dark section.
 *
 * Reserved mainly for footer or sections that genuinely
 * benefit from strong visual separation.
 */

.bg-brand-dark {
  background-color: var(--color-bg-surface-dark);
  color: var(--color-text-inverse);
}


/* ==========================================================
   HEADINGS ON COLORED BACKGROUNDS
   ========================================================== */

.bg-brand h1,
.bg-brand h2,
.bg-brand h3,
.bg-brand h4,
.bg-brand h5,
.bg-brand h6,
.bg-brand-soft h1,
.bg-brand-soft h2,
.bg-brand-soft h3,
.bg-brand-soft h4,
.bg-brand-soft h5,
.bg-brand-soft h6,
.bg-brand-dark h1,
.bg-brand-dark h2,
.bg-brand-dark h3,
.bg-brand-dark h4,
.bg-brand-dark h5,
.bg-brand-dark h6 {
  color: var(--color-text-inverse);
}


/* ==========================================================
   BRAND TEXT
   ========================================================== */

.text-brand {
  color: var(--color-text-brand);
}


/* ==========================================================
   EYEBROW
   ========================================================== */

.eyebrow {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}


/*
 * On red/dark backgrounds use softened white.
 */

.bg-brand-dark .eyebrow,
.bg-brand-soft .eyebrow,
.bg-brand .eyebrow {
  color: rgba(255, 255, 255, .78);
}


/* ==========================================================
   NAVIGATION
   ========================================================== */

.nav-link-upper {
  font-family: var(--font-family-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.01em;
  /* Do NOT force uppercase — "Capabilities" instead of "CAPABILITIES" */
  text-transform: none;

  transition:
    color var(--motion-duration-fast) var(--motion-easing-standard),
    opacity var(--motion-duration-fast) var(--motion-easing-standard);
}


.nav-link-upper:hover,
.nav-link-upper:focus {
  color: var(--color-text-brand);
}

.nav-link-upper.active {
  color: var(--color-text-brand);
  position: relative;
}

.nav-link-upper.active::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0;
  height: 2px;
  background-color: var(--color-bg-brand);
  border-radius: var(--radius-full);
}

/* Navbar email — the industrial accent color keeps it visually
   distinct from the brand-red "Request A Quote" CTA, so the two
   don't compete for attention. Shown on both mobile (next to the
   logo, ahead of the collapsed menu toggle) and desktop (next to
   the CTA button) via two separate elements switched by breakpoint.
   Email on the first line, phone on the second — each independently
   tappable (mailto: / tel:). */
.navbar-contact {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.navbar-contact a {
  font-family: var(--font-family-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-accent);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--motion-duration-fast) var(--motion-easing-standard);
}

.navbar-contact a:hover,
.navbar-contact a:focus-visible {
  color: var(--color-bg-accent);
  text-decoration: underline;
}


/* ==========================================================
   SECTIONS
   ========================================================== */

section {
  padding: var(--space-3xl) 0;
}

/* Lighter-weight sections (a single intro paragraph, a thin divider
   section) don't need the same vertical weight as a content-heavy
   section — using the full padding everywhere is part of what reads
   as "saturated." Apply to the <section> element itself. */
.section-tight {
  padding: var(--space-2xl) 0;
}


/* ==========================================================
   HOME HERO
   ========================================================== */

/*
 * Background image (dynamic, from content/home.yaml)
 * is set inline on the section element.
 */

.hero-text-col {
  /* replaces the old py-5 utility class — needed as plain CSS
     (not !important) so the mobile override below can win */
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);

  padding-left:
    max(
      var(--space-lg),
      calc((100vw - 1320px) / 2 + 0.75rem)
    );

  padding-right: var(--space-2xl);
}

/*
 * Smaller than the global h1 (clamp 3rem-4.75rem) — the hero headline
 * runs longer than a typical page h1, so it needs more headroom before
 * wrapping to 3+ lines in the narrower hero-text-col. Not touched at
 * the --font-size-* token level since other pages' h1 may not need this.
 */
.hero-text-col h1 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
}


/*
 * Free the text column from the 50%-wide col-lg-6 constraint
 * as soon as the watermark starts (1568px) instead of waiting
 * for Bootstrap's 992px breakpoint.
 *
 * No reason to keep squeezing the paragraph once the image
 * is already fading behind it.
 *
 * Capped with max-width so lines stay readable.
 */

@media (max-width: 1568px) and (min-width: 992px) {

  .hero-text-col {
    width: 100%;
    max-width: 640px;
    flex: 0 0 auto;
  }

}


/* ==========================================================
   HERO TURBINE
   ========================================================== */

.hero-turbine-section {
  background-repeat: no-repeat;
  background-position: right 4rem center;
  background-size: 760px auto;
  min-height: 600px;
}


/* ==========================================================
   HERO TURBINE OVERLAY
   ========================================================== */

.hero-turbine-overlay {
  position: absolute;
  inset: 0;

  opacity: 0;

  background:
    linear-gradient(
      180deg,
      var(--color-bg-surface-alt) 53%,
      rgba(245, 245, 244, 0) 100%
    );

  pointer-events: none;

  transition: opacity var(--motion-duration-base) var(--motion-easing-standard);
}


/*
 * Below ~1568px the 760px-wide image starts overlapping
 * the text column geometrically.
 *
 * Ramp the watermark overlay up from there so it's never
 * visible-and-uncovered at the same time.
 */

@media (max-width: 1568px) {

  .hero-turbine-overlay {
    opacity: .25;
  }

}


@media (max-width: 1400px) {

  .hero-turbine-overlay {
    opacity: .5;
  }

}


@media (max-width: 1200px) {

  .hero-turbine-overlay {
    opacity: .75;
  }

}


/* ==========================================================
   HERO — TABLET / MOBILE
   ========================================================== */

@media (max-width: 991.98px) {

  .hero-text-col {
    padding-top: var(--space-2xl);
    padding-right: var(--space-lg);
  }


  .hero-turbine-section {
    /* Slight zoom past 100%-width "contain" (110%) to gain height
       for the heading — trades a small, even crop off both left
       and right edges (~5% each side) for a taller visible image
       so the 3-line heading sits within it, not spilling past its
       bottom edge onto flat background. */
    background-size: 110% auto;
    background-position: center top;
    min-height: 560px;
  }

  /*
   * The eyebrow sits directly over the photo here — give it its
   * own dark pill background instead of leaning on the overlay
   * gradient for contrast, so it reads cleanly regardless of
   * what part of the image (or how much fade) is behind it.
   */
  .hero-turbine-section .eyebrow {
    display: inline-block;
    background-color: rgba(0, 0, 0, .45);
    color: var(--color-text-inverse);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
  }


  /*
   * Inverted from desktop:
   *
   * One continuous fade, not a "fully clear, then cut to solid"
   * two-stage overlay — starts with a light 25% tint (so the
   * eyebrow has *some* contrast the moment it appears, instead of
   * sitting on 0%-covered raw photo) and increases gradually to
   * fully solid by ~280px, matching the 110%-zoomed image's taller
   * rendered height above. Text is NOT pushed down to dodge the
   * image — the image stays large and the gradient runs THROUGH
   * the heading, not before it.
   */

  .hero-turbine-overlay {
    opacity: 1;

    background:
      linear-gradient(
        180deg,
        rgba(245, 245, 244, .25) 0px,
        var(--color-bg-surface-alt) 280px,
        var(--color-bg-surface-alt) 100%
      );
  }

}


/* ==========================================================
   MOBILE TYPOGRAPHY
   ========================================================== */

@media (max-width: 767.98px) {

  h1 {
    font-size: clamp(2.35rem, 10vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  h2 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
  }

  h3 {
    font-size: 1.3rem;
  }

  body {
    line-height: 1.6;
  }

  p {
    line-height: 1.65;
  }

}


/* ==========================================================
   CHIP LIST
   Compact, wrapping tag list. Originally built for Home
   Industries (replaced a two-column "paragraph + table" layout
   that read as too tall/heavy) — generalized here so any page can
   reuse it for a short list of names: static labels (.chip) or
   real links (.chip-link, adds hover/focus + chevron).
   Reuses tokens: --color-border and --font-weight-medium were
   defined but unused before this; --color-steel and
   --color-bg-brand-subtle already existed for other components.
   ========================================================== */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  background-color: var(--color-bg-surface);
}

/* .chip-link: interactive variant for actual navigation (an <a>).
   Plain .chip (span/div) is used for static, non-clickable labels
   like credential names — same look, no hover/focus/cursor. */
.chip-link {
  text-decoration: none;
  transition:
    background-color var(--motion-duration-fast) var(--motion-easing-standard),
    border-color var(--motion-duration-fast) var(--motion-easing-standard),
    color var(--motion-duration-fast) var(--motion-easing-standard);
}

.chip-icon {
  font-size: 0.7em;
  color: var(--color-steel);
  transition:
    transform var(--motion-duration-fast) var(--motion-easing-standard),
    color var(--motion-duration-fast) var(--motion-easing-standard);
}

/* Hover AND focus-visible get the same treatment — background tint
   plus border/text color shift, not color alone, so keyboard users
   get the same signal as mouse users (and it isn't color-only
   either way). */
.chip-link:hover,
.chip-link:focus-visible {
  background-color: var(--color-bg-brand-subtle);
  border-color: var(--color-border-brand);
  color: var(--color-text-brand);
}

.chip-link:hover .chip-icon,
.chip-link:focus-visible .chip-icon {
  color: var(--color-text-brand);
  transform: translateX(3px);
}

/* .chip-accent: semantic variant for "In-House" availability tags —
   distinguishes them from "Externally Coordinated" (plain .chip) at
   a glance, using the industrial accent color rather than brand red
   (red stays reserved for CTAs). */
.chip-accent {
  border-color: var(--color-border-accent);
  background-color: var(--color-bg-accent-subtle);
  color: var(--color-text-accent);
}

.chip-link:focus-visible {
  outline: 2px solid var(--color-border-brand);
  outline-offset: 2px;
}

/* ==========================================================
   DETAIL PILLS (Bootstrap nav-pills, industry/capability detail pages)
   Same visual language as .chip: subtle brand tint on
   hover/focus, solid brand fill for the active pill. Real <a> links
   to sibling detail pages — not JS tab-switching — so each pill is
   its own indexable URL.
   ========================================================== */

.detail-pills .nav-link {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  transition:
    background-color var(--motion-duration-fast) var(--motion-easing-standard),
    border-color var(--motion-duration-fast) var(--motion-easing-standard),
    color var(--motion-duration-fast) var(--motion-easing-standard);
}

.detail-pills .nav-link:hover,
.detail-pills .nav-link:focus-visible {
  background-color: var(--color-bg-brand-subtle);
  border-color: var(--color-border-brand);
  color: var(--color-text-brand);
}

.detail-pills .nav-link.active {
  background-color: var(--color-bg-brand);
  border-color: var(--color-bg-brand);
  color: #fff;
}

/* ==========================================================
   LINK CARD
   Clickable index cards for Industries / Capabilities landing
   grids — each card leads to its own detail page.
   ========================================================== */

.link-card {
  display: block;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--motion-duration-base) var(--motion-easing-standard),
    box-shadow var(--motion-duration-base) var(--motion-easing-standard),
    transform var(--motion-duration-base) var(--motion-easing-standard);
}

.link-card-image {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.link-card-body {
  padding: var(--space-lg);
}

.link-card:hover,
.link-card:focus-visible {
  border-color: var(--color-border-brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.link-card-arrow {
  color: var(--color-steel);
  transition:
    transform var(--motion-duration-fast) var(--motion-easing-standard),
    color var(--motion-duration-fast) var(--motion-easing-standard);
}

.link-card:hover .link-card-arrow,
.link-card:focus-visible .link-card-arrow {
  color: var(--color-text-brand);
  transform: translateX(3px);
}


/* ==========================================================
   DETAIL HERO IMAGE
   Contained photo/placeholder banner used at the top of industry
   and capability detail pages — deliberately NOT full-bleed, so it
   reads as one more element in the page's rhythm rather than a loud
   full-width statement on every single sub-page.
   ========================================================== */

.detail-hero-image {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 420px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}


/* ==========================================================
   TWO-UP MEDIA ROW
   Photo + text side-by-side sections (About, Why Intercast).
   ========================================================== */

.media-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.media-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ==========================================================
   CERT FRAME
   A quiet "mat + frame" treatment for certificate/document
   thumbnails (Quality page) — the soft alt surface behind the
   image reads as a mat border against the white card, so the
   document doesn't just float edge-to-edge. First real use of
   the reserved --shadow-* tokens.
   ========================================================== */

.cert-frame {
  padding: var(--space-md);
  background-color: var(--color-bg-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow var(--motion-duration-base) var(--motion-easing-standard);
}

.cert-frame:hover,
.cert-frame:focus-visible {
  box-shadow: var(--shadow-md);
}

.cert-frame img {
  display: block;
  border-radius: var(--radius-sm);
}

/* Subtle carousel controls — small, low-opacity by default, only
   stands out on hover/focus so it doesn't compete with the photo. */
.carousel-control-prev,
.carousel-control-next {
  top: 50%;
  bottom: auto;
  width: 2.25rem;
  height: 2.25rem;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, .6);
  border-radius: var(--radius-full);
  opacity: .45;
  transition: opacity var(--motion-duration-base) var(--motion-easing-standard),
    background-color var(--motion-duration-base) var(--motion-easing-standard);
}

.carousel-control-prev {
  left: var(--space-md);
}

.carousel-control-next {
  right: var(--space-md);
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
  background-color: rgba(255, 255, 255, .9);
  opacity: 1;
}

/* Home "Capabilities" grid cards — same interaction language as
   .chip-link (background tint + brand border), just applied to a
   square icon tile instead of a pill. No icon animation here — unlike
   chip-icon, this icon is already brand-red at rest (identity, not a
   hover cue), so there's nothing for it to transition into. */
.capability-card {
  display: block;
}

.capability-card > div {
  border: 1px solid transparent;
  transition:
    background-color var(--motion-duration-base) var(--motion-easing-standard),
    border-color var(--motion-duration-base) var(--motion-easing-standard);
}

.capability-card:hover > div,
.capability-card:focus-visible > div {
  background-color: var(--color-bg-brand-subtle);
  border-color: var(--color-border-brand);
}

.carousel-control-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--color-bg-accent);
}
