/* JW_Studio site — dark-first, light supported. No external requests. */
:root {
  --bg: #0b0e17; --bg2: #11162a; --card: #141a2e; --fg: #f3f5fb; --muted: #a3adc4; --line: rgba(255,255,255,.12);
  --acc: #7d92ff; --acc2: #58e1c1; --acc3: #ff7ad9; --acc-fg: #0b0e17;
  --ease: cubic-bezier(.16, 1, .3, 1); --radius: 18px;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f7f8fc; --bg2: #eef0f9; --card: #ffffff; --fg: #12162a; --muted: #566079; --line: rgba(18,22,42,.12);
    --acc: #3b5bff; --acc2: #0aa88a; --acc3: #d1329f; --acc-fg: #ffffff; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.7; word-break: keep-all; overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; }
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 40; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--acc3), var(--acc), var(--acc2)); }

/* header */
header.site { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--fg); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--acc), var(--acc3)); position: relative; display: inline-block; }
.brand i::after { content: ""; position: absolute; left: 9px; top: 7px; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-size: .93rem; transition: color .2s, background .2s; }
nav a:hover { color: var(--fg); background: var(--line); text-decoration: none; }
nav a[aria-current="page"] { color: var(--fg); font-weight: 600; background: var(--line); }
nav a.lang { border: 1px solid var(--line); margin-left: 8px; font-size: .8rem; padding: 6px 12px; }

/* animated backdrop */
.aurora, .gridbg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.b1 { width: 480px; height: 480px; left: -120px; top: -140px; background: var(--acc); animation: drift1 16s ease-in-out infinite alternate; }
.b2 { width: 420px; height: 420px; right: -100px; top: 10%; background: var(--acc3); animation: drift2 19s ease-in-out infinite alternate; }
.b3 { width: 380px; height: 380px; left: 35%; bottom: -200px; background: var(--acc2); opacity: .4; animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(160px, 110px) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-190px, 90px) scale(.85); } }
@keyframes drift3 { to { transform: translate(-140px, -80px) scale(1.25); } }
.gridbg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 78%);
  animation: gridmove 24s linear infinite; }
