:root {
  --bg: #191817;
  --surface: #1e1d1c;
  --rule: #2c2a28;
  --rule2: #3a3835;
  --ink: #ecebe8;
  --ink2: #a9a6a1;
  --ink3: #77736e;
  --steel: #d9d6d0;
  --sans: "Poppins", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }

header { display: flex; justify-content: space-between; align-items: center; padding: 20px 44px; border-bottom: 1px solid var(--rule); }
.who { display: flex; align-items: baseline; gap: 14px; }
.who b { display: inline-flex; align-items: center; font-size: 27px; font-weight: 600; letter-spacing: -.01em; }
.links { display: flex; gap: 24px; align-items: center; font: 13px var(--mono); }
.links a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink2); white-space: nowrap; transition: color .2s; }
.links a:hover { color: var(--ink); }
.links .ico { width: 15px; height: 15px; flex: none; fill: currentColor; }
.links .ico .cut { fill: var(--bg); }
.links .ico.line { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.links .cv { color: var(--bg); background: var(--ink); padding: 8px 14px; border-radius: 3px; font-weight: 500; }
.links .cv:hover { color: var(--bg); background: #fff; }

.about { position: relative; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); margin: 36px 44px 28px;
         border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule); background: var(--surface); }
.about .left { display: flex; align-items: center; gap: 36px; padding: 60px 40px 40px 32px; align-self: center; cursor: pointer; }
.about .shot { position: relative; flex: none; width: clamp(240px, 26vw, 380px); margin: 10px; }
.about .shot canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 2px; background: #7f7e7c; }
.about .shot .c { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink2); opacity: 1;
                  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s, border-color .7s; }
