/* ==========================================================================
   jackyhli.com — camera monitor theme
   One stylesheet for every page. Colors and fonts live in :root.
   ========================================================================== */

/* Fonts are self-hosted (assets/fonts) so the site makes no third-party requests. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0B0B0C;
  --panel: #111113;
  --panel-2: #141416;
  --line: #1E1E21;
  --line-2: #26262A;
  --line-3: #2C2C30;
  --text: #F2F0EB;
  --muted: #A3A19C;
  --dim: #85837F;
  --faint: #6E6C68;
  --rec: #FF3B30;
  --rec-text: #FF4D42;
  --amber: #E8B04A;
  --guide: rgba(242, 240, 235, 0.06);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad-x: clamp(14px, 3vw, 28px);
  --bezel: clamp(8px, 1.6vw, 20px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--bezel);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Film grain over the whole viewport */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--text); }
a:hover { color: var(--rec-text); }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

img, svg { display: block; max-width: 100%; }

p { margin: 0; }

[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Shared type ---------- */

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.kicker { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--muted); }
em, .it { font-style: italic; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-underline-offset: 5px;
}

/* ---------- Monitor frame ---------- */

.monitor {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg);
}
.monitor--home {
  background: radial-gradient(ellipse at 50% 45%, #18181B 0%, var(--bg) 72%);
}

/* ---------- HUD bars ---------- */

.hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0 24px;
  padding: 6px var(--pad-x);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hud-top { position: relative; border-bottom: 1px solid var(--line); }
/* in-page links (like Work → Projects) land below the pinned top bar */
.js { scroll-padding-top: calc(var(--hud-h, 61px) + 16px); }
.hud-bottom { margin-top: auto; border-top: 1px solid var(--line); font-size: 0.6875rem; color: var(--dim); }

.rec {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}
.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rec);
  animation: rec-blink 1.2s steps(1) infinite;
}
.rec-label { color: var(--rec-text); font-weight: 500; }
.tc { font-variant-numeric: tabular-nums; }

.hud-spec { display: inline-flex; align-items: center; gap: 14px; color: var(--dim); }

.nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.nav a, .contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover, .contact-links a:hover { color: var(--rec-text); }
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--rec-text);
  text-underline-offset: 6px;
}

.contact-links { display: flex; flex-wrap: wrap; gap: 0 22px; }

.meters { display: flex; align-items: center; gap: 18px; }
.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter-track {
  position: relative;
  width: 96px;
  height: 6px;
  background: var(--line);
  overflow: hidden;
}
.meter-track::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 60%;
  background: var(--text);
  animation: meter 1.6s ease-in-out infinite alternate;
}
.meter + .meter .meter-track::before { animation-duration: 1.3s; animation-delay: 0.4s; }
.meter-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 6px, var(--bg) 6px 8px);
}

/* ---------- Home: the stage ---------- */

.stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 540px;
  padding: clamp(64px, 11vh, 128px) clamp(24px, 6vw, 96px);
}
.thirds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(33.333% - 0.5px), var(--guide) calc(33.333% - 0.5px), var(--guide) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(to right, transparent calc(66.666% - 0.5px), var(--guide) calc(66.666% - 0.5px), var(--guide) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.333% - 0.5px), var(--guide) calc(33.333% - 0.5px), var(--guide) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px)),
    linear-gradient(to bottom, transparent calc(66.666% - 0.5px), var(--guide) calc(66.666% - 0.5px), var(--guide) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}