@keyframes gridmove { to { background-position: 56px 56px, 56px 56px; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 80px; background: var(--bg); }
.hero .wrap { z-index: 2; }
.kick { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1rem; color: var(--acc2); margin-bottom: 18px; }
.kick::before { content: ""; width: 42px; height: 14px; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--acc2)); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.14; margin: 0 0 22px; letter-spacing: -.035em; max-width: 880px; }
.words { display: inline-block; position: relative; height: 1.2em; vertical-align: bottom; overflow: hidden; min-width: 2.15em; }
.words span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; animation: word 12s cubic-bezier(.3,.9,.3,1) infinite; }
.words span:nth-child(1) { color: var(--acc3); animation-delay: 0s; }
.words span:nth-child(2) { color: var(--acc2); animation-delay: 3s; }
.words span:nth-child(3) { color: var(--acc); animation-delay: 6s; }
.words span:nth-child(4) { color: #ffb454; animation-delay: 9s; }
@keyframes word { 0% { transform: translateY(110%); opacity: 0; } 3%, 22% { transform: none; opacity: 1; } 25%, 100% { transform: translateY(-110%); opacity: 0; } }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 680px; margin: 0 0 34px; }
.hero p.lead b { color: var(--fg); }
.btn { display: inline-block; background: var(--acc); color: var(--acc-fg); padding: 13px 24px; border-radius: 12px; font-weight: 700; transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--acc) 40%, transparent); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); margin-left: 8px; }
.btn.ghost:hover { box-shadow: none; background: var(--line); }
.btn.light { background: #fff; color: #12162a; }

/* pipeline */
.pipe { position: relative; margin-top: 64px; }
.pipe svg { width: 100%; height: auto; display: block; overflow: visible; }
.pipe .track { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.pipe .flow { fill: none; stroke: url(#pg); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.4s var(--ease) .3s forwards; }
.pipe .pulse { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 2 1198; opacity: 0; animation: run 5s linear 2.6s infinite; filter: drop-shadow(0 0 6px #fff); }
.pipe .node circle { fill: var(--bg2); stroke: var(--acc); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .7s var(--ease) forwards; animation-delay: calc(var(--i) * .45s + .5s); }
.pipe .node text { fill: var(--fg); font-size: 15px; font-weight: 600; text-anchor: middle; opacity: 0; animation: fade .6s ease forwards; animation-delay: calc(var(--i) * .45s + .8s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes run { 0% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -1200; opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } 60% { transform: scale(1.25); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); padding: 20px 0; }
.marquee .t { display: flex; gap: 56px; width: max-content; animation: marq 36s linear infinite; }
.marquee span { font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee span::after { content: "✦"; -webkit-text-stroke: 0; color: var(--acc); font-size: 1rem; }
@keyframes marq { to { transform: translateX(-25%); } }

/* sections */
section { padding: 96px 0; position: relative; }
section.alt, .alt-bg { background: var(--bg2); }
.alt-bg section { background: transparent; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 12px; letter-spacing: -.025em; }
h3 { font-size: 1.12rem; margin: 0 0 8px; }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 40px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { display: block; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  transition: border-color .3s, box-shadow .3s; }
a.card:hover { text-decoration: none; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--acc) 20%, transparent), transparent 55%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { border-color: color-mix(in srgb, var(--acc) 60%, transparent); box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.card:hover::before { opacity: 1; }
.card.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out, border-color .3s, box-shadow .3s; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .more { display: inline-block; margin-top: 16px; color: var(--acc); font-weight: 600; font-size: .92rem; }
.card .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.25rem;
  background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--acc2); border: 1px solid var(--acc2); border-radius: 999px; padding: 2px 12px; margin-bottom: 14px; }
.trio { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.trio p { color: var(--muted); margin: 10px 0 0; }
.big { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.g1 { background-image: linear-gradient(90deg, var(--acc3), var(--acc), var(--acc3)); }
.g2 { background-image: linear-gradient(90deg, var(--acc), var(--acc2), var(--acc)); }
.g3 { background-image: linear-gradient(90deg, #ffb454, var(--acc3), #ffb454); }
@keyframes shine { to { background-position: -200% 0; } }

.feature { display: grid; gap: 48px; grid-template-columns: 1fr 1.1fr; align-items: center; }
.feature.flip { grid-template-columns: 1.1fr 1fr; }
.feature.flip > :first-child { order: 2; }
.num { display: block; font-size: .95rem; font-weight: 800; letter-spacing: .1em; color: var(--acc); margin-bottom: 8px; }
.concept { color: var(--muted); font-size: .8rem; margin: 14px 0 0; text-align: center; }
.page-title { position: relative; overflow: hidden; padding: 96px 0 64px; background: var(--bg); }
.page-title .wrap { z-index: 2; }
.page-title h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 14px; letter-spacing: -.035em; }
.page-title p { color: var(--muted); max-width: 720px; margin: 0; font-size: 1.1rem; }
.page-title .blob { opacity: .35; }
ul.clean { padding-left: 1.2em; margin: 0; color: var(--muted); }
ul.clean li { margin: 8px 0; }
.contact-box { display: inline-block; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 28px 36px; }
.contact-box .email { font-size: 1.5rem; font-weight: 700; }
.note { color: var(--muted); font-size: .9rem; }

/* CTA band */
.bandwrap { padding: 72px 0; }
.band { text-align: center; border-radius: 28px; padding: 64px 28px; color: #fff; background: linear-gradient(120deg, #5b6cff, #b05cff, #ff6cc4, #5b6cff); background-size: 300% 100%; animation: bandmove 12s linear infinite; }
.band h2 { color: #fff; margin: 0 0 10px; }
.band p { margin: 0 0 26px; opacity: .92; }
@keyframes bandmove { to { background-position: -300% 0; } }

/* vertical timeline */
.vline { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; position: relative; counter-reset: v; }
.vline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: linear-gradient(var(--acc3), var(--acc), var(--acc2)); opacity: .5; }
.vline li { position: relative; display: flex; gap: 22px; padding: 0 0 44px; }
.vline li:last-child { padding-bottom: 0; }
.vline .dot { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--acc-fg);
  background: linear-gradient(135deg, var(--acc), var(--acc3)); box-shadow: 0 0 0 6px var(--bg), 0 0 24px color-mix(in srgb, var(--acc) 50%, transparent); position: relative; z-index: 1; }
.vline h3 { margin-top: 8px; font-size: 1.25rem; }
.vline p { margin: 0; color: var(--muted); }
.roadgrid .card { padding: 32px; }
.roadgrid h3 { font-size: 1.3rem; margin-bottom: 14px; }

/* ---------- mock windows (conceptual visuals) ---------- */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.mock .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock .bar i:nth-child(1) { background: #ff6b6b; } .mock .bar i:nth-child(2) { background: #ffd166; } .mock .bar i:nth-child(3) { background: #6ee7b7; }
.mock .bar span { margin-left: 8px; }
.mock .body { padding: 22px; }

/* script typing */
.tw { min-height: 12.5em; }
.tw p { margin: 0 0 12px; display: flex; gap: 12px; align-items: baseline; font-size: .98rem; }
.tw b { flex: none; font-size: .72rem; padding: 2px 10px; border-radius: 99px; color: var(--acc-fg); background: var(--acc); }
.tw p:nth-child(2) b { background: var(--acc2); } .tw p:nth-child(3) b { background: #ffb454; } .tw p:nth-child(4) b { background: var(--acc3); }
.tw .cur::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em; background: var(--acc); animation: blink .9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* structure scan */
.film { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.frames { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; padding: 6px; background: #05070d; }
.frames i { aspect-ratio: 9 / 13; border-radius: 4px; background: linear-gradient(160deg, hsl(var(--h) 80% 60%), hsl(calc(var(--h) + 40) 70% 35%)); opacity: .9; }
.scanline { position: absolute; top: 0; bottom: 0; width: 3px; left: 0; background: var(--acc2); box-shadow: 0 0 18px 6px color-mix(in srgb, var(--acc2) 70%, transparent); animation: scan 4s ease-in-out infinite; }
@keyframes scan { 0% { left: 0; } 50% { left: calc(100% - 3px); } 100% { left: 0; } }
.segs { display: flex; gap: 4px; margin-top: 16px; }
.segs span { flex: 0 0 var(--w); text-align: center; padding: 8px 0; border-radius: 8px; font-size: .78rem; font-weight: 700; color: #0b0e17; background: var(--c); transform: scaleX(0); transform-origin: left; opacity: 0; }
.vis.in .segs span { animation: seg .8s var(--ease) forwards; animation-delay: calc(var(--k) * .35s + .3s); }
@keyframes seg { to { transform: none; opacity: 1; } }

/* timeline */
.tl { position: relative; display: grid; gap: 10px; }
.tl .row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.tl em { font-style: normal; color: var(--muted); font-size: .78rem; }
.tl .lane { position: relative; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--line) 60%, transparent); }
.tl .lane b { position: absolute; top: 3px; bottom: 3px; left: var(--s); width: var(--l); border-radius: 6px; background: var(--c); opacity: 0; transform: translateX(-16px) scaleX(.6); transform-origin: left; }
.vis.in .tl .lane b { animation: clip .7s var(--ease) forwards; animation-delay: calc(var(--k) * .12s + .2s); }
@keyframes clip { to { opacity: .9; transform: none; } }
.playhead { position: absolute; top: -6px; bottom: -6px; left: 64px; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; animation: play 7s linear infinite; }
.playhead::before { content: ""; position: absolute; left: -5px; top: 0; border: 6px solid transparent; border-top-color: #fff; }
@keyframes play { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 70px)); } }
.tl { container-type: inline-size; }

/* waveform + captions */
.wave { display: flex; align-items: center; gap: 3px; height: 90px; }
.wave i { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(var(--acc2), var(--acc)); transform: scaleY(.15); animation: bar var(--t) ease-in-out var(--a) infinite alternate; }
@keyframes bar { to { transform: scaleY(1); } }
.caps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.caps span { font-size: 1.15rem; font-weight: 800; padding: 4px 12px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; opacity: 0; animation: cap 6s ease infinite; animation-delay: calc(var(--k) * .5s); }
@keyframes cap { 0%, 4% { opacity: 0; transform: translateY(10px) scale(.9); } 10%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

/* checklist */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; opacity: .45; }
.checks svg { width: 26px; height: 26px; flex: none; padding: 4px; border-radius: 50%; background: var(--line); fill: none; stroke: transparent; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.vis.in .checks li { animation: chk .6s ease forwards; animation-delay: calc(var(--k) * .6s + .3s); }
.vis.in .checks svg { animation: tick .6s ease forwards, tickbg .3s ease forwards; animation-delay: calc(var(--k) * .6s + .45s), calc(var(--k) * .6s + .45s); }
@keyframes chk { to { opacity: 1; border-color: color-mix(in srgb, var(--acc2) 55%, transparent); } }
@keyframes tick { to { stroke-dashoffset: 0; stroke: #0b0e17; } }
@keyframes tickbg { to { background: var(--acc2); } }

/* reveal */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js .rv.l { transform: translateX(-34px); }
.js .rv.z { transform: scale(.94); }
.js .rv.in { opacity: 1; transform: none; }
.js .card.tilt.rv.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out, opacity .9s var(--ease), border-color .3s, box-shadow .3s; transition-delay: 0s; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip > :first-child { order: 0; }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .hero { padding: 72px 0 56px; }
  .btn.ghost { margin: 12px 0 0; }
  .pipe .node text { font-size: 19px; }
  .band { padding: 44px 20px; }
  nav a { padding: 6px 9px; font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .words span:first-child, .pipe .node circle, .pipe .node text, .caps span, .segs span, .checks li { opacity: 1 !important; }
  .segs span, .tl .lane b { transform: none !important; opacity: 1 !important; }
  .checks svg { stroke: #0b0e17 !important; stroke-dashoffset: 0 !important; background: var(--acc2) !important; }
  .pipe .flow { stroke-dashoffset: 0; }
  .wave i { transform: scaleY(.6) !important; }
  .js .rv { opacity: 1; transform: none; }
}
