/* ===== لقطة — design tokens: tungsten 3200K × daylight 5600K on a blacked-out studio floor ===== */
:root {
  --ink: #0d1015;
  --floor: #141820;
  --panel: #1a1f29;
  --panel-2: #212734;
  --line: #2a3140;
  --line-2: #364052;
  --text: #ece7dd;
  --muted: #8d94a0;
  --dim: #5d6573;
  --tungsten: #f2a33a;
  --tungsten-soft: rgba(242, 163, 58, .14);
  --daylight: #7cc4ff;
  --daylight-soft: rgba(124, 196, 255, .14);
  --tally: #e5383b;
  --go: #3ecf8e;
  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 20px;
  --f-display: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif;
  --f-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --nav-h: 64px;
  --tab-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --ink: #e9ecf1;
  --floor: #f4f6f9;
  --panel: #ffffff;
  --panel-2: #eef1f5;
  --line: #d8dde5;
  --line-2: #c3cad5;
  --text: #161a21;
  --muted: #5b6370;
  --dim: #8a929e;
  --tungsten: #c9770f;
  --tungsten-soft: rgba(201, 119, 15, .12);
  --daylight: #1f7fd1;
  --daylight-soft: rgba(31, 127, 209, .1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--floor); color: var(--text);
  font: 400 16px/1.7 var(--f-body);
  min-height: 100dvh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, canvas, video { display: block; max-width: 100%; }
::selection { background: var(--tungsten); color: #000; }
:focus-visible { outline: 2px solid var(--daylight); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--f-mono); font-feature-settings: 'tnum'; direction: ltr; unicode-bidi: isolate; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== intro ===== */
#intro {
  position: fixed; inset: 0; z-index: 1000; background: #000; display: grid; place-items: center; overflow: hidden;
}
#intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#intro .skip {
  position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 20px; z-index: 3;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #ddd;
  padding: 8px 16px; border-radius: 99px; cursor: pointer; font-size: 14px;
}
#intro.out { animation: introOut 1.3s var(--ease) forwards; }
@keyframes introOut { to { clip-path: inset(50% 0 50% 0); } }

/* ===== top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 18px; padding: 0 clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--floor) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: 0; }
.brand .mark { width: 34px; height: 34px; }
.brand small { font: 400 11px/1.2 var(--f-body); color: var(--muted); display: block; }
.topnav { display: flex; gap: 4px; margin-inline-start: 18px; }
.topnav a { padding: 8px 14px; border-radius: 99px; color: var(--muted); font-size: 15px; transition: color .2s, background .2s; }
.topnav a:hover { color: var(--text); }
.topnav a.on { color: var(--text); background: var(--panel-2); }
.topbar .spacer { flex: 1; }
.iconbtn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); cursor: pointer; color: var(--text); transition: background .2s;
}
.iconbtn:hover { background: var(--panel-2); }
.iconbtn svg { width: 20px; height: 20px; }
.userchip { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #000; background: var(--tungsten); flex: none; }
.pts { color: var(--tungsten); font-family: var(--f-mono); font-size: 13px; }

/* ===== bottom tabs (mobile) ===== */
.tabs {
  display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--floor) 90%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; color: var(--muted); }
.tabs a svg { width: 23px; height: 23px; }
.tabs a.on { color: var(--tungsten); }
@media (max-width: 860px) {
  .topnav { display: none; }
  .tabs { display: flex; }
  main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 24px) !important; }
  .brand small { display: none; }
}

