/* ============================================================
   Sivakumar — Personal Portfolio
   Editing page only ("the showreel") — VERSION 3, "movie poster".
   Loaded AFTER css/style.css (reuses the shared tokens, .btn, .lead,
   .tools-grid/.tool-card, .icon-btn and the .float-card glass look).

   The idea: big editorial type, one strong move per section.
   - Hero: the video sits in a framed window; scrolling opens it to
     full screen while the title splits apart.
   - Scene 01: a film strip that slides sideways as you scroll down.
   - Scene 02: a two-screen screening room; the poster you point at
     opens up, click it to play the film in place.
   - Scene 04: huge outlined titles that fill with colour as they
     cross the screen.
   - Scene 06: a cream "credits" band that lifts over the dark page.
   - Nothing bobs or floats when idle; motion follows scrolling or
     appears once when a block enters the screen.
   ============================================================ */

/* ---------- Page-wide ---------- */
body[data-page="editing"] { padding-bottom: 54px; }
body[data-page="editing"] .float-card,
body[data-page="editing"] .float-card:hover { animation: none !important; transform: none !important; }
body[data-page="editing"] .light-leak { animation: none !important; }

.film-vignette {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(5, 4, 3, 0.32) 100%);
}
.film-grain {
  position: fixed; inset: 0; z-index: 41; width: 100%; height: 100%;
  opacity: 0.35; mix-blend-mode: overlay; pointer-events: none;
}

/* ---------- Word-by-word reveal ---------- */
[data-split] { display: block; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.w > span {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--wi, 0) * 0.09s + var(--wd, 0.1s));
}
.is-in [data-split] .w > span,
.reel-hero.is-open [data-split] .w > span { transform: none; }

.js .rv {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.08s);
}
.js .rv.is-in { opacity: 1; transform: none; }

/* Clapper-slate label */
.slate {
  display: inline-flex; align-items: stretch; margin: 0;
  border: 1px solid rgba(245, 184, 61, 0.45); border-radius: 6px; overflow: hidden;
  transform-origin: 0 100%;
  font: 700 0.68rem/1 "Inter", sans-serif; letter-spacing: 0.18em; text-transform: uppercase;
}
.slate b { padding: 0.5rem 0.75rem; background: var(--accent); color: var(--ink); }
.slate span { padding: 0.5rem 0.8rem; color: var(--accent); }
.js .rv .slate { transform: rotate(-16deg); }
.js .rv.is-in .slate { animation: clap 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) 0.15s both; }
@keyframes clap { from { transform: rotate(-16deg); } to { transform: rotate(0); } }

.cut-section { position: relative; padding-block: clamp(4rem, 9vw, 7rem); scroll-margin-top: 64px; }
.scene-head { margin-bottom: 2.6rem; }
.scene-head h2 { margin: 1rem 0 0.7rem; font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.05; }
.scene-head .lead { margin: 0; }

/* ---------- Hero: the window opens ---------- */
.reel-hero {
  --p: 0; /* 0 → 1 across the whole hero scroll   (editing.js) */
  --e: 0; /* eased "how open is the window", 0 → 1 */
  position: relative;
  height: 240vh;
  margin-top: calc(-1 * var(--hh, 77px)); /* slide up under the sticky header */
  padding: 0; /* the shared "section" padding would push the sticky hero down */
  background: #050403;
}
.hero-pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  opacity: 0; transform: scale(0.96);
  transition: opacity 1.4s ease, transform 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reel-hero.is-open .hero-pin { opacity: 1; transform: none; }

.hero-frame {
  position: absolute; inset: 0; background: #0d0b0a;
  clip-path: inset(
    calc(17vh * (1 - var(--e)))
    calc(23vw * (1 - var(--e)))
    calc(27vh * (1 - var(--e)))
    round calc(30px * (1 - var(--e)))
  );
}
.reel-hero-video, .reel-hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.3 - var(--e) * 0.3));
  will-change: transform;
}
.reel-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 11, 10, 0.55) 0%, rgba(13, 11, 10, 0.1) 40%, rgba(13, 11, 10, 0.94) 100%),
    radial-gradient(circle at 15% 95%, rgba(255, 106, 43, 0.22), transparent 55%);
}

