/* Production side (P&C and film), on top of site.css. Built from production vernacular: the widescreen frame, the
   clapperboard slate, stripboard scene strips and tungsten light. Loaded only on pages with side = "production". */

.side-production {
  --slate: #1b1f26;          /* the slate board */
  --slate-2: #262b34;
  --slate-3: #353b46;
  --chalk: #f3f1ec;          /* writing on the slate */
  --chalk-muted: #c3c8d0;
  --tungsten: #f2a541;       /* tungsten light: primary action */
  --tungsten-dark: #d98a22;
  --paper: #f8f7f4;
  --ink: #1b1f26;
  --eagle: #1d5a8c;          /* links on light backgrounds */
  --sky: #eeece6;            /* light bands on this side are warm grey, like gaffer tape and card stock */
  --sky-2: #e1ded6;
  --line: #d9d5cc;
  --muted: #545b66;
  --strip-1: #f3d35b;        /* stripboard colours: day exterior */
  --strip-2: #9cc7e8;        /* night */
  --strip-3: #a9d8a6;        /* day interior */
  --strip-4: #f2b3c6;        /* special */
  --condensed: "Barlow Condensed", "Bahnschrift Condensed", "Arial Narrow", sans-serif;
  background: var(--paper);
}
.side-production h1, .side-production h2, .side-production h3 { font-family: var(--condensed); font-weight: 700; letter-spacing: 0; line-height: 1.02; }
.side-production h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.side-production h2 { font-size: clamp(2rem, 4vw, 3rem); }
.side-production h3 { font-size: 1.45rem; }
.side-production :focus-visible { outline-color: var(--tungsten); }
.side-production ::selection { background: var(--tungsten); color: var(--slate); }

/* Header: the slate, with clapper sticks along the bottom edge */
.masthead-production { background: var(--slate); border-bottom: 0; }
.masthead-production::after { content: ""; display: block; height: 7px; background: repeating-linear-gradient(-45deg, var(--chalk) 0 14px, var(--slate) 14px 28px); }
.masthead-production .brand { color: var(--chalk); font-family: var(--condensed); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.005em; }
.masthead-production .brand:hover { color: var(--chalk); }
.masthead-production .brand em { font-style: normal; color: var(--tungsten); }
.masthead-production .nav a:not(.btn) { color: var(--chalk); }
.masthead-production .nav a:not(.btn):hover { color: var(--tungsten); background: var(--slate-2); }
.masthead-production .nav a:not(.btn)[aria-current="page"] { color: var(--tungsten); background: var(--slate-2); box-shadow: inset 0 -2px 0 var(--tungsten); }
.masthead-production .menu summary { color: var(--chalk); border-color: var(--slate-3); }
.side-production .btn-primary { background: var(--tungsten); color: var(--slate); }
.side-production .btn-primary:hover { background: var(--tungsten-dark); color: var(--slate); }
.side-production .btn-quiet { border-color: var(--slate); color: var(--slate); }
.side-production .btn-quiet:hover { background: var(--slate); color: var(--chalk); }
.side-production .dark .btn-quiet, .side-production .p-hero .btn-quiet { border-color: var(--chalk-muted); color: var(--chalk); }
.side-production .dark .btn-quiet:hover, .side-production .p-hero .btn-quiet:hover { background: var(--chalk); color: var(--slate); }
.side-production .steps > li::before { background: var(--tungsten); color: var(--slate); font-family: var(--condensed); font-size: 1.2rem; }
.side-production .steps strong { font-family: var(--condensed); font-size: 1.3rem; font-weight: 700; }

/* Hero: the opening frame. A widescreen (2.39:1) still on the slate, opening from a tighter letterbox on load. */
.p-hero { background: var(--slate); color: var(--chalk); padding-bottom: clamp(3rem, 7vw, 5rem); }
.p-frame { position: relative; aspect-ratio: 2.39 / 1; max-height: 74vh; width: 100%; overflow: hidden; }
.p-frame .ph { position: absolute; inset: 0; height: 100%; }
.p-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(27 31 38 / 0.95) 0%, rgb(27 31 38 / 0.35) 38%, rgb(27 31 38 / 0) 60%); }
.p-frame-title { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(1.25rem, 4vw, 3rem); }
.p-hero h1 { color: var(--chalk); max-width: 22ch; margin: 0; }
.p-hero .lede { color: var(--chalk-muted); }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-top: clamp(1.75rem, 4vw, 2.75rem); }
@media (prefers-reduced-motion: no-preference) {
  .p-frame { animation: letterbox 1400ms 100ms var(--ease-out) both; }
  .p-frame .ph img { animation: settle 2200ms var(--ease-out) both; }
}
@keyframes letterbox { from { clip-path: inset(17% 0 17% 0); } to { clip-path: inset(0 0 0 0); } }

