/*
 * Park Gentlemen — Partnership Prospectus
 * Broadsheet register: newsprint cream, ink rules, tabular numerals.
 * House rules: no gradients, no box-shadows, radii capped at 2px,
 * nothing centered that can be left-aligned.
 */

:root {
  --paper: #ffffff;
  --ink: #17233a;
  --hairline: rgba(23, 35, 58, 0.16);
  --red: #d2222d;
  --green: #337a1e;
  --cream: #ffffff;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Geist", "Helvetica Neue", Arial, sans-serif;
  --tint: #f6f7f9;
  --ink-soft: rgba(23, 35, 58, 0.78);
  --container: 1160px;
  --gutter: 24px;
  --bleed-pad: max(calc((100vw - var(--container)) / 2 + var(--gutter)), var(--gutter));

  /* Spacing scale — every vertical gap on the page is one of these.
     Tiers: 8–16 within an element, 24–32 between blocks in a section,
     48–64 between groups, --section-pad between sections. */
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s6: 24px;
  --s8: 32px;
  --s12: 48px;
  --s16: 64px;
  --section-pad: clamp(80px, 11vh, 128px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- shared type voices ---------- */

.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.kicker--red { color: var(--red); }
.kicker--green { color: var(--green); }
.kicker--cream { color: var(--cream); }

.section-headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: var(--s4);
}

/* One-line explainer under a section headline. */
.dek {
  font-size: 17px;
  line-height: 1.5;
  max-width: 60ch;
  color: var(--ink-soft);
  margin-bottom: var(--s8);
}

.figcaption {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  margin-top: var(--s3);
  color: var(--ink-soft);
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--hairline);
}

.masthead__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-block: var(--s4);
}

.masthead__wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.masthead__wordmark:hover {
  color: var(--red);
}

.masthead__meta {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}

/* ---------- hero ---------- */

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s6);
  align-items: center;
  padding-block: var(--section-pad);
}

.hero__copy {
  grid-column: 1 / 8;
  min-width: 0;
}

.hero__headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(29px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--s6);
}

.hero__views {
  color: var(--red);
  font-size: 0.74em;
  padding-top: 0.08em;
}
.hero__views em {
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-variant-numeric: tabular-nums;
}

.hero__deck {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.55;
  max-width: 52ch;
  margin-bottom: var(--s8);
}

.hero__ctas {
  display: flex;
  align-items: baseline;
  gap: var(--s6);
  flex-wrap: wrap;
}

.cta-link {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.cta-link:hover,
.cta-link:focus-visible {
  border-color: var(--red);
  color: var(--red);
}

.plain-link {
  font-style: normal;
  font-size: 16px;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.plain-link:hover {
  color: var(--red);
}

.hero__figure {
  grid-column: 9 / 13;
  min-width: 0;
}

.hero__plate {
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: #fff;
}
.hero__plate img {
  border-radius: 1px;
}

/* ---------- stats band ---------- */

.stats {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.stats__kicker {
  padding-top: var(--s6);
  margin-bottom: 0;
}

.stats__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: var(--s8);
  margin: 0;
  max-width: 480px;
}

.stats__cell {
  padding: var(--s4) 0 var(--s6);
}
.stats__cell + .stats__cell {
  border-left: 1px solid var(--hairline);
  padding-left: var(--s8);
}
.stats__cell dd {
  margin: 0;
}

.stats__label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(23, 35, 58, 0.75);
  margin-bottom: var(--s2);
  white-space: nowrap;
}

.stats__num {
  font-family: var(--sans);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 4.8vw, 68px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.stats__footnote {
  font-style: normal;
  font-size: 11.5px;
  line-height: 1.4;
  color: rgba(23, 35, 58, 0.72);
  padding-bottom: var(--s4);
}

/* ---------- the complete index (carousel) ---------- */

.index {
  padding-block: var(--section-pad);
}

.index__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s6);
  margin-bottom: var(--s8);
}
.index__head .dek {
  margin-bottom: 0;
}

.index__controls {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.index__btn {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0 0 2px;
}
.index__btn:hover:not(:disabled),
.index__btn:focus-visible {
  border-bottom-color: var(--red);
  color: var(--red);
}
.index__btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.index__btn-sep {
  color: var(--hairline);
}

.index__rail {
  position: relative;
}

.index__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--bleed-pad);
  padding-inline: var(--bleed-pad);
  scrollbar-width: none;
  cursor: grab;
}
.index__track::-webkit-scrollbar {
  display: none;
}
.index__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.index__track:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

/* --- video cards --- */

