/* roymichael.studio · Record, Play, Timeline
   Clean bold type on a neutral page. Each line of the headline ends in a shape instead of a
   full stop: a marigold disc (record), a pink triangle (play, and it plays the film) and a
   violet block that runs to the edge of the page (a clip on a timeline). The same three shapes
   build the RM monogram. Three colours, each with one job. */
@font-face { font-family: 'Geist'; src: url('/fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #F5F5F3; --surface: #FFFFFF; --media: #E4E4E0; --screening: #0B0B0B;
  --ink: #0D0D0D; --muted: #666662; --on-ink: #F5F5F3; --rule: #DCDCD7; --rule-strong: var(--ink);
  --accent: #5B3DF5; --accent-2: #FFB627; --accent-3: #FF5C8A; --marker: #5B3DF5; --focus: #5B3DF5; --error: #B3261E;

  --font-display: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ui: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --display-xl: clamp(2.5rem, .9rem + 8.9vw, 12rem);
  --display-l: clamp(3.25rem, 2rem + 6.1vw, 9.5rem);
  --display-m: clamp(2.125rem, 1.57rem + 2.29vw, 4.5rem);
  --h2: clamp(2.125rem, 1.9rem + 0.95vw, 2.75rem);
  --h3: clamp(1.5rem, 1.42rem + 0.38vw, 1.75rem);
  --body-l: clamp(1.125rem, 1.08rem + 0.19vw, 1.25rem);
  --body: clamp(1rem, 0.98rem + 0.1vw, 1.0625rem);
  --small: 0.9375rem;
  --mono: 0.75rem;
  --label: 0.6875rem;

  --cols: 12; --gutter: 24px; --margin: 64px; --max: 1312px; --pad-y: 120px;

  --dur-instant: 80ms; --dur-fast: 160ms; --dur-base: 240ms; --dur-slow: 480ms;
  --dur-reveal: 640ms; --dur-slip: 560ms; --dur-panel: 320ms;
  --stagger-line: 70ms; --stagger-panel: 90ms;
  --ease-cut: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Colour roles. Violet: actions, links and the contact band. Marigold: highlight and hover.
     Pink: small sparks (the trail, the monogram). Nothing else on the page carries colour:
     project thumbnails rest in black and white, so films with unrelated palettes do not
     compete with the three colours. Pointing at a thumbnail (or focusing it)
     shows its true colour. Posters inside the player and playing video are never graded. */
  --grade: grayscale(1) contrast(1.04);
}

[data-mode='screening'] {
  --bg: #0B0B0B; --surface: #161616; --media: #1F1F1F; --screening: #050505;
  --ink: #F2F2F0; --muted: #9B9B97; --on-ink: #0B0B0B; --rule: #2B2B2B; --rule-strong: var(--ink);
  --accent: #A897FF; --accent-2: #FFC247; --accent-3: #FF7BA1; --marker: #A897FF; --focus: #A897FF; --error: #FF8A7A;
  background: var(--bg); color: var(--ink);
}

@media (min-width: 1680px) { :root { --margin: 96px; --max: 1728px; } }
@media (max-width: 1023px) { :root { --cols: 8; --gutter: 16px; --margin: 32px; --max: 100%; --pad-y: 96px; } }
@media (max-width: 599px) { :root { --cols: 4; --gutter: 12px; --margin: 20px; --pad-y: 56px; } }
@media (max-width: 374px) { :root { --margin: 16px; --pad-y: 48px; } }
/* Very narrow screens (folded phones): the mark stands in for the name so the header fits. */
@media (max-width: 339px) { .site-header .wordmark__name { display: none; } .site-header .wordmark { min-width: 44px; } .site-header__cta { padding: 0 14px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-x: hidden; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 var(--body)/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: 'ss01'; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button { -webkit-appearance: none; appearance: none; font: inherit; color: inherit; background: none; border: 0; border-radius: 0; margin: 0; padding: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--margin); top: 8px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--on-ink); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.band { padding-block: var(--pad-y); }
.band--surface { background: var(--surface); }
.band--ruled { border-top: 1px solid var(--rule); }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule--strong { border-top-color: var(--rule-strong); }

/* ---------- Type ---------- */
.display-xl, .display-l, .display-m, .h2, .h3, .display-italic { font-family: var(--font-display); font-weight: 600; text-wrap: balance; hyphens: none; }
p { text-wrap: pretty; }
.display-xl { font-size: var(--display-xl); line-height: .94; letter-spacing: -.055em; }
.display-l { font-size: var(--display-l); line-height: .96; letter-spacing: -.05em; }
.display-m { font-size: var(--display-m); line-height: 1; letter-spacing: -.04em; }
.h2 { font-size: var(--h2); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
.h3 { font-size: var(--h3); line-height: 1.2; letter-spacing: -.025em; font-weight: 500; }
.display-italic { font-size: var(--h3); line-height: 1.2; font-weight: 400; letter-spacing: -.02em; }
em { font-style: normal; }

/* Emphasis in smaller headlines: a marigold bar under the phrase. */
.display-l em, .display-m em { box-shadow: inset 0 -.14em 0 var(--accent-2); }

.body-l { font-size: var(--body-l); line-height: 1.5; }
.small { font-size: var(--small); line-height: 1.5; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); font-size: var(--mono); line-height: 1.4; letter-spacing: .03em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.label { font-family: var(--font-mono); font-size: var(--label); line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; flex-shrink: 0; min-height: 48px; padding: 0 22px; font: 500 0.9375rem/1 var(--font-ui); letter-spacing: -.01em; text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; transition: background-color var(--dur-fast) var(--ease-cut), color var(--dur-fast) var(--ease-cut); }
.btn__mark { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; transition: transform var(--dur-fast) var(--ease-cut); }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary .btn__mark { background: var(--accent-2); }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--link { border-color: transparent; border-radius: 0; padding: 0 2px; min-height: 44px; gap: 10px; }
.btn--link .btn__label { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--accent); border-color: var(--accent); }
  .btn--primary:hover .btn__mark { background: var(--on-ink); }
  .btn--secondary:hover { background: var(--ink); color: var(--on-ink); }
  .btn:hover .btn__mark { transform: translateX(3px); }
  .btn--link:hover { color: var(--accent); }
}
.btn:active { transform: translateY(1px); }

/* ---------- Header + ruler ---------- */
/* The header stays with the visitor, so the way to get in touch is always one tap away. */
.site-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 20; background: rgba(245, 245, 243, .9); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.rm-mark { width: auto; height: 22px; align-self: center; flex: none; }
.rm-mark .pa-ink { fill: var(--ink); } .rm-mark .pa-disc { fill: var(--accent-2); } .rm-mark .pa-shirt { fill: var(--accent); } .rm-mark .pa-pink { fill: var(--accent-3); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .875rem; gap: 10px; }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.wordmark { display: flex; align-items: center; min-height: 44px; gap: 12px; padding-block: 8px; text-decoration: none; margin-right: auto; }
.wordmark__name { font: 600 1.375rem/1 var(--font-display); letter-spacing: -.04em; }
.wordmark__title { color: var(--muted); }
.site-nav { display: flex; gap: 32px; }
.site-nav a { font-size: .9375rem; text-decoration: none; padding: 12px 4px; min-width: 44px; text-align: center; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size var(--dur-base) var(--ease-cut); }
.site-nav a:hover { background-size: 100% 1px; }
.availability { display: inline-flex; align-items: center; gap: 8px; }
.availability__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.menu-button { display: none; min-height: 44px; min-width: 44px; padding: 0 4px; }
@media (max-width: 1023px) {
  .site-header .availability, .wordmark__title { display: none; }
  .site-header__inner { min-height: 64px; }
}
@media (max-width: 599px) {
  .site-nav { display: none; }
  .site-header__inner { gap: 10px; }
  .site-header__cta { padding: 0 16px; }
  .menu-button { min-width: 48px; }
  .menu-button { display: inline-flex; align-items: center; justify-content: flex-end; }
}

.ruler-wrap, .site-header + .wrap > .rule { display: none; }
.ruler { position: relative; height: 34px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); overflow: hidden; }
.ruler__ticks { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px calc(100% / 64)), repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px calc(100% / 16)); background-size: 100% 6px, 100% 12px; background-repeat: no-repeat; background-position: 0 0, 0 0; }
.ruler__labels { position: absolute; inset: auto 0 6px 0; display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); }
.ruler__labels span { font: 400 10px/1 var(--font-mono); letter-spacing: .03em; color: var(--muted); padding-left: 5px; white-space: nowrap; }
.ruler__playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--accent); transform: translateX(var(--ph, 0px)); will-change: transform; }
.ruler__playhead::before { content: ''; position: absolute; top: 0; left: -4px; border: 4.5px solid transparent; border-top: 6px solid var(--accent); }
/* Between 1024 and 1279 a label is wider than its column, so only every second one is printed. */
@media (max-width: 1279px) { .ruler__labels span:nth-child(even) { visibility: hidden; } }
@media (max-width: 1023px) { .ruler-wrap { display: none; } }


