/* UNDRAWN · site styles
   Paper, graphite and a little color, taken from the poster. */

@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(../fonts/source-serif-4-latin-opsz-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url(../fonts/source-serif-4-latin-opsz-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url(../fonts/jost-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --head-h: 75px;
  --paper: #f4eee3;
  --paper-2: #ece4d6;
  --ink: #2a2825;
  --graphite: #45423e;
  --soft: #6a645b;           /* 5.0:1 on paper */
  --rule: #d5cbbb;
  --red: #b4462f;            /* balloon red, used sparingly */
  --focus: #2a2825;
  --btn-hover: #000;
  --page: #faf7f0;
  --page-line: #e3dbcd;
  --stack-1: #f1ebe0;
  --stack-2: #ebe4d7;
  --stack-line: #dcd3c4;
  --ring-wire: #5c574f;
  --ring-shine: #b3ab9e;
  --ring-hole: #d9cfbf;
  --ring-hole-line: #8a8378;
  --fold: rgba(70, 55, 35, .11);
  --grain: .5;
  --orn-filter: none;
  color-scheme: light;
  --serif: "Source Serif", Georgia, "Times New Roman", serif;
  --display: "Cormorant", "Cormorant Garamond", Garamond, Georgia, serif;
  --label: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 12vw, 168px);
}

/* dark mode: warm charcoal, ivory text, quiet drawing; artwork keeps its own colours */
[data-theme="dark"] {
  --paper: #1f1c18;
  --paper-2: #2a2621;
  --ink: #efe8da;
  --graphite: #d8cfbf;
  --soft: #aca293;           /* 6.6:1 on charcoal */
  --rule: #403a33;
  --red: #e07a62;
  --focus: #efe8da;
  --btn-hover: #fff;
  --page: #2a2621;
  --page-line: #3b352e;
  --stack-1: #25211c;
  --stack-2: #221e1a;
  --stack-line: #3a342d;
  --ring-wire: #cfc6b6;
  --ring-shine: #6d665c;
  --ring-hole: #1a1714;
  --ring-hole-line: #8f877b;
  --fold: rgba(0, 0, 0, .35);
  --grain: .22;
  --orn-filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.9);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.68 var(--serif);
  font-kerning: normal; text-rendering: optimizeLegibility;
}
body::before { /* faint paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-head, .site-foot { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; font: 500 .8rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

.label, .label-inline {
  font: 500 .72rem/1.5 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--soft);
}
.label { display: block; margin: 0 0 1.1rem; }
.label-inline { margin-right: .5em; }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.site-head.is-solid { background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 1px 0 var(--rule); }
.wordmark {
  font: 400 1.15rem/1 var(--display); letter-spacing: .32em; text-decoration: none; color: var(--ink);
  opacity: 0; transition: opacity .4s ease; padding: 6px 0;
}
.site-head.is-solid .wordmark, .wordmark:focus-visible { opacity: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav-list a {
  font: 500 .72rem/1 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--graphite);
  text-decoration: none; padding: 8px 0; display: inline-block; border-bottom: 1px solid transparent;
}
.nav-list a:hover { border-bottom-color: currentColor; }
.nav-list .nav-contact a { border: 1px solid var(--ink); border-radius: 999px; padding: 8px 14px 7px; color: var(--ink); margin: -1px 0; }
.nav-list .nav-contact a:hover { background: var(--ink); color: var(--paper); border-bottom-color: var(--ink); }
.nav-toggle { display: none; }
.site-head .head-trailer { display: none; }
.theme-toggle {
  width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: transparent; color: var(--ink); border: 1px solid var(--rule); margin-left: clamp(14px, 2vw, 28px); order: 3;
}
.theme-toggle:hover { border-color: var(--graphite); }
.theme-toggle svg { width: 17px; height: 17px; grid-area: 1 / 1; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.site-head .nav { margin-left: auto; }
.btn-compact { padding: 11px 16px 10px; gap: 9px; font-size: .68rem; letter-spacing: .18em; }
.btn-compact .btn-icon { width: 12px; height: 12px; }
.btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

@media (max-width: 859px) {
  .site-head { gap: 10px; }
  .site-head .head-trailer { display: inline-flex; margin-left: auto; }
  :root { --head-h: 64px; }
  .site-head { padding-top: 9px; padding-bottom: 9px; }
  .site-head .nav { margin-left: 0; order: 4; }
  .theme-toggle { margin-left: 0; }
  .site-head { background: color-mix(in srgb, var(--paper) 94%, transparent); }
}
@media (max-width: 559px) { .wordmark { display: none; } .site-head .head-trailer { margin-left: 0; } .site-head { justify-content: space-between; } }
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--rule);
    font: 500 .72rem/1 var(--label); letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
    padding: 10px 14px; border-radius: 999px; cursor: pointer; background: color-mix(in srgb, var(--paper) 90%, transparent);
  }
  .nav-list {
    position: absolute; right: var(--gutter); top: calc(100% - 4px); flex-direction: column; gap: 0;
    background: var(--paper); border: 1px solid var(--rule); padding: 8px 0; min-width: 200px;
    box-shadow: 0 10px 30px -18px rgba(40, 32, 20, .35);
  }
  .js .nav-list { display: none; }
  .js .nav-list.is-open { display: flex; }
  .nav-list a { display: block; padding: 13px 20px; }
  .nav-list .nav-contact { padding: 8px 14px 6px; border-top: 1px solid var(--rule); margin-top: 6px; }
  .nav-list .nav-contact a { text-align: center; background: var(--ink); color: var(--paper); padding: 12px 16px; }
}

/* ---------- opening ---------- */
.opening {
  min-height: 100svh; display: grid; justify-content: center; position: relative;
  grid-template-columns: auto minmax(280px, 440px); column-gap: clamp(40px, 6vw, 104px);
  grid-template-rows: 1fr auto 1fr;
  grid-template-areas: "poster ." "poster text" "poster .";
  padding: 88px var(--gutter) 64px;
}
.poster-block { grid-area: poster; align-self: center; position: relative; }
.opening-text { grid-area: text; max-width: 440px; }
.opening-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.btn-press { padding-top: 14px; padding-bottom: 13px; }
.poster {
  margin: 0; position: relative; aspect-ratio: 2 / 3;
  width: min(calc(84svh * 2 / 3), 54vw); max-width: 760px;
  box-shadow: 0 1px 2px rgba(50, 40, 25, .08), 0 18px 40px -28px rgba(50, 40, 25, .45);
  background: var(--paper-2);
}
.poster picture, .poster img, .poster canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster img { object-fit: cover; }
.poster-sketch { visibility: hidden; }
.poster-canvas { display: none; }
.reveal .poster-sketch { visibility: visible; }
.reveal .poster-color { opacity: 0; }
.reveal .poster-canvas { display: block; }
.poster-open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.poster-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.poster-controls { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 8px; }
.poster-ctl {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: #2a2825;
  background: rgba(244, 238, 227, .84); border: 1px solid rgba(42, 40, 37, .18); opacity: .78; transition: opacity .2s;
}
.poster-ctl:hover, .poster-ctl:focus-visible { opacity: 1; }
.poster-ctl:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.poster-ctl svg { width: 14px; height: 14px; grid-area: 1 / 1; }
.motion-toggle .i-play { display: none; }
.motion-toggle[aria-pressed="true"] .i-play { display: block; }
.motion-toggle[aria-pressed="true"] .i-pause { display: none; }

.logline {
  font: italic 400 clamp(1.45rem, 1.75vw, 2.25rem)/1.36 var(--display); color: var(--ink);
  margin: 0 0 2.2rem; text-wrap: pretty;
}
.link-quiet { font: 500 .72rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); padding: 10px 0; }

