/* ==========================================================================
   SBR Pack Tools — design system
   Palette: graphite / steel grays, brand red #FC0710 accent.
   Brand red is kept for large accents and solid buttons; a darker red is
   used for small text and button fills so every pair meets WCAG 2.1 AA.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  /* Brand */
  --red: #fc0710;            /* brand accent: large text, rules, icons on dark */
  --red-btn: #d8080d;        /* solid button fill, white text (5.3:1) */
  --red-btn-hover: #b0060b;
  --red-text: #c7050b;       /* red text on white (6.0:1) */
  --red-tint: #fdecec;

  /* Neutrals */
  --ink: #151514;            /* brand black */
  --graphite: #1e2124;
  --steel-900: #2a2e33;
  --steel-800: #3a4046;
  --steel-700: #4a5057;
  --steel-600: #5b6269;
  --steel-500: #6b7280;      /* secondary text on white (4.8:1) */
  --steel-400: #9aa1a9;
  --steel-300: #d1d5db;
  --steel-200: #e5e7eb;
  --steel-100: #f3f4f6;
  --steel-50: #f9fafb;
  --white: #ffffff;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  --fs-2xl: clamp(1.625rem, 1.2rem + 1.9vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.35rem + 2.9vw, 3.125rem);
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-body: 1.65;

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-9: 4rem;
  --sp-10: 5rem;

  --container: 1200px;
  --radius: 3px;
  --header-h: 60px;

  --shadow-sm: 0 1px 2px rgba(21, 21, 20, 0.06), 0 1px 3px rgba(21, 21, 20, 0.08);
  --shadow-md: 0 4px 12px rgba(21, 21, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(21, 21, 20, 0.12);
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video { max-width: 100%; display: block; }

img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-4);
  line-height: var(--lh-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  /* Balance headline lines where the browser supports it. */
  text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); letter-spacing: -0.028em; }
h2 { font-size: var(--fs-2xl); letter-spacing: -0.022em; }
h3 { font-size: var(--fs-xl); letter-spacing: -0.012em; }
h4 { font-size: var(--fs-lg); }

/* Long lede paragraphs avoid orphans and ragged last lines. */
.section-head p,
.hero__lede,
.page-head p { text-wrap: pretty; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--red-text); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-btn-hover); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--sp-3); color: var(--white); }

/* --- Layout helpers ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--sp-6); } }

.section { padding-block: var(--sp-8); }
@media (min-width: 768px) { .section { padding-block: var(--sp-10); } }

.section--tight { padding-block: var(--sp-7); }
.section--dark { background: var(--ink); color: var(--steel-200); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }
.section--alt { background: var(--steel-50); }
.section--line { border-top: 1px solid var(--steel-200); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Section headers */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
}
.section--dark .eyebrow { color: #ff5a5f; }
/* On dark surfaces the base red is too dark for AA; lift it. */
.page-head .eyebrow,
.hero .eyebrow { color: #ff5a5f; }
.page-head .eyebrow::before { background: currentColor; }

.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--steel-600); font-size: var(--fs-lg); }
.section--dark .section-head p { color: var(--steel-300); }

/* Simple brand-red divider bar. */
.rule {
  width: 48px;
  height: 3px;
  background: var(--red);
  border: 0;
  margin: 0 0 var(--sp-4);
}
.section--dark .rule { background: #ff5a5f; }
.section-head--center .rule { margin-inline: auto; }

/* Compact interior-page banner: breadcrumb, headline, one-line lede. */
.page-head {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--sp-7);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .page-head { padding-block: var(--sp-8); } }
.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0 12%, rgba(255, 255, 255, 0.14) 12% 100%);
}
.page-head h1 {
  color: var(--white);
  max-width: 26ch;
  margin-bottom: var(--sp-4);
}
.page-head p {
  color: var(--steel-300);
  max-width: 62ch;
  margin: 0;
  font-size: var(--fs-lg);
}
.page-head .breadcrumb + h1 { margin-top: var(--sp-2); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  line-height: 1.2;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--red-btn); color: var(--white); }
.btn--primary:hover { background: var(--red-btn-hover); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--steel-300); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--steel-50); }
.btn--on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.45); }
.btn--on-dark:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--lg { padding: 1rem 1.75rem; font-size: var(--fs-lg); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--red-text);
  text-decoration: none;
}
.link-arrow::after {
  content: "\2192";
  transition: transform 0.15s ease;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Header ------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--steel-200);
}
.header.is-scrolled { box-shadow: var(--shadow-md); }

