:root {
  --background: #0B0B0F;
  --surface: #131317;
  --surface-container: #1f1f23;
  --text-primary: #F5F5F2;
  --text-muted: #9A9AA2;
  --primary: #FF4A23;
  --secondary: #2E6BFF;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --radius: 16px;
  --topbar-h: 72px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 12%, rgba(255, 74, 35, 0.08), transparent 28rem),
    radial-gradient(circle at 18% 92%, rgba(46, 107, 255, 0.09), transparent 26rem),
    var(--background);
  color: var(--text-primary);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.topbar {
  flex: 0 0 var(--topbar-h);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  background: rgba(11, 11, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 20;
}

.header-title {
  display: flex;
  align-items: baseline;
  min-width: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(24px, 2.1vw, 32px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  white-space: nowrap;
}

.wordmark { transition: color 180ms ease; }
.wordmark:hover, .wordmark:focus-visible { color: var(--primary); outline: none; }
.title-suffix { color: var(--primary); }
.event-name { color: var(--primary); }

.event-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
  text-align: right;
  white-space: nowrap;
}

.page-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(500px, 39%) minmax(0, 61%);
  overflow: hidden;
}

.takeaways-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(19, 19, 23, 0.62);
  overflow: hidden;
}

.insights-list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7px 20px;
  overflow: hidden;
}

.insight-card {
  flex: 0 1 auto;
  min-height: 0;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.insight-card:last-child { border-bottom: 0; }

.insight-row { display: flex; gap: 12px; align-items: flex-start; }

.insight-number {
  flex: 0 0 40px;
  font-family: "Space Grotesk", Inter, sans-serif;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.insight-copy h2 {
  margin: -1px 0 3px;
  font-family: "Space Grotesk", Inter, sans-serif;
  color: var(--text-primary);
  font-size: clamp(18px, 1.32vw, 21px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.insight-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(13.5px, 1.02vw, 15.5px);
  line-height: 1.18;
}

.insight-copy .source-note {
  margin-top: 2px;
  color: rgba(154, 154, 162, 0.76);
  font-size: clamp(11px, 0.82vw, 12px);
  line-height: 1.12;
}

.media-panel {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 22px 18px;
  background: #050507;
}

.glow {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.08;
}
.glow-coral { width: 24rem; height: 24rem; top: -7rem; right: -5rem; background: var(--primary); }
.glow-blue { width: 20rem; height: 20rem; left: -6rem; bottom: -4rem; background: var(--secondary); }

.media-browser {
  position: relative;
  z-index: 1;
  width: min(100%, 1060px);
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.viewer-wrap {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame {
  position: relative;
  width: min(100%, calc((100vh - var(--topbar-h) - 110px) * 4 / 3));
  max-width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)), var(--surface-container);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.media-click-target {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #050507;
  color: inherit;
  cursor: pointer;
}

.media-click-target img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #050507;
  transition: filter 180ms ease, transform 180ms ease;
}

.media-click-target:hover img,
.media-click-target:focus-visible img {
  filter: brightness(1.05);
  transform: scale(1.006);
}
.media-click-target:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }

.click-hint {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(5,5,7,0.54);
  color: rgba(245,245,242,0.82);
  backdrop-filter: blur(18px);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.86;
}

.arrow-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none;
}

.nav-arrow,
.lightbox-arrow,
.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary);
  backdrop-filter: blur(20px);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-arrow {
  pointer-events: auto;
  width: 48px;
  height: 48px;
}
.nav-arrow svg,
.lightbox-arrow svg { width: 26px; height: 26px; fill: currentColor; }

.nav-arrow:hover,
.nav-arrow:focus-visible,
.lightbox-arrow:hover,
.lightbox-arrow:focus-visible,
.lightbox-close:hover,
.lightbox-close:focus-visible {
  transform: scale(1.08);
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  outline: none;
}

.caption-block {
  width: min(100%, 820px);
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.caption {
  min-height: 24px;
  margin: 0;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 24px;
  font-weight: 500;
}

.pagination { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.counter {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticks { display: flex; gap: 8px; }
.tick {
  width: 34px;
  height: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.tick::before {
  content: "";
  position: absolute;
  inset: 3px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 160ms ease, transform 160ms ease;
}
.tick:hover::before, .tick:focus-visible::before { background: rgba(255, 255, 255, 0.28); }
.tick.is-active::before { background: var(--primary); }

.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px 84px;
  background: rgba(2, 2, 4, 0.92);
  backdrop-filter: blur(18px);
}
.lightbox-figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 100px rgba(0,0,0,0.62);
}
.lightbox-figure figcaption {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 22px;
  text-align: center;
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 30px;
  line-height: 1;
  z-index: 102;
}
.lightbox-arrow {
  position: fixed;
  top: 50%;
  width: 52px;
  height: 52px;
  z-index: 101;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  body { height: auto; min-height: 100vh; overflow: auto; }
  .topbar {
    flex: 0 0 auto;
    min-height: var(--topbar-h);
    height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px 18px;
  }
  .header-title { flex-wrap: wrap; white-space: normal; font-size: 26px; line-height: 31px; }
  .event-meta { font-size: 13px; line-height: 18px; text-align: left; white-space: normal; }
  .page-shell { display: flex; flex-direction: column; overflow: visible; }
  .takeaways-panel { border-right: 0; border-bottom: 1px solid var(--border); overflow: visible; }
  .insights-list { overflow: visible; padding: 12px 20px; }
  .insight-card { padding: 13px 0; }
  .insight-row { gap: 13px; }
  .insight-number { flex-basis: 40px; font-size: 21px; }
  .insight-copy h2 { font-size: 19px; line-height: 1.14; margin-bottom: 5px; }
  .insight-copy p { font-size: 14px; line-height: 1.48; }
  .insight-copy .source-note { font-size: 12px; line-height: 1.35; margin-top: 5px; }
  .media-panel { min-height: auto; padding: 22px 20px 30px; }
  .media-browser { height: auto; gap: 16px; }
  .media-frame { width: 100%; }
  .arrow-layer { padding: 0 10px; }
  .nav-arrow { width: 42px; height: 42px; }
  .caption { min-height: auto; font-size: 16px; line-height: 23px; }
  .lightbox { padding: 72px 14px 28px; }
  .lightbox-arrow { width: 44px; height: 44px; top: auto; bottom: 22px; }
  .lightbox-prev { left: 22px; }
  .lightbox-next { right: 22px; }
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-figure img { max-height: calc(100vh - 154px); }
}

@media (max-width: 430px) {
  .ticks { gap: 5px; }
  .tick { width: 31px; }
  .click-hint { left: 12px; bottom: 12px; font-size: 10px; }
}
