/* Align with the light, editorial case-study layout used by Newsworthy and Midnight Hospital.
   Design variance: 5 / motion: 1 / density: 3. Existing media and project facts are retained. */
:root {
  color-scheme: light;
  --page: #f8f8f5;
  --ink: #242421;
  --muted: #62625b;
  --line: #d6d6cf;
  --accent: #48604b;
  --panel: #efefe9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button { font: inherit; cursor: pointer; }
img, video { display: block; width: 100%; height: auto; }
figure { margin: 0; }
figcaption {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  max-width: 82ch;
  margin: 12px 0 0;
}
p { margin: 0 0 20px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.045em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(64px, 10.5vw, 142px); letter-spacing: -.065em; margin-left: -.055em; }
h2 { font-size: clamp(34px, 4vw, 55px); max-width: 20ch; }
h3 { font-size: 24px; line-height: 1.25; }
.wrap { width: min(1320px, calc(100% - 80px)); margin-inline: auto; }
.hero { padding-top: 27px; }
.premise { font-size: clamp(19px, 2vw, 25px); line-height: 1.4; max-width: 770px; margin: 24px 0 33px; }
.film { aspect-ratio: 16/9; background: #242421; object-fit: contain; }
.meta {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr;
  gap: 50px;
  padding: 38px 0 50px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.meta dl { margin: 0; }
.meta dt { color: var(--muted); font-size: 13px; margin-bottom: 9px; }
.meta dd { margin: 0; max-width: 43ch; }
.intro { max-width: 890px; margin: 60px 0 76px; }
.lead { font-size: clamp(23px, 2.7vw, 32px); line-height: 1.4; letter-spacing: -.025em; margin-bottom: 28px; }
.copy { max-width: 680px; }
.copy p:last-child { margin-bottom: 0; }
.decision { margin-bottom: 110px; }
.concept-group { margin-top: 48px; }
.concept-group:first-of-type { margin-top: 30px; }
.concept-group h3 { margin-bottom: 20px; }
.concepts { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; margin-top: 36px; align-items: start; }
.concepts--locations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.concepts img { aspect-ratio: 1088/608; object-fit: contain; }
.concepts + .copy { margin-top: 32px; }
.wide { margin-top: 36px; }
.cut-comparison { --cut-position: 50%; max-width: 1040px; }
.cut-labels { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cut-labels span:last-child { text-align: right; }
.cut-stage { position: relative; aspect-ratio: 1930/1080; overflow: hidden; background: var(--ink); }
.cut-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cut-windup { clip-path: inset(0 calc(100% - var(--cut-position)) 0 0); }
.cut-split { position: absolute; inset-block: 0; left: var(--cut-position); width: 2px; transform: translateX(-50%); background: var(--page); box-shadow: 0 0 0 1px rgb(36 36 33 / .5); pointer-events: none; }
.cut-control input { display: block; width: 100%; height: 32px; margin: 8px 0 0; accent-color: var(--accent); cursor: ew-resize; }
.cut-control input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.section-copy { margin-top: 28px; }
.wide + .copy { margin-top: 32px; }
.refinement { margin-top: 55px; }
.refinement h3 { margin-bottom: 20px; }
.credits { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; border-top: 1px solid var(--line); padding: 32px 0 45px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.credits p { margin: 0; }
.footer-row { margin-bottom: 40px; font-size: 13px; color: var(--muted); }
.skip { position: absolute; left: 24px; top: -100px; background: var(--page); padding: 12px; z-index: 1; }
.skip:focus { top: 12px; }
.image-open { display: block; width: 100%; padding: 0; background: none; border: 0; cursor: zoom-in; text-align: left; }
#image-dialog { color: var(--ink); background: var(--page); padding: 0; border: 1px solid var(--line); width: min(1600px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 40px); }
#image-dialog::backdrop { background: rgba(20, 26, 22, .72); }
.image-viewer { display: flex; flex-direction: column; max-height: calc(100dvh - 42px); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 20px; flex-shrink: 0; }
.viewer-toolbar p { font-size: 14px; line-height: 1.4; margin: 0; }
.viewer-toolbar button { color: var(--ink); background: none; border: 1px solid var(--line); padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.viewer-canvas { overflow: auto; min-height: 0; overscroll-behavior: contain; }
.viewer-canvas img { width: auto; max-width: 100%; max-height: calc(100dvh - 128px); margin-inline: auto; }
html:has(#image-dialog[open]) { overflow: hidden; }
@media (max-width: 767px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 36px); }
  .hero { padding-top: 24px; }
  h1 { font-size: clamp(52px, 12.5vw, 92px); }
  h2 { font-size: 37px; max-width: 18ch; }
  .premise { font-size: 19px; margin: 20px 0 28px; }
  .meta { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .meta dt { margin-bottom: 5px; }
  .intro { margin: 40px 0 54px; }
  .lead { font-size: 25px; }
  .decision { margin-bottom: 70px; }
  .concept-group, .refinement { margin-top: 38px; }
  .concepts, .concepts--locations { grid-template-columns: 1fr; gap: 30px; margin-top: 30px; }
  .wide { margin-top: 28px; }
  .cut-labels { font-size: 12px; gap: 16px; }
  .cut-control input { height: 44px; }
  .credits { grid-template-columns: 1fr; gap: 24px; padding: 25px 0; }
  .footer-row { margin-bottom: 24px; }
  figcaption { font-size: 12px; }
  #image-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); }
  .image-viewer { max-height: calc(100dvh - 26px); }
  .viewer-toolbar { padding: 12px; gap: 16px; }
  .viewer-toolbar p { font-size: 12px; }
}
@media print {
  .site-header, .skip, dialog { display: none !important; }
  .wrap { width: 100%; }
  .decision { break-inside: avoid; margin-bottom: 36px; }
}