.header__bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; flex: 0 0 auto; }
.brand img { height: 38px; width: auto; }
@media (min-width: 1024px) { .brand img { height: 46px; } }
/* "Cutting & Sealing Tools" mark beside the logo, separated by a hairline. */
.brand__mark {
  display: none;
  padding-left: 0.75rem;
  border-left: 1px solid var(--steel-300);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-600);
  line-height: 1.25;
  max-width: 9.5rem;
}
@media (min-width: 640px) { .brand__mark { display: block; } }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.header__email {
  display: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--steel-600);
  text-decoration: none;
}
.header__email:hover { color: var(--ink); }
@media (min-width: 1200px) { .header__email { display: inline; } }

/* Nav */
.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: block; }
  .nav__list { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
  .nav__list > li { margin: 0; position: relative; }
  .nav__link,
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--steel-800);
    text-decoration: none;
    padding: 0.55rem 0.7rem;
    background: none;
    border: 0;
    cursor: pointer;
    border-radius: var(--radius);
  }
  .nav__link:hover,
  .nav__toggle:hover { color: var(--ink); background: var(--steel-100); }
  .nav__link[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
  .nav__toggle svg { transition: transform 0.15s ease; }
  .nav__item--open > .nav__toggle svg,
  .nav__item:hover > .nav__toggle svg { transform: rotate(180deg); }
}

.nav__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) {
  .nav__submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 290px;
    background: var(--white);
    border: 1px solid var(--steel-200);
    border-top: 3px solid var(--red);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    border-radius: 0 0 var(--radius) var(--radius);
    display: none;
    z-index: 20;
  }
  .nav__item--open > .nav__submenu,
  .nav__item:hover > .nav__submenu,
  .nav__item:focus-within > .nav__submenu { display: block; }
  .nav__submenu a {
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--steel-800);
    text-decoration: none;
    border-radius: var(--radius);
  }
  .nav__submenu a:hover { background: var(--steel-100); color: var(--ink); }
  .nav__submenu a[aria-current='page'] { color: var(--red-text); font-weight: 600; }
}

/* Hamburger */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  cursor: pointer;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded='true'] .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded='true'] .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded='true'] .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile panel */
.mobile-panel {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--white);
  border-top: 1px solid var(--steel-200);
  overflow-y: auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-8);
  display: none;
}
.mobile-panel.is-open { display: block; }
@media (min-width: 1024px) { .mobile-panel { display: none !important; } }

.mobile-nav { list-style: none; margin: 0 0 var(--sp-5); padding: 0; }
.mobile-nav > li { margin: 0; border-bottom: 1px solid var(--steel-200); }
.mobile-nav a,
.mobile-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--sp-3);
  padding: 0.9rem 0.25rem;
  font: inherit;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.mobile-nav a[aria-current='page'] { color: var(--red-text); }
.mobile-nav button svg { transition: transform 0.2s ease; flex: 0 0 auto; }
.mobile-nav button[aria-expanded='true'] svg { transform: rotate(180deg); }
.mobile-submenu { list-style: none; margin: 0; padding: 0 0 0.5rem 0.75rem; display: none; }
.mobile-submenu.is-open { display: block; }
.mobile-submenu a { font-size: var(--fs-base); font-weight: 500; padding: 0.6rem 0.25rem; border-bottom: 0; color: var(--steel-700); }
.mobile-submenu a[aria-current='page'] { color: var(--red-text); }

.mobile-contact { font-size: var(--fs-base); color: var(--steel-600); }
.mobile-contact a { color: var(--red-text); font-weight: 600; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero__grid { display: grid; gap: var(--sp-7); align-items: center; padding-block: var(--sp-8); }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-7); padding-block: var(--sp-10); }
}
.hero h1 { color: var(--white); max-width: 20ch; }
.hero__lede {
  font-size: var(--fs-lg);
  color: var(--steel-300);
  max-width: 52ch;
  margin-bottom: var(--sp-5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--graphite);
  /* Fixed frame: every slide is the same 5:4 crop, so nothing shifts. */
  aspect-ratio: 4 / 3;
}
@media (min-width: 900px) { .hero__media { aspect-ratio: 5 / 4; } }

/* Hero carousel: slides stacked and cross-faded, no layout shift. */
.hero-carousel__track { position: absolute; inset: 0; }
.hero-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-carousel__slide.is-active { opacity: 1; }
.hero-carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
/* Reduced motion: keep the slideshow, but swap slides without a fade. */
.hero-carousel--no-fade .hero-carousel__slide { transition: none; }

.hero-carousel__ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 1.75rem 0.75rem 0.6rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hero-carousel__ui > * { pointer-events: auto; }