.hero-rec {
  position: absolute; z-index: 4; top: calc(64px + 3vh); left: clamp(16px, 4vw, 56px);
  display: flex; align-items: center; gap: 0.55rem;
  font: 700 0.7rem/1 "Inter", sans-serif; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.85);
  opacity: calc(1 - var(--e));
}
.hero-rec i { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; animation: recBlink 1.4s ease-in-out infinite; }
.hero-rec b { font-family: "Press Start 2P", monospace; font-weight: 400; font-size: 0.6rem; letter-spacing: 0.06em; color: #fff; }
@keyframes recBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* Title: the two lines slide apart as the window opens */
.hero-title {
  position: absolute; inset: 0; z-index: 3; margin: 0; padding-top: 4vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; pointer-events: none;
  font: 700 clamp(3.1rem, 11.5vw, 10.5rem) / 0.95 "Playfair Display", serif;
  letter-spacing: -0.02em; color: #fff;
  text-shadow: 0 8px 50px rgba(0, 0, 0, 0.6);
}
.ht { display: block; --wd: 0.9s; }
.ht-a { transform: translateX(calc(var(--e) * -58vw)); opacity: calc(1 - var(--e) * 1.2); }
.ht-b { --wd: 1.1s; transform: translateX(calc(var(--e) * 58vw)); opacity: calc(1 - var(--e) * 1.2); font-style: italic; color: var(--accent); }

.hero-copy {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 5vh; text-align: center;
}
.reel-credit-label {
  font: 700 0.7rem/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: 0.4em;
  color: var(--accent); margin: 0 0 0.9rem;
  opacity: clamp(0, calc((var(--e) - 0.45) * 2.2), 1);
}
.reel-lead {
  color: rgba(255, 255, 255, 0.86); max-width: 560px; margin: 0 auto; font-size: 1.08rem;
  opacity: clamp(0, calc((var(--e) - 0.55) * 2.4), 1);
}
.reel-hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.4rem; }

/* ---------- Scene 01: the film strip ---------- */
.journey-strip { padding: 0; }
.pin-track { --n: 4; position: relative; height: calc(var(--n) * 50vh + 100vh); }
.pin-stage {
  position: sticky; top: 0; height: 100vh; padding-top: 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 1.8rem; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 106, 43, 0.12), transparent 60%);
}
.strip-head h2 { margin: 0.9rem 0 0; font-size: clamp(2rem, 4.4vw, 3.4rem); }

.strip { --fw: clamp(280px, 34vw, 460px); position: relative; padding: 34px 0; }
/* sprocket holes above and below the frames */
.strip::before, .strip::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px;
  background: repeating-linear-gradient(90deg, rgba(245, 184, 61, 0.5) 0 16px, transparent 16px 34px);
  background-position: calc(var(--sp, 0) * 1px) 0;
  -webkit-mask: linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0);
  opacity: 0.7;
}
.strip::before { top: 8px; }
.strip::after { bottom: 8px; }
.strip-inner {
  display: flex; gap: 1.6rem; width: max-content;
  padding: 0 calc(50vw - var(--fw) / 2); /* first + last frame can sit dead centre */
  will-change: transform;
}
.frame {
  --f: 1; /* 1 = centred frame, →0 as it moves away (editing.js) */
  position: relative; flex: none;
  width: var(--fw); min-height: 300px; padding: 1.8rem 1.8rem 1.6rem;
  border-radius: 8px; border: 1px solid rgba(245, 184, 61, 0.28);
  background: linear-gradient(160deg, rgba(38, 28, 20, 0.95), rgba(14, 11, 9, 0.98));
  transform: scale(calc(0.9 + var(--f) * 0.1));
  opacity: calc(0.45 + var(--f) * 0.55);
  overflow: hidden;
}
.frame-num {
  position: absolute; right: 1rem; top: -0.15em;
  font: 700 8.5rem/1 "Playfair Display", serif; color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 184, 61, 0.3); user-select: none; pointer-events: none;
}
.frame .jt-label { position: relative; margin-bottom: 1rem; }
.frame h3 { position: relative; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.15; margin: 3.4rem 0 0.8rem; }
.frame p { position: relative; color: var(--muted); font-size: 0.98rem; line-height: 1.7; margin: 0; }
.jt-label { display: block; font: 700 0.68rem/1 "Inter", sans-serif; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }

.strip-rail { height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; position: relative; overflow: hidden; }
.strip-rail i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-dark)); }

