@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-bold-latin-ext.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-bold-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  color-scheme: dark;
  --ink: #090d0c;
  --panel: #101917;
  --paper: #f0f2e9;
  --mint: #a7e2d7;
  --muted: #afc0b8;
  --line: #a7e2d73b;
  --gutter: max(22px, calc((100vw - 1320px) / 2), 5vw);
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.22,.7,.18,1);
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--ink);
  color: var(--paper);
  scroll-padding-top: 110px;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
body[data-modal] { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
img, video { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
em { font-style: normal; color: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.page-gutter { padding-inline: var(--gutter); }
.kicker {
  color: var(--mint);
  font: 700 11px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #0e1614;
  color: var(--paper);
  text-decoration: none;
  font: 700 11px/1.25 var(--mono);
  transition: background .2s, color .2s, border-color .2s;
}
.action:hover { border-color: var(--mint); background: #19302b; }
.action-mint { background: var(--mint); border-color: var(--mint); color: #091411; }
.action-mint:hover { background: #c9f0e8; color: #091411; }
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: #090d0cf7;
}
.wordmark {
  color: var(--paper);
  text-decoration: none;
  font: 700 19px/1.15 var(--mono);
  letter-spacing: -.07em;
}
.wordmark span { color: var(--mint); }
.site-nav { display: flex; justify-content: center; align-items: stretch; gap: 21px; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font: 700 11px/1.15 var(--mono);
}
.site-nav a[aria-current="page"] { border-color: var(--mint); color: var(--paper); }
.site-nav a:hover { color: var(--mint); }
.tray-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  background: transparent;
  font: 700 11px/1.1 var(--mono);
}
.tray-trigger span {
  display: grid;
  place-items: center;
  min-width: 22px;
  min-height: 22px;
  padding: 3px;
  background: var(--mint);
  color: var(--ink);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 700 11px/1.45 var(--mono);
}
.view { min-height: calc(100svh - 150px); }
.edit-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  align-items: stretch;
  padding-inline: var(--gutter);
  background: radial-gradient(ellipse at 72% 62%, #152725, #0a0f0e 67%);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  position: relative;
  align-self: center;
  z-index: 2;
  padding: 64px 6px 76px 0;
}
h1, h2 {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: -.08em;
}
h1 { font-size: clamp(46px, 8.3vw, 132px); line-height: .91; }
.hero-copy h1, .journal-cover h1, .frame-copy h1 { margin-block: 22px 27px; }
.hero-intro, .journal-cover-copy p:not(.kicker), .frame-copy p:not(.kicker) {
  max-width: 390px;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
}
.hero-copy .action, .journal-cover-copy .action { margin-top: 26px; }
.hero-reel {
  justify-self: center;
  position: relative;
  width: min(100%, 390px);
  height: clamp(490px, 49vw, 690px);
  background: #070a09;
  border-inline: 1px solid var(--line);
  overflow: hidden;
}
.hero-reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}
.hero-reel figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 8px;
  padding: 50px 15px 16px;
  background: linear-gradient(transparent, #07100fec);
}
.hero-reel figcaption strong, .hero-reel figcaption small { display: block; }
.hero-reel figcaption strong { font: 700 12px/1.2 var(--mono); }
.hero-reel figcaption small { margin-top: 5px; color: var(--muted); font: 700 10px/1.2 var(--mono); }
.hero-reel figcaption button {
  min-height: 44px;
  padding: 8px;
  border: 1px solid #a7e2d755;
  background: #0b1412db;
  color: var(--mint);
  font: 700 10px/1.15 var(--mono);
}
.edit-browser { padding-block: clamp(58px, 8vw, 120px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 31px; }
h2 { font-size: clamp(29px, 4.9vw, 72px); line-height: 1.03; }
.section-head h2 { margin: 8px 0 12px; }
.section-head p:not(.kicker), .journal-chapter > p:not(.kicker) {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.65;
}
.film-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 19px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.film-filters button {
  border: 0;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 8px 2px;
  font: 700 11px/1.2 var(--mono);
}
.film-filters button[aria-pressed="true"] { color: var(--mint); border-color: var(--mint); }
.edit-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 17px; }
.clip-card { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.clip-visual {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  padding: 0;
  border: 0;
  text-align: left;
  background: radial-gradient(ellipse at center, #1d2d2b, #0a100f 75%);
}
.clip-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transition: transform .55s var(--ease);
}
.clip-card.is-landscape .clip-visual img { object-fit: contain; }
.clip-visual:hover img { transform: scale(1.025); }
.clip-visual span {
  position: absolute;
  inset: auto auto 10px 10px;
  padding: 8px 9px;
  color: var(--paper);
  background: #080c0ce8;
  font: 700 10px/1.2 var(--mono);
}
.clip-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 11px; }
.clip-meta h3 { font: 700 clamp(12px, 1.35vw, 17px)/1.25 var(--mono); overflow-wrap: anywhere; }
.clip-meta p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.cut-add {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #101917;
  font: 700 18px/1 var(--mono);
}
.cut-add[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
.frame-layout {
  display: grid;
  grid-template-columns: minmax(240px,.84fr) minmax(0,1.16fr);
  align-items: center;
  gap: clamp(30px, 7vw, 95px);
  padding-block: clamp(34px, 7vw, 95px);
  background: radial-gradient(ellipse at 60% 40%, #182d29, #090d0c 67%);
}
.frame-copy h1 { font-size: clamp(44px, 7vw, 110px); }
.frame-choices { display: grid; margin-top: 30px; }
.frame-choices button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 5px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 700 12px/1.3 var(--mono);
}
.frame-choices button[aria-pressed="true"] { color: var(--mint); }
.frame-choices button span { color: inherit; }
.frame-work { min-width: 0; }
.frame-stage {
  --reveal: 0%;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: clamp(350px, 65svh, 680px);
  background: #070c0b;
  touch-action: pan-y;
  cursor: ew-resize;
  border: 1px solid var(--line);
  user-select: none;
}
.frame-stage video, .frame-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.frame-still { clip-path: inset(0 var(--reveal) 0 0); }
.frame-edge {
  position: absolute;
  inset: 0 auto 0 calc(100% - var(--reveal));
  width: 1px;
  background: var(--mint);
  box-shadow: 0 0 12px #a7e2d785;
  pointer-events: none;
}
.frame-edge::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--mint);
  font: 700 11px/1 var(--mono);
  transform: translate(-50%,-50%);
}
.frame-mode {
  position: absolute;
  top: 11px;
  padding: 6px 8px;
  color: var(--paper);
  background: #080d0cda;
  font: 700 10px/1.2 var(--mono);
  text-transform: uppercase;
}
.frame-mode-still { left: 11px; }
.frame-mode-motion { right: 11px; color: var(--mint); }
.frame-tools { display: flex; align-items: end; gap: 12px; margin-block: 13px 11px; }
.frame-slider { display: grid; flex: 1; gap: 5px; min-width: 0; color: var(--muted); font: 700 11px/1.2 var(--mono); }
.frame-slider input { margin: 0; height: 28px; min-width: 0; }
input[type="range"] { accent-color: var(--mint); }
.frame-caption { color: var(--muted); font-size: 14px; line-height: 1.5; }
.journal-cover {
  display: grid;
  grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr);
  align-items: center;
  min-height: 72svh;
  background: linear-gradient(115deg, #0e1715, var(--ink) 60%);
}
.journal-cover-copy { position: relative; z-index: 1; padding-block: 52px; }
.journal-cover-photo { height: clamp(400px, 52vw, 680px); min-width: 0; }
.journal-cover-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 50%; }
.journal-nav {
  position: sticky;
  z-index: 4;
  top: 69px;
  display: flex;
  gap: clamp(12px, 4vw, 48px);
  justify-content: center;
  padding-inline: var(--gutter);
  border-block: 1px solid var(--line);
  background: #0b1312f8;
}
.journal-nav a {
  display: flex;
  align-items: center;
  min-height: 45px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font: 700 11px/1.3 var(--mono);
}
.journal-nav a[aria-current] { color: var(--mint); border-color: var(--mint); }
.journal-body {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  gap: clamp(38px, 7vw, 96px);
}
.journal-chapter {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 17px;
  min-height: min(70svh, 760px);
  padding-block: 50px;
  scroll-margin-top: 45px;
}
.journal-chapter + .journal-chapter { border-top: 1px solid var(--line); }
.journal-chapter h2 { font-size: clamp(30px, 4.5vw, 66px); }
.journal-credits { font: 700 12px/1.55 var(--mono); }
.episode-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
}
.journal-stage {
  position: sticky;
  top: 138px;
  align-self: start;
  height: min(66svh, 655px);
  margin-block: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #09110f;
}
.journal-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .48s var(--ease); }
.journal-shot.is-current { opacity: 1; }
.journal-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.journal-shot[data-shot="o2"] img { object-position: center 23%; }
.journal-shot figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 15px 15px;
  background: linear-gradient(transparent, #08110fee);
  color: var(--paper);
  font: 700 11px/1.2 var(--mono);
}
.journal-inline { display: none; }
dialog {
  padding: 0;
  color: var(--paper);
  border: 1px solid var(--line);
  background: var(--panel);
  max-width: min(780px, calc(100% - 24px));
  max-height: calc(100% - 24px);
}
dialog::backdrop { background: #030706cc; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.dialog-head h2 { font-size: clamp(22px, 4.2vw, 42px); margin-top: 5px; }
.icon-button {
  display: grid;
  place-items: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #091310;
  font: 700 21px/1 var(--mono);
}
.icon-button:hover { border-color: var(--mint); }
.cut-drawer {
  inset: 0 0 0 auto;
  width: min(470px, 100%);
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  margin: 0;
}
.cut-drawer[open] { animation: drawer-in .28s var(--ease) both; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .cut-drawer[open] { animation: none; } }
[data-study-quiet] .cut-drawer[open] { animation: none; }
.drawer-inner { display: grid; gap: 17px; min-height: 100%; align-content: start; padding: 24px; }
.drawer-intro, #cut-empty { color: var(--muted); font-size: 14px; line-height: 1.5; }
.cut-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.cut-entry {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: #0b1412;
}
.cut-entry[data-drag-over] { border-color: var(--mint); }
.cut-entry img { width: 50px; height: 50px; object-fit: cover; }
.cut-entry strong { font: 700 11px/1.25 var(--mono); overflow-wrap: anywhere; }
.cut-entry small { display: block; color: var(--muted); margin-top: 4px; }
.cut-reorder { display: flex; flex-wrap: wrap; justify-content: end; gap: 2px; }
.cut-reorder button { min-width: 38px; min-height: 44px; padding: 4px; font-size: 14px; }
.drawer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cut-note { margin-bottom: -10px; font: 700 12px/1.3 var(--mono); }
.cut-note span { color: var(--muted); font-weight: 400; }
#cut-notes {
  width: 100%;
  resize: vertical;
  padding: 10px;
  border: 1px solid var(--line);
  background: #0b1412;
  color: var(--paper);
  font-size: 16px;
}
.drawer-feedback { color: var(--mint); min-height: 16px; font-size: 12px; }
.preview-dialog { width: 740px; }
.preview-content, .photo-content { display: grid; gap: 13px; padding: clamp(14px, 3vw, 25px); }
.preview-screen { display: grid; place-items: center; height: min(55svh, 570px); background: #060a09; }
.preview-screen video { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.preview-transport { display: flex; align-items: center; gap: 8px; }
.preview-transport input { min-width: 48px; flex: 1; }
.preview-sequence { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.preview-sequence button[aria-current] { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.preview-note-toggle { width: fit-content; }
.preview-note-form { display: grid; gap: 5px; }
.preview-note-form label { color: var(--mint); font: 700 11px var(--mono); }
.preview-note-form textarea { width: 100%; padding: 7px; border: 1px solid var(--line); background: #0a130f; color: var(--paper); resize: vertical; }
#journal-photo { width: 100%; height: min(60svh, 640px); object-fit: contain; background: #060a09; }
.photo-controls { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
#journal-photo-count { color: var(--muted); font: 700 12px/1 var(--mono); }

@media (max-width: 800px) {
  :root { --gutter: clamp(16px, 5vw, 36px); scroll-padding-top: 100px; }
  .site-header { gap: 6px 14px; }
  .site-nav { gap: 13px; }
  .edit-hero { grid-template-columns: .94fr 1.06fr; }
  .hero-reel { height: min(65svh, 530px); min-height: 420px; }
  .frame-layout { gap: 25px; }
  .journal-stage { height: 60svh; }
  .journal-chapter { min-height: 65svh; }
}
@media (max-width: 620px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; padding-block: 8px 0; }
  .site-nav { grid-area: 2 / 1 / 3 / -1; justify-content: start; gap: clamp(11px, 4.6vw, 21px); }
  .site-nav a { min-height: 38px; font-size: 10px; }
  .wordmark { font-size: 17px; }
  .edit-hero, .journal-cover { display: flex; flex-direction: column; padding-inline: 0; }
  .hero-reel { order: -1; width: 100%; height: min(65svh, 560px); min-height: 360px; border-inline: 0; }
  .hero-copy { align-self: stretch; padding: 25px var(--gutter) 42px; }
  .hero-copy h1, .journal-cover h1, .frame-copy h1 { margin-block: 12px 15px; }
  h1 { font-size: clamp(50px, 14vw, 78px); }
  .hero-copy .action, .journal-cover-copy .action { margin-top: 19px; }
  .edit-library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 12px; }
  .clip-visual { aspect-ratio: 4 / 5; }
  .section-head { display: grid; align-items: start; gap: 13px; }
  .section-head > .action { justify-self: start; }
  .clip-meta { align-items: start; }
  .clip-meta p { font-size: 11px; }
  .frame-layout { display: grid; grid-template-columns: 1fr; padding-block: 32px 48px; }
  .frame-copy h1 { font-size: clamp(46px, 14vw, 76px); }
  .frame-choices { margin-top: 15px; }
  .frame-stage { height: clamp(335px, 61svh, 560px); }
  .journal-cover { min-height: 0; }
  .journal-cover-copy { padding: 25px var(--gutter) 30px; }
  .journal-cover-photo { order: -1; height: clamp(240px, 62vw, 420px); }
  .journal-nav { top: 94px; justify-content: space-between; gap: 9px; }
  .journal-nav a { font-size: 10px; }
  .journal-body { display: block; }
  .journal-stage { display: none; }
  .journal-chapter { min-height: 0; padding-block: 43px; }
  .journal-inline { display: block; width: 100%; background: #060a09; }
  .journal-inline img { width: 100%; max-height: 52svh; object-fit: contain; }
  .drawer-inner { padding: 17px; }
  .preview-content, .photo-content { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
html[data-study-quiet], [data-study-quiet] *, [data-study-quiet] *::before, [data-study-quiet] *::after {
  scroll-behavior: auto !important;
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
}

/* Keep the seam inside the original frame for both native aspect ratios. */
.frame-work[data-orientation="portrait"] {
  width: min(100%, clamp(215px, 40svh, 385px));
  justify-self: center;
}
.frame-work[data-orientation="landscape"] { width: 100%; }
.frame-work .frame-stage { height: auto; aspect-ratio: 9 / 16; }
.frame-work[data-orientation="landscape"] .frame-stage { aspect-ratio: 16 / 9; }
.frame-stage:not(.has-motion) .frame-mode-motion { display: none; }
.frame-stage:not(.has-motion) .frame-edge::after { transform: translate(-100%,-50%); }

.light-layout {
  display: grid;
  grid-template-columns: minmax(220px,.65fr) minmax(0,1.35fr);
  align-items: center;
  gap: clamp(25px, 6vw, 80px);
  padding-block: clamp(34px, 7vw, 82px);
  background: radial-gradient(ellipse at 67% 44%, #20332e, #0b1311 64%, var(--ink));
}
.light-copy h1 { margin-block: 18px 24px; font-size: clamp(48px, 7.5vw, 118px); }
.light-copy p:not(.kicker) { max-width: 310px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.light-gallery-label { display: block; margin: 24px 0 7px; color: var(--mint); font: 700 11px/1.3 var(--mono); }
#light-gallery {
  display: block;
  width: min(100%, 320px);
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: #101917;
  color: var(--paper);
  font-size: 16px;
}
.light-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#light-feedback { margin-top: 9px; }
.light-work { min-width: 0; }
.light-print {
  display: grid;
  place-items: center;
  height: clamp(380px, 62svh, 640px);
  padding: clamp(13px, 2vw, 28px);
  background: #e9ede4;
}
.light-print img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.light-navigation { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 10px; }
.light-thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 3px 0; }
.light-thumbs button { flex: 0 0 56px; height: 62px; padding: 2px; border: 1px solid var(--line); background: var(--ink); }
.light-thumbs button[aria-current] { border-color: var(--mint); }
.light-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.light-caption { color: var(--muted); font: 700 11px/1.4 var(--mono); margin-top: 8px; }
.photo-reference h3 { font: 700 13px/1.25 var(--mono); margin-bottom: 8px; }
.photo-reference ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.photo-reference li { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.photo-reference img { width: 43px; height: 45px; object-fit: cover; }
@media (max-width: 620px) {
  .light-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .light-copy h1 { font-size: clamp(46px, 13vw, 77px); margin-block: 10px; }
  .light-gallery-label { margin-top: 15px; }
  .light-print { height: clamp(290px, 55svh, 480px); }
  .site-nav { gap: clamp(8px, 2.7vw, 17px); }
  .site-nav a { font-size: clamp(9px, 2.55vw, 11px); }
}
.light-print { touch-action: pan-y; }
.light-print img { user-select: none; -webkit-user-drag: none; }

.edit-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../assets/film-grain.svg") repeat;
  opacity: .11;
  pointer-events: none;
}
.waveform {
  --played: 0%;
  position: relative;
  flex: 1;
  min-width: 55px;
  height: 49px;
}
.waveform:focus-within { outline: 2px solid var(--mint); outline-offset: 3px; }
.waveform-visual { position: absolute; inset: 1px 1px 18px; }
.waveform-bars {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(1px,1fr);
  align-items: center;
  gap: 1px;
  overflow: hidden;
}
.waveform-bars span { min-height: 2px; background: #54736a; }
.waveform-played { clip-path: inset(0 calc(100% - var(--played)) 0 0); }
.waveform-played span { background: var(--mint); }
.waveform input {
  position: absolute;
  inset: 0 0 11px;
  width: 100%;
  height: 38px;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.waveform-time { position: absolute; inset: auto 0 0; text-align: center; color: var(--muted); font: 700 10px/1.1 var(--mono); }
.frame-grab-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }

.starter-cuts {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 19px;
}
.starter-cuts > button {
  display: grid;
  grid-template-columns: 73px minmax(0,1fr);
  align-items: center;
  justify-items: start;
  gap: 14px;
  min-height: 86px;
  padding: 9px;
  border: 1px solid var(--line);
  background: #101917;
  text-align: left;
  font: 700 12px/1.35 var(--mono);
}
.starter-cuts > button:hover { border-color: var(--mint); }
.starter-images {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  width: 73px;
}
.starter-images img { width: 100%; height: 57px; object-fit: cover; }
.starter-cuts small { display: block; margin-top: 5px; color: var(--mint); font-size: 10px; }
.export-reel { border-block: 1px solid var(--line); }
.export-reel summary { padding: 14px 0; color: var(--mint); font: 700 11px/1.3 var(--mono); cursor: pointer; }
.export-options { display: grid; gap: 7px; justify-items: start; padding-bottom: 12px; font-size: 12px; }
#reel-ratio { min-height: 43px; border: 1px solid var(--line); padding: 7px; background: var(--ink); color: var(--paper); font-size: 16px; }
@media (max-width: 620px) {
  .starter-cuts { grid-template-columns: 1fr; gap: 6px; }
  .starter-cuts > button { min-height: 64px; }
  .starter-images img { height: 44px; }
}

.journal-cover-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.set-story {
  display: grid;
  grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr);
  gap: clamp(18px, 6vw, 85px);
  align-items: center;
  padding-block: clamp(50px, 7vw, 90px);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 80% 50%,#291613,#101513 68%,var(--ink));
}
.set-story-copy { display: grid; justify-items: start; gap: 14px; }
.set-story-copy p:not(.kicker) { max-width: 420px; color: var(--muted); line-height: 1.6; }
.set-story-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.set-story-tabs button { min-height: 44px; padding: 6px 9px; border: 1px solid var(--line); background: transparent; font: 700 11px/1.25 var(--mono); }
.set-story-tabs button[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
.set-story-art { position: relative; isolation: isolate; width: 100%; aspect-ratio: 4 / 3; background: #0b0d0c; overflow: hidden; }
.set-story-frame { position: absolute; inset: 0; opacity: 0; transition: opacity .42s var(--ease); }
.set-story-frame.is-current { opacity: 1; }
.set-story-frame img { width: 100%; height: 100%; object-fit: contain; }
#set-story-caption { min-height: 50px; font-size: 13px; }
@media (max-width: 620px) {
  .set-story { grid-template-columns: minmax(0,1fr); }
  .set-story-art { aspect-ratio: 4 / 3; }
}

.cut-duration { color: var(--mint); font: 700 12px/1.4 var(--mono); }
.cut-entry .trim-open {
  display: block;
  min-height: 38px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--mint);
  font: 700 10px/1.2 var(--mono);
}
.trim-dialog .preview-screen { height: min(42svh, 460px); }
.trim-track { height: 7px; background: #304541; position: relative; }
.trim-track::after { content: ""; position: absolute; inset: 0 calc(100% - var(--out,100%)) 0 var(--in,0%); background: var(--mint); }
.trim-controls { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 5px 10px; align-items: center; }
.trim-controls label { display: flex; justify-content: space-between; gap: 5px; font: 700 11px/1.3 var(--mono); }
.trim-controls output, #trim-length { color: var(--mint); }
.trim-controls input { min-width: 0; min-height: 30px; margin: 0; }
.trim-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
#trim-length { font: 700 11px/1.2 var(--mono); }
#trim-apply { margin-inline-start: auto; }

.brief-versions { border-block: 1px solid var(--line); }
.brief-versions summary { padding: 14px 0; color: var(--mint); font: 700 11px/1.3 var(--mono); cursor: pointer; }
.version-save, .version-open { display: grid; gap: 8px; justify-items: start; margin-bottom: 12px; }
.version-save label, .version-open label { color: var(--muted); font: 700 11px/1.4 var(--mono); }
.version-save input, .version-open select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 7px 9px;
  font-size: 16px;
}
.version-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.review-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px 9px; }
.review-item { min-width: 0; }
.review-item img { width: 100%; aspect-ratio: 1 / 1.15; object-fit: contain; background: #0a0e0d; }
.review-item strong, .review-item small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.review-item strong { font: 700 11px/1.3 var(--mono); }
.review-item small { color: var(--muted); font-size: 11px; }
@media (max-width: 540px) { .review-items { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.compare-controls {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  padding: 10px 0;
  border-block: 1px solid var(--line);
}
.compare-controls label { display: block; margin-bottom: 4px; color: var(--muted); font: 700 11px/1.3 var(--mono); }
.compare-controls select { width: 100%; min-height: 43px; padding: 6px; color: var(--paper); border: 1px solid var(--line); background: var(--ink); font-size: 16px; }
.compare-toggle { display: flex; grid-column: 1 / -1; gap: 6px; align-items: center; flex-wrap: wrap; }
.compare-toggle button[aria-pressed="true"] { color: var(--ink); background: var(--mint); }
#compare-position { margin-left: auto; color: var(--muted); font: 700 11px/1.3 var(--mono); }

.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.hero-actions .action { margin: 0; }
.plan-dialog { width: 850px; max-width: min(850px, calc(100% - 24px)); }
.plan-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.plan-options,.plan-result { min-width: 0; display: grid; align-content: start; gap: 8px; }
.plan-form label,.plan-form legend { color: var(--muted); font: 700 11px/1.3 var(--mono); }
.plan-form :is(input:not([type="checkbox"]),select,textarea) {
  width: 100%; min-width: 0; min-height: 43px; padding: 7px;
  border: 1px solid var(--line); background: var(--ink); color: var(--paper); font-size: 16px;
}
.plan-form textarea { resize: vertical; }
.plan-form fieldset { border: 1px solid var(--line); margin: 3px 0; padding: 7px; }
.plan-form legend { padding: 0 4px; }
#plan-outputs { display: grid; }
.plan-choice { display: flex; align-items: center; gap: 8px; min-height: 38px; cursor: pointer; }
.plan-choice input { accent-color: var(--mint); width: 17px; height: 17px; }
.plan-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.plan-pair > div { min-width: 0; }
.plan-pair input { display: block; max-width: 100%; }
.plan-pair input[type="date"] { appearance: none; -webkit-appearance: none; }
.plan-pair label { display: block; margin-bottom: 4px; }
.plan-example { position: relative; background: #090e0d; min-height: 170px; height: 28svh; }
.plan-example img { width: 100%; height: 100%; object-fit: contain; }
.plan-example figcaption { position: absolute; inset: auto 0 0; padding: 22px 8px 7px; background: linear-gradient(transparent,#080d0cee); font: 700 11px/1.35 var(--mono); }
.plan-example figcaption span,.plan-example figcaption strong { display: block; }
.plan-example figcaption span { color: var(--mint); }
#plan-preview { font-size: 13px; }
@media (max-width: 650px) {
  .hero-actions { margin-top: 19px; }
  .plan-form { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 520px) {
  .plan-pair { grid-template-columns: minmax(0,1fr); }
}

.study-header-tools { display: flex; align-items: center; justify-content: end; gap: 8px; min-width: 0; }
.study-header-tools > a {
  min-width: 0;
  color: var(--mint);
  text-align: right;
  text-decoration: none;
  font: 700 11px/1.2 var(--mono);
}
.study-language {
  display: inline-flex;
  flex: none;
  gap: 0;
  border: 1px solid var(--line);
}
.study-language button {
  min-width: 33px;
  min-height: 36px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: #111b16;
  color: var(--muted);
  font: 700 10px var(--mono);
}
.study-language button[aria-pressed="true"] { background: var(--mint); color: var(--ink); }
.study-language button:hover { outline: 1px solid var(--mint); outline-offset: -1px; }
@media (max-width: 350px) {
  .study-language button { min-width: 27px; }
  .study-header-tools { gap: 5px; }
}
@media (max-width: 690px) {
  .study-header-tools > a { max-width: 28vw; font-size: 10px; }
}

.motion-check {
  position: fixed;
  z-index: 100;
  right: 8px;
  bottom: 8px;
  width: min(325px, calc(100% - 16px));
  padding: 7px;
  border: 1px solid var(--line);
  background: #0a1511f7;
  color: var(--paper);
}
.motion-check pre { white-space: pre-wrap; font: 700 10px/1.42 var(--mono); margin: 6px 0 0; }

.private-enquiry-preview { display: grid; gap: .65rem; justify-items: start; padding: .85rem; border: 1px solid var(--line); background: #15231d; }
.private-enquiry-preview h3 { font: 700 1.25rem/1.1 var(--mono); }
.private-enquiry-preview dl { display: grid; gap: .3rem; margin: 0; min-width: 0; }
.private-enquiry-preview dt { color: var(--mint); font: 700 10px var(--mono); }
.private-enquiry-preview dd { margin: 0 0 .45rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.private-enquiry-preview p { color: var(--muted); font: 700 10px/1.35 var(--mono); }
.private-enquiry-fields { display: grid; gap: .85rem; }
.private-enquiry-fields label { display: grid; gap: .35rem; color: var(--muted); font: 700 12px var(--mono); }
.private-enquiry-fields :is(input,textarea) { width: 100%; min-height: 44px; padding: .55rem; border: 1px solid var(--line); background: var(--ink); color: var(--paper); font: 400 16px/1.3 sans-serif; }
.private-enquiry-fields textarea { resize: vertical; }