/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 96px); }
.hero__grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); align-items: end; }
.hero__headline { grid-column: 1 / -1; }
.hero__script { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 24px; align-items: start; margin-top: clamp(32px, 4vw, 64px); }
.hero__script .label { grid-column: 1 / span 4; margin: 6px 0 0; }
.hero__intro { grid-column: 6 / span 4; font-size: var(--body-l); line-height: 1.45; letter-spacing: -.01em; max-width: 36ch; }
.hero__ctas { grid-column: 10 / span 3; justify-self: end; }
.hero__headline .slip > span { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .22em; }
.nw { white-space: nowrap; }
.shape { display: inline-block; flex: none; width: .5em; height: .5em; margin-left: .11em; }
.shape--dot { border-radius: 50%; background: var(--accent-2); }
.shape--play { width: .46em; height: .52em; padding: 0; vertical-align: baseline; transition: transform var(--dur-base) var(--ease-out); }
.shape--play i { display: block; width: 100%; height: 100%; background: var(--accent-3); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: background-color var(--dur-fast) var(--ease-cut); }
button.shape--play { position: relative; }
button.shape--play::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 48px); height: max(100%, 48px); transform: translate(-50%, -50%); }
button.shape--play:hover { transform: translateX(.05em) scale(1.06); }
button.shape--play:hover i { background: var(--accent); }
button.shape--play:active { transform: scale(.96); }
/* The clip: fills the rest of the line. Its playhead follows the scroll position. */
.shape--clip { position: relative; flex: 1 1 .8em; align-self: center; min-width: .8em; height: .56em; margin: .06em 0 0 .02em; background: var(--accent); transform-origin: left; }
.shape--clip i { position: absolute; top: -12%; bottom: -12%; left: calc(var(--p, 0) * (100% - 3px)); width: 3px; background: var(--ink); }
@media (min-width: 1024px) { .hero__ctas { flex-direction: column; flex-wrap: nowrap; width: fit-content; } }
@media (max-width: 1023px) {
  .hero__script .label { grid-column: 1 / -1; margin: 0; }
  .hero__intro { grid-column: 1 / span 5; }
  .hero__ctas { grid-column: 6 / -1; }
}
@media (max-width: 599px) {
  .hero__intro, .hero__ctas { grid-column: 1 / -1; justify-self: stretch; }
  .hero .hero__ctas { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px; }
  .hero .hero__ctas .btn { width: 100%; min-height: 52px; flex: none; }
}

