/* Event Highlights — homepage deck References pair */

.event-highlights--deck {
  --eh-orange: var(--color-accent, #F05A14);
  --eh-orange-deep: #E5520C;
  --eh-ink: var(--color-text, #3F2A1E);
  --eh-muted: var(--color-text-muted, #8A6E5C);
  --eh-pad: #F7F0EA;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    linear-gradient(180deg, #fffdfb 0%, #faf6f2 42%, #ffffff 100%);
  color: var(--eh-ink);
}

/* Kill shared section-grid lines that clipped the left headline */
.event-highlights--deck::before,
.event-highlights--deck::after {
  content: none !important;
  display: none !important;
}

.event-highlights__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.event-highlights__wash {
  position: absolute;
  inset: -10% -5% auto auto;
  width: min(58vw, 640px);
  height: min(48vw, 420px);
  background:
    radial-gradient(ellipse at 70% 30%, rgba(240, 90, 20, 0.14) 0%, transparent 68%);
}

.event-highlights__mesh {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 18%;
  left: 48%;
  background-image:
    linear-gradient(rgba(240, 90, 20, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 42, 30, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 88% 12%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 88% 12%, #000 0%, transparent 72%);
  opacity: 0.95;
}

.event-highlights__squares {
  position: absolute;
  top: 12%;
  right: 5%;
  width: calc(28px * 5);
  height: calc(28px * 4);
  opacity: 0.9;
  background-image:
    linear-gradient(rgba(240, 90, 20, 0.16), rgba(240, 90, 20, 0.16)),
    linear-gradient(rgba(63, 42, 30, 0.06), rgba(63, 42, 30, 0.06)),
    linear-gradient(rgba(240, 90, 20, 0.12), rgba(240, 90, 20, 0.12));
  background-size: 28px 28px;
  background-position:
    0 0,
    56px 28px,
    112px 0;
  background-repeat: no-repeat;
  mask-image: linear-gradient(225deg, #000 20%, transparent 88%);
  -webkit-mask-image: linear-gradient(225deg, #000 20%, transparent 88%);
}

.event-highlights__shell {
  position: relative;
  z-index: 1;
}

.event-highlights__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  margin-bottom: clamp(28px, 4vw, 40px);
  /* Keep copy clear of any residual left-edge decor */
  padding-left: clamp(4px, 1.2vw, 12px);
  max-width: 100%;
}

.event-highlights__intro {
  /* Prefer width growth on desktop row; never use a tall flex-basis on mobile column. */
  flex: 1 1 auto;
  min-width: 0;
  max-width: 38rem;
  position: relative;
}

.event-highlights__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eh-orange);
  line-height: 1.2;
}

.event-highlights__eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: var(--eh-orange);
  flex-shrink: 0;
}

.event-highlights__title {
  margin: 0 0 12px;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--eh-ink);
  text-wrap: balance;
  white-space: normal !important;
}

.event-highlights__desc {
  margin: 0;
  max-width: 42ch;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.55;
  color: var(--eh-muted);
}

.btn--event-hl {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-btn, 4px);
  border: 1.5px solid var(--eh-orange);
  background: var(--eh-orange);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 28px -16px rgba(240, 90, 20, 0.65);
}

.btn--event-hl:hover {
  background: var(--eh-orange-deep);
  border-color: var(--eh-orange-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn--event-hl svg {
  width: 16px;
  height: 16px;
}

.event-highlights__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
}

.event-highlights__carousel {
  position: relative;
  outline: none;
}

.event-highlights__viewport {
  overflow: hidden;
  width: 100%;
}

.event-highlights__track {
  display: flex;
  gap: clamp(16px, 2.5vw, 28px);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-highlights__track .event-hl-card {
  flex: 0 0 calc((100% - clamp(16px, 2.5vw, 28px)) / 2);
  min-width: 0;
}

.event-hl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 0 rgba(63, 42, 30, 0.06);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  animation: eh-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--eh-i, 0) * 0.1s);
}

.event-hl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(63, 42, 30, 0.35);
}

.event-hl-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--eh-pad);
}

.event-hl-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.event-hl-card:hover .event-hl-card__media img {
  transform: scale(1.045);
}

.event-hl-card__veil {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 16, 8, 0.45) 100%);
  opacity: 0.85;
  pointer-events: none;
}

.event-hl-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 20px;
  border-top: 3px solid transparent;
  transition: border-color 0.25s ease;
}

.event-hl-card:hover .event-hl-card__body {
  border-top-color: var(--eh-orange);
}

.event-hl-card__client {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eh-orange);
}

.event-hl-card__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--eh-ink);
  text-wrap: balance;
}

.event-hl-card__meta {
  font-size: 13px;
  line-height: 1.4;
  color: var(--eh-muted);
}

@keyframes eh-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 821px) {
  .event-highlights__intro {
    flex: 1 1 420px;
  }
}

@media (max-width: 820px) {
  /*
   * Stack: intro → carousel → View All.
   * display:contents lets the CTA sit under the cards (not trapped in a
   * tall column header). Former flex: 1 1 420px treated 420px as HEIGHT
   * in column mode and left a huge blank between title and CTA.
   */
  .event-highlights__shell {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .event-highlights__header {
    display: contents;
  }

  .event-highlights__intro {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
    margin-bottom: clamp(20px, 4vw, 28px);
  }

  .event-highlights__carousel {
    order: 2;
    width: 100%;
  }

  .btn--event-hl {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: clamp(16px, 3.5vw, 24px);
  }

  .event-highlights__mesh {
    left: 36%;
  }
}

@media (max-width: 640px) {
  .event-highlights__grid {
    grid-template-columns: 1fr;
  }

  .event-highlights__track .event-hl-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .event-highlights__mesh {
    left: 20%;
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-hl-card,
  .event-hl-card__media img,
  .event-highlights__track {
    animation: none;
    transition: none;
  }

  .event-hl-card:hover,
  .event-hl-card:hover .event-hl-card__media img {
    transform: none;
  }
}
