/* ============================================================================
   Shot-Craft — landing page
   Design language: extends the app's "Paper × Swiss" Luxe tokens (graphite ink
   on warm porcelain, hairlines, IBM Plex Mono data) with a literary display
   serif (Newsreader) for the "script" voice. Color only where it means
   something — department highlights, FOV blue, sticky yellow.
   ========================================================================== */

:root {
  /* —— ported verbatim from src/index.css :root —— */
  --bg:      #FBFBF9;
  --bg-1:    #F6F5F1;
  --bg-2:    #EFEEE8;
  --bg-3:    #E7E5DD;
  --line:    #E2E0D8;
  --line-2:  #D2CFC4;
  --hair:    rgba(28, 27, 25, 0.06);

  --ink:       #1C1B19;
  --ink-dim:   #4A4843;
  --ink-mut:   #7A766C;
  --ink-faint: #A09B8F;

  --accent:      #1D1D1F;
  --accent-ink:  #000000;
  --accent-soft: rgba(29, 29, 31, 0.08);
  --accent-line: rgba(29, 29, 31, 0.22);

  --sel:      #2F6FE0;
  --sel-soft: rgba(47, 111, 224, 0.12);
  --sel-line: rgba(47, 111, 224, 0.45);

  --gold:  #9A7A2E;
  --green: #4E8A63;

  --sticky:      #F7E08A;
  --sticky-2:    #F2D873;
  --sticky-edge: #E3C75A;
  --sticky-ink:  #3A3320;

  /* department highlight inks (script layers) */
  --dept-cam:   #2F6FE0;  /* camera — blue */
  --dept-light: #C08A2E;  /* lighting — amber */
  --dept-art:   #4E8A63;  /* art / props — green */

  --glass:      rgba(251, 251, 249, 0.82);
  --glass-blur: 16px;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.05),
            0 8px 24px -8px rgba(28, 27, 25, 0.16),
            0 2px 6px -2px rgba(28, 27, 25, 0.08);
  --shadow-lg: 0 2px 6px rgba(20,18,14,0.05), 0 30px 70px -24px rgba(20,18,14,0.22);

  /* type */
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --sans:  -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
           system-ui, "Segoe UI", Roboto, sans-serif;

  --r-xs: 4px; --r-s: 5px; --r-m: 7px; --r-l: 9px; --r-xl: 14px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: .12s; --dur: .18s; --dur-slow: .26s;
  --focus: 0 0 0 3px var(--sel-soft), 0 0 0 1px var(--sel-line);

  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 80% -10%, #FFFFFF 0%, rgba(255,255,255,0) 55%),
    radial-gradient(100% 60% at 0% 100%, #F1EFE8 0%, rgba(241,239,232,0) 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* fine grain over everything for paper texture */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* —— shared atoms —— */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-mut);
  margin: 0 0 var(--s-3);
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.chip {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--ink-dim);
}
.chip-live { color: var(--sel); border-color: var(--sel-line); }
.chip-live::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sel); margin-right: 5px; vertical-align: middle;
  animation: live-pulse 2s var(--ease-in-out) infinite;
}
@keyframes live-pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}

.btn {
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  border-radius: var(--r-m); padding: 10px 16px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink-dim);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast);
}
.btn:hover { color: var(--ink); background: var(--bg-3); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 .5px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; box-shadow: 0 4px 14px -2px rgba(0,0,0,.3), inset 0 .5px 0 rgba(255,255,255,.2); }

/* ───────────────────────── NAV ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: var(--s-4);
  max-width: var(--maxw); margin: 0 auto; padding: 14px clamp(16px, 4vw, 40px);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  opacity: 0; transition: opacity var(--dur);
}
.nav.scrolled::before { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.brand-word { font-weight: 700; letter-spacing: .14em; font-size: 14px; }
.nav-links { display: flex; gap: var(--s-5); margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--ink-dim); transition: color var(--dur-fast); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: var(--s-4); padding: 8px 14px; font-size: 13px; }
@media (max-width: 720px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* layout rhythm */
section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 120px) clamp(16px, 4vw, 40px); }
.section-head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 var(--s-3);
}
.section-lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-dim); margin: 0; max-width: 56ch; }