/* Slip: each line is masked and slides up into place.
   The display sizes are set tighter than the font's own height (line-height .88 to .96),
   so Newsreader's ascenders rise about .075em above the line box and its descenders drop
   about .03em below it. The mask is therefore drawn outside the line box instead of on it:
   a clip-path with negative insets covers the full ink (and the italic overhang at the
   sides) without changing the layout. --slip-from starts the line fully below the mask. */
.slip { display: block; clip-path: inset(-.16em -.3em -.2em); --slip-from: calc(100% + .5em); }
.slip > span { display: block; }
h2 .slip, .contact h2 .slip { display: block; }

/* ---------- Reel ---------- */
.reel { margin-top: clamp(48px, 6vw, 88px); container-type: inline-size; }
.reel__track { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; transition: grid-template-columns var(--dur-panel) var(--ease-cut); }
.reel__link { display: block; text-decoration: none; }
.reel__media { display: block; position: relative; overflow: hidden; background: var(--media); height: calc(100cqw / 2.39); }
.reel__img { width: 100%; height: 100%; object-fit: cover; filter: var(--grade); transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out); }
.reel__link:focus-visible .reel__img { filter: none; }
@media (hover: hover) and (pointer: fine) { .reel__panel:hover .reel__img { filter: none; } }
.reel__caption { display: block; padding: 12px 12px 0 0; }
.reel__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.reel__index { color: var(--accent); }
.reel__title { font: 600 var(--h3)/1.1 var(--font-display); letter-spacing: -.035em; margin-right: auto; transition: color var(--dur-fast) var(--ease-cut); }
.reel__category { display: block; color: var(--muted); margin-top: 6px; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .reel__track:has(.reel__panel:nth-child(1):hover) { grid-template-columns: 1.3fr .85fr .85fr; }
  .reel__track:has(.reel__panel:nth-child(2):hover) { grid-template-columns: .85fr 1.3fr .85fr; }
  .reel__track:has(.reel__panel:nth-child(3):hover) { grid-template-columns: .85fr .85fr 1.3fr; }
  .reel__panel:hover .reel__img { transform: scale(1.02); }
  .reel__panel:hover .reel__title { color: var(--accent); }
}
.reel__pager { display: none; }
@media (max-width: 599px) {
  .reel { margin-inline: calc(-1 * var(--margin)); }
  .reel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-inline: var(--margin); scrollbar-width: none; scroll-padding-inline: var(--margin); }
  .reel__track::-webkit-scrollbar { display: none; }
  .reel__panel { flex: 0 0 82%; scroll-snap-align: start; }
  .reel__media { height: auto; aspect-ratio: 4 / 5; }
  .reel__pager { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; padding: 18px var(--margin) 0; }
  .reel__seg { height: 2px; background: var(--rule); overflow: hidden; }
  .reel__seg span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-cut); }
  .reel__seg.is-active span { transform: scaleX(1); }
  .reel__panel.is-active .reel__img { filter: none; }
}
.hero-image { margin-top: clamp(48px, 6vw, 88px); background: var(--media); }
.hero-image img { width: 100%; max-height: 72vh; object-fit: cover; }