.orn { pointer-events: none; user-select: none; filter: var(--orn-filter); }

/* mobile: Watch trailer sits in the header; the full poster follows, then the logline */
@media (max-width: 859px) {
  .opening {
    min-height: 0; grid-template-columns: 1fr; grid-template-rows: none;
    grid-template-areas: "poster" "text"; justify-items: center;
    /* header (about 64px) + a little air; side insets respect the notch in landscape */
    padding: calc(var(--head-h) + 10px) max(var(--gutter), env(safe-area-inset-right)) 24px max(var(--gutter), env(safe-area-inset-left));
    row-gap: 16px;
  }
  .poster-block { width: 100%; display: flex; justify-content: center; }
  /* artwork height: what the visible screen leaves after header and claim (~255px),
     kept between 48% and 60% of it; svh = the height with Safari's toolbars showing */
  .poster {
    --poster-h: clamp(48vh, calc(100vh - 255px), 60vh);
    --poster-h: clamp(48svh, calc(100svh - 255px), 60svh);
    width: min(100%, 560px, calc(var(--poster-h) * 2 / 3)); max-width: none;
  }
  .opening-text { text-align: center; max-width: 34rem; }
  .logline { margin: 0 0 1.2rem; font-size: clamp(1.3rem, 5.6vw, 1.45rem); }
  .opening-actions { align-items: center; }
  .opening-actions .btn-trailer { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  font: 500 .76rem/1 var(--label); letter-spacing: .22em; text-transform: uppercase;
  padding: 17px 26px 16px; border-radius: 999px; border: 1px solid var(--ink);
  transition: background-color .25s ease, color .25s ease;
}
.btn-icon { width: 15px; height: 15px; flex: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- sections ---------- */
.section { padding: var(--section) 0 0; }
.section-head { position: relative; margin-bottom: clamp(36px, 5vw, 64px); display: flex; align-items: flex-end; gap: 24px; }
.section-head h2 { font: 400 clamp(2.1rem, 4vw, 3.3rem)/1.05 var(--display); letter-spacing: .005em; }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--rule); margin-bottom: .7rem; }

