/* PleaseInterruptMe landing page. Shared tokens, fonts, buttons, masthead,
   footer, captions and flash messages live in ../site/site.css. */

:where(ol, ul) { padding: 0; list-style: none; }

.hero .title { font-size: clamp(3rem, 5.7vw, 5.1rem); }
.btn--row { min-width: 8.5rem; }

/* ---------- Hero: the still ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 62rem);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  isolation: isolate;
  overflow: hidden;
}
.hero__still { position: absolute; inset: 0; z-index: -1; }
.hero__still img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.hero__still::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 19, 0.92) 0%, rgba(18, 16, 19, 0.7) 30%, rgba(18, 16, 19, 0.1) 62%, rgba(18, 16, 19, 0) 75%),
    linear-gradient(0deg, rgba(18, 16, 19, 0.7) 0%, rgba(18, 16, 19, 0) 30%),
    linear-gradient(180deg, rgba(18, 16, 19, 0.85) 0%, rgba(18, 16, 19, 0) 16%);
}

.hero__stage {
  position: relative; display: grid; min-height: 0;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "copy copy copy" "lower cc .";
  column-gap: 1.5rem;
  padding-bottom: 2rem;
}
.hero__copy { grid-area: copy; }
.hero__copy {
  align-self: center;
  padding: 7.5rem var(--gutter) 2rem;
  max-width: 52rem;
  display: grid; gap: 1.5rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.5rem; }

.lower-third {
  grid-area: lower; align-self: end; padding-left: var(--gutter);
  max-width: calc(30ch + var(--gutter)); font-size: 0.98rem; line-height: 1.4; color: var(--amber);
}
.lower-third span { display: block; color: var(--paper); font-weight: 700; }

/* ---------- Closed captions ---------- */

.cc {
  position: absolute; left: 50%; bottom: 2.25rem; transform: translateX(-50%);
  width: min(36ch, calc(100% - 2 * var(--gutter)));
  text-align: center;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.5;
}
.cc--hero {
  grid-area: cc; align-self: end; position: static; transform: none;
  width: min(30ch, 46vw); font-size: clamp(1.2rem, 2.1vw, 2rem);
}
.cc__rest { display: table; margin: 0.2em auto 0; }
.cc.is-playing .cc__rest { display: none; }
.cc__line.is-new { animation: cc-in 220ms var(--ease-out); }
@keyframes cc-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.hero__still.is-ringing { animation: ring 700ms linear 1; }
@keyframes ring {
  0%, 100% { transform: translate(0, 0); }
  10%, 50%, 90% { transform: translate(-3px, 1px); }
  30%, 70% { transform: translate(3px, -1px); }
}

/* ---------- Lineup: the orange field ---------- */

.lineup { background: var(--go); color: var(--ink); }
.credits {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem;
  padding: 1.05rem var(--gutter);
  font-size: clamp(0.8rem, 0.95vw, 0.95rem); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.3;
  background: var(--go); color: var(--ink);
}
.credits li { white-space: nowrap; }

.lineup__inner { padding: var(--section) var(--gutter); max-width: 78rem; margin: 0 auto; }
.guide { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); }
.guide__row {
  display: grid; align-items: center;
  grid-template-columns: clamp(7rem, 14vw, 11rem) minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}
.guide__still { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: 2px; }
.guide__situation { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1; letter-spacing: -0.025em; }
.guide__caller { margin-top: 0.5rem; font-size: 1.15rem; max-width: 52ch; }
.cc--row { position: static; transform: none; width: auto; text-align: left; margin-top: 0.75rem; font-size: 1.1rem; }
.lineup__go { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; font-size: 1.2rem; font-weight: 700; }

/* ---------- How it works: the filmstrip ---------- */