.title-safe {
  position: absolute;
  inset: 9% 8%;
  border: 1px dashed rgba(242, 240, 235, 0.12);
  pointer-events: none;
}
.title-safe::before {
  content: "Title safe";
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Viewfinder corner marks (stage, portrait) */
.corners { position: absolute; inset: 20px; pointer-events: none; }
.corners span {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 0 solid var(--text);
}
.corners span:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.corners span:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.corners span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.corners span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.corners--sm { inset: 12px; }
.corners--sm span { width: 22px; height: 22px; border-width: 0; }
.corners--sm span:nth-child(1) { border-top-width: 1.5px; border-left-width: 1.5px; }
.corners--sm span:nth-child(2) { border-top-width: 1.5px; border-right-width: 1.5px; }
.corners--sm span:nth-child(3) { border-bottom-width: 1.5px; border-left-width: 1.5px; }
.corners--sm span:nth-child(4) { border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hero { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  /* Safari clips text that has a text-shadow to its line box, so the line must be
     tall enough to hold the descenders of "J" and "y". The negative margins keep
     the visual spacing the same as a tight 0.88 line height. */
  margin: calc(20px - 0.17em) 0 -0.21em;
  padding: 0 0.06em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4.25rem, 16vw, 11.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.subtitle {
  display: inline-block;
  margin-top: 36px;
  padding: 6px 14px;
  max-width: 620px;
  background: rgba(0, 0, 0, 0.75);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.5;
}
.hero .now { margin-top: 22px; color: var(--dim); }

/* ---------- Filmstrip nav ---------- */

.filmstrip {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 0 var(--pad-x);
}
.sprockets {
  height: 9px;
  margin: 10px 0;
  background: repeating-linear-gradient(90deg, var(--line-3) 0 12px, transparent 12px 26px);
}
.frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.frame {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-height: 124px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-3);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.frame:hover { border-color: var(--rec-text); background: var(--panel-2); color: var(--text); }
.frame-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--dim); }
.frame-title { font-family: var(--serif); font-size: 2.25rem; line-height: 1; }
.frame-sub { display: block; margin-top: 4px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }

/* ---------- Inner pages ---------- */

.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px) 64px;
}
.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}
.page-head > div:first-child { flex: 1 1 320px; }
.page-title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.75rem, 11vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.page-sub { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--muted); }

.section { margin-top: clamp(56px, 8vw, 96px); }
.section-title {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
}

/* Clapperboard slate */
.slate {
  flex: 0 1 420px;
  min-width: 0;
  border: 1px solid var(--line-3);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
}
.slate-clapper {
  height: 26px;
  background: repeating-linear-gradient(-45deg, var(--text) 0 16px, var(--panel) 16px 32px);
  transform-origin: left bottom;
}
.slate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-3);
  margin: 0;
  font-family: var(--mono);
}
.slate-grid div { padding: 10px 12px; border-right: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.slate-grid div:nth-child(3n) { border-right: 0; }
.slate-grid div:nth-last-child(-n+3) { border-bottom: 0; }
.slate-grid dt { font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.slate-grid dd { margin: 0; font-size: 0.875rem; }

/* Labelled rows (call sheet) */
.sheet { border-top: 1px solid var(--line-2); }
.sheet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.sheet-row > .label { flex: 0 0 140px; padding-top: 3px; }
.sheet-row > div { flex: 999 1 300px; min-width: 0; }
.sheet-row p + p { margin-top: 2px; }
.sheet-row p.gap { margin-top: 10px; }

/* About */
.about-grid { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 80px); }
.about-grid > .portrait-col { flex: 1 1 280px; max-width: 400px; }
.about-grid > .bio { flex: 999 1 440px; min-width: 0; }

.viewfinder {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--panel-2);
  border: 1px solid var(--line-3);
  border-radius: 3px;
  overflow: hidden;
}
.viewfinder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewfinder .focus-box {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 36%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--amber);
}
.viewfinder .vf-tag, .viewfinder .vf-bar, .viewfinder .vf-empty {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.viewfinder .vf-tag { top: 18px; left: 44px; color: var(--amber); }
.viewfinder .vf-empty { left: 0; right: 0; top: 64%; text-align: center; font-size: 0.75rem; color: var(--dim); }
.viewfinder .vf-bar { left: 44px; right: 44px; bottom: 18px; display: flex; justify-content: space-between; color: var(--muted); }
.viewfinder > *:not(img) { z-index: 1; }

.logline { margin-top: 14px; font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.2; }
.bio-body { margin-top: 24px; max-width: 600px; color: var(--muted); }

/* Work: credits */
.credits { border-top: 1px solid var(--line-2); }
.credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.credit-date { flex: 0 0 150px; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--amber); }
.credit-body { flex: 999 1 380px; min-width: 0; }
.credit-org { margin-top: 6px; font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.05; }
.credit-body .muted { margin-top: 10px; }

