/* ============================================================
   Tech Rim Standards — Site CSS
   Static translation of the design system's React components
   (header, footer, modal, cookie bar, homepage sections) into
   plain CSS classes driven by the tokens in /tokens/*.css.
   ============================================================ */

/* ---------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------- */
.trs-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.trs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-md);
  padding: 0 20px;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: var(--border-hair) solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.trs-btn:active { transform: translateY(1px); }
.trs-btn svg { flex-shrink: 0; }

.trs-btn--sm { height: var(--control-sm); padding: 0 14px; font-size: 13px; gap: 7px; }
.trs-btn--lg { height: var(--control-lg); padding: 0 28px; font-size: 15px; gap: 10px; }
.trs-btn--block { display: flex; width: 100%; }

.trs-btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-xs); }
.trs-btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }

.trs-btn--ghost { background: transparent; color: var(--text-strong); }
.trs-btn--ghost:hover { background: var(--graphite-100); }

.trs-btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.trs-btn--outline:hover { background: var(--brand-subtle); }

.trs-btn--outline-inverse { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.trs-btn--outline-inverse:hover { background: rgba(255,255,255,0.08); }

.trs-btn--ghost-inverse { background: transparent; color: #fff; border: 1px solid transparent; }
.trs-btn--ghost-inverse:hover { background: rgba(255,255,255,0.08); }

.trs-btn--on-crimson { background: #fff; color: var(--brand); }
.trs-btn--on-crimson:hover { background: var(--graphite-50); }

.trs-btn--outline-on-crimson { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.trs-btn--outline-on-crimson:hover { background: rgba(255,255,255,0.1); }

.trs-btn--dark { background: var(--graphite-900); color: #fff; box-shadow: var(--shadow-xs); }
.trs-btn--dark:hover { background: var(--graphite-800); }

.trs-btn--shop {
  height: var(--control-sm); padding: 0 14px; font-size: 13px; gap: 7px;
  background: var(--amber-500); color: var(--graphite-900); box-shadow: var(--shadow-xs);
}
.trs-btn--shop:hover { background: var(--amber-600); }

.trs-btn--cookie-decline {
  height: var(--control-sm); padding: 0 16px; font-size: 13px;
  color: rgba(255,255,255,0.85); background: transparent; border-color: rgba(255,255,255,0.3);
}
.trs-btn--cookie-decline:hover { background: rgba(255,255,255,0.08); }
.trs-btn--cookie-accept {
  height: var(--control-sm); padding: 0 18px; font-size: 13px;
  color: #fff; background: var(--brand); box-shadow: var(--shadow-brand);
}
.trs-btn--cookie-accept:hover { background: var(--brand-hover); color: #fff; }

.trs-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard);
}
.trs-icon-btn--outline-inverse { color: #fff; border: var(--border-hair) solid rgba(255,255,255,0.28); background: transparent; }
.trs-icon-btn--outline-inverse:hover { background: rgba(255,255,255,0.08); }
.trs-icon-btn--outline { color: var(--text-body); border: var(--border-hair) solid var(--color-border-strong); background: var(--color-surface); }
.trs-icon-btn--outline:hover { background: var(--graphite-50); }

/* ---------------------------------------------------------------
   Badge
   --------------------------------------------------------------- */
.trs-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; font-family: var(--font-sans); font-weight: var(--fw-semibold);
  font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--radius-sm); line-height: 1; white-space: nowrap;
}
.trs-badge--stock { background: var(--green-500); color: #fff; }
.trs-badge--solid-brand { background: var(--brand); color: #fff; }
.trs-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.trs-badge--outline-steel { background: transparent; color: var(--steel-600); border: 1px solid var(--steel-300); }
.trs-badge--soft-neutral { background: var(--graphite-100); color: var(--graphite-700); }
.trs-badge--soft-steel { background: var(--secondary-subtle); color: var(--steel-600); }
.trs-badge--soft-brand { background: var(--brand-subtle); color: var(--brand); }
.trs-badge--soft-amber { background: var(--accent-subtle); color: var(--amber-700); }
.trs-badge--solid-steel { background: var(--secondary); color: #fff; }
.trs-badge--solid-graphite { background: var(--graphite-800); color: #fff; }

/* ---------------------------------------------------------------
   Header / mega-menu
   --------------------------------------------------------------- */
.trs-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--border-hair) solid var(--color-border);
}
.trs-header__utility { background: var(--graphite-50); border-bottom: var(--border-hair) solid var(--color-border); }
.trs-header__utility-inner {
  max-width: var(--container-max); margin: 0 auto; padding: 7px var(--gutter);
  display: flex; align-items: center; justify-content: flex-end;
}
.trs-header__phone {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; color: var(--text-body);
}
.trs-header__phone svg { color: var(--brand); flex-shrink: 0; }
.trs-header__phone:hover { color: var(--brand); }
.trs-header__bar {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px; height: 74px;
}
.trs-header__logo-link { display: flex; align-items: center; flex-shrink: 0; }
img.trs-header__logo {
  height: 46px; width: auto; max-width: none; flex-shrink: 0; display: block;
}
.trs-header__spacer { flex: 1; }

/* ---------------------------------------------------------------
   Wordmark (text-based logo lockup — used in header + footer)
   --------------------------------------------------------------- */
.trs-wordmark { display: inline-flex; align-items: center; gap: 9px; }
.trs-wordmark__accent {
  width: 9px; height: 30px; border-radius: 2px; background: var(--brand);
  clip-path: polygon(0 0, 100% 15%, 55% 100%, 0 100%); flex-shrink: 0;
}
.trs-wordmark__text { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.trs-wordmark__text strong {
  font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: 0.01em;
}
.trs-wordmark__text em {
  font-style: normal; font-family: var(--font-sans); font-weight: 700; font-size: 9.5px; letter-spacing: 0.26em;
}
.trs-wordmark--dark .trs-wordmark__text strong { color: var(--graphite-900); }
.trs-wordmark--dark .trs-wordmark__text em { color: var(--text-muted); }
.trs-wordmark--light .trs-wordmark__text strong { color: #fff; }
.trs-wordmark--light .trs-wordmark__text em { color: rgba(255,255,255,0.55); }
.trs-wordmark--lg { gap: 11px; }
.trs-wordmark--lg .trs-wordmark__accent { width: 11px; height: 37px; }
.trs-wordmark--lg .trs-wordmark__text { gap: 4px; }
.trs-wordmark--lg .trs-wordmark__text strong { font-size: 26px; }
.trs-wordmark--lg .trs-wordmark__text em { font-size: 12px; }
.trs-wordmark--sm { gap: 7px; }
.trs-wordmark--sm .trs-wordmark__accent { width: 6px; height: 20px; }
.trs-wordmark--sm .trs-wordmark__text { gap: 2px; }
.trs-wordmark--sm .trs-wordmark__text strong { font-size: 14px; }
.trs-wordmark--sm .trs-wordmark__text em { font-size: 7px; letter-spacing: 0.2em; }

.trs-nav { display: flex; gap: 2px; margin-left: 12px; }
.trs-nav__item { position: relative; }
.trs-nav__trigger {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 12px;
  border: none; background: transparent; border-radius: var(--radius-md); cursor: pointer;
  font-family: var(--font-sans); font-weight: 600; font-size: 13px; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text-body);
  transition: color 140ms var(--ease-standard), background 140ms var(--ease-standard);
}
.trs-nav__chevron { display: inline-flex; transition: transform 200ms var(--ease-standard); }
.trs-nav__item--open .trs-nav__trigger,
.trs-nav__trigger:hover { background: var(--graphite-50); color: var(--brand); }
.trs-nav__item--open .trs-nav__chevron { transform: rotate(180deg); }

.trs-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 120;
  background: var(--color-surface); border-radius: var(--radius-lg);
  border: var(--border-hair) solid var(--color-border); border-top: 3px solid var(--brand);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 180ms var(--ease-standard), transform 180ms var(--ease-standard), visibility 180ms;
}
.trs-dropdown--1col { min-width: 300px; max-width: 340px; }
.trs-dropdown--2col { min-width: 480px; max-width: 560px; }
.trs-nav__item--open .trs-dropdown { opacity: 1; visibility: visible; transform: none; }

.trs-dropdown__tagline {
  padding: 14px 18px; border-bottom: var(--border-hair) solid var(--color-divider);
  display: flex; align-items: center; gap: 10px; color: var(--text-muted);
}
.trs-dropdown__tagline svg { color: var(--brand); flex-shrink: 0; }
.trs-dropdown__tagline span { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }

.trs-dropdown__grid { padding: 8px; display: grid; grid-template-columns: 1fr; gap: 2px; }
.trs-dropdown--2col .trs-dropdown__grid { grid-template-columns: 1fr 1fr; }

.trs-dropdown__group-label {
  padding: 10px 12px 2px; font-family: var(--font-sans); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.trs-dropdown__group-label:first-child { padding-top: 4px; }

.trs-dropdown__item {
  display: block; padding: 10px 12px; border-radius: var(--radius-md);
  text-decoration: none; transition: background 140ms var(--ease-standard);
}
.trs-dropdown__item:hover { background: var(--graphite-50); }
.trs-dropdown__item-name {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; color: var(--text-strong); transition: color 140ms var(--ease-standard);
}
.trs-dropdown__item:hover .trs-dropdown__item-name { color: var(--brand); }
.trs-dropdown__item-desc { display: block; margin-top: 2px; font-family: var(--font-sans); font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }

.trs-dropdown__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 18px; border-top: var(--border-hair) solid var(--color-divider);
  background: var(--graphite-50); text-decoration: none;
  font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand);
}

/* ---------------------------------------------------------------
   Header search (site-wide, lives in the header partial)
   --------------------------------------------------------------- */
.trs-header-search { position: relative; width: 220px; flex-shrink: 0; }
.trs-header-search__form {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--graphite-50); border: var(--border-hair) solid var(--color-border);
  border-radius: var(--radius-sm); padding: 0 12px; height: 38px;
  transition: background 140ms var(--ease-standard), border-color 140ms var(--ease-standard);
}
.trs-header-search__form:focus-within { background: var(--color-surface); border-color: var(--brand); }
.trs-header-search__form svg { color: var(--text-muted); flex-shrink: 0; }
.trs-header-search__input {
  flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text-strong);
  font-family: var(--font-sans); font-size: 13.5px; height: 100%;
}
/* The parent pill already shows focus via border-color (see :focus-within
   above) — suppress the global :focus-visible ring here so there's only
   one focus indicator instead of two stacked ones. */
.trs-header-search__input:focus-visible { box-shadow: none; }
.trs-header-search__input::placeholder { color: var(--text-muted); }
.trs-header-search__clear {
  border: none; background: transparent; color: var(--text-muted); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 2px; display: flex; align-items: center; justify-content: center;
}
.trs-header-search__clear:hover { color: var(--text-strong); }

.trs-header-search__results {
  position: absolute; top: calc(100% + 8px); right: 0; left: auto; min-width: 320px; z-index: 130;
  background: var(--color-surface); border: var(--border-hair) solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); max-height: 400px; overflow-y: auto; padding: 6px 0;
}
.trs-header-search__results[hidden] { display: none; }
.trs-header-search__group-label {
  padding: 10px 16px 4px; font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
}
.trs-header-search__item {
  display: block; padding: 9px 16px; text-decoration: none; cursor: pointer;
  transition: background 100ms var(--ease-standard);
}
.trs-header-search__item:hover, .trs-header-search__item--active { background: var(--graphite-50); }
.trs-header-search__item-name { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--text-strong); }
.trs-header-search__item-desc { font-family: var(--font-sans); font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }
.trs-header-search__empty { padding: 16px 16px 4px; text-align: center; font-family: var(--font-sans); font-size: 13.5px; color: var(--text-muted); }
.trs-header-search__group-label--store { margin-top: 4px; padding-top: 12px; border-top: var(--border-hair) solid var(--color-divider); }

