/* ============================================================
   Event / Case-Study template
   Extends css/style.css — relies on the same design tokens
   (colors, type, spacing) defined in :root there. Also shared by
   css/project.css, which reuses the generic components here
   (.media-card, .masonry-gallery, .closing, .badge-pill,
   .media-placeholder, lightbox / video-modal).

   Content is data-driven: each page under /events/ loads its own
   js/events-data/<slug>.js (window.EVENT_DATA), and js/event.js
   renders it into the containers below. To publish a new event,
   duplicate an existing events/<slug>.html + js/events-data/<slug>.js
   pair and edit the data file.
   ============================================================ */

/* ---------- Buttons / accents not already in style.css ---------- */
.btn--ghost{
  border: 1.5px solid rgba(245,240,232,.32);
  color: var(--bone-white);
}
.btn--ghost:hover{
  border-color: var(--gold-1);
  color: var(--gold-1);
  background: rgba(255,216,107,.08);
  transform: translateY(-3px);
}
.btn--large{ padding: 20px 44px; font-size: 14px; }

.text-gold{
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Media placeholder (cover / gallery / video not available yet) ---------- */
.media-placeholder{
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245,240,232,.06), rgba(245,240,232,.02));
  color: var(--muted-taupe);
  text-align: center;
  padding: 16px;
}
.media-placeholder__icon{ color: var(--hairline); }
.media-placeholder__label{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-taupe);
  max-width: 20ch;
}
.masonry-gallery__item--placeholder{
  aspect-ratio: 3 / 4;
  cursor: default;
}
.masonry-gallery__item--placeholder:hover img{ transform: none; }

/* Full-bleed backgrounds (hero / closing) have text anchored to the
   bottom, so their placeholder sits near the top instead of dead-center
   to avoid overlapping that text on shorter viewports. */
.event-hero__media .media-placeholder,
.closing__media .media-placeholder{
  justify-content: flex-start;
  padding-top: 15vh;
}

/* ---------- Badge pill (hero) ---------- */
.badge-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(245,240,232,.08);
  border: 1px solid rgba(245,240,232,.18);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--bone-white);
  margin-bottom: 28px;
}

/* ============================================================
   1. Hero
   ============================================================ */
