/* =========================================================
   Events page
   ========================================================= */

/* ---------- Hero with moving photo wall ---------- */
.e-hero {
  position: relative; overflow: hidden;
  /* keep the rotated photo wall from sliding under the fixed header */
  clip-path: inset(calc(var(--header-h) + 6px) 0 0 0);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  background:
    radial-gradient(45% 60% at 10% 80%, rgba(195, 1, 1, 0.16), transparent 70%),
    var(--bg);
}
.e-hero__inner { position: relative; z-index: 2; }
.e-hero__content { max-width: 600px; }
.e-hero__title {
  font-size: clamp(48px, 6.6vw, 100px); line-height: 0.92;
  letter-spacing: -0.05em; font-weight: 700; margin-top: 8px;
}
.e-hero__lead { max-width: 480px; margin: 26px 0 0; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.e-stats { display: flex; gap: 40px; margin: 32px 0; flex-wrap: wrap; }
.e-stats li { padding-left: 16px; border-left: 2px solid var(--red); }
.e-stats strong { display: block; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.e-stats span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.e-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.wall {
  position: absolute; z-index: 1; top: calc(var(--header-h) + 20px); bottom: 0; right: -4%; width: 56%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  transform: rotate(8deg) scale(1.25); transform-origin: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(transparent, #000 22%, #000 85%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(transparent, #000 22%, #000 85%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}
.wall__col { display: flex; flex-direction: column; gap: 14px; animation: wallUp 60s linear infinite; }
.wall__col:nth-child(2) { animation-name: wallDown; animation-duration: 75s; }
.wall__col:nth-child(3) { animation-duration: 52s; }
.wall__strip { display: flex; flex-direction: column; gap: 14px; }
.wall img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; filter: saturate(0.85); }
@keyframes wallUp { to { transform: translateY(-50%); } }
@keyframes wallDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.e-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 35%, transparent 70%);
}

/* ---------- Journey: uncropped frames on a timeline ---------- */
.journey { position: relative; background: var(--bg-2); --fh: clamp(260px, calc(100vh - 480px), 470px); }
.journey__sticky { padding: clamp(70px, 9vw, 110px) 0 60px; overflow: hidden; }
.journey.is-pinned .journey__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) - 6px) 0 20px;
}
.journey__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.journey__head .section__title { margin-top: 10px; }
.journey.is-pinned .journey__head .section__title { font-size: clamp(34px, 3.6vw, 52px); }

.rail { position: relative; min-width: min(460px, 100%); padding-bottom: 14px; }
.rail__years { display: flex; justify-content: space-between; gap: 10px; }
.rail__year {
  font-size: 15px; font-weight: 700; color: var(--muted); padding: 6px 4px;
  transition: color 0.3s, transform 0.4s var(--ease);
}
.rail__year:hover { color: var(--fg); }
.rail__year.active { color: var(--red-2); transform: translateY(-3px); }
.rail__line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--tint); overflow: hidden; }
.rail__fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), var(--red-2)); transform-origin: 0 50%; transform: scaleX(0); }

.journey__track {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  will-change: transform;
}
.journey:not(.is-pinned) .journey__track {
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: 10px;
}
.journey:not(.is-pinned) .journey__track::-webkit-scrollbar { display: none; }

/* timeline route across the top of every card */
.ev-card__pin { position: relative; height: 34px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ev-card__pin::before {
  content: ""; position: absolute; left: -14px; right: -14px; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, var(--tint-strong) 0 8px, transparent 8px 14px);
}
.ev-card__dot {
  position: relative; width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-2); border: 2px solid var(--tint-strong);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.ev-card__pin-year {
  position: relative; padding: 2px 10px; border-radius: 999px; background: var(--bg-2);
  font-size: 13px; font-weight: 700; color: var(--muted); transition: color 0.4s;
}

.ev-card, .ev-end { flex: 0 0 auto; scroll-snap-align: start; }
.ev-card {
  position: relative;
  width: max(320px, calc(var(--fh) * var(--ar)));
  max-width: 78vw;
  transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease);
}
.journey.is-pinned .ev-card:not(.is-focus) { opacity: 0.5; filter: saturate(0.4); transform: scale(0.95); transform-origin: 50% 0; }
.journey.is-pinned .ev-card:not(.is-focus):hover { opacity: 0.85; filter: none; }
.ev-card.is-focus .ev-card__dot { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 6px rgba(195, 1, 1, 0.18); }
.ev-card.is-focus .ev-card__pin-year { color: var(--red-2); }

