.hero-slides {
  position: absolute;
  inset: 0;
}

html[data-event-theme="sunset"] { --navy:#35162f; --ink:#281322; --paper:#fff6ed; --coral:#f05a3c; --aqua:#ffc857; --violet:#9854d8; --line:#e4cfc0; --muted:#765e68; }
html[data-event-theme="forest"] { --navy:#10342f; --ink:#14302c; --paper:#f2f7f1; --coral:#e3a33c; --aqua:#8bd3c7; --violet:#738c68; --line:#cbd9cf; --muted:#5e716b; }
html[data-event-theme="blueprint"] { --navy:#082f49; --ink:#102a43; --paper:#f1f7fd; --coral:#f97316; --aqua:#38bdf8; --violet:#6366f1; --line:#cad9e8; --muted:#58718a; }
html[data-event-theme="gold"] { --navy:#111111; --ink:#1d1d1d; --paper:#f8f5ed; --coral:#d4af37; --aqua:#f0d77d; --violet:#6f5d2e; --line:#d8cfb7; --muted:#696254; }

.demo-ribbon {
  position: relative;
  z-index: 120;
  min-height: 44px;
  padding: 8px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
}

.demo-ribbon p { margin: 0; }
.palette-control { position: relative; flex: 0 0 auto; }
.palette-toggle { border: 1px solid #ffffff55; border-radius: 999px; padding: 7px 13px; background: transparent; color: #fff; font-weight: 800; cursor: pointer; }
.palette-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 230px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 18px 50px #0004; }
.palette-panel button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 9px; padding: 9px; background: transparent; color: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.palette-panel button:hover,.palette-panel button[aria-pressed="true"] { background: var(--paper); }
.palette-swatch { width: 32px; height: 20px; border-radius: 999px; border: 1px solid #0002; }
.palette-signal { background: linear-gradient(90deg,#10142c 0 34%,#ff684d 34% 67%,#62e2d5 67%); }
.palette-sunset { background: linear-gradient(90deg,#35162f 0 34%,#f05a3c 34% 67%,#ffc857 67%); }
.palette-forest { background: linear-gradient(90deg,#10342f 0 34%,#e3a33c 34% 67%,#8bd3c7 67%); }
.palette-blueprint { background: linear-gradient(90deg,#082f49 0 34%,#f97316 34% 67%,#38bdf8 67%); }
.palette-gold { background: linear-gradient(90deg,#111 0 34%,#d4af37 34% 67%,#f0d77d 67%); }

.tickets { background: linear-gradient(150deg, color-mix(in srgb,var(--navy),#fff 12%), var(--navy)); }
.speaker-detail,.session-detail { border: 0; border-bottom: 1px solid currentColor; padding: 0 0 2px; background: transparent; color: inherit; font-weight: 800; cursor: pointer; }
.speaker-detail { margin-top: 16px; align-self: flex-start; }
.session-detail { justify-self: end; }
.agenda article { grid-template-columns: 150px 1fr 130px auto; }
.demo-payment-note,.demo-form-note { padding: 16px 20px; border-left: 4px solid var(--coral); background: #ffffff10; }
.demo-payment-note { max-width: 820px; margin: 35px 0 0; }

.logistics { background: var(--paper); }
.logistics h2 em { color: var(--violet); }
.logistics-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 55px; }
.logistics-grid article { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.logistics-grid article>span { color: var(--violet); font-weight: 800; }
.logistics-grid h3 { margin: 38px 0 10px; font: 800 24px "Manrope",sans-serif; }
.event-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button-secondary { border: 1px solid var(--navy); background: transparent; color: var(--ink); }
.share-status { width: 100%; margin: 0; font-weight: 700; }

.detail-dialog { width: min(620px,calc(100% - 30px)); border: 0; border-radius: var(--radius); padding: 42px; background: #fff; color: var(--ink); box-shadow: 0 30px 100px #0007; }
.detail-dialog::backdrop { background: #10142cdd; }
.detail-dialog h2 { margin: 10px 0; font: 800 clamp(30px,5vw,48px)/1.08 "Manrope",sans-serif; }
.detail-role { color: var(--violet); font-weight: 800; }
.session-takeaway { padding: 18px; border-radius: 12px; background: var(--paper); }
.dialog-close { cursor: pointer; }

.mobile-ticket-cta { display: none; }

.hero-slides .hero-image {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slides .hero-image.is-active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 6vw, 96px);
  bottom: 34px;
  display: flex;
  gap: 8px;
}

.hero-dots span {
  width: 28px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  transition: background-color 0.3s ease, width 0.3s ease;
}

.hero-dots span.is-active {
  width: 46px;
  background: #ff6b5f;
}

.back-to-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: #10142c;
  color: #fff;
  box-shadow: 0 12px 28px rgba(16, 20, 44, 0.24);
  font: 700 25px/1 "Manrope", sans-serif;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #ff6b5f;
}

@media (min-width: 901px) {
  .site-header {
    display: grid;
    grid-template-columns: max-content 1fr;
    height: 96px;
    min-height: 96px;
    padding-inline: clamp(28px, 4vw, 72px);
  }

  .site-nav {
    width: 100%;
    justify-content: flex-end;
    gap: clamp(24px, 3vw, 52px);
  }

  .site-nav a {
    font-size: 17px;
  }

  .site-nav .nav-cta {
    padding: 15px 24px;
  }

  .hero {
    min-height: calc(100svh - 96px);
  }
}

@media (max-width: 900px) {
  .site-header {
    display: flex;
  }

  .site-nav {
    inset: 84px 0 auto;
  }

  .logistics-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .demo-ribbon { align-items: flex-start; padding-block: 10px; }
  .demo-ribbon p { max-width: 245px; line-height: 1.35; }
  .palette-toggle { white-space: nowrap; }
  .palette-panel { position: fixed; top: 54px; right: 12px; }
  .site-nav {
    inset: 74px 0 auto;
  }

  .hero-dots {
    left: 24px;
    bottom: 20px;
  }

  .back-to-top {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px));
    width: 48px;
    height: 48px;
  }

  .logistics-grid { grid-template-columns: 1fr; }
  .logistics-grid article { min-height: 0; }
  .session-detail { justify-self: start; }
  .agenda article { grid-template-columns: 85px 1fr; }
  .agenda .session-detail { grid-column: 2; }
  .event-tools .button { width: 100%; text-align: center; }
  .mobile-ticket-cta { position: fixed; z-index: 18; left: 16px; right: 76px; bottom: max(16px,env(safe-area-inset-bottom)); display: block; padding: 14px 20px; border-radius: 999px; background: var(--coral); color: var(--ink); box-shadow: 0 12px 28px #10142c44; font-weight: 800; text-align: center; text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides .hero-image,
  .hero-dots span,
  .back-to-top {
    transition: none;
  }
}
