/* Portfolio, direction A: a dark hero with a drifting wall of every project, a yellow marquee, dark highlights and
   project bento, then light reading sections, and a dark contact call at the end.
   Display Bricolage Grotesque, accent Instrument Serif italic, text Inter, labels and code JetBrains Mono. */
:root {
  --y: #f0b90b;
  --y2: #ffc928;
  --gold: #7d6106;
  --dk: #0a0a0a;
  --dk2: #131312;
  --dk-line: #262522;
  --on-dk: #f2efe6;
  --on-dk-mut: #9d998e;
  --lt: #fafaf7;
  --ink: #141414;
  --mut: #5c5a54;
  --line: #e6e3da;
  --chip: #fcecc0;
  --disp: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dk); color: var(--on-dk); font: 16px/1.6 var(--sans); }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--y); outline-offset: 3px; }
.nw { white-space: nowrap; }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 16px var(--pad);
  font: 500 13px/1 var(--mono); color: var(--on-dk);
  transition: background .25s, border-color .25s, padding .25s;
  border-bottom: 1px solid transparent;
}
.top.solid { background: rgba(10, 10, 10, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--dk-line); padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 18px/1 var(--disp); letter-spacing: -.01em; text-decoration: none; }
.brand-ava { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--y); }
.cur { display: inline-block; width: .5em; height: .82em; margin-left: .12em; vertical-align: -.06em; background: var(--y); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--on-dk-mut); transition: color .15s; }
.nav a:hover { color: var(--y); }
.status { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--dk-line); border-radius: 99px; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: center; padding: 120px var(--pad) 110px; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 70% at 75% 50%, rgba(240, 185, 11, .08), transparent 70%); pointer-events: none; }
.hero-in { position: relative; z-index: 2; max-width: 640px; }