/* trailer */
.player { position: relative; aspect-ratio: 16 / 9; background: #1f1d1a; }
/* trailer mount: warm paper border, a fine pencil line inside it, small pencil marks at the corners */
.player-frame {
  position: relative; padding: clamp(10px, 1.8vw, 24px); background-color: var(--page);
  box-shadow: 0 0 0 1px var(--page-line), 0 22px 44px -32px rgba(50, 40, 25, .5);
}
.player-frame::before {
  content: ""; position: absolute; inset: clamp(5px, .8vw, 11px); pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--graphite) 28%, transparent);
}
.frame-mark { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.frame-mark::before, .frame-mark::after { content: ""; position: absolute; background: color-mix(in srgb, var(--graphite) 55%, transparent); }
.frame-mark::before { width: 18px; height: 1px; }
.frame-mark::after { width: 1px; height: 18px; }
.frame-mark.tl { left: -9px; top: -9px; } .frame-mark.tl::before { top: 9px; } .frame-mark.tl::after { left: 9px; }
.frame-mark.tr { right: -9px; top: -9px; } .frame-mark.tr::before { top: 9px; } .frame-mark.tr::after { right: 9px; }
.frame-mark.bl { left: -9px; bottom: -9px; } .frame-mark.bl::before { bottom: 9px; } .frame-mark.bl::after { left: 9px; }
.frame-mark.br { right: -9px; bottom: -9px; } .frame-mark.br::before { bottom: 9px; } .frame-mark.br::after { right: 9px; }
.player-frame + .player-note { margin-top: 18px; }
@media (max-width: 600px) { .frame-mark { display: none; } }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-cover { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; color: #f4eee3; width: 100%; }
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 16, 10, 0) 55%, rgba(20, 16, 10, .55)); transition: opacity .3s; }
.player-play {
  position: absolute; left: clamp(18px, 3vw, 36px); bottom: clamp(16px, 3vw, 32px); z-index: 1;
  display: flex; flex-direction: row; align-items: center; gap: 16px;
  font: 500 .74rem/1 var(--label); letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.player-play svg { width: clamp(52px, 6vw, 72px); height: auto; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); transition: transform .3s ease; }
.player-cover:hover .player-play svg { transform: scale(1.05); }
.player-cover:focus-visible { outline: 3px solid #f4eee3; outline-offset: -8px; }
.player-note { font-size: .86rem; color: var(--soft); margin-top: 14px; }

/* about the film */
.film-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 7vw, 120px); }
.film-synopsis p { max-width: 36em; }
.film-data { position: relative; padding-top: 0; }
.data-line { font: 400 1.35rem/1.4 var(--display); letter-spacing: .02em; margin-bottom: .6rem; }
.data-lang { font-size: .98rem; color: var(--graphite); }
.film .section-head::after { margin-right: 81px; }
.film .orn-branch { position: absolute; right: 0; bottom: calc(.7rem - 7px); width: 88px; opacity: .95; transform-origin: 8% 94%; }
@media (prefers-reduced-motion: no-preference) {
  .balloon-flight { animation: fly 46s ease-in-out infinite alternate; }
  .balloon-flight .orn-balloon { animation: drift 7s ease-in-out infinite alternate; }
  .film .orn-branch { animation: sway 8s ease-in-out infinite alternate; }
}
@keyframes fly { from { transform: translateX(-70px); } to { transform: translateX(90px); } }
@keyframes drift { from { transform: translateY(0) rotate(-1.2deg); } to { transform: translateY(-6px) rotate(1.2deg); } }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.8deg); } }

