/* ==========================================================================
   Alliance Test Equipment — Header, Navigation, Search, Footer
   ========================================================================== */

/* ---------- Utility bar ---------- */
.utilbar {
  background: var(--navy-950);
  letter-spacing: .005em;
  color: var(--steel-300);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.utilbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 38px;
}
.utilbar__list { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }
.utilbar__item { display: inline-flex; align-items: center; gap: .45em; }
.utilbar__item svg { opacity: .65; flex: none; }
.utilbar a { transition: color var(--t-fast) var(--ease); }
.utilbar a:hover { color: #fff; }
.utilbar__phone { color: #fff; font-weight: 580; font-family: var(--font-mono); letter-spacing: -.01em; }
@media (max-width: 900px) { .utilbar { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .header { backdrop-filter: saturate(180%) blur(14px); background: rgba(255,255,255,.82); }
}
.header.is-stuck {
  border-bottom-color: var(--line-strong);
  box-shadow: 0 1px 12px rgba(10,18,32,.05);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  height: var(--header-h);
  transition: height var(--t) var(--ease);
}
.header.is-stuck .header__inner { height: var(--header-h-sm); }

/* Logo */
.brand { flex: none; display: block; }
.brand img {
  height: 46px;
  width: auto;
  transition: height var(--t) var(--ease);
}
.header.is-stuck .brand img { height: 36px; }
@media (max-width: 520px) { .brand img { height: 34px; } .header.is-stuck .brand img { height: 30px; } }

/* Primary nav */
.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
@media (max-width: 1100px) { .nav { display: none; } }

.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .55rem .8rem;
  font-size: var(--fs-sm);
  font-weight: 520;
  letter-spacing: -.002em;
  color: var(--navy-800);
  transition: color var(--t-fast) var(--ease);
  white-space: nowrap;
}
/* A precise 1px indicator rather than a filled pill */
.nav__link::after {
  content: '';
  position: absolute;
  left: .8rem; right: .8rem; bottom: .2rem;
  height: 1px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--t) var(--ease);
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--brand-blue); }
.nav__link:hover::after, .nav__item.is-open > .nav__link::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brand-blue); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link .chev { transition: transform var(--t) var(--ease); opacity: .55; }
.nav__item.is-open .chev { transform: rotate(180deg); }

/* Mega panel */
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: max-content;
  max-width: min(1080px, calc(100vw - 48px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility var(--t);
  z-index: 50;
}
.nav__item.is-open .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.mega--wide { left: 0; transform: translate(0, 8px); }
.nav__item.is-open .mega--wide { transform: translate(0,0); }
.mega--right { left: auto; right: 0; transform: translate(0, 8px); }
.nav__item.is-open .mega--right { transform: translate(0,0); }

.mega__grid { display: grid; gap: var(--sp-6); }
.mega__col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--line);
}
.mega__list { display: grid; gap: 1px; }
.mega__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: .46rem .6rem;
  margin-inline: -.6rem;
  font-size: var(--fs-sm);
  color: var(--navy-800);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.mega__link:hover { background: var(--steel-50); color: var(--brand-blue); }
.mega__link .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  font-variant-numeric: tabular-nums;
}
.mega__link:hover .count { color: var(--brand-blue); }

.mega__feature {
  background: var(--navy-900);
  border-radius: var(--radius-sm);
  padding: var(--sp-5);
  color: #fff;
  min-width: 250px;
  position: relative;
  overflow: hidden;
}
.mega__feature .grid-pattern { background-size: 32px 32px; }
.mega__feature h4 { margin-bottom: .5rem; position: relative; }
.mega__feature p { font-size: var(--fs-xs); color: var(--steel-300); margin-bottom: var(--sp-4); position: relative; }
.mega__feature .link-arrow { position: relative; }

.mega__foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* Header actions */
.header__actions { display: flex; align-items: center; gap: var(--sp-2); flex: none; margin-left: auto; }
@media (min-width: 1101px) { .header__actions { margin-left: 0; } }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  border: 1px solid transparent;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--steel-50); color: var(--brand-blue); }

.quote-btn { position: relative; }
.quote-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--brand-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  border-radius: 9px;
  border: 2px solid var(--white);
}
.quote-count.is-active { display: inline-flex; }
.quote-count.is-bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.32)} 100%{transform:scale(1)} }

.burger { display: none; }
@media (max-width: 1100px) { .burger { display: inline-flex; } }

