@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../public/assets/fonts.gstatic.com/s/geist/v5/gyBhhwUxId8gMGYQMKR3pzfaWI_RwuM4nQ.woff2) format('woff2'), url(../public/assets/fonts.gstatic.com/s/geist/v5/gyBhhwUxId8gMGYQMKR3pzfaWI_RwuM4nQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../public/assets/fonts.gstatic.com/s/geist/v5/gyBhhwUxId8gMGYQMKR3pzfaWI_RnOM4nQ.woff2) format('woff2'), url(../public/assets/fonts.gstatic.com/s/geist/v5/gyBhhwUxId8gMGYQMKR3pzfaWI_RnOM4nQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../public/assets/fonts.gstatic.com/s/geist/v5/gyBhhwUxId8gMGYQMKR3pzfaWI_RruM4nQ.woff2) format('woff2'), url(../public/assets/fonts.gstatic.com/s/geist/v5/gyBhhwUxId8gMGYQMKR3pzfaWI_RruM4nQ.ttf) format('truetype');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../public/assets/fonts.gstatic.com/s/geistmono/v5/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeFjKJ5T.woff2) format('woff2'), url(../public/assets/fonts.gstatic.com/s/geistmono/v5/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeFjKJ5T.ttf) format('truetype');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../public/assets/fonts.gstatic.com/s/geistmono/v5/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeE9KJ5T.woff2) format('woff2'), url(../public/assets/fonts.gstatic.com/s/geistmono/v5/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeE9KJ5T.ttf) format('truetype');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../public/assets/fonts.gstatic.com/s/geistmono/v5/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeEPKJ5T.woff2) format('woff2'), url(../public/assets/fonts.gstatic.com/s/geistmono/v5/or3yQ6H-1_WfwkMZI_qYPLs1a-t7PU0AbeEPKJ5T.ttf) format('truetype');
}

@font-face {
  font-family: 'Geist Pixel';
  src: url('../public/assets/cdn.jsdelivr.net/npm/geist@1.7.0/dist/fonts/geist-pixel/GeistPixel-Square.woff2') format('woff2');
  font-weight: 400;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --white: #fff; --black: #000; --mid: #666; --muted: #999; --rule: #e5e5e5;
  --blue: #0400FF; --row-active-bg: rgba(4,0,255,0.03);
  --mono: 'Geist Mono', 'Courier New', monospace;
  --sans: 'Geist', system-ui, sans-serif;
  --pixel: 'Geist Pixel', 'Geist Mono', monospace;
  --e1: cubic-bezier(0.22, 1, 0.36, 1);
  --e2: cubic-bezier(0.16, 1, 0.3, 1);
  --col-left: clamp(140px, 11vw, 180px);
  --col-info: clamp(160px, 13vw, 210px);
}
html, body { height: 100%; overflow: hidden; background: #f5f5f5; color: var(--black); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; cursor: none; }

/* corner brackets */
.bracket { position: fixed; z-index: 9991; pointer-events: none; width: 16px; height: 16px; opacity: 0; transition: opacity .8s var(--e1); }
.bracket.in { opacity: 1; }
.bracket svg { display: block; }
.bracket-tl { top: 10px; left: 10px; }
.bracket-tr { top: 10px; right: 10px; }
.bracket-bl { bottom: 32px; left: 10px; }
.bracket-br { bottom: 32px; right: 10px; }

/* cursor */
#cur-dot { position: fixed; z-index: 9998; pointer-events: none; width: 5px; height: 5px; border-radius: 50%; background: var(--black); top: 0; left: 0; will-change: transform; transition: background .15s, opacity .15s; }
#cur-ring { position: fixed; z-index: 9997; pointer-events: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.22); top: 0; left: 0; will-change: transform; transition: opacity .15s; }
body.hover #cur-dot { background: var(--blue); opacity: .3; }
body.hover #cur-ring { opacity: 0; }
#cur-xy { position: fixed; z-index: 9997; pointer-events: none; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; color: var(--blue); white-space: nowrap; top: 0; left: 0; will-change: transform; transform: translate(-999px,-999px); opacity: 0; transition: opacity .3s; }
#cur-xy.visible { opacity: 1; }

/* status bar */
#status-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9992; height: 22px; border-top: 1px solid var(--rule); background: rgba(255,255,255,0.97); display: flex; align-items: center; padding: 0 clamp(14px,1.4vw,22px); gap: clamp(20px,3vw,48px); opacity: 0; transform: translateY(4px); transition: opacity .5s var(--e1), transform .5s var(--e1), background .4s, border-color .4s; }
#status-bar.in { opacity: 1; transform: translateY(0); }
.sb-item { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; white-space: nowrap; transition: color .4s; }
.sb-item span { color: var(--black); transition: color .4s; }
.sb-item.blue span { color: var(--blue); }

/* shell */
.shell { display: grid; grid-template-columns: var(--col-left) minmax(0, 4fr) minmax(0, 6fr) var(--col-info); height: 100vh; padding-bottom: 22px; background: var(--white); transition: background .4s, margin-right 0.55s cubic-bezier(0.22,1,0.36,1); }

/* LEFT */
.left { border-right: 1px solid var(--rule); display: flex; flex-direction: column; padding: clamp(16px,1.5vw,28px) clamp(14px,1.4vw,22px); transition: background .4s, border-color .4s; }
.logo { display: block; width: fit-content; margin-bottom: clamp(14px,1.5vh,22px); opacity: 0; transform: translateY(8px); text-decoration: none; }
.redux-logo {
  display: inline-block;
  font-family: var(--pixel);
  font-size: clamp(1.05rem,1.45vw,1.55rem);
  line-height: .92;
  letter-spacing: 0;
  color: var(--black);
  text-transform: uppercase;
  transition: color .4s, opacity .18s, transform .18s;
}
.nav-link { font-size: clamp(.9rem,1.1vw,1.15rem); color: var(--mid); text-decoration: none; display: block; line-height: 2; font-family: var(--pixel); transition: color .15s; opacity: 0; transform: translateY(6px); }
.nav-link.active { color: var(--black); }
.nav-link:hover { color: var(--black); }
.nav-active-marker { display: inline-block; margin-right: 3px; font-size: .55em; vertical-align: middle; position: relative; top: -1px; }
.left-foot { margin-top: auto; font-size: clamp(.44rem,.46vw,.52rem); color: var(--muted); font-family: var(--mono); line-height: 1.7; opacity: 0; transform: translateY(6px); cursor: none; word-break: break-word; overflow-wrap: break-word; transition: color .4s; }
.lf-char { display: inline; transition: color .08s; }

/* MID */
.mid { border-right: 1px solid var(--rule); display: flex; flex-direction: column; overflow: hidden; transition: border-color .4s; position: relative; z-index: 1; }
.hero-block { padding: clamp(20px,2.6vh,40px) clamp(22px,2.5vw,40px) clamp(18px,2.6vh,36px); flex-shrink: 0; }
.headline {
  position: relative;
  display: block;
  min-height: 2.2em;
  font-family: var(--pixel);
  font-size: clamp(1.05rem,2vw,2.15rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: pre-wrap;
}
.hl-ghost { visibility: hidden; pointer-events: none; display: block; font: inherit; letter-spacing: inherit; white-space: inherit; }
.hl-live { position: absolute; inset: 0; font: inherit; letter-spacing: inherit; white-space: inherit; }
.subline { font-size: clamp(.62rem,.75vw,.78rem); color: var(--mid); line-height: 1.65; font-family: var(--mono); margin-top: clamp(8px,1vh,14px); opacity: 0; transform: translateY(8px); transition: opacity .55s var(--e1), transform .55s var(--e1); }
.subline.in { opacity: 1; transform: translateY(0); }
.proj-label-row { padding: clamp(7px,.9vh,12px) clamp(14px,1.7vw,28px); border-bottom: 1px solid var(--rule); flex-shrink: 0; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--e1), transform .4s var(--e1); }
.proj-label-row.in { opacity: 1; transform: translateY(0); }
.proj-pill { display: inline-block; background: var(--black); color: white; font-size: clamp(.44rem,.5vw,.54rem); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; font-family: var(--mono); transition: background .4s; }

/* rows */
.rows { flex: 1; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: none; }
.rows::-webkit-scrollbar { display: none; }
.row { display: flex; align-items: center; gap: clamp(8px,1vw,14px); padding: 0 clamp(22px,2.5vw,40px); border-bottom: 1px solid var(--rule); cursor: none; flex-shrink: 0; min-height: clamp(64px,7.4vh,92px); position: relative; transition: background .2s; opacity: 0; transform: translateY(10px); }
.row.active { min-height: clamp(84px,10vh,120px); background: var(--row-active-bg); }
.row:not(.active):hover { background: rgba(4,0,255,.015); }
.row-num { font-family: var(--mono); font-size: clamp(.54rem,.64vw,.68rem); color: var(--muted); width: clamp(24px,2.5vw,38px); text-align: left; flex-shrink: 0; transition: color .2s; }
.row.active .row-num, .row:not(.active):hover .row-num { color: var(--blue); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-right: 26px; }
.row-title { font-family: var(--pixel); font-size: clamp(1rem,1.6vw,1.7rem); font-weight: 400; line-height: 1.1; color: var(--muted); opacity: .66; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .22s, opacity .22s, transform .35s var(--e2); }
.row-sub { font-family: var(--mono); font-size: clamp(.5rem,.58vw,.62rem); letter-spacing: .04em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .22s, transform .35s var(--e2); }
.row.active .row-sub, .row:not(.active):hover .row-sub { color: var(--mid); transform: translateX(5px); }
.row.active .row-title, .row:not(.active):hover .row-title { color: var(--black); opacity: 1; transform: translateX(5px); }
.row-btn { position: absolute; right: 0; bottom: 0; width: clamp(18px,1.6vw,22px); height: clamp(18px,1.6vw,22px); background: var(--blue); border: none; display: flex; align-items: center; justify-content: center; opacity: 0; cursor: none; transition: opacity .2s; }
.row.active .row-btn, .row:not(.active):hover .row-btn { opacity: 1; }

/* views */
.list-view { display: flex; flex-direction: column; overflow: hidden; flex: 1; }
.list-view.hidden { display: none; }
.detail { display: none; flex-direction: column; overflow: hidden; flex: 1; }
.detail.visible { display: flex; }
.detail .subline { display: none; }

/* detail */
.detail-active-row { display: flex; align-items: center; gap: clamp(8px,1vw,14px); padding: 0 clamp(22px,2.5vw,40px); min-height: clamp(72px,8.5vh,104px); background: var(--row-active-bg); border-bottom: 1px solid var(--rule); flex-shrink: 0; cursor: none; position: relative; transition: background .2s; }
.detail-active-row:hover { background: rgba(4,0,255,.05); }
.detail-active-row .row-num { font-family: var(--mono); font-size: clamp(.54rem,.64vw,.68rem); color: var(--blue); width: clamp(24px,2.5vw,38px); text-align: left; flex-shrink: 0; }
.detail-active-row .row-title { font-family: var(--pixel); font-size: clamp(1rem,1.6vw,1.7rem); font-weight: 400; line-height: 1; color: var(--black); flex: 1; padding-right: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-active-row .row-btn { position: absolute; right: 0; bottom: 0; width: clamp(18px,1.6vw,22px); height: clamp(18px,1.6vw,22px); background: var(--blue); border: none; display: flex; align-items: center; justify-content: center; cursor: none; opacity: 1; }
.detail-body { padding: clamp(18px,2.5vh,36px) clamp(22px,2.5vw,40px); overflow-y: auto; flex: 1; scrollbar-width: none; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--e2) .05s, transform .45s var(--e2) .05s; }
.detail-body::-webkit-scrollbar { display: none; }
.detail-body.in { opacity: 1; transform: translateY(0); }

/* project detail (shared by desktop detail view and mobile accordion) */
.pd-lead { font-size: clamp(.74rem,.9vw,.92rem); line-height: 1.6; color: var(--black); margin-bottom: clamp(14px,2vh,22px); }
.pd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: clamp(18px,2.6vh,30px); }
.pd-fact { padding: 9px 10px 10px 0; min-width: 0; }
.pd-fact + .pd-fact { padding-left: 10px; border-left: 1px solid var(--rule); }
.pd-fact dt { font-family: var(--mono); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pd-fact dd { font-family: var(--mono); font-size: clamp(.56rem,.64vw,.68rem); line-height: 1.45; color: var(--black); }
.pd-section { margin-bottom: clamp(18px,2.6vh,30px); }
.pd-h { font-family: var(--pixel); font-size: clamp(.7rem,.8vw,.86rem); font-weight: 400; letter-spacing: .02em; color: var(--blue); margin-bottom: 10px; }
.pd-p { font-family: var(--mono); font-size: clamp(.6rem,.7vw,.74rem); line-height: 1.75; color: var(--mid); }
.pd-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.pd-metric { background: var(--white); padding: 12px 12px 11px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-metric-v { font-family: var(--pixel); font-size: clamp(1.05rem,1.45vw,1.55rem); line-height: 1; color: var(--black); white-space: nowrap; }
.pd-metric-l { font-family: var(--mono); font-size: clamp(.5rem,.56vw,.6rem); line-height: 1.45; color: var(--mid); }
.pd-hls { list-style: none; counter-reset: hl; display: grid; gap: 12px; }
.pd-hl { counter-increment: hl; display: grid; grid-template-columns: 22px 1fr; column-gap: 4px; row-gap: 3px; font-family: var(--mono); }
.pd-hl::before { content: counter(hl, decimal-leading-zero); grid-row: span 2; font-size: .55rem; color: var(--muted); padding-top: 2px; }
.pd-hl-k { font-size: clamp(.62rem,.72vw,.76rem); color: var(--black); }
.pd-hl-v { font-size: clamp(.58rem,.68vw,.72rem); line-height: 1.7; color: var(--mid); }
.pd-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.pd-chip { font-family: var(--mono); font-size: clamp(.5rem,.56vw,.6rem); color: var(--black); border: 1px solid var(--rule); padding: 3px 7px; background: #fafafa; }
.pd-link { display: inline-block; margin: 2px 0 clamp(18px,3vh,32px); font-family: var(--mono); font-size: clamp(.56rem,.62vw,.66rem); color: #fff; background: var(--blue); padding: 7px 10px; text-decoration: none; cursor: none; }

/* right images */
.right {
  overflow: visible;
  scrollbar-width: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.9) 58%, rgba(4,0,255,.08) 100%),
    repeating-linear-gradient(0deg, rgba(4,0,255,.08) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(4,0,255,.06) 0 1px, transparent 1px 16px),
    #fff;
  transition: background .4s, opacity 0.35s;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.right::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, rgba(4,0,255,.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(4,0,255,.12) 25%, transparent 25%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
  opacity: .34;
}
.right::-webkit-scrollbar { display: none; }
.right > [id^="imgs-p-"] {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vh, 36px) clamp(18px, 3vw, 54px);
  position: relative;
  z-index: 1;
}
.img-wrap { width: 100%; position: relative; overflow: hidden; }
.img-wrap img { width: 100%; max-width: 100%; height: auto; object-fit: contain; display: block; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--e2), transform .7s var(--e2); }
.img-wrap img.in { opacity: 1; transform: scale(1); }

/* INFO col */
.info { border-left: 1px solid var(--rule); display: flex; flex-direction: column; height: 100%; padding: clamp(16px,1.8vh,28px) clamp(14px,1.4vw,22px); overflow: hidden; transition: background .4s, border-color .4s; }
.info-top { opacity: 0; transform: translateY(8px); }
.say-hey { display: inline-flex; align-items: center; gap: 6px; background: var(--blue); color: white; border: none; padding: 4px 10px 4px 8px; font-size: clamp(.52rem,.6vw,.65rem); letter-spacing: .08em; text-transform: uppercase; cursor: none; margin-bottom: 10px; font-family: var(--pixel); font-weight: 400; }
.say-hey-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }
.email-row { display: flex; align-items: baseline; gap: 5px; cursor: none; margin-bottom: 2px; }
.email-arrow { font-family: var(--pixel); font-size: clamp(.7rem,.85vw,.9rem); color: var(--black); flex-shrink: 0; transition: color .4s; }
.email-default { font-size: clamp(.62rem,.72vw,.76rem); color: var(--black); font-family: var(--pixel); word-break: break-all; transition: color .4s; }
.email-hover { font-size: clamp(.62rem,.72vw,.76rem); color: var(--blue); font-family: var(--pixel); display: none; text-decoration: underline; transition: color .4s; }
.email-row:hover .email-default { display: none; }
.email-row:hover .email-arrow { color: var(--blue); } .email-row:hover .email-hover { display: inline; }
.x-link { display: flex; align-items: center; gap: 5px; font-family: var(--pixel); font-size: clamp(.62rem,.72vw,.76rem); color: var(--black); text-decoration: none; cursor: none; margin-top: 2px; }
.x-link:hover { color: var(--blue); }
.x-hover { display: none; }
.x-link:hover .x-default { display: none; }
.x-link:hover .x-hover { display: inline; }
.email-copied { font-size: clamp(.62rem,.72vw,.76rem); color: var(--black); font-family: var(--pixel); opacity: 0; transition: opacity .25s, color .4s; height: 0; overflow: hidden; }
.email-copied.visible { opacity: 1; height: auto; }
.info-foot { margin-top: auto; opacity: 0; transform: translateY(8px); }
.info-meta { font-size: clamp(.46rem,.52vw,.56rem); color: var(--muted); font-family: var(--mono); line-height: 2; margin-bottom: clamp(8px,1vh,14px); transition: color .4s; }
.ir-char { display: inline; transition: color .08s; }
.info-thumb { width: 100%; aspect-ratio: 1; overflow: hidden; background: var(--rule); }
.info-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.06); transition: opacity .5s var(--e2), transform .6s var(--e2); }
.info-thumb img.in { opacity: 1; transform: scale(1); }
.info-rights { font-size: clamp(.46rem,.52vw,.56rem); color: var(--muted); font-family: var(--mono); line-height: 1.9; margin-top: clamp(8px,1vh,14px); text-transform: uppercase; cursor: none; transition: color .4s; }

/* open-source group in the work list */
.rows-divider { display: flex; justify-content: space-between; gap: 12px; padding: 16px clamp(22px,2.5vw,40px) 8px; border-bottom: 1px dashed var(--rule); font-family: var(--mono); font-size: clamp(.5rem,.56vw,.6rem); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); flex-shrink: 0; background: repeating-linear-gradient(90deg, rgba(4,0,255,.04) 0 1px, transparent 1px 8px); }
.rows-divider span:last-child { color: var(--muted); text-transform: none; }
.row-tag { display: inline-block; margin-right: 6px; padding: 0 4px; background: #07070c; color: #4ade80; font-size: .9em; letter-spacing: .06em; }
.row-main.is-oss .row-title { font-family: var(--mono); letter-spacing: -.02em; }

/* Work preview facade: screenshot first, live iframe only when visually ready. */
.preview-card {
  width: min(1040px, calc(100vw - 420px));
  min-height: 0;
  border: 1px solid rgba(0, 0, 0, .1);
  background: rgba(255,255,255,.86);
  margin-left: auto;
  margin-right: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(4, 0, 255, .08), 0 4px 16px rgba(0,0,0,.06);
  transform-origin: center center;
  transform: translate3d(0,0,0) scale(var(--preview-scale, .62));
  transition: transform .62s var(--e2), box-shadow .62s var(--e2), background .42s var(--e2);
  will-change: transform;
  backface-visibility: hidden;
  contain: paint style;
  isolation: isolate;
  z-index: 2;
  flex: 0 0 auto;
}

.preview-card.is-hovering {
  transform: translate3d(0,0,0) scale(1);
  z-index: 40;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 90px rgba(4, 0, 255, .16), 0 12px 28px rgba(0,0,0,.1);
}

.preview-frame-shell {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92)),
    repeating-linear-gradient(0deg, rgba(4,0,255,.07) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(4,0,255,.055) 0 1px, transparent 1px 14px);
  min-height: clamp(520px, 72vh, 760px);
}

.preview-card iframe {
  width: 100%;
  height: clamp(520px, 72vh, 760px);
  border: 0;
  display: block;
  background: white;
  opacity: 1;
  transition: opacity .22s ease;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  pointer-events: none;
}

.preview-hover-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: transparent;
}

.preview-card:not(.has-placeholder).is-hovering iframe,
.preview-card.has-placeholder.is-frame-started.is-hovering iframe,
.preview-card.has-placeholder.is-loaded.is-hovering iframe,
.preview-card.has-placeholder.is-facade-ready.is-hovering iframe {
  pointer-events: auto;
}

.preview-card.is-hovering .preview-hover-hit {
  pointer-events: none;
}

.preview-card.has-placeholder iframe { opacity: 0; }
.preview-card.has-placeholder.is-loaded iframe { opacity: 1; }

.preview-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,247,255,.9)),
    repeating-linear-gradient(0deg, rgba(4,0,255,.07) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(90deg, rgba(4,0,255,.055) 0 1px, transparent 1px 14px);
  transition: opacity .22s ease, visibility .22s ease;
  pointer-events: none;
}

.preview-placeholder img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
}

.preview-card.has-placeholder.is-loaded .preview-placeholder {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preview-card.has-placeholder.is-slow:not(.is-loaded) .preview-placeholder,
.preview-card.has-placeholder.is-facade-ready .preview-placeholder {
  opacity: 1;
  visibility: visible;
}

.preview-card.has-placeholder.is-facade-ready iframe { opacity: 0; }

.preview-card.has-placeholder:not(.is-loaded):not(.is-facade-ready) iframe,
.preview-card.has-placeholder.is-hovering:not(.is-loaded):not(.is-facade-ready) iframe {
  opacity: 0;
}

.preview-card.has-placeholder.is-loaded.is-hovering iframe,
.preview-card.has-placeholder.is-frame-started.is-hovering iframe,
.preview-card.has-placeholder.is-hovering.is-frame-started:not(.is-force-facade) iframe,
.preview-card.has-placeholder.is-facade-ready.is-hovering iframe {
  opacity: 1;
}

.preview-card.has-placeholder.is-frame-started.is-hovering .preview-placeholder,
.preview-card.has-placeholder.is-loaded.is-hovering .preview-placeholder,
.preview-card.has-placeholder.is-facade-ready.is-hovering .preview-placeholder {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preview-card.is-force-facade.has-placeholder.is-hovering iframe {
  opacity: 0;
  pointer-events: none;
}

.preview-card.is-force-facade.has-placeholder.is-hovering .preview-placeholder {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
}

@media (hover: none) {
  .preview-card:hover {
    width: min(1040px, calc(100vw - 420px));
    transform: translate3d(0,0,0) scale(1);
  }
}

.preview-meta {
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--black);
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-meta span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.artifact-preview {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.artifact-pill {
  font-family: var(--mono);
  font-size: .55rem;
  border: 1px solid rgba(0, 0, 0, .12);
  padding: 7px 9px;
  background: #fff;
}

.open-live {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-size: .58rem;
  padding: 9px 11px;
}

.mob-preview-card {
  flex: 0 0 min(78vw, 620px);
  display: grid;
  align-content: start;
  border-right: 1px solid var(--rule);
  background: #f7f7f2;
  position: relative;
}

.mob-preview-frame {
  width: 100%;
  aspect-ratio: 16 / 11;
  background: #fff;
  overflow: hidden;
}

.mob-preview-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .45s var(--e2), transform .55s var(--e2);
}

.mob-preview-frame img.in {
  opacity: 1;
  transform: scale(1);
}

.mob-preview-meta {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid rgba(0, 0, 0, .08);
  font-family: var(--mono);
  font-size: clamp(.52rem, 2.4vw, .62rem);
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mob-preview-meta span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mob-preview-live {
  position: absolute;
  right: 8px;
  bottom: 44px;
  z-index: 2;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: .56rem;
  padding: 8px 9px;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .preview-frame-shell,
  .preview-card iframe {
    min-height: min(58vh, 560px);
    height: min(58vh, 560px);
  }
}

.mob-preview-card.is-repo { flex: 0 0 100%; border-right: 0; }
.mob-preview-card .repo-term { width: 100%; box-shadow: none; border: 0; }

@media (max-width: 1024px) {
  .rt-body { min-height: 0; padding: 14px 14px 56px; overflow-x: auto; scrollbar-width: none; }
  .rt-body::-webkit-scrollbar { display: none; }
  .rt-line { text-overflow: clip; overflow: visible; }
  .mob-imgs { scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .mob-imgs.is-steering { scroll-snap-type: none; }
  .mob-preview-card { scroll-snap-align: start; }
}

@media (max-width: 520px) {
  .mob-preview-card { flex-basis: 86vw; }
  .mob-preview-frame { aspect-ratio: 4 / 3; }
  .mob-preview-meta { font-size: .5rem; }
}

/* Open-source repo terminal */
.repo-term {
  width: min(100%, 680px);
  background: #07070c;
  color: #d9dae6;
  font-family: var(--mono);
  font-variant-ligatures: none;
  font-feature-settings: 'liga' 0, 'calt' 0;
  border: 1px solid #1d1d2b;
  box-shadow: 0 30px 80px rgba(4, 0, 255, .22), 0 0 0 1px rgba(4, 0, 255, .25), 0 0 40px rgba(4, 0, 255, .18) inset;
  position: relative;
  overflow: hidden;
}
.repo-term::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}
.rt-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #1d1d2b; background: #0d0d16; font-size: .58rem; letter-spacing: .06em; color: #8a8a99; }
.rt-dots { display: inline-flex; gap: 6px; }
.rt-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a3a; }
.rt-dots i:first-child { background: #ff5f57; } .rt-dots i:nth-child(2) { background: #febc2e; } .rt-dots i:nth-child(3) { background: #28c840; }
.rt-path { color: #c7c8ff; }
.rt-branch { margin-left: auto; color: #4ade80; }
.rt-body { padding: 18px 18px 64px; font-size: clamp(.58rem, .7vw, .72rem); line-height: 1.85; min-height: 300px; }
.rt-line { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.rt-ps { color: #4ade80; }
.rt-hi { color: #fff; }
.rt-out { color: #9a9bb0; }
.rt-art { color: #8f8cff; }
.rt-bar-line { padding: 6px 0 2px; }
.rt-langbar { display: flex; height: 6px; background: #1d1d2b; overflow: hidden; }
.rt-langbar span { display: block; height: 100%; }
.rt-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; white-space: normal; color: #9a9bb0; font-size: .92em; }
.rt-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.rt-cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: #4ade80; animation: rt-blink 1s steps(1) infinite; }
.rt-open { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: var(--blue); color: #fff; text-decoration: none; font-size: .58rem; padding: 9px 11px; letter-spacing: .04em; }
.rt-open:hover { background: #fff; color: var(--blue); }

.repo-term.play .rt-line { animation: rt-show .01s steps(1) both; animation-delay: calc(var(--i) * 220ms); }
.repo-term.play .rt-cmd .rt-typed { display: inline-block; vertical-align: top; animation: rt-type .45s steps(24) both; animation-delay: calc(var(--i) * 220ms); }
@keyframes rt-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes rt-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rt-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .repo-term.play .rt-line, .repo-term.play .rt-cmd .rt-typed, .rt-cursor { animation: none; }
}

/* Screenshot-only previews (liveFrame: false) keep the image when the card expands on hover. */
.preview-card.has-placeholder.is-facade-ready.is-static .preview-placeholder,
.preview-card.has-placeholder.is-facade-ready.is-static.is-hovering .preview-placeholder { opacity: 1; visibility: visible; }

/* ── PLAYGROUND ── */
#playground-view {
  display: none; grid-column: 2 / 4;
  overflow-y: auto; scrollbar-width: none;
  background: #0a0a0a;
  position: relative;
  min-height: 0;
}
#playground-view::-webkit-scrollbar { display: none; }
#playground-view::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0; transition: opacity .6s var(--e1);
}
#playground-view.in::before { opacity: 1; }
#pg-inner { position: relative; z-index: 1; padding: clamp(22px,3vh,48px) clamp(22px,2.5vw,40px); }
#pg-intro {
  max-width: 460px; margin-bottom: clamp(32px,5vh,64px);
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--e1), transform .6s var(--e1);
}
#pg-intro.in { opacity: 1; transform: translateY(0); }
#pg-intro-text { font-family: var(--pixel); font-size: clamp(1.05rem,2.6vw,2.6rem); color: #fff; font-weight: 400; line-height: 1.08; letter-spacing: -.01em; white-space: pre-wrap; position: relative; display: block; min-height: 2em; }
#pg-grid { columns: 3; column-gap: 18px; }
.pg-item { break-inside: avoid; overflow: hidden; margin-bottom: 18px; opacity: 0; transform: translateY(16px); transition: opacity .55s var(--e1), transform .55s var(--e1), filter .2s; }
.pg-item.in { opacity: 1; transform: translateY(0); }
.pg-item img { width: 100%; display: block; }
.pg-item.dragging { opacity: .42; filter: invert(1); }
.pg-preview-card {
  background: #f7f7f2;
  border: 1px solid #2a2a2a;
  color: #101010;
  overflow: hidden;
}
.pg-preview-meta {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,.14);
  font-family: var(--mono);
  font-size: clamp(.48rem,.55vw,.62rem);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pg-drag-handle {
  color: var(--blue);
  cursor: grab;
  user-select: none;
}
.pg-item:active .pg-drag-handle { cursor: grabbing; }
.pg-frame-wrap {
  position: relative;
  height: clamp(220px,28vw,360px);
  background: #fff;
  overflow: hidden;
}
.pg-screenshot-wrap {
  height: clamp(230px,30vw,390px);
  background: #ececec;
}
.pg-main-shot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.pg-frame-wrap iframe {
  width: 150%;
  height: 150%;
  border: 0;
  display: block;
  transform: scale(.67);
  transform-origin: 0 0;
  background: #fff;
  pointer-events: none;
}
.pg-frame-shield {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-size: clamp(.48rem,.55vw,.62rem);
  letter-spacing: .06em;
  padding: 7px 9px;
}
.pg-shot-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(0,0,0,.14);
  border-top: 1px solid rgba(0,0,0,.14);
}
.pg-shot-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-width: 0;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}
.pg-artifact-preview {
  min-height: clamp(220px,26vw,340px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(4,0,255,.16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(4,0,255,.16) 1px, transparent 1px),
    #f7f7f2;
  background-size: 28px 28px;
}
.pg-artifact-kicker {
  font-family: var(--mono);
  font-size: clamp(.48rem,.55vw,.62rem);
  color: var(--blue);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pg-artifact-title {
  font-family: var(--pixel);
  font-size: clamp(1.1rem,2vw,2.1rem);
  line-height: 1;
}
.pg-artifact-line {
  font-family: var(--mono);
  font-size: clamp(.52rem,.62vw,.72rem);
  line-height: 1.5;
  color: #333;
}
.pg-preview-foot {
  border-top: 1px solid rgba(0,0,0,.14);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: clamp(.48rem,.55vw,.62rem);
  letter-spacing: .08em;
  color: #333;
  text-transform: uppercase;
}

/* playground dark mode — left/info cols */
body.pg-mode #cur-dot { background: #fff; }
body.pg-mode #cur-ring { border-color: rgba(255,255,255,.2); }
body.pg-mode .bracket svg path { stroke: #2a2a2a; }
body.pg-mode .shell { background: #0a0a0a; }
body.pg-mode .left { background: #0a0a0a; border-right-color: #1a1a1a; }
body.pg-mode .redux-logo { color: #fff; }
body.pg-mode .mob-bar { background: #0a0a0a; border-bottom-color: #1a1a1a; }
body.pg-mode .mob-nav-btn { color: #444; }
body.pg-mode .mob-nav-btn.active { color: #fff; }
body.pg-mode { background: #0a0a0a; }
body.pg-mode .nav-link { color: #444; }
body.pg-mode .nav-link.active { color: #fff; }
body.pg-mode .nav-link:hover { color: #fff; }
body.pg-mode .left-foot { color: #333; }
body.pg-mode .info { background: #0a0a0a; border-left-color: #1a1a1a; }
body.pg-mode .email-arrow,
body.pg-mode .email-default,
body.pg-mode .email-hover,
body.pg-mode .email-copied { color: #fff; }
body.pg-mode .x-link { color: #fff; }
body.pg-mode .x-link:hover { color: var(--blue); }
body.pg-mode .info-meta { color: #333; }
body.pg-mode .info-rights { color: #2a2a2a; }
body.pg-mode #status-bar { background: rgba(10,10,10,0.97); border-top-color: #1a1a1a; }
body.pg-mode .sb-item { color: #333; }
body.pg-mode .sb-item span { color: #555; }
body.pg-mode #sb-proj-item { display: none; }
body.pg-mode .say-hey { opacity: .7; }

/* page transition wipe */
#page-wipe {
  position: fixed; inset: 0; z-index: 99999; pointer-events: none;
  background: #0a0a0a;
  transform: translateY(100%);
  transition: transform 0s;
}
#page-wipe.entering { transform: translateY(0); transition: transform 0.38s cubic-bezier(0.76,0,0.24,1); }
#page-wipe.leaving  { transform: translateY(-100%); transition: transform 0.38s cubic-bezier(0.76,0,0.24,1); }
body.work-mode #page-wipe.entering { background: #fff; }

/* playground info col */
.work-info-block { display: flex; flex-direction: column; height: 100%; }
.pg-info-block { display: none; }
body.pg-mode .pg-info-block { display: flex; flex-direction: column; height: 100%; }
body.pg-mode .work-info-block { display: none; }

.pg-stat {
  margin-bottom: clamp(14px,2vh,22px);
}
.pg-stat-label {
  font-family: var(--mono); font-size: clamp(.42rem,.48vw,.52rem);
  color: #333; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px;
}
.pg-stat-value {
  font-family: var(--pixel); font-size: clamp(.72rem,.9vw,1rem);
  color: #888; line-height: 1.3;
}
.pg-stat-value.accent { color: var(--blue); }

/* glitchy ticker */
#pg-ticker {
  margin-top: auto;
  font-family: var(--mono); font-size: clamp(.4rem,.44vw,.48rem);
  color: #2a2a2a; letter-spacing: .05em; line-height: 1.9;
  border-top: 1px solid #1a1a1a; padding-top: clamp(8px,1vh,14px);
}
#pg-ticker span { color: #444; }

.pg-item { cursor: grab; }
.pg-item-large { column-span: all; }

/* ════════════════════════════════════════════
   MOBILE / TABLET  (max-width: 1024px)
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  html, body { overflow: auto; height: auto; cursor: auto; }
  /* loader is desktop-only — hide immediately on mobile */
  #loader { display: none !important; }
  #page-wipe { display: none !important; }


  /* about panel is desktop-only */
  #about-panel, #about-backdrop { display: none !important; }
  /* mobile about mode */
  body.mob-about-mode { background: #0400FF !important; }
  body.mob-about-mode .mob-bar { background: #0400FF !important; border-bottom-color: rgba(255,255,255,0.15); }
  body.mob-about-mode .mob-nav-btn { color: rgba(255,255,255,0.45); }
  body.mob-about-mode .mob-nav-btn.active { color: #fff; }
  body.mob-about-mode .mob-bar a svg path { fill: #fff; }
  body.mob-about-mode #mid-col { background: #0400FF; }
  body.mob-about-mode { overflow: hidden !important; }

  /* mobile page transition — pure CSS, always fires on load */
  @keyframes mobFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
  .mob-bar, #mid-col { animation: mobFadeIn 0.22s cubic-bezier(0.22,1,0.36,1) both; }


  /* hide desktop-only elements */
  #cur-dot, #cur-ring, #cur-xy,
  #status-bar,
  .bracket,
  .left,
  .right,
  .info { display: none !important; }

  /* shell becomes single column */
  .shell {
    display: block;
    height: auto;
    padding-bottom: 0;
    background: #f5f5f5;
  }

  /* mid col full width */
  .mid {
    display: block;
    border-right: none;
    overflow: visible;
  }

  /* mobile top bar */
  .mob-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--rule);
  }
  .mob-bar .logo { opacity: 1; transform: none; margin-bottom: 0; }
  .mob-bar .redux-logo { font-size: clamp(.95rem,5vw,1.25rem); }
  .mob-bar-right { display: flex; align-items: center; gap: 12px; }
  .mob-nav-btn {
    font-family: var(--pixel); font-size: clamp(.7rem,.9vw,1rem);
    color: var(--mid); background: none; border: none; cursor: pointer;
    padding: 0; line-height: 1; pointer-events: auto; z-index: 10;
  }
  .mob-nav-btn.active { color: var(--black); }
  .mob-nav-btn.active::before { content: '\25A0'; font-size: .5em; vertical-align: middle; margin-right: 3px; }

  /* hero */
  .hero-block {
    padding: 24px 20px 20px;
  }
  .headline,
  .hl-ghost, .hl-live {
    font-size: clamp(1.6rem, 8vw, 2.4rem) !important;
    line-height: 1.05 !important;
  }
  .subline {
    font-size: clamp(.7rem, 3.2vw, .9rem);
    margin-top: 12px;
  }

  /* hide highlighted projects pill */
  .proj-label-row { display: none; }

  /* rows — accordion style */
  .rows { overflow: visible; flex: none; display: block; }
  .row {
    display: flex; align-items: center;
    padding: 0 20px;
    min-height: 64px !important;
    border-bottom: 1px solid var(--rule);
    opacity: 1 !important; transform: none !important;
    cursor: pointer;
    position: relative;
  }
  .row.active { background: transparent; min-height: 64px !important; }
  .row-title {
    font-size: clamp(1.1rem, 5.5vw, 1.6rem) !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transform: none !important; color: var(--black) !important; opacity: 1 !important;
  }
  .row.active .row-title { color: var(--black) !important; }
  .row-num { color: var(--muted) !important; }
  .row-btn {
    position: static !important; opacity: 1 !important;
    margin-left: auto; flex-shrink: 0;
    background: none !important;
    color: var(--black);
    font-size: 1.2rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
  }

  /* mobile accordion image panel */
  .mob-project-block {
    border-bottom: 1px solid var(--rule);
    opacity: 0; transform: translateY(12px);
    transition: opacity .5s var(--e1), transform .5s var(--e1);
  }
  .mob-project-block.in { opacity: 1; transform: translateY(0); }
  .mob-project-block .row { border-bottom: none; }
  /* only the active project shows its preview strip */
  .mob-project-block:not(.is-open) .mob-imgs { display: none; }
  .mob-project-block.is-open .row-title { color: var(--black) !important; }
  .mob-project-block:not(.is-open) .row-title { color: var(--muted) !important; }

  /* horizontal scroll image strip */
  .mob-imgs {
    display: flex;
    flex-direction: row;
    gap: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    background: transparent;
    padding: 0;
  }
  .mob-imgs::-webkit-scrollbar { display: none; }
  .mob-img-item { flex-shrink: 0; width: min(46vw, 360px); height: min(58vw, 420px); }
  .mob-img-item img, .mob-img-item video {
    width: 100%; height: 100%; aspect-ratio: unset;
    object-fit: cover; display: block;
    opacity: 0; transform: scale(1.04);
    transition: opacity .6s var(--e2), transform .7s var(--e2);
  }
  .mob-img-item img.in { opacity: 1; transform: scale(1); }
  /* fade right edge to hint scroll */
  .mob-project-block { position: relative; }

  /* mob-detail — inline accordion below images */
  .mob-detail {
    display: none;
    padding: 18px 20px 22px;
    border-top: 1px solid var(--rule);
    background: #f5f5f5;
  }
  .mob-detail.open { display: block; }
  .mob-detail-meta {
    font-family: var(--mono); font-size: clamp(.56rem,2.8vw,.66rem);
    color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 18px;
  }
  .mob-detail-section { margin-bottom: 18px; }
  .mob-detail-h {
    font-family: var(--pixel); font-size: clamp(.8rem,4vw,.95rem);
    color: var(--black); margin-bottom: 6px;
  }
  .mob-detail-p {
    font-family: var(--mono); font-size: clamp(.66rem,3.2vw,.76rem);
    color: var(--mid); line-height: 1.7;
  }
  .mob-detail-list { list-style: none; }
  .mob-detail-li {
    font-family: var(--mono); font-size: clamp(.66rem,3.2vw,.76rem);
    color: var(--mid); line-height: 2;
  }

  /* mobile project modal */
  .mob-modal-backdrop { pointer-events: none;
    display: none;
    position: fixed; inset: 0; z-index: 600;
    background: rgba(0,0,0,0.8);
    overflow-y: auto;
    backdrop-filter: blur(5px);
  }
  .mob-modal-backdrop.open { display: block; }
  .mob-modal {
    background: var(--bg);
    margin: 0;
    min-height: 100vh;
    padding: 20px 20px 60px;
  }
  .mob-modal-close {
    position: sticky; top: 0; float: right;
    background: none; border: 1px solid var(--rule);
    color: var(--mid); padding: 8px 12px;
    font-size: 1rem; cursor: pointer; z-index: 10;
    margin-bottom: 20px; border-radius: 2px;
  }
  .mob-modal-num {
    font-family: var(--pixel);
    font-size: clamp(.7rem, 3vw, .85rem);
    color: var(--muted); text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: 12px;
  }
  .mob-modal-title {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 500; line-height: 1.1;
    margin-bottom: 24px; color: var(--black);
  }
  .mob-modal-imgs {
    margin-bottom: 28px;
  }
  .mob-modal-imgs img, .mob-modal-imgs video {
    width: 100%; height: auto;
    margin-bottom: 12px; display: block;
    border-radius: 2px;
  }
  .mob-modal-section { margin-bottom: 24px; }
  .mob-modal-label {
    font-family: var(--pixel);
    font-size: clamp(.75rem, 3.5vw, .9rem);
    color: var(--black); text-transform: uppercase;
    letter-spacing: .08em; margin-bottom: 8px;
  }
  .mob-modal-text {
    font-family: var(--mono);
    font-size: clamp(.65rem, 3vw, .75rem);
    color: var(--mid); line-height: 1.7;
    margin: 0;
  }
  .mob-modal-list {
    list-style: none; margin: 0; padding: 0;
  }
  .mob-modal-list li {
    font-family: var(--mono);
    font-size: clamp(.65rem, 3vw, .75rem);
    color: var(--mid); line-height: 1.8;
  }

  .mob-row-plus {
    margin-left: auto;
    font-family: var(--pixel);
    font-size: 1.4rem;
    color: var(--black);
    line-height: 1;
    flex-shrink: 0;
    transition: transform .2s;
    pointer-events: auto;
  }
  .desktop-only { display: none !important; }


  /* full screen mobile detail view */

  /* detail view on mobile — full page */
  .detail { display: none !important; }
  .list-view { display: block !important; overflow: visible; flex: none; }
  .list-view.hidden { display: none !important; }

  /* playground on mobile */
  #playground-view {
    grid-column: unset !important;
    display: none;
    background: #0a0a0a;
  }
  #playground-view.mob-visible { display: block; }
  #pg-inner { padding: 20px; }
  #pg-intro { max-width: 100%; margin-bottom: 28px; }
  #pg-intro-text { font-size: clamp(1.3rem,6vw,1.8rem) !important; }
  #pg-grid { columns: 2 !important; column-gap: 8px !important; }
  .mob-about-view-p { font-family: var(--mono); font-size: clamp(.68rem,3.2vw,.8rem); color: rgba(255,255,255,.78); line-height: 1.8; margin-bottom: 16px; }
  .pg-item { margin-bottom: 8px !important; }


  /* ── ABOUT on mobile ─────────────────────────── */
  #about-view {
    grid-column: unset !important;
    display: none;
    min-height: 100vh;
  }
  #about-view.mob-visible {
    display: block !important;
  }
  #about-view.visible, #about-view.mob-visible {
    grid-template-columns: 1fr !important;
  }
  #about-left { display: none !important; }
  #about-right {
    padding: 24px 20px 48px !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .about-polaroid {
    max-width: 100% !important;
    transform: rotate(-1deg) !important;
  }
  .about-bio-headline { position: relative;
    font-size: clamp(1.2rem, 5.5vw, 1.6rem) !important;
  }

  /* mobile email footer */
  .mob-footer {
    display: block;
    padding: 28px 20px 40px;
    border-top: 1px solid var(--rule);
  }
  .mob-footer .say-hey { margin-bottom: 12px; }
}

@media (max-width: 520px) {
  .mob-img-item { width: 58vw; height: 70vw; }
  #pg-grid { columns: 1 !important; }
}

@media (hover: none) {
  .pg-drag-handle { display: none; }
}

/* hide mob-bar and mob-footer on desktop */
@media (min-width: 1025px) {
  .mob-bar, .mob-footer, .mob-imgs, .mob-detail, .mob-modal-backdrop { pointer-events: none; display: none !important; }
#about-mob { display: none; }
  .mob-row-plus { display: none !important; }
  .desktop-only { display: flex !important; }
  /* transparent wrapper — rows flex layout sees .row directly */
  .mob-project-block { display: contents; }
}

video { display: block; width: 100%; height: auto; object-fit: contain; }
.img-wrap video { opacity: 0; transition: opacity .6s var(--e2); }
.mob-img-item video { width: 100%; height: 100%; aspect-ratio: unset; object-fit: cover; display: block; opacity: 0; transform: scale(1.04); transition: opacity .6s var(--e2), transform .7s var(--e2); }
.mob-img-item video.in { opacity: 1; transform: scale(1); }
.pg-item video { width: 100%; display: block; }

/* ── LOADER ─────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #ffffff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
#loader-num {
  font-family: 'Geist Pixel', 'Geist Mono', monospace;
  font-size: clamp(36px, 7vw, 64px);
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
#loader-num .glitch {
  position: absolute; inset: 0;
  color: #0400FF;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
}
#loader-sub {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: #999;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  height: 14px;
  overflow: hidden;
}
#loader-bar {
  width: 120px; height: 1px;
  background: #ddd;
  position: relative;
  overflow: hidden;
}
#loader-bar-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0%;
  background: #111;
  transition: width 0.05s linear;
}

/* ── ABOUT PAGE ─────────────────────────────────────────────── */
/* ── ABOUT PANEL (slides in from right, pushes shell left) ── */
#about-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: clamp(360px, 46vw, 660px);
  background: var(--blue);
  z-index: 160;
  transform: translateX(110%);
  transition: transform 0.6s var(--e1);
  overflow-y: auto;
  scrollbar-width: none;
  box-shadow: -20px 0 80px rgba(0,0,0,0.25);
}
#about-panel::-webkit-scrollbar { display: none; }
#about-panel.open { transform: translateX(0); }

/* push shell columns left when about opens — desktop only */
@media (min-width: 1025px) {
  body.about-mode .shell {
    margin-right: clamp(360px, 46vw, 660px);
  }
}

#about-inner {
  padding: clamp(28px,4vh,48px) clamp(24px,2.5vw,40px);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .5s var(--e1) .2s, transform .5s var(--e1) .2s;
}
#about-panel.open #about-inner { opacity: 1; transform: translateX(0); }

/* polaroid */
.about-polaroid {
  background: #f0ede6;
  padding: 14px 14px 28px 14px;
  box-shadow: none;
  margin-bottom: clamp(28px,4vh,48px);
  position: relative;
  transform: rotate(-1.5deg);
  max-width: 300px;
}

.about-polaroid-img {
  width: 100%;
  aspect-ratio: 1/1;
  background: #1a1a2e;
  overflow: hidden;
  display: block;
}
.about-polaroid-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 58%;
  display: block;
}

.about-id-card {
  padding: 10px 4px 4px;
  font-family: var(--mono);
}
.about-id-name-row {
  display: flex; align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
}
.about-id-label {
  font-size: clamp(.44rem,.48vw,.52rem);
  color: #555; letter-spacing: .1em; text-transform: uppercase;
}
.about-id-name {
  font-family: var(--pixel);
  font-size: clamp(.8rem,.9vw,1rem);
  color: #111; letter-spacing: .06em;
}
.about-id-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0; border-bottom: 1px solid #e8e5de;
  font-size: clamp(.44rem,.48vw,.52rem);
  letter-spacing: .07em; text-transform: uppercase;
  cursor: none;
  transition: background .15s;
}
.about-id-row:hover { background: rgba(0,0,0,0.04); }
.about-id-row-key { color: #888; }
.about-id-row-val { color: #111; text-align: right; font-weight: 600; }
.about-id-serial {
  margin-top: 8px;
  font-size: clamp(.36rem,.38vw,.42rem);
  color: #aaa; letter-spacing: .06em; text-transform: uppercase;
}

/* bio */
.about-bio-headline { position: relative;
  font-family: var(--pixel);
  font-size: clamp(1.1rem,2vw,2.2rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: clamp(20px,3vh,32px);
}
.about-bio-p {
  font-family: var(--mono);
  font-size: clamp(.64rem,.72vw,.8rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.85;
  margin-bottom: clamp(12px,1.8vh,20px);
  font-weight: 500;
}
#about-inner.about-typing .about-bio-headline,
#about-inner.about-typing > .about-bio-p,
#about-inner.about-typing .about-serial {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .34s var(--e2), transform .34s var(--e2);
}
#about-inner.about-typing .about-bio-headline.in,
#about-inner.about-typing > .about-bio-p.in,
#about-inner.about-typing .about-serial.in {
  opacity: 1;
  transform: translateY(0);
}
.about-type-caret::after {
  content: "";
  display: inline-block;
  width: .55ch;
  height: 1em;
  margin-left: .18ch;
  vertical-align: -.12em;
  background: currentColor;
  animation: aboutCaretBlink .76s steps(1) infinite;
}
@keyframes aboutCaretBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #about-inner.about-typing .about-bio-headline,
  #about-inner.about-typing > .about-bio-p,
  #about-inner.about-typing .about-serial {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .about-type-caret::after { animation: none; display: none; }
}
.about-serial {
  margin-top: clamp(24px,4vh,40px);
  font-family: var(--mono);
  font-size: clamp(.36rem,.4vw,.44rem);
  color: rgba(255,255,255,0.2);
  letter-spacing: .08em; text-transform: uppercase;
  display: flex; flex-wrap: wrap; gap: 16px;
}

/* nav active state for about */
/* about-mode keeps shell white, only panel is blue */

/* mobile about */
#about-mob {
  display: none;
  background: var(--blue);
  min-height: 100vh;
  width: 100%;
  padding: 28px 20px 60px;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 300;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#about-mob.mob-visible { display: block; }
.about-mob-polaroid {
  background: #f0ede6;
  padding: 10px 10px 32px 10px;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.3);
  margin-bottom: 28px;
  transform: rotate(-1deg);
  max-width: 280px;
  margin-left: auto; margin-right: auto;
}
.about-mob-polaroid-img {
  width: 100%; aspect-ratio: 3/4;
  background: #1a1a2e; overflow: hidden;
}
.about-mob-polaroid-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-mob-id-row {
  display: flex; justify-content: space-between;
  padding: 3px 4px; border-bottom: 1px solid #ddd;
  font-family: var(--mono);
  font-size: clamp(.5rem,2.8vw,.6rem);
  letter-spacing: .05em; text-transform: uppercase;
}
.about-mob-id-row-key { color: #888; }
.about-mob-id-row-val { color: #111; }
.about-mob-name-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 6px 4px; border-bottom: 1px solid #ccc; margin-top: 6px;
  font-family: var(--mono);
}
.about-mob-id-label { font-size: clamp(.48rem,2.6vw,.58rem); color: #888; text-transform: uppercase; letter-spacing: .08em; }
.about-mob-id-name { font-family: var(--pixel); font-size: clamp(.8rem,4vw,.95rem); color: #111; }


/* proof cards */
.about-proof {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #F6FF00;
  cursor: none;
  color: #F6FF00;
  font-weight: 700;
  transition: opacity .2s;
}
.about-proof:hover { opacity: 0.75; }
.about-proof.tt-link { color: #fff; text-decoration-color: rgba(255,255,255,0.5); font-weight: 700; }
.about-proof.tt-link:hover { opacity: 0.7; }
.proof-card {
  position: fixed;
  display: none;
  background: #111;
  border: 1px solid #222;
  padding: 10px 14px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s;
  z-index: 999999;
  min-width: 200px;
  max-width: 300px;
}
.proof-card.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.proof-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: none;
}
.proof-pub {
  font-family: var(--mono);
  font-size: clamp(.44rem,.48vw,.52rem);
  color: rgba(255,255,255,0.5);
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-shrink: 0;
  border-right: 1px solid #333;
  padding-right: 10px;
}
.proof-line {
  font-family: var(--pixel);
  font-size: clamp(.58rem,.65vw,.7rem);
  color: #fff;
  flex: 1;
  font-weight: 600;
}
.proof-arrow {
  font-size: .85rem;
  color: #F6FF00;
  flex-shrink: 0;
}


/* about-mode: keep work page normal colors (no inversion) */
/* about backdrop */
#about-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  right: clamp(360px, 46vw, 660px);
  z-index: 199;
  background: rgba(0,0,0,0.12);
  cursor: pointer;
}
@media (min-width: 1025px) {
  body.about-mode #about-backdrop {
    display: block;
  }
}


.mob-about-inner {
  padding: 24px 20px 60px;
  min-height: 100%;
  box-sizing: border-box;
  position: relative;
}
.mob-about-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: .1em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 32px;
  cursor: pointer;
}
.mob-about-back:active { color: #fff; }
.mob-about-polaroid {
  background: #f0ede6;
  padding: 10px 10px 28px;
  box-shadow: 4px 6px 20px rgba(0,0,0,0.3);
  transform: rotate(-1.5deg);
  max-width: 260px;
  margin: 0 auto 32px;
}
.mob-about-polaroid-img {
  width: 100%;
  aspect-ratio: 3/4;
  background: #1a1a2e;
  overflow: hidden;
  margin-bottom: 10px;
}
.mob-about-polaroid-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.mob-about-id-name-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 5px 4px; border-bottom: 1px solid #ccc; margin-bottom: 4px;
  font-family: var(--mono);
}
.mob-about-id-label {
  font-size: .5rem; color: #888; text-transform: uppercase; letter-spacing: .08em;
}
.mob-about-id-name {
  font-family: var(--pixel); font-size: .85rem; color: #111;
}
.mob-about-id-row {
  display: flex; justify-content: space-between;
  padding: 3px 4px; border-bottom: 1px solid #ddd;
  font-family: var(--mono); font-size: .55rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.mob-about-id-key { color: #888; }
.mob-about-id-val { color: #111; text-align: right; }
.mob-about-headline {
  font-family: var(--mono);
  font-size: clamp(.75rem, 3.5vw, .9rem);
  color: #fff;
  line-height: 1.5;
  margin-bottom: 20px;
}
.mob-about-bio {
  font-family: var(--mono);
  font-size: clamp(.65rem, 3vw, .78rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 14px;
}
.mob-about-bio a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mob-about-serial {
  font-family: var(--mono);
  font-size: .5rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: .08em;
  margin-top: 32px;
  line-height: 2;
}