/* ---------- Index ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head .label { margin-bottom: 14px; }
.section-head--ruled { border-bottom: 1px solid var(--rule-strong); padding-bottom: 14px; margin-bottom: 24px; }
.section-head--ruled .label { margin: 0; }
.index { position: relative; }
.index__head, .row { display: grid; grid-template-columns: 72px minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) 72px 110px; column-gap: var(--gutter); align-items: baseline; }
.index__head { color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.index__head .c-dur, .row .c-dur { text-align: right; }
.index__list li { border-bottom: 1px solid var(--rule); }
.row { position: relative; padding: 26px 0; text-decoration: none; transition: background-color var(--dur-fast) var(--ease-cut); }
.row__index { color: var(--muted); padding-left: 8px; transition: color var(--dur-fast) var(--ease-cut); }
.row__title { font: 600 clamp(2rem, 1.4rem + 1.6vw, 3.25rem)/1 var(--font-display); letter-spacing: -.045em; transition: transform var(--dur-base) var(--ease-cut); display: inline-block; }
.row__cat, .row__type, .row__year { color: var(--muted); }
.row__dur { transition: color var(--dur-fast) var(--ease-cut); padding-right: 8px; }
.row__meta, .row__arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .row:hover { background: var(--accent-2); }
  .row:hover .row__index, .row:hover .row__dur, .row:hover .row__cat, .row:hover .row__type, .row:hover .row__year { color: var(--ink); }
  .row:hover .row__title { transform: translateX(12px); }
}
.preview-float { position: absolute; left: 0; top: 0; z-index: 5; width: 320px; pointer-events: none; opacity: 0; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: opacity var(--dur-fast) var(--ease-cut); background: var(--media); }
.preview-float img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: inset(0 100% 0 0); transition: clip-path var(--dur-base) var(--ease-cut); }
.preview-float span { display: block; padding: 8px 10px; background: var(--ink); color: var(--on-ink); }
.preview-float.is-on { opacity: 1; }
.preview-float.is-on img { clip-path: inset(0); }
@media (max-width: 1023px) {
  .index__head, .row { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 96px; }
  .c-cat, .c-year { display: none; }
  .preview-float { display: none; }
}
@media (max-width: 599px) {
  .index__head { display: none; }
  .index__list li:first-child { border-top: 1px solid var(--rule-strong); }
  .row { grid-template-columns: 40px 1fr 24px; grid-template-areas: 'i t a' 'i m a'; row-gap: 6px; padding: 20px 0; }
  .row__index { grid-area: i; padding-left: 0; }
  .row__title { grid-area: t; font-size: 2rem; }
  .row__meta { display: block; grid-area: m; color: var(--muted); }
  .row__arrow { display: block; grid-area: a; align-self: center; text-align: right; }
  .c-type, .c-dur { display: none; }
}

/* ---------- Screening ---------- */
.screening .label { margin-bottom: 28px; }
.screening__grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 32px; align-items: start; }
.screening__player { grid-column: 1 / span 8; }
.screening__facts { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; }
.screening__sub { color: var(--muted); margin-top: -12px; }
@media (max-width: 1023px) { .screening__player, .screening__facts { grid-column: 1 / -1; } }
@media (max-width: 599px) { .screening__player:not(:has(.player--vertical)), .screening--detail .wrap > .player:not(.player--vertical) { margin-inline: calc(-1 * var(--margin)); } .screening--detail .wrap > .player:not(.player--vertical) .player__controls, .screening__player:not(:has(.player--vertical)) .player__controls { padding-inline: var(--margin); } }
.facts { border-top: 1px solid var(--rule-strong); }
.facts__row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 400 var(--label)/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: var(--small); }
.facts dd a { text-decoration: underline; }
.ownership { display: inline-flex; align-items: center; gap: 10px; font: 400 var(--mono)/1.4 var(--font-mono); letter-spacing: .03em; text-transform: uppercase; }
.ownership__mark { width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); }

