@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

/* Interface palette, after Premiere Pro and DaVinci Resolve. */
:root {
  --well: #050506;
  --panel: rgba(27, 28, 32, 0.88);
  --panel-head: #202227;
  --line: #2c2e34;
  --text: #d7d9de;
  --dim: #8b9099;
  --blue: #2d8ceb;
  --tc: #4aa3ff;
  --rec: #e8453c;
  --select: rgba(45, 140, 235, 0.22);
  --ph: rgba(242, 165, 65, 0.65);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 64px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--well);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
#ws,
#ws-fallback {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#ws-fallback {
  display: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.2), var(--well)),
    url("../media/placeholder-poster.jpg") center / cover;
  opacity: 0.5;
}
.no-ws #ws {
  display: none;
}
.no-ws #ws-fallback {
  display: block;
}
main {
  position: relative;
  z-index: 1;
}

/* Placeholder markers (hide with ?clean) */
.ph {
  outline: 1px dashed var(--ph);
  outline-offset: 3px;
}
.clean .ph {
  outline: none;
}

/* ---------- Stops ---------- */
.stop {
  min-height: 130vh;
  min-height: 130svh;
  padding: 12vh var(--gutter);
  display: flex;
  align-items: center;
}
#top {
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-end;
  padding-bottom: 10vh;
}

/* Hero: set like a lower third. */
.slate {
  padding: 14px 18px 14px 16px;
  border-left: 2px solid var(--tc);
  background: linear-gradient(90deg, rgba(5, 5, 6, 0.72), rgba(5, 5, 6, 0));
}
.name {
  margin: 0 0 2px;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}
.role,
.meta {
  margin: 0;
  color: var(--text);
}
.sep {
  color: var(--dim);
}
.avail {
  white-space: nowrap;
}
.rec {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 6px 1px 2px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 8px var(--rec);
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink {
  to {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rec {
    animation: none;
  }
}

#reel {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14vh;
}
.play {
  all: unset;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  backdrop-filter: blur(8px);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.play:hover {
  border-color: var(--blue);
}
.tri {
  width: 0;
  height: 0;
  border-left: 9px solid var(--text);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ---------- Panels ---------- */
.panel {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.panel.right {
  margin-left: auto;
}
.panel.center {
  margin: 0 auto;
}
.tabs {
  display: flex;
  height: 34px;
  align-items: stretch;
  padding: 0 12px;
  background: var(--panel-head);
  border-bottom: 1px solid var(--line);
}
.tab {
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--blue);
  padding: 0 4px;
}

/* Work: a bin in list view. */
.bin {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 64vh;
  overflow: auto;
}
.bin button {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: 12px 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  cursor: pointer;
}
.bin button:hover,
.bin button:focus-visible {
  background: var(--select);
}
.bin li.ph {
  outline-offset: -3px;
}
.chip {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--c);
}
.bin img {
  width: 72px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.bin .t {
  color: #fff;
}
.bin .s {
  font: 500 11px/1 var(--mono);
  color: var(--tc);
}

/* Credits: metadata list. */
.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.meta-table.ph {
  outline-offset: -4px;
}
.meta-table th,
.meta-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.meta-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}
.meta-table th {
  color: #fff;
}
.meta-table td {
  color: var(--dim);
}
.meta-table .tc {
  font-family: var(--mono);
  color: var(--tc);
}
@media (max-width: 600px) {
  .meta-table tr {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  .meta-table th,
  .meta-table td {
    display: inline;
    padding: 0;
    border: 0;
  }
  .meta-table th {
    display: block;
  }
  .meta-table td + td::before {
    content: " · ";
  }
}

/* Contact */
.contact-body {
  padding: 28px 22px 18px;
}
.email {
  font-size: clamp(18px, 2.4vw, 26px);
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
  overflow-wrap: anywhere;
}
.links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 22px 0 0;
  padding: 0;
}
.links a {
  color: var(--dim);
  text-decoration: none;
}
.links a:hover {
  color: #fff;
}
.foot {
  margin: 28px 0 0;
  font: 500 11px/1 var(--mono);
  color: var(--dim);
}
a:focus-visible,
.play:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Viewer */
#viewer {
  width: min(1100px, 94vw);
  padding: 0;
  border: 1px solid var(--line);
  background: #000;
}
#viewer::backdrop {
  background: rgba(5, 5, 6, 0.9);
}
#viewer video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}
#viewer .close {
  position: absolute;
  right: 6px;
  top: 4px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

/* The monitor composition plays behind the workspace canvas, which samples its frames. */
#monitor-player {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 160px;
  height: 90px;
  opacity: 0.01;
  pointer-events: none;
}
/* Horizontal drags scrub and grade; vertical ones still scroll. */
main {
  touch-action: pan-y;
}
