/* ===========================================================================
   events/landing.css - the public events landing page
   Sections: hero - overview - schedule - location - cta
   =========================================================================== */

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: var(--header-h) 0 clamp(1.5rem, 3vh, 2.5rem);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(125% 95% at 80% 10%,
      color-mix(in srgb, var(--brand) 13%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, #101016 0%, #0c0c10 46%, var(--ink) 100%);
}
.hero__media--photo {
  background-size: cover;
  background-position: center;
}

/* Concentric "signal" rings - the high-fidelity motif. */
.hero__rings {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 82% 15%,
    transparent 0 46px,
    color-mix(in srgb, #fff 7%, transparent) 46px 47px
  );
  -webkit-mask-image: radial-gradient(circle at 82% 15%, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at 82% 15%, #000 0%, transparent 62%);
  opacity: 0.75;
}

.hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 34%,
    color-mix(in srgb, var(--ink) 70%, transparent) 74%,
    var(--ink) 100%
  );
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__brand {
  --logo-h: clamp(4rem, 10vw, 8.5rem);
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.hero__logo {
  height: var(--logo-h);
  width: auto;
  max-width: 100%;
  /* The logo PNG carries ~26% transparent padding on its left edge - pull it
     back so the artwork lines up with the title below it. */
  margin-left: calc(var(--logo-h) * -0.262);
}
.hero__brand-word {
  font-size: calc(var(--logo-h) * 0.54);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-primary);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand);
}
.hero__kicker .tick { width: 10px; height: 10px; }

.hero__title {
  font-size: clamp(3rem, 9.4vw, 8.4rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero__title span { display: block; }
.hero__edition {
  margin-top: 1.1rem;
  font-family: var(--font-primary);
  font-size: clamp(0.95rem, 1.9vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--brand);
}

.hero__subtitle {
  max-width: 46ch;
  font-family: var(--font-secondary);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-dim);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.4rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__meta-rule { width: 30px; height: 1px; background: var(--line-strong); }

/* Lower row: lead text (subtitle + meta) on the left, carousel on the right. */
.hero__lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: 2.6rem;
}
.hero__lead {
  display: flex;
  flex-direction: column;
}
@media (min-width: 760px) {
  .hero__lower {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero__index {
  position: absolute;
  top: calc(var(--header-h) + 1.6rem);
  right: var(--gutter);
  font-family: var(--font-primary);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* --- Carousel ----------------------------------------------------------- */
.carousel { position: relative; }
.carousel__viewport {
  position: relative;
  height: clamp(15rem, 27vw, 21rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.9s var(--ease);
}
.carousel__slide.is-active { opacity: 1; z-index: 1; }
.carousel__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.2rem 1.1rem;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  color: var(--text);
  background: linear-gradient(transparent, rgba(5, 5, 7, 0.82));
}
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 1.1rem;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line-strong);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), width 0.3s var(--ease);
}
.carousel__dot:hover { background: var(--text-dim); }
.carousel__dot.is-active {
  width: 22px;
  border-radius: 4px;
  background: var(--brand);
}

/* --- Overview ----------------------------------------------------------- */
.overview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.overview__lead {
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.overview__body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.overview__body p {
  max-width: 56ch;
  font-family: var(--font-secondary);
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.72;
}

@media (min-width: 880px) {
  .overview__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(3rem, 7vw, 7rem);
  }
  .overview__body { padding-top: 0.5rem; }
}

/* --- Schedule ----------------------------------------------------------- */
.schedule__days {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}
.day {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
.day__head {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.day__name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.day__weekday {
  font-family: var(--font-primary);
  font-size: 0.73rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
}

.timeline {
  list-style: none;
  padding: 0;
  border-left: 1px solid var(--line);
}
.timeline__item {
  position: relative;
  padding: 0 0 1.9rem 2.25rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__node {
  position: absolute;
  left: -5px;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  border: 1.5px solid var(--brand-deep);
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.timeline__time {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.timeline__title {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color 0.3s var(--ease);
}
.timeline__desc {
  max-width: 52ch;
  font-family: var(--font-secondary);
  color: var(--text-dim);
  font-size: 0.97rem;
  line-height: 1.62;
}
.timeline__item:hover .timeline__node {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-glow);
}
.timeline__item:hover .timeline__title { color: var(--brand-bright); }

@media (min-width: 880px) {
  .day {
    grid-template-columns: 15rem 1fr;
    gap: 3rem;
  }
  .day__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
    align-self: start;
  }
}

/* --- Location ----------------------------------------------------------- */
.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.location__venue {
  margin-bottom: 1.5rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.025em;
}
.location__address {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1.2rem;
  font-style: normal;
  font-size: 1.05rem;
}
.location__when {
  display: flex;
  gap: 2.75rem;
  margin: 1.4rem 0;
  padding: 1.35rem 0;
  border-block: 1px solid var(--line);
}
.location__when dt {
  margin-bottom: 0.35rem;
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}
.location__when dd { font-size: 1.05rem; }
.location__coords {
  margin-bottom: 1.2rem;
  font-family: var(--font-primary);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--brand);
}
.location__note {
  max-width: 34ch;
  margin-bottom: 1.75rem;
  font-family: var(--font-secondary);
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.62;
}
.location__map {
  position: relative;
  min-height: 360px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}
.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* Recolour Google's light map to sit in the dark theme. */
  filter: invert(0.92) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.6);
}

@media (min-width: 880px) {
  .location__grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
}

/* --- CTA ---------------------------------------------------------------- */
.cta {
  max-width: none;
  margin-inline: 0;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink) 0%, #0c0c11 100%);
}
.cta__glow {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(960px, 130vw);
  height: 480px;
  transform: translate(-50%, -45%);
  background: radial-gradient(50% 50% at 50% 50%, var(--brand-glow) 0%, transparent 72%);
  pointer-events: none;
}
.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin-inline: auto;
}
.cta__kicker { margin-bottom: 1.75rem; }
.cta__heading {
  margin-bottom: 1.4rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}
.cta__summary {
  max-width: 48ch;
  margin-bottom: 1.85rem;
  font-family: var(--font-secondary);
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.6;
}
.cta__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.85rem;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.cta__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
}
.cta__deadline {
  margin-top: 1.75rem;
  font-family: var(--font-primary);
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.cta__waiver { margin-top: 1rem; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 640px) {
  .hero__index { display: none; }
  .hero__meta { flex-wrap: wrap; gap: 0.6rem 1rem; }
}