/* =========================================================================
   Exotics Group - eg-premium.css
   The site-wide design layer. Loaded AFTER style.css (and after car.css on
   car pages) by every layout, so it refines what is already there rather
   than replacing it.

   Rules of the system
   -------------------
   - Near-black, neutral surfaces (no blue cast); warm off-white ink; ONE
     accent - champagne gold - used sparingly for emphasis and focus.
   - Bold, tightly tracked Inter for headlines (the Partners & Vendors look), Inter for everything
     else. Fomantic's Lato is replaced component by component; icon fonts are
     never touched.
   - Small radii and hairline borders instead of big rounded shadowed boxes.
   - Every new component is prefixed eg- . Car pages use bare class names
     (.hero, .header, .section) from car.css, so nothing here styles bare
     generic classes except where it is already shared with style.css.

   Sections
     1. Tokens & fonts        6. Footer
     2. Base & typography     7. Shared components (eyebrow, empty, media, chips)
     3. Fomantic refinements  8. Video facade (.eg-yt)
     4. Buttons               9. Homepage (hero, results, interviews, journal)
     5. Top bar & sidebar    10. Car page  11. Motion & accessibility
   ========================================================================= */

/* Fonts - fonts.googleapis.com / fonts.gstatic.com are both in the CSP. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces: neutral near-blacks, stepped by elevation. */
  --bg: #09090a;
  --panel: #111113;
  --panel-raise: #161618;
  --panel-elev: #1c1c1f;

  /* Ink: warm off-white, and a muted that still clears 7:1 on --bg. */
  --ink: #f2efe8;
  --ink-2: #e7e2d7;
  --muted: #a8a397;
  --ink-muted: #a8a397;
  --faint: #6f6b63;

  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* The one accent. Kept at the existing brand gold's hue. */
  --accent: #c9a96a;
  --accent-rgb: 201, 169, 106;
  --accent-ink: #0b0b0c;
  --accent-soft: rgba(201, 169, 106, 0.14);
  --focus: #c9a96a;

  /* Links read as ivory, not as browser blue. */
  --link: #e3d3ab;

  --field-bg: rgba(18, 18, 20, 0.72);
  --field-border: rgba(255, 255, 255, 0.14);
  --field-radius: 6px;

  /* Display = the Partners & Vendors directory style: bold, tightly tracked Inter. */
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display-weight: 600;
  --display-track: -0.035em;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 128px);
  --topbar-h: 64px;
  --shadow-lg: rgba(0, 0, 0, 0.5);
}

/* ---------- 2. Base & typography ---------- */
html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body {
  padding-top: var(--topbar-h);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
a:hover {
  color: var(--ink);
  opacity: 1;
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: #fff;
}

/* Fomantic sets Lato on each component; restate the family on the same
   selectors so source order (this file loads last) decides it. */
h1, h2, h3, h4, h5, h6,
.ui.header,
.ui.button,
.ui.buttons .button,
.ui.input,
.ui.input > input,
.ui.form,
.ui.form input:not([type]),
.ui.form input[type="text"],
.ui.form input[type="email"],
.ui.form input[type="search"],
.ui.form input[type="tel"],
.ui.form input[type="password"],
.ui.form input[type="number"],
.ui.form textarea,
.ui.form .field > label,
.ui.menu,
.ui.card,
.ui.cards > .card,
.ui.card > .content > .header,
.ui.cards > .card > .content > .header,
.ui.items > .item > .content > .header,
.ui.list,
.ui.label,
.ui.labels .label,
.ui.message,
.ui.dropdown,
.ui.dropdown .menu > .item,
.ui.table,
.ui.modal,
.ui.modal > .header,
.ui.segment,
.ui.statistic > .value,
.ui.statistic > .label,
.ui.popup,
.ui.toast-container .toast-box,
.ui.steps .step,
.ui.accordion .title:not(.ui) {
  font-family: var(--font-sans);
}

/* Display headings: page titles and section titles, in the Partners &
   Vendors style - bold Inter, tight tracking. */
h1,
h2,
.section-head > .ui.header,
.section-head h2.ui.header,
.eg-display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  line-height: 1.02;
}

