/* Public/style/track-record.css — Track Record page (track-record.html)
   Loads after home.css/responsive.css and reuses their dark theme
   (--bg/--card/--text/--muted/--accent/--border) and layout helpers
   (.container/.section/.btn/etc.) rather than redefining them, so this
   page reads as part of the same site, not a bolt-on. Only the pieces
   unique to this page (STAR cards, logo strip, image galleries, category
   nav) live here. */

/* ---------- Hero ---------- */
.tr-hero {
  padding: 64px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.tr-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.tr-hero p { max-width: 700px; margin: 0 auto; font-size: 1.05rem; }

/* "Companies I've worked with" logo strip — the title slide's own logo
   set, reused here instead of a generic ticker. White cards so each
   logo (several use dark text/transparent backgrounds) reads cleanly
   against the dark page background. */
.tr-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.tr-logos img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 8px 14px;
}

/* ---------- Category jump nav ---------- */
.tr-catnav {
  position: sticky;
  top: var(--header-h-desktop, 72px);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  background: rgba(11,12,16,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.tr-catnav a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}
.tr-catnav a:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Category sections ---------- */
.tr-category { padding: 56px 0; border-bottom: 1px solid var(--border); }
.tr-category:last-of-type { border-bottom: none; }
.tr-category-head { text-align: center; margin-bottom: 36px; }
.tr-category-head h2 { font-size: 1.7rem; margin-bottom: 6px; }
.tr-category-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- STAR cards ---------- */
.tr-cards { display: flex; flex-direction: column; gap: 24px; }
.tr-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.tr-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.tr-card-head h3 { margin: 0; font-size: 1.2rem; flex: 1 1 auto; min-width: 200px; }
.tr-card-company {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.tr-card-company img {
  height: 26px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
  padding: 3px 8px;
}
.tr-card-company span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.tr-star { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; margin-bottom: 16px; }
@media (max-width: 700px) { .tr-star { grid-template-columns: 1fr; } }
.tr-star-item dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.tr-star-item dd { margin: 0; font-size: 0.92rem; color: var(--text); line-height: 1.5; }

/* Image gallery — every image tied to that slide (per explicit request),
   thumbnails in a responsive grid, each opening the full image in a new
   tab (no custom lightbox component — keeps this page dependency-free). */
.tr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.tr-gallery a {
  display: block;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.tr-gallery img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #fff;
}
.tr-gallery a:hover { border-color: var(--accent); }

/* ---------- Back-to-top / CTA footer ---------- */
.tr-cta {
  padding: 64px 0;
  text-align: center;
}
.tr-cta h2 { margin-bottom: 10px; }
.tr-cta p { max-width: 560px; margin: 0 auto 22px; }