.trs-header-search--mobile { width: 100%; margin: 4px 0 16px; }
.trs-header-search--mobile .trs-header-search__form { height: 44px; }
.trs-header-search--mobile .trs-header-search__results { left: 0; right: 0; min-width: 0; }

.trs-header__actions { display: flex; align-items: center; gap: 16px; }
.trs-header__toggle {
  display: none; border: none; background: transparent; color: var(--text-strong);
  cursor: pointer; padding: 4px;
}
.trs-icon-close { display: none; }
.trs-header--mobile-open .trs-icon-menu { display: none; }
.trs-header--mobile-open .trs-icon-close { display: block; }

.trs-mobile-drawer {
  display: none; border-top: var(--border-hair) solid var(--color-border);
  padding: 8px var(--gutter) 16px; background: #fff; max-height: calc(100vh - 74px); overflow-y: auto;
}
.trs-header--mobile-open .trs-mobile-drawer { display: block; }

.trs-mobile-accordion { border-bottom: var(--border-hair) solid var(--color-divider); }
.trs-mobile-accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 2px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; text-transform: uppercase;
  letter-spacing: -0.01em; color: var(--text-strong);
}
.trs-mobile-accordion__trigger svg { color: var(--text-muted); transition: transform 200ms var(--ease-standard); }
.trs-mobile-accordion--open .trs-mobile-accordion__trigger svg { transform: rotate(180deg); }
.trs-mobile-accordion__panel { display: none; padding: 0 2px 12px; }
.trs-mobile-accordion--open .trs-mobile-accordion__panel { display: block; }
.trs-mobile-accordion__panel a {
  display: block; padding: 9px 10px; border-radius: var(--radius-md);
  text-decoration: none; background: var(--graphite-50); margin-bottom: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-strong);
}
.trs-mobile-accordion__panel a span { display: block; font-family: var(--font-sans); font-weight: 400;
  font-size: 12px; color: var(--text-muted); margin-top: 1px; text-transform: none; letter-spacing: 0; }
