/* Brand setup wizard, step 4 "Effects" (kit6 r65 brand effect profile): option cards with live mini-previews of the cold open and the character
   card on the studio's own frame. --fxs = the motion speed (calm 1.25, medium 1, punchy .78), --fxg = the grain opacity; both set on .wz.fxs. */
.wz.fxs { --fxs:1; --fxg:.1; }
.fx-why { display:flex; gap:8px; align-items:center; margin:12px 0 0; font-size:12.5px; color:var(--cream-3); } .fx-why .ic { color:var(--brass); flex:none; }
.fx-g { margin-top:22px; } .fx-g > .lab { display:block; font-size:12.5px; font-weight:600; color:var(--cream-2); margin-bottom:10px; }
.fx-opts { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; } .fx-opts.four { grid-template-columns:repeat(4, minmax(0,1fr)); }
.fx-opt { padding:10px; gap:8px; } .fx-opt .fx-tx { display:flex; flex-direction:column; gap:3px; } .fx-opt b { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.fx-sug { font-size:10px; padding:1px 7px; height:auto; }
.wz.fxs .wz-fr .seg { justify-self:start; } .fx-reset { padding-top:14px; border-top:1px solid var(--line); }
.fx-gr { display:flex; gap:12px; align-items:center; max-width:340px; } .fx-gr input { flex:1; margin:0; } .fx-gr .num { min-width:36px; font-size:12px; }
.fx-pv { display:flex; flex-direction:column; gap:10px; } .fx-pv > .lab { font-size:12px; font-weight:600; color:var(--cream-2); margin-top:6px; } .fx-pv p { margin:4px 0 0; }

/* a preview: 16:9, the frame underneath */
.fxp { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:6px; background:#000; isolation:isolate; container-type:inline-size; }
.fxp > img, .fxp > .wz-plate, .fx-push > img, .fx-push > .wz-plate, .fx-cut > img, .fx-cut > .wz-plate, .fx-key > img, .fx-key > .wz-plate { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fxp i { position:absolute; display:block; }
.fx-grain { inset:0; z-index:6; pointer-events:none; opacity:var(--fxg, .1); mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  animation:fxgrain calc(.5s * var(--fxs, 1)) steps(3) infinite; }
@keyframes fxgrain { 0% { transform:translate(0,0); } 33% { transform:translate(-8%,4%); } 66% { transform:translate(5%,-6%); } 100% { transform:translate(0,0); } }
.fx-t { position:absolute; z-index:4; left:8%; right:8%; bottom:14%; display:flex; flex-direction:column; align-items:flex-start; gap:4px; }

/* cold open: flashback = a desaturated freeze, a typed mono title, an accent underline */
.fx-fb > img { filter:grayscale(.75) contrast(1.1) brightness(.62); animation:fxfreeze calc(4s * var(--fxs, 1)) ease-out infinite; }
.fx-dim { inset:0; z-index:2; background:linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55)); }
.fx-type { display:inline-block; overflow:hidden; white-space:nowrap; font-size:max(9px, 6.4cqw); letter-spacing:.02em; border-right:2px solid currentColor; padding-right:2px;
  animation:fxtype calc(4s * var(--fxs, 1)) steps(18) infinite, fxcaret .7s step-end infinite; }
.fx-rule { position:relative !important; height:3px; width:46%; transform-origin:left; animation:fxrule calc(4s * var(--fxs, 1)) ease-out infinite; }
@keyframes fxfreeze { 0%, 8% { filter:none; transform:scale(1.04); } 14%, 100% { filter:grayscale(.75) contrast(1.1) brightness(.62); transform:scale(1); } }
@keyframes fxtype { 0%, 14% { max-width:0; } 60%, 100% { max-width:100%; } }
@keyframes fxcaret { 50% { border-color:transparent; } }
@keyframes fxrule { 0%, 60% { transform:scaleX(0); } 75%, 100% { transform:scaleX(1); } }

/* cold open: tape rewind = scanlines, a rolling tracking band, a rewind OSD (CSS triangles) */
.fx-tr > img { filter:saturate(.7) contrast(1.15) hue-rotate(-8deg); animation:fxjit calc(1.6s * var(--fxs, 1)) steps(4) infinite; }
.fx-scan { inset:0; z-index:2; background:repeating-linear-gradient(0deg, rgba(0,0,0,.34) 0 1px, rgba(0,0,0,0) 1px 3px); }
.fx-band { left:-5%; right:-5%; height:16%; top:-20%; z-index:3; background:linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.32) 40%, rgba(200,220,255,.18) 60%, rgba(255,255,255,0));
  filter:blur(1px); mix-blend-mode:screen; animation:fxband calc(2.2s * var(--fxs, 1)) linear infinite; }
