/* ============================================================
   Public site components: stage-light plates, header, hero, cards,
   sections, footer. Shared by index.php, talent.php, talent_detail.php.
   Load after style.css (tokens). Moved out of the homepage mockup (now index.php).
   ============================================================ */

/* ---------- stage light placeholder ---------- */
.plate {
  position: relative;
  overflow: hidden;
  background: #08080A;
  isolation: isolate
}

.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34% 130% at var(--lx, 50%) calc(var(--ly, 18%) + 6%),
      rgba(255, 231, 193, calc(var(--i, .5)*.13)) 0%,
      rgba(255, 214, 160, calc(var(--i, .5)*.05)) 42%,
      rgba(255, 214, 160, 0) 78%),
    radial-gradient(120% 90% at var(--lx, 50%) var(--ly, 18%),
      rgba(255, 232, 198, var(--i, .5)) 0%,
      rgba(255, 197, 128, calc(var(--i, .5)*.42)) 16%,
      rgba(120, 78, 42, calc(var(--i, .5)*.20)) 34%,
      rgba(20, 16, 14, 0) 62%),
    radial-gradient(80% 60% at calc(var(--lx, 50%) + 18%) 88%,
      rgba(90, 70, 54, .20) 0%, rgba(10, 10, 11, 0) 60%),
    linear-gradient(180deg, #0C0B0C 0%, #08080A 55%, #101012 100%);
}

/* audience/silhouette suggestion at the base */
.plate::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -2%;
  height: 42%;
  background:
    radial-gradient(38% 100% at 12% 100%, rgba(0, 0, 0, .92) 0 46%, transparent 70%),
    radial-gradient(30% 90% at 30% 100%, rgba(0, 0, 0, .88) 0 48%, transparent 72%),
    radial-gradient(34% 105% at 50% 100%, rgba(0, 0, 0, .94) 0 46%, transparent 70%),
    radial-gradient(28% 88% at 69% 100%, rgba(0, 0, 0, .86) 0 48%, transparent 72%),
    radial-gradient(36% 100% at 88% 100%, rgba(0, 0, 0, .9) 0 46%, transparent 70%);
  filter: blur(1px);
  pointer-events: none
}

.plate>.tag {
  position: absolute;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(221, 209, 195, .42);
  border: 1px solid rgba(221, 209, 195, .2);
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(8, 8, 10, .45)
}


/* ---------- header ---------- */
.hdr {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding-block: 26px
}

.hdr .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

/* The wordmark is an inline SVG (siteWordmark() in site.php); font-size only sets its scale. */
.mark {
  font-size: 1.12rem;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap
}

/* Width is the logo's natural size at .8em tall (viewBox 671.65 x 26.41); on narrow screens
   max-width lets it shrink to fit instead of running off the edge. */
.mark {
  min-width: 0
}

.mark svg {
  display: block;
  width: calc(.8em * 25.43);
  max-width: 100%;
  height: auto
}

/* currentColor follows the link colour, so "Contagious" turns violet on hover (a:hover). */
.mark .mark__a {
  fill: currentColor
}

.mark .mark__b {
  fill: var(--bone)
}

.mark small {
  display: block;
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .3em;
  color: var(--bone);
  margin-top: 4px;
  opacity: .75
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  padding-block: 4px;
  border-bottom: 1px solid transparent;
  transition: .2s
}

.nav a:hover {
  color: var(--accent-hi);
  border-bottom-color: var(--accent)
}

/* Narrow screens: one tagline sentence per line (16 Oct). */
@media(max-width:500px) {
  .mark small span {
    display: block
  }
}

/* Header only: larger name and nav (15 Oct). The footer keeps the sizes above. */
.hdr .mark {
  font-size: var(--size-mark)
}

.hdr .mark small {
  font-size: var(--size-mark-tag)
}

.hdr .nav a {
  font-size: var(--size-nav)
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  padding: 1.05rem 1.95rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .22s;
  white-space: nowrap
}

