/* /under-management: the page every post, letter and message points to. Builds on style.css
   (tokens, nav, buttons, the film, the sign-up, reveals, footer). */

.nav nav a[aria-current="page"] {
  color: var(--paper);
}
.nav nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- the top: clips, pitch, demo, sign-up ---------- */
.gp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: 112px var(--gutter) 40px;
  background: radial-gradient(70% 60% at 30% 45%, rgba(127, 178, 209, 0.1), transparent 70%), var(--cellar);
}
.gp-film {
  aspect-ratio: 16 / 9;
  max-height: none;
  border-radius: 8px;
}
.gp-copy h1 {
  margin: 0;
}
.gp-copy h1 img {
  width: min(460px, 100%);
  height: auto;
  margin-left: -6px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.gp-pitch {
  margin: 22px 0 28px;
  font: 400 clamp(19px, 1.55vw, 23px) / 1.45 var(--display);
  color: var(--paper);
  max-width: 26em;
}
.gp-copy .say {
  margin: 0 0 26px;
}
.gp-play {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.gp-play-note {
  margin: 0;
  font: 500 13px var(--label);
  letter-spacing: 0.04em;
  color: var(--paper-faint);
}
.gp-signup {
  margin-top: 28px;
  padding: 20px 20px 16px;
}
.gp-signup .signup-title {
  font-size: 19px;
  margin-bottom: 12px;
}
.gp-signup .signup-consent {
  font-size: 12px;
  margin-top: 10px;
}

/* ---------- blocks ---------- */
.gp-block {
  padding: clamp(80px, 10vw, 140px) var(--gutter) 0;
}
.gp-head {
  margin-bottom: clamp(32px, 4.5vw, 56px);
}
.gp-head h2 {
  font-size: clamp(36px, 5vw, 68px);
}
.gp-lede {
  margin: 24px 0 0;
  max-width: 30em;
  font: 400 20px / 1.5 var(--display);
  color: var(--paper-dim);
}

.gp-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.gp-shot {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px var(--rule);
  text-decoration: none;
}
.gp-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.94);
  transition:
    transform 0.8s var(--ease),
    filter 0.8s;
}
@media (hover: hover) {
  .gp-shot:hover img {
    transform: scale(1.04);
    filter: saturate(1.05) brightness(1.05);
  }
}
.gp-shot span {
  display: block;
  padding: 10px 14px 12px;
  font: 400 13px / 1.35 var(--sans);
  color: var(--paper-dim);
}

.gp-split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
}
.gp-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 3vw, 44px);
}
.gp-features li {
  padding: 22px 0 24px;
  border-top: 1px solid var(--rule);
}
.gp-features h3 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.gp-features p {
  margin: 0;
  font-size: 15px;
  color: var(--paper-dim);
}

/* ---------- questions, answered once ---------- */
.faq {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 3vw, 44px);
}
.faq div {
  padding: 20px 0 22px;
  border-top: 1px solid var(--rule);
}
.faq dt {
  font: 400 21px / 1.25 var(--display);
  margin: 0 0 8px;
}
.faq dd {
  margin: 0;
  font-size: 15px;
  color: var(--paper-dim);
}
.faq a,
.gp-band p a {
  color: var(--house);
}
@media (max-width: 700px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

/* ---------- streamers and press ---------- */
.gp-band {
  position: relative;
  margin-top: clamp(90px, 11vw, 150px);
  padding: clamp(80px, 10vw, 130px) var(--gutter);
  text-align: center;
  overflow: hidden;
  background: var(--ink-2);
  border-block: 1px solid var(--rule);
}
.gp-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(127, 178, 209, 0.14), transparent);
  pointer-events: none;
}
.gp-band-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.gp-band h2 {
  font-size: clamp(34px, 4.6vw, 64px);
}
.gp-band p:not(.eyebrow) {
  margin: 22px auto 34px;
  max-width: 34em;
  color: var(--paper-dim);
}
.gp-band .cta-row {
  justify-content: center;
}
.gp-mail {
  display: inline-block;
  margin-top: 34px;
  font: 400 clamp(19px, 2.2vw, 26px) var(--display);
  color: var(--house);
  text-decoration: none;
  word-break: break-word;
}
.gp-mail:hover {
  text-decoration: underline;
}

/* ---------- smaller screens ---------- */
/* Side by side the film gets squeezed below about 500px, so stack: the film across, the copy under it. On a
   screen at least this narrow, or a window up to 1100 that's no wider than it is tall (an upright iPad Pro); a
   landscape window of 901-1100 (Stage Manager) keeps the two columns, so Play stays on the first screen. */
