/* ==========================================================================
   Traco Medical — Main Stylesheet
   Inspired by WITHIN (within.co)
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  --color-navy: #061C33;
  --color-blue: #0047ff;
  --color-blue-legacy: #1976D2;
  --color-sky: #9DD8FF;
  --color-cream: #f5f3ec;
  --color-gray: #E8E5DE;
  --color-black: #050505;
  --color-ink: #111111;
  --color-muted: #6e6e68;
  --color-acid: #d9ff2f;
  --color-white: #FFFFFF;
  --color-line: rgba(17,17,17,.12);

  --container: min(1440px, calc(100vw - 48px));
  --radius-lg: 32px;
  --radius-xl: 56px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font-sans: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Instrument Sans", system-ui, sans-serif;
  --font-serif: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;

  --space-xs: clamp(0.5rem, 1vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.5vw, 1.25rem);
  --space-md: clamp(1.5rem, 3vw, 2.5rem);
  --space-lg: clamp(3rem, 6vw, 5rem);
  --space-xl: clamp(5rem, 10vw, 9rem);

  --header-height: 72px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

#main,
#catalog,
#about,
#contact {
  scroll-margin-top: 104px;
}

@media (max-width: 768px) {
  #main,
  #catalog,
  #about,
  #contact {
    scroll-margin-top: 92px;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 430;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.display-xl, .display-lg, .display-md,
.hero-title, .section-title, .catalog-title,
.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.section-heading h2 {
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.section-heading h2 em,
.hero-title .accent-italic,
.section-title .accent-italic,
.section-heading em,
h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 80;
}

.eyebrow,
.card-kicker,
.product-meta,
.filter-pill,
.product-description,
.nav-link,
.button,
.product-card__mfr,
.product-card__cat,
.product-card__desc,
.catalog-filter__pill {
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Strip WordPress admin-bar gap on front-end */
html.wp-toolbar {
  padding-top: 0 !important;
}

/* Remove WP emoji cruft, caption outlines, default gallery gutters */
img.wp-smiley,
.wp-caption,
.gallery-caption {
  border: none;
  box-shadow: none;
}

.alignwide {
  max-width: var(--container);
  margin-inline: auto;
}

.alignfull {
  width: 100%;
  max-width: none;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

.display-xl {
  font-size: clamp(4rem, 8vw + 1rem, 8rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.display-lg {
  font-size: clamp(2.75rem, 5vw + 0.5rem, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.display-md {
  font-size: clamp(2rem, 3vw + 0.5rem, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-body {
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
  line-height: 1.65;
  color: var(--color-navy);
  opacity: 0.8;
}

.text-sm {
  font-size: clamp(0.8125rem, 0.3vw + 0.75rem, 0.9375rem);
  line-height: 1.5;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--space-xl);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding-inline: clamp(1rem, 3vw, 2rem);
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0);
  transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(250, 249, 246, 0.97);
  border-bottom-color: rgba(6, 28, 51, 0.08);
  box-shadow: 0 6px 24px rgba(6, 28, 51, 0.06);
}

@media (max-width: 900px) {
  .site-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo .custom-logo-link,
.site-header__logo img {
  display: block;
  height: 32px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.site-nav__logo img {
  height: 32px;
  width: auto;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2rem);
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.25s var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-blue);
  transition: width 0.35s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  padding: 0.75rem 0;
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(6, 28, 51, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown__panel a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  transition: background 0.2s;
}

.nav-dropdown__panel a:hover {
  background: var(--color-cream);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: 100px;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: var(--color-blue);
  transform: scale(1.04);
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}

/* Full-screen mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: var(--color-cream);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.mobile-menu.is-open a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu__inner {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: auto;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

.mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(6, 28, 51, 0.12);
  background: rgba(255, 255, 255, 0.75);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu__list a {
  display: block;
  padding: 0.65rem 0.25rem;
  border-radius: 12px;
}

.mobile-menu__list a:active {
  background: rgba(6, 28, 51, 0.06);
}

/* Stagger mobile links (anchors live under li) */
.mobile-menu__list li:nth-child(1) a { transition-delay: 0.05s; }
.mobile-menu__list li:nth-child(2) a { transition-delay: 0.1s; }
.mobile-menu__list li:nth-child(3) a { transition-delay: 0.15s; }
.mobile-menu__list li:nth-child(4) a { transition-delay: 0.2s; }
.mobile-menu__list li:nth-child(5) a { transition-delay: 0.25s; }
.mobile-menu__list li:nth-child(6) a { transition-delay: 0.3s; }

/* Header hamburger (front page) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(6, 28, 51, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-navy, #061c33);
  transition: transform 0.3s var(--ease-out), opacity 0.25s;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none !important;
  }

  .site-nav {
    display: flex !important;
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .site-header__inner {
    gap: 0.75rem;
  }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + var(--space-lg));
  padding-bottom: var(--space-lg);
  overflow: hidden;
}

.hero--half {
  min-height: 70svh;
}

.hero__title {
  font-size: clamp(3.5rem, 10vw + 1rem, 10rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.hero__subtitle {
  max-width: 540px;
  margin-top: var(--space-sm);
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
  line-height: 1.6;
  opacity: 0.7;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-md);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: inset(0 round var(--radius-lg));
  overflow: hidden;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 100px;
  transition:
    background 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
  will-change: transform;
}

.button:active {
  transform: scale(0.97);
}

.button--primary {
  color: var(--color-white);
  background: var(--color-navy);
}

.button--primary:hover {
  background: var(--color-blue);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.25);
  transform: translateY(-2px);
}

.button--secondary {
  color: var(--color-navy);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--color-navy);
}

.button--secondary:hover {
  color: var(--color-white);
  background: var(--color-navy);
  transform: translateY(-2px);
}

.button--pill {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-navy);
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(6, 28, 51, 0.08);
  border-radius: 100px;
}

.button--pill:hover,
.button--pill.is-active {
  color: var(--color-white);
  background: var(--color-navy);
}

/* ==========================================================================
   8. CARDS
   ========================================================================== */

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  will-change: transform;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(6, 28, 51, 0.1);
}

.work-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.work-card:hover .work-card__image img {
  transform: scale(1.05);
}

.work-card__body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.work-card__category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
}

.work-card__title {
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.work-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.65;
}

/* Capability cards — large, minimal style */
.capability-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-md);
  min-height: 280px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(6, 28, 51, 0.08);
}

.capability-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
}

.capability-card__title {
  font-size: clamp(1.25rem, 0.5vw + 1rem, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.capability-card__text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.55;
  opacity: 0.65;
}

/* ==========================================================================
   9. WORK GRID & FILTER PILLS
   ========================================================================== */

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

.filter-pills {
  display: flex;
  gap: 0.5rem;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   10. STICKY SYSTEM
   Two-column layout: left heading sticks while right content scrolls.
   ========================================================================== */

.sticky-system {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.sticky-system__heading {
  position: sticky;
  top: calc(var(--header-height) + var(--space-md));
}

.sticky-system__heading .display-md {
  max-width: 420px;
}

.sticky-system__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ==========================================================================
   11. MEDIA
   ========================================================================== */

.masked-media {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.masked-media img,
.masked-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 0.8s var(--ease-out);
}

.masked-media.is-visible img,
.masked-media.is-visible video {
  transform: scale(1);
}

/* Horizontal scrolling marquee strip */
.media-marquee {
  display: flex;
  gap: var(--space-sm);
  width: max-content;
  animation: marquee 40s linear infinite;
}

.media-marquee img {
  height: clamp(180px, 20vw, 320px);
  width: auto;
  border-radius: var(--radius-lg);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   12. REVEAL ANIMATIONS
   GPU-friendly: only opacity, transform, clip-path.
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Morph reveal: clip-path animation for sections/images */
.morph-reveal {
  clip-path: inset(20% round 48px);
  transition: clip-path 0.9s var(--ease-out);
  will-change: clip-path;
}

.morph-reveal.is-visible {
  clip-path: inset(0% round 20px);
}

/* Stagger children via data attribute */
[data-stagger] > .reveal:nth-child(1) { transition-delay: 0.00s; }
[data-stagger] > .reveal:nth-child(2) { transition-delay: 0.08s; }
[data-stagger] > .reveal:nth-child(3) { transition-delay: 0.16s; }
[data-stagger] > .reveal:nth-child(4) { transition-delay: 0.24s; }
[data-stagger] > .reveal:nth-child(5) { transition-delay: 0.32s; }
[data-stagger] > .reveal:nth-child(6) { transition-delay: 0.40s; }
[data-stagger] > .reveal:nth-child(7) { transition-delay: 0.48s; }
[data-stagger] > .reveal:nth-child(8) { transition-delay: 0.56s; }

/* Scale-up variant for images/cards */
.reveal--scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.reveal--scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  color: var(--color-white);
  padding-block: var(--space-xl) var(--space-lg);
  overflow-x: clip;
}

.footer-cta {
  text-align: center;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-lg);
}

.footer-cta .display-lg {
  color: var(--color-white);
}

.footer-cta .button--primary {
  margin-top: var(--space-md);
  background: var(--color-blue);
}

.footer-cta .button--primary:hover {
  background: var(--color-sky);
  color: var(--color-navy);
}

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

.footer-grid__col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.footer-grid__col a {
  display: block;
  padding-block: 0.35rem;
  font-size: 0.9375rem;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease-out);
}

.footer-grid__col a:hover {
  opacity: 1;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  opacity: 0.5;
}

/* ==========================================================================
   14. SINGLE WORK / CASE STUDY
   ========================================================================== */

.work-hero {
  padding-top: calc(var(--header-height) + var(--space-lg));
  padding-bottom: var(--space-lg);
}

.work-hero__meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.work-hero__meta dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
}

.work-hero__meta dd {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.125rem;
}

.work-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--color-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.work-metrics__item {
  padding: var(--space-md);
  background: var(--color-white);
  text-align: center;
}

.work-metrics__value {
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-blue);
}