/* ───────────────────────── HERO ───────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 5vw, 64px);
  padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(48px, 8vw, 96px);
}
.hero-inner { max-width: 680px; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 7vw, 82px); line-height: 0.98; letter-spacing: -0.03em;
  margin: 0 0 var(--s-4);
}
.title-script { font-style: italic; color: var(--ink); }
.title-slate {
  font-family: var(--mono); font-style: normal; font-weight: 500;
  font-size: 0.82em; letter-spacing: -0.02em;
  text-transform: uppercase; vertical-align: baseline;
}
.title-slate::after {
  content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .12em;
  border-radius: 2px; background: var(--accent); vertical-align: 0.04em;
}
.hero-sub { font-size: clamp(16px, 1.7vw, 20px); color: var(--ink-dim); max-width: 54ch; margin: 0 0 var(--s-5); }

.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-5); padding: 0; margin: var(--s-5) 0 0; }
.hero-trust li { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-mut); display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.hero-aside { align-self: center; }
.spec-card { width: 248px; border-radius: var(--r-xl); padding: 16px; transform: rotate(1.4deg); }
.spec-card .spec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.spec-card .spec-head .eyebrow { margin: 0; font-size: 9px; letter-spacing: .12em; max-width: 9.5em; line-height: 1.3; }
.spec-rows { display: grid; gap: 6px; }
.spec-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; font-size: 13px; padding: 7px 9px; background: var(--bg-2); border-radius: var(--r-s); border: 1px solid var(--line); }
.spec-row span:first-child { color: var(--ink); font-weight: 600; }
.spec-row span:not(:first-child) { color: var(--ink-mut); text-align: right; }
.spec-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .12em; color: var(--ink-faint); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-aside { display: none; } }

/* ───────────────────────── WAITLIST FORM ───────────────────────── */
.waitlist-form { margin-top: var(--s-5); max-width: 480px; }
.hero-form { margin-top: var(--s-5); }
.field { display: flex; gap: 8px; }
.field input[type="email"] {
  flex: 1; min-width: 0; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-m);
  padding: 11px 14px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { outline: none; border-color: var(--sel); box-shadow: var(--focus); }
.field .btn { white-space: nowrap; }
.form-note { font-size: 12.5px; color: var(--ink-mut); margin: 10px 2px 0; }
.form-note.is-error { color: #b4413a; }
.form-note.is-success { color: var(--green); }

.role-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.role-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mut); margin-right: 2px; }
.role-chip {
  font-family: var(--mono); font-size: 12px; color: var(--ink-dim); cursor: pointer;
  padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line-2); background: var(--bg-1);
  transition: all var(--dur-fast);
}
.role-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.role-chip:hover { border-color: var(--ink-mut); }
.role-chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.role-chip:has(input:focus-visible) { box-shadow: var(--focus); }

/* form busy / done states */
.waitlist-form.is-busy .btn-primary { opacity: .7; pointer-events: none; }
.waitlist-form.is-done .field { display: none; }
.waitlist-form.is-done .role-row { display: none; }

/* ───────────────────────── DEMO ───────────────────────── */
.demo-section { padding-top: clamp(20px, 3vw, 40px); }
.demo-frame {
  border-radius: var(--r-xl); overflow: hidden; background: var(--bg-1);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.demo-chrome {
  display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px;
  background: var(--bg-1); border-bottom: 1px solid var(--line);
}
.chrome-logo { display: inline-flex; border-radius: 6px; overflow: hidden; }
.demo-tabs { display: flex; gap: 2px; background: var(--bg-2); padding: 3px; border-radius: var(--r-l); }
.demo-tab {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-mut);
  border: 0; background: transparent; padding: 6px 16px; border-radius: var(--r-m); cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast), box-shadow var(--dur-fast);
}
.demo-tab:hover { color: var(--ink-dim); }
.demo-tab.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
.demo-tab:focus-visible { outline: none; box-shadow: var(--focus); }
.chrome-scene { margin-left: auto; font-size: 11px; letter-spacing: .12em; color: var(--ink-faint); }
@media (max-width: 620px) { .chrome-scene { display: none; } }

.demo-stage { position: relative; height: clamp(440px, 56vw, 560px); background: var(--bg); }
.demo-panel { position: absolute; inset: 0; overflow: hidden; }
.demo-panel[hidden] { display: none; }
.demo-panel.is-active { animation: fade-in var(--dur-slow) var(--ease-out) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-caption { text-align: center; font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); margin: 16px 0 0; }

/* —— SCRIPT demo —— */
.sd { display: grid; grid-template-columns: 56px 1fr 240px; height: 100%; }
.sd-rail { border-right: 1px solid var(--line); background: var(--bg-1); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sd-scene-num { font-family: var(--mono); font-size: 12px; color: var(--ink-mut); width: 38px; height: 32px; display: grid; place-items: center; border-radius: var(--r-m); cursor: pointer; transition: all var(--dur-fast); }
.sd-scene-num:hover { background: var(--bg-2); color: var(--ink-dim); }
.sd-scene-num.sel { background: var(--accent); color: #fff; }
.sd-page { overflow-y: auto; padding: clamp(18px, 3vw, 34px) clamp(20px, 4vw, 52px); }
.sd-paper { max-width: 540px; margin: 0 auto; font-family: var(--mono); font-size: 13px; line-height: 1.9; color: var(--ink); }
.sd-slug { font-weight: 600; letter-spacing: .02em; margin: 0 0 18px; }
.sd-action { margin: 0 0 16px; }
.sd-char { text-transform: uppercase; margin: 0 0 0 28%; letter-spacing: .04em; }
.sd-dia { margin: 0 0 16px 16%; max-width: 64%; }
.sd-hl { border-radius: 3px; padding: 0 2px; cursor: default; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background var(--dur); }
.sd-hl.cam   { background: color-mix(in srgb, var(--dept-cam) 22%, transparent); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--dept-cam) 50%, transparent); }
.sd-hl.light { background: color-mix(in srgb, var(--dept-light) 28%, transparent); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--dept-light) 55%, transparent); }
.sd-hl.art   { background: color-mix(in srgb, var(--dept-art) 24%, transparent); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--dept-art) 52%, transparent); }
.sd-hl.dim   { background: transparent !important; box-shadow: none !important; }
.sd-fn { font-family: var(--sans); font-size: 10px; vertical-align: super; color: var(--sel); font-weight: 700; margin-left: 1px; }
.sd-sticky {
  position: relative; display: block; width: 184px; margin: 6px 0 18px auto;
  background: linear-gradient(180deg, var(--sticky) 0%, var(--sticky-2) 100%);
  color: var(--sticky-ink); font-family: var(--sans); font-size: 12px; line-height: 1.4;
  padding: 10px 12px; border-radius: 2px; box-shadow: 0 6px 16px -6px rgba(58,51,32,.5);
  transform: rotate(-1.4deg);
}
.sd-sticky::before { content: ""; position: absolute; top: -4px; left: 50%; width: 46px; height: 12px; transform: translateX(-50%) rotate(1deg); background: rgba(255,255,255,.35); border-radius: 1px; }

