/* ============ fonts (self-hosted) ============ */
@font-face {
  font-family: 'Anybody';
  src: url('/fonts/anybody-latin.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anybody';
  src: url('/fonts/anybody-latin-ext.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

/* ============ tokens ============ */
:root {
  --bg: #0a0a0a;
  --card: rgba(18, 18, 18, 0.72);
  --card-solid: #121212;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #ededed;
  --muted: #a3a3a3;
  --dim: #686868;
  --faint: #3a3a3a;

  --online: #3ba55d;
  --idle: #f0b232;
  --dnd: #e5484d;
  --offline: #6b6b6b;

  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --display: 'Anybody', 'Geist', system-ui, sans-serif;

  --wrap: min(1120px, calc(100vw - 48px));
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 14px/1.55 var(--sans);
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: #ededed; color: #0a0a0a; }
.mono { font-family: var(--mono); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid #ededed; outline-offset: 3px; border-radius: 6px; }

/* ============ background ============ */
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; }
.vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(60% 50% at 80% 100%, rgba(255, 255, 255, 0.025), transparent 70%);
}

/* ============ gate ============ */
.gate { display: none; }
.js .gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  transition: opacity 0.9s var(--ease), visibility 0s linear 0.9s;
}
.js .entered .gate { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__btn {
  display: grid; justify-items: center; gap: 10px;
  padding: 40px 56px; border: 0; background: none; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.gate__label {
  font: 400 11px var(--mono); letter-spacing: 0.42em; text-transform: lowercase; color: var(--muted);
  padding-left: 0.42em; transition: color 0.3s;
}
.gate__btn:hover .gate__label, .gate__btn.is-holding .gate__label { color: var(--text); }
.gate__bar { width: 92px; height: 1px; background: var(--faint); overflow: hidden; }
.gate__bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(var(--p, 0)); }
.gate__hint { font: 400 9px var(--mono); letter-spacing: 0.2em; color: var(--dim); }
.gate__hint:empty { display: none; }

/* everything else waits behind the gate */
.js body:not(.entered) .topbar,
.js body:not(.entered) main,
.js body:not(.entered) .foot,
.js body:not(.entered) .player { opacity: 0; pointer-events: none; }
.js body:not(.entered) { overflow: hidden; }
.topbar, main, .foot { transition: opacity 0.8s var(--ease) 0.15s; }

[data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.js body:not(.entered) [data-reveal] { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.js body.entered .hero__tag { transition-delay: 0.55s; }
.js body.entered .links { transition-delay: 0.7s; }
.js body.entered .scroll-cue { transition-delay: 0.95s; }

/* ============ topbar ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(16px, 4vw, 48px) 0; pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.me { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); }
.me__where { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; }
.avatar, .dc-avatar {
  position: relative; display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(140deg, #2a2a2a, #161616); border: 1px solid var(--line-2);
  font: 800 13px var(--display); font-stretch: 125%;
}
.avatar img, .dc-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar__dot {
  position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--bg); background: var(--offline);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: 99px;
  background: rgba(20, 20, 20, 0.7); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 10.5px; color: var(--muted);
}
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--offline); flex: none; }
[data-status='online'] { background: var(--online); }
[data-status='idle'] { background: var(--idle); }
[data-status='dnd'] { background: var(--dnd); }
[data-status='offline'] { background: var(--offline); }
.dot--pulse { background: #b18cff; box-shadow: 0 0 0 0 rgba(177, 140, 255, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(177, 140, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(177, 140, 255, 0); } }

/* ============ hero ============ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-content: center; justify-items: center; text-align: center;
  padding: 120px 16px 190px;
}
.hero__name {
  margin: 0; line-height: 0.82;
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(96px, 21vw, 300px); letter-spacing: -0.045em;
  user-select: none;
}
.hero__word {
  position: relative; display: inline-block; padding: 0 0.04em 0.08em;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 18%, #d9d9d9 55%, #8d8d8d 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6));
}
/* chromatic fringe that follows the cursor */
.hero__word::before, .hero__word::after {
  content: attr(data-text); position: absolute; inset: 0; padding: inherit;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  mix-blend-mode: screen; opacity: 0.55; pointer-events: none;
  transition: transform 0.25s linear;
}
.hero__word::before { background-image: linear-gradient(#ff3b3b, #ff3b3b); transform: translate(var(--fx, 2px), var(--fy, 0)); z-index: -1; }
.hero__word::after { background-image: linear-gradient(#3b7bff, #3b7bff); transform: translate(calc(var(--fx, 2px) * -1), calc(var(--fy, 0px) * -1)); z-index: -1; }
/* letters carry their own gradient; the padding keeps descenders (j, y) inside the painted box */
.hero__word .ch { display: inline-block; padding: 0.12em 0 0.26em; margin: -0.12em 0 -0.26em; }
.hero__word { padding-top: 0.12em; padding-bottom: 0.26em; }
.js body:not(.entered) .hero__word .ch { opacity: 0; transform: translateY(0.15em) scale(1.04); filter: blur(14px); }
.hero__word .ch {
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
  transition-delay: calc(var(--i) * 70ms + 120ms);
  background: inherit; -webkit-background-clip: text; background-clip: text;
}

.hero__tag { margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: 99px; border: 1px solid var(--line); background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11.5px; color: var(--muted); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.pill:hover { color: var(--text); border-color: var(--line-2); background: rgba(30, 30, 30, 0.8); transform: translateY(-1px); }
.pill svg { width: 13px; height: 13px; fill: currentColor; }
.pill svg[viewBox] path[d^='m3'], .pill svg rect, .pill .pill__copy, .pill svg circle + path { fill: none; stroke: currentColor; stroke-width: 1.8; }
.pill svg circle { fill: none; stroke: currentColor; stroke-width: 1.8; }
.pill__copy { width: 11px !important; height: 11px !important; opacity: 0.6; }

.scroll-cue { position: absolute; right: clamp(16px, 4vw, 48px); bottom: 34px; width: 64px; height: 64px; display: grid; place-items: center; color: var(--dim); }
.scroll-cue svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.scroll-cue text { font: 400 7.4px var(--mono); letter-spacing: 0.16em; fill: currentColor; }
.scroll-cue__arrow { font-size: 13px; transition: transform 0.3s var(--ease); }
.scroll-cue:hover { color: var(--text); }
.scroll-cue:hover .scroll-cue__arrow { transform: translateY(3px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ sections ============ */
.sec { width: var(--wrap); margin: 0 auto; padding: 140px 0 40px; }
.sec__head {
  display: flex; align-items: center; gap: 14px;
  font: 400 10px var(--mono); letter-spacing: 0.06em; color: var(--dim);
}
.sec__head i { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.sec__head i b { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.35); transform-origin: left; transform: scaleX(var(--p, 0)); }
.display {
  margin: 6px 0 0; line-height: 0.9;
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(40px, 11vw, 150px); letter-spacing: -0.05em;
  color: #ececec;
}
.display__dot { color: #6d6d6d; }
.display--outline { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.14); }
/* grainy "now." */
.display--grain {
  color: transparent;
  background-color: #dcdcdc;
  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='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.2 1.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  -webkit-background-clip: text; background-clip: text;
  animation: grain 0.6s steps(3) infinite;
  width: fit-content;
}
@keyframes grain { 0% { background-position: 0 0; } 33% { background-position: -47px 31px; } 66% { background-position: 63px -18px; } }

/* ============ cards ============ */
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 16px 18px;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(255, 255, 255, 0.05), transparent 60%);
}
.card__head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 11.5px; }
.card__title { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; letter-spacing: -0.01em; }
.card__title svg { width: 13px; height: 13px; fill: currentColor; }
.card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--dim); }
.card__meta b { color: var(--muted); font-weight: 500; }
a.card__meta:hover { color: var(--text); }

.now-grid { display: grid; grid-template-columns: 1fr 1.45fr; gap: 10px; margin-top: 34px; }
.span-2 { grid-column: span 2; }

/* here now */
.card--here { display: grid; grid-template-rows: auto 1fr auto auto; min-height: 380px; }
.globe { width: 100%; height: 230px; margin: 8px auto 0; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.here__count { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.here__count b { font: 800 48px/1 var(--display); font-stretch: 125%; letter-spacing: -0.04em; }
.here__count span { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; min-height: 22px; }
.chips li {
  display: inline-flex; gap: 5px; align-items: baseline; padding: 3px 8px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
  font: 400 9.5px var(--mono); color: var(--dim);
}
.chips li b { color: var(--muted); font-weight: 500; }

/* discord */
.card--discord { display: flex; flex-direction: column; min-height: 380px; }
.dc-profile {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: 16px;
  padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
}
.dc-avatar { width: 52px; height: 52px; font-size: 20px; }
.dc-avatar .avatar__dot { width: 15px; height: 15px; border-width: 3px; border-color: #161616; }
.dc-who { display: grid; gap: 2px; min-width: 0; }
.dc-who b { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.dc-who span { font-size: 10.5px; color: var(--dim); }
.dc-custom {
  align-self: flex-start; margin: 10px 0 0; padding: 6px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted);
}
.dc-activity, .dc-recent__item { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.dc-activity img, .dc-recent__item img, .dc-art {
  width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none;
  background: linear-gradient(135deg, #2a2a2a, #151515); border: 1px solid var(--line);
}
.dc-activity b, .dc-recent__item b { display: block; font-size: 12.5px; font-weight: 600; }
.dc-activity span, .dc-recent__item span { display: block; font-size: 10.5px; color: var(--dim); }
.dc-activity .bar { height: 2px; margin-top: 7px; border-radius: 2px; background: var(--faint); overflow: hidden; width: 160px; }
.dc-activity .bar i { display: block; height: 100%; background: #1ed760; width: var(--p, 0%); }
.dc-label { margin: auto 0 0; padding-top: 18px; font-size: 9.5px; color: var(--dim); letter-spacing: 0.04em; }
.dc-recent { margin-top: 2px; }
.dc-recent__empty { display: block; margin-top: 8px; font-size: 11.5px; color: var(--dim); }
.dc-recent__item time { margin-left: auto; font: 400 9.5px var(--mono); color: var(--dim); }

/* weather */
.card--weather { padding-bottom: 12px; min-height: 290px; background: linear-gradient(180deg, rgba(42, 42, 46, 0.75), rgba(18, 18, 18, 0.8) 75%); }
.card--weather[data-day='0'] { background: linear-gradient(180deg, rgba(20, 22, 36, 0.8), rgba(14, 14, 16, 0.85) 75%); }
.weather__sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: var(--clouds, 0.6); }
.weather__sky i {
  position: absolute; border-radius: 50%; filter: blur(28px);
  background: radial-gradient(circle, rgba(200, 200, 210, 0.22), transparent 65%);
  animation: drift 40s linear infinite;
}
.weather__sky i:nth-child(1) { width: 380px; height: 200px; top: -40px; left: 10%; }
.weather__sky i:nth-child(2) { width: 300px; height: 180px; top: 30px; left: 45%; animation-duration: 55s; animation-delay: -12s; }
.weather__sky i:nth-child(3) { width: 420px; height: 220px; top: -60px; left: 70%; animation-duration: 48s; animation-delay: -30s; }
.weather__sky i:nth-child(4) { width: 260px; height: 160px; top: 90px; left: 20%; animation-duration: 62s; animation-delay: -5s; }
.weather__sky i:nth-child(5) { width: 340px; height: 180px; top: 80px; left: 80%; animation-duration: 70s; animation-delay: -40s; }
@keyframes drift { from { transform: translateX(-120px); } to { transform: translateX(120px); } }
.card--weather[data-rain='1'] .weather__sky::after {
  content: ''; position: absolute; inset: -40px 0 0;
  background: repeating-linear-gradient(100deg, transparent 0 9px, rgba(200, 210, 230, 0.12) 9px 10px, transparent 10px 23px);
  background-size: 100% 60px; animation: rain 0.5s linear infinite;
}
@keyframes rain { to { background-position: -12px 60px; } }

.wx-main { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr 240px auto; align-items: center; gap: 22px; margin-top: 18px; }
.wx-temp { display: flex; align-items: flex-start; }
.wx-temp b { font: 800 72px/0.9 var(--display); font-stretch: 125%; letter-spacing: -0.05em; }
.wx-temp sup { font-size: 14px; color: var(--muted); margin-top: 4px; }
.wx-desc { display: grid; gap: 3px; }
.wx-desc b { font-size: 15px; font-weight: 600; }
.wx-desc span { font-size: 11px; color: var(--muted); }
.wx-sun svg { width: 100%; height: auto; overflow: visible; }
.wx-sun__arc { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; stroke-dasharray: 2 4; }
.wx-sun__dot { fill: #f5f1e6; filter: drop-shadow(0 0 8px rgba(255, 240, 200, 0.9)); }
.wx-sun__row { display: flex; justify-content: space-between; margin-top: 4px; font-size: 9.5px; color: var(--dim); }
.wx-sun__row #wx-daylight { color: var(--muted); }
.wx-extra { display: grid; gap: 6px; font-size: 10.5px; color: var(--muted); text-align: right; }
.wx-hours {
  position: relative; z-index: 1; display: grid; grid-template-columns: repeat(12, minmax(48px, 1fr));
  gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none;
}
.wx-hours li { display: grid; justify-items: center; gap: 6px; padding: 9px 0; border-radius: 10px; font: 400 9.5px var(--mono); color: var(--dim); }
.wx-hours li:first-child { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.wx-hours svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.wx-hours b { font: 500 11px var(--mono); color: var(--text); }

/* github */
.card--github { padding-bottom: 14px; }
.gh-grid {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr);
  grid-auto-columns: 1fr; gap: 3px; margin-top: 16px; min-height: 110px;
}
.gh-grid i { aspect-ratio: 1; border-radius: 2.5px; background: rgba(255, 255, 255, 0.045); transition: background 0.4s, transform 0.2s; }
.gh-grid i[data-l='1'] { background: rgba(255, 255, 255, 0.22); }
.gh-grid i[data-l='2'] { background: rgba(255, 255, 255, 0.42); }
.gh-grid i[data-l='3'] { background: rgba(255, 255, 255, 0.68); }
.gh-grid i[data-l='4'] { background: #f2f2f2; box-shadow: 0 0 10px rgba(255, 255, 255, 0.35); }
.gh-grid i:hover { transform: scale(1.5); }
.gh-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 10px; color: var(--dim); }
.gh-foot b { color: var(--text); font-weight: 500; }
.gh-stats { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ work (horizontal pin) ============ */
.work { position: relative; height: calc(var(--cards, 4) * 100vh); margin-top: 120px; }
.work__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding-top: max(76px, 9vh); }
.sec__head--work { width: var(--wrap); margin: 0 auto; }
.work__title { width: var(--wrap); margin: 0 auto; overflow: hidden; }
.work__title-track { display: flex; gap: 0.25em; white-space: nowrap; will-change: transform; }
.work__title-track .display { margin: 0; font-size: clamp(56px, 8.4vw, 118px); }
.work__viewport { flex: 1; display: flex; align-items: center; min-height: 0; }
.work__track {
  display: flex; gap: 48px; margin: 0; padding: 0 calc((100vw - min(960px, 86vw)) / 2); list-style: none;
  will-change: transform;
}
.project {
  position: relative; flex: none; width: min(960px, 86vw); min-height: min(560px, 64vh);
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px;
  padding: 40px clamp(22px, 3vw, 34px);
  border-radius: 26px; border: 1px solid var(--line); background: rgba(14, 14, 14, 0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transform: scale(var(--s, 1)); opacity: var(--o, 1); filter: blur(var(--b, 0px));
  transition: transform 0.15s linear, opacity 0.15s linear;
}
.project__icon { width: 128px; height: 108px; margin: 0 0 6px -8px; }
.project__role { margin: 0; font-size: 10.5px; color: var(--dim); }
.project__name {
  margin: 4px 0 12px; font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: min(66px, 11.4cqi); line-height: 0.95; letter-spacing: -0.05em;
}
/* names scale with their column ("donutflipper" is ~8.5em wide) */
.project__text { min-width: 0; container-type: inline-size; }
.project__text p:not(.project__role) { margin: 0 0 10px; max-width: 40ch; font-size: 13.5px; color: var(--muted); }
.project__stats { display: flex; gap: 28px; margin: 14px 0 12px; }
.project__stats div { display: grid; }
.project__stats b { font: 800 clamp(30px, 3.2vw, 44px)/1 var(--display); font-stretch: 125%; letter-spacing: -0.05em; }
.project__stats span { margin-top: 4px; font-size: 10.5px; color: var(--dim); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 18px; padding: 0; list-style: none; }
.tags li { padding: 3px 9px; border-radius: 7px; border: 1px solid var(--line); font: 400 10px var(--mono); color: var(--dim); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px;
  background: #ededed; color: #0a0a0a; font-size: 12.5px; font-weight: 500; border: 0; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s;
}
.btn:hover { transform: translateY(-2px); background: #fff; }
.btn span { transition: transform 0.25s var(--ease); }
.btn:hover span { transform: translate(2px, -2px); }
.btn--off { background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.btn--off:hover { transform: none; background: rgba(255, 255, 255, 0.06); }
.btn--sm { height: 32px; padding: 0 14px; font-size: 12px; }

.project__shot {
  margin: 0; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-2); background: #151515;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(255, 255, 255, 0.015);
  transform: perspective(1200px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.4s var(--ease);
}
.project__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project__shot--mock { display: grid; }
.mock {
  position: relative; display: grid; align-content: center; justify-items: start; gap: 8px;
  padding: 34px 30px; overflow: hidden;
}
.mock > i { position: absolute; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.mock > i:nth-child(1) { left: 16px; } .mock > i:nth-child(2) { left: 30px; } .mock > i:nth-child(3) { left: 44px; }
.mock b { font: 800 clamp(30px, 4vw, 52px)/1 var(--display); font-stretch: 125%; letter-spacing: -0.05em; position: relative; }
.mock span { font-size: 13px; color: rgba(255, 255, 255, 0.7); position: relative; }
[data-mock='smpmacro'] .mock { background: radial-gradient(80% 90% at 85% 100%, rgba(110, 200, 120, 0.35), transparent 60%), radial-gradient(70% 70% at 0% 0%, rgba(80, 140, 90, 0.25), transparent 60%), #0f1410; }
[data-mock='hostlab'] .mock { background: radial-gradient(80% 90% at 90% 100%, rgba(90, 140, 255, 0.35), transparent 60%), radial-gradient(60% 70% at 0% 0%, rgba(150, 110, 255, 0.22), transparent 60%), #0e1018; }
.mock::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}

/* ============ stack ============ */
.stack { position: relative; height: calc(var(--items, 8) * 55vh + 100vh); margin-top: 80px; }
.stack__pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding-top: max(76px, 9vh); overflow: hidden; }
.sec__head--wide { width: min(1240px, calc(100vw - 48px)); margin: 0 auto; }
.stack__body { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; width: min(1240px, calc(100vw - 48px)); margin: 0 auto; min-height: 0; }
.stack__list-wrap { position: relative; height: 100%; overflow: hidden; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.stack__list { position: absolute; left: 0; top: 50%; margin: 0; padding: 0; list-style: none; will-change: transform; }
.stack__list li {
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(36px, 5.8vw, 84px); line-height: 1; letter-spacing: -0.05em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, var(--a, 0.08));
  transform-origin: left center; transform: scale(var(--sc, 0.86));
  transition: color 0.35s, -webkit-text-stroke-color 0.35s, transform 0.5s var(--ease);
  height: 1.06em;
}
.stack__list li.is-active { color: #ededed; -webkit-text-stroke-color: transparent; --sc: 1; }
.stack__art { position: relative; height: min(56vh, 520px); }
.stack__glow { position: absolute; inset: -20%; background: radial-gradient(closest-side, var(--glow, rgba(255, 255, 255, 0.1)), transparent 75%); opacity: 0.35; transition: background 0.8s; }
#stack-canvas { position: relative; width: 100%; height: 100%; }
.stack__ticks { display: flex; gap: 6px; width: min(1240px, calc(100vw - 48px)); margin: 0 auto 5vh; }
.stack__ticks i { width: 14px; height: 1px; background: var(--faint); transition: background 0.3s, width 0.3s; }
.stack__ticks i.is-active { width: 28px; background: var(--text); }

/* ============ guestbook ============ */
.gb { display: grid; grid-template-columns: 290px 1fr; gap: 10px; margin-top: 30px; align-items: start; }
.gb-form { display: grid; gap: 9px; padding: 18px; }
.gb-form b { font-size: 14px; font-weight: 650; margin-bottom: 4px; }
.gb-form input, .gb-form textarea {
  width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035); font-size: 12.5px; resize: none; transition: border-color 0.2s, background 0.2s;
}
.gb-form input::placeholder, .gb-form textarea::placeholder { color: var(--dim); }
.gb-form input:focus, .gb-form textarea:focus { outline: none; border-color: var(--line-2); background: rgba(255, 255, 255, 0.05); }
.gb-form__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.gb-form__foot .mono { font-size: 10px; color: var(--dim); }
.gb-form__msg { margin: 0; min-height: 1em; font-size: 10.5px; color: var(--muted); }
.gb-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.note {
  display: flex; flex-direction: column; min-height: 96px; padding: 13px 14px 10px; border-radius: 14px;
  background: rgba(22, 22, 22, 0.8); border: 1px solid var(--line);
  transform: rotate(var(--r, 0deg)); transition: transform 0.35s var(--ease), border-color 0.2s;
  animation: note-in 0.6s var(--ease) both;
}
.note:hover { transform: rotate(0) translateY(-3px); border-color: var(--line-2); }
.note p { margin: 0 0 12px; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.note footer { margin-top: auto; display: flex; justify-content: space-between; font: 400 9.5px var(--mono); color: var(--dim); }
.gb-empty { grid-column: 1 / -1; padding: 30px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--dim); font-size: 12px; text-align: center; }
@keyframes note-in { from { opacity: 0; transform: translateY(10px) rotate(var(--r, 0deg)); } }

/* ============ footer ============ */
.foot { position: relative; display: grid; justify-items: center; padding: 120px 0 40px; }
#foot-canvas { width: min(980px, 94vw); height: clamp(150px, 22vw, 260px); }
.foot a { margin-top: 18px; font-size: 10.5px; color: var(--dim); letter-spacing: 0.04em; }
.foot a:hover { color: var(--text); }

/* ============ player ============ */
.player {
  position: fixed; z-index: 30; left: 50%; bottom: 28px;
  display: grid; grid-template-columns: 40px auto 1fr auto auto auto; align-items: center; gap: 12px;
  width: min(480px, calc(100vw - 32px)); padding: 8px 9px 8px 8px; border-radius: 16px;
  background: rgba(16, 16, 16, 0.82); border: 1px solid var(--line-2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
  transition: transform 0.7s var(--ease), width 0.7s var(--ease), opacity 0.6s;
}
.player[hidden] { display: none; }
.player.is-docked { width: 236px; transform: translateX(calc(50vw - 100% - 24px)); grid-template-columns: 34px auto 1fr auto; }
.player.is-docked .player__time, .player.is-docked .player__mute { display: none; }
.player__cover { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #3a2f4f, #1b1b1b) center / cover; }
.player.is-docked .player__cover { width: 34px; height: 34px; }
.player__meta { display: grid; min-width: 0; }
.player__meta b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta span { font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__dots { display: flex; gap: 4px; justify-content: center; align-items: center; min-width: 0; overflow: hidden; }
.player__dots i { width: 2px; height: 2px; border-radius: 50%; background: var(--faint); flex: none; transition: background 0.2s, height 0.15s; }
.player__dots i.on { background: var(--text); }
.player.is-playing .player__dots i.on { height: var(--h, 2px); border-radius: 1px; }
.player__time { font-size: 10px; color: var(--dim); }
.player__mute, .player__play { display: grid; place-items: center; border: 0; cursor: pointer; background: none; color: var(--muted); }
.player__mute svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.player.is-muted .player__mute .wave { opacity: 0.2; }
.player__play { width: 38px; height: 38px; border-radius: 50%; background: #ededed; color: #0a0a0a; transition: transform 0.2s var(--ease); }
.player__play:hover { transform: scale(1.06); }
.player__play svg { width: 16px; height: 16px; fill: currentColor; }
.player .i-pause, .player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }

/* ============ toast ============ */
.toast {
  position: fixed; left: 50%; top: 22px; z-index: 120; padding: 7px 14px; border-radius: 99px;
  background: #ededed; color: #0a0a0a; font-size: 12px; font-weight: 500;
  transform: translate(-50%, -60px); transition: transform 0.45s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .now-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .wx-main { grid-template-columns: auto 1fr; }
  .wx-sun { grid-column: 1 / -1; }
  .wx-extra { grid-column: 1 / -1; display: flex; gap: 16px; text-align: left; }
  .gb { grid-template-columns: 1fr; }
  .gb-notes { grid-template-columns: repeat(2, 1fr); }
  .stack__body { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .stack__art { height: 100%; order: -1; }
  .stack__list-wrap { mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
}
@media (max-width: 820px) {
  /* no horizontal pin on phones: projects just stack */
  .work { height: auto; margin-top: 60px; }
  .work__pin { position: static; height: auto; overflow: visible; }
  .work__title-track { transform: none !important; }
  .work__viewport { display: block; }
  .work__track { flex-direction: column; gap: 14px; padding: 30px 0 0; width: var(--wrap); margin: 0 auto; transform: none !important; }
  .project { width: 100%; grid-template-columns: 1fr; min-height: 0; gap: 22px; padding: 26px 20px; --s: 1 !important; --o: 1 !important; --b: 0 !important; }
  .project__shot { order: 2; }
  .sec__head--work #work-count { display: none; }
}
@media (max-width: 560px) {
  .sec { padding-top: 100px; }
  .hero__tag { font-size: 13px; }
  .gb-notes { grid-template-columns: 1fr; }
  .gh-grid { gap: 2px; }
  .gh-grid i { border-radius: 1.5px; }
  .player { grid-template-columns: 40px 1fr auto; }
  .player__dots, .player__time, .player__mute { display: none; }
  .player.is-docked { width: 56px; padding: 8px; grid-template-columns: 38px; transform: translateX(calc(50vw - 100% - 14px)); }
  .player.is-docked .player__cover, .player.is-docked .player__meta { display: none; }
  .me__where { font-size: 10px; }
  .status-pill span { display: none; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