.trs-mobile-accordion__group-label {
  padding: 10px 10px 4px; font-family: var(--font-sans); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
.trs-mobile-accordion__group-label:first-child { padding-top: 2px; }
.trs-mobile-drawer__actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 880px) {
  .trs-nav, .trs-header__actions, .trs-header-search:not(.trs-header-search--mobile), .trs-header__utility { display: none !important; }
  .trs-header__toggle { display: inline-flex !important; }
}

/* ---------------------------------------------------------------
   Section header (shared across sections)
   --------------------------------------------------------------- */
.trs-section-header { display: flex; flex-direction: column; gap: 10px; max-width: 60ch; }
.trs-section-header--center { align-items: center; text-align: center; max-width: none; margin: 0 auto; }
.trs-section-header__overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--brand);
}
.trs-section-header__overline--center { flex-direction: row-reverse; }
.trs-section-header__overline--gold { color: var(--amber-400); }
.trs-section-header__overline--gold .trs-section-header__rule { background: var(--amber-400); }
.trs-section-header__rule { width: 28px; height: 3px; background: var(--brand); flex-shrink: 0; }

/* Compact standalone eyebrow — used outside the full SectionHeader block (e.g. hero copy). */
.trs-te-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand);
}
.trs-te-eyebrow span { width: 26px; height: 3px; background: var(--brand); }
.trs-te-eyebrow--steel { color: var(--steel-300); }
.trs-te-eyebrow--steel span { background: var(--steel-400); }
.trs-te-eyebrow--gold { color: var(--amber-400); }
.trs-te-eyebrow--gold span { background: var(--amber-400); }
.trs-section-header__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.08; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text-strong); margin: 0;
}
.trs-section-header__lead { font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6; color: var(--text-body); margin: 0; }

