/* Live, animated mock-ups of the ReelFlix Studio UI, plus the template's motion pieces. Loaded after styles.css. */

/* ── scroll-linked hero stage ───────────────────────── */
.hero { padding-bottom: 40px; }
.hero-inner { will-change: transform, opacity; }
.stage { position: relative; width: min(1240px, 100% - 32px); margin: 70px auto 0; perspective: 2200px; }
.stage-inner { transform-origin: 50% 0; will-change: transform; }
.ui-scaler { position: relative; width: 100%; margin: 0 auto; aspect-ratio: 1240 / 850; }
.ui-scaler > .studio-ui { position: absolute; top: 0; left: 0; width: 1240px; height: 850px; transform-origin: 0 0; }

/* ── the Studio UI mock (design size 1240 × 850) ────── */
.studio-ui {
  display: grid; grid-template-columns: 228px 1fr; border-radius: 18px; overflow: hidden; background: #111112; color: #fff; font-size: 13px; line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 80px 140px -50px rgba(0, 0, 0, 0.95), 0 0 0 8px rgba(255, 255, 255, 0.03), 0 0 120px -40px rgba(253, 82, 30, 0.35);
  text-align: left;
}
.sui-side { background: #0d0d0e; border-right: 1px solid rgba(255, 255, 255, 0.07); padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.sui-logo { display: flex; align-items: center; gap: 7px; padding: 2px 6px 16px; }
.sui-logo img { height: 19px; }
.sui-logo span { font-size: 8.5px; font-weight: 700; letter-spacing: 0.22em; background: linear-gradient(90deg, #fd521e 0%, #ef3b48 55%, #ed3a57 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #ef3b48; }
.sui-item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 8px; color: rgba(255, 255, 255, 0.72); font-size: 12.5px; }
.sui-item svg { width: 14px; height: 14px; opacity: 0.8; }
.sui-item.sub { padding-left: 33px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.sui-item.active { background: rgba(255, 255, 255, 0.07); color: #fff; box-shadow: inset 2px 0 0 var(--ember); }
.sui-bal { margin-top: auto; padding: 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.sui-bal b { float: right; color: #fff; }
.sui-bal .bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); margin: 8px 0 6px; overflow: hidden; }
.sui-bal .bar i { display: block; height: 100%; width: 8%; background: var(--grad); transition: width 1.2s var(--ease); }
.sui-mode { display: grid; grid-template-columns: 1fr 1fr; margin-top: 8px; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); font-size: 11.5px; text-align: center; }
.sui-mode span { padding: 6px; border-radius: 7px; color: rgba(255, 255, 255, 0.55); }
.sui-mode span.on { background: rgba(255, 255, 255, 0.1); color: #fff; }
.sui-main { display: flex; flex-direction: column; min-width: 0; }
.sui-top { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.sui-top .crumb { font-size: 12.5px; color: rgba(255, 255, 255, 0.8); flex: 1; }
.sui-search { width: 250px; height: 30px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.03); display: flex; align-items: center; gap: 8px; padding: 0 10px; color: rgba(255, 255, 255, 0.4); font-size: 11.5px; }
.sui-search kbd { margin-left: auto; font: inherit; font-size: 10px; padding: 1px 5px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.12); }
.sui-new { height: 30px; padding: 0 12px; border-radius: 8px; background: var(--grad); display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12px; }
.sui-spend { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.09); display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255, 255, 255, 0.8); }
.sui-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #3b1d1d, #1f1f22); border: 1px solid rgba(255, 255, 255, 0.15); }
.sui-body { position: relative; flex: 1; padding: 26px 30px; display: grid; grid-template-columns: 1fr 236px; gap: 20px; align-content: start; overflow: hidden; }
.sui-h { font-family: var(--display); font-size: 30px; letter-spacing: -0.01em; margin: 0; grid-column: 1 / -1; }
.sui-sub { grid-column: 1 / -1; margin: -14px 0 0; color: rgba(255, 255, 255, 0.55); font-size: 12.5px; }
.composer { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.025); padding: 14px 16px; display: flex; flex-direction: column; min-height: 148px; transition: border-color 0.4s, box-shadow 0.4s; }
.composer.focus { border-color: rgba(253, 82, 30, 0.55); box-shadow: 0 0 0 4px rgba(253, 82, 30, 0.08); }
.composer .typed { font-size: 14px; color: rgba(255, 255, 255, 0.92); min-height: 62px; }
.composer .typed.empty { color: rgba(255, 255, 255, 0.35); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--ember); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer .foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.composer .chip { padding: 5px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); }
.composer .go { margin-left: auto; padding: 7px 14px; border-radius: 8px; background: rgba(253, 82, 30, 0.35); color: rgba(255, 255, 255, 0.7); font-weight: 600; transition: background 0.3s, transform 0.2s; }
.composer .go.ready { background: var(--grad); color: #fff; }
.composer .go.press { transform: scale(0.94); }
.quick { display: grid; gap: 8px; align-content: start; }
.quick div { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); }
.quick i { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.quick b { display: block; font-size: 12px; font-weight: 600; }
.quick small { color: rgba(255, 255, 255, 0.45); font-size: 10.5px; }
.run { grid-column: 1 / -1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.run.show { opacity: 1; transform: none; }
.run-card { border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.09); background: rgba(255, 255, 255, 0.025); padding: 14px 16px; }
.run-card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.run-card .head b { font-family: var(--display); font-size: 17px; font-weight: 400; }
.run-card .head .pill { margin-left: auto; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; background: rgba(253, 82, 30, 0.14); color: #ffb39b; border: 1px solid rgba(253, 82, 30, 0.4); }
.run-step { display: flex; align-items: center; gap: 9px; padding: 5px 0; color: rgba(255, 255, 255, 0.4); font-size: 12px; transition: color 0.4s; }
.run-step .dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.2); display: grid; place-items: center; flex: none; transition: all 0.4s; }
.run-step.on { color: #fff; }
.run-step.on .dot { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(253, 82, 30, 0.15); }
.run-step.on .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: pulse 1s ease-in-out infinite alternate; }
.run-step.done { color: rgba(255, 255, 255, 0.85); }
.run-step.done .dot { border-color: transparent; background: rgba(52, 199, 89, 0.9); }
.run-step.done .dot::after { content: "✓"; font-size: 9px; color: #fff; font-weight: 800; }
.run-step em { margin-left: auto; font-style: normal; color: rgba(255, 255, 255, 0.4); font-size: 11px; }
@keyframes pulse { to { opacity: 0.35; } }
.frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.frames div { aspect-ratio: 9 / 13; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); position: relative; }
.frames div::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.06) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.frames img { position: relative; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.8s var(--ease), transform 1.4s var(--ease); }
.frames div.in img { opacity: 1; transform: none; }
.frames div.in::before { display: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.needs { margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(253, 82, 30, 0.45); background: rgba(253, 82, 30, 0.08); font-size: 12px; opacity: 0.35; transition: opacity 0.5s; }
.needs.show { opacity: 1; }
.needs .t b { display: block; font-size: 12.5px; }
.needs .t span { color: rgba(255, 255, 255, 0.55); font-size: 11px; }
.needs .btns { margin-left: auto; display: flex; gap: 6px; }
.needs .btns span { padding: 6px 11px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); font-weight: 600; font-size: 11.5px; }
.needs .btns .ok { background: var(--grad); border-color: transparent; transition: transform 0.2s; }
.needs .btns .ok.press { transform: scale(0.92); }
.needs.done { border-color: rgba(52, 199, 89, 0.5); background: rgba(52, 199, 89, 0.08); }
.cost-card .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 12px; color: rgba(255, 255, 255, 0.7); }
.cost-card .row:last-of-type { border-bottom: 0; }
.cost-card .row b { color: #fff; font-weight: 600; }
.cost-card .meter { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); margin: 10px 0 6px; overflow: hidden; }
.cost-card .meter i { display: block; height: 100%; width: 2%; background: var(--grad); transition: width 1s var(--ease); }
.cost-card small { color: rgba(255, 255, 255, 0.45); font-size: 10.5px; }
.cast { display: flex; margin-top: 12px; }
.cast img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid #18181a; margin-left: -8px; }
.cast img:first-child { margin-left: 0; }
.cast span { margin-left: 10px; align-self: center; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); }

