/* TLH Talks. Built on the SYPartners MOMENTUM layout: a wordmark masthead, an
   uneven card grid with big editorial titles, an author shelf and a
   paged archive list. Manrope is used throughout, as on the homepage,
   and TLH purple is the only colour on the page that is not a photograph.
   Everything is scoped under .talks-page so styles.css keeps its homepage
   rules to itself. */

.talks-page {
  --t-ground: #ffffff;
  --t-ink: #17131c;
  --t-slate: #665f6c;
  --t-rule: rgba(35, 25, 42, .14);
  --t-purple: #5f3c91;
  --t-purple-hover: #4c3074;
  --t-tint: #f4eef8;
  --t-pad: clamp(1rem, 2.25vw, 2rem);
  --t-gap: 1rem;
  --t-serif: "Inter", "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --t-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--t-ground);
  color: var(--t-ink);
  font-family: var(--t-sans);
}
.talks-page .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.talks-page :focus-visible { outline: 2px solid var(--t-purple); outline-offset: 3px; }
.talks-page [hidden] { display: none !important; }

.talks-skip {
  position: absolute; left: var(--t-pad); top: -4rem; z-index: 50;
  padding: .7rem 1rem; border-radius: 999px; background: var(--t-purple); color: #fff; text-decoration: none;
}
.talks-skip:focus { top: 1rem; }

/* ——— Masthead ——— */
.talks-mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  align-items: end;
  gap: 1.5rem 3rem;
  padding: clamp(5rem, 13vh, 9.5rem) var(--t-pad) clamp(1.75rem, 3vw, 2.5rem);
}
/* Set like the homepage's plate titles (WHAT WE DO, OUR IMPACT): Manrope
   capitals, so the page reads as the same publication as the homepage. */
.talks-mast h2 {
  margin: 0;
  font-family: var(--t-serif);
  font-size: clamp(3.4rem, 9.2vw, 8.6rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
  white-space: nowrap;
}
.talks-mast p {
  margin: 0 0 .6rem;
  color: var(--t-slate);
  font-size: 1rem;
  line-height: 1.42;
  text-wrap: pretty;
}

/* ——— Navigator ——— */
.talks-bar {
  position: relative;
  z-index: 2;
  padding-inline: var(--t-pad);
  background: var(--t-ground);
  transition: box-shadow .25s ease, top .5s cubic-bezier(.22, 1, .36, 1);
}
.tlh-inner main > .talks-bar { position: relative; z-index: 2; }
.talks-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding-block: .85rem;
  border-top: 1px solid var(--t-rule);
}
.talks-topics {
  display: flex;
  gap: .4rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.talks-topics::-webkit-scrollbar { display: none; }
.talks-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: flex-start;
  gap: .2rem;
  min-height: 2.5rem;
  padding: .62rem 1rem;
  border: 1px solid var(--t-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--t-ink);
  font-size: .92rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.talks-chip sup { font-size: .62rem; color: var(--t-slate); top: 0; transition: color .2s ease; }
.talks-chip:hover { border-color: var(--t-purple); color: var(--t-purple); }
.talks-chip[aria-pressed="true"] { border-color: var(--t-purple); background: var(--t-purple); color: #fff; }
.talks-chip[aria-pressed="true"] sup { color: rgba(255, 255, 255, .72); }

.talks-tools { display: flex; flex: 0 0 auto; gap: .4rem; }
.talks-select, .talks-search {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  border: 1px solid var(--t-rule);
  border-radius: 999px;
}
.talks-select::after {
  content: "";
  position: absolute;
  right: .95rem;
  width: .38rem;
  height: .38rem;
  margin-top: -.2rem;
  border-right: 1.2px solid var(--t-ink);
  border-bottom: 1.2px solid var(--t-ink);
  transform: rotate(45deg);
  pointer-events: none;
}
.talks-select select {
  appearance: none;
  height: 100%;
  min-height: 2.4rem;
  padding: 0 2.2rem 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--t-ink);
  font: inherit;
  font-size: .92rem;
  cursor: pointer;
}
.talks-search svg {
  position: absolute;
  left: .85rem;
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--t-slate);
  stroke-width: 1.5;
  pointer-events: none;
}
.talks-search input {
  width: 11rem;
  min-height: 2.4rem;
  padding: 0 1rem 0 2.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--t-ink);
  font: inherit;
  font-size: .92rem;
}
.talks-search input::placeholder { color: var(--t-slate); }
.talks-select:focus-within, .talks-search:focus-within { border-color: var(--t-purple); }
.talks-select select:focus-visible, .talks-search input:focus-visible { outline: none; }

.talks-status {
  margin: 0;
  padding: 0 0 .9rem;
  color: var(--t-slate);
  font-size: .92rem;
}

.talks-underline {
  padding: 0 0 .25rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: none;
  color: var(--t-ink);
  font: inherit;
  cursor: pointer;
}
.talks-status .talks-underline { margin-left: .6rem; }
.talks-underline:hover { color: var(--t-purple); }

