/* The press kit: /press. Builds on style.css (tokens, nav, buttons, reveals, contact, footer). */

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

/* ---------- header ---------- */
.press-hero {
  position: relative;
  padding: clamp(130px, 16vw, 200px) var(--gutter) clamp(70px, 9vw, 120px);
  overflow: hidden;
  background: var(--cellar);
}
.press-hero-art {
  position: absolute;
  inset: 0;
  background: url("/press/thumbs/key-art-d.jpg") 70% 40% / cover no-repeat;
  background-image: image-set(url("/press/thumbs/key-art-d.jpg") 1x, url("/press/thumbs/key-art-d-2400.jpg") 2x);
  opacity: 0.85;
  transform: scale(1.06);
  animation: drift 24s var(--ease) forwards;
}
.press-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 0.94) 0%, rgba(11, 12, 14, 0.62) 42%, rgba(11, 12, 14, 0) 80%),
    linear-gradient(0deg, var(--ink) 0%, rgba(15, 16, 18, 0) 40%);
}
@keyframes drift {
  to {
    transform: scale(1);
  }
}
.press-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.press-hero h1 img {
  width: min(560px, 100%);
  height: auto;
  margin: 0 0 30px -6px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6));
}
.btn .size {
  font-weight: 400;
  opacity: 0.7;
}
.press-toc {
  display: flex;
  flex-wrap: wrap;
  /* one line at 1440 */
  gap: 8px 18px;
  margin-top: 44px;
  font: 500 13px var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.press-toc a {
  color: var(--paper-faint);
  text-decoration: none;
  transition: color 0.3s;
}
.press-toc a:hover {
  color: var(--house);
}

/* ---------- blocks ---------- */
.press-block {
  padding: clamp(80px, 10vw, 140px) var(--gutter) 0;
  scroll-margin-top: 40px;
}
.press-head {
  margin-bottom: clamp(36px, 5vw, 60px);
}
.press-head h2 {
  font-size: clamp(36px, 5vw, 68px);
}
.note {
  color: var(--paper-faint);
  font-size: 15px;
  max-width: 40em;
  margin: 20px 0 0;
}
.press-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(30px, 6vw, 100px);
  align-items: start;
}
.prose p {
  color: var(--paper-dim);
  max-width: 36em;
  margin: 0 0 18px;
}
.prose p:first-child {
  color: var(--paper);
  font: 400 21px / 1.5 var(--display);
}
.prose a {
  color: var(--house);
}
.prose .short {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--paper);
}
.prose .short span,
.sheet dt {
  display: block;
  font: 500 12px / 2 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper-faint);
}

/* ---------- factsheet ---------- */
.sheets {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
/* Under Management's sheet down the left; The Underwriters' and the studio's stacked beside it */
.sheets > .sheet:first-child {
  grid-row: span 2;
}
.sheet-uw {
  scroll-margin-top: 90px;
  /* the name is sized to the sheet (style.css, .uw-mark) */
  container-type: inline-size;
}
.sheet.sheet-uw h3 {
  font-size: 40px;
}
.sheet {
  background: var(--ink-2);
  border-radius: 6px;
  padding: 28px 30px 12px;
  box-shadow: 0 0 0 1px var(--rule);
}
.sheet h3 {
  font-size: 26px;
  margin-bottom: 14px;
}
.sheet dl {
  margin: 0;
}
.sheet dl div {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.sheet dd {
  margin: 0;
  font-size: 15px;
}
.sheet a {
  color: var(--house);
  text-decoration: none;
  word-break: break-word;
}
.sheet a:hover {
  text-decoration: underline;
}

/* ---------- features ---------- */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  counter-reset: f;
}
.features li {
  background: var(--ink);
  padding: 30px 26px 34px 0;
  counter-increment: f;
}
.features li:not(:nth-child(4n + 1)) {
  padding-left: 26px;
}
.features li::before {
  content: counter(f, decimal-leading-zero);
  font: 600 13px var(--label);
  color: var(--paper-faint);
  letter-spacing: 0.1em;
}
.features h3 {
  font-size: 23px;
  line-height: 1.15;
  margin: 14px 0 10px;
}
.features p {
  color: var(--paper-dim);
  margin: 0;
  font-size: 15px;
}

/* ---------- clips, screenshots, art ---------- */
.clips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.clip {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px var(--rule);
}
.clip {
  display: flex;
  flex-direction: column;
}
.clip:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
/* four clips: the first across the top at its own shape, the other three in a row under it, so none is left alone */
.clip:first-child:nth-last-child(4) {
  grid-column: 1 / -1;
  grid-row: auto;
}
.clip:first-child:nth-last-child(4) video {
  aspect-ratio: 16 / 9;
}
.clip:first-child video {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
}
.clip video,
.clip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.clip figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px 13px;
  font: 400 13px / 1.35 var(--sans);
  color: var(--paper-dim);
}
.clip figcaption a,
.logo-tile a {
  display: inline-block;
  font: 500 12px / 1.9 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--house);
  text-decoration: none;
  white-space: nowrap;
}