.work-metrics__label {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  opacity: 0.6;
}

.work-content-section {
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--space-lg);
}

.work-content-section h2 {
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.work-content-section p {
  font-size: 1.0625rem;
  line-height: 1.7;
  opacity: 0.8;
}

.work-content-section p + p {
  margin-top: 1.25rem;
}

.work-content-section img {
  border-radius: var(--radius-lg);
  margin-block: var(--space-md);
}

/* ==========================================================================
   15. UTILITIES
   ========================================================================== */

.text-center { text-align: center; }
.text-navy   { color: var(--color-navy); }
.text-blue   { color: var(--color-blue); }
.text-white  { color: var(--color-white); }
.bg-navy     { background-color: var(--color-navy); }
.bg-cream    { background-color: var(--color-cream); }
.bg-white    { background-color: var(--color-white); }
.bg-gray     { background-color: var(--color-gray); }

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

/* ==========================================================================
   16. RESPONSIVE — Tablet (≤ 1024px)
   ========================================================================== */

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

  .sticky-system {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .sticky-system__heading {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: clamp(3rem, 8vw, 6rem);
  }
}

/* ==========================================================================
   17. RESPONSIVE — Mobile (≤ 768px)
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* Show hamburger, hide desktop links */
  .mobile-toggle {
    display: flex;
  }

  .site-nav__links {
    display: none;
  }

  .hero {
    min-height: 85svh;
    padding-top: calc(var(--header-height) + var(--space-md));
  }

  .hero__title {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .hero__cta-group {
    flex-direction: column;
  }

  .hero__cta-group .button {
    width: 100%;
    justify-content: center;
  }

  .display-xl {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
  }

  .display-lg {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .section {
    padding-block: var(--space-lg);
  }

  .work-hero__meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* ==========================================================================
   18. RESPONSIVE — Small mobile (≤ 480px)
   ========================================================================== */

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

  .work-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .capability-card {
    min-height: 200px;
  }
}

/* ==========================================================================
   19. ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal--scale {
    opacity: 1 !important;
    transform: none !important;
  }

  .morph-reveal {
    clip-path: none !important;
  }

  .masked-media img,
  .masked-media video {
    transform: none !important;
  }

  .media-marquee {
    animation: none !important;
  }
}

/* Focus-visible outlines for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove outline for mouse/touch */
:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================================================
   20. GSAP MOTION SYSTEM
   ========================================================================== */

/* ── Header: shared rules live in §5 NAVIGATION (.site-header) ── */

/* ── Hero Reel ── */
.hero-reel {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: stretch;
}

.hero-reel__inner {
  position: absolute;
  inset: 0;
}

.hero-reel__media {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.hero-reel__media img,
.hero-reel__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dark overlay above all media layers */
.hero-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.32);
  pointer-events: none;
  z-index: 1;
}

.hero-reel__content {
  position: absolute;
  left: clamp(20px, 4vw, 72px);
  right: clamp(20px, 4vw, 72px);
  bottom: clamp(28px, 6vw, 92px);
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}

.hero-reel__heading {
  color: #fff;
  font-size: clamp(42px, 7vw, 112px);
  line-height: .92;
  letter-spacing: -.055em;
  max-width: 12ch;
  font-weight: 700;
}

.hero-reel__heading em {
  color: var(--color-acid);
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: -.04em;
}

.hero-reel__subheading {
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  max-width: 36ch;
  margin-top: 1rem;
}

.hero-reel__cta-wrap {
  align-self: end;
}

/* ── Logo Rail ── */
.logo-rail {
  overflow: hidden;
  padding-block: clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--color-line);
}

.logo-rail__track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  width: max-content;
  will-change: transform;
}

.logo-rail__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.logo-rail__item img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: opacity .25s ease, filter .25s ease;
}

.logo-rail__item img:hover {
  filter: grayscale(0);
  opacity: .85;
}

/* ── Select Work / Case Grid ── */
.select-work {
  padding-block: var(--space-xl);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: var(--space-lg);
}

.case-card {
  display: flex;
  flex-direction: column;
  cursor: none;
}

.case-card__media {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
  aspect-ratio: 3 / 4;
}

.case-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform .65s cubic-bezier(.16,1,.3,1);
}

.case-card__body {
  padding: 1.25rem 0 0;
}

.case-card__eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: .5rem;
}

.case-card__title {
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.case-card__subtitle {
  margin-top: .375rem;
  font-size: .9375rem;
  opacity: .65;
}

/* ── Capabilities Stack ── */
.capabilities-stack {
  padding-block: var(--space-xl);
}

.capabilities-stack__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.capabilities-stack__rows {
  padding-top: var(--space-sm);
}

.capability-row {
  border-top: 1px solid var(--color-line);
  padding: clamp(24px, 3.5vw, 48px) 0;
  opacity: .5;
  transition: opacity .25s ease;
  cursor: default;
}

.capability-row:last-child {
  border-bottom: 1px solid var(--color-line);
}

.capability-row.is-active {
  opacity: 1;
}

.capability-row__eyebrow {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: .5rem;
}

.capability-row__title {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  transition: color .25s ease, font-family .25s ease;
}

.capability-row.is-active .capability-row__title {
  color: var(--color-blue);
  font-family: var(--font-serif);
  font-style: italic;
}

.capability-row__desc {
  margin-top: .75rem;
  font-size: 1rem;
  opacity: .7;
  max-width: 48ch;
  line-height: 1.6;
}

.capability-row__link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-top: 1rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--color-blue);
}

.capability-media-stack {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}

.capability-media {
  position: absolute;
  inset: 0;
  visibility: hidden;
}

.capability-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* ── Testimonial Panel ── */
.testimonial-panel {
  background: #080909;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 10vw, 140px) 0;
  clip-path: inset(0 0 0 0);
}

.testimonial-panel__circle {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(400px, 40vw, 700px);
  height: clamp(400px, 40vw, 700px);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

.testimonial-panel__body {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.testimonial-panel__quote-mark {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
  color: var(--color-acid);
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  display: block;
}

.testimonial-panel__quote {
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.testimonial-panel__attribution {
  margin-top: 2rem;
  font-size: 1rem;
  opacity: .6;
}

.testimonial-panel__attribution strong {
  display: block;
  font-weight: 600;
  opacity: 1;
}

/* ── Insights Grid ── */
.insights-grid {
  padding-block: var(--space-xl);
}

.insights-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
  margin-top: var(--space-lg);
}

.insight-card {
  display: flex;
  flex-direction: column;
}

.insight-card__media {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform .65s cubic-bezier(.16,1,.3,1);
}

.insight-card:hover .insight-card__media img {
  transform: scale(1.05);
}

.insight-card__body {
  padding: 1.25rem 0 0;
}

.insight-card__meta {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: .5rem;
}

.insight-card__title {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.insight-card__excerpt {
  margin-top: .5rem;
  font-size: .9375rem;
  opacity: .65;
  line-height: 1.55;
}

/* ── Custom Motion Cursor ── */
.motion-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: var(--color-blue);
  color: #fff;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(.4);
  font-size: 1.25rem;
  line-height: 1;
  will-change: transform;
}

.motion-cursor.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Page Transition Overlay ── */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--color-cream);
  pointer-events: none;
  opacity: 1;
  visibility: visible;
}

/* ── Section heading style ── */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-heading .eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: .75rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
}

.section-heading h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-blue);
}

/* ── Responsive overrides ── */
@media (max-width: 899px) {
  .motion-cursor {
    display: none;
  }

  .hero-reel__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .case-grid,
  .insights-grid__cards {
    grid-template-columns: 1fr;
  }

  .capabilities-stack__layout {
    grid-template-columns: 1fr;
  }

  .capability-media-stack {
    display: none;
  }

  .capability-row {
    opacity: 1;
  }
}

@media (min-width: 600px) and (max-width: 899px) {
  .case-grid,
  .insights-grid__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   21. CATALOG SYSTEM
   ========================================================================== */

/* ── Design tokens (catalog-specific) ── */
:root {
  --traco-navy: #061f35;
  --traco-blue: #1557ff;
  --traco-red: #c93a2f;
  --traco-ivory: #f6f4eb;
  --traco-border: rgba(6, 31, 53, 0.14);
  --color-accent-red: #c93a2f;
  --color-red-hover: #a32e24;
  --color-warm-white: #faf9f6;
  --shadow-card: 0 2px 16px rgba(0,0,0,.07);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,.13);
  --radius-card: 16px;
}