/* ---------------------------------------------------------------
   Generic section wrappers
   --------------------------------------------------------------- */
.trs-section { background: var(--color-surface); padding: 88px 0; }
.trs-section--sunken { background: var(--color-bg); border-top: 1px solid var(--color-border); }
.trs-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.trs-hero { position: relative; background: var(--graphite-900); color: #fff; overflow: hidden; }
.trs-hero__dotgrid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 26px 26px;
}
.trs-hero__glow {
  position: absolute; top: -20%; right: -8%; width: 46%; height: 140%;
  opacity: 0; transition: opacity 800ms var(--ease-standard); pointer-events: none;
}
.trs-hero__glow--0 { background: radial-gradient(closest-side, rgba(186,31,57,0.38), transparent); opacity: 1; }
.trs-hero__glow--1 { background: radial-gradient(closest-side, rgba(232,163,29,0.30), transparent); }
.trs-hero__glow--2 { background: radial-gradient(closest-side, rgba(29,111,163,0.34), transparent); }

.trs-hero__wrap { position: relative; padding: 44px var(--gutter) 48px; max-width: 1280px; }
.trs-hero-slides { display: grid; }
.trs-hero-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: stretch;
  opacity: 0; pointer-events: none; transition: opacity 800ms var(--ease-standard);
}
.trs-hero-slide--active { opacity: 1; pointer-events: auto; }
.trs-hero-slide[hidden] { display: grid; } /* keep in stacked grid for crossfade; JS toggles opacity, not display */

