@font-face { font-family: UI; src: url(fonts/gothica1-Regular.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: UI; src: url(fonts/gothica1-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: block; }
@font-face { font-family: UI; src: url(fonts/gothica1-ExtraBold.woff2) format('woff2'); font-weight: 800; font-display: block; }
@font-face { font-family: Inter; src: url(fonts/inter.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
@font-face { font-family: Serif; src: url(fonts/instrument-italic.woff2) format('woff2'); font-style: italic; font-display: block; }
@font-face { font-family: Mono; src: url(fonts/geistmono.woff2) format('woff2'); font-weight: 100 900; font-display: block; }
:root { --bg: #efede8; --ink: #181613; --mute: #8a857c; --line: rgba(0,0,0,.09); --ac: #ff8a3d; --sans: Inter, UI, system-ui, sans-serif; --kr: UI, Inter, system-ui, sans-serif; --mono: Mono, ui-monospace, monospace; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 15px/1.5 var(--kr); -webkit-font-smoothing: antialiased; }
a { color: inherit; } [hidden] { display: none !important; } button { font: inherit; color: inherit; }
.top, .intro, .app, .how, .foot { max-width: 1320px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 2px; }
.brand { display: flex; align-items: center; gap: 9px; } .brand b { font: 800 18px var(--kr); letter-spacing: -.03em; }
.brand b::before { content: ''; display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; box-shadow: inset 0 0 0 2.5px var(--ink); background: radial-gradient(circle, var(--ac) 0 3px, transparent 3.5px); }
.brand i { font: 500 12px var(--mono); color: var(--mute); font-style: normal; }
.gh { font: 600 14px var(--sans); text-decoration: none; }
.top, .intro, .bar, .chips, .app, .how, .foot { max-width: 1320px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.intro { padding-top: 8px; padding-bottom: 12px; }
h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; word-break: keep-all; }
h1 .q { font: 800 44px/1.08 var(--kr); letter-spacing: -.045em; word-spacing: .06em; } h1 em { font: italic 400 28px/1.1 Serif, serif; letter-spacing: -.02em; color: #4d4943; }
.btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 11px; font: 800 13.5px var(--kr); box-shadow: inset 0 0 0 1.5px var(--ink); white-space: nowrap; }
.btn.dark { background: var(--ink); color: #fff; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 40px; } .how h3 { margin: 0 0 6px; font: 800 15px var(--kr); } .how p { margin: 0; font-size: 14px; color: #4d4943; word-break: keep-all; }
.foot { padding-top: 26px; padding-bottom: 90px; font: 400 12.5px var(--sans); color: var(--mute); }
.toast { position: fixed; left: 50%; top: 22px; transform: translate(-50%, -20px); opacity: 0; background: var(--ink); color: #fff; font: 600 13.5px var(--kr); padding: 9px 16px; border-radius: 99px; transition: .25s; pointer-events: none; z-index: 50; } .toast.on { opacity: 1; transform: translate(-50%, 0); }
.lnk { all: unset; cursor: pointer; font: 700 13px var(--kr); color: #6b665d; text-decoration: underline; text-underline-offset: 3px; }
.seg { display: inline-flex; background: #fff; border-radius: 11px; padding: 3px; gap: 2px; box-shadow: 0 0 0 1px var(--line); } .seg button { all: unset; cursor: pointer; padding: 6px 11px; border-radius: 8px; font: 700 12.5px var(--kr); color: #6b665d; white-space: nowrap; } .seg button.on { background: var(--ink); color: #fff; } .seg button:disabled { opacity: .35; cursor: not-allowed; }
.rng input { width: 110px; accent-color: var(--ink); } .rng output { font: 500 12px var(--mono); width: 22px; color: var(--ink); } .rng.off { opacity: .35; pointer-events: none; }
.drop .dz { border: 2px dashed #c9c3b8; border-radius: 22px; background: #f7f5f1; min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 30px; }
.dz svg { width: 46px; height: 46px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.dz b { font: 800 20px var(--kr); letter-spacing: -.03em; } .dz p { margin: 0; color: var(--mute); font-size: 14px; } .dz kbd { font: 500 12px var(--mono); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #fff; }
.dzb { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: center; } .dzb .btn { padding: 12px 18px; font-size: 14.5px; }
body.dragging .dz, body.dragging .view { outline: 3px solid var(--ac); outline-offset: 3px; }
body.film { cursor: none; } body.film .how, body.film .foot { display: none; }
.cur { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; }
.cur svg { position: absolute; left: -9px; top: -4px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); } .cur path { fill: #fff; stroke: #111; stroke-width: 1.4; stroke-linejoin: round; } .cur .closed { display: none; } .cur.down .open { display: none; } .cur.down .closed { display: block; }
.cur i { position: absolute; left: 26px; top: 26px; white-space: nowrap; font: 700 13px var(--kr); font-style: normal; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 99px; } .cur i:empty { display: none; }
.cur.flip i { left: auto; right: 14px; }
.how { grid-template-columns: repeat(4, 1fr); }
.dz { min-height: 420px; } .dz .samples { margin-top: 22px; }
.samples { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.samples button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; font: 700 12.5px var(--kr); color: #4d4943; }
.samples img { width: 96px; height: 68px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgba(0,0,0,.4); transition: transform .2s; }
.samples button:hover img { transform: translateY(-2px); } .samples button.on img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.work { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 20px; align-items: start; padding-top: 8px; }
.view { position: relative; height: min(66vh, 600px); min-height: 320px; border-radius: 20px; overflow: hidden; touch-action: none; user-select: none;
  background: #e4e0d8 conic-gradient(#efece6 25%, #dfdad1 0 50%, #efece6 0 75%, #dfdad1 0) 0 0 / 22px 22px; box-shadow: inset 0 0 0 1px var(--line); }
.view.opaque { background: #e9e6df; }
.view canvas, .sweep { position: absolute; display: block; } #cv0 { filter: saturate(.9); } #cv { transition: opacity .18s; }
.view.busy #cv0 { animation: pulse 1.2s ease-in-out infinite; } @keyframes pulse { 50% { filter: saturate(.4) brightness(1.08); } }
@keyframes unrev { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
.view.done #cv0 { animation: unrev .9s cubic-bezier(.45,0,.25,1) both; } .view.done.snap #cv0 { animation: unrev 1ms both; } .view.done.orig #cv0 { animation: none; }
#cv.rev { animation: rev .9s cubic-bezier(.45,0,.25,1) both; } @keyframes rev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.sweep { pointer-events: none; opacity: 0; } .sweep.go { animation: sweep .9s cubic-bezier(.45,0,.25,1) both; }
.sweep::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 18px 4px rgba(255,138,61,.75); }
@keyframes sweep { from { transform: translateX(0); opacity: 1; } 96% { opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.view.brush { cursor: none; }
.ring { position: absolute; left: 0; top: 0; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; opacity: 0; } .ring.on { opacity: 1; }
.status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; background: rgba(24,22,19,.86); color: #fff; padding: 10px 18px; border-radius: 99px; font: 700 14px var(--kr); white-space: nowrap; }
.vbar { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; } .vbar .btn { background: #fff; padding: 8px 13px; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.14); } .vbar .btn.on { background: var(--ink); color: #fff; } .vbar .btn:disabled { opacity: .45; cursor: default; }
.panel { background: #fff; border-radius: 20px; padding: 16px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -24px rgba(40,30,10,.4); display: flex; flex-direction: column; gap: 14px; }
.pi .samples { justify-content: flex-start; gap: 8px; } .pi .samples img { width: 88px; height: 60px; } .pl { display: flex; justify-content: space-between; margin-top: 10px; }
.grp h4 { margin: 0 0 8px; font: 800 13px var(--kr); color: #4d4943; } .grp { display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 12px; }
.grp .seg { align-self: flex-start; } .grp .rng { display: flex; align-items: center; gap: 8px; font: 700 12.5px var(--kr); color: #4d4943; } .grp .rng input { flex: 1; width: auto; } .grp .rng span { width: 40px; }
.bgs { display: flex; flex-wrap: wrap; gap: 8px 4px; } .bgs button, .bgs label { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 36px; font: 600 10.5px var(--kr); color: var(--mute); position: relative; }
.bgs i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.bgs i.clear { background: conic-gradient(#fff 25%, #d9d4cb 0 50%, #fff 0 75%, #d9d4cb 0) 0 0 / 10px 10px; } .bgs i.blur { background: radial-gradient(circle at 35% 35%, #c8d6c2, #7d8f86 70%); filter: blur(.3px); }
.bgs label i { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); } .bgs label input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bgs button.on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); } .bgs button.on span { color: var(--ink); }
.tg { display: flex; align-items: center; gap: 9px; font: 700 13px var(--kr); cursor: pointer; } .tg input { display: none; } .tg i { width: 34px; height: 20px; border-radius: 99px; background: #d9d4cb; position: relative; transition: background .2s; }
.tg i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; } .tg input:checked + i { background: var(--ink); } .tg input:checked + i::after { transform: translateX(14px); }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; } .acts .btn { padding: 12px 18px; font-size: 14.5px; } .acts .dark { flex: 1; } .acts p { flex-basis: 100%; margin: 0; font: 500 12px var(--mono); color: var(--mute); }
@media (max-width: 900px) {
  .top, .intro, .app, .how, .foot { padding-left: 16px; padding-right: 16px; }
  h1 .q { font-size: 32px; } h1 em { font-size: 21px; }
  .work { grid-template-columns: minmax(0, 1fr); } .view { height: 58vh; min-height: 280px; } .how { grid-template-columns: 1fr 1fr; } .dz { min-height: 340px; }
}
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } .samples img { width: 84px; height: 60px; } }
body.film .app { max-width: none; }
body.film:not(.tall) .view { height: 540px; } body.film:not(.tall) .dz { min-height: 540px; }
body.film.tall .top, body.film.tall .intro, body.film.tall .app { padding-left: 14px; padding-right: 14px; }
body.film.tall h1 .q { font-size: 30px; } body.film.tall h1 em, body.film.tall .lede { display: none; }
body.film.tall .view { height: 300px; min-height: 0; } body.film.tall .dz { min-height: 700px; } body.film.tall .work { gap: 12px; }
body.film.tall .panel { padding: 12px 14px; gap: 10px; } body.film.tall .grp { padding-top: 9px; gap: 7px; }
body.film.tall .grp .rng:last-child, body.film.tall .acts p { display: none; }
body.film.tall .grp h4 { display: none; } body.film.tall .grp { padding-top: 8px; } body.film.tall .view { height: 290px; }