/* ── Catalog Hero ── */
.catalog-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--color-ink);
  padding-bottom: clamp(48px, 8vw, 96px);
}

.catalog-hero__media {
  position: absolute;
  inset: 0;
}

.catalog-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.catalog-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,28,51,.88) 30%, rgba(6,28,51,.3) 100%);
}

.catalog-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: end;
  gap: clamp(24px, 4vw, 60px);
}

.catalog-hero__heading {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.04em;
  color: #fff;
  margin: 1rem 0;
}

.catalog-hero__heading em {
  color: var(--color-acid);
  font-family: var(--font-serif);
  font-style: italic;
}

.catalog-hero__sub {
  color: rgba(255,255,255,.72);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 48ch;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.catalog-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalog-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
}

.catalog-hero__stats div {
  text-align: center;
}

.catalog-hero__stats dt {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--color-acid);
  line-height: 1;
}

.catalog-hero__stats dd {
  font-size: .8125rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .25rem;
}

/* ── Buttons — Red variant ── */
.button--red {
  background: var(--color-accent-red);
  color: #fff;
  border-color: var(--color-accent-red);
}

.button--red:hover,
.button--red:focus-visible {
  background: var(--color-red-hover);
  border-color: var(--color-red-hover);
}

/* ── Section heading subtitle ── */
.section-heading__sub {
  font-size: 1.0625rem;
  opacity: .65;
  max-width: 56ch;
  margin: .75rem auto 0;
  line-height: 1.6;
}

/* ── Catalog filter pills ── */
.catalog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.catalog-filter__pill {
  padding: .4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--color-line);
  background: transparent;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-ink);
  transition: background .2s, color .2s, border-color .2s;
  letter-spacing: .02em;
}

.catalog-filter__pill:hover,
.catalog-filter__pill.is-active {
  background: var(--color-ink);
  color: #fff;
  border-color: var(--color-ink);
}

/* ── Product grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.product-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s ease, transform .3s ease;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.product-card--chat-highlight {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: inherit;
  transition: outline .15s ease;
}

@media (prefers-reduced-motion: reduce) {
  .product-card--chat-highlight {
    transition: none;
  }
}

.product-card__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-gray);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

@media (hover: none) {
  .product-card:hover {
    box-shadow: var(--shadow-card);
    transform: none;
  }

  .product-card:active {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
  }

  .product-card:hover .product-card__media img {
    transform: none;
  }

  .product-card:active .product-card__media img {
    transform: scale(1.02);
  }
}

.product-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__mfr {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-red);
  margin-bottom: .375rem;
}

.product-card__title {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .25rem;
}

.product-card__cat {
  font-size: .75rem;
  opacity: .5;
  margin-bottom: .625rem;
}

.product-card__desc {
  font-size: .9375rem;
  opacity: .72;
  line-height: 1.55;
  flex: 1;
}

.product-card__features {
  list-style: none;
  margin: .75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.product-card__features li {
  font-size: .8125rem;
  padding-left: 1rem;
  position: relative;
  opacity: .7;
}

.product-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-red);
}

.product-card__parts-tag {
  display: inline-block;
  margin-top: .625rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: rgba(0,71,255,.08);
  padding: .2rem .6rem;
  border-radius: 100px;
}

.product-card__actions {
  display: flex;
  gap: .625rem;
  margin-top: 1rem;
  align-items: stretch;
}

.product-card__actions .button {
  flex: 1;
  text-align: center;
  justify-content: center;
  font-size: .875rem;
  padding: .5rem .75rem;
  min-height: 44px;
  border: 1px solid transparent;
  box-sizing: border-box;
}

/* Secondary: Parts Inquiry (navy outline / soft fill) */
.product-card .button--parts-inquiry,
.product-card .parts-inquiry-button,
.product-card [data-action="order-parts"] {
  background: rgba(6, 31, 53, 0.04);
  color: var(--traco-navy);
  border-color: rgba(6, 31, 53, 0.18);
  box-shadow: none;
  font-weight: 600;
}

.product-card .button--parts-inquiry:hover,
.product-card .parts-inquiry-button:hover,
.product-card [data-action="order-parts"]:hover,
.product-card .button--parts-inquiry:focus-visible,
.product-card .parts-inquiry-button:focus-visible,
.product-card [data-action="order-parts"]:focus-visible {
  background: var(--traco-navy);
  color: var(--traco-ivory);
  border-color: var(--traco-navy);
  box-shadow: none;
}

/* Primary quote CTA on cards */
.product-card .button-quote,
.product-card .button--red,
.product-card [data-action="quote"] {
  background: var(--traco-red);
  color: #fff;
  border-color: var(--traco-red);
  font-weight: 700;
}

.product-card .button-quote:hover,
.product-card .button--red:hover,
.product-card [data-action="quote"]:hover,
.product-card .button-quote:focus-visible,
.product-card .button--red:focus-visible,
.product-card [data-action="quote"]:focus-visible {
  background: var(--color-red-hover);
  border-color: var(--color-red-hover);
  color: #fff;
}

.product-card__actions a:focus-visible,
.product-card__actions button:focus-visible {
  outline: 3px solid rgba(21, 87, 255, 0.35);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .product-card__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .product-card__actions .button {
    width: 100%;
    min-height: 46px;
  }
}

/* ── Parts section ── */
.parts-finder__controls {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.parts-finder__search {
  flex: 1;
  min-width: 220px;
  padding: .75rem 1rem;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-sans);
  background: #fff;
  transition: border-color .2s;
}

.parts-finder__search:focus {
  outline: none;
  border-color: var(--color-blue);
}

.parts-finder__select {
  padding: .75rem 1rem;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  font-size: .9375rem;
  font-family: var(--font-sans);
  background: #fff;
  cursor: pointer;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.part-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}

.part-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.part-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-gray);
}

.part-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  display: block;
}

.part-card__media--no-img {
  background: var(--color-gray);
}

.part-card__body {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.part-card__mfr {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-red);
  margin-bottom: .25rem;
}

.part-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .375rem;
}

.part-card__models {
  font-size: .8125rem;
  opacity: .55;
  margin-bottom: .625rem;
}

.part-card__parts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  margin-bottom: .625rem;
  flex: 1;
}

.part-card__parts li {
  font-size: .875rem;
  opacity: .75;
  padding-left: 1rem;
  position: relative;
}

.part-card__parts li::before {
  content: '·';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-accent-red);
}

.part-card__more {
  opacity: .45;
  font-style: italic;
}

.part-card__note {
  font-size: .8125rem;
  opacity: .5;
  margin-bottom: .875rem;
  line-height: 1.45;
}

.part-card__actions {
  display: flex;
  gap: .5rem;
}

.part-card__actions .button {
  flex: 1;
  font-size: .875rem;
  padding: .5rem .75rem;
  text-align: center;
}

.parts-finder__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.parts-finder__cta p {
  flex: 1;
  font-weight: 600;
  font-size: 1.0625rem;
}

.parts-finder__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  font-size: 1.0625rem;
  opacity: .65;
  line-height: 1.8;
}

/* ── Can't find it section ── */
.cant-find-section {
  background: var(--color-cream);
}

.cant-find__inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.cant-find__inner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: .75rem 0 1.25rem;
}

.cant-find__inner h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent-red);
}

.cant-find__body {
  font-size: 1.0625rem;
  opacity: .72;
  line-height: 1.65;
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.cant-find__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Quote section ── */
.quote-section {
  background: var(--color-ink);
  color: #fff;
  text-align: center;
}

.quote-section .eyebrow {
  color: var(--color-acid);
}

.quote-section h2 {
  color: #fff;
}

.quote-section h2 em {
  color: var(--color-acid);
  font-family: var(--font-serif);
  font-style: italic;
}

.quote-section__sub {
  color: rgba(255,255,255,.65);
  font-size: 1.0625rem;
  max-width: 48ch;
  margin: .75rem auto 2rem;
}

/* ── AI section ── */
.ai-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: clamp(16px, 2vw, 32px);
}

.ai-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.ai-card--staff {
  border: 2px solid var(--color-blue);
}

.ai-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.ai-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .625rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.ai-card__desc {
  font-size: .9375rem;
  opacity: .7;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 100px;
}

.badge--staff {
  background: rgba(0,71,255,.1);
  color: var(--color-blue);
}

.chatbot-placeholder {
  background: var(--color-cream);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.chatbot-placeholder__msg {
  opacity: .65;
  font-size: .9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.chatbot-placeholder--staff {
  background: rgba(0,71,255,.05);
}

/* ── About section ── */
.about-section {
  background: var(--color-warm-white);
}

.about-section__intro {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.about-section__intro h2 {
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin: .75rem 0 1.25rem;
}

.about-section__intro h2 em {
  color: var(--color-accent-red);
  font-family: var(--font-serif);
  font-style: italic;
}

.about-section__intro p {
  font-size: 1.0625rem;
  opacity: .8;
  line-height: 1.65;
  margin-bottom: 1rem;
  text-align: left;
}

.about-section__intro .about-section__values {
  text-align: left;
}

.about-section__subsection-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--color-navy);
  margin: 0 0 1rem;
  text-align: center;
}

.about-authority,
.about-story,
.about-solves,
.traco-leadership-spotlight,
.about-trust {
  max-width: 1100px;
  margin-inline: auto;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
}

.about-authority__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.15rem;
}

