:root {
  --bg: #0a0a0b;
  --fg: #efefef;
  --dim: rgba(239, 239, 239, .5);
  --line: rgba(239, 239, 239, .16);
  --pad: clamp(14px, 1.6vw, 24px);
  --font: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --tight: -.06em; /* -60 tracking, on all titles and headings */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
body { font: 400 15px/1.45 var(--font); letter-spacing: -.01em; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol { list-style: none; }
h1, h2, h3, strong { font-family: var(--font); font-weight: 700; letter-spacing: var(--tight); text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.tiny, .mark, .site-head nav, .filters button, .foot-row, .credits dt {
  font-size: 11px; line-height: 1.2; font-weight: 400; letter-spacing: .01em; text-transform: uppercase;
}
.tiny b { font-weight: 400; color: var(--dim); margin-right: 1em; }

/* Header */
.site-head {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: var(--pad); mix-blend-mode: difference; pointer-events: none;
}
.site-head a { pointer-events: auto; }
.site-logo { width: 74px; }
.site-head nav { display: flex; gap: 1.6em; }
.site-head nav a:hover { opacity: .55; }

/* Index */
.index { padding: 8vh var(--pad) 14vh; }
.index .tiny { margin-bottom: 1.4em; }
.filters { display: flex; flex-wrap: wrap; gap: .4em 1.6em; margin-bottom: 2em; }
.filters button { color: var(--dim); padding: .4em 0; transition: color .2s; }
.filters button:hover, .filters button.on { color: var(--fg); }
.index ol { border-bottom: 1px solid var(--line); }
.index li { border-top: 1px solid var(--line); }
.index li[hidden] { display: none; }
.index a, .links a { display: grid; grid-template-columns: 5em 1fr auto; gap: 1em; align-items: baseline; padding: .75em 0; transition: padding .35s cubic-bezier(.2, .7, .2, 1); }
.index a:hover, .links a:hover { padding-left: 1em; }
.index strong, .links strong { font-size: clamp(16px, 2.1vw, 30px); line-height: 1.1; }
.index span, .index em, .links span { font-size: 11px; font-style: normal; letter-spacing: .01em; text-transform: uppercase; color: var(--dim); }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Project */
.p-head { padding: 18vh var(--pad) 5vh; }
.p-head h1 { font-size: clamp(44px, 10.4vw, 200px); line-height: .9; letter-spacing: var(--tight); margin-top: .22em; overflow-wrap: anywhere; }
.p-film { padding: 0 var(--pad); }
.player {
  display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  transform: scale(calc(.82 + .18 * var(--p, 1))); transform-origin: center top; will-change: transform;
}
.player img, .player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 clamp(26px, 5vw, 76px)/1 var(--font); letter-spacing: var(--tight);
  text-transform: uppercase; color: #fff; text-shadow: 0 0 40px rgba(0, 0, 0, .45); transition: opacity .2s;
}
.player:hover .play { opacity: .6; }
.p-info { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5vh var(--pad); padding: 10vh var(--pad); }
.note { grid-column: 1 / span 6; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.25; font-weight: 400; letter-spacing: -.02em; }
.ext { display: inline-block; margin-top: 1em; font-size: 11px; letter-spacing: .01em; text-transform: uppercase; border-bottom: 1px solid var(--fg); }
.ext:hover { opacity: .55; }
.stills { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); padding: 0 var(--pad) 10vh; }
.stills img { grid-column: span var(--span); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.credits { grid-column: 8 / -1; }
.p-info:empty { display: none; }
.credits div { display: flex; justify-content: space-between; gap: 2em; padding: .7em 0; border-top: 1px solid var(--line); }
.credits div:last-child { border-bottom: 1px solid var(--line); }
.credits dt { color: var(--dim); padding-top: .2em; }
.credits dd { text-align: right; }
.p-next { display: block; padding: 10vh var(--pad); border-top: 1px solid var(--line); }
.p-next strong { display: block; margin-top: .3em; font-size: clamp(32px, 7vw, 130px); line-height: .95; letter-spacing: var(--tight); transition: opacity .2s; }
.p-next:hover strong { opacity: .55; }

/* About, contact */
.plain-main { min-height: 72vh; padding: 18vh var(--pad) 10vh; }
.plain-main h1 { font-size: clamp(64px, 17.4vw, 340px); line-height: .85; letter-spacing: var(--tight); margin-bottom: 10vh; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--pad); }
.split .tiny { grid-column: 1 / span 6; }
.lead { grid-column: 7 / -1; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.2; font-weight: 400; letter-spacing: -.02em; }
.links li { border-top: 1px solid var(--line); }
.links li:last-child { border-bottom: 1px solid var(--line); }
.links a { grid-template-columns: 5em 1fr; }

/* Footer */
.site-foot { padding: 0 var(--pad) var(--pad); }
.foot-mark { display: block; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1em 2em; padding-top: 2.4em; }
.foot-row a:hover { opacity: .55; }

@media (max-width: 720px) {
  .note, .credits { grid-column: 1 / -1; }
  .stills img { grid-column: span 12; }
  .split .tiny, .lead { grid-column: 1 / -1; }
  .index a { grid-template-columns: 3em 1fr; }
  .index em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .player { transform: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .index a, .links a { transition: none; }
}

/* Hire-me form */
.hire { margin-top: 12vh; }
.hire ol { border-bottom: 1px solid var(--line); }
.hf { display: grid; grid-template-columns: 5em minmax(0, 5fr) minmax(0, 7fr); gap: .6em var(--pad); padding: 1.6em 0; border-top: 1px solid var(--line); }
.hf-n { font-size: 11px; letter-spacing: .01em; color: var(--dim); padding-top: .35em; }
.hf-label { display: block; font-weight: 700; font-size: clamp(16px, 1.6vw, 22px); line-height: 1.1; letter-spacing: -.04em; text-transform: uppercase; }
.hf-label em { font-style: normal; color: var(--dim); }
.hf-hint { display: block; margin-top: .5em; color: var(--dim); font-size: 13px; max-width: 34em; }
.hire input:not([type=checkbox]), .hire textarea {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  color: var(--fg); font: inherit; font-size: 17px; padding: .45em 0; transition: border-color .2s;
}
.hire textarea { resize: vertical; min-height: 4.6em; }
.hire input::placeholder, .hire textarea::placeholder { color: rgba(239, 239, 239, .3); }
.hire input:focus, .hire textarea:focus { outline: none; border-bottom-color: var(--fg); }
.hire input[type=date] { color-scheme: dark; }
.hire [aria-invalid=true] { border-bottom-color: #ff5a4f !important; }
.hf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); }
.hf-money { display: flex; align-items: baseline; gap: .4em; border-bottom: 1px solid var(--line); }
.hf-money span { color: var(--dim); font-size: 17px; }
.hf-money input { border-bottom: 0 !important; }
.hf-money:focus-within { border-bottom-color: var(--fg); }
.hf-checks { display: flex; flex-wrap: wrap; gap: .6em; }
.hf-checks label { cursor: pointer; }
.hf-checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hf-checks span { display: inline-block; padding: .55em .9em; border: 1px solid var(--line); border-radius: 2px; font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.hf-checks label:hover span { border-color: var(--fg); }
.hf-checks input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.hf-checks input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 3px; }
.hf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hf-send { display: flex; justify-content: space-between; align-items: center; gap: 1.5em; padding-top: 2.4em; }
.hf-status { color: var(--dim); font-size: 13px; }
.hf-status.err { color: #ff5a4f; }
.hire button[type=submit] {
  font: 700 clamp(28px, 4.4vw, 64px)/1 var(--font); letter-spacing: var(--tight); text-transform: uppercase;
  color: var(--fg); padding: .1em 0; border-bottom: 2px solid var(--fg); transition: opacity .2s;
}
.hire button[type=submit]:hover { opacity: .55; }
.hire button[disabled] { opacity: .35; cursor: progress; }
.hire-done { margin-top: 12vh; padding-top: 1.6em; border-top: 1px solid var(--line); }
.hire-done .lead { max-width: 24em; }
.hire-done:focus { outline: none; }

@media (max-width: 720px) {
  .hf { grid-template-columns: 3em 1fr; }
  .hf-a { grid-column: 2; }
  .hf-send { flex-direction: column-reverse; align-items: flex-start; }
}
