:root {
  --hero-paper: #020503;
  --hero-canvas-top: #080808;
  --hero-ink: #eee8d8;
  --hero-accent: #00c663;
  --hero-focus: #70f8ae;
  --hero-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --hero-ease: cubic-bezier(.23, 1, .32, 1);
  scroll-behavior: smooth;
}

html {
  overflow-x: clip;
  background: var(--hero-paper);
}

body.landing-page {
  --bg: var(--hero-paper);
  min-width: 320px;
  overflow-x: clip;
  background: var(--hero-paper);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  min-height: 44px;
  padding: .65rem .9rem;
  border: 1px solid var(--hero-ink);
  border-radius: 2px;
  color: var(--hero-paper);
  background: var(--hero-accent);
  font: 700 .78rem/1 var(--hero-mono);
}

.hero-stage {
  position: relative;
  z-index: 2;
  color: var(--hero-ink);
  background: var(--hero-paper);
  color-scheme: dark;
}

.event-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: linear-gradient(to bottom, var(--hero-canvas-top), var(--hero-paper));
}

.event-hero__artwork {
  position: relative;
  width: 100%;
  aspect-ratio: 1586 / 992;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--hero-canvas-top), var(--hero-paper));
}

.event-hero__picture {
  position: absolute;
  inset: 0;
  display: block;
}

.event-hero__plate {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.event-hero__plate--base {
  z-index: 0;
  /* Keep the supplied artwork still: no entrance zoom or fade. */
  animation: none;
}

.event-hero__ink-depth {
  display: block;
  z-index: 1;
  opacity: 0;
  mix-blend-mode: screen;
  filter: contrast(1.12) brightness(.96);
  pointer-events: none;
  animation-play-state: paused;
}

.event-hero__ink-depth--hand {
  display: none;
}

.event-hero__ink-depth--network {
  clip-path: polygon(51% 0, 100% 0, 100% 100%, 49% 100%, 49% 46%, 46% 27%);
  animation: hero-network-ink 16s cubic-bezier(.45, 0, .55, 1) -5.6s infinite;
  animation-play-state: paused;
}

.event-hero__artwork.is-ink-alive:not(.is-shader-ready) .event-hero__ink-depth {
  animation-play-state: running;
}

.event-hero__shader {
  position: absolute;
  z-index: 2;
  display: block;
  width: 0;
  height: 0;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgb(0 198 99 / 8%));
  pointer-events: none;
  transition: opacity 500ms var(--hero-ease);
}

.event-hero__artwork.is-shader-ready .event-hero__shader { opacity: 1; }
.event-hero__artwork.is-shader-ready .event-hero__ink-depth { display: none; }

.event-hero__caption-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 100%;
  height: auto;
  aspect-ratio: 1586 / 992;
  margin: 0;
  transform: translate(-50%, -50%);
  container-type: inline-size;
  pointer-events: none;
}

.event-hero__meta {
  position: absolute;
  top: auto;
  bottom: 3.5%;
  right: 1.2%;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  width: auto;
  min-width: 0;
  gap: .3em;
  color: #e7dac7;
  font-family: var(--serif);
  font-size: clamp(.875rem, 1.7vw, 1.55rem);
  font-size: clamp(.875rem, 1.7cqw, 1.55rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.025em;
  text-align: right;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgb(0 0 0 / 45%);
}

.event-hero__meta-title {
  font-weight: 500;
}

.event-hero__meta-separator {
  margin-inline: .2rem;
  color: var(--muted);
}

.event-hero__meta time {
  font-weight: 500;
}

.fred-directory {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: var(--hero-paper);
}

.fred-directory .landing {
  padding-top: clamp(2.75rem, 6vw, 5.5rem);
}

.fred-directory .session-list > .session-group:first-child > .session-heading {
  padding-top: 0;
  border-top: 0;
}

@keyframes hero-poster-resolve {
  from {
    opacity: 0;
    transform: scale(1.004);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-network-ink {
  0%, 100% { opacity: .01; }
  38% { opacity: .11; }
  74% { opacity: .028; }
}

@media (min-width: 1024px) and (min-aspect-ratio: 4 / 3) {
  .event-hero__artwork {
    height: 100svh;
    min-height: 640px;
    aspect-ratio: auto;
  }
}

@media (min-width: 1024px) and (min-aspect-ratio: 1586 / 992) {
  .event-hero__caption-frame {
    width: auto;
    height: 100%;
  }
}

/* ag6 is a wide banner; keep its native crop flush to the top of the page. */
.landing-page:not(.demo-page) .event-hero__artwork {
  height: auto;
  min-height: 0;
  aspect-ratio: 1540 / 513;
}

.landing-page:not(.demo-page) .event-hero__caption-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 1540 / 513;
}

@media (max-width: 640px) {
  .event-hero__ink-depth,
  .event-hero__shader {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }

  .event-hero__plate--base {
    animation: none;
  }

  .event-hero__ink-depth,
  .event-hero__shader {
    display: none;
    animation: none;
  }

}