.about-authority__item {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(6, 28, 51, 0.07);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Fills the “gap” beside the two cards in row 2 (two columns wide on a 4-col grid) */
.about-authority__item--wide {
  grid-column: span 2;
}

.about-authority__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  line-height: 1.2;
}

.about-authority__desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-muted, #6e6e68);
}

@media (max-width: 960px) {
  .about-authority__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-authority__item--wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .about-authority__grid {
    grid-template-columns: 1fr;
  }

  .about-authority__item--wide {
    grid-column: auto;
  }
}

.about-story__prose {
  max-width: 720px;
  margin-inline: auto;
}

.about-story__prose p {
  font-size: 1.02rem;
  line-height: 1.68;
  opacity: 0.88;
  margin: 0 0 1rem;
}

.about-story__kicker {
  font-weight: 700;
  color: var(--color-navy);
  opacity: 1 !important;
  margin-bottom: 0 !important;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(6, 28, 51, 0.1);
}

.about-solves__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.about-solves__card {
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(6, 28, 51, 0.07);
}

.about-solves__card h4 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.55rem;
  color: var(--color-navy);
  line-height: 1.25;
}

.about-solves__card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.82;
}

/* ── Leadership spotlight (shared bio panel + equal tiles) ── */
.traco-leadership-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.traco-leadership-spotlight__title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--color-navy);
  margin: 0.5rem 0 0;
}

.traco-leadership-grid {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.traco-leader-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

.traco-leader-tile {
  appearance: none;
  margin: 0;
  padding: 0.65rem 0.65rem 0.85rem;
  border: 2px solid rgba(6, 28, 51, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(6, 28, 51, 0.06);
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease;
}

.traco-leader-tile:hover {
  border-color: rgba(201, 162, 39, 0.45);
}

.traco-leader-tile:focus {
  outline: none;
}

.traco-leader-tile:focus-visible {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 6px rgba(0, 71, 255, 0.35),
    0 8px 24px rgba(6, 28, 51, 0.1);
}

.traco-leader-tile.is-active {
  border-color: rgba(201, 162, 39, 0.85);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.35),
    0 14px 36px rgba(6, 28, 51, 0.12);
}

.traco-leader-tile:not(.is-active) {
  opacity: 0.82;
}

.traco-leader-tile:not(.is-active):hover {
  opacity: 0.95;
}

.traco-leader-image {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(145deg, #f5f1e8, #ebe6dc);
}

.traco-leader-image--contain {
  background-color: #f0ebe2;
}

.traco-leader-image__blur {
  position: absolute;
  inset: -10px;
  background-image: var(--traco-leader-bg, none);
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  opacity: 0.5;
  transform: scale(1.06);
  pointer-events: none;
}

/* Duo photo: cover fills the frame (no side gaps); blur layer still softens edges */
.traco-leader-image--contain img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.traco-leader-image--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.traco-leader-name {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  line-height: 1.2;
}

.traco-leader-role {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  line-height: 1.35;
}

.traco-leader-panel {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.15rem, 2.5vw, 1.65rem) clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(6, 28, 51, 0.08);
  box-shadow: 0 10px 32px rgba(6, 28, 51, 0.08);
}

.traco-panel-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.4rem;
}

.traco-leader-panel__name {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-navy);
  margin: 0 0 0.35rem;
  line-height: 1.1;
}

.traco-profile-role {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
  line-height: 1.45;
}

.traco-profile-bio {
  min-height: 11.5rem;
}

.traco-profile-bio-inner {
  min-height: 10rem;
  transition: opacity 0.22s ease;
}

.traco-profile-bio-inner p {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--color-ink);
  opacity: 0.9;
}

.traco-profile-bio-inner p:last-child {
  margin-bottom: 0;
}

.traco-profile-footer {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(6, 28, 51, 0.1);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

@media (prefers-reduced-motion: reduce) {
  .traco-leader-tile,
  .traco-profile-bio-inner {
    transition: none;
  }
}

@media (max-width: 899px) {
  .traco-leader-tiles {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }
}

.about-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.about-trust__card {
  background: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(6, 28, 51, 0.07);
}

.about-trust__card h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-navy);
  margin: 0 0 0.55rem;
  line-height: 1.25;
}

.about-trust__card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--color-muted, #6e6e68);
}

@media (max-width: 899px) {
  .about-solves__grid {
    grid-template-columns: 1fr;
  }

  .about-trust__grid {
    grid-template-columns: 1fr;
  }

  .contact-card--actions .contact-card__actions .button {
    width: 100%;
  }
}

.about-section__values {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem;
}

.about-section__values li {
  font-size: .9375rem;
  font-weight: 500;
  padding-left: 1.5rem;
  position: relative;
}

.about-section__values li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-red);
}

/* ── Contact section ── */
.contact-section__inner h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  text-align: center;
  margin: .75rem 0 2rem;
}

.contact-section__inner h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-accent-red);
}

.contact-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(6, 28, 51, 0.72);
  margin: 0 0 .875rem;
  line-height: 1.25;
}

.contact-card__lead {
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.82;
  margin: 0 0 1rem;
}

.contact-card--actions .contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.contact-card--actions .contact-card__actions .button {
  flex: 1 1 auto;
  min-width: 132px;
  text-align: center;
  text-decoration: none;
  justify-content: center;
}

.contact-card__address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.contact-card p,
.contact-card address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-card a:not(.button):not(.map-link) {
  font-weight: 600;
  color: var(--color-accent-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Product/Part popout ── */
.catalog-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.catalog-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.catalog-popout {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: #fff;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  border-radius: 20px 20px 0 0;
  padding: 2rem;
  max-height: 92vh;
  top: auto;
  bottom: 0;
}

.catalog-popout.is-open {
  transform: translateY(0);
}

@media (min-width: 900px) {
  .catalog-popout {
    left: min(3.5vw, 2rem);
    right: min(3.5vw, 2rem);
    width: auto;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.75rem 2rem 2rem;
    max-height: min(92vh, 980px);
  }
}

.popout__close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-gray);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.popout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin-top: .5rem;
  align-items: start;
}

.popout__media {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

/* Product popout gallery — full-bleed visuals, no cropping */
.popout-gallery {
  width: 100%;
  min-width: 0;
}

.popout-gallery__stage {
  width: 100%;
}

.popout-gallery__zoom-root {
  position: relative;
  width: 100%;
}

.popout-gallery:not(.popout-gallery--zoom-capable) .popout-gallery__zoom-root {
  cursor: default;
}

.popout-gallery--zoom-capable .popout-gallery__zoom-root {
  cursor: zoom-in;
}

.popout-gallery__frame {
  position: relative;
  width: 100%;
  min-height: clamp(300px, 44vh, 540px);
  max-height: min(560px, 54vh);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.5rem, 1.2vw, 1rem);
  box-sizing: border-box;
  border-radius: 22px;
  background: #f8f8f6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.popout-gallery__img,
.catalog-popout .popout__img--primary {
  width: 100%;
  height: auto;
  max-height: min(520px, 50vh);
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 14px;
  background: transparent;
}

.popout-zoom__lens {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  opacity: 0;
  z-index: 3;
  background-repeat: no-repeat;
  will-change: opacity, left, top;
}

.popout-gallery__zoom-hint {
  margin: 0.55rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.42;
  text-align: center;
  display: none;
}

.popout-gallery.popout-gallery--zoom-capable .popout-gallery__zoom-hint {
  display: block;
}

.popout-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.popout-gallery__thumb {
  flex: 0 0 auto;
  width: 4.75rem;
  height: 4.75rem;
  padding: 0.2rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.popout-gallery__thumb:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.popout-gallery__thumb.is-active {
  border-color: var(--color-accent-red);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.15);
}

.popout-gallery__thumb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .popout-gallery__zoom-root {
    cursor: default;
  }

  .popout-gallery.popout-gallery--zoom-capable .popout-gallery__zoom-hint {
    display: none;
  }

  .popout-zoom__lens {
    display: none;
  }
}

.popout__mfr {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent-red);
  margin-bottom: .375rem;
}

.popout__title {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: .375rem;
}

.popout__category {
  font-size: .875rem;
  opacity: .55;
  margin-bottom: 1rem;
}

.popout__body {
  font-size: .9375rem;
  line-height: 1.6;
}

.popout__body h4 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .45;
  margin: 1.25rem 0 .5rem;
}

.popout__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: .5rem;
}

.popout__list li {
  padding-left: 1rem;
  position: relative;
  font-size: .9rem;
  opacity: .75;
}

.popout__list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-accent-red);
  font-weight: 900;
}

.popout__contact {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--color-cream);
  border-radius: 10px;
  font-size: .9rem;
}

.popout__contact a {
  font-weight: 600;
  color: var(--color-accent-red);
}

.popout__variant {
  margin-bottom: 1rem;
}