/* Every other display-face element: same weight, slightly looser tracking
   because these run smaller. */
.eg-hero__title,
.eg-yt__title,
.eg-about__title,
.eg-story__title,
.eg-empty__title,
.eg-results__title,
.eg-footer__brand,
.eg-hero__stats strong,
.eg-car__price,
.eg-date__d,
.eg-media__fallback,
.eg-car-videos__item h3,
.eg-page-car .header h1,
.eg-page-car .price {
  font-weight: var(--display-weight);
  letter-spacing: -0.025em;
}
.eg-hero__title { letter-spacing: var(--display-track); }
.eg-hero__title em { display: block; }   /* "We'll find it." always on its own line */

/* The gold accent inside a headline: light weight, not italic - the same
   treatment as the "&" in "Partners & Vendors". */
.eg-display em,
.eg-hero__title em,
.eg-section-head .eg-display em {
  font-style: normal !important;
  font-weight: 300;
  color: var(--accent);
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2,
.section-head > .ui.header,
.section-head h2.ui.header { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }

h3, h4 {
  font-weight: 500;
  letter-spacing: 0;
}

.u-muted { color: var(--muted) !important; }

/* ---------- 3. Fomantic refinements ---------- */
.section {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.section-head {
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head .ui.header,
.section-head .ui.header .sub.header {
  color: var(--ink);
}

/* Cards: flat panels with a hairline; the photo does the work. */
.ui.cards > .card,
.ui.card {
  background: var(--panel) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.ui.cards > a.card:hover,
.ui.link.cards .card:hover,
a.ui.card:hover {
  border-color: rgba(var(--accent-rgb), 0.35) !important;
  transform: translateY(-2px);
}
.ui.cards > .card > .image,
.ui.card > .image {
  border-radius: 0 !important;
  background: #000;
}
.ui.cards > .card > .content > .header,
.ui.card > .content > .header {
  font-weight: 500;
  color: var(--ink) !important;
}
.ui.cards > .card .meta,
.ui.card .meta,
.ui.cards > .card .description,
.ui.card .description {
  color: var(--muted) !important;
}

/* Fields: one hairline treatment everywhere. */
.ui.input > input,
.ui.form input:not([type]),
.ui.form input[type="text"],
.ui.form input[type="email"],
.ui.form input[type="search"],
.ui.form input[type="tel"],
.ui.form input[type="password"],
.ui.form input[type="number"],
.ui.form textarea {
  border-radius: var(--field-radius) !important;
}

/* Fomantic's blue/teal accents read as "default web". Bring the common ones
   into the palette without touching semantic colours (red/green/orange). */
.ui.blue.label,
.ui.blue.labels .label,
.ui.teal.label {
  background: var(--panel-elev) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--ink) !important;
}
.ui.progress .bar { background: var(--accent) !important; }
.ui.checkbox input:checked ~ .box::after,
.ui.checkbox input:checked ~ label::after { color: var(--accent) !important; }
.ui.toggle.checkbox input:checked ~ .box::before,
.ui.toggle.checkbox input:checked ~ label::before { background-color: var(--accent) !important; }

.ui.inverted.divider,
.ui.divider:not(.vertical):not(.horizontal) {
  border-top-color: var(--line) !important;
}

/* ---------- 4. Buttons ---------- */
.ui.button {
  border-radius: var(--radius) !important;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.2s var(--ease) !important;
}
.ui.button:active { transform: translateY(1px); }

/* Primary: ivory on black, warming to gold on hover. Fomantic's default
   primary is #2185d0 - the single most "template" thing on the old site. */
.ui.primary.button,
.ui.primary.buttons .button {
  background: var(--ink) !important;
  color: var(--accent-ink) !important;
  box-shadow: none !important;
}
.ui.primary.button:hover,
.ui.primary.buttons .button:hover,
.ui.primary.button:focus-visible {
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}

/* Basic / inverted basic: hairline outline. */
.ui.basic.inverted.button,
.ui.inverted.basic.button {
  box-shadow: inset 0 0 0 1px var(--line-strong) !important;
  color: var(--ink) !important;
}
.ui.basic.inverted.button:hover,
.ui.inverted.basic.button:hover {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.7) !important;
  background: transparent !important;
  color: var(--accent) !important;
}

/* Native buttons/links used by the new components. */
.eg-btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 46px;
  padding: 0 1.4rem;
  border: 1px solid var(--btn-line);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font: 500 0.82rem/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.eg-btn:hover { border-color: var(--accent); color: var(--accent); }
.eg-btn--solid { --btn-bg: var(--ink); --btn-ink: var(--accent-ink); --btn-line: var(--ink); }
.eg-btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.eg-btn--quiet { --btn-line: transparent; padding: 0; min-height: 0; }
.eg-btn svg { width: 1em; height: 1em; flex: none; }

/* Text link with a trailing arrow that nudges on hover. */
.eg-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.eg-link-arrow::after {
  content: "\2192";
  transition: transform 0.3s var(--ease);
}
.eg-link-arrow:hover { color: var(--accent); }
.eg-link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 5. Top bar & sidebar ---------- */
.ui.top.fixed.menu.eg-topbar {
  height: var(--topbar-h);
  background: rgba(9, 9, 10, 0.72) !important;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border: 0 !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  padding: 0 calc(var(--gutter) - 1rem);
}
.ui.top.fixed.menu.eg-topbar .item {
  color: var(--ink) !important;
  background: transparent !important;
}
.ui.top.fixed.menu.eg-topbar .item::before { display: none; }   /* Fomantic item dividers */

.eg-topbar .eg-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: 500 0.78rem/1 var(--font-sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eg-topbar .eg-brand img {
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
}

/* Cart and hamburger sit at the right edge at every width. */
.ui.top.fixed.menu.eg-topbar .eg-cart-item { margin-left: auto !important; }

/* Desktop links. The hamburger stays: it carries account and admin. */
.eg-topnav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  margin-left: auto;
  padding-right: 1rem;
}
.eg-topnav a {
  position: relative;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0;
}
.eg-topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.eg-topnav a:hover,
.eg-topnav a[aria-current="page"] { color: var(--ink); }
.eg-topnav a:hover::after,
.eg-topnav a[aria-current="page"]::after { transform: scaleX(1); }
@media (min-width: 992px) {
  .eg-topnav { display: flex; }
  .ui.top.fixed.menu.eg-topbar .eg-topnav + .eg-cart-item { margin-left: 0 !important; }
}

#egMobileSidebar.ui.inverted.vertical.sidebar.menu {
  background: #0c0c0d !important;
  border-left: 1px solid var(--line);
  border-right: 0;
}
#egMobileSidebar .eg-gold {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

/* ---------- 6. Footer ---------- */
.site-footer {
  margin-top: 0;
  padding: clamp(56px, 8vw, 96px) var(--gutter) 32px;
  border-top: 1px solid var(--line);
  background: #070708;
  color: var(--muted);
  font-size: 0.9rem;
}
.eg-footer {
  max-width: 1200px;
  margin: 0 auto;
}
.eg-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .eg-footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.eg-footer__brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.eg-footer__tag {
  max-width: 32ch;
  margin: 0 0 1.5rem;
}
.eg-footer h2.eg-footer__head {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1rem;
  line-height: 1.4;
}
.eg-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.eg-footer__links a {
  color: var(--muted);
  text-decoration: none;
}
.eg-footer__links a:hover { color: var(--ink); }
.eg-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.eg-footer__social a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.eg-footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.site-footer .eg-footer__social .fa-brands { color: inherit !important; }
.eg-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 24px;
  font-size: 0.8rem;
  color: var(--faint);
}
.eg-footer__bottom a { color: var(--faint); }
.eg-footer__bottom a:hover { color: var(--ink); }
.site-footer .eg-footer-legal {
  margin: 0;
  max-width: 80ch;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--faint);
}