/* photo frame — every photo shown whole */
.ev-card__frame {
  position: relative; height: var(--fh); border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #0d0c10; cursor: zoom-in; outline: none;
  box-shadow: 0 30px 60px -36px var(--shadow);
  transition: box-shadow 0.5s var(--ease);
}
.ev-card.is-focus .ev-card__frame { box-shadow: 0 40px 80px -36px rgba(195, 1, 1, 0.55); }
.ev-card__frame:focus-visible { box-shadow: 0 0 0 3px var(--red); }
.ev-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.ev-slide.is-active { opacity: 1; visibility: visible; }
.ev-slide__bg {
  position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover;
  filter: blur(28px) saturate(1.2) brightness(0.55); transform: scale(1.1);
}
.ev-slide__img {
  position: relative; width: 100%; height: 100%; object-fit: contain;
  transform: scale(0.97); filter: blur(6px);
  transition: transform 0.9s var(--ease), filter 0.7s var(--ease);
}
.ev-slide.is-active .ev-slide__img { transform: none; filter: none; }

/* frame controls appear on hover / focus */
.ev-card__hud { position: absolute; top: 12px; right: 12px; z-index: 2; }
.ev-card__expand, .ev-card__btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 8, 12, 0.55); color: #fff; backdrop-filter: blur(8px);
  transition: background 0.25s, transform 0.3s var(--ease);
}
.ev-card__expand svg, .ev-card__btn svg { width: 18px; height: 18px; fill: currentColor; }
.ev-card__btn:hover { background: var(--red); }
.ev-card__ctrl {
  position: absolute; left: 50%; bottom: 14px; z-index: 2; translate: -50% 0;
  display: flex; align-items: center; gap: 6px; padding: 4px;
  border-radius: 999px; background: rgba(10, 8, 12, 0.55); backdrop-filter: blur(8px); color: #fff;
}
.ev-card__ctrl .ev-card__btn { background: transparent; }
.ev-card__ctrl .ev-card__btn:hover { background: var(--red); }
.ev-card__counter { min-width: 52px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; opacity: 0.85; }
.ev-card__counter b { color: #fff; }
.ev-card__hud, .ev-card__ctrl { opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.4s var(--ease); }
.ev-card:hover .ev-card__hud, .ev-card:hover .ev-card__ctrl,
.ev-card:focus-within .ev-card__hud, .ev-card:focus-within .ev-card__ctrl { opacity: 1; transform: none; }

/* autoplay progress */
.ev-card__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 2; background: rgba(255, 255, 255, 0.12); }
.ev-card__bar span { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.ev-card__bar.run span { animation: evBar 3.4s linear forwards; }
@keyframes evBar { to { transform: scaleX(1); } }

/* details below the photo */
.ev-card__info { padding: 18px 4px 0; }
.ev-card__top { display: flex; align-items: center; gap: 12px; }
.ev-card__when { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-2); }
.ev-card__badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px; background: rgba(195, 1, 1, 0.12);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-2);
}
.ev-card h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 6px 0 6px; }
.ev-card h3 em { font-style: normal; color: var(--muted); }
.ev-card__blurb {
  color: var(--muted); font-size: 14.5px; line-height: 1.55;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.4s, margin 0.5s var(--ease);
}
.ev-card.is-focus .ev-card__blurb, .ev-card:hover .ev-card__blurb { max-height: 70px; opacity: 1; margin-bottom: 10px; }
.ev-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13.5px; color: var(--soft); }
.ev-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.ev-card__meta svg { width: 15px; height: 15px; fill: var(--red-2); flex-shrink: 0; }
.ev-card__stand { padding: 2px 10px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 600; font-size: 12px; }
.ev-card__browse { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.ev-card__browse:hover { color: var(--fg); }

.ev-end { width: clamp(290px, 26vw, 360px); }
.ev-end__box {
  height: var(--fh); border-radius: 22px; padding: 32px 28px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px;
  background: var(--surface); border: 1px dashed var(--tint-strong);
}
.ev-end h3 { font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; }
.ev-end p { color: var(--muted); margin-bottom: 10px; }

/* ---------- Gallery ---------- */
.gallery__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.gallery__count { font-size: 14px; color: var(--muted); }
.gallery__chips { margin: 0 0 30px; }
.g-grid { columns: 4 260px; column-gap: 16px; }
.g-item {
  position: relative; break-inside: avoid; margin: 0 0 16px;
  border-radius: 16px; overflow: hidden; cursor: zoom-in; outline: none;
  background: var(--surface);
}
.g-item[hidden] { display: none; }
.g-item img { width: 100%; height: auto; display: block; transition: transform 0.8s var(--ease), filter 0.5s; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-item:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff; font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.g-item figcaption small { font-weight: 400; opacity: 0.75; }
.g-item:hover figcaption, .g-item:focus-visible figcaption { opacity: 1; transform: none; }
.g-item.pop { animation: gIn 0.6s var(--ease) both; }
@keyframes gIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.gallery__more { display: flex; justify-content: center; margin-top: 20px; }
.gallery__more .btn span { opacity: 0.7; font-weight: 500; }

/* ---------- Lightbox ---------- */
.lb {
  position: fixed; inset: 0; z-index: 350; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb__backdrop { position: absolute; inset: 0; z-index: -1; background: rgba(6, 5, 8, 0.94); backdrop-filter: blur(10px); }
.lb__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; }
.lb__meta strong { display: block; font-size: 17px; letter-spacing: -0.01em; }
.lb__meta span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.lb__tools { display: flex; align-items: center; gap: 10px; }
.lb__count { font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.75); margin-right: 6px; }
.lb__btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 15px;
  transition: background 0.25s, transform 0.3s var(--ease);
}
.lb__btn:hover { background: var(--red); }
.lb__btn svg { width: 18px; height: 18px; fill: currentColor; }
#lbClose:hover { transform: rotate(90deg); }
#lbPlay .i-pause { display: none; }
#lbPlay[aria-pressed="true"] .i-play { display: none; }
#lbPlay[aria-pressed="true"] .i-pause { display: block; }