.popout__variant select {
  width: 100%;
  padding: .6rem .875rem;
  border: 1.5px solid var(--color-line);
  border-radius: 8px;
  font-size: .9375rem;
  margin-top: .375rem;
}

.popout__footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
}

.popout__parts-link {
  color: var(--color-blue);
  font-weight: 600;
}

/* ── Quote Drawer ── */
.quote-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.quote-drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.quote-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1002;
  width: min(520px, 96vw);
  background: var(--color-warm-white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.16,1,.3,1);
  box-shadow: -8px 0 48px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
}

.quote-drawer.is-open {
  transform: translateX(0);
}

.quote-drawer__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
}

.quote-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--color-line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.quote-drawer__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.quote-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gray);
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-drawer__items {
  padding: 1rem 1.5rem;
  flex: 1;
}

.quote-drawer__empty {
  text-align: center;
  padding: 3rem 1rem;
  opacity: .6;
  font-size: .9375rem;
  line-height: 1.7;
}

.quote-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
}

.quote-item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.quote-item__img--placeholder {
  background: var(--color-gray);
}

.quote-item__name {
  font-weight: 600;
  font-size: .9375rem;
  margin-bottom: .125rem;
}

.quote-item__mfr {
  font-size: .75rem;
  color: #4a5568;
  margin-bottom: .625rem;
}

.quote-item__controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .375rem;
  margin-bottom: .5rem;
}

.quote-item__controls label,
.quote-drawer__form label {
  display: flex;
  flex-direction: column;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(6, 28, 51, 0.72);
  gap: .25rem;
}

.qi-qty,
.qi-condition,
.qi-urgency {
  padding: .35rem .5rem;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-size: .8125rem;
  font-family: var(--font-sans);
  background: #fff;
}

.qi-notes {
  width: 100%;
  padding: .375rem .625rem;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  font-size: .8125rem;
  font-family: var(--font-sans);
  resize: none;
  background: #fff;
  margin-bottom: .375rem;
}

.qi-remove {
  font-size: .75rem;
  background: none;
  border: none;
  color: var(--color-accent-red);
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

/* Quote form */
.quote-drawer__form {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.quote-drawer__form h3 {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(6, 28, 51, 0.72);
  margin: 0 0 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .75rem;
}

.quote-drawer__form label {
  display: flex;
  flex-direction: column;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(6, 28, 51, 0.72);
  gap: .3rem;
  margin-bottom: .75rem;
}

.quote-drawer__form input,
.quote-drawer__form select,
.quote-drawer__form textarea {
  padding: .6rem .75rem;
  border: 1.5px solid var(--color-line);
  border-radius: 8px;
  font-size: .9375rem;
  font-family: var(--font-sans);
  background: var(--color-warm-white);
  transition: border-color .2s;
}

.quote-drawer__form input:focus,
.quote-drawer__form select:focus,
.quote-drawer__form textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}

.form-error {
  color: var(--color-accent-red);
  font-size: .875rem;
  font-weight: 600;
  padding: .5rem;
  background: rgba(192,57,43,.07);
  border-radius: 6px;
  margin-top: .5rem;
}

.quote-drawer__submit {
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid var(--color-line);
  background: var(--color-warm-white);
  position: sticky;
  bottom: 0;
}

.quote-drawer__submit .button {
  width: 100%;
  justify-content: center;
}

.quote-drawer__privacy {
  font-size: .75rem;
  opacity: .5;
  text-align: center;
  margin-top: .625rem;
}

.quote-drawer__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 100vh;
}

.quote-drawer__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #27ae60;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.quote-drawer__success h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: .75rem;
}

.quote-drawer__success p {
  opacity: .7;
  margin-bottom: 2rem;
}

/* ── Floating quote basket FAB ── */
.basket-float {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 2rem;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1.25rem;
  background: var(--color-accent-red);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(192,57,43,.35);
  transition: transform .25s, box-shadow .25s;
}

.basket-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(192,57,43,.45);
}

.basket-float.pulse .basket-badge {
  animation: badge-pop .35s cubic-bezier(.16,1,.3,1);
}

@keyframes badge-pop {
  0%  { transform: scale(1); }
  50% { transform: scale(1.5); }
  100%{ transform: scale(1); }
}

.basket-badge {
  background: var(--color-acid);
  color: var(--color-ink);
  font-size: .6875rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.nav-badge {
  background: var(--color-acid);
  color: var(--color-ink);
  margin-left: .25rem;
}

/* prevent scroll when drawers open */
body.drawer-open,
body.popout-open {
  overflow: hidden;
}

/* ── Nav CTA ── */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.nav-quote-btn {
  font-size: .875rem;
  padding: .45rem 1rem;
}

/* ── Catalog hero responsive ── */
@media (max-width: 899px) {
  .catalog-hero__content {
    grid-template-columns: 1fr;
  }

  .catalog-hero__stats {
    display: none;
  }

  .catalog-hero__ctas {
    flex-direction: column;
  }

  .catalog-hero__ctas .button {
    width: 100%;
    text-align: center;
  }

  .contact-section__grid {
    grid-template-columns: 1fr;
  }

  .popout__layout {
    grid-template-columns: 1fr;
  }

  .popout-gallery__frame {
    min-height: clamp(220px, 52vw, 400px);
    max-height: min(440px, 50vh);
  }

  .popout-gallery__img,
  .catalog-popout .popout__img--primary {
    max-height: min(360px, 48vh);
  }

  .popout-gallery__thumb {
    width: 4.25rem;
    height: 4.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .parts-finder__controls {
    flex-direction: column;
  }

  .basket-float__label {
    display: none;
  }

  .basket-float {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .basket-float svg {
    flex-shrink: 0;
  }

  .basket-float .basket-badge {
    position: absolute;
    top: -4px;
    right: -4px;
  }
}

/* ==========================================================================
   22. POST-LAUNCH REVISIONS — buttons, fan-stats, chatbot, footer reveal,
       cursor-letters, contact tilt, in-popout order form, footer cleanup.
   ========================================================================== */

/* ── Button variants (missing) ─────────────────────────────────────────── */
.button--ghost {
  color: var(--color-navy);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--color-navy);
}
.button--ghost:hover {
  background: var(--color-navy);
  color: #fff;
  transform: translateY(-2px);
}

.button--ghost-light {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4);
}
.button--ghost-light:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

.button--blue {
  color: #fff;
  background: var(--color-blue);
}
.button--blue:hover {
  background: #0035c4;
  box-shadow: 0 8px 24px rgba(0,71,255,.32);
  transform: translateY(-2px);
}

/* ── Hero stats: 5-up, fanning down on load ────────────────────────────── */
.catalog-hero__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  background: rgba(8, 18, 35, .55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  backdrop-filter: blur(6px);
  align-self: end;
  perspective: 1200px;
}
.catalog-hero__stats div {
  text-align: center;
  transform-origin: top right;
}
.catalog-hero__stats dt {
  display: block;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
}
.catalog-hero__stats dt .stat-suffix {
  color: var(--color-blue);
  margin-left: 1px;
}
.catalog-hero__stats dd {
  margin: .5rem 0 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  line-height: 1.3;
}
@media (max-width: 899px) {
  .catalog-hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 540px) {
  .catalog-hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem .5rem;
  }
}

/* ── Catalog filter labels + secondary mfr row ─────────────────────────── */
.catalog-filter-label {
  font-family: var(--font-sans, "Inter Tight", "Instrument Sans", system-ui, sans-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #111;
  text-align: center;
  margin: 28px 0 14px;
}

.catalog-filter-label--brand {
  margin-top: 18px;
}

.catalog-filter-label:first-of-type {
  margin-top: 8px;
}

.catalog-filter--top {
  margin-bottom: .5rem;
}
.catalog-filter--mfr {
  margin-top: 0;
  opacity: .85;
}
.catalog-filter--mfr .catalog-filter__pill--mfr {
  font-size: .7875rem;
  padding: .45rem 1rem;
}

/* ── Cursor-reactive heading letters ───────────────────────────────────── */
.cursor-letters {
  display: inline-block;
}
.cursor-letters .letter {
  display: inline-block;
  will-change: transform;
  transform-origin: 50% 100%;
}

/* ── Contact card: maps + tilt ──────────────────────────────────────────── */
.contact-card {
  transform-style: preserve-3d;
  transition: box-shadow .35s ease;
}
.contact-card:hover {
  box-shadow: 0 14px 36px rgba(6,28,51,.12);
}
.contact-card__maps {
  margin-top: .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.contact-card__maps .map-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-navy);
  transition: background .25s ease, transform .25s ease, color .25s ease;
  text-decoration: none;
}
.contact-card__maps .map-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.contact-card__maps .map-link__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}
.contact-card__maps .map-link:hover {
  background: var(--color-navy);
  color: #fff;
  transform: translateY(-1px);
}

.contact-section__cta {
  margin-top: var(--space-md);
  display: flex;
  justify-content: center;
}