/* layer toggles header */
.sd-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.sd-bar .lyr { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; cursor: pointer; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-dim); display: inline-flex; align-items: center; gap: 6px; transition: all var(--dur-fast); user-select: none; }
.sd-bar .lyr .sw { width: 8px; height: 8px; border-radius: 50%; }
.sd-bar .lyr.off { opacity: .42; }
.sd-bar .lyr.cam .sw { background: var(--dept-cam); }
.sd-bar .lyr.light .sw { background: var(--dept-light); }
.sd-bar .lyr.art .sw { background: var(--dept-art); }
.sd-bar .spacer { flex: 1; }
.sd-grid { display: grid; grid-template-rows: auto 1fr; grid-template-columns: 56px 1fr 240px; height: 100%; }
.sd-grid .sd-rail { grid-row: 2; grid-column: 1; }
.sd-grid .sd-page { grid-row: 2; grid-column: 2; }
.sd-grid .sd-aside { grid-row: 2; grid-column: 3; }

/* breakdown aside */
.sd-aside { border-left: 1px solid var(--line); background: var(--bg-1); padding: 14px; overflow-y: auto; display: flex; flex-direction: column; }
.sd-aside h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mut); margin: 0 0 4px; }
.sd-aside .sub { font-size: 11px; color: var(--ink-faint); margin: 0 0 12px; }
.sd-run { width: 100%; margin-bottom: 12px; }
.bd-list { display: flex; flex-direction: column; gap: 6px; }
.bd-el { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: var(--r-m); border: 1px solid var(--line); background: #fff; font-size: 12px; animation: pop-el var(--dur-slow) var(--ease-out) both; }
@keyframes pop-el { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.bd-el .cat { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; color: #fff; }
.bd-el .cat.prop { background: var(--dept-art); }
.bd-el .cat.cast { background: var(--dept-cam); }
.bd-el .cat.set  { background: var(--ink-mut); }
.bd-el .nm { color: var(--ink-dim); }
.bd-empty { font-size: 12px; color: var(--ink-faint); text-align: center; padding: 20px 8px; font-style: italic; }
.sd-run .spin { display: inline-block; animation: sd-spin .8s linear infinite; }
@keyframes sd-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .sd-grid { grid-template-columns: 44px 1fr; } .sd-aside { display: none; } .sd-grid .sd-page { grid-column: 2; } }

/* —— PLOT demo —— */
.pd { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; }
.pd-canvas { flex: 1; min-height: 0; width: 100%; }
.pd .plot-surface { background: #fff; }

/* plot top toolbar — room mechanics + fixture picker */
.pd-topbar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg-1); flex-wrap: wrap; }
.pd-room-lbl { font-size: 10px; letter-spacing: .14em; color: var(--ink-faint); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 100px; background: #fff; overflow: hidden; }
.stepper button { border: 0; background: transparent; width: 24px; height: 26px; cursor: pointer; color: var(--ink-mut); font-size: 14px; line-height: 1; }
.stepper button:hover { background: var(--bg-2); color: var(--ink); }
.stepper .val { min-width: 46px; text-align: center; font-size: 11.5px; color: var(--ink); }
.pd-x { color: var(--ink-faint); font-size: 12px; }
.units-seg { display: inline-flex; gap: 1px; background: var(--bg-2); padding: 2px; border-radius: 100px; margin-left: 2px; }
.units-seg button { border: 0; background: transparent; font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 100px; cursor: pointer; color: var(--ink-mut); }
.units-seg button.on { background: var(--accent); color: #fff; }
.pd-spacer { flex: 1; }
.fixture-menu { position: relative; }
.pd-add { font-size: 12px; padding: 7px 12px; }
.fixture-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 250px; max-height: 280px; overflow-y: auto; background: var(--glass); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 5px; animation: pop-in var(--dur) var(--ease-out) both; }
.fixture-pop[hidden] { display: none; }
.fx-opt { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: var(--r-m); cursor: pointer; }
.fx-opt:hover { background: var(--accent-soft); }
.fx-opt b { font-size: 12.5px; color: var(--ink); }
.fx-opt span { font-family: var(--mono); font-size: 10px; color: var(--ink-mut); letter-spacing: .02em; }
.ins-x { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: var(--ink-faint); cursor: pointer; font-size: 12px; padding: 2px 5px; border-radius: var(--r-s); }
.ins-x:hover { background: var(--bg-2); color: var(--ink); }
@media (max-width: 620px) { .pd-room-lbl, .pd-x { display: none; } .pd-topbar { gap: 6px; padding: 8px; } }
.pd-toolbar { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 4; }
.pd-tbtn { font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--ink-dim); padding: 8px 13px; border-radius: 100px; cursor: pointer; }
.pd-tbtn.play { color: #fff; background: var(--accent); border-color: var(--accent); }
.pd-tbtn .gl { margin-right: 6px; }
.pd-inspector {
  position: absolute; top: 14px; right: 14px; width: 220px; border-radius: var(--r-l); padding: 13px; z-index: 5;
  animation: pop-in var(--dur) var(--ease-out) both;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: none; } }
.pd-inspector .ins-cat { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 2px; }
.pd-inspector .ins-name { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0 0 10px; line-height: 1.1; }
.pd-inspector .ins-row { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11.5px; padding: 4px 0; border-top: 1px solid var(--hair); }
.pd-inspector .ins-row span:first-child { color: var(--ink-mut); }
.pd-inspector .ins-row span:last-child { color: var(--ink); font-weight: 500; }
.pd-hint { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); background: var(--glass); padding: 6px 10px; border-radius: 100px; border: 1px solid var(--hair); z-index: 3; transition: opacity var(--dur); }
.pd-hint.hide { opacity: 0; }
/* plot glyph interactions */
.glyph { cursor: pointer; }
.glyph .hit { fill: transparent; }
.glyph.selected .body { stroke: var(--sel); }
.glyph .label { font-family: var(--mono); font-size: 11px; fill: var(--ink-dim); }
.cone { transition: opacity var(--dur); }
.cones-off .cone { opacity: 0 !important; }

