/* =====================================================================
   The Art of Nuo Yan — v7 (gallery-first, lightweight)
   Fonts — ONLY the two families supplied by the artist:
     Zilla Slab          all regular text (bold only for special emphasis)
     MONSTER OF FANTASY  big display text (logo, big section titles,
                         artwork title in the detail view)
   Both are subset to Latin + punctuation (woff2). Fallback: generic serif.
   ===================================================================== */
@font-face{font-family:"Zilla Slab";src:url(fonts/zillaslab-regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Zilla Slab";src:url(fonts/zillaslab-bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Pixel Operator";src:url(fonts/PixelOperator.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}   /* CC0, Jayvee Enaguas — email address only (user request) */
@font-face{font-family:"MONSTER OF FANTASY";src:url(fonts/monsteroffantasy-regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}

:root{
  --bg:#f2eee6;            /* between v1 parchment #f4ede1 and original #ecede8 */
  --panel:#ffffff; --panel-2:#f7f5f0;
  --line:#d9d4c9; --line-2:#e8e4db;
  --ink:#2c2a31; --ink-2:#55525a; --ink-3:#7c786f;
  --gold:#b48a3c;
  --rail:clamp(252px, 21vw, 300px);   /* v5: a bit wider so the category names + counts fit on one line */
  --gap:clamp(36px, 4vw, 64px);
  --ease:cubic-bezier(.22,1,.36,1);
  --sans:"Zilla Slab", serif;                          /* every regular text */
  --display:"MONSTER OF FANTASY", "Zilla Slab", serif;  /* big display text only */
  --dockH:clamp(128px, 15.5vh, 172px);                  /* bottom dock (progress + Cover Flow) */
  --cfS:clamp(80px, 10vh, 116px);                       /* Cover Flow centre thumbnail */
  --note:clamp(230px, 22vw, 300px);                     /* end card width */
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:400 15px/1.6 var(--sans);-webkit-font-smoothing:antialiased}
body.is-intro{overflow:hidden}
img{display:block;max-width:100%}
a{color:inherit}
a,button,.card-hit,.tab{cursor:pointer}
button{font:inherit;color:inherit}
h1,h2,h3,p,ol,ul,figure{margin:0}
.display{font-family:var(--display);font-weight:400;letter-spacing:.01em}
.label{font:400 11.5px/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- Wakfu-like panel & buttons ---------- */
.panel{background:linear-gradient(180deg,var(--panel) 0%,var(--panel-2) 100%);border:1px solid var(--line);
  box-shadow:inset 0 0 0 3px #fff, inset 0 0 0 4px var(--line-2), 0 1px 2px rgba(60,50,30,.05)}
.wbtn{display:inline-flex;align-items:center;justify-content:center;gap:.4em;padding:.42em 1em;border-radius:4px;
  border:1px solid #cdc7bb;background:linear-gradient(180deg,#ffffff 0%,#ecebe6 100%);color:#45433f;
  font:400 13px/1.2 var(--sans);letter-spacing:.04em;box-shadow:inset 0 1px 0 #fff,0 1px 1px rgba(0,0,0,.05);transition:border-color .2s,background .2s}
.wbtn:hover{border-color:#b3ac9e;background:linear-gradient(180deg,#ffffff 0%,#f4f2ed 100%)}
.wbtn:active{background:linear-gradient(180deg,#e8e6e0 0%,#fbfaf8 100%)}
.wbtn:focus-visible,.tab:focus-visible,.card-hit:focus-visible,.btn-contact:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}

/* Contact button — kept from v1 */
.btn-contact{display:inline-block;text-decoration:none;font:400 15px/1 var(--sans);color:var(--ink);background:none;cursor:pointer;
  border:1.5px solid rgba(185,130,31,.5);border-radius:999px;padding:.6rem 1.25rem;transition:background .2s,color .2s,border-color .2s}
.btn-contact:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}

/* ================= Intro ================= */
#intro{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:var(--bg);transition:opacity .35s ease}
#intro.out{opacity:0;pointer-events:none}
#intro.out.quick{transition-duration:.2s}   /* v5: quicker hand-over to the dark stage */
.intro-stage{text-align:center}
.intro-pre{font:400 14px/1 var(--sans);letter-spacing:.3em;text-transform:uppercase;color:var(--ink-3);opacity:0;animation:fadeIn .4s .35s forwards}
.intro-name{font:400 clamp(3rem,10vw,7rem)/1 var(--display);color:var(--ink);display:flex;justify-content:center;margin-top:.5rem}
.il{display:inline-block;opacity:0;transform:translateY(.35em);animation:letterIn .45s var(--ease) forwards}
.il:nth-child(1){animation-delay:.05s}.il:nth-child(2){animation-delay:.1s}.il:nth-child(3){animation-delay:.15s}
.il:nth-child(5){animation-delay:.2s}.il:nth-child(6){animation-delay:.25s}.il:nth-child(7){animation-delay:.3s}
.il-gap{width:.3em}
.il-o{position:relative}
.intro-slime{position:absolute;left:50%;top:52%;width:.42em;image-rendering:pixelated;transform:translate(-50%,-50%);transform-origin:50% 100%;
  opacity:0;animation:slimeDrop .9s .1s forwards}
@keyframes fadeIn{to{opacity:1}}
@keyframes letterIn{to{opacity:1;transform:none}}
@keyframes slimeDrop{
  0%{opacity:0;transform:translate(-50%,-400%) scale(.9,1.12)}
  10%{opacity:1}
  42%{transform:translate(-50%,-50%) scale(1)}
  52%{opacity:1;transform:translate(-50%,-50%) scale(1.32,.7)}
  66%{opacity:1;transform:translate(-50%,-105%) scale(.9,1.12)}
  80%{opacity:1;transform:translate(-50%,-50%) scale(1.12,.88)}
  100%{opacity:1;transform:translate(-50%,-50%) scale(1)}
}


/* ================= Rail ================= */
.rail{position:fixed;left:0;top:0;bottom:0;width:var(--rail);padding:14px 0 14px 14px;z-index:20}
.rail-frame{height:100%;display:flex;flex-direction:column;padding:22px 18px 18px;overflow-y:auto;scrollbar-width:none;
  background:linear-gradient(180deg,#ffffff 0%,#f6f4ef 100%);border:1px solid var(--line);box-shadow:inset 0 0 0 3px #fff, inset 0 0 0 4px var(--line-2)}
.rail-frame::-webkit-scrollbar{display:none}
.brand{display:block;text-align:center;text-decoration:none}
.brand-pre{display:block;font:400 11.5px/1 var(--sans);letter-spacing:.28em;text-transform:uppercase;color:var(--ink-3)}
/* logo scales with the rail: "NUO YAN" is ≈4.75em wide in MONSTER OF FANTASY,
   rail inner width = rail − 52px  →  font-size = (rail − 52px) / 5.3 (≈10% spare) */
.logo{display:block;font:400 min(48px, calc((var(--rail) - 52px) / 5.3))/1.05 var(--display);letter-spacing:0;color:var(--ink);margin-top:.4rem;white-space:nowrap;max-width:100%}
.logo-o{position:relative;display:inline-block}
.logo-slime{position:absolute;left:50%;top:52%;width:.42em;transform:translate(-50%,-50%);transform-origin:50% 100%;image-rendering:pixelated}
.brand:hover .logo-slime,.page-ready .logo-slime.hop{animation:slimeHop .7s var(--ease)}
@keyframes slimeHop{0%{transform:translate(-50%,-50%) scale(1.22,.78)}40%{transform:translate(-50%,-125%) scale(.88,1.12)}75%{transform:translate(-50%,-50%) scale(1.1,.9)}100%{transform:translate(-50%,-50%)}}
.tagline{text-align:center;font:400 clamp(11.5px, calc((var(--rail) - 52px) / 15.5), 13px)/1.4 var(--sans);white-space:nowrap;color:var(--ink-2);margin:.5rem 0 1.2rem;padding-bottom:1.1rem;border-bottom:1px solid var(--line-2)}

/* category rows (Wakfu character-list style) */
.tabs{display:flex;flex-direction:column;gap:6px}
.tab{position:relative;display:flex;align-items:center;min-height:56px;padding:6px 8px 6px 0;text-align:left;border:1px solid var(--line);border-radius:3px;overflow:hidden;
  background:linear-gradient(90deg,var(--c) 0%,#fff 78%);background:linear-gradient(90deg,var(--c) 0%,color-mix(in srgb,var(--c) 50%,#fff) 42%,#fff 80%);transition:border-color .2s,transform .25s var(--ease)}
.tab::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);pointer-events:none}
/* v5 hover: the row's colour sweeps left → right over the whole button (transform only)
   and gets more saturated; the art gets more saturated too */
.tab::before{content:"";position:absolute;left:0;top:0;bottom:0;width:135%;pointer-events:none;transform:translateX(-101%);
  background:var(--c);background:linear-gradient(90deg,var(--c) 0%,color-mix(in srgb,var(--c) 80%,#fff) 40%,color-mix(in srgb,var(--c) 55%,#fff) 74%,color-mix(in srgb,var(--c) 0%,transparent) 100%);
  filter:saturate(1.6);transition:transform .45s cubic-bezier(.33,1,.68,1);will-change:transform}
.tab:hover::before{transform:none}
.tab img{position:absolute;left:0;top:0;width:66px;height:100%;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,#000 45%,transparent 100%);mask-image:linear-gradient(90deg,#000 45%,transparent 100%);transition:filter .3s}
.tab:hover img{filter:saturate(1.5)}
/* label: one line, its left edge (--labelX) and size (--labelF) are fitted by main.js
   so the longest name + the count always fit the rail */
.tab-txt{position:relative;display:flex;align-items:center;min-width:0;flex:1;margin-left:var(--labelX,62px)}
.tab-name{display:inline-block;font:400 var(--labelF,12.5px)/1.15 var(--sans);text-transform:uppercase;letter-spacing:.03em;color:var(--ink);white-space:nowrap}
/* work count on the far right: big number (MONSTER OF FANTASY) over a small "works" */
.tab-count{position:relative;flex:none;display:flex;flex-direction:column;align-items:center;min-width:26px;margin-left:6px;line-height:1}
.tab-num{display:block;font:400 22px/1 var(--display);color:var(--ink)}
.tab-unit{display:block;margin-top:2px;font:400 9.5px/1 var(--sans);letter-spacing:.04em;color:var(--ink-3)}
.tab:hover{border-color:#b9b2a5;transform:translateX(2px)}
.tab:hover .tab-name{animation:tabBounce .42s ease-out}
.tab:hover .tab-num{animation:tabPop .4s .05s ease-out}
@keyframes tabBounce{0%{transform:none}30%{transform:translateY(-6px)}55%{transform:translateY(0)}75%{transform:translateY(-2px)}100%{transform:none}}
@keyframes tabPop{0%{transform:none}40%{transform:scale(1.18)}100%{transform:none}}
.tab[aria-pressed="true"]{border-color:#9d978b;background:linear-gradient(90deg,var(--c) 0%,color-mix(in srgb,var(--c) 58%,#e9e7e2) 42%,#e6e4df 80%,#eeede9 100%)}
.tab[aria-pressed="true"] .tab-name{font-weight:700;text-decoration:underline;text-decoration-color:rgba(0,0,0,.25);text-underline-offset:3px}
/* v8h/v8i locked row (Licensed art): pixel lock in the count position; the row itself behaves like the others */
.tab-sep{height:0;margin:6px 2px 4px;border-top:1px dashed #cfc8ba}
.tab-note{margin:-1px 2px 0;font:400 11px/1.35 var(--sans);color:var(--ink-3);text-align:center}
.tab-note-a{padding:0;border:0;background:none;font:inherit;color:var(--ink-2);text-decoration:underline;text-underline-offset:2px;text-decoration-color:rgba(0,0,0,.3)}
.tab-note-a:hover{color:var(--ink)}
.tab-note-a:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
.tab-lock{min-width:26px;align-self:stretch;justify-content:center}
.tab-lockcv{position:relative;display:block;width:26px;height:40px;image-rendering:pixelated;background:no-repeat -2px -2px / 30px 44px}
.tab-locked:hover{transform:translateX(2px)}
/* v8h password panel */
.lic{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:20px;background:rgba(17,14,21,.86);opacity:0;transition:opacity .2s ease}
.lic.open{opacity:1}
.lic[hidden]{display:none}
.lic-panel{position:relative;width:min(460px,100%);padding:30px 30px 24px;background:#f2eee6;color:var(--ink);border-radius:2px;
  box-shadow:0 24px 60px -24px rgba(0,0,0,.8);font-family:var(--sans)}
.lic-x{position:absolute;top:10px;right:10px;width:34px;height:34px;padding:7px;border:0;background:none;color:var(--ink)}
.lic-x svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:5;stroke-linecap:round}
.lic-x:hover{color:#000}
.lic-q{margin:.35rem 0 1rem;font:700 19px/1.3 var(--sans);color:var(--ink);padding-right:24px}
.lic-row{display:flex;gap:8px}
.lic-in{flex:1;min-width:0;height:40px;padding:0 12px;border:1px solid #cfc8ba;border-radius:2px;background:#fbf9f4;color:var(--ink);font:400 15px var(--sans)}
.lic-in:focus{outline:2px solid #6c63a8;outline-offset:1px;border-color:#b9b2a5}
.lic-go{flex:none;height:40px;padding:0 16px;border:1px solid #2c2a31;border-radius:2px;background:#2c2a31;color:#f2eee6;font:700 14px var(--sans);letter-spacing:.03em}
.lic-go:hover{background:#000}
.lic-go:focus-visible,.lic-x:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
.lic-err{margin:.55rem 0 0;font:400 13px var(--sans);color:#b3261e}
.lic-err[hidden]{display:none}
.lic-fine{margin:1.1rem 0 0;font:400 11px/1.5 var(--sans);color:var(--ink-3)}
.lic-ok{text-align:center;padding:10px 0 4px}
.lic-ok[hidden],.lic-form[hidden]{display:none}
.lic-h{margin:0 0 .6rem;font:400 34px/1 var(--display);color:var(--ink)}
.lic-ok p{margin:0 0 1.2rem;font:400 14px/1.5 var(--sans);color:var(--ink-2)}
.bio{font-size:13px;line-height:1.6;color:var(--ink-2);margin:1.2rem 2px 0;text-align:center}
@media (max-height: 720px){.bio{display:none}}
.rail-contact{margin-top:auto;padding-top:1.2rem;display:flex;flex-direction:column;align-items:center;gap:.7rem;text-align:center}
/* v5 contact: pixel-art CRT (sprite sheet stepped by main.js) + bold email.
   Source art is on an 8 px grid → 52×54 art pixels per frame, shown at 1.5× (78×81 css px; 3× device px on retina). */
.crt-row{display:flex;flex-direction:column;align-items:center;width:100%;margin:0;gap:4px}   /* v8k: label · CRT · email, centred */
.crt{position:relative;flex:none;display:block;padding:0;border:0;background:none;line-height:0;cursor:pointer;border-radius:2px}
.crt:focus-visible{outline:2px solid #6c63a8;outline-offset:3px}
/* the CRT is drawn by main.js into this canvas, frame by frame, at whole device pixels (no CSS scaling of the sheet).
   Without JS it shows frame 0 from the sheet (frames are 52×54 art px on a 56×58 pitch, so nothing can bleed in). */
.crt-cv{position:relative;display:block;width:78px;height:81px;image-rendering:pixelated;
  background:url(images/ui/crt-sprite.png) 0 0/1092px 174px no-repeat}
.crt-kicker{font:400 10.5px/1.2 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3);padding-left:.16em}
.mail-b{font:700 var(--mailF,16px)/1.25 var(--sans);color:var(--ink);white-space:nowrap;padding:0;border:0;background:none;text-align:center;cursor:pointer;transition:color .2s}
.mail-b:hover,.crt-row.hot .mail-b{color:#544a8c}
/* "EMAIL COPIED!" — one small line, fixed-positioned (never moves the layout) */
.copied{position:fixed;left:0;top:0;z-index:60;pointer-events:none;white-space:nowrap;font:400 11px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2);
  text-shadow:0 0 3px var(--bg),0 0 3px var(--bg);opacity:0;transition:opacity .18s}
.copied.on{opacity:1}
.mail-b:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
.mail{font:400 14px/1.3 var(--sans);color:var(--ink-2);text-decoration:none;border:0;border-bottom:1px solid var(--line);background:none;padding:0;cursor:pointer}
.mail:hover{color:var(--ink);border-color:var(--ink-2)}
.socials{list-style:none;padding:0;display:flex;gap:8px}
.socials img{width:18px;height:18px;object-fit:contain}
@media (max-height: 680px){.tab{min-height:49px}.tabs{gap:5px}.rail-contact{padding-top:.4rem;gap:.4rem}.crt-row{gap:2px}.rail-frame{padding-top:14px}.tagline{margin-bottom:.7rem;padding-bottom:.7rem}}   /* v8j: room for the Licensed Art row + note on short screens */

/* ================= Main / Gallery ================= */
.main{margin-left:var(--railV);min-width:0}
.gallery{position:relative}
.g-sticky{position:sticky;top:0;height:100vh;overflow:hidden}
/* the strip lives in the area above the dock; cards are vertically centred there */
/* v7: heading band on top (--headH), the works, then a band kept free for the progress flag (--flagB) */
.g-track{--headH:clamp(70px, 11vh, 100px);--flagB:clamp(40px, 8vh, 90px);--capH:52px;
  --bigH:min(61vh, calc(100vh - var(--dockH) - var(--headH) - var(--flagB) - var(--capH)));
  position:absolute;left:0;top:0;bottom:var(--dockH);display:flex;align-items:center;gap:var(--gap);padding:var(--headH) var(--gap) var(--flagB);will-change:transform;transition:opacity .25s}
/* category pages (v6 layout): welcome card with thumbnails on the left, no heading band */
.g-track.cat{--bigH:min(61vh, calc(100vh - var(--dockH) - 124px));padding:0 var(--gap)}
.g-track.cat .card.first{--wcap:calc(100vw - var(--railV) - var(--note) - 3 * var(--gap) - 20px)}
/* v7 page heading ("Recent work" / category) — top-left above the first work, scrolls with the strip */
.g-head{position:absolute;left:var(--gap);top:max(10px, calc(var(--headH) - 66px));white-space:nowrap}
.g-head h2{font-size:clamp(26px, 2.5vw, 36px);line-height:1.05}
.g-head .label{margin-top:2px}
.g-track.swap{opacity:0}
/* Artwork size. Height-driven, the width ALWAYS follows the image's real ratio:
   --ar starts from works.js `size` and is replaced by naturalWidth/naturalHeight
   as soon as the file has loaded. Nothing is ever cropped or stretched.
   v3: max height 61vh (= v2's 76vh − 20%). --wcap = widest allowed image. */
.card{flex:none;margin:0;width:min-content;--wcap:calc((100vw - var(--railV)) * .8);
  --imgH:min(var(--bigH), calc(var(--wcap) / var(--ar)))}
/* v7 Recent work: two (or more) works stacked in one column, together as tall as one big work */
.stack{flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:var(--sgap);--sgap:14px}
.card.half{--imgH:min(calc((var(--bigH) + var(--capH) - var(--n) * var(--capH) - (var(--n) - 1) * var(--sgap)) / var(--n)), calc(var(--wcap) / var(--ar)))}
/* v4: no white mat — the drop shadow sits directly on the image edge */
.card-hit{display:block;padding:0;border:0;background:none;transition:transform .3s var(--ease)}
.card-hit:hover{transform:translateY(-4px)}
.card-img{position:relative;display:block;height:var(--imgH);aspect-ratio:var(--ar);background:#e6e1d6;border-radius:1px;
  box-shadow:0 1px 2px rgba(60,50,30,.10),0 16px 30px -16px rgba(60,50,30,.45)}
.card-img img{border-radius:1px}
.card-img img{height:100%;width:auto;max-width:none;opacity:0;transition:opacity .4s}
.card-img img.loaded{opacity:1}
/* v8b parallax stack (Dungeon Explore) */
.card-img:has(.plx){overflow:hidden}
/* v8f Meadow Moon CD: front case (default image) and the open back case stacked behind it; on hover the front
   slides left and the back slides right, showing about half of the disc. transform only. Touch: static. */
.card.cd{position:relative}
.card.cd .card-hit{position:relative}
.card.cd .card-img{z-index:1;background:none;box-shadow:none}   /* transparent PNG case: no mat, no box shadow */
.cd-back{position:absolute;left:0;top:0;height:var(--imgH);aspect-ratio:var(--ar);pointer-events:none;z-index:0}
.cd-back img{height:100%;width:auto;display:block}
@media (hover:hover) and (pointer:fine){
  .card.cd .card-img,.cd-back{transition:transform .45s cubic-bezier(.22,.7,.2,1)}
  .card.cd:hover{z-index:3}
  .card.cd .card-hit:hover .card-img{transform:translateX(-8%)}
  .card.cd .card-hit:hover .cd-back{transform:translateX(44%)}
}
@media (prefers-reduced-motion:reduce){.card.cd .card-img,.cd-back{transition:none}}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.cd-back{display:none}}
.plx{position:absolute;inset:0;overflow:hidden;opacity:0;transition:opacity .5s;pointer-events:none;border-radius:1px}
.plx.on{opacity:1}
.card-img .plx img{position:absolute;max-width:none;opacity:1;transition:none;border-radius:0;backface-visibility:hidden}
.card figcaption{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:12px 1px 0}
.cap-title{font:400 14px/1.2 var(--sans);color:var(--ink)}
.cap-sub{display:block;margin-top:2px;font-size:10.5px}
.pill{flex:none;font:400 11px/1 var(--sans);letter-spacing:.06em;color:#5a564e;padding:0 0 2px;white-space:nowrap}   /* v7: text only, no outline */

/* end card inside the strip */
.g-note{flex:none;width:var(--note);display:flex;flex-direction:column;justify-content:center;padding:24px 22px}
.g-note h2{font-size:30px;line-height:1.1;margin-bottom:.3rem}
.g-intro{padding:0}   /* v4: welcome text sits directly on the page, no card */
.g-note .welcome{font:400 15px/1.5 var(--sans);color:var(--ink-2);margin-bottom:1rem}
.g-note .hint{margin-top:1rem;display:flex;align-items:center;gap:.6rem}
.g-note .hint img{width:30px;image-rendering:pixelated}
.g-end{align-items:center;text-align:center;gap:1rem;height:min(61vh,520px)}
.g-end img{width:56px;image-rendering:pixelated}
/* thumbnail mini-grid — justified rows, every thumbnail at its ORIGINAL ratio.
   flex-grow ∝ ratio keeps one common height per row; the ::after filler stops
   the last row from stretching. */
.g-thumbs{--rowH:clamp(44px, 6.6vh, 66px);display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px;margin-top:1rem}
.g-thumbs::after{content:"";flex:999 1 0}
.g-thumbs button{flex:var(--ar) 1 calc(var(--ar) * var(--rowH));aspect-ratio:var(--ar);min-width:0;display:block;padding:0;border:0;border-radius:1px;background:#e6e1d6;
  box-shadow:0 1px 2px rgba(60,50,30,.12),0 6px 10px -6px rgba(60,50,30,.4);transition:transform .25s var(--ease)}
.g-thumbs img{width:100%;height:100%;border-radius:1px}
.g-thumbs button:hover{transform:translateY(-2px)}
.g-thumbs button.on{outline:2px solid var(--ink);outline-offset:2px}
@media (max-height: 760px){.g-thumbs button:nth-child(n+7){display:none}.g-note .welcome{margin-bottom:.6rem}}
@media (max-height: 600px){.g-thumbs button:nth-child(n+4){display:none}}
.g-thumbs button{position:relative}
.g-end{align-items:center;text-align:center;gap:1rem;height:min(var(--bigH, 61vh),520px)}
.g-end img{width:56px;image-rendering:pixelated}

/* bottom dock: progress (left) + Cover Flow (right) */
.g-dock{position:absolute;left:var(--gap);right:max(calc(var(--gap) + 52px), var(--bobR, 0px));bottom:0;height:var(--dockH);display:flex;align-items:center;gap:clamp(12px, 1.6vw, 26px)}

/* Cover Flow (iPod style), circular. Only transform/opacity change; items that
   don't fit the bar are display:none. Thumbnails keep their original ratio. */
.coverflow{flex:1;min-width:0;display:flex;align-items:center;gap:4px}
.cf-col{flex:1;min-width:0}
.cf-stage{position:relative;height:calc(var(--cfS) + 14px);perspective:560px;overflow:hidden}
.cf-item{position:absolute;left:50%;top:7px;width:var(--cfS);height:var(--cfS);padding:0;border:0;border-radius:1px;background:#e6e1d6;
  box-shadow:0 8px 14px -8px rgba(40,30,20,.55);transition:transform .45s var(--ease),opacity .45s var(--ease);will-change:transform}
.cf-item img{width:100%;height:100%;display:block;border-radius:1px}
.cf-item.off{display:none}
.cf-item.jump{transition:none}
.cf-item.cur{outline:2px solid var(--ink);outline-offset:2px}
/* v6: covers that only show because the loop wraps around (end items left of page 1, first items right of the last page) — washed out */
.cf-item.wrap img{filter:grayscale(1)}
/* v6 progress flag (canvas + 9 invisible dot buttons), placed by main.js over the Cover Flow */
.cf-col{position:relative}
.g-flag{position:absolute;left:0;top:0;z-index:3;pointer-events:none}
.g-flag-cv{display:block;image-rendering:pixelated;background:url(images/ui/flag-sheet.png) no-repeat -9999px 0}
.g-flag-dot{position:absolute;padding:0;border:0;background:none;border-radius:2px;pointer-events:auto;cursor:pointer}
.g-flag-dot:focus-visible{outline:2px solid #6c63a8}
.cf-title{margin-top:6px;text-align:center;font:400 13px/1.2 var(--sans);color:var(--ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* chunky cartoon block arrows (inline SVG) — gallery Cover Flow + detail view */
.arrow-btn{flex:none;display:inline-grid;place-items:center;width:46px;height:40px;padding:0;border:0;background:none;color:#141216}
.arrow-btn .arrow{width:38px;height:32px;overflow:visible;fill:currentColor;stroke:currentColor;stroke-width:5;stroke-linejoin:round;transition:transform .18s var(--ease)}
.arrow-l .arrow{transform:scaleX(-1)}
.arrow-r:hover .arrow{transform:translateX(4px)}
.arrow-l:hover .arrow{transform:scaleX(-1) translateX(4px)}
.arrow-btn:active .arrow{transition-duration:.05s}
.arrow-r:active .arrow{transform:translateX(6px) scale(.92)}
.arrow-l:active .arrow{transform:scaleX(-1) translateX(6px) scale(.92)}
.arrow-btn:focus-visible{outline:2px solid #6c63a8;outline-offset:2px;border-radius:4px}
.arrow-btn[disabled]{opacity:.22;pointer-events:none}
/* v8g pixel arrows (Cover Flow): drawn by main.js into a canvas at whole device pixels per art pixel.
   Sheet: 6 cells of 22×22 (20×20 art + 1 px padding): left idle/hover/press, right idle/hover/press. No CSS motion. */
.px-btn{position:relative;width:60px;height:60px}
.px-arrow{position:relative;display:block;width:60px;height:60px;image-rendering:pixelated;
  background:url(images/ui/arrow-sheet.png) no-repeat -3px -3px / 396px 66px}   /* no-JS fallback: left idle frame at 3× */
.arrow-r .px-arrow{background-position:-201px -3px}

/* ================= Footer ================= */
.foot{padding:var(--gap)}
.foot-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:26px 28px}
.foot-panel h2{font-size:30px;line-height:1.1;margin-bottom:6px}
.foot-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.copy{margin-top:18px;text-align:center;font-size:12px;color:var(--ink-3)}

/* ================= Detail view =================
   v7: "lights off" — a dark, see-through backdrop over the page (the page stays visible behind it);
   no white mat on the artwork; the text sits BELOW the image so the image gets the whole width. */
.detail{position:fixed;inset:0;z-index:60;background:rgba(17,14,21,.86);opacity:0;transition:opacity .25s ease;
  --ink:#efe9dc;--ink-2:#cfc8ba;--ink-3:#a39c8f;--line:rgba(255,255,255,.17);--line-2:rgba(255,255,255,.1);color:var(--ink)}
.detail.open{opacity:1}
.detail[hidden]{display:none}
html.lock,html.lock body{overflow:hidden}
.detail .arrow-btn{color:#efe9dc}
.d-scroll{position:absolute;inset:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 76px 60px}
.d-top{max-width:1500px;margin:0 auto}
.d-stage{display:flex;justify-content:center;align-items:flex-start;transform:translateY(10px);transition:transform .35s var(--ease)}
.detail.open .d-stage{transform:none}
.frame{box-shadow:0 22px 50px -24px rgba(0,0,0,.75)}
.frame img,.frame video{display:block;max-height:calc(100vh - 96px);max-width:100%;width:auto;height:auto;object-fit:contain;border-radius:1px}
.frame video{background:#2a2530}   /* process timelapse: natural ratio, no crop */
.d-info{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:18px 48px;align-items:start;max-width:1120px;margin:18px auto 0;padding:0 4px}
.d-title{font-size:34px;line-height:1.08;margin:.35rem 0 .55rem}
.d-medium{font-size:14px;color:var(--ink-2);font-style:italic;margin-bottom:.5rem}
.d-medium:empty,.d-desc:empty{display:none}
.d-desc{font-size:15px;line-height:1.6;color:var(--ink-2);max-width:62ch}
.d-proc-head{display:flex;align-items:baseline;justify-content:space-between;padding:4px 0 0;margin:0 0 10px}
.d-proc-title{font:700 15px/1.2 var(--sans);letter-spacing:.02em}
.d-steplist{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px}
.d-steplist button{display:flex;align-items:center;gap:10px;width:100%;padding:5px;text-align:left;border:1px solid var(--line);border-radius:3px;
  background:rgba(255,255,255,.05);font:400 13px/1.35 var(--sans);color:var(--ink-2);transition:border-color .2s}
.d-steplist button:hover{border-color:rgba(255,255,255,.4)}
.d-steplist img{width:56px;height:40px;object-fit:cover;flex:none;border-radius:1px}
.d-steplist b{font:700 13px/1 var(--sans);color:var(--ink);margin-right:4px}
.placeholder{border:1px dashed rgba(255,255,255,.25);border-radius:3px;padding:14px;text-align:center;font-size:14px;line-height:1.6;color:var(--ink-2)}
.d-nav{display:none;grid-column:1 / -1;justify-content:space-between;gap:8px;margin:0 -4px}
.d-steps{max-width:1500px;margin:46px auto 0;display:flex;flex-direction:column;gap:46px}
.d-step{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:start}
.d-step-meta{position:sticky;top:10px}
.d-step-num{font:400 38px/1 var(--display);color:var(--ink)}
.d-step-cap{margin-top:8px;font-size:13.5px;color:var(--ink-2)}
.d-step .frame{justify-self:start}
.d-step .frame img,.d-step .frame video{max-height:82vh}
/* v8d: images with an original-resolution file get the original's display size up front (no jump on swap,
   never wider than the original's own pixels) */
.frame{position:relative}
.frame.hi{box-sizing:border-box;width:min(calc(var(--fw) * 1px),100%,calc((100vh - 96px) * var(--far)))}
.d-step .frame.hi{width:min(calc(var(--fw) * 1px),100%,calc(82vh * var(--far)))}
.frame.hi img{width:100%;height:auto;max-height:none}
.frame.ld-over::before{background:rgba(17,14,21,.25);color:#f2eee6;inset:auto 0 0 auto;width:auto;height:auto;padding:6px 10px;font-size:12px}
.d-close{position:fixed;top:12px;right:14px;z-index:2}
.d-close .arrow,.ov-close .arrow{width:30px;height:30px;stroke-width:7;stroke-linecap:round;fill:none}
.d-close:hover .arrow,.ov-close:hover .arrow{transform:rotate(90deg) scale(1.08)}
.d-arrow{position:fixed;top:50%;margin-top:-20px;z-index:2}
.d-arrow-l{left:14px}.d-arrow-r{right:14px}

/* back to top — v7: Bob walking (pixel art drawn by main.js into the canvas; placed on the device-pixel grid by main.js) */
.to-top{position:fixed;left:0;top:0;z-index:30;display:block;padding:0;border:0;background:none;line-height:0;border-radius:2px;opacity:0;pointer-events:none;transition:opacity .25s}
.to-top.show{opacity:1;pointer-events:auto}
.to-top:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
.bob-cv{display:block;width:104px;height:172px;image-rendering:pixelated;background:url(images/ui/bob-run-sheet2.png) no-repeat -9999px 0}

/* hover popup — "Making process" preview (mouse only). Only opacity + transform change. */
.pp{position:fixed;left:0;top:0;z-index:40;pointer-events:none;opacity:0;visibility:hidden;max-width:min(430px, calc(100vw - 16px));padding:8px 10px 10px;
  background:linear-gradient(180deg,#ffffff 0%,#f6f4ef 100%);border:1px solid var(--line);
  box-shadow:inset 0 0 0 3px #fff, inset 0 0 0 4px var(--line-2), 0 12px 26px -12px rgba(40,30,20,.45);
  transition:opacity .14s ease,visibility 0s linear .14s;will-change:transform,opacity}
.pp.on{opacity:1;visibility:visible;transition:opacity .14s ease}
.pp-cta{font:700 12.5px/1.2 var(--sans);color:var(--ink);margin:0 0 6px;padding-bottom:6px;border-bottom:1px solid var(--line-2)}
.pp-label{font:400 11.5px/1.2 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2);margin:0 0 7px}
.pp-label span{color:var(--ink-3);letter-spacing:.06em}
.pp-row{display:flex;flex-wrap:wrap;gap:6px}
.pp-item{position:relative;display:block;height:64px;background:#e6e1d6;border-radius:1px;box-shadow:0 1px 2px rgba(60,50,30,.15)}
.pp-item img{height:64px;width:auto;max-width:none;border-radius:1px}
.pp-item:only-child,.pp-item:only-child img{height:112px}   /* a single step (e.g. a timelapse) gets a bigger preview */
.pp-item video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:1px}
.pp-item.vid::after{content:"";position:absolute;left:5px;bottom:5px;border-style:solid;border-width:5px 0 5px 8px;border-color:transparent transparent transparent #fff;filter:drop-shadow(0 0 2px rgba(0,0,0,.6))}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.pp{display:none}}

/* ================= v7 ALL WORKS overview (lights off + collage; positions set by main.js) ================= */
/* v7: lowercase "loading..." centred in an image box until its file has loaded (class set by main.js) */
.ld::before{content:"loading...";position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;
  font:400 11px/1 var(--sans);letter-spacing:.04em;color:var(--ink-3);pointer-events:none;overflow:hidden;white-space:nowrap}
.g-thumbs .ld::before{font-size:9.5px;letter-spacing:0}
.cf-item.ld:not(.cur)::before{content:none}   /* turned side covers are too narrow for the word: only the centre cover says it */
.ov{position:fixed;top:0;right:0;bottom:0;left:0;z-index:31;overflow:hidden}   /* v8o: full width (the rail slides away) */
.ov[hidden]{display:none}
/* v8n ring: site beige, a slightly dimmed floor ellipse; no black */
.ov-dim{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 45%,#f6f3ec 0%,#ebe6db 70%,#e2dccf 100%);opacity:0;transition:opacity .35s ease}
.ov.on .ov-dim{opacity:1}
.ov.closing .ov-dim{transition:opacity .4s ease .35s}
.rg-floor{position:absolute;border-radius:50%;background:radial-gradient(ellipse at 50% 50%,rgba(0,47,167,.06) 0%,rgba(0,47,167,.035) 55%,rgba(44,42,49,.08) 100%);border:1px dashed rgba(0,47,167,.22)}
.rg-stage{position:absolute;inset:0;pointer-events:none}
.rg-t{position:absolute;left:0;top:0;padding:0;border:0;background:none;transform-origin:50% 50%;pointer-events:auto;cursor:pointer;will-change:transform}
.rg-b{position:relative;display:block;width:100%;height:100%;background:#e6e1d6;box-shadow:0 8px 16px -9px rgba(30,24,40,.55);border-radius:1px}
.rg-b img{display:block;width:100%;height:100%;object-fit:cover;border-radius:1px}
.rg-t:hover .rg-b{outline:2px solid #2c2a31;outline-offset:2px}
.rg-t:focus-visible{outline:2px solid #6c63a8;outline-offset:3px}
/* selection: Klein-blue corner brackets (drawn with gradients, scale with the thumb) */
.rg-t.sel::after{content:"";position:absolute;inset:-7px;pointer-events:none;
  background:linear-gradient(#002FA7,#002FA7) 0 0/14px 3px,linear-gradient(#002FA7,#002FA7) 0 0/3px 14px,
  linear-gradient(#002FA7,#002FA7) 100% 0/14px 3px,linear-gradient(#002FA7,#002FA7) 100% 0/3px 14px,
  linear-gradient(#002FA7,#002FA7) 0 100%/14px 3px,linear-gradient(#002FA7,#002FA7) 0 100%/3px 14px,
  linear-gradient(#002FA7,#002FA7) 100% 100%/14px 3px,linear-gradient(#002FA7,#002FA7) 100% 100%/3px 14px;background-repeat:no-repeat}
.rg-t.sel .rg-b{box-shadow:0 0 0 1px rgba(0,47,167,.5),0 10px 20px -8px rgba(0,47,167,.45)}
.rg-big{position:absolute;margin:0;z-index:50;display:flex;flex-direction:column;align-items:center;pointer-events:none;opacity:0;transition:opacity .3s ease}
.ov.on .rg-big{opacity:1}
.ov.closing .rg-big{transition-duration:.15s}
.rg-bigbtn{display:flex;align-items:center;justify-content:center;width:100%;padding:0;border:0;background:none;pointer-events:none;cursor:pointer}
.rg-img{display:block;max-width:none;background:#e6e1d6;box-shadow:0 18px 34px -18px rgba(30,24,40,.6);pointer-events:auto;opacity:0;transform:translateY(6px);transition:opacity .25s ease,transform .3s var(--ease)}
.rg-big.in .rg-img{opacity:1;transform:none}
.rg-bigbtn:focus-visible{outline:none}.rg-bigbtn:focus-visible .rg-img{outline:2px solid #6c63a8;outline-offset:3px}
.rg-cap{margin:10px 0 0;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;pointer-events:auto}
.rg-title{font:400 clamp(18px,1.7vw,24px)/1.1 var(--display);color:var(--ink)}
.rg-cat{font:400 11px/1.2 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3)}
.rg-hint{position:absolute;left:0;right:0;bottom:8px;margin:0;text-align:center;font:400 11.5px/1 var(--sans);color:var(--ink-3);opacity:0;transition:opacity .3s ease .6s}
.ov.on .rg-hint{opacity:1}
.ov.closing .rg-hint{transition:opacity .1s}
.ov-close{position:absolute;top:10px;right:10px;z-index:120;color:var(--ink)}
/* sidebar while the ring is open: only ALL WORKS stays; the rest slides out (transform/opacity only) */
.tabs > *{transition:transform .4s var(--ease),opacity .3s ease}
.ov-on .tabs > :not([data-cat="all"]),.ov-on .rail-contact .mode-tag{transform:translateX(-24px);opacity:0;pointer-events:none;visibility:hidden;transition:transform .35s var(--ease),opacity .25s ease,visibility 0s .35s}
.rail-contact .mode-tag{transition:transform .4s var(--ease),opacity .3s ease}
.ov-on .tabs > :not([data-cat="all"]):nth-child(3){transition-delay:.03s}.ov-on .tabs > :not([data-cat="all"]):nth-child(4){transition-delay:.06s}
/* narrow screens: a plain scrolling grid */
.ov.grid{overflow-y:auto;left:0;z-index:45}
.ov.grid .rg-floor,.ov.grid .rg-big,.ov.grid .rg-hint{display:none}
.ov.grid .rg-stage{position:relative;inset:auto;pointer-events:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;padding:56px 16px 24px}
.ov.grid .rg-t{position:relative;width:auto!important;height:auto!important;transform:none!important;opacity:1!important;aspect-ratio:4/3}
.ov.grid .rg-b img{object-fit:contain}
@media (prefers-reduced-motion: reduce){.rg-img,.tabs > *,.rail-contact .mode-tag{transition:none}}

/* signature (top-right, faint, purely decorative): above the gallery/rail, below the popup, detail view and tour */
.sig{position:fixed;top:20px;right:22px;z-index:25;width:clamp(150px, 13vw, 190px);height:auto;opacity:.3;pointer-events:none;user-select:none}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.sig{display:none}.tab-sep,.tab-note{display:none}}

/* reveal (IntersectionObserver) */
.rv{opacity:0;transform:translateY(24px);transition:opacity .6s var(--ease),transform .7s var(--ease)}
.rv.in{opacity:1;transform:none}

/* ================= Mobile / narrow ================= */
@media (max-width: 860px), (hover: none) and (pointer: coarse){
  :root{--rail:0px;--gap:18px}
  .rail{position:relative;width:auto;padding:10px 10px 0}
  .rail-frame{height:auto;padding:16px 14px 14px;overflow:visible}
  .logo{font-size:40px}
  .tagline{margin-bottom:.9rem;padding-bottom:.8rem}
  .tabs{flex-direction:row;overflow-x:auto;gap:6px;margin:0 -4px;padding:0 4px 4px;scroll-snap-type:x mandatory;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tab{flex:0 0 auto;min-height:50px;width:210px;scroll-snap-align:start}
  .tab img{width:56px}
  .tab-num{font-size:20px}
  .bio{display:none}
  .rail-contact{flex-direction:column;align-items:center;padding-top:.9rem}
  .crt-row{width:auto;margin:0;justify-content:center}
  .main{margin-left:0}
  .g-sticky{position:relative;height:auto;overflow:visible;display:block}
  .g-track{position:static;flex-direction:column;align-items:stretch;padding:18px var(--gap) 0;gap:28px;transform:none!important;will-change:auto}
  .card{--imgH:auto;width:auto}
  .card-hit{width:100%}
  .card-img{width:100%;height:auto;aspect-ratio:var(--ar)}
  .card-img img{width:100%;height:auto}
  .g-note{width:auto;height:auto;padding:18px}
  .g-track,.g-track.cat{padding:18px var(--gap) 0}
  .g-note.g-intro{display:none}
  .g-head{position:static}
  .stack{display:contents}
  .ov{left:0}
  .ov-cols{flex-direction:column;align-items:flex-start;gap:28px}
  .d-info{grid-template-columns:1fr}
  .d-nav{display:flex}
  .g-dock{display:none}
  .d-scroll{padding:60px 12px 40px}
  .frame img,.frame video{max-height:none}
  .d-step{grid-template-columns:1fr;gap:10px}
  .d-step-meta{position:relative;top:0}
  .d-arrow{display:none}
  .d-close{top:8px;right:6px}
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none!important;transition-duration:.001ms!important;transition-delay:0s!important}
  #intro{display:none}
  .rv{opacity:1;transform:none}
}

/* v8l: "Who are you?" chooser (same backdrop/panel as #lic) + mode indicator */
.who-panel{width:min(560px,100%);padding:26px 26px 24px;text-align:center}
.who-h{margin:0 0 16px;font:400 20px/1.2 var(--sans);color:var(--ink-2)}
.who-row{display:flex;align-items:stretch}
.who-bar{flex:none;width:1px;margin:4px 6px;background:#cfc8ba}
.who-c{flex:1 1 0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 14px 14px;border:1px solid transparent;border-radius:2px;background:none;color:var(--ink);transition:border-color .15s,background-color .15s}
.who-c:hover{border-color:#cfc8ba;background:#f8f5ee}
.who-c:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
.who-t{font:400 26px/1.1 var(--display);color:var(--ink);margin-bottom:4px}
.who-c:hover .who-t{color:#544a8c}
.who-d{font:400 12.5px/1.45 var(--sans);color:var(--ink-3);max-width:210px}
.mode-tag{display:block;width:100%;height:30px;padding:0 10px;border:1px solid var(--line);border-radius:3px;background:linear-gradient(90deg,#e4e1db,#fff 70%);
  font:400 12px/28px var(--sans);letter-spacing:.02em;color:var(--ink-2);text-align:center;cursor:pointer;transition:transform .2s var(--ease),border-color .2s}
.mode-tag.ad{background:linear-gradient(90deg,rgba(0,108,180,.32),#fff 75%);color:#0d3f66}
.mode-tag:hover{transform:translateX(2px);border-color:#b3ac9e}
.mode-tag[hidden]{display:none}
.mode-tag:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
.rail-contact .mode-tag{margin-bottom:2px}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.rail-contact .mode-tag{width:auto;padding:0 14px}}
@media (max-width: 520px){.who-row{flex-direction:column}.who-bar{width:auto;height:1px;margin:6px 10px}}
@media (max-height: 680px){.mode-tag{height:26px;line-height:24px}}

/* v8o: ring open → the whole rail slides off to the left (transform only); ALL WORKS is counter-translated
   so it stays on screen, docked top-left above the ring. Reverse on close. */
.rail{transition:transform .5s var(--ease)}
.ov-dock .rail{transform:translate3d(-100%,0,0);z-index:40}
.ov-dock .rail-frame{overflow:visible}
.ov-dock .tabs > [data-cat="all"]{transform:translate3d(var(--dx,0),var(--dy,0),0);box-shadow:0 6px 16px -10px rgba(30,24,40,.45)}
.ov-dock .tabs > [data-cat="all"]:hover{transform:translate3d(calc(var(--dx,0px) + 2px),var(--dy,0),0)}
@media (prefers-reduced-motion: reduce){.rail{transition:none}}

/* v8s: ring open → the signature slides (transform only, synced with the rail) to the top-centre above the ring */
.sig{transition:transform .5s var(--ease)}
.ov-dock .sig{z-index:41;transform:translate3d(var(--sx,0),-6px,0)}
@media (prefers-reduced-motion: reduce){.sig{transition:none}}

/* v8t ring filter bar: 5 slots under the ring; square beige checkboxes, green tick when on */
.rg-filter{position:absolute;left:50%;bottom:30px;z-index:110;display:flex;transform:translateX(-50%);border:1px solid var(--line);border-radius:2px;
  background:linear-gradient(180deg,#fbfaf6,#f1ede4);box-shadow:inset 0 0 0 2px #fff;opacity:0;transition:opacity .3s ease .4s}
.ov.on .rg-filter{opacity:1}
.ov.closing .rg-filter{transition:opacity .12s}
.ov.grid .rg-filter{display:none}
.rg-opt{position:relative;display:flex;align-items:center;gap:7px;padding:8px 16px;white-space:nowrap;cursor:pointer;user-select:none}
.rg-opt + .rg-opt{border-left:1px solid #d9d2c4}
.rg-opt input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.rg-box{position:relative;flex:none;width:15px;height:15px;border:1px solid #b9b2a5;border-radius:1px;background:#fffdf8;box-shadow:inset 0 1px 2px rgba(60,50,40,.12)}
.rg-opt input:checked + .rg-box::after{content:"";position:absolute;left:1px;top:0;width:13px;height:13px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13' shape-rendering='crispEdges'%3E%3Cpath fill='%232f8f3a' d='M10 2h2v2h-1v1h-1v1H9v1H8v1H7v1H6v1H5v1H4V9H3V8H2V6h2v1h1v1h1V7h1V6h1V5h1V4h1z'/%3E%3C/svg%3E") no-repeat 0 0/13px 13px}
.rg-opt input:focus-visible + .rg-box{outline:2px solid #6c63a8;outline-offset:2px}
.rg-opt:hover .rg-box{border-color:#8f887b}
.rg-lab{font:400 12px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.rg-opt input:checked ~ .rg-lab{color:var(--ink)}
.rg-n{font:400 10.5px/1 var(--sans);color:var(--ink-3)}
.rg-opt.off{opacity:.45;cursor:default}
@media (max-height: 700px){.rg-filter{bottom:24px}.rg-opt{padding:6px 12px}}

/* v8x XMB waves: fixed canvas behind all content (and inside the ring view above its backdrop when open) */
.xmb{position:fixed;inset:0;width:100vw;height:100vh;z-index:-1;pointer-events:none;opacity:1;transition:opacity .45s ease}
.ov > .xmb{position:absolute;z-index:0}
.xmb.off{opacity:0}

/* v8z2 contact: Windows-8 Metro tiles in the category-button language. One square CRT tile + a 2×2 (田) grid of
   social tiles of the same total height; tight gaps. Rest: soft diagonal tint of the tile colour; hover: the colour
   sweeps in (transform only, saturated) and the icon bounces like the category labels. */
.metro{--T:96px;--g:4px;display:flex;gap:var(--g);justify-content:center;margin:2px 0 4px}
.metro .socials{display:grid;grid-template-columns:repeat(2,calc((var(--T) - var(--g)) / 2));grid-auto-rows:calc((var(--T) - var(--g)) / 2);gap:var(--g);margin:0}
.tile{position:relative;display:grid;place-items:center;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:3px;cursor:pointer;
  background:linear-gradient(135deg,color-mix(in srgb,var(--c) 42%,#fff) 0%,color-mix(in srgb,var(--c) 14%,#fff) 60%,#fff 100%);transition:border-color .2s,transform .25s var(--ease)}
.tile::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.7);pointer-events:none}
.tile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:150%;pointer-events:none;transform:translateX(-101%);
  background:linear-gradient(90deg,color-mix(in srgb,var(--c) 75%,#fff) 0%,color-mix(in srgb,var(--c) 55%,#fff) 45%,color-mix(in srgb,var(--c) 30%,#fff) 75%,transparent 100%);
  filter:saturate(1.6);transition:transform .45s cubic-bezier(.33,1,.68,1);will-change:transform}
.tile-ig{background:linear-gradient(135deg,color-mix(in srgb,#833AB4 38%,#fff) 0%,color-mix(in srgb,#E1306C 22%,#fff) 50%,color-mix(in srgb,#F77737 18%,#fff) 100%)}
.tile-ig::before{background:linear-gradient(90deg,color-mix(in srgb,#833AB4 70%,#fff) 0%,color-mix(in srgb,#E1306C 60%,#fff) 45%,color-mix(in srgb,#F77737 45%,#fff) 80%,transparent 100%)}
.tile-crt{background:linear-gradient(135deg,color-mix(in srgb,#7fc8c0 34%,#fff) 0%,color-mix(in srgb,#cfc3a2 40%,#fff) 55%,#fff 100%)}
.tile-crt::before{background:linear-gradient(90deg,color-mix(in srgb,#7fc8c0 70%,#fff) 0%,color-mix(in srgb,#cfc3a2 75%,#fff) 50%,color-mix(in srgb,#cfc3a2 35%,#fff) 80%,transparent 100%)}
.tile:hover{border-color:#b9b2a5;transform:translateX(2px)}
.tile:hover::before{transform:none}
.tile img{position:relative;width:22px;height:22px;object-fit:contain;transition:filter .3s}
.tile:hover img{filter:saturate(1.5);animation:tabBounce .42s ease-out}
.tile:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
.metro .crt{width:var(--T);height:var(--T);border-radius:3px;line-height:0}
.metro .crt-cv{z-index:1}
.metro .tile-li{display:block;list-style:none}
.metro .tile-li .tile{width:100%;height:100%;box-sizing:border-box;transform-origin:50% 50%}
.metro .socials a:hover{transform:translateX(2px)}
@media (max-height: 680px){.metro{--T:74px;--g:3px}.tile img{width:18px;height:18px}}
@media (prefers-reduced-motion: reduce){.tile,.tile::before,.tile img{transition:none}.tile:hover img{animation:none}}

/* v8z3: mode box moved out of the rail → fixed at the top centre of the main area (between the page title and the
   signature); hidden while the ALL WORKS ring is open */
.mode-tag{position:fixed;top:12px;left:calc(var(--railV) + (100vw - var(--railV)) / 2);z-index:26;width:auto;min-width:150px;height:28px;padding:0 16px;line-height:26px;
  transform:translateX(-50%);transition:transform .25s var(--ease),border-color .2s,opacity .3s ease}
.mode-tag:hover{transform:translateX(calc(-50% + 2px))}
.ov-on .mode-tag{opacity:0;pointer-events:none;visibility:hidden;transition:opacity .2s ease,visibility 0s .2s}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.mode-tag{left:auto;right:10px;top:8px;transform:none;min-width:0;height:24px;line-height:22px;font-size:11px}.mode-tag:hover{transform:none}}
/* v8z3: email in a tile box (category-button language), centred */
.tile-mail{display:flex;align-items:center;justify-content:center;width:calc(var(--T,96px) * 2);max-width:100%;height:30px;margin:0 auto;padding:0 8px;box-sizing:border-box;
  font:600 var(--mailF,13.5px)/1 var(--sans);letter-spacing:.02em;color:var(--ink);text-align:center}
.tile-t{position:relative;z-index:1;white-space:nowrap}
.tile-mail:hover .tile-t{animation:tabBounce .42s ease-out}
.crt-row.hot .tile-mail{border-color:#b9b2a5}
.crt-row .metro + .tile-mail{margin-top:0}
@media (max-height: 680px){.tile-mail{height:26px;width:calc(74px * 2)}}
@media (prefers-reduced-motion: reduce){.tile-mail:hover .tile-t{animation:none}}

/* v9a: horizontal swipes navigate the site; stop the browser's back/forward overscroll gesture */
html,body{overscroll-behavior-x:none}

/* v9b: folder-tab handle on the rail's right edge. Collapsing slides the rail left (transform only) so its right
   20% stays visible; the main column reflows at once into the freed width (it is under the rail while it slides),
   and the strip / Cover Flow are re-laid out. */
:root{--railV:var(--rail)}
.rail-mini{--railV:calc(var(--rail) * .2)}
.rail{transition:transform .45s var(--ease)}
.rail-mini .rail{transform:translate3d(calc(var(--rail) * -.8),0,0)}
.rail-mini .rail-frame{cursor:pointer}
.rail-mini .rail-frame *{pointer-events:none}
.ov-dock .rail{transform:translate3d(-100%,0,0)}   /* the ring still hides it completely */
.rail-tab{position:absolute;left:100%;top:34px;width:21px;height:58px;padding:0;margin-left:-1px;border:0;background:var(--line);cursor:pointer;
  clip-path:polygon(0 0,100% 7px,100% calc(100% - 7px),0 100%);transition:transform .2s var(--ease)}
.rail-tab::before{content:"";position:absolute;inset:1px 1px 1px 0;background:linear-gradient(90deg,#f6f4ef 0%,#ffffff 100%);
  clip-path:polygon(0 0,100% 7px,100% calc(100% - 7px),0 100%)}
.rail-tab svg{position:relative;display:block;width:9px;height:12px;margin:0 auto 0 5px;fill:var(--ink-2);transition:transform .3s var(--ease)}
.rail-tab:hover svg{fill:var(--ink)}
.rail-tab:hover{transform:translateX(2px)}
.rail-mini .rail-tab svg{transform:scaleX(-1)}
.rail-tab:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.rail-tab{display:none}}
@media (prefers-reduced-motion: reduce){.rail,.rail-tab,.rail-tab svg{transition:none}}
/* v9c: rounded sidebar panel (9px) + soft drop shadow; the folder tab matches (rounded outer corners) */
.rail-frame{border-radius:9px;box-shadow:inset 0 0 0 3px #fff, inset 0 0 0 4px var(--line-2), 0 6px 22px -6px rgba(60,48,36,.22), 0 2px 6px -2px rgba(60,48,36,.12)}
.rail-tab{clip-path:none;background:linear-gradient(90deg,#f6f4ef 0%,#ffffff 100%);border:1px solid var(--line);border-left:0;border-radius:0 9px 9px 0;
  box-shadow:4px 4px 12px -5px rgba(60,48,36,.22);display:grid;place-items:center;margin-left:-2px}
.rail-tab::before{content:none}
.rail-tab svg{margin:0}

/* v9d: email address in Pixel Operator (user-supplied, CC0) — 16 px = its native pixel grid, so it stays crisp;
   1px tracking so the letters breathe. The box spans the tile block (wider on short screens). */
.tile-mail .tile-t{font-family:"Pixel Operator",var(--sans);font-weight:400;font-size:16px;letter-spacing:1px;line-height:1;-webkit-font-smoothing:none;font-smooth:never}
@media (max-height: 680px){.tile-mail{width:100%}}
.ov-dock .rail-tab{visibility:hidden}   /* v9e: the tab must not peek out while the ring hides the rail */

/* v9f ring clock-face ticks */
.rg-ticks{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.rg-ticks .tk{stroke:#d9cfbd;stroke-width:1.2;stroke-linecap:square;opacity:0;transition:opacity .35s ease}
.rg-ticks .tk-m{stroke:#cbbfa9;stroke-width:2.2}
.ov.on .rg-ticks .tk{opacity:var(--o)}
.ov.on .rg-ticks .tk-m{opacity:var(--o)}
.ov.closing .rg-ticks .tk{transition:opacity .2s ease;transition-delay:0s!important;opacity:0}
.ov.grid .rg-ticks{display:none}
@media (prefers-reduced-motion: reduce){.rg-ticks .tk{transition:none!important}}

/* v9i: ARTWORK SELECT on the ring plane */
.rg-ticks .rg-sel{font-family:"Zilla Slab",serif;font-weight:700;fill:#cbbfa9;opacity:0;transition:opacity .4s ease}
.ov.on .rg-ticks .rg-sel{opacity:1}
.ov.closing .rg-ticks .rg-sel{transition:opacity .2s ease;transition-delay:0s!important;opacity:0}
@media (prefers-reduced-motion: reduce){.rg-ticks .rg-sel{transition:none!important}}
/* v9j: dark resting tiles (HSV value ~20%, hue/sat kept: --c mixed with black at 0.2/max(rgb)); hover fades the dark
   layer out to reveal the old ~90% look + sweep. Email box excluded (keeps its light pixel-text tile). Logos white at rest. */
.metro .tile{--k:84%}   /* v9u: resting HSV value ~60% */
.metro .tile::after{z-index:1;background:color-mix(in srgb,var(--c) var(--k),#000);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);transition:opacity .3s ease}
.metro .tile:hover::after{opacity:0}
.metro .tile img,.metro .crt-cv{z-index:2}
.metro .tile[aria-label=Discord] img,.metro .tile[aria-label=ArtStation] img{filter:brightness(0) invert(1);opacity:.92}
.metro .tile:hover img{filter:saturate(1.5);opacity:1}
.metro .tile[aria-label=LinkedIn]{--k:100%}.metro .tile[aria-label=ArtStation]{--k:85%}
.metro .tile-ig::after{background:linear-gradient(135deg,color-mix(in srgb,#833AB4 100%,#000) 0%,color-mix(in srgb,#E1306C 91%,#000) 50%,color-mix(in srgb,#F77737 83%,#000) 100%)}
.metro .tile-crt::after{background:linear-gradient(135deg,color-mix(in srgb,#7fc8c0 100%,#000) 0%,color-mix(in srgb,#cfc3a2 99%,#000) 60%,color-mix(in srgb,#cfc3a2 83%,#000) 100%)}
@media (prefers-reduced-motion: reduce){.metro .tile::after{transition:none}}
/* v9k: email box dark at rest like the Metro tiles (lavender #b9b2d6 at ~20% HSV value), white pixel text; hover = old light look */
.tile-mail::after{z-index:1;background:color-mix(in srgb,var(--c) 95%,#000);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);transition:opacity .3s ease}
.tile-mail:hover::after,.tile-mail:focus-visible::after{opacity:0}
.tile-mail .tile-t{z-index:2;transition:color .3s ease}
.tile-mail:not(:hover):not(:focus-visible) .tile-t{color:#fff}
@media (prefers-reduced-motion: reduce){.tile-mail::after,.tile-mail .tile-t{transition:none}}
/* v9l: white panel ends after the licensed note; CONTACT block sits on the page below it (same column), with soft shadows */
.rail{display:flex;flex-direction:column;padding-right:0}
.rail-frame{height:auto;flex:0 1 auto;min-height:0}
.rail > .rail-contact{margin-top:auto;padding:0 0 4px;width:calc(var(--rail) - 14px);transition:opacity .3s ease}
.rail > .rail-contact .tile{box-shadow:0 6px 16px -6px rgba(60,48,36,.32),0 2px 5px -2px rgba(60,48,36,.18)}
.rail-mini .rail > .rail-contact{opacity:0;pointer-events:none}
/* v9m: gallery viewport extends under the (short) sidebar panel to the window's left edge; the track itself still starts at
   --railV so the active work stays centred in the area right of the panel. Strip/dock centred on the whole page width. */
@media (min-width: 861px) and (hover: hover), (min-width: 861px) and (pointer: fine), (min-width: 861px) and (pointer: none){
  .g-sticky{margin-left:calc(-1 * var(--railV))}
  .g-track{left:var(--railV)}
  .g-dock{--dIn:max(calc(var(--railV) + 10px), calc(var(--gap) + 52px), var(--bobR, 0px));left:var(--dIn);right:var(--dIn);justify-content:center}
  .rail > .rail-contact{background:var(--bg,#f2eee6);border-radius:9px;padding:8px 0 6px;box-shadow:0 0 18px 10px var(--bg,#f2eee6)}
}
/* v9n: panel top follows the gallery artworks' top edge (set by JS) */
@media (min-width: 861px) and (hover: hover), (min-width: 861px) and (pointer: fine), (min-width: 861px) and (pointer: none){ .rail{padding-top:var(--panelT,14px);transition:transform .45s var(--ease),padding-top .3s ease} }
@media (min-width: 861px) and (hover: hover), (min-width: 861px) and (pointer: fine), (min-width: 861px) and (pointer: none){ .rail-tab{top:calc(var(--panelT,14px) + 20px);transition:top .3s ease} }
@media (min-width: 861px) and (hover: hover) and (max-height: 680px), (min-width: 861px) and (pointer: fine) and (max-height: 680px), (min-width: 861px) and (pointer: none) and (max-height: 680px){ .tab{min-height:44px} .rail-frame{padding-top:12px;padding-bottom:12px} }
.to-top::after{content:none;background:url(images/ui/bob-idle-sheet2.png) no-repeat -9999px 0,url(images/ui/pet-hand2.png) no-repeat -9999px 0}   /* v9o: referenced so the build ships the idle sheet */
.metro .tile[aria-label=LinkedIn] img{filter:drop-shadow(0 0 1.5px rgba(255,255,255,.95)) drop-shadow(0 0 .5px #fff)}   /* v9u: lift the blue badge off the mid-blue tile at rest */
.metro .tile[aria-label=LinkedIn]:hover img{filter:saturate(1.5)}
/* v9v: GALLERY open = the normal page sinks off-screen (ease-in), close = it rises back (ease-out); transforms only */
.main,.to-top,.mode-tag{transition-property:transform,opacity;}
.main{transition:transform .75s cubic-bezier(.3,.55,.35,1)}
.ov-sink .main,.ov-sink .to-top{transform:translate3d(0,100vh,0);transition:transform .7s cubic-bezier(.6,0,.9,.4)}
.to-top{transition:opacity .25s,transform .75s cubic-bezier(.3,.55,.35,1)}
.ov-sink .to-top{transition:opacity .25s,transform .7s cubic-bezier(.6,0,.9,.4)}
.ov.on .ov-dim{transition:opacity .35s ease .4s}          /* backdrop arrives after the page has mostly sunk */
.ov.closing .ov-dim{transition:opacity .25s ease}        /* and leaves first, so the page is seen rising */
.rg-flip{position:fixed;z-index:60;margin:0;transform-origin:0 0;object-fit:cover;pointer-events:none;box-shadow:0 18px 34px -18px rgba(30,24,40,.6);will-change:transform}
.rg-big.flip-wait .rg-img{visibility:hidden}
.cf-item.flip-hide{visibility:hidden}
@media (prefers-reduced-motion: reduce){.main,.to-top,.ov-dim{transition:none!important}}
/* v9w: the page fades on its own while sinking — 0.7× the previous visual fade (backdrop .4s+.35s = .75s → ~.52s);
   sink motion unchanged. Mirror on close (fade-in .52s, backdrop out .25s → .175s). */
.main{transition:transform .75s cubic-bezier(.3,.55,.35,1),opacity .52s ease-out}
.ov-sink .main{opacity:0;transition:transform .7s cubic-bezier(.6,0,.9,.4),opacity .52s ease-in}
.to-top{transition:opacity .52s ease-out,transform .75s cubic-bezier(.3,.55,.35,1)}
.ov-sink .to-top{opacity:0;transition:opacity .52s ease-in,transform .7s cubic-bezier(.6,0,.9,.4)}
.ov.on .ov-dim{transition:opacity .245s ease .28s}
.ov.closing .ov-dim{transition:opacity .175s ease}
@media (prefers-reduced-motion: reduce){.main,.to-top,.ov-dim{transition:none!important}}
/* v9x: folder-tab collapse leaves the CONTACT block in place (counter-translated, visible, clickable); the GALLERY ring still takes it away */
.rail > .rail-contact{transition:opacity .3s ease,transform .45s var(--ease)}
.rail-mini .rail > .rail-contact{opacity:1;pointer-events:auto;transform:translate3d(calc(var(--rail) * .8),0,0)}
.rail-mini .rail > .rail-contact *{pointer-events:auto}
.ov-dock .rail > .rail-contact{transform:none}
@media (min-width: 861px) and (hover: hover), (min-width: 861px) and (pointer: fine), (min-width: 861px) and (pointer: none){ .g-dock{--dIn:max(calc(var(--rail) + 10px), calc(var(--gap) + 52px), var(--bobR, 0px))} }   /* strip stays clear of the contact block in both states */
/* v9y: centred EMAIL COPIED box, styled like the category buttons */
.copied-box{position:fixed;left:50%;top:50%;z-index:200;display:flex;flex-direction:column;align-items:center;gap:8px;min-width:240px;padding:18px 28px 16px;
  background:linear-gradient(90deg,#e4e1db,#fff 70%);border:1px solid var(--line);border-radius:3px;
  box-shadow:inset 0 0 0 3px #fff,inset 0 0 0 4px var(--line-2),0 14px 34px -12px rgba(60,48,36,.35),0 3px 8px -3px rgba(60,48,36,.18);
  transform:translate(-50%,-50%) scale(.96);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,transform .22s ease,visibility 0s .22s}
.copied-box.on{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,-50%);transition:opacity .22s ease,transform .22s ease,visibility 0s}
.copied-box .cb-t{font:700 15px/1 "Zilla Slab",serif;letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}
.copied-box .cb-a{font:400 16px/1 "Pixel Operator",var(--sans);letter-spacing:1px;color:#6c63a8;-webkit-font-smoothing:none}
@media (prefers-reduced-motion: reduce){.copied-box,.copied-box.on{transition:none}}
.rg-title{font:700 clamp(14px,1.3vw,18.5px)/1.15 "Zilla Slab",serif;letter-spacing:.01em}   /* v9z: Zilla Slab Bold, ~77% of the old MoF size */
/* v10a: all CONTACT tiles + email box rest on one beige = #f2eee6 at 80% value (#c2beb8); hover reveals the old light look */
.metro .tile::after,.metro .tile-ig::after,.metro .tile-crt::after,.tile-mail::after{background:#c2beb8;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}
.metro .tile[aria-label=Discord] img,.metro .tile[aria-label=ArtStation] img,.metro .tile[aria-label=LinkedIn] img{filter:none;opacity:1}
.tile-mail:not(:hover):not(:focus-visible) .tile-t{color:#2c2a31}
/* ================= v10e Licensed Art page ================= */
.lp{position:fixed;inset:0;z-index:72;display:grid;place-items:center;background:#f2eee6;opacity:0;transition:opacity .25s ease}
.lp[hidden]{display:none}
.lp.open{opacity:1}
.lp-x{position:absolute;top:12px;right:14px;z-index:5}
.lp-head{position:absolute;top:16px;left:0;right:0;text-align:center;z-index:4;pointer-events:none;transition:opacity .3s}
.lp.pv .lp-head{opacity:.25}
.lp-head .label{margin:0}
.lp-h{margin:.2rem 0 0;font:400 26px/1 var(--display);color:var(--ink)}
.lp > .xmb{position:absolute;z-index:0}
.lp-stage{position:absolute;inset:0;z-index:1;display:grid;place-items:center}
.lp-row{--sw:min(13.5vw,calc(80vh / 2.5));display:flex;gap:2.6vw;margin:0;padding:0;list-style:none}
.lp-strip{position:relative;width:var(--sw);height:calc(var(--sw) * 2.5);display:flex;flex-direction:column;align-items:center;justify-content:center}
.lp-grey{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:grayscale(1) brightness(.62);
  -webkit-mask-image:linear-gradient(transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(transparent,#000 14%,#000 86%,transparent)}
.lp-strip[data-p=mm] .lp-grey{object-position:30% 50%}
.lp-strip[data-p=cc] .lp-grey{object-position:66% 50%}
.lp-strip[data-p=hq] .lp-grey{object-position:50% 50%}
.lp-logo{position:relative;z-index:4;width:calc(var(--sw) * .85);margin-bottom:calc(var(--sw) * .2);padding:0;border:0;background:none;cursor:default;transition:opacity .25s ease}
.lp-logo img{width:100%;max-height:calc(var(--sw) * .66);margin:auto;object-fit:contain;display:block;filter:drop-shadow(0 4px 10px rgba(0,0,0,.45))}
.lp.pv .lp-logo{opacity:0}

.lp-logo:focus-visible{outline:2px solid #6c63a8;outline-offset:4px}
.lp-pv{position:absolute;left:50%;top:50%;width:min(60vw,960px,calc((100vh - 120px) * 16 / 9));aspect-ratio:16/9;margin:0;overflow:hidden;z-index:3;
  translate:-50% -50%;opacity:0;visibility:hidden;clip-path:var(--clip,inset(0));pointer-events:none;
  transition:clip-path .5s cubic-bezier(.2,.7,.2,1),opacity .3s ease,visibility 0s .5s}
.lp-pv.on{clip-path:inset(0);opacity:1;visibility:visible;transition:clip-path .5s cubic-bezier(.2,.7,.2,1),opacity .2s ease,visibility 0s}
.lp-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.06);will-change:transform}
.lp-fg{position:absolute;height:auto;filter:drop-shadow(0 6px 10px rgba(0,0,0,.25));will-change:transform;opacity:0;transition:opacity .3s ease .15s}
.lp-pv.on .lp-fg{opacity:1}
.lp-sub{position:absolute;left:50%;bottom:35%;z-index:4;width:calc(var(--sw) * 1.1);margin:0;translate:-50% 0;text-align:center;color:#fff;pointer-events:none;
  font:700 clamp(11px,1.1vw,15px)/1.2 'Zilla Slab',serif;letter-spacing:.05em;text-shadow:0 1px 2px rgba(0,0,0,.9),0 0 4px rgba(0,0,0,.75),0 0 12px rgba(0,0,0,.55);transition:opacity .25s ease}
.lp.pv .lp-sub{opacity:0}
.lp.pv .lp-strip{opacity:.55;transition:opacity .3s}
.lp-strip{transition:opacity .3s}
@media (prefers-reduced-motion: reduce){.lp,.lp-pv,.lp-pv.on,.lp-fg,.lp-logo,.lp-head,.lp-strip,.lp-sub{transition:none}}

/* v10f licensed project page: back pill (fixed, top centre) */
.lp-back{position:fixed;top:12px;left:16px;z-index:60;display:inline-flex;align-items:center;gap:.5em;padding:8px 16px;border:1px solid var(--line);border-radius:999px;
  background:rgba(250,247,241,.92);font:700 13px/1 'Zilla Slab',serif;letter-spacing:.06em;text-transform:uppercase;color:var(--ink);cursor:pointer;
  box-shadow:0 6px 16px -10px rgba(40,30,20,.5);transition:transform .2s ease,border-color .2s}
.lp-back[hidden]{display:none}
.lp-back:hover{transform:translateY(-1px);border-color:#6c63a8}
.lp-back:focus-visible{outline:2px solid #6c63a8;outline-offset:3px}
html.lock .lp-back{visibility:hidden}
/* v10g works without process steps: no process box; the text sits centred under the image */
.detail.no-steps .d-proc{display:none}
.detail.no-steps .d-info{grid-template-columns:minmax(0,760px);justify-content:center;text-align:center}
.detail.no-steps .d-title:empty,.detail.no-steps .d-medium:empty,.detail.no-steps .d-desc:empty{display:none}
/* v10h grouped licensed project intro (Meadow Moon): two labelled groups; the active one is marked */
.lic-groups .lg-box{position:relative;margin:.9rem 0 0;padding:10px 12px 12px;border:1px solid transparent;border-radius:4px;transition:border-color .2s,background-color .2s}
.lic-groups .lg-box.on{border-color:var(--line);background:rgba(255,255,255,.45)}
.lic-groups .lg-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0;font:700 15px/1.2 var(--sans);letter-spacing:.02em;color:var(--ink-3);transition:color .2s}
.lic-groups .lg-box.on .lg-h{color:var(--ink)}
.lic-groups .lg-box .g-thumbs{margin-top:.6rem}
.lic-groups .lg-box:not(.on) .g-thumbs button{opacity:.6;filter:saturate(.7)}
.lic-groups .hint{margin-top:.9rem}
.g-track .card,.g-track .stack,.g-track .g-end,#cfStage,.g-flag{transition:opacity .14s ease}
.lgswap .g-track .card,.lgswap .g-track .stack,.lgswap .g-track .g-end,.lgswap #cfStage,.lgswap .g-flag{opacity:0}
@media (prefers-reduced-motion: reduce){.lic-groups .lg-box,.g-track .card,#cfStage,.g-flag{transition:none}}
/* v10i Cozy Cats: groups with many works get a smaller thumbnail row so the intro still fits; never hide thumbs */
.lic-groups .lg-many .g-thumbs{--rowH:clamp(28px, 4.2vh, 40px);gap:4px}
.lic-groups .g-thumbs button{display:block!important}
@media (max-height: 760px){.lic-groups .lg-many .g-thumbs{--rowH:24px;gap:3px}.lic-groups .g-thumbs{--rowH:34px}.lic-groups .lg-box{margin-top:.5rem;padding:6px 10px 8px}.lic-groups .hint{margin-top:.5rem}}

/* v10j Meadow Moon character line-up (group photo) */
.mm-line{flex:none;position:relative;align-self:flex-start;width:calc((var(--bigH) + var(--capH)) * .78 * var(--lw));height:calc(var(--bigH) + var(--capH));margin-right:2vw}
.mm-stage{position:absolute;left:0;right:0;bottom:0;height:78%}
.mm-ch{position:absolute;aspect-ratio:var(--r);translate:-50% 0;padding:0;border:0;background:none;cursor:pointer;pointer-events:none}
.mm-ch::before{content:"";position:absolute;left:12%;right:12%;bottom:-2.5%;height:7%;border-radius:50%;background:radial-gradient(closest-side,rgba(50,38,28,.38),rgba(50,38,28,0));z-index:-1}
.mm-ch img{display:block;width:100%;height:100%;transform:scaleX(var(--fx,1));transition:filter .18s ease,transform .2s ease}
.mm-stage .mm-ch.on img{filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 12px rgba(255,214,120,.95));transform:translateY(-1.5%) scaleX(var(--fx,1))}
.mm-stage .mm-ch.on{z-index:200!important}
.mm-stage{cursor:default}.mm-stage.hov{cursor:pointer}
.mm-ch:focus-visible{outline:none}.mm-ch:focus-visible img{filter:drop-shadow(0 0 3px #6c63a8) drop-shadow(0 0 8px #6c63a8)}
@media (prefers-reduced-motion: reduce){.mm-ch img,.mm-pv img{transition:none}}
.lic-groups .lg-lots .g-thumbs{--rowH:clamp(20px, 2.9vh, 28px);gap:3px}
@media (max-height: 760px){.lic-groups .lg-lots .g-thumbs{--rowH:18px}}

/* v10k '+N' tile after the 5 covers on licensed project pages */
.cf-more{position:absolute;left:50%;top:7px;z-index:101;padding:0;border:1px solid var(--line);border-radius:4px;background:rgba(250,247,241,.92);color:var(--ink);
  font:700 15px/1 'Zilla Slab',serif;letter-spacing:.04em;cursor:pointer;display:grid;place-items:center;transition:transform .3s var(--ease),border-color .2s}
.cf-more[hidden]{display:none}.cf-more:hover{border-color:#6c63a8}

/* v10l line-up names + Player Design caption; group-box '+N' tile */
.mm-nm{position:absolute;left:50%;top:calc(100% + 4px);translate:-50% 0;white-space:nowrap;font:700 13px/1 'Zilla Slab',serif;letter-spacing:.06em;color:var(--ink);
  background:rgba(250,247,241,.9);border:1px solid var(--line);border-radius:999px;padding:4px 10px;opacity:0;transition:opacity .15s;pointer-events:none}
.mm-ch.on .mm-nm{opacity:1}
.mm-cap{position:absolute;bottom:0;margin:0;translate:-50% 0;white-space:nowrap;font:700 13px/1 'Zilla Slab',serif;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.lic-groups .g-thumbs .lg-more{display:grid!important;flex:none;aspect-ratio:auto;place-items:center;height:var(--rowH,52px);min-width:calc(var(--rowH,52px) * .9);padding:0 8px;border:1px solid var(--line);border-radius:3px;
  background:rgba(250,247,241,.9);font:700 14px/1 'Zilla Slab',serif;color:var(--ink);cursor:pointer}
.lic-groups .g-thumbs .lg-more:hover{border-color:#6c63a8}

/* v10l Meadow Moon Character Design: the iPod strip becomes a mini line-up; no flag / arrows (wheel only pans the line-up) */
.mmline .g-flag,.mmline #cfPrev,.mmline #cfNext,.mmline .cf-title{visibility:hidden}
.mm-mini{position:absolute;left:50%;bottom:2px;translate:-50% 0}
.mm-mc{position:absolute;aspect-ratio:var(--r);translate:-50% 0;padding:0;border:0;background:none;cursor:pointer}
.mm-mc img{display:block;width:100%;height:100%;transition:transform .15s ease}
.mm-mc:hover{z-index:200!important}.mm-mc:hover img{transform:translateY(-6%);filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px rgba(255,214,120,.9))}

/* v10m Licensed Art page: page underneath shows through (~30%); no big preview — the hovered strip turns colour, its logo hops */
.lp{background:rgba(242,238,230,.7)}
.lp .lp-pv{display:none}
.lp.pv .lp-head{opacity:1}.lp.pv .lp-logo{opacity:1}.lp.pv .lp-sub{opacity:1}.lp.pv .lp-strip{opacity:1}
.lp-strip{cursor:pointer}
.lp-grey{transition:filter .22s ease}
.lp-strip.on .lp-grey{filter:none}
.lp-strip.on .lp-logo img{animation:lpHop .5s cubic-bezier(.3,.7,.4,1)}
@keyframes lpHop{0%{transform:none}35%{transform:translateY(-14%) scale(1.04,.97)}60%{transform:translateY(0) scale(1.05,.94)}80%{transform:translateY(-3%)}100%{transform:none}}
@media (prefers-reduced-motion: reduce){.lp-strip.on .lp-logo img{animation:none}.lp-grey{transition:none}}
/* v10m sidebar: the three licensed projects under the password note */
.tab-proj{position:relative;display:flex;align-items:center;width:100%;height:30px;margin:5px 0 0;padding:0 10px 0 0;overflow:hidden;border:1px solid var(--line);border-radius:3px;background:#ece7dd;
  font:400 11.5px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);cursor:not-allowed;text-align:right}
.tab-proj .tp-art{position:absolute;inset:0;display:block;filter:grayscale(1) opacity(.45);transition:filter .2s}
.tab-proj .tp-bg{position:absolute;left:0;top:0;height:100%;width:62%;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,#000 45%,transparent);mask-image:linear-gradient(90deg,#000 45%,transparent)}
.tab-proj .tp-logo{position:absolute;left:8px;top:50%;height:70%;max-width:34%;object-fit:contain;translate:0 -50%;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.tab-proj .tp-name{position:relative;margin-left:auto}
.tab-proj.ad{cursor:pointer;color:var(--ink);background:#fff}
.tab-proj.ad .tp-art{filter:none}
.tab-proj.ad:hover{border-color:#6c63a8}
.tab-proj:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
.copied-box .cb-msg{font:400 15px/1.4 'Zilla Slab',serif;letter-spacing:0;color:var(--ink-2);max-width:300px;text-align:center;-webkit-font-smoothing:auto}
/* v10n neumorphism trial — sidebar panel + category buttons only (warm beige light/shadow, offsets scaled per size) */
.rail-frame{background:#f2eee6;border-color:transparent;border-radius:16px;
  box-shadow:-10px -10px 20px #ffffff, 10px 10px 20px #d5ccbd}
.tab{border-color:transparent;border-radius:10px;
  background:linear-gradient(90deg,var(--c) 0%,color-mix(in srgb,var(--c) 50%,#f2eee6) 42%,#f2eee6 80%);
  box-shadow:-4px -4px 8px #ffffff, 4px 4px 8px #d8cfc0;transition:box-shadow .2s ease,transform .25s var(--ease)}
.tab::after{box-shadow:none}
.tab:hover{border-color:transparent;transform:none;box-shadow:inset 3px 3px 6px #d3cab9, inset -3px -3px 6px #ffffff}
.tab[aria-pressed="true"]{border-color:transparent;box-shadow:inset 3px 3px 7px #cfc5b3, inset -3px -3px 7px #ffffff;
  background:linear-gradient(90deg,var(--c) 0%,color-mix(in srgb,var(--c) 58%,#ebe6dc) 42%,#ebe6dc 80%)}
.tab-sep{opacity:.5}
.tab-proj{border-color:transparent;border-radius:8px;background:#f2eee6;box-shadow:-2px -2px 5px #ffffff, 2px 2px 5px #d8cfc0;margin-top:8px;transition:box-shadow .2s}
.tab-proj.ad{background:#f2eee6}
.tab-proj.ad:hover{border-color:transparent;box-shadow:inset 2px 2px 4px #d3cab9, inset -2px -2px 4px #ffffff}
/* v10o: the hover colour sweep sits 4px inside the button (rounded to match) so the pressed inset edges stay visible;
   no border (fixes the thin coloured line at the right edge); clip-path reveal instead of a translate */
.tab{border:0;padding:7px 9px 7px 1px}
.tab::before{left:4px;top:4px;bottom:4px;right:4px;width:auto;border-radius:7px;transform:none;
  clip-path:inset(0 100% 0 0 round 7px);transition:clip-path .45s cubic-bezier(.33,1,.68,1);will-change:auto}
.tab:hover::before{clip-path:inset(0 0 0 0 round 7px)}
.tab img{border-radius:10px 0 0 10px}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.tabs{gap:12px;padding:8px 10px 12px;margin:0 -10px}}
@media (prefers-reduced-motion: reduce){.tab::before{transition:none}}
/* v10p CONTACT ME in the sidebar's neumorphism style: beige tiles, white top-left / warm beige bottom-right, rounded;
   the resting cover and the hover colour sweep sit 3px inside, so the pressed (inset) rim shows on hover. Block at 80%. */
.rail > .rail-contact{zoom:.8}
.metro .tile,.tile-mail{border:0;border-radius:10px;background:#f2eee6;box-shadow:-4px -4px 8px #ffffff, 4px 4px 8px #d8cfc0;transition:box-shadow .2s ease}
.rail > .rail-contact .tile{box-shadow:-4px -4px 8px #ffffff, 4px 4px 8px #d8cfc0}
.metro .tile::after,.metro .tile-ig::after,.metro .tile-crt::after,.tile-mail::after{inset:3px;border-radius:7px;background:#f2eee6;box-shadow:none}
.metro .tile::before,.tile-mail::before{left:3px;top:3px;bottom:3px;right:3px;width:auto;border-radius:7px;transform:none;clip-path:inset(0 100% 0 0 round 7px);transition:clip-path .4s cubic-bezier(.33,1,.68,1)}
.metro .tile:hover::before,.tile-mail:hover::before,.crt-row.hot .tile-mail::before{clip-path:inset(0 0 0 0 round 7px)}
.metro .tile:hover,.metro .socials a:hover,.tile-mail:hover,.rail > .rail-contact .tile:hover{transform:none;box-shadow:inset 3px 3px 6px #d3cab9, inset -3px -3px 6px #ffffff}
.metro .tile[aria-label=Discord] img,.metro .tile[aria-label=ArtStation] img{filter:none;opacity:1}
.metro .tile[aria-label=LinkedIn] img{filter:none}
.metro .crt{border-radius:10px}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.rail > .rail-contact{width:auto;margin:14px auto 0;padding:8px 0}}
@media (prefers-reduced-motion: reduce){.metro .tile::before,.tile-mail::before{transition:none}}
/* v10q neumorphic vector arrows (Cover Flow): chubby rounded triangle in the page beige, raised with a white top-left
   highlight + warm beige bottom-right shadow; hover = less raised, press = sunk */
.px-btn .nm-arrow{display:block;width:52px;height:52px;overflow:visible;fill:#f2eee6;
  filter:drop-shadow(-3px -3px 3px #ffffff) drop-shadow(3px 3px 4px #cfc5b3);transition:filter .18s ease,transform .18s var(--ease)}
.px-btn:hover .nm-arrow{filter:drop-shadow(-1.5px -1.5px 2px #ffffff) drop-shadow(1.5px 1.5px 2px #cfc5b3);transform:scale(.97)}
.px-btn:active .nm-arrow{fill:#ebe5da;filter:drop-shadow(-.5px -.5px .5px #ffffff) drop-shadow(.5px .5px 1px #c9bfad);transform:scale(.93);transition-duration:.05s}
@media (prefers-reduced-motion: reduce){.px-btn .nm-arrow{transition:none}}
/* v10r dial strip: covers ride down an elliptical arc; let the lower ones show below the stage, pivot at their top centre */
/* v10t licensed project group boxes in the neumorphism style: active box raised, inactive box sits inset (pressed) */
.lic-groups .lg-box{border:0;border-radius:14px;background:#f2eee6;box-shadow:inset 3px 3px 7px #d6cdbd, inset -3px -3px 7px #ffffff;transition:box-shadow .25s ease}
.lic-groups .lg-box.on{border:0;background:#f2eee6;box-shadow:-7px -7px 14px #ffffff, 7px 7px 14px #d5ccbd}
.lic-groups .g-thumbs{gap:8px;padding:2px}
.lic-groups .g-thumbs button{border-radius:7px;box-shadow:-2px -2px 4px #ffffff, 2px 2px 4px #d2c8b6;transition:box-shadow .18s ease,transform .18s ease,opacity .2s,filter .2s}
.lic-groups .g-thumbs button img{border-radius:7px}
.lic-groups .g-thumbs button::after{content:"";position:absolute;inset:0;border-radius:7px;pointer-events:none;box-shadow:none;transition:box-shadow .18s ease}
.lic-groups .g-thumbs button:hover{transform:scale(.97);box-shadow:-1px -1px 2px #ffffff, 1px 1px 2px #d2c8b6}
.lic-groups .g-thumbs button:hover::after{box-shadow:inset 2px 2px 4px rgba(60,45,30,.35), inset -2px -2px 4px rgba(255,255,255,.6)}
.lic-groups .g-thumbs button.on{outline:0;transform:scale(.96);box-shadow:-1px -1px 2px #ffffff, 1px 1px 2px #d2c8b6}
.lic-groups .g-thumbs button.on::after{box-shadow:inset 0 0 0 3px #f2eee6, inset 3px 3px 6px 2px rgba(60,45,30,.4), inset -2px -2px 5px 2px rgba(255,255,255,.7)}
.lic-groups .g-thumbs .lg-more{border:0;border-radius:7px;background:#f2eee6;box-shadow:-3px -3px 6px #ffffff, 3px 3px 6px #d2c8b6;transition:box-shadow .18s ease}
.lic-groups .g-thumbs .lg-more:hover{box-shadow:inset 2px 2px 5px #d2c8b6, inset -2px -2px 5px #ffffff}
@media (prefers-reduced-motion: reduce){.lic-groups .lg-box,.lic-groups .g-thumbs button,.lic-groups .g-thumbs button::after{transition:none}}
/* v10v About section: centred neumorphic panel (clear of Bob at the bottom-right), three pressable sub-tabs */
.about{position:relative;max-width:min(1040px,calc(100% - 300px));margin:20px auto 0;padding:26px 34px 34px;border-radius:22px;background:#f2eee6;
  box-shadow:-12px -12px 24px #ffffff, 12px 12px 24px #d5ccbd}
.ab-tabs{display:flex;justify-content:center;gap:14px;margin:0 0 28px}
.ab-tab{padding:10px 20px;border:0;border-radius:999px;background:#f2eee6;font:700 14px/1 'Zilla Slab',serif;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);cursor:pointer;
  box-shadow:-4px -4px 8px #ffffff, 4px 4px 8px #d8cfc0;transition:box-shadow .2s ease,color .2s}
.ab-tab:hover{color:var(--ink)}
.ab-tab[aria-selected="true"]{color:var(--ink);box-shadow:inset 3px 3px 6px #d3cab9, inset -3px -3px 6px #ffffff}
.ab-tab:focus-visible{outline:2px solid #6c63a8;outline-offset:3px}
.ab-panel{display:grid;grid-template-columns:minmax(200px,300px) minmax(0,1fr);gap:40px;align-items:start;animation:abIn .3s ease}
.ab-panel[hidden]{display:none}
@keyframes abIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ab-photo{margin:0;padding:10px;border-radius:18px;background:#f2eee6;box-shadow:inset 4px 4px 9px #d3cab9, inset -4px -4px 9px #ffffff}
.ab-photo img{display:block;width:100%;height:auto;border-radius:12px}
.ab-text h2{font-size:32px;line-height:1.1;margin:4px 0 14px}
.ab-text p{margin:0 0 20px;font:400 16px/1.6 'Zilla Slab',serif;color:var(--ink-2)}
.ab-text .foot-actions{gap:20px}
#abP2,#abP3{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.ab-h{margin:0 0 6px;font:700 22px/1.2 'Zilla Slab',serif;color:var(--ink)}
.ab-meta{margin:0 0 16px;font:400 14px/1.5 'Zilla Slab',serif;color:var(--ink-3);letter-spacing:.02em}
.ab-list{margin:0;padding-left:1.1em;font:400 15.5px/1.6 'Zilla Slab',serif;color:var(--ink-2)}
.ab-list li{margin-bottom:8px}
.ab-gpa{display:inline-block;margin:0;padding:8px 16px;border-radius:999px;font:700 14px/1 'Zilla Slab',serif;letter-spacing:.06em;box-shadow:inset 3px 3px 6px #d3cab9, inset -3px -3px 6px #ffffff}
.ab-k{margin:0 0 10px;font:700 13px/1 'Zilla Slab',serif;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.ab-k + .ab-card,.ab-card + .ab-k{margin-top:0}
.ab-side .ab-k:not(:first-child){margin-top:22px}
.ab-cards{display:grid;gap:12px}
.ab-card{display:flex;flex-direction:column;gap:3px;padding:12px 16px;border-radius:12px;background:#f2eee6;box-shadow:-4px -4px 8px #ffffff, 4px 4px 8px #d8cfc0;font:400 13.5px/1.35 'Zilla Slab',serif;color:var(--ink-3)}
.ab-card b{font:400 17px/1.2 var(--display);color:var(--ink)}
.ab-wide b{font:700 15px/1.3 'Zilla Slab',serif}
.ab-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none}
.ab-chips li{padding:7px 13px;border-radius:999px;font:700 13px/1 'Zilla Slab',serif;color:var(--ink-2);box-shadow:-3px -3px 6px #ffffff, 3px 3px 6px #d8cfc0}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.about{max-width:none;margin:10px 0 0;padding:20px 18px 24px}.ab-panel,#abP2,#abP3{grid-template-columns:1fr;gap:24px}.ab-photo{max-width:300px;margin:0 auto}.ab-tabs{flex-wrap:wrap;gap:10px}}
@media (prefers-reduced-motion: reduce){.ab-panel{animation:none}.ab-tab{transition:none}}
/* v10w About: airier — photo ~2/3, narrower text, text ~-17%, FIT + software logos */
.about{max-width:min(900px,calc(100% - 300px));padding:22px 32px 28px}
.ab-tabs{margin-bottom:22px}.ab-tab{font-size:12px;padding:9px 17px}
.ab-panel{grid-template-columns:200px minmax(0,500px);justify-content:center;gap:36px;align-items:center}
.ab-photo{padding:8px;border-radius:16px}.ab-photo img{border-radius:10px}
.ab-text h2{font-size:26px;margin-bottom:10px}
.ab-text p{font-size:13.5px;line-height:1.6;margin-bottom:16px}
.ab-text .mail{font-size:12px}.ab-text .btn-contact{font-size:13px}
#abP2,#abP3{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start}
.ab-h{font-size:18px}.ab-meta{font-size:12px}.ab-list{font-size:13px}.ab-gpa{font-size:12px}
.ab-k{font-size:11px}.ab-card{font-size:11.5px;padding:10px 14px}.ab-card b{font-size:14.5px}.ab-wide b{font-size:13px}
.ab-school{display:flex;align-items:center;gap:10px}.ab-school img{width:32px;height:32px;flex:none}
.ab-chips li{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:6px 11px 6px 8px}
.ab-chips img{width:15px;height:15px;border-radius:3px;flex:none}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.ab-panel{grid-template-columns:1fr}.ab-photo{max-width:200px}}
/* v10x hand-drawn brand logo + About heading */
.brand-img{display:block;width:min(170px,100%);height:auto;margin:4px auto 10px;transition:transform .25s var(--ease)}
.brand:hover .brand-img{transform:translateY(-2px) rotate(-1.5deg)}
.ab-hi{margin:2px 0 14px;line-height:0}
.ab-hi img{display:block;width:100%;max-width:420px;height:auto}
/* v10y: active category = bookmark tab sticking out past the panel's right edge */
@media (min-width: 861px) and (hover: hover), (min-width: 861px) and (pointer: fine), (min-width: 861px) and (pointer: none){
  .rail-frame{overflow:visible}
  .tab,.tab-proj{position:relative;margin-right:0;transition:margin-right .35s var(--ease),box-shadow .3s ease,transform .35s var(--ease)}
  .tab-proj{width:auto}
  .tab[aria-pressed="true"],.tab-proj.on{margin-right:-42px;z-index:2;transform:translateY(-1px);
    box-shadow:-6px -6px 12px #ffffff, 8px 9px 16px #c9bfac, 2px 2px 4px #d8cfc0}
  .tab[aria-pressed="true"]{background:linear-gradient(90deg,var(--c) 0%,color-mix(in srgb,var(--c) 55%,#f2eee6) 45%,#f6f2ea 85%)}
  .tab[aria-pressed="true"]:hover,.tab-proj.on:hover{box-shadow:-6px -6px 12px #ffffff, 8px 9px 16px #c9bfac, 2px 2px 4px #d8cfc0}
  .tab-proj.on{filter:none}
  .rail-mini .tab[aria-pressed="true"],.rail-mini .tab-proj.on{margin-right:0}
}
@media (min-width: 861px) and (hover: hover) and (max-height: 700px), (min-width: 861px) and (pointer: fine) and (max-height: 700px), (min-width: 861px) and (pointer: none) and (max-height: 700px){.rail-frame{overflow-y:auto}.tab[aria-pressed="true"],.tab-proj.on{margin-right:-8px}}
@media (prefers-reduced-motion: reduce){.tab,.tab-proj{transition:none}}
/* v10z: LICENSED ART group — project boxes fold away, unfold on hover/focus/tap/active page, mind-map branch lines */
.lic-grp{display:flex;flex-direction:column;gap:6px;padding-bottom:4px}
.lic-kids{display:grid;grid-template-rows:0fr;transition:grid-template-rows .4s var(--ease)}
.lic-kin{min-height:0;overflow:hidden;margin:-4px -60px -10px -8px;padding:4px 60px 10px 8px}
.lic-grp:hover .lic-kids,.lic-grp:focus-within .lic-kids,.lic-grp.open .lic-kids,.lic-grp.act .lic-kids{grid-template-rows:1fr}
.lk{position:relative;padding-left:22px;opacity:0;transform:translateY(-6px);transition:opacity .25s ease,transform .3s var(--ease)}
.lic-grp:hover .lk,.lic-grp:focus-within .lk,.lic-grp.open .lk,.lic-grp.act .lk{opacity:1;transform:none}
.lic-grp:hover .lk:nth-child(2),.lic-grp.open .lk:nth-child(2){transition-delay:.05s}
.lic-grp:hover .lk:nth-child(3),.lic-grp.open .lk:nth-child(3){transition-delay:.1s}
.lk .tab-proj{margin-top:8px}
/* elbow: trunk from above down to the box's middle, rounded turn into the box */
.lk::before{content:"";position:absolute;left:8px;top:-2px;height:calc(50% + 6px);width:12px;border-left:2px solid #cdbfa8;border-bottom:2px solid #cdbfa8;border-bottom-left-radius:9px;
  transform-origin:50% 0;transform:scaleY(0);transition:transform .35s var(--ease)}
.lk:not(:last-child)::after{content:"";position:absolute;left:8px;top:50%;bottom:-2px;border-left:2px solid #cdbfa8;transform-origin:50% 0;transform:scaleY(0);transition:transform .25s var(--ease) .15s}
.lk:first-child::before{top:-8px;height:calc(50% + 12px)}
.lic-grp:hover .lk::before,.lic-grp:hover .lk::after,.lic-grp:focus-within .lk::before,.lic-grp:focus-within .lk::after,
.lic-grp.open .lk::before,.lic-grp.open .lk::after,.lic-grp.act .lk::before,.lic-grp.act .lk::after{transform:none}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.lic-grp,.lic-kids,.lic-kin{display:contents}.lk{display:contents}.lk::before,.lk::after{display:none}}
@media (prefers-reduced-motion: reduce){.lic-kids,.lk,.lk::before,.lk::after{transition:none}}
.lk .tab-proj{width:100%;transition:width .35s var(--ease),box-shadow .3s ease,transform .35s var(--ease)}
@media (min-width: 861px) and (hover: hover), (min-width: 861px) and (pointer: fine), (min-width: 861px) and (pointer: none){.lk .tab-proj.on{width:calc(100% + 42px);margin-right:0}}
@media (min-width: 861px) and (hover: hover) and (max-height: 700px), (min-width: 861px) and (pointer: fine) and (max-height: 700px), (min-width: 861px) and (pointer: none) and (max-height: 700px){.lk .tab-proj.on{width:calc(100% + 8px)}}
.lk::before,.lk:not(:last-child)::after{border-color:#c4b49b}
/* v11a licensed project info panel (first in the intro column) */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pj-info{padding:10px 10px 14px;border-radius:16px;background:#f2eee6;box-shadow:-7px -7px 14px #ffffff, 7px 7px 14px #d5ccbd}
.pj-ban{position:relative;display:grid;place-items:center;height:clamp(64px,10vh,96px);border-radius:10px;background-size:cover;background-position:50% 40%;
  box-shadow:inset 2px 2px 6px rgba(40,30,20,.35)}
.pj-ban::before{content:"";position:absolute;inset:0;border-radius:inherit;background:rgba(30,24,34,.28)}
.pj-ban img{position:relative;max-height:72%;max-width:62%;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}
.pj-type{margin:10px 4px 4px;font:700 11px/1 'Zilla Slab',serif;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-3)}
.pj-txt{margin:0 4px;font:400 13px/1.5 'Zilla Slab',serif;color:var(--ink-2)}
.g-intro .pj-info + .label{margin-top:.8rem}
/* compact group boxes under the info panel */
.lic-groups .lg-box{margin-top:.7rem;padding:8px 10px 10px}
.lic-groups .g-thumbs{--rowH:clamp(34px,5vh,50px)}
.lic-groups .lg-many .g-thumbs{--rowH:clamp(24px,3.4vh,34px)}
@media (max-height: 760px){.pj-ban{height:54px}.pj-txt{font-size:12px;line-height:1.4}.pj-info{padding:8px 8px 10px}}
.pj-ban img{position:absolute;left:50%;top:50%;translate:-50% -50%;width:auto;height:auto;max-height:76%;max-width:62%}
/* v11c Meowy welcome popup */
.meowy-hi{position:fixed;left:50%;top:50%;z-index:200;padding:26px 40px 22px;border-radius:22px;background:#f2eee6;text-align:center;pointer-events:none;
  box-shadow:-12px -12px 24px #ffffff, 12px 12px 24px #cfc5b3;opacity:0;transform:translate(-50%,-44%) scale(.92);transition:opacity .45s ease,transform .5s cubic-bezier(.34,1.56,.64,1)}
.meowy-hi.in{opacity:1;transform:translate(-50%,-50%) scale(1)}
.meowy-hi.out{opacity:0;transform:translate(-50%,-50%) scale(.98);transition:opacity .6s ease,transform .6s ease}
.meowy-hi .mh-1{margin:0;font:700 26px/1.2 'Zilla Slab',serif;color:var(--ink)}
.meowy-hi .mh-2{margin:8px 0 0;font:400 15px/1 'Zilla Slab',serif;color:var(--ink-3);font-style:italic}
@media (prefers-reduced-motion: reduce){.meowy-hi,.meowy-hi.out{transition:opacity .2s}}

/* v11h multiply edge: the panel's warm drop shadow moves to .rail-shade (fixed, under the rail) with
   mix-blend-mode:multiply, so over the artwork it reads as a beige Multiply tint instead of a milky haze.
   #e0dbd2 = #d5ccbd / the page beige per channel, so over plain beige the result is pixel-identical to before.
   The frame keeps its white highlight + everything else; buttons are untouched. Desktop layout only. */
.rail-shade{display:none}
@media (min-width: 861px) and (hover: hover), (min-width: 861px) and (pointer: fine), (min-width: 861px) and (pointer: none){
  .has-shade .rail-frame{box-shadow:-10px -10px 20px #ffffff}
  .rail-shade{display:block;position:fixed;z-index:19;pointer-events:none;border-radius:16px;
    box-shadow:10px 10px 20px #e0dbd2;mix-blend-mode:multiply;transition:transform .45s var(--ease)}
  .rail-mini .rail-shade{transform:translate3d(calc(var(--rail) * -.8),0,0)}
  .ov-dock .rail-shade{transform:translate3d(calc(var(--rail) * -1 - 60px),0,0)}
}
@media (prefers-reduced-motion: reduce){.rail-shade{transition:none}}

/* v11i "Write me a letter" contact form (About Me tab, under the intro) — neumorphic letter box, inset fields */
.letter{grid-column:1 / -1;width:100%;max-width:736px;justify-self:center;margin:6px 0 0;padding:22px 26px 20px;border-radius:18px;background:#f2eee6;
  box-shadow:-6px -6px 14px #ffffff, 6px 6px 14px #d8cfc0;font-family:'Zilla Slab',serif;color:var(--ink-2)}
.lt-head{display:flex;align-items:center;gap:14px;margin:0 0 14px}
.lt-icon,.lt-env{width:28px;height:20px;flex:none;fill:#f7f4ee;stroke:var(--ink-3);stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round}
.lt-title{margin:0;font:700 17px/1.2 'Zilla Slab',serif;color:var(--ink);letter-spacing:.02em}
.lt-sub{margin:2px 0 0;font:400 12.5px/1.4 'Zilla Slab',serif;color:var(--ink-3)}
.lt-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.lt-f{position:relative;display:flex;flex-direction:column;margin:0 0 10px}
.lt-f label{margin:0 0 5px 4px;font:700 11px/1 'Zilla Slab',serif;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
.lt-f input,.lt-f textarea{width:100%;box-sizing:border-box;padding:10px 14px;border:0;border-radius:12px;background:#f2eee6;color:var(--ink);
  font:400 14px/1.45 'Zilla Slab',serif;box-shadow:inset 3px 3px 6px #d3cab9, inset -3px -3px 6px #ffffff;outline:none;transition:box-shadow .2s}
.lt-f textarea{resize:vertical;min-height:104px;max-height:320px}
.lt-f input:focus-visible,.lt-f textarea:focus-visible{box-shadow:inset 3px 3px 6px #d3cab9, inset -3px -3px 6px #ffffff, 0 0 0 2px #6c63a8}
.lt-f [aria-invalid="true"]{box-shadow:inset 3px 3px 6px #d3cab9, inset -3px -3px 6px #ffffff, 0 0 0 1.5px #b4543c}
.lt-err{min-height:0;margin:4px 0 0 4px;font:400 12px/1.3 'Zilla Slab',serif;color:#a2442e}
.lt-err:empty{display:none}
.lt-count{position:absolute;right:10px;top:0;font:400 11px/1 'Zilla Slab',serif;color:var(--ink-3);opacity:.8}
.lt-count.over{color:#a2442e;opacity:1}
.lt-hp{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.lt-ts:empty{display:none}.lt-ts{margin:2px 0 8px}
.lt-foot{display:flex;align-items:center;justify-content:flex-end;gap:16px;margin-top:4px}
.lt-status{flex:1;margin:0;font:400 13px/1.4 'Zilla Slab',serif;color:var(--ink-2);text-align:right}
.lt-status.err{color:#a2442e}.lt-status.ok{color:#3f6b4a}
.lt-send{position:relative;display:inline-flex;align-items:center;gap:9px;padding:10px 22px 10px 24px;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(180deg,#f8f5ef,#ebe5da);color:var(--ink);font:700 13px/1 'Zilla Slab',serif;letter-spacing:.12em;text-transform:uppercase;
  box-shadow:-4px -4px 9px #ffffff, 4px 4px 10px #cfc5b3;transition:box-shadow .15s, transform .15s}
.lt-send:hover{box-shadow:-3px -3px 7px #ffffff, 3px 3px 8px #cfc5b3}
.lt-send:active{transform:translateY(1px);box-shadow:inset 2px 2px 5px #d3cab9, inset -2px -2px 5px #ffffff}
.lt-send:focus-visible{outline:2px solid #6c63a8;outline-offset:3px}
.lt-send[disabled]{cursor:progress;opacity:.75}
.lt-send .lt-env{width:20px;height:14px;transition:transform .2s}
.letter.busy .lt-env{animation:ltWobble .6s ease-in-out infinite alternate}
.letter.sent .lt-env{animation:ltFly .95s cubic-bezier(.45,0,.3,1) forwards}
@keyframes ltWobble{from{transform:translate3d(0,0,0) rotate(-6deg)}to{transform:translate3d(0,-2px,0) rotate(6deg)}}
@keyframes ltFly{0%{transform:none;opacity:1}25%{transform:translate3d(-6px,3px,0) rotate(-8deg) scale(1.05)}
  100%{transform:translate3d(170px,-120px,0) rotate(18deg) scale(.55);opacity:0}}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.letter{padding:18px 16px}.lt-row{grid-template-columns:1fr;gap:0}.lt-foot{flex-direction:column-reverse;align-items:stretch}.lt-status{text-align:center}.lt-send{justify-content:center}}
@media (prefers-reduced-motion: reduce){.letter.busy .lt-env,.letter.sent .lt-env{animation:none}.lt-send{transition:none}}
/* v11i: the v10w desktop sizing of .about (max-width: 100% - 300px) also hit phones — restore the full-width layout there */
@media (max-width: 860px), (hover: none) and (pointer: coarse){.about{max-width:none;margin:10px 0 0;padding:20px 16px 24px}.letter{max-width:none}}
/* v11j Game Art group boxes: four groups + heading must fit above the strip — one thumbnail row per group */
.cat-groups .welcome{display:none}
.cat-groups .lg-box{margin-top:.55rem;padding:7px 10px 9px}
.cat-groups .lg-box .g-thumbs{--rowH:clamp(30px,4.6vh,44px);flex-wrap:nowrap;align-items:center;gap:6px;margin-top:.45rem}
.cat-groups .hint{margin-top:.6rem}
@media (max-height: 760px){.cat-groups .lg-box .g-thumbs{--rowH:28px}.cat-groups .lg-box{margin-top:.4rem;padding:5px 9px 7px}}

/* v11l RESUME DOWNLOAD tile, right of the contact tiles (same tile size / neumorphic lift; a redder take on the Illustrations pink) */
.metro .tile-resume{width:calc(var(--T) * .74);height:var(--T);box-sizing:border-box;border:0;border-radius:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
  text-decoration:none;color:#fff;background:linear-gradient(160deg,#f09d96 0%,#e57f78 55%,#d96b65 100%)}
.metro .tile-resume::after{display:none}
.metro .tile-resume svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;margin-bottom:2px}
.tile-resume .tr-t{font:700 11.5px/1 'Zilla Slab',serif;letter-spacing:.08em;text-transform:uppercase}
.tile-resume .tr-s{font:400 9.5px/1 "Zilla Slab",serif;letter-spacing:.05em;text-transform:uppercase;opacity:.92}
.metro .tile-resume:hover{transform:translateX(2px);background:linear-gradient(160deg,#f3aaa3 0%,#e98a83 55%,#de756f 100%)}
.metro .tile-resume:hover svg{animation:tabBounce .42s ease-out}
.metro .tile-resume:focus-visible{outline:2px solid #6c63a8;outline-offset:3px}
.metro .tile-resume:active{transform:translateY(1px);box-shadow:inset 2px 2px 5px rgba(120,40,35,.35), inset -2px -2px 5px rgba(255,255,255,.35)!important}
@media (max-height: 680px){.metro .tile-resume svg{width:18px;height:18px}.tile-resume .tr-t{font-size:10px}.tile-resume .tr-s{font-size:8.5px}}
@media (prefers-reduced-motion: reduce){.metro .tile-resume:hover svg{animation:none}}

/* v11m group boxes: colour dot on the box's left edge before the title + sidebar-style count (big number, small "works") */
.lic-groups .lg-box{--dc:#c9bfae}
.lic-groups .lg-box[data-g="splash"]{--dc:#8ec3db}
.lic-groups .lg-box[data-g="char"]{--dc:#9ccf9b}
.lic-groups .lg-box[data-g="monster"]{--dc:#eeb2bf}
.lic-groups .lg-box[data-g="env"]{--dc:#ebc77f}
.lic-groups .lg-box[data-g="promo"]{--dc:#c3b3e3}
.lic-groups .lg-h{align-items:center}
.lic-groups .lg-name{display:flex;align-items:center;min-width:0}
.lic-groups .lg-dot{position:absolute;left:-6px;width:12px;height:12px;border-radius:50%;background:var(--dc);
  box-shadow:-1px -1px 2px #ffffff, 1px 1px 3px rgba(150,130,100,.45), inset 1px 1px 1px rgba(255,255,255,.5);transition:transform .25s ease}
.lic-groups .lg-box:not(.on) .lg-dot{opacity:.75}
.lic-groups .lg-box.on .lg-dot{transform:scale(1.15)}
.lic-groups .lg-n{flex:none;display:flex;flex-direction:column;align-items:center;min-width:26px;line-height:1;color:var(--ink-3);transition:color .2s}
.lic-groups .lg-n b{display:block;font:400 22px/1 var(--display);color:inherit}
.lic-groups .lg-n small{display:block;margin-top:1px;font:400 9.5px/1 var(--sans);letter-spacing:.04em;color:var(--ink-3)}
.lic-groups .lg-box.on .lg-n{color:var(--ink)}
.lic-groups .lg-box .g-thumbs{margin-top:.25rem}
@media (max-height: 760px){.lic-groups .lg-n b{font-size:18px}.lic-groups .lg-n small{font-size:8.5px}}
@media (prefers-reduced-motion: reduce){.lic-groups .lg-dot{transition:none}}
/* v11n dots inside padding + active gradient in parent category colour */
.lic-groups .lg-dot{position:static;display:inline-block;vertical-align:middle;margin:-2px 7px 0 0;flex:none;width:10px;height:10px}
.lic-groups .lg-box.on .lg-dot{transform:scale(1.2)}
.lic-groups .lg-box{isolation:isolate}
.lic-groups .lg-box::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;opacity:0;transition:opacity .3s ease;
  background:linear-gradient(90deg,color-mix(in srgb,var(--gc,#c9bfae) 42%,#f2eee6) 0%,color-mix(in srgb,var(--gc,#c9bfae) 20%,#f2eee6) 50%,#f2eee6 92%)}
.lic-groups:not(.cat-groups) .lg-box::before{background:linear-gradient(90deg,color-mix(in srgb,var(--gc,#c9bfae) 28%,#f2eee6) 0%,color-mix(in srgb,var(--gc,#c9bfae) 12%,#f2eee6) 50%,#f2eee6 92%)}
.lic-groups .lg-box.on::before{opacity:1}
@media (prefers-reduced-motion: reduce){.lic-groups .lg-box::before{transition:none}}

/* v11o flat dots */
.lic-groups .lg-dot{box-shadow:none}
/* v11p Magic Antiques intro panel on Game Art */
.pj-ma .pj-ban{background-image:url(images/ui/ma-ban.webp);background-position:50% 50%}
.pj-ma .pj-ban::before{display:none}
.cat-groups .pj-info{margin-bottom:.2rem}
.pj-ma .pj-ban{height:clamp(72px,11vh,104px);background-size:cover}
@media (max-height: 760px){.pj-ma .pj-ban{height:70px}.cat-groups .pj-info .pj-txt{font-size:11.5px;line-height:1.35}}
.pj-ma .pj-ban,.cat-groups .pj-ma .pj-ban{height:auto;aspect-ratio:720/274;background-size:cover}
@media (max-height: 760px){.cat-groups .pj-ma .pj-type{margin-top:7px}.cat-groups .pj-info.pj-ma{padding-bottom:8px}}
/* v11q official Magic Antiques logo on a darkened key-art banner */
.pj-ma .pj-ban,.cat-groups .pj-ma .pj-ban{aspect-ratio:auto;height:clamp(84px,12vh,112px);background-position:50% 45%}
.pj-ma .pj-ban::before{display:block;background:linear-gradient(180deg,rgba(18,14,12,.62),rgba(18,14,12,.5))}
.pj-ma .pj-ban::after{content:"";position:absolute;inset:7% 6%;background:url(images/ui/ma-logo.webp) center/contain no-repeat;filter:drop-shadow(0 1px 3px rgba(0,0,0,.55))}
@media (max-height: 760px){.pj-ma .pj-ban,.cat-groups .pj-ma .pj-ban{height:80px}}
/* v11r inline process thumbnails in the caption row (right-aligned, opposite the title) */
.card figcaption{align-items:center;min-width:0}
.card figcaption > span:first-child{min-width:0}
.cap-proc{flex:none;display:flex;gap:6px;align-items:center;max-width:62%;overflow:hidden;padding:3px}
.cp-t{flex:none;height:clamp(26px,4vh,40px);padding:2px;border:0;border-radius:6px;background:#f2eee6;cursor:pointer;
  box-shadow:-2px -2px 4px #ffffff, 2px 2px 5px #d5ccbd;transition:transform .18s ease,box-shadow .18s ease}
.cp-t img{display:block;height:100%;width:auto;border-radius:4px}
.cp-t:hover{transform:translateY(-1px)}
.cp-t:active{box-shadow:inset 2px 2px 4px #d5ccbd, inset -2px -2px 4px #ffffff;transform:none}
.cp-t:focus-visible{outline:2px solid #002FA7;outline-offset:2px}
.cp-more{min-width:34px;padding:0 8px;font:600 12px/1 'Zilla Slab',serif;color:var(--ink-2)}
.card.half .cp-t{height:22px}
@media (prefers-reduced-motion: reduce){.cp-t{transition:none}}
.card.cut .card-img{background:none;box-shadow:none}
.card.cut .card-img img{filter:drop-shadow(3px 5px 8px rgba(120,100,70,.28))}
/* v11s process thumbs 150% */
.cp-t{height:clamp(39px,6vh,60px)}
.card.half .cp-t{height:33px}
.cp-more-s{display:none}
@media (max-height: 800px){
  .card.half .cp-t{height:30px}
  .card.half .cp-t:nth-child(n+3):not(.cp-more-s){display:none}
  .card.half .cp-more-s{display:block}
}
/* v11t licensed works at the back of the regular categories: blurred stand-ins (tiny public placeholder, never the original) */
.card.locked .card-img{overflow:hidden;background:#d9d2c5}
.card.locked .card-img img{filter:blur(10px) saturate(.9);transform:scale(1.12)}
.card.locked .lk{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;pointer-events:none;
  background:radial-gradient(closest-side,rgba(242,238,230,.55),rgba(242,238,230,0))}
.card.locked .lk img{width:26px;height:40px;image-rendering:pixelated;filter:none;transform:none;opacity:1;position:static}
.card.locked .lk b{font:400 clamp(16px,2.2vh,22px)/1 var(--display);color:var(--ink);letter-spacing:.02em}
.card.locked .lk small{font:700 10.5px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
.card.half.locked .lk b{font-size:15px}
.card.locked .card-hit{cursor:pointer}
.card.locked .card-hit:hover .lk img{transform:translateY(-2px)}
.lic-sep{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;align-self:center;width:clamp(180px,16vw,240px);padding:26px 18px;text-align:center;
  border-radius:18px;background:#f2eee6;box-shadow:-7px -7px 14px #ffffff,7px 7px 14px #d5ccbd}
.lic-sep .ls-lock{width:26px;height:40px;image-rendering:pixelated}
.lic-sep h2{margin:0;font-size:24px}.lic-sep .label{margin:0}
.rg-t.locked img{filter:blur(4px);transform:scale(1.1)}
.rg-t.locked .rg-b{overflow:hidden}
.lic-groups .lg-box[data-g="lic"]{--dc:#8fa6c9}
.lic-groups .lg-lic .g-thumbs{display:none}
.lic-groups .lg-lic{padding-top:6px;padding-bottom:6px}
.lg-tag{display:inline-flex;align-items:center;gap:4px;margin-left:8px;padding:2px 7px;border-radius:999px;font:700 9.5px/1.3 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3);
  box-shadow:inset 1px 1px 3px #d3cab9,inset -1px -1px 3px #fff;vertical-align:middle}
.lg-tag img{image-rendering:pixelated}
@media (prefers-reduced-motion: reduce){.card.locked .card-hit:hover .lk img{transform:none}}
.card.locked .card-img .lk{opacity:1;z-index:2;visibility:visible}
/* v11v: soft paper fade under the progress flag + reachable group list */
.g-flag::before{content:"";position:absolute;left:-70px;right:-70px;top:-30px;bottom:-14px;z-index:-1;pointer-events:none;
  background:radial-gradient(closest-side,#f2eee6 0,#f2eee6 58%,rgba(242,238,230,.8) 74%,rgba(242,238,230,0) 100%)}
.g-note.cat-groups{max-height:calc(100vh - 226px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#cfc6b6 transparent}
.g-note.cat-groups{justify-content:flex-start;padding:8px 10px 14px;margin:0 -10px}
.g-note.cat-groups>:first-child{margin-top:auto}.g-note.cat-groups>:last-child{margin-bottom:auto}
.g-note.cat-groups{-webkit-mask-image:linear-gradient(#000 calc(100% - 22px),transparent);mask-image:linear-gradient(#000 calc(100% - 22px),transparent)}
/* v11w: Visitor / Art Director occupancy-style switch */
.mode-tag.mode-sw{display:flex;align-items:stretch;gap:0;width:auto;min-width:0;height:30px;padding:3px;line-height:normal;border:0;border-radius:15px;
  background:#f2eee6;box-shadow:inset 2px 2px 5px rgba(160,148,128,.45),inset -2px -2px 5px #fff;cursor:default;isolation:isolate}
.mode-tag.mode-sw:hover{transform:translateX(-50%)}
.ms-knob{position:absolute;z-index:-1;top:3px;bottom:3px;left:3px;width:var(--kw,72px);border-radius:12px;background:#f2eee6;
  box-shadow:2px 2px 5px rgba(160,148,128,.5),-2px -2px 5px #fff;transform:translateX(0);transition:transform .22s var(--ease),width .22s var(--ease)}
.mode-sw.ad .ms-knob{transform:translateX(var(--kx,72px));width:var(--kw2,108px)}
.ms-seg{display:flex;align-items:center;gap:6px;padding:0 12px;border:0;background:none;border-radius:12px;font:600 11px/1 'Zilla Slab',var(--sans);
  letter-spacing:.06em;text-transform:uppercase;color:#4a4238;cursor:pointer;transition:color .2s,opacity .2s}
.ms-seg[aria-checked=false]{opacity:.45}
.ms-seg[aria-checked=false]:hover{opacity:.8}
.ms-seg[aria-checked=true]{cursor:default}
.ms-led{width:7px;height:7px;border-radius:50%;background:#b9b1a3;box-shadow:inset 1px 1px 1px rgba(0,0,0,.25);transition:background .2s,box-shadow .2s}
.ms-seg[aria-checked=true] .ms-led{background:#3fd36a;box-shadow:0 0 4px 1px rgba(63,211,106,.75),inset -1px -1px 1px rgba(0,80,20,.35)}
.ms-seg:focus-visible{outline:2px solid #6c63a8;outline-offset:1px}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.mode-tag.mode-sw{height:26px}.mode-tag.mode-sw:hover{transform:none}.ms-seg{padding:0 9px;font-size:10px}}
@media (prefers-reduced-motion:reduce){.ms-knob,.ms-seg,.ms-led{transition:none}}
/* v11x: flag fade hugs the bar only */
.g-flag::before{left:-6px;right:-6px;top:-4px;bottom:-2px;background:radial-gradient(farthest-side,#f2eee6 0,#f2eee6 70%,rgba(242,238,230,0) 100%)}
/* v11x: selectable intro panel (all works) — same states as the group boxes */
.lg-all{position:relative;isolation:isolate;cursor:pointer;box-shadow:inset 3px 3px 7px #d6cdbd,inset -3px -3px 7px #fff;transition:box-shadow .25s ease}
.lg-all.on{box-shadow:-7px -7px 14px #fff,7px 7px 14px #d5ccbd}
.lg-all::before{content:"";position:absolute;inset:0;border-radius:inherit;z-index:-1;pointer-events:none;opacity:0;transition:opacity .3s ease;
  background:linear-gradient(90deg,color-mix(in srgb,var(--gc,#c9bfae) 42%,#f2eee6) 0%,color-mix(in srgb,var(--gc,#c9bfae) 20%,#f2eee6) 50%,#f2eee6 92%)}
.lg-all.on::before{opacity:1}
.lg-all:not(.on) .pj-ban{filter:saturate(.75);opacity:.85}
.lg-all:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
@media (prefers-reduced-motion:reduce){.lg-all,.lg-all::before{transition:none}}
.g-flag::before{top:auto;height:44px;bottom:0}
/* v11y: CRT + resume merged into one button right of the socials */
.metro .tile-resume.tile-resume{width:calc(var(--T) * 1.74);flex-direction:row;gap:4px;padding:0 10px 0 6px;justify-content:space-between}
.tile-resume .crt{position:relative;flex:none;width:auto;height:auto;background:none;line-height:0;pointer-events:none}
.tile-resume .crt-cv{position:relative;display:block;filter:drop-shadow(1px 2px 0 rgba(120,40,35,.25))}
.tile-resume .tr-txt{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1}
.tile-resume .tr-t,.tile-resume .tr-t{font-size:15px}
.tile-resume .tr-s,.tile-resume .tr-s{font-size:11.5px}
@media (max-height:760px){.tile-resume .tr-t,.tile-resume .tr-t{font-size:13px}.tile-resume .tr-s,.tile-resume .tr-s{font-size:10px}.tile-resume .tr-txt svg{width:16px;height:16px}}
.crt-row.hot .mail-b{color:inherit}
/* v11z ABOUT ME button (below the email pill) */
.tile-about{width:100%;height:28px;margin-top:6px;border:0;border-radius:10px;background:#f2eee6;box-shadow:-4px -4px 9px #fff,4px 4px 9px #d5ccbd;
  font:700 12px/1 'Zilla Slab',serif;letter-spacing:.14em;text-transform:uppercase;color:#4a4238;transition:box-shadow .2s ease,color .2s}
.tile-about::before,.tile-about::after{display:none}
.tile-about:hover{color:#1f1a15;box-shadow:-5px -5px 11px #fff,5px 5px 11px #cfc5b4}
.tile-about:active{box-shadow:inset 3px 3px 6px #d6cdbd,inset -3px -3px 6px #fff}
.tile-about:focus-visible{outline:2px solid #6c63a8;outline-offset:2px}
@media (max-height:760px){.tile-about{height:24px;margin-top:4px;font-size:11px}}
@media (prefers-reduced-motion:reduce){.tile-about{transition:none}}
/* v12a resume button: beige neumorphic like the other tiles + red badge dot */
.metro .tile-resume.tile-resume{overflow:visible;color:#3f382f;background:#f2eee6;border-radius:10px;box-shadow:-4px -4px 8px #fff,4px 4px 8px #d8cfc0}
.metro .tile-resume::before,.metro .tile-resume::after{display:none}
.metro .tile-resume.tile-resume:hover{transform:none;background:#f2eee6;box-shadow:inset 3px 3px 6px #d3cab9,inset -3px -3px 6px #fff}
.metro .tile-resume.tile-resume:active{box-shadow:inset 4px 4px 8px #cfc5b4,inset -3px -3px 6px #fff!important}
.tile-resume .tr-s{opacity:.7}
.tile-resume .crt-cv{filter:drop-shadow(1px 2px 0 rgba(120,100,70,.18))}
.tr-dot{position:absolute;top:-4px;right:-4px;width:11px;height:11px;border-radius:50%;background:#e2483f;border:2px solid #f2eee6;box-shadow:0 1px 3px rgba(120,30,25,.35);pointer-events:none;z-index:3}
/* v12b: one neumorphic container for the whole Contact block; email + About me match the icon/resume row width */
.rail-contact .crt-row{width:fit-content;max-width:100%;margin:0 auto;padding:8px 10px 12px;box-sizing:border-box;align-items:stretch;border-radius:16px;background:#f2eee6;
  box-shadow:-6px -6px 12px #fff,6px 6px 12px #d6cdbd}
.rail-contact .crt-row .crt-kicker{align-self:center}
.rail-contact .crt-row .metro{align-self:stretch}
.rail-contact .crt-row .tile-mail,.rail-contact .crt-row .tile-about{width:auto!important;align-self:stretch;margin-left:0;margin-right:0}
.rail-contact .crt-row{max-width:none;padding-left:8px;padding-right:8px}
.g-note.cat-groups,.lic-groups{overscroll-behavior:contain}
/* v12e production: computer-only tile (no resume download) — same footprint, centred, not a link */
.metro .tile-resume.tile-pc{justify-content:center;padding:0;cursor:default}
.metro .tile-resume.tile-pc:hover{box-shadow:-4px -4px 8px #fff,4px 4px 8px #d8cfc0}

/* ================= v13a touch layouts =================
   Everything below is scoped to classes main.js only sets on portrait phones / portrait tablets (html.m-cover,
   .m-phone, .m-tab, .m-anyphone) or to touch-only media queries, so desktop rendering is unchanged. */
.m-top,.m-thumbs,.m-bar,.m-sheet,.m-scrim,.rg-pv,.m-dsheet{display:none}
html.m-anyphone #intro{display:none!important}
html.m-anyphone .xmb{display:none!important}
html.m-anyphone body{background:linear-gradient(170deg,#f5f1ea 0%,#f2eee6 40%,#ebe3d5 100%) fixed}
@media (hover:none) and (pointer:coarse){
  input,textarea,select{font-size:16px!important}
  .tab:active,.m-chip:active,.m-th:active,.m-bar button:active,.lg-box:active,.m-intro summary:active{transform:scale(.97)}
}
:root{--nmS:4px 4px 10px rgba(150,135,110,.32),-4px -4px 10px rgba(255,255,255,.9);--nmI:inset 2px 2px 5px rgba(150,135,110,.38),inset -2px -2px 5px rgba(255,255,255,.95)}

/* ---- cover mode (portrait phone + tablet): the Cover Flow is the gallery ---- */
html.m-cover .g-track{display:none}
html.m-cover .g-sticky{display:flex;flex-direction:column}
html.m-cover .m-top{display:block;padding:14px var(--gap) 0}
.m-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.m-head .display{margin:0;font-size:26px;line-height:1.1}
.m-intro{margin-top:10px;border-radius:14px;background:#f2eee6;box-shadow:var(--nmS)}
.m-intro summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:0 14px;list-style:none;cursor:pointer;font:600 11px/1.3 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.m-intro summary::-webkit-details-marker{display:none}
.m-intro summary i::after{content:'+';font:400 20px/1 var(--sans)}
.m-intro[open] summary i::after{content:'\2013'}
.m-intro p{margin:0;padding:0 14px 14px;font-size:14px;line-height:1.55}
.m-chips{display:flex;gap:8px;overflow-x:auto;margin:10px calc(var(--gap) * -1) 0;padding:6px var(--gap) 8px;scroll-snap-type:x proximity;scrollbar-width:none}
.m-chips::-webkit-scrollbar,.m-thumbs::-webkit-scrollbar{display:none}
.m-chip{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:40px;padding:0 15px;border:0;border-radius:999px;background:#f2eee6;box-shadow:var(--nmS);color:var(--ink);font:500 13px/1 var(--sans);scroll-snap-align:start;transition:box-shadow .2s ease,transform .1s ease}
.m-chip small{font-size:11px;opacity:.55}
.m-chip.on{box-shadow:var(--nmI);font-weight:700}
.m-chip.m-lic::before{content:'';width:8px;height:12px;background:url(images/ui/licensed-lock.png) center/contain no-repeat;image-rendering:pixelated}
html.m-cover .g-dock{position:relative;left:auto;right:auto;bottom:auto;display:flex;flex-direction:column;align-items:stretch;gap:4px;height:auto;padding:50px 0 8px;--cfS:34vh}
html.m-tab .g-dock{--cfS:36vh}
html.m-cover .coverflow{touch-action:pan-y;padding:0 4px}
html.m-cover .cf-title{font-size:15px;color:var(--ink)}
html.m-cover .m-thumbs{display:flex;gap:9px;overflow-x:auto;padding:8px var(--gap) 12px;scroll-snap-type:x mandatory;scrollbar-width:none}
.m-th{flex:0 0 auto;width:58px;height:58px;padding:0;border:0;border-radius:10px;overflow:hidden;background:#e7e0d4;box-shadow:var(--nmS);opacity:.72;scroll-snap-align:center;transition:opacity .2s ease}
html.m-tab .m-th{width:76px;height:76px}
.m-th img{display:block;width:100%;height:100%;object-fit:cover}
.m-th.locked img{filter:blur(5px) grayscale(.4)}
.m-th.on{opacity:1;outline:2px solid #6c63a8;outline-offset:2px}

/* ---- portrait phone: compact header, bottom bar, CONTACT sheet ---- */
html.m-phone .rail{padding:8px 8px 0}
html.m-phone .rail-frame{padding:10px 10px 8px}
html.m-phone .brand{display:block;width:150px;margin:0 0 8px}
html.m-phone .brand-img{width:150px;height:auto}
html.m-phone .tab{width:auto;min-width:0;min-height:44px;padding-right:12px}
html.m-phone .tab img{width:40px}
html.m-phone body{padding-bottom:calc(64px + env(safe-area-inset-bottom))}
html.m-phone .m-bar{position:fixed;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:55;display:flex;gap:6px;padding:6px;border-radius:18px;background:rgba(242,238,230,.94);box-shadow:0 6px 18px rgba(80,65,45,.22),-3px -3px 8px rgba(255,255,255,.8);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.m-bar button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:46px;border:0;border-radius:13px;background:none;color:var(--ink);font:600 10px/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;transition:box-shadow .2s ease,transform .1s ease}
.m-bar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.m-bar button[aria-expanded="true"],html.ov-on .m-bar [data-b="all"]{box-shadow:var(--nmI)}
html.m-phone .m-scrim{display:block;position:fixed;inset:0;z-index:88;background:rgba(17,14,21,.38);opacity:0;pointer-events:none;transition:opacity .25s ease}
html.m-phone .m-scrim.on{opacity:1;pointer-events:auto}
html.m-phone .m-sheet{display:block;position:fixed;left:0;right:0;bottom:var(--kb,0px);z-index:89;max-height:85vh;overflow:auto;padding:0 16px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#f2eee6;box-shadow:0 -8px 30px rgba(40,30,20,.25);transform:translateY(105%);visibility:hidden;transition:transform .3s cubic-bezier(.2,.8,.3,1),visibility 0s .3s}
html.m-phone .m-sheet.on{transform:none;visibility:visible;transition:transform .3s cubic-bezier(.2,.8,.3,1)}
.m-sh-h{position:relative;display:flex;align-items:center;justify-content:center;height:48px}
.m-grab{position:absolute;top:8px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:#cfc5b4}
.m-sh-h .label{margin-top:10px}
.m-sh-x{position:absolute;right:-6px;top:4px;width:44px;height:44px;border:0;background:none;color:var(--ink);font-size:26px;line-height:1}
.m-sheet .rail-contact{display:flex;padding:0;margin:0 auto}
.m-sheet .crt-row{margin:0 auto}
.m-sh-letter{display:block;width:100%;min-height:46px;margin-top:14px;border:0;border-radius:14px;background:#f2eee6;box-shadow:var(--nmS);color:var(--ink);font:600 12px/1 var(--sans);letter-spacing:.12em;text-transform:uppercase}
/* password: bottom panel above the keyboard; chooser: full screen */
html.m-phone .lic:not(.who){align-items:end;justify-items:stretch;padding:0}
html.m-phone .lic:not(.who) .lic-panel{width:auto;margin-bottom:var(--kb,0px);border-radius:22px 22px 0 0;padding:26px 20px calc(20px + env(safe-area-inset-bottom));max-height:calc(100% - var(--kb,0px));overflow:auto}
html.m-phone .who{padding:0;justify-items:stretch;align-items:stretch}
html.m-phone .who .who-panel{width:auto;display:flex;flex-direction:column;justify-content:center;gap:10px;border-radius:0;padding:30px 22px}
html.m-phone .who .who-c{min-height:150px;border-radius:16px;box-shadow:var(--nmS)}
/* ALL WORKS: filters + preview on top, 3-column grid */
html.m-phone .ov.grid:not([hidden]){display:flex;flex-direction:column}
html.m-phone .ov.grid .rg-filter{order:0;position:sticky;top:0;left:auto;bottom:auto;z-index:6;display:flex;flex:none;gap:6px;overflow-x:auto;transform:none;margin:0;padding:10px 60px 8px 12px;border:0;border-radius:0;background:rgba(242,238,230,.96);scrollbar-width:none}
html.m-phone .ov.grid .rg-filter::-webkit-scrollbar{display:none}
html.m-phone .ov.grid .rg-opt{flex:0 0 auto;min-height:38px;padding:0 12px;border:0!important;border-radius:999px;box-shadow:var(--nmS);font-size:13px}
html.m-phone .ov.grid .rg-opt:has(input:checked){box-shadow:var(--nmI)}
html.m-phone .ov.grid .rg-pv{order:1;position:sticky;top:56px;z-index:5;display:flex;flex-direction:column;flex:none;height:32vh;margin:0 12px 6px;padding:8px;border:0;border-radius:16px;background:#f2eee6;box-shadow:var(--nmS)}
.rg-pv img{flex:1;min-height:0;width:100%;object-fit:contain}
.rg-pv-t{display:flex;flex-direction:column;gap:2px;padding-top:6px;text-align:center}
.rg-pv-t b{font:500 14px/1.2 var(--sans)}
.rg-pv-t small{font:400 11px/1.2 var(--sans);color:var(--ink-2);letter-spacing:.06em;text-transform:uppercase}
html.m-phone .ov.grid .rg-stage{order:2;grid-template-columns:repeat(3,1fr);gap:8px;padding:6px 12px 96px}
html.m-phone .ov.grid .rg-t.pv{outline:2px solid #6c63a8;outline-offset:2px}
html.m-phone .ov.grid .ov-close{position:fixed;top:6px;right:6px;z-index:8}
/* detail: full screen, artwork full width, process thumbs as a row, text in a bottom sheet */
html.m-cover .d-scroll{padding:56px 0 130px}
html.m-cover .d-stage{overflow:hidden;touch-action:pan-y}
html.m-cover .d-stage.zoomed{touch-action:none}
html.m-cover .d-stage .frame img{transition:transform .18s ease;transform-origin:center}
html.m-cover .d-stage.zoomed .frame img{transition:none}
html.m-cover .d-info{padding:12px 12px 0}
html.m-cover .d-steplist{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x proximity;scrollbar-width:none}
html.m-cover .d-steplist li{flex:0 0 auto;scroll-snap-align:start}
html.m-cover .d-steplist button{display:flex;flex-direction:column;align-items:center;gap:4px;width:84px}
html.m-cover .d-steplist img{width:84px;height:62px;object-fit:cover;border-radius:8px}
html.m-cover .d-steplist span{font-size:11px;max-width:84px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.m-phone .m-dsheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:6;max-height:72vh;overflow:auto;padding-bottom:env(safe-area-inset-bottom);border-radius:22px 22px 0 0;background:#f2eee6;color:var(--ink);box-shadow:0 -8px 26px rgba(0,0,0,.3);transform:translateY(calc(100% - 96px));transition:transform .3s cubic-bezier(.2,.8,.3,1)}
html.m-phone .m-dsheet.open{transform:none}
.m-ds-h{position:relative;display:block;width:100%;height:26px;border:0;background:none}
.m-dsheet .d-text{padding:0 18px 22px}
.m-dsheet .d-title{font-size:24px;margin:2px 0 6px}
@media (prefers-reduced-motion:reduce){.m-sheet,.m-dsheet,.m-scrim,.m-chip,.m-th,html.m-cover .d-stage .frame img{transition:none!important}}
/* ---- portrait tablet: contact block next to About at the bottom ---- */
html.m-tab .foot{display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;align-items:start}
html.m-tab .foot > .rail-contact{grid-column:1;padding-top:24px}
html.m-tab .foot > .about{grid-column:2}
html.m-tab .foot > .copy{grid-column:1 / -1}
@media (max-width: 860px), (hover: none) and (pointer: coarse){.rail-tab{display:none!important}}   /* v13a: it pushed phones 19px wider than the screen */
html.m-phone .cf-col{flex:1;min-width:0}
html.m-phone #cfPrev,html.m-phone #cfNext{display:none}
html.m-phone .m-sheet .crt-kicker{display:none}
html.m-cover .detail{background:#16131b}
.m-dsheet .d-text,.m-dsheet .d-title,.m-dsheet .d-desc,.m-dsheet .d-medium{color:var(--ink)}
.m-dsheet .label{color:var(--ink-2)}
html.m-phone .m-dsheet{--ink:#2a2530;--ink-2:#6d6559}
html.m-phone .m-dsheet .d-text,html.m-phone .m-dsheet .d-text *{color:var(--ink)!important;opacity:1!important}
html.m-phone .m-dsheet .d-text .label{color:var(--ink-2)!important}
html.m-tab .foot > .rail-contact{align-self:start;position:sticky;top:20px}

/* ================= v13b simple touch layout (t207u): phones + tablets (any orientation) use the plain
   vertical list (the max-width:860px layout, also matched by touch screens above); no intro, no waves ===== */
html.m-simple #intro{display:none!important}
html.m-simple .xmb{display:none!important}
html.m-simple body{background:#f2eee6}
html.m-simple .g-dock,html.m-simple .g-flag{display:none!important}
html.m-simple .foot > .rail-contact{display:flex;width:auto;margin:28px auto 6px;padding:8px 0}
html.m-simple .card figcaption{flex-wrap:wrap}
@media (max-width: 699px){html.m-simple .brand-img{width:160px;height:auto}html.m-simple .brand{display:block;width:160px;margin:0 auto 8px}}
/* v13c (t209u): touch screens — every category button visible at once, plain text, wrapping, no sideways scroll */
html.m-simple .tabs{flex-wrap:wrap;overflow:visible;scroll-snap-type:none;gap:8px;margin:0;padding:4px 0 2px;justify-content:center}
html.m-simple .tabs > *{flex:1 1 auto}
html.m-simple .tab,html.m-simple .tab-proj{flex:1 1 auto;width:auto!important;min-width:0;min-height:40px;margin:0!important;padding:6px 12px!important;background:#f2eee6!important;background-image:none!important;justify-content:center;transform:none!important}
html.m-simple .tab::before,html.m-simple .tab::after,html.m-simple .tab-proj::before,html.m-simple .tab-proj::after{display:none!important}
html.m-simple .tab img,html.m-simple .tab-proj img,html.m-simple .tab-art,html.m-simple .tab-bg{display:none!important}
html.m-simple .tab-txt{position:static!important;display:flex;align-items:baseline;justify-content:center;gap:6px;width:auto;padding:0!important;margin:0!important}
html.m-simple .tab-name{white-space:nowrap;overflow:visible;text-overflow:clip;font-size:13px!important;margin:0!important}
html.m-simple .tab-count{position:static!important;display:inline-flex;gap:3px;align-items:baseline}
html.m-simple .tab-num{font-size:14px!important}
html.m-simple .tab-unit{display:none}
html.m-simple .tab-proj,html.m-simple .tab-proj *{text-align:center!important;justify-content:center!important;margin-left:0!important;padding-left:0}
