:root {
  --ink: #202722;
  --ink-soft: #59615c;
  --paper: #f4f0e7;
  --paper-deep: #e8e0d2;
  --forest: #17251f;
  --forest-soft: #24362e;
  --terracotta: #a9533c;
  --gold: #d5ab69;
  --line: rgba(32, 39, 34, .16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1200px, calc(100vw - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { position: fixed; inset: 0; z-index: -1; pointer-events: none; content: ""; opacity: .23; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; padding: 10px 16px; background: var(--paper); }
.skip-link:focus { top: 12px; }
.section-shell { width: var(--shell); margin-inline: auto; }
.spacious-section { padding-block: clamp(76px, 10vw, 145px); }

.site-header { width: var(--shell); min-height: 80px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.15rem; text-decoration: none; }
.wordmark-mark { color: var(--terracotta); font-size: 1.6rem; line-height: 1; }
.site-nav { display: flex; gap: 30px; }
.site-nav a { position: relative; color: var(--ink-soft); font-size: .78rem; letter-spacing: .07em; text-decoration: none; }
.site-nav a::after { position: absolute; bottom: -8px; left: 0; width: 0; height: 1px; content: ""; background: var(--terracotta); transition: width .25s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { width: 100%; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); }

.eyebrow { margin: 0 0 12px; color: var(--terracotta); font-size: .68rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(3.3rem, 7.4vw, 7rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2.2rem, 4.2vw, 4.5rem); letter-spacing: -.04em; }
h3 { font-size: clamp(1.4rem, 2.1vw, 2rem); letter-spacing: -.025em; }
.button { display: inline-flex; min-height: 49px; padding: 12px 23px; gap: 10px; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none; transition: background .2s, color .2s; }
.button:hover { background: transparent; color: var(--ink); }
.quiet-button, .player-text-button { padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; font-size: .78rem; letter-spacing: .06em; text-decoration: none; }
.circle-button { width: 46px; height: 46px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: inherit; background: transparent; cursor: pointer; transition: color .2s, background .2s; }
.circle-button:hover { color: var(--forest); background: var(--paper); }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }

/* Home */
.home-stage { padding: clamp(70px, 9vw, 120px) 0 70px; }
.home-title { margin-bottom: clamp(42px, 7vw, 82px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 30px; }
.home-title .eyebrow { grid-column: 1 / -1; }
.home-title h1 { max-width: 850px; }
.home-title > p:last-child { max-width: 280px; margin: 0 0 10px; color: var(--ink-soft); }
.home-reflection { min-height: min(720px, 76svh); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); overflow: hidden; background: var(--forest); color: var(--paper); }
.home-reflection-media { min-height: 590px; overflow: hidden; background: #0f1814; }
.home-reflection-media img { width: 100%; height: 100%; object-fit: cover; }
.home-reflection-media video { width: 100%; height: 100%; object-fit: contain; }
.home-reflection-media video:fullscreen,
.reflection-hero video:fullscreen,
.home-reflection-media video:-webkit-full-screen,
.reflection-hero video:-webkit-full-screen { width: 100vw !important; height: 100vh !important; max-width: none !important; max-height: none !important; object-fit: contain !important; background: #050806; }
.home-reflection-copy { padding: clamp(42px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; }
.home-reflection-copy h2 { font-size: clamp(2.6rem, 4.7vw, 5rem); }
.home-reflection-copy blockquote { margin: 36px 0 30px; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.65rem); line-height: 1.52; white-space: pre-line; }
.keyword-row { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-row a { padding: 6px 11px; border: 1px solid currentColor; border-radius: 999px; opacity: .74; font-size: .67rem; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.keyword-row a:hover { opacity: 1; }
.keyword-row.compact { margin-top: 16px; color: var(--ink-soft); }
.home-actions { margin-top: 46px; display: flex; align-items: center; gap: 19px; flex-wrap: wrap; }
.home-actions .circle-button:last-child { margin-left: auto; }
.home-play-cta { padding: 35px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink-soft); }

/* Collections */
.page-intro { padding-block: clamp(95px, 13vw, 175px) clamp(60px, 8vw, 105px); }
.page-intro h1 { max-width: 1000px; }
.page-intro > p:last-child { max-width: 670px; margin: 30px 0 0 auto; color: var(--ink-soft); font-size: 1.12rem; }
.listing-section { padding-bottom: clamp(100px, 14vw, 180px); }
.message-controls { margin-bottom: 50px; padding: 22px 0; display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.5fr) auto auto; gap: 26px; align-items: end; border-block: 1px solid var(--line); }
.message-search { display: grid; gap: 8px; color: var(--ink-soft); font-size: .68rem; font-weight: 700; letter-spacing: .06em; }
.message-search input { width: 100%; min-height: 42px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 400; letter-spacing: 0; }
.search-submit { white-space: nowrap; }
.message-controls fieldset, .playlist-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.message-controls legend, .playlist-form legend { margin-bottom: 14px; color: var(--ink-soft); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topic-tabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.topic-tabs::-webkit-scrollbar { display: none; }
.topic-tabs label { flex: 0 0 auto; cursor: pointer; }
.topic-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.topic-tabs span { display: block; padding: 8px 13px; border: 1px solid transparent; border-radius: 999px; color: var(--ink-soft); font-size: .78rem; }
.topic-tabs input:checked + span { border-color: var(--ink); color: var(--ink); }
.sort-control { display: grid; gap: 5px; color: var(--ink-soft); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sort-control select { min-width: 150px; padding: 8px 26px 8px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; color: var(--ink); background: transparent; text-transform: none; letter-spacing: normal; }
.results-note { margin: 0 0 27px; color: var(--ink-soft); font-family: var(--serif); font-style: italic; }
.reflection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px 24px; }
.reflection-card { min-width: 0; }
.card-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.reflection-card:hover .card-media img { transform: scale(1.025); filter: saturate(1.08); }
.card-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(145deg, var(--forest-soft), var(--terracotta)); }
.play-mark { position: absolute; right: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(244,240,231,.93); color: var(--ink); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.card-copy { padding-top: 20px; }
.card-topline { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: .68rem; }
.card-topline .eyebrow { margin: 0; }
.card-copy h3 { margin-top: 7px; }
.card-copy h3 a { text-decoration: none; }
.card-message { display: -webkit-box; margin: 14px 0 0; overflow: hidden; color: var(--ink-soft); white-space: pre-line; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.empty-state { grid-column: 1/-1; padding: 80px 20px; border: 1px solid var(--line); color: var(--ink-soft); text-align: center; }

/* Feelings and editorial pages */
.feeling-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.feeling-card { min-height: 330px; padding: clamp(34px, 5vw, 66px); display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: color .25s, background .25s; }
.feeling-card:nth-child(even) { border-right: 0; }
.feeling-card:hover { color: var(--paper); background: var(--forest); }
.feeling-index { margin-bottom: auto; color: var(--terracotta); font-size: 1.8rem; }
.feeling-card p { max-width: 500px; color: var(--ink-soft); }
.feeling-card:hover p { color: rgba(244,240,231,.72); }
.feeling-card .text-link { margin-top: 18px; }
.back-link { display: inline-block; margin-bottom: 80px; color: var(--ink-soft); font-size: .8rem; text-decoration: none; }
.reflection-header { padding-block: clamp(85px, 11vw, 150px) 55px; text-align: center; }
.reflection-header h1 { max-width: 1050px; margin-inline: auto; }
.reflection-hero { width: min(1380px, calc(100vw - 40px)); max-height: 830px; margin-inline: auto; display: grid; place-items: center; overflow: hidden; background: var(--forest); }
.reflection-hero img { width: 100%; max-height: 830px; object-fit: cover; }
.reflection-hero video { width: 100%; max-height: 830px; object-fit: contain; }
.reflection-reading { max-width: 800px; padding-block: clamp(70px, 10vw, 130px); }
.reflection-reading > blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.9rem, 3.7vw, 3.35rem); line-height: 1.3; letter-spacing: -.025em; white-space: pre-line; }
.long-copy { margin-top: 70px; color: var(--ink-soft); font-family: var(--serif); font-size: 1.25rem; line-height: 1.85; white-space: pre-line; }
.narration { margin-top: 55px; padding: 25px 0; border-block: 1px solid var(--line); }
.narration audio { width: 100%; }
.narration small { display: block; margin-top: 8px; color: var(--ink-soft); }
.credits { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; }
.reflection-keywords { margin-top: 38px; color: var(--ink-soft); }
.share-panel { margin-top: 80px; padding: 34px; border: 1px solid var(--line); text-align: center; }
.share-panel p { font-family: var(--serif); font-size: 1.4rem; }
.share-panel .quiet-button { margin-left: 18px; }
.share-primary, .social-share-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; }
.social-share-links { margin-top: 20px; }
.social-share-links a { color: inherit; font-size: .72rem; text-underline-offset: 5px; }
.copy-status { display: block; min-height: 1.4em; margin-top: 10px; color: var(--ink-soft); font-size: .78rem; }
.about-intro h1 { max-width: 1050px; }
.about-story { padding-bottom: 130px; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 150px); }
.pull-quote { position: sticky; top: 70px; align-self: start; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.18; }
.about-story .long-copy { margin: 0; }
.closing-thought { max-width: 980px; text-align: center; }
.closing-thought > p { color: var(--terracotta); font-family: var(--serif); font-style: italic; }
.closing-thought h2 { margin: 20px 0 42px; }
.section-heading { max-width: 700px; margin-bottom: 42px; }

/* Playlist */
.playlist-page { min-height: calc(100svh - 80px); }
.playlist-setup { padding-block: clamp(85px, 11vw, 145px); }
.playlist-setup > h1 { max-width: 900px; }
.playlist-setup > p:not(.eyebrow) { max-width: 620px; margin: 28px 0 60px; color: var(--ink-soft); font-size: 1.12rem; }
.playlist-form { display: grid; gap: 38px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice-grid label { cursor: pointer; }
.choice-grid input { position: absolute; opacity: 0; }
.choice-grid span { min-height: 125px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line); font-family: var(--serif); font-size: 1.3rem; transition: .2s; }
.choice-grid small { margin-top: 8px; color: var(--ink-soft); font-family: var(--sans); font-size: .72rem; line-height: 1.45; }
.choice-grid input:checked + span { color: var(--paper); background: var(--forest); border-color: var(--forest); }
.choice-grid input:checked + span small { color: rgba(244,240,231,.68); }
.playlist-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.playlist-options label { display: grid; gap: 8px; color: var(--ink-soft); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.playlist-options select { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink); background: transparent; text-transform: none; }
.playlist-start { justify-self: start; }
.form-note { margin: -20px 0 0; color: var(--ink-soft); font-size: .72rem; }
.selection-note { margin: -8px 0 22px; }
.playlist-player { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: var(--forest); color: var(--paper); }
.player-backdrop { position: absolute; inset: -20px; opacity: .22; background-position: center; background-size: cover; filter: blur(28px) brightness(.6); transform: scale(1.08); }
.playlist-player::after { position: absolute; inset: 0; z-index: 0; content: ""; pointer-events: none; background: linear-gradient(90deg, rgba(10,18,14,.42), rgba(10,18,14,.84)); }
.player-topbar { position: relative; z-index: 3; height: 76px; padding: 0 clamp(20px, 4vw, 60px); display: flex; align-items: center; justify-content: space-between; color: rgba(244,240,231,.75); }
.player-piece { position: relative; z-index: 2; width: min(100%, 1560px); height: calc(100svh - 164px); margin-inline: auto; padding: 10px clamp(20px, 4vw, 64px) 20px; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(400px, .82fr); gap: clamp(42px, 6vw, 96px); align-items: center; }
.player-media { min-width: 0; height: min(70svh, 760px); display: grid; place-items: center; overflow: hidden; }
.player-media.has-video { width: auto; max-width: 100%; justify-self: center; aspect-ratio: 9 / 16; background: #101915; box-shadow: 0 35px 90px rgba(0,0,0,.32); }
.player-media img, .player-media video { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; background: #101915; }
.player-media img { box-shadow: 0 35px 90px rgba(0,0,0,.32); }
.player-media video.portrait-video { width: 100%; height: 100%; max-width: 100%; max-height: 100%; }
.player-copy { width: 100%; max-width: 600px; }
.player-copy h2 { font-size: clamp(2.7rem, 4.4vw, 5rem); line-height: .98; }
.player-copy blockquote { margin: 32px 0 0; font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.55; white-space: pre-line; }
.ai-disclosure { color: rgba(244,240,231,.55); font-size: .7rem; }
.player-progress { position: fixed; z-index: 4; left: 0; right: 0; bottom: 76px; height: 2px; background: rgba(244,240,231,.18); }
.player-progress span { display: block; width: 0; height: 100%; background: var(--gold); }
.player-controls { position: fixed; z-index: 4; left: 0; right: 0; bottom: 0; height: 76px; padding: 0 clamp(20px, 4vw, 60px); display: flex; align-items: center; gap: 18px; background: rgba(12,20,16,.7); backdrop-filter: blur(12px); }
.player-play { width: 49px; height: 49px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--forest); background: var(--paper); cursor: pointer; }
.player-controls .player-text-button:nth-of-type(5) { margin-left: auto; }
.player-status { position: fixed; z-index: 5; right: 20px; bottom: 86px; margin: 0; font-size: .72rem; }

/* Studio */
.studio-hero { padding-block: clamp(65px, 8vw, 110px) 55px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; }
.studio-hero h1 { font-size: clamp(3.2rem, 6.4vw, 6.4rem); }
.studio-hero > p { max-width: 470px; margin: 0 0 12px; color: var(--ink-soft); font-size: 1.05rem; }
.film-studio { padding-bottom: 110px; }
.studio-toolbar { min-height: 92px; padding: 16px 22px; display: grid; grid-template-columns: 1fr 1.25fr auto; gap: 20px; align-items: end; color: var(--paper); background: var(--forest); }
.studio-toolbar label, .duration-readout { display: grid; gap: 4px; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.studio-toolbar select { width: 100%; padding: 7px 24px 7px 0; border: 0; border-bottom: 1px solid rgba(244,240,231,.35); border-radius: 0; color: var(--paper); background: transparent; text-transform: none; }
.studio-toolbar option { color: var(--ink); background: var(--paper); }
.duration-readout { min-width: 90px; }
.duration-readout strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.film-studio > .studio-status { min-height: 46px; margin: 0; padding: 13px 22px; border: 1px solid var(--line); border-top: 0; color: var(--ink-soft); }
.film-studio > .studio-status.is-error { border-color: var(--terracotta); color: #8f2f25; background: rgba(169, 83, 60, .09); font-weight: 700; }
.director-grid, .finish-grid { display: grid; grid-template-columns: 1fr 1fr; }
.director-panel, .sound-panel { min-height: 520px; padding: clamp(30px, 5vw, 58px); border: 1px solid var(--line); border-top: 0; }
.director-panel + .director-panel { border-left: 0; }
.studio-panel-heading { margin: 0 0 38px; display: flex; gap: 15px; align-items: flex-start; }
.studio-panel-heading > span { margin-top: 6px; color: var(--terracotta); font-size: .68rem; }
.studio-panel-heading .eyebrow { margin-bottom: 5px; }
.studio-panel-heading h2 { font-size: clamp(2rem, 3vw, 3rem); }
.studio-label, .film-studio .upload-grid label, .publish-fields label { margin-bottom: 22px; display: grid; gap: 7px; color: var(--ink-soft); font-size: .7rem; font-weight: 700; letter-spacing: .06em; }
.film-studio input:not([type="checkbox"]), .film-studio textarea, .film-studio select { width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid rgba(32,39,34,.3); border-radius: 0; outline: none; color: var(--ink); background: transparent; }
.film-studio textarea { resize: vertical; }
.film-studio input:focus, .film-studio textarea:focus, .film-studio select:focus { border-bottom-color: var(--terracotta); }
.style-director { background: var(--paper-deep); }
.style-summary { min-height: 80px; color: var(--ink-soft); font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; }
.style-swatches { margin: 30px 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 52px; }
.style-editor { border-top: 1px solid var(--line); }
.style-editor summary { padding: 18px 0; cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .06em; }
.style-editor[open] summary { margin-bottom: 12px; }
.style-editor .studio-label { margin-bottom: 15px; }
.storyboard-section { padding: clamp(55px, 7vw, 90px) 0; }
.storyboard-heading { margin-bottom: 38px; display: flex; justify-content: space-between; gap: 50px; align-items: end; }
.storyboard-heading h2 { font-size: clamp(2.7rem, 5vw, 5rem); }
.storyboard-heading-actions { max-width: 390px; display: grid; justify-items: start; gap: 12px; }
.storyboard-heading-actions p { margin: 0; color: var(--ink-soft); }
.storyboard-heading-actions button:disabled { opacity: .42; cursor: not-allowed; }
.scene-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.scene-empty { min-height: 510px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; border: 1px dashed rgba(32,39,34,.28); color: var(--ink-soft); }
.scene-empty > span, .scene-card-top { color: var(--terracotta); font-size: .68rem; letter-spacing: .1em; }
.scene-card { min-width: 0; padding: 12px; border: 1px solid var(--line); background: #ebe3d6; }
.scene-card.library-target { outline: 2px solid var(--terracotta); outline-offset: 3px; }
.scene-card-top { padding: 3px 3px 11px; display: flex; justify-content: space-between; }
.scene-visual { position: relative; aspect-ratio: 9/16; margin-bottom: 16px; display: grid; place-items: center; overflow: hidden; color: rgba(244,240,231,.72); background: var(--forest); font-size: .7rem; text-align: center; }
.scene-visual > span { padding: 25px; }
.scene-visual img { width: 100%; height: 100%; object-fit: cover; }
.scene-visual small { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; color: var(--paper); background: rgba(10,20,15,.7); }
.scene-card label, .scene-card details { display: grid; gap: 5px; color: var(--ink-soft); font-size: .65rem; font-weight: 700; letter-spacing: .05em; }
.scene-card textarea { min-height: 6.25rem; color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.scene-card details { padding: 9px 0; border-bottom: 1px solid var(--line); }
.scene-card summary { cursor: pointer; }
.scene-duration { margin: 9px 0; grid-template-columns: 1fr 56px; align-items: center; }
.scene-duration input { padding: 4px 0 !important; }
.scene-motion { margin: 8px 0 2px; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.scene-motion input { width: 16px !important; height: 16px; padding: 0 !important; accent-color: var(--terracotta); }
.scene-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.scene-actions button, .version-nav button { min-height: 32px; padding: 5px; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; font-size: .62rem; }
.scene-actions .scene-library-button { grid-column: 1 / -1; color: var(--paper); background: var(--forest); }
.scene-actions button:disabled, .version-nav button:disabled, .film-studio button:disabled { opacity: .4; cursor: not-allowed; }
.version-nav { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 5px; color: var(--ink-soft); font-size: .58rem; }
.version-nav button { min-height: auto; border: 0; }
.text-version-nav { margin: 0 0 7px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.text-version-nav span, .image-version-nav span { text-align: center; }
.asset-library { padding: clamp(42px, 6vw, 72px); border: 1px solid var(--line); border-bottom: 0; background: var(--paper-deep); }
.asset-library-heading { margin-bottom: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; }
.asset-library-heading h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.asset-library-heading > p { max-width: 500px; margin: 0; color: var(--ink-soft); }
.asset-library-heading > div > p { max-width: 500px; margin: 0 0 14px; color: var(--ink-soft); }
.asset-library-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.asset-library-links .quiet-button { padding: 7px 10px; }
.frame-library-upload { display: inline-flex; align-items: center; cursor: pointer; }
.asset-grid { max-height: 520px; padding-right: 8px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; overflow: auto; scrollbar-gutter: stable; }
.asset-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); color: var(--ink); background: var(--paper); text-align: left; }
.asset-use { width: 100%; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; text-align: left; }
.asset-card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.asset-card span, .asset-card small { display: block; padding: 7px 9px 0; font-size: .62rem; }
.asset-card span { font-weight: 700; }
.asset-card small { padding-top: 1px; padding-bottom: 8px; color: var(--ink-soft); }
.asset-card:hover { outline: 2px solid var(--terracotta); outline-offset: -2px; }
.media-remove { padding: 6px 8px; border: 0; color: #8f2f25; background: transparent; cursor: pointer; font-size: .58rem; text-decoration: underline; }
.asset-card > .media-remove { width: 100%; border-top: 1px solid var(--line); text-align: left; }
.asset-empty { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); }
.frame-library-hero { padding-block: clamp(70px, 9vw, 125px) 65px; }
.frame-library-hero .back-link { margin-bottom: 55px; }
.frame-library-hero > p:last-child { max-width: 580px; margin: 28px 0 0 auto; color: var(--ink-soft); }
.frame-library-page { padding-bottom: 130px; }
.frame-searchbar { position: sticky; top: 0; z-index: 10; margin-bottom: 35px; padding: 18px 22px; display: grid; grid-template-columns: 1.5fr .7fr 1fr; gap: 22px; align-items: end; color: var(--paper); background: var(--forest); }
.frame-searchbar label { display: grid; gap: 5px; font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.frame-searchbar input, .frame-searchbar select { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(244,240,231,.35); border-radius: 0; color: var(--paper); background: transparent; }
.frame-searchbar select option { color: var(--ink); background: var(--paper); }
.frame-searchbar p { margin: 0 0 7px; color: var(--gold); font-size: .72rem; }
.frame-searchbar a { color: inherit; }
.frame-archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 15px; }
.frame-archive-card { min-width: 0; border: 1px solid var(--line); background: var(--paper-deep); }
.frame-archive-card > img { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: var(--forest); }
.frame-archive-copy { padding: 18px; }
.frame-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--terracotta); font-size: .61rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.frame-meta span + span::before { margin-right: 6px; content: "·"; }
.frame-archive-copy > p { min-height: 3em; font-family: var(--serif); }
.frame-archive-copy details { margin: 15px 0; color: var(--ink-soft); font-size: .7rem; }
.frame-archive-copy summary { cursor: pointer; font-weight: 700; }
.frame-tag-form { margin: 17px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.frame-tag-form label { display: grid; gap: 4px; color: var(--ink-soft); font-size: .62rem; font-weight: 700; }
.frame-tag-form input { min-width: 0; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.frame-tag-form button { padding: 7px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .62rem; }
.frame-archive-copy > .studio-action { width: 100%; }
.finish-grid { color: var(--paper); background: var(--forest); }
.sound-panel { border: 0; }
.sound-panel > p { max-width: 510px; color: rgba(244,240,231,.63); }
.sound-panel .studio-panel-heading > span, .sound-panel .eyebrow { color: var(--gold); }
.sound-panel .studio-action { color: var(--forest); background: var(--paper); border-color: var(--paper); }
.sound-panel .audio-preview { margin-top: 22px; }
.sound-panel .audio-preview span, .sound-panel .form-note, .sound-panel label { color: rgba(244,240,231,.6); }
.sound-panel input { color: var(--paper) !important; border-color: rgba(244,240,231,.3) !important; }
.sound-panel select, .sound-panel textarea { color: var(--paper); border-color: rgba(244,240,231,.3); }
.sound-panel select option { color: var(--ink); background: var(--paper); }
.sound-card { margin-top: 22px; padding: 22px; border: 1px solid rgba(244,240,231,.14); background: rgba(244,240,231,.025); }
.sound-card + .sound-card { margin-top: 14px; }
.sound-card-heading { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.sound-card-heading > div { min-width: 0; display: flex; gap: 10px; align-items: baseline; }
.sound-card-heading > div > span { color: var(--gold); font-size: .62rem; letter-spacing: .08em; }
.sound-card-heading h3 { color: var(--paper); font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.sound-card-heading > small { max-width: 220px; color: rgba(244,240,231,.48); font-size: .62rem; line-height: 1.45; text-align: right; }
.sound-card-heading .quiet-button { flex: 0 0 auto; color: rgba(244,240,231,.75); }
.voice-controls { margin-top: 0; }
.voice-pace-control { max-width: 280px; }
.voice-controls label > span { color: var(--gold); font-weight: 400; }
.voice-controls input[type="range"] { padding: 10px 0; accent-color: var(--gold); }
.voice-script { margin-top: 8px; }
.voice-script textarea { min-height: 11rem; color: var(--paper); background: rgba(244,240,231,.035); }
.voice-script small { color: rgba(244,240,231,.48); font-weight: 400; letter-spacing: 0; line-height: 1.45; }
.voice-tag-tools { margin: -2px 0 18px; display: grid; gap: 9px; }
.voice-tag-tools > span { color: rgba(244,240,231,.5); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.voice-tag-tools > div { display: flex; flex-wrap: wrap; gap: 7px; }
.voice-tag-tools [data-voice-tag] { padding: 7px 10px; color: rgba(244,240,231,.76); background: transparent; border: 1px solid rgba(244,240,231,.2); font: inherit; font-size: .64rem; cursor: pointer; }
.voice-tag-tools [data-voice-tag]:hover { color: var(--paper); border-color: var(--gold); }
.voice-script-reset { width: fit-content; padding: 0; color: rgba(244,240,231,.58); }
.voice-direction-details { border-top: 1px solid rgba(244,240,231,.12); }
.voice-direction-details summary, .sound-library-details summary { padding: 14px 0 4px; color: rgba(244,240,231,.66); cursor: pointer; font-size: .67rem; font-weight: 700; letter-spacing: .06em; }
.voice-direction-details[open] summary { margin-bottom: 14px; }
.voice-direction-details .studio-label { margin-bottom: 0; }
.sound-file-button { width: fit-content; margin: 0; display: inline-flex; align-items: center; cursor: pointer; color: var(--paper) !important; border-color: rgba(244,240,231,.35); }
.voice-generate-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: end; }
.voice-generate-row label { display: grid; gap: 7px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; }
.voice-generate-row label small { color: rgba(244,240,231,.48); font-size: .58rem; font-weight: 400; letter-spacing: 0; }
.sound-action-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.sound-action-row .studio-action { min-width: 190px; }
.narration-preview { margin-bottom: 0 !important; padding-top: 16px; border-top: 1px solid rgba(244,240,231,.1); }
.music-selection-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, .8fr); gap: 24px; align-items: end; }
.music-selection-summary > div { min-width: 0; display: grid; gap: 6px; }
.music-selection-summary small, .music-selection-summary label { color: rgba(244,240,231,.5); font-size: .65rem; font-weight: 700; letter-spacing: .06em; }
.music-selection-summary strong { overflow: hidden; color: var(--paper); font-family: var(--serif); font-size: 1.12rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.music-selection-summary label { display: grid; gap: 5px; }
.music-selection-summary label > span { color: var(--gold); font-weight: 400; }
.music-selection-summary input[type="range"] { padding: 9px 0; accent-color: var(--gold); }
.music-preview { margin-bottom: 8px !important; }
.music-preview audio { width: 100%; }
.soundtrack-cue { margin: 12px 0 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: end; }
.soundtrack-cue label { display: grid; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; }
.soundtrack-cue input { font-variant-numeric: tabular-nums; }
.soundtrack-cue .quiet-button { min-height: 35px; color: var(--paper); border-color: rgba(244,240,231,.3); }
.soundtrack-cue small { grid-column: 1 / -1; color: rgba(244,240,231,.48); font-size: .62rem; line-height: 1.45; }
.sound-panel code { color: var(--gold); }
.sound-library-details { margin-top: 12px; border-top: 1px solid rgba(244,240,231,.12); }
.sound-library-details[open] summary { padding-bottom: 12px; }
.music-library { max-height: 245px; padding-right: 8px; overflow: auto; border-block: 1px solid rgba(244,240,231,.12); scrollbar-gutter: stable; }
.music-library-item { padding: 9px 0; display: grid; grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.2fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid rgba(244,240,231,.12); }
.music-library-item:last-child { border-bottom: 0; }
.music-library-item > button:first-child { min-width: 0; padding: 7px; border: 1px solid rgba(244,240,231,.2); color: var(--paper); background: transparent; cursor: pointer; text-align: left; }
.music-library-item > button:first-child span, .music-library-item > button:first-child small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-library-item > button:first-child small { margin-top: 3px; color: rgba(244,240,231,.5); }
.music-library-item.selected > button:first-child { border-color: var(--gold); background: rgba(216,184,121,.1); }
.music-library-item audio { width: 100%; height: 32px; }
.music-library-item .media-remove { color: #e2a28f; }
.music-credit { margin: 18px 0 10px !important; }
.frame-remove { margin-top: 8px; }
.sound-divider { margin: 35px 0 25px; border-top: 1px solid rgba(244,240,231,.18); }
.sound-divider span { position: relative; top: -13px; padding-right: 12px; color: rgba(244,240,231,.55); background: var(--forest); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.film-preview-panel { padding: 35px; display: block; background: #0d1713; }
.preview-sticky { position: sticky; top: 24px; width: 100%; display: grid; justify-items: center; align-content: start; }
.phone-preview { position: relative; width: min(310px, 100%); aspect-ratio: 9/16; overflow: hidden; background: #17251f; box-shadow: 0 25px 70px rgba(0,0,0,.35); }
.preview-stage { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(244,240,231,.5); background-position: center; background-size: cover; transition: background-image var(--preview-transition-duration, .5s) ease; }
.preview-stage.scene-animated { animation: studio-scene-drift 4s ease-out both; }
@keyframes studio-scene-drift { from { transform: scale(1); } to { transform: scale(1.045); } }
.preview-stage::after { position: absolute; inset: 50% 0 0; content: ""; background: linear-gradient(transparent, rgba(5,10,8,.78)); }
.preview-caption { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 55px; color: var(--paper); font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; text-align: center; white-space: pre-line; }
.final-video-settings { width: min(390px, 100%); margin-top: 24px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; border: 1px solid rgba(244,240,231,.16); background: rgba(244,240,231,.025); }
.final-video-heading { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.final-video-heading span { color: var(--paper); font-family: var(--serif); font-size: 1.25rem; }
.final-video-heading small { max-width: 55%; overflow: hidden; color: var(--gold); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.final-video-settings > label { min-width: 0; display: grid; gap: 6px; color: rgba(244,240,231,.58); font-size: .62rem; font-weight: 700; letter-spacing: .05em; }
.final-video-settings select { width: 100%; min-width: 0; padding: 7px 0; border: 0; border-bottom: 1px solid rgba(244,240,231,.24); color: var(--paper); background: transparent; }
.final-video-settings select option { color: var(--ink); background: var(--paper); }
.final-video-settings input[type="range"] { width: 100%; padding: 7px 0; accent-color: var(--gold); }
.final-video-settings label > span { color: var(--gold); font-weight: 400; }
.final-video-settings .final-music-fade { grid-column: 1 / -1; grid-template-columns: auto 1fr; }
.final-video-settings .final-music-fade input { width: 16px; height: 16px; accent-color: var(--gold); }
.preview-controls { width: min(390px, 100%); margin-top: 18px; display: flex; justify-content: space-between; align-items: center; color: rgba(244,240,231,.7); font-size: .7rem; }
.render-result { width: min(390px, 100%); margin-top: 18px; display: grid; gap: 10px; }
.render-result video { width: 100%; max-height: 350px; }
.render-result a { color: var(--paper); font-size: .72rem; }
.publish-panel { padding: clamp(40px, 6vw, 70px); display: grid; grid-template-columns: .75fr 1.25fr; gap: 55px; border: 1px solid var(--line); border-top: 0; }
.publish-panel h2 { font-size: clamp(2rem, 3.4vw, 3.8rem); }
.publish-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
.publish-panel > .button { grid-column: 2; justify-self: start; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.form-grid.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.studio-action { min-height: 45px; padding: 10px 18px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); cursor: pointer; }
.studio-action span { margin-left: 7px; opacity: .6; font-size: .7rem; }
.studio-status { min-height: 1.5em; color: var(--terracotta); font-size: .75rem; }
.audio-preview { margin: 18px 0 24px; color: var(--ink-soft); font-size: .78rem; }
.audio-preview audio { width: 100%; }
.check-label { align-content: center; grid-template-columns: auto 1fr; align-items: center; }
.check-label input { width: 18px; height: 18px; accent-color: var(--forest); }
.studio-library { padding-bottom: 120px; }
.studio-list { border-top: 1px solid var(--line); }
.studio-row { padding: 18px 0; display: flex; justify-content: space-between; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); }
.studio-row > div { display: grid; grid-template-columns: 12px 1fr; align-items: center; }
.studio-row strong, .studio-row small { grid-column: 2; }
.studio-row small { color: var(--ink-soft); }
.status-dot { width: 7px; height: 7px; grid-row: 1 / span 2; border-radius: 50%; background: #948e82; }
.status-dot.published { background: #47735b; }

/* Studio history */
.history-page { padding-bottom: 130px; }
.history-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.history-stat-grid article { min-height: 145px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: var(--paper-deep); }
.history-stat-grid article:last-child { border-right: 0; }
.history-stat-grid span { color: var(--ink-soft); font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.history-stat-grid strong { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 400; }
.history-breakdown { margin: 14px 0 75px; color: var(--ink-soft); font-size: .74rem; }
.history-request-heading { margin-top: 85px; }
.history-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.history-table { width: 100%; border-collapse: collapse; font-size: .72rem; }
.history-table th, .history-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.history-table th { color: var(--ink-soft); background: var(--paper-deep); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.history-table tbody tr:last-child td { border-bottom: 0; }
.history-table small { max-width: 340px; margin-top: 4px; display: block; color: var(--ink-soft); }
.history-status { color: #47735b; font-weight: 700; text-transform: capitalize; }
.history-status.failed { color: var(--terracotta); }

.site-footer { width: var(--shell); margin: 80px auto 0; padding-block: 55px 35px; display: grid; grid-template-columns: 1fr auto; gap: 50px; border-top: 1px solid var(--line); }
.footer-wordmark { font-family: var(--serif); font-size: 1.45rem; text-decoration: none; }
.site-footer p { margin: 5px 0 0; color: var(--ink-soft); }
.site-footer nav { display: flex; gap: 22px; font-size: .78rem; }
.site-footer nav a { text-decoration: none; }
.fine-print { grid-column: 1/-1; padding-top: 35px; border-top: 1px solid var(--line); font-size: .72rem; }

@media (max-width: 920px) {
  :root { --shell: min(100% - 28px, 740px); }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; right: 14px; z-index: 20; width: min(270px, calc(100vw - 28px)); padding: 24px; display: none; flex-direction: column; gap: 20px; color: var(--paper); background: var(--forest); }
  .site-nav.open { display: flex; }
  .site-nav a { color: inherit; }
  .home-title { grid-template-columns: 1fr; }
  .home-title > p:last-child { max-width: 520px; }
  .home-reflection, .about-story, .player-piece, .studio-hero, .director-grid, .finish-grid, .publish-panel { grid-template-columns: 1fr; }
  .home-reflection-media { min-height: 440px; }
  .reflection-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pull-quote { position: static; }
	.scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.asset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.frame-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.history-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.history-stat-grid article:nth-child(2) { border-right: 0; }
	.history-stat-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.frame-searchbar { grid-template-columns: 1fr 1fr; }
	.frame-searchbar p { grid-column: 1 / -1; }
	.director-panel + .director-panel { border-left: 1px solid var(--line); }
	.publish-panel > .button { grid-column: 1; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .player-piece { padding-top: 0; padding-bottom: 28px; gap: 22px; align-content: start; overflow-y: auto; }
  .player-media { height: min(43svh, 520px); }
  .player-copy { max-width: 680px; margin-inline: auto; align-self: start; }
  .player-copy blockquote { margin-top: 18px; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .home-stage { padding-top: 55px; }
  .home-reflection-media { min-height: 310px; }
  .home-reflection-copy { padding: 36px 24px 42px; }
  .home-actions { gap: 14px; }
  .home-actions .circle-button:last-child { margin-left: 0; }
  .home-play-cta, .message-controls { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
  .reflection-grid, .feeling-grid, .form-grid, .form-grid.two-column, .playlist-options, .choice-grid { grid-template-columns: 1fr; }
  .feeling-card { min-height: 280px; border-right: 0; }
  .reflection-hero { width: 100%; }
  .reflection-reading > blockquote { font-size: 1.85rem; }
  .share-panel .quiet-button { margin: 12px 0 0; display: inline-block; }
  .choice-grid span { min-height: 95px; }
  .playlist-setup { padding-top: 65px; }
  .player-topbar { height: 58px; }
  .player-piece { height: calc(100svh - 148px); padding-inline: 16px; }
  .player-media { height: 37svh; }
  .player-copy h2 { font-size: clamp(2.2rem, 11vw, 3.7rem); }
  .player-copy blockquote { font-size: 1.05rem; line-height: 1.42; }
  .player-controls { height: 70px; padding-inline: 14px; gap: 11px; overflow-x: auto; }
  .player-progress { bottom: 70px; }
  .player-controls .player-text-button:nth-of-type(5) { margin-left: 0; }
  .field-with-action { grid-template-columns: 1fr; }
  .upload-grid { padding-top: 15px; }
	.studio-toolbar, .scene-grid, .publish-fields { grid-template-columns: 1fr; }
	.asset-library { padding: 32px 18px; }
	.asset-library-heading { grid-template-columns: 1fr; gap: 15px; }
	.asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.frame-archive-grid, .frame-searchbar { grid-template-columns: 1fr; }
	.history-stat-grid { grid-template-columns: 1fr; }
	.history-stat-grid article, .history-stat-grid article:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
	.history-stat-grid article:last-child { border-bottom: 0; }
	.frame-searchbar p { grid-column: auto; }
	.studio-toolbar { align-items: stretch; }
	.voice-generate-row { grid-template-columns: 1fr; }
	.sound-card { padding: 18px; }
	.sound-card-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
	.sound-card-heading > small { max-width: none; text-align: left; }
	.sound-action-row, .sound-action-row .studio-action, .sound-action-row .sound-file-button { width: 100%; }
	.sound-action-row .sound-file-button { justify-content: center; }
	.music-selection-summary, .soundtrack-cue { grid-template-columns: 1fr; }
	.soundtrack-cue small { grid-column: 1; }
	.final-video-settings { grid-template-columns: 1fr; }
	.final-video-heading, .final-video-settings .final-music-fade { grid-column: 1; }
	.storyboard-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
	.scene-empty { min-height: 220px; }
	.director-panel, .sound-panel { min-height: auto; padding: 30px 22px; }
	.film-preview-panel { padding: 30px 18px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { flex-direction: column; }
  .fine-print { grid-column: auto; }
}

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