/* V1.1+ features: hero video, Post Report button, Speakers, IDCE 2025 gallery + lightbox.
   Loaded (after main.css) only by pages that list "features-2025" in their meta extras. */

/* ---------- Hero: stats alignment (the smaller "sqm" no longer stretches its line) ---------- */
.page-home .stat__num small { line-height: 0; }

/* ---------- Hero: stacked actions ---------- */
.page-home .hero__actions { flex-direction: column; align-items: flex-start; gap: calc(8 * var(--pt)); }
.btn__icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; margin-left: -.2em; }

/* ---------- Hero: IDCE 2025 video as the hero background ---------- */
.hero--video .hero__bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0b1a20;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}
.hero__bg-video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero--video .hero__bg::after { /* keep the headline, dates and stats readable over moving footage */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 35, 40, .9) 0%, rgba(16, 35, 40, .72) 34%, rgba(16, 35, 40, .3) 62%, rgba(16, 35, 40, .42) 100%),
    linear-gradient(180deg, rgba(16, 35, 40, .35) 0%, rgba(16, 35, 40, 0) 22%, rgba(16, 35, 40, .3) 62%, rgba(16, 35, 40, .8) 100%);
}
.page-home .hero--video .hero__decor { display: none; } /* the video replaces the 3D mark */
.page-home .hero--video::before { opacity: .35; }
.page-home .hero--video::after { opacity: .75; }
.hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: calc(22 * var(--pt)); position: relative; z-index: 1; }
.hero-watch { margin-right: calc(-3.7 * var(--pt)); min-width: calc(253 * var(--pt)); gap: calc(9 * var(--pt)); background: rgba(16, 35, 40, .45); }
.hero-watch__icon { position: relative; flex: none; width: calc(15 * var(--pt)); height: calc(15 * var(--pt)); border-radius: 50%; border: 1.5px solid var(--teal); }
.hero-watch__icon::after { content: ""; position: absolute; left: 56%; top: 50%; width: 42%; height: 46%; transform: translate(-50%, -50%); background: var(--cream); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- Speakers (IDCE 2027 line-up to be announced) ---------- */
.speakers { position: relative; padding: calc(8 * var(--pt)) 0 calc(48 * var(--pt)); }
.speakers > .container { position: relative; z-index: 1; }
.speakers__intro { margin-top: calc(10 * var(--pt)); font-size: calc(12 * var(--pt)); line-height: calc(14.4 * var(--pt)); }
.speaker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(10.5 * var(--pt)); margin-top: calc(24 * var(--pt)); }
.speaker-card { border: 1px solid rgba(69, 192, 191, .85); background: rgba(16, 35, 40, .45); padding: calc(7.5 * var(--pt)) calc(7.5 * var(--pt)) calc(14 * var(--pt)); }
.speaker-card__photo {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.05;
  background:
    repeating-linear-gradient(-45deg, transparent 0 calc(8.4 * var(--pt)), rgba(69, 192, 191, .22) calc(8.4 * var(--pt)) calc(9.15 * var(--pt))),
    linear-gradient(180deg, rgba(0, 113, 187, .22), rgba(16, 35, 40, .6));
}
.speaker-card__photo svg { width: 34%; height: 34%; fill: var(--teal-mark); opacity: .55; }
.speaker-card__name { margin-top: calc(12 * var(--pt)); padding: 0 calc(6 * var(--pt)); font-family: var(--f-alex); font-weight: 700; font-size: calc(12 * var(--pt)); line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.speaker-card__role { margin-top: calc(3 * var(--pt)); padding: 0 calc(6 * var(--pt)); font-family: var(--f-alex); font-weight: 300; font-size: calc(10 * var(--pt)); color: var(--teal); }

.page-home .sponsors__sub { margin-top: calc(8 * var(--pt)); font-family: var(--f-pop); font-weight: 700; font-size: calc(13 * var(--pt)); color: var(--ink); }
.page-home .sponsors .carousel--logos { margin-top: calc(26 * var(--pt)); }
.page-home .speakers .carousel--speakers { margin-top: calc(26 * var(--pt)); }
@media (max-width: 959px) {
  .page-home .sponsors__sub { margin-top: 8px; font-size: 16px; }
  .page-home .sponsors .carousel--logos, .page-home .speakers .carousel--speakers { margin-top: 22px; }
}

/* ---------- IDCE 2025 photo gallery ---------- */
.gallery { position: relative; padding: calc(8 * var(--pt)) 0 calc(56 * var(--pt)); background: rgba(8, 20, 24, .28); }
.gallery .kicker { line-height: calc(14.4 * var(--pt)); }
.gallery .title { margin-top: calc(4 * var(--pt)); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: calc(128 * var(--pt)); grid-auto-flow: dense;
  gap: calc(8 * var(--pt)); margin-top: calc(22 * var(--pt));
}
.g-item--wide { grid-column: span 2; }
.gallery__more { display: flex; justify-content: center; margin-top: calc(26 * var(--pt)); }
.gallery-page .gallery-grid { margin-top: 0; }
.g-item--tall { grid-row: span 2; }
.g-item__link { position: relative; display: block; height: 100%; overflow: hidden; border: 1px solid rgba(69, 192, 191, .55); background: #0b1a20; }
.g-item__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s var(--ease); }
.g-item__link::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(0, 113, 187, 0) 40%, rgba(0, 113, 187, .45)); transition: opacity .4s var(--ease);
}
.g-item__link:hover img, .g-item__link:focus-visible img { transform: scale(1.05); }
.g-item__link:hover::after, .g-item__link:focus-visible::after { opacity: 1; }
.g-item__link:hover, .g-item__link:focus-visible { border-color: var(--teal); }
.g-item__link:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- Media modals (video player + photo lightbox) ---------- */
.media-modal {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: rgba(8, 18, 22, .94); color: var(--white); overflow: hidden;
}
.media-modal::backdrop { background: rgba(8, 18, 22, .7); }
.media-modal[open] { display: grid; place-items: center; animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }
.media-modal__frame { width: min(92vw, calc((100vh - 140px) * 16 / 9), 1280px); aspect-ratio: 16 / 9; border: 1px solid rgba(69, 192, 191, .7); background: #000; }
.media-modal__video { width: 100%; height: 100%; display: block; background: #000; }
.media-modal__figure { display: grid; justify-items: center; gap: 14px; margin: 0; max-width: calc(100vw - 160px); }
.media-modal__figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border: 1px solid rgba(69, 192, 191, .6); background: #0b1a20; }
.media-modal__caption { font-family: var(--f-alex); font-weight: 300; font-size: 15px; text-align: center; color: rgba(255, 255, 255, .85); }
.media-modal__count { margin-left: 10px; font-family: var(--f-mont); font-weight: 700; font-size: 13px; color: var(--teal); }
.media-modal__close {
  position: absolute; right: 18px; top: 18px; z-index: 3; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(69, 192, 191, .7); border-radius: 50%;
  background: rgba(16, 35, 40, .7); transition: background .25s;
}
.media-modal__close::before, .media-modal__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--white); }
.media-modal__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.media-modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.media-modal__close:hover { background: var(--blue); }
.media-modal__nav { position: absolute; top: 50%; z-index: 3; width: 44px; height: 88px; padding: 0; border: 0; background: none; transform: translateY(-50%); transition: opacity .2s, transform .25s var(--ease); }
.media-modal__nav::before { content: ""; position: absolute; inset: 0; }
.media-modal__nav--prev { left: 20px; }
.media-modal__nav--prev::before { clip-path: polygon(100% 0, 0 50%, 100% 100%); background: linear-gradient(200deg, var(--teal), #2a9fc4 55%, var(--blue)); }
.media-modal__nav--next { right: 20px; }
.media-modal__nav--next::before { clip-path: polygon(0 0, 100% 50%, 0 100%); background: linear-gradient(160deg, #3fb3c0, #2a9fc4 45%, var(--blue)); }
.media-modal__nav:hover { opacity: .85; }
.media-modal__nav:focus-visible, .media-modal__close:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.modal-open { overflow: hidden; }

/* ================= Tablet & mobile ================= */
@media (max-width: 959px) {
  .page-home .hero__actions { width: 100%; gap: 12px; }
  .page-home .hero__actions .btn { flex: none; width: 100%; }
  .hero__side { width: 100%; align-items: stretch; gap: 26px; }
  .hero-watch { margin: 0; min-width: 0; width: 100%; gap: 10px; }
  .hero-watch__icon { width: 20px; height: 20px; }
  .hero--video .hero__bg::after {
    background:
      linear-gradient(180deg, rgba(16, 35, 40, .55) 0%, rgba(16, 35, 40, .62) 45%, rgba(16, 35, 40, .8) 100%);
  }
  .hero__bg-video { object-position: 50% 50%; }

  .speakers { padding: 8px 0 52px; }
  .speakers__intro { margin-top: 12px; font-size: 16px; line-height: 1.5; }
  .speaker-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
  .speaker-card { padding: 7px 7px 16px; }
  .speaker-card__photo { background:
      repeating-linear-gradient(-45deg, transparent 0 10.5px, rgba(69, 192, 191, .22) 10.5px 11.5px),
      linear-gradient(180deg, rgba(0, 113, 187, .22), rgba(16, 35, 40, .6)); }
  .speaker-card__name { margin-top: 12px; padding: 0 6px; font-size: 14px; }
  .speaker-card__role { margin-top: 4px; padding: 0 6px; font-size: 13px; }

  .gallery { padding: 8px 0 56px; }
  .gallery .kicker { line-height: 1.3; }
  .gallery .title { margin-top: 6px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; margin-top: 22px; }
  .gallery__more { margin-top: 24px; }
  .gallery__more .btn { width: 100%; }

  .media-modal__figure { max-width: calc(100vw - 24px); }
  .media-modal__figure img { max-height: calc(100vh - 170px); }
  .media-modal__nav { top: auto; bottom: 22px; transform: none; width: 32px; height: 64px; }
  .media-modal__nav--prev { left: 18px; }
  .media-modal__nav--next { right: 18px; }
  .media-modal__caption { font-size: 14px; padding: 0 60px; }
  .media-modal__close { right: 12px; top: 12px; }
  .media-modal__frame { width: calc(100vw - 24px); }
}
@media (max-width: 599px) {
  .gallery-grid { grid-auto-rows: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  .media-modal[open] { animation: none; }
}

/* ---------- Hero countdown: glowing rings over the video ---------- */
@property --ring-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.page-home .hero .countdown__ring {
  background: radial-gradient(circle at 50% 38%, rgba(24, 58, 72, .72), rgba(10, 26, 32, .6) 72%);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 0 calc(14 * var(--pt)) rgba(69, 192, 191, .3), inset 0 0 calc(10 * var(--pt)) rgba(69, 192, 191, .2);
}
.page-home .hero .countdown__ring::before { /* the outline: brighter, thicker, gradient that slowly turns */
  padding: 2px;
  background: conic-gradient(from var(--ring-a), var(--teal) 0deg, #2aa6c6 90deg, var(--blue) 190deg, rgba(0, 113, 187, .45) 250deg, var(--teal) 360deg);
  animation: ring-turn 8s linear infinite;
}
.page-home .hero .countdown__ring::after { /* light sweeping round the outline */
  content: ""; position: absolute; inset: -1px; border-radius: 50%; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--ring-a), transparent 0deg 290deg, rgba(69, 192, 191, .5) 320deg, rgba(190, 255, 250, .95) 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: blur(.6px);
  animation: ring-turn 4s linear infinite;
}
.page-home .hero .countdown__unit:nth-of-type(2) .countdown__ring::after { animation-delay: -1s; }
.page-home .hero .countdown__unit:nth-of-type(3) .countdown__ring::after { animation-delay: -2s; }
.page-home .hero .countdown__unit:nth-of-type(4) .countdown__ring::after { animation-delay: -3s; }
.page-home .hero .countdown__num { position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.page-home .hero .countdown__label { text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
@keyframes ring-turn { to { --ring-a: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .page-home .hero .countdown__ring::before, .page-home .hero .countdown__ring::after { animation: none; }
}

/* ---------- Compact hero: title, dates, buttons, countdown AND the stats fit the first screen ----------
   Inside the hero the design unit shrinks with the window height: the whole block is ~372pt tall. */
.page-home .hero {
  --pt: max(1.05px, min(clamp(1.2px, calc(100vw / 800), 1.8px), calc((100vh - var(--header-h)) / 372)));
  --pt: max(1.05px, min(clamp(1.2px, calc(100vw / 800), 1.8px), calc((100svh - var(--header-h)) / 372)));
  display: flex; flex-direction: column;
  min-height: min(calc(100vh - var(--header-h)), calc(560 * var(--pt)));
  min-height: min(calc(100svh - var(--header-h)), calc(560 * var(--pt)));
  padding: calc(30 * var(--pt)) 0 calc(14 * var(--pt));
}
.page-home .hero__title img { width: calc(240 * var(--pt)); margin-left: calc(-5.2 * var(--pt)); }
.page-home .hero__facts { margin-top: calc(22 * var(--pt)); }
.page-home .hero__actions { margin-top: calc(16 * var(--pt)); }
.page-home .hero__side { gap: calc(18 * var(--pt)); }
.page-home .hero__stats { margin-top: auto; padding-top: calc(26 * var(--pt)); }
.page-home .hero .stat__num { font-variant-numeric: tabular-nums; }

@media (max-width: 959px) {
  .page-home .hero { --pt: 1.25px; min-height: 0; padding: 22px 0 26px; }
  .page-home .hero__title img { width: min(100%, 460px); margin-left: -1%; }
  .page-home .hero__facts { margin-top: 18px; row-gap: 8px; }
  .page-home .hero__actions { margin-top: 18px; gap: 10px; }
  .page-home .hero__actions .btn, .page-home .hero-watch { height: 44px; }
  .page-home .hero__inner { gap: 18px; }
  .page-home .hero__side { gap: 16px; }
  .page-home .hero .countdown__ring { width: clamp(54px, 15vw, 70px); }
  .page-home .hero .countdown__num { font-size: clamp(19px, 5.2vw, 25px); }
  .page-home .hero .countdown__num.is-3 { font-size: clamp(16px, 4.4vw, 21px); }
  .page-home .hero .countdown__label { font-size: 11px; margin-top: 6px; }
  .page-home .hero__stats { margin-top: 22px; padding-top: 0; }
  .page-home .hero .stats { grid-template-columns: repeat(6, 1fr); row-gap: 16px; }
  .page-home .hero .stat, .page-home .hero .stat:nth-child(4), .page-home .hero .stat:nth-child(5) { grid-column: span 2; }
  .page-home .hero .stat:nth-child(4) { grid-column: 2 / span 2; }
  .page-home .hero .stat:nth-child(4)::before { display: none; }
  .page-home .hero .stat:nth-child(5)::before { display: block; }
  .page-home .hero .stat__num { font-size: clamp(22px, 6vw, 30px); }
  .page-home .hero .stat__label { font-size: 11px; margin-top: 5px; }
}
@media (max-width: 420px) {
  .page-home .hero .stats { grid-template-columns: repeat(6, 1fr); }
  .page-home .hero .stat::before { display: block; }
  .page-home .hero .stat:nth-child(1)::before, .page-home .hero .stat:nth-child(4)::before { display: none; }
  .page-home .hero .stat:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 599px) and (max-height: 700px) {
  .page-home .hero { padding: 16px 0 20px; }
  .page-home .hero__title img { width: min(100%, 380px); }
  .page-home .hero__facts { margin-top: 12px; row-gap: 6px; }
  .page-home .hero__facts span { font-size: 16px; }
  .page-home .hero__actions { margin-top: 14px; gap: 8px; }
  .page-home .hero__actions .btn, .page-home .hero-watch { height: 40px; }
  .page-home .hero__inner, .page-home .hero__side { gap: 12px; }
  .page-home .hero .countdown__ring { width: 50px; }
  .page-home .hero__stats { margin-top: 16px; }
}

/* ---------- "Explore the Opportunities" title above the audience cards ---------- */
.page-home .why__aud-title { margin-top: calc(52 * var(--pt)); font-size: calc(24 * var(--pt)); line-height: 1.1; }
.page-home .why .aud-grid { margin-top: calc(22 * var(--pt)); }
@media (max-width: 959px) {
  .page-home .why__aud-title { margin-top: 40px; font-size: clamp(24px, 6.4vw, 34px); }
  .page-home .why .aud-grid { margin-top: 18px; }
}

/* ================= Scroll effects on the homepage frames =================
   Each plays once as the frame scrolls into view. Nothing is hidden without JS or with reduced motion. */
@property --draw { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
@keyframes fx-rise { from { opacity: 0; transform: translateY(48px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fx-lift { from { opacity: 0; transform: perspective(1000px) translateY(70px) rotateX(16deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fx-slide { from { opacity: 0; transform: translateX(90px); } to { opacity: 1; transform: none; } }
@keyframes fx-flip { from { opacity: 0; transform: perspective(1100px) rotateY(-80deg) translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes fx-draw { from { --draw: 0deg; } to { --draw: 360deg; } }
@keyframes fx-settle { from { transform: scale(1.28); filter: saturate(.35) brightness(.7); } to { transform: none; filter: none; } }
@keyframes fx-scan { 0% { --ring-a: 0deg; opacity: 1; } 80% { opacity: 1; } 100% { --ring-a: 360deg; opacity: 0; } }
@keyframes fx-spin-in { from { opacity: 0; transform: rotate(-140deg) scale(.4); } to { opacity: .55; transform: none; } }
@keyframes fx-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fx-gleam { 0%, 100% { filter: drop-shadow(0 calc(4 * var(--pt)) calc(6 * var(--pt)) rgba(0, 0, 0, .35)) brightness(1); } 45% { filter: drop-shadow(0 0 calc(12 * var(--pt)) rgba(255, 210, 120, .75)) brightness(1.55); } }

/* stagger by position */
.page-home :is(.core-grid, .aud-grid, .speaker-grid, .tiers) > :nth-child(2), .page-home .carousel__track > :nth-child(2) { --fx-d: .14s; }
.page-home :is(.core-grid, .aud-grid, .speaker-grid, .tiers) > :nth-child(3), .page-home .carousel__track > :nth-child(3) { --fx-d: .28s; }
.page-home :is(.core-grid, .aud-grid, .speaker-grid, .tiers) > :nth-child(4), .page-home .carousel__track > :nth-child(4) { --fx-d: .42s; }
.page-home :is(.tiers) > :nth-child(5), .page-home .carousel__track > :nth-child(5) { --fx-d: .56s; }
.page-home :is(.tiers) > :nth-child(6) { --fx-d: .7s; }

/* 1. Four core experiences: rise, then the chamfered outline draws itself */
.js .page-home .core-card.reveal { transition: transform .35s var(--ease); }
.js .page-home .core-card.reveal.is-in { animation: fx-rise .9s var(--ease) backwards; animation-delay: var(--fx-d, 0s); }
.page-home .core-card::before {
  -webkit-mask-image: conic-gradient(from -135deg, #000 var(--draw), transparent 0); mask-image: conic-gradient(from -135deg, #000 var(--draw), transparent 0);
}
.js .page-home .core-card.reveal.is-in::before { animation: fx-draw 1.3s var(--ease) backwards; animation-delay: calc(var(--fx-d, 0s) + .35s); }
.js .page-home .core-card.reveal.is-in .core-card__num { animation: fx-rise .8s var(--ease) backwards; animation-delay: calc(var(--fx-d, 0s) + .25s); }

/* 2. Sponsors / Exhibitors / Delegates / Visitors: 3D lift, photo settles, light runs round the border */
.js .page-home .aud-card.reveal { transition: none; }
.js .page-home .aud-card.reveal.is-in { animation: fx-lift 1s var(--ease) backwards; animation-delay: var(--fx-d, 0s); }
.js .page-home .aud-card.reveal.is-in .aud-card__img { animation: fx-settle 1.8s var(--ease) backwards; animation-delay: var(--fx-d, 0s); }
.page-home .aud-card::before, .page-home .carousel--news .news-card::before {
  content: ""; position: absolute; inset: -1px; z-index: 4; pointer-events: none; padding: 2px; opacity: 0;
  background: conic-gradient(from var(--ring-a), transparent 0deg 250deg, rgba(69, 192, 191, .7) 310deg, #c8fffa 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.js .page-home .aud-card.reveal.is-in::before { animation: fx-scan 1.6s linear backwards; animation-delay: calc(var(--fx-d, 0s) + .5s); }

/* 3. Latest news: cards slide in from the right, border light runs once */
.js .page-home .carousel--news.fx-wait:not(.fx-in) .carousel__slide { opacity: 0; }
.js .page-home .carousel--news.fx-in:not(.fx-done) .carousel__slide { animation: fx-slide .9s var(--ease) backwards; animation-delay: var(--fx-d, 0s); }
.js .page-home .carousel--news.fx-in:not(.fx-done) .news-card::before { animation: fx-scan 1.5s linear backwards; animation-delay: calc(var(--fx-d, 0s) + .45s); }

/* 4. Speakers: cards flip in as the row arrives */
.js .page-home .carousel--speakers.fx-wait:not(.fx-in) .carousel__slide { opacity: 0; }
.js .page-home .carousel--speakers.fx-in:not(.fx-done) .carousel__slide { animation: fx-flip .9s var(--ease) backwards; animation-delay: var(--fx-d, 0s); }
.page-home .carousel--speakers .carousel__viewport { perspective: 1400px; }

/* 5. Sponsors & Partners: the logo set rises, each logo fades up in turn */
.js .page-home .carousel--logos.fx-wait:not(.fx-in) .logo-set { opacity: 0; }
.js .page-home .carousel--logos.fx-in:not(.fx-done) .logo-set { animation: fx-rise .8s var(--ease) backwards; }
.js .page-home .carousel--logos.fx-in:not(.fx-done) .logo-set__item { animation: fx-rise .7s var(--ease) backwards; animation-delay: calc(.2s + var(--fx-i, 0) * .07s); }
.page-home .logo-set__item:nth-child(2) { --fx-i: 1; } .page-home .logo-set__item:nth-child(3) { --fx-i: 2; }
.page-home .logo-set__item:nth-child(4) { --fx-i: 3; } .page-home .logo-set__item:nth-child(5) { --fx-i: 4; }
.page-home .logo-set__item:nth-child(6) { --fx-i: 5; } .page-home .logo-set__item:nth-child(7) { --fx-i: 6; }

/* 6. Awards: the frame outline draws, trophies rise and gleam */
.page-home .awards-frame::before {
  -webkit-mask-image: conic-gradient(from -90deg, #000 var(--draw), transparent 0); mask-image: conic-gradient(from -90deg, #000 var(--draw), transparent 0);
}
.js .page-home .awards-frame.fx-in:not(.fx-done)::before { animation: fx-draw 1.6s var(--ease) backwards; }
.js .page-home .awards-frame.fx-wait:not(.fx-in) .award { opacity: 0; }
.js .page-home .awards-frame.fx-in:not(.fx-done) .award { animation: fx-rise .9s var(--ease) backwards; animation-delay: calc(var(--fx-d, 0s) + .3s); }
.js .page-home .awards-frame.fx-in:not(.fx-done) .award__img { animation: fx-gleam 1.2s ease-in-out backwards; animation-delay: calc(var(--fx-d, 0s) + 1s); }
.page-home .awards-frame .carousel__track > * { --fx-d: 0s; }
.page-home .awards-frame .carousel__track > :nth-child(2) { --fx-d: .12s; }
.page-home .awards-frame .carousel__track > :nth-child(3) { --fx-d: .24s; }
.page-home .awards-frame .carousel__track > :nth-child(4) { --fx-d: .36s; }
.page-home .awards-frame .carousel__track > :nth-child(5) { --fx-d: .48s; }

@media (prefers-reduced-motion: reduce) {
  .page-home *, .page-home *::before { animation: none !important; }
  .js .page-home .fx-wait .carousel__slide, .js .page-home .fx-wait .tier, .js .page-home .fx-wait .award { opacity: 1 !important; }
}

/* Latest News & Updates: real stories from the client's news deck. The design's news tile is a photo with
   the headline laid over it, which only works for a few words; a story needs the photo on top and the text
   under it, so these cards opt out of the overlay and grow to fit their copy. */
.news-card--story {
  height: auto; overflow: visible; display: flex; flex-direction: column;
  padding-top: var(--bar);                       /* the teal label sits across the top */
  background: rgba(16, 35, 40, .55);
}
.news-card--story::after { display: none; }      /* no scrim: nothing is written over the photo */
.news-card--story .news-card__bar { transform: none; }
.news-card--story .news-card__media {
  position: relative; left: auto; top: auto; right: auto; bottom: auto; z-index: 0;
  margin: 0 var(--inset); aspect-ratio: 16 / 10;
}
.news-card--story .news-card__img {
  position: absolute; inset: 0; left: 0; top: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 42%;
}
.news-card--story .news-card__body {
  position: relative; inset: auto; justify-content: flex-start; text-align: left;
  padding: calc(14 * var(--pt)) calc(14 * var(--pt)) calc(16 * var(--pt));
}
.news-card--story .news-card__eyebrow {
  display: block; margin: 0 0 calc(5 * var(--pt)); font-family: var(--f-pop); font-weight: 600;
  font-size: calc(8.6 * var(--pt)); letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
}
.news-card--story .news-card__title {
  max-width: none; margin-bottom: calc(8 * var(--pt)); font-size: calc(13.4 * var(--pt)); line-height: 1.25;
  text-transform: none; letter-spacing: .01em;      /* never uppercase a headline: it would print CLASS PROvia as PROVIA */
}
.news-card--story:hover .news-card__img { transform: none; filter: none; }
.news-card--story:hover .news-card__body { justify-content: flex-start; padding-bottom: calc(16 * var(--pt)); }
.news-card--story:hover .news-card__title { font-family: var(--f-alex); font-weight: 700; font-size: calc(13.4 * var(--pt));
  text-transform: none; letter-spacing: .01em; line-height: 1.25; }
.news-card__text {
  margin: 0 0 calc(7 * var(--pt)); font-family: var(--f-pop); font-weight: 300;
  font-size: calc(9.6 * var(--pt)); line-height: 1.55; color: rgba(255, 255, 255, .78);
}
.news-card__text:last-child { margin-bottom: 0; }
@media (max-width: 959px) {
  .news-card--story { aspect-ratio: auto; }
  .news-card--story .news-card__body { padding: 16px 16px 18px; }
  .news-card--story .news-card__title { font-size: 17px; margin-bottom: 10px; }
  .news-card--story .news-card__eyebrow { font-size: 12px; margin-bottom: 6px; }
  .news-card__text { font-size: 14px; margin-bottom: 10px; line-height: 1.5; }
}
/* stories run to different lengths, so the slides share the tallest card's height */
.carousel--news .carousel__track { align-items: stretch; }
.carousel--news .carousel__slide { display: flex; }
.carousel--news .carousel__slide > .news-card--story { flex: 1 1 auto; height: auto; }
@media (max-width: 959px) {
  /* keep the arrows over the photo, clear of the headline and body copy */
  .carousel--news .carousel__arrow { top: 34%; }
}
/* The carousel shows one card per view only below 600px (data-per-view-sm in main.js). Above that two
   cards sit side by side, so they must still share a height or their borders end at different places. */
@media (max-width: 599px) {
  .carousel--news .carousel__track { align-items: flex-start; }
  .carousel--news .carousel__slide { display: block; }
}