.about .shot .tl { top: -10px; left: -10px; border-top-width: 1px; border-left-width: 1px; }
.about .shot .tr { top: -10px; right: -10px; border-top-width: 1px; border-right-width: 1px; }
.about .shot .bl { bottom: -10px; left: -10px; border-bottom-width: 1px; border-left-width: 1px; }
.about .shot .br { bottom: -10px; right: -10px; border-bottom-width: 1px; border-right-width: 1px; }
.about .shot.focusing .c { opacity: .45; border-color: var(--ink3); }
.about .shot.focusing .tl { transform: translate(-9px, -9px); }
.about .shot.focusing .tr { transform: translate(9px, -9px); }
.about .shot.focusing .bl { transform: translate(-9px, 9px); }
.about .shot.focusing .br { transform: translate(9px, 9px); }
.about .k { position: absolute; top: 28px; left: 32px; font: 10.5px var(--mono); color: var(--ink3); letter-spacing: .1em; pointer-events: none; z-index: 1; }
.about p { font-size: 22px; line-height: 1.55; letter-spacing: -.01em; max-width: 600px; }
.tok { border-radius: 2px; transition: background-color .6s ease; }
.tok.new { background-color: var(--rule2); transition: none; }
.caret { display: inline-block; width: .5em; height: 1.05em; background: var(--ink); vertical-align: -.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.caret.typing { animation: none; }
@keyframes blink { 50% { opacity: 0; } }

.about .model { border-left: 1px solid var(--rule); padding: 16px 20px 8px; }
.about svg { width: 100%; max-width: 470px; height: auto; display: block; margin: 0 auto; }
.about .frame { fill: #222120; stroke: var(--rule2); stroke-width: 1; }
.about .blk rect { fill: var(--bg); stroke: var(--ink3); stroke-width: 1; transition: stroke .1s, fill .1s; }
.about .blk text { font: 12px var(--sans); fill: var(--ink2); text-anchor: middle; transition: fill .1s; }
.about .blk.small text { font-size: 11px; }
.about .blk.lit rect { stroke: var(--ink2); fill: #252321; transition: none; }
.about .blk.lit text { fill: var(--ink); transition: none; }
.about .tw { fill: none; stroke: var(--ink3); stroke-width: 1; }
.about .tw.res { stroke: var(--rule2); }
.about .tw.mem { transition: stroke .4s; }
.about .tw.mem.lit { stroke: var(--ink); }
.about .arrow { fill: var(--ink3); }
.about .lbl { font: 11.5px var(--sans); fill: var(--ink3); }
.about .nx { font: 13px var(--sans); fill: var(--ink3); }
.about .plus { fill: var(--bg); stroke: var(--ink3); }
.about .chip rect { fill: var(--bg); stroke: var(--rule2); }
.about .chip text { font: 12px var(--mono); fill: var(--ink); text-anchor: middle; white-space: pre; }
.about .cand text { font: 12px var(--mono); fill: var(--ink3); white-space: pre; }
.about .cand .p { text-anchor: end; }
.about .cand rect { fill: var(--rule2); transition: width .12s ease-out; }
.about .cand.win text { fill: var(--ink); }
.about .cand.win rect { fill: var(--ink); }

.fig { position: relative; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); margin: 0 44px;
       border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule); background: var(--surface); }
.net { position: relative; padding: 20px 10px 6px 18px; }
.net .k { position: absolute; top: 28px; left: 32px; font: 10.5px var(--mono); color: var(--ink3); letter-spacing: .1em; pointer-events: none; }
svg { width: 100%; height: auto; display: block; overflow: visible; }

.edge { fill: none; transition: stroke-opacity .35s, stroke-width .35s; }
.edge.hov { stroke-opacity: .6 !important; stroke-width: 1.6px !important; }
.edge.err { stroke-dasharray: 3 4; }
.node { fill: var(--bg); stroke: var(--ink3); stroke-width: 1.2; transition: fill .35s, stroke .35s; }

.in-g { cursor: pointer; transform-box: fill-box; }
.in-g text { font-family: var(--sans); font-size: 15px; fill: var(--ink2); transition: fill .2s; }
.in-g:hover text { fill: var(--ink); }
.in-g.on text { fill: #fff; font-weight: 500; }
.in-g .box { fill: var(--bg); stroke: var(--ink2); stroke-width: 1.2; transition: fill .2s; }
.in-g.on .box { fill: var(--ink); stroke: var(--ink); }
.in-g .tick { stroke: var(--bg); stroke-width: 1.8; fill: none; opacity: 0; }
.in-g.on .tick { opacity: 1; }
.in-g.shake { animation: shake .5s cubic-bezier(.36, .07, .19, .97); }
.in-g { transition: opacity .4s; }
.in-g.blocked { cursor: not-allowed; opacity: .28; }
.in-g.blocked:hover text { fill: var(--ink2); }
@keyframes shake { 15%, 85% { transform: translateX(-1px); } 30%, 70% { transform: translateX(3px); } 45%, 55% { transform: translateX(-4px); } 100% { transform: none; } }

.out-ring { fill: none; stroke: var(--rule2); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.out-ring.live { stroke: var(--ink2); }
.out-ring.miss { stroke-dasharray: 3 4; stroke: var(--ink3); }
.out-ring.beat { animation: beat 1s cubic-bezier(.2, .8, .2, 1); }
@keyframes beat { 0% { transform: scale(1); stroke-opacity: 1; } 55% { transform: scale(1.32); stroke-opacity: .15; } 100% { transform: scale(1); stroke-opacity: 1; } }

.pulse { fill: #fff; }
.pulse.back { fill: #8f8a84; }

.wire { position: absolute; height: 1px; background: var(--rule2); transition: background .3s; pointer-events: none; }
.wire.live { background: var(--ink2); }
.wire::after { content: ""; position: absolute; right: -3.5px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: inherit; }
.wire i { position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: 0; }
.wire.live i { animation: travel .4s ease-in-out; }
@keyframes travel { from { left: 0; opacity: 1; } to { left: 100%; opacity: 1; } }
.fig.focus .wire, .fig.building .wire { opacity: 0; }

.panel { position: relative; display: flex; flex-direction: column; padding: 22px 30px 0 18px; border-left: 1px solid var(--rule); }

.pin { position: relative; flex: 1; display: flex; flex-direction: column; background: var(--surface); }

.card { border-left: 1px solid var(--ink2); padding-left: 24px; container-type: inline-size; }
.pin .card { flex: 1; padding-bottom: 22px; }
#card { will-change: opacity; }
.card.enter > * { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.card.enter > *:nth-child(2) { animation-delay: .04s; }
.card.enter > *:nth-child(3) { animation-delay: .08s; }
.card.enter > *:nth-child(4) { animation-delay: .12s; }
.card.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card.leave { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }

.empty { color: var(--ink3); font-size: 17px; line-height: 1.6; max-width: 360px; padding-top: 30px; }

.card h4 { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; color: var(--ink3); margin: 22px 0 8px; text-transform: uppercase; }

.also { margin-top: 26px; padding-top: 14px; }
.also h4 { margin-bottom: 2px !important; }
.also-sub { font: 11px var(--mono); color: var(--ink3); margin: 0 0 12px; }
.also .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.also a.mt { position: relative; display: block; padding: 12px 38px 12px 14px; cursor: pointer; text-decoration: none; color: var(--ink); font-size: 14.5px;
             border: 1px solid var(--rule2); background: var(--bg); border-radius: 4px;
             opacity: 0; transform: translateY(6px); animation: mtIn .5s cubic-bezier(.2, .8, .2, 1) forwards;
             transition: border-color .25s, background .25s, transform .25s; }
@keyframes mtIn { to { opacity: 1; transform: none; } }
.also a.mt .t { display: block; font: 500 14.5px var(--sans); color: var(--ink); }
.also a.mt .h { display: block; font: 13px/1.45 var(--sans); color: var(--ink2); margin-top: 4px; }
.also a.mt .l { display: block; font: 10.5px var(--mono); color: var(--ink3); margin-top: 8px; letter-spacing: .04em; }
.also a.mt .go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 15px var(--sans); color: var(--ink3);
                 transition: transform .25s cubic-bezier(.2, .8, .2, 1), color .25s; }

.also a.mt:hover, .also a.mt:focus-visible { border-color: var(--ink2); background: var(--surface); transform: translateX(3px) !important; outline: none; }
.also a.mt:hover .go, .also a.mt:focus-visible .go { color: var(--ink); transform: translate(4px, -50%); }
.also a.mt:active { transform: translateX(1px) scale(.99) !important; }
.also .row a.mt:first-child .go { animation: nudge 1.6s ease-in-out .9s 2; }
@keyframes nudge { 0%, 100% { transform: translateY(-50%); } 50% { transform: translate(5px, -50%); color: var(--ink); } }

.also.compact .row { gap: 6px; }
.also.compact a.mt { padding: 8px 34px 8px 12px; }
.also.compact a.mt .h { display: none; }
.also.compact a.mt .l { margin-top: 3px; }

.scrim { position: fixed; inset: 0; z-index: 70; background: rgb(12, 11, 10); opacity: 0; pointer-events: none; }
.scrim.on { pointer-events: auto; }

.sheet { position: fixed; z-index: 80; background: var(--surface); border: 1px solid var(--rule2); border-radius: 4px; overflow: hidden;
         transform-origin: 0 0; will-change: transform, opacity; backface-visibility: hidden; scrollbar-gutter: stable;
         box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .8); opacity: 0; }
.sheet .xwrap { position: sticky; top: 0; height: 0; z-index: 3; display: flex; justify-content: flex-end; align-items: flex-start; }
.xbtn { position: relative; z-index: 5; margin: 14px 16px 0 0; font: 12px var(--mono); line-height: 1.4; color: var(--ink2); background: var(--bg);
        border: 1px solid var(--rule2); padding: 5px 10px; border-radius: 3px; cursor: pointer; opacity: 0; transition: opacity .3s; }
.sheet.open .xbtn { opacity: 1; }
.xbtn:hover { color: var(--ink); }

.sgrid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; max-width: 1060px; margin: 0 auto; padding: 44px 40px 64px; transform-origin: 50% 0; }
.sgrid.leave { opacity: 0; transition: opacity .2s ease; }
.sgrid > .card { border-left: 0; padding: 0; }

.card h2 { font-weight: 600; font-size: 42px; line-height: 1.15; letter-spacing: -.015em; color: #fff; }



.also-side { align-self: start; }
.also-side h4 { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; color: var(--ink3); text-transform: uppercase; margin: 6px 0 10px; }
.also-side .also { margin-top: 0; padding-top: 0; }
.also-side .row { grid-template-columns: 1fr; }
.glance { margin-bottom: 26px; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.stack span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; border: 1px solid var(--rule2); padding: 5px 10px; border-radius: 2px; color: var(--ink2); }
.stack svg { width: 14px; height: 14px; fill: var(--ink); flex: none; }
.desc { margin-top: 14px; }
.desc p { font-size: 17px; line-height: 1.62; color: var(--ink2); }
.desc p + p { margin-top: 10px; }
.gal { display: grid; grid-template-columns: minmax(0, 1fr) 21%; gap: 8px; margin-top: 26px; }
.gmain, .gthumbs .th { position: relative; background: var(--bg); border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.gmain img, .gmain video, .th img, .th video { display: block; width: 100%; height: 100%; object-fit: contain; }
.gmain > i { position: absolute; left: 12px; bottom: 10px; font: normal 11px var(--mono); color: var(--ink2); background: rgba(25,24,23,.82); padding: 3px 8px; border-radius: 2px; letter-spacing: .02em; }
.gmain { aspect-ratio: 16 / 10; }
.gthumbs { display: grid; gap: 8px; height: 0; min-height: 100%; }
.stack .noico { width: 6px; height: 6px; background: var(--ink3); flex: none; margin: 0 4px; }
.gthumbs .th img, .gthumbs .th video { position: absolute; inset: 0; }
.gthumbs .th { padding: 0; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.gthumbs .th:hover, .gthumbs .th:focus-visible { opacity: .85; outline: none; }
.gthumbs .th.on { opacity: 1; border-color: var(--ink2); }
.gthumbs .th > i { display: none; }
.gal .missing { border-style: dashed; border-color: var(--rule2); }
.gal .missing img, .gal .missing video { display: none; }
.gal .missing > i { display: flex; inset: 0; position: absolute; align-items: center; justify-content: center; background: none; font: normal 11px var(--mono); color: var(--ink3); left: 0; bottom: 0; }
.btn-gh, .priv { width: 100%; justify-content: center; margin-top: 16px; }
.btn-gh { display: inline-flex; align-items: center; gap: 8px; font: 500 13px var(--sans); color: var(--bg); background: var(--ink); padding: 9px 14px; border-radius: 3px; text-decoration: none; transition: background .2s; }
.btn-gh:hover { background: #fff; }
.btn-gh svg { width: 15px; height: 15px; fill: currentColor; }
.priv { display: inline-flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--ink3); border: 1px dashed var(--rule2); padding: 8px 12px; border-radius: 3px; }

.bld { opacity: 0; clip-path: inset(0 100% 0 0); }
.bld.in { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path 1.05s cubic-bezier(.65, .05, .25, 1), opacity .4s; }
.agent { position: fixed; z-index: 120; display: flex; align-items: center; gap: 7px; pointer-events: none; font: 11px var(--mono); color: var(--ink);
         transition: left .9s cubic-bezier(.65, .05, .25, 1), top .9s cubic-bezier(.65, .05, .25, 1), opacity .45s; }
.agent i { width: 7px; height: 7px; background: var(--ink); display: block; }
.agent b { font-weight: 500; background: var(--bg); border: 1px solid var(--rule2); padding: 2px 7px; border-radius: 2px; color: var(--ink2); }
.agent.busy i { animation: blinkA .5s steps(1) infinite; }
@keyframes blinkA { 50% { opacity: .25; } }
.snip { position: fixed; z-index: 121; pointer-events: none; font: 11.5px var(--mono); color: var(--ink); background: var(--surface); border: 1px solid var(--rule2);
        padding: 5px 9px; border-radius: 2px; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.snip.on { opacity: 1; transform: none; }
.ghost { position: fixed; z-index: 110; pointer-events: none; border: 1px dashed var(--ink3); opacity: 0; transition: opacity .55s; }
.ghost.on { opacity: 1; }
.blog { position: fixed; left: 18px; bottom: 16px; z-index: 120; font: 11px var(--mono); color: var(--ink3); line-height: 1.75; pointer-events: none; transition: opacity .5s;
        background: var(--bg); border: 1px solid var(--rule2); border-radius: 3px; padding: 8px 12px; min-width: 250px; }
.blog div { opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s; }
.blog div.on { opacity: 1; transform: none; }
.blog .ok { color: var(--ink2); }

footer { display: flex; justify-content: center; text-align: center; padding: 24px 44px 46px; font-family: var(--mono); font-size: 12px; color: var(--ink3); }
footer a { text-decoration: none; }

@media (max-width: 1360px) {
  .about .left { flex-direction: column; align-items: flex-start; gap: 24px; }
}

@media (max-width: 960px) {
  header { padding: 16px 20px; }
  .links { gap: 14px; }
  .about { grid-template-columns: 1fr; margin: 24px 20px 20px; }
  .about .model { order: -1; border-left: 0; border-bottom: 1px solid var(--rule); }
  .about .left { flex-direction: column; align-items: flex-start; gap: 22px; padding: 28px 16px; }
  .about .shot { width: 240px; }
  .about p { font-size: 19px; }
  .fig { grid-template-columns: 1fr; margin: 0 20px; }
  .panel { border-left: 0; border-top: 1px solid var(--rule); padding: 22px 16px; }
  .wire { display: none; }
}

@media (max-width: 600px) {
  .who b { font-size: 21px; white-space: nowrap; }
  .links { gap: 12px; font-size: 13px; }
  .links .cv { padding: 6px 10px; white-space: nowrap; }
}

@media (max-width: 440px) {
  header { gap: 12px; }
  .who b { font-size: 18px; }
  .links { gap: 10px; font-size: 12px; }
  .links .cv { padding: 6px 8px; }
  .links a:not(.cv) span { display: none; }
  .links .ico { width: 17px; height: 17px; }
}
@media (max-width: 340px) {
  header { padding: 16px 12px; gap: 8px; }
  .who b { font-size: 17px; }
  .links { gap: 8px; font-size: 11px; }
  .links .cv { padding: 6px 7px; }
}
.gmain { cursor: zoom-in; }
.gal .missing { cursor: default; }
.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(14,13,12,.94); opacity: 0; transition: opacity .2s ease; }
.lb.on { opacity: 1; }
.lb figure { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 56px 80px 24px; transform: scale(.97); transition: transform .25s ease; }
.lb.on figure { transform: none; }
.lb img { height: auto; }
.lb img, .lb video { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border: 1px solid var(--rule2); border-radius: 3px; background: var(--bg); }
.lb figcaption { display: flex; gap: 16px; margin-top: 14px; font: 12px var(--mono); color: var(--ink2); }
.lb figcaption span { color: var(--ink3); }
.lb-x { position: absolute; top: 16px; right: 20px; font: 12px var(--mono); color: var(--ink2); background: var(--surface); border: 1px solid var(--rule2); padding: 6px 10px; border-radius: 3px; cursor: pointer; }
.lb-x:hover { color: var(--ink); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font: 18px var(--sans); color: var(--ink2); background: var(--surface); border: 1px solid var(--rule2); border-radius: 50%; cursor: pointer; transition: color .2s, border-color .2s; }
.lb-nav:hover { color: var(--ink); border-color: var(--ink3); }
.lb-nav.prev { left: 20px; }
.lb-nav.next { right: 20px; }
@media (max-width: 600px) {
  .lb figure { padding: 56px 12px 72px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; }
}
.gmain iframe { display: block; width: 100%; height: 100%; border: 0; }
.gmain.yt { cursor: default; }
.gmain.yt > i { display: none; }
.th .play { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(25,24,23,.82); border: 1px solid var(--rule2); }
.th .play::after { content: ""; position: absolute; left: 12px; top: 9px; border: 6px solid transparent; border-left: 9px solid var(--ink); border-right: 0; }
.lb iframe { width: min(100%, calc((100vh - 120px) * 16 / 9)); aspect-ratio: 16 / 9; border: 1px solid var(--rule2); border-radius: 3px; background: #000; }
