/* ==========================================================================
   EDUCATE TO ELEVATE — V2 LAYER
   Loaded after css/styles.css (tokens + base components stay unchanged).
   This file holds only the new "premium editorial" language: the Substack
   announcement bar, frosted glass overlap cards, gold shimmer CTAs, grain
   texture, asymmetric photo/card composition, Ken Burns motion, and kinetic
   headline reveals. Chosen direction: Cinematic Ember Field (persistent
   particle canvas, in js/embers.js) + Luxury Editorial (this file's
   asymmetric glass-card structure).
   ========================================================================== */

/* ---- Sticky top bar wrapper (announce bar + header stick as one unit) -- */
.e2e-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  /* Force its own compositing layer. Without this, mobile Safari can fail
     to repaint a sticky element while a child (.e2e-announce) is mid-transition
     on a layout property (max-height) — the header, and the hamburger icon
     inside it, can flicker out or vanish entirely until the next scroll tick. */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
}

/* ---- Announcement bar (Substack CTA) ----------------------------------- */
.e2e-announce {
  background: var(--brown-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 20px;
  font-size: 13px;
  text-align: center;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  max-height: 220px;
  transition: opacity 0.5s ease, max-height 0.5s ease, padding 0.5s ease;
}
.e2e-announce.is-hidden {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.e2e-announce span { color: var(--brown-200, #cbb9ad); }
.e2e-announce a {
  background: var(--gold-500);
  color: var(--brown-900);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: 2px;
  white-space: nowrap;
}
.e2e-announce a:hover { background: var(--gold-600); }

/* ---- Announcement bar social icons -------------------------------------- */
.e2e-announce__social { display: flex; align-items: center; gap: 10px; margin-left: 2px; }
.e2e-announce__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  padding: 0;
  border-radius: 50%;
  text-transform: none;
  font-weight: 400;
  transition: background 0.2s ease, transform 0.2s ease;
}
.e2e-announce__social a:hover { background: var(--gold-500); color: var(--brown-900); transform: translateY(-2px); }
.e2e-announce__social svg { width: 13px; height: 13px; fill: currentColor; }

/* ---- Contact popup modal (Google Form embed) ---------------------------- */
.e2e-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.e2e-modal[hidden] { display: none; }
.e2e-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(29,23,19,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.e2e-modal__panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: min(720px, 88vh);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.e2e-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--brown-900);
  transition: background 0.2s ease, color 0.2s ease;
}
.e2e-modal__close:hover { background: var(--gold-500); color: var(--brown-900); }
.e2e-modal iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Social tiles (Substack / Instagram / LinkedIn, Contact page) ------- */
.e2e-social-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.e2e-social-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.e2e-social-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold-400);
}
.e2e-social-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brown-900);
  color: var(--white);
  transition: background 0.25s ease;
}
.e2e-social-tile:hover .e2e-social-tile__icon { background: var(--gold-500); color: var(--brown-900); }
.e2e-social-tile__icon svg { width: 20px; height: 20px; fill: currentColor; }
.e2e-social-tile__label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--brown-900);
}
.e2e-social-tile__desc { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

@media (max-width: 760px) {
  .e2e-social-tiles { grid-template-columns: 1fr; }
}

/* ---- Grain texture overlay (subtle, whole-page) ------------------------ */
.e2e-grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- Frosted nav (ties the header to the same glass language) ---------- */
.e2e-header--glass {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* ---- Frosted glass overlap card ----------------------------------------- */
.e2e-glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow-lift);
}
.e2e-glass--dark {
  background: rgba(61,49,42,0.62);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}

/* ---- Asymmetric photo + overlapping card composition -------------------
   Structure:
   <div class="e2e-asym">
     <div class="e2e-asym__photo"><img .../></div>
     <div class="e2e-asym__card e2e-glass e2e-asym__card--br"> ... </div>
   </div>
   -------------------------------------------------------------------- */
.e2e-asym { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.e2e-asym__photo { width: 64%; aspect-ratio: 5/4; overflow: hidden; position: relative; }
.e2e-asym__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e2e-asym__card {
  position: absolute;
  width: 46%;
  padding: 44px;
  z-index: 2;
}
.e2e-asym__card--br { right: 0; bottom: -56px; }
.e2e-asym__card--bl { left: 0; bottom: -56px; }
.e2e-asym__card--tr { right: 0; top: -40px; }

.e2e-asym--reverse .e2e-asym__photo { margin-left: auto; }
.e2e-asym--reverse .e2e-asym__card--br { right: auto; left: 0; }

.e2e-asym__card .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-600);
  display: block; margin-bottom: 10px;
}
.e2e-asym__card h2, .e2e-asym__card h3 {
  font-family: var(--font-display); font-weight: 400; color: var(--brown-900); margin: 0 0 14px;
}
.e2e-asym__card p { font-size: var(--text-body-size); color: var(--text-secondary); margin: 0 0 20px; }

