/*
 * Event Case Study — Base Styles
 *
 * All rules are scoped under .ev to prevent bleed into other templates.
 * Event-specific overrides live in assets/event/css/events/{slug}.css
 */

/* ================================================================
   CSS Variables / Design Tokens
   ================================================================ */

.ev {
  --ev-container-max: 1440px;          /* overridden by ACF max_content_width */
  --ev-text-max: 820px;                /* max width for centered copy blocks  */

  --ev-h1: clamp(32px, 6vw, 64px);
  --ev-h2: clamp(28px, 3.6vw, 44px);
  --ev-h3: clamp(18px, 2.2vw, 24px);
  --ev-body-size: 16px;
  --ev-body-lg-size: 18px;
  --ev-leading: 1.65;
  --ev-tracking-eyebrow: 0.12em;

  --ev-gap-xs:  0.5rem;
  --ev-gap-sm:  1rem;
  --ev-gap-md:  2rem;
  --ev-gap-lg:  3.5rem;
  --ev-gap-xl:  5rem;
  --ev-gap-xxl: 8rem;

  --ev-section-pad-y:      3.5rem;
  --ev-section-pad-y--lg:  6rem;

  --ev-color-bg:        #1a1a1a;
  --ev-color-bg-muted:  #222222;
  --ev-color-bg-contrast: #0a0a0a;
  --ev-color-text:      #ffffff;
  --ev-color-text-muted: rgba(255, 255, 255, 0.65);
  --ev-color-border:    rgba(255, 255, 255, 0.12);
  --ev-color-accent:    #ffffff;       /* override per-event */

  --ev-font-display: inherit;          /* override per-event */
  --ev-font-body:    inherit;

  --ev-radius: 0;
}

.ev--light {
  --ev-color-bg:        #f5f5f5;
  --ev-color-bg-muted:  #ebebeb;
  --ev-color-bg-contrast: #ffffff;
  --ev-color-text:      #111111;
  --ev-color-text-muted: rgba(0, 0, 0, 0.55);
  --ev-color-border:    rgba(0, 0, 0, 0.1);
  --ev-color-accent:    #111111;
}


/* ================================================================
   Wrapper
   ================================================================ */

.ev {
  background: var(--ev-color-bg);
  color: var(--ev-color-text);
  padding: 0 0 4rem;
  font-family: var(--ev-font-body);
}


/* ================================================================
   Navbar mode
   ================================================================ */

.ev--nav-absolute #wrapper-navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9;
}


/* ================================================================
   Container
   ================================================================ */

.ev .ev-container {
  max-width: var(--ev-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  .ev .ev-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}


/* ================================================================
   Section base
   ================================================================ */

.ev .ev-section {
  padding-top: var(--ev-section-pad-y);
  padding-bottom: var(--ev-section-pad-y);
}

.ev .ev-section--muted {
  background: var(--ev-color-bg-muted);
}

.ev .ev-section--contrast {
  background: var(--ev-color-bg-contrast);
}

@media (min-width: 768px) {
  .ev .ev-section {
    padding-top: var(--ev-section-pad-y--lg);
    padding-bottom: var(--ev-section-pad-y--lg);
  }
}


/* ================================================================
   Responsive visibility utilities
   ================================================================ */

@media (max-width: 767px) {
  .ev .ev-hide--sm {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .ev .ev-hide--lg {
    display: none !important;
  }
}


/* ================================================================
   Hero
   ================================================================ */

.ev .ev-hero {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 0;
}

@media (min-width: 768px) {
  .ev .ev-hero {
    min-height: calc(100svh - 2rem);
  }
}

.ev .ev-hero__media {
  position: absolute;
  inset: 0;
}

.ev .ev-hero__video,
.ev .ev-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ev .ev-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ev .ev-hero__overlay--light  { background: rgba(0, 0, 0, 0.25); }
.ev .ev-hero__overlay--medium { background: rgba(0, 0, 0, 0.45); }
.ev .ev-hero__overlay--dark   { background: rgba(0, 0, 0, 0.65); }

.ev .ev-hero__caption {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1.25rem;
  max-width: var(--ev-container-max);
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .ev .ev-hero__caption {
    padding: 4rem 2rem;
  }
}

.ev .ev-hero__eyebrow {
  margin-bottom: 0.75rem;
}

.ev .ev-hero__heading {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 5dvw, 4.5rem);
  line-height: 1;
}

.ev .ev-hero__dek {
  color: var(--ev-color-text-muted);
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.ev .ev-hero__cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid var(--ev-color-accent);
  color: var(--ev-color-accent);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.ev .ev-hero__cta:hover {
  background: var(--ev-color-accent);
  color: var(--ev-color-bg);
}


/* ================================================================
   Video play button overlay
   ================================================================ */

.ev .ev-video-wrapper {
  position: relative;
}

.ev .ev-video-wrapper video {
  display: block;
  width: 100%;
}

.ev .ev-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
  z-index: 2;
}

.ev .ev-video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.ev .ev-video-play-btn.is-playing {
  display: none;
}

.ev .ev-video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.ev .ev-video-embed iframe,
.ev .ev-video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ================================================================
   Media (images)
   ================================================================ */

.ev .ev-media {
  display: block;
  width: 100%;
  height: auto;
}

.ev .ev-full-size-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.ev .ev-section--media {
  padding: 0;
}

.ev .ev-media-spread__caption {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--ev-color-text-muted);
}