/* ---------- mobile menu (below 1000px; js/menu.js) ----------
   With JavaScript, the links and Let's talk button hide behind .menu-toggle, and opening it
   turns the whole header into a full-screen panel. Without JavaScript (.has-menu is never
   added) the links simply wrap onto their own row under the logo. */
.menu-toggle {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer
}

.menu-toggle:hover {
  color: var(--accent-hi)
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5
}

.menu-toggle[aria-expanded="true"] .menu-toggle__open,
.menu-toggle[aria-expanded="false"] .menu-toggle__close {
  display: none
}

@media(max-width:1000px) {
  .hdr .wrap {
    flex-wrap: wrap
  }

  .hdr.has-menu .wrap {
    flex-wrap: nowrap
  }

  .hdr.has-menu .nav,
  .hdr.has-menu .hdr__cta {
    display: none
  }

  .hdr.has-menu .menu-toggle {
    display: inline-flex
  }

  .hdr.is-open {
    position: fixed;
    inset: 0;
    z-index: 20;
    overflow-y: auto;
    background: var(--ground)
  }

  .hdr.is-open .wrap {
    flex-wrap: wrap;
    align-content: flex-start
  }

  /* basis 0 keeps the close button on the logo's row; the logo then grows into the space */
  .hdr.is-open .mark {
    flex: 1 1 0
  }

  .hdr.is-open .nav {
    display: flex;
    order: 2;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--3);
    margin-top: var(--8)
  }

  .hdr.is-open .nav a {
    font-family: var(--font-display);
    font-size: var(--size-h2);
    letter-spacing: 0;
    text-transform: none
  }

  .hdr.is-open .hdr__cta {
    display: inline-flex;
    order: 3;
    margin-top: var(--6)
  }
}

html.menu-open {
  overflow: hidden
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  padding-block: 150px 68px
}

.hero .plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  --lx: 63%;
  --ly: 14%;
  --i: .62
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 10, 11, .72) 0%, rgba(10, 10, 11, .1) 34%,
      rgba(10, 10, 11, .55) 72%, rgba(10, 10, 11, .94) 100%)
}

.hero .wrap {
  position: relative;
  z-index: 2;
  width: 100%
}

.hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 5.1rem);
  max-width: 16ch
}

.hero p {
  margin-top: 26px;
  max-width: 44ch;
  color: var(--dim);
  font-size: 1.1875rem
}

.hero .cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: center
}

.quietlink {
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--bone);
  border-bottom: 1px solid rgba(221, 209, 195, .4);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s
}

.quietlink::after {
  content: " \2193";
  opacity: .7
}

.quietlink:hover {
  color: var(--accent-hi);
  border-bottom-color: var(--accent)
}

/* the video sits over the stage-light plate, which shows until it plays and whenever it can't
   (reduced motion hides .hero__video in style.css) */
.hero .hero__video {
  position: absolute;
  inset: 0;
  z-index: 0
}

@media(prefers-reduced-motion:no-preference) {
  .hero .plate::before {
    animation: breathe 17s var(--ease, ease-in-out) infinite alternate
  }
}

@keyframes breathe {
  from {
    transform: scale(1) translate3d(0, 0, 0);
    opacity: .94
  }

  to {
    transform: scale(1.07) translate3d(-1.4%, 1%, 0);
    opacity: 1
  }
}

/* ---------- section frame ---------- */
/* Section spacing reduced about 40% site-wide on 15 Oct (was 4.5–8.5rem / tight 3.5–6rem). */
.sec {
  padding-block: clamp(3rem, 6vw, 5rem)
}

.sec--tight {
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem)
}

/* Homepage featured talent: half the usual gap below the hero (15 Oct). */
.sec--after-hero {
  padding-top: clamp(2.25rem, 5vw, 4.25rem)
}

.lede {
  max-width: 56ch;
  color: var(--dim);
  margin-top: 20px;
  font-size: 1.1875rem
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0
}