.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 76px; overflow: hidden; }
.lb__figure { max-width: 100%; max-height: 100%; display: grid; place-items: center; overflow: hidden; border-radius: 14px; }
.lb__figure img {
  max-width: 100%; max-height: calc(100vh - 210px); max-height: calc(100svh - 210px);
  object-fit: contain; border-radius: 14px; cursor: zoom-in;
  transition: transform 0.45s var(--ease);
}
.lb.zoomed .lb__figure img { transform: scale(2.2); cursor: zoom-out; }
.lb__figure img.in-r { animation: lbInR 0.5s var(--ease); }
.lb__figure img.in-l { animation: lbInL 0.5s var(--ease); }
.lb__figure img.in-f { animation: lbInF 0.5s var(--ease); }
@keyframes lbInR { from { opacity: 0; translate: 60px 0; } }
@keyframes lbInL { from { opacity: 0; translate: -60px 0; } }
@keyframes lbInF { from { opacity: 0; scale: 0.94; } }
.lb__nav { position: absolute; top: 50%; translate: 0 -50%; width: 54px; height: 54px; }
.lb__nav--prev { left: 14px; }
.lb__nav--next { right: 14px; }
.lb__nav svg { width: 22px; height: 22px; }

.lb__thumbs {
  display: flex; gap: 8px; padding: 14px 20px 18px; overflow-x: auto; scrollbar-width: none;
  justify-content: safe center;
}
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumb {
  flex: 0 0 auto; width: 76px; height: 54px; border-radius: 10px; overflow: hidden;
  opacity: 0.45; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity 0.25s, outline-color 0.25s, transform 0.3s var(--ease);
}
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumb:hover { opacity: 0.85; }
.lb__thumb.active { opacity: 1; outline-color: var(--red); transform: translateY(-3px); }
.lb__progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; overflow: hidden; }
.lb__progress span { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.lb.playing .lb__progress span { animation: lbBar 4s linear forwards; }
@keyframes lbBar { to { transform: scaleX(1); } }

/* ---------- Interactive map ---------- */
.map-sec { --ocean-1: #e9eef4; --ocean-2: #dde4ec; --land: #ffffff; --land-line: rgba(24, 18, 32, 0.12); }
.map-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.map-years { margin: 0; }
.map-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.map-grid > .map-wrap { grid-column: 1; grid-row: 1; }
/* the map sets the row height; the panel fills it and scrolls inside */
.map-grid > .map-panel { position: absolute; inset: 0; grid-column: 2; grid-row: 1; }

.map-wrap {
  position: relative; aspect-ratio: 1000 / 620; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 30%, var(--ocean-1), var(--ocean-2));
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px var(--shadow);
  user-select: none;
}
.map-svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.map-svg:active { cursor: grabbing; }
.map-grat { fill: none; stroke: var(--land-line); stroke-width: 0.6; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; }
.map-land { fill: var(--land); stroke: none; transition: fill 0.5s; }
.map-land.is-visited { fill: rgba(195, 1, 1, 0.32); }
.map-land.is-visited.is-dim { fill: rgba(195, 1, 1, 0.1); }
.map-land.is-visited.is-active { fill: rgba(195, 1, 1, 0.55); }
.map-land.is-office { fill: rgba(195, 1, 1, 0.14); }
.map-borders { fill: none; stroke: var(--land-line); stroke-width: 0.7; vector-effect: non-scaling-stroke; }

.map-arc { fill: none; stroke: rgba(195, 1, 1, 0.35); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke 0.4s, opacity 0.4s; }
.map-arc--flow { stroke: var(--red-2); stroke-width: 2; stroke-dasharray: 4 14; animation: arcFlow 1.6s linear infinite; opacity: 0.7; }
@keyframes arcFlow { to { stroke-dashoffset: -36; } }
.map-arc-g.is-dim { opacity: 0.15; }
.map-arc-g.is-active .map-arc { stroke: var(--red); }
.map-arc-g.is-active .map-arc--flow { opacity: 1; stroke-width: 2.6; }
.map-arc-dot { fill: #fff; filter: drop-shadow(0 0 4px var(--red)); }
.map-travel { fill: none; stroke: #ffd166; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(255, 209, 102, 0.8)); }

.map-node { cursor: pointer; outline: none; transition: opacity 0.4s; }
.map-node.is-office { cursor: default; }
.map-node.is-dim { opacity: 0.3; }
.map-node .core { fill: var(--red); stroke: #fff; stroke-width: 2; transition: r 0.3s; }
.map-node.is-hq .core { fill: #fff; stroke: var(--red); stroke-width: 3; }
.map-node.is-office .core { fill: var(--muted); stroke: var(--bg); stroke-width: 2; }
.map-node .ring { fill: none; stroke: var(--red); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: mapPing 2.6s var(--ease) infinite; }
.map-node .ring--2 { animation-delay: 1.3s; }
@keyframes mapPing { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3); opacity: 0; } }
.map-node .count { fill: #fff; font-size: 11px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.map-node .hq-mark { fill: var(--red); font-size: 13px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.map-node .lbl__name { fill: var(--fg); font-size: 14px; font-weight: 700; paint-order: stroke; stroke: var(--ocean-2); stroke-width: 4px; stroke-linejoin: round; }
.map-node .lbl__sub { fill: var(--muted); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--ocean-2); stroke-width: 4px; stroke-linejoin: round; }
.map-node:hover .core, .map-node:focus-visible .core, .map-node.is-active .core { stroke: #ffd166; }
.map-node.is-active .lbl__name { fill: var(--red-2); }
.map-node:focus-visible .core { stroke-width: 4; }

.map-tip {
  position: absolute; z-index: 5; pointer-events: none;
  transform: translate(-50%, calc(-100% - 22px));
  padding: 10px 14px; border-radius: 12px; min-width: 150px;
  background: var(--glass-2); border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 20px 40px -20px var(--shadow);
  font-size: 13px; line-height: 1.45; text-align: center;
  animation: tipIn 0.25s var(--ease);
}
.map-tip strong { display: block; font-size: 14px; }
.map-tip span { color: var(--muted); }
@keyframes tipIn { from { opacity: 0; transform: translate(-50%, calc(-100% - 12px)); } }

.map-ctrls { position: absolute; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 6px; }
.map-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line); color: var(--fg);
  font-size: 20px; font-weight: 600; line-height: 1; backdrop-filter: blur(10px);
  transition: background 0.25s, color 0.25s;
}
.map-btn svg { width: 17px; height: 17px; fill: currentColor; }
.map-btn:hover { background: var(--red); color: #fff; }
.map-play { position: absolute; left: 16px; top: 16px; }
.map-play svg { width: 16px; height: 16px; fill: currentColor; }
.map-play .i-stop { display: none; }
.map-play[aria-pressed="true"] .i-play { display: none; }
.map-play[aria-pressed="true"] .i-stop { display: block; }
.map-legend {
  position: absolute; left: 16px; bottom: 14px; display: flex; gap: 14px; flex-wrap: wrap;
  padding: 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line);
  font-size: 12px; color: var(--muted); backdrop-filter: blur(10px);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg--hq { background: #fff; border: 2.5px solid var(--red); }
.lg--ev { background: var(--red); }
.lg--of { background: var(--muted); }
.map-hint { position: absolute; right: 16px; bottom: 16px; font-size: 12px; color: var(--muted); }
.map-loading {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  color: var(--muted); font-size: 14px; pointer-events: none;
}
.map-loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--tint-strong); border-top-color: var(--red); animation: spin 0.9s linear infinite; }
.map-wrap.is-ready .map-loading { background: transparent; }

/* side panel */
.map-panel {
  border-radius: 26px; padding: 26px; overflow: auto; max-height: 100%;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.map-panel.swap > * { animation: infoSwap 0.5s var(--ease) both; }
.map-panel.swap > *:nth-child(2) { animation-delay: 0.04s; }
.map-panel.swap > *:nth-child(3) { animation-delay: 0.08s; }
.map-panel.swap > *:nth-child(4) { animation-delay: 0.12s; }
.mp-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-2); }
.mp-hq { color: var(--fg); }
.mp-title { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; letter-spacing: -0.02em; margin: 6px 0 8px; }
.mp-lead { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.mp-back { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.mp-back:hover { color: var(--fg); border-color: var(--tint-strong); }

.mp-cities { display: grid; gap: 8px; }
.mp-city {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color 0.25s, transform 0.3s var(--ease), background 0.25s;
}
.mp-city:hover, .mp-city:focus-visible { border-color: rgba(195, 1, 1, 0.5); transform: translateX(4px); background: rgba(195, 1, 1, 0.06); outline: none; }
.mp-city__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(195, 1, 1, 0.15); }
.mp-city__dot.is-hq { background: #fff; border: 3px solid var(--red); }
.mp-city__dot.is-office { background: var(--muted); box-shadow: none; display: inline-block; margin-right: 10px; }
.mp-city__name { font-weight: 700; line-height: 1.2; }
.mp-city__name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.mp-city__years { font-size: 12.5px; color: var(--muted); }
.mp-city__count { min-width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; }
.mp-office { display: flex; align-items: center; padding: 10px 14px; font-size: 13px; color: var(--muted); }

.mp-events { display: grid; gap: 10px; }
.mp-ev {
  display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: start;
  padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color 0.3s, opacity 0.3s, box-shadow 0.3s;
}
.mp-ev img { width: 76px; height: 76px; border-radius: 10px; object-fit: contain; background: #0d0c10; }
.mp-ev.is-dim { opacity: 0.45; }
.mp-ev.is-hot { border-color: var(--red); box-shadow: 0 0 0 3px rgba(195, 1, 1, 0.15); }
.mp-ev__when { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-2); }
.mp-ev strong { display: block; font-size: 16px; line-height: 1.25; margin: 2px 0; }
.mp-ev__meta { font-size: 12.5px; color: var(--muted); }
.mp-ev__actions { display: flex; gap: 14px; margin-top: 6px; }
.mp-ev__actions button { font-size: 13px; font-weight: 600; color: var(--fg); }
.mp-ev__actions button:hover { color: var(--red-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-grid > .map-panel { position: static; grid-column: 1; grid-row: 2; max-height: none; }
  .wall { width: 70%; opacity: 0.45; }
  .e-hero::after { background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 25%, transparent 80%); }
}
@media (max-width: 760px) {
  .e-hero { min-height: auto; padding: calc(var(--header-h) + 40px) 0 70px; }
  .wall { width: 100%; right: 0; opacity: 0.22; }
  .e-hero::after { background: linear-gradient(180deg, transparent, var(--bg) 92%); }
  .e-stats { gap: 22px; }
  .e-stats strong { font-size: 30px; }
  .rail { min-width: 100%; }
  .map-wrap { aspect-ratio: 1000 / 700; border-radius: 18px; }
  .map-hint, .map-legend { display: none; }
  .map-play { left: 10px; top: 10px; }
  .map-ctrls { top: 10px; right: 10px; }
  .map-panel { padding: 20px; }
  .mp-city { grid-template-columns: auto 1fr auto; }
  .mp-city__years { display: none; }
  .g-grid { columns: 2 140px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; border-radius: 12px; }
  .lb__stage { padding: 0 10px; }
  .lb__nav { display: none; }
  .lb__figure img { max-height: calc(100svh - 190px); }
  .lb__thumb { width: 60px; height: 44px; }
}
@media (max-width: 900px) {
  /* swipeable row: frame keeps the cover photo's proportions */
  .ev-card { width: 84vw; max-width: 520px; }
  .ev-card__frame { height: auto; aspect-ratio: var(--ar); max-height: 62vh; }
  .ev-end__box { height: auto; min-height: 300px; }
}
@media (hover: none) {
  .ev-card__hud, .ev-card__ctrl { opacity: 1; transform: none; }
  .ev-card__blurb { max-height: 70px; opacity: 1; margin-bottom: 10px; }
  .g-item figcaption { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wall__col { animation: none; }
}

/* ---------- Pre-rendered exhibition list (seen only before js/events.js takes over, or without JS) ---------- */
.ev-static { flex: 0 0 min(320px, 80vw); }
.ev-static img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.ev-static h3 { margin-top: 14px; font-size: 20px; }
.ev-static p { font-size: 14px; color: var(--muted); }
