/* MAMADU – an editorial work sample, designed on a print grid. */
body.editorial {
  --bg:#0a0a0b; --card:#171416; --ink:#f2eee2; --muted:#c7cdc1;
  --line:#46353a; --signal-red:#ff6569; --mint:var(--signal-red); --chrome:#080809;
  --blue:#ffd0d2; --accent:#ff7c7e; --mono:ui-monospace, "Courier New", monospace;
  --display:"Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  background:var(--bg); color:var(--ink); color-scheme:dark;
}
html:has(body.editorial) { background:#0a0a0b; }
.editorial main { width:min(1390px,100%); padding-inline:clamp(18px,5vw,74px); }
.editorial nav { border-bottom:1px solid var(--ink); gap:12px 20px; }
.editorial .wordmark { font:800 1.18rem/1 var(--mono); letter-spacing:-.06em; }
.editorial .wordmark span { color:var(--accent); margin-inline-start:3px; }
.editorial nav a:not(.wordmark) { font-size:.92rem; }
.editorial nav a:hover { color:var(--accent); }
.editorial nav #language-tabs { border:0; background:transparent; padding:0; gap:1px; }
.editorial #language-tabs button { color:var(--ink); border-radius:0; font-weight:600; }
.editorial #language-tabs button[aria-pressed=true] { background:var(--signal-red); color:var(--chrome); }
.editorial .hero {
  position:relative; grid-template-columns:minmax(0,1fr) minmax(0,.48fr);
  gap:clamp(24px,7vw,110px);
  padding:clamp(42px,8vw,105px) 0 clamp(46px,7vw,85px);
  align-items:end;
}
.editorial .hero h1 {
  font-family:var(--display); font-size:clamp(52px,8.7vw,132px); font-weight:600;
  letter-spacing:-.085em; line-height:.85; overflow-wrap:break-word;
}
.editorial .hero h1 span, .editorial .hero h1 em { display:block; }
.editorial .hero h1 em { color:var(--signal-red); font-style:italic; font-weight:400; padding-inline-end:.09em; }
.editorial .hero .director { font:700 .9rem/1.4 var(--mono); color:var(--accent); margin:0 0 24px; }
.editorial .hero img { border-radius:0; max-width:none; aspect-ratio:4/5; object-position:center 34%; }
.editorial .portrait-plate { margin:0; position:relative; padding:7px; border:1px solid var(--line); }
.editorial .portrait-plate::before, .editorial .portrait-plate::after {
  content:""; position:absolute; width:15px; height:15px; pointer-events:none;
  border-color:var(--accent); inset-inline-start:-1px; inset-block-start:-1px;
  border-inline-start:2px solid var(--accent); border-block-start:2px solid var(--accent);
}
.editorial .portrait-plate::after {
  inset-inline:auto -1px; inset-block:auto -1px; border:0;
  border-inline-end:2px solid var(--accent); border-block-end:2px solid var(--accent);
}
.editorial .hero > div > p:not(.director):not(.eyebrow) { max-width:40ch; margin-block:27px 23px; }
.editorial .actions { gap:8px; }
.editorial .button {
  border:1px solid var(--ink); color:var(--ink); background:transparent;
  border-radius:0; font-size:.94rem; padding:9px 13px;
}
.editorial .button.primary { background:var(--signal-red); color:var(--chrome); border-color:var(--signal-red); }
.editorial .button:hover { background:var(--ink); color:var(--chrome); }
.editorial .overview-bars { block-size:clamp(8px,1vw,13px); border-radius:0; }
.editorial h2 {
  border-top:2px solid var(--ink); padding-block:22px 31px; line-height:.94;
  font:500 clamp(38px,6.3vw,90px)/.98 var(--display); letter-spacing:-.065em;
}
.editorial h3 { font:600 clamp(29px,4.1vw,60px)/.98 var(--display); letter-spacing:-.055em; }
.editorial h4 { font-size:1rem; margin-block:0 8px; }
.editorial .eyebrow {
  color:var(--accent); font:700 .78rem/1.4 var(--mono);
  letter-spacing:.105em; margin-block:0 9px; text-transform:uppercase;
}
.editorial .project-list { gap:0; }
.editorial .project,
.editorial .project:has(.still-set):not(:has(.screen)) {
  border:0; border-top:1px solid var(--line); border-radius:0; background:transparent;
  grid-template-columns:minmax(0,.78fr) minmax(0,1.5fr); gap:clamp(20px,4.8vw,70px);
  padding:clamp(24px,5vw,58px) 0; align-items:start;
}
.editorial .project .project-info { align-self:start; }
.editorial .project-info p:not(.eyebrow) { max-width:43ch; margin-block:15px 0; }
.editorial .project-info .credit { color:var(--signal-red); font-weight:700; }
.editorial #reel { border-top-color:var(--ink); }
.editorial .film-still img, .editorial .still-set img, .editorial .opin-gallery img,
.editorial .play-card, .editorial .play-card img, .editorial .reel-still img { border-radius:0; }
.editorial .play-card {
  background:var(--chrome); border:0; color:var(--ink); font-weight:700;
}
.editorial .play-card img { opacity:1; }
.editorial .play-label {
  color:var(--ink); background:#21171a; border:1px solid #9c6467; border-radius:0;
  display:inline-flex; align-items:center; padding:6px 11px;
  position:absolute; inset:auto auto 10px 10px;
}
.editorial .play-icon { color:#ffe182; }
.editorial .screen.portrait-screen .play-card { aspect-ratio:4/5; max-inline-size:460px; }
.editorial .screen.portrait-screen img { object-position:center 44%; }
.editorial .script-slate {
  color:var(--ink); background:var(--card); border-radius:0;
  box-shadow:inset 0 -25px var(--chrome);
}
.editorial #opin .project-info, .editorial #roborock .project-info, .editorial .opin-gallery,
.editorial .commercial-spread { grid-column:1/-1; }
.editorial .commercial-spread { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(9px,1.8vw,22px); }
.editorial .commercial-spread figure { margin:0; min-width:0; }
.editorial .commercial-spread .play-card { aspect-ratio:9/16; }
.editorial .commercial-spread .play-card img,
.editorial .commercial-spread .artwork img { object-fit:contain; width:100%; display:block; }
.editorial .commercial-spread figcaption { border-bottom:1px solid var(--line); padding:8px 0 11px; font-size:.93rem; }
.editorial .commercial-spread figcaption strong { display:block; line-height:1.24; }
.editorial .commercial-spread figcaption span { color:var(--muted); display:block; margin-top:4px; }
.editorial .commercial-spread .play-label { inset:auto auto 7px 7px; padding:5px 8px; }
.editorial .commercial-spread .play-icon { margin:0; }
.editorial .audio-work { display:grid; align-content:center; min-height:154px; border-block:1px solid var(--line); }
.editorial .audio-work audio { width:100%; display:block; color-scheme:dark; }
.editorial #screening { --ink:#f3f0e7; --card:#171416; --line:#775359; --mint:#ff8587; --blue:#ffd0d2; color-scheme:dark; }
.editorial #screening .button { color:var(--ink); border-color:var(--line); }
.editorial #screening [hidden] { display:none; }
.editorial .contact { border-top:2px solid var(--ink); }
.editorial .contact h2 { border:0; padding:0; }
.editorial a:focus-visible, .editorial button:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
[dir=rtl] .editorial :is(.hero h1,h2,h3) { letter-spacing:0; line-height:1.15; }
@media(max-width:850px) {
  .editorial .commercial-spread { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:700px) {
  .editorial .hero, .editorial .project,
  .editorial .project:has(.still-set):not(:has(.screen)) { grid-template-columns:minmax(0,1fr); }
  .editorial .hero { gap:22px; }
  .editorial .hero .portrait-plate { max-inline-size:min(67%,320px); justify-self:end; }
  .editorial .hero h1 { font-size:clamp(55px,12vw,83px); }
  .editorial .hero img { aspect-ratio:1/1; }
  .editorial .commercial-spread { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .editorial .screen.portrait-screen .play-card { aspect-ratio:1/1; max-inline-size:none; }
  .editorial #mama-mia .screen.short, .editorial #mama-mia .still-set { grid-column:auto; }
}
.editorial .moveat-plate { width:min(100%,660px); margin-inline:auto; }
.editorial #screening-stage #media-mount .provider-player {
  width:min(100%,1440px); height:auto; max-height:100%; aspect-ratio:16/9;
}
.editorial .commercial-spread #black-friday { scroll-margin-block-start:20px; }

.editorial #screening #timecode {
  background:var(--chrome, #080809); border:1px solid var(--line);
  color:#ffe182; padding:6px 9px; font-variant-numeric:tabular-nums; white-space:nowrap;
}
.editorial #screening #timecode::before { content:"TC"; color:#bac5b8; margin-inline-end:.55em; }
.editorial #screening #screening-loading .loading-slate {
  inline-size:clamp(160px,34vw,290px); min-block-size:clamp(80px,14vh,135px);
  border-radius:0; border-color:#ab7277; font-size:clamp(1.1rem,3vw,1.8rem);
}
.editorial #screening .slate-hinge {
  block-size:20px; inset-block-start:-20px; border-color:#ab7277;
}
.editorial #screening .slate-stripes {
  block-size:20px; border-bottom:1px solid #ab7277;
}
@media(max-width:400px) {
  .editorial #screening #timecode { padding-inline:5px; font-size:.8rem; }
  .editorial #screening #timecode::before { display:none; }
}