/* ---------- Player ---------- */
.player { position: relative; color: var(--ink); container-type: inline-size; }
@container (max-width: 440px) { .volume { display: none; } }
/* Folded phones: the player shows the current time only, so its buttons keep their size. */
@container (max-width: 300px) { .player__time { max-width: 8.6ch; overflow: hidden; } .player__buttons { gap: 4px; } }
.player__picture { position: relative; aspect-ratio: var(--ar, 16 / 9); background: var(--screening); overflow: hidden; }
.player__poster, .player__picture video, .player__picture iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player__picture video { object-fit: contain; background: #000; }
/* Before it plays, the poster follows the same rule as every other thumbnail: black and white
   at rest, its own colour when pointed at. The play mark is the pink triangle from the headline.
   The film itself always plays in its true colour. */
.player__poster { filter: var(--grade); transition: filter var(--dur-slow) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .player__picture:hover .player__poster { filter: none; } }
.player__big-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; color: #F3EFE7; }
.player__big-play svg { width: clamp(150px, 20vw, 280px); height: auto; transition: transform var(--dur-base) var(--ease-out); }
.player__big-play .bp-disc { fill: none; stroke: none; }
.player__big-play .bp-tri { fill: #FF5C8A; transition: fill var(--dur-fast) var(--ease-cut); }
.player__big-play:hover svg { transform: scale(1.06); }
.player__big-play:hover .bp-tri { fill: #FFB627; }
.player__chip { position: absolute; left: 16px; bottom: 16px; padding: 7px 10px; background: rgba(15, 14, 12, .72); color: #F3EFE7; pointer-events: none; }
.player.is-started .player__poster, .player.is-started .player__big-play, .player.is-started .player__chip { display: none; }
.player__state { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; background: rgba(10, 9, 8, .55); color: #EDE8DE; text-align: center; padding: 24px; }
.player__state[hidden] { display: none; }
.player__state [data-when] { display: none; }
.player[data-state='loading'] [data-when='loading'], .player[data-state='error'] [data-when='error'], .player[data-state='ended'] [data-when='ended'] { display: block; }
.player[data-state='loading'] .player__state { background: transparent; }
.player__spinner { width: 36px; height: 36px; border: 1px solid rgba(237, 232, 222, .3); border-top-color: #A897FF; border-radius: 50%; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player__msg-title { font: 600 var(--h3)/1.2 var(--font-display); letter-spacing: -.03em; margin-bottom: 8px; }
.player__msg-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.player__next { display: inline-block; margin-top: 8px; font: 600 var(--h3)/1.2 var(--font-display); letter-spacing: -.03em; text-decoration: none; }
.player__next:hover { color: #A897FF; }
.player__controls { padding-top: 10px; }
.scrub { position: relative; height: 24px; cursor: pointer; touch-action: none; }
.scrub::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; bottom: -10px; }
.scrub__track { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--rule); }
.scrub__buffered, .scrub__played { position: absolute; inset: 0 auto 0 0; width: 0; }
.scrub__buffered { background: var(--muted); opacity: .45; }
.scrub__played { background: var(--accent); }
.scrub__thumb { position: absolute; top: 4px; left: 0; width: 2px; height: 16px; background: var(--accent); transform: translateX(-1px); }
.scrub:hover .scrub__track, .scrub:focus-visible .scrub__track { top: 10px; height: 4px; }
.player__buttons { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.player__left, .player__right { display: flex; align-items: center; gap: 4px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--accent); }
.icon-btn[data-toggle] .i-pause, .player.is-playing .icon-btn[data-toggle] .i-play { display: none; }
.player.is-playing .icon-btn[data-toggle] .i-pause { display: block; }
.icon-btn[data-mute] .i-mute, .player.is-muted .icon-btn[data-mute] .i-wave { display: none; }
.player.is-muted .icon-btn[data-mute] .i-mute { display: block; }
.player__time { color: var(--muted); padding-left: 6px; white-space: nowrap; }
.volume { width: 88px; height: 44px; margin: 0; accent-color: var(--accent); }
@media (hover: none), (max-width: 599px) { .volume { display: none; } }
.player__strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
@media (max-width: 599px) { .player__strip { display: none; } }
.player__strip button { display: block; width: 100%; text-align: left; }
.player__strip img { aspect-ratio: var(--ar, 16 / 9); object-fit: cover; width: 100%; filter: var(--grade); opacity: .8; transition: opacity var(--dur-fast) var(--ease-cut), filter var(--dur-base) var(--ease-out); }
.player__strip button:hover img, .player__strip button:focus-visible img { opacity: 1; filter: none; }
.player__strip span { display: block; padding-top: 6px; color: var(--muted); }
.player:fullscreen { background: #000; display: flex; flex-direction: column; justify-content: center; }
.player:fullscreen .player__picture { aspect-ratio: auto; flex: 1; }
.player:fullscreen .player__controls { padding: 10px 24px 20px; color: #EDE8DE; }
.player:fullscreen .player__strip { display: none; }

/* ---------- Theatre ---------- */
.theatre { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--screening); color: var(--ink); overflow: hidden; }
.theatre::backdrop { background: transparent; }
.theatre__bar { position: absolute; left: 0; right: 0; height: 8vh; background: #000; transform-origin: top; z-index: 1; }
.theatre__bar--top { top: 0; }
.theatre__bar--bottom { bottom: 0; transform-origin: bottom; }
.theatre__chrome { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding: 16px var(--margin); }
.theatre__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }
.theatre__label { color: var(--muted); text-align: center; flex: 1; }
.theatre__stage { display: grid; align-content: center; justify-items: center; min-height: 0; padding-block: 8px; overflow: hidden; }
.theatre__stage .player__strip { display: none; }
.theatre__stage .player__controls { color: var(--ink); }
.theatre__stage .player { width: min(100%, calc((100dvh - 250px) * var(--ar-num, 1.7778))); }
.theatre__keys { text-align: center; color: var(--muted); padding: 10px 0 4px; }
@media (hover: none), (max-width: 599px) { .theatre__keys { display: none; } }
@media (max-width: 599px) { .theatre__label { display: none; } .theatre__chrome { padding-inline: 12px; } }
/* In the theatre a vertical film is sized by the height available, never by a minimum width. */
.theatre__stage .player--vertical { min-width: 0; }
/* Short screens (a phone held sideways): drop the letterbox bars and the key hints and give
   the picture the height. */
@media (max-height: 520px) {
  .theatre__bar, .theatre__keys { display: none; }
  .theatre__chrome { padding-block: 4px; }
  .theatre__top { min-height: 44px; }
  .theatre__stage { padding-block: 0; }
  .theatre__stage .player { width: min(100%, calc((100dvh - 132px) * var(--ar-num, 1.7778))); }
  .theatre__stage .player__controls { padding-top: 2px; }
  .theatre__stage .scrub { height: 20px; }
}
html.has-dialog { overflow: hidden; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.about__portrait { grid-column: 1 / span 4; }
.about__portrait img { width: 100%; mix-blend-mode: multiply; }
/* Portrait: flat shapes in the site's colours, cut into three strips that sit slightly
   off each other. They slide into that position on reveal and line up when pointed at. */
.portrait-art { display: block; width: 100%; max-width: 440px; height: auto; overflow: hidden; }
.portrait-art .pa-disc { fill: var(--accent-2); }
.portrait-art .pa-ink { fill: var(--ink); }
.portrait-art .pa-paper { fill: #F4E6D6; }
.portrait-art .pa-shirt { fill: var(--accent); }
.portrait-art .pa-pink { fill: var(--accent-3); }
.portrait-art .pa-brow { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.portrait-art .pa-eye { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.portrait-art .pa-band { transform: translateX(var(--x, 0)); transition: transform 640ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .about__portrait:hover .pa-band { transform: none; animation: none; } }
.about__text { grid-column: 6 / span 7; }
.about__statement { margin-bottom: 32px; max-width: 17ch; }
.about__bio { max-width: 52ch; margin-bottom: 48px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); border-top: 1px solid var(--rule-strong); margin-bottom: 28px; }
.services li { padding-top: 16px; }
.services__title { font: 600 var(--h3)/1.2 var(--font-display); letter-spacing: -.03em; margin-bottom: 8px; }
@media (max-width: 1023px) {
  .about__portrait { grid-column: 1 / -1; max-width: 380px; }
  .about__text { grid-column: 1 / span 7; }
  .services { grid-template-columns: 1fr; gap: 0; }
  .services li { border-bottom: 1px solid var(--rule); padding: 16px 0; }
}
@media (max-width: 599px) {
  .about__portrait { max-width: 300px; }
  .about__text { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
/* The contact band is the one block of solid colour: violet, with marigold as its accent. */
.contact, .contact-strip-band { --bg: #5B3DF5; --surface: #5B3DF5; --ink: #FFFFFF; --on-ink: #0D0D0D; --muted: #E4DEFF; --rule: rgba(255, 255, 255, .4); --rule-strong: #FFFFFF; --accent: #FFB627; --accent-2: #FFB627; --focus: #FFFFFF; background: var(--bg); color: var(--ink); }
.contact .btn--primary:hover, .contact-strip-band .btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #0D0D0D; }
.contact .btn--primary:hover .btn__mark, .contact-strip-band .btn--primary:hover .btn__mark { background: #0D0D0D; }
.contact ::selection, .contact-strip-band ::selection { background: #FFB627; color: #0D0D0D; }
.contact__grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 40px; align-items: end; }
.contact__head { grid-column: 1 / span 7; }
.contact__actions { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 24px; }
.contact__helper { max-width: 36ch; }
@media (max-width: 1023px) { .contact__head, .contact__actions { grid-column: 1 / -1; } }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.contact-email { flex-basis: 100%; margin-bottom: 8px; }
.contact-email a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; font: 500 clamp(1.375rem, 1.1rem + 1.1vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -.035em; overflow-wrap: anywhere; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--rule-strong); transition: color var(--dur-fast) var(--ease-cut); }
.contact-email a:hover { color: var(--accent); text-decoration-color: currentColor; }
.contact-actions--full { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.contact-actions--full > * { flex-basis: auto; }
.contact-actions--full .copy-email { justify-content: center; }
.contact-actions--full .btn { justify-content: center; }
.copy-email { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9375rem; }
.copy-email svg { width: 16px; height: 16px; }
.copy-email__check, .copy-email.is-copied .copy-email__icon { display: none; }
.copy-email.is-copied .copy-email__check { display: block; color: var(--accent); }
.copy-email__label { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; }
.copy-email:hover { color: var(--accent); }
.copy-email__fallback { flex-basis: 100%; font-size: var(--small); }
.copy-email__address { user-select: all; font-family: var(--font-mono); }

/* ---------- Footer ---------- */
.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding-block: 28px 36px; border-top: 1px solid var(--rule-strong); color: var(--muted); }
.site-footer a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: .5em; }
.site-footer a:hover { color: var(--accent); }
.site-footer__links { display: flex; gap: 20px; }
@media (max-width: 599px) { .site-footer { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Mobile menu ---------- */
.menu { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--ink); }
.menu::backdrop { background: transparent; }
.menu[open] { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.menu__nav { min-height: min-content; }
.menu__head { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.menu__head .menu-button { display: inline-flex; align-items: center; }
.menu__nav { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.menu__nav a { display: grid; grid-template-columns: 40px 1fr auto; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.menu__nav .mono { color: var(--accent); }
.menu__word { font: 600 clamp(3rem, 12vw, 4.5rem)/1 var(--font-display); letter-spacing: -.055em; }
.menu__nav a:hover .menu__word, .menu__nav a:focus-visible .menu__word { color: var(--accent); }
.menu__meta { color: var(--muted) !important; }
.menu__foot { padding-block: 24px 32px; display: flex; flex-direction: column; gap: 16px; }
.menu__links { display: flex; gap: 20px; }
.menu__links a { min-height: 44px; display: inline-flex; align-items: center; gap: .5em; text-decoration: none; }

/* ---------- Project page ---------- */
.project__head { padding-top: 8px; padding-bottom: clamp(40px, 5vw, 72px); }
.project__crumbs { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(32px, 5vw, 72px); }
.project__crumbs a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.project__crumbs a:hover { color: var(--accent); }
.project__title-row { display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 32px; align-items: end; }
.project__titles { grid-column: 1 / span 8; }
.project__title { margin-bottom: 16px; overflow-wrap: anywhere; }
.project__meta { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1023px) { .project__titles, .project__meta { grid-column: 1 / -1; } }
.screening--detail { padding-block: clamp(32px, 5vw, 72px); }
.project__about { display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); }
.project__about .label { grid-column: 1 / span 3; }
.project__description { grid-column: 5 / span 7; max-width: 30ch; }
@media (max-width: 1023px) { .project__about .label, .project__description { grid-column: 1 / -1; } }
.project__frames { padding-top: 0; }
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.frames img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--media); }
.frames figcaption { display: flex; justify-content: space-between; padding-top: 10px; font-size: var(--small); }
@media (max-width: 599px) { .frames { grid-template-columns: 1fr; } .frames--vertical { grid-template-columns: repeat(3, 1fr); gap: 8px; } .frames--vertical figcaption { flex-direction: column; gap: 2px; } }
.frames--vertical { max-width: 960px; }
.frames--vertical img { aspect-ratio: 9 / 16; }
.player--vertical { width: min(100%, calc((100svh - 200px) * 9 / 16)); min-width: min(100%, 300px); margin-inline: auto; }
.next-project__link { display: grid; grid-template-columns: repeat(var(--cols), 1fr); column-gap: var(--gutter); row-gap: 28px; align-items: center; text-decoration: none; }
.next-project__text { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 14px; }
.next-project__media { grid-column: 7 / span 6; overflow: hidden; background: var(--media); }
.next-project__media img { width: 100%; aspect-ratio: 2.39 / 1; object-fit: cover; filter: var(--grade); transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out); }
.next-project__link:focus-visible img { filter: none; }
@media (hover: hover) and (pointer: fine) { .next-project__link:hover img { filter: none; } }
.next-project__link:hover .next-project__title { color: var(--accent); }
.next-project__link:hover img { transform: scale(1.02); }
@media (max-width: 1023px) { .next-project__text, .next-project__media { grid-column: 1 / -1; } }
.contact-strip { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.notfound { min-height: 60vh; display: flex; flex-direction: column; gap: 24px; justify-content: center; }

/* ---------- Entrance (first visit per session, motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js:not([data-entered]) .hero .slip > span { animation: slip var(--dur-slip) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger-line)); }
  html.js:not([data-entered]) .hero__script { animation: cut 1ms steps(1) both; animation-delay: 140ms; }
  html.js:not([data-entered]) .hero .shape--dot { animation: pop 380ms var(--ease-out) both; animation-delay: 560ms; }
  html.js:not([data-entered]) .hero .shape--play { animation: pop 380ms var(--ease-out) both; animation-delay: 680ms; }
  html.js:not([data-entered]) .hero .shape--clip { animation: draw 620ms var(--ease-cut) both; animation-delay: 800ms; }
  html.js:not([data-entered]) .reel__panel .reel__media { animation: wipe var(--dur-slow) var(--ease-cut) both; animation-delay: calc(180ms + var(--i, 0) * var(--stagger-panel)); }
  html.js:not([data-entered]) .reel__caption { animation: cut 1ms steps(1) both; animation-delay: 840ms; }
  html.js:not([data-entered]) .ruler__playhead { animation: playhead 900ms var(--ease-cut) both; }
  html.js:not([data-entered]) .page-project .project__title .slip > span { animation: slip var(--dur-slip) var(--ease-out) both; }

  /* Scroll reveals, triggered by site.js adding .is-in */
  html.js [data-reveal] .slip > span { transform: translateY(var(--slip-from)); transition: transform var(--dur-slip) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger-line)); }
  html.js [data-reveal].is-in .slip > span { transform: none; }
  html.js [data-reveal='portrait'] img { clip-path: polygon(0 0, 0 0, 0 0); transition: clip-path 900ms var(--ease-cut); }
  html.js [data-reveal='portrait'].is-in img { clip-path: polygon(0 0, 200% 0, 0 200%); }
  html.js [data-reveal='portrait']:not(.is-in) .pa-band { transform: translateX(calc(var(--x, 0px) * 9)); }
  html.js [data-reveal='portrait'].is-in .pa-band { animation: recut 6.5s var(--ease-cut) 1.8s infinite; }
  html.js .services li { opacity: 0; transition: opacity 1ms steps(1); transition-delay: calc(240ms + var(--i, 0) * var(--stagger-panel)); }
  html.js [data-reveal].is-in .services li { opacity: 1; }
}
@keyframes slip { from { transform: translateY(var(--slip-from)); } to { transform: none; } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: none; } }
@keyframes recut { 0%, 72%, 100% { transform: translateX(var(--x, 0)); } 78%, 90% { transform: none; } }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }
@keyframes blink { 0%, 94%, 100% { transform: none; } 97% { transform: scaleY(.1); } }
@keyframes cut { from { visibility: hidden; } to { visibility: visible; } }
@keyframes playhead { from { transform: translateX(0); } to { transform: translateX(var(--ph, 0px)); } }

/* View transitions between pages (progressive enhancement). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-instant); animation-timing-function: steps(1); }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .player__spinner { animation: none; border-top-color: rgba(237, 232, 222, .3); }
}

@media print {
  .site-header, .ruler-wrap, .theatre, .menu, .player__controls, .player__big-play, .preview-float { display: none !important; }
  [data-mode='screening'] { background: #fff; color: #000; }
}