/* ——— Cards ——— */
.talks-feature { padding: clamp(.75rem, 1.5vw, 1.25rem) var(--t-pad) 0; }
.talks-feature-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--t-gap);
  align-items: start;
}
.talks-feature-top.is-single { grid-template-columns: minmax(0, 1fr); }
.talks-feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--t-gap);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.talk-card { position: relative; min-width: 0; }
.talk-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f4eef8;
  aspect-ratio: 3 / 2;
}
.talk-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.22, 1, .36, 1);
}
.talk-card:hover .talk-media img { transform: scale(1.03); }
.talk-card--small .talk-media,
.talk-card--large .talk-media,
.talk-card--landscape .talk-media,
.talk-card--portrait .talk-media,
.talk-card--square .talk-media { aspect-ratio: 3 / 2; }
.talks-feature-top.is-single .talk-card--large .talk-media { aspect-ratio: 16 / 9; }
.talk-card--shelf-a .talk-media { aspect-ratio: 1 / 1.1; }
.talk-card--shelf-b .talk-media { aspect-ratio: 3 / 2; }
.talk-card--shelf-c .talk-media { aspect-ratio: 4 / 5; }

.talk-badge {
  position: absolute;
  left: .9rem;
  bottom: .9rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: #fff;
  color: var(--t-purple);
  font-size: .8rem;
  font-weight: 560;
  line-height: 1;
}
.talk-badge i { font-size: .62rem; font-style: normal; }

.talk-topic {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 1.35rem 0 1.15rem;
  padding: 0 0 .3rem;
  border: 0;
  border-bottom: 1px solid var(--t-rule);
  border-radius: 0;
  background: none;
  color: var(--t-ink);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.2;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.talk-topic:hover { color: var(--t-purple); border-color: var(--t-purple); }

.talk-card h3 {
  margin: 0;
  font-family: var(--t-serif);
  font-size: clamp(1.55rem, 2.35vw, 2.3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.talk-card--large h3 { max-width: 24ch; }
.talk-card h3 a { color: inherit; text-decoration: none; }
.talk-card h3 a::after { content: ""; position: absolute; inset: 0; }
.talk-card:hover h3 a { color: var(--t-purple); }

.talk-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.9rem;
  font-size: .88rem;
  line-height: 1.4;
}
.talk-face {
  flex: 0 0 2.5rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  background: #fff;
}
.talk-face img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.talk-face span { color: var(--t-purple); font-size: .72rem; font-weight: 650; letter-spacing: .02em; }
.talk-author { display: block; color: var(--t-ink); }
.talk-byline time { display: block; color: var(--t-slate); }

/* ——— Author shelf ——— */
.talks-shelf { padding: clamp(6rem, 12vw, 11rem) var(--t-pad) 0; }
.talks-shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.talks-shelf-head h2,
.talks-archive h2,
.talks-signup h2,
.talks-empty h2 {
  margin: 0;
  font-family: var(--t-sans);
  font-size: clamp(2.6rem, 4.8vw, 4.25rem);
  font-weight: 350;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.talks-shelf-head p { max-width: 34rem; margin: .9rem 0 0; color: var(--t-slate); line-height: 1.45; }
.talks-shelf-head .talks-underline { flex: 0 0 auto; font-size: 1.05rem; }
.talks-shelf-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* ——— Archive ——— */
.talks-archive { padding: clamp(6rem, 12vw, 11rem) var(--t-pad) 0; }
.talks-archive h2 sup { margin-left: .3rem; font-size: .9rem; letter-spacing: 0; top: -1.6em; }
.talks-list { margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--t-rule); }
.talk-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 10rem);
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--t-rule);
}
.talk-row .talk-topic { margin: 0 0 .9rem; font-size: .92rem; }
.talk-row h3 {
  margin: 0;
  font-family: var(--t-serif);
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.talk-row h3 a { color: inherit; text-decoration: none; }
.talk-row h3 a::after { content: ""; position: absolute; inset: 0; }
.talk-row:hover h3 a { color: var(--t-purple); }
.talk-format {
  display: inline-block;
  margin-left: .35rem;
  padding: .3rem .55rem;
  border-radius: 999px;
  background: var(--t-tint);
  color: var(--t-purple);
  font-family: var(--t-sans);
  font-size: .72rem;
  font-weight: 560;
  vertical-align: .35em;
}
.talk-row .talk-byline { margin-top: 1.25rem; }
.talk-row-excerpt {
  max-width: 44ch;
  margin: 1.95rem 0 0;
  color: var(--t-slate);
  font-size: .92rem;
  line-height: 1.55;
}
.talk-row-thumb { display: block; overflow: hidden; aspect-ratio: 3 / 2; margin-top: 1.95rem; background: #f4eef8; }
.talk-row-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.talk-row:hover .talk-row-thumb img { transform: scale(1.04); }

.talks-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  color: var(--t-slate);
  font-size: .88rem;
}
.talks-pager-arrows { display: flex; gap: .4rem; }
.talks-pager button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--t-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--t-ink);
  font-size: 1rem;
  cursor: pointer;
}
.talks-pager button:hover:not(:disabled) { border-color: var(--t-purple); color: var(--t-purple); }
.talks-pager button:disabled { opacity: .35; cursor: default; }
.talks-pager span:first-of-type { margin-right: auto; margin-left: 1rem; }