/* Work: laurels */
.laurels {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.laurel {
  position: relative;
  height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 calc(50% - 62px);
  background: var(--panel) url("/assets/img/laurel.svg") center / 250px 175px no-repeat;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.laurel .kicker { font-size: 0.625rem; }
.laurel-name { margin-top: 6px; font-family: var(--serif); font-size: 1.15rem; line-height: 1.1; }
@media (max-width: 560px) {
  .laurels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .laurel { height: 150px; padding: 0 calc(50% - 46px); background-size: min(176px, 100%) auto; }
  .laurel .kicker { font-size: 0.5625rem; letter-spacing: 0.1em; }
  .laurel-name { font-size: 0.95rem; }
}
@media (max-width: 360px) {
  .laurel { height: 132px; padding: 0 calc(50% - 38px); background-size: 112% auto; }
  .laurel .kicker { font-size: 0.5rem; letter-spacing: 0.06em; }
  .laurel-name { font-size: 0.8rem; margin-top: 4px; }
}

/* Projects: clips */
.clips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px 32px;
}
.clip { display: flex; flex-direction: column; gap: 18px; }
.clip-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line-3);
  border-radius: 3px;
  overflow: hidden;
}
.clip-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-id, .clip-tag {
  position: absolute;
  top: 12px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.clip-id { left: 14px; }
.clip-tag { right: 14px; display: inline-flex; align-items: center; gap: 6px; }
.clip-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.clip-tag--live::before { background: var(--rec-text); }
.clip-tag--build::before { background: var(--text); }
.clip h2 { margin: 8px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.05; }
.clip .muted { margin-top: 10px; }

/* "Cut to" next-page bar */
.cut {
  margin-top: 96px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 28px clamp(20px, 3vw, 32px);
  background: var(--panel);
  border: 1px solid var(--line-3);
  border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.cut:hover { border-color: var(--rec-text); background: var(--panel-2); color: var(--text); }
.cut .label { font-size: 0.75rem; letter-spacing: 0.12em; }
.cut .serif { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }

/* 404: no signal */
.no-signal {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 28px;
  padding: 64px var(--pad-x);
}
.bars {
  width: min(100%, 720px);
  aspect-ratio: 16 / 7;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: 3fr 1fr;
  border: 1px solid var(--line-3);
}
.bars span:nth-child(1) { background: #C0C0C0; }
.bars span:nth-child(2) { background: #C0C000; }
.bars span:nth-child(3) { background: #00C0C0; }
.bars span:nth-child(4) { background: #00C000; }
.bars span:nth-child(5) { background: #C000C0; }
.bars span:nth-child(6) { background: #C00000; }
.bars span:nth-child(7) { background: #0000C0; }
.bars span:nth-child(n+8) { background: #131315; }
.bars span:nth-child(9), .bars span:nth-child(11), .bars span:nth-child(13) { background: #1F1F22; }
.no-signal h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 9vw, 6rem); line-height: 0.95; }

/* ---------- Motion ---------- */

@keyframes rec-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.15; } }
@keyframes meter { 0% { width: 38%; } 35% { width: 70%; } 60% { width: 52%; } 100% { width: 84%; } }
@keyframes clap { 0% { transform: rotate(-14deg); } 60% { transform: rotate(2deg); } 100% { transform: rotate(0); } }

.slate-clapper { animation: clap 0.6s cubic-bezier(.3, 1.4, .5, 1) 0.2s both; }


/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  .hud-spec, .meters { display: none; }
  .stage { min-height: 480px; }
  .title-safe { inset: 7% 6%; }
  .corners { inset: 12px; }
  .corners span { width: 24px; height: 24px; }
  .cut { margin-top: 72px; }
}

/* ---------- Contact ---------- */

.contact-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px clamp(40px, 6vw, 80px); }
.contact-info { flex: 1 1 320px; min-width: 0; }
.contact-info .sheet-row > .label { flex-basis: 110px; }
.contact-info .sheet-row > div { flex-basis: 220px; }
.sheet--compact .sheet-row { flex-wrap: nowrap; gap: 16px; padding: 12px 0; align-items: baseline; }
.sheet--compact .sheet-row > .label { flex: 0 0 76px; padding-top: 0; }
.sheet--compact .sheet-row > div { flex: 1 1 auto; }
.inline-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sheet--compact a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color 0.2s, color 0.2s; }
.sheet--compact a:hover { color: var(--amber); text-decoration-color: var(--amber); }

.take {
  flex: 999 1 460px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line-3);
  border-radius: 4px;
  overflow: hidden;
}
.take-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-3);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.take-state { display: inline-flex; align-items: center; gap: 8px; }
.take-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.take[data-state="sending"] .take-dot { background: var(--rec); animation: rec-blink 0.8s steps(1) infinite; }
.take[data-state="sending"] .take-state { color: var(--rec-text); }
.take[data-state="sent"] .take-dot { background: var(--amber); }
.take[data-state="sent"] .take-state { color: var(--amber); }

.take-body { display: flex; flex-direction: column; gap: 20px; padding: clamp(20px, 3vw, 32px); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-3);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3A19C' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 176, 74, 0.18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--rec-text); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.take-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-roll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  background: var(--text);
  color: var(--bg);
  border: 0;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn-roll:hover { background: var(--rec-text); color: var(--text); }
.btn-roll:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn-roll:disabled { opacity: 0.6; cursor: progress; }
.btn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.btn-roll:hover .btn-dot { background: var(--text); }

.form-status { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.form-status[data-tone="ok"] { color: var(--amber); }
.form-status[data-tone="error"] { color: var(--rec-text); }
.form-status a { color: inherit; }

/* ---------- Videos (dailies) ---------- */

.dailies-block { margin-top: 64px; }
.dailies-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; margin-bottom: 20px; }

.dailies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 40px 24px;
}

.daily { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); }
.daily:hover { color: var(--text); }
.daily-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--line-3);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.daily--short .daily-thumb { aspect-ratio: var(--ar, 0.5625); }
.daily:hover .daily-thumb, .daily:focus-visible .daily-thumb { border-color: var(--rec-text); }
.daily-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: saturate(0.9);
}
.daily-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.daily:hover .daily-thumb img { transform: scale(1.03); filter: saturate(1); }
.daily-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 30%, transparent 75%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
}
.daily-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(-45deg, var(--panel) 0 14px, var(--panel-2) 14px 28px);
}
.daily-ph-name { font-family: var(--serif); font-style: italic; font-size: 1.75rem; color: var(--muted); }
.daily-id, .daily-plat {
  position: absolute;
  top: 10px;
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.daily-id { left: 12px; }
.daily-plat { right: 12px; display: inline-flex; align-items: center; gap: 6px; }
.daily-plat::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rec); }
.daily-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%) scale(0.9);
  border: 1.5px solid var(--text);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.daily-play::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--text);
}
.daily:hover .daily-play, .daily:focus-visible .daily-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .daily-play { opacity: 0.85; transform: translate(-50%, -50%) scale(1); } }