/* ================================================================
   Split layout
   ================================================================ */

.ev .ev-split {
  display: flex;
  flex-direction: column;
	gap: var(--ev-gap-sm);
}

@media (min-width: 768px) {
  .ev .ev-split {
    flex-direction: row;
    align-items: flex-start;
		gap: var(--ev-gap-lg);
  }

  .ev .ev-split__left  { flex: 0 0 45%; }
  .ev .ev-split__right { flex: 1 1 55%; }

  .ev .ev-split--big-small .ev-split__left  { flex: 0 0 60%; }
  .ev .ev-split--big-small .ev-split__right { flex: 0 0 40%; }

  .ev .ev-split--full-height {
    min-height: 100svh;
    align-items: center;
  }

  .ev .ev-split--centered {
    align-items: center;
  }
}


.ev .ev-split__quote {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  border-left: 3px solid var(--ev-color-accent);
  padding-left: 1.25rem;
  font-style: normal;
  margin: 0;
}

.ev .ev-split__content p {
  margin-bottom: 1.25em;
  line-height: 1.7;
  color: var(--ev-color-text);
}

.ev .ev-split__content p:last-child {
  margin-bottom: 0;
}

.ev .ev-section--split {
  /* border-top: 1px solid var(--ev-color-border); */
}

.ev .ev-split__media-wrap {
  width: 100%;
}

.ev .ev-split__media-wrap img,
.ev .ev-split__media-wrap video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Autoplay video wrapper + accessibility controls */
.ev .ev-split__video-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.ev .ev-split__video-controls {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: flex;
  gap: 0.375rem;
  z-index: 2;
}

.ev .ev-split__video-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.ev .ev-split__video-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.ev .ev-split__video-btn:focus-visible {
  outline: 2px solid var(--ev-color-accent);
  outline-offset: 2px;
}

/* Pause btn: show pause icon while playing; show play icon when paused */
.ev .ev-split__video-btn[data-ev-video-pause] .ev-split__video-btn-icon--play {
  display: none;
}

.ev .ev-split__video-btn[data-ev-video-pause]:not([data-playing]) .ev-split__video-btn-icon--pause {
  display: none;
}

.ev .ev-split__video-btn[data-ev-video-pause]:not([data-playing]) .ev-split__video-btn-icon--play {
  display: block;
}

/* Mute btn: starts muted — show muted icon; show sound icon when unmuted */
.ev .ev-split__video-btn[data-ev-video-mute] .ev-split__video-btn-icon--sound {
  display: none;
}

.ev .ev-split__video-btn[data-ev-video-mute][data-unmuted] .ev-split__video-btn-icon--muted {
  display: none;
}

.ev .ev-split__video-btn[data-ev-video-mute][data-unmuted] .ev-split__video-btn-icon--sound {
  display: block;
}

.ev .ev-split__heading + .ev-split__content {
  margin-top: 1.5rem;
}


/* ================================================================
   Text Editorial
   ================================================================ */

.ev .ev-editorial__heading + .ev-editorial__content {
  margin-top: 1.5rem;
}

.ev .ev-editorial__content p {
  margin-bottom: 1.25em;
  line-height: 1.7;
  color: var(--ev-color-text);
}

