/* ============================================================
   Tech-Effector page — styles specific to /products/tech-effector/.
   Builds on the shared classes in assets/css/site.css (buttons,
   badges, product cards, modal overlay, hazard bar, CTA band).
   ============================================================ */

/* ---------------------------------------------------------------
   Shared page typography helpers
   --------------------------------------------------------------- */
.trs-te-h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 4.1vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.01em; text-transform: uppercase; color: var(--brand); margin: 0;
}
.trs-te-lead { font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6; color: var(--text-body); margin: 16px 0 0; max-width: 58ch; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.trs-te-hero { position: relative; background: var(--graphite-900); color: #fff; overflow: hidden; }
.trs-te-hero__dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 92% -10%, rgba(186,31,57,0.34), transparent 46%),
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: auto, 26px 26px;
}
.trs-te-hero__grid {
  position: relative; padding: clamp(40px, 6vw, 76px) var(--gutter) 72px; display: grid;
  grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}

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

.trs-te-hero__overline {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-400); margin-bottom: 20px;
}
.trs-te-hero__overline span { width: 26px; height: 3px; background: var(--amber-500); }
.trs-te-hero__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 0.98;
  letter-spacing: -0.02em; text-transform: uppercase; margin: 0; color: #fff; max-width: 16ch;
}
.trs-te-hero__reg { color: var(--crimson-400); font-size: 0.5em; vertical-align: super; }
.trs-te-hero__body { font-family: var(--font-sans); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.6; color: var(--graphite-200); max-width: 580px; margin: 22px 0 34px; }
.trs-te-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.trs-te-hero__jumps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* Hero image slider */
.trs-te-slider {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14); background: radial-gradient(120% 120% at 30% 20%, #ffffff, var(--graphite-100));
  box-shadow: var(--shadow-lg);
}
.trs-te-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 26px;
  opacity: 0; transition: opacity 700ms var(--ease-standard);
}
.trs-te-slide.is-active { opacity: 1; }
.trs-te-slide-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--graphite-400); opacity: 0; transition: opacity 700ms var(--ease-standard);
}
.trs-te-slide-placeholder.is-active { opacity: 1; }
.trs-te-slide-placeholder span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 0 20px; }
.trs-te-slider__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.trs-te-slider__dots span {
  height: 8px; width: 8px; border-radius: var(--radius-pill); background: var(--graphite-300); cursor: pointer;
  transition: width 300ms var(--ease-standard), background 300ms var(--ease-standard);
}
.trs-te-slider__dots span.is-active { width: 22px; background: var(--brand); }

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

/* ---------------------------------------------------------------
   Legacy / 20+ years
   --------------------------------------------------------------- */
.trs-te-legacy { position: relative; overflow: hidden; background: var(--graphite-50); padding: 72px 0; border-bottom: 1px solid var(--color-border); }
.trs-te-legacy__dotgrid {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(circle at 8% -20%, rgba(232,163,29,0.14), transparent 50%),
    radial-gradient(circle at 1px 1px, rgba(20,23,28,0.06) 1px, transparent 0);
  background-size: auto, 26px 26px;
}
.trs-te-legacy__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.trs-te-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.trs-te-stat__value { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--brand); line-height: 1; }
.trs-te-stat__label { font-family: var(--font-sans); font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }

.trs-te-legacy-slider {
  position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--color-border); background: var(--graphite-900); box-shadow: var(--shadow-lg); cursor: zoom-in;
}
.trs-te-legacy-expand {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 34px; height: 34px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius-pill); background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; opacity: 0; transition: opacity 160ms var(--ease-standard); cursor: zoom-in;
}
.trs-te-legacy-slider:hover .trs-te-legacy-expand { opacity: 1; }
.trs-te-legacy-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 20px 20px 76px;
  opacity: 0; transition: opacity 700ms var(--ease-standard);
}
.trs-te-legacy-slide.is-active { opacity: 1; }
.trs-te-legacy-slide-placeholder {
  position: absolute; inset: 0 0 88px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: rgba(255,255,255,0.4); opacity: 0; transition: opacity 700ms var(--ease-standard);
}
.trs-te-legacy-slide-placeholder.is-active { opacity: 1; }
.trs-te-legacy-slide-placeholder span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 0 20px; }
.trs-te-legacy-slider__scrim {
  position: absolute; inset: auto 0 0 0; z-index: 1; height: 88px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent); pointer-events: none;
}
.trs-te-legacy-caption {
  position: absolute; left: 16px; right: 16px; bottom: 34px; z-index: 2; text-align: center;
  font-family: var(--font-sans); font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.92);
}
.trs-te-legacy-slider__dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; }
.trs-te-legacy-slider__dots span {
  height: 8px; width: 8px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.35); cursor: pointer;
  transition: width 300ms var(--ease-standard), background 300ms var(--ease-standard);
}
.trs-te-legacy-slider__dots span.is-active { width: 22px; background: var(--amber-500); }

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