/* ── Cant-find buttons row balance ─────────────────────────────────────── */
.cant-find__ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Order-Parts form rendered inside the popout ────────────────────────── */
.popout__order-parts-heading {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
  opacity: 1 !important;
  margin: 1.75rem 0 .25rem !important;
  color: var(--color-navy);
}
.popout__order-parts-heading em {
  color: var(--traco-blue);
  font-style: italic;
}
.popout__order-parts-sub {
  font-size: .85rem;
  opacity: .65;
  margin-bottom: 1rem;
}

.parts-pick-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  margin-bottom: 1.25rem;
  max-height: 320px;
  overflow-y: auto;
  padding: .5rem;
  background: #fafaf7;
  border: 1px solid var(--color-line);
  border-radius: 10px;
}
.parts-pick {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .9rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  transition: border-color .2s, background .2s;
}
.parts-pick:hover {
  border-color: var(--traco-blue);
  background: rgba(21, 87, 255, 0.04);
}
.parts-pick input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--traco-blue);
  flex-shrink: 0;
}

.order-parts-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .75rem;
}
.order-parts-form label.full {
  display: block;
}
.order-parts-form label {
  display: flex;
  flex-direction: column;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: transparent; /* hide visible label, rely on placeholder text */
  margin-bottom: 0;
}
.order-parts-form label.full {
  color: rgba(0,0,0,.55);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.order-parts-form label.full textarea {
  margin-top: .35rem;
}
.order-parts-form input,
.order-parts-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit;
  font-size: .9rem;
  color: var(--color-navy);
  background: #f5f3ec;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: border-color .2s, background .2s;
}
.order-parts-form input:focus,
.order-parts-form textarea:focus {
  outline: none;
  border-color: var(--traco-blue);
  background: #fff;
}
.order-parts-form textarea {
  min-height: 80px;
  resize: vertical;
}
.order-parts-form__heading {
  font-size: .72rem !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  margin: 1.25rem 0 .85rem !important;
  opacity: .55;
  color: var(--color-navy);
}
.order-parts-form__notice {
  margin: 1.25rem 0;
  padding: .85rem 1rem;
  background: rgba(21, 87, 255, 0.06);
  border: 1px solid rgba(21, 87, 255, 0.18);
  border-radius: 8px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--traco-navy);
}
.order-parts-form__notice strong {
  color: var(--traco-navy);
}
.order-parts-form__submit {
  width: 100%;
  margin-top: .5rem;
  padding: 1.05rem;
  font-size: 1rem;
}
.order-parts-form__contact {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-line);
  text-align: center;
  font-size: .84rem;
  color: rgba(0,0,0,.6);
  line-height: 1.6;
}
.order-parts-form__contact a {
  color: var(--color-accent-red);
  font-weight: 600;
}
.order-parts-form__small {
  font-size: .75rem !important;
  font-style: italic;
  opacity: .65;
  margin-top: .5rem !important;
}
.form-status {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: 8px;
  font-size: .9rem;
  text-align: center;
}
.form-status.is-success {
  background: #e8f7ef;
  color: #1f6d3f;
  border: 1px solid #b8e0c8;
}
.form-status.is-error {
  background: #fdecec;
  color: #8a2222;
  border: 1px solid #f3c2c2;
}

.catalog-popout .popout__media {
  align-self: start;
  position: sticky;
  top: 0;
}

@media (max-width: 899px) {
  .catalog-popout .popout__media {
    position: relative;
  }
}

/* ── Chatbot popout ────────────────────────────────────────────────────── */
.chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(6, 28, 51, .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.chat-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.chat-popout {
  position: fixed;
  z-index: 1110;
  right: 24px;
  bottom: 24px;
  width: min(440px, calc(100vw - 48px));
  max-height: min(640px, calc(100vh - 32px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(.96);
  opacity: 0;
  visibility: hidden;
  transition:
    transform .35s cubic-bezier(.16,1,.3,1),
    opacity .3s ease,
    visibility .3s;
}
.chat-popout.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.chat-popout__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid var(--color-line);
}
.chat-popout__eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 .15rem;
}
.chat-popout__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -.01em;
  margin: 0;
}
.chat-popout__close {
  width: 34px;
  height: 34px;
  border: none;
  background: var(--color-cream);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-navy);
}
.chat-popout__close:hover {
  background: var(--color-gray);
}
.chat-popout__thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  scroll-behavior: smooth;
}
.chat-popout__attach-hint {
  margin: 0;
  padding: 0 1.25rem .5rem;
  font-size: .68rem;
  line-height: 1.45;
  color: rgba(6, 28, 51, .58);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.chat-popout__previews {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  padding: 0 1.25rem .5rem;
  max-height: 88px;
  overflow-x: auto;
  overflow-y: hidden;
}
.chat-preview {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(6, 28, 51, .12);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.chat-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.chat-preview__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 999px;
  background: rgba(6, 28, 51, .78);
  color: #fff;
  font-size: .95rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.chat-preview__remove:hover {
  background: var(--color-navy);
}
.chat-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.chat-popout__form {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  padding: .75rem 1.25rem .65rem;
  border-top: 1px solid var(--color-line);
  background: #fafafa;
}
.chat-popout__inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
}
.chat-popout__toolbar {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.chat-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 71, 255, .35);
  background: #fff;
  color: var(--color-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s, color .2s, border-color .2s;
}
.chat-icon-btn:hover {
  background: var(--color-blue);
  color: #fff;
  border-color: var(--color-blue);
}
.chat-popout__form textarea {
  flex: 1;
  resize: none;
  font: inherit;
  font-size: .92rem;
  padding: .7rem .9rem;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  min-height: 44px;
  max-height: 100px;
  background: #fff;
  width: 100%;
}
.chat-popout__form textarea:focus {
  outline: none;
  border-color: var(--color-blue);
}
.chat-msg p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  padding: .7rem .95rem;
  border-radius: 14px;
  word-wrap: break-word;
}
.chat-msg p + p {
  margin-top: .35rem;
}
.chat-msg--bot p {
  background: #f3f4f8;
  color: var(--color-navy);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  max-width: 92%;
}
.chat-msg--user {
  display: flex;
  justify-content: flex-end;
}
.chat-msg--user p {
  background: var(--color-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
  max-width: 88%;
}
.chat-msg--user a { color: #cfe0ff; }
.chat-msg--bot a { color: var(--color-blue); font-weight: 600; }
.chat-msg--bot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  max-width: 100%;
}
.chat-msg__catalog-btn {
  flex-shrink: 0;
  margin: 0 0 .1rem;
  padding: .42rem .95rem;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: var(--color-blue);
  border: 1px solid rgba(0, 71, 255, .35);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 35, 120, .12);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.chat-msg__catalog-btn:hover {
  background: #0030c9;
}
.chat-msg__catalog-btn:focus {
  outline: none;
}
.chat-msg__catalog-btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}
.chat-msg__catalog-btn:active {
  transform: translateY(1px);
}
.chat-msg--typing p {
  display: inline-flex;
  gap: 4px;
  padding: .7rem .9rem;
}
.chat-msg--typing span {
  width: 6px;
  height: 6px;
  background: var(--color-navy);
  border-radius: 50%;
  opacity: .45;
  animation: chat-dot 1s infinite ease-in-out;
}
.chat-msg--typing span:nth-child(2) { animation-delay: .15s; }
.chat-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot {
  0%, 80%, 100% { transform: scale(.6); opacity: .35; }
  40%           { transform: scale(1);  opacity: .9;  }
}
.chat-popout__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: 0 1.25rem .5rem;
}
.chat-chip {
  padding: .4rem .8rem;
  font-size: .76rem;
  font-weight: 500;
  background: var(--color-cream);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  cursor: pointer;
  color: var(--color-navy);
  transition: background .2s, transform .2s;
}
.chat-chip:hover {
  background: var(--color-blue);
  color: #fff;
  transform: translateY(-1px);
}
.chat-send-btn {
  padding: .65rem 1.1rem;
  font-size: .85rem;
  border-radius: 999px;
  flex-shrink: 0;
}
.chat-popout__footnote {
  margin: 0;
  padding: .55rem 1.25rem .85rem;
  font-size: .72rem;
  color: rgba(0,0,0,.55);
  text-align: center;
  background: #fafafa;
  border-radius: 0 0 18px 18px;
}
.chat-popout__footnote a {
  color: var(--color-navy);
  font-weight: 600;
}
body.chat-open { overflow: hidden; }

/* ── Floating chat button ──────────────────────────────────────────────── */
.chat-float {
  position: fixed;
  z-index: 990;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: var(--color-blue);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0,71,255,.32);
  transition: transform .25s ease, box-shadow .25s ease;
}
.chat-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,71,255,.4);
}
@media (max-width: 700px) {
  .chat-float,
  .basket-float {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
  }

  .chat-float {
    left: 14px !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  .basket-float {
    right: 14px !important;
  }

  .chat-float__label {
    display: none !important;
  }

  .basket-float svg {
    flex-shrink: 0;
  }

  .basket-float .basket-badge {
    position: absolute;
    top: -4px;
    right: -4px;
  }
}

/* ── Footer rebuild ────────────────────────────────────────────────────── */
.footer-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-strip__heading {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: -.01em;
}
.footer-strip__sub {
  margin: .25rem 0 0;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
}
.footer-strip__actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}