.fx-osd { position:absolute; z-index:4; top:8%; left:6%; display:flex; align-items:center; gap:.5em; color:#fff; font-size:max(8px, 5cqw); text-shadow:0 0 4px rgba(0,0,0,.8); }
.fx-osd b { font-weight:400; letter-spacing:.08em; } .fx-ctr { opacity:.85; }
.fx-rw { display:inline-flex; } .fx-rw i { position:static; width:0; height:0; border-top:.42em solid transparent; border-bottom:.42em solid transparent; border-right:.6em solid #fff; }
.fx-osd { animation:fxblink 1s step-end infinite; }
@keyframes fxjit { 0% { transform:translateX(0) skewX(0); } 25% { transform:translateX(-1.5%) skewX(1deg); } 50% { transform:translateX(1%) skewX(-.6deg); } 75% { transform:translateX(-.5%); } }
@keyframes fxband { from { top:-20%; } to { top:110%; } }
@keyframes fxblink { 50% { opacity:.45; } }

/* cold open: sound first = black, a thin tracked title fading in, then the frame snaps in */
.fx-sf > img { opacity:0; animation:fxsnap calc(4s * var(--fxs, 1)) step-end infinite; }
.fx-blk { inset:0; z-index:1; background:#000; animation:fxblk calc(4s * var(--fxs, 1)) step-end infinite; }
.fx-sf .fx-t { top:0; bottom:0; justify-content:center; align-items:center; }
.fx-thin { font-size:max(8px, 5.2cqw); letter-spacing:.32em; text-transform:uppercase; white-space:nowrap; animation:fxthin calc(4s * var(--fxs, 1)) ease-out infinite; }
@keyframes fxsnap { 0% { opacity:0; } 64% { opacity:1; } }
@keyframes fxblk { 0% { opacity:1; } 64% { opacity:0; } }
@keyframes fxthin { 0% { opacity:0; letter-spacing:.5em; } 30%, 58% { opacity:1; letter-spacing:.32em; } 64%, 100% { opacity:0; } }

/* character card: splatter = paint blobs, a cut-out with a white sticker edge, a marker name */
.fx-blob { aspect-ratio:1; border-radius:46% 54% 58% 42% / 52% 40% 60% 48%; z-index:1; opacity:.92; animation:fxpop calc(2.4s * var(--fxs, 1)) ease-out infinite; }
.fx-blob:nth-child(2n) { border-radius:60% 40% 45% 55% / 40% 60% 40% 60%; animation-delay:calc(.12s * var(--fxs, 1)); }
.fx-cut { position:absolute; z-index:2; left:30%; top:12%; width:40%; height:72%; border:3px solid #fff; border-radius:8px; overflow:hidden; transform:rotate(-4deg);
  box-shadow:0 8px 18px rgba(0,0,0,.45); animation:fxstick calc(2.4s * var(--fxs, 1)) cubic-bezier(.3,1.5,.5,1) infinite; }
.fx-sp .fx-nm { position:absolute; z-index:3; left:8%; bottom:8%; font-size:max(11px, 10cqw); transform:rotate(-6deg); text-shadow:0 2px 0 rgba(0,0,0,.35); }
@keyframes fxpop { 0% { transform:scale(.2); opacity:0; } 18% { transform:scale(1.08); opacity:.92; } 26%, 100% { transform:scale(1); } }
@keyframes fxstick { 0%, 10% { transform:rotate(-4deg) scale(.6); opacity:0; } 26%, 100% { transform:rotate(-4deg) scale(1); opacity:1; } }

/* character card: editorial = a paper-toned page, a keyline frame, a serif name, ruled lines */
.fx-ed { background:#EFE7DA; color:#1d1712; }
.fx-key { position:absolute; z-index:1; left:6%; top:9%; width:48%; height:82%; overflow:hidden; }
.fx-key::after { content:""; position:absolute; inset:5%; border:1px solid rgba(255,255,255,.85); pointer-events:none; }
.fx-key > img { filter:sepia(.25) contrast(1.05); }
.fx-col { position:absolute; z-index:2; left:59%; right:6%; top:16%; display:flex; flex-direction:column; gap:5px; }
.fx-col small { font-size:max(7px, 3.4cqw); letter-spacing:.14em; text-transform:uppercase; color:#5d4f42; }
.fx-col .fx-nm { font-size:max(12px, 11cqw); line-height:1; }
.fx-col i { position:relative; height:1px; width:100%; transform-origin:left; animation:fxrule calc(3s * var(--fxs, 1)) ease-out infinite; }

/* character card: cinematic = letterbox, a gentle push-in, thin tracked type */
.fx-push { position:absolute; inset:0; animation:fxpush calc(5s * var(--fxs, 1)) ease-in-out infinite alternate; }
.fx-lb { left:0; right:0; height:13%; background:#000; z-index:2; } .fx-lb.t { top:0; } .fx-lb.b { bottom:0; }
.fx-ci .fx-nm { position:absolute; z-index:3; left:0; right:0; bottom:19%; text-align:center; font-size:max(9px, 5.4cqw); letter-spacing:.42em; text-shadow:0 1px 6px rgba(0,0,0,.7);
  animation:fxthin2 calc(5s * var(--fxs, 1)) ease-out infinite; }
@keyframes fxpush { from { transform:scale(1); } to { transform:scale(1.08); } }
@keyframes fxthin2 { 0% { opacity:0; letter-spacing:.6em; } 30%, 100% { opacity:1; letter-spacing:.42em; } }

.fx-no > img { filter:brightness(.8); } .fx-tag { position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%); font-size:max(8px, 4.4cqw); letter-spacing:.14em;
  text-transform:uppercase; color:#fff; border:1px dashed rgba(255,255,255,.6); border-radius:999px; padding:.4em .9em; background:rgba(0,0,0,.35); }

@media (max-width:1100px) { .fx-opts.four { grid-template-columns:repeat(2, minmax(0,1fr)); } }
/* phone: the cards stack, preview left and text right */
@media (max-width:760px) {
  .fx-opts, .fx-opts.four { grid-template-columns:1fr; gap:10px; }
  .fx-opt { flex-direction:row; align-items:center; gap:12px; padding:8px; } .fx-opt .fxp { width:46%; flex:none; } .fx-opt .fx-tx { min-width:0; }
  .fx-gr { max-width:none; }
}
/* reduced motion: static previews, each in its telling state */
@media (prefers-reduced-motion:reduce) {
  .fxp *, .fxp > img { animation:none !important; }
  .fx-type { max-width:100%; border-right:0; } .fx-sf > img { opacity:.32; } .fx-blk { opacity:.68; } .fx-thin, .fx-ci .fx-nm { opacity:1; }
}
