/* ============ Speaking cards: the event photo fills the card, shades keep tags and title readable ============ */
.card__art.art-photo { place-items: stretch; }
.art-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
#speaking .card::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 42%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.7) 82%, rgba(0,0,0,.88) 100%); }
.card--photo .card__foot p { color: rgba(255,255,255,.75); }
/* Upcoming talks without photos: the session card floats in the card like a poster */
.art-poster img { width: min(400px, 60%); aspect-ratio: 1; border-radius: 18px; transform: rotate(-4deg);
  box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.08); }

/* ============ Talk popup: photo on the left (whole photo over a blurred copy), details on the right ============ */
.talk { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  pointer-events: none; visibility: hidden; transition: visibility 0s linear .6s; }
.talk.is-open { pointer-events: auto; visibility: visible; transition: none; }

.talk__backdrop { position: absolute; inset: 0; background: rgba(11, 11, 11, .5); opacity: 0;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: opacity .6s var(--ease-io); cursor: pointer; }
.talk.is-open .talk__backdrop { opacity: 1; }

.talk__panel { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; width: min(1180px, 100%); height: min(720px, calc(100dvh - 48px));
  background: var(--surface); color: var(--fg); border-radius: 24px; overflow: hidden;
  opacity: 0; transform: translate3d(0, 28px, 0) scale(.97); transition: opacity .4s var(--ease), transform .7s var(--ease); }
.talk.is-open .talk__panel { opacity: 1; transform: none; }

.talk__close { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; border-radius: 12px; background: var(--surface-2); color: var(--fg);
  font-size: 13px; display: grid; place-items: center; transition: background-color .3s, transform .5s var(--ease); z-index: 3; }
.talk__close:hover { background: var(--surface-3); transform: rotate(90deg); }

.talk__media { position: relative; min-height: 0; overflow: hidden; background: #0b0b0b; }
.talk__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.55); }
.talk__img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.talk__thumbs { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 8px; z-index: 2;
  overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }   /* padding keeps the active outline unclipped */
.talk__thumbs::-webkit-scrollbar { display: none; }
.talk__thumbs button { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; opacity: .6; flex: none; outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .3s, outline-color .3s; }
.talk__thumbs button:hover { opacity: .9; }
.talk__thumbs button.is-on { opacity: 1; outline-color: #fff; }
.talk__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.talk__body { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 40px; }
.talk__eyebrow { font-size: 14px; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-2); padding-right: 48px; }
.talk__title { font-size: 48px; line-height: 1; letter-spacing: -0.04em; font-weight: 500; margin-top: 16px; padding-right: 24px; }
.talk__text { font-size: 18px; line-height: 1.35; letter-spacing: -0.02em; color: var(--text-2); margin-top: 24px; }
.talk__facts { margin-top: 32px; border-top: 1px solid var(--line); }
.talk__facts div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.talk__facts dt { font-size: 14px; color: var(--text-2); }
.talk__facts dd { font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; }
.talk__link { align-self: flex-start; margin-top: 20px; gap: 8px; }
.talk__link[hidden] { display: none; }   /* .btn's inline-flex would otherwise override [hidden] */
.talk__nav { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 32px; }
.talk__count { margin-right: auto; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.talk__nav .btn { height: 44px; }

@media (max-width: 1100px) {
  .talk__title { font-size: 40px; }
}

/* Phones: photo on top, details scroll below it; cards keep the photo full size */
@media (max-width: 809px) {
  .card .card__art.art-photo, .card:hover .card__art.art-photo { transform: none; }
  .card .card__art.art-poster, .card:hover .card__art.art-poster { transform: translateY(-24px); }
  .art-poster img { width: 50%; }
  .talk { padding: 8px; }
  .talk__panel { grid-template-columns: 1fr; grid-template-rows: 42dvh 1fr; height: calc(100dvh - 16px); border-radius: 20px; }
  .talk__close { top: 12px; right: 12px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .talk__body { padding: 24px 20px 20px; }
  .talk__eyebrow { padding-right: 0; }
  .talk__title { font-size: 34px; margin-top: 12px; padding-right: 0; }
  .talk__text { font-size: 16px; margin-top: 16px; }
  .talk__facts { margin-top: 24px; }
  .talk__facts div { grid-template-columns: 80px 1fr; }
  .talk__thumbs { left: 12px; right: 12px; bottom: 12px; }
  .talk__thumbs button { width: 44px; height: 44px; border-radius: 10px; }
  .talk__body { padding-bottom: 0; }
  .talk__nav { position: sticky; bottom: 0; padding: 16px 0 20px; background: var(--surface); }   /* buttons stay in reach while details scroll */
}

@media (prefers-reduced-motion: reduce) {
  .talk__panel { transform: none; transition: opacity .2s linear; }
}
