/* =====================================================================
   SEROBA — "Main Menu" theme
   Sleek, flat, bento. Game motifs live in the details: a menu cursor,
   button prompts, loading-screen tips, achievements, a save-file lock.
   ✏️ To change colours, edit the values in :root below. That's it.
   ===================================================================== */

@font-face{font-family:"Funnel Sans";src:url(../fonts/funnel-sans-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Funnel Sans";src:url(../fonts/funnel-sans-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Funnel Sans";src:url(../fonts/funnel-sans-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Funnel Sans";src:url(../fonts/funnel-sans-700.woff2) format("woff2");font-weight:700;font-display:swap}

:root{
  --bg:#0E0E0F;          /* the screen */
  --tile:#19191B;        /* bento tiles */
  --tile-2:#232326;      /* tiles inside tiles, keycaps */
  --tile-3:#2E2E32;
  --fg:#ECE8DF;          /* bone */
  --muted:#A29D94;
  --dim:#6F6B65;
  --accent:#0039A6;      /* NYC subway blue (A C E lines) */
  --gold:#FFD23F;        /* XP and trophies */
  --red:#FF5A4E;
  --green:#3DD68C;
  --r:28px; --r-sm:18px; --r-xs:10px;
  --gap:16px;
  --pad:clamp(16px,3vw,40px);
  --max:1440px;
  --ease:cubic-bezier(.22,1,.36,1);
  --ease-in:cubic-bezier(.64,0,.78,0);
  color-scheme:dark;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
body{margin:0;background:var(--bg);color:var(--fg);font-family:"Funnel Sans",system-ui,sans-serif;font-weight:500;font-size:17px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,video{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
h1,h2,h3,h4{margin:0;font-weight:700;letter-spacing:-.025em;line-height:1.05}
p{margin:0}
::selection{background:var(--accent);color:#fff}
:focus-visible{outline:3px solid var(--gold);outline-offset:4px;border-radius:12px}
.skip{position:fixed;left:16px;top:-60px;z-index:200;background:var(--gold);color:#111;padding:10px 14px;border-radius:10px;font-weight:700}
.skip:focus{top:16px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
.dim{color:var(--muted)}
.num{font-variant-numeric:tabular-nums}

/* ---------- small parts used everywhere ---------- */
.label{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.key{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:7px;background:var(--tile-3);color:var(--fg);font-size:12px;font-weight:700;letter-spacing:0;text-transform:none;line-height:1}
.chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:var(--tile-2);font-size:14px;font-weight:600;color:var(--fg);white-space:nowrap}
.live{width:8px;height:8px;border-radius:50%;background:var(--green);display:inline-block;animation:pulse 2s var(--ease) infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:52px;padding:0 22px;border-radius:999px;background:var(--fg);color:#111;font-weight:700;font-size:16px;transition:transform .4s var(--ease),background .3s}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:scale(.97)}
.btn .key{background:rgba(0,0,0,.12);color:#111}
.btn.ghost{background:var(--tile-2);color:var(--fg)}
.btn.ghost .key{background:var(--tile-3);color:var(--fg)}

/* the menu cursor: a little triangle that slides in beside whatever you're pointing at */
.cur{position:relative}
.cur::before{content:"";position:absolute;left:-22px;top:50%;width:12px;height:14px;background:var(--gold);clip-path:polygon(0 0,100% 50%,0 100%);transform:translate(-8px,-50%);opacity:0;transition:opacity .25s,transform .45s var(--ease)}
a:hover .cur::before,a:focus-visible .cur::before,.is-sel .cur::before,button:hover .cur::before{opacity:1;transform:translate(0,-50%);animation:bob 1s var(--ease) .45s infinite}
@keyframes bob{0%,100%{transform:translate(0,-50%)}50%{transform:translate(4px,-50%)}}

/* ---------- top bar (HUD) ---------- */
.hud{position:fixed;inset:0 0 auto 0;z-index:60;pointer-events:none}
.hud-in{max-width:var(--max);margin:0 auto;padding:14px var(--pad);display:flex;align-items:center;gap:12px}
.hud a,.hud button{pointer-events:auto}
.hud-pill{display:flex;align-items:center;gap:10px;height:44px;padding:0 6px 0 16px;border-radius:999px;background:rgba(25,25,27,.82);-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4)}
.hud-name{font-weight:700;font-size:17px;letter-spacing:-.01em}
.hud-lv{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);font-weight:600}
.hud-lv b{color:var(--fg)}
.xp{position:relative;width:88px;height:6px;border-radius:6px;background:var(--tile-3);overflow:hidden}
.xp i{position:absolute;inset:0;background:var(--gold);border-radius:6px;transform-origin:0 50%;transform:scaleX(0)}
.hud-sp{flex:1}
.hud-links{display:flex;gap:4px;padding:0 6px}
.hud-links a{height:34px;display:inline-flex;align-items:center;padding:0 14px;border-radius:999px;font-size:15px;font-weight:600;color:var(--muted);transition:background .3s,color .3s}
.hud-links a:hover,.hud-links a.on{background:var(--tile-3);color:var(--fg)}
.trophy-btn{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;border-radius:999px;background:var(--tile-3);font-size:13px;font-weight:700}
.trophy-btn svg{width:15px;height:15px;color:var(--gold)}
.trophy-btn.bump{animation:bump .6s var(--ease)}
@keyframes bump{30%{transform:scale(1.18)}}
@media (max-width:720px){.hud-lv{display:none}.hud-links a{padding:0 10px}}

/* trophy room panel */
.trophies{position:fixed;z-index:70;top:68px;right:max(var(--pad),calc((100vw - var(--max))/2 + var(--pad)));width:min(360px,calc(100vw - 32px));background:var(--tile);border-radius:24px;padding:20px;transform-origin:100% 0;transform:scale(.92) translateY(-8px);opacity:0;visibility:hidden;transition:transform .45s var(--ease),opacity .3s,visibility 0s .45s}
.trophies.open{transform:none;opacity:1;visibility:visible;transition:transform .45s var(--ease),opacity .3s}
.trophies h3{font-size:20px;margin:6px 0 14px}
.trophies ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.trophies li{display:flex;gap:12px;align-items:center;padding:10px;border-radius:14px;background:var(--tile-2)}
.trophies li i{flex:none;width:36px;height:36px;border-radius:10px;background:var(--tile-3);display:grid;place-items:center;font-style:normal;font-size:16px}
.trophies li.got i{background:var(--gold);color:#111}
.trophies li b{display:block;font-size:15px}
.trophies li small{display:block;color:var(--muted);font-size:13px;line-height:1.35}
.trophies li:not(.got) b{color:var(--dim)}

/* achievement toast */
.toast{position:fixed;z-index:120;left:50%;bottom:24px;display:flex;align-items:center;gap:14px;padding:12px 20px 12px 12px;border-radius:999px;background:var(--fg);color:#111;transform:translate(-50%,140%);transition:transform .7s var(--ease);max-width:calc(100vw - 32px)}
.toast.show{transform:translate(-50%,0)}
.toast i{flex:none;width:40px;height:40px;border-radius:50%;background:var(--gold);display:grid;place-items:center;font-style:normal;font-size:18px}
.toast small{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:#6b665d}
.toast b{display:block;font-size:16px;line-height:1.2}

/* ---------- loading screen (page transitions) ---------- */
.loader,.loader-back{position:fixed;inset:0;z-index:150;visibility:hidden;transform:translateY(100%);pointer-events:none}
.loader-back{z-index:149;background:var(--fg)}
.loader{background:var(--ld,var(--accent));color:var(--ld-ink,#fff);padding:calc(var(--pad) + 8px) var(--pad) var(--pad);display:flex}
.loader-in{max-width:var(--max);width:100%;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr auto;gap:20px 32px}
.ld-head{grid-column:1/-1}
.ld-kick{display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.ld-kick .ld-spin{width:20px;height:20px;animation:spin 1s linear infinite}
.ld-media{grid-column:2;grid-row:2;align-self:center;width:min(38vw,560px);opacity:0;transform:translateY(40px) scale(.94) rotate(-2deg);transition:opacity .5s,transform 1s var(--ease)}
.ld-one{aspect-ratio:4/3;border-radius:28px;overflow:hidden}
.ld-one img{width:100%;height:100%;object-fit:cover}
.ld-four{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ld-four>span{aspect-ratio:1;border-radius:22px;overflow:hidden;display:grid;place-items:center;background:rgba(255,255,255,.18);opacity:0;transform:translateY(30px);transition:opacity .4s,transform .8s var(--ease)}
.ld-four img{width:100%;height:100%;object-fit:cover}
.ld-ic{color:#111}
.ld-ic:nth-child(2),.ld-ic:nth-child(4){color:#fff}
.ld-ic .i{width:30%;height:30%}
.ld-foot{grid-column:1;grid-row:3;align-self:end;display:flex;flex-direction:column;gap:18px}
.ld-title{font-size:clamp(48px,8vw,128px);font-weight:700;letter-spacing:-.045em;line-height:.92;overflow:hidden;padding-bottom:.06em}
.ld-title span{display:inline-block;transform:translateY(105%);transition:transform .8s var(--ease)}
.ld-tip{max-width:520px;font-size:17px;line-height:1.45;opacity:.9}
.ld-tip b{display:block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;margin-bottom:4px;opacity:.75}
.ld-bar{grid-column:1/-1;grid-row:4;height:8px;border-radius:8px;background:rgba(127,127,127,.3);overflow:hidden}
.ld-bar i{display:block;height:100%;background:currentColor;border-radius:8px;transform-origin:0 50%;transform:scaleX(0)}
html.ld-cover .loader,html.ld-cover .loader-back{transform:none;visibility:visible}
.loader.in,.loader.out,.loader-back.in,.loader-back.out{visibility:visible}
.loader-back.in{transition:transform .7s var(--ease);transform:none}
.loader.in{transition:transform .75s var(--ease) .09s;transform:none;pointer-events:auto}
.loader.out{transition:transform .9s var(--ease);transform:translateY(-100%)}
.loader-back.out{transition:transform .9s var(--ease) .1s;transform:translateY(-100%)}
.loader.in .ld-title span,html.ld-cover .ld-title span,.loader.held .ld-title span{transform:none}
.loader.in .ld-media,html.ld-cover .ld-media,.loader.held .ld-media{opacity:1;transform:none;transition-delay:.25s}
.loader.in .ld-four>span,html.ld-cover .ld-four>span,.loader.held .ld-four>span{opacity:1;transform:none}
.loader.in .ld-bar i{transition:transform .9s var(--ease) .2s;transform:scaleX(.85)}
html.ld-cover .ld-bar i,.loader.out .ld-bar i,.loader.held .ld-bar i{transform:scaleX(1)}
.loader.out .ld-title span,.loader.out .ld-media{transform:translateY(-40px);opacity:0;transition:transform .6s var(--ease),opacity .4s}
@media (max-width:820px){.loader-in{grid-template-columns:1fr;grid-template-rows:auto auto 1fr auto}.ld-media{grid-column:1;grid-row:2;width:min(70vw,360px)}.ld-foot{grid-row:3}}

/* boot screen: first visit only */
.boot{position:fixed;inset:0;z-index:160;background:var(--bg);display:grid;place-items:center;text-align:center;padding:24px;transition:opacity .6s,visibility 0s .6s}
.boot.gone{opacity:0;visibility:hidden}
.boot-name{font-size:clamp(64px,14vw,200px);font-weight:700;letter-spacing:-.05em;line-height:.9}
.boot-press{margin-top:28px;display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;animation:blink 1.1s steps(2) infinite}
.boot-sub{margin-top:14px;color:var(--muted);font-size:14px}
@keyframes blink{50%{opacity:.25}}

/* ---------- entrance animations ---------- */
.rise{opacity:0;transform:translateY(32px);transition:opacity .9s var(--ease),transform 1.1s var(--ease)}
.rise.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.rise{opacity:1;transform:none;transition:none}*{animation:none!important}}

/* ---------- HERO: the big name ---------- */
main{padding-top:88px}
.hero{padding-top:clamp(12px,3vw,40px)}
.fit{display:inline-block;font-weight:700;letter-spacing:-.055em;line-height:.8;white-space:nowrap;margin:0 0 0 -.04em}
.fit .ch{display:inline-block;transform:translateY(105%);transition:transform 1.1s var(--ease)}
.fit-mask{overflow:hidden;padding-bottom:.06em}
.ready .fit .ch{transform:none}
.hero-row{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);margin-top:clamp(20px,3vw,40px)}
.hero-tag{grid-column:span 10;font-size:clamp(24px,2.6vw,38px);font-weight:600;letter-spacing:-.025em;line-height:1.12}
.hero-tag .roll{display:inline-grid;vertical-align:top;overflow:hidden;color:var(--accent);height:1.12em;line-height:1.12;transition:width .7s var(--ease)}
.hero-tag .roll span{grid-area:1/1;justify-self:start;white-space:nowrap;transition:transform .7s var(--ease),opacity .5s}
.hero-meta{grid-column:9/span 4;display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px;justify-content:flex-end}
@media (max-width:900px){.hero-tag,.hero-meta{grid-column:1/-1}.hero-meta{justify-content:flex-start}}

/* ---------- section heads ---------- */
.sec{margin-top:clamp(56px,8vw,120px)}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px}
.sec-head h2{font-size:clamp(28px,3vw,44px)}
.sec-head .hint{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;font-weight:600}
@media (max-width:720px){.sec-head .hint{display:none}}

/* ---------- PROJECT CARDS: flat, the same spacing as before ---------- */
.work{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap)}
@media (max-width:820px){.work{grid-template-columns:1fr}}
.card{--c:#2563EB;--c2:#5A8BFF;--ink:#fff;display:block;border-radius:var(--r);background:var(--c);color:var(--ink);padding:16px 16px 22px;transition:transform .7s var(--ease);outline-offset:6px}
.card-img{position:relative;border-radius:var(--r-sm);overflow:hidden;background:var(--c2);aspect-ratio:16/11}
.card-img img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
.card-text{padding:20px 8px 0 8px}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:600;opacity:.8}
.card h3{font-size:clamp(26px,2.6vw,36px);margin:10px 0 8px;display:inline-block}
.card p{font-size:17px;line-height:1.4;opacity:.82;max-width:520px}
.card .start{display:inline-flex;align-items:center;gap:8px;opacity:0;transform:translateX(-6px);transition:opacity .3s,transform .5s var(--ease)}
.card .start .key{background:rgba(255,255,255,.2);color:inherit}
.card .lock{position:absolute;right:14px;top:14px;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:rgba(14,14,15,.72);color:#fff;font-size:13px;font-weight:600;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.card:hover,.card.is-sel{transform:translateY(-6px)}
.card:hover .card-img img,.card.is-sel .card-img img{transform:scale(1.045)}
.card:hover .start,.card.is-sel .start,.card:focus-visible .start{opacity:1;transform:none}
.card.is-sel{outline:3px solid var(--gold)}
.card .cur::before{background:currentColor}

/* ---------- BENTO ---------- */
.bento{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap)}
.tile{position:relative;grid-column:span 12;background:var(--tile);border-radius:var(--r);padding:clamp(22px,2.4vw,32px);overflow:hidden;min-width:0}
.s3{grid-column:span 3}.s4{grid-column:span 4}.s5{grid-column:span 5}.s6{grid-column:span 6}.s7{grid-column:span 7}.s8{grid-column:span 8}.s12{grid-column:span 12}
@media (max-width:1000px){.s3,.s4,.s5{grid-column:span 6}.s7,.s8{grid-column:span 12}}
@media (max-width:720px){.tile{grid-column:span 12!important}}
.tile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}
.t-big{font-size:clamp(30px,3.6vw,56px);font-weight:700;letter-spacing:-.035em;line-height:1.02}
.t-big span{transition:opacity .2s}
.t-title{display:block;font-size:clamp(24px,2.2vw,32px);font-weight:700;letter-spacing:-.025em;line-height:1.08}
.t-sub{color:var(--muted);font-size:16px;line-height:1.45;margin-top:10px}
.t-foot{margin-top:24px;display:flex;flex-wrap:wrap;gap:8px}
.tile.accent{background:var(--accent);color:#fff}
.tile.accent .label,.tile.accent .t-sub{color:rgba(255,255,255,.78)}
.tile.bone{background:var(--fg);color:#111}
.tile.bone .label,.tile.bone .t-sub{color:#5f5a52}
.tile.bone .chip{background:rgba(0,0,0,.08);color:#111}
.tile.gold{background:var(--gold);color:#111}
.tile.gold .label,.tile.gold .t-sub{color:#5b4b10}

/* quest log (work history) */
.log{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.log li{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:16px;border-radius:var(--r-sm);background:var(--tile-2)}
.log .st{width:12px;height:12px;border-radius:4px;background:var(--dim)}
.log li.active .st{background:var(--green);animation:pulse 2s infinite}
.log b{display:block;font-size:18px;letter-spacing:-.01em}
.log small{display:block;color:var(--muted);font-size:14px;line-height:1.35;margin-top:2px}
.log time{color:var(--muted);font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.log li.done time::after{content:" ✓";color:var(--green)}

/* abilities */
.abilities{display:flex;flex-wrap:wrap;gap:8px}
.abilities .chip{height:36px;padding:0 14px;font-size:15px}
.abilities .chip i{width:8px;height:8px;border-radius:2px;background:var(--accent)}

/* house rules pager */
.rules{position:relative;min-height:150px}
.rules li{list-style:none;position:absolute;inset:0;opacity:0;transform:translateX(24px);transition:opacity .4s,transform .6s var(--ease)}
.rules li.on{opacity:1;transform:none}
.rules ol{margin:0;padding:0}
.rules h3{font-size:clamp(24px,2.4vw,34px)}
.rules p{color:var(--muted);margin-top:10px;font-size:16px}
.pager{display:flex;align-items:center;gap:8px}
.pager button{width:36px;height:36px;border-radius:50%;background:var(--tile-3);display:grid;place-items:center;font-size:13px;transition:background .3s,transform .3s var(--ease)}
.pager button:hover{background:var(--fg);color:#111}
.pager button:active{transform:scale(.9)}
.pips{display:flex;gap:5px;margin-right:6px}
.pips i{width:7px;height:7px;border-radius:2px;background:var(--tile-3);transition:background .3s,width .4s var(--ease)}
.pips i.on{background:var(--gold);width:18px}

/* off-the-clock tile */
.t-link{display:flex;align-items:center;justify-content:space-between;gap:24px;transition:transform .6s var(--ease)}
.t-link:hover{transform:translateY(-4px)}
.t-link .arrow{flex:none;width:64px;height:64px;border-radius:50%;background:#fff;color:var(--accent);display:grid;place-items:center;font-size:26px;font-weight:700;transition:transform .6s var(--ease)}
.t-link:hover .arrow{transform:translateX(6px)}
.icons{display:flex;gap:8px;margin-top:20px;flex-wrap:wrap}
.icons span{height:40px;padding:0 14px;border-radius:12px;background:rgba(255,255,255,.16);display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600}

/* ---------- FOOTER: continue? ---------- */
.footer{margin-top:clamp(64px,9vw,140px);padding-bottom:24px}
.foot-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap)}
.f-cta{grid-column:span 8;background:var(--fg);color:#111}
.f-cta .label{color:#5f5a52}
.f-big{font-size:clamp(40px,6vw,96px);font-weight:700;letter-spacing:-.045em;line-height:.92;margin:6px 0 26px}
.f-big .cd{display:inline-block;min-width:.62em;color:var(--accent);font-variant-numeric:tabular-nums}
.f-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.f-cta .btn.ghost{background:rgba(0,0,0,.08);color:#111}
.f-cta .btn.ghost .key{background:rgba(0,0,0,.1);color:#111}
.f-mail{font-size:16px;font-weight:600;color:#5f5a52;margin-top:16px}
.f-links{grid-column:span 4;display:flex;flex-direction:column;gap:6px}
.f-links a{display:flex;justify-content:space-between;align-items:center;height:52px;padding:0 18px;border-radius:16px;background:var(--tile-2);font-weight:600;transition:background .3s}
.f-links a:hover{background:var(--tile-3)}
.f-links .f-tz{margin-top:auto;color:var(--muted);font-size:14px;padding:10px 4px 0}
@media (max-width:900px){.f-cta,.f-links{grid-column:1/-1}}
.wordmark{margin-top:var(--gap);overflow:hidden}
.wordmark .fit{color:var(--tile-2);transform:translateY(60%);transition:transform 1.4s var(--ease),color 1s}
.wordmark.in .fit{transform:none;color:var(--fg)}
.foot-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;font-size:14px;color:var(--muted);font-weight:600}
.f-top{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;background:var(--tile-2);color:var(--fg);font-size:14px;font-weight:600}
.f-top:hover{background:var(--tile-3)}

/* ---------- custom cursor (mouse only) ---------- */
html.has-cursor,html.has-cursor a,html.has-cursor button{cursor:none}
html.has-cursor input{cursor:text}
.cursor{position:fixed;left:0;top:0;z-index:300;pointer-events:none;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:var(--fg);mix-blend-mode:difference;opacity:0;transition:width .35s var(--ease),height .35s var(--ease),margin .35s var(--ease),opacity .3s,border-radius .35s}
.cursor.on{opacity:1}
.cursor.link{width:40px;height:40px;margin:-20px 0 0 -20px}
.cursor.play{width:88px;height:88px;margin:-44px 0 0 -44px;mix-blend-mode:normal;background:var(--gold)}
.cursor .cl{position:absolute;inset:0;display:grid;place-items:center;color:#111;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:0;transition:opacity .2s}
.cursor.play .cl{opacity:1}

/* confetti (konami) */
.pix{position:fixed;z-index:140;width:10px;height:10px;border-radius:2px;pointer-events:none;top:-20px}

/* image viewer */
.viewer{position:fixed;inset:0;z-index:180;background:rgba(10,10,11,.94);display:grid;place-items:center;padding:4vw;opacity:0;visibility:hidden;transition:opacity .35s,visibility 0s .35s}
.viewer.open{opacity:1;visibility:visible;transition:opacity .35s}
.viewer img{max-height:90vh;width:auto;border-radius:16px;transform:scale(.96);transition:transform .5s var(--ease)}
.viewer.open img{transform:none}
.viewer button{position:absolute;top:20px;right:20px;width:44px;height:44px;border-radius:50%;background:var(--tile-2);font-size:24px}

/* =====================================================================
   ABOUT ME — the status screen
   ===================================================================== */
.status{display:grid;grid-template-columns:1.1fr 1fr;gap:var(--gap)}
@media (max-width:900px){.status{grid-template-columns:1fr}}
.st-who .t-big{margin-top:6px}
.st-now{margin-top:28px;display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:600}
.sheet{background:var(--tile-2);border-radius:var(--r-sm);padding:20px}
.sheet-top{display:flex;justify-content:space-between;align-items:center}
.sheet-top b{font-size:24px;letter-spacing:-.02em}
.lv{height:30px;padding:0 12px;border-radius:999px;background:var(--gold);color:#111;font-weight:700;font-size:14px;display:inline-flex;align-items:center}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}
.stats div{background:var(--tile-3);border-radius:12px;padding:12px 14px}
.stats dt{font-size:12px;color:var(--muted);letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.stats dd{margin:2px 0 0;font-weight:700;font-size:16px}
.equip{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.equip a{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;padding:8px 12px 8px 8px;border-radius:14px;background:var(--tile-3);transition:background .3s,transform .4s var(--ease)}
.equip a:hover{background:#38383d;transform:translateX(4px)}
.equip .slot{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;font-size:12px;font-weight:700}
.equip small{display:block;color:var(--muted);font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.equip span b{font-size:16px}
.equip .go{color:var(--muted);font-size:14px}

/* loot: the shoes */
.loot{display:grid;gap:10px}
.loot-card{border-radius:var(--r-sm);padding:18px;background:var(--tile-2)}
.loot-card.legendary{background:#FF7A1A;color:#111}
.loot-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;opacity:.75}
.loot-card strong{display:block;font-size:26px;letter-spacing:-.02em;margin-top:10px;line-height:1.05}
.loot-card .nm{font-size:18px;font-weight:600;opacity:.8}
.loot-row{display:flex;gap:20px;margin-top:12px;font-size:14px;font-weight:600}
.loot-row small{display:block;font-size:11px;letter-spacing:.1em;text-transform:uppercase;opacity:.6}
.count{display:flex;gap:8px;margin-top:14px}
.count span{flex:1;background:var(--tile-3);border-radius:12px;padding:10px 0;text-align:center}
.count b{display:block;font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.count small{font-size:11px;color:var(--muted);letter-spacing:.1em;text-transform:uppercase}

/* the shelf */
.shelf{display:flex;align-items:flex-end;gap:14px;height:170px;margin-top:6px}
.series{display:flex;align-items:flex-end;gap:2px;height:100%;padding:0;border-radius:8px;transition:transform .5s var(--ease)}
.series i{display:block;width:5px;border-radius:2px 2px 0 0}
.series:hover,.series.on{transform:translateY(-10px)}
.shelf-info{margin-top:16px;min-height:96px;background:var(--tile-2);border-radius:var(--r-sm);padding:16px}
.shelf-info b{font-size:20px;letter-spacing:-.01em}
.shelf-info small{display:block;color:var(--muted);font-size:14px;margin:2px 0 6px}
.shelf-info p{font-size:15px;color:var(--muted);line-height:1.45}

/* the soundtrack */
.sleeves{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
@media (max-width:900px){.sleeves{grid-template-columns:repeat(3,1fr)}}
.sleeve{position:relative;aspect-ratio:1;border-radius:14px;overflow:hidden;display:block;transition:transform .5s var(--ease)}
.sleeve:hover{transform:translateY(-6px) rotate(-2deg)}
.sleeve .ini{position:absolute;inset:0;display:grid;place-items:center;font-size:34px;font-weight:700;color:#111;letter-spacing:-.04em}
.sleeve img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sleeve .nm{position:absolute;left:8px;bottom:8px;right:8px;padding:5px 8px;border-radius:8px;background:rgba(14,14,15,.78);color:#fff;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eq{display:inline-flex;align-items:flex-end;gap:2px;height:14px}
.eq i{width:3px;background:var(--green);border-radius:1px;animation:eq 1s var(--ease) infinite}
.eq i:nth-child(2){animation-delay:.2s}.eq i:nth-child(3){animation-delay:.4s}
@keyframes eq{0%,100%{height:4px}50%{height:14px}}

/* the library */
.lib{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.lib li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-radius:14px;background:var(--tile-2);font-weight:700;font-size:17px}
.lib li small{font-size:12px;color:var(--muted);letter-spacing:.1em;text-transform:uppercase;font-weight:600}
.lib li.now{background:var(--accent);color:#fff}
.lib li.now small{color:rgba(255,255,255,.8)}

/* mini-game: true or fake */
.tof{display:grid;grid-template-columns:1fr 1.25fr;gap:var(--gap);align-items:stretch}
@media (max-width:900px){.tof{grid-template-columns:1fr}}
.tof-side .t-big{margin:8px 0 12px}
.score{display:flex;gap:8px;margin-top:20px}
.score div{background:var(--tile-2);border-radius:14px;padding:12px 16px;min-width:96px}
.score small{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600}
.score b{font-size:28px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.qcard{position:relative;background:var(--tile-2);border-radius:var(--r);padding:clamp(22px,3vw,36px);display:flex;flex-direction:column;min-height:340px}
.qcard .qn{display:flex;justify-content:space-between;color:var(--muted);font-size:14px;font-weight:600}
.qcard .qtext{font-size:clamp(24px,2.4vw,34px);font-weight:700;letter-spacing:-.025em;line-height:1.12;margin:22px 0;flex:1;transition:opacity .25s,transform .45s var(--ease)}
.qcard.swap .qtext{opacity:0;transform:translateY(12px)}
.qbtns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.qbtns button{height:64px;border-radius:18px;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:10px;transition:transform .3s var(--ease),background .3s,color .3s}
.qbtns button:active{transform:scale(.97)}
.q-true{background:var(--green);color:#0d2a1b}
.q-fake{background:var(--red);color:#2d0b08}
.qbtns button[disabled]{opacity:.35}
.qbtns .key{background:rgba(0,0,0,.14);color:inherit}
.verdict{margin-top:14px;border-radius:16px;padding:14px 16px;background:var(--tile-3);font-size:15px;line-height:1.45;display:none}
.verdict.show{display:block;animation:pop .5s var(--ease)}
.verdict b{display:block;font-size:16px;margin-bottom:2px}
.verdict.ok b{color:var(--green)}.verdict.no b{color:var(--red)}
.qnext{margin-top:12px;align-self:flex-start}
@keyframes pop{0%{transform:scale(.96);opacity:0}100%{transform:none;opacity:1}}
.qcard.shake{animation:shake .45s}
@keyframes shake{20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-5px)}80%{transform:translateX(4px)}}

/* =====================================================================
   CASE STUDIES — same building blocks as before, new skin
   ===================================================================== */
.cs{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
.cs-back{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;background:var(--tile);font-size:15px;font-weight:600;color:var(--muted);transition:color .3s,background .3s}
.cs-back:hover{color:var(--fg);background:var(--tile-2)}
.cs-title{font-size:clamp(48px,8vw,128px);letter-spacing:-.05em;line-height:.9;margin:28px 0 16px}
.cs-sub{font-size:clamp(20px,2vw,28px);color:var(--muted);font-weight:600;letter-spacing:-.015em;max-width:900px}
.cs-hero{margin-top:36px;border-radius:var(--r);overflow:hidden;background:var(--hero-bg,var(--tile));height:var(--hero-h,480px);display:grid;place-items:center}
.cs-hero>img{width:100%;height:100%;object-fit:cover}
.cs-hero.pad>img,.cs-hero.pad48>img{object-fit:contain;padding:32px}
.cs-hero.pad48>img{padding:48px}
@media (max-width:720px){.cs-hero{height:300px}}
.marquee{width:100%;overflow:hidden}
.marquee-track{display:flex;gap:16px;width:max-content;animation:marq 40s linear infinite}
.marquee-track img{height:calc(var(--hero-h,480px) - 80px);width:auto;border-radius:16px}
@keyframes marq{to{transform:translateX(-50%)}}
.cs-meta{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap);margin-top:var(--gap)}
.cs-meta>div{background:var(--tile);border-radius:var(--r);padding:clamp(22px,2.4vw,32px)}
.cs-meta>div:first-child{grid-column:span 4}
.cs-meta>div:last-child{grid-column:span 8}
@media (max-width:900px){.cs-meta>div{grid-column:1/-1!important}}
.cs-meta h3{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600;margin:0 0 8px}
.cs-meta h3:not(:first-child){margin-top:22px}
.cs-meta p{font-size:18px;line-height:1.5}
.cs-meta p+p{margin-top:12px}
.cs-body{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:clamp(24px,4vw,64px);margin-top:clamp(48px,6vw,96px);align-items:start}
@media (max-width:1000px){.cs-body{grid-template-columns:1fr}.toc{display:none!important}}
.cs-main{max-width:var(--col,820px)}
.cs-section{padding-bottom:clamp(56px,7vw,104px)}
.eyebrow{display:inline-flex;align-items:center;gap:10px;height:32px;padding:0 14px 0 6px;border-radius:999px;background:var(--tile);font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:18px}
.eyebrow .chn{height:22px;padding:0 8px;border-radius:999px;background:var(--accent);color:#fff;display:inline-flex;align-items:center;font-size:11px;letter-spacing:.06em}
.cs-section.seen .eyebrow .chn{background:var(--green);color:#0d2a1b}
.cs-section h2{font-size:clamp(30px,3.4vw,48px);margin-bottom:20px;letter-spacing:-.035em}
.cs-section h3{font-size:clamp(22px,2vw,28px);margin:44px 0 14px}
.cs-section h4{font-size:18px}
.cs-section p{font-size:18px;line-height:1.62;color:#d6d2c9;font-weight:400}
.cs-section p+p{margin-top:16px}
.cs-section strong{color:var(--fg);font-weight:700}
.cs-section ul:not(.delivered){padding-left:20px;color:#d6d2c9;font-size:18px;line-height:1.6}
.cs figure{margin:28px 0;background:var(--frame-bg,var(--tile));border-radius:var(--r-sm);overflow:hidden}
.cs figure img,.cs .frame img{cursor:zoom-in}
html.has-cursor .cs figure img,html.has-cursor .cs .frame img{cursor:none}
.cs figure img{width:100%;height:auto}
.cs figcaption{padding:14px 18px;font-size:14px;color:var(--muted);font-weight:500;background:var(--tile)}
.frame{position:relative;margin:24px 0 0;background:var(--frame-bg,var(--tile));border-radius:var(--r-sm);overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center}
.frame img,.frame video{width:100%;height:100%;object-fit:contain;min-height:0;flex:1}
.frame.h200{height:200px}.frame.h300{height:300px}.frame.h350{height:350px}.frame.h400{height:400px}.frame.h500{height:500px}
.frame.p12{padding:12px}.frame.p24{padding:24px}.frame.p48{padding:48px}.frame.p12t{padding:12px 12px 0}
.frame.cover img,.frame.cover video{object-fit:cover}
.frame.white{background:#fff}
@media (max-width:720px){.frame.h400,.frame.h500{height:300px}.frame.p48{padding:20px}}
.in-cap{font-size:14px!important;color:var(--muted)!important;margin-top:10px!important;flex:none;text-align:center}
.frame-cap{display:block;font-size:14px;color:var(--muted);margin:10px 4px 0}
.embed{margin-top:24px;border-radius:var(--r-sm);overflow:hidden;background:var(--tile);aspect-ratio:16/10}
.embed iframe{width:100%;height:100%;border:0;display:block}
.callout{margin:28px 0;background:var(--gold);color:#111;border-radius:var(--r-sm);padding:22px 24px}
.callout strong{display:flex;align-items:center;gap:8px;color:#111;font-size:13px;letter-spacing:.12em;text-transform:uppercase;margin-bottom:6px}
.callout strong::before{content:"!";width:22px;height:22px;border-radius:6px;background:#111;color:var(--gold);display:grid;place-items:center;font-size:13px;letter-spacing:0}
.callout p{color:#2a2410!important;font-size:17px!important}
.cards{display:grid;gap:10px;margin-top:20px}
.cards.c2{grid-template-columns:1fr 1fr}.cards.c3{grid-template-columns:repeat(3,1fr)}
@media (max-width:720px){.cards.c2,.cards.c3{grid-template-columns:1fr}}
.icard{background:var(--tile);border-radius:var(--r-sm);padding:20px;display:flex;flex-direction:column;gap:14px}
.icard.row{flex-direction:row;align-items:center}
.icard strong{display:block;font-size:18px;margin-bottom:4px}
.icard p{font-size:16px!important;line-height:1.45!important;margin:0!important}
.cards.quotes .icard p{font-size:20px!important;color:var(--fg)!important;font-weight:600}
.ic{flex:none;width:40px;height:40px;border-radius:12px;display:grid;place-items:center}
.ic svg{width:20px;height:20px;fill:currentColor}
.ic.blue{background:rgba(76,125,255,.18);color:#86A6FF}
.ic.red{background:rgba(255,90,78,.16);color:#FF8A80}
.ic.green{background:rgba(61,214,140,.16);color:var(--green)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}
.steps.two-three{grid-template-columns:repeat(6,1fr)}
.steps.two-three .step{grid-column:span 2}
.steps.two-three .step:nth-child(-n+2){grid-column:span 3}
@media (max-width:720px){.steps,.steps.two-three{grid-template-columns:1fr 1fr}.steps.two-three .step{grid-column:span 1!important}}
.step{background:var(--tile);border-radius:var(--r-sm);padding:18px;min-height:120px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}
.step .n{align-self:flex-start;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--gold)}
.step .n::before{content:"Stage "}
.step h4{font-size:19px;line-height:1.15}
.highlights{display:grid;gap:var(--gap);margin-top:20px}
.hl{background:var(--tile);border-radius:var(--r);padding:20px}
.hl>p{font-size:19px!important;font-weight:600;color:var(--fg)!important;margin-bottom:4px!important}
.hl .frame{margin-top:14px}
details.acc{background:var(--tile);border-radius:var(--r-sm);margin-top:8px;overflow:hidden}
details.acc summary{list-style:none;display:flex;align-items:center;gap:12px;padding:18px 20px;font-weight:700;font-size:18px;cursor:pointer}
details.acc summary::-webkit-details-marker{display:none}
details.acc summary::after{content:"+";margin-left:auto;width:28px;height:28px;border-radius:8px;background:var(--tile-2);display:grid;place-items:center;font-size:18px;transition:transform .4s var(--ease)}
details.acc[open] summary::after{transform:rotate(45deg)}
details.acc .dot{width:10px;height:10px;border-radius:3px;background:var(--accent);flex:none}
details.acc .num{font-size:12px;font-weight:700;color:var(--gold);letter-spacing:.08em;flex:none}
details.acc .num::before{content:"Goal "}
.acc-body{padding:0 20px 20px 42px;color:#d6d2c9;font-size:17px;line-height:1.55}
.delivered{list-style:none;padding:0;margin:20px 0;display:grid;gap:8px}
.delivered li{display:flex;gap:14px;align-items:center;background:var(--tile);border-radius:var(--r-sm);padding:16px 18px;font-size:17px;font-weight:600}
.delivered .dot{flex:none;width:28px;height:28px;border-radius:8px;background:var(--green);position:relative}
.delivered .dot::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#0d2a1b;font-weight:700;font-size:15px}

/* quest log (table of contents) */
.toc{position:sticky;top:92px;background:var(--tile);border-radius:var(--r);padding:20px;display:flex;flex-direction:column;gap:2px}
.toc h3{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600;margin:0 0 6px 10px}
.toc .qbar{height:6px;border-radius:6px;background:var(--tile-3);overflow:hidden;margin:4px 10px 12px}
.toc .qbar i{display:block;height:100%;background:var(--gold);border-radius:6px;transform-origin:0 50%;transform:scaleX(0);transition:transform .6s var(--ease)}
.toc a{display:flex;align-items:center;gap:10px;height:40px;padding:0 10px;border-radius:12px;font-size:15px;font-weight:600;color:var(--muted);transition:background .3s,color .3s}
.toc a .tk{width:16px;height:16px;border-radius:5px;background:var(--tile-3);flex:none;display:grid;place-items:center;font-size:10px;color:#0d2a1b}
.toc a.done .tk{background:var(--green)}
.toc a.done .tk::after{content:"✓"}
.toc a:hover{color:var(--fg)}
.toc a.on{background:var(--tile-2);color:var(--fg)}
.toc a.on .tk{background:var(--gold)}

/* next quest */
.cs-next{display:flex;flex-wrap:wrap;align-items:center;gap:var(--gap)}
.cs-next-card{flex:1;min-width:280px;display:grid;grid-template-columns:200px 1fr auto;gap:20px;align-items:center;background:var(--tile);border-radius:var(--r);padding:14px 24px 14px 14px;transition:transform .6s var(--ease),background .3s}
.cs-next-card:hover{transform:translateY(-4px);background:var(--tile-2)}
.cs-next-card img{width:200px;height:130px;object-fit:cover;border-radius:16px}
.cs-next-card small{display:block;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);font-weight:700;margin-bottom:6px}
.cs-next-card strong{font-size:clamp(24px,2.4vw,34px);letter-spacing:-.025em;display:inline-block}
.cs-next-card i{font-style:normal;width:52px;height:52px;border-radius:50%;background:var(--fg);color:#111;display:grid;place-items:center;font-size:20px;font-weight:700}
@media (max-width:720px){.cs-next-card{grid-template-columns:1fr auto}.cs-next-card img{display:none}}
.cs-all{height:52px;display:inline-flex;align-items:center;padding:0 22px;border-radius:999px;background:var(--tile);font-weight:600}

/* ---------- save-file lock (password) ---------- */
body.locked .cs,body.locked .footer{display:none}
body:not(.locked) .gate{display:none}
.gate{max-width:var(--max);margin:0 auto;padding:110px var(--pad) 40px;min-height:100vh}
.gate-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:var(--gap)}
.gate-about,.gate-lock{background:var(--tile);border-radius:var(--r);padding:clamp(24px,3vw,44px)}
.gate-about{grid-column:span 7;display:flex;flex-direction:column}
.gate-lock{grid-column:span 5;background:var(--accent);color:#fff;display:flex;flex-direction:column}
@media (max-width:900px){.gate-about,.gate-lock{grid-column:1/-1}}
.gate-about small{display:block;margin-top:28px;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600}
.gate-about h1{font-size:clamp(44px,5.6vw,84px);letter-spacing:-.05em;line-height:.92;margin:12px 0 18px}
.gate-line{font-size:20px;color:#d6d2c9;line-height:1.45}
.gate-facts{display:grid;gap:8px;margin:28px 0 0}
.gate-facts div{background:var(--tile-2);border-radius:14px;padding:14px 16px}
.gate-facts dt{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
.gate-facts dd{margin:2px 0 0;font-weight:600;font-size:16px}
.gate-inside{margin-top:20px;color:var(--muted);font-size:15px}
.gate-inside span{color:var(--fg);font-weight:700;margin-right:8px}
.gate-about .cs-back{align-self:flex-start}
.save-slot{background:rgba(255,255,255,.14);border-radius:20px;padding:18px;display:flex;align-items:center;gap:16px}
.save-slot .lockico{flex:none;width:56px;height:56px;border-radius:14px;background:#fff;color:var(--accent);display:grid;place-items:center}
.save-slot .lockico svg{width:26px;height:26px}
.save-slot b{display:block;font-size:18px}
.save-slot small{font-size:14px;opacity:.8}
.gate-nda{margin:22px 0;font-size:17px;line-height:1.5;opacity:.92}
.gate form{margin-top:auto}
.gate label{display:block;font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;margin-bottom:8px;opacity:.85}
.pw{display:flex;align-items:center;background:#fff;border-radius:16px;height:56px;padding:0 6px 0 18px}
.pw input{flex:1;border:0;outline:0;background:none;font:inherit;font-size:17px;color:#111;min-width:0}
.pw button{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;color:#555}
.gate .err{min-height:22px;margin:8px 0;font-size:15px;font-weight:600;color:#FFE3A1}
.gate .btn{width:100%;background:#111;color:#fff}
.gate .btn .key{background:rgba(255,255,255,.16);color:#fff}
.gate .back{display:none}
.gate form.shake{animation:shake .45s}
html.ld-cover body::before{content:"";position:fixed;inset:0;background:var(--ldc,var(--accent));z-index:148}
article.cs{padding-top:100px}
.gate-about .cs-back{background:var(--tile-2)}

/* ---------- icons (Material Symbols, rounded fill) ---------- */
.i{width:1.15em;height:1.15em;flex:none;display:inline-block;vertical-align:-.18em;fill:currentColor}
.key .i{width:14px;height:14px;vertical-align:0}
.chip .i,.icons .i{width:18px;height:18px}
.lock .i{width:15px;height:15px}
.label .i{width:15px;height:15px}
.t-link .arrow .i{width:28px;height:28px}
.cs-next-card i .i{width:22px;height:22px}
.pager .i{width:15px;height:15px}
.equip .slot .i{width:22px;height:22px}
.equip .go .i{width:14px;height:14px}
.save-slot .lockico .i{width:28px;height:28px}
.pw button .i{width:20px;height:20px}
.ic .i{width:20px;height:20px}
.trophy-btn .i{width:15px;height:15px;color:var(--gold)}
.toast i .i,.trophies li i .i{width:20px;height:20px}
.ld-spin .i{width:32px;height:32px}
.f-links a .i{width:20px;height:20px}
.f-links a span{display:inline-flex;align-items:center;gap:10px}
.viewer button .i{width:20px;height:20px}
.mi{display:inline-block;width:1em;height:1em;background:currentColor;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.callout strong::before{content:"";background:#111;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%20-960%20960%20960%22%3E%3Cpath%20d=%22M503.5-289.48q9.5-9.48%209.5-23.5t-9.48-23.52q-9.48-9.5-23.5-9.5t-23.52%209.48q-9.5%209.48-9.5%2023.5t9.48%2023.52q9.48%209.5%2023.5%209.5t23.52-9.48Zm1-152.15q8.5-8.62%208.5-21.37v-193q0-12.75-8.68-21.38-8.67-8.62-21.5-8.62-12.82%200-21.32%208.62-8.5%208.63-8.5%2021.38v193q0%2012.75%208.68%2021.37%208.67%208.63%2021.5%208.63%2012.82%200%2021.32-8.63ZM480.27-80q-82.74%200-155.5-31.5Q252-143%20197.5-197.5t-86-127.34Q80-397.68%2080-480.5t31.5-155.66Q143-709%20197.5-763t127.34-85.5Q397.68-880%20480.5-880t155.66%2031.5Q709-817%20763-763t85.5%20127Q880-563%20880-480.27q0%2082.74-31.5%20155.5Q817-252%20763-197.68q-54%2054.31-127%2086Q563-80%20480.27-80Z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%20-960%20960%20960%22%3E%3Cpath%20d=%22M503.5-289.48q9.5-9.48%209.5-23.5t-9.48-23.52q-9.48-9.5-23.5-9.5t-23.52%209.48q-9.5%209.48-9.5%2023.5t9.48%2023.52q9.48%209.5%2023.5%209.5t23.52-9.48Zm1-152.15q8.5-8.62%208.5-21.37v-193q0-12.75-8.68-21.38-8.67-8.62-21.5-8.62-12.82%200-21.32%208.62-8.5%208.63-8.5%2021.38v193q0%2012.75%208.68%2021.37%208.67%208.63%2021.5%208.63%2012.82%200%2021.32-8.63ZM480.27-80q-82.74%200-155.5-31.5Q252-143%20197.5-197.5t-86-127.34Q80-397.68%2080-480.5t31.5-155.66Q143-709%20197.5-763t127.34-85.5Q397.68-880%20480.5-880t155.66%2031.5Q709-817%20763-763t85.5%20127Q880-563%20880-480.27q0%2082.74-31.5%20155.5Q817-252%20763-197.68q-54%2054.31-127%2086Q563-80%20480.27-80Z%22/%3E%3C/svg%3E") center/contain no-repeat;border-radius:0}
.delivered .dot::after{content:"";background:#0d2a1b;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%20-960%20960%20960%22%3E%3Cpath%20d=%22m378-332%20363-363q9-9%2021.5-9t21.5%209q9%209%209%2021.5t-9%2021.5L399-267q-9%209-21%209t-21-9L175-449q-9-9-8.5-21.5T176-492q9-9%2021.5-9t21.5%209l159%20160Z%22/%3E%3C/svg%3E") center/16px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%20-960%20960%20960%22%3E%3Cpath%20d=%22m378-332%20363-363q9-9%2021.5-9t21.5%209q9%209%209%2021.5t-9%2021.5L399-267q-9%209-21%209t-21-9L175-449q-9-9-8.5-21.5T176-492q9-9%2021.5-9t21.5%209l159%20160Z%22/%3E%3C/svg%3E") center/16px no-repeat}
.toc a.done .tk::after{content:"";width:11px;height:11px;background:#0d2a1b;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%20-960%20960%20960%22%3E%3Cpath%20d=%22m378-332%20363-363q9-9%2021.5-9t21.5%209q9%209%209%2021.5t-9%2021.5L399-267q-9%209-21%209t-21-9L175-449q-9-9-8.5-21.5T176-492q9-9%2021.5-9t21.5%209l159%20160Z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%20-960%20960%20960%22%3E%3Cpath%20d=%22m378-332%20363-363q9-9%2021.5-9t21.5%209q9%209%209%2021.5t-9%2021.5L399-267q-9%209-21%209t-21-9L175-449q-9-9-8.5-21.5T176-492q9-9%2021.5-9t21.5%209l159%20160Z%22/%3E%3C/svg%3E") center/contain no-repeat}
.log li.done time::after{content:"";display:inline-block;width:13px;height:13px;margin-left:6px;vertical-align:-1px;background:var(--green);-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%20-960%20960%20960%22%3E%3Cpath%20d=%22m378-332%20363-363q9-9%2021.5-9t21.5%209q9%209%209%2021.5t-9%2021.5L399-267q-9%209-21%209t-21-9L175-449q-9-9-8.5-21.5T176-492q9-9%2021.5-9t21.5%209l159%20160Z%22/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%20-960%20960%20960%22%3E%3Cpath%20d=%22m378-332%20363-363q9-9%2021.5-9t21.5%209q9%209%209%2021.5t-9%2021.5L399-267q-9%209-21%209t-21-9L175-449q-9-9-8.5-21.5T176-492q9-9%2021.5-9t21.5%209l159%20160Z%22/%3E%3C/svg%3E") center/contain no-repeat}
details.acc summary::after{content:"";background:var(--tile-2) url("data:image/svg+xml,%3Csvg%20fill%3D%22%23ECE8DF%22%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%20-960%20960%20960%22%3E%3Cpath%20d=%22M450-450H230q-12.75%200-21.37-8.68-8.63-8.67-8.63-21.5%200-12.82%208.63-21.32%208.62-8.5%2021.37-8.5h220v-220q0-12.75%208.68-21.38%208.67-8.62%2021.5-8.62%2012.82%200%2021.32%208.62%208.5%208.63%208.5%2021.38v220h220q12.75%200%2021.38%208.68%208.62%208.67%208.62%2021.5%200%2012.82-8.62%2021.32-8.63%208.5-21.38%208.5H510v220q0%2012.75-8.68%2021.37-8.67%208.63-21.5%208.63-12.82%200-21.32-8.63-8.5-8.62-8.5-21.37v-220Z%22/%3E%3C/svg%3E") center/14px no-repeat}

/* footer contact tile */
.f-cta{background:var(--tile);color:var(--fg);display:flex;flex-direction:column}
.f-cta .label{color:var(--muted)}
.f-cta .f-big{font-size:clamp(34px,4.4vw,68px);letter-spacing:-.04em;line-height:1;margin:4px 0 28px;max-width:900px}
.f-email{display:flex;align-items:center;gap:16px;padding:14px 22px 14px 14px;border-radius:22px;background:var(--accent);color:#fff;font-size:clamp(18px,2vw,28px);font-weight:700;letter-spacing:-.02em;transition:transform .6s var(--ease)}
.f-email:hover{transform:translateY(-3px)}
.f-email .f-ico{flex:none;width:56px;height:56px;border-radius:16px;background:#fff;color:var(--accent);display:grid;place-items:center}
.f-email .f-ico .i{width:26px;height:26px}
.f-email .f-addr{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.f-email>.i{width:24px;height:24px;transition:transform .5s var(--ease)}
.f-email:hover>.i{transform:translate(3px,-3px)}
.f-cta .f-row{margin-top:12px}
.f-cta .btn{height:48px;font-size:15px}
.f-cta .btn .i{width:18px;height:18px}
.f-cta .btn.ghost{background:var(--tile-2);color:var(--fg)}
@media (max-width:600px){.f-time{display:none!important}.f-email{padding:10px 14px 10px 10px;font-size:15px}.f-email .f-ico{width:44px;height:44px}}

/* ---------- pictures with fallbacks ---------- */
.ph{position:relative;overflow:hidden;display:grid;place-items:center;background:var(--tile-3);color:var(--fg)}
.ph>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.04);transition:opacity .6s,transform 1s var(--ease)}
.ph>img.ok{opacity:1;transform:none}
.ph-fb{display:flex;flex-direction:column;align-items:center;gap:6px;font-weight:700;text-align:center;line-height:1}
.ph.has-img .ph-fb{visibility:hidden}

/* logos */
.logo{flex:none;width:44px;height:44px;border-radius:12px;background:var(--fg);color:#111;font-size:13px;letter-spacing:-.01em}
.logo>img{object-fit:contain;padding:6px;background:#fff}
.log li{grid-template-columns:auto 1fr auto}
.log time{display:inline-flex;align-items:center;gap:8px}
.log li.done time::after{display:none}
.tile.accent .logo{background:#fff;color:var(--accent)}

/* the "now" tile: no dead space */
.t-now{display:flex;flex-direction:column}
.t-now .t-foot{margin-top:auto;padding-top:24px}
.t-now .tile-head{margin-bottom:28px}
.t-now .chip .i{width:16px;height:16px}

/* skills: pick one to see where it was used */
.skills{display:flex;flex-direction:column}
.sk{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px;flex:1}
@media (max-width:820px){.sk{grid-template-columns:1fr}.sk-hint{display:none}}
.sk-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;align-content:start}
.sk-list button{width:100%;display:flex;align-items:center;gap:12px;height:46px;padding:0 14px;border-radius:14px;background:var(--tile-2);color:var(--muted);font-size:15px;font-weight:600;text-align:left;transition:background .3s,color .3s,transform .4s var(--ease)}
.sk-list button .i{width:18px;height:18px;color:var(--dim);transition:color .3s}
.sk-list button:hover{color:var(--fg);transform:translateX(3px)}
.sk-list button.on{background:var(--fg);color:#111}
.sk-list button.on .i{color:var(--accent)}
.sk-view{display:flex;flex-direction:column;gap:12px;min-width:0}
.sk-pic{position:relative;display:block;border-radius:var(--r-sm);overflow:hidden;aspect-ratio:4/3;background:var(--tile-2)}
.sk-img{position:absolute;inset:0}
.sk-img img,.sk-img .sk-icon{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.04);transition:opacity .45s,transform .9s var(--ease)}
.sk-img .on{opacity:1;transform:none}
.sk-icon{display:grid;place-items:center;background:var(--accent);color:#fff}
.sk-icon .i{width:72px;height:72px}
.sk-go{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;background:rgba(14,14,15,.8);color:#fff;font-size:14px;font-weight:600;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:transform .4s var(--ease)}
.sk-pic:hover .sk-go{transform:translateY(-2px)}
.sk-pic.no-link{pointer-events:none}
.sk-pic.no-link .sk-go{display:none}
.sk-where{display:block;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);font-weight:700}
.sk-line{margin-top:6px;font-size:16px;line-height:1.45;color:#d6d2c9}

/* off the clock: pictures */
.t-off{align-items:stretch;gap:clamp(20px,3vw,40px)}
.off-text{display:flex;flex-direction:column;max-width:440px}
.off-go{margin-top:auto;padding-top:24px;display:inline-flex;align-items:center;gap:8px;font-weight:700}
.off-go .i{transition:transform .5s var(--ease)}
.t-off:hover .off-go .i{transform:translateX(5px)}
.off-pics{flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:760px}
.off-pics .ph{aspect-ratio:3/4;border-radius:18px;transition:transform .7s var(--ease)}
.off-pics .ph .i{width:32px;height:32px}
.off-pics .ph small{font-size:12px;font-weight:700}
.t-off:hover .off-pics .ph:nth-child(odd){transform:translateY(-6px) rotate(-1.5deg)}
.t-off:hover .off-pics .ph:nth-child(even){transform:translateY(-10px) rotate(1.5deg)}
@media (max-width:900px){.t-off{flex-direction:column}.off-pics{max-width:none}}
/* about: covers, thumbs, sneaker photo */
.shelf{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;height:auto;margin-top:18px;align-items:end}
.cover{display:block;border-radius:14px;transition:transform .6s var(--ease)}
.cover .ph{aspect-ratio:2/3;border-radius:14px;color:#111}
.cover .ph-fb b{font-size:18px;letter-spacing:-.02em}
.cover .ph-fb small{font-size:12px;font-weight:600;opacity:.7}
.cover:hover,.cover.on{transform:translateY(-8px)}
.cover.on .ph{outline:3px solid var(--gold);outline-offset:3px}
.kick{display:block;aspect-ratio:16/9;border-radius:var(--r-sm);margin-bottom:10px}
.kick:not(.has-img){display:none}
.lib-l{display:inline-flex;align-items:center;gap:12px}
.ph.thumb{width:36px;height:48px;border-radius:8px;flex:none}
.ph.thumb .i{width:16px;height:16px}
.lib li.now .ph.thumb{background:rgba(255,255,255,.2);color:#fff}
.lib li{padding:10px 16px 10px 10px}
.rules.stack{min-height:0}
.rules.stack ol{display:grid;gap:8px}
.rules.stack li{position:static;opacity:1;transform:none;background:var(--tile-2);border-radius:16px;padding:16px 18px}
.rules.stack h3{font-size:19px;letter-spacing:-.015em}
.rules.stack p{margin-top:4px;font-size:15px}
/* about: intro with picture jump links */
.intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(20px,3vw,40px)}
@media (max-width:900px){.intro{grid-template-columns:1fr}}
.intro-text{display:flex;flex-direction:column}
.intro-text .t-big{margin-top:8px}
.intro-text .st-now{margin-top:auto;padding-top:28px}
.intro-pics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media (max-width:600px){.intro-pics{grid-template-columns:1fr 1fr}}
.intro-pics a{position:relative;display:block;border-radius:18px;overflow:hidden;transition:transform .7s var(--ease)}
.intro-pics .ph{aspect-ratio:3/4.4;border-radius:18px}
.intro-pics .ph .i{width:34px;height:34px}
.intro-pics .ip-l{position:absolute;left:8px;right:8px;bottom:8px;display:flex;justify-content:space-between;align-items:center;height:34px;padding:0 12px;border-radius:12px;background:rgba(14,14,15,.78);color:#fff;font-size:13px;font-weight:700;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.intro-pics .ip-l .i{width:14px;height:14px;transition:transform .5s var(--ease)}
.intro-pics a:hover{transform:translateY(-8px) rotate(-1.5deg)}
.intro-pics a:nth-child(even):hover{transform:translateY(-8px) rotate(1.5deg)}
.intro-pics a:hover .ip-l .i{transform:translateY(3px)}

/* about: sneakers */
.kicks{display:grid;gap:10px}
.kicks.n2,.kicks.n4{grid-template-columns:1fr 1fr}
.kicks.n3{grid-template-columns:repeat(3,1fr)}
.kick-card{margin:0;position:relative;border-radius:var(--r-sm);overflow:hidden}
.kick-card .ph{aspect-ratio:16/11;border-radius:var(--r-sm)}
.kicks.n1 .kick-card .ph{aspect-ratio:16/10}
.kick-card .ph .i{width:30%;height:30%;max-width:120px;max-height:120px;transition:transform 1s var(--ease)}
.kick-card:hover .ph .i{transform:rotate(-12deg) scale(1.08) translateX(-6%)}
.kick-card .ph>img{transition:opacity .6s,transform 1.2s var(--ease)}
.kick-card:hover .ph>img.ok{transform:scale(1.06)}
.kick-card figcaption{position:absolute;left:12px;bottom:12px;display:flex;flex-direction:column;padding:10px 14px;border-radius:14px;background:rgba(14,14,15,.8);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.kick-card figcaption b{font-size:17px}
.kick-card figcaption small{font-size:14px;opacity:.8}

/* about: games and anime covers */
.covers{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.cv{margin:0;transition:transform .6s var(--ease)}
.cv:hover{transform:translateY(-6px)}
.cv .ph{aspect-ratio:2/3;border-radius:14px}
.cv .ph .i{width:30px;height:30px}
.cv figcaption{margin-top:8px;display:flex;flex-direction:column}
.cv figcaption b{font-size:15px;line-height:1.2}
.cv figcaption small{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:600}
.cv.now figcaption small{color:var(--green)}
.intro-pics .ph{aspect-ratio:auto;height:100%;min-height:240px}
.ld-title .w{display:inline-block;white-space:nowrap}
.ld-title .w>span{display:inline-block;transform:translateY(105%);transition:transform .8s var(--ease)}
.loader.in .ld-title .w>span,html.ld-cover .ld-title .w>span,.loader.held .ld-title .w>span{transform:none}
.loader.out .ld-title .w>span{transform:translateY(-40px);opacity:0;transition:transform .6s var(--ease),opacity .4s}
.ld-title .w{transform:none!important}
.ld-four{width:min(30vw,440px)}
.ld-one{box-shadow:none}
.loader.in ~ .cursor,html.ld-cover .cursor{opacity:0!important}
.ld-title{padding-bottom:.16em;margin-bottom:-.1em}
/* how I work: sticky notes */
.notes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.notes li{position:relative;background:var(--n);color:var(--ni);border-radius:6px 6px 18px 6px;padding:16px 16px 18px;min-height:150px;display:flex;flex-direction:column;cursor:default;transform:rotate(var(--r,0deg));transition:transform .6s var(--ease)}
.notes li:nth-child(1){--r:-2.5deg}.notes li:nth-child(2){--r:2deg}.notes li:nth-child(3){--r:1.5deg}.notes li:nth-child(4){--r:-1.8deg}
.notes li:hover{transform:rotate(0deg) translateY(-6px) scale(1.04);z-index:2}
.notes li.wig{animation:wig .6s var(--ease)}
@keyframes wig{0%,100%{transform:rotate(var(--r))}25%{transform:rotate(calc(var(--r) - 6deg)) scale(1.05)}60%{transform:rotate(calc(var(--r) + 4deg)) scale(1.03)}}
.note-ic{width:34px;height:34px;border-radius:10px;background:rgba(0,0,0,.12);display:grid;place-items:center;margin-bottom:auto}
.note-ic .i{width:18px;height:18px}
.notes h3{font-size:17px;letter-spacing:-.015em;line-height:1.15;margin-top:18px}
.notes p{font-size:13.5px;line-height:1.35;margin-top:6px;opacity:.8}
@media (max-width:1000px){.notes li{min-height:130px}}
.how .notes{grid-template-columns:repeat(4,1fr);gap:16px}
.how .notes li{min-height:190px;padding:20px 20px 22px}
.how .notes h3{font-size:22px}
.how .notes p{font-size:15px}
@media (max-width:900px){.how .notes{grid-template-columns:1fr 1fr}}
.cur::before{display:none!important}
/* about intro: portrait */
.intro{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
.intro-text{justify-content:center}
.intro-me{margin:0;position:relative;border-radius:var(--r-sm);overflow:hidden;min-height:340px}
.intro-me .ph{position:absolute;inset:0;background:var(--accent);color:#fff}
.intro-me .mono{font-size:clamp(150px,16vw,230px);letter-spacing:-.06em;line-height:.8;transform:translateY(-18%);transition:transform 1.2s var(--ease)}
.intro-me:hover .mono{transform:translateY(-22%) rotate(-4deg)}
.intro-me figcaption{position:absolute;left:12px;right:12px;bottom:12px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border-radius:16px;background:rgba(14,14,15,.82);color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.intro-me figcaption b{display:block;font-size:17px}
.intro-me figcaption small{font-size:13px;opacity:.75}
.intro-me .st-now{margin:0;padding:0;color:#fff;font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:6px}

/* ===== loading screen v3: calm, centred, easy to read ===== */
.loader{align-items:center;justify-content:center;padding:var(--pad)}
.loader-in{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;max-width:none;width:auto;grid-template-columns:none;grid-template-rows:none}
.loader .ld-media{grid-column:auto;grid-row:auto;align-self:auto;width:min(44vw,520px);opacity:0;transform:scale(.92);transition:opacity .5s ease,transform .9s var(--ease)}
.loader .ld-one{aspect-ratio:4/3;border-radius:24px;overflow:hidden}
.loader .ld-four{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:min(34vw,380px)}
.loader .ld-four>span{opacity:1;transform:none;transition:none;border-radius:18px}
.ld-text{display:flex;flex-direction:column;align-items:center;gap:14px;opacity:0;transform:translateY(12px);transition:opacity .5s ease .15s,transform .8s var(--ease) .15s}
.loader .ld-title{font-size:clamp(24px,2.6vw,36px);font-weight:700;letter-spacing:-.02em;line-height:1.15;text-align:center;overflow:visible;padding:0;margin:0}
.loader .ld-bar{grid-column:auto;grid-row:auto;width:160px;height:4px;border-radius:4px;background:rgba(127,127,127,.35)}
.loader.in .ld-media,html.ld-cover .loader .ld-media,.loader.held .ld-media{opacity:1;transform:none}
.loader.in .ld-text,html.ld-cover .loader .ld-text,.loader.held .ld-text{opacity:1;transform:none}
.loader.out .ld-media,.loader.out .ld-text{opacity:0;transform:translateY(-16px);transition:opacity .35s ease,transform .6s var(--ease)}
@media (max-width:820px){.loader .ld-media{width:min(80vw,420px)}.loader .ld-four{width:min(64vw,320px)}}
.cv .ph-fb small{font-size:11px;font-weight:700;padding:0 8px;line-height:1.2;max-width:100%}
.cv .ph-fb small{display:none}

/* ===== footer: one contact tile ===== */
.f-cta{grid-column:1/-1}
.f-cta .f-big{max-width:1000px;font-size:clamp(30px,3.6vw,56px);line-height:1.05}
.f-mailrow{display:flex;gap:10px;align-items:stretch}
.f-copy{flex:none;width:84px;border-radius:22px;background:var(--tile-2);color:var(--fg);display:grid;place-items:center;position:relative;transition:background .3s,transform .4s var(--ease)}
.f-copy:hover{background:var(--tile-3)}
.f-copy:active{transform:scale(.95)}
.f-copy .i{width:26px;height:26px}
.f-copy.done{background:var(--green);color:#0d2a1b}
.f-copy .f-copied{position:absolute;bottom:8px;font-size:11px;font-weight:700}
.f-copy .f-copied:empty{display:none}
.f-copy.done .i{transform:translateY(-6px)}
.f-mailrow .f-email{flex:1;min-width:0}
.f-cta .f-row{margin-top:12px}
@media (max-width:600px){.f-copy{width:64px;border-radius:18px}}

/* ===== hero as bento ===== */
.hero-bento{margin-top:clamp(20px,3vw,36px)}
.hero-tile{display:flex;flex-direction:column;justify-content:space-between;gap:40px;min-height:280px}
.hero-tile .hero-tag{grid-column:auto;font-size:clamp(28px,3.4vw,52px);letter-spacing:-.035em;line-height:1.06}
.hero-tile .roll{height:1.06em;line-height:1.06}
.hero-work{display:flex;flex-direction:column;gap:14px;transition:transform .7s var(--ease)}
.hero-work:hover{transform:translateY(-4px)}
.hw-pics{display:grid;grid-template-columns:1fr 1fr;gap:8px;flex:1}
.hw-pics span{border-radius:14px;overflow:hidden;min-height:84px;transition:transform .8s var(--ease)}
.hw-pics img{width:100%;height:100%;object-fit:cover}
.hero-work:hover .hw-pics span:nth-child(1){transform:rotate(-3deg) translate(-3px,-3px)}
.hero-work:hover .hw-pics span:nth-child(2){transform:rotate(3deg) translate(3px,-3px)}
.hero-work:hover .hw-pics span:nth-child(3){transform:rotate(2deg) translate(-3px,3px)}
.hero-work:hover .hw-pics span:nth-child(4){transform:rotate(-2deg) translate(3px,3px)}
.hw-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}
.hw-foot b{display:block;font-size:20px;letter-spacing:-.02em}
.hw-foot small{font-size:14px;color:#5f5a52}
.hw-go{width:44px;height:44px;border-radius:50%;background:#111;color:#fff;display:grid;place-items:center;flex:none;transition:transform .5s var(--ease)}
.hw-go .i{width:20px;height:20px}
.hero-work:hover .hw-go{transform:translateY(4px)}

/* ===== about: playlists ===== */
.plists{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:600px){.plists{grid-template-columns:1fr}}
.plist{display:grid;grid-template-columns:52px 1fr auto;gap:12px;align-items:center;padding:8px 14px 8px 8px;border-radius:16px;background:var(--tile-2);transition:background .3s,transform .4s var(--ease)}
.plist:hover{background:var(--tile-3);transform:translateY(-2px)}
.plist .ph{width:52px;height:52px;border-radius:10px;background:var(--tile-3)}
.plist .ph .i{width:20px;height:20px}
.pl-t b{display:block;font-size:16px}
.pl-t small{font-size:12px;color:var(--muted)}
.plist>.i{width:16px;height:16px;color:var(--muted)}

/* ===== top bar on phones: calmer ===== */
@media (max-width:600px){
  .hud-in{padding:10px 12px;gap:8px}
  .hud-pill{height:40px;padding:0 4px 0 14px}
  .hud-name{font-size:16px}
  .hud nav.hud-pill{padding:0 4px!important}
  .hud-links{padding:0 2px;gap:0}
  .hud-links a{height:32px;padding:0 10px;font-size:14px}
  .trophy-btn{width:32px;height:32px;padding:0;justify-content:center}
  .trophy-btn .t-n{display:none}
  main{padding-top:72px}
}
/* rolling word: a calm crossfade */
.hero-tag .roll,.hero-tile .roll{display:inline-grid;vertical-align:baseline;height:auto;overflow:visible;line-height:inherit;transition:width .6s var(--ease)}
.hero-tag .roll span{grid-area:1/1;justify-self:start;white-space:nowrap;opacity:0;transform:translateY(.25em);transition:opacity .45s ease,transform .7s var(--ease)}
.hero-tag .roll span.on{opacity:1;transform:none}
/* ===== hero: minimal quick intro ===== */
.hero-intro{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(24px,5vw,96px);align-items:end;margin-top:clamp(24px,3.4vw,48px)}
@media (max-width:900px){.hero-intro{grid-template-columns:1fr}}
.hero-intro .hero-tag{font-size:clamp(28px,3.2vw,48px);letter-spacing:-.035em;line-height:1.08;max-width:780px}
.hero-facts{margin:0;display:grid;gap:16px}
.hero-facts>div{display:grid;grid-template-columns:110px 1fr;gap:16px;align-items:baseline}
.hero-facts dt{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:600}
.hero-facts dd{margin:0;font-size:18px;line-height:1.35;font-weight:600}
.hero-links{display:flex!important;gap:24px;padding-top:6px}
.hero-links a{display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:16px;color:var(--fg);transition:color .3s}
.hero-links a:hover{color:var(--accent)}
.hero-links .i{width:16px;height:16px;transition:transform .4s var(--ease)}
.hero-links a:hover .i{transform:translate(2px,2px)}
.hero-links a:last-child:hover .i{transform:translate(2px,-2px)}
@media (max-width:600px){.hero-facts>div{grid-template-columns:96px 1fr}.hero-facts dd{font-size:16px}}
.hero-intro .hero-tag{grid-column:auto}
.toast{transform:translate(-50%,calc(100% + 48px))}
.toast:empty{visibility:hidden}

/* ===== page transitions v4: card zoom + soft fade ===== */
.zoom{position:fixed;inset:0;z-index:150;pointer-events:none;visibility:hidden}
.zoom.on,.zoom.cover{visibility:visible}
.zoom.grow{transition:clip-path .62s cubic-bezier(.7,0,.2,1)}
.zoom img{position:fixed;object-fit:cover;border-radius:18px;transition:left .62s cubic-bezier(.7,0,.2,1),top .62s cubic-bezier(.7,0,.2,1),width .62s cubic-bezier(.7,0,.2,1),height .62s cubic-bezier(.7,0,.2,1),border-radius .62s}
.zoom.cover{clip-path:none}
.zoom.cover.fade{opacity:0;transition:opacity .55s ease}
main,article.cs,.gate{animation:pageIn .6s cubic-bezier(.22,1,.36,1) both}
@keyframes pageIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
body.leaving main,body.leaving article.cs,body.leaving .gate,body.leaving .footer{opacity:0;transform:translateY(-12px);transition:opacity .3s ease,transform .32s ease}
@media (prefers-reduced-motion:reduce){main,article.cs,.gate{animation:none}}

/* ===== about: games first ===== */
.play-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:16px;align-items:start}
.play-now{margin:0}
.play-now .ph{aspect-ratio:16/8;border-radius:18px}
.play-now .ph .i{width:44px;height:44px}
.play-now figcaption{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.play-now figcaption b{font-size:clamp(26px,3vw,40px);line-height:1.05;letter-spacing:-.02em}
.play-now .pill{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;background:var(--tile-2);border-radius:999px;padding:6px 12px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--green)}
.play-side{display:flex;flex-direction:column}
.play-side>.label{margin-bottom:12px}
.play .covers.games{grid-template-columns:1fr 1fr}
.play-fav{margin-top:18px}
.play-fav .label{margin-bottom:10px}
.fav{display:flex;align-items:center;gap:14px;background:var(--tile-2);border-radius:16px;padding:14px;margin-top:8px}
.fav b{font-size:18px}
.fav-ic{width:44px;height:44px;border-radius:12px;background:var(--gold);color:#111;display:grid;place-items:center;flex:none}
.fav-ic .i{width:22px;height:22px}
.fav .ph{width:92px;aspect-ratio:460/215;border-radius:10px;flex:none}
.watch{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
#sound .plists{grid-template-columns:repeat(4,1fr)}
@media (max-width:900px){.play-grid{grid-template-columns:1fr}#sound .plists{grid-template-columns:1fr 1fr}.watch{grid-template-columns:repeat(3,1fr)}}
@media (max-width:600px){#sound .plists{grid-template-columns:1fr}}
#sneakers{display:flex;flex-direction:column}
#sneakers .kicks.n1{flex:1;grid-template-rows:1fr}
#sneakers .kicks.n1 .kick-card{display:flex}
#sneakers .kicks.n1 .kick-card .ph{aspect-ratio:auto;flex:1;min-height:300px}
@media (max-width:900px){#sneakers .kicks.n1 .kick-card .ph{aspect-ratio:16/10;min-height:0}}
/* hero: just the line and two links */
.hero-intro{grid-template-columns:minmax(0,1fr) auto}
.hero-intro>.hero-links{justify-content:flex-end;padding:0 0 .35em}
@media (max-width:900px){.hero-intro>.hero-links{justify-content:flex-start}}
@media (max-width:900px){.hero-intro{grid-template-columns:1fr;gap:20px}}
/* header left: just the name, same on every screen size */
.hud-lv{display:none!important}
.hud-in>.hud-pill:first-child{padding:0 18px}
@media (max-width:600px){.hud-in>.hud-pill:first-child{padding:0 14px}}
/* hero, seroba.work style: line on the left, two small labels on the right */
.hero-intro{grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px;gap:0 16px;align-items:end}
.hero-intro .hero-tag{grid-column:1 / span 7;margin:0;font-size:clamp(26px,2.7vw,42px);font-weight:600;letter-spacing:-.04em;line-height:1.14;max-width:16.5em}
.hero-intro .hero-tag .dim{display:block;color:#8C887F}
.hero-intro .hero-meta{grid-column:9 / span 4;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:flex-end;gap:7px;margin:0 0 .45em;font-size:13px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:#8C887F;text-align:right}
.hero-intro .hero-meta span:first-child{color:var(--fg)}
@media (max-width:900px){
  .hero-intro{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
  .hero-intro .hero-tag{font-size:26px;max-width:none}
  .hero-intro .hero-tag .dim{display:inline}
  .hero-intro .hero-meta{flex-direction:row;flex-wrap:wrap;align-items:center;gap:0;margin:0;font-size:11px;text-align:left}
  .hero-intro .hero-meta span+span::before{content:"·";margin:0 8px;color:#5C5852}
}
/* LinkedIn: its own box on the right of the email, mirroring copy on the left */
.f-li{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:112px;border-radius:22px;background:#0A66C2;color:#fff;font-size:13px;font-weight:700;transition:transform .5s var(--ease),background .3s}
.f-li:hover{transform:translateY(-3px);background:#0B74DC}
.f-li .i{width:28px;height:28px}
@media (max-width:600px){.f-li{width:64px;border-radius:18px}.f-li span{display:none}}
@media (max-width:600px){
  .f-mailrow{flex-wrap:wrap}
  .f-mailrow .f-email{order:-1;flex:1 1 100%}
  .f-mailrow .f-copy,.f-mailrow .f-li{flex:1 1 0;width:auto;height:56px}
  .f-li{flex-direction:row;gap:8px}
  .f-li span{display:inline}
}
@media (max-width:600px){.f-mailrow .f-email{font-size:14px;gap:12px;padding:8px 14px 8px 8px}.f-mailrow .f-email .f-ico{width:40px;height:40px;border-radius:12px}.f-mailrow .f-email>.i{display:none}}
/* sticky notes: one icon treatment, one text colour */
.note-ic{width:44px;height:44px;border-radius:12px;background:#111;color:var(--n);margin-bottom:0}
.note-ic .i{width:22px;height:22px}
.notes h3{margin-top:auto;padding-top:24px}
/* listening: compact, artists only */
.sound-mini{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:32px;align-items:center}
.sound-mini .label{margin-bottom:14px}
.sound-mini .t-sub{margin-top:8px}
.sound-mini .sleeves{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
@media (max-width:900px){.sound-mini{grid-template-columns:1fr;gap:20px}.sound-mini .sleeves{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* ===== selected work as a bento ===== */
.work{grid-template-columns:repeat(12,minmax(0,1fr))}
.work .card{display:flex;flex-direction:column}
.work .b-feat{grid-column:span 7;grid-row:span 2}
.work .b-feat .card-img{aspect-ratio:auto;flex:1;min-height:380px}
.work .b-side{grid-column:span 5}
.work .b-side .card-img{aspect-ratio:16/8}
.work .b-side h3{font-size:clamp(22px,2vw,28px)}
.work .b-side p{font-size:15px}
.work .b-wide{grid-column:1/-1;flex-direction:row-reverse;align-items:stretch;gap:8px;padding:16px}
.work .b-wide .card-img{flex:0 0 60%;aspect-ratio:21/8}
.work .b-wide .card-text{flex:1;display:flex;flex-direction:column;justify-content:flex-end;padding:8px 16px 8px 8px}
@media (max-width:820px){
  .work{grid-template-columns:1fr}
  .work .card{grid-column:auto!important;grid-row:auto!important}
  .work .b-feat .card-img{flex:none;aspect-ratio:16/11;min-height:0}
  .work .b-side .card-img{aspect-ratio:16/11}
  .work .b-wide{flex-direction:column;padding:16px 16px 22px}
  .work .b-wide .card-img{flex:none;aspect-ratio:16/11}
  .work .b-wide .card-text{padding:20px 8px 0}
}
/* ===== work bento v2: two even rows, wide + narrow then narrow + wide ===== */
.work .card{grid-row:auto}
.work .b-7{grid-column:span 7}
.work .b-5{grid-column:span 5}
.work .b-7 .card-img,.work .b-5 .card-img{aspect-ratio:auto;flex:1;min-height:clamp(260px,26vw,400px)}
.work .b-5 h3,.work .b-7 h3{font-size:clamp(24px,2.3vw,32px)}
.work .b-5 p,.work .b-7 p{font-size:16px}
.work .card-text{min-height:150px}
@media (max-width:820px){.work .b-7 .card-img,.work .b-5 .card-img{flex:none;aspect-ratio:16/11;min-height:0}.work .card-text{min-height:0}}
.work .b-7 .card-img,.work .b-5 .card-img{flex:none;height:clamp(260px,28vw,420px);min-height:0}
.work .card-img img{position:absolute;inset:0}
@media (max-width:820px){.work .b-7 .card-img,.work .b-5 .card-img{height:auto;aspect-ratio:16/11}}
.intro .t-big .dim{display:block}
/* about tiles without subtitles: keep a little air under the headings */
#library .t-big{margin-bottom:24px}
#sneakers .t-title,#shelf .t-title{margin-bottom:20px}
/* about intro: the rolling word, same feel as the home page */
.intro .t-big .roll{display:inline-grid;vertical-align:baseline;color:var(--accent);transition:width .6s var(--ease)}
.intro .t-big .roll span{grid-area:1/1;justify-self:start;white-space:nowrap;opacity:0;transform:translateY(.25em);transition:opacity .45s ease,transform .7s var(--ease)}
.intro .t-big .roll span.on{opacity:1;transform:none}
/* ===== games v2: one big card + two stacked, all the same build ===== */
.play-grid{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr 1fr;gap:12px;height:clamp(320px,32vw,460px)}
.pg{position:relative;margin:0;border-radius:18px;overflow:hidden;min-height:0}
.pg-main{grid-row:1 / span 2}
.pg .ph{position:absolute;inset:0;border-radius:0}
.pg .ph .i{width:40px;height:40px}
.pg .ph img{transition:transform 1.2s var(--ease)}
.pg:hover .ph img{transform:scale(1.04)}
.pg-tag{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-radius:12px;background:#0E0E0F;color:var(--fg)}
.pg-tag small{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.pg-main .pg-tag small{color:var(--green)}
.pg-tag b{font-size:15px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pg-main .pg-tag{left:16px;bottom:16px;padding:14px 18px}
.pg-main .pg-tag b{font-size:clamp(20px,2vw,28px);letter-spacing:-.02em}
@media (max-width:700px){
  .play-grid{grid-template-columns:1fr 1fr;grid-template-rows:auto auto;height:auto}
  .pg-main{grid-column:1 / -1;grid-row:auto;aspect-ratio:16/10}
  .pg:not(.pg-main){aspect-ratio:616/353}
  .pg:not(.pg-main) .pg-tag{left:8px;bottom:8px;padding:8px 10px}
  .pg:not(.pg-main) .pg-tag b{font-size:13px}
}
.play-grid{align-items:stretch}
@media (max-width:700px){.pg:not(.pg-main) .pg-tag small{display:none}}

/* =====================================================================
   RESPONSIVE — one place for every screen size. Rules here win over
   everything above. Breakpoints: 1100 (small laptop), 900 (tablet),
   600 (phone), 380 (small phone).
   ===================================================================== */

/* ---- small laptops & tablets in landscape ---- */
@media (max-width:1100px){
  .how .notes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .how .notes li{min-height:150px}
  .work .b-7 .card-img,.work .b-5 .card-img{height:clamp(220px,30vw,320px)}
}

/* ---- tablets ---- */
@media (max-width:900px){
  /* work: two even columns, no wide/narrow split */
  .work{grid-template-columns:repeat(2,minmax(0,1fr))}
  .work .b-7,.work .b-5{grid-column:span 1!important}
  .work .b-7 .card-img,.work .b-5 .card-img{height:auto;aspect-ratio:4/3}
  .work .card-text{min-height:0}
  .work .card h3{font-size:24px}
  .work .card p{font-size:15px}
  /* about: intro stacks, portrait becomes a wide banner */
  .intro{grid-template-columns:1fr!important}
  .intro-me{min-height:0;aspect-ratio:16/9}
  .intro-me .mono{font-size:clamp(110px,22vw,180px)}
  /* listening keeps one row of six */
  .sound-mini .sleeves{grid-template-columns:repeat(6,minmax(0,1fr))}
  /* games */
  .play-grid{height:clamp(300px,48vw,420px)}
}

/* ---- phones ---- */
@media (max-width:600px){
  :root{--gap:12px}
  .tile{padding:20px}
  .t-big{font-size:clamp(28px,8vw,36px)}
  /* work: one column */
  .work{grid-template-columns:1fr}
  .work .card-img,.work .b-7 .card-img,.work .b-5 .card-img{aspect-ratio:16/11}
  .work .card-top .start{display:none}
  /* experience & education rows: date moves under the role */
  .log li{grid-template-columns:auto minmax(0,1fr);padding:14px;gap:12px;row-gap:4px}
  .log li time{grid-column:2;font-size:13px}
  .log b{font-size:16px}
  .log small{font-size:13px}
  /* sticky notes: one per row, flatter tilt */
  .how .notes{grid-template-columns:1fr;gap:14px}
  .how .notes li{min-height:0;padding:18px 18px 20px;transform:rotate(calc(var(--r,0deg) * .4))}
  .how .notes h3{font-size:20px;padding-top:18px}
  .how .tile-head{flex-wrap:wrap;gap:4px 12px}
  /* about intro */
  .intro-me{aspect-ratio:4/3}
  .intro-me figcaption{left:8px;right:8px;bottom:8px;padding:10px 12px}
  /* listening: two rows of three, smaller initials */
  .sound-mini .sleeves{grid-template-columns:repeat(3,minmax(0,1fr))}

  /* off-the-clock pictures stay in one row */
  .off-pics{grid-template-columns:repeat(4,minmax(0,1fr))}
  /* reading shelf */
  .shelf{gap:8px}
  /* section headings */
  .sec-head h2,#sheet-h{font-size:clamp(26px,7vw,32px)}
  /* side project / quiz labels wrap tidily */
  .tile-head{flex-wrap:wrap;row-gap:8px}
}

/* ---- small phones ---- */
@media (max-width:380px){
  .hud-links a{padding:0 8px;font-size:13px}
  .hud-in{gap:6px}
  .t-big{font-size:28px}
  .off-pics small{display:none}
  .f-mailrow .f-email{font-size:13px}
}
/* sleeve fallback initials sit top-left so they never collide with the name */
.sleeve .ini{place-items:start;padding:10px 12px;font-size:clamp(18px,2.2vw,28px);line-height:1}
/* tablets: Entelect gets its own row so experience + education sit side by side */
@media (max-width:1000px) and (min-width:601px){.bento .t-now{grid-column:span 12}}
/* off-the-clock pictures don't tower on tablets */
@media (max-width:900px){.off-pics .ph{aspect-ratio:1/1;height:auto}}
@media (max-width:900px){
  .log li{grid-template-columns:auto minmax(0,1fr);row-gap:4px}
  .log li time{grid-column:2;font-size:13px}
}
/* logos: Entelect's mark sits on its own dark square, the rest on white */
.logo[data-fit="cover"]>img{object-fit:cover;padding:0;background:#0E0E0F}
.logo>img{padding:5px}

/* =====================================================================
   PAGE TRANSITIONS (v5): the browser's own view transitions.
   The top bar stays put, pages slide into each other, and a project card
   grows into its case study (and shrinks back when you return).
   Browsers without support fall back to the fade in js/game.js.
   ===================================================================== */
@view-transition{navigation:none}
.hud{view-transition-name:hud}
html.vt main,html.vt article.cs,html.vt .gate{animation:none}
::view-transition-group(*){animation-duration:.6s;animation-timing-function:cubic-bezier(.65,0,.15,1)}
::view-transition-old(root){animation:vtOut .38s cubic-bezier(.4,0,1,1) both}
::view-transition-new(root){animation:vtIn .62s cubic-bezier(.16,1,.3,1) .08s both}
@keyframes vtOut{to{opacity:0;transform:translateY(-28px) scale(.985);filter:blur(2px)}}
@keyframes vtIn{from{opacity:0;transform:translateY(36px)}}
/* a project morphing into its case study: crossfade the two looks while it grows */
::view-transition-old(*):not(::view-transition-old(root)),
::view-transition-new(*):not(::view-transition-new(root)){animation-duration:.6s;height:100%;object-fit:cover;overflow:clip}
::view-transition-group(hud){animation:none}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* =====================================================================
   TEXT THAT MOVES, WITHOUT LOOKING CHOPPY
   ===================================================================== */
/* big name: one solid word sliding up from behind its mask (letters keep their spacing) */
.fit-mask .fit{transform:translateY(102%);transition:transform 1.2s cubic-bezier(.16,1,.3,1) .05s}

.ready .fit-mask .fit{transform:none}
@media (prefers-reduced-motion:reduce){.fit-mask .fit{transform:none;transition:none}}

/* rolling word: a slot machine reel. Old word slides up and out, new one rises in. */
.hero-tag .roll,.intro .t-big .roll{display:inline-grid;vertical-align:bottom;overflow:clip;overflow-clip-margin:0 0 .18em 0;
  padding-bottom:.08em;margin-bottom:-.08em;line-height:inherit;color:var(--accent);transition:width .7s cubic-bezier(.65,0,.15,1)}
.hero-tag .roll span,.intro .t-big .roll span{grid-area:1/1;justify-self:start;white-space:nowrap;opacity:0;transform:translateY(105%);
  transition:transform .7s cubic-bezier(.65,0,.15,1),opacity .35s ease}
.hero-tag .roll span.on,.intro .t-big .roll span.on{opacity:1;transform:none}
.hero-tag .roll span.out,.intro .t-big .roll span.out{opacity:0;transform:translateY(-105%)}

/* statement line: words light up in a quick wave once you reach it, then stay lit */
.rv-words span{opacity:.22;transition:opacity .6s ease}
.rv-words.lit span{opacity:1}

/* =====================================================================
   SNEAKERS: my pair + what's on my radar
   ===================================================================== */
#sneakers{display:flex;flex-direction:column}
#sneakers .kicks.n1{flex:none}
.kick-card{display:block;position:relative;border-radius:var(--r-sm);overflow:hidden;color:inherit}
#sneakers .kicks.n1 .kick-card .ph{aspect-ratio:16/10;min-height:0}
.kick-card .ph>img{object-fit:cover;object-position:50% 58%}
.kick-card .ph>img.ok{animation:kickFloat 6s ease-in-out infinite}
@keyframes kickFloat{0%,100%{translate:0 0;rotate:0deg}50%{translate:0 -6px;rotate:-1.2deg}}
.kick-tag{position:absolute;left:12px;bottom:12px;display:flex;flex-direction:column;gap:1px;padding:10px 14px;border-radius:12px;background:#0E0E0F;color:var(--fg)}
.kick-tag small{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.kick-tag b{font-size:16px;line-height:1.2}
.kick-tag em{font-style:normal;font-size:14px;color:#FF7A1A}
.kick-credit{position:absolute;right:12px;top:12px;font-size:11px;font-weight:600;color:#6b6b6b}
.radar{margin-top:16px}
.radar .label{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.radar .via{text-transform:none;letter-spacing:0;font-weight:500;color:var(--muted)}
.radar .via a{color:var(--fg);text-decoration:underline;text-underline-offset:2px}
.radar-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.rk{display:flex;flex-direction:column;gap:8px;color:var(--fg);transition:translate .5s var(--ease)}
.rk .ph{aspect-ratio:1/1;border-radius:14px}
.rk .ph>img{object-fit:cover;transition:scale 1s var(--ease)}
.rk b{font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rk:hover{translate:0 -4px}
.rk:hover .ph>img{scale:1.06}

/* =====================================================================
   LITTLE THINGS THAT MOVE (all quiet, all switch off for reduced motion)
   ===================================================================== */
/* live dots send out a soft ring */
.live{position:relative;animation:none;opacity:1}
.live::after{content:"";position:absolute;inset:0;border-radius:50%;background:inherit;animation:ring 2.2s cubic-bezier(.2,.6,.3,1) infinite}
@keyframes ring{0%{transform:scale(1);opacity:.7}100%{transform:scale(3.2);opacity:0}}
/* sticky notes drift a little, each on its own beat */
.notes li{animation:drift 7s ease-in-out infinite}
.notes li:nth-child(2){animation-delay:-1.7s;animation-duration:8s}
.notes li:nth-child(3){animation-delay:-3.4s;animation-duration:7.5s}
.notes li:nth-child(4){animation-delay:-5.1s;animation-duration:8.5s}
@keyframes drift{0%,100%{translate:0 0}50%{translate:0 -5px}}
/* off-the-clock pictures bob like a row of game tiles */
.off-pics .ph{animation:bobTile 5s ease-in-out infinite}
.off-pics .ph:nth-child(2){animation-delay:-1.25s}.off-pics .ph:nth-child(3){animation-delay:-2.5s}.off-pics .ph:nth-child(4){animation-delay:-3.75s}
@keyframes bobTile{0%,100%{translate:0 0}50%{translate:0 -6px}}
/* "take a look" arrow nudges you along */
.off-go .i{animation:nudge 1.8s cubic-bezier(.65,0,.35,1) infinite}
@keyframes nudge{0%,60%,100%{translate:0 0}30%{translate:5px 0}}
/* the lock on private projects jiggles when you hover the card */
.card:hover .lock .i{animation:jiggle .6s ease}
@keyframes jiggle{20%{rotate:-14deg}45%{rotate:10deg}70%{rotate:-6deg}100%{rotate:0deg}}
/* trophy button glints every so often */
.trophy-btn>.i{animation:glint 6s ease-in-out infinite;transform-origin:50% 80%}
@keyframes glint{0%,86%,100%{rotate:0deg;scale:1}90%{rotate:-12deg;scale:1.15}94%{rotate:8deg;scale:1.1}}
/* controllers and music notes in labels/chips give a little wiggle */
.chip .i,.label>.i{transform-origin:50% 60%}
#library .chip .i{animation:padTap 3.2s ease-in-out infinite}
@keyframes padTap{0%,78%,100%{rotate:0deg}82%{rotate:-10deg}86%{rotate:9deg}90%{rotate:-5deg}94%{rotate:0deg}}
#sneakers .chip .i{animation:step 2.4s ease-in-out infinite}
@keyframes step{0%,100%{translate:0 0;rotate:0deg}25%{translate:2px -3px;rotate:-8deg}50%{translate:0 0;rotate:0deg}}
#shelf .chip .i{animation:page 4s ease-in-out infinite}
@keyframes page{0%,80%,100%{scale:1 1}85%{scale:.85 1}90%{scale:1 1}}
/* games: the "playing now" card's art slowly pans, like a menu screen */
.pg-main .ph>img.ok{animation:pan 18s ease-in-out infinite alternate}
@keyframes pan{from{scale:1.06;translate:-1.5% 0}to{scale:1.06;translate:1.5% 0}}
/* listening: album sleeves breathe in turn, like a speaker */
.sound-mini .sleeve{animation:beat 3.6s ease-in-out infinite}
.sound-mini .sleeve:nth-child(2){animation-delay:.3s}.sound-mini .sleeve:nth-child(3){animation-delay:.6s}
.sound-mini .sleeve:nth-child(4){animation-delay:.9s}.sound-mini .sleeve:nth-child(5){animation-delay:1.2s}.sound-mini .sleeve:nth-child(6){animation-delay:1.5s}
@keyframes beat{0%,100%{scale:1}8%{scale:1.035}16%{scale:1}}
/* hero: a small scroll cue under the intro */
.scroll-cue{display:inline-flex;align-items:center;gap:8px;margin-top:clamp(24px,3vw,40px);font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.scroll-cue .i{width:18px;height:18px;animation:cue 1.8s cubic-bezier(.65,0,.35,1) infinite}
@keyframes cue{0%,100%{translate:0 0;opacity:1}50%{translate:0 6px;opacity:.5}}
/* footer: the email bar's envelope floats */
.f-email .f-ico .i{animation:drift 4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){
  .live::after,.notes li,.off-pics .ph,.off-go .i,.trophy-btn>.i,#library .chip .i,#sneakers .chip .i,#shelf .chip .i,
  .pg-main .ph>img.ok,.sound-mini .sleeve,.scroll-cue .i,.f-email .f-ico .i,.kick-card .ph>img.ok{animation:none!important}
}
/* top bar: solid pills so nothing shows through */
.hud-pill{background:#19191B;-webkit-backdrop-filter:none;backdrop-filter:none}
/* rolling word: clip only top and bottom, so a growing word is never cut at the side */
.hero-tag .roll,.intro .t-big .roll{overflow:visible clip;overflow-clip-margin:0}
/* page change: the old page leaves first, the new one follows, so they barely overlap */
::view-transition-old(root){animation:vtOut .3s cubic-bezier(.4,0,1,1) both}
::view-transition-new(root){animation:vtIn .6s cubic-bezier(.16,1,.3,1) .2s both}
/* the big word at the top swaps like a slot: old one slides up, new one rises in its place */
.fit-mask .fit{view-transition-name:bigname}
::view-transition-group(bigname){animation:none}
::view-transition-image-pair(bigname){overflow:clip}
::view-transition-old(bigname){animation:nameOut .4s cubic-bezier(.65,0,.35,1) both}
::view-transition-new(bigname){animation:nameIn .7s cubic-bezier(.16,1,.3,1) .18s both}
@keyframes nameOut{to{transform:translateY(-60%);opacity:0}}
@keyframes nameIn{from{transform:translateY(60%);opacity:0}}
@media (max-width:600px){.kick-tag{left:8px;bottom:8px;padding:7px 10px;border-radius:10px}.kick-tag small{display:none}.kick-tag b{font-size:14px}.kick-tag em{font-size:12px}.kick-credit{font-size:10px;right:8px;top:8px}}

/* =====================================================================
   ABOUT PAGE v3: chapters instead of bento tiles.
   Each part has its heading on the left (it stays in view while you
   scroll its content) and the stuff itself on the right. No grey boxes.
   ===================================================================== */
/* --- intro: photo + a sentence that reads like a person, not a template --- */
.ab-intro{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(28px,5vw,80px);align-items:center;margin-top:clamp(28px,4vw,56px)}
.ab-me{position:relative;margin:0}
.ab-me .ph.me{display:block;aspect-ratio:4/5;border-radius:28px;background:var(--accent);color:#fff;overflow:hidden}
.ab-me .ph.me .mono{font-size:clamp(140px,16vw,240px);font-weight:800;letter-spacing:-.06em}
.ab-me .ph.me>img{animation:portrait 14s ease-in-out infinite alternate}
@keyframes portrait{from{scale:1.02}to{scale:1.08}}
.ab-fact{position:absolute;left:16px;right:16px;bottom:16px;display:flex;flex-direction:column;gap:4px;background:var(--gold);color:#111;border-radius:18px;padding:14px 16px;rotate:-1.5deg;animation:drift 6s ease-in-out infinite}
.ab-fact small{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.7}
.ab-fact-t{font-size:clamp(16px,1.4vw,19px);font-weight:700;line-height:1.25;transition:opacity .35s ease,translate .35s ease}
.ab-fact-t.out{opacity:0;translate:0 6px}
.ab-words .label{display:block;margin-bottom:14px}
.ab-lede{font-size:clamp(28px,3.4vw,52px);font-weight:700;letter-spacing:-.035em;line-height:1.1;text-wrap:balance}
.ab-lede .roll{display:inline-grid;vertical-align:bottom;overflow:visible clip;color:var(--accent);transition:width .7s cubic-bezier(.65,0,.15,1)}
.ab-lede .roll span{grid-area:1/1;justify-self:start;white-space:nowrap;opacity:0;transform:translateY(105%);transition:transform .7s cubic-bezier(.65,0,.15,1),opacity .35s ease}
.ab-lede .roll span.on{opacity:1;transform:none}
.ab-lede .roll span.out{opacity:0;transform:translateY(-105%)}
.ab-tags{list-style:none;margin:28px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ab-tags a{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border-radius:999px;background:var(--tile);font-size:15px;font-weight:600;color:var(--fg);transition:background .3s,translate .4s var(--ease)}
.ab-tags a:hover{background:var(--tile-3);translate:0 -3px}
.ab-tags .i{width:18px;height:18px;color:var(--accent)}

/* --- chapters --- */
.ch{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(24px,4vw,64px);margin-top:clamp(88px,10vw,150px);align-items:start;scroll-margin-top:90px}
.ch-head{position:sticky;top:96px}
.ch-head .label{display:inline-flex;align-items:center;gap:8px}
.ch-head .label .i{width:16px;height:16px;color:var(--accent)}
.ch-head h2{font-size:clamp(30px,3.2vw,48px);font-weight:700;letter-spacing:-.035em;line-height:1.05;margin-top:14px;text-wrap:balance}
.ch-note{margin-top:14px;font-size:16px;line-height:1.5;color:var(--muted);max-width:34ch}
.ch-body{min-width:0}

/* --- playing --- */
.ch .play-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:none;height:auto;gap:16px}
.ch .pg{position:static;border-radius:0;overflow:visible;display:flex;flex-direction:column;gap:12px;margin:0}
.ch .pg-main{grid-column:1 / -1;grid-row:auto}
.pg-art{position:relative;display:block;border-radius:22px;overflow:hidden;aspect-ratio:616/353}
.pg-main .pg-art{aspect-ratio:21/9}
.pg-art .ph{position:absolute;inset:0;border-radius:0}
.ch .pg-tag{position:absolute;left:14px;bottom:14px}
.pg-fact{display:block;font-size:15px;line-height:1.5;color:var(--muted)}
.ff-label{display:inline-flex;align-items:center;gap:6px;margin-right:8px;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);vertical-align:1px}
.ff-label .i{width:14px;height:14px;animation:bulb 3s ease-in-out infinite}
@keyframes bulb{0%,70%,100%{opacity:1}80%{opacity:.35}90%{opacity:1}}

/* --- watching --- */
.watch-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.wt{margin:0;display:flex;flex-direction:column;gap:12px}
.wt-art{position:relative;display:block;aspect-ratio:2/3;border-radius:22px;overflow:hidden}
.wt-art .ph{position:absolute;inset:0;border-radius:0}
.wt-art .ph>img{transition:scale 1.2s var(--ease)}
.wt:hover .wt-art .ph>img{scale:1.05}
.wt-badge{position:absolute;left:12px;top:12px;display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:#0E0E0F;color:var(--fg);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.wt-soon .wt-badge{background:var(--red);color:#fff}
.wt-soon .wt-badge .live{background:#fff}
.wt figcaption{display:flex;flex-direction:column;gap:6px}
.wt figcaption>b{font-size:20px;letter-spacing:-.015em;line-height:1.2}
.wt-meta{font-size:14px;color:var(--muted)}
.count{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:4px 0 2px}
.count span{display:flex;flex-direction:column;align-items:center;padding:8px 0;border-radius:12px;background:var(--tile)}
.count b{font-size:20px;letter-spacing:-.02em;line-height:1}
.count small{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-top:3px}
.count .cd-s{display:inline-block;animation:secTick 1s steps(1) infinite}
@keyframes secTick{0%{color:var(--fg)}50%{color:var(--red)}}

/* --- reading --- */
.read{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:20px;align-items:stretch}
.ch .shelf{display:flex;align-items:flex-end;gap:12px;height:auto;margin:0;padding-bottom:6px}
.ch .cover{flex:1;min-width:0;transition:translate .6s var(--ease),flex-grow .6s var(--ease)}
.ch .cover .ph{aspect-ratio:2/3;border-radius:16px}
.ch .cover.on{flex-grow:1.35;translate:0 -10px}
.ch .cover:not(.on) .ph{filter:saturate(.7) brightness(.8)}
.ch .cover .ph{transition:filter .5s ease}
.ch .shelf-info{margin:0;background:var(--tile);border-radius:22px;padding:22px;display:flex;flex-direction:column;gap:10px;transition:opacity .2s,translate .4s var(--ease);min-height:0}
.ch .shelf-info.swap{opacity:0;translate:0 8px}
.si-t{font-size:28px;letter-spacing:-.025em;line-height:1.05}
.si-facts{display:grid;grid-template-columns:repeat(3,auto);justify-content:start;gap:4px 22px;margin:4px 0 0}
.si-facts dt{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.si-facts dd{margin:2px 0 0;font-size:15px;font-weight:600}
.si-note{font-size:15px;line-height:1.5;color:var(--muted)}
.si-extra{opacity:0;translate:0 8px;transition:opacity .5s,translate .6s var(--ease)}
.si-extra.in{opacity:1;translate:0 0}
.si-genres{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.si-genres li{padding:5px 10px;border-radius:999px;background:var(--tile-3);font-size:12px;font-weight:600}
.si-score{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.si-score .bar{height:8px;border-radius:999px;background:var(--tile-3);overflow:hidden}
.si-score .bar i{display:block;height:100%;width:var(--w);background:var(--gold);border-radius:999px;animation:fillBar 1.2s var(--ease) both}
@keyframes fillBar{from{width:0}}
.si-score b{color:var(--fg);font-size:15px}

/* --- sneakers --- */
.sneak{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:16px;align-items:start}
.ch #sneakers,.ch .kicks{margin:0}
.sneak .kick-card .ph{aspect-ratio:4/3!important;border-radius:22px}
.sneak .radar{margin:0}
.sneak .radar-row{grid-template-columns:1fr;gap:10px}
.sneak .rk{flex-direction:row;align-items:center;gap:12px}
.sneak .rk .ph{width:84px;flex:none;border-radius:14px}
.sneak .rk b{font-size:14px}

/* --- listening --- */
#sound .sleeves{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#sound .sleeve{animation:beat 3.6s ease-in-out infinite}
#sound .sleeve:nth-child(2){animation-delay:.3s}#sound .sleeve:nth-child(3){animation-delay:.6s}#sound .sleeve:nth-child(4){animation-delay:.9s}#sound .sleeve:nth-child(5){animation-delay:1.2s}#sound .sleeve:nth-child(6){animation-delay:1.5s}

/* --- quiz with a picture per question --- */
.ch-quiz .score{margin-top:24px}
.ch-quiz .score div{background:var(--tile)}
.ch-quiz .qcard{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:0;padding:0;overflow:hidden;background:var(--tile);border-radius:24px;min-height:380px}
.qimg{position:relative;display:block;background:var(--tile-3);color:var(--muted);min-height:220px}
.qimg .ph-fb .i{width:44px;height:44px}
.qimg>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;scale:1.06;transition:opacity .5s ease,scale 1.4s var(--ease)}
.qimg>img.ok{opacity:1;scale:1}
.qimg>img.gone{opacity:0}
.qimg.has-img .ph-fb{opacity:0}
.qmain{display:flex;flex-direction:column;padding:clamp(22px,3vw,34px)}
.ch-quiz .qbtns button{background:var(--tile-3)}
.side-proj{display:flex;flex-direction:column;gap:6px;margin-top:16px;padding:20px 22px;border-radius:22px;background:var(--gold);color:#111;transition:translate .4s var(--ease)}
.side-proj:hover{translate:0 -3px}
.side-proj .label{color:rgba(0,0,0,.6)}
.side-proj b{font-size:22px;letter-spacing:-.02em}
.side-proj span:last-child{font-size:15px;line-height:1.45;opacity:.8}

/* --- about page on smaller screens --- */
@media (max-width:1000px){
  .ch{grid-template-columns:1fr;gap:20px}
  .ch-head{position:static}
  .read,.sneak{grid-template-columns:1fr}
  .sneak .radar-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sneak .rk{flex-direction:column;align-items:stretch}
  .sneak .rk .ph{width:auto}
}
@media (max-width:760px){
  .ab-intro{grid-template-columns:1fr}
  .ab-me .ph.me{aspect-ratio:1/1}
  .watch-row{grid-template-columns:1fr 1fr}
  .watch-row .wt-soon{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:14px;align-items:start}
  .ch-quiz .qcard{grid-template-columns:1fr}
  .qimg{min-height:0;aspect-ratio:16/9}
  #sound .sleeves{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:600px){
  .ch .play-grid{grid-template-columns:1fr}
  .pg-main .pg-art{aspect-ratio:16/10}
  .ch{margin-top:72px}
}
@media (prefers-reduced-motion:reduce){.ab-me .ph.me>img,.ab-fact,.ff-label .i,.count .cd-s,#sound .sleeve{animation:none!important}}
/* LinkedIn: a twin of the copy button. Dark square, the LinkedIn mark in its own blue,
   a small label under it, and it turns LinkedIn blue when you hover */
.f-li{flex:none;width:84px;border-radius:22px;background:var(--tile-2);color:#0A66C2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:11px;font-weight:700;letter-spacing:.02em;transition:background .3s,color .3s,translate .4s var(--ease)}
.f-li span{color:var(--muted);transition:color .3s}
.f-li .i{width:30px;height:30px;transition:scale .4s var(--ease)}
.f-li:hover{background:#0A66C2;color:#fff;translate:0 -3px}
.f-li:hover span{color:#fff}
.f-li:hover .i{scale:1.1}
@media (max-width:600px){.f-li{flex-direction:row;gap:8px;font-size:14px}.f-li span{color:var(--fg)}.f-li .i{width:24px;height:24px}}
/* footer fun fact */
.f-fact{text-transform:none;letter-spacing:0;font-weight:600;max-width:60%;text-align:right}
.f-ft{display:inline-block;color:var(--fg);transition:opacity .35s ease,translate .35s ease}
.f-ft.out{opacity:0;translate:0 5px}
@media (max-width:600px){.f-fact{max-width:none;text-align:left}}
/* Entelect logo now has its own white backing */
.logo[data-fit="cover"]>img{background:#fff;object-fit:contain;padding:4px}

/* =====================================================================
   HOW I WORK: a board of sticky notes you can drag around and flip
   ===================================================================== */
.how-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.how-title{font-size:clamp(24px,2.4vw,34px);font-weight:700;letter-spacing:-.03em;margin-top:10px}
.how-tools{display:flex;align-items:center;gap:12px}
.how-hint{display:inline-flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.how-hint .i{width:16px;height:16px}
.how-tidy{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 14px;border-radius:999px;background:var(--tile-3);font-size:14px;font-weight:600;opacity:.5;pointer-events:none;transition:opacity .3s,background .3s}
.board.messy~*,.how:has(.board.messy) .how-tidy,.how:has(.flip) .how-tidy{opacity:1;pointer-events:auto}
.how-tidy:hover{background:var(--accent);color:#fff}
.how-tidy .i{width:16px;height:16px}
.how .notes.board li{background:none;padding:0;min-height:0;perspective:1200px;position:relative;left:var(--dx,0px);top:var(--dy,0px);
  transition:left .7s cubic-bezier(.34,1.4,.64,1),top .7s cubic-bezier(.34,1.4,.64,1),transform .5s var(--ease)}
.how .notes.board li.dragging{transition:none;cursor:grabbing;animation-play-state:paused}
.how .notes.board li.dragging .nt-in{transform:rotate(3deg) scale(1.05)}
.how .notes.board li.dragging.flip .nt-in{transform:rotateY(180deg) rotate(-3deg) scale(1.05)}
.nt-in{position:relative;display:block;width:100%;height:100%;min-height:220px;text-align:left;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.65,0,.15,1);cursor:pointer;border-radius:6px 6px 18px 6px}
@media (pointer:fine) and (min-width:901px){.nt-in{cursor:grab}}
.flip .nt-in{transform:rotateY(180deg)}
.nt-face{position:absolute;inset:0;display:flex;flex-direction:column;padding:20px 20px 22px;border-radius:6px 6px 18px 6px;background:var(--n);color:var(--ni);-webkit-backface-visibility:hidden;backface-visibility:hidden}
.nt-front{position:relative;min-height:220px}
.nt-back{transform:rotateY(180deg);background:#111;color:var(--fg);border:3px solid var(--n);justify-content:flex-end}
.nt-back p{font-size:17px;line-height:1.4;font-weight:600;opacity:1;margin-top:10px}
.nt-k{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--n);margin-bottom:auto}
.nt-flip{position:absolute;right:14px;top:16px;display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;opacity:.55;transition:opacity .3s}
.nt-flip .i{width:13px;height:13px}
.nt-in:hover .nt-flip{opacity:1}
.nt-in:hover .nt-flip .i{animation:spin .8s var(--ease)}
@keyframes spin{to{rotate:360deg}}
.how .notes.board li:hover{transform:rotate(0deg) translateY(-4px)}
@media (max-width:900px){.how-hint{display:none}.nt-in,.nt-front{min-height:180px}}
@media (max-width:600px){.nt-in,.nt-front{min-height:150px}}
.nt-in{background:none;border:0;padding:0;font:inherit;color:inherit}
/* about fixes */
.ch#sneakers{display:grid}
#sound .sleeves{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.ch-quiz .qbtns button{background:revert-layer}
.qimg .ph-fb{position:absolute;inset:0;display:grid;place-items:center}
@media (max-width:1000px){.ch#sneakers{grid-template-columns:1fr}}
@media (max-width:760px){#sound .sleeves{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tile.how{overflow:visible}
.ch-quiz .qbtns .q-true{background:var(--green);color:#0d2a1b}
.ch-quiz .qbtns .q-fake{background:var(--red);color:#2d0b08}
@media (max-width:600px){
}

/* =====================================================================
   ABOUT PAGE, back in the bento: every part is a tile again,
   with the new content (fun facts, watching, quiz pictures) inside.
   ===================================================================== */
.ab-bento{margin-top:clamp(28px,4vw,56px)}
.ab-bento .tile.ab-intro{margin-top:0;grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.ab-bento .ab-intro .ab-words{order:-1}
.ab-bento .ab-me .ph.me{aspect-ratio:5/4;border-radius:22px}
.ab-bento .ab-lede{font-size:clamp(26px,2.8vw,42px)}
.ab-bento .ab-tags a{background:var(--tile-2)}
.ab-bento .ab-tags a:hover{background:var(--tile-3)}
.tile.ch{display:flex;flex-direction:column;gap:0;margin-top:0;scroll-margin-top:90px}
.tile.ch .ch-head{position:static;margin-bottom:22px}
.tile.ch .ch-head h2{font-size:clamp(26px,2.4vw,36px);margin-top:10px}
.tile.ch .ch-note{margin-top:8px;max-width:60ch}
/* side-by-side tiles: head on the left, content on the right */
.tile.ch-row{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:clamp(20px,3vw,40px);align-items:start}
.tile.ch-row .ch-head{margin-bottom:0}
/* half-width tiles stack their insides */
.tile.s6 .read,.tile.s6 .sneak{grid-template-columns:1fr}
.tile.s6 .sneak .radar-row{grid-template-columns:repeat(3,minmax(0,1fr))}
.tile.s6 .sneak .rk{flex-direction:column;align-items:stretch}
.tile.s6 .sneak .rk .ph{width:auto}
.tile.s6 .sneak .kick-card .ph{aspect-ratio:16/10!important}
.ab-bento .count span,.ab-bento .ch-quiz .score div{background:var(--tile-2)}
.ab-bento .ch .shelf-info{background:var(--tile-2)}
.ab-bento .ch-quiz .qcard{background:var(--tile-2)}
@media (max-width:1000px){.tile.ch-row{grid-template-columns:1fr}.ab-bento .tile.ab-intro{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.ab-bento .tile.ab-intro{grid-template-columns:1fr}.ab-bento .ab-intro .ab-words{order:0}}
.tile.ch#sneakers{display:flex}
/* playing: the old bento shape. Big card on the left, two stacked on the right */
.tile .play-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)!important;grid-template-rows:auto auto;gap:16px}
.tile .pg-main{grid-column:1!important;grid-row:1 / span 2!important}
.tile .pg-main .pg-art{aspect-ratio:auto;flex:1;min-height:340px}
.tile .pg-fact{font-size:14px;line-height:1.45}
/* watching: compact cards, poster beside the details */
.tile .watch-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tile .wt{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:14px;align-items:start;background:var(--tile-2);border-radius:20px;padding:12px}
.tile .wt-art{border-radius:14px}
.tile .wt-badge{left:8px;top:8px;padding:5px 8px;font-size:10px}
.tile .wt figcaption>b{font-size:18px}
.tile .count{grid-template-columns:repeat(2,1fr)}
.tile .count span{background:var(--tile-3)}
@media (max-width:1100px){.tile .watch-row{grid-template-columns:1fr}.tile .wt{grid-template-columns:120px 1fr}}
@media (max-width:760px){
  .tile .play-grid{grid-template-columns:1fr!important}
  .tile .pg-main{grid-row:auto!important}
  .tile .pg-main .pg-art{aspect-ratio:16/10;min-height:0}
  .watch-row .wt-soon{display:grid}
}

/* =====================================================================
   POLISH PASS (16 Nov)
   ===================================================================== */
/* logos: the Entelect mark sits on white */
.logo:has(img[src*="entelect"]){background:#fff!important}

/* one fun-fact block, used the same way everywhere */
.fact{display:flex;gap:10px;align-items:flex-start;margin:0;font-size:14px;line-height:1.45;color:var(--fg);font-weight:500}
.fact>.i{width:18px;height:18px;flex:none;color:var(--gold);margin-top:1px}
.fact small{display:block;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:3px;line-height:1.4}
.fact .fact-t,.fact .f-ft{display:block;transition:opacity .35s}
.fact .out{opacity:0}

/* intro */
.ab-bento .tile.ab-intro{align-items:center}
.ab-words{display:flex;flex-direction:column;gap:22px}
.ab-words .label{margin-bottom:0}
.ab-intro .fact{max-width:460px;font-size:15px}

/* playing */
.gm-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px}
.gm{margin:0;display:flex;flex-direction:column;background:var(--tile-2);border-radius:22px;overflow:hidden;min-width:0}
.gm-main{grid-row:1 / span 2}
.gm-art{display:grid;width:100%;aspect-ratio:616/353;background:var(--tile-3);color:var(--muted)}
.gm-main .gm-art{aspect-ratio:auto;flex:1;min-height:300px}
.gm-art .ph-fb .i{width:34px;height:34px}
.gm-art>img{transition:opacity .6s,transform 1.2s var(--ease)}
.gm:hover .gm-art>img.ok{transform:scale(1.03)}
.gm figcaption{display:flex;flex-direction:column;gap:4px;padding:16px 18px 18px}
.gm figcaption>b{font-size:19px;line-height:1.2;letter-spacing:-.02em}
.gm-main figcaption>b{font-size:clamp(24px,2.2vw,32px)}
.gm .fact{margin-top:12px}
.gm-state,.tv-state{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.tv-state.soon .live{background:var(--gold)}

/* watching */
.tv-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tv{margin:0;display:grid;grid-template-columns:92px minmax(0,1fr);gap:16px;align-items:start;padding:14px;background:var(--tile-2);border-radius:22px;min-width:0}
.tv-art{width:92px;aspect-ratio:2/3;border-radius:12px;background:var(--tile-3);color:var(--muted)}
.tv-art .ph-fb .i{width:24px;height:24px}
.tv figcaption{display:flex;flex-direction:column;gap:3px;min-width:0;padding-top:2px}
.tv figcaption>b{font-size:18px;line-height:1.2;letter-spacing:-.02em;margin-top:4px}
.tv-meta{font-size:13px;color:var(--muted);line-height:1.4}
.cd{font-size:13px;color:var(--muted);margin-top:2px}
.cd b{color:var(--fg);font-weight:700}
.tv .fact{margin-top:10px;font-size:13px}

/* reading */
.mg-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mg{margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.mg-cover{display:grid;width:100%;aspect-ratio:2/3;border-radius:14px}
.mg-cover .ph-fb b{font-size:15px}
.mg-cover>img{transition:opacity .6s,transform 1.2s var(--ease)}
.mg:hover .mg-cover>img.ok{transform:scale(1.03)}
.mg figcaption b{display:block;font-size:16px;line-height:1.25}
.mg figcaption small{display:block;font-size:13px;color:var(--muted);margin-top:2px;line-height:1.35}

/* quiz */
.qz{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:16px}
.qz-img{border-radius:22px;min-height:340px;background:var(--tile-2);color:var(--muted)}
.qz-img .ph-fb .i{width:40px;height:40px}
.qz-img>img{transition:opacity .45s,transform .9s var(--ease)}
.qz-main{display:flex;flex-direction:column;gap:18px;padding:clamp(20px,2.4vw,32px);background:var(--tile-2);border-radius:22px;min-width:0}
.qz-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;font-size:13px;color:var(--muted)}
.qz-top b{color:var(--fg)}
.qz-q{margin:0;flex:1;font-size:clamp(24px,2.6vw,38px);font-weight:700;letter-spacing:-.03em;line-height:1.12;transition:opacity .22s}
.qz.swap .qz-q{opacity:0}
.qz-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.qz-btns button{height:56px;border:0;border-radius:16px;font:inherit;font-size:17px;font-weight:700;cursor:pointer;transition:opacity .3s,transform .2s,filter .2s}
.qz-t{background:var(--green);color:#0B2417}
.qz-f{background:var(--red);color:#2A0B08}
.qz-btns button:hover:not(:disabled){filter:brightness(1.08)}
.qz-btns button:active:not(:disabled){transform:scale(.97)}
.qz-btns button:disabled{cursor:default}
.qz-btns button:disabled:not(.is-answer){opacity:.3}
.qz-why{display:none;margin:0;font-size:15px;line-height:1.5;color:var(--muted)}
.qz-why.show{display:block}
.qz-why.ok b{color:var(--green)}
.qz-why.no b{color:var(--red)}
.qz-next{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border:0;border-radius:999px;background:var(--fg);color:#111;font:inherit;font-size:15px;font-weight:700;cursor:pointer}
.qz-next[hidden]{display:none}
.qz-next .i{width:18px;height:18px}
.qz.shake .qz-main{animation:shake .4s}
.qz-foot{margin:14px 0 0;font-size:14px;color:var(--muted)}
.qz-foot b{color:var(--fg);font-weight:600}

/* footer contact: email, then copy and LinkedIn as matching icon squares */
.f-mailrow .f-sq{flex:none;width:84px;height:auto;border-radius:22px;background:var(--tile-2);color:var(--fg);display:grid;place-items:center;position:relative;font-size:0;gap:0;translate:none;transition:background .3s,transform .4s var(--ease)}
.f-mailrow .f-sq:hover{background:var(--tile-3);color:var(--fg);translate:none}
.f-mailrow .f-sq:active{transform:scale(.95)}
.f-mailrow .f-sq .i{width:26px;height:26px;scale:1}
.f-mailrow .f-li span{display:none}
.f-mailrow .f-copy.done{background:var(--green);color:#0d2a1b}
.f-mailrow .f-copy .f-copied{font-size:11px}
.f-cta .f-fact{margin-top:20px}
@media (max-width:600px){
  .f-mailrow{flex-wrap:nowrap}
  .f-mailrow .f-email{order:0;flex:1 1 auto;min-width:0}
  .f-mailrow .f-sq{flex:none;width:56px;height:auto;border-radius:16px}
  .f-mailrow .f-sq .i{width:22px;height:22px}
  .f-mailrow .f-email .f-addr{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* how I work: icons sit straight on the note, like everywhere else */
.note-ic{width:auto;height:auto;border-radius:0;background:none;color:#111;display:block}
.note-ic .i{width:30px;height:30px}

/* about tiles: shared heading spacing */
.tile.ch .ch-head{margin-bottom:20px}

@media (max-width:1100px){.tv-row{grid-template-columns:1fr}.tv{grid-template-columns:80px minmax(0,1fr)}.tv-art{width:80px}}
@media (max-width:860px){
  .gm-grid{grid-template-columns:1fr}
  .gm-main{grid-row:auto}
  .gm-main .gm-art{aspect-ratio:16/9;min-height:0;flex:none}
  .qz{grid-template-columns:1fr}
  .qz-img{min-height:0;aspect-ratio:16/9}
}
@media (max-width:600px){.gm-grid{gap:12px}.mg-row{gap:10px}.mg figcaption b{font-size:14px}.mg figcaption small{font-size:12px}}

/* =====================================================================
   PAGE TRANSITIONS: a title card for where you're going
   ===================================================================== */
:root{--pt-x:clamp(20px,4vw,56px)}
.pt,html.pt-in::before{position:fixed;inset:0;z-index:400;background:var(--pt-bg)}
.pt{color:var(--pt-fg);clip-path:inset(100% 0 0 0);transition:clip-path .55s cubic-bezier(.76,0,.24,1)}
.pt.on{clip-path:inset(0 0 0 0)}
.pt-e,.pt-n,html.pt-in::after,html.pt-in body::before{position:fixed;left:var(--pt-x);z-index:401;color:var(--pt-fg);font-family:"Funnel Sans",system-ui,sans-serif}
.pt-e,html.pt-in body::before{top:clamp(100px,15vh,150px);font-size:clamp(13px,1.1vw,16px);font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1.4;opacity:.8}
.pt-n,html.pt-in::after{right:var(--pt-x);bottom:clamp(28px,7vh,72px);font-size:clamp(56px,10vw,184px);font-weight:700;letter-spacing:-.055em;line-height:.92;padding-bottom:.08em}
.pt-e,.pt-n{overflow:hidden}
.pt-e>span,.pt-n>span{display:block;transform:translateY(110%);transition:transform .6s cubic-bezier(.16,1,.3,1)}
.pt.on .pt-e>span{transform:none;transition-delay:.12s}
.pt.on .pt-n>span{transform:none;transition-delay:.18s}
html.pt-in::before{content:""}
html.pt-in::after{content:var(--pt-n)}
html.pt-in body::before{content:var(--pt-e)}
body.pt-leaving main,body.pt-leaving article.cs,body.pt-leaving .gate,body.pt-leaving .footer{transform:translateY(-5vh) scale(.97);opacity:.35;transition:transform .7s cubic-bezier(.76,0,.24,1),opacity .6s}
html.pt-go::before{animation:ptLift .75s cubic-bezier(.76,0,.24,1) forwards}
html.pt-go::after,html.pt-go body::before{animation:ptText .45s cubic-bezier(.7,0,.84,0) forwards}
html.pt-go main,html.pt-go article.cs,html.pt-go .gate{animation:ptRise 1s cubic-bezier(.16,1,.3,1) .12s both}
@keyframes ptLift{to{clip-path:inset(0 0 100% 0)}}
@keyframes ptText{to{transform:translateY(-8vh);opacity:0}}
@keyframes ptRise{from{transform:translateY(10vh)}}
@media (prefers-reduced-motion:reduce){.pt,html.pt-in::before,html.pt-in::after,html.pt-in body::before{display:none}}
.f-cta .fact.f-fact{max-width:none;text-align:left;font-weight:500}
.tile.ch>.gm-grid,.tile.ch>.tv-row,.tile.ch>.mg-row,.tile.ch>.qz,.tile.ch>.sleeves,.tile.ch>.sneak{width:100%;align-self:stretch}
/* sneakers: my pair on the left, the radar as a short list on the right */
#sneakers .sneak{display:grid!important;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;align-items:start}
#sneakers .kicks{display:block}
#sneakers .kick-card{display:block;position:relative;border-radius:22px;overflow:hidden}
#sneakers .kick-card .ph{aspect-ratio:1/1!important;width:100%;height:auto;border-radius:22px}
#sneakers .kick-tag{left:12px;bottom:12px;right:auto;max-width:calc(100% - 24px)}
#sneakers .radar{display:flex;flex-direction:column;gap:10px;margin:0}
#sneakers .radar>.label{margin:0 0 2px;flex-wrap:wrap}
#sneakers .radar-row{display:flex!important;flex-direction:column;gap:10px}
#sneakers .rk{display:grid!important;grid-template-columns:72px minmax(0,1fr);gap:12px;align-items:center;padding:8px;border-radius:16px;background:var(--tile-2);transition:background .3s}
#sneakers .rk:hover{background:var(--tile-3)}
#sneakers .rk .ph{width:72px!important;height:72px;aspect-ratio:1/1;border-radius:12px}
#sneakers .rk b{font-size:14px;line-height:1.3;font-weight:600;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:600px){#sneakers .sneak{grid-template-columns:1fr}}
@media (max-width:600px){
  .f-mailrow{flex-wrap:wrap}
  .f-mailrow .f-email{flex:1 1 100%}
  .f-mailrow .f-sq{width:56px;height:56px}
  .f-mailrow .f-email .f-addr{overflow:visible;text-overflow:clip;white-space:normal;word-break:break-all}
}
/* title card, take two: everything centred on the screen */
html.pt-in::before,html.pt-in::after,html.pt-in body::before{content:none!important;display:none!important}
.pt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(10px,1.6vh,18px);padding:0 var(--pt-x);text-align:center}
.pt .pt-e,.pt .pt-n{position:static;left:auto;right:auto;top:auto;bottom:auto;max-width:100%}
.pt .pt-n{font-size:clamp(52px,9vw,168px);text-wrap:balance}
.pt .pt-e{font-size:clamp(13px,1.2vw,17px)}
.pt.pt-go{animation:ptLift .75s cubic-bezier(.76,0,.24,1) .05s forwards}
.pt.pt-go .pt-e>span,.pt.pt-go .pt-n>span{animation:ptOut .4s cubic-bezier(.7,0,.84,0) forwards}
.pt.pt-go .pt-e>span{animation-delay:.04s}
@keyframes ptOut{to{transform:translateY(-110%)}}

/* =====================================================================
   SUBWAY BLUE: one high-contrast blue (#0039A6), always as a fill with
   white on it, like the A/C/E line signs. On the dark background, text
   and small icons use bone instead, so nothing is dark blue on black.
   ===================================================================== */
.hero-tag .roll,.intro .t-big .roll,.ab-lede .roll{box-sizing:content-box;color:#fff;background:var(--accent);border-radius:.16em;padding-inline:.2em}
.ch-head .label .i,.sk-list button.on .i,.ab-tags .i{color:var(--fg)}
.hero-links a:hover{color:var(--fg)}
.f-big .cd{color:var(--fg)}
.ic.blue{background:var(--accent);color:#fff}
.mg-cover[style*="#0039A6"]{color:#fff!important}
.note-ic{color:var(--ni,#111)}
.fact>.i{display:none}
.fact small{color:var(--gold)}
/* watching: every card has the same rows (state, name, where, status line, fact),
   so side by side they line up, and the fact always sits at the bottom */
.tv{align-items:stretch}
.tv-art{align-self:start}
.tv figcaption{height:100%}
.tv-line{font-size:13px;color:var(--muted);line-height:1.4;margin-top:2px;min-height:1.4em}
.tv-line b{color:var(--fg);font-weight:700}
.tv .fact{margin-top:auto;padding-top:12px;min-height:calc(13px*1.45*3 + 12px + 18px)}
.tv-row .tv .cd{margin-top:2px}
@media (max-width:1100px){.tv .fact{min-height:0}}

/* =====================================================================
   PAGE TRANSITIONS, take three: a game loading screen.
   Three flat bands slash in at an angle (gold, blue, then the destination's
   colour), the page name lands in the middle, a fun fact sits at the bottom
   as the loading tip, and a bar fills. On the next page the bar finishes,
   then the bands slash off to the right and the page rises in.
   ===================================================================== */
.pt{position:fixed;inset:0;z-index:400;display:block;padding:0;background:none!important;clip-path:none!important;transition:none;animation:none!important;overflow:hidden;color:var(--pt-fg);pointer-events:none}
.pt.on{pointer-events:auto}
.pt-b{position:absolute;top:-10%;bottom:-10%;left:-30%;right:-30%;transform:translateX(-150%) skewX(-14deg);transition:transform .5s cubic-bezier(.76,0,.24,1)}
.pt-b1{background:var(--pt-b1)}
.pt-b2{background:var(--pt-b2)}
.pt-b3{background:var(--pt-bg)}
.pt.on .pt-b{transform:translateX(0) skewX(-14deg)}
.pt.on .pt-b2{transition-delay:.06s}
.pt.on .pt-b3{transition-delay:.12s}
.pt-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(10px,1.6vh,18px);padding:0 var(--pt-x);text-align:center}
.pt .pt-e,.pt .pt-n{position:static;display:block;overflow:hidden;max-width:100%}
.pt .pt-e{font-size:clamp(13px,1.2vw,17px);font-weight:600;letter-spacing:.14em;text-transform:uppercase;opacity:.8}
.pt .pt-n{font-size:clamp(52px,9vw,168px);font-weight:700;letter-spacing:-.055em;line-height:.92;padding-bottom:.08em;text-wrap:balance}
.pt .pt-e>span,.pt .pt-n>span{display:block;transform:translateY(110%);transition:transform .55s cubic-bezier(.16,1,.3,1);animation:none!important}
.pt.on .pt-e>span{transform:none;transition-delay:.3s}
.pt.on .pt-n>span{transform:none;transition-delay:.36s}
.pt-f{position:absolute;left:var(--pt-x);right:var(--pt-x);bottom:clamp(28px,7vh,64px);display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;opacity:0;transition:opacity .3s ease .4s}
.pt.on .pt-f{opacity:1}
.pt-tip{max-width:560px;font-size:clamp(13px,1.1vw,15px);line-height:1.45;font-weight:500}
.pt-tip b{display:block;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.7;margin-bottom:4px}
.pt-bar{position:relative;display:block;width:min(240px,50vw);height:6px;border-radius:99px;overflow:hidden}
.pt-bar::before{content:"";position:absolute;inset:0;background:currentColor;opacity:.22}
.pt-bar i{position:absolute;inset:0;background:currentColor;border-radius:99px;transform:scaleX(0);transform-origin:left;transition:transform .7s cubic-bezier(.3,.7,.2,1) .25s}
.pt.on .pt-bar i{transform:scaleX(.72)}
/* arriving: the card is already up, so nothing animates in */
.pt-arrive *{transition:none}
.pt.pt-go .pt-bar i{transform:scaleX(1);transition:transform .25s ease-out}
.pt.pt-out .pt-c,.pt.pt-out .pt-f{opacity:0;transform:translateY(-4vh);transition:opacity .25s ease,transform .4s cubic-bezier(.7,0,.84,0)}
.pt.pt-out .pt-b{transform:translateX(150%) skewX(-14deg);transition:transform .6s cubic-bezier(.76,0,.24,1)}
.pt.pt-out .pt-b3{transition-delay:.08s}
.pt.pt-out .pt-b2{transition-delay:.15s}
.pt.pt-out .pt-b1{transition-delay:.22s}
html.pt-go main,html.pt-go article.cs,html.pt-go .gate{animation:ptRise 1s cubic-bezier(.16,1,.3,1) .25s both}
.pt{font-family:"Funnel Sans",system-ui,sans-serif;font-weight:500;-webkit-font-smoothing:antialiased}
/* transitions, slower and all about the slashing bands */
.pt-f{display:none!important}
.pt-b{transition:transform .85s cubic-bezier(.76,0,.24,1)}
.pt.on .pt-b2{transition-delay:.14s}
.pt.on .pt-b3{transition-delay:.28s}
.pt .pt-e>span,.pt .pt-n>span{transition:transform .65s cubic-bezier(.16,1,.3,1)}
.pt.on .pt-e>span{transition-delay:.62s}
.pt.on .pt-n>span{transition-delay:.68s}
.pt.pt-out .pt-c{transition:opacity .3s ease,transform .45s cubic-bezier(.7,0,.84,0)}
.pt.pt-out .pt-b{transition:transform .9s cubic-bezier(.76,0,.24,1)}
.pt.pt-out .pt-b3{transition-delay:.12s}
.pt.pt-out .pt-b2{transition-delay:.26s}
.pt.pt-out .pt-b1{transition-delay:.4s}
html.pt-go main,html.pt-go article.cs,html.pt-go .gate{animation:ptRise 1.1s cubic-bezier(.16,1,.3,1) .45s both}

/* about: the line that introduces the off-the-clock tiles */
.ab-sub{background:none!important;padding-top:clamp(24px,3vw,40px);padding-bottom:4px;padding-left:0;padding-right:0}
.ab-sub h2{font-size:clamp(28px,3vw,44px);letter-spacing:-.035em;line-height:1.05;margin-top:10px}

/* playing: three cards in a row, one picture height, so it takes far less room */
.gm-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)}
.gm-main{grid-row:auto}
.gm-art,.gm-main .gm-art{aspect-ratio:auto;flex:none;height:clamp(160px,15vw,220px);min-height:0}
.gm-main figcaption>b{font-size:clamp(20px,1.6vw,24px)}
.gm figcaption>b{font-size:19px}
.gm .fact{margin-top:auto;padding-top:12px;min-height:calc(14px*1.45*4 + 12px + 18px)}
.gm figcaption{flex:1}
@media (max-width:1000px){.gm-grid{grid-template-columns:1fr 1fr}.gm-main{grid-column:1 / -1}}
@media (max-width:600px){.gm-grid{grid-template-columns:1fr}.gm .fact{min-height:0}}

/* how I work: white type and icons on every note */
.notes li .nt-front,.notes li .nt-front *{color:#fff}
.notes li .nt-front .nt-flip{opacity:.8}
.notes li .nt-front p{opacity:.92}

/* =====================================================================
   TOP BAR, after Perry Wang's 2023 portfolio
   ===================================================================== */
.hud-in{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding-top:16px;padding-bottom:16px}
.hud-id{justify-self:start;display:flex;flex-direction:column;line-height:1.15;pointer-events:auto}
.hud-id b{font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--fg)}
.hud-id small{font-size:12px;font-weight:500;color:var(--muted)}
.hud-seg{position:relative;justify-self:center;display:flex;gap:2px;padding:4px;border-radius:999px;background:#19191B;border:1px solid var(--tile-3);pointer-events:auto}
.hud-seg a{position:relative;height:36px;display:inline-flex;align-items:center;padding:0 18px;border-radius:999px;font-size:15px;font-weight:600;color:var(--muted);transition:background .3s,color .3s}
.hud-seg a:hover{color:var(--fg)}
.hud-seg a.on{background:var(--tile-3);color:var(--fg)}
/* the little light over the page you're on */
.hud-seg a.on::before{content:"";position:absolute;left:50%;top:-5px;width:22px;height:3px;margin-left:-11px;border-radius:0 0 3px 3px;background:var(--fg)}
.hud-end{justify-self:end;display:flex;align-items:center;pointer-events:auto}
.hud-end .trophy-btn{height:44px;padding:0 16px;background:#19191B;border:1px solid var(--tile-3);border-radius:999px}
.hud-end .trophy-btn:hover{background:var(--tile-2)}
@media (max-width:720px){
  .hud-in{grid-template-columns:auto 1fr auto;padding:12px 14px}
  .hud-id{display:none}
  .hud-seg{justify-self:start;grid-column:1;padding:5px}
  .hud-seg a{height:44px;padding:0 22px;font-size:17px}
  .hud-seg a.on::before{top:-6px;width:26px;margin-left:-13px}
  .hud-end{grid-column:3}
  .hud-end .trophy-btn{position:relative;width:56px;height:56px;padding:0;justify-content:center;border-radius:50%}
  .hud-end .trophy-btn svg,.hud-end .trophy-btn .i{width:22px;height:22px}
  .hud-end .trophy-btn .t-n{display:inline-flex;position:absolute;right:-2px;top:-2px;min-width:22px;height:20px;padding:0 5px;align-items:center;justify-content:center;border-radius:999px;background:var(--gold);color:#111;font-size:10px;font-weight:800}
}
@media (max-width:360px){.hud-seg a{padding:0 16px;font-size:16px}}
.trophies{top:84px}
@media (max-width:720px){.trophies{top:84px}}
/* transitions: just the bands, no words */
.pt-c{display:none!important}

/* =====================================================================
   ABOUT PAGE BENTO: tiles of different sizes that lock together,
   instead of full-width bricks stacked on top of each other.
   ===================================================================== */
.ab-bento{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;align-items:stretch}
.ab-bento>*{grid-column:span 12;margin:0}
.ab-bento .ab-sub{padding:clamp(20px,2.4vw,32px) 4px 0}
/* photo tile: the picture fills it */
.ab-photo{padding:0!important;min-height:280px}
.ab-photo .ab-me{height:100%;margin:0}
.ab-photo .ab-me .ph.me{aspect-ratio:auto!important;height:100%;min-height:280px;border-radius:0}
.ab-intro{display:flex!important;align-items:center}
@media (min-width:1101px){
  .ab-bento{grid-template-areas:
    "intro intro intro intro intro intro intro intro photo photo photo photo"
    "sub   sub   sub   sub   sub   sub   sub   sub   sub   sub   sub   sub"
    "play  play  play  play  play  play  play  play  watch watch watch watch"
    "read  read  read  read  sound sound sound sound watch watch watch watch"
    "sneak sneak sneak sneak sneak sneak quiz  quiz  quiz  quiz  quiz  quiz"}
  .ab-bento .ab-intro{grid-area:intro}
  .ab-bento .ab-photo{grid-area:photo}
  .ab-bento .ab-sub{grid-area:sub}
  .ab-bento #library{grid-area:play}
  .ab-bento #watching{grid-area:watch}
  .ab-bento #shelf{grid-area:read}
  .ab-bento #sound{grid-area:sound}
  .ab-bento #sneakers{grid-area:sneak}
  .ab-bento #game{grid-area:quiz}
  /* watching sits in a tall narrow column, so its cards stack */
  #watching .tv-row{grid-template-columns:1fr;gap:12px;flex:1}
  #watching .tv{grid-template-columns:76px minmax(0,1fr)}
  #watching .tv-art{width:76px}
  #watching .tv .fact{min-height:0}
  /* playing: three games across the wide tile */
  #library .gm-art,#library .gm-main .gm-art{height:clamp(140px,11vw,190px)}
  #library .gm .fact{min-height:calc(13px*1.45*5 + 12px + 18px);font-size:13px}
  /* listening: a 3 by 2 grid of sleeves */
  #sound .sleeves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  /* sneakers: my pair next to the list */
  #sneakers .sneak{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  /* quiz: picture and question side by side, sized for half the width */
  #game .qz{grid-template-columns:minmax(0,4fr) minmax(0,6fr)}
  #game .qz-img{min-height:260px}
  #game .qz-q{font-size:clamp(20px,1.7vw,28px)}
  #game .qz-top{font-size:12px}
}
@media (min-width:761px) and (max-width:1100px){
  .ab-bento .ab-intro{grid-column:span 7}
  .ab-bento .ab-photo{grid-column:span 5}
  .ab-bento #shelf,.ab-bento #sound{grid-column:span 6}
  #sound .sleeves{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  #watching .tv-row{grid-template-columns:repeat(3,minmax(0,1fr))}
  #watching .tv{grid-template-columns:1fr}
  #watching .tv-art{width:100%;aspect-ratio:16/10}
}
@media (max-width:760px){
  .ab-photo,.ab-photo .ab-me .ph.me{min-height:0}
  .ab-photo .ab-me .ph.me{aspect-ratio:4/3!important}
}
@media (min-width:761px) and (max-width:1100px){#sneakers .kick-card .ph{aspect-ratio:4/3!important}}

/* about intro, take two: plain type on the page like the home hero, no tile.
   A small round photo sits by "hi again"; the fun fact sits on the right like the hero's meta. */
.ab-bento .ab-hello{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);align-items:end;gap:24px 40px;padding:clamp(8px,1.5vw,20px) 4px clamp(16px,2vw,28px)}
@media (min-width:1101px){
  .ab-bento{grid-template-areas:
    "intro intro intro intro intro intro intro intro intro intro intro intro"
    "sub   sub   sub   sub   sub   sub   sub   sub   sub   sub   sub   sub"
    "play  play  play  play  play  play  play  play  watch watch watch watch"
    "read  read  read  read  sound sound sound sound watch watch watch watch"
    "sneak sneak sneak sneak sneak sneak quiz  quiz  quiz  quiz  quiz  quiz"}
  .ab-bento .ab-hello{grid-area:intro}
}
.ab-hi{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.ab-hi .label{margin:0}
.ab-avatar{margin:0;flex:none}
.ab-avatar .ph.me{width:44px!important;height:44px!important;min-height:0!important;aspect-ratio:1/1!important;border-radius:50%!important;background:var(--accent);color:#fff}
.ab-avatar .ph.me .mono{font-size:20px!important;letter-spacing:-.04em}
.ab-avatar .ph.me>img{animation:none}
.ab-hello .ab-lede{font-size:clamp(28px,3.4vw,52px);font-weight:600;letter-spacing:-.035em;line-height:1.1;margin:0}
.ab-hello-fact{justify-self:end;max-width:340px;text-align:right;font-size:14px}
.ab-hello-fact>span{display:block}
@media (max-width:860px){
  .ab-bento .ab-hello{grid-template-columns:1fr;gap:20px}
  .ab-hello-fact{justify-self:start;text-align:left}
}
.ab-avatar .ph.me{display:grid!important;place-items:center}.ab-avatar .ph-fb{position:static;line-height:1}.ab-avatar .ph.me .mono{line-height:1}
/* rolling words: no highlight box, just the word in gold (reads clearly on the dark background) */
.hero-tag .roll,.intro .t-big .roll,.ab-lede .roll{background:none!important;padding-inline:0!important;border-radius:0!important;color:var(--gold)!important}
/* top-left: the S logo instead of the name */
.hud-logo{display:block;width:44px;height:44px;border-radius:12px;overflow:hidden;border:1px solid var(--tile-3);transition:transform .4s var(--ease)}
.hud-logo:hover{transform:rotate(-6deg) scale(1.05)}
.hud-logo img{display:block;width:100%;height:100%}
/* big words: only clip top and bottom (for the slide-up), never the sides,
   so the first letter's edge isn't shaved off */
.fit-mask{overflow:visible clip;overflow-clip-margin:0;padding-top:.08em;margin-top:-.08em}


/* =====================================================================
   PAGE TRANSITIONS, rebuilt: flat frosted glass.
   Three panes (like bento tiles) rise over the page, staggered, blurring
   what's behind them. On the next page they start in place, so the new
   page sits blurred behind the glass, then they lift up and away and it
   comes into focus. Flat tint, a hairline edge, no gradients or shadows.
   ===================================================================== */
.pt3{position:fixed;inset:0;z-index:400;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;pointer-events:none}
.pt3.on{pointer-events:auto}
.pt3 i{display:block;border-radius:var(--r,24px);background:rgba(22,22,24,.5);-webkit-backdrop-filter:blur(26px) saturate(1.15);backdrop-filter:blur(26px) saturate(1.15);box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);transform:translateY(calc(100% + 16px));transition:transform .8s cubic-bezier(.76,0,.24,1)}
.pt3.on i{transform:none}
.pt3 i:nth-child(2){transition-delay:.08s}
.pt3 i:nth-child(3){transition-delay:.16s}
.pt3.pt-arrive i{transition:none}
.pt3.pt-out i{transform:translateY(calc(-100% - 16px));transition:transform .85s cubic-bezier(.76,0,.24,1)}
.pt3.pt-out i:nth-child(1){transition-delay:.16s}
.pt3.pt-out i:nth-child(2){transition-delay:.08s}
.pt3.pt-out i:nth-child(3){transition-delay:0s}
@media (max-width:600px){.pt3{gap:6px;padding:6px}.pt3 i{border-radius:18px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.pt3 i{background:rgba(22,22,24,.94)}}
html.pt-go main,html.pt-go article.cs,html.pt-go .gate{animation:ptRise 1.1s cubic-bezier(.16,1,.3,1) .1s both}
body.pt-leaving main,body.pt-leaving article.cs,body.pt-leaving .gate,body.pt-leaving .footer{transform:translateY(-3vh) scale(.985);opacity:.6;transition:transform .9s cubic-bezier(.76,0,.24,1),opacity .8s}
@media (prefers-reduced-motion:reduce){.pt3{display:none}}
.hero-tag .roll,.intro .t-big .roll,.ab-lede .roll{transition:width .45s cubic-bezier(.3,.7,.2,1)}


/* =====================================================================
   PAGE TRANSITIONS, rebuilt to match the site: the screen fills with
   the same frosted-glass tiles as the bento, rippling out from where you
   clicked. On the next page they ripple away from the top-left.
   ===================================================================== */
.pt{display:none!important}
.ptg{position:fixed;inset:0;z-index:400;pointer-events:none;background-color:rgba(14,14,15,0);transition:background-color .35s ease .3s}
.ptg.on{pointer-events:auto;background-color:var(--bg)}
.ptg i{position:absolute;border-radius:clamp(14px,1.6vw,22px);
  background-color:#1C1C1F;
  background-image:var(--grain),linear-gradient(145deg,rgba(255,255,255,.10) 0%,rgba(255,255,255,.03) 45%,rgba(255,255,255,.01) 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),inset 0 0 0 1px rgba(255,255,255,.06);
  opacity:0;transform:scale(.55);
  transition:opacity .4s ease,transform .6s cubic-bezier(.16,1,.3,1);
  transition-delay:calc(var(--d) / var(--max) * .36s)}
.ptg.on i{opacity:1;transform:none}
.ptg.pt-arrive,.ptg.pt-arrive i{transition:none!important}
.ptg.pt-out{background-color:rgba(14,14,15,0);transition:background-color .25s ease}
.ptg.pt-out i{opacity:0;transform:scale(.55);
  transition:opacity .35s ease,transform .5s cubic-bezier(.7,0,.84,0);
  transition-delay:calc(var(--d) / var(--max) * .4s)}
body.pt-leaving main,body.pt-leaving article.cs,body.pt-leaving .gate,body.pt-leaving .footer{transform:scale(.98);opacity:.6;transition:transform .8s cubic-bezier(.76,0,.24,1),opacity .6s}
html.pt-go main,html.pt-go article.cs,html.pt-go .gate{animation:ptRise 1s cubic-bezier(.16,1,.3,1) .15s both}
@keyframes ptRise{from{transform:translateY(5vh)}}
.pt3{display:none!important}
/* flat again: transition tiles are plain tile colour, like the bento */
.ptg i{background:var(--tile)!important;box-shadow:none!important}

/* fun facts: sized to their longest fact (set in js), with a slower, softer change */
.fact .fact-t,.fact .f-ft{transition:opacity .5s ease}
.gm .fact,.tv .fact{min-height:0!important}

/* watching cards, rebuilt: poster and details side by side, the fact underneath across the card */
.tv{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;grid-template-areas:"art info" "fact fact";gap:14px 16px!important;align-items:start!important;padding:14px!important}
.tv-art{grid-area:art;width:96px!important;aspect-ratio:2/3!important;height:auto!important}
.tv figcaption{grid-area:info;height:auto!important;padding-top:4px}
.tv>.fact{grid-area:fact;margin:0!important;padding:12px 2px 0!important;border-top:0}
@media (min-width:1101px){
  #watching .tv-row{display:flex;flex-direction:column;gap:12px}
  #watching .tv{grid-template-columns:84px minmax(0,1fr)!important}
  #watching .tv-art{width:84px!important}
}
@media (min-width:761px) and (max-width:1100px){
  #watching .tv{grid-template-columns:84px minmax(0,1fr)!important}
  #watching .tv-art{width:84px!important;aspect-ratio:2/3!important}
}
@media (min-width:1101px){#watching .tv-row{flex:1}#watching .tv{flex:1;align-content:space-between}}
@media (max-width:720px){.hud-logo{display:none!important}}

/* quiz: one fixed size whatever the picture or answer.
   The picture always fills the same box, and after you answer, the
   explanation takes the question's place and Next takes the buttons' place. */
#game .qz{grid-template-rows:300px}
#game .qz-img{position:relative;overflow:hidden;min-height:0!important;height:100%;aspect-ratio:auto}
#game .qz-img>img{position:absolute!important;inset:0;width:100%!important;height:100%!important;object-fit:cover;object-position:center 30%}
#game .qz-main{height:100%;min-height:0;overflow:hidden;gap:14px}
#game .qz-q{flex:1;display:flex;align-items:flex-start;overflow:hidden}
#game .qz-btns{flex:none}
#game .qz-why{display:none;flex:1;overflow:auto;font-size:15px;line-height:1.5;color:var(--fg)}
#game .qz.answered .qz-q{display:none}
#game .qz.answered .qz-why{display:block}
#game .qz.answered .qz-btns{display:none}
#game .qz-ans{font-weight:700;color:var(--fg)}
#game .qz-next{flex:none;align-self:stretch;justify-content:center;height:56px;border-radius:16px}
@media (max-width:860px){
  #game .qz{grid-template-rows:auto 300px}
  #game .qz-img{aspect-ratio:16/9;height:auto}
}

/* =====================================================================
   PAGE TRANSITIONS: a tunnel of squircles. Rounded squares open out from
   the middle, one inside another, starting in the colour of the page
   you're heading to and getting darker ring by ring until the screen is
   dark. The next page then rises up out of the dark.
   ===================================================================== */
.ptg,.pt,.pt3{display:none!important}
.ptq{position:fixed;inset:0;z-index:400;pointer-events:none;overflow:hidden}
.ptq.on{pointer-events:auto}
.ptq i{position:absolute;left:50%;top:50%;width:150vw;height:150vh;margin:-75vh 0 0 -75vw;border-radius:10vmin;transform:scale(0);transition:transform .76s cubic-bezier(.65,0,.35,1);will-change:transform}
.ptq.on i{transform:scale(1)}
.ptq-cover{position:fixed;inset:0;z-index:400;background:var(--bg)}
.ptq-cover.pt-arrive{transition:none}
.ptq-cover.pt-out{opacity:0;transition:opacity .7s ease}
html.pt-go main,html.pt-go article.cs,html.pt-go .gate{animation:ptRise 1s cubic-bezier(.16,1,.3,1) .05s both}
@media (prefers-reduced-motion:reduce){.ptq,.ptq-cover{display:none}}
/* about: intro removed, so the bento starts with the "off the clock" heading */
@media (min-width:1101px){
  .ab-bento{grid-template-areas:
    "sub   sub   sub   sub   sub   sub   sub   sub   sub   sub   sub   sub"
    "play  play  play  play  play  play  play  play  watch watch watch watch"
    "read  read  read  read  sound sound sound sound watch watch watch watch"
    "sneak sneak sneak sneak sneak sneak quiz  quiz  quiz  quiz  quiz  quiz"}
}

/* =====================================================================
   HOW I WORK, compact: heading on the left, four rules in one strip.
   One rule is open at a time; hover or tap another to open it.
   ===================================================================== */
.how2{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);gap:28px;align-items:stretch}
.how2 .how-head{display:block;margin:0;align-self:center}
.how2 .how-title{font-size:clamp(24px,2.2vw,32px);line-height:1.1}
.rl-row{list-style:none;margin:0;padding:0;display:flex;gap:10px;height:200px}
.rl-row li{flex:1 1 0;min-width:0;transition:flex-grow .55s cubic-bezier(.65,0,.15,1)}
.rl-row li.on{flex-grow:2.6}
.rl-in{all:unset;box-sizing:border-box;cursor:pointer;width:100%;height:100%;display:flex;flex-direction:column;
  padding:18px;border-radius:20px;background:var(--n);color:#fff;overflow:hidden;position:relative}
.rl-in:focus-visible{outline:3px solid #FFD23F;outline-offset:3px}
.rl-top{display:flex;justify-content:space-between;align-items:center}
.rl-top .i{width:24px;height:24px}
.rl-n{font-size:13px;font-weight:800;letter-spacing:.08em;opacity:.7}
.rl-t{margin-top:auto;font-size:17px;font-weight:700;line-height:1.15;letter-spacing:-.015em}
.rl-b{font-size:15px;line-height:1.4;max-height:0;opacity:0;overflow:hidden;
  transition:max-height .5s cubic-bezier(.65,0,.15,1),opacity .3s,margin .5s}
.rl-row li.on .rl-t{font-size:22px}
.rl-row li.on .rl-b{max-height:9em;opacity:.9;margin-top:8px;transition-delay:0s,.2s,0s}
.rl-row li:not(.on) .rl-in:hover{filter:brightness(1.08)}
@media (max-width:1100px){
  .how2{grid-template-columns:1fr;gap:20px}
}
@media (max-width:720px){
  .rl-row{flex-direction:column;height:auto;gap:8px}
  .rl-in{padding:16px;border-radius:16px}
  .rl-t{margin-top:10px}
  .rl-row li.on .rl-t{font-size:19px}
}
@media (prefers-reduced-motion:reduce){.rl-row li,.rl-b{transition:none}}
.how2 .how-title{text-wrap:balance}

/* =====================================================================
   TRANSITIONS: back to the slanted bands. Three flat bands sweep in at an
   angle (gold, bone, then the colour of the page you're going to) and
   sweep off to the right as the next page rises in. No words.
   ===================================================================== */
.ptq,.ptq-cover{display:none!important}
.pt{display:block!important}
.pt-c,.pt-f{display:none!important}
body.pt-leaving main,body.pt-leaving article.cs,body.pt-leaving .gate,body.pt-leaving .footer{transform:translateY(-5vh) scale(.97);opacity:.35;transition:transform .7s cubic-bezier(.76,0,.24,1),opacity .6s}
html.pt-go main,html.pt-go article.cs,html.pt-go .gate{animation:ptRise 1.1s cubic-bezier(.16,1,.3,1) .45s both}

/* =====================================================================
   TRANSITIONS, quiet and smooth: the page softens and fades to the
   background, the next one comes into focus as it drifts up a few pixels.
   ===================================================================== */
.pt,.ptq,.ptq-cover,.ptg,.pt3{display:none!important}
.pxs{position:fixed;inset:0;z-index:400;background:var(--bg);pointer-events:none;opacity:0;
  transition:opacity .26s cubic-bezier(.4,0,.2,1)}
.pxs.on{opacity:1;pointer-events:auto}
html.pt-in .pxs{opacity:1;transition:none}
html.px-go .pxs{opacity:0;transition:opacity .35s cubic-bezier(.4,0,.2,1)}
body.px-leave main,body.px-leave article.cs,body.px-leave .gate,body.px-leave .footer{
  transform:scale(.985);filter:blur(6px);opacity:.5;
  transition:transform .26s cubic-bezier(.4,0,.2,1),filter .26s cubic-bezier(.4,0,.2,1),opacity .26s cubic-bezier(.4,0,.2,1)}
html.pt-go main,html.pt-go article.cs,html.pt-go .gate{animation:none}
html.px-go main,html.px-go article.cs,html.px-go .gate{animation:pxIn .6s cubic-bezier(.2,.8,.2,1) backwards}
@keyframes pxIn{from{opacity:0;transform:translateY(14px) scale(.995);filter:blur(8px)}}
@media (prefers-reduced-motion:reduce){.pxs{display:none}}

/* about, reordered: music and sneakers first, then games and shows, reading, the quiz last */
@media (min-width:1101px){
  .ab-bento{grid-template-areas:
    "sub   sub   sub   sub   sub   sub   sub   sub   sub   sub   sub   sub"
    "sound sound sound sound sound sound sneak sneak sneak sneak sneak sneak"
    "play  play  play  play  play  play  play  play  watch watch watch watch"
    "read  read  read  read  read  read  read  read  watch watch watch watch"
    "quiz  quiz  quiz  quiz  quiz  quiz  quiz  quiz  quiz  quiz  quiz  quiz"}
}
@media (min-width:761px) and (max-width:1100px){
  .ab-bento #shelf{grid-column:span 12}
}
@media (min-width:1101px){
  /* reading, in the wide row: each manga is a small cover with its title beside it */
  #shelf .mg-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  #shelf .mg{flex-direction:row;align-items:center;gap:14px;background:var(--tile-2);border-radius:16px;padding:12px}
  #shelf .mg-cover{width:84px;flex:none;border-radius:10px}
  #shelf .mg-cover .ph-fb b{font-size:11px}
}
@media (min-width:761px) and (max-width:1100px){
  .ab-bento #sound,.ab-bento #sneakers{grid-column:span 12}
  #sound .sleeves{grid-template-columns:repeat(6,minmax(0,1fr))}
  #shelf .mg-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  #shelf .mg{flex-direction:row;align-items:center;gap:14px;background:var(--tile-2);border-radius:16px;padding:12px}
  #shelf .mg-cover{width:72px;flex:none;border-radius:10px}
  #shelf .mg-cover .ph-fb b{font-size:10px}
}

/* =====================================================================
   NO FULL-COLOUR CARDS: the project cards, the "now" and "off the clock"
   tiles, the four rules and the password panel sit on the site's greys.
   Colour comes from the work itself (screens, photos) and the stickers.
   The email button in the footer keeps the blue: it's the one action.
   ===================================================================== */
.card{--ink:var(--fg);background:var(--tile)}
/* the pictures keep their colour; every mock-up sits on the bottom edge, at most 80% wide and 84% tall */
.work .card-img img{inset:auto 10% 0;width:80%;height:84%;object-fit:contain;object-position:50% 100%;transform-origin:50% 100%}
.card p{color:var(--muted);opacity:1}
.card .start .key{background:var(--tile-3);color:var(--fg)}
.tile.accent{background:var(--tile);color:var(--fg)}
.tile.accent .label,.tile.accent .t-sub{color:var(--muted)}
.tile.accent .logo{background:#fff;color:#111}
.rl-in{background:var(--tile-2);color:var(--fg)}
.rl-row li.on .rl-in{background:var(--tile-3)}
.rl-n{color:var(--muted);opacity:1}
.gate-lock{background:var(--tile);color:var(--fg)}
.save-slot{background:var(--tile-2)}
.save-slot .lockico{color:#111}
.gate .btn{background:var(--fg);color:#111}
.gate .btn .key{background:rgba(0,0,0,.1);color:#111}
/* picture slots: grey until the photo or cover loads, not a block of colour */
.off-pics .ph,.sleeve,.mg-cover{background-color:var(--tile-3)!important;color:var(--fg)!important}
.sleeve .ini{color:var(--muted)}