/* ---------- featured talent ---------- */
.sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px
}

.sechead h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem)
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 26px)
}

@media(max-width:900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:560px) {
  .grid {
    grid-template-columns: 1fr
  }
}

.card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color .25s, background .25s
}

.card:hover {
  border-color: var(--accent);
  background: var(--panel-hi)
}

.card .plate {
  aspect-ratio: 4/5
}

.card .plate>.portrait {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.card .meta {
  padding: 20px 20px 24px
}

.card h3 {
  font-size: 1.5rem;
  letter-spacing: -.012em
}

.card .desc {
  margin-top: 9px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone)
}

.card .note {
  margin-top: 13px;
  font-size: 15px;
  color: var(--dim);
  line-height: 1.52
}

/* duo variant: two plates in one tile */
.card--duo .duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 4/5
}

.card--duo .duo .plate {
  aspect-ratio: auto;
  height: 100%
}

.card--duo .names {
  margin-top: 11px;
  font-size: 14.5px;
  color: var(--dim)
}

.flagline {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--accent-hi)
}

/* ---------- the moment: the one inversion ---------- */
.invert {
  background: var(--invert-bg);
  color: var(--invert-ink)
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch
}

@media(max-width:860px) {
  .split {
    grid-template-columns: 1fr
  }
}

.split .pad {
  /* Top/bottom halved and the section's 560px min-height removed (15 Oct), so the
     text sets the height and the slideshow beside it matches. */
  padding: clamp(1.25rem, 3vw, 2.75rem) clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center
}

.split h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem)
}

.invert .eyebrow {
  color: var(--invert-dim)
}

.invert .stack {
  margin-top: 28px;
  display: grid;
  gap: 9px;
  font-size: 1.1875rem;
  color: #3B342C;
}

.invert .kicker {
  margin-top: 26px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.55rem, 2.7vw, 2.1rem);
  line-height: 1.16;
  color: var(--invert-ink)
}

.split .plate {
  min-height: 300px;
  --lx: 40%;
  --ly: 26%;
  --i: .55
}

/* ---------- more than a performance: quiet full-width statement ---------- */
.statement {
  text-align: center;
  padding-block: clamp(4rem, 8vw, 6.5rem)
}

.statement h2 {
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  max-width: 18ch;
  margin-inline: auto
}

.statement .lines {
  margin-top: 26px;
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 1.1875rem;
  color: var(--dim)
}

/* ---------- created around / planner ---------- */
.duoblock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 26px);
  align-items: center
}

@media(max-width:860px) {
  .duoblock {
    grid-template-columns: 1fr
  }
}

.duoblock .plate {
  aspect-ratio: 5/4;
  border: 1px solid var(--line);
  border-radius: 2px
}

.duoblock h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem)
}

.duoblock .body {
  display: grid;
  gap: 16px;
  max-width: 46ch
}

.duoblock .body p {
  color: var(--dim)
}

/* ---------- testimonial ---------- */
.quote {
  text-align: center;
  max-width: 44ch;
  margin-inline: auto
}

.quote .q {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.24;
  font-style: italic;
  letter-spacing: -.01em
}

.pending {
  margin-top: 26px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border: 1px dashed rgba(179, 107, 255, .45);
  border-radius: 2px;
  padding: 12px 20px;
  background: rgba(179, 107, 255, .06)
}

.pending b {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent-hi)
}

.pending span {
  font-size: 14px;
  color: var(--dim)
}

/* ---------- close ---------- */
.close {
  position: relative;
  text-align: center;
  padding-block: clamp(5rem, 12vw, 9.5rem)
}

.close .plate {
  position: absolute;
  inset: 0;
  z-index: 0;
  --lx: 50%;
  --ly: 10%;
  --i: .44
}

.close::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 11, .86), rgba(10, 10, 11, .6) 45%, rgba(10, 10, 11, .97))
}

.close .wrap {
  position: relative;
  z-index: 2
}

