/* Site v4 (row 346, Sat 5 Dec 2026): the three-column home and the Rises, Go and Mission Control landing pages
   (C&S packet §13, home-v4-rises-go-mc-*.jpg). Loaded only by hub/public-bd-v4/ pages, after site.css.
   System fonts only, as site.css: the condensed display face falls back through the platforms' own condensed faces.
   Rule for Rises: no text ever sits over Iona or Mara. The text lives over the backdrop (the building and Rook's
   window); the tall painting of the two heroines has its own box to the right (desktop) or above (phone). */

.v4 {
  --v4-display: "Bebas Neue", "DIN Condensed", "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --v4-rises: #e2b75e;
  --v4-go: #58a6ff;
  --v4-mc: #5fd6c4;
  --v4-bar: 64px;
  --accent: var(--v4-rises);
}

.v4 [hidden] {
  display: none !important;
}

/* The bar: the studio mark and one link per game. */
.v4-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: var(--v4-bar);
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 2.2vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 11, 0.94);
}

.v4-mark {
  color: var(--paper);
  font: 700 clamp(1.3rem, 2.1vw, 1.9rem)/1 var(--v4-display);
  font-stretch: condensed;
  letter-spacing: 0.3em;
  text-decoration: none;
  white-space: nowrap;
}

.v4-mark span {
  color: var(--v4-rises);
}

.v4-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  font-size: 0.95rem;
}

.v4-nav a {
  color: var(--paper-dim);
  text-decoration: none;
}

.v4-nav a:hover,
.v4-nav a[aria-current="page"] {
  color: var(--paper);
}

.v4-nav .v4-nav__x {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  color: var(--paper);
}

@media (max-width: 799px) {
  .v4-nav a:not(.v4-nav__x) {
    display: none;
  }
}

/* Shared type. */
.v4-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 7px 11px;
  color: #0b0b0d;
  background: var(--col);
  font: 700 0.74rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.v4-lockup {
  margin: 0;
  color: var(--paper);
  font: 700 clamp(2.4rem, 3.2vw, 3.6rem)/0.95 var(--v4-display);
  font-stretch: condensed;
  text-transform: uppercase;
}

.v4-lockup span {
  color: var(--v4-rises);
}

.v4-lockup small {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.42em;
}

.v4-hook {
  margin: 14px 0 0;
  color: var(--paper);
  font: 700 clamp(1.7rem, 2vw, 2.4rem)/1.04 var(--v4-display);
  font-stretch: condensed;
  text-transform: uppercase;
  text-wrap: balance;
}

.v4-line {
  margin: 12px 0 0;
  max-width: 44ch;
  color: var(--paper-dim);
  font-size: 1.08rem;
  line-height: 1.45;
}

.v4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.v4-actions p {
  margin: 0;
}

.v4 .button {
  border-color: var(--col, var(--accent));
  background: var(--col, var(--accent));
  font: 700 1rem/1 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  justify-content: center;
  padding-inline: 22px;
}

.v4 .button--status {
  border-color: var(--col, var(--accent));
  color: var(--col, var(--accent));
  background: rgba(9, 9, 11, 0.6);
}

.v4 .button--soon {
  border-color: var(--line-strong);
  color: rgba(244, 241, 234, 0.55);
  background: rgba(9, 9, 11, 0.55);
  cursor: default;
  pointer-events: none;
}

.v4 .button--quiet {
  border-color: var(--line-strong);
  color: var(--paper);
  background: rgba(9, 9, 11, 0.55);
}

.v4-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--paper-dim);
  font-size: 0.95rem;
  text-decoration: none;
}

.v4-more:hover {
  color: var(--paper);
}

/* The three columns. */
.v4-col--rises { --col: var(--v4-rises); }
.v4-col--go { --col: var(--v4-go); }
.v4-col--mc { --col: var(--v4-mc); }

.v4-columns {
  display: grid;
  gap: 3px;
  background: #000;
}