/* ---------- Marquee dividers ---------- */
.marquee { overflow: hidden; padding: 1.6rem 0; background: #0a0807; border-block: 1px solid rgba(245, 184, 61, 0.18); }
.marquee-track {
  display: flex; align-items: center; gap: 2.4rem; width: max-content; white-space: nowrap;
  transform: translate3d(var(--mx, 0px), 0, 0);
  font: 700 clamp(3.4rem, 9vw, 8rem) / 1 "Playfair Display", serif;
  color: transparent; -webkit-text-stroke: 1.5px rgba(245, 184, 61, 0.5);
  will-change: transform;
}
.marquee-track i { font-style: normal; font-size: 0.4em; color: var(--accent); -webkit-text-stroke: 0; }

/* ---------- Scene 02: the screening room ---------- */
.reel-wrap { max-width: 1040px; }
.reel { display: flex; gap: 1rem; aspect-ratio: 2.5 / 1; }
.reel.is-playing { aspect-ratio: 16 / 9; }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; cursor: pointer;
  border-radius: 16px; border: 1px solid rgba(245, 184, 61, 0.22); background: #000;
  transition: flex-grow 0.9s cubic-bezier(0.7, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.6s ease;
}
.panel.is-active { flex-grow: 4; border-color: rgba(245, 184, 61, 0.5); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), 0 0 60px rgba(255, 106, 43, 0.12); }
.reel.is-playing .panel:not(.is-active) { display: none; }
.reel.is-playing .panel { cursor: default; }
.panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.panel-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.85) brightness(0.55);
  transform: scale(1.08);
  transition: filter 0.8s ease, transform 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.panel.is-active .panel-cover { filter: none; transform: scale(1); }
.panel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 35%, rgba(0, 0, 0, 0.75)); pointer-events: none; }

.panel-num {
  position: absolute; left: 1.2rem; top: 1rem;
  font: 700 0.75rem/1 "Inter", sans-serif; letter-spacing: 0.25em; color: var(--accent);
}
.panel-vtitle {
  position: absolute; left: 1.1rem; bottom: 1.2rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 700 1.5rem/1 "Playfair Display", serif; color: #fff; white-space: nowrap;
  transition: opacity 0.4s ease;
}
.panel.is-active .panel-vtitle { opacity: 0; }

.panel-info {
  position: absolute; left: 1.8rem; right: 1.8rem; bottom: 1.5rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.panel.is-active .panel-info { opacity: 1; transform: none; transition-delay: 0.45s; }
.panel-info h3 { font: 700 clamp(1.6rem, 3.2vw, 2.5rem) / 1.05 "Playfair Display", serif; margin: 0 0 0.4rem; color: #fff; }
.panel-info p { margin: 0; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

.panel-play {
  position: absolute; z-index: 2; inset: 0; margin: auto; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: rgba(10, 8, 6, 0.55); border: 2px solid var(--accent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 40px rgba(245, 184, 61, 0.3);
  opacity: 0; transform: scale(0.7);
  transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s, background 0.25s ease, color 0.25s ease;
  pointer-events: none;
}
.panel-play::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent); animation: playRing 2.4s ease-out infinite; }
@keyframes playRing { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.6); opacity: 0; } }
.panel-play svg { width: 34px; height: 34px; margin-left: 4px; }
.panel.is-active .panel-play { opacity: 1; transform: none; }
.panel.is-active:hover .panel-play { background: var(--accent); color: var(--ink); }
.reel.is-playing .panel-cover, .reel.is-playing .panel-shade, .reel.is-playing .panel-play,
.reel.is-playing .panel-info, .reel.is-playing .panel-num, .reel.is-playing .panel-vtitle { display: none; }

.panel-stage { position: absolute; inset: 0; z-index: 5; }
.panel-stage:empty { display: none; }
.panel-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.panel-close {
  position: absolute; z-index: 6; top: 0.8rem; right: 0.8rem; padding: 0.45rem 0.9rem;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.6);
  color: #fff; font: 600 0.78rem "Inter", sans-serif; cursor: pointer;
}
.panel-close:hover, .panel-close:focus-visible { border-color: var(--accent); color: var(--accent); }

.reel-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; font-size: 0.84rem; color: rgba(185, 169, 152, 0.75); }
.reel-alt { color: rgba(255, 255, 255, 0.55); text-decoration: none; }
.reel-alt:hover, .reel-alt:focus-visible { color: var(--accent); text-decoration: underline; }