/* Full-bleed lane — giant TRACO + signature row; escapes .container so the O isn’t clipped */
.footer-wordmark-wrap {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}

.footer-wordmark-signature,
.footer-wordmark-medical {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: right;
  font-family: "Fraunces", "Source Serif 4", "Bodoni Moda", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.8vw, 3.1rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.055em;
  color: rgba(246, 244, 235, 0.62);
  text-shadow: 0 12px 46px rgba(21, 87, 255, 0.12);
  user-select: none;
  pointer-events: none;
  text-transform: none;
  margin-bottom: clamp(4px, 1vw, 16px);
  padding-right: clamp(18px, 4vw, 72px);
  box-sizing: border-box;
}

.footer-wordmark,
.traco-footer-mark,
.footer-brand-giant {
  --footer-wordmark-x: 0vw;
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 0;
  padding-block: clamp(0.5rem, 2vw, 1.5rem);
  min-height: 0.82em;
  text-align: center;
  pointer-events: none;
  user-select: none;
  font-family: "Bodoni Moda", "Libre Bodoni", "Cormorant Garamond", "Bodoni 72", Didot, Georgia, serif;
  font-size: clamp(8rem, 25vw, 28rem);
  font-weight: 800;
  line-height: 0.72;
  letter-spacing: -0.105em;
  text-transform: uppercase;
  white-space: nowrap;
  font-optical-sizing: auto;
  text-shadow: 0 20px 80px rgba(21, 87, 255, 0.18);
  transform: translateX(var(--footer-wordmark-x)) translateY(72px) scale(0.96);
  opacity: 0.72;
  transition:
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 900ms ease,
    letter-spacing 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-wordmark.is-near,
.traco-footer-mark.is-near,
.footer-brand-giant.is-near {
  transform: translateX(var(--footer-wordmark-x)) translateY(0) scale(1);
  opacity: 1;
  letter-spacing: -0.115em;
}

.footer-wordmark__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  text-shadow: inherit;
}
.footer-wordmark__text--outline {
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 244, 235, 0.28);
  text-shadow: none;
}
.footer-wordmark__text--fill {
  z-index: 1;
  color: rgba(246, 244, 235, 0.96);
  -webkit-text-stroke: 0;
}

@media (max-width: 700px) {
  .footer-wordmark-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-wordmark-signature,
  .footer-wordmark-medical {
    font-size: clamp(1rem, 5vw, 1.7rem);
    text-align: right;
    padding-right: 18px;
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-wordmark,
  .traco-footer-mark,
  .footer-brand-giant {
    transform: none;
    opacity: 1;
    transition: none;
    letter-spacing: -0.115em;
  }
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
/* Tighten a couple of section paddings now that we're more compact */
.cant-find-section,
.contact-section { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.about-section   { padding-bottom: var(--space-md); }

/* Mobile chat popout polish */
@media (max-width: 540px) {
  .chat-popout {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: 80vh;
  }
}

/* ==========================================================================
   Front page — cinematic hero (32:9), stats strip
   ========================================================================== */

.catalog-hero--ken-only {
  min-height: 0;
  padding-bottom: 0;
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  overflow: visible;
}

.catalog-hero--ken-only > .catalog-hero__cinematic {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--color-ink, #061c33);
}

.catalog-hero--ken-only .catalog-hero__media.hero-cinematic-media,
.hero-cinematic-media {
  aspect-ratio: 32 / 9;
  width: 100%;
  max-height: min(58vh, 780px);
  overflow: hidden;
  border-radius: 0;
  position: relative;
  margin: 0 auto;
}

.catalog-hero--ken-only .catalog-hero__media {
  position: relative;
  inset: auto;
}

/* Panoramic Ken art: zoomed out slightly + anchor higher so hair/head stay in frame */
.catalog-hero--ken-only .hero-cinematic-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 4%;
  transform: scale(0.88);
  transform-origin: 78% 12%;
  display: block;
}

.catalog-hero--ken-only .catalog-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(6, 28, 51, 0.55) 0%,
    rgba(6, 28, 51, 0.18) 45%,
    rgba(6, 28, 51, 0.12) 100%
  );
}

@media (max-width: 768px) {
  .catalog-hero--ken-only .catalog-hero__media.hero-cinematic-media,
  .hero-cinematic-media {
    aspect-ratio: 16 / 9;
    max-height: min(44vh, 400px);
  }

  .catalog-hero--ken-only .hero-cinematic-media img {
    object-fit: cover;
    object-position: 86% 18%;
    transform: scale(0.88);
    transform-origin: 86% 22%;
  }
}

@media (max-width: 700px) {
  .catalog-hero--ken-only .catalog-hero__media.hero-cinematic-media,
  .hero-cinematic-media {
    aspect-ratio: 4 / 3;
    max-height: min(46vh, 420px);
  }

  .catalog-hero--ken-only .hero-cinematic-media img {
    object-position: 84% 20%;
    transform: scale(0.86);
    transform-origin: 84% 28%;
  }

  .catalog-hero--ken-only .catalog-hero__overlay {
    background: linear-gradient(
      to top,
      rgba(6, 28, 51, 0.93) 0%,
      rgba(6, 28, 51, 0.42) 50%,
      rgba(6, 28, 51, 0.15) 100%
    );
  }

  .hero-heading-cinematic {
    max-width: none;
    padding-left: 0;
    padding-inline: 20px;
  }

  .hero-heading-cinematic__line1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
    line-height: 0.9;
  }

  .hero-heading-cinematic__line2 {
    font-size: clamp(1.75rem, 10vw, 3.2rem);
    margin-top: 0.12em;
  }
}

.catalog-hero--ken-only .catalog-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-width: 100%;
  padding: 0 0 clamp(1rem, 3.5vw, 2.75rem);
  display: block;
  pointer-events: none;
}

.catalog-hero--ken-only .catalog-hero__content .hero-heading-cinematic {
  pointer-events: none;
}

.hero-heading-cinematic {
  margin: 0;
  max-width: 22ch;
  padding-left: clamp(12px, 3vw, 0);
}