/* —— SHOTS demo —— */
.shd { height: 100%; display: flex; flex-direction: column; }
.shd-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.shd-seg { display: flex; gap: 2px; background: var(--bg-2); padding: 3px; border-radius: var(--r-l); }
.shd-seg button { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: var(--ink-mut); border: 0; background: transparent; padding: 5px 14px; border-radius: var(--r-m); cursor: pointer; }
.shd-seg button.on { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.shd-count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: .04em; }
.shd-body { flex: 1; overflow-y: auto; padding: 18px; }

/* board */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; cursor: pointer; transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur); }
.scard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.scard.sel { border-color: var(--sel); box-shadow: var(--focus); }
.scard .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, #1b1b1d 0%, #2c2b2e 100%); position: relative; }
.scard .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scard .meta { padding: 11px 13px; }
.scard .meta-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.scard .snum { font-family: var(--mono); font-weight: 600; font-size: 13px; }
.scard .ssize { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-mut); padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 100px; }
.scard .sdesc { font-size: 13px; color: var(--ink-dim); line-height: 1.35; margin: 0 0 9px; }
.scard .sspecs { display: flex; gap: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: .04em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.status-dot.planned { background: var(--green); }
.status-dot.idea { background: var(--ink-faint); }

/* data */
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtable th { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mut); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line-2); font-weight: 500; }
.dtable td { padding: 11px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); }
.dtable tr { cursor: pointer; transition: background var(--dur-fast); }
.dtable tbody tr:hover { background: var(--bg-1); }
.dtable tr.sel { background: var(--sel-soft); }
.dtable td.num { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.dtable td.mono { font-family: var(--mono); color: var(--ink-mut); }
.shd-link { margin-top: 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); text-align: center; }
.shd-link b { color: var(--sel); }

/* —— script right-click annotation —— */
.sd-hintchip { font-size: 10px; letter-spacing: .04em; color: var(--ink-faint); }
.sd-hl-new { animation: hl-pop .4s var(--ease-out) both; }
@keyframes hl-pop { from { background-size: 0 100%; opacity: .4; } to { opacity: 1; } }
.note-anchor { background: transparent; box-shadow: inset 0 -2px 0 var(--sel-line); border-radius: 2px; padding: 0 1px; }
.sd-margin-note { display: grid; grid-template-columns: 18px 1fr; gap: 6px; max-width: 280px; margin: 10px 0 16px; padding: 9px 11px; background: #fff; border: 1px solid var(--line); border-left: 2px solid var(--sel); border-radius: var(--r-m); box-shadow: var(--shadow); font-family: var(--sans); }
.sd-margin-note .mn-n { grid-row: 1 / span 2; font-size: 11px; color: var(--sel); font-weight: 700; }
.sd-margin-note .mn-q { font-size: 11px; color: var(--ink-mut); font-style: italic; line-height: 1.3; }
.sd-margin-note .mn-edit { font-size: 12.5px; color: var(--ink); outline: none; min-height: 1.2em; line-height: 1.4; }
.sd-margin-note .mn-edit:empty::before { content: attr(data-ph); color: var(--ink-faint); }

.sd-ctx { position: fixed; z-index: 9000; background: var(--glass); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--line-2); border-radius: var(--r-l); box-shadow: var(--shadow); padding: 6px; min-width: 178px; animation: pop-in var(--dur) var(--ease-out) both; }
.ctx-grp { display: flex; align-items: center; gap: 6px; padding: 5px 8px 7px; border-bottom: 1px solid var(--hair); margin-bottom: 4px; }
.ctx-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mut); margin-right: auto; }
.ctx-sw { width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(0,0,0,.12); cursor: pointer; }
.ctx-sw.cam { background: var(--dept-cam); } .ctx-sw.light { background: var(--dept-light); } .ctx-sw.art { background: var(--dept-art); }
.ctx-sw:hover { transform: scale(1.12); }
.ctx-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; font-family: var(--sans); font-size: 13px; color: var(--ink-dim); padding: 7px 9px; border-radius: var(--r-m); cursor: pointer; }
.ctx-item:hover { background: var(--accent-soft); color: var(--ink); }