.yt-file-note {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.9rem;
  padding: 1.5rem; text-align: center; color: var(--muted);
  background: radial-gradient(ellipse at center, rgba(255, 138, 61, 0.14), #0b0908 70%);
}
.yt-file-note p { max-width: 46ch; margin: 0; font-size: 0.95rem; line-height: 1.6; }
.yt-file-note b { color: var(--accent); }
.yt-file-note div { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Scene 03: featured edit ---------- */
.featured-edit-card { position: relative; max-width: 920px; margin: 0 auto; padding: 2.2rem; }
.featured-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.featured-header h2 { margin: 0.8rem 0 0; }
.featured-player-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.featured-video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; background: #000; }
.featured-center-play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  background: rgba(245, 184, 61, 0.9); color: var(--ink);
  display: flex; align-items: center; justify-content: center; border: none; cursor: pointer;
  transition: opacity 0.3s ease, background 0.2s ease; pointer-events: auto;
}
.featured-center-play svg { width: 26px; height: 26px; margin-left: 3px; }
.featured-center-play:hover { background: var(--accent); }
.featured-player-wrap.is-playing .featured-center-play { opacity: 0; pointer-events: none; }
.player-controls {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.9rem; background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent);
}
.player-controls .icon-btn { width: 34px; height: 34px; font-size: 0.9rem; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #fff; flex-shrink: 0; }
.player-controls .icon-btn:hover { border-color: var(--accent); }
.scrub-track { position: relative; flex: 1; height: 6px; background: rgba(255, 255, 255, 0.18); border-radius: 999px; cursor: pointer; }
.scrub-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); border-radius: 999px; pointer-events: none; }
.scrub-fill::after { content: ""; position: absolute; top: 50%; right: -5px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 0 4px rgba(0, 0, 0, 0.5); }
.time-label { color: #fff; font-size: 0.76rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.featured-desc { color: var(--muted); margin: 1.4rem 0 1rem; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.grade-heading { margin: 3rem 0 1rem; }

/* ---------- Scenes 04 + 06: big-type rows ---------- */
.rows { border-top: 1px solid rgba(243, 235, 224, 0.16); }
.row {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1.6fr) minmax(0, 1fr) 40px;
  align-items: center; gap: 1.6rem; padding: 1.7rem 0.6rem; overflow: hidden;
  border-bottom: 1px solid rgba(243, 235, 224, 0.16);
}
.row::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245, 184, 61, 0.16), rgba(255, 106, 43, 0.05));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.row:hover::before { transform: scaleX(1); }
.row > * { position: relative; }
.row-idx { font: 700 0.8rem/1 "Inter", sans-serif; letter-spacing: 0.2em; color: var(--accent); }
.row-title {
  --fill: 0; margin: 0;
  font: 700 clamp(1.8rem, 4.4vw, 3.6rem) / 1.08 "Playfair Display", serif;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 235, 224, 0.55);
  background: linear-gradient(90deg, #f3ebe0 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
  background-position: calc(100% - var(--fill) * 100%) 0;
  -webkit-background-clip: text; background-clip: text;
  padding-bottom: 0.1em;
}
.row-note { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.row-icon .line-icon { width: 30px; height: 30px; color: var(--accent); }

/* ---------- Scene 05: tools ---------- */
#editingToolsGrid { margin-top: 0; }
body[data-page="editing"] .tool-card { position: relative; overflow: hidden; }
body[data-page="editing"] .tool-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 184, 61, 0.2), transparent 60%);
  opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
body[data-page="editing"] .tool-card:hover::before { opacity: 1; }
body[data-page="editing"] .tool-card > * { position: relative; }
body[data-page="editing"] .tool-card:hover { border-color: rgba(245, 184, 61, 0.55); }
.tool-icon img { object-fit: contain; }