.v4-col {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  background: var(--ink);
}

.v4 picture.v4-col__art,
.v4 picture.v4-hero__art {
  display: block;
}

.v4-col__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v4-col--go .v4-col__art img { object-position: 50% 22%; }
.v4-col--mc .v4-col__art img { object-position: 50% 30%; }

.v4-col__text {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px clamp(20px, 2vw, 36px) 32px;
}

.v4-col--go .v4-col__text .v4-lockup small,
.v4-col--mc .v4-col__text .v4-lockup small {
  margin-bottom: 8px;
  color: var(--col);
  font-size: 0.4em;
}

/* Rises art: the backdrop fills the box; the heroines' painting has its own box (desktop: right of the text). */
.v4-rises-art {
  position: relative;
}

.v4-rises-art .v4-rises-art__back {
  position: absolute;
  inset: 0;
  object-position: 32% 50%;
  filter: brightness(0.82);
}

/* Phone and narrow screens: everything stacks in the order Rises, Go, Mission Control. The Rises painting sits on top
   with nothing over it, the text on a plain panel beneath. */
@media (max-width: 799px) {
  .v4-rises-art {
    aspect-ratio: 1080 / 1218;
  }

  .v4-rises-art .v4-rises-art__back {
    display: none;
  }

  .v4-rises-art .v4-rises-art__front {
    position: absolute;
    inset: 0;
  }

  /* Go and Mission Control the same way (EP, Sat 5 Dec): the picture on top, the text under it, never over a face. */
  .v4-col--go .v4-col__art {
    aspect-ratio: 4 / 5;
  }

  .v4-col--go .v4-col__art img {
    object-position: 50% 25%;
  }

  .v4-col--mc .v4-col__art {
    aspect-ratio: 1600 / 974;
  }

  .v4-col--mc .v4-col__art img {
    object-position: 50% 50%;
  }
}

/* Mid widths: Rises across the top, Go and Mission Control side by side beneath. */
@media (min-width: 800px) {
  .v4-columns {
    grid-template-columns: 1fr 1fr;
  }

  .v4-col--rises {
    grid-column: 1 / -1;
    min-height: 640px;
  }

  .v4-col--go,
  .v4-col--mc {
    min-height: 680px;
    justify-content: flex-end;
  }

  .v4-col__art {
    position: absolute;
    inset: 0;
  }

  .v4-col--go .v4-col__art::after,
  .v4-col--mc .v4-col__art::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(9, 9, 11, 0) 42%, rgba(9, 9, 11, 0.6) 64%, rgba(9, 9, 11, 0.92) 100%);
  }

  .v4-col--rises {
    --rises-text: clamp(300px, 34%, 420px);
  }

  .v4-rises-art .v4-rises-art__front {
    position: absolute;
    top: 0;
    right: 0;
    width: calc(100% - var(--rises-text));
    height: 100%;
    object-position: 58% 18%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%);
  }

  .v4-rises-art::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--rises-text);
    content: "";
    background: linear-gradient(90deg, rgba(9, 9, 11, 0.55), rgba(9, 9, 11, 0.15));
  }

  .v4-col--rises .v4-col__text {
    position: relative;
    z-index: 1;
    width: var(--rises-text);
    flex: 1;
  }

  .v4-col--rises .v4-lockup {
    font-size: clamp(2.2rem, 2.5vw, 3rem);
    white-space: nowrap;
  }

  .v4-col--rises .v4-hook {
    font-size: clamp(1.7rem, 1.9vw, 2.3rem);
  }

  .v4-col--rises .v4-line {
    margin-top: auto;
    padding-top: 24px;
    color: var(--paper);
  }

  .v4-col--rises .v4-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Wide screens: the three columns, Rises 48%, Go 26%, Mission Control 26%, at full height. */