.close h2 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  max-width: 17ch;
  margin-inline: auto
}

.close .budget {
  text-align: center;
  margin-top: 32px;
  font-size: 15px;
  color: var(--dim)
}

/* ---------- footer ---------- */
.ftr {
  border-top: 1px solid var(--line);
  padding-block: 38px
}

.ftr .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
  align-items: center;
  justify-content: space-between
}

.ftr .nav a {
  font-size: 12.5px
}

.ftr .legal {
  font-size: 13px;
  color: #6E6A64
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}

/* ============================================================
   Talent detail page (talent_detail.php). Tokens only.
   ============================================================ */

.hero .hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.hero .descriptor {
  color: var(--bone)
}

.hero .descriptor+h1 {
  margin-top: var(--2)
}

.section-title {
  margin-top: var(--2);
  font-size: var(--size-h2);
  max-width: 24ch
}

/* rich text from the CMS (bios): only p, h3, h4, strong, em, a, ul, ol, li can appear */
/* spacing matches the Quill editor: blocks have no margins, and a blank line typed in the editor
   (saved as an empty <p>) is what puts space between paragraphs */
.richtext {
  max-width: var(--measure);
  color: var(--dim)
}

.richtext>* {
  margin: 0
}

.richtext p:empty {
  min-height: calc(var(--lh-body) * 1em)
}

.richtext h3,
.richtext h4 {
  color: var(--text)
}

.richtext h3 {
  font-size: var(--size-h3)
}

.richtext h4 {
  font-size: var(--size-body);
  font-family: var(--font-ui);
  font-weight: 600
}

.richtext strong {
  color: var(--text);
  font-weight: 600
}

.richtext ul,
.richtext ol {
  padding-left: 1.5em
}

.richtext a {
  text-decoration: underline;
  text-underline-offset: .2em
}

.why .richtext {
  margin-top: var(--4);
  font-size: var(--size-body);
  color: var(--text)
}

/* two players per row, each 130% of the width it had in the original three-across row
   (a third of the row, less the gaps); the pair is centred, and an odd last player
   spans both columns but keeps one column's width, centred */
.videos {
  --video-gap: clamp(14px, 2vw, 26px);
  margin-top: var(--6);
  display: grid;
  grid-template-columns: repeat(2, calc((100% - 2 * var(--video-gap)) / 3 * 1.3));
  justify-content: center;
  gap: var(--video-gap)
}

.video-slot {
  margin: 0
}

.video-slot:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc((100% - var(--video-gap)) / 2)
}

@media(max-width:860px) {
  .videos {
    grid-template-columns: 1fr
  }

  .video-slot:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto
  }
}

.video-slot .frame {
  aspect-ratio: 16/9;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius)
}

.video-slot iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0
}

.video-slot figcaption {
  margin-top: var(--2)
}

.formats {
  margin-top: var(--6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(14px, 2vw, 26px)
}

.format {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden
}

.format .plate {
  aspect-ratio: 4/3
}

.format .plate>img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.format .meta {
  padding: var(--3)
}

.format h3 {
  font-size: var(--size-h3)
}

.format p {
  margin-top: var(--1);
  color: var(--dim);
  font-size: var(--size-small);
  white-space: pre-line
}

/* Tile portraits are uploaded at 358 x 448 (their largest size in the talent grid), so the
   portrait here never shows larger than that. It sits beside the bio, against the column gap. */
.meet .plate {
  width: 100%;
  max-width: 358px;
  aspect-ratio: 358/448;
  justify-self: end
}

@media(max-width:860px) {
  .meet .plate {
    justify-self: start
  }
}

.meet .plate>img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.meet .body {
  max-width: none
}

.credentials {
  margin-top: var(--4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--3) var(--6);
  align-items: center;
  list-style: none;
  padding: 0
}

.credentials li {
  display: flex;
  align-items: center;
  gap: var(--2);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase
}

.credentials img {
  height: var(--6);
  width: auto;
  max-width: 8rem;
  object-fit: contain
}

.quote .attribution {
  margin-top: var(--3);
  color: var(--dim);
  font-size: var(--size-small)
}

.not-found {
  padding-block: 150px var(--16)
}

.not-found h1 {
  font-size: var(--size-h1);
  margin-top: var(--2)
}

.not-found p {
  margin-top: var(--3);
  color: var(--dim)
}

figure.quote {
  margin-block: 0
}

.quote blockquote {
  margin: 0
}

/* ============================================================
   Simple page intro (talent.php, contact.php) and the contact form.
   ============================================================ */

.page-intro {
  padding-block: 150px 0
}

.page-intro h1 {
  font-size: var(--size-h1);
  margin-top: var(--2);
  max-width: 30ch /* was 18ch; widened 16 Oct so short titles stay on one line */
}

.page-intro .lede {
  margin-top: var(--3)
}

.empty-state {
  color: var(--dim)
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--3) var(--4);
  max-width: 52rem
}

