/* Bobby Outside liquid-metal CTA treatment.
   Pure CSS keeps the visual language tactile without adding a WebGL payload. */
:root{
  --metal-dark:#171717;
  --metal-mid:#717171;
  --metal-light:#eeeae2;
  --metal-red:#ff442e;
}

.button,
.nav .booking-link,
.nav .subscribe-link,
.subscribe-row button{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:999px;
  color:#f5f4f0;
  background:
    linear-gradient(180deg,#202020 0%,#080808 58%,#020202 100%) padding-box,
    linear-gradient(112deg,#272727 0%,#ddd9d1 17%,#555 31%,#151515 47%,#b9b5ae 66%,#343434 82%,#8b2018 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    inset 0 -1px 0 rgba(0,0,0,.92),
    0 1px 1px rgba(0,0,0,.65),
    0 8px 20px rgba(0,0,0,.26);
  text-shadow:0 1px 2px #000;
  transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease,color .2s ease,background-position .45s ease;
}

.button::before,
.nav .booking-link::before,
.nav .subscribe-link::before,
.subscribe-row button::before{
  content:'';
  position:absolute;
  z-index:-1;
  inset:2px;
  border-radius:inherit;
  background:
    radial-gradient(circle at 22% 18%,rgba(255,255,255,.11),transparent 28%),
    linear-gradient(180deg,#1c1c1c,#050505 72%);
  pointer-events:none;
}

.button::after,
.nav .booking-link::after,
.nav .subscribe-link::after,
.subscribe-row button::after{
  content:'';
  position:absolute;
  z-index:-1;
  top:-120%;
  bottom:-120%;
  left:-42%;
  width:34%;
  transform:rotate(18deg) translateX(-180%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),rgba(255,68,46,.18),transparent);
  transition:transform .62s cubic-bezier(.2,.75,.2,1);
  pointer-events:none;
}

.button:hover,
.nav .booking-link:hover,
.nav .subscribe-link:hover,
.subscribe-row button:hover{
  color:#fff;
  border-color:transparent;
  background:
    linear-gradient(180deg,#292929 0%,#0a0a0a 62%,#020202 100%) padding-box,
    linear-gradient(108deg,#4b4b4b 0%,#fffdf7 18%,#555 34%,#111 49%,#ddd9d1 68%,#444 83%,#ff442e 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.2),
    inset 0 -1px 0 rgba(0,0,0,.95),
    0 1px 2px rgba(0,0,0,.7),
    0 12px 26px rgba(0,0,0,.34),
    0 0 0 1px rgba(255,68,46,.12);
  transform:translateY(-2px);
}

.button:hover::after,
.nav .booking-link:hover::after,
.nav .subscribe-link:hover::after,
.subscribe-row button:hover::after{
  transform:rotate(18deg) translateX(520%);
}

.button:active,
.nav .booking-link:active,
.nav .subscribe-link:active,
.subscribe-row button:active{
  transform:translateY(1px) scale(.985);
  box-shadow:inset 0 2px 5px rgba(0,0,0,.8),0 1px 2px rgba(0,0,0,.5);
}

.button:focus-visible,
.nav .booking-link:focus-visible,
.nav .subscribe-link:focus-visible,
.subscribe-row button:focus-visible{
  outline:2px solid var(--metal-red);
  outline-offset:4px;
}

.button.light,
.button.outline,
.follow-panel .button,
.gateway-heading .button.light,
.cinema-title .button.outline{
  color:#f5f4f0;
  background:
    linear-gradient(180deg,#202020 0%,#080808 64%,#020202 100%) padding-box,
    linear-gradient(112deg,#2f2f2f,#e5e1da 18%,#4b4b4b 35%,#111 50%,#aaa69f 70%,#272727 86%,#ff442e) border-box;
  border-color:transparent;
}

.subscribe-row button{min-height:54px;margin:2px;padding:13px 24px}

/* Keep linked section titles clear of the sticky navigation after fonts,
   images, and the cinematic opener finish settling the page layout. */
main section[id],main article[id],#join-list{scroll-margin-top:48px}

/* Give display lettering a little breathing room outside its line box. This
   prevents the custom condensed face from looking shaved at the edges after
   the heading reveal finishes. */
main h1.heading-reveal,main h2.heading-reveal{
  overflow:visible;
  clip-path:inset(-.12em -.08em);
}

/* The hero's condensed caps extend beyond the font's natural line box.
   Preserve the established scale and anchor while opening enough leading for
   the top and bottom of YOU'RE OUTSIDE to render completely. */
.cinema-title h1{
  line-height:.92;
  padding:.075em .08em .11em;
  margin-left:0;
  overflow:visible;
}
.cinema-title h1 span,.cinema-title h1 em{overflow:visible}

/* Keep the homepage story statement in two intentional lines on desktop:
   "BEFORE THIS MIC." / "A WHOLE LIFE." */
@media(min-width:761px){
  .gateway-heading h2{
    max-width:100%;
    font-size:clamp(3.5rem,4.4vw,5.15rem);
    line-height:.94;
    text-wrap:balance;
    overflow:visible;
  }
}

@media(max-width:760px){
  .nav .booking-link,.nav .subscribe-link{border-radius:14px}
  .subscribe-row button{margin:0 2px 2px;min-height:52px}
}

/* Site-wide mobile type safety: keep display copy inside the viewport without
   splitting names or clipping the first/last letter inside cinematic sections. */
@media(max-width:760px){
  main,main section,main article,main header,main div{min-width:0}

  h1,h2,h3,
  .display,
  .episode-art strong,
  .gateway-still strong,
  .music-vault-copy h3,
  .legacy-feature h3,
  .history-document h3{
    max-width:100%;
    word-break:normal;
    overflow-wrap:normal;
    hyphens:none;
  }

  .section-head,
  .section-head>div,
  .page-intro,
  .show-intro,
  .bio-hero,
  .contact-hero,
  .legal-hero,
  .room-heading,
  .screening-copy,
  .split-copy,
  .subscribe-copy,
  .booking-band>div,
  .chapter-copy,
  .gateway-heading,
  .music-gateway-head,
  .music-vault-copy,
  .legacy-feature-copy,
  .history-letters-head,
  .history-heading-primary,
  .history-heading-note{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:visible;
  }

  .episode-art{
    min-width:0;
    overflow:visible;
  }

  .episode-art strong{
    width:100%;
    white-space:normal;
    font-size:clamp(2rem,9vw,3.15rem);
    line-height:.92;
  }

  .gateway-still strong,
  .music-vault-copy h3,
  .legacy-feature h3,
  .history-document h3{
    white-space:normal;
    overflow-wrap:break-word;
  }

  .button,.text-link,.music-vault-action,.music-gateway-link,
  .envelope-action,.legacy-feature-controls button{
    max-width:100%;
    white-space:normal;
    overflow-wrap:normal;
    text-align:center;
  }
}

@media(prefers-reduced-motion:reduce){
  .button,.nav .booking-link,.nav .subscribe-link,.subscribe-row button,
  .button::after,.nav .booking-link::after,.nav .subscribe-link::after,.subscribe-row button::after{
    transition:none!important;
  }
  .button:hover,.nav .booking-link:hover,.nav .subscribe-link:hover,.subscribe-row button:hover{transform:none}
}

/* Mobile QA: shared safeguards across every page. */
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  main,section,header,footer{min-width:0}
  p,a{overflow-wrap:break-word}
  h1,h2,h3,.display,.episode-art strong,.gateway-still strong{overflow-wrap:normal;word-break:normal;hyphens:none}
  .site-header{padding-inline:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
  .nav{padding-bottom:calc(26px + env(safe-area-inset-bottom))}
  .page-intro h1,.show-intro h1,.bio-hero h1,.contact-hero h1,.legal-hero h1,.room-heading h1,.screening-copy h1{max-width:100%;font-size:clamp(3.85rem,18vw,6.25rem);line-height:.88}
  .section-head h2,.booking-band h2,.split-copy h2,.subscribe-copy h2{max-width:100%;font-size:clamp(2.75rem,13vw,4.25rem);line-height:.92}
  .actions{width:100%;flex-wrap:wrap}
  .actions .button{max-width:100%;justify-content:center}
  .archive-strip,.chapter-photos,.memory-grid,.gateway-stills{min-width:0}
  .photo-button img,.archive-strip img,.memory-grid img,.chapter-frame img,.gateway-still img,.bio-hero>img,.contact-hero>img,.episode-thumb>img,.room-screen img,.screening-photo img{object-position:50% 50%!important}
  .photo-button,.chapter-frame,.gateway-still{overflow:hidden}
  .archive-strip .photo-button{aspect-ratio:4/5}
  .chapter-frame .photo-button{aspect-ratio:4/5}
  dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);margin:auto}
  #media-stage img{max-width:100%;max-height:68dvh;object-position:center}
  .footer-links{display:grid;grid-template-columns:1fr 1fr;gap:28px 20px}
  .footer-links>div{min-width:0}
  .subscribe-panel{padding-inline:var(--pad)}
  .subscribe-form,.subscribe-row,.subscribe-row input{min-width:0;width:100%}
}

/* Mobile transition: keep the cinematic scrub, but release the sticky hero as
   soon as its reveal completes. The longer desktop track left an extra dark
   viewport between the hero and the podcast section on phones. */
@media(max-width:700px){
  .film-active.cinema-opening{height:170svh!important}
  [data-page=home] .ticker{padding-top:14px;padding-bottom:14px}
  [data-page=home] #conversations{padding-top:clamp(34px,9vw,44px)}
}

@media(max-width:390px){
  .footer-links{grid-template-columns:1fr}
  .button{max-width:100%;white-space:normal;text-align:center}
  .episode-stack-controls{gap:8px}
  .episode-stack-controls>button{padding-inline:8px}
}
