/* ============================================================
   manifesto.css — the Dangerous Street manifesto section
   ------------------------------------------------------------
   A campaign statement, not an "about us" block. Two columns on desktop,
   a single stacked column on mobile.

   Mobile order is required to be: statement -> paragraph -> film -> principles.
   That is exactly the DOM order, so mobile needs no `order` rules at all;
   desktop instead places the four blocks explicitly on a 2x2 grid. Ordering
   by source, not by override, keeps the reading order the same for screen
   readers and keyboard users as it is on screen.
   ============================================================ */

.ds-mf {
  /* One accent, used sparingly, plus a hairline that is warm rather than blue. */
  --mf-accent: #C9A87C;
  --mf-line: rgba(201, 168, 124, .20);
  --mf-ink: #F2F0EC;
  --mf-ink-2: #C9C4BB;          /* >7:1 on black; never the old .5 white mush */
  --mf-dur: 620ms;
  --mf-ease: cubic-bezier(.22, .61, .36, 1);
  background: #000;
  color: var(--mf-ink);
  padding: clamp(88px, 11vw, 152px) 0;
  position: relative;
  overflow: hidden;
}

.ds-mf__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 72px);
}

@media (min-width: 900px) {
  .ds-mf__grid {
    /* Statement column stays wider: the headline is the hero of the section. */
    grid-template-columns: 1.15fr 1fr;
    column-gap: clamp(56px, 6vw, 96px);
    row-gap: clamp(48px, 5vw, 72px);
    align-items: start;
  }
  .ds-mf__statement  { grid-column: 1; grid-row: 1; }
  /* Centred against the headline, not pinned to the top of the row. The statement
     is ~3x the paragraph's height, so top-aligning it strands the paragraph above
     a void and the column reads empty. */
  .ds-mf__copy       { grid-column: 2; grid-row: 1; align-self: center; }
  .ds-mf__film       { grid-column: 1; grid-row: 2; }
  /* Top-aligned with the film card so the two lower blocks share a baseline. */
  .ds-mf__principles { grid-column: 2; grid-row: 2; align-self: start; }
  /* The rule divides the columns; it belongs to the right column, not the page. */
  .ds-mf__copy,
  .ds-mf__principles { border-left: 1px solid var(--mf-line); padding-left: clamp(28px, 3vw, 48px); }
}

/* ---------- left: the statement ---------- */
.ds-mf__eyebrow {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--mf-accent);
  margin: 0 0 clamp(20px, 2.4vw, 30px);
}

/* ONE weight, ONE colour. The old headline set its middle line in grey, so three
   lines competed and none won. */
.ds-mf__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 8.6vw, 132px);
  line-height: .84;
  letter-spacing: -.01em;
  color: var(--mf-ink);
  margin: 0 0 clamp(22px, 2.6vw, 32px);
}

.ds-mf__sub {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(14px, 1.3vw, 16px);
  letter-spacing: .04em;
  color: var(--mf-ink-2);
  margin: 0;
  max-width: 34ch;
}

/* ---------- right: the manifesto paragraph ---------- */
.ds-mf__copy p {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.72;
  color: var(--mf-ink);
  margin: 0;
  max-width: 46ch;               /* short measure: 3-4 lines, never a wall */
}

/* ---------- right: three principles ---------- */
.ds-mf__principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 2.6vw, 32px);
}
@media (min-width: 560px) {
  .ds-mf__principles { grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
}
.ds-mf__p-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(19px, 1.7vw, 23px);
  letter-spacing: .12em;
  color: var(--mf-accent);
  margin: 0 0 6px;
}
.ds-mf__p-body {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mf-ink-2);
  margin: 0;
}

/* ---------- the film card ---------- */
.ds-mf__film {
  display: block;
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 16 / 9;          /* reserves space -> no CLS while the poster decodes */
  overflow: hidden;
  border: 1px solid var(--mf-line);
  background: #0A0A0A;
  cursor: pointer;
  padding: 0;
  text-align: left;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.ds-mf__film-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1);
  transition: transform 620ms var(--mf-ease), filter 620ms var(--mf-ease);
}
/* A flat scrim, not a gradient: the brief bans gradients and the label needs a
   predictable floor for contrast. */
.ds-mf__film-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .42);
  transition: background 620ms var(--mf-ease);
}
.ds-mf__film-row {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: clamp(16px, 2vw, 22px);
  box-sizing: border-box;
}
.ds-mf__play {
  width: 44px; height: 44px;     /* a real 44px target, not a decorative dot */
  flex: 0 0 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(0, 0, 0, .3);
  display: flex; align-items: center; justify-content: center;
  transition: background 300ms var(--mf-ease), border-color 300ms var(--mf-ease);
}
.ds-mf__play svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.ds-mf__film-label {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  flex: 1;
}
.ds-mf__film-time {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--mf-accent);
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) and (pointer: fine) {
  .ds-mf__film:hover .ds-mf__film-img { transform: scale(1.02); }      /* 2%, per brief */
  .ds-mf__film:hover .ds-mf__film-scrim { background: rgba(0, 0, 0, .32); }
  .ds-mf__film:hover .ds-mf__play { background: rgba(0, 0, 0, .55); border-color: #fff; }
}
.ds-mf__film:focus-visible { outline: 2px solid var(--mf-accent); outline-offset: 3px; }

/* ---------- reveal ---------- */
/* Opacity + a few px of translate only. Never "flying in". */
.ds-mf [data-mf-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--mf-dur) var(--mf-ease), transform var(--mf-dur) var(--mf-ease);
}
.ds-mf.is-revealed [data-mf-reveal] { opacity: 1; transform: none; }
/* sequence, 90ms apart: statement -> copy -> film -> principles */
.ds-mf.is-revealed [data-mf-reveal="1"] { transition-delay: 0ms; }
.ds-mf.is-revealed [data-mf-reveal="2"] { transition-delay: 90ms; }
.ds-mf.is-revealed [data-mf-reveal="3"] { transition-delay: 180ms; }
.ds-mf.is-revealed [data-mf-reveal="4"] { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  .ds-mf [data-mf-reveal] { opacity: 1; transform: none; transition: none; }
  .ds-mf__film-img { transition: none; }
}

/* ---------- the film modal ---------- */
.ds-mf-modal {
  position: fixed;
  inset: 0;
  z-index: 90;                   /* above the nav (50) */
  background: rgba(4, 4, 4, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 48px);
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--mf-ease);
}
.ds-mf-modal.is-open { opacity: 1; pointer-events: auto; }
.ds-mf-modal__video {
  width: 100%;
  max-width: 1280px;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: block;
}
.ds-mf-modal__close {
  position: absolute;
  top: clamp(10px, 2vw, 22px);
  right: clamp(10px, 2vw, 22px);
  width: 44px; height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 200ms var(--mf-ease), background 200ms var(--mf-ease);
}
.ds-mf-modal__close:hover { border-color: #fff; background: rgba(0, 0, 0, .8); }
.ds-mf-modal__close:focus-visible { outline: 2px solid var(--mf-accent); outline-offset: 3px; }
.ds-mf-modal__close svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2; }

@media (max-width: 640px) {
  .ds-mf-modal { padding: 0; }
  .ds-mf-modal__video { max-height: 100vh; }
}
