/* Courtney Phillips, director.
   One committed look: near-black ground, bone text, no accent colour. The film is the colour.
   Display: Instrument Serif italic, huge, lowercase-leading, sits over the picture like a signature.
   Text: Instrument Sans, small, quiet.
   Layout: hero of best frames with an outlined name, then one full-viewport scene per film,
   an Index that lists everything with the film playing behind the hovered title,
   contact by region at the foot. Player is ours: scrub strip of all films, keyboard, no chrome. */

:root {
  --ink: #0b0b0b;
  --bone: #efece6;
  --ash: #8c8984;
  --line: rgba(239, 236, 230, 0.14);
  --veil: rgba(11, 11, 11, 0.55);
  --display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 3.2vw, 48px);
  --bar: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100%; background: var(--ink); color: var(--bone);
  font-family: var(--text); font-size: 14px; line-height: 1.45; letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 4px; }
em { font-family: var(--display); font-style: italic; font-weight: 400; }

/* bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: calc(var(--bar) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; mix-blend-mode: difference; color: #fff;
}
.bar-name { font-size: 13px; font-weight: 500; }
.bar-mid { text-align: center; font-size: 13px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.bar-nav { display: flex; gap: 22px; justify-content: flex-end; }
.bar-btn { font-size: 13px; padding: 10px 0; }
.bar-btn[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 640px) { .bar-mid { display: none; } .bar { grid-template-columns: 1fr auto; } }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hero-frame.is-on { opacity: 1; }
.hero-name {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px) + 0.12em);
  margin: 0; font-family: var(--display); font-weight: 400; font-style: italic; line-height: .82; letter-spacing: -0.02em;
  font-size: clamp(72px, 19vw, 300px); color: transparent; -webkit-text-stroke: 1.5px var(--bone); paint-order: stroke;
  text-wrap: balance;
}
.hero-name span { display: block; }
.hero-name .fill { color: var(--bone); -webkit-text-stroke: 0; }
.hero-caption { position: absolute; z-index: 2; left: var(--gutter); top: calc(var(--bar) + env(safe-area-inset-top, 0px) + 12px); font-size: 13px; color: var(--bone); display: flex; gap: 18px; }
.hero-caption .ash { color: var(--ash); }
.hero-hint { position: absolute; z-index: 2; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px) + 6px); font-size: 12px; color: var(--ash); writing-mode: vertical-rl; }
@media (max-width: 640px) { .hero-hint { display: none; } }

/* reel */
.reel { scroll-snap-type: y proximity; }
.scene { position: relative; height: 100svh; min-height: 520px; scroll-snap-align: start; overflow: hidden; background: var(--ink) center / cover no-repeat; isolation: isolate; }
.scene-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); transform: scale(1.03); transition: transform 1.4s cubic-bezier(.2,.7,.2,1), opacity .6s; opacity: .001; }
.scene.is-ready .scene-media { opacity: 1; }
.scene.is-active .scene-media { transform: scale(1); }
.scene::after { content: ""; position: absolute; inset: auto 0 0 0; height: 50%; background: linear-gradient(to top, var(--veil), transparent); pointer-events: none; }
.scene-hit { position: absolute; inset: 0; z-index: 2; display: block; cursor: pointer; }
.scene-meta { position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--bar) + env(safe-area-inset-top, 0px) + 12px); display: flex; gap: 18px; font-size: 13px; pointer-events: none; }
.scene-meta .ash { color: var(--ash); }
.scene-title {
  position: absolute; z-index: 3; left: calc(var(--gutter) - 0.04em); right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  margin: 0; font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(56px, 13vw, 200px); line-height: .86; letter-spacing: -0.02em;
  transform: translate3d(0, calc(var(--drift, 0) * 36px), 0); will-change: transform; pointer-events: none; text-wrap: balance;
}
.scene-count { position: absolute; z-index: 3; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px) + 4px); font-size: 12px; color: var(--ash); font-variant-numeric: tabular-nums; pointer-events: none; }
.scene-play { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 12px; letter-spacing: .06em; border: 1px solid var(--line); padding: 12px 18px; border-radius: 999px; opacity: 0; transition: opacity .3s; pointer-events: none; backdrop-filter: blur(6px); }
.scene:hover .scene-play, .scene:focus-within .scene-play { opacity: 1; }

