@import url("https://fonts.googleapis.com/css2?family=Marcellus&family=Spectral:ital,wght@0,400;1,400&display=swap");
/* The engraved objects stay visible while browsing both directions. */
.film-charm { display: block; flex: 0 0 auto; width: clamp(64px,6vw,88px); height: clamp(64px,6vw,88px); padding: 8px; color: #f5eddc; background:transparent; transform:none; box-shadow:none; transition: transform .25s; }
.film-charm .engraved-charm { width: 100%; height: 100%; }
.title-button { display: flex; align-items: flex-start; gap: clamp(20px,2.5vw,40px); }
.title-lettering { min-width: 0; }
.title-button .film-charm { margin-top: 5px; }
.title-button:hover .film-charm, .title-button:focus-visible .film-charm { transform:none; }
.programme-charm { width: clamp(58px,5.8vw,78px); height: clamp(58px,5.8vw,78px); margin: 2px 0 0 7px; opacity: .8; }
.programme-row.is-active .programme-charm, .programme-row:focus-within .programme-charm, .programme-row:hover .programme-charm { opacity: 1; transform:none; }

/* A quiet close to the work, with no promotional headline. */
.work-ending, :root[data-direction="programme"] .work-ending { min-height: 0; padding: 26px var(--pad) 30px; }
.work-ending .site-footer { border-top: 0; padding-top: 0; }
.contact-heading, .director-sheet .contact-heading { margin-bottom: 34px; }
.contact-heading>a { display: inline-block; }

/* Every film opens in its own viewport-filling screening room. */
.player-dialog { background: #090a09; }
.film-window { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0,1fr); color: #eee9df; background: #090a09; }
.film-window:fullscreen { width: 100vw; height: 100dvh; }
.film-window.with-details { grid-template-columns: minmax(0,1fr) clamp(350px,32vw,470px); }
.film-window-main { display: grid; grid-template-rows: auto minmax(0,1fr) auto; min-width: 0; min-height: 0; }
.film-window-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; padding: env(safe-area-inset-top,0px) 28px 0; }
.film-window-bar button { min-height: 44px; padding: 8px 0; font-size: 10px; letter-spacing: .06em; }
.film-back { display: flex; align-items: center; gap: 14px; }
.film-back>span { font-size: 22px; }
.film-window-byline { margin-right: auto; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: #999c8f; }
.film-expand { display: flex; align-items: center; gap: 13px; }
.film-expand>span { font-size: 22px; }
.film-window-media { position: relative; min-width: 0; min-height: 0; display: grid; background: #000; }
.film-window-media>video, .film-window-media>iframe { display: block; width: 100%; height: 100%; min-height: 0; border: 0; object-fit: contain; }
.film-story-trigger { position: absolute; top: 20px; right: 22px; z-index: 2; display: flex; align-items: center; gap: 11px; padding: 7px 12px 7px 7px; color: #f5eddc; background: #10120ec9; border: 1px solid #f5eddc33; backdrop-filter: blur(8px); text-align: left; }
.film-story-trigger .engraved-charm { width: 48px; height: 48px; padding: 3px; background:transparent; }
.film-story-trigger>span { font-size: 9px; line-height: 1.5; letter-spacing: .07em; text-transform: uppercase; }
.film-story-trigger:hover { background: #1c2118; border-color: #f5eddc77; }
.film-window-caption { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; padding: 16px 28px max(16px,env(safe-area-inset-bottom,0px)); }
.film-window-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 18px; min-width: 0; }
.film-window-title h1 { font: 400 clamp(25px,2.3vw,36px)/1.05 var(--serif); letter-spacing: -.02em; }
.film-window-title p { font: 400 italic 22px/1.2 var(--reading); color: #b4b3a5; }
.film-info-trigger { display: flex; align-items: center; gap: 24px; min-height: 44px; padding: 5px 0 5px 10px; flex-shrink: 0; font-size: 10px; letter-spacing: .05em; }
.film-info-trigger>span { font-size: 26px; font-weight: 300; }
.film-window button:focus-visible, .film-window a:focus-visible { outline-color: #8bb8ef; outline-offset: 3px; }
.film-details { position: relative; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-color: #aaa28c var(--paper); background: var(--paper); color: var(--ink); }
.film-details-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; padding: env(safe-area-inset-top,0px) 28px 0; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.film-details-bar button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0; font-size: 9px; }
.film-details-bar button>span { font-size: 24px; }
.film-details-content { padding: 32px 30px 40px; }
.film-facts, .shoot-story { outline: none; }
.film-facts h2 { font: 400 42px/1.02 var(--serif); letter-spacing: -.025em; }
.film-facts-title { font: 400 italic 27px/1.15 var(--reading); margin-top: 8px; color: #777768; }
.film-facts dl { margin: 26px 0 20px; padding: 16px 0; border-block: 1px solid var(--line); }
.film-facts dl>div { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; line-height: 1.7; }
.film-facts dl>div+div { margin-top: 8px; }
.film-facts dt { color: #7b7c6e; }
.film-facts dd { margin: 0; text-align: right; }
.film-original { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; font-size: 10px; text-decoration: underline; text-underline-offset: 5px; }
.shoot-story { margin-top: 28px; padding-top: 7px; border-top: 1px solid var(--line); }
.shoot-story .eyebrow { font-size: 8px; letter-spacing: .09em; color: #777768; }
.shoot-story h2 { font: 400 43px/1.03 var(--reading); letter-spacing: -.02em; margin: 22px 0; }
.shoot-story .story-prose { font-size: 23px; line-height: 1.4; }
.film-source { position: relative; height: 100%; min-height: 0; }
.film-source img { width: 100%; height: 100%; object-fit: contain; }
.film-source a { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 16px 24px; background: var(--paper); color: var(--ink); font-size: 12px; white-space: nowrap; }
@media(max-width:1100px) {
  .with-details .film-window-byline { display: none; }
  .with-details .film-window-title { display: block; }
  .with-details .film-window-title p { margin-top: 5px; }
}
@media(max-width:760px) {
  .title-button { flex-direction: column-reverse; gap: 18px; }
  .title-button .film-charm { width: 64px; height: 64px; margin-top: 0; padding: 6px; }
  .programme-charm { width: 52px; height: 52px; margin: 0 0 0 2px; padding: 5px; }
  .programme-row>a { gap: 10px; }
  .programme-lettering { overflow-wrap: anywhere; }
  .work-ending, :root[data-direction="programme"] .work-ending { padding: 28px var(--pad); }
  .film-window.with-details { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(230px,46dvh) minmax(0,1fr); }
  .film-window-bar { min-height: 52px; padding-inline: 18px; gap: 12px; }
  .film-window-bar button { font-size: 9px; }
  .film-window-byline { display: none; }
  .film-back { gap: 10px; }
  .film-window-caption { min-height: 80px; padding: 13px 18px max(13px,env(safe-area-inset-bottom,0px)); gap: 15px; }
  .film-window-title, .with-details .film-window-title { display: block; }
  .film-window-title h1 { font-size: 27px; }
  .film-window-title p { font-size: 21px; margin-top: 4px; }
  .film-info-trigger { gap: 12px; font-size: 9px; }
  .film-story-trigger { top: 12px; right: 12px; gap: 8px; padding: 5px 9px 5px 5px; }
  .film-story-trigger .engraved-charm { width: 40px; height: 40px; }
  .film-story-trigger>span { font-size: 8px; }
  .with-details .film-story-trigger { display: none; }
  .with-details .film-window-caption { min-height: 58px; padding-block: 7px; }
  .with-details .film-window-title h1 { font-size: 21px; }
  .with-details .film-window-title p { font-size: 18px; }
  .film-details-bar { min-height: 52px; padding: 0 22px; }
  .film-details-content { padding: 28px 25px 40px; }
}
@media(max-height:550px) and (orientation:landscape) {
  .film-window.with-details { grid-template-columns: minmax(0,1fr) min(42vw,350px); grid-template-rows: minmax(0,1fr); }
  .film-window-bar { min-height: 46px; padding-top: 0; }
  .film-window-caption { min-height: 54px; padding-block: 5px; }
  .film-window-title { display: flex; }
  .film-window-title h1 { font-size: 23px; }
  .film-window-title p { font-size: 19px; }
}

/* ---- Story from the shoot sits in the bottom bar, beside Film info ---- */
.film-window-actions { display: flex; align-items: center; gap: 22px; }
.film-window-caption .film-story-trigger { position: static; top: auto; right: auto; display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; white-space: nowrap; }
.film-window-caption .film-story-trigger .engraved-charm { width: 34px; height: 34px; }
.film-window-caption .film-story-trigger>span { white-space: nowrap; }
@media (max-width: 760px) {
  .film-window-actions { gap: 12px; }
  .film-window-caption .film-story-trigger { padding: 4px 10px 4px 4px; }
  .film-window-caption .film-story-trigger>span { display: none; }
  .with-details .film-window-caption .film-story-trigger { display: inline-flex; }
}

/* ---- All designs link, in the place of the old design switch ---- */
.direction-switch .direction-back { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 10px; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.direction-switch .direction-back:hover { color: var(--accent); }

/* ---- Story text: one flowing paragraph by default ---- */
.story-pull { display: none; }

/* ---- Design 02 Cinema: the story set like a printed book page ---- */
html[data-story="magazine"] .film-details { background: #F2F1EC; }
html[data-story="magazine"] .shoot-story { display: flex; flex-direction: column; border-top-color: rgba(31, 52, 104, .18); }
html[data-story="magazine"] .shoot-story .eyebrow { order: 1; color: rgba(31, 52, 104, .62); }
html[data-story="magazine"] .shoot-story h2 { display: none; }
html[data-story="magazine"] .story-pull { display: block; order: 2; margin: 26px 0 24px; font: 400 clamp(30px, 2.5vw, 40px)/1.12 "Marcellus", "Cormorant Garamond", Georgia, serif; letter-spacing: .005em; color: #D9332B; text-wrap: pretty; }
html[data-story="magazine"] .story-lead { display: none; }
html[data-story="magazine"] .shoot-story .story-prose { order: 3; font: 400 19px/1.55 "Spectral", "Cormorant Garamond", Georgia, serif; color: #1F3468; text-indent: 1.4em; hyphens: auto; }
html[data-story="magazine"] .shoot-story .story-prose::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; }
html[data-story="magazine"] .shoot-story .story-signature { order: 4; color: #1F3468; font-family: "Spectral", Georgia, serif; }
html[data-story="magazine"] .shoot-story .story-emblem { order: 5; color: #D9332B; padding: 34px 0 10px; }
html[data-story="magazine"] .film-details .story-tags a { color: #1F3468; border-color: rgba(31, 52, 104, .3); }

/* No Index button in the header */
#index-toggle, .index-toggle { display: none !important; }

/* About: the five stats, as on design 1 */
.about-stats { list-style: none; margin: 30px 0 0; padding: 0; font: 400 clamp(24px, 2.2vw, 32px)/1.3 var(--serif); letter-spacing: -.01em; }
.about-stats .is-accent { color: var(--accent); }
@media (max-width: 760px) { .about-stats { font-size: 24px; margin-top: 24px; } }

/* Design 1 (Cinema): no Watch film button */
.film .watch-button { display: none !important; }

/* No Next film link between films */
.next-film[data-scroll] { display: none !important; }

/* ---- Commercials by section, the way helloemile.com does it ---- */
.section-tabs { position: fixed; z-index: 30; top: 104px; left: 50%; transform: translateX(-50%); display: flex; gap: 22px; align-items: center; padding: 6px 2px; max-width: calc(100vw - 32px); overflow-x: auto; scrollbar-width: none; }
.section-tabs::-webkit-scrollbar { display: none; }
.section-tabs button { flex: none; padding: 6px 0; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,240,231,.62); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.section-tabs button sup { font-size: 7px; margin-left: 3px; opacity: .7; }
.section-tabs button:hover { color: var(--paper); }
.section-tabs button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--accent); }
@media (max-width: 760px) { .section-tabs { top: 128px; left: var(--pad); right: var(--pad); transform: none; gap: 18px; } }

/* ---- Design 1 (Cinema): Film info as type set over the film ---- */
.film-type-over { position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; padding: clamp(24px, 4vw, 56px); background: linear-gradient(180deg, rgba(8,8,6,.35), rgba(8,8,6,.72) 55%, rgba(8,8,6,.9)); color: #F3ECDD; }
.film-type-over[hidden] { display: none; }
.fto-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 70px); align-items: end; }
.fto-kicker { grid-column: 1 / -1; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #E9B342; margin-bottom: 14px; }
.fto-brand { grid-column: 1; font: 400 clamp(72px, 10vw, 180px)/.86 'Anton', 'Arial Narrow', sans-serif; text-transform: uppercase; letter-spacing: .002em; color: #F2C4C0; }
.fto-title { grid-column: 1; font: italic 400 clamp(26px, 2.6vw, 42px)/1.05 'Instrument Serif', Georgia, serif; margin-top: 10px; }
.fto-cols { grid-column: 2; grid-row: 2 / span 2; display: grid; gap: 16px; font-size: 11px; line-height: 1.6; }
.fto-cols dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
.fto-cols dt { text-transform: uppercase; letter-spacing: .12em; font-size: 9px; color: rgba(243,236,221,.6); }
.fto-lead { font: 400 17px/1.45 'Spectral', Georgia, serif; color: #F3ECDD; }
.fto-tags { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #E9B342; }
.fto-story { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 6px 16px 6px 6px; border: 1px solid rgba(243,236,221,.4); color: #F3ECDD; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.fto-story .engraved-charm { width: 40px; height: 40px; }
.fto-story:hover { background: rgba(243,236,221,.1); }
@media (max-width: 760px) {
  .fto-inner { grid-template-columns: 1fr; row-gap: 14px; }
  .fto-cols { grid-column: 1; grid-row: auto; }
  .fto-brand { font-size: clamp(54px, 15vw, 84px); }
  .fto-lead { display: none; }
}

/* ---- Design 1 (Cinema): the story as a magazine page, with V1 colours and the sketch ---- */
html[data-story="magazine"] .film-window.with-details { grid-template-columns: minmax(0, 1fr) clamp(420px, 42vw, 660px); }
html[data-story="magazine"] .film-details { background: #F2F1EC; color: #1F3468; }
html[data-story="magazine"] .film-details-content { padding: 30px clamp(26px, 3vw, 46px) 44px; }
html[data-story="magazine"] .film-facts h2 { font: 650 clamp(40px, 3.6vw, 60px)/.95 var(--serif); letter-spacing: -.025em; color: #1F3468; }
html[data-story="magazine"] .film-facts-title { font: italic 400 26px/1.1 'Instrument Serif', Georgia, serif; color: #D9332B; margin-top: 6px; }
html[data-story="magazine"] .film-facts dl { margin-top: 20px; border-top: 1px solid rgba(31,52,104,.2); }
html[data-story="magazine"] .film-facts dl > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(31,52,104,.2); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
html[data-story="magazine"] .shoot-story { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; border-top: 0; margin-top: 26px; padding-top: 0; }
html[data-story="magazine"] .shoot-story .eyebrow { grid-column: 1 / -1; order: 0; color: #D9332B; font-size: 9px; letter-spacing: .14em; margin-bottom: 14px; }
html[data-story="magazine"] .shoot-story h2 { display: block; grid-column: 1; order: 1; margin: 0; font: 650 clamp(44px, 4vw, 70px)/.92 var(--serif); letter-spacing: -.03em; color: #D9332B; text-wrap: balance; }
html[data-story="magazine"] .shoot-story .story-emblem { grid-column: 2; grid-row: 2; order: 1; align-self: start; padding: 0; color: #1F3468; }
html[data-story="magazine"] .shoot-story .story-emblem .engraved-charm { width: clamp(96px, 9vw, 140px); height: clamp(96px, 9vw, 140px); padding: 0; }
html[data-story="magazine"] .story-pull { grid-column: 1 / -1; order: 2; margin: 26px 0 22px; padding: 16px 0 16px 18px; border-left: 4px solid #E9B342; font: italic 400 clamp(22px, 1.9vw, 28px)/1.25 'Spectral', Georgia, serif; color: #1F3468; letter-spacing: 0; }
html[data-story="magazine"] .shoot-story .story-prose { grid-column: 1 / -1; order: 3; column-count: 2; column-gap: 26px; text-indent: 0; font: 400 16px/1.6 'Spectral', Georgia, serif; color: #1F3468; hyphens: auto; }
html[data-story="magazine"] .shoot-story .story-prose::first-letter { float: left; font: 650 64px/.8 var(--serif); padding: 6px 8px 0 0; color: #D9332B; }
html[data-story="magazine"] .shoot-story .story-signature { grid-column: 1 / -1; order: 4; color: #D9332B; font: italic 400 24px 'Instrument Serif', Georgia, serif; }
html[data-story="magazine"] .film-details .story-tags { border-top-color: rgba(31,52,104,.2); gap: 8px; }
html[data-story="magazine"] .film-details .story-tags a { border: 0; padding: 6px 10px; margin: 0; background: #F5D9D5; color: #1F3468; }
html[data-story="magazine"] .film-details .story-tags a:nth-child(3n+2) { background: #F3E1A9; }
html[data-story="magazine"] .film-details .story-tags a:nth-child(3n) { background: #DCE3F1; }
@media (max-width: 1100px) { html[data-story="magazine"] .shoot-story .story-prose { column-count: 1; } }

/* One design: Cinema, with the numbering of the old design 3 */
.film-count > span:first-child { color: var(--accent); }
.film-count > span:first-child .count-slash { color: var(--paper); }

/* ---- Films / Index switch in the header ---- */
.view-toggle { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; color: inherit; opacity: .8; }
.view-toggle:hover { opacity: 1; color: var(--accent); }
.header-right { align-items: center; }

/* ---- Story layout switch: Magazine or Book ---- */
.story-style { display: inline-flex; gap: 14px; }
.story-style button { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; color: inherit; opacity: .55; border-bottom: 1px solid transparent; }
.story-style button[aria-pressed="true"] { opacity: 1; border-bottom-color: currentColor; }
.story-style button:hover { opacity: 1; }

/* ---- About: full height portrait on the left, everything else on the right, no scrolling ---- */
@media (min-width: 900px) and (min-height: 640px) {
  .director-sheet:not(.archive-sheet) { display: flex; flex-direction: column; overflow: hidden; }
  .director-sheet:not(.archive-sheet) .editorial-page { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: clamp(30px, 3.6vw, 56px); padding: 0 clamp(28px, 3.4vw, 48px) 0 0; overflow: hidden; }
  .director-sheet:not(.archive-sheet) .about-intro { display: contents; }
  .director-sheet:not(.archive-sheet) .portrait-wrap { grid-column: 1; grid-row: 1 / span 2; margin: 0 !important; height: 100%; position: relative; }
  .director-sheet:not(.archive-sheet) .portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
  .director-sheet:not(.archive-sheet) .portrait-caption { position: absolute; left: 18px; right: 18px; bottom: 14px; margin: 0; color: rgba(243,240,231,.85); }
  .director-sheet:not(.archive-sheet) .about-copy { grid-column: 2; grid-row: 1; padding-top: clamp(28px, 4vh, 44px); }
  .director-sheet:not(.archive-sheet) .about-copy .eyebrow { margin-bottom: 16px; }
  .director-sheet:not(.archive-sheet) .about-copy h1 { font-size: clamp(38px, 3.4vw, 56px) !important; line-height: .95; margin-bottom: 16px; }
  .director-sheet:not(.archive-sheet) .about-copy .intro { font-size: 17px; line-height: 1.38; margin-bottom: 12px; max-width: 46ch; }
  .director-sheet:not(.archive-sheet) .about-stats { font-size: clamp(17px, 1.4vw, 21px); margin-top: 10px; line-height: 1.3; }
  .director-sheet:not(.archive-sheet) .contact-section { grid-column: 2; grid-row: 2; padding: 22px 0 26px; border-top: 1px solid var(--line); margin-top: 22px; align-self: start; }
  .director-sheet:not(.archive-sheet) .contact-heading { margin-bottom: 14px; }
  .director-sheet:not(.archive-sheet) .contact-heading > a { font-size: 13px; }
  .director-sheet:not(.archive-sheet) .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 22px; }
  .director-sheet:not(.archive-sheet) .contact-card h3 { font-size: 19px; margin-bottom: 3px; }
  .director-sheet:not(.archive-sheet) .contact-card .eyebrow { margin-bottom: 6px; }
  .director-sheet:not(.archive-sheet) .contact-card a, .director-sheet:not(.archive-sheet) .contact-card small { font-size: 11px; line-height: 1.55; }
}

/* ---- About and contacts use the menu font ---- */
.about-copy h1, .about-copy .intro, .about-stats, .contact-card h3 { font-family: var(--nav-font) !important; font-weight: var(--nav-weight) !important; letter-spacing: -.01em; }
.about-copy h1 em { font-family: var(--nav-font) !important; }

/* ---- All films and topic pages pop out from the right, like About ---- */
.archive-sheet .sheet-body .editorial-page { min-height: 0; padding: 40px clamp(26px, 3.4vw, 46px) 30px; }
.archive-sheet .listing-header h1 { font-size: clamp(54px, 6vw, 96px); }
.archive-sheet .archive-row { grid-template-columns: 26px 120px minmax(0,1fr) 150px 26px; gap: 18px; }
.archive-sheet .archive-thumb { width: 120px; height: 68px; }
.archive-sheet .archive-brand { font-size: 32px; }

/* Commercials section tabs: bigger and bolder (M, 20 Oct) */
.section-tabs { top: 100px; gap: clamp(18px, 2vw, 34px); padding: 8px 2px; }
.section-tabs button { font: 600 clamp(14px, 1.2vw, 19px)/1.1 'DM Sans', Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(243,240,231,.72); padding: 8px 0 9px; border-bottom-width: 2px; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.section-tabs button sup { font-size: .55em; font-weight: 500; margin-left: 4px; vertical-align: super; opacity: .75; }
.section-tabs button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--accent); }
@media (max-width: 760px) { .section-tabs { top: 124px; gap: 20px; } .section-tabs button { font-size: 13px; } }

/* Main navigation: bigger and bolder, with the section tabs one step below it */
.main-nav { top: 32px; gap: clamp(24px, 2.6vw, 44px); }
.main-nav a { font: 600 clamp(16px, 1.45vw, 22px)/1.2 'DM Sans', Arial, sans-serif; letter-spacing: .005em; opacity: .72; padding-bottom: 14px; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.header-right a, .header-right .view-toggle { font: 600 clamp(13px, 1.05vw, 16px)/1.2 'DM Sans', Arial, sans-serif; letter-spacing: .04em; text-transform: none; }
.section-tabs { top: 96px; }
.section-tabs button { font-size: clamp(12px, 1vw, 16px); }
@media (max-width: 1100px) { .main-nav { gap: 22px; } .main-nav a { font-size: 15px; } }
@media (max-width: 760px) {
  .main-nav { top: 86px; gap: 20px; }
  .main-nav a { font-size: 14px; padding-bottom: 10px; }
  .header-right a, .header-right .view-toggle { font-size: 12px; }
  .section-tabs { top: 132px; }
  .section-tabs button { font-size: 12px; }
}

@media (max-width: 760px) {
  .main-nav { right: var(--pad); gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: 13px; white-space: nowrap; flex: none; }
}
@media (max-width: 360px) { .main-nav a { font-size: 12px; } .main-nav { gap: 12px; } }

/* Keep scrolling: a small down arrow in the bottom right, under the film rail */
.rail-next { position: fixed; right: var(--pad); bottom: 22px; z-index: 12; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(243,240,231,.55); display: grid; place-items: center; color: var(--paper); background: rgba(10,10,8,.18); transition: background .25s, color .25s, opacity .3s; animation: railBob 2.6s ease-in-out infinite; }
.rail-next svg { width: 17px; height: 17px; }
.rail-next:hover { background: var(--paper); color: var(--ink); animation-play-state: paused; }
.rail-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.rail-next.is-hidden { opacity: 0; pointer-events: none; }
html[data-direction="programme"] .rail-next { display: none; }
@keyframes railBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .rail-next { animation: none; } }
@media (max-width: 760px) { .rail-next { right: 14px; bottom: 18px; width: 34px; height: 34px; } }

/* Smaller, calmer navigation on desktop, in the proportions of the narrow layout (M, 20 Oct) */
@media (min-width: 761px) {
  .main-nav { top: 36px; gap: clamp(20px, 1.9vw, 30px); }
  .main-nav a { padding-bottom: 12px; text-shadow: 0 1px 10px rgba(0,0,0,.3); }
  .section-tabs { top: 84px; gap: clamp(16px, 1.6vw, 26px); }
}

/* ---- About and All films slide in from the right, and back out ---- */
.director-dialog[open] .director-sheet { animation: sheetIn .55s cubic-bezier(.2,.7,.1,1) both; }
.director-dialog[open]::backdrop { animation: sheetFade .4s ease both; }
.director-dialog.is-closing .director-sheet { animation: sheetOut .38s cubic-bezier(.6,0,.8,.3) both; }
.director-dialog.is-closing::backdrop { animation: sheetFade .38s ease reverse both; }
@keyframes sheetIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes sheetOut { from { transform: none; } to { transform: translateX(100%); } }
@keyframes sheetFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .director-dialog .director-sheet, .director-dialog::backdrop { animation: none !important; } }

/* ---- About: show the whole portrait, uncropped, at full height ---- */
@media (min-width: 900px) and (min-height: 640px) {
  .director-sheet:not(.archive-sheet) { width: min(1260px, 92vw); }
  .director-sheet:not(.archive-sheet) .editorial-page { grid-template-columns: auto minmax(0, 1fr); }
  .director-sheet:not(.archive-sheet) .portrait-wrap { height: 100%; width: auto; aspect-ratio: 1406 / 1920; max-width: 46vw; }
  .director-sheet:not(.archive-sheet) .portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
}

/* Index view: no 'Selected films, Films by James Lees' label at the top */
.programme-running { display: none !important; }

/* Slower, softer slide for About and All films, in and out the same way (M, 20 Oct) */
.director-dialog[open] .director-sheet { animation: sheetIn 1s cubic-bezier(.22,.61,.36,1) both; }
.director-dialog[open]::backdrop { animation: sheetFade .9s ease both; }
.director-dialog.is-closing .director-sheet { animation: sheetOut .85s cubic-bezier(.55,.06,.38,.98) both; }
.director-dialog.is-closing::backdrop { animation: sheetFadeOut .85s ease both; }
@keyframes sheetFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* Gentler About: no page jump when scrolling locks, and a short slide with a fade instead of a full sweep */
html { scrollbar-gutter: stable; }
.director-dialog[open] .director-sheet { animation: sheetSettle 1.05s cubic-bezier(.33,0,.15,1) both; }
.director-dialog[open]::backdrop { animation: sheetFade 1.05s cubic-bezier(.33,0,.15,1) both; }
.director-dialog.is-closing .director-sheet { animation: sheetLeave .8s cubic-bezier(.55,0,.67,1) both; }
.director-dialog.is-closing::backdrop { animation: sheetFadeOut .8s ease both; }
@keyframes sheetSettle { 0% { transform: translateX(14%); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes sheetLeave { 0% { transform: none; opacity: 1; } 100% { transform: translateX(10%); opacity: 0; } }

/* Smooth About: no blur or drop shadow (the dark line on its left), and keep the panel on its own layer */
.director-dialog::backdrop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(12,13,10,.58) !important; }
.director-sheet { box-shadow: none !important; will-change: transform, opacity; backface-visibility: hidden; }

/* About, final: the dim fades quickly (a long fade over the playing films makes Chrome stall),
   the panel keeps its slow settle; closing mirrors it. Measured frame by frame in Chrome, 20 Oct. */
.director-dialog[open]::backdrop { animation: sheetFade .35s ease both !important; }
.director-dialog.is-closing::backdrop { animation: sheetFadeOut .35s ease .45s both !important; }
/* No light line at the photo's edge: dark under the portrait and along the panel's left edge */
.director-sheet:not(.archive-sheet) { background: linear-gradient(90deg, #1b1712 0, #1b1712 3px, var(--paper) 3px); }
.director-sheet:not(.archive-sheet) .director-toolbar { background: var(--paper); }
.director-sheet:not(.archive-sheet) .portrait-wrap { background: #1b1712; overflow: hidden; }
.director-sheet:not(.archive-sheet) .portrait-wrap img { transform: scale(1.006); transform-origin: center; }

/* ---- Review pass, 20 Oct ---- */
/* Stories: a wider reading area, one column when the panel is narrow, no awkward hyphenation */
html[data-story="magazine"] .film-window.with-details { grid-template-columns: minmax(0, 1fr) clamp(460px, 48vw, 760px) !important; }
.film-details { container-type: inline-size; }
html[data-story="magazine"] .shoot-story .story-prose { hyphens: manual !important; -webkit-hyphens: manual; text-wrap: pretty; font-size: 17px !important; line-height: 1.62 !important; }
@container (max-width: 620px) { html[data-story="magazine"] .shoot-story .story-prose { column-count: 1 !important; } }
@media (max-width: 1100px) { html[data-story="magazine"] .film-window.with-details { grid-template-columns: minmax(0, 1fr) min(560px, 52vw) !important; } }

/* Homepage: keep the dark behind the text only, so more of each shot shows */
.film::after { background:
  radial-gradient(115% 85% at 0% 100%, rgba(6,8,5,.82) 0%, rgba(6,8,5,.5) 32%, rgba(6,8,5,.12) 58%, transparent 74%),
  linear-gradient(180deg, rgba(6,8,5,.42) 0%, rgba(6,8,5,0) 16%) !important; }

/* Secondary information a touch easier to read */
/* Index titles and numbers keep V3's own fade (.32 and .55) */
.section-tabs button { color: rgba(243,240,231,.84) !important; }
.director-sheet .contact-card a, .director-sheet .contact-card small { font-size: 12px !important; }
.director-sheet .contact-card .eyebrow { font-size: 10px; }

/* End of a film: Replay or Next film */
.film-end { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; background: rgba(8,8,6,.78); color: #F3ECDD; text-align: center; padding: 24px; }
.film-end[hidden] { display: none; }
.film-end-kicker { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,236,221,.7); }
.film-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.film-end-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid rgba(243,236,221,.45); color: #F3ECDD; font: 600 13px/1 var(--nav-font, 'DM Sans'), Arial, sans-serif; letter-spacing: .04em; }
.film-end-btn:hover, .film-end-btn:focus-visible { background: #F3ECDD; color: #16170f; outline: none; }
.film-end-next { background: rgba(243,236,221,.08); }
.film-end-name { font-weight: 400; opacity: .8; }

/* Index: V3 spacing and thin capitals, whatever the title font (James, 21 Oct) */
.programme-row { min-height: clamp(160px, 25svh, 260px); }
:root[data-direction="programme"] .programme-brand { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important; font-weight: 400 !important; text-transform: uppercase !important; letter-spacing: -.02em !important; font-size: clamp(54px, 6.3vw, 108px) !important; }
:root[data-direction="programme"] .programme-brand.long { font-size: clamp(44px, 5.1vw, 86px) !important; }
@media (max-width: 760px) {
  .programme-row { min-height: 170px; }
  :root[data-direction="programme"] .programme-brand { font-size: clamp(40px, 11.2vw, 72px) !important; }
  :root[data-direction="programme"] .programme-brand.long { font-size: clamp(32px, 8.8vw, 60px) !important; }
}

/* ==== James, 22 Oct ==== */
/* Index: back to the V3 type, mixed case Cormorant Garamond, with the same spacing */
:root[data-direction="programme"] .programme-brand { font-family: 'Cormorant Garamond', Georgia, serif !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: -.02em !important; font-size: clamp(48px, 5.8vw, 96px) !important; }
:root[data-direction="programme"] .programme-brand.long { font-size: clamp(40px, 4.8vw, 80px) !important; }
@media (max-width: 760px) {
  :root[data-direction="programme"] .programme-brand { font-size: clamp(40px, 11vw, 66px) !important; }
  :root[data-direction="programme"] .programme-brand.long { font-size: clamp(32px, 8.6vw, 54px) !important; }
}

/* About: slides in from the right edge only (no stop in the middle), and scrolls whenever it does not fit */
.director-sheet { position: absolute; top: 0; right: 0; margin: 0 !important; overflow-y: auto !important; overscroll-behavior: contain; }
.director-dialog[open] .director-sheet { animation: aboutIn .7s cubic-bezier(.22,.61,.36,1) both !important; }
.director-dialog.is-closing .director-sheet { animation: aboutOut .55s cubic-bezier(.55,.06,.68,.19) both !important; }
@keyframes aboutIn { from { transform: translate3d(100%,0,0); } to { transform: none; } }
@keyframes aboutOut { from { transform: none; } to { transform: translate3d(100%,0,0); } }
@media (min-width: 900px) and (min-height: 640px) {
  .director-sheet:not(.archive-sheet) { display: block !important; }
  .director-sheet:not(.archive-sheet) .editorial-page { min-height: calc(100% - 92px); overflow: visible !important; align-content: start; }
  .director-sheet:not(.archive-sheet) .portrait-wrap { position: sticky; top: 92px; height: calc(100dvh - 92px) !important; align-self: start; }
}
@media (prefers-reduced-motion: reduce) { .director-dialog .director-sheet { animation: none !important; } }

/* Film info: no Format or Director rows; the synopsis instead of the story line */
.fto-cols dl { display: none !important; }

/* Story from the shoot: a pastel page for each film, black type, the first sentence as the headline
   in one accent colour, the film keeps playing alongside */
html[data-story="magazine"] .film-details { background: var(--pastel, #F2F1EC) !important; color: #161512 !important; }
html[data-story="magazine"] .film-details-bar { background: var(--pastel, #F2F1EC) !important; color: #161512 !important; border-bottom-color: rgba(22,21,18,.14) !important; }
html[data-story="magazine"] .film-details-bar button { color: #161512 !important; }
html[data-story="magazine"] .film-facts h2 { color: #161512 !important; }
html[data-story="magazine"] .film-facts-title { color: rgba(22,21,18,.68) !important; }
html[data-story="magazine"] .shoot-story .eyebrow, html[data-story="magazine"] .story-pull { display: none !important; }
html[data-story="magazine"] .shoot-story h2.story-headline { display: block !important; grid-column: 1; margin: 0 !important; font: 650 clamp(30px, 2.7vw, 46px)/1.06 'Fraunces', Georgia, serif !important; letter-spacing: -.022em !important; color: var(--accent, #D9332B) !important; text-wrap: balance; }
html[data-story="magazine"] .shoot-story .story-emblem { grid-row: 1 !important; color: #161512 !important; }
html[data-story="magazine"] .shoot-story .story-prose { margin-top: 26px !important; color: #161512 !important; }
html[data-story="magazine"] .shoot-story .story-prose::first-letter { float: none !important; font: inherit !important; padding: 0 !important; color: inherit !important; }
html[data-story="magazine"] .shoot-story .story-signature { color: #161512 !important; }
html[data-story="magazine"] .film-details .story-tags { border-top-color: rgba(22,21,18,.16) !important; }
html[data-story="magazine"] .film-details .story-tags a, html[data-story="magazine"] .film-details .story-tags a:nth-child(n) { background: transparent !important; border: 1px solid rgba(22,21,18,.3) !important; color: #161512 !important; }

/* About heading in the title font (Fraunces Bold); the rest of About stays in the menu font */
.about-copy h1, .about-copy h1 em { font-family: var(--serif) !important; font-weight: 650 !important; letter-spacing: -.025em; }
.about-copy h1 em { font-style: italic; }

/* Phone: five menu items fit on one line */
@media (max-width: 760px) {
  .main-nav { gap: min(9px, 2.3vw) !important; }
  html .main-nav a { font-size: min(calc(12px * var(--nav-scale)), 3.15vw) !important; letter-spacing: 0 !important; }
}

/* Phone: the story is a sheet over the lower part of the screen; the film stays visible and playing above */
@media (max-width: 760px) {
  html[data-story="magazine"] .film-window.with-details { grid-template-columns: minmax(0, 1fr) !important; }
  html[data-story="magazine"] .film-window.with-details .film-details { position: fixed; left: 0; right: 0; bottom: 0; height: 70dvh; z-index: 30; border-radius: 14px 14px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.35); }
  html[data-story="magazine"] .shoot-story h2.story-headline { font-size: clamp(26px, 7.4vw, 34px) !important; }
}

/* ==== About and archive panels: one clean slide (22 Oct, after a frame by frame diagnosis) ====
   Cause of the jump: the dialog was scrollable (overflow hidden still scrolls by focus), so opening it
   scrolled the dialog 1260px to the off screen close button, cancelling the slide. clip cannot scroll. */
.director-dialog { overflow: clip !important; }
.director-dialog[open] .director-sheet { animation: panelIn .8s cubic-bezier(.16,1,.3,1) both !important; }
.director-dialog[open]::backdrop { animation: panelDimIn .45s ease-out both !important; }
.director-dialog.is-closing .director-sheet { animation: panelOut .65s cubic-bezier(.65,0,.35,1) both !important; }
.director-dialog.is-closing::backdrop { animation: panelDimOut .65s ease-in-out both !important; }
@keyframes panelIn { from { transform: translate3d(100%,0,0); } to { transform: translate3d(0,0,0); } }
@keyframes panelOut { from { transform: translate3d(0,0,0); } to { transform: translate3d(100%,0,0); } }
@keyframes panelDimIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelDimOut { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .director-dialog .director-sheet, .director-dialog::backdrop { animation: none !important; } }

/* ==== About portraits: all four, thumbnails at the bottom, crossfade (22 Oct) ==== */
.portrait-picker { position: relative; overflow: hidden; background: #1b1712; aspect-ratio: 1400 / 2071; }
.director-sheet .portrait-picker img.pp-img, .portrait-picker img.pp-img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; transform: none !important; transition: opacity .7s ease; }
.portrait-picker img.pp-img.is-on { opacity: 1; }
.pp-thumbs { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 8px; }
.pp-thumb { width: 44px; height: 58px; padding: 0; border: 1px solid rgba(243,236,221,.55); background: #1b1712; opacity: .72; cursor: pointer; overflow: hidden; transition: opacity .25s, border-color .25s, transform .25s; }
.pp-thumb:hover { opacity: 1; }
.pp-thumb[aria-pressed="true"] { opacity: 1; border: 2px solid #f3ecdd; }
.director-sheet .portrait-picker .pp-thumb img, .portrait-picker .pp-thumb img { position: static; display: block; width: 100%; height: 100% !important; object-fit: cover; transform: none !important; }
.pp-thumb:focus-visible { outline: 2px solid #e9b342; outline-offset: 2px; }
@media (max-width: 760px) { .director-sheet .portrait-picker, .portrait-picker { aspect-ratio: 4 / 5; } .pp-thumbs { left: 12px; bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .portrait-picker img.pp-img { transition: none; } }

/* Portrait slideshow: a slower, softer crossfade */
.portrait-picker img.pp-img { transition: opacity 1.4s cubic-bezier(.45,0,.55,1); }
@media (prefers-reduced-motion: reduce) { .portrait-picker img.pp-img { transition: none; } }

/* Portrait pickers as small dots, not thumbnails (M, 22 Oct) */
.pp-thumbs { left: 50%; bottom: 10px; transform: translateX(-50%); gap: 0; }
.pp-thumb, .pp-thumb[aria-pressed="true"] { width: 28px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; opacity: 1; overflow: visible; }
.pp-thumb i { display: block; width: 7px; height: 7px; border-radius: 50%; background: rgba(243,236,221,.42); box-shadow: 0 0 6px rgba(0,0,0,.35); transition: background .3s, transform .3s; }
.pp-thumb:hover i { background: rgba(243,236,221,.8); }
.pp-thumb[aria-pressed="true"] i { background: #f3ecdd; transform: scale(1.15); }
.pp-thumb:focus-visible { outline: none; }
.pp-thumb:focus-visible i { outline: 2px solid #e9b342; outline-offset: 3px; }
@media (max-width: 760px) { .pp-thumbs { bottom: 6px; } .pp-thumb, .pp-thumb[aria-pressed="true"] { width: 32px; height: 40px; } }

/* Wrapped titles: the charm follows the last word instead of the whole title box (22 Oct).
   Desktop and tablet use the charm inside the lettering; phones keep the charm above the title. */
.title-nowrap { white-space: nowrap; }
.film-charm.film-charm-inline { display: none; }
@media (min-width: 761px) {
  .title-button > .film-charm { display: none; }
  .title-lettering .film-charm.film-charm-inline { display: inline-block; vertical-align: top; width: clamp(64px, 6vw, 88px); height: clamp(64px, 6vw, 88px); padding: 8px; margin: 5px 0 -200px clamp(20px, 2.5vw, 40px); }
}

/* James, 23 Oct: own video controls. Only a strip at the bottom is shaded, never the picture,
   and the bar hides 1.5 s after the mouse stops (it stays while paused, still without dimming). */
.film-window-media>video { cursor: pointer; }
.film-window-media.vc-idle>video { cursor: none; }
.vc { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 34px 18px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.38)); color: #F3ECDD; font: 500 10px/1 var(--nav-font, var(--sans)); letter-spacing: .08em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.vc-show .vc { opacity: 1; pointer-events: auto; }
.vc button { color: inherit; padding: 6px 2px; opacity: .85; }
.vc button:hover, .vc button:focus-visible { opacity: 1; }
.vc-play svg { width: 14px; height: 14px; display: block; fill: currentColor; }
.vc-play .i-play { display: none; }
.vc-paused .vc-play .i-play { display: block; }
.vc-paused .vc-play .i-pause { display: none; }
.vc-time { font-variant-numeric: tabular-nums; opacity: .85; min-width: 34px; }
.vc-dur { text-align: right; }
.vc-seek { flex: 1; min-width: 60px; height: 18px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 0%; }
.vc-seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, #F3ECDD var(--p), rgba(243,236,221,.3) var(--p)); }
.vc-seek::-moz-range-track { height: 2px; background: rgba(243,236,221,.3); }
.vc-seek::-moz-range-progress { height: 2px; background: #F3ECDD; }
.vc-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: #F3ECDD; border: 0; }
.vc-seek::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #F3ECDD; border: 0; }
@media (max-width: 760px) { .vc { gap: 10px; padding: 26px 12px 10px; } .vc-dur { display: none; } }
/* James, 23 Oct: moving thumbnails in the film lists */
.archive-thumb-m { position: relative; display: block; overflow: hidden; background: #1b1c17; }
.archive-thumb-m img, .archive-thumb-m video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.archive-thumb-m video { opacity: 0; transition: opacity .6s; }
.archive-thumb-m video.ready { opacity: 1; }