.hero-carousel__dots { display: flex; align-items: center; gap: 0.25rem; }
.hero-carousel__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-carousel__dot::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hero-carousel__dot:hover::before { background: rgba(255, 255, 255, 0.8); }
.hero-carousel__dot.is-active::before { background: var(--red); transform: scale(1.28); }

.hero-carousel__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.hero-carousel__toggle:hover { background: rgba(0, 0, 0, 0.65); }
.hero-carousel__icon--play { display: none; }
.hero-carousel__toggle.is-paused .hero-carousel__icon--pause { display: none; }
.hero-carousel__toggle.is-paused .hero-carousel__icon--play { display: block; }

/* With reduced motion nothing auto-plays, so the pause control is not needed. */
@media (prefers-reduced-motion: reduce) {
  .hero-carousel__toggle { display: none; }
  .hero-carousel__ui { justify-content: center; }
}

/* --- Capability bar ----------------------------------------------------- */
.capbar {
  background: var(--graphite);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--steel-200);
}
.capbar__grid {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-6);
}
@media (min-width: 640px) { .capbar__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .capbar__grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); } }
.capbar__item { display: flex; gap: var(--sp-3); align-items: flex-start; }
.capbar__icon { flex: 0 0 auto; color: var(--red); margin-top: 2px; }
.capbar__label { font-weight: 600; color: var(--white); font-size: var(--fs-base); line-height: 1.35; margin: 0; }
.capbar__sub { font-size: var(--fs-sm); color: var(--steel-400); margin: 0.15rem 0 0; }

/* --- Cards / grids ------------------------------------------------------ */
.grid { display: grid; gap: var(--sp-5); }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { border-color: var(--steel-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1 1 auto; }
.card__body h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.card__body p { color: var(--steel-600); font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.card__body .link-arrow { margin-top: auto; }

/* --- Photo placeholders ------------------------------------------------- */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: var(--sp-4);
  min-height: 120px;
  background:
    repeating-linear-gradient(45deg, var(--steel-100), var(--steel-100) 12px, var(--steel-50) 12px, var(--steel-50) 24px);
  border: 1px dashed var(--steel-400);
  color: var(--steel-600);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}
.ph::before { content: "▣"; color: var(--steel-400); font-size: 1rem; }
.ph--media { aspect-ratio: 4 / 3; min-height: 0; }

/* Inline fact placeholder in copy */
.fact {
  display: inline-block;
  padding: 0.05em 0.4em;
  background: var(--red-tint);
  border: 1px dashed var(--red);
  border-radius: 2px;
  color: var(--red-text);
  font-weight: 600;
  font-size: 0.92em;
  white-space: nowrap;
}

/* --- Serve columns ------------------------------------------------------ */
.serve { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .serve { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }
.serve__col {
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
}
.serve__col h3 { font-size: var(--fs-xl); }
.serve__col p { color: var(--steel-600); }
.ticks { list-style: none; padding: 0; margin: var(--sp-4) 0 0; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--steel-700); font-size: var(--fs-base); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 9px; height: 9px;
  background: var(--red);
  border-radius: 1px;
}

/* --- Machine / industry chips ------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.chips li { margin: 0; }
.chip {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--steel-300);
  border-radius: 100px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--steel-800);
}

.chip-groups {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--steel-200);
}
@media (min-width: 768px) { .chip-groups { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } }
.chips__title { font-size: var(--fs-base); margin-bottom: var(--sp-3); }
.chips__title a { color: var(--ink); text-decoration: none; }
.chips__title a:hover { color: var(--red-text); text-decoration: underline; }

.ind-grid { display: grid; gap: 1px; background: var(--steel-200); border: 1px solid var(--steel-200); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .ind-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
.ind {
  background: var(--white);
  padding: var(--sp-5);
}
.ind h3 { font-size: var(--fs-base); margin-bottom: 0.25rem; }
.ind p { font-size: var(--fs-sm); color: var(--steel-500); margin: 0; }

/* --- Services band ------------------------------------------------------ */
.band { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .band { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.band__media { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); }
.band__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band ul { color: var(--steel-300); }
.section--dark .ticks li { color: var(--steel-300); }

/* --- Steps -------------------------------------------------------------- */
.steps { display: grid; gap: var(--sp-5); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: var(--sp-6); border-top: 2px solid var(--steel-200); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  transform: translateY(-50%);
  background: var(--white);
  padding-right: 0.6rem;
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.1em;
  color: var(--red-text);
}
.section--alt .step::before { background: var(--steel-50); }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-base); color: var(--steel-600); }