@media (max-width: 860px) {
  .e2e-asym__photo { width: 100%; margin: 0 !important; }
  .e2e-asym__card {
    position: static; width: 100%; margin-top: -48px; padding: 32px;
  }
}

/* ---- Shimmer button (layer on top of existing .e2e-btn variants) ------- */
.e2e-btn--shimmer { position: relative; overflow: hidden; }
.e2e-btn--shimmer::after {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: e2eShimmer 3.4s ease-in-out infinite;
}
.e2e-btn--shimmer.e2e-btn--primary::after,
.e2e-btn--shimmer.e2e-btn--outline::after {
  background: linear-gradient(120deg, transparent, rgba(234,187,30,0.55), transparent);
}
@keyframes e2eShimmer { 0% { left: -60%; } 55%, 100% { left: 130%; } }

/* ---- Ken Burns slow zoom (apply to an <img> inside a fixed-size wrap) -- */
.e2e-kenburns { animation: e2eKenBurns 22s ease-in-out infinite alternate; }
@keyframes e2eKenBurns { from { transform: scale(1); } to { transform: scale(1.09); } }

/* ---- Kinetic headline reveal -------------------------------------------
   Markup: wrap each reveal "chunk" in <span class="e2e-kinetic-word">.
   JS (js/reveal.js) adds .is-armed to the parent on load (progressive
   enhancement — if JS never runs, text stays visible, no FOUC risk), then
   adds .is-in on intersection to animate each word in with a stagger. -->
.e2e-kinetic.is-armed .e2e-kinetic-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.e2e-kinetic.is-armed.is-in .e2e-kinetic-word { opacity: 1; transform: translateY(0); }

/* ---- Softened pillar strip (v2): chips instead of hard-divided columns - */
.e2e-pillars--v2 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border: none; padding: 0 var(--gutter);
}
.e2e-pillar--v2 {
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
@media (max-width: 720px) { .e2e-pillars--v2 { grid-template-columns: 1fr; } }

/* ---- Floating testimonial cards (v2) ------------------------------------ */
.e2e-quote--v2 {
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--teal-600);
  padding: 28px 28px 28px 24px;
}

/* ---- De-boxed keynote cards (v2): shadow + stagger, gradient accent ----- */
.e2e-keynote-grid--v2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.e2e-keynote-card--v2 {
  --card-y: 0px;
  position: relative;
  overflow: hidden;
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 148px;
  transform: translateY(var(--card-y));
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.e2e-keynote-card--v2:nth-child(even) { --card-y: 18px; }
.e2e-keynote-card--v2::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-300) 55%, var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.e2e-keynote-card--v2:hover {
  transform: translateY(calc(var(--card-y) - 6px));
  box-shadow: var(--shadow-lift);
}
.e2e-keynote-card--v2:hover::before { transform: scaleX(1); }
.e2e-keynote-card--v2__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.32;
  color: var(--brown-900);
  margin: 0;
}
.e2e-keynote-card--v2__title::before {
  content: "\25C6";
  color: var(--gold-500);
  font-size: 0.5em;
  margin-right: 9px;
  vertical-align: middle;
  position: relative;
  top: -0.15em;
}
.e2e-keynote-card--v2__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.e2e-keynote-card--v2__org {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.e2e-keynote-card--v2__date {
  position: relative;
  overflow: hidden;
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--gold-500);
  color: var(--text-on-gold);
  padding: 4px 11px;
  border-radius: var(--radius-round);
}
@media (max-width: 720px) {
  .e2e-keynote-grid--v2 { grid-template-columns: 1fr; }
  .e2e-keynote-card--v2:nth-child(even) { --card-y: 0px; }
}