.daily-meta { display: flex; flex-direction: column; gap: 6px; }
.daily-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; }
.daily--short .daily-title { font-size: 1.2rem; }

/* Short form: a horizontally scrolling film strip */
.reel-strip { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 0 16px; }
.reel-row {
  --reel-h: clamp(300px, 80vw, 400px);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}
.reel-row .daily { flex: none; width: calc(var(--reel-h) * var(--ar, 0.5625)); min-width: 170px; scroll-snap-align: start; }

.dailies-empty {
  position: relative;
  margin-top: 56px;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 64px);
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line-3);
  border-radius: 3px;
}
.dailies-empty .logline { margin: 14px auto 10px; max-width: 520px; }

/* Player */
.screening {
  width: min(1100px, 94vw, calc((92vh - 60px) * var(--ar, 1.7778)));
  max-height: 92vh;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line-3);
  border-radius: 4px;
}
.screening::backdrop { background: rgba(0, 0, 0, 0.88); }
.screening-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 6px 4px 18px;
  border-bottom: 1px solid var(--line-3);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.screening-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screening-title::before { content: "● "; color: var(--rec-text); }
.screening-close {
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.screening-close:hover { color: var(--rec-text); }
.screening-frame { aspect-ratio: var(--ar, 1.7778); background: #000; }
.screening-frame iframe, .screening-frame video, .screening-frame img { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.screening-frame img { object-fit: contain; }

/* ==========================================================================
   Cinematics: page cuts, focus pulls, cursor tracking, reveals.
   Everything here animates only transform, opacity or filter.
   ========================================================================== */

/* Page-to-page "cut" (browsers without view transitions just navigate normally) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.1s ease-in both; }
::view-transition-new(root) { animation: vt-in 0.22s ease-out both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; filter: brightness(1.6); } }

/* Scroll playhead: a thin red bar on the bottom edge of the top bar (set by main.js) */
.playhead {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  z-index: 1;
  background: var(--rec);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}


/* Top bar stays in frame on larger screens */
@media (min-width: 721px) {
  .hud-top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 11, 12, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 4px 4px 0 0;
  }
}

/* --- Home stage --- */
.stage { overflow: hidden; }

.hero h1 {
  --ab: 1.5px;
  text-shadow: calc(var(--ab) * -1) 0 rgba(255, 59, 48, 0.42), var(--ab) 0 rgba(90, 200, 255, 0.34);
  animation: rack 0.85s cubic-bezier(.2, .7, .2, 1) 0.05s backwards;
}
.hero .kicker { animation: type 0.55s steps(30) both; }
.hero .subtitle { animation: rise 0.5s ease-out 0.45s backwards; }
.hero .now { animation: rise 0.5s ease-out 0.6s backwards; }
.stage .corners span { animation: snap 0.5s cubic-bezier(.2, 1.3, .4, 1) backwards; }
.stage .title-safe, .stage .thirds { animation: fade 0.8s ease-out 0.2s backwards; }

@keyframes rack { 0% { filter: blur(18px); opacity: 0; } 60% { filter: blur(2px); opacity: 1; } 75% { filter: blur(3px); } 100% { filter: none; opacity: 1; } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes snap { from { opacity: 0; transform: scale(1.8); } }

/* Warm anamorphic streak drifting behind the title */
.flare {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 47%;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 15%, rgba(255, 214, 160, 0.6) 50%, transparent 85%);
  box-shadow: 0 0 60px 10px rgba(232, 176, 74, 0.1), 0 0 18px 2px rgba(255, 214, 160, 0.18);
  animation: flare 9s ease-in-out infinite alternate;
}
@keyframes flare { from { transform: translateX(-14%) scaleX(0.6); opacity: 0.2; } to { transform: translateX(14%) scaleX(1.1); opacity: 0.75; } }

/* Cursor light + autofocus reticle (mouse only; switched on by main.js) */
.spot, .reticle { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s; will-change: transform; }
.spot {
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 240, 235, 0.085), transparent);
}
.reticle {
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.reticle svg { transition: transform 0.25s cubic-bezier(.2, 1.4, .4, 1), color 0.2s; }
.reticle.is-locked { color: var(--amber); }
.reticle.is-locked svg { transform: scale(0.72); }
.stage.is-tracking .spot, .stage.is-tracking .reticle { opacity: 1; }
.stage.is-tracking { cursor: crosshair; }
.stage.is-tracking a { cursor: pointer; }

/* Ticker tape */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track > div { display: flex; flex: none; }
.ticker span { display: inline-flex; align-items: center; gap: 28px; padding: 9px 0 9px 28px; white-space: nowrap; }
.ticker span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--rec); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Projector sheen across frames and cut bars on hover */
.frame, .cut { position: relative; overflow: hidden; }
.frame::after, .cut::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(242, 240, 235, 0.09) 50%, transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
}
.frame:hover::after, .cut:hover::after { transform: translateX(110%); transition: transform 0.7s ease; }
.cut .serif { transition: transform 0.3s ease; }
.cut:hover .serif { transform: translateX(6px); }