/* ---------- Global search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(6,11,20,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
@supports (backdrop-filter: blur(1px)) { .search-overlay { backdrop-filter: blur(6px); } }
.search-overlay.is-open { opacity: 1; visibility: visible; }

.search-panel {
  width: min(780px, calc(100vw - 32px));
  margin: clamp(56px, 10vh, 116px) auto 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(-14px) scale(.985);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t) var(--ease);
  max-height: min(76vh, 720px);
  display: flex;
  flex-direction: column;
}
.search-overlay.is-open .search-panel { transform: none; opacity: 1; }

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.search-bar svg { color: var(--text-subtle); flex: none; }
.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 1.1rem;
  letter-spacing: -.012em;
  padding: .35rem 0;
  background: transparent;
}
.search-input::placeholder { color: var(--text-subtle); }
.search-esc {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--text-subtle);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  padding: .22rem .45rem;
  flex: none;
}
.search-body { overflow-y: auto; padding: var(--sp-5) var(--sp-6); flex: 1; overscroll-behavior: contain; }
.search-group + .search-group { margin-top: var(--sp-6); }
.search-group__title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-3);
}
.search-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.search-chip {
  padding: .42rem .78rem;
  font-size: var(--fs-xs);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--navy-800);
  transition: all var(--t-fast) var(--ease);
  background: var(--white);
}
.search-chip:hover { border-color: var(--brand-blue); color: var(--brand-blue); background: rgba(0,96,168,.04); }
.search-chip .mono { color: var(--text-subtle); }

.search-result {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3);
  margin-inline: calc(var(--sp-3) * -1);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast) var(--ease);
}
.search-result:hover, .search-result.is-active { background: var(--steel-50); }
.search-result__img {
  width: 52px; height: 52px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--white);
  object-fit: contain;
  padding: 4px;
}
.search-result__body { min-width: 0; flex: 1; }
.search-result__mfr {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.search-result__name {
  font-weight: 580;
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result mark { background: rgba(228,120,36,.22); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-empty { text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--text-muted); font-size: var(--fs-sm); }

.search-foot {
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  flex: none;
  background: var(--paper);
}
.search-keys { display: flex; gap: var(--sp-4); }
.search-keys kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: .1rem .3rem;
  background: var(--white);
  margin-right: .3em;
}
@media (max-width: 620px) { .search-keys { display: none; } }

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(6,11,20,.5);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 135;
  width: min(400px, 88vw);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer--left { right: auto; left: 0; transform: translateX(-100%); }
.drawer--left.is-open { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--line);
  flex: none;
}
.drawer__head img { height: 34px; width: auto; }
.drawer__title { font-size: var(--fs-h4); font-weight: 640; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-5); overscroll-behavior: contain; }
.drawer__foot { flex: none; padding: var(--sp-5); border-top: 1px solid var(--line); background: var(--paper); }

/* Mobile accordion nav */
.mnav__group + .mnav__group { border-top: 1px solid var(--line); }
.mnav__toggle, .mnav__direct {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: .95rem 0;
  font-size: 1.02rem;
  font-weight: 580;
  color: var(--navy-900);
  text-align: left;
}
.mnav__toggle .chev { transition: transform var(--t) var(--ease); color: var(--text-subtle); }
.mnav__group.is-open .mnav__toggle .chev { transform: rotate(180deg); }
.mnav__group.is-open .mnav__toggle { color: var(--brand-blue); }
.mnav__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease-out);
}
.mnav__group.is-open .mnav__panel { grid-template-rows: 1fr; }
.mnav__panel > div { overflow: hidden; }
.mnav__sub { padding-bottom: var(--sp-4); display: grid; gap: 1px; }
.mnav__sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: .5rem .8rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--line);
  transition: all var(--t-fast) var(--ease);
}
.mnav__sub a:hover { color: var(--brand-blue); border-left-color: var(--brand-blue); background: var(--steel-50); }
.mnav__sub .count { font-family: var(--font-mono); font-size: 11px; color: var(--text-subtle); }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform var(--t-slow) var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
@media (max-width: 860px) { .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; } }
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 1rem .6rem;
  font-size: var(--fs-sm);
  font-weight: 570;
  letter-spacing: .005em;
  background: var(--white);
  color: var(--navy-900);
}
.mobile-bar a.is-primary { background: var(--brand-blue); color: #fff; }
body.has-mobile-bar { padding-bottom: 62px; }
@media (min-width: 861px) { body.has-mobile-bar { padding-bottom: 0; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: var(--steel-300);
  position: relative;
  overflow: hidden;
}
.footer .grid-pattern { background-size: 72px 72px; opacity: .5; }

.footer__top {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  border-bottom: 1px solid var(--line-dark);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: var(--sp-6) var(--sp-5);
}
@media (max-width: 1080px) { .footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 700px)  { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-4); } }
@media (max-width: 460px)  { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand { max-width: 340px; }
@media (max-width: 1080px) { .footer__brand { grid-column: 1 / -1; max-width: 480px; } }
.footer__logo {
  height: 52px; width: auto;
  background: #fff;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-4);
}
.footer__brand p { font-size: var(--fs-sm); color: var(--steel-400); margin-bottom: var(--sp-5); }

.footer__col-title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer__list { display: grid; gap: .58rem; }
.footer__list a {
  font-size: var(--fs-sm);
  color: var(--steel-400);
  transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  display: inline-block;
}
.footer__list a:hover { color: #fff; transform: translateX(3px); }

.footer__contact { display: grid; gap: var(--sp-4); font-size: var(--fs-sm); }
.footer__contact-item { display: flex; gap: .7rem; align-items: flex-start; }
.footer__contact-item svg { flex: none; margin-top: 3px; color: var(--brand-accent); }
.footer__contact strong { color: #fff; font-weight: 580; display: block; }
.footer__contact a { color: var(--steel-400); transition: color var(--t-fast) var(--ease); }
.footer__contact a:hover { color: #fff; }
.footer__tel { font-family: var(--font-mono); font-size: 1.02rem; color: #fff !important; font-weight: 500; letter-spacing: -.01em; }

/* Newsletter */
.footer__mid {
  position: relative;
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--line-dark);
}
.newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}
.newsletter__copy h4 { color: #fff; margin-bottom: .25rem; }
.newsletter__copy p { font-size: var(--fs-sm); color: var(--steel-400); }
.newsletter__form { display: flex; gap: var(--sp-2); flex: 1; min-width: 300px; max-width: 480px; }
.newsletter__form .input {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.newsletter__form .input::placeholder { color: var(--steel-500); }
.newsletter__form .input:focus { border-color: var(--brand-accent); box-shadow: 0 0 0 3px rgba(228,120,36,.16); }

.footer__bottom {
  position: relative;
  padding-block: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--steel-500);
}
.footer__disclaimer {
  padding: var(--sp-4) 0;
  color: var(--steel-500);
  font-size: var(--fs-xs);
  line-height: 1.6;
  max-width: 940px;
}
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-dark);
}
.footer__legal-links { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer__legal a { transition: color var(--t-fast) var(--ease); }
.footer__legal a:hover { color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-block: var(--sp-5);
}
.breadcrumb a { transition: color var(--t-fast) var(--ease); }
.breadcrumb a:hover { color: var(--brand-blue); }
.breadcrumb .sep { color: var(--steel-300); }
.breadcrumb [aria-current] { color: var(--navy-900); font-weight: 550; }

/* ---------- Toast ---------- */
.toast-wrap {
  position: fixed;
  right: var(--sp-5); bottom: var(--sp-5);
  z-index: 200;
  display: grid;
  gap: var(--sp-3);
  pointer-events: none;
}
@media (max-width: 860px) { .toast-wrap { bottom: 74px; left: var(--sp-4); right: var(--sp-4); } }
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--navy-900);
  color: #fff;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-sm);
  transform: translateY(12px);
  opacity: 0;
  transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease);
  pointer-events: auto;
  max-width: 380px;
}
.toast.is-in { transform: none; opacity: 1; }
.toast svg { flex: none; color: #4ADE80; }
.toast a { color: var(--brand-accent); font-weight: 580; margin-left: auto; white-space: nowrap; }


/* ==========================================================================
   Mega-menu preview — the feature panel shows a real instrument from the
   category under the pointer, so the menu previews the catalog rather than
   sitting as an empty dark box.
   ========================================================================== */
.mega__feature { display: flex; flex-direction: column; }
.mega__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: var(--sp-4) calc(var(--sp-5) * -1) calc(var(--sp-5) * -1);
  /* Same engineering grid as the hero so the preview reads as a bench, not
     a white cut-out floating in the dark panel. */
  background:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(ellipse 66% 58% at 50% 44%, rgba(0,96,168,.22), transparent 72%),
    #070C15;
  border-top: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* A light plate behind the instrument, echoing a lit bench surface */
.mega__preview::before {
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: 8%; bottom: 26%;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.14);
  z-index: 0;
}
/* A soft ground shadow so the instrument sits on a surface */
.mega__preview::after {
  content: '';
  position: absolute;
  left: 18%; right: 18%;
  bottom: 22%;
  height: 18px;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(90,150,210,.28), transparent 72%);
  filter: blur(10px);
  z-index: 0;
}
.mega__preview img {
  position: relative;
  z-index: 1;
  /* Centred, with room for the caption strip beneath */
  width: 76%; height: 58%;
  margin-bottom: 14%;
  object-fit: contain;
  /* Catalog shots are trimmed onto white. A white card behind the image keeps
     both large instruments and small accessories legible on the dark panel. */
  background: #fff;
  padding: 6%;
  box-shadow: 0 14px 28px rgba(0,0,0,.5);
  filter: saturate(.95) contrast(1.03);
  opacity: 0;
  transform: scale(.97);
  transition: opacity 340ms var(--ease-out), transform 480ms var(--ease-out);
}
.mega__preview img.is-shown { opacity: 1; transform: none; }
.mega__preview-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: .6rem .8rem .7rem;
  background: linear-gradient(to top, #070C15 32%, rgba(7,12,21,.85) 70%, transparent);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega__preview-mfr {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-400);
}
.mega__preview-model {
  font-size: var(--fs-xs);
  font-weight: 580;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
