:root {
  --bg: #07080a;
  --ink: #101210;
  --lime: #b6ff3d;
  --paper: #f4f3f0;
  --mut: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --sans: 'Manrope', system-ui, sans-serif;
  --disp: 'Poppins', 'Manrope', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, monospace;
  --pad-l: 96px;
  --pad-r: 46px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-size: 16px;
  margin: 0; min-height: 100vh; background: var(--bg); color: #fff;
  font-family: var(--sans); line-height: 1.5; overflow-x: hidden;
}
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--lime); }
::selection { background: var(--lime); color: var(--bg); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--bg); padding: 10px 16px; border-radius: 100px; font-weight: 600; }
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); }
.dim { color: var(--mut); }
.lime-t { color: var(--lime); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--pad-l); padding-right: var(--pad-r); }
.view { position: relative; z-index: 2; }
.stack { display: flex; flex-direction: column; gap: 70px; }
.stack--tight { gap: 26px; }
.stack--lg { gap: 54px; }

.kicker { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: clamp(14px, 1.4vw, 18px); font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; }
.kicker::before { content: ''; flex: none; width: 40px; height: 3px; border-radius: 100px; background: var(--lime); }
.kicker.lime-t { color: var(--lime); }
.display { font-family: var(--disp); font-weight: 800; font-size: clamp(38px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.display--sm { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; }
.display--xl { font-family: var(--sans); font-weight: 700; font-size: clamp(40px, 6.6vw, 96px); line-height: 1.1; letter-spacing: -0.055em; max-width: none; text-wrap: balance; }

/* ---------- fixed chrome ---------- */
.brand { position: absolute; z-index: 60; top: 38px; left: 28px; display: flex; align-items: center; gap: 13px; }
.brand__name { font-family: var(--disp); font-weight: 800; font-size: 24px; letter-spacing: -0.03em; white-space: nowrap; }
.brand__face { width: 48px; height: 48px; border-radius: 100px; overflow: hidden; background: #1a1d1a; border: 1px solid rgba(255, 255, 255, 0.14); will-change: transform; transition: transform 0.32s cubic-bezier(.2, .8, .2, 1); }
.brand__face img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.32s cubic-bezier(.2, .8, .2, 1), filter 0.32s; }
.brand__ow { position: absolute; left: calc(100% - 20px); bottom: 38px; padding: 6px 12px; background: #fff; color: #0a0c0a; border-radius: 100px; font: 800 13px var(--disp); white-space: nowrap; opacity: 0; transform-origin: 0 100%; pointer-events: none; }
.brand__ow.pop { animation: owpop 0.42s cubic-bezier(.34, 1.56, .64, 1) forwards; }

.rail { position: fixed; z-index: 60; left: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 13px 11px; background: rgba(14, 16, 18, 0.58); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 100px; }
.rail__item { position: relative; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.rail__item i { width: 8px; height: 8px; border-radius: 100px; background: rgba(255, 255, 255, 0.3); transition: transform 0.26s cubic-bezier(.34, 1.56, .64, 1), background 0.25s; }
.rail__item.is-on i { background: var(--lime); }
.rail__label { position: absolute; left: 26px; display: flex; padding: 7px 13px; background: #fff; color: #0a0c0a; border-radius: 100px; font: 10px var(--mono); letter-spacing: 0.13em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.rail__label b { font-weight: 400; display: inline-block; transform: translateY(6px); transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1); }
.rail__item:hover i, .rail__item:focus-visible i { transform: scale(1.45); }
.rail__item:hover .rail__label, .rail__item:focus-visible .rail__label { opacity: 1; }
.rail__item:hover .rail__label b, .rail__item:focus-visible .rail__label b { transform: none; }
.rail__label b:nth-child(2) { transition-delay: 26ms; } .rail__label b:nth-child(3) { transition-delay: 52ms; }
.rail__label b:nth-child(4) { transition-delay: 78ms; } .rail__label b:nth-child(5) { transition-delay: 104ms; }
.rail__label b:nth-child(6) { transition-delay: 130ms; } .rail__label b:nth-child(7) { transition-delay: 156ms; }

.cta, .pill { display: inline-flex; align-items: center; gap: 12px; border-radius: 100px; white-space: nowrap; will-change: transform; }
.cta--fixed { position: fixed; z-index: 60; top: 26px; right: 34px; background: var(--lime); color: #0a0c0a; font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; padding: 16px 26px; }
.cta--fixed:hover { color: #0a0c0a; }
.pill { border: 1px solid var(--lime); color: var(--lime); padding: 20px 32px; font: 12.5px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.pill:hover { background: var(--lime); color: var(--bg); }
.pills { display: flex; flex-wrap: wrap; gap: 16px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
[data-arrow] { display: inline-block; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: flex; }
.hero__in { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-top: 124px; padding-bottom: 80px; width: 100%; }
.hero__hi { font-family: var(--disp); font-weight: 800; font-size: clamp(32px, 3.6vw, 58px); line-height: 1.1; letter-spacing: -0.03em; }
.hero__hi .hi { display: inline-flex; align-items: center; gap: 0.16em; }
@keyframes handwave {
  0%, 76%, 100% { transform: rotate(0); } 4% { transform: rotate(-24deg); } 10% { transform: rotate(20deg); }
  16% { transform: rotate(-20deg); } 22% { transform: rotate(16deg); } 28% { transform: rotate(-12deg); } 34% { transform: rotate(6deg); } 40% { transform: rotate(0); }
}
.hero__h1 { font-family: var(--disp); font-weight: 800; font-size: clamp(42px, 6.6vw, 104px); line-height: 1.02; letter-spacing: -0.045em; max-width: 21ch; text-wrap: pretty; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.3em 0.34em 0.09em 0; margin-top: -0.3em; padding-right: 0.06em; }
.hero__hi .w { padding-right: 0.34em; }
.hero__h1 .w { padding-top: 0.04em; margin-top: -0.04em; padding-bottom: 0.24em; margin-bottom: -0.15em; }
[data-heroword] { display: inline-block; }
.lime { color: var(--lime); }
.hero__adopt { position: relative; display: inline-block; vertical-align: bottom; z-index: 0; }
.squiggle { position: absolute; left: 0; bottom: -0.02em; width: 100%; height: 0.2em; overflow: visible; pointer-events: none; z-index: -1; color: #fff; opacity: 0; }
.hero__sub { font-size: clamp(17px, 1.6vw, 22px); color: rgba(255, 255, 255, 0.85); max-width: none; letter-spacing: -0.01em; margin-top: 12px; }
.hero__cue { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 14px; color: var(--mut); }
.hero__cue svg { width: 18px; height: 26px; overflow: visible; animation: bob 2.4s ease-in-out infinite; }

/* ---------- about ---------- */
.about { padding-top: 108px; }
.lede { font-weight: 500; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.42; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.95); max-width: 640px; text-wrap: pretty; }
.lede--plain { max-width: none; font-size: clamp(16px, 1.4vw, 19px); }
@media (min-width: 1280px) { .lede--plain { white-space: nowrap; } }
.hl { font-style: normal; display: inline-block; white-space: nowrap; background: var(--lime); color: var(--bg); border-radius: 6px; padding: 0 0.22em; margin: 0 0.04em; transform-origin: left center; }
.js .lede .hl { transform: scaleX(0); }
.js .lede .hl.in { transform: scaleX(1); transition: transform 760ms cubic-bezier(.2, .8, .2, 1) 200ms; }
.portrait { margin: 0; aspect-ratio: 4 / 5; border-radius: 34px; overflow: hidden; background: rgba(255, 255, 255, 0.05); }
.portrait [data-portrait], .portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.portrait img { filter: grayscale(1) contrast(1.04); transition: filter 520ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1); }
.portrait:hover img { filter: none; transform: scale(1.03); }

.facts__n { font-family: var(--disp); font-weight: 800; font-size: clamp(44px, 5vw, 74px); line-height: 0.9; letter-spacing: -0.05em; color: var(--lime); margin-bottom: 12px; }




.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 11.5px var(--mono); color: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 100px; padding: 7px 14px; white-space: nowrap; }

/* ---------- work (light) ---------- */
.work { background: #fff; color: var(--ink); border-radius: 40px; padding: 76px 0 88px; margin-top: 96px; }
.work .work__h { font-size: clamp(44px, 5vw, 72px); line-height: 0.92; letter-spacing: -0.05em; }
.work__intro { margin: 24px 0 46px; max-width: 640px; font-size: 18px; color: #4a4943; }
.cards { display: flex; flex-direction: column; gap: 90px; }
.cards { perspective: 1400px; }
.js .card[data-grow] { will-change: transform, opacity; transform-origin: 50% 100%; }
.js .card[data-grow] .art { will-change: transform; }
.card { display: block; border-radius: 34px; overflow: hidden; background: var(--paper); color: var(--ink); transition: box-shadow 400ms; }
.card:hover { color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.32); }
.card__shot { height: 400px; overflow: hidden; background: #0c0e10; color: #cfd2cc; filter: grayscale(var(--g, 1)) contrast(1.05); transition: filter 500ms, transform 700ms cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__shot { filter: none; transform: scale(1.04); }
.card__shot .art, .proj__hero .art { width: 100%; height: 100%; }
.card__shot svg, .proj__hero svg { width: 100%; height: 100%; }
.card__meta { position: relative; z-index: 1; background: var(--paper); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 22px 26px 24px; }
.card h3 { font-weight: 700; font-size: 32px; letter-spacing: -0.03em; }
.card__sub { color: #4a4943; font-size: 15px; margin-top: 6px; max-width: 46ch; }
.card__tags { font-size: 12px; color: #7a776e; margin-top: 10px; }
.card__year { font-size: 11.5px; letter-spacing: 0.18em; color: #7a776e; }

/* ---------- history / contact ---------- */
.history { padding-top: 104px; }
.history__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.timeline__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 30px; align-items: baseline; border-top: 1px solid var(--line); padding: 26px 0; }
.timeline__row > .mono { font-size: 12px; letter-spacing: 0.08em; }
.timeline h3 { font-weight: 700; font-size: 24px; letter-spacing: -0.03em; }
.timeline .mono.dim { font-size: 13px; margin-top: 4px; }
.timeline__list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; max-width: 64ch; }
.timeline__list li { position: relative; padding-left: 20px; color: rgba(255, 255, 255, 0.78); font-size: 15px; line-height: 1.5; }
.timeline__list li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 100px; background: var(--lime); }
.timeline__body { margin-top: 12px; color: rgba(255, 255, 255, 0.78); max-width: 62ch; font-size: 15px; }

.contact { padding: 110px 0 40px; }
.contact .stack { gap: 34px; }

.foot { position: relative; z-index: 2; background: var(--bg); padding: 40px 0; }
.foot__row { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 26px; font: 11.5px var(--mono); color: rgba(255, 255, 255, 0.78); margin: 0 auto; }
.foot__links { display: flex; gap: 24px; }

/* ---------- project page ---------- */
.proj { padding-top: 150px; padding-bottom: 40px; }
.back { display: inline-flex; align-self: flex-start; gap: 10px; font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.86); }
.proj__title { font-family: var(--disp); font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.05em; max-width: 14em; text-wrap: balance; }
.proj__short { font-size: clamp(18px, 1.7vw, 24px); color: rgba(255, 255, 255, 0.85); max-width: 36em; letter-spacing: -0.015em; }
.proj__hero { height: clamp(260px, 38vw, 520px); border-radius: 36px; overflow: hidden; background: #0c0e10; border: 1px solid var(--line); color: #cfd2cc; }
.proj__body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 60px; padding-top: 20px; }
.proj__meta { display: flex; flex-direction: column; gap: 30px; align-self: start; position: sticky; top: 130px; }
.proj__meta dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 7px; }
.proj__meta dd { font-size: 16px; line-height: 1.5; }
.proj__sec { display: flex; flex-direction: column; gap: 16px; }
.proj__lead { font-weight: 500; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.4; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.95); max-width: 760px; text-wrap: pretty; }
.proj__lead strong { color: #fff; font-weight: 700; }
.proj__lead code { font: 0.8em var(--mono); background: rgba(255, 255, 255, 0.1); padding: 2px 7px; border-radius: 6px; }
.hlist { display: flex; flex-direction: column; gap: 14px; }
.hlist li { position: relative; padding-left: 30px; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -0.01em; max-width: 720px; }
.hlist li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 100px; background: var(--lime); }
.hlist em { font-style: italic; }
.next { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); margin-top: 30px; padding: 34px 4px 0; }
.next__t { font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.04em; margin-top: 8px; }
.next .dim { font: 11px var(--mono); letter-spacing: 0.2em; text-transform: uppercase; }
.next__a { font-size: 38px; color: var(--lime); }

/* ---------- texture & cursor ---------- */
.texture { position: fixed; inset: 0; pointer-events: none; z-index: 55; }
.texture > div { position: absolute; inset: 0; }
.texture i { position: absolute; inset: 0; opacity: 0; }
.texture__grunge { opacity: 0.45; mix-blend-mode: screen; }
.texture__grunge i { background-size: cover; background-position: center; animation: grungecut 0.75s steps(1) infinite; }
.texture__tooth { opacity: 0.5; mix-blend-mode: screen; }
.texture__tooth i { background-repeat: repeat; background-size: 512px 512px; animation: toothcut 0.333s steps(1) infinite; }
.texture__vignette { background: radial-gradient(120% 100% at 50% 45%, transparent 50%, rgba(0, 0, 0, 0.32) 100%); }
@keyframes toothcut { 0%, 24.9% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes grungecut { 0%, 16.5% { opacity: 1; } 16.6%, 100% { opacity: 0; } }
@keyframes owpop { 0% { transform: scale(0.4) translateY(6px) rotate(-8deg); opacity: 0; } 60% { transform: scale(1.12) rotate(3deg); opacity: 1; } 100% { transform: scale(1) rotate(-3deg); opacity: 1; } }

.blob { position: fixed; left: 0; top: 0; z-index: 70; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--lime); display: none; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 180ms, width 380ms cubic-bezier(.18, .85, .22, 1), height 380ms cubic-bezier(.18, .85, .22, 1), margin 380ms cubic-bezier(.18, .85, .22, 1), background-color 260ms; }
.blob span { font: 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity 200ms; }
body.has-cursor .blob { display: flex; }
.blob.is-cta { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
.blob.is-card { width: 124px; height: 124px; margin: -62px 0 0 -62px; }
.blob.is-card span { opacity: 1; }
.blob.on-light:not(.is-card) { background: var(--ink); }
.blob.on-lime:not(.is-card) { background: var(--ink); width: 14px; height: 14px; margin: -7px 0 0 -7px; }

/* ---------- reveal (only when JS is on) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 700ms ease var(--d, 0ms), transform 820ms cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.js [data-heroword] { transform: translateY(112%); }
.js.ready [data-heroword] { transform: none; transition: transform 980ms cubic-bezier(.16, .86, .22, 1) calc(110ms + var(--i, 0) * 78ms); }
.js [data-herofade] { opacity: 0; transform: translateY(18px); }
.js.ready [data-herofade] { opacity: 1; transform: none; transition: opacity 760ms ease 1000ms, transform 860ms cubic-bezier(.2, .8, .2, 1) 1000ms; }
.js.ready .squiggle { opacity: 1; }
.squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js.ready .squiggle path { animation: draw 760ms cubic-bezier(.2, .8, .2, 1) 1200ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
html:not(.js) .squiggle { opacity: 1; } html:not(.js) .squiggle path { stroke-dashoffset: 0; }

@keyframes viewin { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.is-project .view { animation: viewin 620ms cubic-bezier(.16, .84, .24, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .texture { display: none; }
  .js [data-reveal], .js [data-heroword], .js [data-herofade] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  :root { --pad-l: 84px; --pad-r: 28px; }
  .portrait { max-width: 420px; }
  .proj__body { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .proj__meta { position: static; flex-direction: row; flex-wrap: wrap; gap: 24px 40px; }
}
@media (max-width: 720px) {
  :root { --pad-l: 20px; --pad-r: 20px; }
  .rail { display: none; }
  .brand { top: 18px; left: 16px; }
  .brand__name { font-size: 20px; }
  .brand__face { width: 38px; height: 38px; }
  .cta--fixed { top: 14px; right: 14px; padding: 11px 16px; font-size: 14px; }
  .hero__in { padding-top: 110px; }
  .about { padding-top: 70px; }
  .card__shot { height: 240px; }
  .cards { gap: 56px; }
  .card__meta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .work { border-radius: 28px; padding: 56px 0 64px; margin-top: 64px; }
  .timeline__row { grid-template-columns: 1fr; gap: 6px; }
  .contact { padding-top: 100px; }
  .pill { padding: 16px 24px; }
  .proj { padding-top: 110px; }
  .foot__row { flex-direction: column; gap: 14px; }
}

/* ---------- chat assistant ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat { position: fixed; z-index: 65; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.chat.is-open .chat__fab { display: none; }
.chat__face { width: 38px; height: 38px; object-fit: contain; flex: none; margin: -4px 0; }
.chat__fab { display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: #0a0c0a; border: 0; border-radius: 100px; padding: 9px 22px 9px 10px; font: 600 15px var(--sans); letter-spacing: -0.01em; cursor: pointer; box-shadow: 0 14px 40px -12px rgba(182, 255, 61, 0.45); }
.chat__panel { width: min(400px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #0e1012; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); transform-origin: 100% 100%; }
.chat__panel[hidden] { display: none; }
.chat__panel.open { animation: chatin 320ms cubic-bezier(.2, .9, .25, 1); }
@keyframes chatin { from { opacity: 0; transform: scale(0.9) translateY(12px); } to { opacity: 1; transform: none; } }
.chat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.chat__who { display: flex; align-items: center; gap: 12px; }
.chat__who img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.chat__title { font: 700 18px var(--disp); letter-spacing: -0.02em; }
.chat__sub { margin-top: 3px; font-size: 11px; color: var(--mut); }
.chat__x { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat__x:hover { color: var(--lime); }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--bot { align-self: flex-start; background: rgba(255, 255, 255, 0.07); border-bottom-left-radius: 6px; }
.msg--me { align-self: flex-end; background: var(--lime); color: #0a0c0a; border-bottom-right-radius: 6px; }
.msg--err { color: #ffb4a8; }
.msg--typing { color: var(--mut); font-family: var(--mono); letter-spacing: 0.2em; }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 12px; }
.chat__chips[hidden] { display: none; }
.chat__chips button { font: 11.5px var(--mono); color: rgba(255, 255, 255, 0.85); background: none; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 100px; padding: 7px 13px; cursor: pointer; }
.chat__chips button:hover { border-color: var(--lime); color: var(--lime); }
.chat__form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; min-width: 0; background: rgba(255, 255, 255, 0.06); border: 1px solid transparent; border-radius: 100px; padding: 12px 16px; color: #fff; font: 15px var(--sans); }
.chat__form input:focus { outline: none; border-color: var(--lime); }
.chat__form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 100px; background: var(--lime); color: #0a0c0a; font-size: 20px; font-weight: 700; cursor: pointer; }
.chat__form button:disabled { opacity: 0.4; cursor: default; }
@media (max-width: 720px) {
  .chat { right: 14px; bottom: 14px; }
  .chat__panel { height: min(520px, calc(100vh - 100px)); }
}

/* ---------- about: intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 64px; align-items: center; margin-top: 28px; }
.intro__h { font-family: var(--disp); font-weight: 800; font-size: clamp(38px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -0.045em; text-wrap: balance; }
.pw { display: inline-block; color: color-mix(in srgb, var(--lime) calc(var(--k, 0) * 100%), #fff); transform: translateY(calc(var(--k, 0) * -8px)); transition: transform 0.28s cubic-bezier(.2, .8, .2, 1), color 0.28s; }
.intro__me { margin-top: 30px; font-weight: 500; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.42; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.9); max-width: 32em; text-wrap: pretty; }
.portrait { margin: 0; aspect-ratio: 4 / 5; border-radius: 34px; overflow: hidden; background: rgba(255, 255, 255, 0.05); }


/* ---------- about: AI, with people at the center ---------- */
.ai { --aiw: clamp(34px, 5.4vw, 80px); margin-top: 110px; display: flex; flex-direction: column; gap: 26px; }
.ai__line { min-height: calc(var(--aiw) * 4.3); font-size: 0; line-height: 0; }
.aw { display: inline-block; margin: 0 0.3em 0.12em 0; font: 400 clamp(24px, 4.2vw, 62px) / 1.15 var(--mono); text-transform: uppercase; letter-spacing: 0.03em; color: rgba(255, 255, 255, 0.82); transition: transform 0.4s cubic-bezier(.2, .8, .2, 1), color 0.3s; }
.aw.warm { font: 800 var(--aiw) / 1.04 var(--disp); text-transform: none; letter-spacing: -0.04em; color: #fff; margin-right: 0.22em; }
.aw.key.warm { color: var(--bg); background: var(--lime); border-radius: 0.14em; padding: 0 0.14em; margin-right: 0.1em; }
.ai__ctl { display: flex; align-items: center; gap: 16px; max-width: 520px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mut); }
.ai__range { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 100px; background: rgba(255, 255, 255, 0.22); }
.ai__range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 100px; background: var(--lime); border: 0; cursor: grab; }
.ai__range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 100px; background: var(--lime); border: 0; cursor: grab; }
.ai__note { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, 0.8); max-width: 34em; }


.linkish { font: inherit; color: var(--lime); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: #fff; }

/* ---------- case studies open in place ---------- */
dialog.case { padding: 0; border: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; background: var(--bg); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
dialog.case:not([open]) { display: none; }
dialog.case[open] { animation: viewin 520ms cubic-bezier(.16, .84, .24, 1); }
dialog.case::backdrop { background: var(--bg); }
.case__art[hidden] { display: none; }
.case__art.proj { padding-top: 120px; padding-bottom: 60px; margin: 0 auto; }
.case__x { position: fixed; top: 22px; right: 26px; z-index: 3; width: 52px; height: 52px; border-radius: 100px; background: var(--lime); color: #0a0c0a; border: 0; font-size: 28px; line-height: 1; cursor: pointer; }
.case__x:hover { background: #fff; }
.back { background: none; border: 0; color: rgba(255, 255, 255, 0.86); cursor: pointer; padding: 0; }
.back:hover { color: var(--lime); }
.next { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); color: inherit; text-align: left; font: inherit; cursor: pointer; }
.next:hover .next__t { color: var(--lime); }
.next > span:first-child { display: flex; flex-direction: column; gap: 8px; }
body.case-open { overflow: hidden; }
body.case-open .blob { display: none !important; }
body.case-open, body.case-open a, body.case-open button { cursor: auto !important; }

@media (max-width: 1000px) {
  .intro { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 420px; }
}
@media (max-width: 720px) {
  .ai { margin-top: 80px; --aiw: 36px; }
  .ai__line { min-height: calc(var(--aiw) * 6.2); }
  .aw { font-size: 25px; }
  .case__x { top: 14px; right: 14px; width: 46px; height: 46px; }
  .case__art.proj { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  .pw, .aw { transition: none !important; }
}

/* ---------- about: how I think ---------- */
.how { margin-top: 120px; display: flex; flex-direction: column; gap: 30px; }
.how__rows { display: flex; flex-direction: column; }
.how__row { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 40px; align-items: baseline; border-top: 1px solid var(--line); padding: 30px 0; }
.how__old { color: rgba(255, 255, 255, 0.55); }
.how__old .mono { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; }
.how__old s { text-decoration: none; font: 400 clamp(15px, 1.5vw, 19px) / 1.5 var(--mono); background: linear-gradient(var(--lime), var(--lime)) 0 56% / calc(var(--s, 1) * 100%) 2px no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.how__now { font-family: var(--disp); font-weight: 800; font-size: clamp(24px, 3.1vw, 46px); line-height: 1.1; letter-spacing: -0.04em; text-wrap: balance; }
.how__now { opacity: var(--n, 1); transform: translateY(calc((1 - var(--n, 1)) * 34px)); filter: blur(calc((1 - var(--n, 1)) * 8px)); will-change: opacity, transform; }
.how__now .hl { background: none; color: color-mix(in srgb, var(--lime) calc(var(--h, 1) * 100%), #fff); padding: 0; margin: 0; }
@media (max-width: 720px) {
  .how { margin-top: 80px; }
  .how__row { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
}
@media (prefers-reduced-motion: reduce) {
}

/* ---------- about: numbers ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 110px; border-top: 1px solid var(--line); padding-top: 44px; }
.facts__n { font-family: var(--disp); font-weight: 800; font-size: clamp(48px, 5.6vw, 84px); line-height: 0.9; letter-spacing: -0.05em; color: var(--lime); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.facts p { font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.84); max-width: 28ch; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; margin-top: 70px; } }

.facts__n--static { transform-origin: left center; }
.js .facts div.in .facts__n--static { animation: infpop 1.1s cubic-bezier(.2, .9, .25, 1) 0.2s both; }
@keyframes infpop { from { opacity: 0; transform: scale(0.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .facts div.in .facts__n--static { animation: none; } }

/* ---------- project media (uploaded images, YouTube) ---------- */
.shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gallery__item { margin: 0; min-width: 0; }
.gallery__item img { display: block; width: 100%; height: auto; border-radius: 24px; background: rgba(255, 255, 255, 0.05); }
.gallery__item figcaption { margin-top: 10px; font-size: 12px; color: var(--mut); }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #0c0e10; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 0.9; transition: opacity 0.3s, transform 0.5s; }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 100px; background: var(--lime); }
.yt__play::after { content: ''; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #0a0c0a; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 0.4s ease; }
.yt.is-ready iframe { opacity: 1; }
.yt.is-loading, .yt.is-ready { cursor: default; }
.yt.is-loading:hover img { transform: none; opacity: 0.9; }
.yt.is-ready img, .yt.is-ready .yt__play { opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.yt.is-loading .yt__play { animation: ytwait 1s ease-in-out infinite; }
@keyframes ytwait { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.88); opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .yt iframe, .yt.is-ready img, .yt.is-ready .yt__play { transition: none; } .yt.is-loading .yt__play { animation: none; } }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } .yt__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .yt__play::after { left: 24px; top: 18px; border-width: 12px 0 12px 18px; } }

.gallery > :only-child { grid-column: 1 / -1; }

.shotwrap { position: relative; width: 100%; height: 100%; }
.shotwrap .art { position: absolute; inset: 0; }
.shotwrap .shot { position: absolute; inset: 0; }
.proj__body--solo { grid-template-columns: minmax(0, 1fr); }
.proj__herowrap { display: flex; flex-direction: column; gap: 12px; }
.proj__hero .shot { object-fit: contain; background: #0c0e10; }
.proj__cap { font-size: 12.5px; color: var(--mut); max-width: 70ch; }
.gallery > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- embedded interactive preview ---------- */
.proj__intro { font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, 0.85); max-width: 60ch; }
.embed { position: relative; width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #0c0e10; }
.embed[style] { aspect-ratio: auto; height: var(--embed-h); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.embed__open { font-size: 13px; }
.embed__open a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.embed__open a:hover { color: #fff; }
@media (max-width: 720px) { .embed, .embed[style] { aspect-ratio: auto; height: max(560px, var(--embed-h, 560px)); } }
.gallery__yt { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.gallery__yt:hover { color: #fff; }
.gallery > .gallery__item--video:last-child:nth-child(odd):not(:only-child) { grid-column: auto; }

/* ---------- staggered case study: an image and a paragraph per row, alternating sides ---------- */
.proj__stagger { gap: clamp(44px, 6vw, 84px); }
.stagger__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.stagger__row--flip .stagger__img { order: 2; }
.stagger__img { margin: 0; min-width: 0; }
.stagger__img img { display: block; width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); }
.stagger__img figcaption { margin-top: 10px; font-size: 12.5px; color: var(--mut); }
.stagger__txt { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.stagger__t { font-family: var(--disp); font-weight: 700; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.stagger__txt .proj__lead { font-size: clamp(17px, 1.5vw, 21px); }
@media (max-width: 860px) {
  .stagger__row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .stagger__row--flip .stagger__img { order: 0; }
}

/* ---------- click an image to enlarge ---------- */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
dialog.lightbox { padding: 0; border: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: transparent; color: #fff; cursor: zoom-out; overflow: hidden; }
dialog.lightbox:not([open]) { display: none; }
dialog.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lbin 220ms ease-out; }
dialog.lightbox::backdrop { background: rgba(5, 6, 8, 0.94); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 94vw; max-height: 94vh; }
.lightbox img { display: block; width: auto; height: auto; max-width: 94vw; max-height: calc(94vh - 44px); object-fit: contain; border-radius: 12px; background: #fff; }
.lightbox figcaption { font-size: 12.5px; color: var(--mut); text-align: center; max-width: 70ch; }
.lightbox__x { position: fixed; top: 22px; right: 26px; z-index: 2; width: 52px; height: 52px; border-radius: 100px; background: var(--lime); color: #0a0c0a; border: 0; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__x:hover { background: #fff; }
body.lb-open .blob { display: none !important; }
body.lb-open, body.lb-open a, body.lb-open button { cursor: auto !important; }
body.lb-open dialog.lightbox { cursor: zoom-out !important; }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 720px) { .lightbox__x { top: 14px; right: 14px; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { dialog.lightbox[open] { animation: none; } }