/* --- About teaser ------------------------------------------------------- */
.about-teaser { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 900px) { .about-teaser { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }
.about-teaser__media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.about-teaser__media img { border-radius: var(--radius); aspect-ratio: 1 / 1; object-fit: cover; }
.stat-row { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-5); }
.stat__num { font-size: var(--fs-2xl); font-weight: 800; color: var(--ink); line-height: 1; }
.stat__label { font-size: var(--fs-sm); color: var(--steel-500); margin-top: 0.25rem; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-top: 4px solid var(--red);
}
.cta-band__inner { display: grid; gap: var(--sp-6); align-items: center; padding-block: var(--sp-8); }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: var(--white); margin-bottom: var(--sp-3); }
.cta-band p { color: var(--steel-300); margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: var(--sp-3); }
@media (min-width: 480px) { .cta-band__actions { flex-direction: row; flex-wrap: wrap; } }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--steel-400); font-size: var(--fs-base); }
.footer__top { display: grid; gap: var(--sp-7); padding-block: var(--sp-8); }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--sp-6); } }
.footer h2, .footer h3 { color: var(--white); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-4); }
.footer__brand img { height: 46px; width: auto; margin-bottom: var(--sp-4); background: var(--white); padding: 6px 10px; border-radius: var(--radius); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 0.5rem; }
.footer a { color: var(--steel-300); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer address { font-style: normal; color: var(--steel-400); line-height: 1.6; }
.footer address strong { color: var(--white); display: block; margin-bottom: 0.25rem; font-weight: 600; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--steel-500);
}

/* --- Forms ---------------------------------------------------------------
   The quote and contact forms are written into the page so they always render.
   They post to the Form-email app (PHP), which sends over authenticated SMTP;
   form-email.js adds the signed token and shows the reply in place. -------- */
.form { display: grid; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--steel-800); }
.field .req { color: var(--red-text); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: var(--fs-base);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--red); }
.field__hint { font-size: var(--fs-sm); color: var(--steel-500); }
.field--full { grid-column: 1 / -1; }
.form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--steel-600); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: 0 0 auto; }
.form__status { font-size: var(--fs-sm); min-height: 1.25rem; margin: 0; }
.form__status--ok { color: #15803d; }
.form__status--error { color: var(--red-text); }
/* Honeypot: off-screen and out of the tab order. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border: 1px solid var(--steel-300);
  border-left: 4px solid var(--red);
  background: var(--steel-50);
  padding: var(--sp-5);
  border-radius: var(--radius);
}
.notice p { font-size: var(--fs-base); color: var(--steel-700); }
.notice--warn { border-left-color: var(--red); background: var(--red-tint); }

/* --- Page header (interior pages) -------------------------------------- */
/* Base styles live with the heading system; the breadcrumb sits under it. */
.breadcrumb { font-size: var(--fs-sm); color: var(--steel-400); margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; display: flex; gap: 0.4rem; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--steel-600); }
.breadcrumb a { color: var(--steel-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }

/* --- Product detail ----------------------------------------------------- */
.detail-layout { display: grid; gap: var(--sp-7); }
@media (min-width: 1024px) { .detail-layout { grid-template-columns: 1.5fr 1fr; gap: var(--sp-8); align-items: start; } }
.detail-aside { position: relative; }
@media (min-width: 1024px) { .detail-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.detail-aside__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-3); }
.detail-aside__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.type-list { display: grid; gap: var(--sp-5); }
.type-list__item { padding-left: var(--sp-5); border-left: 3px solid var(--red); }
.type-list__item h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.type-list__item p { color: var(--steel-600); margin: 0; }

.panel {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.panel h2 { font-size: var(--fs-xl); }

.related {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: var(--sp-3);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.related:hover { border-color: var(--steel-300); box-shadow: var(--shadow-md); }
.related img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius); flex: 0 0 auto; }
.related__body { display: block; }
.related__title { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.15rem; }
.related__blurb { display: block; font-size: var(--fs-sm); color: var(--steel-500); line-height: 1.4; }

/* --- Simple step / icon cards ------------------------------------------- */
.step-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.step-card__icon { display: inline-flex; color: var(--red); margin-bottom: var(--sp-3); }
.step-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.step-card p { color: var(--steel-600); font-size: var(--fs-base); margin: 0; }