@media (min-width: 1400px) {
  .v4-columns {
    grid-template-columns: 48fr 26fr 26fr;
    height: clamp(720px, calc(100svh - var(--v4-bar) - 112px), 980px);
  }

  .v4-col--rises {
    grid-column: auto;
    --rises-text: clamp(290px, 32%, 340px);
  }

  .v4-col--go,
  .v4-col--mc {
    min-height: 0;
  }

  .v4-col--mc .v4-col__art img {
    height: 62%;
    object-position: 50% 0;
  }

  .v4-col--mc .v4-col__art::after {
    background: linear-gradient(180deg, rgba(9, 9, 11, 0) 45%, rgba(9, 9, 11, 0.9) 62%, var(--ink) 70%);
  }
}

/* The email band under the columns: one line on wide screens. */
.v4-band {
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.v4-band .signup {
  width: var(--shell);
  max-width: none;
  margin: 0 auto;
  padding: 32px 0 40px;
}

.v4-band .signup__title {
  font: 700 clamp(1.8rem, 2.4vw, 2.4rem)/1 var(--v4-display);
  font-stretch: condensed;
  text-transform: uppercase;
}

.v4-band .signup-form {
  max-width: 1100px;
}

@media (min-width: 1000px) {
  .v4-band .signup-form__fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 16px;
  }

  .v4-band .signup-form__label {
    flex-basis: 100%;
  }

  .v4-band .signup-form__input {
    flex: 0 1 420px;
  }

  .v4-band .signup-form__ticks {
    flex: none;
    margin: 0;
  }

  .v4-band .signup-form__status,
  .v4-band .signup-form__note {
    flex-basis: 100%;
    order: 9;
  }
}

/* Landing pages. */
.v4-page {
  --col: var(--accent);
}

.v4-page--rises { --col: var(--v4-rises); --accent: var(--v4-rises); }
.v4-page--go { --col: var(--v4-go); --accent: var(--v4-go); }
.v4-page--mc { --col: var(--v4-mc); --accent: var(--v4-mc); }

.v4-hero {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: clamp(620px, calc(100svh - var(--v4-bar)), 920px);
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
}

.v4-hero .v4-hero__art {
  position: absolute;
  inset: 0;
}

.v4-hero .v4-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v4-hero .v4-hero__art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(9, 9, 11, 0.9) 0, rgba(9, 9, 11, 0.55) 34%, rgba(9, 9, 11, 0) 58%), linear-gradient(0deg, rgba(9, 9, 11, 0.85) 0, rgba(9, 9, 11, 0) 40%);
}

.v4-hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 620px;
  flex-direction: column;
  padding: 48px clamp(20px, 4vw, 72px) 56px;
}

.v4-hero h1.v4-lockup {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.v4-hero .v4-hook {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

/* Rises hero: the same two layers as the home column, at page width. */
.v4-hero--rises .v4-rises-art {
  position: absolute;
  inset: 0;
}

.v4-hero--rises {
  --rises-text: clamp(320px, 36%, 560px);
}

.v4-hero--rises .v4-hero__text {
  width: var(--rises-text);
  max-width: none;
  justify-content: center;
  flex: 1;
}

@media (min-width: 800px) {
  /* Height-fitted, so the painting shows as far down as it goes (to the upper thigh); the street shows between. */
  .v4-hero--rises .v4-rises-art .v4-rises-art__front {
    position: absolute;
    top: 0;
    right: clamp(0px, 5vw, 120px);
    width: auto;
    max-width: calc(100% - var(--rises-text));
    height: 100%;
    object-fit: cover;
    object-position: 55% 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 92%, transparent 100%);
  }

  .v4-hero--rises .v4-rises-art::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--rises-text);
    content: "";
    background: linear-gradient(90deg, rgba(9, 9, 11, 0.7), rgba(9, 9, 11, 0.3));
  }

  /* The backdrop stops short of its own painted heroines (they sit in its right third); the tall painting covers the
     seam and the page black shows past its right edge. */
  .v4-hero--rises .v4-rises-art .v4-rises-art__back {
    width: 64%;
    height: 100%;
    object-fit: cover;
    object-position: 0 50%;
  }
}