.ev .ev-editorial__content p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .ev .ev-split--sticky-media {
    align-items: stretch;
  }

  .ev .ev-split__media--sticky {
    position: sticky;
    top: 2rem;
  }
}


/* ================================================================
   Carousel
   ================================================================ */

.ev .ev-carousel {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}

.ev .ev-carousel::-webkit-scrollbar {
  display: none;
}

.ev .ev-carousel__item {
  flex: 0 0 75%;
  scroll-snap-align: start;
}

.ev .ev-carousel__item img,
.ev .ev-carousel__item video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.ev .ev-carousel--portrait .ev-carousel__item img,
.ev .ev-carousel--portrait .ev-carousel__item video {
  aspect-ratio: 3 / 4;
}

@media (min-width: 768px) {
  .ev .ev-carousel__item {
    flex: 0 0 40%;
  }
}


/* ================================================================
   Video Showcase section
   ================================================================ */

.ev .ev-video-showcase__header {
  margin-bottom: var(--ev-gap-lg);
}

.ev .ev-video-showcase__header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.ev .ev-video-showcase__body {
  max-width: var(--ev-text-max);
  margin: 0 auto;
  color: var(--ev-color-text-muted);
  line-height: 1.7;
}

.ev .ev-video-showcase__media {
  width: 100%;
}


/* ================================================================
   Stats Callout
   ================================================================ */

.ev .ev-stats {
  display: flex;
  flex-direction: column;
  gap: var(--ev-gap-lg);
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .ev .ev-stats--row {
    flex-direction: row;
    justify-content: center;
    gap: var(--ev-gap-xl);
  }
}

.ev .ev-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ev .ev-stat__value {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  font-family: var(--ev-font-display);
  letter-spacing: -0.02em;
}

.ev .ev-stat__label {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ev-color-text-muted);
}

.ev .ev-stats--single .ev-stat__value {
  font-size: clamp(4rem, 12vw, 10rem);
}


/* ================================================================
   Social Metrics
   ================================================================ */

.ev .ev-metrics__heading {
  text-align: center;
  margin-bottom: var(--ev-gap-lg);
}

.ev .ev-metrics__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .ev .ev-metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .ev .ev-metrics__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ev .ev-metrics__source {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2rem 1.5rem;
}

.ev .ev-metrics__source-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.5rem;
}

.ev .ev-metrics__logo {
  max-height: 2rem;
  width: auto;
  display: block;
}