.hero-heading-cinematic__line1 {
  display: block;
  font-family: var(--font-sans, "Inter Tight", "Instrument Sans", system-ui, sans-serif);
  font-size: clamp(1.85rem, 4.8vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #fff;
  text-shadow: 0 2px 28px rgba(6, 28, 51, 0.35);
}

.hero-heading-cinematic__line2 {
  display: block;
  margin-top: 0.2em;
  font-size: clamp(1.75rem, 4.4vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #cce88a;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.2);
}

.hero-accent-serif {
  font-family: var(--font-serif, "Fraunces", Georgia, serif) !important;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #c4e07a;
  text-shadow:
    0 0 20px rgba(196, 224, 122, 0.35),
    0 2px 18px rgba(6, 28, 51, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  .hero-accent-serif {
    text-shadow: 0 2px 12px rgba(6, 28, 51, 0.2);
  }
}

.catalog-products-sentinel {
  height: 1px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Hash jumps: GSAP hides [data-reveal] kids until ScrollTrigger; unhide anchored blocks */
#catalog[data-reveal]:target > *,
#about:target .about-section__intro > *,
#about:target .about-section [data-reveal="text"] > *,
#contact:target .contact-section__inner > * {
  opacity: 1 !important;
  transform: none !important;
}

.catalog-stats-strip {
  background: var(--color-warm-white, #faf9f6);
  border-bottom: 1px solid rgba(6, 28, 51, 0.08);
  padding: clamp(1.25rem, 3vw, 2rem) 0;
  overflow: hidden;
}

.catalog-stats-strip__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin: 0;
  text-align: center;
}

.catalog-stats-strip__stats div {
  padding: 0.75rem 0.35rem;
  opacity: 0;
  transform: translateY(24px);
  animation: statsGlideIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.catalog-stats-strip__stats div:nth-child(1) { animation-delay: 0.15s; }
.catalog-stats-strip__stats div:nth-child(2) { animation-delay: 0.25s; }
.catalog-stats-strip__stats div:nth-child(3) { animation-delay: 0.35s; }
.catalog-stats-strip__stats div:nth-child(4) { animation-delay: 0.45s; }
.catalog-stats-strip__stats div:nth-child(5) { animation-delay: 0.55s; }

@keyframes statsGlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-stats-strip__stats div {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.catalog-stats-strip__stats dt {
  font-size: clamp(1.35rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-navy, #061c33);
  line-height: 1.05;
}

.catalog-stats-strip__stats dt .stat-suffix {
  font-size: 0.65em;
  vertical-align: super;
}

.catalog-stats-strip__stats dd {
  font-size: 0.6875rem;
  color: rgba(6, 28, 51, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .catalog-stats-strip__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }

  .catalog-stats-strip__stats div:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 320px;
    margin-inline: auto;
  }

  .catalog-stats-strip__stats dt {
    font-size: clamp(1.2rem, 5.5vw, 1.85rem);
  }

  .catalog-stats-strip__stats dd {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    color: rgba(6, 28, 51, 0.82);
  }
}

/* Front page has no global header; show quote/chat floats once catalog is in view */
body.traco-onepage-home:not(.traco-catalog-active) .basket-float,
body.traco-onepage-home:not(.traco-catalog-active) .chat-float {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(40px) !important;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

body.traco-onepage-home.traco-catalog-active .basket-float,
body.traco-onepage-home.traco-catalog-active .chat-float {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

body.traco-onepage-home:not(.traco-catalog-active) .motion-cursor {
  display: none !important;
}

/* ==========================================================================
   PREMIUM EDITORIAL OVERRIDES — Instrument Sans / Inter Tight / Fraunces
   wave-word, marquee, product-card image fix, smoother motion
   ========================================================================== */

:root {
  --font-sans: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Instrument Sans", system-ui, sans-serif;
  --font-serif: "Fraunces", "Source Serif 4", Georgia, "Times New Roman", serif;
}

body {
  font-family: var(--font-sans) !important;
  font-weight: 430;
  letter-spacing: -0.015em;
  font-feature-settings: "ss01", "cv11";
}

h1, h2, h3, h4,
.hero-title,
.section-title,
.catalog-title,
.cursor-letters,
.section-heading h2,
.cant-find-section h2,
.about-section h2,
.contact-section h2,
.footer-strip__heading,
.product-card__title,
.popout__title {
  font-family: var(--font-display) !important;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.section-heading h2,
.cursor-letters {
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.section-heading h2 em,
.cursor-letters em,
.accent-italic {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.eyebrow,
.card-kicker,
.product-card__mfr,
.product-card__cat,
.product-card__desc,
.filter-pill,
.catalog-filter__pill,
.nav-link,
.site-nav__list a,
.footer-strip__sub,
.site-footer__copyright,
.traco-marquee__eyebrow {
  font-family: var(--font-sans) !important;
  letter-spacing: -0.005em;
}

.eyebrow,
.product-card__mfr,
.traco-marquee__eyebrow {
  letter-spacing: 0.14em;
  font-weight: 600;
}

/* ==========================================================================
   WAVE-WORD — animated italic accent (e.g. "Stretchers")
   ========================================================================== */

/* Wrapper for sr-only + decorative letter spans (heading inline flow). */
.wave-word-wrap {
  display: inline;
}

.wave-word {
  display: inline-flex;
  align-items: baseline;
  color: #1557ff;
  position: relative;
  isolation: isolate;
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-weight: 600;
}

.wave-word > span {
  display: inline-block;
  color: hsl(calc(222 + var(--i) * 3), 100%, 52%);
  /* Transform-only animation so the browser can composite (Lighthouse: avoid non-composited animations). */
  animation: tracoLetterWave 3.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.055s);
  will-change: transform;
  text-shadow:
    0 0 18px rgba(21, 87, 255, 0.14),
    0 12px 32px rgba(21, 87, 255, 0.10);
}

@keyframes tracoLetterWave {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  35% {
    transform: translateY(-0.055em) rotate(-1.2deg);
  }
  68% {
    transform: translateY(0.025em) rotate(0.7deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-word > span {
    animation: none;
    color: #1557ff;
  }
}

/* ==========================================================================
   ROLLING MARQUEE — manufacturers / models / parts
   ========================================================================== */

.traco-marquee {
  background: var(--color-cream, #f5f3ec);
  border-top: 1px solid rgba(6, 28, 51, 0.06);
  border-bottom: 1px solid rgba(6, 28, 51, 0.06);
  padding-block: clamp(1rem, 2.4vw, 2rem);
  position: relative;
}

.traco-marquee__eyebrow {
  text-align: center;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(6, 28, 51, 0.68);
  margin: 0 auto 0.75rem;
  font-weight: 600;
  padding-inline: 1rem;
}

.traco-marquee__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
      transparent 0,
      #000 8%,
      #000 92%,
      transparent 100%);
          mask-image: linear-gradient(to right,
      transparent 0,
      #000 8%,
      #000 92%,
      transparent 100%);
}

.traco-marquee__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-inline: 1rem;
  white-space: nowrap;
  animation: tracoMarquee 48s linear infinite;
  animation-play-state: running;
  will-change: transform;
}

.traco-marquee__viewport:hover .traco-marquee__track,
.traco-marquee__viewport:active .traco-marquee__track {
  animation-play-state: running;
}

.traco-marquee__item {
  font-family: var(--font-display) !important;
  font-size: clamp(1.35rem, 2.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(6, 28, 51, 0.78);
  white-space: nowrap;
  line-height: 1;
}

@media (max-width: 700px) {
  .traco-marquee__item {
    font-size: clamp(2rem, 13vw, 4.2rem);
  }

  .traco-marquee__viewport {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 5%,
      #000 95%,
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 5%,
      #000 95%,
      transparent 100%
    );
  }
}

.traco-marquee__item:nth-child(8n+3) {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-weight: 500;
  color: var(--color-blue, #0047ff);
}

.traco-marquee__dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(6, 28, 51, 0.25);
  flex-shrink: 0;
}

@keyframes tracoMarquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .traco-marquee__track { animation: none; }
}

/* ==========================================================================
   PRODUCT CARD IMAGE FIX — skeleton, fade-in on load, no reveal blanking
   ========================================================================== */

.product-card__media {
  position: relative;
  background: linear-gradient(135deg, #f3f2ed 0%, #e9e7df 100%);
  overflow: hidden;
}

.product-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: translateX(-100%);
  animation: tracoSkeletonShimmer 1.6s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.product-card__media.is-loaded::before {
  animation: none;
  display: none;
}

.product-card__img {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.7s ease;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  padding: 0;
}

.product-card__media.is-loaded .product-card__img {
  opacity: 1;
  transform: scale(1);
}

.product-card__media.has-error .product-card__img {
  opacity: 0;
}

.product-card__media.has-error::after {
  content: "Image unavailable";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(6, 28, 51, 0.45);
  z-index: 3;
}

@keyframes tracoSkeletonShimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Filter hide — class-toggle, no GSAP per-card */
.product-card.is-hidden {
  display: none !important;
}

.product-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

/* Don't apply heavy backdrop-filter to card images */
.product-card,
.product-card * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ==========================================================================
   PRODUCT GRID INTRO — soft IO-driven reveal (controlled by main.js)
   ========================================================================== */

.product-card[data-card-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card[data-card-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .product-card[data-card-reveal],
  .product-card[data-card-reveal].is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Mobile share-ready — catalog, contact taps, footer overflow
   ========================================================================== */

@media (max-width: 700px) {
  .about-section {
    padding-top: var(--space-md);
  }

  body.traco-onepage-home.traco-catalog-active .catalog-section .product-grid {
    padding-bottom: 5.5rem;
  }

  .catalog-filter {
    gap: 0.5rem 0.45rem;
    margin-bottom: var(--space-md);
    padding-inline: 0.25rem;
  }

  .catalog-filter__pill {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.1rem;
  }

  .catalog-filter--mfr .catalog-filter__pill--mfr {
    font-size: 0.78rem;
  }

  .catalog-filter-label {
    margin: 20px 8px 10px;
    font-size: clamp(1rem, 4.2vw, 1.45rem);
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card__media {
    aspect-ratio: 16 / 10;
  }

  .product-card__body {
    padding: 1rem 1.1rem 1.2rem;
  }

  .contact-card__maps .map-link {
    min-height: 44px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .contact-card {
    padding: 1.5rem 1.35rem;
  }

  .footer-wordmark-wrap {
    overflow: visible;
    padding-bottom: 1.25rem;
  }

  .footer-wordmark-wrap .footer-wordmark {
    font-size: clamp(3.5rem, 14vw, 9rem);
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
    letter-spacing: -0.1em;
  }

  .footer-strip__actions .button {
    flex: 1 1 140px;
    text-align: center;
    justify-content: center;
  }
}

/* Narrow phones: stacked card CTAs need more clearance above the quote FAB */
@media (max-width: 520px) {
  body.traco-onepage-home.traco-catalog-active .catalog-section .product-grid {
    padding-bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ==========================================================================
   LOGO TEXT — Traco Medical wordmark in header
   ========================================================================== */

.site-logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display) !important;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.04em;
  color: var(--color-navy, #061c33);
}

.site-logo-text__trac {
  font-weight: 800;
}

.site-logo-text strong {
  font-weight: 800;
}

.site-logo-text__sub {
  font-family: var(--font-serif) !important;
  font-style: italic;
  font-weight: 500;
  color: rgba(6, 28, 51, 0.55);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .site-header .site-logo-text--header-mark {
    align-items: baseline;
    gap: 0.28rem;
    padding: 0.32rem 0.6rem 0.4rem;
    background: var(--color-navy, #061c33);
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(6, 28, 51, 0.2);
    text-decoration: none;
    line-height: 1;
  }

  .site-header .site-logo-text--header-mark .site-logo-text__trac {
    font-family: "Bodoni Moda", "Libre Bodoni", Georgia, serif !important;
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.07em;
    color: #f6f4eb !important;
    text-transform: uppercase;
  }

  .site-header .site-logo-text--header-mark .site-logo-text__sub {
    font-family: "Fraunces", "Source Serif 4", Georgia, serif !important;
    font-style: italic;
    font-weight: 600;
    font-size: 0.86rem;
    color: rgba(246, 244, 235, 0.84) !important;
  }
}