@media (max-width: 900px), (max-width: 1100px) and (max-aspect-ratio: 5/4) {
  .gp-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
@media (max-width: 1100px) {
  /* beside the shots' copy the two columns are too narrow for the headings */
  .gp-features {
    grid-template-columns: 1fr;
  }
}
/* An upright iPad: the film across the top, then the logo, pitch and Play on the left and the sign-up beside them,
   all of it on the first screen. */
@media (min-width: 701px) and (min-height: 600px) and (max-width: 900px),
  (min-width: 701px) and (max-width: 1100px) and (max-aspect-ratio: 5/4) {
  .gp-hero {
    gap: 32px;
    padding: 96px var(--gutter) 48px;
  }
  .gp-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas: "title signup" "pitch signup" "say signup" "play signup";
    column-gap: clamp(28px, 4vw, 48px);
    align-items: start;
  }
  .gp-copy h1 {
    grid-area: title;
  }
  .gp-copy h1 img {
    width: min(440px, 100%);
  }
  .gp-pitch {
    grid-area: pitch;
    margin: 16px 0 22px;
    font-size: 20px;
  }
  .gp-copy .say {
    grid-area: say;
    justify-self: start;
  }
  .gp-play {
    grid-area: play;
  }
  .gp-signup {
    grid-area: signup;
    align-self: end;
    margin-top: 0;
  }
}
@media (max-width: 900px) {
  .gp-shots {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .gp-split {
    grid-template-columns: 1fr;
  }
  /* the split stacks, so the features have the width for two columns again */
  .gp-features {
    grid-template-columns: 1fr 1fr;
  }
}
/* a phone, upright or on its side: the clips first, then everything else, all of it on the first screen */
@media (max-width: 700px), (max-width: 900px) and (max-height: 599px) {
  .gp-hero {
    gap: 18px;
    min-height: 0;
    padding: 70px var(--gutter) 40px;
  }
  .gp-film {
    aspect-ratio: 16 / 9;
    border-radius: 6px;
  }
  .film-caption {
    left: 12px;
    right: 12px;
    bottom: 9px;
    font-size: 12px;
    line-height: 1.4;
  }
  .gp-copy h1 img {
    width: min(300px, 78%);
  }
  .gp-pitch {
    margin: 10px 0 16px;
    font-size: 17px;
    line-height: 1.4;
  }
  .gp-copy .say {
    margin-bottom: 18px;
  }
  .gp-signup {
    margin-top: 16px;
    padding: 14px 14px 12px;
  }
  .gp-signup .signup-title {
    font-size: 17px;
    margin-bottom: 10px;
  }
}
@media (max-width: 520px) {
  .gp-signup .signup-row {
    flex-direction: row;
  }
  .gp-signup input[type="email"] {
    padding: 12px 14px;
  }
  .gp-signup .btn {
    padding: 12px 16px;
  }
  .gp-play .btn {
    padding: 14px 20px;
  }
  .gp-copy h1 img {
    margin-left: 0;
  }
  .gp-shots {
    grid-template-columns: 1fr;
  }
  .gp-shot span {
    padding: 8px 10px 10px;
    font-size: 12px;
  }
  .gp-features {
    grid-template-columns: 1fr;
  }
}

/* ---------- /the-underwriters: the same page in the Guild's blue, its own clips, and the cards ---------- */
.uw-page .gp-hero {
  background: radial-gradient(70% 60% at 30% 45%, rgba(127, 178, 209, 0.1), transparent 70%), var(--cellar);
}
.uw-page .gp-film {
  background: #000;
}
.uw-wordmark {
  font-size: clamp(44px, 5.2vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
/* the name is sized to the column it stands in (style.css, .uw-mark) */
.uw-page .gp-copy {
  container-type: inline-size;
}
/* How a run goes, in three numbered lines under the heading */
.uw-run {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  counter-reset: none;
}
.uw-run li {
  display: grid;
  grid-template-columns: 2em 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font: 400 17px / 1.4 var(--display);
  color: var(--paper);
}
.uw-run span {
  font: 600 14px / 1.9 var(--label);
  color: var(--house);
}
.uw-tagline {
  margin: 14px 0 0;
  font: 400 clamp(18px, 1.6vw, 22px) / 1.3 var(--display);
  color: var(--house);
}
.uw-page .gp-pitch {
  margin-top: 18px;
}
.uw-page .eyebrow,
.uw-page .gp-head h2 em,
.uw-page .gp-band h2 em {
  color: var(--house);
}
.uw-page .gp-band::before {
  background: radial-gradient(closest-side, rgba(127, 178, 209, 0.14), transparent);
}

.uw-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
.uw-cards figure {
  margin: 0;
}
.uw-cards img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 440;
  object-fit: cover;
  border-radius: 12px;
  border: 5px solid #bebbb2;
  outline: 1px solid #23262a;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
}
.uw-cards figcaption {
  padding: 14px 4px 0;
  font: 400 14px / 1.45 var(--sans);
  color: var(--paper-dim);
}
.uw-cards strong {
  display: block;
  margin-bottom: 2px;
  font: 500 19px / 1.25 var(--display);
  color: var(--paper);
}
@media (max-width: 1100px) and (max-aspect-ratio: 5/4), (max-width: 900px) {
  .uw-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px), (max-width: 900px) and (max-height: 599px) {
  .uw-wordmark {
    font-size: clamp(38px, 11vw, 56px);
  }
  .uw-tagline {
    font-size: 16px;
    margin-top: 8px;
  }
}
@media (max-width: 420px) {
  .uw-cards figcaption {
    font-size: 13px;
  }
  .uw-cards strong {
    font-size: 17px;
  }
}
/* the upright iPad's two-column top (above) has a row for the tagline here */
@media (min-width: 701px) and (min-height: 600px) and (max-width: 900px),
  (min-width: 701px) and (max-width: 1100px) and (max-aspect-ratio: 5/4) {
  .uw-page .gp-copy {
    grid-template-areas: "title signup" "tag signup" "pitch signup" "say signup" "play signup";
  }
  .uw-tagline {
    grid-area: tag;
  }
}
/* A phone on its side: the film beside the logo, pitch and Play, so Play is on the first screen, not under a film
   the height of it. */
@media (max-width: 900px) and (max-height: 599px) and (orientation: landscape) {
  .gp-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
    padding-top: 64px;
  }
  .gp-copy h1 img {
    width: min(260px, 100%);
  }
}