/* fake cursor */
.cursor { position: absolute; z-index: 20; left: 0; top: 0; pointer-events: none; transition: transform 1.1s var(--ease); }
.cursor svg { width: 20px; height: 20px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.cursor span { position: absolute; left: 16px; top: 16px; padding: 2px 8px; border-radius: 6px; background: var(--grad); font-size: 10.5px; font-weight: 600; white-space: nowrap; }

/* ── logo wall (cycling) ────────────────────────────── */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.lw-cell { position: relative; height: 104px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.lw-cell:nth-child(4n) { border-right: 0; }
.lw-cell:nth-last-child(-n + 4) { border-bottom: 0; }
.lw-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-size: 20px; color: rgba(255, 255, 255, 0.82);
  opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.lw-item img { width: 26px; height: 26px; object-fit: contain; }
.lw-item.on { opacity: 1; transform: none; filter: none; }
.lw-item.out { opacity: 0; transform: translateY(-14px); filter: blur(4px); }
.lw-item small { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-left: 2px; }
.lw-stat { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lw-stat b { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; }
.lw-stat span { font-size: 12px; color: var(--faint); margin-top: 6px; }

/* ── live bento: connect / write / in charge ───────── */
.live-bento { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.live-bento > article { padding: 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.live-bento > article:last-child { border-right: 0; }
.lb-stage { height: 330px; position: relative; display: grid; place-items: center; }
.icon-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 14px; }
.icon-grid div { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #1d1d20, #141416); border: 1px solid rgba(255, 255, 255, 0.08); transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s, opacity 0.5s; opacity: 0.45; }
.icon-grid div img { width: 30px; height: 30px; object-fit: contain; }
.icon-grid div.lit { opacity: 1; }
.icon-grid div.pulse { transform: translateY(-3px) scale(1.06); border-color: rgba(253, 82, 30, 0.6); box-shadow: 0 0 0 5px rgba(253, 82, 30, 0.1), 0 14px 30px -12px rgba(253, 82, 30, 0.6); opacity: 1; }
.icon-grid .hub { opacity: 1; border-color: rgba(253, 82, 30, 0.55); background: radial-gradient(circle at 50% 30%, #2a1612, #151416); box-shadow: 0 0 40px -6px rgba(253, 82, 30, 0.45); }
.icon-grid .hub img { width: 32px; height: 32px; }
.conn-status { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.conn-status .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--ember); animation: spin 0.8s linear infinite; }
.conn-status .ok { width: 16px; height: 16px; border-radius: 50%; background: #34c759; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #0b0b0c; }
.story-live { width: 100%; align-self: start; display: grid; gap: 14px; }
.story-live .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.story-live .who img { height: 15px; }
.story-live h4 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 25px; line-height: 1.18; letter-spacing: -0.01em; min-height: 90px; }
.story-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.quote-card { border-radius: 14px; background: #f6efe8; color: #18120f; padding: 14px 16px; font-size: 15px; line-height: 1.45; box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.9); transform: translateY(10px); opacity: 0; transition: all 0.7s var(--ease); }
.quote-card.show { transform: none; opacity: 1; }
.quote-card small { display: block; color: #7a6d66; font-size: 12px; margin-bottom: 4px; }
.quote-card mark { background: linear-gradient(transparent 55%, rgba(253, 82, 30, 0.35) 55%); background-size: 0 100%; background-repeat: no-repeat; color: inherit; transition: background-size 1.2s var(--ease) 0.4s; }
.quote-card.show mark { background-size: 100% 100%; }
.today { width: 100%; align-self: start; }
.today .top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.today .top b { color: #fff; font-weight: 600; }
.today-list { display: grid; gap: 8px; }
.ti { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.025); font-size: 13px; color: rgba(255, 255, 255, 0.85); animation: drop 0.6s var(--ease) both; }
.ti img { width: 16px; height: 16px; object-fit: contain; }
.ti .s { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ti.need { border-color: rgba(253, 82, 30, 0.5); background: rgba(253, 82, 30, 0.07); flex-wrap: wrap; }
.ti.need .s { color: #ffb39b; }
.ti .acts { flex-basis: 100%; display: flex; gap: 8px; margin-top: 6px; }
.ti .acts span { flex: 1; text-align: center; padding: 7px; border-radius: 9px; font-size: 12px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.12); }
.ti .acts .ok { background: var(--grad); border-color: transparent; }
.ti.approved { border-color: rgba(52, 199, 89, 0.4); background: rgba(52, 199, 89, 0.07); }
.ti.approved .s { color: #7ee2a0; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ── flow card (episode moving on its own) ─────────── */
.flow { position: relative; z-index: 2; display: grid; justify-items: center; gap: 0; padding: 34px 26px 26px; }
.flow-nodes { display: flex; gap: 48px; }
.flow-nodes div { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(18, 18, 19, 0.85); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); transition: box-shadow 0.4s, border-color 0.4s; }
.flow-nodes div.hot { border-color: rgba(253, 82, 30, 0.8); box-shadow: 0 0 0 6px rgba(253, 82, 30, 0.15); }
.flow-nodes img { width: 22px; height: 22px; object-fit: contain; }
.flow svg.wires { width: 340px; height: 60px; overflow: visible; }
.flow svg.wires path { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.2; }
.flow svg.wires path.dash { stroke: var(--ember); stroke-dasharray: 6 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.flow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(18, 18, 19, 0.85); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 13px; backdrop-filter: blur(8px); }
.flow-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
.flow-card { width: min(420px, 100%); margin-top: 16px; border-radius: 16px; background: rgba(16, 16, 17, 0.9); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(14px); padding: 16px 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95); min-height: 250px; }
.flow-card .fc-view { display: none; animation: fade 0.6s var(--ease); }
.flow-card .fc-view.on { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fc-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; color: var(--muted); }
.fc-row b { color: #fff; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.fc-row b img { width: 15px; height: 15px; }
.fc-row.reveal-row { opacity: 0; animation: rowin 0.5s var(--ease) forwards; }
@keyframes rowin { to { opacity: 1; } }
.fc-ok { margin-top: 12px; display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 12.5px; color: var(--muted); }
.fc-ok::before { content: "✓"; width: 16px; height: 16px; border-radius: 50%; background: #34c759; color: #0b0b0c; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.fc-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.fc-head .tag { margin-left: auto; font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); color: var(--muted); }
.fc-frames { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fc-frames img { aspect-ratio: 9 / 14; width: 100%; object-fit: cover; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); }
.fc-btns { display: flex; gap: 8px; margin-top: 12px; }
.fc-btns span { flex: 1; text-align: center; padding: 9px; border-radius: 10px; font-size: 12.5px; font-weight: 600; border: 1px solid rgba(255, 255, 255, 0.14); }
.fc-btns .ok { background: #fff; color: #0b0b0c; border-color: transparent; }
.fc-big { font-family: var(--display); font-size: 22px; margin: 2px 0 4px; }
.fc-done { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(52, 199, 89, 0.1); border: 1px solid rgba(52, 199, 89, 0.35); color: #9be8b6; font-size: 12.5px; display: flex; justify-content: space-between; }
.step .bar { height: 2px; background: rgba(255, 255, 255, 0.08); margin: 0 0 0 44px; overflow: hidden; border-radius: 2px; }
.step .bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.step.open .bar i { animation: fill var(--step-ms, 5200ms) linear forwards; }
@keyframes fill { to { width: 100%; } }

/* ── showcase auto-cycle progress ──────────────────── */
.work .line { grid-column: 1 / -1; height: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; border-radius: 2px; display: none; }
.work.active .line { display: block; }
.work .line i { display: block; height: 100%; width: 0; background: var(--grad); }
.work.active .line i { animation: fill 6000ms linear forwards; }
.work .stat { grid-column: 2 / -1; display: none; font-size: 13.5px; color: #ffb39b; }
.work.active .stat { display: block; }

/* ── footer reveal (the page sits on top, rounded) ─── */
.page-sheet { position: relative; z-index: 2; background: var(--bg); border-radius: 0 0 44px 44px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9); }
.footer.reveal-footer { position: relative; z-index: 0; margin-top: -44px; padding-top: 110px; border-top: 0;
  background: radial-gradient(70% 90% at 80% 0%, rgba(255, 255, 255, 0.18), transparent 60%), linear-gradient(160deg, #fd521e 0%, #ef3b48 55%, #b8142f 100%); color: #140606; }
.reveal-footer .display { color: #140606; }
.reveal-footer .foot-cols h5 { color: rgba(20, 6, 6, 0.55); }
.reveal-footer .foot-cols a { color: #140606; }
.reveal-footer .foot-cols a:hover { color: #fff; }
.reveal-footer .btn-dark { background: #140606; color: #fff; }
.reveal-footer .giant { background: none; color: #140606; -webkit-text-fill-color: #140606; opacity: 0.92; }
.reveal-footer .foot-bottom { background: transparent; border-top: 1px solid rgba(20, 6, 6, 0.18); color: rgba(20, 6, 6, 0.7); }
.reveal-footer .foot-bottom a:hover { color: #fff; }
.reveal-footer .note { font-size: 12px; color: rgba(20, 6, 6, 0.6); }

/* nav darkens after the hero */
.nav.scrolled { background: rgba(12, 12, 13, 0.82); }

/* section index chips like the template's numbered rows */
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 8px var(--ember); }

/* split headline words animate in */
.words .w { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.words.in .w { opacity: 1; transform: none; filter: none; }

@media (max-width: 1020px) {
  .live-bento { grid-template-columns: 1fr; }
  .live-bento > article { border-right: 0; border-bottom: 1px solid var(--line); }
  .live-bento > article:last-child { border-bottom: 0; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .lw-cell { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; }
  .lw-cell:nth-child(2n) { border-right: 0 !important; }
  .lw-cell:nth-last-child(-n + 2) { border-bottom: 0 !important; }
}
@media (max-width: 640px) {
  .stage { margin-top: 46px; }
  .lw-cell { height: 84px; }
  .lw-item { font-size: 15px; gap: 8px; }
  .lw-item img { width: 20px; height: 20px; }
  .lw-item small { display: none; }
  .lw-stat b { font-size: 26px; }
  .ui-scaler { overflow: hidden; border-radius: 14px; }
  .lb-stage { height: 300px; }
  .flow-nodes { gap: 22px; }
  .flow svg.wires { width: 260px; }
  .page-sheet { border-radius: 0 0 28px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .words .w { opacity: 1; transform: none; filter: none; }
}

/* ── hero headline rotator ──────────────────────────── */
.hero-h1 { max-width: 15ch !important; }
.rotator { display: inline-block; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), filter 0.45s var(--ease); }
.rotator.swap { opacity: 0; transform: translateY(0.25em); filter: blur(6px); }
.hero .pill-badge b { white-space: nowrap; }

/* ── cost teaser cards ──────────────────────────────── */
.cost-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cost-card-big { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 26px; display: grid; gap: 16px; position: relative; overflow: hidden; }
.cost-card-big::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, rgba(253, 82, 30, 0.18), transparent); }
.cc-name { font-family: var(--display); font-size: 22px; }
.cc-name small { display: block; font-family: var(--sans); font-size: 13px; color: var(--faint); margin-top: 4px; }
.cc-trad, .cc-rf { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.cc-trad span, .cc-rf span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.cc-trad b { font-family: var(--display); font-weight: 400; font-size: 30px; color: rgba(255, 255, 255, 0.55); text-decoration: line-through; text-decoration-color: rgba(253, 82, 30, 0.7); text-decoration-thickness: 2px; }
.cc-rf { border-color: rgba(253, 82, 30, 0.45); background: linear-gradient(180deg, rgba(253, 82, 30, 0.1), rgba(253, 82, 30, 0.02)); }
.cc-rf b { font-family: var(--display); font-weight: 400; font-size: 34px; }
.cc-trad em, .cc-rf em { font-style: normal; font-size: 13px; color: var(--muted); }
.cc-save { font-size: 13.5px; font-weight: 600; color: #ffb39b; }

/* ── pricing page: comparison table and calculator ─── */
.compare-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.ct-row { display: grid; grid-template-columns: 1.6fr 1.1fr 0.9fr 1fr 1fr; gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ct-row:last-child { border-bottom: 0; }
.ct-head { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); background: rgba(255, 255, 255, 0.02); }
.ct-name { font-weight: 600; }
.ct-name small { display: block; font-weight: 400; color: var(--faint); font-size: 13px; }
.ct-trad { color: rgba(255, 255, 255, 0.6); text-decoration: line-through; text-decoration-color: rgba(253, 82, 30, 0.6); }
.ct-rf { font-family: var(--display); font-size: 20px; color: #fff; }
.ct-row:not(.ct-head):hover { background: rgba(253, 82, 30, 0.04); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-in, .calc-out { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 30px; display: grid; gap: 22px; align-content: start; }
.calc-out { border-color: rgba(253, 82, 30, 0.45); background: linear-gradient(180deg, rgba(253, 82, 30, 0.1), var(--bg-2) 60%); }
.calc label { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.calc label b { color: #fff; float: right; font-weight: 600; }
.calc input[type=range] { width: 100%; accent-color: #fd521e; }
.tiers { display: flex; gap: 8px; flex-wrap: wrap; }
.tiers label { display: block; cursor: pointer; }
.tiers input { position: absolute; opacity: 0; pointer-events: none; }
.tiers span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.tiers input:checked + span { background: #fff; color: #0b0b0c; border-color: #fff; }
.tiers input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.calc-out .big { font-family: var(--display); font-size: clamp(56px, 7vw, 88px); line-height: 1; }
.calc-out .row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
.calc-out .row b { color: #fff; font-weight: 600; }
.footnote { color: var(--faint); font-size: 13px; max-width: 860px; margin-top: 20px; }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rate { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 28px; }
.rate.featured { border-color: rgba(253, 82, 30, 0.55); box-shadow: 0 40px 90px -50px rgba(253, 82, 30, 0.6); }
.rate .price { font-family: var(--display); font-size: 46px; line-height: 1; margin: 12px 0 6px; }
.rate .price small { font-family: var(--sans); font-size: 15px; color: var(--muted); }
.rate p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 1020px) {
  .cost-cards, .rates, .calc { grid-template-columns: 1fr; }
  .ct-head { display: none; }
  .ct-row { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .ct-row .ct-name { grid-column: 1 / -1; }
  .ct-row > span[data-label]::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-family: var(--sans); text-decoration: none; }
}

/* tour lightbox */
.tour-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(5, 5, 6, 0.82); backdrop-filter: blur(12px); animation: fade 0.35s var(--ease); }
.tour-modal[hidden] { display: none; }
.tour-box { position: relative; width: min(1120px, 100%); border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95), 0 0 120px -40px rgba(253, 82, 30, 0.4); background: #000; }
.tour-box video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.tour-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* pricing v2: raised Studio banner column */
.compare-table { position: relative; overflow: visible; isolation: isolate; margin-top: 40px; }
.compare-table .ct-row { position: relative; z-index: 1; grid-template-columns: 1.7fr 1.05fr 0.85fr 1.1fr 0.85fr 0.8fr; }
.rf-banner { position: absolute; top: -26px; bottom: -26px; z-index: 0; border-radius: 22px; pointer-events: none;
  background: linear-gradient(180deg, #fd521e 0%, #ef3b48 55%, #c81e3a 100%);
  box-shadow: 0 40px 80px -30px rgba(253, 82, 30, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 20px 60px -20px rgba(0, 0, 0, 0.9); transform: translateY(-6px); }
.rf-banner span { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: #fff; color: #0b0b0c; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); }
.ct-rf-h { color: rgba(255, 255, 255, 0.95) !important; font-weight: 700; }
.ct-rf { font-family: var(--display); font-size: 22px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
.ct-row .ct-rf, .ct-row .ct-rf-h { text-align: center; }
.ct-x { font-weight: 700; color: #ffb39b; }
.ct-row.is-hw { background: linear-gradient(90deg, rgba(255, 215, 140, 0.05), transparent 60%); }
.hw-tag { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #ffd38a; border: 1px solid rgba(255, 211, 138, 0.45); padding: 2px 7px; border-radius: 6px; margin: 0 0 5px; }
.ct-name { display: flex; flex-direction: column; align-items: flex-start; }
.compare-table .ct-row:not(.ct-head):hover { background: rgba(255, 255, 255, 0.03); }
.rate { position: relative; }
.rate .ribbon { position: absolute; top: -12px; right: 20px; padding: 5px 12px; border-radius: 999px; background: var(--grad); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.rate.featured { background: linear-gradient(180deg, rgba(253, 82, 30, 0.16), var(--bg-2) 70%); transform: translateY(-10px); }
.rate.featured .price { font-size: 56px; }

/* blockbuster showdown */
.showdown { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: stretch; }
.sd-card { border-radius: 26px; padding: 34px; display: grid; gap: 14px; align-content: start; border: 1px solid var(--line); position: relative; overflow: hidden; min-height: 250px; }
.sd-trad { background: linear-gradient(160deg, #1b1b1d, #111112); }
.sd-trad::after { content: ""; position: absolute; inset: 0; background: url("showcase/hero-ridge.jpg") center / cover; opacity: 0.12; filter: grayscale(1); }
.sd-rf { background: linear-gradient(160deg, #fd521e, #ef3b48 60%, #b8142f); border-color: transparent; box-shadow: 0 50px 100px -40px rgba(253, 82, 30, 0.8); transform: translateY(-10px); }
.sd-rf .eyebrow { color: rgba(255, 255, 255, 0.85); }
.sd-num { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(38px, 4.4vw, 70px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; min-width: 0; }
.sd-trad .sd-num { color: rgba(255, 255, 255, 0.55); text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: rgba(253, 82, 30, 0.8); }
.sd-meta { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.sd-meta span { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.sd-rf .sd-meta span { background: rgba(0, 0, 0, 0.18); border-color: rgba(255, 255, 255, 0.25); }
.sd-vs { align-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 22px; background: #fff; color: #0b0b0c; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9); z-index: 2; }
.cost-card-big.hw .cc-trad { border-color: rgba(255, 211, 138, 0.35); }
@media (max-width: 1020px) {
  .rf-banner { display: none; }
  .compare-table .ct-row { grid-template-columns: 1fr 1fr; }  /* the six-column rule above is more specific than the phone rule, and pushed two columns off the screen */
  .ct-row .ct-rf { text-align: left; color: #fff; background: var(--grad); border-radius: 12px; padding: 8px 12px; }
  .showdown { grid-template-columns: 1fr; }
  .sd-vs { justify-self: center; margin: -30px 0; }
  .sd-rf, .rate.featured { transform: none; }
}

/* font option: the template's type (Newsreader serif headings, Geist text). Switch with ?type=verity or the corner toggle. */

/* ── headings: DM Sans ExtraLight lead-in, Cal Sans punch ── */
:root { --heading: "DM Sans", "Figtree", system-ui, sans-serif; }
.display { font-family: var(--heading); font-weight: 200; font-optical-sizing: auto; letter-spacing: -0.028em; }
.display.h1, .hero-h1 { font-weight: 200; letter-spacing: -0.035em; line-height: 1.03; }
.display b, .display .rotator, .display .grad-text { font-family: "Cal Sans", "Figtree", sans-serif; font-weight: 400; letter-spacing: -0.018em; }
.display.h1 b, .hero-h1 .rotator { letter-spacing: -0.022em; }
.reveal-footer .display b { color: #140606; }

/* ── footer: the real reelflix logo lettering, sized to the page ── */
.giant-logo { position: relative; margin: 36px auto 22px; width: min(100%, 560px); aspect-ratio: 2536 / 616;
  /* a watermark rather than solid black: deep at the top of the letters, melting into the footer colour at the bottom */
  background: linear-gradient(180deg, rgba(20, 6, 6, 0.62) 0%, rgba(20, 6, 6, 0.3) 52%, rgba(20, 6, 6, 0.05) 100%);
  -webkit-mask: url("brand/reelflix-wordmark-large.png") center / contain no-repeat; mask: url("brand/reelflix-wordmark-large.png") center / contain no-repeat; }
.reveal-footer .foot-bottom { margin-top: 0; }

/* ── hero: the sets change behind the headline ── */
.hero-bg img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); transform: scale(1.06); }
.hero-bg img.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12) translate(1%, 1%); } to { transform: scale(1.02) translate(0, 0); } }
.set-chip { position: absolute; z-index: 3; right: max(24px, calc((100vw - 1240px) / 2)); top: 640px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(12, 12, 13, 0.55); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-size: 12.5px; color: var(--muted); }
.set-chip i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: pulse 1.2s ease-in-out infinite alternate; }
.set-chip span { letter-spacing: 0.16em; text-transform: uppercase; font-size: 10.5px; font-weight: 600; color: #fff; }
.set-chip b { font-weight: 500; color: rgba(255, 255, 255, 0.85); transition: opacity 0.5s; }
@media (max-width: 1020px) { .set-chip { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-bg img.on { animation: none; } }

/* ── footer reveal: fixed underneath the page; the page lifts away at the end of the scroll ── */
.page-sheet { position: relative; z-index: 1; }
html.footer-reveal .page-sheet { margin-bottom: var(--footer-h, 0px); }
html.footer-reveal:not(.footer-live) .footer.reveal-footer { visibility: hidden; }
html.footer-reveal .footer.reveal-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; margin-top: 0; padding-top: 72px; }
html.footer-reveal .footer.reveal-footer .wrap, html.footer-reveal .footer.reveal-footer .foot-bottom { transform: translateY(calc(var(--reveal-lift, 0) * 80px)); opacity: calc(0.35 + 0.65 * (1 - var(--reveal-lift, 0))); }

/* ═══ HERO v3: a cinematic title sequence ═══ */
.cine { position: relative; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; background: #050505; }
.cine-media { position: absolute; inset: 0; z-index: -2; }
.cine-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 0.35s linear; }
.cine-media img.on { opacity: 1; animation: push 6.4s cubic-bezier(0.2, 0.6, 0.3, 1) forwards; }
@keyframes push { from { transform: scale(1.14) translate(0.8%, 0.6%); } to { transform: scale(1.02) translate(0, 0); } }
.cine-media::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cine-media.flash::after { animation: flash 0.42s ease-out; }
@keyframes flash { 0% { opacity: 0.16; } 100% { opacity: 0; } }
.cine-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0) 22%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.75) 26%, rgba(5, 5, 5, 0) 62%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0) 55%),
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55)); }
.cine-inner { position: absolute; left: 0; right: 0; bottom: clamp(46px, 8vh, 96px); will-change: transform, opacity; }
.cine-title { margin: 0; color: #fff; max-width: 15ch; }
.cine-title .l1 { display: block; font-family: var(--heading); font-weight: 200; font-size: clamp(40px, 5.6vw, 92px); letter-spacing: -0.035em; line-height: 1; color: rgba(255, 255, 255, 0.92); }
.cine-title .l2 { display: block; font-family: "Cal Sans", sans-serif; font-weight: 400; font-size: clamp(44px, 6.4vw, 108px); letter-spacing: -0.025em; line-height: 0.98; margin-top: 0.08em; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), filter 0.4s var(--ease); }
.cine-title .l2.swap { opacity: 0; transform: translateY(0.18em); filter: blur(8px); }
.cine-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: clamp(22px, 3.4vh, 38px); max-width: 820px; }
.cine-sub { margin: 0; max-width: 430px; font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.6; color: rgba(255, 255, 255, 0.72); }
.cine-actions { display: flex; align-items: center; gap: 22px; flex: none; }
.cine-play { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.cine-play .disc { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(8px); transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s; }
.cine-play .disc svg { width: 14px; height: 14px; margin-left: 2px; }
.cine-play:hover .disc { transform: scale(1.08); background: #fff; color: #0b0b0c; border-color: #fff; }
.cine-play .txt b { display: block; font-weight: 600; font-size: 14.5px; }
.cine-play .txt small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }

/* director's slate */
.slate { position: absolute; right: max(24px, calc((100vw - 1240px) / 2)); bottom: clamp(46px, 8vh, 96px); width: 300px; padding: 16px 16px 14px; border-radius: 16px;
  background: rgba(10, 10, 11, 0.5); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
.slate-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.slate-top b { color: #fff; font-weight: 600; }
.slate-top i { font-style: normal; color: rgba(255, 255, 255, 0.35); }
.slate-top .tc { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.04em; font-size: 11.5px; color: rgba(255, 255, 255, 0.75); }
.slate-name { margin-top: 12px; font-family: "Cal Sans", sans-serif; font-size: 22px; letter-spacing: -0.01em; color: #fff; transition: opacity 0.3s; }
.slate-genre { font-size: 13px; color: rgba(255, 255, 255, 0.55); transition: opacity 0.3s; }
.slate-bar { height: 2px; margin: 12px 0; background: rgba(255, 255, 255, 0.14); border-radius: 2px; overflow: hidden; }
.slate-bar i { display: block; height: 100%; width: 0; background: #fff; }
.slate-bar i.run { animation: fill var(--scene-ms, 6000ms) linear forwards; }
.slate-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.slate-strip button { padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 16 / 10; border-radius: 5px; overflow: hidden; opacity: 0.45; outline: 1px solid rgba(255, 255, 255, 0.12); transition: opacity 0.3s, outline-color 0.3s; }
.slate-strip button img { width: 100%; height: 100%; object-fit: cover; }
.slate-strip button.on { opacity: 1; outline: 1.5px solid #fff; }
.slate-strip button:hover { opacity: 0.85; }
.cine-scroll { position: absolute; left: 50%; bottom: 18px; width: 22px; height: 34px; margin-left: -11px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.35); z-index: 2; pointer-events: none; }
.cine-scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* the Studio rising over the end of the hero */
.demo-rise { position: relative; z-index: 2; margin-top: -16vh; padding-bottom: 30px; }
.demo-rise .stage { margin-top: 0; }

@media (max-width: 1020px) {
  .slate { width: auto; left: 24px; right: 24px; bottom: auto; top: 96px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; }
  .slate .slate-strip, .slate .slate-bar, .slate .slate-genre { display: none; }
  .slate .slate-name { margin: 0; font-size: 15px; }
  .slate .slate-sound { position: static; margin-left: auto; padding: 6px 12px 6px 9px; }
  .slate-top { flex: 1; }
  .cine-row { flex-direction: column; align-items: flex-start; gap: 22px; }
  .demo-rise { margin-top: -8vh; }
}
@media (max-width: 640px) {
  .cine-actions { gap: 16px; }
  }

/* ═══ HERO v3b: headline proportions; the Studio rise is scroll-scrubbed and held on screen ═══ */
.cine-title { max-width: min(1060px, 74vw); }
.cine-title .l1 { font-size: clamp(36px, 4.6vw, 76px); white-space: nowrap; }
.cine-title .l2 { font-size: clamp(40px, 5.4vw, 92px); max-width: 13.5em; white-space: pre-line; }
.cine-inner { bottom: clamp(40px, 7vh, 84px); }

.demo-rise { margin-top: 0; height: 160vh; padding: 0; }
.demo-rise .stage { position: sticky; top: max(98px, 13vh); margin: 0 auto; perspective: 1500px; }
.demo-rise .stage-inner { transform-origin: 50% 100%; transform: translateY(220px) rotateX(52deg) scale(0.72); opacity: 0.25; }
.demo-rise .stage-inner .studio-ui { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 36px 70px -36px rgba(0, 0, 0, 0.5), 0 0 110px -34px rgba(253, 82, 30, 0.3); }
.rise-halo { position: absolute; inset: -16% -22% -10% -22%; border-radius: 50%; pointer-events: none; z-index: -2; opacity: 0;
  /* a filled ember glow behind the window, not a hollow box shadow (a box shadow leaves a black rectangle in the middle) */
  background: radial-gradient(56% 58% at 50% 52%, rgba(253, 82, 30, 0.32) 0%, rgba(237, 58, 87, 0.14) 46%, rgba(253, 82, 30, 0) 72%); }
.rise-caption { position: absolute; left: 0; right: 0; top: calc(max(78px, 9vh) - 54px); text-align: center; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); pointer-events: none; }
@media (max-width: 1020px), (prefers-reduced-motion: reduce) {
  .demo-rise { height: auto; padding: 40px 0 20px; }
  .demo-rise .stage { position: relative; top: 0; }
  .demo-rise .stage-inner { transform: none; opacity: 1; }
}

/* ═══ movie-ticket cost comparison ═══ */
.tix-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; }
.tix-tabs button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); color: var(--muted); font: 500 14px var(--sans); cursor: pointer; transition: all 0.3s var(--ease); }
.tix-tabs button[aria-selected="true"] { background: #fff; color: #0b0b0c; border-color: #fff; }
.tix-pair { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; }
.tix-arrow { display: grid; place-items: center; color: rgba(255, 255, 255, 0.35); }
.tix-arrow svg { width: 30px; height: 30px; }
.ticket { position: relative; border-radius: 20px; padding: 26px 28px 24px; overflow: hidden; display: flex; flex-direction: column; min-height: 470px;
  -webkit-mask: radial-gradient(circle 16px at 0 118px, transparent 15.5px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 118px, transparent 15.5px, #000 16px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 16px at 0 118px, transparent 15.5px, #000 16px) left / 51% 100% no-repeat, radial-gradient(circle 16px at 100% 118px, transparent 15.5px, #000 16px) right / 51% 100% no-repeat; }
.t-old { background: linear-gradient(160deg, #1d1d1f, #131314); border: 1px solid rgba(255, 255, 255, 0.08); }
.t-old::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.018) 0 10px, transparent 10px 20px); pointer-events: none; }
.t-new { background: linear-gradient(150deg, #ff6a2b 0%, #f2414a 55%, #b3122f 100%); box-shadow: 0 50px 100px -40px rgba(253, 82, 30, 0.75); }
.t-new::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 85% 0%, rgba(255, 255, 255, 0.28), transparent 60%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 5px); pointer-events: none; }
.tk-head { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tk-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; }
.tk-title { font-family: "Cal Sans", sans-serif; font-size: 26px; letter-spacing: -0.01em; margin: 6px 0 2px; }
.tk-sub { font-size: 13.5px; opacity: 0.7; }
.tk-admit { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: 0.12em; padding: 6px 9px; border: 1px dashed currentColor; border-radius: 6px; opacity: 0.75; white-space: nowrap; }
.tk-perf { position: relative; margin: 22px -28px 16px; border-top: 2px dashed rgba(255, 255, 255, 0.16); }
.t-new .tk-perf { border-top-color: rgba(255, 255, 255, 0.4); }
.tk-lines { position: relative; display: grid; gap: 2px; font-size: 14.5px; }
.tk-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); opacity: 0; transform: translateX(-8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.t-new .tk-line { border-bottom-color: rgba(255, 255, 255, 0.18); }
.tk-line.in { opacity: 1; transform: none; }
.tk-line b { font-weight: 600; }
.t-old .tk-line { position: relative; color: rgba(255, 255, 255, 0.72); }
.t-old .tk-line::after { content: ""; position: absolute; left: 0; top: 50%; height: 1.5px; width: 0; background: #fd521e; transition: width 0.5s var(--ease); }
.t-old .tk-line.cut::after { width: 100%; }
.t-old .tk-line.cut { color: rgba(255, 255, 255, 0.38); }
.tk-total { position: relative; margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tk-total span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.tk-total b { font-family: "Cal Sans", sans-serif; font-weight: 400; font-size: clamp(36px, 4vw, 56px); line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.t-old .tk-total b { color: rgba(255, 255, 255, 0.55); }
.tk-time { position: relative; font-size: 13px; opacity: 0.75; margin-top: 6px; text-align: right; }
.tk-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.tk-foot .tk-time { margin-top: 0; }
.stamp { position: relative; flex: none; margin: 8px 0 4px 6px; z-index: 2; padding: 10px 16px; border: 3px solid #fff; border-radius: 10px; color: #fff; font-family: "Cal Sans", sans-serif; font-size: 26px; line-height: 1; text-align: center; transform: rotate(-9deg) scale(2.4); opacity: 0; transition: transform 0.5s cubic-bezier(0.2, 1.6, 0.4, 1), opacity 0.2s; mix-blend-mode: screen; }
.stamp small { display: block; font-family: var(--sans); font-weight: 700; font-size: 10.5px; letter-spacing: 0.2em; margin-top: 4px; }
.stamp.in { transform: rotate(-9deg) scale(1); opacity: 0.95; }
@media (max-width: 860px) {
  .tix-pair { grid-template-columns: 1fr; gap: 0; }
  .tix-arrow { transform: rotate(90deg); padding: 10px 0; }
  .ticket { min-height: 0; }
}

/* ═══ every genre: expanding panels ═══ */
.genres { display: flex; gap: 10px; height: 560px; }
.g { position: relative; flex: 1; min-width: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background-position: center; background-size: cover; background-repeat: no-repeat; background-color: #111; border: 1px solid var(--line);
  transition: flex 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s; outline: none; }
.g::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 5, 5, 0.15), rgba(5, 5, 5, 0.85)); transition: background 0.6s; }
.g.on { flex: 5.2; border-color: rgba(253, 82, 30, 0.5); }
.g.on::before { background: linear-gradient(180deg, rgba(5, 5, 5, 0) 35%, rgba(5, 5, 5, 0.9)); }
.g:focus-visible { border-color: var(--ember); }
.g-n { position: absolute; top: 18px; left: 18px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.25); backdrop-filter: blur(6px); }
.g-v { position: absolute; left: 50%; bottom: 28px; z-index: 1; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: "Cal Sans", sans-serif; font-size: 22px; letter-spacing: 0.01em; white-space: nowrap; transition: opacity 0.4s; }
.g.on .g-v { opacity: 0; }
.g-in { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; opacity: 0; transform: translateY(16px); transition: opacity 0.5s 0.25s, transform 0.6s 0.25s var(--ease); pointer-events: none; }
.g.on .g-in { opacity: 1; transform: none; }
.g-set { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.g-set::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; }
.g-in h3 { font-family: "Cal Sans", sans-serif; font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); margin: 10px 0 6px; letter-spacing: -0.01em; }
.g-in p { margin: 0; max-width: 420px; color: rgba(255, 255, 255, 0.78); }
.g.on .g-bar { opacity: 1; }
@media (max-width: 860px) {
  .genres { flex-direction: column; height: auto; }
  .g { flex: none; height: 76px; transition: height 0.7s var(--ease); }
  .g.on { height: 380px; flex: none; }
  .g-v { writing-mode: horizontal-tb; transform: none; left: 66px; bottom: auto; top: 22px; font-size: 19px; }
}

/* ═══ speed gauge ═══ */
.numbers { grid-template-columns: 0.85fr 0.85fr 1.1fr; }
.gauge-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 100%, rgba(253, 82, 30, 0.18), transparent 60%), linear-gradient(180deg, #19191b, #111112); }
.gauge { position: relative; margin: 10px auto 0; width: 100%; max-width: 330px; }
.gauge svg { width: 100%; display: block; overflow: visible; }
.gauge [data-ticks] line { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.4; }
.gauge [data-ticks] line.major { stroke: rgba(255, 255, 255, 0.7); stroke-width: 2; }
.gauge [data-ticks] text { fill: rgba(255, 255, 255, 0.5); font: 600 10px var(--sans); }
.gauge [data-arc] { transition: stroke-dashoffset 2.2s cubic-bezier(0.2, 0.8, 0.2, 1); filter: drop-shadow(0 0 8px rgba(253, 82, 30, 0.7)); }
.gauge [data-needle] { transition: transform 2.2s cubic-bezier(0.25, 1.35, 0.4, 1); }
.gauge-read { position: absolute; left: 0; right: 0; top: 54%; text-align: center; }
.gauge-read b { display: block; font-family: "Cal Sans", sans-serif; font-weight: 400; font-size: 44px; line-height: 1; }
.gauge-read span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.gauge-foot { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gauge-foot div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.gauge-foot b { display: block; font-family: "Cal Sans", sans-serif; font-weight: 400; font-size: 26px; }
.gauge-foot span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1020px) { .numbers { grid-template-columns: 1fr; } }

/* ═══ light beam under the rising Studio (real elements, so the scroll only changes opacity) ═══ */
.rise-beam { position: absolute; left: 8%; right: 8%; bottom: -46px; height: 220px; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(50% 60% at 50% 100%, rgba(253, 82, 30, 0.7), transparent 70%); filter: blur(20px); }
.rise-edge { position: absolute; left: 9%; right: 9%; bottom: 0; height: 26px; z-index: 3; pointer-events: none; opacity: 0; border-radius: 0 0 18px 18px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(253, 82, 30, 0.38), rgba(253, 82, 30, 0) 72%); }
.rise-edge::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ffb39b 30%, #fff 50%, #ffb39b 70%, transparent); }

/* hero headline: the second line always holds exactly two lines, also on a phone */
@media (max-width: 640px) {
  .cine-title .l1 { font-size: clamp(30px, 8.4vw, 40px); }
  .cine-title .l2 { font-size: clamp(31px, 8.6vw, 42px); max-width: none; white-space: pre; }
}

}


/* ═══ hero depth: three planes that move at different rates (picture, drifting embers, near sparks), headline above ═══ */
.cine { overflow: hidden; }
.cine-media { inset: -16vh 0 0 0; }
.cine-fx { position: absolute; left: 0; right: 0; top: -20%; height: 140%; pointer-events: none; overflow: hidden; }
.cine-fx.fx-far { z-index: -1; opacity: 0.5; }
.cine-fx.fx-near { z-index: 0; opacity: 0.55; }
.cine-fx i { position: absolute; left: 0; right: 0; top: 0; display: block; }
.fx-far i { height: calc(100% + 280px); animation: ember-far 26s linear infinite;
  background-size: 280px 280px;
  background-image:
    radial-gradient(1.4px 1.4px at 30px 40px, rgba(255, 176, 128, 0.95), transparent),
    radial-gradient(1px 1px at 120px 150px, rgba(255, 210, 170, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 210px 90px, rgba(255, 140, 90, 0.9), transparent),
    radial-gradient(1px 1px at 70px 230px, rgba(255, 220, 190, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 240px 230px, rgba(255, 160, 110, 0.85), transparent); }
.fx-near i { height: calc(100% + 460px); animation: ember-near 15s linear infinite;
  background-size: 460px 460px;
  background-image:
    radial-gradient(4px 4px at 80px 110px, rgba(255, 150, 96, 0.85), transparent),
    radial-gradient(3px 3px at 330px 60px, rgba(255, 196, 150, 0.8), transparent),
    radial-gradient(5px 5px at 260px 330px, rgba(255, 120, 70, 0.7), transparent),
    radial-gradient(3px 3px at 90px 400px, rgba(255, 210, 170, 0.75), transparent); }
@keyframes ember-far { to { transform: translate3d(-40px, -280px, 0); } }
@keyframes ember-near { to { transform: translate3d(-90px, -460px, 0); } }
@media (prefers-reduced-motion: reduce) { .cine-fx i { animation: none; } }

/* the quiet beat before the Studio rises: one line, then it clears the way */
.rise-line { position: absolute; left: 0; right: 0; top: 14px; margin: 0; text-align: center; z-index: 4; pointer-events: none;
  font-family: var(--heading); font-weight: 200; font-size: clamp(24px, 2.7vw, 40px); letter-spacing: -0.025em; color: rgba(255, 255, 255, 0.9); will-change: opacity, transform; }
@media (max-width: 1020px), (prefers-reduced-motion: reduce) { .rise-line { display: none; } }

/* "you stay in control": plain statements, not a stack of numbers */
.control-points { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 0; }
.control-points li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.55; }
.control-points li b { display: block; color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.control-points svg { width: 24px; height: 24px; margin-top: 2px; stroke: var(--ember, #fd521e); }

/* light type on a dark ground needs a touch more weight and air than it does on white */
.display.h2, .display.h3 { font-weight: 235; letter-spacing: -0.022em; line-height: 1.08; }
@media (max-width: 640px) {
  .cine-title .l1 { font-weight: 260; }
  .display.h1, .hero-h1 { font-weight: 240; }
}

/* once the hero has scrolled away, its atmosphere stops running */
html.hero-away .cine-fx { visibility: hidden; }
html.hero-away .cine-fx i { animation-play-state: paused; }

/* hero buttons all on one line: Start creating, the floating mouse, Watch the film */
.cine-row { max-width: min(1060px, 100%); }
.cine-actions { gap: 26px; }
.cine-scroll { position: relative; left: auto; bottom: auto; margin: 0 10px; flex: none; z-index: auto; }
.cine-row { justify-content: flex-start; gap: 48px; }

/* depth: the hero figure stands in front of the headline, so the words pass behind her */
.cine-cut { position: absolute; inset: -16vh 0 0 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.35s linear;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 86%); mask-image: linear-gradient(180deg, #000 0%, #000 52%, transparent 86%); }
.cine-cut.on { opacity: 1; }
.cine-cut img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: brightness(0.92); }
.cine-cut.on img { animation: push 6.4s cubic-bezier(0.2, 0.6, 0.3, 1) forwards; }
html.hero-away .cine-cut { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .cine-cut.on img { animation: none; transform: scale(1.04); } }
.cine .slate { z-index: 2; }

/* ── a fan of Studio screens behind the main window: flat, blurred, glassy, a small piece on each side ── */
.ui-scaler { isolation: isolate; }
.stack { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ghost { opacity: var(--fan, 1); position: absolute; top: 50%; margin: 0; aspect-ratio: 1.6; border-radius: 20px; overflow: hidden; background: #141415;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.5); }
.ghost img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-l1 img, .g-l2 img { transform: scaleX(-1); }
/* glass: a faint reflection across a darkened pane, so it reads as glass without pulling the eye from the window */
.ghost::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 55%),
              linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 14%),
              linear-gradient(0deg, rgba(8, 8, 9, 0.45), rgba(8, 8, 9, 0.25)); }
.g-l1, .g-r1 { height: 88%; z-index: 2; filter: blur(3px) brightness(0.72) saturate(0.75); }
.g-l2, .g-r2 { height: 76%; z-index: 1; filter: blur(6px) brightness(0.5) saturate(0.7); }
.g-l1 { left: -16%; transform: translateX(calc((1 - var(--fan, 1)) * 20%)) translateY(-50%) perspective(1800px) rotateY(12deg); }
.g-l2 { left: -28%; transform: translateX(calc((1 - var(--fan, 1)) * 34%)) translateY(-50%) perspective(1800px) rotateY(18deg); }
.g-r1 { right: -16%; transform: translateX(calc((1 - var(--fan, 1)) * -20%)) translateY(-50%) perspective(1800px) rotateY(-12deg); }
.g-r2 { right: -28%; transform: translateX(calc((1 - var(--fan, 1)) * -34%)) translateY(-50%) perspective(1800px) rotateY(-18deg); }
@media (max-width: 900px) { .stack { display: none; } }
@media (prefers-reduced-motion: reduce) { .ghost { filter: none; } }

/* ═══ How it works page ═══ */
.hiw-glance { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px 10px; margin-top: 34px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); font-size: 13.5px; }
.hiw-glance a { color: var(--muted); transition: color 0.2s; }
.hiw-glance a:hover { color: #fff; }
.hiw-glance i { width: 14px; height: 1px; background: linear-gradient(90deg, rgba(253, 82, 30, 0.7), rgba(237, 58, 87, 0.2)); }
.hiw-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
.hiw-stick { position: sticky; top: 110px; }
.hiw-window { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0d0e; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), 0 0 120px -50px rgba(253, 82, 30, 0.35); }
.hiw-bar { display: flex; gap: 6px; padding: 11px 14px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid var(--line); }
.hiw-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.hiw-shots { position: relative; aspect-ratio: 1.6; }
.hiw-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.hiw-shot.on { opacity: 1; transform: none; }
.hiw-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hiw-progress { height: 3px; margin-top: 18px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hiw-progress b { display: block; height: 100%; width: 14%; border-radius: 3px; background: var(--grad); transition: width 0.5s var(--ease); }
.hiw-steps { display: flex; flex-direction: column; }
.hiw-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; min-height: 62vh; padding: 6vh 0; opacity: 0.38; transition: opacity 0.45s var(--ease); }
.hiw-step.on { opacity: 1; }
.hiw-num { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hiw-num span { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-family: "Cal Sans", sans-serif; font-size: 15px; color: var(--muted); transition: all 0.4s var(--ease); }
.hiw-step.on .hiw-num span { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 30px -4px rgba(253, 82, 30, 0.7); }
.hiw-num i { flex: 1; width: 1px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent); }
.hiw-tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #ffb39b; }
.hiw-body h3 { margin: 10px 0 14px; font-family: "Cal Sans", sans-serif; font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.015em; }
.hiw-body p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.hiw-pts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.hiw-pts li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-size: 13px; color: rgba(255, 255, 255, 0.86); }
.hiw-inline { display: none; margin: 22px 0 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.hiw-inline img { display: block; width: 100%; }
.hiw-ctrl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hiw-card { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); }
.hiw-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; margin-bottom: 18px; background: var(--grad); font-family: "Cal Sans", sans-serif; color: #fff; }
.hiw-card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.25; }
.hiw-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.hiw-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hiw-mode { display: flex; flex-direction: column; gap: 10px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.hiw-mode.pro { background: radial-gradient(80% 60% at 100% 0%, rgba(253, 82, 30, 0.16), transparent 70%), rgba(255, 255, 255, 0.03); }
.hiw-mode h3 { margin: 4px 0 0; font-family: "Cal Sans", sans-serif; font-weight: 400; font-size: 28px; line-height: 1.1; }
.hiw-mode p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.hiw-mode img { margin-top: auto; width: 100%; border-radius: 14px; border: 1px solid var(--line-2); }
.hiw-more { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hiw-way { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); transition: transform 0.4s var(--ease), border-color 0.3s; }
.hiw-way:hover { transform: translateY(-4px); border-color: rgba(253, 82, 30, 0.5); }
.hiw-way img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }  /* the screenshots are 16:10; 16:8 cut the bottom off */
.hiw-way div { padding: 22px 24px 26px; }
.hiw-way h3 { margin: 0 0 6px; font-size: 20px; }
.hiw-way p { margin: 0; color: var(--muted); font-size: 15px; }
.hiw-faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.hiw-faq details { border-bottom: 1px solid var(--line); }
.hiw-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-size: 18px; font-weight: 600; }
.hiw-faq summary::-webkit-details-marker { display: none; }
.hiw-faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); font-weight: 400; transition: transform 0.3s var(--ease); }
.hiw-faq details[open] summary::after { transform: rotate(45deg); background: var(--grad); border-color: transparent; color: #fff; }
.hiw-faq details p { margin: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 700px; }
.hiw-faq details a { color: #fff; border-bottom: 1px solid var(--ember); }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin: 8px 0; }
@media (max-width: 1020px) {
  .hiw-grid { grid-template-columns: 1fr; gap: 0; }
  .hiw-stick { display: none; }
  .hiw-step { min-height: 0; opacity: 1; padding: 34px 0; }
  .hiw-inline { display: block; }
  .hiw-ctrl { grid-template-columns: 1fr 1fr; }
  .hiw-modes, .hiw-more { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hiw-ctrl { grid-template-columns: 1fr; }
  .hiw-step { grid-template-columns: 40px 1fr; gap: 12px; }
  .hiw-num span { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { .hiw-step { opacity: 1; } .hiw-shot { transition: none; } }
.nav-links a { white-space: nowrap; }

/* ═══ hero: the first set plays as a real clip, with an optional sound switch ═══ */
.hero-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s linear; pointer-events: none; }
.hero-vid.on { opacity: 1; }
.cine-media.vid-on img.on { animation: none; transform: none; }
html.has-hero-vid .cine-cut { display: none; }
.slate-sound { display: none; position: absolute; top: 12px; right: 12px; z-index: 2; align-items: center; gap: 7px; margin: 0; padding: 7px 13px 7px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px); color: #fff; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--ease); }
.slate-sound svg { width: 15px; height: 15px; flex: none; }
.slate-sound:not(.is-on)::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid rgba(253, 82, 30, 0.7); animation: sndPulse 2.4s ease-out infinite; pointer-events: none; }
@keyframes sndPulse { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.35, 1.6); opacity: 0; } }
.slate-sound.is-on { background: #fff; color: #0b0b0c; border-color: #fff; }
.slate-sound.show { display: inline-flex; }
.slate-sound:hover { transform: scale(1.05); border-color: #fff; }
.slate-sound [data-snd-on] { display: none; }
.slate-sound.is-on [data-snd-on] { display: inline; }
.slate-sound.is-on [data-snd-off] { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-vid, .slate-sound { display: none !important; } }

/* ═══ phones: hero buttons ═══ */
@media (max-width: 560px) {
  .cine-scroll { display: none; }
  .cine-actions { flex-wrap: wrap; gap: 14px 18px; }
  .cine-play .txt, .cine-play .txt b, .cine-play .txt small { white-space: nowrap; }
}
@media (pointer: coarse) { .slate-sound { min-height: 40px; } }
@media (pointer: coarse) {
  .hiw-glance a { padding: 12px 5px; margin: -12px -5px; }
}
/* A box people never see; programs that fill in every box give themselves away. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