.ev .ev-metrics__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ev .ev-metrics__link {
  font-size: 0.75rem;
  color: var(--ev-color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ev .ev-metrics__box {
  padding: 1.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ev .ev-metrics__count {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.ev .ev-metrics__caption {
  font-size: 0.7125rem;
  color: var(--ev-color-text-muted);
  line-height: 1.5;
}

.ev .ev-metrics__total {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.ev .ev-metrics__total-heading {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ev .ev-metrics__box--total {
  width: 100%;
  max-width: 480px;
}

.ev .ev-metrics__box--total .ev-metrics__count {
  font-size: clamp(2.5rem, 5vw, 4rem);
}


/* ================================================================
   Timeline
   ================================================================ */

.ev .ev-timeline__header {
  margin-bottom: var(--ev-gap-lg);
}

.ev .ev-timeline__eyebrow {
  color: var(--ev-color-text-muted);
  margin-bottom: 0.5rem;
}

.ev .ev-timeline__intro {
  color: var(--ev-color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin-top: 0.75rem;
}

.ev .ev-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--ev-color-border);
  padding-left: var(--ev-gap-md);
  display: flex;
  flex-direction: column;
  gap: var(--ev-gap-lg);
}

.ev .ev-timeline__step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--ev-gap-md);
  align-items: flex-start;
}

@media (max-width: 767px) {
  .ev .ev-timeline__step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.ev .ev-timeline__label {
  color: var(--ev-color-text-muted);
  padding-top: 0.2em;
}

.ev .ev-timeline__title {
  margin-bottom: 0.5rem;
}

.ev .ev-timeline__body {
  color: var(--ev-color-text-muted);
  line-height: var(--ev-leading);
}

.ev .ev-timeline__image {
  margin-top: 1rem;
  max-width: 480px;
}


/* ================================================================
   Archive Editions — Rail
   ================================================================ */

.ev .ev-archive__header {
  margin-bottom: var(--ev-gap-md);
}

.ev .ev-archive__eyebrow {
  margin-bottom: 0.5rem;
}

.ev .ev-archive__intro {
  margin-bottom: var(--ev-gap-lg);
  max-width: var(--ev-text-max);
}

/* Rail wrapper */

.ev .ev-rail {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ev .ev-rail::-webkit-scrollbar {
  height: 4px;
}

.ev .ev-rail::-webkit-scrollbar-thumb {
  background: var(--ev-color-border);
  border-radius: 2px;
}

.ev .ev-rail__track {
  display: flex;
  gap: var(--ev-gap-md);
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

/* Rail card */

.ev .ev-rail__card {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 280px;
  text-align: left;
  transition: transform 0.25s;
}

@media (min-width: 768px) {
  .ev .ev-rail__card {
    width: 320px;
  }
}

.ev .ev-rail__card:hover {
  transform: translateY(-4px);
}

.ev .ev-rail__card[aria-selected="true"] {
  border-bottom-color: var(--ev-color-accent);
}

.ev .ev-rail__card:focus-visible {
  outline: 2px solid var(--ev-color-accent);
  outline-offset: 4px;
}

/* Rail poster */

.ev .ev-rail__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ev-color-bg-muted);
  margin-bottom: 0.75rem;
}

.ev .ev-rail__poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.ev .ev-rail__card:hover .ev-rail__poster img {
  transform: scale(1.03);
}

.ev .ev-rail__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.ev .ev-rail__card:hover .ev-rail__play {
  opacity: 1;
}

/* Rail meta */

.ev .ev-rail__eyebrow {
  display: block;
  margin-bottom: 0.35rem;
}

.ev .ev-rail__title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: var(--ev-color-text);
}

.ev .ev-rail__desc {
  display: block;
  font-size: 0.875rem;
  color: var(--ev-color-text-muted);
  line-height: 1.5;
}

/* Edition player */

.ev .ev-edition-player {
  position: relative;
  margin-top: var(--ev-gap-md);
  background: var(--ev-color-bg-muted);
  min-height: 56vw;
}

@media (min-width: 768px) {
  .ev .ev-edition-player {
    aspect-ratio: 16 / 9;
    min-height: unset;
  }
}

.ev .ev-edition-player img,
.ev .ev-edition-player .ev-edition-player__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ev .ev-edition-player .ev-video-embed {
  aspect-ratio: 16 / 9;
  position: relative;
  width: 100%;
}

.ev .ev-edition-player .ev-video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ev .ev-edition-player .ev-video-play-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) scale(1.08);
}


/* ================================================================
   Video Carousel (Highlights Reel)
   ================================================================ */

/* Smaller cards — more clips visible at once */
.ev .ev-section--video-carousel .ev-rail__card {
  width: 220px;
}

@media (min-width: 768px) {
  .ev .ev-section--video-carousel .ev-rail__card {
    width: 260px;
  }
}

/* Portrait thumbnails: 9:16 */
.ev .ev-vcarousel--portrait .ev-rail__poster {
  aspect-ratio: 9 / 16;
}

/* Caption below title in rail card */
.ev .ev-vcarousel__caption {
  display: block;
  font-size: 0.75rem;
  color: var(--ev-color-text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* Section header */
.ev .ev-vcarousel__header {
  margin-bottom: var(--ev-gap-md);
}

.ev .ev-vcarousel__eyebrow {
  color: var(--ev-color-text-muted);
  margin-bottom: 0.5rem;
}

.ev .ev-vcarousel__intro {
  margin-top: 0.75rem;
  margin-bottom: var(--ev-gap-md);
}


/* ================================================================
   Credits
   ================================================================ */

.ev .ev-credits__logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: var(--ev-gap-xl);
}

@media (min-width: 768px) {
  .ev .ev-credits__logos {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ev .ev-credits__logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ev-color-border);
  padding: 1rem;
  transition: border-color 0.2s;
}

.ev .ev-credits__logo-item:hover {
  border-color: var(--ev-color-accent);
}

.ev .ev-credits__logo-item img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.ev--light .ev-credits__logo-item img {
  filter: none;
}

.ev .ev-credits__logo-item:hover img {
  opacity: 1;
}

.ev .ev-credits__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ev-gap-lg);
}