.trs-hero-slide__overline {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-sans);
  font-weight: 700; font-size: 12px; letter-spacing: var(--ls-overline); text-transform: uppercase;
  margin-bottom: 14px;
}
.trs-hero-slide__overline--amber { color: var(--amber-400); }
.trs-hero-slide__overline--steel { color: var(--steel-300); }
.trs-hero-slide__rule { width: 26px; height: 3px; }
.trs-hero-slide__rule--amber { background: var(--amber-500); }
.trs-hero-slide__rule--steel { background: var(--steel-400); }

.trs-hero-slide__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.04; letter-spacing: -0.02em; text-transform: uppercase; margin: 0; color: #fff;
}
.trs-hero-slide__accent--crimson { color: var(--crimson-400); }
.trs-hero-slide__accent--amber { color: var(--amber-400); }
.trs-hero-slide__accent--steel { color: var(--steel-300); }

.trs-hero-slide__body {
  font-family: var(--font-sans); font-size: clamp(0.95rem,1.1vw,1.08rem); line-height: 1.55;
  color: var(--graphite-200); max-width: 500px; margin: 14px 0 24px;
}
.trs-hero-slide__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.trs-hero-media { height: 100%; }
.trs-hero-image-frame {
  position: relative; width: 100%; height: 100%; min-height: 240px; max-height: 460px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background: linear-gradient(135deg, var(--graphite-800), var(--graphite-950));
  box-shadow: var(--shadow-lg);
}
.trs-hero-image-frame__stripes {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px);
}
.trs-hero-image-frame__label {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; color: var(--graphite-400);
}
.trs-hero-image-frame__label[hidden] { display: none; }
.trs-hero-image-frame__label span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Full-bleed photo (e.g. NAAMS gallery) directly inside the frame. */
.trs-hero-image-frame > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.trs-hero-image-frame > img.is-hidden { display: none; }

/* White card wrapper for transparent cutout renders (CNC cluster, Tech-Effector
   gallery) so they read cleanly instead of showing the dark frame through them. */
.trs-hero-image-frame__card {
  position: absolute; inset: 0; background: #fff; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.trs-hero-image-frame__card.is-hidden { display: none; }
.trs-hero-image-frame__card img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block;
}

@media (max-width: 860px) {
  .trs-hero-slide { grid-template-columns: 1fr; gap: 32px; }
  .trs-hero-media { max-width: 460px; height: auto; }
  .trs-hero-image-frame { height: auto; aspect-ratio: 16 / 9; min-height: 0; max-height: none; }
}

.trs-hero-controls { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
.trs-hero-dots { display: flex; gap: 9px; }
.trs-hero-dot {
  height: 8px; width: 8px; border-radius: var(--radius-pill); border: none; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.28); transition: width 300ms var(--ease-standard), background 300ms var(--ease-standard);
}
.trs-hero-dot--active { width: 30px; background: var(--brand); }
.trs-hero-spacer { flex: 1; }
.trs-hero-arrows { display: flex; gap: 8px; }

/* ---------------------------------------------------------------
   Product lines / cards
   --------------------------------------------------------------- */
.trs-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.trs-product-card {
  display: flex; flex-direction: column; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard);
}
.trs-product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.trs-product-card__image {
  position: relative; aspect-ratio: 4 / 3; background: var(--graphite-100);
  background-image: linear-gradient(135deg, var(--graphite-75), var(--graphite-200)); overflow: hidden;
}
.trs-product-card__image .trs-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.trs-product-card__image-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--graphite-400); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
}
.trs-product-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.trs-product-card__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  background-image: linear-gradient(135deg, var(--graphite-75), var(--graphite-200));
  color: var(--graphite-400); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.trs-product-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.trs-product-card__category {
  font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: var(--ls-overline);
  text-transform: uppercase; color: var(--brand);
}
.trs-product-card__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.15; color: var(--text-strong); margin: 0; }
.trs-product-card__desc { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.5; color: var(--text-body); margin: 2px 0 0; }
.trs-product-card__meta {
  display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--color-divider); margin-top: auto;
}
.trs-product-card__partno { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.trs-product-card__cta {
  display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; cursor: pointer; padding: 0;
  font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand);
}
.trs-product-card__cta:hover { color: var(--brand-hover); }