/* Inner page titles pull focus too */
.page-title { animation: rack-sm 1s cubic-bezier(.2, .7, .2, 1) 0.1s both; }
.page-head .kicker { animation: type 0.5s steps(8) both; }
.page-sub { animation: rise 0.6s ease-out 0.55s both; }
@keyframes rack-sm { from { filter: blur(16px); opacity: 0; } to { filter: blur(0); opacity: 1; } }

/* Scroll reveals (only when JavaScript is running, so content never hides without it) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease-out, transform 0.45s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* Laurels and clips react to the pointer */
.laurel { transition: border-color 0.25s, transform 0.25s; }
.laurel:hover { border-color: rgba(232, 176, 74, 0.5); transform: translateY(-3px); }
.clip-thumb img { transition: transform 0.5s ease; }
.clip:hover .clip-thumb img { transform: scale(1.04); }
.clip-thumb { transition: border-color 0.2s; }
.clip:hover .clip-thumb { border-color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .ticker-track { transform: none; }
}

/* YouTube channel button on the Videos page */
.channel {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
a.btn-roll { text-decoration: none; }
a.btn-roll:hover { color: var(--text); }
.channel .label { font-size: 0.75rem; }

/* ==========================================================================
   Phones: menu button + full-screen scene select, and a grid for short videos
   ========================================================================== */

.menu-btn { display: none; }

.scene-menu {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text);
}
.scene-menu[open] { display: flex; flex-direction: column; }
.scene-menu::backdrop { background: rgba(0, 0, 0, 0.6); }
html:has(dialog[open]) { overflow: hidden; }