@media (max-width: 799px) {
  .v4-hero {
    min-height: 0;
  }

  .v4-hero .v4-hero__art,
  .v4-hero--rises .v4-rises-art {
    position: relative;
    inset: auto;
  }

  .v4-hero .v4-hero__art {
    aspect-ratio: 4 / 5;
  }

  .v4-hero .v4-hero__art::after {
    background: linear-gradient(0deg, var(--ink) 0, rgba(9, 9, 11, 0) 35%);
  }

  .v4-hero--rises .v4-rises-art {
    aspect-ratio: 1080 / 1218;
  }

  .v4-hero--rises .v4-rises-art .v4-rises-art__front {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .v4-hero--rises .v4-hero__text {
    width: auto;
  }

  .v4-hero__text {
    padding-top: 8px;
  }
}

/* /rises/ keeps only the Black Dawn Rises card of today's acts list: one card, full width. */
.v4-page .acts__list,
.v4-page .acts__list:has(.rises-set) {
  grid-template-columns: minmax(0, 1fr);
}

.v4-page .acts__list:has(.rises-set) .rises-set {
  grid-column: 1 / -1;
}

.v4-page .lore__more {
  margin-top: 24px;
}

/* Sections on the landing pages: the site.css section, with the game's colour for kickers. */
.v4-page .kicker {
  color: var(--col);
}

.v4-page .section h2,
.v4-page .v4-section-title {
  font: 700 clamp(2rem, 3.4vw, 3rem)/1 var(--v4-display);
  font-stretch: condensed;
  text-transform: uppercase;
}

.v4-placeholder {
  display: grid;
  min-height: 240px;
  place-items: center;
  margin: 18px 0 0;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font: 600 0.8rem/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

.v4-halves {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.v4-halves figure {
  margin: 0;
}

.v4-halves img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.v4-halves figcaption {
  margin-top: 10px;
  color: var(--paper-dim);
}

@media (min-width: 800px) {
  .v4-halves {
    grid-template-columns: 1fr 1fr;
  }
}

.v4-ways {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.v4-ways li {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--ink-raised);
}

.v4-ways h3 {
  margin: 0;
  color: var(--col);
  font: 700 1.7rem/1 var(--v4-display);
  font-stretch: condensed;
  text-transform: uppercase;
}

.v4-ways p {
  margin: 8px 0 0;
  color: var(--muted);
}

@media (min-width: 800px) {
  .v4-ways {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The strip at the foot of each landing page: the other two games. */
.v4-strip {
  display: grid;
  gap: 3px;
  background: #000;
}

.v4-strip__game {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 340px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px clamp(20px, 3vw, 48px);
  color: var(--paper);
  text-decoration: none;
  background: var(--ink);
}

.v4-strip__game img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.v4-strip__game:hover img {
  opacity: 0.75;
}

.v4-strip__game::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(9, 9, 11, 0.92) 0, rgba(9, 9, 11, 0) 70%);
}

.v4-strip__game > * {
  position: relative;
  z-index: 1;
}

.v4-strip__game--rises { --col: var(--v4-rises); }
.v4-strip__game--go { --col: var(--v4-go); }
.v4-strip__game--mc { --col: var(--v4-mc); }

.v4-strip__game--rises img {
  object-position: 80% 30%;
}

.v4-strip__game .v4-lockup {
  font-size: clamp(2rem, 2.6vw, 2.8rem);
}

.v4-strip__game .v4-lockup small {
  color: var(--col);
  margin-bottom: 6px;
}

.v4-strip__game .v4-hook {
  font-size: clamp(1.3rem, 1.6vw, 1.7rem);
}

.v4-strip__game .v4-more {
  color: var(--col);
}

@media (min-width: 800px) {
  .v4-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v4-strip__game img {
    transition: none;
  }
}