/* ===== layout ===== */
main { min-height: calc(100dvh - var(--nav-h)); padding: 0 0 60px; }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.page-in { animation: pageIn .45s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.25; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px); display: flex; flex-wrap: wrap; align-items: end; gap: 16px 32px; }
.page-head .t { flex: 1 1 380px; }
.page-head h1 { margin-bottom: 10px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.crumb:hover { color: var(--text); }
.crumb svg { width: 16px; height: 16px; }

/* ===== buttons & inputs ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer;
  font-weight: 600; font-size: 15px; transition: transform .15s, background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--tungsten); border-color: var(--tungsten); color: #1a1205; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.cool { background: var(--daylight); border-color: var(--daylight); color: #04121f; }
.btn.danger { background: transparent; border-color: var(--tally); color: var(--tally); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: var(--panel); outline: none; transition: border-color .2s; font-size: 16px;
}
textarea.input { min-height: 100px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--daylight); }

/* range */
.ctl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; margin-bottom: 14px; }
.ctl label { font-size: 14px; color: var(--muted); }
.ctl output { font-family: var(--f-mono); font-size: 13px; color: var(--text); direction: ltr; }
.ctl input[type=range] { grid-column: 1 / -1; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; direction: ltr;
}
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--text); border: 4px solid var(--panel); box-shadow: 0 0 0 1px var(--line-2);
}
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--panel); }
input[type=range].warm::-webkit-slider-thumb { background: var(--tungsten); }
input[type=range].cool::-webkit-slider-thumb { background: var(--daylight); }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 14px; border-radius: 99px; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 14px; color: var(--muted); }
.chip.on { border-color: var(--tungsten); color: var(--tungsten); background: var(--tungsten-soft); }
.chip.cool.on { border-color: var(--daylight); color: var(--daylight); background: var(--daylight-soft); }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--muted); }
.toggle input { appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.toggle input::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s var(--ease); }
.toggle input:checked { background: var(--tungsten); }
.toggle input:checked::after { inset-inline-start: 21px; }

/* ===== surfaces ===== */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; }
.panel h3 { margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.badge.warm { color: var(--tungsten); border-color: color-mix(in srgb, var(--tungsten) 40%, transparent); background: var(--tungsten-soft); }
.badge.cool { color: var(--daylight); border-color: color-mix(in srgb, var(--daylight) 40%, transparent); background: var(--daylight-soft); }
.badge.live { color: #fff; background: var(--tally); border-color: var(--tally); }
.badge.go { color: var(--go); border-color: color-mix(in srgb, var(--go) 40%, transparent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.blink { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== sim layout: monitor + controls ===== */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .sim { grid-template-columns: 1fr; } }
.monitor {
  position: relative; background: #000; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}
.monitor canvas, .monitor video { width: 100%; height: auto; }
.monitor .hud {
  position: absolute; inset: 0; pointer-events: none; color: #fff; font-family: var(--f-mono); font-size: 12px;
  text-shadow: 0 1px 2px rgba(0,0,0,.8); direction: ltr;
}
.hud .tl, .hud .tr, .hud .bl, .hud .br { position: absolute; display: flex; gap: 12px; align-items: center; }
.hud .tl { top: 12px; left: 14px; } .hud .tr { top: 12px; right: 14px; }
.hud .bl { bottom: 12px; left: 14px; } .hud .br { bottom: 12px; right: 14px; }
.hud .rec { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.hud .rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); display: inline-block; }
.controls { position: sticky; top: calc(var(--nav-h) + 16px); }
@media (max-width: 980px) { .controls { position: static; } }
.controls .panel + .panel { margin-top: 14px; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 14px; }
.readout div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.readout b { display: block; font: 600 18px/1.2 var(--f-mono); direction: ltr; text-align: right; }
.readout span { font-size: 12px; color: var(--muted); }

.explain { margin-top: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); border-inline-start: 3px solid var(--daylight); font-size: 15px; }
.explain b { color: var(--daylight); font-weight: 600; }
.explain.warm { border-inline-start-color: var(--tungsten); }
.explain.warm b { color: var(--tungsten); }

/* meter bar */
.meter { height: 10px; border-radius: 99px; background: var(--panel-2); position: relative; overflow: hidden; direction: ltr; }
.meter i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--go), var(--tungsten) 75%, var(--tally)); border-radius: inherit; transition: width .1s linear; }

