/* Ernest's lilac palette carries from the portrait into links and controls. */
:root {
  --ink: #191620;
  --deep: #14111a;
  --white: #faf8f5;
  --blue: #e0ccff;
  --muted: #e1dce8;
  --paper: #f7f4f1;
  --warm-ink: #241b28;
  --section-accent: #613f78;
  --lilac-light: #eee5f8;
  --lilac-dark: #58396d;
}

.home-page .hero {
  --ink: #151821;
  background: var(--ink);
}
.home-page .hero-image img { object-position: 50% 0%; }

/* Place the vertical portrait within the original landscape hero and
   blend its left edge into the studio backdrop under the shared fade. */
@media (width > 42rem) {
  .home-page .hero-image {
    background: linear-gradient(145deg, #687487, #9caec4 72%);
  }

  .home-page .hero-image img {
    position: absolute;
    inset: 0 clamp(1rem, 4.2vw, 4.75rem) 0 auto;
    width: auto;
    max-width: 76%;
    mask-image: linear-gradient(90deg, transparent, #000 26%, #000 90%, transparent);
  }

  .home-page .hero-image::after {
    background:
      linear-gradient(0deg, rgb(21 24 33 / 70%), transparent 19%),
      linear-gradient(90deg, var(--ink) 0%, rgb(21 24 33 / 97%) 11%, rgb(21 24 33 / 75%) 29%, rgb(21 24 33 / 10%) 61%, transparent 87%);
  }
}
.hero-copy { position: relative; z-index: 1; }
.hero-description { max-width: 24rem; }
.hero-social { margin-top: 1.12rem; }
.main-nav a[aria-current="page"] { color: var(--blue); }

.featured-logos {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2.8vw, 3rem);
}
.featured-logos img { height: 2.35rem; }
.featured-logos img:nth-child(5) { height: 1.85rem; }
.featured-logos img:last-child { height: 3rem; }

.books { background: #f7f2f5; }
.books .eyebrow { color: var(--lilac-dark); }
.books .button { background: var(--lilac-dark); color: white; }
.books .button:hover { background: #462957; }
.book-image { background: #e9dcf3; }
.upcoming { background: #302238; }
.upcoming .eyebrow, .upcoming-copy > p a { color: #ead5f8; }
.updates-fields button { background: var(--blue); color: var(--deep); }
.updates-form fieldset { min-inline-size: 0; padding: 0; margin: 0; border: 0; }
.book-image img { transition: transform .3s ease, box-shadow .3s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .book-image:hover img, .books:has(.chapter-copy > .button:focus-visible) .book-image img {
    transform: translateY(-.6rem) rotate(-2deg);
    box-shadow: 1rem 1.7rem 2.2rem rgb(52 30 68 / 26%);
  }
}

.speaking { min-height: 0; }
.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.stage-media { min-width: 0; }
.stage-preview, .stage-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid #514259;
  background: #211924;
}
.stage-preview { position: relative; }
.stage-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center 43%; }
.stage-play {
  position: absolute;
  bottom: clamp(.75rem, 3vw, 1.5rem);
  left: clamp(.75rem, 3vw, 1.5rem);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .95rem;
  min-height: 2.75rem;
  background: var(--deep);
  color: var(--white);
  font-weight: 700;
}
.stage-preview:hover .stage-play, .stage-preview:focus-visible .stage-play {
  background: var(--blue);
  color: var(--deep);
}
.stage-credit {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: .7rem;
  color: var(--muted);
  font-size: .82rem;
}
.stage-credit strong { display: block; color: var(--white); }
.carousel-controls button {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  min-height: 2.75rem;
  padding-inline: .8rem;
  font: 700 .82rem var(--body);
  cursor: pointer;
}

.about-teaser, .about-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f4f0f2;
  color: var(--ink);
}
.about-teaser { min-height: 32rem; display: grid; align-items: center; }
.about-teaser .chapter-layout { display: block; }
.about-teaser .chapter-copy { position: relative; max-width: min(48%, 32rem); }
.about-teaser .about-image, .about-portrait {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 57%;
  max-width: none;
  margin: 0;
}
.about-image img, .about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 5%; }
.about-image::after, .about-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f4f0f2, rgb(244 240 242 / 86%) 12%, transparent 49%);
  content: "";
}
.about-teaser .text-link, .about-intro .text-link, .about-story .text-link, .about-work .text-link {
  color: var(--lilac-dark);
}
.about-intro { min-height: clamp(32rem, 54vw, 43rem); display: grid; align-items: center; }
.about-intro-inner { padding-block: clamp(3rem, 8vw, 6rem); }
.about-intro h1 { color: var(--ink); font-size: clamp(5rem, 11vw, 10.5rem); }
.about-lede { max-width: min(45%, 28rem); margin-block: .85rem .65rem; font-size: clamp(1rem, 1.6vw, 1.22rem); }

