/*
  Event 10 — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy these three
  files into any project and open index.html as-is.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --slate-950: #020617;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-900: #0f172a;
  --slate-200: #e2e8f0;
  --blue-400: #60a5fa;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--white);
  background-color: var(--slate-950);
  line-height: 1.5;
}

.events {
  padding: clamp(4rem, 3.5rem + 2vw, 6rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.events__inner {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.intro {
  max-width: 34rem;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue-400);
}

.heading {
  margin: 0.75rem 0 0;
  font-weight: 600;
  font-size: clamp(1.875rem, 1.5rem + 1.9vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
}

.layout {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.spotlight {
  overflow: hidden;
  border-radius: 1.5rem;
}

.spotlight img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.speaker__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-400);
}

.speaker__role {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--slate-400);
}

.session__title {
  margin: 1rem 0 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

.session__datetime {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--slate-400);
}

.cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--white);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-900);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.cta:hover {
  background-color: var(--slate-200);
}

.cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.lineup {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lineup__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lineup__time {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-500);
}

.lineup__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
}

.lineup__speaker {
  font-size: 0.75rem;
  color: var(--slate-400);
}

@media (min-width: 640px) {
  .lineup__item {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }

  .lineup__time {
    width: 5rem;
    flex-shrink: 0;
  }

  .lineup__title {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: minmax(0, 26rem) 1fr;
    align-items: center;
    gap: 3rem;
  }
}

/*
  Event 10 — spotlight reveal: the keynote photo opens from a circular
  mask centered on the frame, like a spotlight cutting on, while the
  session lineup slides in from the side afterward. Disabled entirely
  under reduced motion: outside the media query below, the photo already
  renders unmasked and every session row sits at its resting position.
*/
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-event10-spotlight {
    from {
      clip-path: circle(0% at 50% 50%);
    }
    to {
      clip-path: circle(100% at 50% 50%);
    }
  }

  @keyframes al-event10-session {
    from {
      opacity: 0;
      transform: translateX(20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .spotlight {
    animation: al-event10-spotlight 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .lineup__item {
    animation: al-event10-session 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}
