/* Layout: a quiet gallery. Name top left, small uppercase nav top right, hairline rules,
   a 4-column grid of 3:2 thumbnails with centered captions, one-line footer.
   Dark only, so the films' own colour is the only colour on the page. */
:root {
  color-scheme: dark;
  --bg: #131518;
  --panel: #1d2024;
  --line: #2f3338;
  --fg: #e8eaed;
  --muted: #979ea7;
  --body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Source Code Pro", ui-monospace, Menlo, monospace;
  --track: .1em;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 1.0625rem/1.65 var(--body); }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, video, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .3em; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(clamp(16px, 5vw, 56px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(16px, 5vw, 56px), env(safe-area-inset-right, 0px));
}
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--fg); color: var(--bg); padding: .6rem 1rem; z-index: 30; }
.skip:focus { top: 12px; }
.caps { font-size: .875rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }
.muted { color: var(--muted); }
.tc { font: 400 .8125rem/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.todo { display: inline-block; font-size: .6875rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: .15rem .45rem; }

/* header */
.head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.brand { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.25rem); text-decoration: none; min-width: 0; }
.brand-text { display: grid; gap: .3rem; min-width: 0; }
.logo { height: clamp(36px, 7vw, 64px); width: auto; }
.brand-name { font-size: clamp(1.6rem, 4vw, 2.25rem); font-weight: 700; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.brand-sub { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav > ul { display: flex; align-items: center; gap: .25rem 1.4rem; }
.nav a, .sub-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; text-decoration: none; cursor: pointer;
  font-size: .9375rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }
.nav a:hover, .sub-btn:hover { color: var(--muted); }
.nav a[aria-current], .sub-btn.on { color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; }
.sub-btn::after { content: ""; width: .4em; height: .4em; margin-left: .5em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-25%) rotate(45deg); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; z-index: 20; top: 100%; left: -1rem; min-width: 13rem; padding: .5rem 1rem; background: var(--panel); border: 1px solid var(--line); }
.sub-btn[aria-expanded="true"] + .sub { display: block; }
@media (hover: hover) { .has-sub:hover .sub { display: block; } }
.sub a { display: flex; width: 100%; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; flex: none; }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--fg); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* pages */
.page { padding-block: clamp(2rem, 5vw, 3rem) clamp(4rem, 9vw, 6rem); display: grid; gap: clamp(2rem, 4vw, 2.75rem); }
.intro { max-width: 60ch; color: var(--muted); font-size: 1.125rem; }
.page-head { display: grid; gap: .5rem; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2; }

/* grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem); }
.tile { display: grid; gap: .7rem; text-decoration: none; text-align: center; }
.thumb { position: relative; aspect-ratio: 3 / 2; max-width: 100%; overflow: hidden; background: var(--panel); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .4s; }
.tile:hover .thumb img { opacity: .8; transform: scale(1.03); }
.tile:hover .thumb .offline { background: var(--line); }
.tile-title { font-size: .9375rem; font-weight: 600; letter-spacing: .05em; line-height: 1.35; overflow-wrap: anywhere; }
.tile-meta { display: block; margin-top: -.4rem; font-size: .8125rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }

/* placeholder media */
.offline { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .35rem; padding: .75rem; text-align: center; transition: background .25s;
  background: repeating-linear-gradient(135deg, var(--panel) 0 14px, #1a1c20 14px 28px); }
.offline span { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.offline small { font-size: .6875rem; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }

/* video */
.frame { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; overflow: hidden; background: #000; }
.frame > img, .frame > iframe, .frame > video { width: 100%; height: 100%; object-fit: cover; border: 0; }
.frame > video { object-fit: contain; }
.frame .offline span { font-size: clamp(.875rem, 2vw, 1.125rem); }
.play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: rgb(0 0 0 / .2); cursor: pointer; }
.play span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--fg); background: rgb(0 0 0 / .45); }
.play:hover span { background: var(--fg); color: var(--bg); }
.play svg { width: 22px; height: 22px; margin-left: 4px; fill: currentColor; }

/* film page */
.back { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.back:hover { color: var(--muted); }
.film-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.film-main, .film-side { display: grid; gap: 1.75rem; min-width: 0; }
.film-side h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 600; line-height: 1.2; letter-spacing: .02em; text-wrap: balance; }
.block { display: grid; gap: .6rem; }
.block h2 { font-size: .875rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.block p { max-width: 62ch; }
.block .facts { margin-top: .4rem; }
.facts > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding-block: .55rem; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { overflow-wrap: anywhere; }
.notes button { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .75rem; width: 100%; min-height: 48px; padding: .65rem 0; align-items: baseline; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; }
.notes button:disabled { cursor: default; }
.notes button:not(:disabled):hover .tc { text-decoration: underline; }
.stills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1rem; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.pager a:hover { color: var(--muted); }
.pager a:last-child { justify-self: end; }

/* listen */
.mixer { display: grid; gap: 1rem; }
.mixer-top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 1.4rem; border: 1px solid var(--fg); background: none; cursor: pointer; text-decoration: none;
  font-size: .8125rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }
.btn:hover, .btn.solid { background: var(--fg); color: var(--bg); }
.btn.solid:hover { background: var(--muted); border-color: var(--muted); }
.stems { display: grid; border-top: 1px solid var(--line); }
.stem { display: grid; grid-template-columns: 7rem auto minmax(0, 1fr); gap: .5rem 1.25rem; align-items: center; padding-block: .6rem; border-bottom: 1px solid var(--line); }
.stem-name { font-weight: 600; }
.ms { display: flex; gap: 6px; }
.ms button { min-width: 4.25rem; height: 44px; border: 1px solid var(--line); background: none; cursor: pointer; font-size: .75rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }
.ms button:hover { border-color: var(--fg); }
.ms button[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.wave { position: relative; height: 56px; background: var(--panel); overflow: hidden; color: var(--fg); transition: opacity .2s; }
.wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave i { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--fg); }
.stem.off .wave { opacity: .25; }
.seek { width: 100%; height: 44px; margin: 0; accent-color: var(--fg); cursor: pointer; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.about-grid .thumb { aspect-ratio: 4 / 5; }
.headshot { width: 100%; height: auto; }

/* contact */
.icon-link { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fg); color: var(--bg); text-decoration: none; flex: none; transition: background .2s; }
.icon-link svg { width: 20px; height: 20px; }
a.icon-link:hover, .contact-row:hover .icon-link { background: var(--muted); }
.contact-list { display: grid; border-top: 1px solid var(--line); max-width: 40rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.contact-row { flex: 1; min-width: 0; display: flex; align-items: center; gap: 1.1rem; padding-block: 1.1rem; text-decoration: none; }
.contact-row > span:last-child { display: grid; gap: .1rem; min-width: 0; }
.contact-label { font-size: .8125rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--muted); }
.contact-value { font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 600; overflow-wrap: anywhere; }
.contact-row:hover .contact-value { text-decoration: underline; text-decoration-thickness: 1px; }
.copy { min-height: 40px; padding: 0 1rem; border: 1px solid var(--line); background: none; cursor: pointer; font-size: .75rem; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; flex: none; }
.copy:hover { border-color: var(--fg); }

/* footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.75rem; padding-block: 1.5rem; font-size: .9375rem; color: var(--muted); }
.foot a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--fg); }
.foot .end { margin-left: auto; display: flex; flex-wrap: wrap; gap: .6rem; }
.foot .icon-link { display: inline-grid; place-items: center; width: 36px; height: 36px; min-height: 0; }
.foot .icon-link svg { width: 17px; height: 17px; }
.foot a.icon-link:hover { color: var(--bg); }
.site-footer { padding-bottom: clamp(2rem, 6vw, 4rem); }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav.open { margin-top: -.25rem; }
  .nav { flex-basis: 100%; display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--line); }
  .nav > ul > li { border-bottom: 1px solid var(--line); }
  .nav a, .sub-btn { width: 100%; min-height: 50px; }
  .sub-btn { pointer-events: none; }
  .sub-btn::after { display: none; }
  .sub, .has-sub:hover .sub { display: block; position: static; min-width: 0; padding: 0 0 .5rem 1rem; background: none; border: 0; }
  .sub a { min-height: 44px; color: var(--muted); }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .headshot { order: -1; }
  .about-grid .thumb, .headshot { max-width: 20rem; }
  .foot .end { margin-left: 0; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 1.15rem; }
  .brand-sub { font-size: .625rem; letter-spacing: .14em; }
  .stem { grid-template-columns: minmax(0, 1fr) auto; }
  .stem .wave { grid-column: 1 / -1; height: 44px; }
  .stills { grid-template-columns: minmax(0, 1fr); }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .pager-back { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
@media (max-width: 400px) {
  .brand { gap: .6rem; }
  .logo { height: 30px; }
  .brand-name { font-size: 1rem; letter-spacing: .04em; }
  .brand-sub { font-size: .5625rem; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