/* —— shots: image-first detail + linked overhead —— */
.thumb-tag { position: absolute; top: 8px; left: 8px; font-size: 9px; letter-spacing: .08em; color: #fff; background: rgba(0,0,0,.5); padding: 2px 7px; border-radius: 100px; }
.ov-flag { color: var(--sel); }
.shd-detail { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; gap: 16px; margin-top: 18px; padding: 16px; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-xl); }
.det-frame { position: relative; border-radius: var(--r-l); overflow: hidden; background: linear-gradient(135deg,#1b1b1d,#2c2b2e); aspect-ratio: 16/10; }
.det-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.det-badge { position: absolute; bottom: 8px; left: 8px; font-size: 10px; color: #fff; background: rgba(0,0,0,.5); padding: 3px 8px; border-radius: 100px; letter-spacing: .04em; }
.det-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.det-head .snum { font-size: 16px; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--ink-dim); }
.det-desc { font-size: 13.5px; color: var(--ink-dim); margin: 0 0 12px; line-height: 1.4; }
.det-spec { width: 100%; border-collapse: collapse; }
.det-spec td { padding: 5px 0; border-top: 1px solid var(--hair); font-size: 12px; }
.det-spec td:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mut); }
.det-spec td:last-child { text-align: right; font-family: var(--mono); color: var(--ink); }
.det-ov { display: flex; flex-direction: column; gap: 6px; }
.det-ov .ov-lbl { font-size: 9px; letter-spacing: .14em; color: var(--ink-faint); }
.det-ov .mini-ov { width: 100%; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.det-ov .ov-note { font-size: 10px; color: var(--sel); letter-spacing: .04em; }
.mini-ov .label { font-family: var(--mono); }
@media (max-width: 760px) { .shd-detail { grid-template-columns: 1fr; } }

/* ───────────────────────── EXPORT BIBLE ───────────────────────── */
.bible-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.bb-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 11px; }
.bb-list li { font-size: 14px; color: var(--ink-dim); padding-left: 18px; position: relative; }
.bb-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }
.bb-list b { color: var(--ink); }
.bb-foot { font-size: 10px; letter-spacing: .12em; color: var(--ink-faint); margin: 0 0 20px; }
.bb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.export-note { font-size: 12px; color: var(--ink-mut); margin: 0; }
.export-note.is-error { color: #b4413a; }

.bible-stack { position: relative; padding: 18px; perspective: 1400px; }
.bible-page.ghost { position: absolute; inset: 28px 18px auto 18px; height: 90%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.bible-page.g1 { transform: translate(10px, 12px) rotate(1.4deg); opacity: .7; }
.bible-page.g2 { transform: translate(20px, 22px) rotate(2.6deg); opacity: .4; }
.bible-spread { position: relative; display: grid; grid-template-columns: 1fr 8px 1fr; background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow-lg); overflow: hidden; transition: transform var(--dur-slow) var(--ease-out); }
.bible-stack:hover .bible-spread { transform: translateY(-4px); }
.bp { padding: 16px 16px 18px; min-height: 300px; }
.bp-bind { background: linear-gradient(90deg, rgba(0,0,0,.06), rgba(0,0,0,.02) 40%, rgba(0,0,0,.02) 60%, rgba(0,0,0,.06)); }
.bp-notes { background: var(--bg-1); position: relative; }
.bp-tab { position: absolute; top: 12px; right: 0; background: var(--accent); color: #fff; font-size: 8px; letter-spacing: .1em; padding: 3px 8px 3px 10px; border-radius: 100px 0 0 100px; }
.bp-h { font-size: 9px; letter-spacing: .14em; color: var(--ink-mut); margin: 14px 0 6px; }
.bp-h:first-of-type { margin-top: 18px; }
.bp-shots { width: 100%; border-collapse: collapse; }
.bp-shots th { font-family: var(--mono); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); text-align: left; padding: 2px 4px; border-bottom: 1px solid var(--line-2); }
.bp-shots td { font-family: var(--mono); font-size: 9px; color: var(--ink-dim); padding: 3px 4px; border-bottom: 1px solid var(--hair); }
.bp-ov { border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.bp-ov .mini-ov { width: 100%; display: block; }
.bp-note { font-size: 10px; color: var(--ink-dim); line-height: 1.45; background: var(--sticky); color: var(--sticky-ink); padding: 8px 10px; border-radius: 3px; }
.bp-script { position: relative; }
.bp-pageno { position: absolute; top: 12px; right: 14px; font-size: 9px; color: var(--ink-faint); }
.bps-slug { font-family: var(--mono); font-size: 10px; font-weight: 600; margin: 6px 0 12px; }
.bps { font-family: var(--mono); font-size: 9px; line-height: 1.85; color: var(--ink-dim); margin: 0 0 9px; }
.bps-hl { border-radius: 2px; padding: 0 1px; }
.bps-hl.cam { background: color-mix(in srgb, var(--dept-cam) 22%, transparent); }
.bps-hl.light { background: color-mix(in srgb, var(--dept-light) 28%, transparent); }
.bps-hl.art { background: color-mix(in srgb, var(--dept-art) 24%, transparent); }
@media (max-width: 880px) { .bible-grid { grid-template-columns: 1fr; } }

/* ───────────────────────── FEATURES ───────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.pillar { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 2.4vw, 30px); transition: transform var(--dur), box-shadow var(--dur); }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pillar-head { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.pillar-num { font-size: 12px; color: var(--ink-faint); letter-spacing: .1em; }
.pillar-head h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 6px 0 4px; letter-spacing: -0.01em; }
.pillar-head p { font-size: 14px; color: var(--ink-mut); margin: 0; }
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.feat-list li { font-size: 14px; color: var(--ink-dim); line-height: 1.45; padding-left: 18px; position: relative; }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); transform: rotate(45deg); }
.feat-list b { color: var(--ink); font-weight: 600; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

.cross-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); margin-top: clamp(20px, 3vw, 32px); }
.cross-item { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-xl); background: linear-gradient(180deg, #fff, var(--bg-1)); }
.cross-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-m); background: var(--accent); color: #fff; font-size: 16px; margin-bottom: 12px; }
.cross-item h4 { font-size: 16px; margin: 0 0 5px; }
.cross-item p { font-size: 13.5px; color: var(--ink-mut); margin: 0; }
@media (max-width: 880px) { .cross-strip { grid-template-columns: 1fr; } }

/* ───────────────────────── HOW ───────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step-num { position: absolute; top: 0; left: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); box-shadow: var(--shadow); }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0 0 6px; }
.step p { font-size: 14.5px; color: var(--ink-mut); margin: 0; }
.steps .step::after { content: ""; position: absolute; top: 20px; left: 52px; right: -20px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.steps .step:last-child::after { display: none; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps .step::after { display: none; } }

/* ───────────────────────── CTA ───────────────────────── */
.cta { padding-top: clamp(20px, 3vw, 40px); }
.cta-inner { border-radius: 22px; padding: clamp(32px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; border: 1px solid var(--line-2); }
.cta-inner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 50% -20%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%); }
.cta-title { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.05; }
.cta-sub { font-size: 17px; color: var(--ink-dim); margin: 0 auto var(--s-5); max-width: 44ch; }
.cta .waitlist-form { margin-left: auto; margin-right: auto; }
.cta .role-row { justify-content: center; }
.cta .form-note { text-align: center; }

/* ───────────────────────── FOOTER ───────────────────────── */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 60px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand .brand-word { font-size: 13px; }
.foot-tag { font-size: 10px; letter-spacing: .18em; color: var(--ink-faint); margin: 4px 0 0; }
.foot-legal { font-size: 12px; color: var(--ink-mut); margin: 0; }

/* ───────────────────────── REVEAL ───────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal .7s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes reveal { to { opacity: 1; transform: none; } }
.io-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.io-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .io-reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .demo-panel.is-active { animation: none; }
  .chip-live::before { animation: none; }
}

/* ===========================================================================
   WALKTHROUGH MODE  (the page is the demo)
   =========================================================================== */
.nav-cta { margin-left: auto; }
.wt { max-width: 1080px; margin: 0 auto; padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px); }
.wt-mast { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px); }
.wt-mast .eyebrow { margin-bottom: var(--s-3); }
.wt-headline { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
.hl-italic { font-style: italic; }

.wt-caption { text-align: center; max-width: 640px; margin: 0 auto clamp(18px, 3vw, 28px); min-height: 116px; }
.wt-eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--sel); margin: 0 0 8px; }
.wt-title { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 8px; transition: opacity var(--dur); }
.wt-sub { font-size: clamp(14px, 1.5vw, 17px); color: var(--ink-dim); margin: 0 auto; max-width: 52ch; }