@media(max-width:640px) {
  .contact-form {
    grid-template-columns: 1fr
  }
}

.contact-form .field--wide {
  grid-column: 1/-1
}

.contact-form label {
  display: block;
  margin-bottom: var(--1);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: var(--size-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase
}

.contact-form label span {
  color: var(--dim);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 3.25rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: var(--size-small)
}

.contact-form input:hover,
.contact-form select:hover {
  border-color: var(--bone)
}

.contact-form [aria-invalid="true"] {
  border-color: var(--error)
}

.field-error {
  margin-top: var(--1);
  color: var(--error);
  font-size: var(--size-small)
}

.form-errors {
  max-width: 52rem;
  margin-bottom: var(--4);
  padding: var(--2) var(--3);
  border-left: 2px solid var(--error);
  background: var(--panel)
}

.form-errors ul {
  margin: var(--1) 0 0;
  padding-left: 1.25em;
  color: var(--dim)
}

.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden
}
/* ============================================================
   Slideshow (homepage sections 03, 05, 06; slideshowPlate() in
   site.php, behaviour in js/slideshow.js). Images fill the plate
   and are cropped from the centre. Tokens only.
   ============================================================ */

.slideshow {
  --slide-fade: 1.2s
}

.slideshow__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-img);
  opacity: 0;
  transition: opacity var(--slide-fade) var(--ease)
}

.slideshow__slide.is-active {
  opacity: 1
}

/* Pause/play: clickable, so it takes the accent on hover (never as a resting fill). */
.slideshow__toggle {
  position: absolute;
  right: var(--2);
  bottom: var(--2);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ground) 72%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease)
}

.slideshow__toggle[hidden] {
  display: none
}

.slideshow__toggle:hover {
  border-color: var(--accent);
  color: var(--accent-hi)
}

.slideshow__toggle svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor
}

.slideshow__icon-play,
.slideshow.is-paused .slideshow__icon-pause {
  display: none
}

.slideshow.is-paused .slideshow__icon-play {
  display: block
}

/* ============================================================
   About page (about.php). Tokens only.
   Each section of the text collection is its own .richtext block, spaced apart;
   with images, the slideshow sits beside the text and stays in view while it scrolls.
   ============================================================ */

.about {
  display: grid;
  gap: var(--6) clamp(var(--4), 5vw, var(--8))
}

.about--with-images {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start
}

.about__text {
  display: grid;
  gap: var(--6)
}

.about__text .richtext {
  font-size: var(--size-body)
}

.about__media {
  position: sticky;
  top: var(--4)
}

.about__media .plate {
  aspect-ratio: 4/5;
  border: 1px solid var(--line);
  border-radius: var(--radius)
}

@media(max-width:860px) {
  .about--with-images {
    grid-template-columns: 1fr
  }

  /* On phones the images come first, under the title, at a landscape shape. */
  .about__media {
    position: static;
    order: -1
  }

  .about__media .plate {
    aspect-ratio: 4/3
  }
}