/* ---------------------------------------------------------------
   Product / service carousel (homepage) — full-size .trs-product-card
   tiles (real thumbnail, no badge/partno — the whole card is the
   link) in a horizontal scroll-snap row, so every line item stays
   visible at full size without needing a separate "see all" link.
   Prev/next arrows live in the section header (.trs-carousel__nav).
   The title/lead drop the shared header's 60ch cap and stretch to
   fill the row (rather than staying narrow and wrapping to 2-3
   lines beside the arrows).
   --------------------------------------------------------------- */
#products .trs-section-header,
#services .trs-section-header { max-width: none; flex: 1 1 auto; }

.trs-carousel__nav { display: flex; gap: 10px; flex-shrink: 0; }
.trs-carousel__arrow:disabled { opacity: 0.35; cursor: default; }
.trs-carousel__arrow:disabled:hover { background: var(--color-surface); }

.trs-carousel__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin-top: 40px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.trs-carousel__viewport::-webkit-scrollbar { display: none; }
.trs-carousel__track { display: flex; gap: 20px; }
.trs-carousel__track > .trs-product-card {
  flex: 0 0 300px; width: 300px; scroll-snap-align: start; text-decoration: none;
}
.trs-carousel__track .trs-product-card__image { aspect-ratio: auto; height: 190px; background: var(--white); }
.trs-carousel__track .trs-product-card__image img {
  object-fit: contain; padding: 22px; box-sizing: border-box;
  transition: transform 300ms var(--ease-standard);
}
.trs-carousel__track .trs-product-card:hover .trs-product-card__image img { transform: scale(1.08); }
.trs-carousel__track .trs-product-card__meta { border-top: none; padding-top: 0; margin-top: 10px; }
/* Services preview cards use real photography, not transparent renders — fill
   the frame edge-to-edge instead of the padded/contained logo treatment. */
.trs-carousel--photos .trs-product-card__image img { object-fit: cover; padding: 0; }

@media (max-width: 640px) {
  .trs-carousel__track > .trs-product-card { flex-basis: 260px; width: 260px; }
}

/* ---------------------------------------------------------------
   Breadcrumb (light-on-dark)
   --------------------------------------------------------------- */