.about-story, .about-work, .professional { padding-block: clamp(3.5rem, 7.5vw, 7rem); color: var(--ink); }
.about-story { background: var(--white); }
.story-grid, .work-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 7vw, 7rem); }
.story-heading .eyebrow { color: var(--lilac-dark); margin-bottom: 1rem; }
.story-heading p:not(.eyebrow), .about-work p { max-width: 30rem; margin-top: 1rem; }
.story-heading h2, .about-work h2, .professional h2 { font-size: clamp(3rem, 6.6vw, 6rem); line-height: .88; }
.story-body section { border-top: 1px solid #c8b9d1; padding-block: 1.15rem 1.35rem; }
.story-body h3 { margin: 0 0 .45rem; font: 800 clamp(1.7rem, 3vw, 2.55rem)/1 var(--display); text-transform: uppercase; }
.story-body p { font-size: 1.06rem; }
.story-body .text-link { margin-top: .35rem; }
.about-work { background: var(--lilac-light); }
.work-grid { align-items: center; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.about-work img { width: 100%; height: auto; }
.about-work figcaption { margin-top: .5rem; color: #51435b; font-size: .83rem; }
.about-work .button { background: var(--lilac-dark); color: white; }
.about-work .button:hover { background: #3a2548; }

.professional { background: var(--lilac-light); }
.professional-heading { display: flex; gap: 1rem; align-items: end; justify-content: space-between; }
.carousel-controls:not([hidden]) { display: flex; gap: .45rem; }
.carousel-controls button { min-width: 2.75rem; font-size: 1.25rem; color: var(--lilac-dark); }
.carousel-controls button:hover:not(:disabled) { background: var(--lilac-dark); color: white; }
.carousel-controls button:disabled { opacity: .45; cursor: default; }
.post-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 1.1rem) / 2);
  gap: 1.1rem;
  overflow-x: auto;
  margin: 1.6rem 0 0;
  padding: 0 .2rem .7rem;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-color: #a58bb8 transparent;
}
.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.15rem, 3vw, 2rem);
  border-top: 3px solid var(--lilac-dark);
  background: var(--white);
  scroll-snap-align: start;
}
.post-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1rem;
  background: var(--lilac-light);
  object-fit: contain;
}
.post-profile-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--lilac-dark);
}
.radio-playlist, .book-announcement-player { display: block; width: 100%; border: 0; }
.book-announcement-player { max-width: 38rem; margin-top: 1rem; }
.radio-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.radio-latest {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--lilac-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.radio-latest[hidden] { display: none; }
.post-card .eyebrow { color: var(--lilac-dark); }
.post-card h3 { margin: .6rem 0 .55rem; font: 800 clamp(1.85rem, 3.2vw, 2.9rem)/.96 var(--display); }
.post-card p:not(.eyebrow) { margin-bottom: .75rem; }
.post-card .text-link { margin-top: auto; color: var(--lilac-dark); }
.post-card .text-link:hover { color: var(--ink); }

.footer { padding-block: clamp(2rem, 4vw, 3.5rem); }
.footer-inner { justify-content: space-between; align-items: start; gap: 1.65rem 4rem; }
.footer-identity { display: grid; gap: 1rem; }
.social-links { display: flex; gap: .5rem; }
.social-links a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--blue);
  border: 1px solid #7e6a8a;
}
.social-links a:hover { background: var(--blue); color: var(--deep); }
.agent { display: grid; }
.agent strong { color: var(--white); }
.agent p { margin: .25rem 0; }
.agent a { min-height: 2rem; width: fit-content; color: var(--blue); }

@media (max-width: 56rem) {
  .featured-logos { gap: 1.5rem; }
  .story-grid, .work-grid { gap: 2rem; }
}
@media (max-width: 42rem) {
  .home-page .hero-image,
  .home-page .hero-image img { height: auto; }
  .home-page .hero-image::after {
    background: linear-gradient(0deg, var(--ink), rgb(21 24 33 / 45%) 9%, transparent 27%);
  }
  .featured-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-logos img { height: 1.6rem; }
  .featured-logos img:last-child { height: 2.25rem; }
  .stage-grid, .story-grid, .work-grid { grid-template-columns: 1fr; }
  .home-page .stage-media { grid-row: 1; }
  .about-teaser, .about-intro { display: block; min-height: 0; }
  .about-teaser { padding-top: 0; }
  .about-teaser .chapter-copy { max-width: 32rem; }
  .about-teaser .chapter-layout { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .about-teaser .about-image, .about-portrait {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(16rem, 78vw, 27rem);
  }
  .about-teaser .about-image { width: calc(100% + var(--gutter) + var(--gutter)); margin-left: calc(0px - var(--gutter)); }
  .about-image img, .about-portrait img { object-position: 50% 22%; }
  .about-image::after, .about-portrait::after { background: linear-gradient(0deg, #f4f0f2, transparent 39%); }
  .about-intro-inner { margin-top: -1rem; padding-top: 0; }
  .about-intro h1 { width: auto; font-size: clamp(4.5rem, 17vw, 7rem); }
  .about-lede { max-width: 30rem; }
  .post-track { grid-auto-columns: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .post-track { scroll-behavior: auto; }
}