/* The slate: the quote checklist drawn as a clapperboard */
.slate { background: #121519; border-radius: var(--r-sm); padding: 0 1.4rem 1.25rem; box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.7); margin-top: clamp(-6rem, -8vw, -3rem); position: relative; z-index: 2; }
.slate-sticks { height: 22px; margin: 0 -1.4rem 1rem; border-radius: var(--r-sm) var(--r-sm) 0 0; background: repeating-linear-gradient(-45deg, var(--chalk) 0 18px, #121519 18px 36px); }
.slate h2 { color: var(--tungsten); font-size: 1.5rem; margin-bottom: 0.6rem; }
.slate dl { margin: 0; }
.slate dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.6rem 0; border-top: 1px solid #2f343d; }
.slate dt { font-family: var(--condensed); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--chalk); }
.slate dd { margin: 0; color: var(--chalk-muted); }

.p-section { padding-top: var(--section); padding-bottom: var(--section); }
.p-band { background: var(--sky); padding: var(--section) 0; }
.dark { background: var(--slate); color: var(--chalk-muted); }
.dark h2, .dark h3 { color: var(--chalk); }
.dark a:not(.btn) { color: var(--chalk); }
.dark .lede { color: var(--chalk-muted); }
.dark .steps strong { color: var(--chalk); }

/* Who we work with: lanes as cards beside a working photograph */
.p-lanes-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.p-lanes-grid .ph { border-radius: var(--r); aspect-ratio: 3 / 4; }
.p-lanes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.75rem; }
.p-lanes a { display: block; height: 100%; padding: 1.1rem 1.2rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: inset 0 4px 0 var(--tungsten); text-decoration: none; color: var(--text); transition: border-color 150ms ease-out, box-shadow 200ms ease-out; }
.p-lanes a:hover { border-color: var(--slate); box-shadow: inset 0 4px 0 var(--tungsten), var(--shadow); }
.p-lanes strong { display: block; color: var(--ink); font: 700 1.35rem/1.1 var(--condensed); margin-bottom: 0.35rem; }
.p-lanes span { font-size: 0.95rem; color: var(--muted); }

/* Coverage as a stripboard: one coloured strip per coverage line */
.stripboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.stripboard-grid .ph { border-radius: var(--r); aspect-ratio: 4 / 5; position: sticky; top: 6rem; }
.stripboard { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 0.4rem; }
.strip { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 1rem; align-items: baseline; padding: 0.8rem 1rem 0.8rem 1.25rem; background: #fff; border-radius: 3px; box-shadow: inset 10px 0 0 var(--strip-1); }
.strip strong { font: 700 1.25rem/1.15 var(--condensed); color: var(--ink); }
.strip span { font-size: 0.97rem; }
.strip-1 { box-shadow: inset 10px 0 0 var(--strip-1); }
.strip-2 { box-shadow: inset 10px 0 0 var(--strip-2); }
.strip-3 { box-shadow: inset 10px 0 0 var(--strip-3); }
.strip-4 { box-shadow: inset 10px 0 0 var(--strip-4); }

/* Widescreen stills used through the side */
.still { border-radius: var(--r-sm); overflow: hidden; }
.still .ph { aspect-ratio: 2.39 / 1; }
.split .still .ph { aspect-ratio: 4 / 3.2; }
.p-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.p-split .ph { border-radius: var(--r); aspect-ratio: 4 / 3.3; }
.side-production .page-head .ph { border-radius: var(--r); aspect-ratio: 2.39 / 1.4; }
.side-production .page-head { background: var(--slate); border-bottom: 0; color: var(--chalk-muted); }
.side-production .page-head h1 { color: var(--chalk); }
.side-production .page-head .lede, .side-production .page-head .post-meta, .side-production .page-head .crumbs { color: var(--chalk-muted); }
.side-production .page-head a:not(.btn) { color: var(--chalk); }
.side-production .page-head .btn-quiet { border-color: var(--chalk-muted); color: var(--chalk); }

/* Closing frame */
.p-closing { position: relative; background: var(--slate); overflow: hidden; }
.p-closing .ph { position: absolute; inset: 0; height: 100%; }
.p-closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(27 31 38 / 0.94) 0%, rgb(27 31 38 / 0.7) 45%, rgb(27 31 38 / 0.1) 100%); }
.p-closing .wrap { position: relative; z-index: 1; padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(4.5rem, 10vw, 8rem); color: var(--chalk-muted); }
.p-closing h2 { color: var(--chalk); max-width: 16ch; }
.p-closing p { max-width: 46ch; font-size: 1.1rem; }
.p-closing a:not(.btn) { color: var(--chalk); }