@media (max-width: 859px) {
  .film-grid { grid-template-columns: 1fr; }
  .film .section-head::after { margin-right: 62px; }
  .film .orn-branch { width: 68px; }
}

/* recognition */
.accolades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 40px; }
.accolades li { border-top: 1px solid var(--rule); padding-top: 16px; }
.accolades .honour { display: block; font: 500 .72rem/1.5 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--graphite); margin-bottom: 6px; }
.accolades .fest { font: 400 1.3rem/1.3 var(--display); }
.accolades .year { color: var(--soft); }
.accolades img { height: 88px; width: auto; margin-bottom: 12px; }

/* stills sketchbook: one open spread per view on desktop, one page per view on mobile */
.book { max-width: 1080px; margin: 0 auto; }
.book-body { position: relative; isolation: isolate; margin: 18px 6px 0; }
.book-body::before, .book-body::after { /* page edges of the closed stack beneath the open spread */
  content: ""; position: absolute; z-index: -1; border: 1px solid var(--stack-line); border-radius: 2px;
}
.book-body::before { inset: 3px -3px -4px -3px; background: var(--stack-1); }
.book-body::after { inset: 7px -6px -8px -6px; background: var(--stack-2); box-shadow: 0 16px 30px -24px rgba(50, 40, 25, .45); }
.book-pages { display: grid; grid-template-columns: 1fr 1fr; position: relative; perspective: 2200px; }
/* page turn */
.leaf, .leaf-cover { position: absolute; top: 0; bottom: 0; z-index: 3; pointer-events: none; }
.leaf-cover { z-index: 2; }
.leaf-cast { position: absolute; left: 0; right: 0; top: 0; height: 55%; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(to bottom, rgba(40, 30, 15, .28), rgba(40, 30, 15, 0)); }
.leaf { transform-style: preserve-3d; will-change: transform; }
.at-right { left: 50%; width: 50%; transform-origin: left center; }
.at-left { left: 0; width: 50%; transform-origin: right center; }
.at-top { left: 0; width: 100%; transform-origin: center top; }
.leaf .leaf-face, .leaf-cover .leaf-face { position: absolute; inset: 0; margin: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.leaf .leaf-face.back { transform: rotateY(180deg); }
.leaf.at-top .leaf-face.back { transform: rotateX(180deg); }
.leaf-face.blank { box-shadow: 0 0 0 1px var(--page-line); }
.leaf-shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(to right, rgba(40, 30, 15, .28), rgba(40, 30, 15, .04) 70%); }
.at-left .leaf-face:not(.back) .leaf-shade, .at-right .leaf-face.back .leaf-shade { background: linear-gradient(to left, rgba(40, 30, 15, .28), rgba(40, 30, 15, .04) 70%); }
.at-top .leaf-shade { background: linear-gradient(to bottom, rgba(40, 30, 15, .26), rgba(40, 30, 15, .04) 70%); }
.leaf-cover .leaf-face { box-shadow: 0 0 0 1px var(--page-line); }
.show-sketch .still-sketch { display: block; position: absolute; inset: 0; }
.show-sketch .still-sketch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page {
  margin: 0; position: relative; background-color: var(--page);
  padding: 9% 8% 4.5%; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 0 0 1px var(--page-line);
}
.page[hidden] { display: none !important; }
.page.is-left { border-radius: 3px 0 0 3px; background-image: linear-gradient(to left, var(--fold), transparent 9%); }
.page.is-right { border-radius: 0 3px 3px 0; background-image: linear-gradient(to right, var(--fold), transparent 9%); }
.page-frame { --frame: 1.78; aspect-ratio: var(--frame); min-height: 0; display: flex; align-items: center; justify-content: center; }
/* the frame's height comes only from its width (min-height: 0 stops a taller still from stretching
   it); each still is fitted inside at its own proportions, so every page and spread is the same height */