.event-hero{
  position: relative;
  margin-top: -124px;
  min-height: calc(100vh + 124px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 124px;
}
.event-hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.event-hero__media img,
.event-hero__media video{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 85%;
}
.event-hero__media img{
  animation: hero-kenburns 22s ease-in-out infinite alternate;
}
@keyframes hero-kenburns{
  from{ transform: scale(1); }
  to{ transform: scale(1.08); }
}
.event-hero__scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,10,10,1) 0%, rgba(10,10,10,.96) 45%, rgba(10,10,10,.88) 100%),
    linear-gradient(90deg, rgba(10,10,10,.75) 0%, rgba(10,10,10,.55) 30%, rgba(10,10,10,.55) 70%, rgba(10,10,10,.75) 100%);
}
.event-hero.has-placeholder-media .event-hero__scrim{
  background: linear-gradient(0deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.5) 55%, rgba(10,10,10,.4) 100%);
}
.event-hero__content{
  position: relative;
  z-index: 1;
  padding-bottom: 96px;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.event-hero__title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  color: var(--bone-white);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  text-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.event-hero__subtitle{
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-text);
  max-width: 56ch;
  margin: 0 auto 18px;
}
.event-hero__meta{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-1);
  margin-bottom: 36px;
}
.event-hero__actions{
  display:flex; flex-wrap:wrap; justify-content:center; gap: 18px;
}
.event-hero__scroll-cue{
  position:absolute; left:50%; bottom:28px; z-index:1;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(245,240,232,.4);
  border-radius: 999px;
}
.event-hero__scroll-cue span{
  position:absolute; top:8px; left:50%;
  width:4px; height:8px;
  margin-left:-2px;
  border-radius:2px;
  background: var(--gold-1);
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue{
  0%{ opacity:1; transform:translateY(0); }
  70%{ opacity:0; transform:translateY(14px); }
  100%{ opacity:0; transform:translateY(14px); }
}

@media (max-width: 700px){
  .event-hero{ align-items:center; padding-top: 96px; min-height: calc(92vh + 88px); margin-top: -88px; }
  .event-hero__content{ padding-bottom: 48px; }
  .event-hero__actions{ flex-direction:column; align-items:center; }
  .event-hero__actions .btn{ justify-content:center; }
}

/* ============================================================
   2. Highlights — visual cards, one short title each
   ============================================================ */
.highlight-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.highlight-card{
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.highlight-card img{
  width:100%; height:100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.highlight-card__scrim{
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(10,10,10,.9) 0%, rgba(10,10,10,.25) 45%, rgba(10,10,10,.1) 70%);
}
.highlight-card__play{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(245,240,232,.14);
  border: 1.5px solid rgba(245,240,232,.4);
  backdrop-filter: blur(4px);
  color: var(--bone-white);
  display:flex; align-items:center; justify-content:center;
  transition: background .35s var(--ease), transform .35s var(--ease), color .35s var(--ease);
}
.highlight-card__play svg{ margin-left:3px; }
.highlight-card:hover .highlight-card__play{
  background: var(--gold-gradient);
  color: var(--on-gold);
  transform: translate(-50%,-50%) scale(1.08);
}
.highlight-card:hover img{ transform: scale(1.06); }
.highlight-card__title{
  position:absolute; left:0; right:0; bottom:0;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.3;
  color: var(--bone-white);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

@media (max-width: 900px){
  .highlight-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .highlight-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   3. Videos — featured + thumbnails (reused for both)
   ============================================================ */
.media-card{
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.media-card img{
  width:100%; height:100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.media-card__scrim{
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.25) 45%, rgba(10,10,10,.1) 70%);
}
.media-card__play{
  position:absolute; top:50%; left:50%;
  transform: translate(-50%,-50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(245,240,232,.14);
  border: 1.5px solid rgba(245,240,232,.4);
  backdrop-filter: blur(4px);
  color: var(--bone-white);
  display:flex; align-items:center; justify-content:center;
  transition: background .35s var(--ease), transform .35s var(--ease), color .35s var(--ease);
}
.media-card__play svg{ margin-left:3px; }
.media-card:hover .media-card__play{
  background: var(--gold-gradient);
  color: var(--on-gold);
  transform: translate(-50%,-50%) scale(1.08);
}
.media-card:hover img{ transform: scale(1.06); }
.media-card__caption{
  position:absolute; left:0; right:0; bottom:0;
  padding: 20px 24px;
}
.media-card__title{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--bone-white);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.media-card__tag{
  display:block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-1);
}

.video-showcase{ margin-top: 48px; }
.video-showcase__featured{ margin-bottom: 24px; }
.video-showcase__featured .media-card__play{ width: 78px; height: 78px; }
.video-showcase__thumbs{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 700px){
  .video-showcase__thumbs{ grid-template-columns: 1fr; }
}

/* ============================================================
   4. Photo gallery — editorial masonry + lightbox
   ============================================================ */
.masonry-gallery{
  columns: 3;
  column-gap: 20px;
  margin-top: 48px;
}
.masonry-gallery__item{
  position: relative;
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  cursor: zoom-in;
}
.masonry-gallery__item img{
  width:100%; height:auto; display:block;
  filter: grayscale(.15) brightness(.95);
  transition: transform .7s var(--ease), filter .5s var(--ease);
}
.masonry-gallery__item:hover img{
  transform: scale(1.05);
  filter: grayscale(0) brightness(1);
}
.masonry-gallery__zoom{
  position:absolute; top:16px; right:16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(10,10,10,.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(245,240,232,.35);
  color: var(--bone-white);
  display:flex; align-items:center; justify-content:center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.masonry-gallery__item:hover .masonry-gallery__zoom{
  opacity: 1;
  transform: translateY(0);
}
.gallery-footer{
  margin-top: 40px;
  display:flex;
  justify-content:center;
}

@media (max-width: 900px){
  .masonry-gallery{ columns: 2; }
}
@media (max-width: 520px){
  .masonry-gallery{ columns: 1; }
}

/* ---------- Shared overlay chrome (lightbox + video modal) ---------- */
.overlay-close,
.overlay-arrow{
  position: absolute;
  z-index: 3;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(245,240,232,.1);
  border: 1px solid rgba(245,240,232,.28);
  color: var(--bone-white);
  display:flex; align-items:center; justify-content:center;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.overlay-close:hover,
.overlay-arrow:hover{
  background: var(--gold-gradient);
  color: var(--on-gold);
  border-color: transparent;
}
.overlay-close{ top: 24px; right: 24px; }
.overlay-arrow--prev{ left: 24px; top: 50%; transform: translateY(-50%); }
.overlay-arrow--next{ right: 24px; top: 50%; transform: translateY(-50%); }
.overlay-arrow--prev:hover{ transform: translateY(-50%) scale(1.06); }
.overlay-arrow--next:hover{ transform: translateY(-50%) scale(1.06); }
@media (max-width: 700px){
  .overlay-close{ top: 14px; right: 14px; width: 40px; height: 40px; }
  .overlay-arrow{ width: 40px; height: 40px; }
  .overlay-arrow--prev{ left: 10px; }
  .overlay-arrow--next{ right: 10px; }
}

/* ---------- Lightbox ---------- */
.lightbox{
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,10,10,.96);
  display:flex; align-items:center; justify-content:center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox__figure{ max-width: 90vw; max-height: 82vh; }
.lightbox__figure img{
  display:block;
  max-width: 90vw; max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.lightbox__counter{
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-taupe);
}

/* ---------- Video modal ---------- */
.video-modal{
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,10,10,.96);
  display:flex; align-items:center; justify-content:center;
  opacity: 0; visibility: hidden;
  padding: 24px;
  transition: opacity .4s var(--ease), visibility .4s;
}
.video-modal.is-open{ opacity: 1; visibility: visible; }
.video-modal__frame{
  width: min(1100px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.video-modal__frame video,
.video-modal__frame iframe{
  width: 100%; height: 100%;
  object-fit: contain;
  background: #000;
  border: 0;
}

/* ============================================================
   5. Stats
   ============================================================ */
.event-stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 48px 0;
}
.event-stat{
  display:flex; flex-direction:column; align-items:flex-start; gap: 10px;
}
.event-stat__icon{ color: var(--gold-1); }
.event-stat__value{
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 26px;
  color: var(--bone-white);
  letter-spacing: -0.01em;
}
.event-stat__value .stat__num{ font-size: inherit; font-weight: inherit; }
.event-stat__label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted-taupe);
}

@media (max-width: 900px){
  .event-stats{ grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

/* ============================================================
   6. Sponsors & Partners
   (uses .marquee / .marquee__track / .logo-tile from style.css)
   ============================================================ */

/* ============================================================
   7. Closing section — visual, statement, one CTA
   ============================================================ */
.closing{
  position: relative;
  min-height: 62vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow: hidden;
  text-align: center;
}
.closing__media{
  position: absolute; inset: 0; z-index: 0;
}
.closing__media img,
.closing__media video{
  width: 100%; height: 100%;
  object-fit: cover;
}
.closing__scrim{
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.7) 60%, rgba(10,10,10,.55) 100%);
}
.closing__content{
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}
.closing__statement{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.2;
  color: var(--bone-white);
  margin-bottom: 36px;
}

@media (prefers-reduced-motion: reduce){
  .event-hero__media img{ animation: none; }
  .event-hero__scroll-cue span{ animation: none; }
}
