/* Talks page (talks.html): hero highlights, featured keynote, topic cards,
   the "Watch" grid of video stills, the "Also on stage" list and the
   booking block. Colours come from the site's tokens in
   phoenixperry-com.webflow.css; yellow is the Talks section colour. */

/* Hero: small label, call-to-action buttons and the numbers strip */
.tk-hero {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.tk-eyebrow {
  font-family: var(--space_mono_nav);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .8rem;
  margin-bottom: .75rem;
}

.tk-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 3rem;
}

/* The secondary button normally sits beside another with a left margin;
   the flex gap already spaces it here. */
.tk-cta .tool-button-secondary {
  margin-left: 0;
}

.tk-stats {
  list-style: none;
  margin: 0;
  padding: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.tk-stats strong {
  display: block;
  color: var(--yellow);
  font-family: var(--site_headline);
  font-size: 3rem;
  line-height: 1;
  font-weight: 500;
  margin-bottom: .5rem;
}

.tk-stats span {
  color: var(--cream);
  font-size: .95rem;
  line-height: 1.4;
}

/* Featured keynote: video beside its description */
.tk-featured {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0 5rem;
}

/* 16:9 is the shape YouTube serves; sizing here replaces an inline style. */
.tk-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.tk-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* "Talks Phoenix gives": three topics, each under a yellow rule */
.tk-topics {
  margin-bottom: 5rem;
}

.tk-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 1.5rem;
}

.tk-topic {
  border-top: 3px solid var(--yellow);
  padding-top: 1.25rem;
}

.tk-topic a,
.tk-list a {
  color: var(--yellow);
}

/* "Watch": grid of video stills that link out */
.tk-watch {
  margin-bottom: 5rem;
}

.tk-intro {
  margin-bottom: 2rem;
}

.tk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}

.tk-chip {
  display: block;
  color: var(--cream);
  text-decoration: none;
}

/* Stills come in 16:9 and 4:3; cropping to 16:9 keeps the rows even. */
.tk-still {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft-black);
  margin-bottom: .75rem;
}

.tk-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease, opacity .3s ease;
}

.tk-chip:hover .tk-still img {
  transform: scale(1.05);
  opacity: .8;
}

/* Play button: appears on hover or keyboard focus */
.tk-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%) scale(.9);
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0;
  transition: all .25s ease;
}

.tk-play::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 14px;
  border-style: solid;
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent var(--black);
}

.tk-chip:hover .tk-play,
.tk-chip:focus .tk-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Length (bottom right) and keynote tag (bottom left) on each still */
.tk-dur,
.tk-key {
  position: absolute;
  bottom: 8px;
  font-family: var(--space_mono_nav);
  font-size: .7rem;
  padding: .15em .6em;
  border-radius: 999px;
}

.tk-dur {
  right: 8px;
  background: rgba(0, 0, 0, .75);
  color: var(--white);
}

.tk-key {
  left: 8px;
  background: var(--yellow);
  color: var(--black);
}

.tk-meta {
  font-family: var(--space_mono_nav);
  font-size: .75rem;
  color: var(--yellow);
  margin-bottom: .25rem;
}

.tk-title {
  font-size: 1rem;
  line-height: 1.35;
}

/* "Also on stage at": two-column list of talks without recordings */
.tk-more {
  margin-bottom: 5rem;
}

.tk-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  columns: 2;
  column-gap: 3rem;
}

.tk-list li {
  break-inside: avoid;
  color: var(--cream);
  line-height: 1.5;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.tk-upcoming {
  color: var(--cream);
}

/* Booking block at the foot of the page */
.tk-book {
  text-align: center;
  padding: 4rem 0 6rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.tk-book .p-subheading {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Smaller screens: fewer columns */
@media screen and (max-width: 991px) {
  .tk-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tk-featured {
    grid-template-columns: 1fr;
  }

  .tk-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .tk-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tk-topic-grid {
    grid-template-columns: 1fr;
  }

  .tk-list {
    columns: 1;
  }
}

@media screen and (max-width: 479px) {
  .tk-grid {
    grid-template-columns: 1fr;
  }

  .tk-stats strong {
    font-size: 2.25rem;
  }
}
