/* ---------- the grade wash: the page reacts to the scrubber ---------- */
#grade-wash {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(12,42,64,.55) 0%, transparent 45%, rgba(255,132,52,.38) 100%);
  opacity: 0; transition: opacity .15s linear;
}

/* ---------- before / after scrubber ---------- */
.ba-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #101114; aspect-ratio: 16 / 9; max-width: 780px; margin: 1.8rem auto .6rem; box-shadow: var(--shadow-soft); border: 1px solid var(--border); }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { will-change: clip-path; }
.ba-divider { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.9); box-shadow: 0 0 12px rgba(0,0,0,.5); pointer-events: none; }
.ba-handle {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: #17181C;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.45); pointer-events: none;
  font-size: .7rem; letter-spacing: .05em;
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-tags { position: absolute; top: .7rem; left: .8rem; right: .8rem; display: flex; justify-content: space-between; pointer-events: none; }
.ba-tag { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); background: rgba(10,11,14,.5); border-radius: 6px; padding: .25rem .5rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ba-caption { text-align: center; font-size: .7rem; color: var(--text-faint); }
.ba-caption b { color: var(--accent); font-weight: 650; }

/* ---------- node tree — styled after Resolve's actual node editor ---------- */
.node-win { max-width: 1060px; margin: 0 auto; }
/* the viewer shows the WHOLE frame — it is a monitor, not a crop.
   aspect-ratio matches the footage so `contain` letterboxes only if a still
   is an odd ratio. */
.node-viewer { position: relative; background: #0B0B0E; aspect-ratio: 16 / 9; width: 100%; }
.node-viewer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: filter .35s ease; }
.node-hud { position: absolute; left: .8rem; bottom: .7rem; font-size: .62rem; color: rgba(255,255,255,.75); background: rgba(10,11,14,.55); border-radius: 6px; padding: .25rem .5rem; }
.node-graph {
  background: #26262B;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 42px);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.9rem 1rem 1.2rem; overflow-x: auto;
}
.node-chain { display: flex; align-items: flex-start; justify-content: center; min-width: 660px; }
.rnode { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; flex: none; width: 86px; font-family: inherit; position: relative; }
.rnode-label { display: block; text-align: center; font-size: .55rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: #C9CBD1; margin-bottom: .32rem; transition: color .2s ease; white-space: nowrap; }
.rnode-box {
  position: relative; display: block; width: 62px; height: 40px; margin: 0 auto;
  background: #0C0C0F; border: 1.5px solid #55575F; border-radius: 3px;
  transition: border-color .2s ease, box-shadow .2s ease, opacity .25s ease;
}
.rnode:hover .rnode-box { border-color: #8B8E96; }
.rnode.sel .rnode-box { border-color: #E04438; box-shadow: 0 0 0 1px #E04438; }
.rnode-box::before { /* blue input triangle */
  content: ""; position: absolute; left: -7px; bottom: 6px;
  border: 4px solid transparent; border-left-color: #3AA3F5;
}
.rnode-box::after { /* green rgb ports */
  content: ""; position: absolute; right: -4px; top: 8px; width: 6px; height: 6px; background: #7CBF3F;
  box-shadow: -66px 0 0 #7CBF3F;
}
.rnode-num { display: block; text-align: center; font-size: .6rem; color: #9DA0A8; margin-top: .32rem; transition: color .2s ease; }
.rnode.off .rnode-box { opacity: .3; border-style: dashed; }
.rnode.off .rnode-label, .rnode.off .rnode-num { color: #55575F; text-decoration: line-through; }
.rnode-studio {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  font-size: .5rem; letter-spacing: .08em; color: #EDAB28; white-space: nowrap;
}
.rlink { flex: 1; min-width: 12px; height: 1.5px; background: #55575F; margin-top: 33px; }
.node-graph-note { text-align: center; font-size: .64rem; color: #8B8E96; margin: 1.1rem 0 0; }
.node-graph-note b { color: #EDAB28; font-weight: 600; }
.node-footnote { padding: 1rem 1.4rem; font-size: .78rem; color: var(--text-muted); line-height: 1.55; border-top: 1px solid var(--border); }
.node-footnote b { color: var(--text); }

/* ---------- workflow bullets ---------- */
.why-list { display: flex; flex-direction: column; }
.why-item { display: flex; gap: .9rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--border); }
.why-item:last-child { border-bottom: 0; }
.why-num { font-size: .68rem; color: var(--accent); flex: none; padding-top: .2rem; }
.why-text { font-size: .9rem; color: var(--text-muted); line-height: 1.55; }
.why-text strong { color: var(--text); font-weight: 650; }

/* ---------- stills strip ---------- */
.stills { display: flex; gap: 1rem; overflow-x: auto; padding: .4rem .2rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.still { flex: 0 0 auto; width: min(420px, 78vw); scroll-snap-align: center; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-soft); background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.still:hover { transform: translateY(-4px); box-shadow: var(--shadow-win); }
.still img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.still-num { padding: .5rem .8rem .55rem; font-size: .6rem; letter-spacing: .1em; color: var(--text-faint); border-top: 1px solid var(--border); }