/* ===== toast / modal ===== */
#toasts { position: fixed; top: calc(var(--nav-h) + 12px); inset-inline: 0; display: grid; justify-items: center; gap: 8px; z-index: 900; pointer-events: none; }
.toast {
  pointer-events: auto; background: var(--panel-2); border: 1px solid var(--line-2); padding: 10px 18px; border-radius: 99px;
  font-size: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.4); animation: toastIn .35s var(--ease); display: flex; align-items: center; gap: 10px; max-width: 92vw;
}
.toast.err { border-color: var(--tally); }
.toast.win { border-color: var(--tungsten); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
.modal-bg { position: fixed; inset: 0; z-index: 800; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: 90dvh; overflow: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius-l); padding: 24px; animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal h3 { margin-bottom: 14px; }

/* ===== home ===== */
.hero { position: relative; padding: clamp(18px, 3vw, 30px) 0 0; }
.viewfinder {
  position: relative; aspect-ratio: 2.39 / 1; border-radius: var(--radius-l); overflow: hidden; background: #000; border: 1px solid var(--line);
}
@media (max-width: 700px) { .viewfinder { aspect-ratio: 4 / 5; } }
.viewfinder canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewfinder .title-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 6vw, 80px);
  color: #f5efe3; z-index: 2;
}
.title-card .logo-type {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 14vw, 180px); line-height: .95;
  text-shadow: 0 10px 60px rgba(0,0,0,.6);
}
.title-card p { color: rgba(245,239,227,.78); font-size: clamp(15px, 1.8vw, 20px); max-width: 44ch; margin: 16px 0 24px; }
.vf-corners i { position: absolute; width: 28px; height: 28px; border-color: rgba(255,255,255,.7); border-style: solid; z-index: 3; }
.vf-corners i:nth-child(1) { top: 16px; left: 16px; border-width: 2px 0 0 2px; }
.vf-corners i:nth-child(2) { top: 16px; right: 16px; border-width: 2px 2px 0 0; }
.vf-corners i:nth-child(3) { bottom: 16px; left: 16px; border-width: 0 0 2px 2px; }
.vf-corners i:nth-child(4) { bottom: 16px; right: 16px; border-width: 0 2px 2px 0; }
.viewfinder .hud { position: absolute; inset: 0; z-index: 3; pointer-events: none; color: #fff; font: 12px var(--f-mono); direction: ltr; }
.viewfinder .hud .tl { top: 24px; left: 56px; } .viewfinder .hud .tr { top: 24px; right: 56px; }
.viewfinder .hud .bl { bottom: 24px; left: 56px; } .viewfinder .hud .br { bottom: 24px; right: 56px; }
@media (max-width: 700px) { .viewfinder .hud .bl, .viewfinder .hud .tr { display: none; } }

.depts { margin-top: clamp(40px, 6vw, 72px); }
.dept { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .dept { grid-template-columns: 1fr; gap: 14px; } }
.dept-name h2 { font-size: 26px; }
.dept-name p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.dept-name .k { display: inline-block; width: 26px; height: 4px; border-radius: 4px; margin-bottom: 12px; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.mod {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, transform .2s var(--ease);
}
.mod:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mod .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--panel-2); color: var(--text); }
.mod .ic svg { width: 24px; height: 24px; }
.mod b { display: block; font-size: 16px; margin-bottom: 2px; }
.mod span { font-size: 13px; color: var(--muted); line-height: 1.5; display: block; }
.mod.star { border-color: color-mix(in srgb, var(--tungsten) 45%, var(--line)); }
.mod.star .ic { background: var(--tungsten-soft); color: var(--tungsten); }
.mod .done { position: absolute; top: 10px; left: 10px; color: var(--go); }
.mod .done svg { width: 16px; height: 16px; }

.notice-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 860px) { .notice-strip { grid-template-columns: 1fr; } }
.slate-card { position: relative; padding: 22px; border-radius: var(--radius-l); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.slate-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 10px; background: repeating-linear-gradient(-55deg, var(--text) 0 14px, transparent 14px 28px); opacity: .9; }
.slate-card h3 { margin-top: 10px; }

footer.site { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0; color: var(--muted); font-size: 14px; }
footer.site b { color: var(--text); font-weight: 600; }