.page-still { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: min(100%, calc(100% * var(--ar) / var(--frame))); flex: none; }
.page-still img { width: 100%; height: auto; aspect-ratio: var(--ar); vertical-align: top; box-shadow: 0 1px 2px rgba(50, 40, 25, .12); }
.page-still:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.page-no { font: italic 400 .95rem/1 var(--display); color: var(--soft); }
.page.is-right .page-no { text-align: right; }
.binding { position: absolute; z-index: 2; pointer-events: none; overflow: visible; }
.binding .ring-wire { stroke: var(--ring-wire); }
.binding .ring-shine { stroke: var(--ring-shine); }
.binding .ring-hole { fill: var(--ring-hole); stroke: var(--ring-hole-line); }
.binding .rings-h, .binding .rings-m { display: none; }
@media (min-width: 860px) {
  .binding { left: calc(50% - 14px); width: 28px; top: 14px; height: calc(100% - 28px); }
}
.book-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 30px; }
.book-nav { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 40px); }
.magic-switch {
  grid-column: 3; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: none; border: 0; padding: 8px 4px; color: var(--graphite);
  font: 500 .66rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase;
}
.magic-track { width: 34px; height: 20px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 40%, transparent); position: relative; transition: background-color .25s, border-color .25s; }
.magic-knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--graphite); transition: transform .25s ease, background-color .25s; }
.magic-switch[aria-checked="true"] .magic-track { background: var(--ink); border-color: var(--ink); }
.magic-switch[aria-checked="true"] .magic-knob { transform: translateX(14px); background: var(--paper); }
.magic-switch[aria-checked="true"] { color: var(--ink); }
.magic-state { min-width: 2.2em; text-align: left; color: var(--soft); }
.magic-switch:hover .magic-track { border-color: var(--ink); }
.magic-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .magic-switch { display: none; } }

/* pencil version of each still: drawn on a canvas with the poster's watercolour-like reveal */
.page-still { position: relative; }
.still-sketch { display: none; }  /* image source only */
.still-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.book-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink); background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 999px; padding: 11px 18px 10px;
  font: 500 .7rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; transition: background-color .2s, color .2s;
}
.book-btn svg { width: 16px; height: 16px; }
.book-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.book-btn:disabled { opacity: .35; cursor: default; }
.book-count { margin: 0; min-width: 4.5em; text-align: center; font: italic 400 1.15rem/1 var(--display); color: var(--graphite); font-variant-numeric: lining-nums; }

