.process-story {
  --process-inset: clamp(56px, 7vh, 88px);
  --header-allowance: 0px;
  display: grid;
  grid-template-rows: 1fr auto 3fr;
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  background: var(--site-background);
  color: #faf8f3;
}
.cinema-home .process-story { --header-allowance: 4px; }
body:not(.cinema-home) #film-process { scroll-margin-block-start: -55px; }
/* The standalone page opens underneath its overlaid header. */
body:not(.cinema-home) main > .process-story:first-child { --header-allowance: 52px; }
@media (max-width: 1100px) {
  body:not(.cinema-home) main > .process-story:first-child { --header-allowance: 37px; }
}
.process-backdrop, .process-layout { grid-column: 1; min-width: 0; }
.process-backdrop {
  grid-row: 1 / -1;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100svh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.process-backdrop video { width: 100%; height: 100%; object-fit: cover; }
.process-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(50,52,65,.70), rgba(36,38,49,.56) 36%, rgba(50,52,65,.93) 83%, var(--site-background));
}
.process-layout {
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(16px, 1.7vw, 34px);
  box-sizing: border-box;
  align-self: center;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: var(--site-gutter);
  padding-block: calc(var(--process-inset) + var(--header-allowance))
                calc(36px + var(--process-inset) - var(--header-allowance));
}
.process-sheet { display: contents; }
.process-intro, .process-draft-note { grid-column: 1 / -1; }
.process-copy-short { display: none; }
.process-intro { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: clamp(24px, 4vh, 48px); }
.process-intro :is(h1,h2) { margin: 0; font-size: clamp(58px, 6.3vw, 118px); line-height: .93; letter-spacing: -.025em; font-weight: 300; }
.process-motion { flex: none; padding: 8px 0; min-height: 44px; color: #fff; font: inherit; font-size: 19px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 5px; }
.process-motion:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.process-stages { padding: 0; margin: 0; list-style: none; display: grid; grid-column: span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.7vw, 34px); }
.process-frame { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--site-background); }
.process-frame picture, .process-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.process-frame > span { position: absolute; bottom: 0; left: 0; padding: 4px 12px 6px; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; color: white; background: var(--site-background); }
.process-stages :is(h2,h3) { margin: 15px 0 8px; font-size: clamp(29px, 2.35vw, 46px); font-weight: 450; line-height: 1.02; letter-spacing: -.01em; }
.process-stages p { margin: 0; max-width: 34ch; font-size: clamp(20px, 1.45vw, 28px); line-height: 1.24; color: #e2dfdb; }
.process-apps { margin: 13px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 13px; list-style: none; }
.process-apps li { display: inline-flex; align-items: center; gap: 5px; font-size: 18px; }
.process-apps img { width: 19px; height: 19px; object-fit: contain; }
.process-apps img[src$=".svg"] { filter: brightness(0) invert(1); }
.process-draft-note { margin: 16px 0 0; font-size: 17px; color: #c1c1bb; }
.page-content.process-details { padding-top: 0; }
@media (min-width: 1001px) {
  .process-layout { max-width: none; }
  .process-layout, .process-stages { column-gap: clamp(12px, 1vw, 24px); }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .process-layout { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .process-stages[start] { margin-top: 32px; }
}
@media (max-width: 700px), (orientation: portrait) and (max-width: 950px) {
  .process-story { grid-template-rows: auto; --sheet-lift: 40px; }
  .cinema-home .process-story { --sheet-lift: 50px; }
  body:not(.cinema-home) main > .process-story:first-child { --sheet-lift: 3px; }
  .process-layout, .process-backdrop { grid-row: 1; }
  .process-layout { display: block; align-self: start; max-width: 600px; padding-block: 0 20px; }
  .process-sheet { display: block; padding-block: 14px; }
  .process-sheet:first-child {
    min-height: calc(100svh - var(--sheet-lift));
    padding-block: calc(max(80px, env(safe-area-inset-top) + 58px) - var(--sheet-lift)) 12px;
    display: flex;
    flex-direction: column;
  }
  .process-intro { align-items: center; gap: 8px; margin: 0 0 6px; }
  .process-intro :is(h1,h2) { font-size: clamp(29px, 8.2vw, 45px); }
  .process-motion {
    font-size: 0; padding: 0; width: 44px; height: 44px;
    display: inline-grid; place-items: center; text-decoration: none;
  }
  .process-motion[hidden] { display: none; }
  .process-motion::before { content: ""; width: 0; height: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
  .process-motion.is-playing::before { width: 10px; height: 13px; border: 0; border-inline: 3px solid currentColor; box-sizing: border-box; }
  .process-stages, .process-stages[start] { grid-template-columns: minmax(0,1fr); margin: 0; gap: 15px; }
  .process-sheet:first-child .process-stages { flex: 1; align-content: space-evenly; }
  .process-frame { aspect-ratio: 21 / 9; }
  .process-frame > span { font-size: 17px; padding: 2px 7px 4px; }
  .process-stages :is(h2,h3) { margin: 6px 0 3px; font-size: clamp(24px,6.6vw,32px); }
  .process-stages p { max-width: none; font-size: 19px; line-height: 1.1; }
  .process-copy-full { display: none; }
  .process-copy-short { display: block; }
  .process-apps { margin-top: 5px; gap: 2px 12px; }
  .process-apps li { font-size: 16px; }
  .process-apps img { width: 15px; height: 15px; }
  .process-draft-note { margin-top: 12px; }
  .process-backdrop::after { background: rgba(50,52,65,.86); }
}
@media (max-width: 700px) and (max-height: 660px) {
  .process-frame { max-width: min(100%, calc((100svh - 326px) * 1.16)); margin-inline: auto; }
  .process-sheet:first-child { padding-bottom: 5px; }
  .process-stages { gap: 10px; }
}
@media (prefers-reduced-motion: no-preference) {
  .process-stage-enter { animation: process-enter .62s ease-out both; animation-delay: var(--enter-delay, 0s); }
  @keyframes process-enter {
    from { transform: translateY(12px); opacity: .35; }
    to { transform: translateY(0); opacity: 1; }
  }
}

.process-frame > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-process-action { grid-column: 1 / -1; margin-top: 20px; }