/* Broadcast color bars frame the page and section breaks. */
.editorial nav, .editorial .contact, .editorial main > section > h2 {
  border-image:var(--broadcast-bars) 1;
}
.editorial main {
  border-inline:1px solid var(--line);
  border-block-end:4px solid;
  border-image:var(--broadcast-bars) 1;
  border-image-width:0 0 4px;
}
.editorial .portrait-plate::after {
  inline-size:54px;
  block-size:4px;
  background:var(--broadcast-bars);
  border:0;
}
.editorial .play-label:dir(rtl) { inset: auto 10px 10px auto; }
.editorial #bananas .play-card { aspect-ratio:9/16; max-inline-size:380px; }
.editorial #bananas .play-card img { object-fit:contain; }
@media (max-width:700px) {
  .editorial nav a, .editorial #language-tabs button, .editorial .button {
    min-block-size:44px;
    align-content:center;
  }
  .editorial .hero .portrait-plate {
    inline-size:min(100%,420px);
    max-inline-size:none;
    justify-self:start;
  }
  .editorial .hero img { aspect-ratio:4/5; }
}

/* Keep each thumbnail's complete composition visible. */
body.editorial main .project .play-card img,
body.editorial main #opin .opin-gallery-lead img {
  object-fit:contain;
  object-position:center;
}
.editorial #bardo .play-card {
  aspect-ratio:9/16;
  max-inline-size:min(100%,380px);
}
.editorial #on-the-mic > .screen { grid-column:-2/-1; }
.editorial .slate-hinge::after {
  content:"";
  position:absolute;
  inset-block:0;
  inset-inline:calc(50% - 30px) auto;
  inline-size:60px;
  background:#0a0a0b url("/mamadu-productions.png") center / auto 90% no-repeat;
}
@media (prefers-reduced-motion:no-preference) {
  .editorial .script-slate:hover .slate-hinge {
    animation:clap .52s ease-out both;
  }
}
.logo-slate {display:grid;place-items:center;padding:1rem;background:#101111}
.logo-slate img {width:min(100%,17rem);height:auto;object-fit:contain}
.brz-group {min-width:0}
.editorial #on-the-mic {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));align-items:start}
.editorial #on-the-mic .project-info {grid-column:1/-1}
.editorial #on-the-mic > .screen {grid-column:auto;width:100%}
.editorial #on-the-mic .play-card {width:100%;aspect-ratio:16/9}
body.editorial #opin .moveat-plate img {width:100%;height:auto;aspect-ratio:auto;object-fit:contain}

/* Center the portfolio and keep media at a comfortable reading width. */
.editorial .hero {
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  text-align:center;
  gap:clamp(24px,4vw,48px);
}
.editorial .hero > div > p:not(.director):not(.eyebrow) { margin-inline:auto; }
.editorial .hero .actions { justify-content:center; }
.editorial .hero .portrait-plate {
  justify-self:center;
  width:min(100%,340px);
}
.editorial .hero h1 :is(span,em) { display:inline-block; margin-inline:.04em; }
.editorial .work-tabs {
  position:static;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:6px;
  margin-block:0 32px;
  padding-block:10px;
}
.editorial .work-tabs a {
  display:grid;
  place-items:center;
  min-height:44px;
  padding:7px clamp(8px,2vw,22px);
  border:1px solid var(--line);
  color:var(--ink);
  text-decoration:none;
}
.editorial .work-tabs a[aria-selected=true] {
  color:var(--chrome);
  background:var(--signal-red);
  border-color:var(--signal-red);
  font-weight:700;
}
.editorial .portfolio-panel[hidden] { display:none; }
.editorial .portfolio-panel {
  width:min(100%,920px);
  margin-inline:auto;
  text-align:center;
}
.editorial .work-subsection { margin-block:0 34px; }
.editorial .work-subsection > h3 {
  padding-block:12px;
  color:var(--accent);
  font:700 clamp(.9rem,2vw,1.2rem)/1.35 var(--mono);
  letter-spacing:0;
}
.editorial .portfolio-panel .project,
.editorial .portfolio-panel .project:has(.still-set):not(:has(.screen)) {
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  gap:clamp(16px,3vw,28px);
}
.editorial .portfolio-panel .project > :not(.project-info) { width:100%; }
.editorial .portfolio-panel .project-info p:not(.eyebrow) {
  max-width:62ch;
  margin-inline:auto;
}
.editorial .portfolio-panel .project-info h4 {
  font:600 clamp(1.75rem,4vw,3.25rem)/1.06 var(--display);
}
.editorial .portfolio-panel .play-card { margin-inline:auto; }
.editorial .portfolio-panel .media-caption { font-size:1rem; margin:0 0 8px; }
.editorial .portfolio-panel .audio-work { max-width:520px; }
.editorial .portfolio-panel #on-the-mic {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));
}
.editorial .contact { margin-inline:auto; text-align:center; }