.short-card {
  flex: 0 0 236px;
  scroll-snap-align: start;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.short-card__frame {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.short-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.short-card__frame--letterbox img {
  object-fit: contain;
}

.short-card__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  font-family: var(--sans);
  transition: background 0.15s ease, color 0.15s ease;
}

.short-card__label {
  font-family: var(--serif);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.short-card__views {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.short-card__views--million {
  background: var(--red);
  color: var(--cream);
  padding: 2px 6px;
  border-radius: 2px;
}
.short-card__views--exact {
  display: none;
}

.short-card__rule {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.short-card:hover .short-card__caption,
.short-card:focus-visible .short-card__caption {
  background: var(--ink);
  color: var(--cream);
}
.short-card:hover .short-card__rule,
.short-card:focus-visible .short-card__rule {
  transform: scaleX(1);
}
.short-card:hover .short-card__views--rounded,
.short-card:focus-visible .short-card__views--rounded {
  display: none;
}
.short-card:hover .short-card__views--exact,
.short-card:focus-visible .short-card__views--exact {
  display: inline;
}
.short-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* screen-reader-only title inside each card */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- the reserved card --- */

.reserved-card {
  flex: 0 0 236px;
  scroll-snap-align: start;
  border: 1px dashed var(--ink);
  border-radius: 2px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 20px;
  background: var(--paper);
}
.reserved-card__no {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.reserved-card__body {
  font-style: normal;
  font-size: 17px;
  line-height: 1.5;
}
.reserved-card__enquire {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 16px;
  border-bottom: 2px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
}
.reserved-card:hover .reserved-card__enquire,
.reserved-card:focus-visible .reserved-card__enquire {
  color: var(--red);
  border-color: var(--red);
}

/* --- the ruler + scrubber --- */

.index__ruler-wrap {
  padding-top: var(--s6);
  padding-bottom: var(--s2);
}

.index__ruler {
  position: relative;
  height: 40px;
}

.index__ruler-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink);
}
/* tick marks are painted by app.js as small spans */
.index__tick {
  position: absolute;
  top: calc(50% - 5px);
  width: 1px;
  height: 11px;
  background: var(--ink);
}

.index__scrubber {
  position: absolute;
  top: 50%;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  padding: 0;
  background: none;
  border: none;
  cursor: grab;
  touch-action: none;
}
.index__scrubber:active {
  cursor: grabbing;
}
.index__scrubber svg {
  width: 100%;
  height: 100%;
  display: block;
}
.index__scrubber:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 50%;
}

/* ---------- audience & brand safety ---------- */

.safety {
  padding-block: var(--section-pad);
}

.safety__grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: clamp(48px, 5vw, 72px);
  align-items: start;
}

.safety__copy p {
  max-width: 62ch;
  margin-bottom: var(--s4);
}
.safety__copy a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.safety__copy a:hover {
  color: var(--red);
}

.safety__note {
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--red);
  border-radius: 2px;
  padding: var(--s6);
  background: #f7f9fb;
}
.safety__note-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.safety__note p + p {
  margin-top: var(--s3);
}
.safety__note p:last-child {
  font-style: normal;
}

/* ---------- partnership formats ---------- */

.formats {
  padding-block: var(--section-pad);
  background: var(--tint);
}

.formats__table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
}

.formats__table th {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  padding: 12px 24px 12px 0;
  border-bottom: 1px solid var(--ink);
  color: rgba(27, 42, 65, 0.75);
}

.formats__table td {
  vertical-align: top;
  padding: var(--s4) var(--s6) var(--s4) 0;
  border-bottom: 1px solid var(--hairline);
}

.formats__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

.formats__reach {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.formats__fineprint {
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(23, 35, 58, 0.72);
  margin-top: var(--s4);
  max-width: 64ch;
}

/* ---------- contact ---------- */

.contact {
  background: var(--green);
  color: var(--cream);
  padding-block: var(--section-pad);
}

.contact__headline {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 14ch;
  margin-bottom: var(--s6);
}

.contact__deck {
  font-size: 19px;
  max-width: 46ch;
  margin-bottom: var(--s8);
}

.contact__cta {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid var(--cream);
  padding-bottom: 4px;
}
.contact__cta:hover,
.contact__cta:focus-visible {
  color: #fff;
  border-color: #fff;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.footer__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  padding-block: var(--s4);
  font-size: 13px;
  font-style: normal;
}
.footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.footer a:hover {
  color: var(--red);
}

.footer__badge {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(23, 35, 58, 0.75);
}
.footer__badge.is-live {
  color: var(--green);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__copy {
    grid-column: auto;
  }
  .hero__figure {
    grid-column: auto;
    max-width: 420px;
  }
  .safety__grid {
    grid-template-columns: 1fr;
  }
  .safety__note {
    max-width: 560px;
  }
}

@media (max-width: 640px) {
  .masthead__meta {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
  .hero__figure {
    max-width: 100%;
  }
  .stats__row {
    grid-template-columns: 1fr;
  }
  .stats__cell + .stats__cell {
    border-left: none;
    padding-left: 0;
  }
  .stats__cell {
    padding: var(--s4) 0 var(--s4);
    border-bottom: 1px solid var(--hairline);
  }
  .stats__cell:last-child {
    border-bottom: none;
  }
  .stats__num {
    font-size: clamp(36px, 10vw, 52px);
  }
  .cta-link {
    font-size: 15px;
  }
  .index__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .short-card,
  .reserved-card {
    flex-basis: 176px;
  }
  .short-card__views {
    font-size: 12px;
  }
  .short-card__label {
    font-size: 12px;
  }
  .formats__table thead {
    display: none;
  }
  .formats__table tr {
    display: block;
    border-bottom: 1px solid var(--hairline);
    padding-block: 16px;
  }
  .formats__table td {
    display: block;
    border: none;
    padding: 2px 0;
  }
  .formats__name {
    margin-bottom: 4px;
  }
  .formats__reach {
    color: var(--green);
  }
}

/* ---------- print ---------- */

@media print {
  .index__controls,
  .index__ruler-wrap {
    display: none;
  }
  .index__track {
    flex-wrap: wrap;
    overflow: visible;
  }
  /* Browsers strip background colors by default when printing; keep the
     contact section and the red view-count chips legible on plain paper. */
  .contact,
  .contact__cta,
  .kicker--cream {
    color: var(--ink);
  }
  .contact__cta {
    border-color: var(--ink);
  }
  .short-card__views--million {
    color: var(--ink);
    background: none;
  }
}