/* ---- Timeline accordion (Keynotes page) ---------------------------------
   Structure:
   <div class="e2e-timeline">
     <div class="e2e-timeline-year is-open" data-year="2026">
       <button class="e2e-timeline-year__head" aria-expanded aria-controls>
         <span class="e2e-timeline-year__node"></span>
         <span class="e2e-timeline-year__label">2026</span>
         <span class="e2e-timeline-year__count">1 keynote</span>
         <span class="e2e-timeline-year__chevron">...</span>
       </button>
       <div class="e2e-timeline-year__panel" id="...">
         <div class="e2e-timeline-year__panel-inner">
           <div class="e2e-keynote-grid--v2">...cards...</div>
         </div>
       </div>
     </div>
     ...
   </div>
   -------------------------------------------------------------------- */
.e2e-timeline { position: relative; max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.e2e-timeline-year { position: relative; padding-left: 46px; scroll-margin-top: 112px; }
.e2e-timeline-year::before {
  /* connecting spine segment */
  content: "";
  position: absolute;
  left: 13px; top: 40px; bottom: -8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-400), var(--teal-300) 85%, transparent);
  opacity: 0.55;
}
.e2e-timeline-year:last-child::before { display: none; }

.e2e-timeline-year__head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 14px;
  margin: 0 0 4px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
}
.e2e-timeline-year__head:hover { background: var(--brown-50, rgba(61,49,42,0.04)); }
.e2e-timeline-year__head:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.e2e-timeline-year__node {
  position: absolute;
  left: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  flex: none;
  background: radial-gradient(circle at 35% 30%, var(--gold-300, var(--gold-400)), var(--gold-600) 75%);
  box-shadow: 0 0 0 5px var(--surface-page, #fff), 0 0 0 6px rgba(234,187,30,0.28);
  animation: e2eFlicker 2.8s ease-in-out infinite;
}
.e2e-timeline-year.is-open .e2e-timeline-year__node {
  box-shadow: 0 0 0 5px var(--surface-page, #fff), 0 0 0 6px rgba(2,122,106,0.35), 0 0 16px rgba(234,187,30,0.65);
}
@keyframes e2eFlicker {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.82); opacity: 0.72; }
}

.e2e-timeline-year__label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  color: var(--teal-600);
  flex: none;
}
.e2e-timeline-year__count {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex: 1;
}
.e2e-timeline-year__chevron {
  flex: none;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  color: var(--brown-900);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.e2e-timeline-year.is-open .e2e-timeline-year__chevron { transform: rotate(180deg); color: var(--teal-600); }

.e2e-timeline-year__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16,1,0.3,1);
}
.e2e-timeline-year.is-open .e2e-timeline-year__panel { grid-template-rows: 1fr; }
.e2e-timeline-year__panel-inner { overflow: hidden; min-height: 0; }
.e2e-timeline-year__panel .e2e-keynote-grid--v2 { padding: 6px 2px 32px; }

/* Cards fade/slide in only once their year panel opens */
.e2e-timeline-year__panel .e2e-keynote-card--v2 {
  opacity: 0;
  transform: translateY(calc(var(--card-y) + 18px));
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease;
}
.e2e-timeline-year.is-open .e2e-timeline-year__panel .e2e-keynote-card--v2 {
  opacity: 1;
  transform: translateY(var(--card-y));
}
.e2e-timeline-year.is-open .e2e-timeline-year__panel .e2e-keynote-card--v2:nth-child(1) { transition-delay: 0.10s; }
.e2e-timeline-year.is-open .e2e-timeline-year__panel .e2e-keynote-card--v2:nth-child(2) { transition-delay: 0.18s; }
.e2e-timeline-year.is-open .e2e-timeline-year__panel .e2e-keynote-card--v2:nth-child(3) { transition-delay: 0.26s; }
.e2e-timeline-year.is-open .e2e-timeline-year__panel .e2e-keynote-card--v2:nth-child(4) { transition-delay: 0.34s; }
.e2e-timeline-year.is-open .e2e-timeline-year__panel .e2e-keynote-card--v2:hover {
  transform: translateY(calc(var(--card-y) - 6px));
  box-shadow: var(--shadow-lift);
}

@media (max-width: 560px) {
  .e2e-timeline-year__head { gap: 12px; padding: 14px 10px; flex-wrap: wrap; }
  .e2e-timeline-year__count { flex-basis: 100%; order: 3; margin-left: 32px; }
}