.wt-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(16px, 2.5vw, 24px); }
.wt-back { background: transparent; border-color: transparent; color: var(--ink-mut); }
.wt-back:hover:not(:disabled) { background: var(--bg-2); color: var(--ink); }
.wt-back:disabled { opacity: .35; cursor: default; }
.wt-dots { display: flex; gap: 9px; }
.wt-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; padding: 0; transition: transform var(--dur), background var(--dur); }
.wt-dot:hover { background: var(--ink-mut); }
.wt-dot.on { background: var(--accent); transform: scale(1.3); }
.wt-next { min-width: 120px; }

/* the demo frame should breathe a touch larger in walkthrough mode */
.wt .demo-frame { box-shadow: var(--shadow-lg); }
.wt .demo-stage { height: clamp(460px, 58vw, 580px); }

/* —— PNG gear on the plot —— */
.gear-img { pointer-events: auto; }
.sel-ring { fill: none; stroke: var(--sel); stroke-width: 1.6; }
.glyph-light text.label, .glyph-camera text.label { fill: var(--ink-dim); font-weight: 600; }

/* —— gear library popover —— */
.fx-head { font-size: 9px; letter-spacing: .16em; color: var(--ink-faint); padding: 6px 8px 8px; }
.fixture-pop .fx-opt { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: center; }
.fx-ico { width: 32px; height: 32px; object-fit: contain; }
.fx-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fx-txt b { font-size: 12.5px; color: var(--ink); }
.fx-txt span { font-family: var(--mono); font-size: 9.5px; color: var(--ink-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===========================================================================
   EXPORT — in-stage panel + modal preview
   =========================================================================== */
.ex-panel { height: 100%; overflow-y: auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(20px, 4vw, 44px); }
.ex-stack { position: relative; }
.ex-ghost { position: absolute; inset: 0 0 auto 0; height: 94%; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.ex-ghost.g1 { transform: translate(9px, 10px) rotate(1.3deg); opacity: .6; }
.ex-ghost.g2 { transform: translate(18px, 20px) rotate(2.6deg); opacity: .35; }
.ex-stack .bible-spread { position: relative; }
.ex-side .ex-h { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.4vw, 27px); margin: 0 0 8px; letter-spacing: -0.01em; }
.ex-side .ex-sub { font-size: 14px; color: var(--ink-mut); margin: 0 0 18px; }
.ex-side .btn-primary { width: 100%; justify-content: center; }
.ex-note { display: block; margin-top: 10px; font-size: 11px; color: var(--ink-faint); letter-spacing: .04em; text-align: center; }
@media (max-width: 760px) { .ex-panel { grid-template-columns: 1fr; gap: 24px; } }

.modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,18,14,.5); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); animation: fade-in var(--dur) ease both; }
.modal-card { position: relative; width: min(940px, 94vw); max-height: 92vh; margin: 4vh auto; background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop-in var(--dur-slow) var(--ease-out) both; }
.modal-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.modal-bar .eyebrow { margin: 0; }
.modal-x { border: 0; background: var(--bg-2); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: var(--ink-dim); font-size: 12px; }
.modal-x:hover { background: var(--bg-3); color: var(--ink); }
.modal-doc { overflow-y: auto; padding: clamp(18px, 3vw, 32px); background: var(--bg-2); display: flex; flex-direction: column; gap: 22px; align-items: center; }