/* ===== list items ===== */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.item .grow { flex: 1; min-width: 0; }
.item .grow b { display: block; }
.item .grow span { font-size: 13px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 500; font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* ===== gallery ===== */
.works { columns: 3 280px; column-gap: 16px; }
.work { break-inside: avoid; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.work img { width: 100%; }
.work .meta { padding: 14px 16px; }
.work .meta h4 { font-size: 17px; margin-bottom: 4px; }
.vote { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 12px; background: transparent; cursor: pointer; font-size: 14px; }
.vote.on { color: var(--tally); border-color: var(--tally); }
.vote svg { width: 16px; height: 16px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius-l); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 12px; opacity: .6; }

/* ===== chat ===== */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--nav-h) - 40px); max-width: 860px; margin: 0 auto; }
@media (max-width: 860px) { .chat { height: calc(100dvh - var(--nav-h) - var(--tab-h) - env(safe-area-inset-bottom) - 10px); } }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 4px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; line-height: 1.75; font-size: 15.5px; word-wrap: break-word; }
.msg.me { align-self: flex-start; background: var(--tungsten); color: #1a1205; border-end-start-radius: 4px; }
.msg.ai { align-self: flex-end; background: var(--panel); border: 1px solid var(--line); border-end-end-radius: 4px; }
.msg.ai ul, .msg.ai ol { padding-inline-start: 20px; margin: 6px 0; }
.msg.ai p { margin: 0 0 .6em; }
.msg.ai p:last-child { margin: 0; }
.msg.ai code { font-family: var(--f-mono); background: var(--panel-2); padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.chat-input { display: flex; gap: 8px; padding: 10px 0; }
.chat-input textarea { min-height: 50px; max-height: 160px; border-radius: 26px; padding: 13px 18px; }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: typ 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 50% { transform: translateY(-5px); opacity: .5; } }

/* ===== lessons ===== */
.lesson { max-width: 760px; }
.lesson h2 { margin: 36px 0 12px; font-size: 26px; }
.lesson h3 { margin: 22px 0 8px; }
.lesson p, .lesson li { font-size: 17px; line-height: 1.95; }
.lesson ul { padding-inline-start: 22px; }
.lesson .term { color: var(--daylight); font-family: var(--f-mono); font-size: 14px; direction: ltr; unicode-bidi: isolate; }
.lesson .tip { padding: 14px 18px; border-radius: var(--radius); background: var(--tungsten-soft); border-inline-start: 3px solid var(--tungsten); margin: 18px 0; }
.lesson figure { margin: 22px 0; }
.lesson figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* glossary */
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.gterm { padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.gterm h4 { font-size: 18px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.gterm h4 .mono { font-size: 13px; color: var(--daylight); font-weight: 500; }
.gterm p { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* quiz */
.quiz-card { max-width: 720px; margin: 0 auto; }
.qopt { display: block; width: 100%; text-align: start; padding: 14px 18px; margin-bottom: 10px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 16px; transition: border-color .2s, background .2s; }
.qopt:hover { border-color: var(--muted); }
.qopt.right { border-color: var(--go); background: color-mix(in srgb, var(--go) 14%, var(--panel)); }
.qopt.wrong { border-color: var(--tally); background: color-mix(in srgb, var(--tally) 12%, var(--panel)); }
.progress { height: 4px; background: var(--panel-2); border-radius: 4px; overflow: hidden; direction: ltr; }
.progress i { display: block; height: 100%; background: var(--tungsten); transition: width .4s var(--ease); }

/* screenplay */
.script-page { background: #fbfaf7; color: #111; border-radius: 6px; padding: 48px clamp(18px, 6vw, 72px); min-height: 70vh; font-family: 'Courier Prime', 'IBM Plex Mono', monospace; font-size: 15px; line-height: 1.6; box-shadow: 0 20px 60px -30px rgba(0,0,0,.6); }
.script-page[dir=rtl] { font-family: 'IBM Plex Sans Arabic', sans-serif; }
.sl { outline: none; padding: 2px 4px; margin: 0; border-radius: 3px; min-height: 1.6em; white-space: pre-wrap; }
.sl:focus { background: rgba(31,127,209,.07); }
.sl.scene { font-weight: 700; margin-top: 22px; text-transform: uppercase; }
.sl.action { margin-top: 10px; }
.sl.character { margin-top: 16px; margin-inline-start: 38%; font-weight: 700; text-transform: uppercase; }
.sl.paren { margin-inline-start: 31%; margin-inline-end: 28%; }
.sl.dialogue { margin-inline-start: 22%; margin-inline-end: 20%; }
.sl.transition { margin-top: 14px; text-align: end; font-weight: 700; text-transform: uppercase; }
.sl:empty::before { content: attr(data-ph); color: #aaa; }
@media print {
  .topbar, .tabs, .no-print, footer.site, #toasts { display: none !important; }
  body { background: #fff; }
  .script-page { box-shadow: none; padding: 0; }
  main { padding: 0 !important; }
}

/* storyboard */
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.sb-frame { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sb-frame .pad { aspect-ratio: 16 / 9; background: #fff; position: relative; cursor: crosshair; touch-action: none; }
.sb-frame .pad canvas { width: 100%; height: 100%; }
.sb-frame .pad .num { position: absolute; top: 6px; right: 8px; font: 700 13px var(--f-mono); color: #333; background: rgba(255,255,255,.8); padding: 0 6px; border-radius: 4px; }
.sb-frame .body { padding: 12px; }
.sb-frame textarea { min-height: 60px; font-size: 14px; }

/* teleprompter */
.prompter { position: fixed; inset: 0; z-index: 700; background: #000; color: #fff; overflow: hidden; }
.prompter .scroll { position: absolute; inset-inline: 0; top: 0; padding: 50vh 8vw; font-family: var(--f-body); font-weight: 600; line-height: 1.6; will-change: transform; }
.prompter .guide { position: absolute; top: 42%; inset-inline: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tungsten), transparent); opacity: .7; }
.prompter .guide::before { content: '◀'; position: absolute; right: 8px; top: -14px; color: var(--tungsten); font-size: 20px; }
.prompter .bar { position: absolute; bottom: 0; inset-inline: 0; display: flex; gap: 10px; justify-content: center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.9)); flex-wrap: wrap; }
.prompter.mirror .scroll { transform-origin: center; }
.prompter .hl { color: var(--tungsten); }

/* switcher */
.sw-wrap, .multiview, .bus { direction: ltr; }
.sw-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .sw-wrap { grid-template-columns: 1fr; } }
.sw-mon { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--line); }
.sw-mon.pgm { border-color: var(--tally); }
.sw-mon.pvw { border-color: var(--go); }
.sw-mon .lbl { position: absolute; top: 8px; right: 8px; font: 700 11px var(--f-mono); padding: 2px 8px; border-radius: 4px; color: #fff; background: rgba(0,0,0,.6); }
.sw-mon.pgm .lbl { background: var(--tally); }
.sw-mon.pvw .lbl { background: var(--go); color: #000; }
.multiview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
@media (max-width: 600px) { .multiview { grid-template-columns: repeat(2, 1fr); } }
.mv { position: relative; border-radius: 8px; overflow: hidden; border: 2px solid var(--line); background: #000; cursor: pointer; }
.mv.onpgm { border-color: var(--tally); }
.mv.onpvw { border-color: var(--go); }
.mv span { position: absolute; bottom: 4px; left: 6px; font: 600 11px var(--f-mono); color: #fff; text-shadow: 0 1px 2px #000; }
.bus { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.bus > span { width: 64px; font-size: 12px; color: var(--muted); font-family: var(--f-mono); }
.bus button { flex: 1; height: 46px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); font: 700 15px var(--f-mono); cursor: pointer; transition: all .15s; }
.bus.pgm button.on { background: var(--tally); border-color: var(--tally); color: #fff; box-shadow: 0 0 18px rgba(229,56,59,.5); }
.bus.pvw button.on { background: var(--go); border-color: var(--go); color: #002; box-shadow: 0 0 18px rgba(62,207,142,.4); }
.tbar { writing-mode: vertical-lr; direction: rtl; width: 40px; height: 160px; }

/* mixer */
.mixer { direction: ltr; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.strip { flex: 0 0 96px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.strip.master { border-color: var(--tungsten); flex-basis: 110px; }
.strip .name { font-size: 13px; font-weight: 600; text-align: center; }
.strip .fader-box { display: flex; gap: 6px; height: 200px; align-items: stretch; }
.strip input.fader { writing-mode: vertical-lr; direction: rtl; width: 28px; height: 200px; }
.vu { width: 10px; background: var(--panel-2); border-radius: 3px; position: relative; overflow: hidden; }
.vu i { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, var(--go) 0 65%, var(--tungsten) 65% 85%, var(--tally) 85%); clip-path: inset(var(--clip, 100%) 0 0 0); height: 100%; }
.knob { width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; cursor: ns-resize; touch-action: none; }
.knob::after { content: ''; position: absolute; top: 4px; left: 50%; width: 3px; height: 14px; margin-left: -1.5px; background: var(--tungsten); border-radius: 2px; transform-origin: 50% 18px; transform: rotate(var(--rot, 0deg)); }
.strip .ms { display: flex; gap: 4px; }
.strip .ms button { width: 34px; height: 28px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel-2); font: 700 12px var(--f-mono); cursor: pointer; }
.strip .ms button.m.on { background: var(--tally); color: #fff; border-color: var(--tally); }
.strip .ms button.s.on { background: var(--tungsten); color: #000; border-color: var(--tungsten); }

/* editor */
.nle { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 12px; margin-top: 14px; user-select: none; -webkit-user-select: none; }
.nle .ruler { height: 22px; position: relative; direction: ltr; border-bottom: 1px solid var(--line); font: 10px var(--f-mono); color: var(--dim); }
.nle .tracks { position: relative; direction: ltr; overflow-x: auto; }
.nle .track { height: 62px; position: relative; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(90deg, transparent 0 59px, var(--line) 59px 60px); }
.nle .track.a { height: 40px; }
.clip { position: absolute; top: 6px; bottom: 6px; border-radius: 6px; overflow: hidden; cursor: grab; border: 2px solid transparent; touch-action: none; display: flex; align-items: flex-end; }
.clip.sel { border-color: #fff; }
.clip span { font: 600 11px var(--f-body); color: #fff; padding: 3px 6px; text-shadow: 0 1px 2px #000; white-space: nowrap; overflow: hidden; }
.clip .h { position: absolute; top: 0; bottom: 0; width: 12px; cursor: ew-resize; background: rgba(255,255,255,.25); }
.clip .h.l { left: 0; } .clip .h.r { right: 0; }
.clip .tr { position: absolute; left: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--tungsten); border-radius: 4px; transform: rotate(45deg); z-index: 3; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--tally); z-index: 5; pointer-events: none; }
.playhead::before { content: ''; position: absolute; top: -2px; left: -6px; border: 7px solid transparent; border-top-color: var(--tally); }
.bin { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.bin button { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; padding: 0; cursor: pointer; position: relative; }
.bin button span { position: absolute; bottom: 0; inset-inline: 0; font-size: 11px; background: rgba(0,0,0,.65); color: #fff; padding: 2px 4px; }

/* leaderboard */
.lb-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-row .rk { font: 700 18px var(--f-mono); color: var(--muted); text-align: center; }
.lb-row.top1 .rk { color: #ffcf5a; } .lb-row.top2 .rk { color: #c9d3df; } .lb-row.top3 .rk { color: #d99a5b; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: 20px; }
.podium > div { text-align: center; padding: 16px 8px; border-radius: var(--radius-l) var(--radius-l) 6px 6px; background: var(--panel); border: 1px solid var(--line); }
.podium .avatar { width: 52px; height: 52px; font-size: 20px; margin: 0 auto 8px; }
.podium .p1 { padding-bottom: 36px; border-color: #ffcf5a66; }
.podium .p1 .avatar { background: #ffcf5a; }
.podium .p2 .avatar { background: #c9d3df; }
.podium .p3 .avatar { background: #d99a5b; }

/* badges */
.medals { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.medal { text-align: center; padding: 14px 8px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.medal .m { width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--dim); }
.medal .m svg { width: 24px; height: 24px; }
.medal.got .m { background: var(--tungsten-soft); color: var(--tungsten); box-shadow: 0 0 0 2px var(--tungsten); }
.medal:not(.got) { opacity: .55; }

/* admin */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-tiles div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat-tiles b { display: block; font: 700 28px var(--f-mono); direction: ltr; text-align: right; }
.stat-tiles span { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; direction: ltr; }
.bars div { flex: 1; background: var(--daylight); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.bars div span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font: 10px var(--f-mono); color: var(--dim); white-space: nowrap; }

/* polar */
.polar-stage { position: relative; aspect-ratio: 1; background: radial-gradient(circle, var(--panel) 0 60%, var(--floor)); border-radius: var(--radius-l); border: 1px solid var(--line); touch-action: none; overflow: hidden; }
.polar-stage canvas { width: 100%; height: 100%; }

/* scenes */
.scene-card { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); }
.scene-card .film { color: var(--muted); font-size: 13px; }
.scene-card h3 { margin: 6px 0 10px; }
.scene-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 14.5px; }
.scene-card dt { color: var(--daylight); font-weight: 600; }
.scene-card dd { margin: 0; color: var(--muted); }

/* misc */
.kbd { font: 12px var(--f-mono); padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel-2); }
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.spin { width: 28px; height: 28px; border: 3px solid var(--line-2); border-top-color: var(--tungsten); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.swatch { width: 100%; height: 14px; border-radius: 99px; direction: ltr; }
.drop { border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 18px; text-align: center; cursor: pointer; color: var(--muted); }
.drop img { max-height: 200px; margin: 0 auto; border-radius: 8px; }

/* ===== small-screen fixes ===== */
@media (max-width: 980px) { .sim { grid-template-columns: 1fr !important; } }
@media (max-width: 600px) {
  .monitor .hud { font-size: 10px; }
  .monitor .hud .bl { gap: 7px !important; font-size: 10.5px !important; }
  .monitor .hud .tl, .monitor .hud .tr { top: 8px; } .monitor .hud .bl, .monitor .hud .br { bottom: 8px; }
  .monitor .hud .tl, .monitor .hud .bl { left: 9px; } .monitor .hud .tr, .monitor .hud .br { right: 9px; }
  #hMeter { display: none; }
  .page-head { padding-top: 22px; }
  .panel { padding: 16px; }
}

/* ===== AI orb + floating assistant ===== */
.ai-orb { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-block; position: relative;
  background: conic-gradient(from 0deg, var(--tungsten), #ff7a59, var(--daylight), #b98cff, var(--tungsten));
  animation: orb 6s linear infinite; box-shadow: 0 0 18px -2px rgba(242,163,58,.55); }
.ai-orb::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 8%, rgba(255,255,255,.15) 30%, var(--ink) 75%); }
.ai-orb.big { width: 64px; height: 64px; margin: 0 auto 12px; }
@keyframes orb { to { transform: rotate(1turn); } }
.fab { position: fixed; z-index: 650; inset-inline-start: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-2); cursor: pointer; color: var(--text);
  box-shadow: 0 14px 40px -12px rgba(0,0,0,.6); transition: transform .3s var(--ease), opacity .3s; font-weight: 600; font-size: 14px; }
.fab:hover { transform: translateY(-2px); }
.fab.hide { opacity: 0; transform: scale(.8); pointer-events: none; }
@media (max-width: 860px) { .fab { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); padding: 7px; } .fab-label { display: none; } }
.fab-panel { position: fixed; z-index: 660; inset-inline-start: 18px; bottom: 18px; width: min(400px, calc(100vw - 24px)); height: min(560px, 72dvh); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom left; transition: opacity .25s, transform .3s var(--ease); }
.fab-panel.on { opacity: 1; transform: none; }
@media (max-width: 860px) { .fab-panel { inset-inline: 12px; width: auto; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 10px); } }
.fab-head { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fab-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fab-log .msg { font-size: 14.5px; max-width: 94%; }
.fab-form { padding: 10px; border-top: 1px solid var(--line); flex-wrap: nowrap; }
.fab-form .input { min-height: 46px; border-radius: 99px; }
.md-h { display: block; margin-top: 10px; color: var(--tungsten); }
.md-link { color: var(--daylight); border-bottom: 1px dashed currentColor; font-family: var(--f-mono); font-size: 13px; }
.msg.ai .table { font-size: 13px; }

/* ===== motion: hero rack-focus title, letterbox, wipes ===== */
.viewfinder::before, .viewfinder::after { content: ''; position: absolute; inset-inline: 0; height: 13%; background: #000; z-index: 4; transition: transform 1.4s var(--ease) .2s; pointer-events: none; }
.viewfinder::before { top: 0; } .viewfinder::after { bottom: 0; }
.viewfinder.open::before { transform: translateY(-100%); } .viewfinder.open::after { transform: translateY(100%); }
.title-card .logo-type { animation: rackFocus 1.8s var(--ease) both .35s; }
.title-card p { animation: riseIn .9s var(--ease) both 1.1s; }
.title-card .row { animation: riseIn .9s var(--ease) both 1.35s; }
@keyframes rackFocus { 0% { filter: blur(22px); opacity: 0; transform: scale(1.08); letter-spacing: .02em; } 60% { filter: blur(2px); opacity: 1; } 100% { filter: blur(0); transform: none; letter-spacing: 0; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } }
.lightsweep { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,214,150,.13) 47%, rgba(255,255,255,.05) 50%, transparent 62%); transform: translateX(-120%); animation: sweep 7s ease-in-out 2.2s infinite; }
@keyframes sweep { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
.reveal { clip-path: inset(0 0 0 100%); transition: clip-path 1s var(--ease); }
.reveal.in { clip-path: inset(0 0 0 0); }
.reveal .mod { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease); }
.reveal.in .mod { opacity: 1; transform: none; }
.reveal.in .mod:nth-child(2) { transition-delay: .06s; } .reveal.in .mod:nth-child(3) { transition-delay: .12s; } .reveal.in .mod:nth-child(4) { transition-delay: .18s; } .reveal.in .mod:nth-child(5) { transition-delay: .24s; }
.mod .ic svg { transition: transform .5s var(--ease); }
.mod:hover .ic svg { transform: rotate(-12deg) scale(1.12); }
.mod.star .ic { position: relative; overflow: hidden; }
.mod.star .ic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); animation: shine 4s ease-in-out infinite; }
@keyframes shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.page-in { animation: pageIn .5s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } }
@media (prefers-reduced-motion: reduce) { .reveal { clip-path: none; } .reveal .mod { opacity: 1; transform: none; } .viewfinder::before, .viewfinder::after { display: none; } }

/* ===== supervisor ===== */
.director { display: grid; grid-template-columns: 300px 1fr; gap: 0; margin-top: clamp(40px, 6vw, 72px); border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background: var(--panel); position: relative; }
@media (max-width: 760px) { .director { grid-template-columns: 1fr; } }
.director .ph { position: relative; min-height: 320px; background: #08142b; }
.director .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.director .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,43,.55), transparent 45%); }
.director .tx { padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.director .q { font-size: clamp(17px, 1.6vw, 19px); line-height: 2; color: var(--text); white-space: pre-line; position: relative; }
.director .q::before { content: '“'; position: absolute; top: -40px; inset-inline-start: -8px; font: 700 90px/1 var(--f-display); color: var(--tungsten); opacity: .35; }
.director .sig { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.director .sig i { width: 36px; height: 3px; background: var(--tungsten); border-radius: 3px; }
.director .sig b { font-family: var(--f-display); font-size: 18px; }
.director .sig span { display: block; color: var(--muted); font-size: 13px; }
.fab-panel[hidden] { display: none; }
.fab-panel:not(.on) { pointer-events: none; }
[hidden] { display: none !important; }

/* hold the hero entrance until the intro finishes */
body.intro-on .title-card .logo-type, body.intro-on .title-card p, body.intro-on .title-card .row { animation-play-state: paused; }
body.intro-on .viewfinder.open::before, body.intro-on .viewfinder.open::after { transform: none; }

.reset-btn { align-self: flex-end; }
.reset-btn svg { transition: transform .6s var(--ease); }
.reset-btn:hover svg { transform: rotate(-200deg); }
.reset-btn.spinning svg { transform: rotate(-360deg); }