/* --- Services ----------------------------------------------------------- */
.status-band {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  background: var(--steel-50);
  border: 1px solid var(--steel-200);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
@media (min-width: 900px) { .status-band { grid-template-columns: auto 1fr auto; gap: var(--sp-6); } }
.status-band h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.status-band p { color: var(--steel-600); margin: 0; max-width: 60ch; }
.status-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.status-dot {
  display: block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 6px var(--red-tint);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px var(--red-tint); }
  50% { box-shadow: 0 0 0 11px rgba(252, 7, 16, 0.06); }
}
@media (prefers-reduced-motion: reduce) { .status-dot { animation: none; } }

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.service-card__flag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-text);
  background: var(--red-tint);
  border: 1px solid rgba(252, 7, 16, 0.25);
  border-radius: 100px;
  padding: 0.2rem 0.6rem;
  margin-bottom: var(--sp-4);
}
.service-card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.service-card p { color: var(--steel-600); font-size: var(--fs-base); }
.service-card .ticks li { font-size: var(--fs-sm); }

/* --- Quote page --------------------------------------------------------- */
.quote-layout { display: grid; gap: var(--sp-7); }
@media (min-width: 1024px) { .quote-layout { grid-template-columns: 1.55fr 1fr; gap: var(--sp-8); align-items: start; } }
.quote-aside {
  background: var(--steel-50);
  border: 1px solid var(--steel-200);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
@media (min-width: 1024px) { .quote-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.quote-aside__title { font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.quote-aside__media { margin: var(--sp-6) 0; border-radius: var(--radius); overflow: hidden; }
.quote-aside__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quote-aside__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

/* --- Prose (legal / long copy) ----------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-lg); margin-top: var(--sp-6); }
.prose ul { color: var(--steel-700); }

/* --- Motion ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .header, .mobile-panel, .cta-band, .footer__bottom { display: none !important; }
  body { color: #000; }
}

/* --- About: locations --------------------------------------------------- */
.loc-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--graphite);
}
.loc-figure img { width: 100%; display: block; aspect-ratio: 484 / 187; object-fit: cover; }

.loc-list {
  display: grid;
  gap: 1px;
  margin-top: var(--sp-6);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 560px) { .loc-list { grid-template-columns: 1fr 1fr; } }
.loc { padding: var(--sp-5); background: var(--ink); }
.loc__role {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff5a5f;
  margin: 0 0 0.4rem;
}
.loc h3 {
  color: var(--white);
  font-size: var(--fs-lg);
  margin-bottom: 0.4rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--red);
  display: inline-block;
}
.loc p { color: var(--steel-300); font-size: var(--fs-base); margin: 0; max-width: 42ch; }

/* --- About: parts gallery ----------------------------------------------- */
.gallery { display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery figure {
  margin: 0;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.gallery img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery figure:hover img { transform: scale(1.03); }

/* --- About: milestones timeline ----------------------------------------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-6);
}
.timeline__item {
  position: relative;
  margin: 0;
  padding-left: var(--sp-6);
  border-left: 2px solid rgba(255, 255, 255, 0.16);
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--ink);
}
.timeline__year {
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.timeline__body p { color: var(--steel-300); margin: 0; max-width: 62ch; }

@media (min-width: 900px) {
  .timeline { gap: 0; }
  .timeline__item {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: var(--sp-6);
    padding-left: var(--sp-7);
    padding-block: var(--sp-6);
  }
  .timeline__item:first-child { padding-top: 0; }
  .timeline__item:last-child { padding-bottom: 0; }
  .timeline__year { margin-bottom: 0; text-align: right; }
  .timeline__item::before { top: var(--sp-6); }
  .timeline__item:first-child::before { top: 0.35rem; }
}

/* --- Request a quote: email band ---------------------------------------- */
.email-band {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  background: var(--steel-50);
  border: 1px solid var(--steel-200);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
@media (min-width: 900px) { .email-band { grid-template-columns: 1.25fr 1fr; gap: var(--sp-8); } }
.email-band h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.email-band p { color: var(--steel-600); margin: 0; max-width: 52ch; }
.email-band__addr {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-left: var(--sp-6);
  border-left: 1px solid var(--steel-200);
}
@media (max-width: 899px) {
  .email-band__addr { padding-left: 0; border-left: 0; padding-top: var(--sp-5); border-top: 1px solid var(--steel-200); }
}
.email-band__link {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}
.email-band__link:hover { color: var(--red-text); text-decoration: underline; }
.email-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --- Contact cards ------------------------------------------------------ */
.contact-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: var(--sp-6);
}
.contact-card__icon { display: inline-flex; color: var(--red); margin-bottom: var(--sp-4); }
.contact-card h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.contact-card p { color: var(--steel-600); }
.contact-card__value { margin-top: var(--sp-4); margin-bottom: 0; }
.contact-card__value a { font-weight: 700; font-size: var(--fs-lg); }