/* ---------- 7. Shared components ---------- */
.eg-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eg-section {
  padding: var(--section-y) 0;
}
.eg-section + .eg-section { padding-top: 0; }

.eg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font: 500 0.72rem/1 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.eg-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Page header: gold eyebrow, giant title with a light gold accent word, lede.
   The Partners & Vendors header, shared by every public section page
   (partners, listings, events, rallies, feed, store). Spacing below it comes
   from the surrounding .section-head, or from what follows on partners. */
.eg-pagehead__eyebrow {
  margin: 0 0 0.9rem;
  font: 600 0.75rem/1.4 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eg-pagehead h1.eg-pagehead__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.eg-pagehead__accent {
  font-weight: 300;
  color: var(--accent);
}
.eg-pagehead__lede {
  max-width: 44ch;
  margin: 1.1rem 0 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}
.eg-pagehead__note {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.eg-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.eg-section-head .eg-display {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: var(--ink);
}
.eg-section-head .eg-display em {
  font-style: italic;
  color: var(--accent);
}
.eg-lede {
  max-width: 56ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Media frame: fixed aspect, no layout shift, slow zoom on hover. */
.eg-media {
  display: block;            /* also used on <span>s inside links */
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #141416, #0c0c0d);
  aspect-ratio: 3 / 2;
}
.eg-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.4s var(--ease);
}
a:hover .eg-media img,
.eg-media:hover img { transform: scale(1.04); }
.eg-media__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
}

/* Chips: what the search understood. */
.eg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.eg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.02);
}
.eg-chip--accent {
  border-color: rgba(var(--accent-rgb), 0.45);
  color: var(--accent);
}
button.eg-chip {
  cursor: pointer;
  font-family: var(--font-sans);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
button.eg-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent-soft);
}