.side-production .cta-line { background: var(--sky); }
.side-production .author { background: var(--sky); }
.side-production .paths.stacked .path strong { font: 700 1.35rem/1.1 var(--condensed); }
.side-production .footer { background: var(--slate); color: var(--chalk-muted); }
.side-production .footer a { color: var(--chalk); }
.side-production .footer-brand { color: var(--chalk); font-family: var(--condensed); font-size: 1.35rem; }
.side-production .disclaimer { color: var(--chalk-muted); border-top-color: var(--slate-3); }
.side-production mark.needs { color: #1b1b1b; }
.side-production .post-list li:hover { border-color: var(--slate); }
.side-production .post-list li:hover a { color: var(--ink); }

@media (max-width: 860px) {
  .p-hero-grid, .strip, .p-lanes-grid, .stripboard-grid, .p-split { grid-template-columns: minmax(0, 1fr); }
  .p-frame { aspect-ratio: 4 / 3.4; max-height: none; }
  .p-lanes-grid .ph { aspect-ratio: 16 / 9; }
  .stripboard-grid .ph { position: static; aspect-ratio: 16 / 9; }
  .slate { margin-top: 0.5rem; }
  .strip { gap: 0.2rem; }
  .masthead-production .brand { font-size: 1.15rem; }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  @keyframes letterbox { from { clip-path: inset(10% 0 10% 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Production risk profile: the form beside a live coverage map; one section at a time when JavaScript runs. */
.rp { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.rp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; margin-top: 2rem; }
.rp-form fieldset.rp-step { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.rp-form .rp-title { font: 700 1.7rem/1.1 var(--condensed); color: var(--ink); margin-bottom: 0.75rem; }
.rp-intro { margin-top: 0; }
.rp-form.stepped .rp-step { display: none; }
.rp-form.stepped .rp-step.rp-current { display: block; }
.rp-form .rp-step[hidden], .rp-form [data-lanes][hidden] { display: none; }
.rp-progress { font: 600 1.05rem var(--condensed); color: var(--muted); margin: 0 0 0.5rem; }
.rp-nav { display: flex; gap: 0.75rem; justify-content: space-between; margin-top: 1rem; }
.rp-nav .btn[hidden] { display: none; }
.side-production .rp-nav .btn-quiet { border-color: var(--slate); color: var(--ink); }
.rp-nav .btn-primary:only-child, .rp-nav .btn[hidden] + .btn-primary { margin-left: auto; }
.lanes { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
.lead-form .lane { display: flex; align-items: center; font-weight: 600; padding: 0.9rem 1rem; border: 1.5px solid #9aa1aa; border-radius: var(--r-sm); background: #fff; cursor: pointer; transition: border-color 150ms ease-out; }
.lead-form .lane:hover { border-color: var(--slate); }
.lead-form .lane:has(input:checked) { border-color: var(--slate); box-shadow: inset 5px 0 0 var(--tungsten); }
.lead-form fieldset.answer { margin: 0 0 1.1rem; }
.lead-form fieldset.answer legend { font-weight: 650; }
.answer-row { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.answer-row label { display: inline-flex; align-items: center; margin: 0; }
.rp-docs { background: var(--sky); padding: 1rem 1.2rem; border-radius: var(--r-sm); margin: 0 0 1.25rem; }
.rp-docs p { margin-top: 0; }
.rp-docs ul { margin-bottom: 0; }
.rp-map { position: sticky; top: 6rem; background: var(--slate); color: var(--chalk); border-radius: var(--r); padding: 1.2rem 1.3rem; }
.rp-map h2 { color: var(--chalk); margin-top: 0; font-size: 1.6rem; }
.rp-map .hint { color: var(--chalk-muted); font-size: 0.875rem; }
.rp-map a { color: var(--chalk); }
.rp-map ul { list-style: none; padding: 0; margin: 0 0 0.75rem; }
.rp-map li { padding: 0.45rem 0; border-top: 1px solid var(--slate-3); }
.rp-map li strong { display: block; }
.rp-why { display: block; font-size: 0.85rem; color: var(--chalk-muted); }
.rp-status { font-size: 1rem; margin: 0.9rem 0 0.25rem; padding-left: 0.7rem; box-shadow: inset 6px 0 0 var(--chalk-muted); color: var(--chalk); }
.rp-status.rp-required { box-shadow: inset 6px 0 0 var(--strip-4); }
.rp-status.rp-core { box-shadow: inset 6px 0 0 var(--strip-1); }
.rp-status.rp-recommended { box-shadow: inset 6px 0 0 var(--strip-3); }
.rp-status.rp-specialty { box-shadow: inset 6px 0 0 var(--strip-2); }
.rp-map-empty { color: var(--chalk-muted); }
@media (max-width: 900px) { .rp-layout { grid-template-columns: 1fr; } .rp-map { position: static; } }

/* What can stop your shoot? coverage explained by scenario, grouped like a producer thinks. */
.cov-group { margin: 3rem 0; }
.cov-lede { color: var(--muted); max-width: var(--measure); }
.cov-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.cov { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.1rem 1.2rem; box-shadow: inset 0 6px 0 var(--strip-1); }
.cov-group:nth-of-type(2n) .cov { box-shadow: inset 0 6px 0 var(--strip-2); }
.cov-group:nth-of-type(3n) .cov { box-shadow: inset 0 6px 0 var(--strip-3); }
.cov h3 { margin: 0.25rem 0 0.5rem; font-size: 1.4rem; }
.cov p { margin: 0 0 0.5rem; }
.cov-scene { font-style: italic; }
.cov-tag { font: 700 0.85rem var(--condensed); font-style: normal; letter-spacing: 0.04em; background: var(--slate); color: var(--chalk); padding: 0.1rem 0.45rem; border-radius: 3px; margin-right: 0.3rem; }