.sm-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(env(safe-area-inset-top), 8px) 16px 8px 20px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sm-label { display: inline-flex; align-items: center; gap: 10px; color: var(--rec-text); }
.sm-close {
  min-height: 48px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.sm-list { flex: 1; overflow-y: auto; margin: 0; padding: 4px 20px; list-style: none; }
.sm-list a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  min-height: 76px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.sm-num { grid-row: 1 / 3; align-self: center; font-family: var(--mono); font-size: 0.75rem; color: var(--dim); }
.sm-title { font-family: var(--serif); font-size: 2.35rem; line-height: 1; }
.sm-sub { grid-column: 2; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sm-arrow { grid-row: 1 / 3; grid-column: 3; font-size: 1.25rem; color: var(--dim); transition: transform 0.2s, color 0.2s; }
.sm-list a:active .sm-arrow, .sm-list a:hover .sm-arrow { transform: translateX(4px); color: var(--rec-text); }
.sm-list a[aria-current="page"] .sm-num { color: var(--rec-text); }
.sm-list a[aria-current="page"] .sm-sub { color: var(--amber); }
.sm-list a[aria-current="page"] .sm-arrow { visibility: hidden; }
.scene-menu[open] .sm-list li { animation: rise 0.4s ease-out both; animation-delay: calc(var(--i, 0) * 45ms); }

.sm-foot {
  padding: 12px 20px max(env(safe-area-inset-bottom), 16px);
  border-top: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  /* Compact top bar that stays put, with one big Menu button.
     Without JavaScript the plain links stay visible instead. */
  .js .nav { display: none; }
  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-3);
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .menu-icon { position: relative; width: 16px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
  /* Phones: the monitor goes edge to edge, so the pinned top bar covers the full width */
  body { padding: 0; }
  .monitor { border-width: 0; border-radius: 0; }
  /* The top bar is position: fixed (not sticky) on phones. Safari on iOS 26 only paints the
     strip behind the clock solid when a fixed element with a background touches the top edge;
     otherwise the page shows through it while scrolling. --hud-h (set by main.js) reserves its height. */
  .js .hud-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    flex-wrap: nowrap;
    padding-top: 8px;
    padding-bottom: 8px;
    background: var(--bg);
  }
  .js .monitor { padding-top: var(--hud-h, 61px); }
  /* Keep the full-screen grain overlay off the top edge, so the top bar is the only fixed
     layer there and Safari paints the strip behind the clock in its colour. */
  .js body::after { top: var(--hud-h, 61px); }

  /* Short-form videos: two-column grid, every card fully visible */
  .reel-strip { padding: 0 12px; }
  .reel-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 22px 12px;
    overflow: visible;
    padding: 6px 0 4px;
  }
  .reel-row .daily { width: auto; min-width: 0; gap: 10px; }
  .daily--short .daily-title { font-size: 1.1rem; }
  .daily--short .label { font-size: 0.625rem; }
  .daily-id { display: none; }
  .daily-plat { right: 8px; top: 8px; font-size: 0.5625rem; }
  .daily-play { width: 44px; height: 44px; }
  .daily-play::before { left: 17px; top: 13px; border-width: 8px 0 8px 13px; }
}
.daily--still .daily-play { display: none; }

/* ---------- Work: grouped credits ---------- */

.credit-group + .credit-group { margin-top: 72px; }
.credit-group-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  margin-bottom: 8px;
}
.credit-tag { flex: 0 0 90px; text-align: right; }
@media (max-width: 720px) { .credit-tag { flex-basis: auto; text-align: left; } }

/* ---------- Projects: featured rows ---------- */

.features { margin-top: 56px; display: flex; flex-direction: column; gap: clamp(64px, 9vw, 112px); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px clamp(32px, 5vw, 64px);
}
.feature--flip .clip-thumb { order: 2; }
.feature h2 {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1;
}
.feature .muted { margin-top: 14px; }
.feature .clip-thumb img { transition: transform 0.5s ease; }
.feature:hover .clip-thumb img { transform: scale(1.03); }
.feature:hover .clip-thumb { border-color: var(--amber); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 24px 0 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stat { padding: 14px 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line-2); }
.stat dt { font-family: var(--serif); font-size: 1.6rem; line-height: 1.05; color: var(--amber); }
.stat dd { margin: 4px 0 0; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.stack li {
  padding: 5px 10px;
  border: 1px solid var(--line-3);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .clip-thumb { order: 0; }
}
.feature-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 14px; }
.awards-block { margin-top: 96px !important; margin-bottom: 24px; }
.awards-block + .credit-group { margin-top: 96px; }
.credit-more {
  display: block;
  width: fit-content;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  text-underline-offset: 5px;
}
.credit-more:hover { color: var(--rec-text); }
.feature { scroll-margin-top: 90px; }

