/* ==========================================================================
   JBT — "Now Showing" movie-theater Work section
   ========================================================================== */
.thr {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: #060405;
  color: #fbfaf6;
  font-family: "Instrument Sans", system-ui, sans-serif;
  --gold: #d8b36a;
}
.thr__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Marquee: a lit sign above the stage, bulbs chasing around its border */
.thr__marquee {
  position: absolute; z-index: 2; top: calc(var(--header-h, 76px) + 14px); left: 50%; transform: translateX(-50%);
  padding: 12px 34px 13px; border-radius: 10px; text-align: center; white-space: nowrap;
  background: linear-gradient(#1b0b0b, #0d0506);
  border: 1px solid rgba(216, 179, 106, .55);
  box-shadow: 0 0 0 4px #0d0506, 0 0 0 5px rgba(216, 179, 106, .35), 0 18px 40px -12px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(255, 190, 110, .35);
}
.thr__marquee::before {
  content: ""; position: absolute; inset: -9px; border-radius: 14px; pointer-events: none;
  background:
    radial-gradient(circle, #ffe7b0 0 2px, rgba(255, 200, 120, .55) 3px, transparent 5px) 0 0 / 16px 16px repeat-x,
    radial-gradient(circle, #ffe7b0 0 2px, rgba(255, 200, 120, .55) 3px, transparent 5px) 8px 100% / 16px 16px repeat-x;
  animation: thr-chase .8s steps(2) infinite;
}
@keyframes thr-chase { 50% { background-position: 8px 0, 0 100%; } }
.thr__eyebrow { font: 600 11px/1 "Instrument Sans", sans-serif; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.thr__title { margin-top: 7px; font: 400 clamp(26px, 2.6vw, 38px)/1 "Instrument Serif", Georgia, serif; letter-spacing: .01em; color: #fff4dc; text-shadow: 0 0 18px rgba(255, 196, 120, .45); }

/* Feature details + controls sit over the seats */
.thr__info {
  position: absolute; z-index: 2; left: clamp(16px, 5vw, 72px); right: clamp(16px, 5vw, 72px); bottom: clamp(18px, 4vh, 36px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
}
.thr__text { max-width: 560px; transition: opacity .26s ease, transform .26s ease; }
.thr.is-changing .thr__text, .thr.is-changing .thr__title { opacity: 0; transform: translateY(6px); }
.thr__title { transition: opacity .26s ease, transform .26s ease; }
.thr__meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 250, 246, .62); }
.thr__line { margin-top: 8px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; color: rgba(251, 250, 246, .88); }
.thr__links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; font-weight: 500; }
.thr__links a { color: #fbfaf6; text-decoration: none; border-bottom: 1px solid rgba(251, 250, 246, .4); padding-bottom: 3px; }
.thr__links a[hidden] { display: none; }
.thr__nav { display: flex; align-items: center; gap: 14px; }
.thr__count { font-size: 12px; letter-spacing: .14em; color: rgba(251, 250, 246, .7); font-variant-numeric: tabular-nums; }
.thr__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(216, 179, 106, .6); background: rgba(10, 5, 5, .55); color: #fff0d4; font-size: 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .3s, transform .3s;
}
.thr__btn:hover { background: rgba(216, 179, 106, .2); transform: translateY(-2px); }
.thr__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* A soft shade so the copy stays readable over the seats */
.thr__info::before { content: ""; position: absolute; inset: -60px calc(-1 * clamp(16px, 5vw, 72px)) calc(-1 * clamp(18px, 4vh, 36px)); background: linear-gradient(180deg, rgba(6, 4, 5, 0), rgba(6, 4, 5, .55) 55%, rgba(6, 4, 5, .72)); z-index: -1; pointer-events: none; }

/* Phones: the details get their own band below the theater (never over the stage);
   the 3D view fills whatever height is left above it */
@media (max-width: 899px) {
  .thr { display: flex; flex-direction: column; }
  .thr__canvas { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; height: auto; }
  .thr__marquee { top: calc(var(--header-h, 64px) + 10px); padding: 10px 22px 11px; }
  .thr__title { font-size: 26px; }
  .thr__info {
    position: relative; left: auto; right: auto; bottom: auto; flex: none;
    grid-template-columns: 1fr; gap: 16px;
    padding: 18px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    background: #060405; border-top: 1px solid rgba(216, 179, 106, .22);
  }
  .thr__info::before { display: none; }
  .thr__nav { justify-content: space-between; }
}

/* No 3D: show the features as a simple list */
.thr--no-webgl .thr__canvas { display: none; }
@media (prefers-reduced-motion: reduce) { .thr__marquee::before { animation: none; } .thr__text, .thr__title { transition: none; } }
