:root {
  --paper: #f5efe4;
  --paper-2: #ece3d3;
  --card: #fbf8f2;
  --ink: #241d17;
  --muted: #7d6f60;
  --line: #d9cdb9;
  --accent: #a3573b;
  --gold: #b6955a;
  --night: #16120e;
  --night-ink: #efe6d6;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 60; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  font-size: 12px; font-weight: 400;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.mono { font-family: var(--serif); font-size: 22px; letter-spacing: .08em; }
.mono i { color: var(--accent); font-weight: 300; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border: 1px solid var(--ink);
  transition: background .3s, color .3s, border-color .3s;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost.light { border-color: rgba(239,230,214,.4); color: var(--night-ink); }
.btn-ghost.light:hover { background: var(--night-ink); color: var(--night); }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- Hero ---------- */
.hero {
  --h-ink: var(--ink);
  --h-muted: #4f4338;
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 0 var(--gutter);
  overflow: hidden;
  background: #e9dfcf;
  color: var(--h-ink);
  transition: color 1.2s;
}
.hero[data-ink=light] { --h-ink: #f6eee2; --h-muted: rgba(246,238,226,.82); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 40% at 50% 42%, rgba(255,250,240,.22), transparent 70%);
  transition: background 1.2s;
}
.hero[data-ink=light] .hero-veil { background: radial-gradient(60% 40% at 50% 42%, rgba(10,8,20,.28), transparent 70%); }

.topnav {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0;
}
.topnav-links { display: flex; gap: 28px; }
.topnav-links a {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none; color: var(--h-muted); transition: color .2s;
}
.topnav-links a:hover { color: var(--h-ink); }
.hero .mono i, .hero .amp { color: var(--accent); }
.hero[data-ink=light] .mono i, .hero[data-ink=light] .amp { color: #e3b878; }

.hero-inner {
  position: relative; z-index: 3;
  text-align: center;
  margin: clamp(16px, 5vh, 64px) auto 0;
  max-width: 1100px;
}
.hero .eyebrow { color: var(--h-muted); }
.names {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(58px, 9.6vw, 150px);
  line-height: .95; letter-spacing: -.015em;
  margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  column-gap: .22em;
  text-shadow: 0 1px 30px rgba(0,0,0,.08);
}
.hero[data-ink=light] .names { text-shadow: 0 2px 40px rgba(0,0,0,.35); }
.mask { display: inline-block; overflow: hidden; padding: 0 .04em .12em; margin-bottom: -.12em; }
.mask > span { display: inline-block; transform: translateY(105%); animation: lineup 1.2s var(--ease) var(--d) forwards; }
.names .amp { font-style: italic; font-size: .7em; padding-right: .12em; }
@keyframes lineup { to { transform: none; } }

.lede {
  font-family: var(--serif); font-size: clamp(19px, 2.1vw, 23px);
  font-style: italic; font-weight: 400;
  color: var(--h-muted); max-width: 540px; margin: 22px auto 0; line-height: 1.45;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero .btn-solid { background: var(--h-ink); color: var(--paper); border-color: var(--h-ink); }
.hero[data-ink=light] .btn-solid { color: #1b1712; }
.hero .btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero .btn-ghost { border-color: var(--h-ink); color: var(--h-ink); backdrop-filter: blur(6px); background: rgba(255,255,255,.08); }
.hero .btn-ghost:hover { background: var(--h-ink); color: var(--paper); }
.hero[data-ink=light] .btn-ghost:hover { color: #1b1712; }

.stage-in { opacity: 0; transform: translateY(10px); animation: rise 1s var(--ease) var(--d) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.fan {
  position: relative; z-index: 2;
  flex: 1; min-height: clamp(170px, 26vh, 300px);
  margin-top: clamp(20px, 4vh, 48px);
}
.fan .print {
  position: absolute; left: 50%; bottom: -36px;
  width: clamp(104px, 13vw, 190px); aspect-ratio: 4/5;
  background: var(--card); padding: 7px 7px 26px;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 22px 44px -18px rgba(0,0,0,.5);
  transform-origin: 50% 130%;
  translate: -50% 0;
  transform: translateX(var(--x)) translateY(calc(var(--y) + 120px)) rotate(var(--r));
  opacity: 0;
  animation: deal 1.3s var(--ease) calc(.9s + var(--i) * .09s) forwards;
  transition: transform .5s var(--ease);
}
.fan .print img { width: 100%; height: 100%; object-fit: cover; }
.fan .print:hover { transform: translateX(var(--x)) translateY(calc(var(--y) - 14px)) rotate(var(--r)); }
.fan { pointer-events: none; }
.fan .print { pointer-events: auto; }
@keyframes deal {
  to { opacity: 1; transform: translateX(var(--x)) translateY(var(--y)) rotate(var(--r)); }
}

.scene-switch {
  position: relative; z-index: 4;
  display: inline-flex; gap: 4px; padding: 4px; margin-top: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.hero[data-ink=light] .scene-switch { background: rgba(20,16,30,.25); border-color: rgba(255,255,255,.18); }
.scene-switch button {
  border: 0; background: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--h-ink); opacity: .75;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .3s, opacity .3s, color .3s;
}
.scene-switch button:hover { opacity: 1; }
.scene-switch button[aria-checked=true] { background: var(--h-ink); color: #f8f2e8; opacity: 1; }
.hero[data-ink=light] .scene-switch button[aria-checked=true] { color: #1b1712; }
.scene-switch svg { width: 14px; height: 14px; flex: none; }

/* ---------- Story line (scroll-linked fill) ---------- */
.story { padding: clamp(90px, 14vw, 180px) var(--gutter); background: var(--paper); }
.fill {
  max-width: 980px; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4.4vw, 58px); line-height: 1.18; letter-spacing: -.01em;
}
.fill .w { opacity: .16; transition: opacity .25s linear; }
.fill .w.on { opacity: 1; }
.fill em { font-style: italic; color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: clamp(80px, 12vw, 150px) var(--gutter); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 7vw, 84px); line-height: 1; margin: 0;
  letter-spacing: -.01em;
}
.section-head .sub {
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted);
  margin: 18px auto 0; line-height: 1.45;
}
.section-head.on-dark .eyebrow, .section-head.on-dark .sub { color: #9c8e7c; }
.section-head.on-dark h2 { color: var(--night-ink); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Composer ---------- */
.share { background: var(--paper-2); }
.composer {
  max-width: 820px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(16px, 4vw, 40px);
  box-shadow: 0 30px 60px -40px rgba(36,29,23,.35);
}
.drop {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 40px 16px;
  border: 1px dashed #c4b398;
  cursor: pointer; text-align: center;
  transition: background .25s, border-color .25s;
}
.drop:hover, .drop.over { background: #f6efe3; border-color: var(--accent); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { width: 44px; color: var(--accent); }
.drop-title { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.drop-hint { font-size: 13px; color: var(--muted); letter-spacing: .04em; }

.items { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.item {
  counter-increment: item;
  position: relative;
  display: grid; grid-template-columns: 28px 112px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  background: var(--card);
  touch-action: pan-y;
}
.item:first-child { margin-top: 10px; }
.item.dragging { z-index: 5; box-shadow: 0 24px 50px -20px rgba(36,29,23,.45); border-color: transparent; transition: none; }
.item.settling { transition: transform .25s var(--ease); }
.grip {
  align-self: center;
  width: 28px; height: 56px; border: 0; background: none; cursor: grab;
  display: grid; place-items: center; color: #b4a48c; border-radius: 6px;
  touch-action: none;
}
.grip:hover, .grip:focus-visible { color: var(--ink); background: var(--paper-2); outline: none; }
.item.dragging .grip { cursor: grabbing; }
.grip svg { width: 12px; height: 20px; }
.thumb {
  position: relative; width: 112px; height: 140px; background: var(--paper-2); overflow: hidden;
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb::before {
  content: counter(item, decimal-leading-zero);
  position: absolute; left: 6px; top: 5px; z-index: 1;
  font-size: 11px; letter-spacing: .14em; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.thumb .badge {
  position: absolute; right: 6px; bottom: 6px; z-index: 1;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(20,16,12,.7); color: #fff; padding: 3px 7px; border-radius: 99px;
}
.thumb .veil {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; text-align: center;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(251,248,242,.86); color: var(--ink);
}
.fields { display: grid; gap: 12px; min-width: 0; align-content: start; }
.row { display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.slider { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; }
.slider output { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ink); min-width: 48px; text-align: right; }
.remove {
  position: absolute; top: 12px; right: 0;
  border: 0; background: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 6px;
}
.remove:hover { color: var(--accent); }

input[type=range] {
  -webkit-appearance: none; appearance: none; flex: 1; min-width: 80px;
  height: 22px; background: transparent; cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--accent) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 2px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 2px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--accent); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--accent); }

input[type=text], textarea, select {
  width: 100%;
  font: inherit; font-weight: 300; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 8px 0; border-radius: 0;
  outline: none; transition: border-color .2s;
}
textarea { resize: vertical; min-height: 44px; font-family: var(--serif); font-size: 19px; font-style: italic; line-height: 1.4; padding-right: 28px; }
textarea::placeholder, input::placeholder { color: #b0a290; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
select {
  width: auto; cursor: pointer; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 22px;
}

.composer-foot { margin-top: 30px; display: grid; gap: 30px; }
.tracks { border: 0; padding: 0; margin: 0; min-width: 0; }
.tracks legend { padding: 0; margin-bottom: 12px; }
.track-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.track {
  position: relative; display: grid; gap: 2px;
  padding: 12px 14px 12px 46px; text-align: left;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.track:hover { border-color: #c4b398; }
.track[aria-checked=true] { border-color: var(--accent); background: #f8efe6; }
.track b { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.1; }
.track small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.track .listen {
  position: absolute; left: 10px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.track .listen svg { width: 11px; height: 11px; }
.track.playing .listen { background: var(--accent); color: #fff; border-color: var(--accent); }

.from { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.field { flex: 1 1 220px; display: grid; gap: 2px; }
.field span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input { font-size: 18px; }
.from-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.status { min-height: 24px; margin: 18px 0 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--accent); }

/* ---------- Film ---------- */
.film { background: var(--night); color: var(--night-ink); }
.stage-wrap { max-width: 1120px; margin: 0 auto; }
.who { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.who button {
  border: 1px solid rgba(239,230,214,.2); background: none; cursor: pointer;
  padding: 7px 16px; border-radius: 999px; color: #a6977f;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
}
.who button:hover { color: var(--night-ink); border-color: rgba(239,230,214,.45); }
.who button[aria-pressed=true] { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.stage {
  position: relative; margin: 0 auto;
  background: #0d0a08;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(239,230,214,.08);
  transition: max-width .5s var(--ease);
}
.stage[data-format=wide] { max-width: 1120px; }
.stage[data-format=story] { max-width: 400px; }
.stage canvas { display: block; width: 100%; height: auto; }
.play {
  position: absolute; left: 50%; bottom: 12%; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px 12px 18px; border-radius: 999px;
  border: 1px solid rgba(239,230,214,.4); background: rgba(22,18,14,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--night-ink); cursor: pointer;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  transition: background .3s, opacity .3s;
}
.play svg { width: 18px; height: 18px; }
.play:hover { background: rgba(239,230,214,.16); }
.stage.playing .play { opacity: 0; pointer-events: none; }
.stage.playing { cursor: pointer; }
.scrub { height: 2px; background: rgba(239,230,214,.12); margin: 0 auto; cursor: pointer; position: relative; }
.scrub::before { content: ""; position: absolute; inset: -10px 0; }
.scrub-fill { height: 100%; width: 0; background: var(--gold); }
.controls { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: 28px; }
.seg { display: inline-flex; border: 1px solid rgba(239,230,214,.22); border-radius: 999px; padding: 3px; }
.seg button {
  border: 0; background: none; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #a6977f;
  transition: background .25s, color .25s;
}
.seg button[aria-pressed=true] { background: var(--night-ink); color: var(--night); }

/* ---------- Reels feed ---------- */
.feed {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: clamp(36px, 5vw, 64px) clamp(24px, 3vw, 44px);
  max-width: 1180px; margin: 0 auto;
}
.post {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  text-align: left; color: inherit; font: inherit;
}
.stack { position: relative; aspect-ratio: 5 / 4; margin-bottom: 22px; }
.stack .print {
  position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 4 / 5;
  background: var(--card); padding: 7px 7px 24px;
  box-shadow: 0 1px 1px rgba(36,29,23,.06), 0 18px 36px -18px rgba(36,29,23,.45);
  transform: translate(-50%, -50%) rotate(var(--r)) translate(var(--x), 0);
  transition: transform .6s var(--ease);
}
.stack .print img { width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); }
.stack .p0 { --r: -1.5deg; --x: 0%; z-index: 3; }
.stack .p1 { --r: 6deg; --x: 14%; z-index: 2; }
.stack .p2 { --r: -8deg; --x: -14%; z-index: 1; }
.post:hover .p1, .post:focus-visible .p1 { --r: 11deg; --x: 30%; }
.post:hover .p2, .post:focus-visible .p2 { --r: -13deg; --x: -30%; }
.post:hover .p0, .post:focus-visible .p0 { --r: 0deg; }
.post-play {
  position: absolute; z-index: 4; left: 50%; top: 46%; translate: -50% -50%;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251,248,242,.9); color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.45);
  opacity: 0; scale: .9; transition: opacity .3s, scale .3s var(--ease);
}
.post-play svg { width: 16px; height: 16px; margin-left: 3px; }
.post:hover .post-play, .post:focus-visible .post-play { opacity: 1; scale: 1; }
.post:focus-visible { outline: none; }
.post-text { text-align: center; padding: 0 8px; }
.post h3 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 30px; line-height: 1.15; margin: 0; }
.post-meta { margin: 10px 0 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
.feed-cta { text-align: center; margin: clamp(48px, 7vw, 80px) 0 0; }
.title-field input { font-family: var(--serif); font-style: italic; font-size: 24px; }

.tile-cap { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; margin: 12px 4px 4px; }
.tile-cap:empty { display: none; }
.tile-meta { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 8px 4px 0; }
.tile-meta:empty { display: none; }
.tile-hide {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  background: rgba(36,29,23,.75); color: #fff; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
}
.badge {
  position: absolute; right: 8px; bottom: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: .12em;
  background: rgba(20,16,12,.7); color: #fff; padding: 4px 9px; border-radius: 99px;
}
.badge svg { width: 9px; height: 9px; }

/* ---------- Reel viewer ---------- */
.reel-view {
  border: 0; padding: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; margin: 0;
  background: var(--night); color: var(--night-ink); overflow-y: auto;
}
.reel-view::backdrop { background: rgba(10,8,6,.6); }
.rv-inner { max-width: 1120px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) var(--gutter) 80px; }
.rv-head { text-align: center; margin-bottom: 28px; }
.rv-head .eyebrow { color: #9c8e7c; }
.rv-head h3 { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; margin: 0; }
.rv-meta { margin: 14px 0 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #9c8e7c; }
.rv-stage { box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(239,230,214,.08); cursor: pointer; }
.rv-stage canvas { display: block; width: 100%; height: auto; }
.rv-items { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.rv-item { position: relative; cursor: zoom-in; }
.rv-item .media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #221c16; }
.rv-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rv-item:hover img { transform: scale(1.04); }
.rv-item .tile-cap { color: #f1e8da; margin: 12px 0 0; font-size: 17px; }
.rv-item .tile-meta { color: #9c8e7c; margin: 6px 0 0; }
.rv-item .tile-hide { top: 8px; right: 8px; }
.empty-wall { text-align: center; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }

.foot { text-align: center; padding: 64px var(--gutter) 72px; border-top: 1px solid var(--line); }
.foot p { margin: 8px 0 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

/* ---------- Dialogs ---------- */
.lightbox, .preview {
  border: 0; padding: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; margin: 0;
  background: rgba(22,18,14,.95); color: var(--night-ink);
}
.lightbox::backdrop, .preview::backdrop { background: transparent; }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px var(--gutter); gap: 18px; }
.lb-media img, .lb-media video { max-height: 76vh; width: auto; max-width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { text-align: center; max-width: 640px; }
.lb-caption { font-family: var(--serif); font-style: italic; font-size: 24px; margin: 0; line-height: 1.35; }
.lb-caption:empty { display: none; }
.lb-meta { margin: 8px 0 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #9c8e7c; }
.lb-close { position: absolute; top: 14px; right: 18px; border: 0; background: none; font-size: 40px; line-height: 1; cursor: pointer; color: var(--night-ink); padding: 8px; z-index: 2; }
.preview-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px var(--gutter); }
.preview canvas { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.preview-bar { display: flex; gap: 18px; align-items: center; font-variant-numeric: tabular-nums; color: #a6977f; letter-spacing: .12em; }

@media (max-width: 640px) {
  .topnav-links { gap: 14px; }
  .topnav-links a { letter-spacing: .14em; font-size: 10.5px; }
  .scene-switch button { padding: 8px 10px; }
  .scene-switch button span { display: none; }
  .fan { min-height: 190px; }
  .item { grid-template-columns: 24px 84px 1fr; gap: 12px; }
  .thumb { width: 84px; height: 105px; }
  .from-actions, .from-actions .btn { width: 100%; }
  .from-actions .btn { flex: 1; }
  .rv-items { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .post h3 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage-in, .mask > span, .fan .print { animation-duration: .01s; animation-delay: 0s; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .stack .print, .post-play { transition: none; }
  .fill .w { opacity: 1; }
}
.scene-switch:empty { display: none; }
.composer.busy .grip, .composer.busy .remove { opacity: .3; pointer-events: none; }
.composer.busy .drop { opacity: .5; pointer-events: none; }
.reel-view .lb-close { position: fixed; }
