/* Nth Origin Studio — the dark room. Brand: Figtree, pill buttons, 16px cards, ice accent. */
:root {
  --bg: #0E1526; --panel: #141D33; --panel2: #1A2542; --line: #26314D; --line2: #33405F;
  --txt: #F5F3EF; --mute: #98A3BA; --soft: #C9D1E3; --ice: #8FC3F2; --cosmic: #2A4F9E;
  --ok: #7FD1A8; --warn: #F2C57C; --bad: #F08A7E; --champ: #CDB9AA; --pearl: #F5F3EF; --ink: #0B1220;
  --deep: radial-gradient(90% 70% at 100% 100%, rgba(143,195,242,0.45) 0%, rgba(42,79,158,0.35) 35%, rgba(10,26,63,0) 70%), linear-gradient(160deg, #0A1A3F 0%, #12306E 55%, #1E4A9C 100%);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--txt); font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ice); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
input, textarea, select { font: inherit; color: var(--txt); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--mute); }
textarea { min-height: 88px; resize: vertical; }
select { appearance: none; }
.app { min-height: 100vh; display: flex; flex-direction: column; }
.top { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.brand { display: inline-flex; align-items: center; font-weight: 600; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; color: var(--txt); }
.brand svg { display: block; margin: 0 -1px; }
.crumb { color: var(--mute); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 30vw; }
.chips { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--txt); }
.chip.on { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.chip.pick { cursor: pointer; }
.chip.pick:hover { border-color: var(--line2); }
.price { font-weight: 700; color: var(--ice); }
.chip.on .price { color: var(--cosmic); }
.body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; flex: 1; min-height: 0; }
.body.nosidebar { grid-template-columns: 1fr; }
.rail { border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 60px; height: calc(100vh - 60px); }
.rail .lab { color: var(--mute); font-size: 12px; font-weight: 600; padding: 0 14px 8px 14px; }
.stage { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 12px; color: var(--mute); font-size: 15px; font-weight: 500; width: 100%; text-align: left; }
.stage .n { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.stage.now { background: var(--panel2); color: var(--txt); }
.stage.now .n { background: var(--txt); color: var(--bg); border-color: var(--txt); }
.stage.done { color: var(--soft); }
.stage.done .n { background: var(--cosmic); border-color: var(--cosmic); color: #fff; }
.stage.locked { opacity: 0.5; cursor: not-allowed; }
.spent { margin-top: auto; padding: 14px; border-top: 1px solid var(--line); }
.spent .big { font-size: 20px; font-weight: 600; }
.main { padding: 24px 28px 40px 28px; min-width: 0; max-width: 100%; overflow-x: clip; }
.side { border-left: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow: auto; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin: 6px 0 0 0; text-wrap: balance; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--ice); }
.mute { color: var(--mute); }
.soft { color: var(--soft); }
.small { font-size: 13px; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.pad { padding: 16px; }
.grid { display: grid; gap: 12px; align-items: start; }
.grid > * { min-width: 0; }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform 120ms ease, opacity 120ms ease; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--txt); color: var(--bg); }
.btn.primary .p { color: var(--cosmic); font-weight: 700; }
.btn.ghost { border: 1.5px solid var(--line2); color: var(--txt); }
.btn.soft { background: var(--panel2); color: var(--txt); }
.btn.danger { border: 1.5px solid var(--bad); color: var(--bad); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; color: var(--txt); }
.card.sel { border-color: var(--ice); background: var(--panel2); }
.card.dim { opacity: 0.5; }
.card.pick:hover { border-color: var(--line2); }
.card .t { font-weight: 600; font-size: 15px; }
.card .s { color: var(--mute); font-size: 13px; }
.tag { font-size: 12px; font-weight: 600; margin-top: auto; }
.tag.open { color: var(--ice); }
.frame { border-radius: 14px; overflow: hidden; background: #0A1020; position: relative; aspect-ratio: 16 / 9; width: 100%; }
.frame .fill { position: absolute; inset: 0; }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.frame .lbl { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.9); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.frame .st { position: absolute; right: 10px; top: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(10,16,32,0.7); }
.frame.render::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.frame .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.12); }
.frame .prog > div { height: 100%; background: var(--ice); transition: width 400ms ease; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.prod-head { display: flex; align-items: center; gap: 10px; }
.dot { width: 10px; height: 10px; border-radius: 999px; background: var(--ice); box-shadow: 0 0 0 4px rgba(143,195,242,0.18); flex: none; }
.dot.busy { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(143,195,242,0.18); } 50% { box-shadow: 0 0 0 8px rgba(143,195,242,0.08); } }
.msg { font-size: 14px; line-height: 1.55; color: var(--soft); }
.proposal { background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.proposal.gate { border-color: var(--bad); } .proposal.warn { border-color: var(--warn); }
.ask { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 14px; background: var(--panel); }
.ask input { border: 0; background: none; padding: 6px 0; }
.ledger { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }
.ledger .r { display: flex; justify-content: space-between; margin-top: 6px; gap: 10px; }
.num { font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--mute); font-weight: 600; font-size: 12px; }
td.r, th.r { text-align: right; }
td input, td select { padding: 8px 10px; border-radius: 10px; }
.convo { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 80%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.bubble.p { background: var(--panel2); align-self: flex-start; }
.bubble.u { background: var(--cosmic); color: #fff; align-self: flex-end; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--txt); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); z-index: 40; opacity: 0; transition: opacity 200ms ease; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; }
.modal { position: fixed; inset: 0; background: rgba(5,10,20,0.7); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 30; }
.modal.show { display: flex; }
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; width: min(560px, 100%); display: flex; flex-direction: column; gap: 14px; max-height: 90vh; overflow: auto; }
.deep { background: var(--deep); border-radius: 16px; padding: 18px; }
.gate { border: 1px dashed var(--line2); border-radius: 16px; padding: 18px; color: var(--mute); }
.bar { height: 10px; border-radius: 999px; background: var(--panel2); overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--cosmic), var(--ice)); }
.brief { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--soft); }
.brief b { color: var(--txt); }
.mobile-stages { display: none; gap: 6px; overflow-x: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.mobile-stages::-webkit-scrollbar { display: none; }
.side-toggle { display: none; }
.take-list { display: flex; flex-direction: column; gap: 12px; }
.take { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.take.kept { border-color: var(--ok); }
.take.failed { opacity: 0.75; }
.shotlist { display: flex; flex-direction: column; gap: 4px; }
.shotrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; width: 100%; text-align: left; color: var(--soft); }
.shotrow.now { background: var(--panel2); color: var(--txt); }
.shotrow .k { width: 44px; font-weight: 700; font-size: 13px; color: var(--mute); flex: none; }
.shotrow.now .k { color: var(--ice); }
.shotrow .st { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel2); flex: none; }
.shotrow.locked .st { background: rgba(127,209,168,0.15); color: var(--ok); }
.landing { min-height: 100vh; background: radial-gradient(900px 600px at 70% 0%, rgba(42,79,158,0.45), rgba(7,9,15,0) 60%), #07090F; color: #fff; display: flex; flex-direction: column; }
.landing .hero { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding: 40px 6vw 60px 6vw; max-width: 1400px; margin: 0 auto; width: 100%; }
.landing h1 { font-size: clamp(38px, 5.5vw, 68px); letter-spacing: -0.035em; color: #fff; }
.landing .lead { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 520px; margin-top: 18px; }
/* the account card: the same dark glass as the site */
.landing .pearl { background: rgba(255,255,255,0.045); color: #EEF2FA; border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.45); backdrop-filter: blur(14px); }
.landing .pearl input, .landing .pearl select, .landing .pearl textarea { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.14); }
.landing .pearl input:focus, .landing .pearl select:focus { outline: 2px solid rgba(143,164,214,0.6); outline-offset: 1px; }
.landing .pearl select { background-image: linear-gradient(45deg, transparent 50%, #A6B1C7 50%), linear-gradient(135deg, #A6B1C7 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.landing .pearl select option { color: #0B1220; }
.landing .pearl .btn.primary { background: #fff; color: #0B1226; box-shadow: 0 10px 40px rgba(120,160,255,0.22); }
.landing .pearl .btn.ghost { border-color: rgba(255,255,255,0.2); color: #fff; }
.landing .pearl .mute { color: #A6B1C7; }
.landing .pearl h2 { color: #fff; }
.landing .pearl .eyebrow { color: #8FA4D6 !important; }
.landing .pearl .kbd { color: #fff !important; }
.landing .pearl a { color: #fff; text-decoration: underline; }
.landing .pearl .tpl { display: block; cursor: pointer; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #fff; }
.landing .pearl .tpl:has(input:checked) { border-color: rgba(143,164,214,0.9); background: rgba(143,164,214,0.14); }
.landing .pearl .tpl input { width: auto; margin: 0 8px 0 0; }
.landing .pearl .tpl .small { color: #A6B1C7; margin-top: 4px; }
.landing .pearl label.f { display: grid; gap: 6px; font-size: 13px; color: #A6B1C7; }
.landing .pearl .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #D6DEF0; }
.landing .pearl .chk input { width: auto; margin-top: 3px; }
.landing .proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0 6vw 48px 6vw; max-width: 1400px; margin: 0 auto; width: 100%; }
.landing .proof div { border-top: 1px solid rgba(255,255,255,0.25); padding-top: 14px; font-size: 14px; color: rgba(255,255,255,0.8); }
.landing .proof b { display: block; color: #fff; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.origin { width: min(360px, 60vw); aspect-ratio: 1; margin: 0 auto; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4)); }
.skeleton { height: 14px; border-radius: 8px; background: var(--panel2); }
.empty { padding: 40px 20px; text-align: center; color: var(--mute); }
.credits-line { font-size: 13px; color: var(--mute); }
.kbd { font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--panel2); border: 1px solid var(--line); }
.looks .frame { aspect-ratio: 4 / 3; }
.hide { display: none !important; }
@media (max-width: 980px) {
  .body { grid-template-columns: 1fr; }
  .rail { display: none; }
  .mobile-stages { display: flex; }
  .main { padding: 18px 16px 120px 16px; }
  .side { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; max-height: 72vh; border-left: 0; border-top: 1px solid var(--line); background: var(--bg); border-radius: 20px 20px 0 0; transform: translateY(calc(100% - 64px)); transition: transform 240ms ease; z-index: 10; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .side.open { transform: none; }
  .side-toggle { display: flex; }
  .g6, .g5, .g4, .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h1 { font-size: 26px; }
  .crumb { display: none; }
  .bubble { max-width: 92%; }
  .take { grid-template-columns: 1fr; }
  .takes-grid { grid-template-columns: 1fr !important; }
  .takes-grid > .panel { order: 2; }
  .landing .hero { grid-template-columns: 1fr; padding: 24px 16px 40px 16px; gap: 24px; }
  .landing .proof { grid-template-columns: 1fr; padding: 0 16px 32px 16px; }
  .top { padding: 0 16px; }
  .chips .chip.optional { display: none; }
}
@media (prefers-reduced-motion: reduce) { .frame.render::after, .dot.busy { animation: none; } .btn, .side { transition: none; } }

/* the Slate: what you get, before you pay */
.slate{padding:16px 18px;border:1px solid var(--line, #E4E1DA)}
.slate-hd{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:#2A4F9E;margin-bottom:12px}
.slate-dl{display:grid;grid-template-columns:84px minmax(0,1fr);gap:6px 12px;margin:0;font-size:14px}
.slate-dl dt{color:#6B7280}.slate-dl dd{margin:0}
.slate-dl .warn{color:#B45309;font-weight:600}

/* ---------- the soundstage: the Origin lives behind the Studio ---------- */
:root{--room:#8FC3F2}
#stagegl{position:fixed;inset:0;width:100%;height:100%;z-index:0;display:block}
body.flatstage #stagegl{display:none}
.app, .landing-root{position:relative;z-index:1}
.app{background:transparent}
.top{background:rgba(8,12,24,.55);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom-color:rgba(255,255,255,.1)}
.rail,.side{background:rgba(8,12,24,.42);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-color:rgba(255,255,255,.1)}
.rail .stage.now{box-shadow:inset 3px 0 0 var(--room)}
.panel,.card{background:rgba(14,20,38,.62);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-color:rgba(255,255,255,.11)}
.card.sel{border-color:var(--room);box-shadow:0 0 0 1px color-mix(in srgb,var(--room) 60%,transparent),0 0 40px color-mix(in srgb,var(--room) 25%,transparent)}
.btn.primary{box-shadow:0 8px 30px color-mix(in srgb,var(--room) 30%,transparent)}
.eyebrow{color:var(--room)!important}
.prod-head .dot{box-shadow:0 0 12px var(--room);background:var(--room)}
.prod-head .dot.busy{animation:beat 1.1s ease-in-out infinite}
@keyframes beat{0%,100%{transform:scale(1);box-shadow:0 0 12px var(--room)}50%{transform:scale(1.5);box-shadow:0 0 28px var(--room)}}
.frame.render{border-color:color-mix(in srgb,var(--room) 70%,transparent);box-shadow:0 0 60px color-mix(in srgb,var(--room) 35%,transparent)}
.frame.render:before{content:"";position:absolute;inset:-40%;background:conic-gradient(from 0deg,transparent 0 70%,color-mix(in srgb,var(--room) 80%,white) 85%,transparent 100%);animation:ignite 2.2s linear infinite;mix-blend-mode:screen;pointer-events:none;z-index:2}
.frame.render .fill,.frame.render img,.frame.render video{filter:brightness(.7) saturate(1.2)}
@keyframes ignite{to{transform:rotate(360deg)}}
.frame{position:relative;overflow:hidden}
.slate{background:rgba(8,12,24,.62);border-color:color-mix(in srgb,var(--room) 45%,transparent);box-shadow:0 30px 80px rgba(0,0,0,.5),0 0 60px color-mix(in srgb,var(--room) 18%,transparent);backdrop-filter:blur(16px)}
.slate-hd{color:var(--room)}
.landing{background:transparent}