/* ---- Functional year chips (jump + open) — now <button>, not <span> ---- */
.e2e-tag {
  cursor: pointer;
  font-family: var(--font-body);
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.e2e-tag:hover:not(.is-active) { border-color: var(--teal-600); color: var(--teal-600); }
.e2e-tag:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---- Shimmer badge (credentials — subtle, continuous) ------------------- */
.e2e-badge--shimmer { position: relative; overflow: hidden; }
.e2e-badge--shimmer::after {
  content: "";
  position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
  animation: e2eShimmer 5s ease-in-out infinite;
}

/* ---- Mission statement band (large centered serif line) ---------------- */
.e2e-statement {
  max-width: 900px;
  margin: 0 auto 96px;
  padding: 56px var(--gutter);
  text-align: center;
  position: relative;
}
.e2e-statement::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold-500);
  margin: 0 auto 28px;
}
.e2e-statement p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.4;
  color: var(--brown-900);
  margin: 0;
}

/* ---- Service offer cards (Services page) -------------------------------- */
.e2e-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto 96px;
  padding: 0 var(--gutter);
}
.e2e-service-card {
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.e2e-service-card:nth-child(2) { transform: translateY(28px); }
.e2e-service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-round);
  background: var(--teal-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem;
}
.e2e-service-card h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-display-sm-size); color: var(--brown-900);
  margin: 0;
}
.e2e-service-card > p {
  font-size: var(--text-body-size); line-height: var(--text-body-line);
  color: var(--text-secondary); margin: 0;
}
.e2e-service-card__label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-600); margin: 8px 0 -4px;
}
.e2e-service-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.e2e-service-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: var(--text-body-size); color: var(--text-primary); line-height: 1.5;
}
.e2e-service-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: var(--radius-round);
  background: var(--teal-600);
}
@media (max-width: 860px) {
  .e2e-service-grid { grid-template-columns: 1fr; }
  .e2e-service-card:nth-child(2) { transform: none; }
}

/* ---- Kinetic marquee (Keynotes page header band) ------------------------
   Structure: .e2e-marquee > .e2e-marquee__track > two .e2e-marquee__group
   (identical content, second one aria-hidden) so the translateX(-50%) loop
   is seamless. Each group is a row of .e2e-marquee__item + trailing dot. */
.e2e-marquee {
  background: var(--brown-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 30px 0;
}
.e2e-marquee__track {
  display: flex;
  width: max-content;
  animation: e2eMarquee 34s linear infinite;
}
.e2e-marquee__group { display: flex; align-items: center; gap: 56px; flex: none; padding-right: 56px; }
.e2e-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  color: var(--gold-500);
  white-space: nowrap;
}
.e2e-marquee__dot { font-size: 0.42em; color: rgba(234,187,30,0.4); }
@keyframes e2eMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Big, hover-reactive credential badges (About page) -----------------
   Same gold-sweep motion language as the keynotes ticker: a shimmer sweeps
   through on hover instead of scrolling continuously, plus a lift + border
   glow. Layer on top of .e2e-badge + a color modifier. */
.e2e-badge--v2 {
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-round);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.e2e-badge--v2::after {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
}
.e2e-badge--v2:hover::after { left: 130%; }
.e2e-badge--v2:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.e2e-badge--v2.e2e-badge--outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
  background: var(--gold-50);
}
.e2e-badge--v2.e2e-badge--gold:hover { background: var(--gold-600); }
.e2e-badge--v2.e2e-badge--teal:hover { background: var(--teal-700, var(--teal-800)); }

/* ---- Motion safety net -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .e2e-kenburns { animation: none; }
  .e2e-announce { transition: none; }
  .e2e-announce__social a:hover { transform: none; }
  .e2e-social-tile:hover { transform: none; }
  .e2e-btn--shimmer::after, .e2e-badge--shimmer::after { animation: none; display: none; }
  .e2e-kinetic.is-armed .e2e-kinetic-word { opacity: 1; transform: none; transition: none; }
  .e2e-timeline-year__node { animation: none; }
  .e2e-timeline-year__panel { transition: none; }
  .e2e-timeline-year__panel .e2e-keynote-card--v2,
  .e2e-timeline-year.is-open .e2e-timeline-year__panel .e2e-keynote-card--v2 {
    opacity: 1; transform: translateY(var(--card-y)); transition: none;
  }
  .e2e-keynote-card--v2, .e2e-keynote-card--v2:hover,
  .e2e-timeline-year.is-open .e2e-timeline-year__panel .e2e-keynote-card--v2:hover {
    transform: translateY(var(--card-y));
  }
  .e2e-marquee__track { animation: none; }
  .e2e-marquee { overflow-x: auto; }
  .e2e-badge--v2 { transition: none; }
  .e2e-badge--v2::after { display: none; }
  .e2e-badge--v2:hover { transform: none; }
}
