/* lutify — white theme. Brand: Plus Jakarta Sans (display), Inter (UI),
   JetBrains Mono (labels), spectrum accents on Mist/White. */
:root {
  --ink: #0A0A0F;
  --graphite: #1C1C24;
  --slate: #6B6B7B;
  --mist: #F2F2F5;
  --white: #FFFFFF;
  --line: rgba(10, 10, 15, .08);
  --line-2: rgba(10, 10, 15, .14);
  --sky: #0EBCFC; --azure: #2F77FC; --uv: #552DFC; --orchid: #C83CF4;
  --flamingo: #F64BB9; --tangerine: #FE7A41; --sunbeam: #FEC941; --lagoon: #0BB9BE; --lime: #48DD56;
  --spectrum: linear-gradient(120deg, #0EBCFC 0%, #2F77FC 16%, #552DFC 30%, #C83CF4 46%, #F64BB9 60%, #FE7A41 78%, #FEC941 100%);
  --wave: linear-gradient(120deg, #FE7A41 0%, #0BB9BE 55%, #48DD56 100%);
  --glass: rgba(255, 255, 255, .62);
  --glass-line: rgba(255, 255, 255, .9);
  --shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 60px -20px rgba(40, 30, 90, .18), 0 2px 6px rgba(10,10,15,.04);
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

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

/* ---------- type helpers ---------- */
.kicker {
  display: inline-block;
  font: 500 12.5px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker-light { background: none; color: rgba(255,255,255,.85); }
.spec {
  background: var(--spectrum);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .04em;
}
h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 { font-weight: 800; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 30px -10px rgba(10,10,15,.5); }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(85,45,252,.55); }
.btn-ghost { background: rgba(255,255,255,.7); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--slate); font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.link:hover { color: var(--ink); }
.link:disabled { opacity: .4; cursor: not-allowed; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: var(--shadow);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  margin: 12px auto 0; width: min(1240px, calc(100% - 2 * var(--gutter)));
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(255,255,255,.95);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 8px 30px -12px rgba(30, 20, 80, .18);
}
.logo { display: flex; }
.logo img { height: 30px; width: auto; display: block; }
.links { display: flex; gap: 4px; margin: 0 auto; }
.links a { text-decoration: none; font-size: 14px; color: #3c3c48; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.links a:hover { background: rgba(10,10,15,.05); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) 0 12px;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.orbs { position: absolute; inset: -140px -30vw -40px; z-index: -1; pointer-events: none; overflow: hidden; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.o1 { width: 520px; height: 520px; left: 52%; top: 4%; background: radial-gradient(circle, #8fd9ff, transparent 65%); }
.o2 { width: 460px; height: 460px; left: 70%; top: 34%; background: radial-gradient(circle, #d7a4ff, transparent 65%); animation-delay: -6s !important; }
.o3 { width: 420px; height: 420px; left: 40%; top: 52%; background: radial-gradient(circle, #ffb3d9, transparent 65%); animation-delay: -11s !important; }
.o4 { width: 380px; height: 380px; left: 82%; top: 64%; background: radial-gradient(circle, #ffe08a, transparent 65%); animation-delay: -3s !important; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.12); } }

.hero h1 {
  font-weight: 800;
  font-size: clamp(54px, 8.6vw, 116px);
  line-height: .95; letter-spacing: -.05em;
  margin: 18px 0 24px;
}
.lede { font-size: clamp(16px, 1.5vw, 18.5px); color: #4a4a58; max-width: 520px; margin: 0 0 32px; }
.hero > * { min-width: 0; }
.hero-copy { max-width: 100%; }
.hero h1, .lede { overflow-wrap: break-word; }
.lede { max-width: min(520px, 100%); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stage { position: relative; padding: 36px 0 44px; width: min(100%, 410px); justify-self: center; }
.demo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; padding: 0;
  transform: rotate(-1.2deg);
}
.demo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: 25px; }
#demoBefore { clip-path: inset(0 var(--cut, 50%) 0 0); }
.demo-line { position: absolute; top: 0; bottom: 0; left: calc(100% - var(--cut, 50%)); width: 2px; margin-left: -1px; background: rgba(255,255,255,.95); box-shadow: 0 0 12px rgba(0,0,0,.25); }
.chip {
  position: absolute; top: 14px; z-index: 2;
  padding: 5px 11px; border-radius: 999px;
  font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: rgba(255,255,255,.78); backdrop-filter: blur(8px);
  pointer-events: none;
}
.chip-tl { left: 14px; } .chip-tr { right: 14px; }
.demo .chip-tr { top: auto; bottom: 14px; }

.float { position: absolute; display: flex; align-items: center; gap: 12px; border-radius: 20px; padding: 10px 16px 10px 10px; font-size: 13px; z-index: 3; animation: bob 6s ease-in-out infinite; }
.float b { display: block; font: 700 14px var(--display); letter-spacing: -.01em; }
.float small { display: block; color: var(--slate); font-size: 12px; }
.f-ref { left: -96px; bottom: 70px; }
.f-ref img { width: 52px; height: 64px; border-radius: 12px; object-fit: cover; display: block; }
.f-file { right: -110px; top: 90px; animation-delay: -2s; }
.f-file svg { color: var(--uv); margin-left: 6px; }
.file-ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font: 500 10.5px var(--mono); color: #fff; background: var(--spectrum);
}
.f-cam { right: -60px; bottom: 8px; padding: 9px 16px; font: 500 12px var(--mono); color: #3c3c48; animation-delay: -4s; }
.f-cam i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(72,221,86,.18); }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- stats ---------- */
.stats {
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  margin: 8px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.stats div { padding: 22px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats span { display: block; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.stats b { font: 700 19px var(--display); letter-spacing: -.01em; }


/* ---------- works with (official marks, monochrome → brand colour on hover) ---------- */
.works { width: min(1240px, calc(100% - 2 * var(--gutter))); margin: 20px auto 0; text-align: center; }
.works-h { margin: 0 0 18px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.logos li {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 10px;
  border-radius: 16px; color: #8b8b98; font: 600 14.5px var(--display); letter-spacing: -.01em; white-space: nowrap;
  transition: color .3s, background .3s, box-shadow .3s, transform .3s;
}
.logos svg { width: 26px; height: 26px; flex: none; fill: currentColor; transition: fill .3s, transform .3s; }
.logos li:hover { color: var(--ink); background: rgba(255,255,255,.75); box-shadow: 0 0 0 1px #fff, 0 10px 30px -14px rgba(30,20,80,.3); transform: translateY(-2px); }
.logos li:hover svg { fill: var(--brand); transform: scale(1.08); }


/* ---------- cinematic banner ---------- */
.cine { width: min(1520px, calc(100% - 2 * var(--gutter))); margin: clamp(48px, 6vw, 80px) auto 0; }
.cine-frame {
  --p: 0; --lb: 0; --x: 0%;
  position: relative; aspect-ratio: 16 / 9; max-height: 86vh; border-radius: 28px; overflow: hidden; background: #000;
  isolation: isolate; color: #fff; box-shadow: 0 50px 100px -40px rgba(10,10,30,.55);
}
.cine-frame::after { /* legibility vignette */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,5,12,.78) 0%, rgba(5,5,12,.45) 34%, rgba(5,5,12,0) 58%), radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.45));
}
.cine-bar { position: absolute; left: 0; right: 0; z-index: 4; height: calc(var(--lb) * 12.8%); background: #050507; pointer-events: none; }
.cine-bar.top { top: 0; } .cine-bar.bottom { bottom: 0; }
.cine-hud { position: absolute; inset: 0; z-index: 5; pointer-events: none; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: var(--lb); }
.cine-hud > span { position: absolute; color: rgba(255,255,255,.82); }
.cine-hud .rec { left: 22px; top: calc(6.4% - 7px); display: flex; align-items: center; gap: 8px; }
.cine-hud .rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b4f; box-shadow: 0 0 10px #ff3b4f; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.cine-hud .tc { left: 50%; top: calc(6.4% - 7px); transform: translateX(-50%); font-variant-numeric: tabular-nums; color: #fff; }
.cine-hud .ratio { right: 22px; top: calc(6.4% - 7px); }
.cine-hud .lutchip { right: 22px; bottom: calc(6.4% - 7px); }
.cine-hud .lutchip b { color: #fff; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cine-hud .guide { position: absolute; width: 22px; height: 22px; border: 1.5px solid rgba(255,255,255,.7); }
.cine-hud .g-tl { left: 22px; top: calc(12.8% + 18px); border-right: 0; border-bottom: 0; }
.cine-hud .g-tr { right: 22px; top: calc(12.8% + 18px); border-left: 0; border-bottom: 0; }
.cine-hud .g-bl { left: 22px; bottom: calc(12.8% + 18px); border-right: 0; border-top: 0; }
.cine-hud .g-br { right: 22px; bottom: calc(12.8% + 18px); border-left: 0; border-top: 0; }
.cine-copy { position: absolute; z-index: 6; left: clamp(28px, 5vw, 72px); top: 50%; transform: translateY(-50%); max-width: 38%; }
.cine-copy h2 { font-size: clamp(38px, 6vw, 96px); line-height: .95; letter-spacing: -.045em; margin: 14px 0 26px; text-shadow: 0 10px 40px rgba(0,0,0,.35); }
.cine-copy h2 em { font-style: normal; background: linear-gradient(100deg, #FEC941, #FE7A41 40%, #F64BB9); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* ambient light: the graded frame, blurred into a glow behind the pair */
.cine-amb { position: absolute; inset: -12%; z-index: 0; transform: translate(calc((var(--mx, .5) - .5) * -3%), calc((var(--my, .5) - .5) * -3%)); }
.cine-amb img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.4); opacity: calc(.18 + var(--open, 0) * .3); }
.cine-pair { position: absolute; z-index: 2; right: 4%; top: 50%; width: 54%; height: 70%; transform: translateY(-50%); perspective: 1500px; }
.cine-rig {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(calc((var(--mx, .5) - .5) * 16deg)) rotateX(calc((.5 - var(--my, .5)) * 10deg));
}
.cine-spine { position: absolute; left: 50%; top: 6%; width: 3px; height: 88%; margin-left: -1.5px; border-radius: 3px; background: var(--spectrum); transform: translateZ(-60px);
  box-shadow: 0 0 40px 10px rgba(130, 80, 255, .45); opacity: calc(var(--open, 0) * .9); }
.ccard { position: absolute; top: 50%; width: 41%; aspect-ratio: 4 / 5; margin: 0; transform-style: preserve-3d; cursor: zoom-in; }
.ccard-before { left: 6%; transform: translateY(-50%) translateX(calc((1 - var(--open, 0)) * 52%)) rotateY(calc(var(--open, 0) * 17deg)) translateZ(calc(var(--open, 0) * 10px)); }
.ccard-after { right: 6%; transform: translateY(-50%) translateX(calc((1 - var(--open, 0)) * -52%)) rotateY(calc(var(--open, 0) * -17deg)) translateZ(calc(var(--open, 0) * 30px)); }
.ccard .in {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden; background: #111;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 40px 80px -30px rgba(0,0,0,.8);
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .55s, box-shadow .55s;
}
.ccard-after .in { box-shadow: 0 0 0 1px rgba(255,255,255,.22), 0 40px 80px -30px rgba(0,0,0,.8), 0 0 70px -10px rgba(246, 75, 185, .45); }
.ccard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.ccard-before img { object-position: 40% 40%; }
.ccard-after img { object-position: 52% 40%; }
.ccard .glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(60% 50% at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.32), rgba(255,255,255,0) 70%); mix-blend-mode: soft-light; }
.ccard figcaption { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 9px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.ccard figcaption b { padding: 4px 10px; border-radius: 99px; font-weight: 600; color: #fff; background: rgba(10,10,15,.55); backdrop-filter: blur(8px); }
.ccard-after figcaption b { color: var(--ink); background: #fff; }
.ccard figcaption span { text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.ccard.hov .in { transform: translateZ(70px) scale(1.03); }
.ccard.hov img { transform: scale(1.06); }
.ccard.hov .glare { opacity: 1; }
.ccard.dim .in { filter: brightness(.55) saturate(.7); }
.cine-beam {
  position: absolute; left: 50%; top: 9%; z-index: 3; display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 6px; border-radius: 99px; white-space: nowrap;
  background: rgba(255,255,255,.94); color: var(--ink); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6), 0 0 40px rgba(130, 80, 255, .45);
  transform: translateX(-50%) translateZ(120px) scale(calc(.7 + var(--open, 0) * .3)); opacity: calc(var(--open, 0) * 1.4 - .3); pointer-events: none;
}
.cine-beam b { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.beam-ico { padding: 4px 8px; border-radius: 99px; background: var(--spectrum); color: #fff; font-size: 10px; }
.cine-quote { margin: -8px 0 26px; max-width: 30ch; font: 400 clamp(13px, 1.1vw, 16px)/1.5 var(--sans); color: rgba(255,255,255,.72); }
@media (max-width: 860px) {
  .cine-frame { aspect-ratio: auto; max-height: none; border-radius: 22px; display: flex; flex-direction: column-reverse; padding: calc(var(--lb) * 64px + 28px) 22px calc(var(--lb) * 64px + 34px); gap: 26px; cursor: default; }
  .cine-frame::after { background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.45)); }
  .cine-copy { position: relative; left: auto; top: auto; transform: none; max-width: none; }
  .cine-pair { position: relative; right: auto; top: auto; transform: none; width: 100%; height: auto; aspect-ratio: 1 / .7; }
  .ccard figcaption span { display: none; }
  .cine-amb img { opacity: calc(.12 + var(--open, 0) * .18); }
  .ccard { width: 46%; }
  .ccard-before { left: 2%; } .ccard-after { right: 2%; }
  .cine-beam { top: 2%; }
  .cine-hud .ratio, .cine-hud .guide { display: none; }
  .cine-bar { height: calc(var(--lb) * 64px); }
  .cine-hud .rec, .cine-hud .tc, .cine-hud .ratio { top: calc(var(--lb) * 32px - 7px); }
  .cine-hud .lutchip { bottom: calc(var(--lb) * 32px - 7px); }
}


/* ---------- how-it-works video ---------- */
.hiw-video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; margin-bottom: 18px;
  background: #0d0d14; box-shadow: 0 0 0 1px rgba(255,255,255,.9), 0 40px 90px -40px rgba(30,20,80,.55);
}
.hiw-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hiw-video::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 70% at 50% 50%, transparent 55%, rgba(5,5,12,.45)); transition: opacity .4s; }
.hiw-video.playing::after { opacity: 0; }
.hiw-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px); color: var(--ink); text-align: left;
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.5); transition: transform .3s cubic-bezier(.2,.9,.2,1), opacity .3s;
}
.hiw-play:hover { transform: translate(-50%, -50%) scale(1.04); }
.hiw-play b { display: block; font: 700 16px var(--display); letter-spacing: -.01em; }
.hiw-play small { display: block; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.hiw-ico { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--spectrum); flex: none; }
.hiw-ico svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.hiw-video.playing .hiw-play { opacity: 0; pointer-events: none; }
.hiw-chip { position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.88); color: var(--ink); font: 500 11px var(--mono); letter-spacing: .04em; transition: opacity .3s; }
.hiw-chip i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b4f; box-shadow: 0 0 0 3px rgba(255,59,79,.2); }
.hiw-video.playing .hiw-chip { opacity: 0; }
@media (max-width: 560px) { .hiw-video { border-radius: 18px; } .hiw-play { padding: 7px 16px 7px 7px; gap: 10px; } .hiw-ico { width: 40px; height: 40px; } .hiw-play b { font-size: 14px; } }

/* ---------- section heads ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.sec-head h2 { margin: 14px 0 14px; }
.sec-head p { color: #4a4a58; margin: 0; font-size: 17px; }

/* ---------- studio (pro 3-pane workspace) ---------- */
.studio-wrap { width: min(1520px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(48px, 6vw, 80px) 0 8px; position: relative; }
.studio-wrap::before {
  content: ""; position: absolute; inset: 30% -10% 0; z-index: -1; filter: blur(90px); opacity: .45;
  background: radial-gradient(40% 50% at 20% 60%, #9ad8ff, transparent), radial-gradient(40% 50% at 80% 40%, #e2b5ff, transparent), radial-gradient(30% 40% at 60% 90%, #ffd0a6, transparent);
}
.studio {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 318px; align-items: start;
  border-radius: 28px; overflow: clip;
}
.pane { padding: 14px 16px 22px; background: rgba(255,255,255,.58); align-self: stretch; }
.pane-left { border-right: 1px solid var(--line); }
.pane-right { border-left: 1px solid var(--line); padding-top: 6px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 12px; background: rgba(10,10,15,.05); margin-bottom: 2px; }
.mode button { border: 0; background: none; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--slate); transition: all .2s; }
.mode button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(10,10,15,.08); }
.blk { padding: 14px 0; border-bottom: 1px solid var(--line); }
.blk:last-child { border-bottom: 0; }
.blk-h { font: 700 12.5px var(--display); letter-spacing: .02em; display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.n { font: 500 11px var(--mono); background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.opt { margin-left: auto; color: var(--slate); font: 500 11.5px var(--sans); }
.hint { margin-left: auto; }
.hint-t { color: var(--slate); font: 500 11px var(--sans); }
kbd {
  display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 6px; text-align: center;
  font: 500 10.5px var(--mono); color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 1px 0 1px rgba(10,10,15,.08);
}

.drop {
  position: relative; display: grid; place-items: center; min-height: 132px;
  border-radius: 16px; cursor: pointer; overflow: hidden; background: rgba(255,255,255,.8);
  border: 1.5px dashed rgba(85,45,252,.28); transition: border-color .2s, background .2s, transform .2s;
}
.drop-sm { min-height: 84px; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--uv); background: #fff; outline: none; }
.drop.over { transform: scale(1.015); }
.drop.filled { border: 1px solid var(--line); }
.drop img { width: 100%; height: 100%; max-height: 180px; object-fit: cover; display: block; }
.drop-empty { text-align: center; color: var(--slate); padding: 14px; font-size: 12.5px; }
.drop-empty strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.drop-empty small { display: block; margin-top: 3px; font-size: 11.5px; }
.drop-ico { display: block; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 10px; background: var(--spectrum); position: relative; }
.drop-ico::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 600 19px/1 var(--sans); }
.drop-badge { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 99px; font: 500 10.5px var(--mono); color: #fff; background: rgba(10,10,15,.65); backdrop-filter: blur(6px); }
.tip { margin: 8px 0 0; font-size: 11.5px; color: var(--slate); }
.samples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.samples button { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; box-shadow: 0 0 0 1px var(--line); aspect-ratio: 1; transition: box-shadow .2s, transform .2s; }
.samples img { width: 100%; height: 100%; object-fit: cover; display: block; }
.samples span { position: absolute; left: 4px; right: 4px; bottom: 4px; padding: 2px 6px; border-radius: 99px; font: 600 10px var(--sans); color: var(--ink); background: rgba(255,255,255,.85); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.samples button:hover { transform: translateY(-1px); }
.samples button.on { box-shadow: 0 0 0 2px var(--uv); }
.samples.off { display: none; }
.busy::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%) 0 0 / 200% 100%;
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* coolors-style palette strip */
.palette { display: flex; height: 64px; margin-top: 10px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.palette button {
  flex: 1; border: 0; cursor: pointer; position: relative; transition: flex .35s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px;
}
.palette button:hover { flex: 2.2; }
.palette button span { font: 500 10px var(--mono); opacity: 0; transform: translateY(4px); transition: all .25s; }
.palette button:hover span { opacity: 1; transform: none; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.swatches { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--slate); }
.swatches i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.swatches span { margin-left: 3px; }

.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset {
  border: 0; padding: 0; background: #ddd; cursor: pointer; text-align: left; border-radius: 12px; overflow: hidden;
  position: relative; aspect-ratio: 4 / 3; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s;
}
.preset canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.preset .pn {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 9px 7px; display: block;
  background: linear-gradient(transparent, rgba(5,5,10,.72)); color: #fff; pointer-events: none;
}
.preset .pn b { display: block; font: 700 12px/1.15 var(--display); letter-spacing: -.01em; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.preset .pn small { display: block; margin-top: 2px; font: 500 9px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.preset:hover { transform: translateY(-1px); }
.preset.on { box-shadow: 0 0 0 2px var(--uv), 0 8px 20px -8px rgba(85,45,252,.55); }
.preset.on::after {
  content: "✓"; position: absolute; top: 7px; right: 7px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font: 700 11px var(--sans); color: #fff; background: var(--uv); box-shadow: 0 2px 8px rgba(85,45,252,.5);
}
.inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.inputs button { text-align: left; padding: 7px 10px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: rgba(255,255,255,.8); transition: border-color .2s, background .2s; }
.inputs button:first-child { grid-column: 1 / -1; }
.inputs button b { display: block; font-weight: 600; font-size: 12.5px; }
.inputs button span { display: block; color: var(--slate); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inputs button:hover { border-color: var(--line-2); background: #fff; }
.inputs button.on { border-color: var(--uv); background: #fff; box-shadow: 0 0 0 3px rgba(85,45,252,.1); }

/* centre column */
.canvas-col { min-width: 0; padding: 14px 18px 16px; position: sticky; top: 76px; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(10,10,15,.05); }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--slate); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(10,10,15,.08); }
.hist { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(10,10,15,.05); }
.ib { height: 28px; min-width: 30px; padding: 0 7px; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, opacity .2s; }
.ib svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ib:hover:not(:disabled) { background: #fff; box-shadow: 0 2px 8px rgba(10,10,15,.08); }
.ib:disabled { opacity: .3; cursor: default; }
.ib-txt { font: 600 12px var(--sans); padding: 0 11px; }
.status { color: var(--slate); font: 500 11.5px var(--mono); margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; color: #3c3c48; }
.toggle input { accent-color: var(--uv); width: 14px; height: 14px; }
.viewport { display: grid; place-items: center; min-height: 200px; }
.frame { position: relative; border-radius: 14px; overflow: hidden; background: #ddd; box-shadow: 0 30px 70px -25px rgba(20, 10, 60, .35); touch-action: none; user-select: none; }
.frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.frame.split { cursor: ew-resize; }
.wipe { position: absolute; top: 0; bottom: 0; width: 0; left: var(--x, 50%); pointer-events: none; }
.wipe::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.25); }
.wipe span { position: absolute; top: 50%; left: -17px; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wipe span::before, .wipe span::after { content: ""; position: absolute; top: 12px; border: 5px solid transparent; }
.wipe span::before { left: 3px; border-right-color: var(--ink); }
.wipe span::after { right: 3px; border-left-color: var(--ink); }
.frame:not(.split) .wipe, .frame:not(.split) .chip { display: none; }
.pip { position: absolute; right: 10px; bottom: 10px; width: 22%; min-width: 80px; max-height: 40%; object-fit: cover; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.25); pointer-events: none; }
.source-note { color: var(--slate); font-size: 12px; text-align: center; margin: 10px 0 0; min-height: 16px; }

.transport { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 20px -10px rgba(20,10,60,.25); }
.play { width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: var(--ink); }
.play:hover { background: var(--uv); }
.transport input[type=range] { flex: 1; }
.tc { font: 500 11.5px var(--mono); color: var(--slate); white-space: nowrap; }

/* scopes: compact instrument dock (Resolve-style) */
.scopes {
  margin-top: 14px; display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 6px;
  border-radius: 16px; background: #0d0d12; padding: 6px;
  box-shadow: 0 0 0 1px rgba(10,10,15,.2), 0 16px 40px -18px rgba(10,10,15,.55);
}
.scope-cell { position: relative; min-width: 0; border-radius: 11px; background: #050507; overflow: hidden; display: flex; flex-direction: column; }
.scope-vec canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.scope-lab { position: absolute; left: 8px; top: 6px; font: 500 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8a8a99; z-index: 1; }
.scope-tabs { display: flex; gap: 2px; padding: 4px 4px 0; overflow-x: auto; scrollbar-width: none; }
.scope-tabs button { flex: none; border: 0; background: none; color: #8a8a99; font: 500 9.5px var(--mono); letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; cursor: pointer; text-transform: uppercase; }
.scope-tabs button.on { background: #1f1f28; color: #fff; }
#scope { display: block; width: 100%; flex: 1; min-height: 0; height: 100%; }

/* inspector */
.ins { border-bottom: 1px solid var(--line); }
.ins:last-child { border-bottom: 0; }
.ins summary {
  list-style: none; cursor: pointer; padding: 14px 0 12px; display: flex; align-items: center; gap: 8px;
  font: 700 12.5px var(--display); letter-spacing: .02em;
}
.ins summary::-webkit-details-marker { display: none; }
.ins summary::before {
  content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--slate); border-bottom: 1.6px solid var(--slate);
  transform: rotate(-45deg); transition: transform .2s; margin: 0 3px 0 1px;
}
.ins[open] summary::before { transform: rotate(45deg); }
.ins > :not(summary) { margin-bottom: 16px; }
.mini { margin-left: auto; border: 0; background: rgba(10,10,15,.05); border-radius: 99px; padding: 3px 10px; font: 500 11px var(--sans); color: var(--slate); cursor: pointer; }
.mini:hover { background: rgba(10,10,15,.1); color: var(--ink); }

.sliders { display: grid; gap: 11px; }
.slider label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 500; margin-bottom: 2px; }
.slider output { color: var(--slate); font: 500 11.5px var(--mono); }
.slider small { display: none; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 18px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--azure), var(--uv), var(--orchid)) 0 / var(--p, 50%) 100% no-repeat, rgba(10,10,15,.1);
}
input[type=range].bi::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--uv), var(--orchid)) var(--from, 50%) 0 / var(--w, 0%) 100% no-repeat, rgba(10,10,15,.1);
}
input[type=range].temp::-webkit-slider-runnable-track { background: linear-gradient(90deg, #3d8bff, #e8e8ee 50%, #ffb347); }
input[type=range].tint::-webkit-slider-runnable-track { background: linear-gradient(90deg, #3fd06a, #e8e8ee 50%, #e65bd0); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(10,10,15,.1); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--azure), var(--uv), var(--orchid)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(10,10,15,.14), 0 3px 10px rgba(10,10,15,.2); transition: transform .15s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 1px rgba(10,10,15,.14), 0 3px 10px rgba(10,10,15,.2); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(85,45,252,.25); }

.wheels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px !important; }
.wheel { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.wheel-disc { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; touch-action: none; cursor: crosshair; }
.wheel-disc canvas { width: 100%; height: 100%; border-radius: 50%; display: block; box-shadow: 0 0 0 1px var(--line-2), 0 8px 20px -10px rgba(20,10,60,.4); }
.wheel-disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: rgba(10,10,15,.35); }
.puck {
  position: absolute; width: 16px; height: 16px; margin: -8px; border-radius: 50%;
  left: calc(50% + var(--px, 0) * 50%); top: calc(50% - var(--py, 0) * 50%);
  background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 4px 10px rgba(0,0,0,.3); pointer-events: none; z-index: 1;
  transition: transform .15s;
}
.wheel-disc:active .puck { transform: scale(1.25); }
.wheel b { font: 600 11.5px var(--sans); }
.wheel input[type=range] { height: 14px; }

#curve { display: block; width: 100%; height: auto; aspect-ratio: 7 / 4; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.curve-key { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--slate); margin-top: 8px !important; }
.curve-key i { width: 10px; height: 3px; border-radius: 2px; margin-left: 6px; }
.k-l { background: var(--ink); } .k-r { background: #ff4b5c; } .k-g { background: #2fbf5a; } .k-b { background: #2f77fc; }

.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 10px !important; }
.formats button { text-align: left; padding: 7px 9px; border-radius: 10px; cursor: pointer; border: 1px solid var(--line); background: rgba(255,255,255,.8); transition: all .2s; min-width: 0; }
.formats button b { display: block; font-size: 12px; font-weight: 600; }
.formats button span { display: block; font-size: 10.5px; color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.formats button.on { border-color: var(--uv); background: #fff; box-shadow: 0 0 0 3px rgba(85,45,252,.1); }
.formats button:disabled { opacity: .4; cursor: not-allowed; }
.export { display: flex; gap: 6px; margin-bottom: 8px !important; }
.export input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; }
.export input:focus { outline: none; border-color: var(--uv); box-shadow: 0 0 0 3px rgba(85,45,252,.12); }
.export .btn { height: 44px; padding: 0 18px; }
.meta { color: var(--slate); font-size: 11.5px; margin: 8px 0 0; }
.fine { color: #8b8b98; font-size: 11px; margin: 6px 0 0; }
.shortcuts { text-align: center; color: var(--slate); font-size: 12px; margin: 12px 0 0; line-height: 2; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; transform: translate(-50%, 20px); opacity: 0;
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(10,10,15,.5); transition: all .3s cubic-bezier(.2,.8,.2,1); pointer-events: none; max-width: calc(100% - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* ---------- look switcher band ---------- */
@property --g1 { syntax: '<color>'; inherits: true; initial-value: #552DFC; }
@property --g2 { syntax: '<color>'; inherits: true; initial-value: #F64BB9; }
@property --g3 { syntax: '<color>'; inherits: true; initial-value: #FEC941; }
.band {
  width: min(1240px, calc(100% - 2 * var(--gutter)));
  margin: clamp(48px, 6vw, 80px) auto 0;
  border-radius: 34px; overflow: hidden; position: relative; isolation: isolate;
  display: grid; grid-template-columns: .9fr 1.1fr; min-height: 520px; color: #fff;
  background:
    radial-gradient(55% 75% at 92% 105%, color-mix(in oklab, var(--g3) 75%, transparent), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in oklab, var(--g2) 70%, transparent), transparent 65%),
    radial-gradient(70% 90% at 70% 0%, color-mix(in oklab, var(--g1) 85%, transparent), transparent 70%),
    linear-gradient(160deg, #2F77FC 0%, #552DFC 50%, #C83CF4 100%);
  transition: --g1 1.4s ease, --g2 1.4s ease, --g3 1.4s ease;
}
.band::before { /* grain */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.band-copy { padding: clamp(32px, 5vw, 60px); align-self: center; position: relative; z-index: 2; }
.band-copy h2 { margin: 14px 0 18px; }
.band-copy p { color: rgba(255,255,255,.86); max-width: 400px; margin: 0 0 28px; font-size: 16px; }
.band-copy .btn span { transition: transform .25s; }
.band-copy .btn:hover span[aria-hidden] { transform: translateX(3px); }
.band-stage { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 300px); align-items: center; gap: 8px; padding: 36px clamp(24px, 4vw, 52px) 36px 0; }

.wordwheel { position: relative; height: 100%; min-height: 420px; }
.wordwheel span {
  position: absolute; left: 0; top: 50%; white-space: nowrap; will-change: transform, opacity; cursor: pointer;
  font: 800 clamp(30px, 3.6vw, 52px)/1 var(--display); letter-spacing: -.035em; color: transparent;
  -webkit-text-stroke: 1.3px rgba(255,255,255,.75); transform-origin: 0 50%; transition: color .4s, -webkit-text-stroke-color .4s;
}
.wordwheel span:hover { -webkit-text-stroke-color: #fff; }
.wordwheel span.on { color: #fff; -webkit-text-stroke-color: transparent; text-shadow: 0 10px 40px rgba(0,0,0,.18); }
.wordwheel span.on::after {
  content: "applied"; position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; -webkit-text-stroke: 0;
  color: var(--ink); background: #fff; padding: 4px 8px; border-radius: 99px;
}

.deck { position: relative; aspect-ratio: 4 / 5; }
.look-chips { display: none; }
.band-copy .btn b { font-weight: 700; }
.deck-card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.15); }
.deck-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .7s ease; }
.deck-card.main { box-shadow: 0 0 0 1.5px rgba(255,255,255,.75), 0 40px 80px -30px rgba(20,0,60,.65); transition: transform .7s cubic-bezier(.2,.9,.2,1); }
.deck-card.ghost { opacity: .55; filter: saturate(1.1); box-shadow: 0 0 0 1px rgba(255,255,255,.4); transition: transform .9s cubic-bezier(.2,.9,.2,1); }
.back1 { transform: translate(-30px, 14px) rotate(-7deg) scale(.94); }
.back2 { transform: translate(28px, 22px) rotate(6deg) scale(.88); opacity: .35 !important; }
.deck.flip .main { transform: translateY(-6px) rotate(.8deg) scale(1.01); }
.deck.flip .back1 { transform: translate(-36px, 10px) rotate(-9deg) scale(.94); }
.deck-chip {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 99px; background: rgba(255,255,255,.88); color: var(--ink);
  font: 500 11px var(--mono); letter-spacing: .04em; backdrop-filter: blur(8px);
}
.deck-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(72,221,86,.25); }
.deck-chip b { font-weight: 600; }
.deck-meta { position: absolute; right: 12px; bottom: 12px; padding: 4px 9px; border-radius: 99px; background: rgba(10,10,15,.55); color: #fff; font: 500 10px var(--mono); backdrop-filter: blur(6px); }
.deck-pal { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.9); box-shadow: 0 10px 30px -10px rgba(20,0,60,.5); z-index: 3; }
.deck-pal i { width: 18px; height: 18px; border-radius: 50%; transition: background .7s ease; box-shadow: inset 0 0 0 1px rgba(10,10,15,.08); }

/* ---------- how ---------- */
.how, .formats-sec, .faq { width: min(1240px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding-top: clamp(48px, 6vw, 80px); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; overflow: hidden; border-radius: var(--r); padding: 26px 26px 28px; min-height: 230px; display: flex; flex-direction: column; }
.card h3 { font-weight: 700; font-size: 23px; letter-spacing: -.02em; margin: auto 0 10px; }
.card p { margin: 0; color: #4a4a58; font-size: 14.5px; }
.num { font: 800 15px var(--display); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.glow { position: absolute; width: 240px; height: 240px; right: -70px; top: -80px; border-radius: 50%; filter: blur(50px); opacity: .55; z-index: -1; }
.g1 { background: var(--sky); } .g2 { background: var(--orchid); } .g3 { background: var(--tangerine); }

/* ---------- formats ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fcard { border-radius: 20px; padding: 24px 24px 22px; transition: transform .25s; }
.fcard:hover { transform: translateY(-3px); }
.fcard b { font: 800 30px var(--display); letter-spacing: -.03em; }
.fcard > span { margin-left: 8px; font: 500 11.5px var(--mono); color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.fcard p { margin: 12px 0 0; color: #4a4a58; font-size: 14px; }
.fcard:nth-child(1) b { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- faq ---------- */
.qa { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.qa details { border-radius: 18px; background: rgba(255,255,255,.7); border: 1px solid #fff; box-shadow: 0 4px 20px -12px rgba(30,20,80,.2); }
.qa summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font: 700 16.5px var(--display); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: rgba(10,10,15,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8M11 7v8' stroke='%230A0A0F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform .25s;
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 24px 22px; color: #4a4a58; font-size: 14.5px; }

/* ---------- footer ---------- */
.foot {
  position: relative; margin-top: clamp(48px, 6vw, 80px);
  padding: 44px var(--gutter) 56px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line-2); background: rgba(255,255,255,.6);
}
.foot img { height: 34px; width: auto; }
.foot p { margin: 0; font: 700 16px var(--display); letter-spacing: -.01em; }
.credit {
  margin-left: auto; text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 8px 24px -14px rgba(30,20,80,.3);
  font-size: 13px; color: var(--slate); transition: transform .2s, box-shadow .2s;
}
.credit:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line-2), 0 12px 28px -12px rgba(85,45,252,.4); }
.credit b { font: 800 14px var(--display); letter-spacing: -.01em; color: var(--ink); }
.credit em { font-style: normal; }
.credit .ig { width: 16px; height: 16px; align-self: center; fill: none; stroke: currentColor; stroke-width: 1.8; }
.credit .ig .dot { fill: currentColor; stroke: none; }
.credit:hover .ig { stroke: #F64BB9; }
.credit:hover .ig .dot { fill: #F64BB9; }
.copy { width: 100%; color: #9a9aa8; font-size: 11.5px; line-height: 1.6; }

/* hero colour-wheel card */
.f-wheel { left: -70px; top: 150px; padding: 8px 14px 8px 8px; animation-delay: -3s; }
.mini-wheel {
  width: 40px; height: 40px; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle, #fff 0 18%, transparent 62%), conic-gradient(from 90deg, #ff4d6d, #ffb347, #ffe66d, #4cd97b, #3fd0e0, #3d7bff, #8f5bff, #e65bd0, #ff4d6d);
  box-shadow: 0 0 0 1px rgba(10,10,15,.08);
}
.mini-wheel b { position: absolute; width: 10px; height: 10px; margin: -5px; left: 50%; top: 50%; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--ink); animation: orbit 7s linear infinite; }
@keyframes orbit { from { transform: rotate(0deg) translateX(11px) rotate(0deg); } to { transform: rotate(360deg) translateX(11px) rotate(-360deg); } }

/* hero cursor spotlight */
.hero { --mx: 70%; --my: 30%; }
.hero::after {
  content: ""; position: absolute; inset: -80px -20vw 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(85,45,252,.12), transparent 60%);
}
.orbs { transform: translate(var(--ox, 0), var(--oy, 0)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }

/* scroll reveal */
.anim .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.anim .reveal.in { opacity: 1; transform: none; }
.reveal .card, .reveal .fcard { transition: transform .25s, opacity .8s; }


/* ---------- figma-style motion ---------- */
.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em .06em .24em 0; margin-bottom: -.24em; }
.words .w i { display: inline-block; font-style: normal; }
.words .w i.spec { padding: 0 .08em .26em 0; margin-bottom: -.26em; } /* gradient text must cover the descender of the y */
.anim .words .w i { transform: translateY(105%); animation: rise .95s cubic-bezier(.2,.9,.2,1) forwards; }
.anim .words .w:nth-child(2) i { animation-delay: .08s; }
.anim .words .w:nth-child(3) i { animation-delay: .18s; }
@keyframes rise { to { transform: none; } }
.anim .hero-copy > :not(h1) { opacity: 0; animation: fadeup .9s cubic-bezier(.2,.9,.2,1) .35s forwards; }
.anim .hero-copy > .kicker { animation-delay: .05s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.anim .hero-stage { animation: stagein 1.1s cubic-bezier(.2,.9,.2,1) .2s both; }
@keyframes stagein { from { opacity: 0; transform: translateY(30px) scale(.97); } }

.sel {
  position: absolute; left: 0; right: 0; top: 36px; aspect-ratio: 4 / 5; z-index: 2; pointer-events: none;
  outline: 1.5px solid #0D99FF; outline-offset: 7px; border-radius: 26px; transform: rotate(-1.2deg);
  animation: selin .6s ease 1.3s both;
}
@keyframes selin { from { opacity: 0; outline-offset: 22px; } }
.sel .h { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid #0D99FF; border-radius: 2px; }
.sel .tl { left: -12px; top: -12px; } .sel .tr { right: -12px; top: -12px; }
.sel .bl { left: -12px; bottom: -12px; } .sel .br { right: -12px; bottom: -12px; }
.sel-tag { position: absolute; left: -8px; top: -34px; font: 500 11px var(--mono); color: #0D99FF; white-space: nowrap; }

.cursor { position: absolute; z-index: 6; pointer-events: none; display: flex; align-items: flex-start; filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
.cursor svg { width: 18px; height: 18px; fill: var(--c); stroke: #fff; stroke-width: 1.3; }
.cursor b { margin: 14px 0 0 -2px; padding: 3px 9px; border-radius: 4px 999px 999px 999px; background: var(--c); color: #fff; font: 600 11.5px var(--sans); white-space: nowrap; }
.c1 { --c: #F64BB9; animation: path1 11s cubic-bezier(.45,0,.25,1) infinite; }
.c2 { --c: #2F77FC; animation: path2 13s cubic-bezier(.45,0,.25,1) infinite; }
.c3 { --c: #FE7A41; animation: path3 9s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes path1 { 0%,100% { left: 8%; top: 70%; } 22% { left: 30%; top: 46%; } 40% { left: 30%; top: 46%; } 62% { left: 52%; top: 84%; } 80% { left: 18%; top: 92%; } }
@keyframes path2 { 0%,100% { left: 88%; top: 4%; } 25% { left: 72%; top: 18%; } 45% { left: 60%; top: 40%; } 70% { left: 84%; top: 58%; } 85% { left: 92%; top: 26%; } }
@keyframes path3 { 0%,100% { left: 50%; top: 52%; } 30% { left: 64%; top: 30%; } 55% { left: 40%; top: 22%; } 78% { left: 46%; top: 60%; } }

/* scroll reveal: springy stagger for cards */
.anim .reveal .card, .anim .reveal .fcard, .anim .reveal .logos li, .anim .reveal details { opacity: 0; transform: translateY(24px) scale(.98); }
.anim .reveal.in .card, .anim .reveal.in .fcard, .anim .reveal.in .logos li, .anim .reveal.in details {
  opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2,.9,.2,1), transform .8s cubic-bezier(.2,.9,.2,1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in .logos li:hover, .reveal.in .fcard:hover { transform: translateY(-3px); transition-delay: 0s; }


/* desktop: the studio is a fixed-height app window; panels scroll inside (Figma-style) */
@media (min-width: 1281px) {
  .studio { height: min(940px, calc(100vh - 96px)); min-height: 640px; align-items: stretch; }
  .pane { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(10,10,15,.18) transparent; overscroll-behavior: contain; }
  .canvas-col {
    position: static; display: flex; flex-direction: column; min-height: 0;
    background-color: #ececf1;
    background-image: radial-gradient(rgba(10,10,15,.09) 1px, transparent 1.2px);
    background-size: 18px 18px;
  }
  .canvas-col .viewport { flex: 1; min-height: 0; }
  .canvas-col .scopes { flex: none; height: 168px; }
  .canvas-col .source-note { margin-top: 8px; }
}


/* ---------- living background: cursor-following orbs ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bo { position: absolute; left: 0; top: 0; width: 46vmax; height: 46vmax; margin: -23vmax 0 0 -23vmax; border-radius: 50%; filter: blur(70px); opacity: .32; will-change: transform; }
.b1 { background: radial-gradient(circle, #8fd3ff 0%, transparent 62%); }
.b2 { background: radial-gradient(circle, #d4a6ff 0%, transparent 62%); }
.b3 { background: radial-gradient(circle, #ffb0d6 0%, transparent 62%); }
.b4 { background: radial-gradient(circle, #ffe08a 0%, transparent 62%); width: 30vmax; height: 30vmax; margin: -15vmax 0 0 -15vmax; opacity: .28; }

/* 3D tilt + cursor spotlight on cards */
.card, .fcard { transform-style: preserve-3d; will-change: transform; }
.fcard { position: relative; overflow: hidden; }
.card::before, .fcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,.85), transparent 60%);
  mix-blend-mode: soft-light;
}
.card:hover::before, .fcard:hover::before { opacity: 1; }
.tilt { transition: transform .12s ease-out !important; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .studio { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "canvas right" "left right"; }
  .canvas-col { grid-area: canvas; position: static; }
  .pane-left { grid-area: left; border-right: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .pane-left .mode { grid-column: 1 / -1; }
  .pane-right { grid-area: right; }
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .hero-stage { margin: 0 auto; width: min(100%, 420px); }
  .f-ref { left: -40px; } .f-file { right: -40px; } .f-wheel { left: -40px; } .f-cam { right: -20px; }
  .studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "canvas" "left" "right"; }
  .pane-right { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .links { display: none; }
  .nav { justify-content: space-between; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .band { grid-template-columns: 1fr; }
  .band { min-height: 0; }
  .band-copy { padding-bottom: 8px; }
  .band-stage { padding: 8px 24px 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 250px); gap: 16px; }
  .wordwheel { min-height: 340px; }
  .cards { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .card { min-height: 220px; }
  .pane-left { grid-template-columns: 1fr; }
  .credit { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .nav { padding-left: 16px; }
  .logo img { height: 26px; }
  .hero { padding-top: 48px; }
  .hero-stage { padding: 28px 0 64px; }
  .demo { transform: none; border-radius: 20px; }
  .demo canvas { border-radius: 19px; }
  .f-ref { left: -6px; bottom: 20px; padding: 8px 12px 8px 8px; }
  .f-ref img { width: 56px; height: 38px; }
  .f-file { right: -6px; top: 4px; padding: 8px 12px 8px 8px; }
  .cursor { display: none; }
  .hero-stage { width: min(100%, 340px); }
  .file-ico { width: 36px; height: 36px; }
  .f-cam, .f-wheel, .c2, .sel-tag { display: none; }
  .sel { border-radius: 20px; transform: none; top: 28px; }
  .studio { border-radius: 22px; }
  .pane, .canvas-col { padding-left: 12px; padding-right: 12px; }
  .toolbar { flex-wrap: wrap; }
  .fgrid { grid-template-columns: 1fr; }
  .shortcuts { display: none; }
  .band-stage { grid-template-columns: 1fr; padding: 4px 20px 28px; gap: 34px; }
  .wordwheel { display: none; }
  .deck { width: min(80%, 290px); margin: 6px auto 0; }
  .look-chips {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px;
    scroll-snap-type: x proximity;
  }
  .look-chips::-webkit-scrollbar { display: none; }
  .look-chips button {
    flex: none; scroll-snap-align: center; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff;
    padding: 8px 14px; border-radius: 99px; font: 700 13px var(--display); cursor: pointer; transition: background .25s, color .25s;
  }
  .look-chips button.on { background: #fff; color: var(--ink); border-color: #fff; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logos li { padding: 12px 8px; font-size: 13.5px; justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .bgfx { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