.how { padding: var(--section) var(--gutter); max-width: 90rem; margin: 0 auto; }
.film {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.film__frame { position: relative; }
.film__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.film__time {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-weight: 700; font-size: 0.95rem; color: var(--amber); font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.film__frame .cc__line {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; display: block; width: fit-content; margin: 0 auto;
  text-align: center; font-size: 1.05rem; line-height: 1.45;
}
.how__note { margin-top: 2rem; color: var(--amber); font-size: 1.15rem; max-width: 60ch; }

/* ---------- Call-in ---------- */

.callin {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 0 var(--gutter) var(--section); max-width: 90rem; margin: 0 auto;
}
.callin__still { position: relative; margin: 0; }
.callin__still img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 2px; }
.callin__still .cc__line { position: absolute; left: 50%; bottom: 0.9rem; transform: translateX(-50%); white-space: nowrap; font-size: 1.1rem; }
.callin__inner { display: grid; gap: 1.25rem; }
.callin__inner p { font-size: 1.3rem; max-width: 52ch; }
.callin__tip { color: var(--amber); font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important; line-height: 1.2; }

/* ---------- FAQ ---------- */

.faq { padding: var(--section) var(--gutter); max-width: 60rem; margin: 0 auto; }
.faq__more { margin-top: 1.5rem; }

/* ---------- Close ---------- */

.close {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 0 var(--gutter) var(--section); max-width: 90rem; margin: 0 auto;
}
.close__still img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 2px; }
.close__copy { display: grid; gap: 1.5rem; justify-items: start; }
.close__copy .cc__line { font-size: 1.2rem; }
.close__small { color: var(--paper-dim); font-size: 1rem; }

/* ---------- Mobile dock ---------- */

.dock { display: none; }

/* ---------- Flash messages sit under the overlaid masthead ---------- */

.flash { padding-top: 5.5rem; margin-bottom: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .film { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .close, .callin { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .masthead .btn--small { display: none; }

  .hero { height: auto; min-height: 0; grid-template-rows: auto auto; }
  .hero__stage { position: static; display: block; }
  .hero__still { position: relative; inset: auto; height: 58svh; min-height: 22rem; }
  .hero__still img { object-position: 52% 50%; }
  .hero__still::after { background: linear-gradient(0deg, rgba(18, 16, 19, 1) 0%, rgba(18, 16, 19, 0.15) 45%, rgba(18, 16, 19, 0.35) 100%); }
  .hero__copy { padding: 0 var(--gutter) 2.25rem; margin-top: -4.5rem; gap: 1.1rem; }
  .title { font-size: clamp(2.6rem, 12.5vw, 3.6rem); }
  .actions { display: grid; }
  .credits { display: grid; gap: 0.3rem; font-size: 0.85rem; }
  .credits li { white-space: normal; }
  .actions .btn { width: 100%; }
  .hero__stage { padding-bottom: 0; }
  .cc--hero { grid-area: auto; position: absolute; left: 50%; transform: translateX(-50%); top: calc(58svh - 10.5rem); bottom: auto; width: calc(100% - 2 * var(--gutter)); font-size: 1.1rem; }
  .lower-third { position: static; padding: 0 var(--gutter) 2rem; max-width: none; }

  .guide__row { grid-template-columns: 5.5rem minmax(0, 1fr); align-items: start; }
  .guide__row .btn--row { grid-column: 2; justify-self: start; }
  .guide__caller { font-size: 1.05rem; }

  .film { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.75rem; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.5rem; }
  .film__frame { flex: 0 0 78%; scroll-snap-align: center; }

  .callin__inner p { font-size: 1.15rem; }

  .dock {
    position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(18, 16, 19, 0.94);
    transform: translateY(110%); transition: transform 280ms var(--ease-out);
  }
  .dock:not([hidden]) { display: block; }
  .dock.is-shown { transform: translateY(0); }
  .dock .btn { width: 100%; }
  .foot { padding-bottom: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__still.is-ringing { animation: none; }
  .cc__line.is-new { animation: none; }
  .dock { transition: none; }
}