/* ---------------------------------------------------------------
   Intro + Newest Additions
   --------------------------------------------------------------- */
.trs-te-intro { position: relative; overflow: hidden; background: var(--color-surface); padding: 80px 0 24px; border-bottom: 1px solid var(--color-border); }
.trs-te-intro__wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.trs-te-intro__copy { max-width: 640px; }
.trs-te-intro__copy a { color: var(--brand); font-weight: 600; text-decoration: none; }
.trs-te-intro__copy a:hover { text-decoration: underline; }

.trs-te-newest {
  flex: 1; min-width: 260px; max-width: 340px; background: var(--color-bg); border: 1px solid var(--color-border);
  border-top: 4px solid var(--amber-500); border-radius: var(--radius-lg); padding: 22px 24px;
}
.trs-te-newest__label {
  display: block; font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--amber-700); margin-bottom: 14px;
}
.trs-te-newest__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-bottom: 1px solid var(--color-divider); text-decoration: none; cursor: pointer; background: none; width: 100%; text-align: left; border-left: none; border-right: none; border-top: none;
}
.trs-te-newest__item:last-of-type { border-bottom: none; }
.trs-te-newest__item span { font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--text-strong); }
.trs-te-newest__note { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin: 14px 0 0; }

/* ---------------------------------------------------------------
   Product grid
   --------------------------------------------------------------- */
.trs-te-grid-title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text-strong); margin: 0; }
.trs-te-grid-count { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); }
.trs-te-card-new {
  position: absolute; top: 12px; right: 12px; z-index: 3; font-family: var(--font-sans); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite-900); background: var(--amber-500);
  padding: 4px 9px; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------
   Cross-link: Pressroom
   --------------------------------------------------------------- */
.trs-te-crosslink { position: relative; background: var(--graphite-900); color: #fff; overflow: hidden; }
.trs-te-crosslink__dotgrid { position: absolute; inset: 0; opacity: 0.4; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0); background-size: 26px 26px; }
.trs-te-crosslink__grid { position: relative; padding: 72px var(--gutter); display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.trs-te-crosslink__grid .trs-te-lead { color: var(--graphite-200); margin: 16px 0 28px; }
.trs-te-crosslink .trs-te-h2 { color: #fff; }
.trs-te-crosslink__image {
  display: block; position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14); background: linear-gradient(135deg, var(--graphite-800), var(--graphite-950));
}
.trs-te-crosslink__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 760px) {
  .trs-te-crosslink__grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   FAQ (native details/summary)
   --------------------------------------------------------------- */
.trs-te-faq { max-width: 860px; }
.trs-te-faq__list { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.trs-te-faq-item { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); padding: 18px 20px; }
.trs-te-faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-sans); font-weight: 700; font-size: 16px; color: var(--text-strong);
}
.trs-te-faq-item summary::-webkit-details-marker { display: none; }
.trs-te-faq-item__chevron { flex-shrink: 0; color: var(--brand); transition: transform 200ms var(--ease-standard); }
.trs-te-faq-item[open] .trs-te-faq-item__chevron { transform: rotate(180deg); }
.trs-te-faq-item p { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.65; color: var(--text-body); margin: 14px 0 0; }
.trs-te-faq-item a { color: var(--brand); font-weight: 600; text-decoration: none; }
.trs-te-faq-item a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   Shared: floating prev/next arrows (product modal + lightbox)
   --------------------------------------------------------------- */
.trs-te-modal-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; z-index: 2;
  display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.28);
  background: rgba(20,23,28,0.55); color: #fff; border-radius: var(--radius-pill); cursor: pointer;
  transition: background 160ms, border-color 160ms;
}
.trs-te-modal-arrow:hover { background: var(--brand); border-color: var(--brand); }
.trs-te-modal-arrow--prev { left: clamp(10px, 3vw, 34px); }
.trs-te-modal-arrow--next { right: clamp(10px, 3vw, 34px); }

@media (max-width: 720px) {
  .trs-te-modal-arrow { display: none !important; }
}