/* index */
.index { position: relative; min-height: 100svh; padding: calc(var(--bar) + env(safe-area-inset-top, 0px) + 56px) var(--gutter) 96px; isolation: isolate; }
.index-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.index-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; filter: brightness(.55); }
.index-video.is-on { opacity: 1; }
.index-list { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; width: 100%; text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.index-row .t { font-family: var(--display); font-style: italic; font-size: clamp(34px, 6.5vw, 80px); line-height: .95; letter-spacing: -0.02em; transition: color .25s, transform .4s cubic-bezier(.2,.7,.2,1); }
.index-row .c { font-size: 12px; color: var(--ash); white-space: nowrap; }
.index-list:hover .index-row .t { color: var(--ash); }
.index-row:hover .t, .index-row:focus-visible .t { color: var(--bone) !important; transform: translateX(0.15em); }
.index-row.is-coming .t { color: var(--ash); }
.index-row.is-coming .c::after { content: ", coming"; }

/* contact */
.contact { padding: 140px var(--gutter) calc(64px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.contact-lede { margin: 0 0 56px; font-size: clamp(28px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.015em; max-width: 22ch; text-wrap: balance; }
.contact-lede em { font-size: 1.12em; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 40px; margin: 0 0 56px; }
.contact-grid dt { color: var(--ash); font-size: 12px; margin-bottom: 6px; }
.contact-grid dd { margin: 0; font-size: 16px; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; margin: 0; }
.contact-mail { user-select: all; }

/* player */
.player { position: fixed; inset: 0; z-index: 60; background: var(--ink); display: grid; grid-template-rows: auto 1fr auto; }
.player-video { grid-row: 1 / -1; grid-column: 1; width: 100%; height: 100%; object-fit: contain; background: var(--ink) center / contain no-repeat; }
.player-surface { grid-row: 1 / -1; grid-column: 1; z-index: 1; cursor: pointer; }
.player-head { grid-row: 1; grid-column: 1; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 16px; background: linear-gradient(var(--veil), transparent); pointer-events: none; }
.player-head > * { pointer-events: auto; }
.player-title { font-size: 13px; }
.player-title em { font-size: 1.3em; margin-right: .4em; }
.player-close { font-size: 13px; }
.player-foot { grid-row: 3; grid-column: 1; z-index: 2; padding: 16px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--veil)); display: flex; flex-direction: column; gap: 12px; }
.strip { display: flex; gap: 3px; height: 28px; align-items: flex-end; cursor: pointer; touch-action: none; }
.strip-seg { flex: 1; height: 40%; background: rgba(239,236,230,.22); position: relative; transition: height .2s; min-width: 0; }
.strip-seg.is-current { height: 100%; background: rgba(239,236,230,.35); }
.strip-seg .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--bone); }
.strip-seg:hover { height: 70%; }
.player-meta { display: flex; gap: 24px; align-items: baseline; font-size: 12px; color: var(--ash); font-variant-numeric: tabular-nums; }
.player-time { color: var(--bone); }
.player-credits-btn[aria-expanded="true"] { color: var(--bone); text-decoration: underline; text-underline-offset: 5px; }
.player-hint { margin-left: auto; }
@media (max-width: 640px) { .player-hint { display: none; } }
.credits { margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 24px; font-size: 12px; max-width: 900px; }
.credits dt { color: var(--ash); }
.credits dd { margin: 2px 0 0; color: var(--bone); }
.player.is-idle .player-head, .player.is-idle .player-foot { opacity: 0; transition: opacity .6s; }
.player .player-head, .player .player-foot { transition: opacity .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-media, .scene-title, .index-row .t, .hero-frame { transition: none; transform: none; }
}