.shots,
.portraits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.portraits {
  grid-template-columns: repeat(6, 1fr);
  margin-top: 16px;
}
.keyart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.keyart .shot:first-child {
  grid-column: 1 / -1;
}
.shot {
  position: relative;
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: 0 0 0 1px var(--rule);
  text-decoration: none;
}
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition:
    transform 0.8s var(--ease),
    filter 0.8s;
  filter: saturate(0.9) brightness(0.92);
}
.shot.wide img {
  aspect-ratio: 3840 / 1240;
}
.portraits .shot img {
  aspect-ratio: 600 / 440;
}
.shot span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 12px;
  font: 400 13px / 1.35 var(--sans);
  color: var(--paper-dim);
}
.shot span::after {
  content: "\2193";
  color: var(--house);
  transition: transform 0.3s var(--ease);
}
@media (hover: hover) {
  .shot:hover img {
    transform: scale(1.04);
    filter: saturate(1.05) brightness(1.05);
  }
  .shot:hover span::after {
    transform: translateY(2px);
  }
}

/* ---------- logos ---------- */
.logos {
  display: grid;
  grid-template-columns: 1fr 1fr 0.5fr 0.5fr;
  gap: 16px;
}
.logo-tile {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--rule);
  background: var(--ink-2);
}
.logo-plate {
  display: grid;
  place-items: center;
  height: 200px;
  padding: 24px;
  background:
    radial-gradient(60% 80% at 50% 50%, rgba(127, 178, 209, 0.12), transparent 70%),
    repeating-conic-gradient(rgba(220, 220, 214, 0.03) 0 25%, transparent 0 50%) 0 0 / 22px 22px;
}
.logo-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mark-tile .logo-plate img {
  height: 104px;
  width: 104px;
}
.logo-tile.paper .logo-plate {
  background: var(--paper);
}
.logo-tile figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 12px 14px 14px;
  font: 400 13px / 1.35 var(--sans);
  color: var(--paper-dim);
  border-top: 1px solid var(--rule);
}
.logo-tile figcaption a:first-of-type {
  margin-left: auto;
}

.press .contact {
  margin-top: clamp(60px, 8vw, 100px);
}

.dev-portrait {
  margin: 36px 0 0;
  max-width: 520px;
}
.dev-portrait img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px var(--rule);
}
.dev-portrait figcaption {
  margin-top: 12px;
  font: 400 15px / 1.4 var(--display);
  color: var(--paper-faint);
}

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .features li:not(:nth-child(4n + 1)) {
    padding-left: 0;
  }
  .features li:nth-child(even) {
    padding-left: 26px;
  }
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
  .portraits {
    grid-template-columns: repeat(3, 1fr);
  }
  .logos {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {
  .sheets,
  .press-split {
    grid-template-columns: 1fr;
  }
  .clips {
    grid-template-columns: 1fr 1fr;
  }
  .clip:first-child {
    grid-column: span 2;
    grid-row: auto;
  }
  /* an even number of clips makes whole rows of two, so the first gives up its full width */
  .clip:first-child:nth-last-child(2n) {
    grid-column: auto;
    grid-row: auto;
  }
  .clip:first-child video {
    aspect-ratio: 16 / 9;
  }
  /* three across, the wide key art is a sliver */
  .keyart {
    grid-template-columns: 1fr;
  }
  /* under the wash a phone can't tell the 2400 from the 1200, which is a fifth of the weight */
  .press-hero-art {
    background-image: url("/press/thumbs/key-art-d.jpg");
  }
  .press-hero::before {
    background:
      linear-gradient(180deg, rgba(11, 12, 14, 0.55) 0%, rgba(11, 12, 14, 0.85) 45%, var(--ink) 100%);
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
  .features li:nth-child(even) {
    padding-left: 0;
  }
  .clips,
  .shots,
  .keyart {
    grid-template-columns: 1fr;
  }
  .clip:first-child {
    grid-column: auto;
  }
  .clip:first-child video {
    aspect-ratio: 16 / 9;
  }
  .portraits {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .logos {
    grid-template-columns: 1fr 1fr;
  }
  .logos .logo-tile:not(.mark-tile) {
    grid-column: span 2;
  }
  .logo-plate {
    height: 150px;
  }
  .sheet {
    padding: 22px 18px 8px;
  }
  .sheet dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .press-toc {
    gap: 6px 16px;
  }
}
@media (max-width: 520px) {
  .press-hero h1 img {
    margin-left: 0;
  }
}

/* ---------- touch: about 44px of target for the small links ---------- */
@media (pointer: coarse) {
  /* the contents rows need real space between them, or the targets overlap */
  .press-toc {
    gap: 0 16px;
    margin-top: 30px;
  }
  .press-toc a {
    padding: 14px 8px;
    margin-inline: -8px;
  }
  .clip figcaption a,
  .logo-tile a {
    padding: 12px 8px;
    margin: -12px -8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .press-hero-art {
    transform: none;
  }
}
