/* Film dossiers. Native scrolling connects a full frame to the reading room. */
.film-page main { padding-top: 0; overflow: clip; }
.film-page { --film-rule: #3b3d34; --film-quiet: #bcbdb1; }
.film-experience { isolation: isolate; }
.film-experience :where(h1, h2, h3) { text-wrap: balance; }
.film-experience :where(a, button):focus-visible { outline-color: var(--accent); }
.film-opening { position: relative; height: 100svh; min-height: 700px; background: var(--black); }
.film-stage { position: relative; height: 100svh; min-height: 700px; overflow: clip; isolation: isolate; }
.film-motion .film-opening { height: 160svh; min-height: 1080px; }
.film-motion .film-stage { position: sticky; top: 0; }
.film-visual { position: absolute; inset: -35px 0; background: #24271e; z-index: -3; }
.film-visual > img { width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(.75); }
.film-motion .film-visual { transform: translate3d(0, var(--film-image-y, 0px), 0) scale(var(--film-image-scale, 1.08)); }
.film-shade { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, #090c0bbb 0%, #090c0b00 40%, #090c0b55 60%, #090c0bee 100%), linear-gradient(90deg, #080d0b66, #080d0b00 80%); }
.film-hero-ui { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 112px var(--space) 62px; }
.film-motion .film-hero-ui { opacity: var(--film-ui-opacity, 1); transform: translate3d(0, var(--film-ui-y, 0px), 0); }
.film-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.film-back { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-size: 11px; line-height: 1.7; color: var(--paper); transition: color .25s; }
.film-back:hover { color: var(--accent); }
.film-hero-top > .eyebrow { font-size: 10px; letter-spacing: .12em; }
.film-hero-title { margin-top: auto; padding-top: 40px; max-width: 1200px; }
.film-hero-title > .eyebrow { font-size: 10px; letter-spacing: .14em; margin-bottom: 20px; color: #e9e9dd; }
.film-page .film-hero-title h1 { font-size: clamp(100px, 14.8vw, 240px); line-height: .83; letter-spacing: -.025em; text-wrap: initial; color: #f4f1e8; }
.film-hero-title h1 > span { display: block; }
.film-experience[data-film="littis-fahrschule"] .film-hero-title h1 { font-size: clamp(92px, 10.6vw, 180px); }
.film-experience[data-film="the-witness"] .film-hero-title h1 { font-size: clamp(92px, 12.6vw, 205px); }
.film-subtitle { margin-top: 17px; font-size: 11px; line-height: 1.7; letter-spacing: .13em; text-transform: uppercase; color: #e3e5da; }
.film-hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; padding-top: 36px; }
.film-logline { font-size: clamp(13px, 1.15vw, 16px); line-height: 1.85; max-width: 530px; color: #e5e5dc; }
.film-hero-bottom > .pill { flex-shrink: 0; }
.film-hero-bottom > button.pill svg { transform: none; width: 14px; height: 14px; fill: currentColor; stroke: none; }
.film-scroll { position: absolute; bottom: 12px; left: var(--space); right: var(--space); display: flex; justify-content: space-between; align-items: center; min-height: 34px; border-top: 1px solid #ffffff38; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: #d7d9cd; }
.film-scroll > span { font-size: 20px; color: var(--accent); transition: transform .3s; }
.film-scroll:hover > span { transform: translateY(3px); }
.film-matte { position: absolute; z-index: 2; left: 0; right: 0; height: 0; background: var(--black); pointer-events: none; }
.film-matte-top { top: 0; }
.film-matte-bottom { bottom: 0; }
.film-motion .film-matte { height: var(--film-matte, 0svh); }
.film-frame-label { position: absolute; z-index: 3; bottom: 6svh; left: var(--space); right: var(--space); text-align: center; color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: .2em; opacity: 0; pointer-events: none; }
.film-motion .film-frame-label { opacity: var(--film-label-opacity, 0); }

/* A graphic frame is deliberate for the project without approved photography. */
.film-graphic { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); overflow: hidden; background: #c1caa5; color: #192214; isolation: isolate; }
.film-graphic > i { display: block; height: 130%; margin-top: -15%; border-left: 1px solid #28351e66; background: linear-gradient(90deg, #192c1722, transparent 45%, #192c1733); transform: skewY(-13deg); }
.film-graphic > i:nth-child(even) { background: linear-gradient(90deg, #e3e7cd11, #e3e7cd66); transform: skewY(13deg); }
.film-graphic > span { position: absolute; z-index: -1; left: 50%; top: 44%; transform: translate(-50%, -50%); font: 600 24vw/.85 'Barlow Condensed', Impact, sans-serif; letter-spacing: -.04em; opacity: .38; white-space: nowrap; }
.film-experience[data-film="parallel"] .film-shade { background: linear-gradient(180deg, #101810c9, #1018102b 35%, #10181055 52%, #101810ef 100%); }
.film-experience[data-film="the-witness"] .film-visual { mask-image: linear-gradient(#000 65%, transparent 88%); }

/* The project rail stays available while the long-form detail is in view. */
.film-chapters { position: sticky; top: 88px; z-index: 35; display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 70px; padding: 0 var(--space); background: #101110f5; border-block: 1px solid var(--film-rule); backdrop-filter: blur(16px); }
.film-chapters > span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--film-quiet); }
.film-chapters > span > i { display: inline-block; width: 4px; height: 4px; margin: 0 12px 2px; background: var(--accent); }
.film-chapters > div { display: flex; align-self: stretch; gap: 36px; }
.film-chapters a { position: relative; display: flex; align-items: center; min-height: 54px; font-size: 11px; font-weight: 600; color: var(--film-quiet); transition: color .25s; }
.film-chapters a::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.film-chapters a:hover, .film-chapters a[aria-current="location"] { color: var(--accent); }
.film-chapters a:hover::after, .film-chapters a[aria-current="location"]::after { transform: scaleX(1); }
.film-story, .film-team, .film-screening { scroll-margin-top: 64px; }
.film-story { position: relative; padding: clamp(90px, 10vw, 160px) 0; background: var(--paper); color: var(--black); }
.film-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11%; align-items: start; }
.film-story-heading { min-width: 0; }
.film-story-heading > .eyebrow { color: #5a6050; margin-bottom: 29px; }
.film-page .film-story h2 { font-size: clamp(52px, 5.5vw, 88px); line-height: 1; max-width: 650px; text-wrap: balance; }
.film-role { border-top: 1px solid #10111035; margin-top: 42px; padding-top: 22px; max-width: 390px; }
.film-role > .eyebrow { display: block; font-size: 9px; letter-spacing: .1em; color: #5a6050; margin-bottom: 11px; }
.film-role > p { font-size: 13px; line-height: 1.9; color: #43493b; }
.film-story-copy { padding-top: 45px; min-width: 0; }
.film-story-copy > p { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.85; color: #34392e; }
.film-story-copy > p + p { margin-top: 25px; }
.film-editorial-note { margin-top: 30px; border-left: 2px solid #71804e; padding-left: 18px; font-size: 12px; line-height: 1.9; color: #555d48; }
.film-festival { margin-top: 35px; border-top: 1px solid #10111035; padding-top: 24px; font-size: 11px; line-height: 1.85; font-weight: 600; color: #4b543d; }
.film-festival .markers { color: #5b6c36; margin-right: 10px; }

/* The artwork keeps its own proportions; the credits are a scannable ledger. */
.film-team { padding: clamp(85px, 9vw, 145px) 0; background: #161813; }
.film-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11%; align-items: start; }
.film-artwork { min-width: 0; position: sticky; top: 185px; }
.film-artwork > img { width: 100%; height: auto; }
.film-artwork.is-poster { max-width: 485px; width: 100%; margin-inline: auto; }
.film-artwork.is-still > img { aspect-ratio: 1.08; object-fit: cover; }
.film-artwork.is-portrait { max-width: 460px; margin-inline: auto; }
.film-artwork.is-portrait > img { aspect-ratio: 3 / 4; }
.film-artwork.is-graphic > .film-graphic { aspect-ratio: .84; height: auto; }
.film-artwork .film-graphic > span { font-size: 8.5vw; }
.film-artwork figcaption { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--film-rule); margin-top: 20px; padding-top: 13px; color: var(--film-quiet); font-size: 10px; line-height: 1.75; }
.film-credits { min-width: 0; }
.film-credits > .eyebrow { color: var(--accent); margin-bottom: 26px; }
.film-page .film-credits h2 { font-size: clamp(55px, 6.3vw, 100px); line-height: .94; }
.film-credit-list { margin: 38px 0 0; }
.film-credit-list > div { display: grid; grid-template-columns: .7fr 1.3fr; gap: 9%; border-top: 1px solid var(--film-rule); padding: 21px 0; }
.film-credit-list dt { color: var(--film-quiet); font-size: 10px; line-height: 1.9; }
.film-credit-list dd { font-size: 14px; line-height: 1.85; margin: 0; }
.film-sources { border-block: 1px solid var(--film-rule); padding: 8px 0; margin-top: 18px; color: var(--film-quiet); font-size: 11px; line-height: 1.9; }
.film-sources summary { min-height: 44px; cursor: pointer; padding-block: 11px; transition: color .25s; }
.film-sources summary:hover { color: var(--accent); }
.film-sources > p { margin-block: 13px; font-size: 11px; line-height: 1.9; }
.film-sources a { display: inline-block; color: var(--paper); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #eeeae15e; overflow-wrap: anywhere; padding-block: 7px; }
.film-sources a:hover { color: var(--accent); }

/* The media section reads as a screening programme, with a generous first frame. */
.film-screening { background: var(--black); padding: clamp(85px, 9vw, 145px) 0; }
.film-screening-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; margin-bottom: 52px; }
.film-screening-heading .eyebrow { color: var(--film-quiet); margin-bottom: 26px; }
.film-page .film-screening-heading h2 { font-size: clamp(56px, 6.7vw, 108px); line-height: .95; max-width: 800px; }
.film-screening-heading > p { max-width: 300px; font-size: 13px; line-height: 1.9; color: var(--film-quiet); padding-bottom: 4px; }
.film-clips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.film-clips.count-1 { grid-template-columns: 1fr; }
.film-clips.count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 35px; }
.film-clips .clip-card { min-width: 0; }
.film-clips .clip-visual { aspect-ratio: 1.2; border: 1px solid var(--film-rule); border-radius: 0; }
.film-clips.count-1 .clip-visual { aspect-ratio: 2.1; }
.film-clips.count-2 .clip-visual { aspect-ratio: 1.32; }
.film-clips.count-3 .clip-card:nth-child(2) { margin-top: 50px; }
.film-clips.count-3 .clip-card:nth-child(3) { margin-top: 100px; }
.film-clips .clip-visual img { filter: saturate(.7) brightness(.9); transition: transform .9s var(--ease), filter .7s; }
.film-clips .clip-visual:hover img, .film-clips .clip-visual:focus-visible img { transform: scale(1.035); filter: saturate(1); }
.film-clips .clip-play { height: 70px; width: 70px; border-color: #eeeae180; }
.film-clips.count-1 .clip-play { height: 90px; width: 90px; }
.film-clips .clip-visual:focus-visible .clip-play { background: var(--accent); color: var(--black); border-color: var(--accent); }
.film-clips .clip-card > .eyebrow { margin-top: 23px; font-size: 9px; color: var(--film-quiet); }
.film-clips .clip-card > h3 { font-size: 32px; line-height: 1.15; margin-top: 9px; }
.film-clips.count-1 .clip-card > h3 { font-size: 40px; }
.film-clips .clip-project { font-size: 11px; line-height: 1.8; color: var(--film-quiet); }

/* The next project is a complete image-led destination, rather than a text link. */
.film-next { position: relative; background: var(--black); }
.film-next-link { display: block; position: relative; min-height: 570px; height: 70svh; max-height: 900px; overflow: clip; isolation: isolate; }
.film-next-visual, .film-next-shade { position: absolute; inset: 0; z-index: -2; }
.film-next-visual { transform: none; }
.film-motion .film-next-visual { transform: scale(var(--film-next-scale, 1.12)); }
.film-next-visual > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); transition: filter .7s, transform 1.15s var(--ease); }
.film-next-shade { z-index: -1; background: linear-gradient(180deg, #10111066, #10111011 25%, #101110bb 85%), linear-gradient(90deg, #10111066, transparent); }
.film-next-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 40px 54px; }
.film-next-top { display: flex; justify-content: space-between; gap: 30px; margin-bottom: auto; padding-bottom: 22px; border-bottom: 1px solid #ffffff50; }
.film-next-top .eyebrow { font-size: 10px; letter-spacing: .1em; }
.film-next-title { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.film-page .film-next-title h2 { font-size: clamp(70px, 10.5vw, 172px); line-height: .94; max-width: 1000px; text-wrap: balance; }
.film-next-title > span { flex-shrink: 0; width: 100px; height: 100px; border: 1px solid #eeeae177; border-radius: 50%; display: grid; place-items: center; font-size: 55px; font-family: Arial, sans-serif; line-height: 1; transition: background .35s, color .35s, transform .55s var(--ease), border-color .35s; }
.film-next-content > p { font-size: 11px; letter-spacing: .06em; line-height: 1.8; text-transform: uppercase; margin-top: 27px; color: #d4d7c9; }
.film-next-link:hover .film-next-visual > img, .film-next-link:focus-visible .film-next-visual > img { filter: saturate(.95); transform: scale(1.025); }
.film-next-link:hover .film-next-title > span, .film-next-link:focus-visible .film-next-title > span { background: var(--accent); color: var(--black); border-color: var(--accent); transform: rotate(45deg); }
.film-next-link:focus-visible { outline-offset: -8px; }

@media (min-width: 1800px) {
  .film-hero-ui { padding-top: 135px; padding-bottom: 80px; }
  .film-hero-bottom { padding-top: 48px; }
  .film-scroll { bottom: 21px; }
}
@media (max-width: 1050px) {
  .film-hero-title { max-width: 95%; }
  .film-hero-bottom { gap: 30px; }
  .film-logline { max-width: 490px; font-size: 13px; }
  .film-chapters { gap: 20px; }
  .film-chapters > div { gap: 24px; }
  .film-chapters > span { font-size: 9px; }
  .film-story-grid, .film-team-grid { gap: 7%; }
  .film-story-copy > p { font-size: 17px; }
  .film-credit-list > div { grid-template-columns: .7fr 1.3fr; gap: 6%; }
  .film-credit-list dd { font-size: 13px; }
  .film-screening-heading { gap: 30px; }
  .film-screening-heading > p { max-width: 250px; font-size: 12px; }
  .film-clips { gap: 20px; }
  .film-clips .clip-card > h3 { font-size: 27px; }
  .film-next-title > span { width: 78px; height: 78px; font-size: 42px; }
}
@media (max-width: 700px) {
  .film-experience[data-film="hijamat"] .film-visual > img { object-position: 40% 45% !important; }
  .film-experience[data-film="littis-fahrschule"] .film-visual > img { object-position: 34% 50% !important; }
  .film-opening, .film-stage { height: 100svh; min-height: 680px; }
  .film-motion .film-opening { height: 145svh; min-height: 970px; }
  .film-hero-ui { padding: 92px 22px 66px; }
  .film-hero-top { gap: 15px; }
  .film-back { font-size: 10px; gap: 8px; }
  .film-hero-top > .eyebrow { font-size: 8px; white-space: nowrap; }
  .film-hero-title { max-width: 100%; padding-top: 50px; }
  .film-hero-title > .eyebrow { font-size: 8px; letter-spacing: .1em; margin-bottom: 19px; }
  .film-page .film-hero-title h1 { font-size: clamp(82px, 24vw, 150px); line-height: .87; }
  .film-experience[data-film="littis-fahrschule"] .film-hero-title h1 { font-size: clamp(58px, 17vw, 110px); }
  .film-experience[data-film="the-witness"] .film-hero-title h1 { font-size: clamp(67px, 20vw, 130px); }
  .film-subtitle { font-size: 9px; letter-spacing: .08em; margin-top: 15px; }
  .film-hero-bottom { display: block; padding-top: 25px; }
  .film-logline { font-size: 12px; line-height: 1.85; max-width: 480px; }
  .film-hero-bottom > .pill { margin-top: 23px; min-height: 48px; font-size: 10px; }
  .film-scroll { left: 22px; right: 22px; bottom: 12px; font-size: 8px; }
  .film-frame-label { left: 22px; right: 22px; font-size: 8px; letter-spacing: .15em; }
  .film-shade { background: linear-gradient(180deg, #090c0bcc, #090c0b00 30%, #090c0b33 43%, #090c0be0 75%, #090c0bf5); }
  .film-graphic > span { font-size: 34vw; top: 36%; }
  .film-chapters { top: 76px; min-height: 60px; padding: 0 22px; gap: 0; }
  .film-chapters > span { display: none; }
  .film-chapters > div { width: 100%; justify-content: space-between; gap: 12px; }
  .film-chapters a { min-height: 59px; font-size: 10px; white-space: nowrap; }
  .film-story, .film-team, .film-screening { scroll-margin-top: 56px; }
  .film-story { padding: 70px 0 75px; }
  .film-story-grid { display: flex; flex-direction: column; gap: 0; }
  .film-story-heading > .eyebrow { font-size: 9px; margin-bottom: 25px; }
  .film-page .film-story h2 { font-size: clamp(44px, 12vw, 70px); line-height: 1.03; }
  .film-role { margin-top: 29px; padding-top: 19px; max-width: 100%; }
  .film-role > .eyebrow { font-size: 8px; margin-bottom: 10px; }
  .film-role > p { font-size: 12px; }
  .film-story-copy { padding-top: 33px; }
  .film-story-copy > p { font-size: 16px; line-height: 1.9; }
  .film-story-copy > p + p { margin-top: 23px; }
  .film-editorial-note { margin-top: 25px; font-size: 11px; padding-left: 15px; }
  .film-festival { font-size: 10px; margin-top: 28px; padding-top: 21px; }
  .film-team { padding: 65px 0 70px; }
  .film-team-grid { display: flex; flex-direction: column; gap: 52px; }
  .film-artwork { position: relative; top: auto; width: 100%; }
  .film-artwork.is-poster { max-width: 390px; }
  .film-artwork.is-still > img { aspect-ratio: 1.15; }
  .film-artwork.is-portrait { max-width: 390px; }
  .film-artwork.is-portrait > img { aspect-ratio: 3 / 4; }
  .film-artwork.is-graphic > .film-graphic { aspect-ratio: 1.1; }
  .film-artwork .film-graphic > span { font-size: 23vw; }
  .film-artwork figcaption { font-size: 9px; margin-top: 15px; padding-top: 12px; }
  .film-credits { width: 100%; order: -1; }
  .film-credits > .eyebrow { font-size: 9px; margin-bottom: 23px; }
  .film-page .film-credits h2 { font-size: clamp(56px, 15vw, 90px); }
  .film-credit-list { margin-top: 29px; }
  .film-credit-list > div { grid-template-columns: .75fr 1.25fr; gap: 6%; padding: 18px 0; }
  .film-credit-list dt { font-size: 10px; }
  .film-credit-list dd { font-size: 12px; line-height: 1.9; }
  .film-sources { font-size: 10px; margin-top: 15px; }
  .film-sources > p { font-size: 10px; }
  .film-screening { padding: 65px 0 75px; }
  .film-screening-heading { display: block; margin-bottom: 32px; }
  .film-screening-heading .eyebrow { font-size: 9px; margin-bottom: 23px; }
  .film-page .film-screening-heading h2 { font-size: clamp(49px, 13vw, 78px); line-height: 1; }
  .film-screening-heading > p { max-width: 100%; font-size: 12px; margin-top: 22px; padding: 0; }
  .film-clips, .film-clips.count-1, .film-clips.count-2 { display: grid; grid-template-columns: 1fr; gap: 35px; }
  .film-clips.count-3 .clip-card:nth-child(n) { margin-top: 0; }
  .film-clips .clip-visual, .film-clips.count-1 .clip-visual, .film-clips.count-2 .clip-visual { aspect-ratio: 1.45; }
  .film-clips .clip-play, .film-clips.count-1 .clip-play { width: 58px; height: 58px; }
  .film-clips .clip-card > .eyebrow { margin-top: 18px; font-size: 8px; }
  .film-clips .clip-card > h3, .film-clips.count-1 .clip-card > h3 { font-size: 29px; }
  .film-clips .clip-project { font-size: 10px; }
  .film-next-link { height: 63svh; min-height: 470px; max-height: 700px; }
  .film-next-content { padding-block: 26px 36px; }
  .film-next-top { padding-bottom: 19px; gap: 18px; }
  .film-next-top .eyebrow { font-size: 8px; }
  .film-next-title { gap: 20px; align-items: flex-end; }
  .film-page .film-next-title h2 { font-size: clamp(48px, 14vw, 85px); line-height: .98; overflow-wrap: anywhere; }
  .film-next-title > span { width: 47px; height: 47px; font-size: 27px; margin-bottom: 4px; }
  .film-next-content > p { font-size: 9px; line-height: 1.9; margin-top: 21px; }
}
@media (max-width: 370px) {
  .film-hero-ui { padding-inline: 19px; }
  .film-page .film-hero-title h1 { font-size: 23.5vw; }
  .film-experience[data-film="littis-fahrschule"] .film-hero-title h1 { font-size: 16.8vw; }
  .film-experience[data-film="the-witness"] .film-hero-title h1 { font-size: 19vw; }
  .film-logline { font-size: 11px; }
  .film-chapters { padding-inline: 19px; }
  .film-chapters a { font-size: 9px; }
  .film-page .film-story h2 { font-size: 12vw; }
  .film-story-copy > p { font-size: 15px; }
  .film-next-title { gap: 12px; }
  .film-next-title > span { width: 40px; height: 40px; font-size: 24px; }
}

/* Browser-native navigation is brief and only enabled when motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 240ms; animation-timing-function: ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .film-motion .film-visual, .film-motion .film-hero-ui { transform: none; opacity: 1; }
  .film-motion .film-matte, .film-motion .film-frame-label { display: none; }
  .film-experience *, .film-experience *::before, .film-experience *::after { transition: none !important; }
  .film-motion .film-next-visual, .film-next-link:hover .film-next-visual > img, .film-next-link:focus-visible .film-next-visual > img { transform: none; }
  .film-next-link:hover .film-next-title > span, .film-next-link:focus-visible .film-next-title > span, .film-scroll:hover > span { transform: none; }
  .film-clips .clip-visual:hover img, .film-clips .clip-visual:focus-visible img { transform: none; }
}
