:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-soft: #090d14;
  --panel: rgba(11, 17, 26, 0.82);
  --panel-solid: #0b111a;
  --line: rgba(144, 180, 199, 0.17);
  --line-strong: rgba(119, 222, 223, 0.38);
  --text: #f4f1e9;
  --muted: #9ca9b4;
  --muted-2: #647480;
  --cyan: #8ce7e5;
  --cyan-strong: #54cfcd;
  --amber: #efb15f;
  --rose: #c4768e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.56);
}

.seed-connection { display: block; margin-top: .5rem; color: #b8dce3; line-height: 1.4; }
.seed-connection b { color: #5ce1df; text-transform: uppercase; letter-spacing: .08em; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 11% 18%, rgba(64, 145, 151, 0.08), transparent 27rem),
    radial-gradient(circle at 84% 30%, rgba(120, 70, 130, 0.07), transparent 35rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    radial-gradient(circle at 8% 15%, rgba(166, 248, 246, 0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 9%, rgba(166, 248, 246, 0.65) 0 1px, transparent 1.3px),
    radial-gradient(circle at 92% 64%, rgba(241, 177, 95, 0.62) 0 1px, transparent 1.3px),
    radial-gradient(circle at 21% 73%, rgba(166, 248, 246, 0.45) 0 1px, transparent 1.3px);
  background-size: 337px 283px, 421px 359px, 381px 413px, 503px 461px;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  background: var(--cyan);
  color: #061012;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }
.ambient { position: fixed; z-index: -2; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.ambient-one { width: 18rem; height: 18rem; top: 20rem; left: -12rem; background: rgba(84, 207, 205, 0.08); }
.ambient-two { width: 24rem; height: 24rem; right: -14rem; top: 8rem; background: rgba(196, 118, 142, 0.08); }

.site-header {
  position: relative;
  z-index: 30;
  width: min(1420px, calc(100% - 64px));
  height: 96px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; text-decoration: none; }
.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(140, 231, 229, 0.42);
  box-shadow: 0 0 30px rgba(84, 207, 205, 0.14);
}
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 13px; letter-spacing: 0.16em; font-weight: 760; }
.brand small { color: var(--cyan); font-size: 9px; letter-spacing: 0.22em; }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  color: #aeb7c0;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--text); }
.mobile-nav-action { display: none; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.mobile-menu { display: none; }

.button {
  min-height: 43px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.button-primary {
  background: linear-gradient(135deg, #f4bd77, #eaa85a);
  color: #160f08;
  box-shadow: 0 12px 36px rgba(239, 177, 95, 0.16);
}
.button-primary:hover { box-shadow: 0 16px 44px rgba(239, 177, 95, 0.24); }
.button-outline { border-color: var(--line-strong); background: rgba(8, 15, 22, 0.72); color: var(--text); }
.button-outline:hover { border-color: var(--cyan); background: rgba(84, 207, 205, 0.06); }
.button-quiet { background: transparent; color: #c2c9cf; }
.button-quiet:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.button-large { min-height: 52px; padding: 0 24px; border-radius: 12px; }
.button-wide { width: 100%; min-height: 50px; }

.section-shell { width: min(1420px, calc(100% - 64px)); margin-inline: auto; }
.hero {
  min-height: 790px;
  padding: 88px 0 74px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(56px, 7vw, 120px);
  align-items: center;
}
.eyebrow {
  margin: 0;
  color: #a3b4c1;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--cyan-strong);
  box-shadow: 0 0 13px rgba(84, 207, 205, 0.9);
  vertical-align: 1px;
}
.hero h1 {
  max-width: 670px;
  margin: 26px 0 24px;
  font-family: var(--serif);
  font-size: clamp(70px, 7vw, 116px);
  font-weight: 400;
  line-height: 0.87;
  letter-spacing: -0.055em;
}
.hero h1 em, .manifesto h2 em { color: #858e98; font-style: normal; }
.hero-lede {
  max-width: 650px;
  margin: 0;
  color: #a7b1ba;
  font-size: 18px;
  line-height: 1.72;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.fine-print { margin: 16px 0 0; color: #5f6a74; font-size: 11px; }

.feature-film {
  position: relative;
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(124, 157, 176, 0.24);
  border-radius: 34px;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(13, 20, 31, 0.98), rgba(2, 4, 8, 0.98));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.03);
}
.feature-film::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(140, 231, 229, 0.035), transparent 40%, rgba(196, 118, 142, 0.025));
}
.film-topline, .film-caption { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.film-topline { padding: 0 3px 17px; color: #667580; font-size: 9px; letter-spacing: 0.15em; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; color: #b9c7ce; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.feature-stage {
  position: relative;
  height: 565px;
  border: 1px solid rgba(126, 166, 184, 0.13);
  border-radius: 24px;
  overflow: hidden;
  background: #010204;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.feature-stage::before {
  content: "";
  position: absolute;
  inset: -55px;
  z-index: -1;
  background: linear-gradient(rgba(2, 5, 8, 0.5), rgba(2, 5, 8, 0.72)), url("/assets/vision-016-poster.jpg") center 54% / cover;
  filter: blur(28px) saturate(0.6);
  opacity: 0.62;
  transform: scale(1.1);
}
.feature-stage video { width: 318px; height: 565px; object-fit: cover; display: block; box-shadow: 0 0 70px rgba(0, 0, 0, 0.7); }
.film-vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 95px rgba(0, 0, 0, 0.64); }
.sound-control {
  position: absolute;
  z-index: 5;
  bottom: 20px;
  left: 20px;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 6, 9, 0.7);
  backdrop-filter: blur(15px);
  color: white;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.play-glyph { color: var(--amber); font-size: 10px; }
.film-caption { padding: 18px 4px 0; }
.film-caption span, .vision-card span { color: var(--cyan); font-size: 9px; letter-spacing: 0.17em; }
.film-caption h2 { margin: 5px 0 0; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.film-caption p { margin: 0; color: #5f6c76; font-size: 9px; letter-spacing: 0.14em; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.proof-strip article { min-height: 100px; padding: 24px 26px; border-right: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-content: center; }
.proof-strip article:last-child { border-right: 0; }
.proof-strip article > span { grid-row: span 2; color: #4f6672; font-family: var(--serif); font-size: 24px; }
.proof-strip strong { font-size: 10px; letter-spacing: 0.16em; }
.proof-strip small { color: #65727c; font-size: 11px; }

.manifesto { padding: 150px 0 80px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 100px; align-items: end; }
.manifesto h2, .section-heading h2, .pricing-section h2, .closing-cta h2 {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 400;
}
.manifesto > p { margin: 0 0 5px; color: #9aa5ae; font-size: 18px; line-height: 1.75; }
.process { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(7, 12, 18, 0.58); }
.process article { position: relative; min-height: 320px; padding: 34px; border-right: 1px solid var(--line); }
.process article:last-child { border-right: 0; }
.process article > span { position: absolute; top: 28px; right: 28px; color: #45535e; font-family: var(--serif); font-size: 18px; }
.process-icon { width: 50px; height: 50px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--cyan); background: rgba(84, 207, 205, 0.04); }
.process h3 { margin: 74px 0 13px; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.process p { margin: 0; max-width: 350px; color: #85919b; line-height: 1.7; font-size: 14px; }

.watch-section { padding: 150px 0 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(52px, 5vw, 78px); }
.section-heading > p { max-width: 460px; margin: 0 0 8px; color: #89949e; line-height: 1.65; }
.vision-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.vision-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: rgba(8, 12, 18, 0.82); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24); }
.vision-card video { width: 100%; height: 480px; display: block; object-fit: contain; background: #020305; }
.vision-card > div { padding: 24px 26px 27px; }
.vision-card h3 { margin: 8px 0 7px; font-family: var(--serif); font-size: 31px; font-weight: 400; }
.vision-card p { margin: 0; color: #64717c; font-size: 12px; }

.pricing-section { padding: 150px 0; display: grid; grid-template-columns: 1fr 520px; gap: 120px; align-items: center; }
.pricing-section h2 { max-width: 720px; }
.pricing-copy > p:last-child { max-width: 670px; margin: 28px 0 0; color: #8f9aa3; font-size: 17px; line-height: 1.75; }
.price-card { border: 1px solid rgba(239, 177, 95, 0.32); border-radius: 26px; padding: 32px; background: linear-gradient(145deg, rgba(24, 19, 17, 0.92), rgba(9, 12, 17, 0.95)); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35); }
.price-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 25px; border-bottom: 1px solid rgba(239, 177, 95, 0.16); }
.price-topline span { color: #ad8f69; font-size: 10px; letter-spacing: 0.18em; }
.price-topline strong { font-family: var(--serif); font-size: 45px; font-weight: 400; color: #f5d4a8; }
.price-card ul { list-style: none; padding: 18px 0; margin: 0; display: grid; gap: 15px; }
.price-card li { color: #afb6bb; font-size: 14px; }
.price-card li i { color: var(--cyan); font-style: normal; margin-right: 10px; }
.price-card > small { display: block; margin-top: 13px; color: #655e56; text-align: center; font-size: 10px; }

.closing-cta { min-height: 510px; padding: 80px 30px; border: 1px solid var(--line); border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(54, 142, 148, 0.12), transparent 45%), rgba(7, 11, 16, 0.56); }
.closing-cta img { width: 86px; height: 86px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line-strong); margin-bottom: 25px; }
.closing-cta h2 { margin: 20px 0 33px; font-size: clamp(48px, 5vw, 76px); }

.site-footer { width: min(1420px, calc(100% - 64px)); min-height: 150px; margin: 100px auto 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-small img { width: 36px; height: 36px; }
.brand-small strong { font-size: 11px; }
.brand-small small { font-size: 8px; }
.site-footer p { color: #7e8992; font-family: var(--serif); font-style: italic; }
.site-footer > span { color: #48545e; font-size: 10px; }

/* Private draft room */
.studio-view { min-height: calc(100vh - 96px); }
.studio-header { width: min(1540px, calc(100% - 48px)); min-height: 84px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.studio-header > div { display: grid; text-align: center; gap: 4px; }
.studio-header > div span { color: var(--cyan); font-size: 9px; letter-spacing: 0.18em; }
.studio-header > div strong { color: #788690; font-size: 11px; font-weight: 520; }
.studio-header .button { justify-self: end; }
.back-button { justify-self: start; border: 0; background: transparent; color: #9ba6ae; cursor: pointer; font-size: 12px; font-weight: 700; }
.back-button:hover { color: var(--text); }
.studio-shell { width: min(1540px, calc(100% - 48px)); margin: 34px auto 70px; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.direction-panel, .poem-room { border: 1px solid var(--line); border-radius: 24px; background: rgba(10, 15, 23, 0.88); box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2); }
.direction-panel { position: sticky; top: 20px; padding: 28px; }
.direction-panel h1 { margin: 17px 0 28px; font-family: var(--serif); font-size: 38px; line-height: 1.02; font-weight: 400; letter-spacing: -0.03em; }
.direction-panel label { display: block; margin: 19px 0 8px; color: #8998a3; font-size: 11px; font-weight: 720; }
input, textarea {
  width: 100%;
  border: 1px solid rgba(125, 159, 176, 0.22);
  border-radius: 11px;
  background: #070b11;
  color: var(--text);
  padding: 12px 13px;
  resize: vertical;
}
input::placeholder, textarea::placeholder { color: #4c5a65; }
.feeling-picker { margin: 20px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.feeling-picker legend { margin-bottom: 10px; color: #8998a3; font-size: 11px; font-weight: 720; }
.feeling { min-height: 63px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 11px; background: #080d14; color: #c4ccd1; display: grid; gap: 4px; text-align: left; cursor: pointer; }
.feeling b { font-size: 11px; }
.feeling small { color: #65737d; font-size: 8px; line-height: 1.35; }
.feeling.active { border-color: var(--line-strong); background: radial-gradient(circle at 18% 0%, rgba(84, 207, 205, 0.13), transparent 66%), rgba(84, 207, 205, 0.055); box-shadow: 0 0 20px rgba(84, 207, 205, 0.07); }
.feeling.active b { color: var(--cyan); }
.mode-picker { margin: 26px 0 0; padding: 0; border: 0; display: grid; gap: 8px; }
.mode-picker legend { margin-bottom: 10px; color: #8998a3; font-size: 11px; font-weight: 720; }
.voice-mode-picker { margin: 22px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.voice-mode-picker legend { grid-column: 1 / -1; margin-bottom: 2px; color: #8998a3; font-size: 11px; font-weight: 720; }
.voice-mode { min-height: 72px; padding: 12px; border: 1px solid #233b47; border-radius: 14px; background: #071017; color: #dce8ed; text-align: left; cursor: pointer; }
.voice-mode b, .voice-mode small { display: block; }
.voice-mode small { margin-top: 5px; color: #71838d; font-size: 10px; }
.voice-mode.active { border-color: #4ed7d4; background: #0d2026; box-shadow: 0 0 22px rgba(78,215,212,.10); }
.music-led-plan { padding: 24px; border: 1px solid #23434b; border-radius: 16px; background: rgba(8,24,30,.72); }
.music-led-plan h3 { margin: 6px 0 8px; }
.music-led-plan p { margin: 0; color: #91a4ad; }
.mode { min-height: 60px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; background: #080d14; display: grid; grid-template-columns: 31px 1fr; grid-template-rows: auto auto; text-align: left; cursor: pointer; }
.mode > span { grid-row: span 2; align-self: center; color: #657480; font-size: 20px; }
.mode b { font-size: 12px; }
.mode small { color: #5e6a74; font-size: 10px; }
.mode.active { border-color: var(--line-strong); background: rgba(84, 207, 205, 0.055); }
.mode.active > span { color: var(--cyan); }
.direction-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.direction-details summary { color: #9aa6ae; font-size: 11px; font-weight: 720; cursor: pointer; }
.ingredient-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 10px; }
.ingredient-list button { border: 1px solid var(--line); border-radius: 999px; background: #070b11; color: #82909a; padding: 7px 9px; font-size: 9px; cursor: pointer; }
.ingredient-list button.active { border-color: var(--cyan); color: var(--cyan); background: rgba(84, 207, 205, 0.06); }
.direction-details > small { color: #53616c; font-size: 9px; }

.poem-room { padding: 30px; min-width: 0; }
.poem-room-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.poem-room-header span { color: var(--cyan); font-size: 9px; letter-spacing: 0.17em; }
.poem-room-header h2 { margin: 7px 0 0; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.draft-status { display: grid; text-align: right; }
.draft-status strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.draft-status span { color: #61707a; font-size: 9px; }
.beat-tabs { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); gap: 7px; margin: 24px 0; overflow-x: auto; }
.beat-tab { min-height: 66px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #070b11; text-align: left; cursor: pointer; display: grid; gap: 4px; }
.beat-tab span { color: #576671; font-size: 9px; }
.beat-tab b { font-size: 10px; }
.beat-tab small { color: #4e5b65; font-size: 8px; }
.beat-tab.active { border-color: var(--line-strong); background: rgba(84, 207, 205, 0.055); }
.beat-tab.active span { color: var(--cyan); }
.beat-editor { min-height: 470px; }
.beat-editor-grid { display: grid; grid-template-columns: 0.88fr 1.12fr; gap: 28px; }
.poem-editor, .frames-editor { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #070b11; }
.editor-kicker { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #75848e; font-size: 9px; letter-spacing: 0.14em; }
.editor-kicker em { color: #4d5a64; font-style: normal; }
.beat-editor h3 { margin: 24px 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.beat-editor p { min-height: 42px; margin: 0 0 20px; color: #67747e; font-size: 12px; line-height: 1.55; }
.poem-editor textarea { min-height: 220px; font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.char-count { margin-top: 8px; display: flex; justify-content: space-between; color: #52606a; font-size: 9px; }
.frame-pair { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: center; gap: 8px; }
.frame-arrow { color: var(--cyan); text-align: center; }
.frame-slot { position: relative; aspect-ratio: 9 / 12; border: 1px dashed rgba(121, 164, 181, 0.32); border-radius: 13px; overflow: hidden; background: #030507; display: grid; place-items: center; cursor: pointer; }
.frame-slot img { width: 100%; height: 100%; object-fit: cover; }
.frame-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.frame-slot .frame-empty { padding: 18px; text-align: center; color: #52616b; }
.frame-empty strong { display: block; color: #83919b; font-size: 10px; margin-bottom: 5px; }
.frame-empty small { font-size: 8px; }
.frame-label { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 7px 8px; border-radius: 8px; background: rgba(2, 4, 6, 0.76); backdrop-filter: blur(8px); color: #c2c9ce; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-actions { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--line); }
.studio-actions > div { display: grid; gap: 3px; }
.studio-actions strong { color: #a7b0b7; font-size: 11px; }
.studio-actions span { color: #55626c; font-size: 9px; }

.modal { width: min(520px, calc(100% - 32px)); border: 1px solid var(--line-strong); border-radius: 24px; padding: 0; background: #090e15; color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(1, 3, 5, 0.82); backdrop-filter: blur(10px); }
.modal form { position: relative; padding: 42px; }
.modal img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line-strong); margin-bottom: 22px; }
.modal h2 { margin: 20px 0 13px; font-family: var(--serif); font-size: 36px; line-height: 1.08; font-weight: 400; }
.modal p:not(.eyebrow) { margin: 0 0 26px; color: #83909a; line-height: 1.7; font-size: 14px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #89959e; cursor: pointer; font-size: 20px; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr 0.95fr; gap: 45px; }
  .hero h1 { font-size: clamp(64px, 7vw, 86px); }
  .feature-stage { height: 510px; }
  .feature-stage video { width: 287px; height: 510px; }
  .pricing-section { grid-template-columns: 1fr 430px; gap: 70px; }
  .studio-shell { grid-template-columns: 320px minmax(0, 1fr); }
  .beat-editor-grid { grid-template-columns: 1fr; }
  .frames-editor { min-height: 450px; }
  .frame-pair { max-width: 580px; }
}

@media (max-width: 900px) {
  .site-header { width: min(100% - 36px, 1420px); grid-template-columns: 1fr auto; height: 78px; }
  .main-nav { display: none; }
  .header-actions { grid-column: 2; grid-row: 1; margin-right: 44px; }
  .mobile-menu { display: grid; position: absolute; right: 0; width: 34px; height: 34px; padding: 8px; border: 0; background: transparent; align-content: center; gap: 4px; cursor: pointer; }
  .mobile-menu span { height: 1px; background: #a8b0b6; }
  .main-nav.open { position: absolute; top: 72px; left: 0; right: 0; display: grid; gap: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #080d13; box-shadow: var(--shadow); }
  .main-nav.open a { padding: 15px; }
  .main-nav.open .mobile-nav-action { display: flex; width: 100%; min-height: 46px; border: 0; border-top: 1px solid var(--line); padding: 0 15px; align-items: center; background: transparent; color: var(--cyan); font-weight: 720; cursor: pointer; }
  .section-shell { width: min(100% - 36px, 1420px); }
  .hero { padding-top: 65px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .feature-film { max-width: 720px; width: 100%; margin: 0 auto; }
  .manifesto { grid-template-columns: 1fr; gap: 35px; }
  .process { grid-template-columns: 1fr; }
  .process article { min-height: 250px; border-right: 0; border-bottom: 1px solid var(--line); }
  .process article:last-child { border-bottom: 0; }
  .process h3 { margin-top: 55px; }
  .vision-grid { grid-template-columns: 1fr; }
  .pricing-section { grid-template-columns: 1fr; gap: 50px; }
  .price-card { max-width: 560px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip article:nth-child(2) { border-right: 0; }
  .proof-strip article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .studio-header { width: min(100% - 30px, 1540px); grid-template-columns: 1fr auto; }
  .studio-header > div { display: none; }
  .studio-shell { width: min(100% - 30px, 1540px); grid-template-columns: 1fr; }
  .direction-panel { position: static; }
}

@media (max-width: 620px) {
  .site-header { width: calc(100% - 24px); }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 11px; }
  .brand small { font-size: 7px; }
  .header-actions { margin-right: 40px; }
  .header-actions .button-primary { display: none; }
  .header-actions .button-quiet { min-height: 37px; padding: 0 10px; font-size: 10px; }
  .section-shell { width: calc(100% - 24px); }
  .hero { min-height: 0; padding: 58px 0 50px; gap: 50px; }
  .hero h1 { font-size: clamp(56px, 18vw, 78px); }
  .hero-lede { font-size: 15px; }
  .hero-actions { display: grid; }
  .feature-film { padding: 12px; border-radius: 24px; }
  .film-topline > span:last-child { display: none; }
  .feature-stage { height: 500px; border-radius: 17px; }
  .feature-stage video { width: 281px; height: 500px; }
  .film-caption p { display: none; }
  .film-caption h2 { font-size: 21px; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip article:nth-child(2) { border-right: 0; }
  .manifesto, .watch-section, .pricing-section { padding-top: 100px; }
  .manifesto h2, .section-heading h2, .pricing-section h2 { font-size: 48px; }
  .manifesto > p { font-size: 15px; }
  .process article { padding: 27px; }
  .section-heading { display: grid; gap: 24px; }
  .vision-card video { height: 420px; }
  .closing-cta { width: calc(100% - 24px); min-height: 430px; }
  .closing-cta h2 { font-size: 46px; }
  .site-footer { width: calc(100% - 24px); margin-top: 70px; padding: 35px 0; display: grid; }
  .site-footer p { order: -1; }
  .studio-header { width: calc(100% - 24px); gap: 10px; }
  .studio-header .button { min-height: 36px; padding: 0 10px; font-size: 10px; }
  .studio-shell { width: calc(100% - 24px); }
  .direction-panel, .poem-room { padding: 20px; border-radius: 17px; }
  .poem-room-header { align-items: start; }
  .poem-room-header h2 { font-size: 26px; }
  .draft-status { display: none; }
  .beat-tabs { grid-template-columns: repeat(6, 96px); }
  .poem-editor, .frames-editor { padding: 18px; }
  .frame-pair { grid-template-columns: 1fr; }
  .frame-arrow { transform: rotate(90deg); }
  .frame-slot { max-height: 390px; }
  .studio-actions { grid-template-columns: 1fr; }
  .modal form { padding: 34px 25px 25px; }
}

/* v0.2.2 — private customer loop */
.blank-draft-state { display: grid; gap: 7px; margin: 26px 0 18px; padding: 25px 28px; border: 1px dashed rgba(109, 220, 213, 0.34); border-radius: 15px; background: linear-gradient(135deg, rgba(12, 29, 39, 0.68), rgba(6, 13, 20, 0.4)); }
.blank-draft-state[hidden] { display: none; }
.blank-draft-state strong { color: #f4f0e8; font: 400 1.55rem/1.2 Georgia, 'Times New Roman', serif; }
.blank-draft-state span { color: #8fa8b6; line-height: 1.55; }
.auth-modal form { width: min(460px, calc(100vw - 32px)); }
.auth-modal label,
.direction-panel label { display: block; margin: 16px 0 7px; color: var(--muted, #9aafbd); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-modal input,
.direction-panel input,
.direction-panel textarea { width: 100%; box-sizing: border-box; }
.auth-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 16px; }
.auth-links button,
.frame-actions button,
.frame-upload { appearance: none; border: 0; background: transparent; color: #84d9d6; cursor: pointer; padding: 5px 0; font: inherit; font-size: 0.84rem; }
.auth-links button:hover,
.frame-actions button:hover,
.frame-upload:hover { color: #f4b86f; }
.form-message { min-height: 22px; margin: 14px 0; color: #f2bd7e; line-height: 1.5; }
.form-message a { color: #7ee1dc; }
.account-frame { cursor: default; overflow: hidden; }
.account-frame > img { min-height: 280px; object-fit: cover; }
.frame-actions { display: grid; grid-template-columns: 1fr; align-items: start; gap: 2px; width: 100%; padding: 10px 14px 13px; background: rgba(4, 11, 17, 0.92); border-top: 1px solid rgba(109, 168, 187, 0.22); }
.frame-upload { position: relative; display: inline-block; }
.frame-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.studio-actions { flex-wrap: wrap; }
.studio-actions button:disabled { opacity: 0.55; cursor: default; }
.production-status { margin: 18px 0; padding: 15px; border: 1px solid rgba(100, 157, 176, 0.25); border-radius: 12px; color: #a9bdc9; background: rgba(8, 18, 27, 0.72); line-height: 1.6; }
.production-status video { width: 100%; max-height: 420px; background: #000; border-radius: 9px; }
.production-status button { border: 0; background: none; color: #7ee1dc; cursor: pointer; text-decoration: underline; }
.production-status > strong { display: block; color: var(--text); font: 400 20px/1.25 var(--serif); }
.production-status > p { margin: 7px 0 0; color: #93a4af; }
.production-status > small { display: block; margin-top: 12px; color: #647480; }
.production-complete { margin-top: 12px; color: var(--cyan) !important; font: 700 10px/1.5 var(--sans) !important; letter-spacing: 0.12em; text-transform: uppercase; }
.production-layers { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.production-layers li { display: flex; align-items: center; gap: 10px; color: #667784; }
.production-layers i { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(121, 164, 182, 0.24); border-radius: 50%; font-style: normal; font-size: 10px; }
.production-layers li.active { color: var(--text); }
.production-layers li.active i { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 16px rgba(84, 207, 205, 0.18); }
.production-layers li.complete { color: var(--cyan); }
.account-view { min-height: 100vh; background: #060a0f; }
.account-shell { width: min(1480px, calc(100% - 64px)); margin: 0 auto; padding: 84px 0 130px; }
.account-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 52px; }
.account-heading h1 { margin: 10px 0 0; color: #f4f1e9; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 400; line-height: 0.94; }
.vision-library { display: grid; gap: 16px; }
.library-card { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 28px 30px; border: 1px solid rgba(92, 146, 165, 0.28); border-radius: 18px; background: linear-gradient(135deg, rgba(14, 30, 42, 0.9), rgba(7, 13, 20, 0.94)); }
.library-card span { color: #73dcd6; font-size: 0.7rem; letter-spacing: 0.17em; }
.library-card h2 { margin: 9px 0 5px; color: #f5f0e7; font: 400 2rem/1.05 Georgia, serif; }
.library-card p { margin: 0 0 8px; color: #a5b7c2; }
.library-card small { color: #667e8d; }
.library-empty { padding: 50px; border: 1px dashed rgba(92, 146, 165, 0.3); border-radius: 18px; color: #91a9b6; text-align: center; }
.toast { position: fixed; right: 26px; bottom: 26px; z-index: 200; max-width: 420px; padding: 14px 18px; border: 1px solid rgba(104, 220, 213, 0.45); border-radius: 12px; background: rgba(8, 23, 31, 0.98); color: #e9f3f4; box-shadow: 0 20px 55px rgba(0,0,0,.45); }
.toast.error { border-color: rgba(235, 123, 105, 0.6); color: #ffc1b6; }

@media (max-width: 820px) {
  .account-shell { width: min(100% - 30px, 1480px); padding-top: 48px; }
  .account-heading,
  .library-card { align-items: stretch; flex-direction: column; }
  .library-card .button { width: 100%; }
  .auth-links { flex-direction: column; gap: 4px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* v0.2.32 — Storyboard Camera Grammar */
.studio-context-bar {
  width: min(1180px, calc(100% - 48px)); min-height: 66px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--line);
}
.studio-context-bar > div { display: grid; gap: 3px; text-align: center; }
.studio-context-bar > div span { color: var(--cyan); font-size: 9px; letter-spacing: .18em; }
.studio-context-bar > div strong { color: #788690; font-size: 10px; font-weight: 520; }
.studio-context-bar > .button, .single-canvas-badge { justify-self: end; }
.single-canvas-badge { padding: 7px 10px; border: 1px solid rgba(84,207,205,.36); border-radius: 999px; color: var(--cyan); font-size: 8px; font-weight: 800; letter-spacing: .14em; }

.frame-preview-button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #020305; cursor: zoom-in; }
.frame-preview-button > img { width: 100%; display: block; transition: transform 180ms ease; }
.frame-preview-button:hover > img { transform: scale(1.025); }

.storyboard-approval { min-height: 0; }
.storyboard-approval-heading { margin: 22px 0 18px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.storyboard-approval-heading > div { display: grid; gap: 7px; }
.storyboard-approval-heading span { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.storyboard-approval-heading h3 { margin: 0; font: 400 31px/1.1 var(--serif); }
.storyboard-approval-heading p { min-height: 0; margin: 0; }
.storyboard-approval-heading > strong { color: #8aa0ad; font-size: 10px; letter-spacing: .12em; }
.storyboard-approval-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.storyboard-approval-card { min-width: 0; overflow: hidden; border: 1px solid rgba(91,126,142,.3); border-radius: 14px; background: linear-gradient(145deg, rgba(11,24,33,.96), rgba(4,8,13,.98)); }
.storyboard-approval-image { position: relative; display: block; width: 100%; aspect-ratio: 9/16; padding: 0; overflow: hidden; border: 0; background: #020305; cursor: zoom-in; }
.storyboard-approval-image::after { content: 'ENLARGE'; position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(2,3,5,.72); color: #eef7f7; font-size: 8px; font-weight: 800; letter-spacing: .11em; opacity: 0; transition: opacity 180ms ease; }
.storyboard-approval-image:hover::after { opacity: 1; }
.storyboard-approval-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 180ms ease; }
.storyboard-approval-image:hover img { transform: scale(1.025); }
.storyboard-approval-image > span { color: #607582; font-size: 11px; }
.storyboard-approval-copy { padding: 12px 13px 9px; }
.storyboard-approval-copy > span { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.storyboard-approval-copy .camera-grammar { display: block; margin-top: 7px; color: #e3b566; font-size: 9px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.storyboard-approval-copy > p { min-height: 42px; margin: 6px 0 0; overflow: hidden; color: #a9bbc4; font: 400 14px/1.45 var(--serif); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.storyboard-approval-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 10px 11px; }
.storyboard-approval-actions button, .storyboard-replace { min-height: 36px; display: grid; place-items: center; border: 1px solid rgba(84,207,205,.28); border-radius: 8px; background: rgba(7,22,31,.84); color: #dce8ea; font-size: 10px; font-weight: 700; cursor: pointer; }
.storyboard-approval-actions button:hover, .storyboard-replace:hover { border-color: var(--cyan); color: var(--cyan); }
.storyboard-replace input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.storyboard-approval-bar { margin-top: 20px; padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border: 1px solid rgba(84,207,205,.3); border-radius: 13px; background: rgba(12,34,42,.58); }
.storyboard-approval-bar > div { display: grid; gap: 3px; }
.storyboard-approval-bar strong { color: #f3f0e9; font: 400 18px/1.2 var(--serif); }
.storyboard-approval-bar span { color: #7f949f; font-size: 10px; }
.storyboard-approval-bar .button { min-width: 225px; }

.image-preview-dialog { width: min(92vw, 650px); max-height: 92vh; padding: 0; overflow: hidden; border: 1px solid rgba(84,207,205,.55); border-radius: 18px; background: #03060a; color: var(--text); box-shadow: 0 30px 110px rgba(0,0,0,.78); }
.image-preview-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.image-preview-dialog > img { width: 100%; max-height: 82vh; display: block; object-fit: contain; background: #000; }
.image-preview-dialog > p { margin: 0; padding: 12px 16px; color: #8ba0ab; font-size: 11px; }

.vision-library { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.library-card { min-width: 0; padding: 0; display: block; overflow: hidden; }
.library-card.is-producing { border-color: rgba(109, 210, 213, 0.52); box-shadow: 0 0 0 1px rgba(109, 210, 213, 0.1), 0 0 26px rgba(74, 183, 191, 0.18); animation: library-production-glow 3.8s ease-in-out infinite; }
@keyframes library-production-glow {
  50% { border-color: rgba(121, 230, 226, 0.76); box-shadow: 0 0 0 1px rgba(109, 210, 213, 0.22), 0 0 35px rgba(74, 183, 191, 0.33); }
}
@media (prefers-reduced-motion: reduce) { .library-card.is-producing { animation: none; } }
.library-card-media { width: 100%; aspect-ratio: 16/11; overflow: hidden; background: #020305; }
.library-card-media img, .library-card-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.library-card-placeholder { height: 100%; display: grid; place-items: center; color: var(--cyan); font-size: 32px; background: radial-gradient(circle, rgba(84,207,205,.12), transparent 62%); }
.library-card-copy { padding: 18px; }
.library-card-copy .library-status.attention { color: #efb15f; }
.library-card-copy h2 { min-height: 2.1em; font-size: 1.55rem; }
.library-card-copy p { min-height: 2.8em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.library-card-copy .button { width: 100%; margin-top: 15px; }

@media (max-width: 900px) {
  .storyboard-approval-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vision-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .studio-context-bar { width: calc(100% - 30px); grid-template-columns: 1fr auto; }
  .studio-context-bar > div { display: none; }
  .storyboard-approval-heading { align-items: start; flex-direction: column; }
  .storyboard-approval-grid { gap: 9px; }
  .storyboard-approval-copy { padding: 9px; }
  .storyboard-approval-copy > p { min-height: 38px; font-size: 12px; }
  .storyboard-approval-actions { grid-template-columns: 1fr; padding: 0 7px 8px; }
  .storyboard-approval-bar { align-items: stretch; flex-direction: column; }
  .storyboard-approval-bar .button { width: 100%; min-width: 0; }
  .vision-library { grid-template-columns: 1fr; }
}

/* v0.2.8 - verified customer path */
.studio-open .studio-context-hide { display: none; }
.first-step-copy { margin: 14px 2px 16px; color: #8195a0; font-size: 11px; line-height: 1.55; }
.guided-primary:not(:disabled) { animation: guided-glow 2.8s ease-in-out infinite; }
@keyframes guided-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(239, 177, 95, 0), 0 9px 24px rgba(0, 0, 0, 0.14); }
  50% { box-shadow: 0 0 0 5px rgba(239, 177, 95, 0.07), 0 0 28px rgba(239, 177, 95, 0.22); }
}
.studio-steps { width: min(1180px, calc(100% - 48px)); margin: 25px auto 0; padding: 12px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 12, 18, 0.76); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 15px; }
.studio-steps > i { color: #35434d; font-style: normal; font-size: 12px; }
.studio-step { min-width: 0; display: grid; grid-template-columns: 30px 1fr; gap: 1px 10px; align-items: center; opacity: 0.38; transition: opacity 180ms ease, filter 180ms ease; }
.studio-step > span { grid-row: span 2; width: 28px; height: 28px; border: 1px solid #3f505c; border-radius: 50%; display: grid; place-items: center; color: #80909b; font-family: var(--serif); font-size: 13px; }
.studio-step strong { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.studio-step small { overflow: hidden; color: #70808b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.studio-step.active { opacity: 1; filter: drop-shadow(0 0 9px rgba(84, 207, 205, 0.24)); }
.studio-step.active > span { border-color: var(--cyan); color: var(--cyan); background: rgba(84, 207, 205, 0.08); box-shadow: 0 0 18px rgba(84, 207, 205, 0.16); }
.studio-step.complete { opacity: 0.78; }
.studio-step.complete > span { border-color: rgba(84, 207, 205, 0.5); color: var(--cyan); }
.studio-shell.journey-stage-2,
.studio-shell.journey-stage-3,
.studio-shell.journey-stage-4 { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.studio-shell.self-writing { grid-template-columns: minmax(0, 1fr); max-width: 1180px; }
.journey-stage-2 .direction-panel,
.journey-stage-3 .direction-panel,
.journey-stage-4 .direction-panel,
.self-writing .direction-panel { display: none; }
.stage-guidance { margin: 24px 0 18px; padding: 20px 22px; border: 1px solid rgba(84, 207, 205, 0.22); border-radius: 14px; background: linear-gradient(135deg, rgba(12, 29, 39, 0.62), rgba(6, 13, 20, 0.34)); display: grid; gap: 6px; }
.stage-guidance[hidden] { display: none; }
.stage-guidance > span { color: var(--cyan); font-size: 9px; letter-spacing: 0.16em; }
.stage-guidance > strong { color: #f4f0e8; font: 400 1.55rem/1.15 var(--serif); }
.stage-guidance > p { margin: 0; color: #8195a0; font-size: 12px; }
.creative-intent-summary { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.creative-intent-summary[hidden] { display: none; }
.creative-intent-summary span { padding: 7px 10px; border: 1px solid rgba(84, 207, 205, 0.22); border-radius: 999px; background: rgba(84, 207, 205, 0.05); color: #8195a0; font-size: 10px; }
.creative-intent-summary strong { color: #dce9e9; }
.poem-review { margin: 18px 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.poem-review[hidden], .beat-tabs[hidden], .beat-editor[hidden], .film-ready[hidden], .studio-actions[hidden] { display: none; }
.poem-review-line { padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #070b11; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.poem-review-line > span { color: var(--cyan); font-size: 9px; letter-spacing: 0.12em; }
.poem-review-line > strong { color: #9ba8b0; font-size: 10px; }
.poem-review-line textarea { grid-column: 1 / -1; min-height: 74px; margin-top: 8px; resize: vertical; font: 400 17px/1.35 var(--serif); }
.beat-tab.approved { border-color: rgba(84, 207, 205, 0.4); background: rgba(84, 207, 205, 0.06); }
.beat-tab.approved span, .beat-tab.approved small { color: var(--cyan); }
.review-frame .frame-label { top: 8px; bottom: auto; right: auto; z-index: 2; }
.review-frame .frame-actions { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: 8px; width: auto; padding: 8px; border: 1px solid rgba(116, 159, 177, 0.22); border-radius: 10px; background: rgba(3, 7, 11, 0.92); backdrop-filter: blur(12px); }
.frame-actions .change-image-button { width: 100%; padding: 7px 9px; color: #e7ecee; font-weight: 700; }
.frame-change-options { padding: 7px 4px 2px; border-top: 1px solid rgba(116, 159, 177, 0.17); display: grid; gap: 2px; }
.frame-change-options[hidden] { display: none; }
.approve-beat { margin-top: 18px; }
.approve-beat.approved { border-color: rgba(84, 207, 205, 0.42); background: rgba(84, 207, 205, 0.09); color: var(--cyan); }
.film-ready { min-height: 280px; margin-top: 24px; padding: 42px; border: 1px solid rgba(239, 177, 95, 0.28); border-radius: 20px; background: radial-gradient(circle at 86% 10%, rgba(239, 177, 95, 0.1), transparent 36%), #070b11; display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.film-ready span { color: var(--cyan); font-size: 9px; letter-spacing: 0.17em; }
.film-ready h3 { max-width: 680px; margin: 16px 0 12px; font: 400 clamp(32px, 4vw, 52px)/1.03 var(--serif); }
.film-ready p { margin: 0; color: #87949d; }
.film-ready > strong { color: #f4c685; font: 400 24px/1.2 var(--serif); text-align: right; }
.studio-actions { grid-template-columns: 1fr auto auto auto; }

/* v0.2.8 - visible, resumable storyboard generation */
.storyboard-readiness { color: #efb15f; font-size: 11px; line-height: 1.5; }
.storyboard-build { margin: 18px 0 8px; padding: 22px; border: 1px solid rgba(84, 207, 205, 0.28); border-radius: 16px; background: radial-gradient(circle at 50% 0%, rgba(84, 207, 205, 0.08), transparent 42%), #070b11; }
.storyboard-build[hidden] { display: none; }
.storyboard-build-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.storyboard-build-heading > div { display: grid; gap: 6px; }
.storyboard-build-heading span { color: var(--cyan); font-size: 9px; letter-spacing: 0.16em; }
.storyboard-build-heading strong { color: #f4f0e8; font: 400 1.8rem/1.1 var(--serif); }
.storyboard-build-heading p { margin: 0; color: #8ca0ac; font-size: 12px; }
.storyboard-build-heading > b { color: #f4f0e8; font: 400 2rem/1 var(--serif); }
.storyboard-progress { height: 4px; margin: 20px 0; overflow: hidden; border-radius: 999px; background: rgba(103, 139, 155, 0.18); }
.storyboard-progress > i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4ac7c4, #efb15f); box-shadow: 0 0 14px rgba(84, 207, 205, 0.45); transition: width 280ms ease; }
.storyboard-frame-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.storyboard-build-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid rgba(91, 126, 142, 0.26); border-radius: 12px; background: #03060a; }
.storyboard-build-card > img,
.storyboard-build-placeholder { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.storyboard-build-placeholder { display: grid; place-items: center; align-content: center; gap: 10px; color: #51636e; background: linear-gradient(145deg, rgba(17, 31, 40, 0.82), rgba(4, 8, 13, 0.94)); }
.storyboard-build-placeholder i { width: 10px; height: 10px; border: 1px solid #526b78; border-radius: 50%; }
.storyboard-build-placeholder span { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; }
.storyboard-build-card.active { border-color: rgba(84, 207, 205, 0.72); box-shadow: 0 0 24px rgba(84, 207, 205, 0.16); }
.storyboard-build-card.active .storyboard-build-placeholder { animation: storyboard-pulse 1.8s ease-in-out infinite; }
.storyboard-build-card.active .storyboard-build-placeholder i { border-color: var(--cyan); box-shadow: 0 0 16px rgba(84, 207, 205, 0.8); animation: storyboard-orbit 1.2s linear infinite; }
@keyframes storyboard-pulse { 50% { background-color: rgba(27, 58, 68, 0.48); } }
@keyframes storyboard-orbit { to { transform: rotate(360deg) scale(1.45); } }
.storyboard-build-card footer { display: grid; grid-template-columns: auto 1fr; gap: 3px 7px; padding: 9px; }
.storyboard-build-card footer strong { color: var(--cyan); font-size: 8px; }
.storyboard-build-card footer span { overflow: hidden; color: #cbd5d9; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.storyboard-build-card footer em { grid-column: 1 / -1; color: #607582; font-size: 8px; font-style: normal; }
.storyboard-build-card.ready footer em { color: #75c9c4; }
#retry-storyboard { margin-top: 18px; }

@media (max-width: 820px) {
  .studio-steps { width: calc(100% - 30px); grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
  .studio-steps > i { display: none; }
  .studio-step { grid-template-columns: 26px 1fr; gap: 5px; }
  .studio-step > span { width: 24px; height: 24px; }
  .studio-step small { display: none; }
  .poem-review { grid-template-columns: 1fr; }
  .film-ready { padding: 28px; align-items: start; flex-direction: column; }
  .film-ready > strong { text-align: left; }
  .studio-actions { grid-template-columns: 1fr; }
  .storyboard-build { padding: 16px; }
  .storyboard-frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .storyboard-build-heading { align-items: start; }
}

/* v0.2.25 - Factory v0.2.0 baseline renderer with bounded transient retry */
.production-readiness {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.production-readiness li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}
.production-readiness li.ready { color: var(--cyan); }
.production-readiness li.waiting { color: #efb15f; }
.production-readiness li span {
  width: 1.1rem;
  text-align: center;
}

.single-endpoint { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
.production-room { margin: 24px 0; padding: 26px; border: 1px solid rgba(84, 207, 205, 0.42); border-radius: 20px; background: linear-gradient(145deg, rgba(8, 22, 30, .96), rgba(5, 10, 16, .98)); }
.production-room[hidden] { display: none; }
.production-room > header { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.production-room > header span { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.production-room > header h3 { margin: 8px 0 0; font: 400 34px/1.05 var(--serif); }
.production-room > header > strong { color: #dfeaec; font-size: 11px; }
.production-room > p { color: #8195a0; font-size: 12px; }
.production-room-notice { display: grid; gap: 6px; margin: 16px 0 0; padding: 14px 16px; border: 1px solid rgba(239, 177, 95, .42); border-radius: 12px; background: rgba(57, 36, 16, .3); color: #9eafb7; }
.production-room-notice[hidden] { display: none; }
.production-room-notice strong { color: #f0b15f; font: 400 19px/1.25 var(--serif); }
.production-room-notice p { margin: 0; font-size: 11px; line-height: 1.55; }
.production-room-notice button { justify-self: start; margin-top: 4px; padding: 8px 12px; border: 1px solid rgba(84, 207, 205, .42); border-radius: 8px; background: transparent; color: var(--cyan); cursor: pointer; }
.production-chain { display: grid; grid-template-columns: repeat(11, minmax(132px, 1fr)); gap: 10px; margin-top: 20px; padding-bottom: 12px; overflow-x: auto; }
.chain-endpoint, .chain-transformation { min-width: 132px; border: 1px solid rgba(111, 155, 172, .26); border-radius: 12px; overflow: hidden; background: #030609; }
.chain-endpoint img, .chain-transformation video { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; }
.chain-endpoint footer, .chain-transformation footer { display: grid; gap: 3px; min-height: 62px; padding: 9px; }
.chain-endpoint footer strong, .chain-transformation footer strong { color: var(--cyan); font-size: 9px; }
.chain-endpoint footer span, .chain-transformation footer span { color: #8ca0ac; font-size: 9px; line-height: 1.35; }
.chain-transformation { border-color: rgba(239, 177, 95, .34); }
.chain-transformation.ready { box-shadow: 0 0 24px rgba(84, 207, 205, .13); }
.chain-transformation.active-render {
  border-color: rgba(84, 207, 205, .82);
  box-shadow: 0 0 18px rgba(84, 207, 205, .3), inset 0 0 22px rgba(84, 207, 205, .08);
  animation: active-render-glow 1.9s ease-in-out infinite;
}
.transformation-pulse, .chain-placeholder { display: grid; place-items: center; align-content: center; gap: 8px; aspect-ratio: 9/16; color: #728792; font-size: 9px; text-align: center; }
.transformation-pulse i { width: 12px; height: 12px; border: 1px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 18px var(--cyan); animation: production-pulse 1.6s ease-in-out infinite; }
.transformation-pulse b { color: #f0b15f; font-size: 13px; }
.production-layer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.production-layer-grid li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 11px; border: 1px solid rgba(100, 145, 162, .2); border-radius: 10px; color: #758995; font-size: 10px; }
.production-layer-grid li.ready { color: var(--cyan); border-color: rgba(84, 207, 205, .32); }
.production-layer-grid li b { font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.production-layer-grid li.working {
  color: #d8f5f2;
  border-color: rgba(84, 207, 205, .48);
  background: rgba(31, 93, 98, .09);
  animation: production-layer-glow 2.2s ease-in-out infinite;
}
.production-layer-grid li.working i { color: var(--cyan); text-shadow: 0 0 12px rgba(84, 207, 205, .85); }
.production-layer-grid li.waiting { color: #647782; }
.production-ready-actions { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; margin-top: 14px; padding: 14px; border: 1px solid rgba(84, 207, 205, .38); border-radius: 12px; background: rgba(18, 61, 66, .16); }
.production-ready-actions[hidden] { display: none; }
.production-ready-actions > div { display: grid; gap: 3px; }
.production-ready-actions strong { color: #e9f6f4; font: 400 18px/1.2 var(--serif); }
.production-ready-actions span { color: #84a1aa; font-size: 10px; }
.production-ready-actions a { text-decoration: none; }
.production-finalization { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.production-finalization[hidden] { display: none; }
.production-finalization span { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 12px; border: 1px solid rgba(100, 145, 162, .2); border-radius: 10px; color: #637883; font-size: 10px; }
.production-finalization span.complete { border-color: rgba(84, 207, 205, .32); color: var(--cyan); }
.production-finalization span.active { border-color: rgba(239, 177, 95, .48); color: #f3c07f; background: rgba(91, 58, 20, .13); box-shadow: 0 0 22px rgba(239, 177, 95, .09); }
.production-finalization i { width: 18px; color: inherit; font-style: normal; text-align: center; }
.production-master-player { display: block; width: min(100%, 520px); max-height: 70vh; margin: 18px auto 0; border: 1px solid rgba(84, 207, 205, .42); border-radius: 16px; background: #000; box-shadow: 0 24px 70px rgba(0, 0, 0, .42); }
.production-master-player[hidden] { display: none; }
@keyframes production-pulse { 50% { opacity: .3; transform: scale(.72); } }
@keyframes active-render-glow {
  50% { border-color: rgba(84, 207, 205, .42); box-shadow: 0 0 32px rgba(84, 207, 205, .2), inset 0 0 30px rgba(84, 207, 205, .04); }
}
@keyframes production-layer-glow {
  50% { border-color: rgba(84, 207, 205, .82); box-shadow: 0 0 22px rgba(84, 207, 205, .22), inset 0 0 14px rgba(84, 207, 205, .05); filter: brightness(1.08); }
}
.guided-primary.is-processing {
  position: relative;
  overflow: hidden;
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(84, 207, 205, .28);
  cursor: wait;
  animation: vision-inventing 1.8s ease-in-out infinite;
}
.guided-primary.is-processing small { margin-left: .45rem; font: inherit; opacity: .72; }
.production-layer-grid li.paused { color: #efb15f; border-color: rgba(239, 177, 95, .28); }
@keyframes vision-inventing {
  50% { box-shadow: 0 0 48px rgba(84, 207, 205, .52); filter: brightness(1.08); }
}
@media (max-width: 760px) {
  .production-room > header { align-items: start; flex-direction: column; }
  .production-layer-grid { grid-template-columns: 1fr; }
  .production-finalization { grid-template-columns: 1fr; }
  .production-ready-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .production-layer-grid li.working, .transformation-pulse i, .chain-transformation.active-render, .guided-primary.is-processing { animation: none; }
}

/* A completed Vision is a film page, not an approved draft page. */
.studio-view.is-finished .studio-context-bar > div,
.studio-view.is-finished .single-canvas-badge,
.studio-view.is-finished .studio-steps,
.studio-view.is-finished .direction-panel,
.studio-view.is-finished .poem-room-header,
.studio-view.is-finished #blank-draft-state,
.studio-view.is-finished #stage-guidance,
.studio-view.is-finished #poem-review,
.studio-view.is-finished #storyboard-build,
.studio-view.is-finished #beat-editor,
.studio-view.is-finished .beat-tabs,
.studio-view.is-finished #film-ready,
.studio-view.is-finished #production-room-status,
.studio-view.is-finished #production-room-copy,
.studio-view.is-finished #production-ambient,
.studio-view.is-finished #production-finalization,
.studio-view.is-finished .studio-actions > div,
.studio-view.is-finished #journey-primary { display: none; }
.studio-view.is-finished .studio-shell { margin-top: 16px; display: block; }
.studio-view.is-finished .poem-room { padding: 20px; }
.studio-view.is-finished .production-room { margin: 0; padding: 24px; }
.studio-view.is-finished .production-room > header h3 { font-size: clamp(30px, 5vw, 48px); }
.studio-view.is-finished .production-master-player { margin-top: 18px; }
.studio-view.is-finished .production-ready-actions { display: flex; justify-content: center; padding: 0; border: 0; background: none; }
.studio-view.is-finished .production-ready-actions[hidden] { display: none; }
.studio-view.is-finished .studio-actions { justify-content: center; }

/* Once production starts, show its live state at the top of the canvas. */
.studio-view.has-active-production .studio-context-bar > div,
.studio-view.has-active-production .single-canvas-badge,
.studio-view.has-active-production .studio-steps,
.studio-view.has-active-production .direction-panel,
.studio-view.has-active-production .poem-room-header,
.studio-view.has-active-production #blank-draft-state,
.studio-view.has-active-production #stage-guidance,
.studio-view.has-active-production #poem-review,
.studio-view.has-active-production #storyboard-build,
.studio-view.has-active-production #beat-editor,
.studio-view.has-active-production .beat-tabs,
.studio-view.has-active-production #film-ready,
.studio-view.has-active-production .studio-actions { display: none; }
.studio-view.has-active-production .studio-shell { display: block; margin-top: 16px; }
.studio-view.has-active-production .poem-room { padding: 16px; }
.studio-view.has-active-production .production-room { margin: 0; padding: 24px; }

/* v0.2.25 - customer atmosphere; production mechanics remain operator-only */
.production-ambient {
  position: relative;
  min-height: 330px;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(84, 207, 205, .24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 48%, rgba(83, 224, 216, .13), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(46, 115, 137, .12), transparent 48%),
    linear-gradient(145deg, rgba(3, 10, 16, .98), rgba(7, 21, 29, .96));
  display: grid;
  place-items: center;
  isolation: isolate;
}
.production-ambient::before,
.production-ambient::after {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -2;
  background: conic-gradient(from 80deg, transparent, rgba(84, 207, 205, .05), transparent 25%, rgba(239, 177, 95, .04), transparent 55%);
  animation: ambient-drift 18s linear infinite;
}
.production-ambient::after { animation-duration: 27s; animation-direction: reverse; filter: blur(18px); }
.ambient-core {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 58px;
  height: 58px;
  margin: -29px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #eaffff, #6ee0dc 16%, rgba(61, 168, 181, .42) 45%, transparent 72%);
  box-shadow: 0 0 28px rgba(110, 224, 220, .65), 0 0 90px rgba(54, 157, 176, .34);
  animation: ambient-breathe 3.8s ease-in-out infinite;
}
.ambient-orbit {
  position: absolute;
  left: 50%;
  top: 44%;
  border: 1px solid rgba(115, 229, 224, .2);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-13deg);
}
.ambient-orbit::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #75e7e1;
  box-shadow: 0 0 20px rgba(117, 231, 225, .85);
}
.ambient-orbit-one { width: 150px; height: 90px; animation: ambient-orbit-one 7s linear infinite; }
.ambient-orbit-one::after { left: 19px; top: 12px; }
.ambient-orbit-two { width: 245px; height: 145px; border-color: rgba(239, 177, 95, .14); animation: ambient-orbit-two 11s linear infinite; }
.ambient-orbit-two::after { right: 36px; bottom: 12px; background: #efb15f; box-shadow: 0 0 18px rgba(239, 177, 95, .7); }
.ambient-copy { position: absolute; left: 0; right: 0; bottom: 28px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.ambient-copy strong { color: #eaf6f5; font: 400 21px/1.2 var(--serif); }
.ambient-copy > span { color: #718a96; font-size: 10px; }
.production-progress-dots { display: flex; gap: 7px; margin-top: 10px; }
.production-progress-dots i { width: 28px; height: 3px; border-radius: 99px; background: rgba(111, 145, 157, .24); }
.production-progress-dots i.complete { background: #62d7d2; box-shadow: 0 0 12px rgba(98, 215, 210, .45); }
.production-progress-dots i.active { background: rgba(98, 215, 210, .54); animation: ambient-dot 1.6s ease-in-out infinite; }
.production-ambient.is-complete .ambient-core { background: radial-gradient(circle, #fff, #efb15f 25%, transparent 70%); box-shadow: 0 0 38px rgba(239, 177, 95, .75), 0 0 120px rgba(239, 177, 95, .32); }
.production-ambient.needs-attention .ambient-core { filter: saturate(.45); animation-duration: 7s; }
@keyframes ambient-breathe { 50% { transform: scale(.72); opacity: .64; } }
@keyframes ambient-drift { to { transform: rotate(360deg); } }
@keyframes ambient-orbit-one { to { transform: translate(-50%, -50%) rotate(347deg); } }
@keyframes ambient-orbit-two { to { transform: translate(-50%, -50%) rotate(-373deg); } }
@keyframes ambient-dot { 50% { opacity: .22; } }
@media (max-width: 760px) { .production-ambient { min-height: 290px; } }
@media (prefers-reduced-motion: reduce) {
  .production-ambient::before, .production-ambient::after, .ambient-core, .ambient-orbit, .production-progress-dots i.active { animation: none; }
}