/* wall of all projects beside the name: two columns drifting in opposite directions */
.wall { position: absolute; z-index: 1; top: 76px; bottom: 0; right: var(--pad); width: min(42vw, 600px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
.wall-col { overflow: hidden; }
.wall-col.down { padding-top: 90px; }
.wall-track { display: flex; flex-direction: column; gap: 16px; animation: wall-up 80s linear infinite; }
.wall-col.down .wall-track { animation-direction: reverse; }
.wall:hover .wall-track { animation-play-state: paused; }
@keyframes wall-up { to { transform: translateY(calc(-50% - 8px)); } }
@keyframes wall-left { to { transform: translateX(calc(-50% - 7px)); } }
.wcard { position: relative; display: block; flex: none; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--dk-line); border-radius: 12px; background: #000; cursor: pointer; transition: border-color .2s, transform .2s; }
.wcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.wcard-l { position: absolute; left: 8px; bottom: 8px; display: flex; gap: 8px; padding: 6px 9px; border-radius: 99px; background: rgba(10, 10, 10, .8); font: 600 11.5px/1 var(--mono); color: var(--on-dk); }
.wcard-l i { font-style: normal; color: var(--y); }
.wcard:hover, .wcard:focus-visible { border-color: var(--y); transform: scale(1.02); }
.wcard-cta { display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 16 / 10; padding: 18px 20px; background: var(--y); border-color: var(--y); color: #111; text-decoration: none; }
.wcard-cta b { font: 800 clamp(44px, 5vw, 68px)/.9 var(--disp); letter-spacing: -.04em; }
.wcard-cta span { margin-top: 4px; font: 700 16px/1.2 var(--disp); }
.wcard-cta i { margin-top: auto; padding-top: 10px; font: normal 600 12.5px/1 var(--mono); order: -1; align-self: flex-end; }
.wcard-cta:hover { border-color: #111; }
.eyebrow { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--y); }
.hero-name { margin-top: 10px; font: 800 clamp(120px, 21vw, 300px)/.84 var(--disp); letter-spacing: -.05em; }
.hero-name .cur { width: .3em; height: .66em; margin-left: .06em; vertical-align: 0; }
.hero-role { margin-top: 24px; font: 500 clamp(14px, 1.5vw, 17px)/1.5 var(--mono); color: var(--y); max-width: 46ch; }
.hero-lead { margin-top: 16px; max-width: 54ch; font-size: clamp(15px, 1.35vw, 18px); line-height: 1.65; color: var(--on-dk-mut); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border: 1.5px solid rgba(242, 239, 230, .35); border-radius: 99px;
  font: 700 14px/1 var(--mono); text-decoration: none; color: var(--on-dk); background: rgba(10, 10, 10, .6);
  transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--on-dk); }
.btn-main { background: var(--y); border-color: var(--y); color: #111; }
.btn-main:hover { background: var(--y2); border-color: var(--y2); }
.btn[hidden] { display: none; }
.scroll-hint { position: absolute; z-index: 2; left: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 10px; font: 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dk-mut); text-decoration: none; }
.scroll-hint::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--y), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--y); color: #111; border-block: 1px solid #000; }
.mq-track { display: flex; width: max-content; align-items: center; gap: 22px; padding: 16px 0; font: 700 clamp(18px, 2.2vw, 28px)/1 var(--disp); letter-spacing: -.01em; white-space: nowrap; animation: mq 38s linear infinite; }
.mq-track i { font-style: normal; font-size: .7em; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- dark area: numbers and projects ---------- */
.dark { background: var(--dk); }
.numbers { max-width: var(--max); margin: 0 auto; padding: 90px var(--pad) 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.num { padding: 8px 24px 8px 0; border-left: 1px solid var(--dk-line); padding-left: 24px; }
.num:first-child { border-left: 0; padding-left: 0; }
.num b { display: block; font: 800 clamp(40px, 5.4vw, 76px)/1 var(--disp); letter-spacing: -.04em; color: var(--on-dk); }
.num span { display: block; margin-top: 12px; max-width: 24ch; font-size: 14px; line-height: 1.5; color: var(--on-dk-mut); }

.sec { max-width: var(--max); margin: 0 auto; padding: 100px var(--pad); }
.sec-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 18px; margin-bottom: 44px; }
.sec-n { font: 500 14px/1 var(--mono); color: var(--y); }
.sec-head h2 { font: 800 clamp(40px, 6vw, 84px)/.95 var(--disp); letter-spacing: -.04em; }
.sec-head p { grid-column: 2; max-width: 60ch; margin-top: 14px; color: var(--on-dk-mut); font-size: 17px; }
.light .sec-head p { color: var(--mut); }
.light .sec-n { color: var(--gold); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
.tile { min-width: 0; }
.tile-big { grid-column: 1 / -1; }
.tile-hit { display: block; width: 100%; padding: 0; border: 0; background: none; color: var(--on-dk); text-align: left; font: inherit; cursor: pointer; }
.tile-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--dk-line); border-radius: 16px; background: #000; transition: border-color .3s; }
.tile-big .tile-media { aspect-ratio: 2 / 1; }
.tile-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tile-hit:hover .tile-media, .tile-hit:focus-visible .tile-media { border-color: var(--y); }
.tile-hit:hover video, .tile-hit:focus-visible video { transform: scale(1.035); }
.tile-n, .tile-pill { position: absolute; top: 12px; padding: 6px 10px; border-radius: 99px; background: rgba(10, 10, 10, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: 600 11.5px/1 var(--mono); }
.tile-n { left: 12px; color: var(--y); }
.tile-pill { right: 12px; color: var(--on-dk); }
.tile-cap { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 18px; }
.tile-txt { display: grid; gap: 8px; min-width: 0; }
.tile-txt b { font: 800 clamp(26px, 2.8vw, 40px)/1 var(--disp); letter-spacing: -.03em; transition: color .2s; }
.tile-big .tile-txt b { font-size: clamp(34px, 4.4vw, 64px); }
.tile-txt span { font-size: 15.5px; line-height: 1.45; color: var(--on-dk-mut); }
.tile-hit:hover .tile-txt b { color: var(--y); }
.tile-go { flex: none; padding-bottom: 4px; border-bottom: 1px solid var(--y); font: 600 13px/1 var(--mono); color: var(--on-dk); white-space: nowrap; }
.tile-go i { display: inline-block; font-style: normal; color: var(--y); transition: transform .2s; }
.tile-hit:hover .tile-go i { transform: translateX(4px); }

/* launch films */
.films { margin-top: 90px; padding-top: 44px; border-top: 1px solid var(--dk-line); }
.films-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.films-head h3 { font: 800 clamp(30px, 3.6vw, 48px)/1 var(--disp); letter-spacing: -.035em; }
.films-head p { color: var(--on-dk-mut); }
.films-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.film { margin: 0; }
.film video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--dk-line); border-radius: 14px; }
.film figcaption { display: grid; gap: 4px; margin-top: 14px; }
.film figcaption b { font: 700 20px/1.2 var(--disp); }
.film figcaption span { font-size: 14.5px; color: var(--on-dk-mut); }