/* Empty states: considered, never apologetic. */
.eg-empty {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(var(--accent-rgb), 0.07), transparent 70%),
    var(--panel);
}
.eg-empty__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}
.eg-empty p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 48ch;
}

/* Date block for events and rallies. */
.eg-date {
  display: grid;
  place-items: center;
  align-content: center;
  width: 64px;
  height: 72px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  line-height: 1;
}
.eg-date__m {
  color: var(--accent);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-date__d {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
}

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

/* ---------- 8. Video facade (.eg-yt) ----------
   A poster <button> that becomes a youtube-nocookie iframe on click
   (common.js). Nothing is requested from Google until then. */
.eg-yt {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050506;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.eg-yt__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), opacity 0.4s var(--ease);
}
.eg-yt:hover .eg-yt__poster { transform: scale(1.03); }
/* Typographic poster when no car photo exists. */
.eg-yt__type {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(160deg, #141416 0%, #070708 100%);
}
.eg-yt__type::after {
  /* faint carbon weave */
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.25) 0 2px, transparent 2px 6px);
}
.eg-yt__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.78) 100%);
}
.eg-yt__caption {
  position: absolute;
  left: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 28px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.eg-yt__title {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.05;
  color: #fff;
}
.eg-yt__meta {
  display: block;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-yt__play {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(56px, 7vw, 76px);
  height: clamp(56px, 7vw, 76px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(9, 9, 10, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.eg-yt__play svg {
  width: 32%;
  height: 32%;
  margin-left: 6%;
  fill: #fff;
  transition: fill 0.3s var(--ease);
}
.eg-yt:hover .eg-yt__play,
.eg-yt:focus-visible .eg-yt__play {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.06);
}
.eg-yt:hover .eg-yt__play svg,
.eg-yt:focus-visible .eg-yt__play svg { fill: var(--accent-ink); }
.eg-yt iframe,
.eg-yt-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* After click the button is replaced by this wrapper. */
.eg-yt-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}

/* =========================================================================
   9. HOMEPAGE
   ========================================================================= */

/* The hero runs under the translucent top bar. */
.eg-page-home main { margin-top: calc(var(--topbar-h) * -1); }

/* ---- Hero ---- */
.eg-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  /* Cinematic but capped: on a very tall screen an uncapped hero is a wall of
     black before the first piece of content. */
  min-height: clamp(620px, 92svh, 1040px);
  padding: calc(var(--topbar-h) + 64px) 0 clamp(48px, 8vh, 96px);
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.eg-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.85) contrast(1.05) brightness(0.75);
}
.eg-hero::before {
  /* cinematic grade: vignette, a lift of gold at the horizon, and a
     fade into the page so the hero has no hard bottom edge */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 35%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(900px 380px at 85% 75%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    linear-gradient(180deg, rgba(9, 9, 10, 0.55) 0%, rgba(9, 9, 10, 0.1) 30%, rgba(9, 9, 10, 0.55) 70%, var(--bg) 100%);
}
.eg-hero__inner { width: 100%; }
.eg-hero__title {
  margin: 0 0 1.25rem;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.6rem, 6.2vw, 5.25rem);
  line-height: 1.02;
}
.eg-hero__title em {
  font-style: italic;
  color: var(--accent);
}
.eg-hero__sub {
  max-width: 52ch;
  margin: 0 0 2.25rem;
  color: rgba(242, 239, 232, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
}

/* ---- Search ---- */
.eg-search {
  position: relative;
  max-width: 820px;
}
.eg-search__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 6px 6px 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(12, 12, 13, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.eg-search__field:focus-within {
  border-color: rgba(var(--accent-rgb), 0.8);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14), 0 30px 80px rgba(0, 0, 0, 0.5);
  background: rgba(12, 12, 13, 0.82);
}
.eg-search__icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.eg-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 400 1.1rem/1.2 var(--font-sans) !important;
  letter-spacing: 0.005em;
}
.eg-search__input::placeholder { color: rgba(242, 239, 232, 0.5); }
.eg-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.eg-search__clear {
  flex: none;
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.eg-search__clear:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.eg-search.has-value .eg-search__clear { display: grid; }
.eg-search__submit {
  flex: none;
  height: 52px;
  padding: 0 1.6rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--accent-ink);
  font: 500 0.78rem/1 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.eg-search__submit:hover,
.eg-search__submit:focus-visible { background: var(--accent); }
.eg-search__submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (max-width: 599px) {
  .eg-search__field { flex-wrap: wrap; padding: 6px 6px 6px 16px; }
  .eg-search__input { height: 52px; font-size: 1rem !important; }
  .eg-search__submit { width: 100%; }
}

.eg-search__try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.eg-search__try-label {
  margin-right: 0.25rem;
  color: rgba(242, 239, 232, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-search__try .eg-chip {
  background: rgba(12, 12, 13, 0.45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.eg-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.eg-hero__stats li { color: rgba(242, 239, 232, 0.6); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; }
.eg-hero__stats strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #fff;
  font: 600 2rem/1 var(--font-display);
  letter-spacing: 0;
  text-transform: none;
}

/* ---- Results ---- */
.eg-results {
  scroll-margin-top: calc(var(--topbar-h) + 16px);
  padding: clamp(40px, 6vw, 72px) 0 0;
}
.eg-results[hidden] { display: none; }
.eg-results__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.25rem;
}
.eg-results__title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink);
}
.eg-results__title q { font-weight: 300; color: var(--accent); quotes: "\201C" "\201D"; }
.eg-results__understood {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.eg-results__understood > span {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-results__note {
  margin: 0 0 1.75rem;
  padding: 0.9rem 1.1rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: 0.92rem;
}
.eg-results__note[hidden] { display: none; }
.eg-results__divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-results__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.eg-results__foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
}

.eg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

/* Listing card */
.eg-car {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.eg-car:hover { color: var(--ink); }
.eg-car .eg-media { border-radius: var(--radius-lg); }
.eg-car__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 1rem 0.1rem 0;
}
.eg-car__make {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-car__model {
  margin: 0;
  font: 500 1.05rem/1.3 var(--font-sans);
  color: var(--ink);
}
.eg-car__price {
  align-self: start;
  font: 600 1.35rem/1.1 var(--font-display);
  color: var(--ink);
  white-space: nowrap;
}
.eg-car__meta {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.eg-car__meta span + span::before {
  content: "\00B7";
  margin: 0 0.5em;
  color: var(--faint);
}
.eg-car__flag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.35em 0.7em;
  border-radius: 2px;
  background: rgba(9, 9, 10, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--ink-2);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eg-car__flag--match { color: var(--accent); }

/* Skeletons */
.eg-skel .eg-media,
.eg-skel__line {
  background: linear-gradient(100deg, #141416 30%, #1d1d20 50%, #141416 70%);
  background-size: 300% 100%;
  animation: eg-shimmer 1.4s linear infinite;
}
.eg-skel .eg-media { border-radius: var(--radius-lg); }
.eg-skel__line {
  height: 12px;
  margin-top: 14px;
  border-radius: 2px;
}
.eg-skel__line--short { width: 40%; }
.eg-skel__line--mid { width: 70%; }
@keyframes eg-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -200% 0; }
}

/* ---- Listing Interviews ---- */
.eg-interview {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
@media (min-width: 992px) {
  .eg-interview { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
}
.eg-interview [role="tabpanel"][hidden] { display: none; }

.eg-about {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.eg-about__title {
  margin: 0;
  font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1.08 var(--font-display);
  color: var(--ink);
}
.eg-about__meta {
  margin: -0.5rem 0 0;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eg-about__summary {
  margin: 0;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 300;
}
.eg-about__label {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-about__takeaways {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tk;
  display: grid;
  gap: 0.6rem;
}
.eg-about__takeaways li {
  counter-increment: tk;
  display: grid;
  grid-template-columns: 2rem 1fr;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.eg-about__takeaways li::before {
  content: counter(tk, decimal-leading-zero);
  color: var(--accent);
  font: 600 0.95rem/1.6 var(--font-display);
}
.eg-about__quote {
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 1px solid var(--accent);
  color: var(--ink);
  font: 300 1.25rem/1.45 var(--font-display);
  letter-spacing: -0.01em;
}
.eg-about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.eg-about__actions .eg-btn { padding: 0 1.1rem; letter-spacing: 0.12em; }

/* The car the interview is about. */
.eg-feature-car {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.3s var(--ease);
}
.eg-feature-car:hover { border-color: rgba(var(--accent-rgb), 0.45); color: var(--ink); }
.eg-feature-car .eg-media { border-radius: var(--radius); aspect-ratio: 4 / 3; }
.eg-feature-car__kicker {
  display: block;
  color: var(--accent);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eg-feature-car__title { display: block; margin: 0.2rem 0; font-weight: 500; line-height: 1.3; }
.eg-feature-car__meta { color: var(--muted); font-size: 0.85rem; }

.eg-related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.eg-related a { color: var(--muted); font-size: 0.75rem; line-height: 1.3; text-decoration: none; }
.eg-related a:hover { color: var(--ink); }
.eg-related .eg-media { border-radius: var(--radius); aspect-ratio: 4 / 3; margin-bottom: 0.4rem; }

/* Episode rail */
.eg-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 1rem;
  margin-top: clamp(24px, 3vw, 40px);
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.eg-rail__item {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.eg-rail__item:hover { color: var(--ink); border-color: var(--line-strong); }
.eg-rail__item[aria-selected="true"] {
  color: var(--ink);
  border-color: rgba(var(--accent-rgb), 0.55);
  background: var(--accent-soft);
}
.eg-rail__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #1a1a1d, #0a0a0b);
}
.eg-rail__thumb img { width: 100%; height: 100%; object-fit: cover; }
.eg-rail__title { font-size: 0.85rem; line-height: 1.3; }

/* ---- The Journal: News, Rallies & Events ---- */
.eg-journal {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 4vw, 56px);
}
@media (min-width: 992px) {
  .eg-journal { grid-template-columns: 1.25fr 1fr 1fr; }
}
.eg-journal__col { min-width: 0; }
.eg-journal__colhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.eg-journal__colhead h3 {
  margin: 0;
  font: 500 0.75rem/1 var(--font-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.eg-journal__colhead a {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.eg-journal__colhead a:hover { color: var(--accent); }

/* Lead article */
.eg-story {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.eg-story:hover { color: var(--ink); }
.eg-story .eg-media { border-radius: var(--radius-lg); margin-bottom: 1.1rem; aspect-ratio: 16 / 10; }
.eg-story__date {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eg-story__title {
  margin: 0.45rem 0 0.6rem;
  font: 600 clamp(1.45rem, 2.2vw, 1.85rem)/1.12 var(--font-display);
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.eg-story:hover .eg-story__title { color: var(--accent); }
.eg-story__excerpt { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Compact list rows (more articles, events, rallies) */
.eg-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.eg-rows > li + li { border-top: 1px solid var(--line); }
.eg-row {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
}
.eg-rows > li:first-child .eg-row { padding-top: 0; }
.eg-row__body { min-width: 0; flex: 1; }
.eg-row__title {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
}
a.eg-row__title:hover { color: var(--accent); }
.eg-row__meta { color: var(--muted); font-size: 0.85rem; }
.eg-row__meta span + span::before { content: "\00B7"; margin: 0 0.45em; color: var(--faint); }
.eg-row__desc {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.eg-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin-top: 0.7rem;
}
.eg-row__actions a,
.eg-row__actions button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 500 0.7rem/1.6 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.eg-row__actions a:hover,
.eg-row__actions button:hover { color: var(--accent); }
.eg-row__tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1em 0.55em;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 2px;
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.eg-row__tag--past { border-color: var(--line-strong); color: var(--muted); }

/* Feature image for a rally */
.eg-rally-art {
  display: block;
  margin-bottom: 1.1rem;
}
.eg-rally-art .eg-media { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }

/* =========================================================================
   10. CAR PAGE (body.eg-page-car - common/index-car.cfm)
   car.css owns the layout; this only brings it into the type system and
   gives it the interview section.
   ========================================================================= */
.eg-page-car {
  font-family: var(--font-sans);
}
.eg-page-car .header h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: var(--display-track);
  line-height: 1.05;
}
.eg-page-car .price {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: -0.025em;
  font-size: 2rem;
  color: var(--ink);
}
.eg-page-car .section-title {
  color: var(--accent);
  letter-spacing: 0.22em;
}
.eg-car-videos {
  display: grid;
  gap: 1.5rem;
}
.eg-car-videos__item h3 {
  margin: 0.75rem 0 0.25rem;
  font: 600 1.35rem/1.2 var(--font-display);
  color: var(--ink);
}
.eg-car-videos__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- 11. Motion & accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.eg-search__input:focus-visible { outline: none; }   /* the field ring shows focus */

/* Reveal on scroll - opt-in via [data-reveal]; JS adds .is-in. Content is
   visible without JS because the hidden state only applies under .eg-js. */
.eg-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.eg-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .eg-hero__video { display: none; }
  .eg-js [data-reveal] { opacity: 1; transform: none; }
  .eg-media img,
  .eg-yt__poster { transition: none; }
  .eg-skel .eg-media,
  .eg-skel__line { animation: none; }
}