/* ---------- Page subtitle: film-term definition on hover / tap ---------- */

.page-sub { position: relative; }
.term {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  cursor: help;
  text-decoration: underline dotted rgba(163, 161, 156, 0.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.2s;
}
.term:hover, .term:focus-visible, .term.open { color: var(--text); outline: none; }
.term-mark {
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-3);
  border-radius: 50%;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.625rem;
  color: var(--dim);
}
.term:hover .term-mark, .term:focus-visible .term-mark, .term.open .term-mark { border-color: var(--amber); color: var(--amber); }

.term-def {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 30;
  width: min(340px, 82vw);
  padding: 14px 16px 16px;
  background: var(--panel);
  border: 1px solid var(--line-3);
  border-left: 2px solid var(--amber);
  border-radius: 3px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  pointer-events: none;
}
.term:hover + .term-def, .term:focus-visible + .term-def, .term.open + .term-def {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.term-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.term-word { font-family: var(--serif); font-size: 1.35rem; color: var(--text); }
.term-pos { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.term-body { display: block; }
.page-head > div:first-child { position: relative; z-index: 5; }

/* ---------- About: stack of stills beside the bio ---------- */

.portrait-col { display: flex; flex-direction: column; gap: 56px; }
.still { margin: 0; transition: transform 0.45s cubic-bezier(.2, .7, .2, 1); }
.still[hidden] { display: none; }
.still-cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.still-cap span:first-child { color: var(--amber); }

/* Scattered, like prints dropped on a table */
.still:nth-child(2) { transform: rotate(1.6deg); margin-left: auto; }
.still:nth-child(3) { transform: rotate(-1.3deg) translateX(-6px); }
.still:nth-child(4) { transform: rotate(1deg); margin-left: auto; }
.still:nth-child(5) { transform: rotate(-1.8deg) translateX(4px); }
.still:nth-child(6) { transform: rotate(1.2deg); margin-left: auto; }
.still:hover { transform: none; }
.still.is-new { animation: still-in 0.7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes still-in { from { opacity: 0; translate: 0 18px; } }

.still-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.still-overlay .vf-tag { left: 44px; }
.lb { position: absolute; left: 0; right: 0; height: 11%; background: rgba(0, 0, 0, 0.82); }
.lb--top { top: 0; }
.lb--bot { bottom: 0; }
.still--letterbox .vf-tag { color: var(--rec-text); top: 3.5%; }
.still--letterbox .vf-bar { bottom: 3.5%; }
.histo { position: absolute; left: 14px; bottom: 40px; width: 34%; height: 14%; }
.histo path { fill: rgba(242, 240, 235, 0.35); stroke: rgba(242, 240, 235, 0.8); stroke-width: 0.6; vector-effect: non-scaling-stroke; }
.thirds-sm {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(242,240,235,.28) calc(33.33% - 0.5px), rgba(242,240,235,.28) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px)),
    linear-gradient(to right, transparent calc(66.66% - 0.5px), rgba(242,240,235,.28) calc(66.66% - 0.5px), rgba(242,240,235,.28) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(242,240,235,.28) calc(33.33% - 0.5px), rgba(242,240,235,.28) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px)),
    linear-gradient(to bottom, transparent calc(66.66% - 0.5px), rgba(242,240,235,.28) calc(66.66% - 0.5px), rgba(242,240,235,.28) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
}
.level { position: absolute; left: 38%; right: 38%; top: 50%; height: 1.5px; background: var(--amber); }
.level::before, .level::after { content: ""; position: absolute; top: -4px; width: 1.5px; height: 9px; background: var(--amber); }
.level::before { left: 0; }
.level::after { right: 0; }
.viewfinder .still-overlay ~ *, .viewfinder > .still-overlay { z-index: 1; }
.about-grid { align-items: flex-start; }

/* Contact sheet: stills that don't fit beside the bio */
.contact-sheet .sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.sheet-grid { columns: 2; column-gap: clamp(16px, 4vw, 56px); }
.sheet-grid .still { display: inline-block; width: 100%; margin: 0 0 44px; break-inside: avoid; }
.sheet-grid .still:nth-child(2) { margin-top: 40px; }
.sheet-grid .still:nth-child(odd) { transform: rotate(-0.8deg); }
.sheet-grid .still:nth-child(even) { transform: rotate(0.9deg); }
.sheet-grid .still:hover { transform: none; }
@media (max-width: 720px) { .sheet-grid { column-gap: 14px; } .sheet-grid .still { margin-bottom: 28px; } .sheet-grid .still .vf-tag, .sheet-grid .still .vf-bar { font-size: 0.5rem; } .sheet-grid .still .vf-tag { left: 30px; top: 12px; } .sheet-grid .still .vf-bar { left: 30px; right: 30px; bottom: 12px; } .sheet-grid .corners--sm { inset: 8px; } .sheet-grid .corners--sm span { width: 14px; height: 14px; } .sheet-grid .still-cap { font-size: 0.5625rem; } .sheet-grid .still-cap span:last-child { text-align: right; } }
.still[hidden] { display: none !important; }
.still-overlay::before { content: ""; position: absolute; inset: auto 0 0 0; height: 22%; background: linear-gradient(to top, rgba(0,0,0,.45), transparent); }
.still-overlay > * { z-index: 1; }

/* ---------- Projects: camera angles (A-cam illustration, B/C-cam photos) ---------- */

.feature--flip .feature-media { order: 2; }
.feature--flip .clip-thumb { order: 0; }
@media (max-width: 860px) { .feature--flip .feature-media { order: 0; } }

.cams .cam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.5s ease;
}
.cams .cam.is-on { opacity: 1; }
.cams .clip-id, .cams .clip-tag { z-index: 2; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }

.cams { cursor: pointer; }
.cams .cam-count {
  position: absolute; right: 12px; bottom: 10px; z-index: 2;
  padding: 3px 7px; background: rgba(0, 0, 0, 0.6); border-radius: 2px;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.12em; color: var(--text);
}
.cam-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.25rem; line-height: 1;
  cursor: pointer; opacity: 0.85; transition: opacity 0.2s, background-color 0.2s, border-color 0.2s;
}
.cam-nav--prev { left: 10px; }
.cam-nav--next { right: 10px; }
.cam-nav span { margin-top: -2px; }
.cam-nav:hover { background: rgba(0, 0, 0, 0.8); border-color: var(--amber); opacity: 1; }
.cam-nav:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; opacity: 1; }
@media (hover: hover) {
  .cam-nav { opacity: 0; }
  .cams:hover .cam-nav, .cam-nav:focus-visible { opacity: 0.9; }
}

/* thumbnail strip: each button previews the shot it switches to */
.cam-switch { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; margin-top: 10px; max-width: calc(var(--n, 2) * 170px); }
.cam-switch button {
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  padding: 0; background: none; border: 0; color: var(--dim);
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-align: left; cursor: pointer; transition: color 0.2s;
}
.cam-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 2px; background: var(--panel);
  transition: border-color 0.2s;
}
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; filter: grayscale(0.6); transition: opacity 0.25s, filter 0.25s; }
.cam-label { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-switch button:hover { color: var(--text); }
.cam-switch button:hover .cam-thumb { border-color: var(--line-3); }
.cam-switch button:hover .cam-thumb img { opacity: 0.85; filter: none; }
.cam-switch button:focus-visible { outline: none; }
.cam-switch button:focus-visible .cam-thumb { outline: 2px solid var(--amber); outline-offset: 2px; }
.cam-switch button.is-on { color: var(--text); }
.cam-switch button.is-on .cam-thumb { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.cam-switch button.is-on .cam-thumb img { opacity: 1; filter: none; }
.cam-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.cam-switch button.is-on .cam-dot { background: var(--rec); animation: rec-blink 1.2s steps(1) infinite; }
.cam-short { display: none; }
.cam-switch--multi .cam-pre { display: none; }
.cam-credit { display: block; margin-top: 8px; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 520px) {
  .cam-switch { gap: 6px; max-width: none; }
  .cam-switch button { letter-spacing: 0.05em; }
  .cam-pre { display: none; }
  .cam-switch--multi .cam-long { display: none; }
  .cam-switch--multi .cam-short { display: inline; }
  .cam-nav { width: 32px; height: 32px; }
}