/* document pages inside the modal */
.doc-cover { width: min(460px, 100%); aspect-ratio: 17/22; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.doc-ap { margin-bottom: 6px; }
.doc-word { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: .18em; }
.doc-kicker { font-size: 10px; letter-spacing: .22em; color: var(--ink-mut); }
.doc-rule { width: 130px; height: 1px; background: var(--line-2); margin: 10px 0; }
.doc-scene { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.doc-slug { font-size: 11px; color: var(--ink-dim); letter-spacing: .04em; }
.doc-spread { width: min(620px, 100%); }
.doc-spread .bible-spread { box-shadow: var(--shadow); }
.doc-plot { width: min(620px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: 16px; }
.doc-h { font-size: 9px; letter-spacing: .14em; color: var(--ink-mut); margin: 0 0 10px; }
.doc-plot-art .mini-ov { width: 100%; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.doc-legend { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.lg-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 9px; align-items: center; font-size: 12px; color: var(--ink-dim); }
.lg-k { width: 18px; height: 18px; border-radius: 4px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 600; }
.lg-spec { font-size: 10px; color: var(--ink-mut); }
@media (prefers-reduced-motion: reduce) { .modal-backdrop, .modal-card { animation: none; } }

/* masthead waitlist form (centered) */
.mast-form { margin: 22px auto 0; max-width: 460px; }
.mast-form .form-note { text-align: center; }

/* full document pages inside the export modal */
.doc-page { width: min(620px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); }
.doc-facehead { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .12em; color: var(--ink-mut); border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 6px; }
.doc-facing .bp-h:first-of-type { margin-top: 14px; }
.doc-facing .bp-ov { border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.doc-script { position: relative; }
.doc-script .doc-pageno { position: absolute; top: clamp(18px, 3vw, 30px); right: clamp(18px, 3vw, 30px); font-size: 9px; color: var(--ink-faint); }
.doc-script .bps-slug { margin-top: 16px; }
.doc-script .bps-slug:first-of-type { margin-top: 4px; }
.bps.center { text-align: center; margin: 2px 0; }
.bps.dia { margin: 0 16% 9px; }

/* lighting-notes line in the plot inspector */
.pd-inspector .ins-note { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--hair); font-size: 11.5px; line-height: 1.45; color: var(--ink-dim); }

/* plot: rotation handle, blocking marks, delete button */
.rot-stem { stroke: var(--sel); stroke-width: 1.2; stroke-dasharray: 2 3; }
.rot-knob { fill: #fff; stroke: var(--sel); stroke-width: 1.6; cursor: grab; }
.rot-knob:active { cursor: grabbing; }
.mark text { font-variant-numeric: tabular-nums; }
.ins-del { margin: 12px 0 0; width: 100%; border: 1px solid var(--line-2); background: var(--bg-2); color: #b4413a; font-size: 12px; font-weight: 500; padding: 7px 10px; border-radius: var(--r-m); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast); }
.ins-del:hover { background: #b4413a; border-color: #b4413a; color: #fff; }

/* real storyboard photos fill the frame */
.thumb .sb-img, .det-frame .sb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── full DP-bible export pages ───────────────────────────────────────────── */
.doc-script .doc-layers { display: flex; gap: 14px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.doc-layers .ly { font-size: 9px; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 5px; color: var(--ink-mut); }
.doc-layers .ly::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.doc-layers .ly.cam::before { background: var(--dept-cam); }
.doc-layers .ly.light::before { background: var(--dept-light); }
.doc-layers .ly.art::before { background: var(--dept-art); }

/* shot-list page: storyboard + specs + linked overhead per row */
.doc-shotlist .sl-row { display: grid; grid-template-columns: 1.5fr 1.2fr 1.3fr; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc-shotlist .sl-row:last-child { border-bottom: 0; }
.sl-thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-s); overflow: hidden; background: linear-gradient(135deg,#1b1b1d,#2c2b2e); }
.sl-thumb .sb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl-top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.sl-num { font-size: 14px; font-weight: 700; color: var(--ink); }
.sl-lens { font-size: 10px; color: var(--ink-mut); letter-spacing: .04em; }
.sl-desc { font-size: 12.5px; color: var(--ink-dim); margin: 0 0 7px; line-height: 1.35; }
.sl-status { font-size: 10px; letter-spacing: .06em; color: var(--ink-mut); display: inline-flex; align-items: center; }
.sl-ov { display: flex; flex-direction: column; gap: 4px; }
.sl-ovlbl { font-size: 8px; letter-spacing: .14em; color: var(--ink-faint); }
.sl-ov .mini-ov { width: 100%; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
@media (max-width: 640px) { .doc-shotlist .sl-row { grid-template-columns: 1fr; } }

/* plot page: real snapshot + rig notes */
.doc-plot-real { border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; margin-bottom: 4px; }
.doc-plot-real svg { width: 100%; height: auto; display: block; }
.doc-gear { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.gear-note { display: grid; grid-template-columns: auto auto; gap: 2px 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--hair); }
.gear-note b { font-size: 12px; color: var(--ink); }
.gn-type { font-size: 9px; letter-spacing: .06em; color: var(--ink-faint); text-align: right; }
.gn-note { grid-column: 1 / -1; font-size: 11px; color: var(--ink-mut); line-height: 1.4; }
@media (max-width: 640px) { .doc-gear { grid-template-columns: 1fr; } }

/* ── export: annotated script + breakdown facing page ─────────────────────── */
.bps .fn { font-family: var(--sans); font-size: 8px; font-weight: 700; color: var(--sel); vertical-align: super; margin-left: 1px; }
.doc-script.annotated .as-body { display: grid; grid-template-columns: 1fr 168px; gap: 18px; }
.as-margin { border-left: 1px solid var(--line); padding-left: 14px; }
.as-mhead { font-size: 8px; letter-spacing: .16em; color: var(--ink-faint); margin-bottom: 10px; }
.as-note { display: grid; grid-template-columns: 16px 1fr; gap: 7px; margin-bottom: 12px; }
.as-note .as-n { font-size: 10px; font-weight: 700; color: var(--sel); }
.as-note .as-t { font-size: 10.5px; line-height: 1.4; color: var(--ink-dim); }
.as-sticky { background: linear-gradient(180deg, var(--sticky), var(--sticky-2)); color: var(--sticky-ink); font-size: 10.5px; line-height: 1.4; padding: 9px 11px; border-radius: 2px; box-shadow: 0 4px 12px -4px rgba(58,51,32,.45); transform: rotate(-1.2deg); }
.as-sticky.two { transform: rotate(1.4deg); }
@media (max-width: 640px) { .doc-script.annotated .as-body { grid-template-columns: 1fr; } .as-margin { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 12px; } }

.doc-breakdown .bd-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 6px; }
.doc-breakdown .bd-cat h6 { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mut); margin: 0 0 8px; }
.doc-breakdown .bd-list { display: flex; flex-direction: column; gap: 6px; }
.bd-cues { list-style: none; padding: 0; margin: 8px 0 16px; display: flex; flex-direction: column; gap: 7px; }
.bd-cues li { font-size: 12px; color: var(--ink-dim); line-height: 1.4; padding-left: 4px; }
.bd-cues b { font-family: var(--mono); color: var(--ink); margin-right: 4px; }
.bd-sticky-row { display: flex; gap: 16px; flex-wrap: wrap; }
.bd-sticky-row .as-sticky { max-width: 230px; }
@media (max-width: 640px) { .doc-breakdown .bd-cats { grid-template-columns: 1fr; } }