/* ---------- Scene 06: cream band ---------- */
.band-light {
  position: relative; z-index: 2; margin-top: 1rem;
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: #efe4d0; color: #1a1206;
  border-radius: 42px 42px 0 0;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.5);
}
.band-light h2, .band-light h3 { color: #1a1206; }
.band-light .slate { border-color: #1a1206; }
.band-light .slate b { background: #1a1206; color: var(--accent); }
.band-light .slate span { color: #1a1206; }
.band-light .rows { border-top-color: rgba(26, 18, 6, 0.22); }
.band-light .row { border-bottom-color: rgba(26, 18, 6, 0.22); }
.band-light .row::before { background: linear-gradient(90deg, rgba(255, 106, 43, 0.22), rgba(245, 184, 61, 0.14)); }
.band-light .row-idx { color: #c2410c; }
.band-light .row-title {
  -webkit-text-stroke: 1px rgba(26, 18, 6, 0.6);
  background: linear-gradient(90deg, #1a1206 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
  background-position: calc(100% - var(--fill) * 100%) 0;
  -webkit-background-clip: text; background-clip: text;
}
.band-light .row-note { color: #5b4a33; }
.band-light .row-icon .line-icon { color: #c2410c; }
.how-it-works { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem; margin: 3.2rem 0; text-align: center; }
.how-step { background: #fff8ea; border: 1px solid rgba(26, 18, 6, 0.2); border-radius: 999px; padding: 0.7rem 1.3rem; font-size: 0.88rem; font-weight: 600; color: #1a1206; }
.how-arrow { color: #c2410c; font-size: 1.1rem; }
.services-cta {
  text-align: center; max-width: 660px; margin: 0 auto; padding: 2.8rem 2rem;
  border-radius: 26px; background: #14100d; color: #f3ebe0;
  box-shadow: 0 30px 70px rgba(26, 18, 6, 0.35);
}
.band-light .services-cta h3 { color: #f3ebe0; }
.services-cta p { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.6rem; }

/* ---------- End credits ---------- */
.end-credits { position: relative; height: 300px; overflow: hidden; text-align: center; margin-top: -1px; background: #050403; }
.credits-roll { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); width: 100%; }
.end-credits.is-visible .credits-roll { animation: creditsRoll 7s ease-out forwards; }
@keyframes creditsRoll { 0% { top: 100%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: -110%; opacity: 0; } }
.credits-roll p { font-family: "Playfair Display", serif; font-size: 1.3rem; letter-spacing: 0.04em; margin: 1.1rem 0; color: var(--text); }
.credits-roll p:last-child { color: var(--accent); font-style: italic; }

/* ---------- Bottom editing timeline + timecode ---------- */
.edit-timeline {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(13, 11, 10, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 0.55rem 1.2rem 0.65rem;
}
.edit-timeline-track { position: relative; height: 5px; background: rgba(255, 255, 255, 0.12); border-radius: 999px; margin: 0 0.4rem; }
.edit-timeline-fill { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); border-radius: 999px; }
.edit-timeline-playhead {
  position: absolute; top: 50%; left: 0%; width: 11px; height: 11px; background: #fff; border: 2px solid var(--accent);
  transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 8px rgba(245, 184, 61, 0.7);
}
.timeline-marker {
  position: absolute; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -50%); border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); cursor: pointer; padding: 0; transition: background 0.2s ease;
}
.timeline-marker:hover, .timeline-marker:focus-visible { background: var(--accent); }
.timecode {
  position: fixed; right: 1.2rem; bottom: 3.4rem; z-index: 70;
  font-family: "Press Start 2P", monospace; font-size: 0.6rem; color: var(--accent);
  background: rgba(13, 11, 10, 0.75); padding: 0.4rem 0.6rem; border-radius: 6px; border: 1px solid var(--line); letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .row { grid-template-columns: 48px minmax(0, 1fr) 30px; gap: 1rem; }
  .row-note { grid-column: 2 / 3; grid-row: 2; }
  .row-icon { grid-column: 3; grid-row: 1; }
  .frame-num { font-size: 6.5rem; }
}
@media (max-width: 780px) {
  .timecode { display: none; }
  .featured-header { flex-direction: column; align-items: flex-start; }
  .featured-edit-card { padding: 1.4rem; }
  .band-light { border-radius: 28px 28px 0 0; }
}
@media (max-width: 700px) {
  .reel { flex-direction: column; aspect-ratio: auto; }
  .reel.is-playing { aspect-ratio: 16 / 9; }
  .panel { flex: none; height: 130px; transition: height 0.8s cubic-bezier(0.7, 0, 0.2, 1), border-color 0.4s ease; }
  .panel.is-active { height: min(56vw, 300px); }
  .reel.is-playing .panel.is-active { height: 100%; }
  .panel-vtitle { display: none; }
  .panel-info { opacity: 1; transform: none; left: 1.2rem; bottom: 1rem; }
  .panel-play { width: 62px; height: 62px; }
  .panel-play svg { width: 24px; height: 24px; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 5rem); }
}
@media (max-width: 560px) {
  .hero-rec { display: none; }
  .reel-lead { font-size: 0.98rem; }
}

/* ---------- Reduced motion: no pinning, no sliding ---------- */
@media (prefers-reduced-motion: reduce) {
  .film-grain { display: none; }
  .reel-hero { height: 100vh; }
  .hero-pin { opacity: 1; transform: none; transition: none; }
  .js .rv, .w > span { transition: opacity 0.4s ease !important; transform: none !important; }
  .js .rv .slate { transform: none; animation: none !important; }
  .pin-track { height: auto; }
  .pin-stage { position: static; height: auto; padding: 4rem 0; }
  .strip-inner { flex-wrap: wrap; width: auto; transform: none !important; }
  .frame { transform: none; opacity: 1; }
  .strip::before, .strip::after, .strip-rail { display: none; }
  .marquee-track { transform: none !important; }
  .panel, .panel-cover { transition: none; }
  .panel-play::before, .hero-rec i { animation: none; }
  .end-credits { height: auto; padding: 2.5rem 0; }
  .credits-roll { position: static; transform: none; opacity: 0; transition: opacity 1s ease; }
  .end-credits.is-visible .credits-roll { opacity: 1; animation: none; }
}