/* ——— Empty, sign-up ——— */
.talks-empty { padding: clamp(3rem, 7vw, 6rem) var(--t-pad) 0; }
.talks-empty p { margin: 1rem 0 1.75rem; color: var(--t-slate); }

.talks-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--t-purple);
  color: #fff;
  font: inherit;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease;
}
.talks-pill:hover { background: var(--t-purple-hover); }

.talks-signup { padding: clamp(7rem, 14vw, 13rem) var(--t-pad) clamp(6rem, 12vw, 11rem); }
.talks-signup h2 { margin-bottom: 1.75rem; }


/* ——— Narrow screens ——— */
@media (max-width: 1100px) {
  .talks-bar-inner { flex-wrap: wrap; }
  .talks-tools { flex: 1 1 100%; }
  .talks-search { flex: 1 1 auto; }
  .talks-search input { width: 100%; }
}
@media (max-width: 899px) {
  .talks-mast { grid-template-columns: minmax(0, 1fr); padding-top: 3.5rem; }
  .talks-mast h2 { white-space: normal; }
  .talks-feature-top,
  .talks-feature-row,
  .talks-shelf-row { grid-template-columns: minmax(0, 1fr); row-gap: 3.5rem; }
  .talks-feature-row { margin-top: 3.5rem; }
  .talk-card--shelf-c .talk-media { aspect-ratio: 4 / 4.4; }
  .talks-shelf-head { flex-direction: column; align-items: flex-start; }
  .talk-row { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .talk-row-excerpt { display: none; }
  .talk-row-thumb { grid-column: 2; grid-row: 1; margin-top: 0; }
  .talks-tools { flex-wrap: wrap; }
  .talks-select { flex: 1 1 8rem; }
  .talks-select select { width: 100%; }
  .talks-search { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .talk-media img, .talk-row-thumb img, .talks-chip, .talks-bar { transition: none; }
  .talk-card:hover .talk-media img, .talk-row:hover .talk-row-thumb img { transform: none; }
}

/* ——— Reveal ———
   One deliberate motion: as a card or row enters, its picture opens upward
   from a hairline and settles, and the words follow a beat later. Filtering
   re-renders the cards, so a new selection arrives the same way. Only armed
   when talks.js has run and motion is allowed (.talks-motion on <html>). */
.talks-motion .talk-card .talk-media,
.talks-motion .talk-row .talk-row-thumb {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.05s cubic-bezier(.22, 1, .36, 1);
}
.talks-motion .talk-card .talk-media img,
.talks-motion .talk-row .talk-row-thumb img { transform: scale(1.12); }
.talks-motion .talk-card > :not(.talk-media),
.talks-motion .talk-row .talk-row-main,
.talks-motion .talk-row .talk-row-excerpt {
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
  transition: opacity .8s ease .18s, transform .9s cubic-bezier(.22, 1, .36, 1) .18s;
}
.talks-motion .is-seen .talk-media,
.talks-motion .is-seen .talk-row-thumb { clip-path: inset(0 0 0 0); }
.talks-motion .is-seen .talk-media img,
.talks-motion .is-seen .talk-row-thumb img {
  transform: scale(1);
  transition: transform 1.4s cubic-bezier(.22, 1, .36, 1);
}
.talks-motion .talk-card.is-seen > :not(.talk-media),
.talks-motion .talk-row.is-seen .talk-row-main,
.talks-motion .talk-row.is-seen .talk-row-excerpt { opacity: 1; transform: none; }
/* Hover zoom still applies once revealed. */
.talks-motion .talk-card.is-seen:hover .talk-media img { transform: scale(1.03); }
.talks-motion .talk-row.is-seen:hover .talk-row-thumb img { transform: scale(1.04); }

/* The opening plate now carries the TLH Talks title, so the masthead is the
   introduction line, set in the inner pages' display voice. */
.talks-mast { grid-template-columns: minmax(0, 1fr); padding-top: clamp(4.5rem, 10vw, 8rem); }
.talks-mast p {
  max-width: 30ch;
  margin: 0;
  color: var(--t-ink);
  font-size: clamp(1.6rem, 2.9vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -.05em;
  text-wrap: balance;
}

/* The opening is sticky (site-shell/page-opening), so everything after it must
   paint its own ground — otherwise the pinned hero shows straight through the
   page, which is what "missing a background" was: article cards and the hero
   headline overlapping each other. background-color rather than background, so
   the editorial hero keeps its radial wash. Contact shares .talks-page but has
   no opening of its own, so it is left alone. */
.talks-page:not(.contact-page) main > section:not(.tlh-opening) {
  background-color: #fff;
}