/* ---------------------------------------------------------------
   Product detail modal
   --------------------------------------------------------------- */
.trs-te-product-modal {
  position: relative; width: min(1040px, 94vw); max-width: 1040px; max-height: 88vh; display: grid;
  grid-template-columns: 0.92fr 1.08fr; overflow: hidden; padding: 0;
}
.trs-te-product-modal__image {
  position: relative; background: radial-gradient(120% 120% at 30% 20%, #ffffff, var(--graphite-100));
  border-right: 1px solid var(--color-border); min-height: 280px;
}
.trs-te-product-modal__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 30px; }
.trs-te-product-modal__new {
  position: absolute; top: 14px; left: 14px; font-family: var(--font-sans); font-weight: 700; font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite-900); background: var(--amber-500);
  padding: 4px 9px; border-radius: var(--radius-sm);
}
.trs-te-product-modal__body { position: relative; padding: 30px clamp(22px, 3vw, 34px) 26px; overflow-y: auto; max-height: 88vh; }
.trs-te-product-modal__body .trs-modal__close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 1px solid var(--color-border); background: var(--color-bg); color: var(--text-body); border-radius: var(--radius-md); }
.trs-te-product-modal__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.06; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text-strong); margin: 0 0 12px; padding-right: 40px; }
.trs-te-product-modal__desc { font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; color: var(--text-body); margin: 0; }
.trs-te-product-modal__label { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.trs-te-product-modal__specs { margin-top: 22px; }
.trs-te-product-modal__specs > div:last-child { border-top: 1px solid var(--color-border); }
.trs-te-spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--color-divider); }
.trs-te-spec-row span { font-family: var(--font-sans); font-size: 13.5px; color: var(--text-muted); }
.trs-te-spec-row strong { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--text-strong); text-align: right; }
.trs-te-product-modal__files { margin-top: 22px; }
.trs-te-product-modal__files > div:last-child { display: flex; flex-direction: column; gap: 8px; }
.trs-te-file-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); text-decoration: none; background: var(--color-bg);
}
.trs-te-file-link svg { color: var(--brand); flex-shrink: 0; }
.trs-te-file-link span:first-of-type { flex: 1; font-family: var(--font-sans); font-weight: 600; font-size: 14px; color: var(--text-strong); }
.trs-te-file-link span:last-of-type { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.trs-te-product-modal__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.trs-te-coming-soon {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px;
  border-radius: var(--radius-md); background: var(--graphite-100); color: var(--graphite-400);
  font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase;
  cursor: not-allowed; border: 1px solid var(--color-border);
}
.trs-te-product-modal__hint { font-family: var(--font-sans); font-size: 12.5px; line-height: 1.5; color: var(--text-muted); margin: 12px 0 0; }
.trs-te-product-modal__footer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--color-divider); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}
.trs-te-product-modal__kbd { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: 12px; color: var(--text-muted); }
.trs-te-product-modal__kbd kbd { font-family: var(--font-mono); font-size: 11px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 4px; padding: 1px 6px; }

@media (max-width: 720px) {
  .trs-te-product-modal { grid-template-columns: 1fr; }
  .trs-te-product-modal__image { min-height: 210px; }
}

/* ---------------------------------------------------------------
   Legacy gallery lightbox
   --------------------------------------------------------------- */
.trs-te-lightbox {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 4vw, 48px); background: rgba(20,23,28,0.86); backdrop-filter: blur(3px);
}
.trs-te-lightbox[hidden] { display: none; }
.trs-te-lightbox__panel { position: relative; width: min(880px, 100%); max-height: 88vh; display: flex; flex-direction: column; }
.trs-te-lightbox__close {
  position: absolute; top: -44px; right: 0; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(20,23,28,0.55); color: #fff; border-radius: var(--radius-pill); cursor: pointer;
}
.trs-te-lightbox__frame {
  position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--graphite-950); border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--shadow-xl);
}
.trs-te-lightbox__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.trs-te-lightbox__caption { font-family: var(--font-sans); font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,0.8); text-align: center; margin: 16px 0 0; }
.trs-te-lightbox__dots { display: flex; justify-content: center; gap: 7px; margin-top: 12px; }
.trs-te-lightbox__dots span {
  height: 8px; width: 8px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.35); cursor: pointer;
  transition: width 200ms var(--ease-standard), background 200ms var(--ease-standard);
}
.trs-te-lightbox__dots span.is-active { width: 22px; background: var(--amber-500); }