@media (min-width: 768px) {
  .ev .ev-credits__columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ev .ev-credits__column-heading {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ev-color-text-muted);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ev-color-border);
}

.ev .ev-credits__column-names {
  font-size: 0.9375rem;
  line-height: 1.8;
}


/* ================================================================
   Conclusion / CTA
   ================================================================ */

.ev .ev-conclusion {
  max-width: var(--ev-text-max);
  margin: 0 auto;
}

.ev .ev-conclusion__heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: var(--ev-gap-md);
}

.ev .ev-conclusion__body {
  color: var(--ev-color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--ev-gap-lg);
}

.ev .ev-conclusion__body p {
  margin-bottom: 1.25em;
}

.ev .ev-conclusion__cta {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  border: 1px solid var(--ev-color-accent);
  color: var(--ev-color-accent);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.ev .ev-conclusion__cta:hover {
  background: var(--ev-color-accent);
  color: var(--ev-color-bg);
}


/* ================================================================
   Reveal text animation hook
   (driven by GSAP ScrollTrigger on other pages; CSS entry state only)
   ================================================================ */

.ev .reveal-text {
  opacity: 0;
  transform: translateY(20px);
}


/* ================================================================
   Shared text utilities
   ================================================================ */

.ev .text-center {
  text-align: center;
}

.ev p {
  line-height: 1.7;
  color: var(--ev-color-text);
}

.ev a {
  color: inherit;
}


/* ================================================================
   Type Scale — Utility Classes
   ================================================================ */

.ev .ev-eyebrow {
  font-size: 0.75rem;
  letter-spacing: var(--ev-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ev-color-text-muted);
  opacity: 0.8;
}

.ev .ev-h1 {
  font-size: var(--ev-h1);
  font-family: var(--ev-font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ev .ev-h2 {
  font-size: var(--ev-h2);
  font-family: var(--ev-font-display);
  font-weight: 700;
  line-height: 1.1;
}

.ev .ev-h3 {
  font-size: var(--ev-h3);
  font-weight: 600;
  line-height: 1.2;
}

.ev .ev-body {
  font-size: var(--ev-body-size);
  line-height: var(--ev-leading);
  color: var(--ev-color-text-muted);
}

.ev .ev-body-lg {
  font-size: var(--ev-body-lg-size);
  line-height: var(--ev-leading);
}

.ev .ev-measure {
  max-width: var(--ev-text-max);
}


/* ================================================================
   Moment Pinned
   ================================================================ */

.ev .ev-moment__grid {
  display: flex;
  flex-direction: column;
  gap: var(--ev-gap-lg);
}

@media (min-width: 900px) {
  .ev .ev-moment__grid {
    flex-direction: row;
    align-items: center;
    gap: var(--ev-gap-xl);
  }

  .ev .ev-moment__copy {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .ev .ev-moment__media {
    flex: 1 1 60%;
    max-width: 60%;
  }
}

.ev .ev-moment__copy {
  display: flex;
  flex-direction: column;
  gap: var(--ev-gap-sm);
}

.ev .ev-moment__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ev-gap-md);
  margin-top: var(--ev-gap-sm);
}

.ev .ev-moment__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Media */

.ev .ev-moment__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ev-color-bg-muted);
}

@media (max-width: 899px) {
  .ev .ev-moment__media {
    aspect-ratio: unset;
    overflow: visible;
  }
}

/* Frames */

.ev .ev-moment__frame {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.ev .ev-moment__frame.is-active {
  opacity: 1;
}

.ev .ev-moment__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 899px) {
  .ev .ev-moment__frame {
    position: relative;
    inset: unset;
    opacity: 1;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: var(--ev-gap-sm);
  }
}

/* Play button */

.ev .ev-moment__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.ev .ev-moment__play:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Caption */

.ev .ev-moment__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  color: var(--ev-color-text-muted);
  z-index: 2;
}

/* Progress dots */

.ev .ev-moment__progress {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.ev .ev-moment__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s;
}

.ev .ev-moment__dot[aria-selected="true"] {
  opacity: 1;
  background: #fff;
}

@media (max-width: 899px) {
  .ev .ev-moment__progress {
    display: none;
  }
}