/* project dialog */
.dlg { width: min(1040px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--dk-line); border-radius: 18px; background: var(--dk2); color: var(--on-dk); overflow: hidden; }
.dlg::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dlg[open] { animation: pop .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.dlg-in { position: relative; max-height: 92vh; overflow-y: auto; }
.dlg-in > video { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 58vh; object-fit: contain; background: #000; }
.dlg-x { position: sticky; top: 12px; float: right; z-index: 3; margin: 12px 12px -56px 0; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(10, 10, 10, .75); color: var(--on-dk); font: 400 26px/1 var(--sans); cursor: pointer; }
.dlg-x:hover { background: var(--y); color: #111; }
.dlg-body { padding: 28px clamp(20px, 4vw, 40px) 36px; }
.dlg-n { font: 500 13px/1 var(--mono); color: var(--y); }
.dlg-body h3 { margin-top: 10px; font: 800 clamp(32px, 4.6vw, 54px)/1 var(--disp); letter-spacing: -.035em; }
.dlg-body > p:not(.dlg-n):not(.code-h) { margin-top: 16px; max-width: 70ch; font-size: 16.5px; line-height: 1.65; color: #cfcbc0; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.stack li { padding: 6px 10px; border: 1px solid var(--dk-line); border-radius: 6px; font: 500 12.5px/1 var(--mono); color: var(--on-dk-mut); }
.code-h { display: flex; gap: 12px; margin-top: 30px; font: 600 13.5px/1.4 var(--mono); color: var(--on-dk); }
.code-h span { margin-left: auto; color: var(--on-dk-mut); font-weight: 500; }
.dlg pre { margin: 12px 0 0; padding: 18px 20px; overflow-x: auto; background: #0b0b0b; border: 1px solid var(--dk-line); border-radius: 10px; color: #e8e6e1; font: 12.8px/1.65 var(--mono); tab-size: 2; }
.tk-k { color: #f0b90b; }
.tk-s { color: #a5d67f; }
.tk-c { color: #80858e; font-style: italic; }
.tk-n { color: #ff9e64; }

/* ---------- light reading area ---------- */
.light { background: var(--lt); color: var(--ink); }
.light .sec { padding-block: 110px 40px; }
.light .sec:last-child { padding-bottom: 120px; }

.xp { display: grid; grid-template-columns: 220px 1fr; gap: 10px 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.xp:last-child { border-bottom: 1px solid var(--line); }
.xp-date { font: 500 14px/1.6 var(--mono); color: var(--gold); }
.xp h3 { font: 700 clamp(22px, 2.4vw, 30px)/1.15 var(--disp); letter-spacing: -.02em; }
.org { margin-top: 4px; color: var(--mut); }
.org a { text-decoration-color: var(--y); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.xp ul, .edu-list { margin-top: 12px; padding-left: 1.2em; }
.xp li, .edu-list li { margin: 6px 0; padding-left: .2em; line-height: 1.6; }
.xp li::marker, .edu-list li::marker { content: '› '; color: var(--gold); font-weight: 700; }

.posts { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.posts a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.posts a:hover { border-color: var(--y); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.pdate { font: 500 12.5px/1.4 var(--mono); color: var(--gold); }
.posts b { font: 700 20px/1.25 var(--disp); letter-spacing: -.01em; }
.posts span:not(.pdate) { font-size: 15px; line-height: 1.55; color: var(--mut); }
.posts i { margin-top: auto; padding-top: 8px; font: normal 600 13px/1.4 var(--mono); }
.note { margin-top: 14px; font-size: 14px; color: var(--mut); }

.bg-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.bg-h { margin: 0 0 16px; font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.bg-grid > div > .bg-h ~ .bg-h { margin-top: 36px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 9px 14px; border-radius: 99px; background: var(--chip); font: 500 13.5px/1.2 var(--mono); }
.edu-school { font: 700 22px/1.25 var(--disp); letter-spacing: -.01em; }
.langs { display: grid; gap: 10px; }
.langs div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.langs dt { font-weight: 600; }
.langs dd { color: var(--mut); text-align: right; }

/* ---------- contact call ---------- */
.cta { position: relative; overflow: hidden; padding: 130px var(--pad) 40px; background: var(--dk); }
.cta::before { content: ''; position: absolute; left: 50%; top: -30%; width: 900px; height: 900px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(240, 185, 11, .12), transparent); pointer-events: none; }
.cta > * { position: relative; max-width: var(--max); margin-inline: auto; }
.cta-big { margin-top: 18px; font: 800 clamp(52px, 10vw, 150px)/.92 var(--disp); letter-spacing: -.045em; }
.cta-big em { font: italic 400 1.06em/1 var(--serif); letter-spacing: -.01em; color: var(--y); white-space: nowrap; }
.btn-xl { padding: 18px 28px; font-size: 15px; }
.cta .kv { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 30px; margin-top: 70px; padding-top: 34px; border-top: 1px solid var(--dk-line); font: 15px/1.5 var(--mono); }
.cta .kv li { display: grid; gap: 4px; }
.cta .kv .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dk-mut); }
.cta .kv a { text-decoration: none; border-bottom: 1px solid var(--y); justify-self: start; }
.cta .kv a:hover { color: var(--y); }
.foot { margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--dk-line); font: 13px/1.4 var(--mono); color: var(--on-dk-mut); }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .mq-track, .cur, .live-dot, .scroll-hint::after, .wall-track { animation: none; }
  .tile-hit video { transition: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .hero { display: block; min-height: 0; padding-bottom: 90px; }
  .wall { position: relative; inset: auto; width: auto; margin: 48px calc(-1 * var(--pad)) 0; display: block; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .wall-col { display: flex; }
  .wall-col.down { padding-top: 0; margin-top: 14px; }
  .wall-track { flex-direction: row; gap: 14px; animation-name: wall-left; animation-duration: 90s; }
  .wcard { width: 280px; }
  .scroll-hint { display: none; }
}
@media (max-width: 980px) {
  .films-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .status { margin-left: auto; }
  .numbers { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .bg-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .top { gap: 12px; padding: 12px 18px; }
  .hero { padding-top: 104px; padding-bottom: 64px; }
  .hero-lead { font-size: 15px; }
  .wall { margin-top: 40px; }
  .wcard { width: 230px; }
  .numbers { padding-top: 64px; }
  .num { padding-left: 18px; }
  .sec { padding-block: 72px; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head p { grid-column: 1; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .bento { gap: 34px; }
  .tile-big .tile-media { aspect-ratio: 16 / 10; }
  .tile-go { display: none; }
  .xp { grid-template-columns: 1fr; gap: 6px; }
  .posts { grid-template-columns: 1fr; }
  .films-grid { grid-template-columns: 1fr; }
  .films { margin-top: 64px; }
  .dlg { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100%; border-radius: 0; border: 0; }
  .dlg-in { max-height: 100vh; }
  .dlg pre { font-size: 11.5px; padding: 14px; }
  .code-h span { display: none; }
  .cta { padding-top: 96px; }
}

/* ================= motion and effects (fx.js drives the pointer and scroll parts) ================= */
.progress { position: fixed; inset: 0 0 auto; z-index: 70; height: 3px; background: var(--y); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }
/* film grain over the dark parts */
body::after { content: ''; position: fixed; inset: 0; z-index: 65; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* top bar: where you are */
.nav a { position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--y); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.nav a.on { color: var(--on-dk); }
.nav a.on::after, .nav a:hover::after { transform: none; }

/* hero: drifting light, a grid that lights up under the pointer, letters that land one by one */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg::before, .hero-bg::after { content: ''; position: absolute; inset: 0; background-size: 56px 56px; }
.hero-bg::before { background-image: linear-gradient(rgba(242, 239, 230, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 239, 230, .05) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(90% 85% at 30% 45%, #000 15%, transparent 80%); mask-image: radial-gradient(90% 85% at 30% 45%, #000 15%, transparent 80%); }
.hero-bg::after { background-image: linear-gradient(rgba(240, 185, 11, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 185, 11, .55) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -600px) var(--my, -600px), #000, transparent 75%); mask-image: radial-gradient(240px circle at var(--mx, -600px) var(--my, -600px), #000, transparent 75%); }
.hero-bg i { position: absolute; width: 60vmax; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 185, 11, .17), transparent); animation: blob 22s ease-in-out infinite alternate; }
.hero-bg i:first-child { left: -20vmax; top: -24vmax; }
.hero-bg i:last-child { right: -12vmax; bottom: -32vmax; background: radial-gradient(closest-side, rgba(255, 122, 40, .11), transparent); animation-duration: 29s; animation-direction: alternate-reverse; }
@keyframes blob { to { transform: translate(13vmax, 9vmax) scale(1.25); } }
.hero-name .ch { display: inline-block; transition: color .25s, text-shadow .25s; animation: ch-in 1.15s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * .11s + .1s); }
.hero-name .ch:hover { color: var(--y); text-shadow: 0 0 70px rgba(240, 185, 11, .55); }
@keyframes ch-in { from { opacity: 0; transform: translateY(38%) rotate(5deg) scale(.92); filter: blur(14px); } }
/* hero text: pure CSS so it shows on the first paint, without waiting for the scripts */
.hi { animation: hi-in .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes hi-in { from { opacity: 0; transform: translateY(22px); } }
.scr { opacity: .45; }
.js .wall { animation: wall-in 1.5s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes wall-in { from { opacity: 0; translate: 90px 0; } }
@media (min-width: 1101px) {
  .fx .hero-in { transform: translateY(calc(var(--hs, 0) * -80px)); opacity: calc(1 - var(--hs, 0) * 1.2); }
  .wall { width: min(46vw, 680px); transform-origin: 100% 50%; translate: 0 calc(var(--hs, 0) * 60px);
    transform: perspective(1500px) rotateY(calc(-14deg + var(--wx, 0) * 5deg)) rotateX(calc(6deg + var(--wy, 0) * -4deg)) rotateZ(1.5deg); }
}

/* buttons: a sweep of light, and fx.js pulls them toward the pointer */
.btn { position: relative; overflow: hidden; }
.btn-main::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-120%); transition: transform .75s cubic-bezier(.2, .8, .2, 1); }
.btn-main:hover::after { transform: translateX(120%); }

/* headings rise word by word */
.fx .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .14em .08em .18em; margin: -.14em -.08em -.18em; }
.fx .wi { display: inline-block; transform: translateY(118%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 70ms + 80ms); }
.fx .rv.in .wi { transform: none; }

/* staggered groups */
.js .num.rv, .js .posts > li.rv { transition-delay: calc(var(--i, 0) * 100ms); }

/* project cards: wipe in, lean toward the pointer, catch a highlight */
.tile-media { transition: transform .6s cubic-bezier(.2, .8, .2, 1), border-color .3s, clip-path 1.2s cubic-bezier(.2, .8, .2, 1) .08s; }
.tile-media.tilting { transition-duration: .12s, .3s, 1.2s; }
.tile-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .17), transparent 55%); opacity: 0; transition: opacity .3s; }
.tile-hit:hover .tile-media::after { opacity: 1; }
.js .tile.rv .tile-media { clip-path: inset(0 0 100% 0 round 16px); }
.js .tile.rv.in .tile-media { clip-path: inset(0 0 0 0 round 16px); }
.js .bento .tile.rv:nth-child(odd) { transition-delay: .14s; }
.js .bento .tile.rv:nth-child(odd) .tile-media { transition-delay: 0s, 0s, .22s; }

/* films */
.film video { transition: border-color .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }
.film:hover video { border-color: var(--y); transform: translateY(-4px); }
.js .films.rv .film { opacity: 0; transform: translateY(22px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 130ms + 250ms); }
.js .films.rv.in .film { opacity: 1; transform: none; }

/* project dialog: its text arrives in steps */
.dlg[open] .dlg-body > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.dlg[open] .dlg-body > :nth-child(2) { animation-delay: .06s; }
.dlg[open] .dlg-body > :nth-child(3) { animation-delay: .12s; }
.dlg[open] .dlg-body > :nth-child(4) { animation-delay: .18s; }
.dlg[open] .dlg-body > :nth-child(n+5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* light part: rounded sheet over the dark page, drawn lines, hover marks */
.light { position: relative; z-index: 1; border-radius: 40px; }
.xp { position: relative; border-top: 0; }
.xp::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line); transform-origin: left; transition: transform 1.3s cubic-bezier(.2, .8, .2, 1) .1s; }
.js .xp.rv::before { transform: scaleX(0); }
.js .xp.rv.in::before { transform: none; }
.xp::after { content: ''; position: absolute; left: -18px; top: 32px; bottom: 32px; width: 3px; border-radius: 3px; background: var(--y); transform: scaleY(0); transform-origin: top; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.xp:hover::after { transform: none; }
.xp h3 { transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.xp:hover h3 { transform: translateX(6px); }
.posts a { position: relative; overflow: hidden; }
.posts a > * { position: relative; }
.posts a::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(340px circle at var(--sx, 50%) var(--sy, 50%), rgba(240, 185, 11, .22), transparent 65%); opacity: 0; transition: opacity .3s; }
.posts a:hover::before { opacity: 1; }
.posts i { transition: transform .25s; }
.posts a:hover i { transform: translateX(5px); }
.chips li { transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1), background .2s; }
.js .rv .chips li { opacity: 0; transform: translateY(10px) scale(.94); transition-delay: calc(var(--i, 0) * 40ms + 150ms); }
.js .rv.in .chips li { opacity: 1; transform: none; }
.js .rv.in .chips li:hover { background: var(--y); transform: translateY(-3px); transition-delay: 0s; }

/* outlined marquee before the closing call */
.marquee.ghost { padding-top: 80px; background: var(--dk); border: 0; }
.marquee.ghost .mq-track { gap: 44px; padding: 0; font-size: clamp(64px, 11vw, 170px); font-weight: 800; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 239, 230, .24); animation-duration: 70s; animation-direction: reverse; }
.marquee.ghost i { font-size: .32em; color: var(--y); -webkit-text-stroke: 0; }

/* closing call: glow follows the pointer, a shimmer on the serif words, the name as a giant sign-off */
.cta { padding-bottom: 0; }
.cta::before { left: var(--cx, 50%); top: var(--cy, 12%); transform: translate(-50%, -50%); transition: left .6s ease-out, top .6s ease-out; }
.cta-big em, .cta-big em .wi { background: linear-gradient(100deg, var(--y) 35%, #fff3bd 50%, var(--y) 65%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: -250% 0; } }
.js .cta .kv.rv li { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 80ms + 100ms); }
.js .cta .kv.rv.in li { opacity: 1; transform: none; }
.cta > .foot-big { max-width: none; margin: 26px calc(-1 * var(--pad)) -.13em; text-align: center; font: 800 clamp(150px, 37vw, 600px)/.74 var(--disp); letter-spacing: -.06em; user-select: none;
  background: linear-gradient(180deg, rgba(240, 185, 11, .95) 8%, rgba(240, 185, 11, .06) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.js .foot.rv + .foot-big { opacity: 0; transform: translateY(60px); transition: opacity 1.2s, transform 1.4s cubic-bezier(.2, .8, .2, 1); transition-delay: .15s; }
.js .foot.rv.in + .foot-big { opacity: 1; transform: none; }

/* pointer ring (mouse only, made by fx.js) */
.cx { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .25s; mix-blend-mode: difference; }
.cx.show { opacity: 1; }
.cx::before { content: ''; position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border: 1.5px solid #fff; border-radius: 50%; transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s, border-color .3s; }
.cx span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.5); opacity: 0; font: 700 12px/1 var(--mono); color: #111; transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.cx[data-s="link"]::before { transform: scale(1.6); background: rgba(255, 255, 255, .14); }
.cx[data-s="view"] { mix-blend-mode: normal; }
.cx[data-s="view"]::before { transform: scale(2.3); background: var(--y); border-color: var(--y); }
.cx[data-s="view"] span { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cx[data-s="off"] { opacity: 0; }

/* ---------- phones and tablets: menu, floating button, and effects driven by scroll and taps ---------- */
.menu-btn { display: none; position: relative; flex: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--dk-line); border-radius: 50%; background: rgba(10, 10, 10, .6); cursor: pointer; }
.menu-btn i { position: absolute; left: 12px; right: 12px; top: 16px; height: 1.5px; background: var(--on-dk); transition: transform .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1); }
.menu-btn i:last-child { top: 24px; }
.menu-open .menu-btn i { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; padding: 96px var(--pad) 40px; background: rgba(10, 10, 10, .97);
  visibility: hidden; clip-path: circle(0 at calc(100% - 39px) 33px); transition: clip-path .65s cubic-bezier(.2, .8, .2, 1), visibility 0s .65s; }
.menu-open .menu { visibility: visible; clip-path: circle(150% at calc(100% - 39px) 33px); transition-delay: 0s; }
.menu::before { content: ''; position: absolute; right: -30%; top: -10%; width: 90vmax; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 185, 11, .13), transparent); pointer-events: none; }
.menu a.m { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 7px 0; font: 800 clamp(44px, 13vw, 76px)/1.05 var(--disp); letter-spacing: -.04em; text-decoration: none; opacity: 0; transform: translateY(26px); transition: opacity .4s, transform .5s cubic-bezier(.2, .8, .2, 1), color .2s; }
.menu a.m small { font: 500 13px/1 var(--mono); letter-spacing: 0; color: var(--y); }
.menu a.m:active { color: var(--y); }
.menu-open .menu a.m { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + 220ms), calc(var(--i) * 70ms + 220ms), 0s; }
.menu .actions { position: relative; margin-top: 36px; opacity: 0; transition: opacity .5s; }
.menu-open .menu .actions { opacity: 1; transition-delay: .62s; }
html.menu-open, html.menu-open body { overflow: hidden; }
.fab { display: none; }
.tap { position: fixed; z-index: 80; width: 18px; height: 18px; margin: -9px; border: 2px solid var(--y); border-radius: 50%; pointer-events: none; animation: tap .6s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes tap { to { transform: scale(4.5); opacity: 0; } }

/* a press answers at once */
.btn:active { transform: scale(.96); }
.wcard:active { transform: scale(.97); border-color: var(--y); }
.posts a:active { transform: scale(.985); border-color: var(--y); }
.touch .tile-hit:active .tile-txt b { color: var(--y); }

/* touch: cards lean with the scroll (fx.js), the clip inside drifts, the entry in view is the marked one */
.touch .tile-media { transition: border-color .3s, clip-path 1.2s cubic-bezier(.2, .8, .2, 1) .08s; will-change: transform; }
.touch .tile-media video, .touch .tile-hit:hover video { transform: scale(1.12) translateY(calc(var(--par, 0) * 4%)); transition: none; }
.touch .tile-media::after { opacity: 1; background: linear-gradient(calc(180deg + var(--par, 0) * 30deg), rgba(255, 255, 255, calc(.03 + var(--par, 0) * var(--par, 0) * .12)), transparent 55%); }
.xp.act::after { transform: none; }
.xp.act h3 { transform: translateX(6px); }

@media (max-width: 1100px) {
  .wall { transform: rotate(-2.5deg) scale(1.04); }
  .fx .wall-track { translate: calc(var(--hs, 0) * -170px) 0; }
  .fx .wall-col.down .wall-track { translate: calc(var(--hs, 0) * -60px) 0; }
  .fx .hero-name { transform-origin: 0 100%; scale: calc(1 - var(--hn, 0) * .2); opacity: calc(1 - var(--hn, 0) * .75); }
}
@media (max-width: 980px) {
  .menu-btn { display: block; }
}
@media (max-width: 760px) {
  .light { border-radius: 26px; }
  .marquee.ghost { padding-top: 54px; }
  .xp::after { left: -11px; top: 26px; bottom: 26px; }
  .xp:hover::after { transform: scaleY(0); }
  .xp.act::after { transform: none; }
  .xp:hover h3 { transform: none; }
  .xp.act h3 { transform: translateX(6px); }
  .fab { display: inline-flex; align-items: center; gap: 10px; position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; translate: -50% 0;
    padding: 15px 22px; border-radius: 99px; background: var(--y); color: #111; font: 700 14px/1 var(--mono); text-decoration: none; white-space: nowrap;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .5); transform: translateY(160%); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
  .fab.show { transform: none; }
  .fab:active { transform: scale(.96); }
  .fab .live-dot { background: #111; box-shadow: none; animation: none; }
  .dlg[open] { animation: sheet .5s cubic-bezier(.2, .8, .2, 1); }
  .cta .foot { margin-bottom: 0; }
}
@keyframes sheet { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  .hero-name .ch, .js .wall, .hero-bg i, .cta-big em, .dlg[open] .dlg-body > *, .hi { animation: none; }
  .tile-media, .xp::before, .chips li, .js .films.rv .film, .js .cta .kv.rv li { transition: none; }
}
