/* ==========================================================================
   Urban Retail Talks — V3 Light Theme
   Animation philosophy: Emil Kowalski — every detail compounds
   ========================================================================== */

@font-face {
  font-family: 'Aeonik';
  src: url('../assets/fonts/aeonik-regular.woff2') format('woff2'),
       url('../assets/fonts/aeonik-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik';
  src: url('../assets/fonts/aeonik-bold.woff2') format('woff2'),
       url('../assets/fonts/aeonik-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik Fono';
  src: url('../assets/fonts/aeonikfono-regular.woff2') format('woff2'),
       url('../assets/fonts/aeonikfono-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Aeonik Fono';
  src: url('../assets/fonts/aeonikfono-bold.woff2') format('woff2'),
       url('../assets/fonts/aeonikfono-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Custom easing curves (Emil's approach — built-in CSS easings are too weak) --- */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

::selection { background: #92F0A2; color: #020202; }

/* --- Modern scrollbar — brand colors --- */
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: #92F0A2 #F7F7F7;
}

/* WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #F7F7F7;
}

::-webkit-scrollbar-thumb {
  background: #92F0A2;
  border: 2px solid #F7F7F7;
  border-radius: 10px;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: #3DD468;
}

::-webkit-scrollbar-corner {
  background: #F7F7F7;
}

/* --- Nav glass --- */
#nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* --- Scroll reveal — stagger with translateY + opacity --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Buttons — press feedback (scale 0.97 on active) --- */
a[class*="rounded-full"],
button {
  transition: transform 160ms ease-out, background 200ms ease, color 200ms ease;
}

a[class*="rounded-full"]:active,
button:active {
  transform: scale(0.97);
}

/* --- Speaker photos — subtle scale on hover (desktop only) --- */
@media (hover: hover) and (pointer: fine) {
  .speaker-link img {
    transition: transform 400ms var(--ease-out);
  }

  .speaker-link:hover img {
    transform: scale(1.03);
  }
}

/* --- Venue image — scroll-driven zoom --- */
.venue-img {
  will-change: transform;
  transition: transform 4s cubic-bezier(0.04, 0.9, 0.1, 1);
}


/* --- Focus --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #92F0A2;
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Reduced motion — keep opacity, remove movement --- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  a[class*="rounded-full"],
  button {
    transition: background 200ms ease, color 200ms ease;
  }

  a[class*="rounded-full"]:active,
  button:active {
    transform: none;
  }

  .venue-img {
    transform: scale(1) !important;
    transition: none;
  }

  [data-reveal] img {
    transition: none !important;
  }

  [data-reveal]:hover img {
    transform: none !important;
  }
}

/* Keep the partner divider below the 1995 × 1237 hero artwork.
   The artwork is 220% wide on mobile and capped at 1995px on desktop. */
.partners-strip {
  margin-top: max(1rem, calc(136.412vw - 80svh + 1rem));
}

@media (min-width: 768px) {
  .partners-strip {
    margin-top: max(3rem, calc(min(62.006vw, 1237px) - 100vh + 3rem));
  }
}