@media (max-width: 859px) {
  .book-body { margin: 18px 4px 0; }
  /* phone: two pages stacked, spiral across the middle */
  .book-pages { grid-template-columns: 1fr; perspective: 2200px; perspective-origin: 50% 50%; }
  .page { border-radius: 0; }
  .page.is-left { padding: 16px 6% 24px; border-radius: 3px 3px 0 0; background-image: linear-gradient(to top, var(--fold), transparent 12%); }
  .page.is-right { padding: 26px 6% 12px; border-radius: 0 0 3px 3px; background-image: linear-gradient(to bottom, var(--fold), transparent 12%); }
  .page .page-no { text-align: center !important; }
  .binding { left: 4%; right: 4%; width: 92%; top: calc(50% - 14px); height: 28px; }
  .binding .rings-v { display: none; }
  .binding .rings-m { display: block; }
  /* keep notebook + Previous/Next on screen below the sticky header, even on small phones */
  .book { max-width: min(100%, calc((100svh - 165px) / 1.42 + 8px)); }
  .at-hinge-bottom { left: 0; width: 100%; top: 50%; bottom: auto; height: 50%; transform-origin: center top; }
  .at-hinge-top { left: 0; width: 100%; top: 0; bottom: auto; height: 50%; transform-origin: center bottom; }
  .leaf.at-hinge-bottom .leaf-face.back, .leaf.at-hinge-top .leaf-face.back { transform: rotateX(180deg); }
  .at-hinge-bottom .leaf-face:not(.back) .leaf-shade, .at-hinge-top .leaf-face.back .leaf-shade { background: linear-gradient(to bottom, rgba(40, 30, 15, .28), rgba(40, 30, 15, .04) 70%); }
  .at-hinge-top .leaf-face:not(.back) .leaf-shade, .at-hinge-bottom .leaf-face.back .leaf-shade { background: linear-gradient(to top, rgba(40, 30, 15, .28), rgba(40, 30, 15, .04) 70%); }
  .book-controls { margin-top: 24px; grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .book-nav { grid-column: 1; }
  .magic-switch { grid-column: 1; grid-row: 2; justify-self: center; }
  .book-btn { padding: 12px 14px 11px; }
}
/* without JavaScript every page is simply listed */
.no-js .book-pages { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.no-js .binding, .no-js .book-controls, .no-js .book-body::before, .no-js .book-body::after { display: none; }

/* larger view */
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #1c1a17; color: #f4eee3; }
.viewer::backdrop { background: rgba(20, 18, 15, .9); }
.viewer-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 18px clamp(16px, 7vw, 96px) 22px; }
.viewer-count { margin: 0; padding: 10px 0; font: 500 .72rem/1.4 var(--label); letter-spacing: .22em; text-transform: uppercase; color: #cfc6b6; }
.viewer-figure { margin: 0; min-height: 0; display: grid; place-items: center; }
.viewer-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer-btn, .viewer-close {
  position: absolute; background: rgba(28, 26, 23, .6); color: #f4eee3; border: 1px solid rgba(244, 238, 227, .45);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.viewer-btn { width: 48px; height: 48px; border-radius: 50%; top: 50%; transform: translateY(-50%); }
.viewer-btn svg { width: 22px; height: 22px; }
.viewer-prev { left: clamp(8px, 2vw, 28px); }
.viewer-next { right: clamp(8px, 2vw, 28px); }
.viewer-close { top: 14px; right: clamp(12px, 2vw, 28px); border-radius: 999px; padding: 9px 14px 9px 10px; font: 500 .72rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; }
.viewer-close svg { width: 18px; height: 18px; }
.viewer :focus-visible { outline: 2px solid #f4eee3; outline-offset: 3px; }
.viewer-btn:hover, .viewer-close:hover { background: rgba(244, 238, 227, .14); border-color: rgba(244, 238, 227, .8); }
.viewer[data-single] .viewer-btn { display: none; }
@media (max-width: 640px) {
  .viewer-inner { padding: 12px 12px 76px; }
  .viewer-btn { top: auto; bottom: 14px; transform: none; }
  .viewer-prev { left: calc(50% - 60px); }
  .viewer-next { right: calc(50% - 60px); }
}

/* press */
.press-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(36px, 7vw, 120px); align-items: start; }
.press-main { position: relative; }
.file-meta { font: 500 .7rem/1.6 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.presskit { display: inline-flex; flex-direction: column; align-items: center; }
.btn-download + .file-meta { margin: 12px 0 0; text-align: center; }
.downloads { list-style: none; margin: 34px 0 0; padding: 0; max-width: 34em; }
.downloads li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.downloads li:last-child { border-bottom: 1px solid var(--rule); }
.downloads a { font: 400 1.3rem/1.2 var(--display); }
.contact-actions { display: inline-flex; flex-direction: column; align-items: stretch; gap: 12px; }
.contact-actions .btn { justify-content: center; }
@media (max-width: 859px) { .press-grid { grid-template-columns: 1fr; } }

/* screener */
.screener-body { display: flex; align-items: center; justify-content: space-between; gap: 28px 48px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.screener-body > p { margin: 0; max-width: 34em; font: italic 400 clamp(1.3rem, 2vw, 1.6rem)/1.35 var(--display); }
.screener-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.screener-action .file-meta { margin: 0; text-align: center; }
.screener .section-head::after { display: none; }
.screener .section-head { margin-bottom: clamp(78px, 8vw, 104px); } /* room for the bicycle above the line */
/* the little bicycle from the press kit, riding slowly along the screener line */
.screener-body { position: relative; }
.bike-track { position: absolute; left: 0; right: 0; bottom: 100%; height: 60px; overflow: hidden; pointer-events: none; }
.bike-path { position: absolute; inset: 0; will-change: transform; transform: translateX(6%); }
.bike { position: absolute; left: 0; bottom: 0; width: 76px; display: block; }
.bike img, .bike svg { display: block; width: 100%; }
.bike .crank { position: absolute; inset: 0; height: 100%; overflow: visible; }
.crank .arm { stroke: #3d3b37; stroke-width: .3; stroke-linecap: round; fill: none; }
.crank .pedal { fill: #3d3b37; }
.crank .far { opacity: .5; }
.crank .hub { fill: none; stroke: #3d3b37; stroke-width: .16; }
.crank-arms { transform-box: fill-box; transform-origin: center; }
.crank .pedal { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .bike-path { animation: ride 46s linear infinite; }
  .crank-arms { animation: crank 1.6s linear infinite; }
  .crank .pedal { animation: crank 1.6s linear infinite reverse; }   /* pedals stay level */
}
@keyframes crank { to { transform: rotate(360deg); } }
@keyframes ride {
  0%   { transform: translateX(0);                   opacity: 0; }
  4%   {                                              opacity: 1; }
  94%  {                                              opacity: 1; }
  100% { transform: translateX(calc(100% - 76px));  opacity: 0; }
}
@media (max-width: 600px) {
  .bike { width: 68px; }
  @keyframes ride { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 93% { opacity: 1; } 100% { transform: translateX(calc(100% - 68px)); opacity: 0; } }
}

/* footer */
.site-foot { margin-top: var(--section); padding-bottom: 28px; overflow-x: clip; }
.foot-scene { position: relative; width: min(92%, 860px); margin: 0 auto -2px; padding-top: 80px; }
.orn-mountains { width: 100%; opacity: .9; }
.balloon-flight { position: absolute; left: 60%; top: -6px; width: 54px; display: block; }
.balloon-flight .orn-balloon { width: 100%; opacity: 1; transform-origin: 50% 85%; }
@media (max-width: 600px) { .foot-scene { padding-top: 48px; } .balloon-flight { width: 32px; left: 55%; } }
.foot-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 22px; font-size: .9rem; color: var(--graphite); }
.foot-row p { margin: 0; }

/* phones: calls to action centred, like the opening's Press & festival materials */
@media (max-width: 859px) {
  .screener-body { flex-direction: column; justify-content: center; text-align: center; }
  .screener-body > p { max-width: 30em; }
  .screener-action { align-items: center; }
  .presskit { display: flex; width: max-content; max-width: 100%; margin: 0 auto; }
  .press-contact { text-align: center; }
  .contact-actions { display: flex; width: max-content; max-width: 100%; margin: 0 auto; }
}

/* screener pop-up */
.screener-dialog { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #1c1a17; color: #f4eee3; }
.screener-dialog::backdrop { background: rgba(20, 18, 15, .9); }
.sd-inner { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 16px clamp(14px, 5vw, 64px) 18px; }
.sd-head { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.sd-title { margin: 0 auto 0 0; font: 500 .72rem/1.4 var(--label); letter-spacing: .22em; text-transform: uppercase; color: #cfc6b6; }
.sd-vimeo { font: 500 .7rem/1 var(--label); letter-spacing: .18em; text-transform: uppercase; color: #f4eee3; padding: 10px 0; }
.screener-dialog .sd-close { position: static; }
.sd-frame { position: relative; min-height: 0; display: grid; place-items: center; }
.sd-frame iframe { width: min(100%, calc((100dvh - 150px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; box-shadow: 0 0 0 1px rgba(244, 238, 227, .16); }
.sd-note { margin: 0; text-align: center; font-size: .86rem; color: #b8ae9e; }
.screener-dialog :focus-visible { outline: 2px solid #f4eee3; outline-offset: 3px; }
@media (max-width: 600px) { .sd-title { flex-basis: 100%; } .screener-dialog .sd-close { margin-left: auto; } }

/* imprint page */
.imprint-back { margin-left: auto; }
.imprint { max-width: 40rem; margin: 0 auto; padding: 140px var(--gutter) 40px; }
.imprint h1 { font: 400 clamp(2.4rem, 5vw, 3.4rem)/1.05 var(--display); margin-bottom: 2.4rem; }
.imprint address { font-style: normal; margin-bottom: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
@media print {
  .site-head, .orn, .preview-badge, .player { display: none !important; }
}