.trs-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; font-family: var(--font-sans); font-size: 12.5px; }
.trs-breadcrumb a { color: rgba(255,255,255,0.62); text-decoration: none; }
.trs-breadcrumb a:hover { color: #fff; }
.trs-breadcrumb span:not([aria-current]) { color: rgba(255,255,255,0.3); }
.trs-breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------
   Catalog parent pages (/products/, /services/) — dark section that
   re-scopes the shared .trs-product-card custom properties to their
   dark-mode values, so the card component renders dark with no
   duplicated rules.
   --------------------------------------------------------------- */
.trs-catalog {
  background: var(--graphite-900);
  --color-surface: var(--graphite-800);
  --text-strong: #fff;
  --text-body: var(--graphite-200);
  --text-muted: var(--graphite-400);
  --color-border: var(--graphite-700);
  --color-divider: var(--graphite-700);
}
.trs-catalog__crumb { max-width: var(--container-max); margin: 0 auto; padding: clamp(40px, 6vw, 76px) var(--gutter) 0; }
.trs-catalog__head { max-width: var(--container-max); margin: 0 auto; padding: 44px var(--gutter) 8px; display: flex; flex-direction: column; gap: 8px; }
.trs-catalog__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(36px, 5vw, 56px); color: #fff; margin: 0; }
.trs-catalog__lead { font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: var(--graphite-300); margin: 0; max-width: 640px; }
.trs-catalog__grid { max-width: var(--container-max); margin: 0 auto; padding: 36px var(--gutter) 88px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trs-catalog__tile {
  display: block; text-decoration: none; opacity: 0; transform: translateY(24px);
  transition: opacity 500ms var(--ease-standard), transform 500ms var(--ease-standard);
}
.trs-catalog__tile.is-revealed { opacity: 1; transform: translateY(0); }
.trs-catalog__tile .trs-product-card { height: 100%; }
.trs-catalog__tile .trs-product-card__image { aspect-ratio: auto; height: 220px; background: var(--white); }
.trs-catalog__tile .trs-product-card__image img { object-fit: contain; padding: 28px; box-sizing: border-box; transition: transform 420ms var(--ease-standard); }
.trs-catalog__tile:hover .trs-product-card__image img { transform: scale(1.12); }
/* Services catalog uses real photography, not transparent renders — fill the
   frame edge-to-edge instead of the padded/contained logo treatment. */
.trs-services-catalog .trs-product-card__image img { object-fit: cover; padding: 0; }

@media (max-width: 980px) { .trs-catalog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trs-catalog__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------
   Stats band
   --------------------------------------------------------------- */
.trs-stats-band { background: var(--graphite-900); padding: 40px 0; }
.trs-stats-band__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.trs-stat-card { display: flex; flex-direction: column; gap: 4px; padding: var(--space-5) var(--space-6); border-left: 3px solid var(--graphite-600); }
.trs-stat-card--accent { border-left-color: var(--brand); }
.trs-stat-card__value { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.trs-stat-card__label { font-family: var(--font-sans); font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite-300); margin-top: 6px; }

/* ---------------------------------------------------------------
   Customers marquee
   --------------------------------------------------------------- */
.trs-customers { background: var(--graphite-900); padding: 20px 0 44px; overflow: hidden; }
.trs-customers__label {
  text-align: center; font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--graphite-400); margin: 0 0 24px;
}
.trs-marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trs-marquee-track {
  display: flex; align-items: center; gap: 20px; width: max-content;
  animation: trs-marquee 144s linear infinite;
}
.trs-marquee-mask:hover .trs-marquee-track { animation-play-state: paused; }
@keyframes trs-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trs-marquee-track { animation: none; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .trs-marquee-mask { -webkit-mask-image: none; mask-image: none; }
}
.trs-customer-chip {
  flex-shrink: 0; height: 90px; padding: 0 18px; display: flex; align-items: center; justify-content: center;
}
.trs-customer-chip img {
  height: 100%; max-height: 59px; width: auto; max-width: 289px; object-fit: contain; display: block;
  opacity: 0.8; transition: opacity 160ms var(--ease-standard);
}
.trs-customer-chip:hover img { opacity: 1; }

/* ---------------------------------------------------------------
   Hazard bar (industrial stripe divider)
   --------------------------------------------------------------- */
.trs-hazard-bar { width: 100%; height: 8px; background-image: var(--hazard-stripe); }
.trs-hazard-bar--steel {
  background-image: repeating-linear-gradient(-45deg, var(--graphite-900) 0 14px, var(--steel-400) 14px 28px);
}

/* ---------------------------------------------------------------
   CTA band
   --------------------------------------------------------------- */
.trs-cta-band { position: relative; background: var(--brand); overflow: hidden; }
.trs-cta-band__stripes {
  position: absolute; inset: 0; opacity: 0.08;
  background-image: repeating-linear-gradient(-45deg, #000 0 18px, transparent 18px 36px);
}
.trs-cta-band__inner {
  position: relative; padding: 72px var(--gutter); display: flex; align-items: center;
  justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.trs-cta-band__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,3.5vw,2.6rem);
  line-height: 1.05; letter-spacing: -0.01em; text-transform: uppercase; color: #fff; margin: 0;
}
.trs-cta-band__body { font-family: var(--font-sans); font-size: 1.0625rem; color: rgba(255,255,255,0.9); margin: 12px 0 0; }
@media (min-width: 700px) {
  .trs-cta-band__body { white-space: nowrap; }
}
.trs-cta-band__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.trs-footer { background: var(--graphite-950); color: var(--graphite-300); padding-top: 64px; }
.trs-footer__grid {
  max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px;
}
.trs-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
img.trs-footer__logo { height: 68px; width: auto; max-width: none; display: block; }
.trs-footer__seal { height: 115px; width: 115px; border-radius: 50%; flex-shrink: 0; }
.trs-footer__col h4 {
  font-family: var(--font-sans); font-weight: 700; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #fff; margin: 0 0 16px;
}
.trs-footer__col p { font-family: var(--font-sans); font-size: 14px; line-height: 1.8; color: var(--graphite-300); margin: 0; }
.trs-footer__contact-links { margin-top: 12px; }
.trs-footer__contact-links a { color: inherit; text-decoration: none; }
.trs-footer__link {
  display: block; padding: 6px 0; font-family: var(--font-sans); font-size: 14px; color: var(--graphite-300);
  text-decoration: none; transition: color 140ms var(--ease-standard);
}
.trs-footer__link:hover { color: #fff; }
.trs-footer__social {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 8px;
  border: var(--border-hair) solid var(--graphite-800); border-radius: var(--radius-md);
  font-family: var(--font-sans); font-size: 14px; color: var(--graphite-300); text-decoration: none;
  transition: color 140ms var(--ease-standard), background 140ms var(--ease-standard), border-color 140ms var(--ease-standard);
}
.trs-footer__social:hover { color: #fff; background: var(--graphite-900); border-color: var(--graphite-700); }
.trs-footer__legal-bar { border-top: var(--border-hair) solid var(--graphite-800); }
.trs-footer__legal-bar {
  max-width: var(--container-max); margin: 0 auto;
}
.trs-footer__legal-bar { display: block; }
.trs-footer > .trs-footer__legal-bar {
  max-width: none; border-top: var(--border-hair) solid var(--graphite-800);
}
.trs-footer__legal-bar {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 20px var(--gutter); max-width: var(--container-max); margin: 0 auto;
  font-family: var(--font-mono); font-size: 12px; color: var(--graphite-500);
}

@media (max-width: 860px) {
  .trs-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------
   Quote modal
   --------------------------------------------------------------- */
.trs-modal-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(12,14,17,0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.trs-modal-overlay[hidden] { display: none; }
.trs-modal {
  background: var(--color-surface); border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  box-shadow: var(--shadow-xl); overflow: hidden; max-height: 92vh; overflow-y: auto;
}
.trs-modal__head {
  background: var(--graphite-900); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
}
.trs-modal__eyebrow { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-400); }
.trs-modal__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; text-transform: uppercase; color: #fff; margin: 4px 0 0; }
.trs-modal__close { border: none; background: transparent; color: #fff; cursor: pointer; font-size: 26px; line-height: 1; }

.trs-tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); }
.trs-tabs__tab {
  padding: 12px 18px; border: none; background: transparent; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.trs-tabs__tab:hover { color: var(--text-strong); }
.trs-tabs__tab--active { color: var(--brand); border-bottom-color: var(--brand); }
.trs-modal__body { padding: 24px; }
.trs-quote-info__lead { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.55; color: var(--text-body); margin: 0 0 16px; }
.trs-quote-info__list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 24px; padding: 0 0 0 20px; }
.trs-quote-info__list li { font-family: var(--font-sans); font-size: 14px; line-height: 1.4; color: var(--text-strong); }
.trs-field { display: flex; flex-direction: column; gap: 6px; }
.trs-field__label { font-family: var(--font-sans); font-weight: 600; font-size: 13px; color: var(--text-body); }
.trs-field__input {
  height: var(--control-md); padding: 0 12px; font-family: var(--font-sans); font-size: 14px;
  border: var(--border-hair) solid var(--color-border-strong); border-radius: var(--radius-sm); color: var(--text-strong);
  background: var(--color-surface);
}
textarea.trs-field__input { height: auto; padding: 10px 12px; resize: vertical; }
.trs-field__input:focus-visible { border-color: var(--secondary); }
.trs-alert { padding: 16px 18px; border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 14px; line-height: 1.5; }
.trs-alert[hidden] { display: none; }
.trs-alert--success { background: var(--status-success-subtle); color: var(--green-600); border: 1px solid rgba(31,138,91,0.25); }

/* ---------------------------------------------------------------
   Cookie consent bar
   --------------------------------------------------------------- */
.trs-cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-toast);
  background: var(--graphite-950); border-top: var(--border-accent) solid var(--brand); box-shadow: var(--shadow-xl);
}
.trs-cookie-bar[hidden] { display: none; }
.trs-cookie-bar__inner {
  max-width: var(--container-max); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.trs-cookie-bar__message {
  flex: 1 1 420px; margin: 0; font-family: var(--font-sans); font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.82);
}
.trs-cookie-bar__message a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); }
.trs-cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }
