/* Layout concept: a dark editorial stage — Alte Haas Grotesk headlines, Source Code Pro captions,
   a photo-trail hero, a moving two-column work grid you can browse and pick from, a playful
   "im also a piece of work", and a separate desktop page for the personal side. */
:root {
  --ink: #0d0d0c;
  --ink-2: #171716;
  --paper: #f3f1ec;
  --mute: #8c8983;
  --line: rgba(243, 241, 236, 0.16);
  --accent: #f3f1ec;
  --f-display: "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "Source Code Pro", ui-monospace, "SF Mono", Menlo, monospace;
  --f-hand: "Shadows Into Light Two", "Comic Sans MS", cursive;
  --f-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gx: max(16px, env(safe-area-inset-left, 0px));
  --gxr: max(16px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gx: max(clamp(16px, 3.2vw, 48px), env(safe-area-inset-left, 0px)); --gxr: max(clamp(16px, 3.2vw, 48px), env(safe-area-inset-right, 0px)); } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 12px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--ink); }
main { overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--paper); color: var(--ink); }
.mono { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .03em; font-size: 11.5px; line-height: 1.5; }
.display { font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; line-height: .9; }
.hand { font-family: var(--f-hand); font-weight: 400; }

/* grain */
.grain { position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-4%,3%)} 50%{transform:translate(3%,-2%)} 75%{transform:translate(-2%,-4%)} 100%{transform:translate(0,0)} }

/* ---------------- loader ---------------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.loader__star { width: 64px; height: 64px; filter: invert(1); animation: spin 2.4s linear infinite; }
.loader__count { position: absolute; left: var(--gx); bottom: calc(18px + env(safe-area-inset-bottom,0px)); font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 16vw, 220px); line-height: .8; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.loader__note { position: absolute; right: var(--gxr); bottom: calc(24px + env(safe-area-inset-bottom,0px)); text-align: right; }
@keyframes spin { to { transform: rotate(360deg); } }

/* page wipe (between pages, in the project's colour) */
.wipe { position: fixed; inset: 0; z-index: 190; pointer-events: none; background: var(--paper); clip-path: inset(100% 0 0 0); }

/* ---------------- cursor ---------------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { display: none !important; }
.cursor-star { mix-blend-mode: difference; }
.cursor__dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease-out); }
.cursor.is-down .cursor__dot { transform: scale(.6); }
.cursor-star { position: fixed; left: 0; top: 0; z-index: 151; width: 46px; pointer-events: none; display: none; }
.has-cursor .cursor-star { display: block; }
.cursor-star img { width: 100%; }

/* ---------------- nav ---------------- */
.nav { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gxr) 18px var(--gx); mix-blend-mode: difference; color: #fff; pointer-events: none; transition: opacity .4s, transform .5s var(--ease-out); }
.nav > * { pointer-events: auto; }
.nav a { text-decoration: none; }
.nav__name { justify-self: start; text-decoration: underline !important; text-underline-offset: 3px; }
.nav__links { display: flex; gap: 20px; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav__links a:hover::after, .nav__links a.is-on::after { transform: scaleX(1); transform-origin: left; }
.nav__right { justify-self: end; }
.nav.hide { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.nav.hide > * { pointer-events: none; }

/* ---------------- hero ---------------- */
.hero { position: relative; height: 100svh; min-height: 540px; overflow: hidden; isolation: isolate; }
.wordmark { position: absolute; left: var(--gx); right: var(--gxr); top: 50%; transform: translateY(-50%); z-index: 1; margin: 0; color: var(--paper);
  font-family: var(--f-display); font-weight: 700; line-height: .86; letter-spacing: -.03em; text-transform: uppercase; white-space: nowrap; font-size: 10vw; pointer-events: none; }
.wordmark .ln { display: inline-block; }
.wordmark .mask { display: inline-block; overflow: hidden; padding-block: .08em; margin-block: -.08em; vertical-align: top; }
.wordmark .ch { display: inline-block; will-change: transform; }
@media (max-width: 760px) { .wordmark { white-space: normal; } .wordmark .ln { display: block; width: max-content; white-space: nowrap; } }
.trail { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.trail img { position: absolute; left: 0; top: 0; width: clamp(130px, 16vw, 260px); height: auto; opacity: 0; will-change: transform, opacity; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.hero__meta { position: absolute; z-index: 3; left: var(--gx); right: var(--gxr); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.hero__tag { margin: 0; max-width: 44ch; }
.scrollcue { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scrollcue span { display: block; width: 1px; height: 48px; background: linear-gradient(currentColor 50%, transparent 50%); background-size: 1px 200%; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { background-position: 0 100%; } 100% { background-position: 0 -100%; } }

/* ---------------- marquee ---------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 13px; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: .7em; padding-right: .7em; font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.1vw, 30px); letter-spacing: -.02em; line-height: 1.1; white-space: nowrap; }
.marquee__item img { width: .95em; height: .95em; flex: none; }
.marquee__item img.is-cut { width: auto; height: 2.1em; margin-block: -.55em; object-fit: contain; }

/* ---------------- section heads ---------------- */
.shead { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: clamp(72px, 11vw, 150px) var(--gxr) clamp(30px, 4vw, 56px) var(--gx); }
.shead__title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.05em; font-size: clamp(54px, 8.5vw, 128px); line-height: .8; margin: 0; }

/* ---------------- work: filterable index grid ---------------- */
.work { padding: 0 var(--gxr) clamp(60px, 8vw, 120px) var(--gx); }
.ix__grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(16px, 2.4vw, 40px); align-items: start; }
.ix__c { display: block; text-decoration: none; color: inherit; }
.ix__grid { column-gap: clamp(24px, 4vw, 72px); row-gap: clamp(56px, 7vw, 110px); }
.ix__c[hidden] { display: none; }
.ix__m { position: relative; overflow: hidden; background: var(--ink-2); }
.ix__in { position: absolute; inset: 0; }
.ix__in img, .ix__in video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.ix__in video { opacity: 0; transition: opacity .6s, transform 1s var(--ease-out); }
.ix__in video.ready { opacity: 1; }
.ix__c:hover .ix__in img, .ix__c:hover .ix__in video { transform: scale(1.04); }
.ix__bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 11px 14px; background: var(--c); color: var(--ink); font-weight: 600; transform: translateY(101%); transition: transform .5s var(--ease-out); }
.ix__c:hover .ix__bar, .ix__c:focus-visible .ix__bar { transform: none; }
.ix__cap { display: grid; gap: 6px; margin-top: 12px; }
.ix__title { font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; line-height: .95; font-size: clamp(18px, 1.6vw, 26px); }
.ix__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em; margin-block: -.06em; }
.ix__title .ch { display: inline-block; }
.ix__meta { color: var(--mute); font-size: 10.5px; transition: color .3s; }
.ix__c:hover .ix__meta { color: var(--c); }
.ix__list { position: relative; border-top: 1px solid var(--line); display: none; }
.ix__thumb { display: none; }
.ix__row { display: grid; grid-template-columns: 48px minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .7fr) 60px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; isolation: isolate; }
.ix__row[hidden] { display: none; }
.ix__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.ix__row:hover::before { transform: scaleY(1); }
.ix__row:hover { color: var(--ink); }
.ix__rt { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.035em; font-size: clamp(22px, 2.8vw, 44px); line-height: .95; }
.ix__row span:last-child { text-align: right; }
.ix__peek { position: absolute; left: 0; top: 0; z-index: 5; width: clamp(200px, 20vw, 320px); aspect-ratio: 4 / 3; object-fit: cover; pointer-events: none; opacity: 0; transition: opacity .25s; }
.ix__peek.on { opacity: 1; }
@media (max-width: 1100px) { .ix__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ix__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ix__grid { display: none; }
  .ix__list { display: block; }
  .ix__row { grid-template-columns: 26px 72px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
  .ix__thumb { display: block; position: relative; width: 72px; aspect-ratio: 1; overflow: hidden; background: var(--ink-2); }
  .ix__thumb img, .ix__thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .ix__row span:nth-child(4), .ix__row span:nth-child(5), .ix__row span:nth-child(6) { display: none; }
  .ix__rt { font-size: 22px; }
  .ix__peek { display: none; }
}

/* ---------------- about (home) ---------------- */
.about { position: relative; padding: clamp(80px, 12vw, 170px) var(--gxr) clamp(60px, 8vw, 120px) var(--gx); overflow: hidden; }
.about__label { font-size: clamp(30px, 3.4vw, 44px); margin: 0 0 8px; }
.about__big { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.05em; line-height: .86; font-size: clamp(60px, 12.5vw, 210px); }
.about__big span { display: block; will-change: transform; white-space: nowrap; }
.about__big span:nth-child(2) { padding-left: 12vw; }
.about__big span:nth-child(3) { padding-left: 4vw; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); margin-top: clamp(40px, 6vw, 80px); align-items: end; }
.about__bio { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.25; letter-spacing: -.015em; max-width: 34ch; margin: 0 0 24px; }
.about__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.about__facts dt { color: var(--mute); }
.about__facts dd { margin: 4px 0 0; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 99px; border: 1px solid var(--paper); text-decoration: none; transition: background .25s, color .25s; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--fill { background: var(--paper); color: var(--ink); }
.btn--fill:hover { background: transparent; color: var(--paper); }
.drag { touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.drag:active { cursor: grabbing; }
.photos { position: absolute; z-index: 1; right: var(--gxr); top: clamp(90px, 9vw, 150px); width: 44%; height: 82%; pointer-events: none; }
.fl { position: absolute; pointer-events: auto; display: flex; align-items: center; gap: 10px; }
.cut { height: 100%; margin: 0; }
.cut img { height: 100%; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); transition: transform .5s var(--ease-out); }
.fl:hover .cut img { transform: scale(1.05); }
.cut__n { align-self: center; }
.cut__lbl { position: absolute; color: var(--mute); }
.about__label, .about__big, .about__grid { position: relative; z-index: 2; }
.about__grid { max-width: 54%; }
.sticker { position: absolute; z-index: 4; }
.sticker--star { left: 47%; top: clamp(70px, 9vw, 130px); width: clamp(48px, 5vw, 76px); }
.sticker--star img { width: 100%; pointer-events: none; }
@media (max-width: 760px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
  .photos { position: relative; right: auto; top: auto; width: 100%; height: 150vw; margin-top: 24px; }
  .about__grid { max-width: none; }
  .sticker--star { left: auto; right: 20px; }
}

/* ---------------- footer ---------------- */
.foot { position: relative; padding: 22px var(--gxr) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gx); overflow: hidden; border-top: 1px solid var(--line); }
.copied { display: block; color: var(--mute); margin: 0; }
.foot__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.shy { display: flex; justify-content: flex-end; padding: clamp(60px, 9vw, 130px) var(--gxr) 40px var(--gx); }
.shy a { display: grid; justify-items: end; gap: 10px; text-align: right; text-decoration: none; }
.shy b { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 1.9vw, 28px); line-height: .95; letter-spacing: -.035em; }
.shy img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; object-position: 50% 12%; background: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); transition: transform .4s var(--ease-out); }
.shy a:hover img { transform: rotate(-10deg) scale(1.15); }
.foot__grid a { text-decoration: none; display: block; width: fit-content; }
.foot__grid a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__grid .r { justify-self: end; text-align: right; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------- project page ---------------- */
.pj { --mh: 82svh; }
.pj__head { padding: calc(clamp(110px, 14vw, 190px) + env(safe-area-inset-top, 0px)) var(--gxr) 0 var(--gx); }
.pj__tag { color: var(--accent); margin-bottom: 18px; }
.pj__title { margin: 0; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.04em; line-height: .88; font-size: clamp(42px, 6.6vw, 118px); text-wrap: balance; }
.pj__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .06em; margin-block: -.06em; margin-right: .22em; }
.pj__title .ch { display: inline-block; }
.pj__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .65fr) minmax(0, .65fr); gap: clamp(18px, 2.4vw, 40px); padding: clamp(40px, 6vw, 90px) var(--gxr) clamp(50px, 7vw, 110px) var(--gx); }
.pj__meta { display: grid; gap: 18px; align-content: start; margin: 0; }
.pj__col { display: grid; gap: 1.1em; align-content: start; }
.pj__col p { margin: 0; font-size: clamp(11.5px, .9vw, 13px); line-height: 1.6; }
.pj__meta dt { color: var(--mute); }
.pj__meta dd { margin: 4px 0 0; }
.pj__brief { display: grid; gap: 1.1em; max-width: 64ch; }
.pj__brief p { margin: 0; font-size: clamp(12px, 1vw, 14px); line-height: 1.65; }
@media (max-width: 1000px) { .pj__info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pj__info { grid-template-columns: minmax(0, 1fr); } .pj__title { font-size: 12vw; } }
.pj__blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); padding: 0 var(--gxr) 0 var(--gx); }
.blk { min-width: 0; }
/* every image/video fits the screen: width is capped by (82% of the viewport height) × its ratio */
.b-media { position: relative; overflow: hidden; background: var(--ink-2); width: min(100%, calc(var(--mh) * var(--r, 1.7778))); margin-inline: auto; }
.b-media.has-r { aspect-ratio: var(--r); }
.b-media .in { position: relative; width: 100%; height: 100%; }
.b-media.has-r .in { position: absolute; inset: 0; }
.b-media img, .b-media video { width: 100%; height: 100%; object-fit: cover; }
.b-media.zoom { cursor: zoom-in; }
.b-media.vid { cursor: pointer; }
.play { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 99px; background: var(--accent); color: var(--ink); font-family: var(--f-mono); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; transition: transform .4s var(--ease-out), opacity .3s; pointer-events: none; }
.play svg { width: 14px; height: 14px; }
.b-media.vid:hover .play { transform: scale(1.08); }
.b-media.playing .play { opacity: 0; }
/* floating stickers on project pages */
.pj { position: relative; }
.pj-stk { position: absolute; z-index: 6; width: clamp(130px, 17vw, 270px); touch-action: none; user-select: none; -webkit-user-select: none; filter: drop-shadow(0 22px 34px rgba(0,0,0,.55)); }
.pj-stk img { width: 100%; height: auto; pointer-events: none; }
.pj-stk.card img { background: #fff; padding: 7px 7px 26px; }
@media (max-width: 760px) { .pj-stk { width: 34vw; } }
.b-wide { --mh: 76svh; }
.b-half { width: min(60%, calc(var(--mh) * var(--r, 1.7778))); }
.b-cap { margin-top: 10px; color: var(--mute); text-align: center; }
.b-gallery { display: grid; gap: clamp(16px, 3vw, 48px); grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); align-items: center; width: min(100%, 1180px); margin-inline: auto; }
.b-gallery .b-media { --mh: 74svh; background: transparent; }
@media (max-width: 760px) { .b-gallery { grid-template-columns: minmax(0, 1fr); } .b-half { width: 100%; } }
.b-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; width: min(100%, 1100px); margin-inline: auto; }
.b-text h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; font-size: clamp(26px, 2.6vw, 40px); }
.b-text p { margin: 0; max-width: 62ch; line-height: 1.6; }
.b-link { display: flex; justify-content: center; }
.b-link a { display: inline-flex; gap: 10px; padding: 14px 22px; border-radius: 99px; background: var(--accent); color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .b-text { grid-template-columns: minmax(0, 1fr); } }

.deck__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.deck__head h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.035em; font-size: clamp(26px, 2.6vw, 40px); }
.deck__ctrl { display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.deck__ctrl button, .deck__ctrl a { min-width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--line); display: grid; place-items: center; padding: 0 12px; text-decoration: none; transition: background .2s, color .2s; }
.deck__ctrl button:hover, .deck__ctrl a:hover { background: var(--accent); color: var(--ink); border-color: transparent; }
.deck__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; padding-bottom: 4px; }
.deck__track::-webkit-scrollbar { display: none; }
.deck__track.drag { cursor: grabbing; scroll-snap-type: none; }
.deck__slide { flex: 0 0 min(78vw, calc(72svh * 1.7778)); scroll-snap-align: center; overflow: hidden; background: var(--ink-2); }
.deck__slide img, .deck__slide canvas { width: 100%; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.deck__prog { height: 2px; background: var(--line); margin-top: 14px; position: relative; }
.deck__prog i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); width: 0; transition: width .3s; }
@media (max-width: 760px) { .deck__slide { flex-basis: 88vw; } }

.pj__end { display: grid; justify-items: center; gap: 28px; padding: clamp(80px, 11vw, 160px) 0 0; }
.pj__back { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; }
.pj__back span { display: inline-block; transition: transform .4s var(--ease-out); }
.pj__back:hover span { transform: translateX(-6px); }
.pj__next { display: block; width: 100%; text-decoration: none; padding: 40px var(--gxr) 48px var(--gx); border-top: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.pj__next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.pj__next:hover::before { transform: scaleY(1); }
.pj__next:hover { color: var(--ink); }
.pj__next .t { display: block; margin-top: 14px; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.045em; line-height: .86; font-size: clamp(42px, 7.5vw, 130px); transition: transform .7s var(--ease-out); }
.pj__next:hover .t { transform: translateX(12px); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 140; background: rgba(8,8,8,.96); display: grid; place-items: center; padding: calc(56px + env(safe-area-inset-top,0px)) var(--gxr) calc(56px + env(safe-area-inset-bottom,0px)) var(--gx); }
.lb img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.lb__x { position: absolute; top: calc(16px + env(safe-area-inset-top,0px)); right: var(--gxr); }
.lb__n { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom,0px)); left: 50%; transform: translateX(-50%); }
.lb__p, .lb__q { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: rgba(0,0,0,.4); }
.lb__p { left: var(--gx); } .lb__q { right: var(--gxr); }

/* ---------------- about page: the desktop ---------------- */
.desk { position: relative; height: 100svh; min-height: 700px; overflow: hidden; isolation: isolate; color: #fff; background: #6d6d6d; font-family: var(--f-ui); }
.desk__wall { position: absolute; inset: -30px; background-size: cover; background-position: center 30%; filter: grayscale(1) blur(7px) brightness(.92); transform: scale(1.06); }
.desk__menubar { position: absolute; z-index: 30; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 var(--gxr) 0 var(--gx); background: rgba(25,25,25,.35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); font-size: 13px; }
.desk__menubar a { text-decoration: none; }
.desk__menubar img { width: 15px; height: 15px; }
.desk__menubar .sp { flex: 1; }
@media (max-width: 760px) { .desk__menubar .mi { display: none; } }
.desk__head { position: absolute; z-index: 1; left: var(--gx); right: var(--gxr); top: 10%; text-align: center; pointer-events: none; }
.desk__head img { width: 46px; margin: 0 auto 8px; }
.desk__head h1 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.045em; font-size: clamp(44px, 8vw, 128px); line-height: .9; text-wrap: balance; }
.desk__head p { margin: 14px auto 0; max-width: 46ch; }
.icon { position: absolute; z-index: 2; width: 120px; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.icon__img { width: 96px; height: 96px; padding: 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); display: grid; place-items: center; }
.icon__img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 3px; box-shadow: 0 6px 14px rgba(0,0,0,.3); pointer-events: none; }
.icon.plain .icon__img img { box-shadow: none; }
.icon__lbl { font-size: 14px; padding: 1px 6px; border-radius: 4px; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.5); line-height: 1.3; }
.icon.sel .icon__lbl { background: #2a62e8; text-shadow: none; }
.dock { position: absolute; z-index: 40; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; align-items: flex-end; gap: 10px; padding: 9px 12px; border-radius: 22px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.dock a, .dock button { display: block; width: 54px; height: 54px; border-radius: 13px; overflow: hidden; transition: transform .3s var(--ease-out); transform-origin: 50% 100%; position: relative; }
.dock a:hover, .dock button:hover { transform: scale(1.25) translateY(-6px); }
.dock img { width: 100%; height: 100%; object-fit: cover; }
.dock .sep { width: 1px; align-self: stretch; background: rgba(255,255,255,.4); margin-inline: 2px; }
.dock .notes { background: linear-gradient(#fbd54c 0 28%, #fffdf3 28%); }
.dock .notes::after { content: ""; position: absolute; left: 10px; right: 10px; top: 24px; height: 18px; background: repeating-linear-gradient(#ddd 0 1px, transparent 1px 6px); }
.dock .me { background: #fff; }
.dock .me img { object-position: 50% 15%; }
.win { position: absolute; z-index: 10; width: min(620px, 90vw); border-radius: 14px; overflow: hidden; background: #1b1b1b; color: var(--paper); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 .5px rgba(255,255,255,.12); }
.win__bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.18); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.win__dots { display: flex; gap: 8px; }
.win__dots i, .win__dots button { width: 13px; height: 13px; border-radius: 50%; display: block; }
.win__dots .x { background: #ff5f57; } .win__dots .m { background: #febc2e; } .win__dots .f { background: #28c840; }
.win__title { font-family: var(--f-display); font-size: 17px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__body { max-height: min(62svh, 620px); overflow: auto; padding: 22px 24px 30px; }
.win__body h2 { margin: 0 0 10px; font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 54px); letter-spacing: -.04em; line-height: .95; }
.win__body p { margin: 0; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.55; }
.win--cv { width: min(560px, 92vw); background: #fff; color: #111; }
.win--cv .win__bar { background: #ececeb; border-color: #d7d7d5; color: #333; }
.win--cv .win__body { padding: 0; max-height: min(70svh, 760px); }
.win--cv .win__body img { width: 100%; height: auto; }
.win__foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid #ddd; background: #f6f6f5; font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; }
.win__foot a { color: #111; }
.win--note { background: #fffdf3; color: #1d1d1d; }
.win--note .win__bar { background: #fbd54c; border-color: #e6bf2f; }
.win--note .win__body p { text-transform: none; letter-spacing: 0; font-family: var(--f-ui); font-size: 15px; }
.copyrow { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.copyrow code { font-family: var(--f-mono); font-size: 13px; background: rgba(255,255,255,.08); padding: 7px 9px; user-select: all; -webkit-user-select: all; }
.copyrow button, .copyrow a { background: var(--paper); color: var(--ink); padding: 7px 11px; text-decoration: none; }
.pic { position: absolute; z-index: 10; width: clamp(150px, 22vw, 360px); box-shadow: 0 30px 60px -18px rgba(0,0,0,.65); touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.pic img, .pic video { display: block; width: 100%; height: auto; pointer-events: none; }
.pic--sm { width: clamp(120px, 14vw, 230px); }
.pic--xs { width: clamp(100px, 11vw, 180px); }
@media (max-width: 760px) {
  .desk { min-height: 760px; }
  .desk__head { top: 8%; }
  .icon { width: 92px; }
  .icon__img { width: 70px; height: 70px; }
  .icon__lbl { font-size: 12px; }
  .win { left: 10px !important; right: 10px; width: auto; top: auto !important; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); translate: none !important; }
  .pic { width: 40vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
