/* ==========================================================================
   Sujay Maladi · portfolio
   Paper, grain, ink. Hand-tuned, no framework.
   ========================================================================== */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6dc;
  --card: #faf8f4;
  --ink: #161513;
  --ink-2: #3a3732;
  --muted: #77726a;
  --faint: #a7a197;
  --line: rgba(22, 21, 19, 0.11);
  --line-2: rgba(22, 21, 19, 0.2);
  --icon: #8b867d;

  --sage: #cfdfd1;
  --peach: #f1d7c6;
  --lilac: #ddd7ee;
  --sky: #d2e1ec;
  --butter: #f1e7c4;
  --rose: #e4a59a;
  --cardinal: #990000;

  --glass: rgba(255, 253, 249, 0.46);
  --glass-strong: rgba(255, 253, 249, 0.72);
  --glass-line: rgba(255, 255, 255, 0.7);

  --f-display: "Cabinet Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "General Sans", ui-sans-serif, system-ui, sans-serif;
  --f-hand: "Caveat", "Bradley Hand", cursive;
  --f-usc: "Libre Caslon Text", "Big Caslon", "Adobe Caslon Pro", Georgia, serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;

  --shadow-soft: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 2px rgba(22, 21, 19, 0.04), 0 8px 24px -12px rgba(22, 21, 19, 0.12);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 4px rgba(22, 21, 19, 0.04), 0 22px 44px -22px rgba(22, 21, 19, 0.28);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4 { font-family: var(--f-display); }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; border-radius: 6px; }

@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
}

/* ---------- atmosphere ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 90;
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .09  0 0 0 0 .08  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.paper-fibers {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    radial-gradient(rgba(22,21,19,.035) 1px, transparent 1.2px),
    radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.2px);
  background-size: 23px 23px, 31px 31px;
  background-position: 0 0, 11px 7px;
}
.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; opacity: .8; will-change: transform; background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 55%, transparent) 45%, transparent 100%) !important; }
.blob.b1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; --c: var(--peach); animation: drift1 26s var(--ease-in-out) infinite alternate; }
.blob.b2 { width: 38vw; height: 38vw; right: -10vw; top: 18vh; --c: var(--sage); animation: drift2 32s var(--ease-in-out) infinite alternate; }
.blob.b3 { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; --c: var(--lilac); animation: drift3 28s var(--ease-in-out) infinite alternate; opacity: .55; }
@keyframes drift1 { to { transform: translate(8vw, 10vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10vw, 14vh) scale(.92); } }
@keyframes drift3 { to { transform: translate(-6vw, -12vh) scale(1.15); } }

main, footer { position: relative; z-index: 2; }
header { position: relative; z-index: 80; }

/* ---------- custom cursor (no blur: whatever is under it stays readable) ---------- */
.cursor, .cursor-ring { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 1000; opacity: 0; transition: opacity .3s; }
html.has-cursor .cursor, html.has-cursor .cursor-ring { opacity: 1; }
.cursor {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--ink); border-radius: 50%;
  transition: opacity .3s, width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), border-radius .25s;
}
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.2px solid rgba(22,21,19,.4); border-radius: 50%;
  display: grid; place-items: center;
  transition: opacity .3s, width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s, border-color .3s;
}
.cursor-ring span {
  font: 600 12px/1 var(--f-body); letter-spacing: .01em;
  color: var(--paper); opacity: 0; transform: scale(.6);
  transition: opacity .25s, transform .35s var(--ease-spring);
  white-space: nowrap;
}
html.cursor-hover .cursor-ring { width: 50px; height: 50px; margin: -25px 0 0 -25px; border-color: rgba(22,21,19,.55); }
html.cursor-hover .cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
html.cursor-label .cursor-ring { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: var(--ink); border-color: var(--ink); }
html.cursor-label .cursor-ring span { opacity: 1; transform: scale(1); }
html.cursor-label .cursor { opacity: 0; }
html.cursor-text .cursor { width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 2px; }
html.cursor-text .cursor-ring { width: 0; height: 0; margin: 0; border-color: transparent; }
html.cursor-draw .cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
html.cursor-draw .cursor-ring { width: 14px; height: 14px; margin: -7px 0 0 -7px; border-color: rgba(22,21,19,.3); }
html.cursor-down .cursor-ring { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
html.cursor-hidden .cursor, html.cursor-hidden .cursor-ring { opacity: 0 !important; }

/* ---------- custom scrollbar ---------- */
.scrollbar { position: fixed; top: 10px; right: 5px; bottom: 10px; width: 10px; z-index: 95; opacity: 0; transition: opacity .5s; }
.scrollbar.show, .scrollbar:hover, .scrollbar.dragging { opacity: 1; }
.scrollbar::before { content: ""; position: absolute; inset: 0 4px; border-radius: 4px; background: rgba(22,21,19,.06); }
.scrollbar-thumb {
  position: absolute; left: 2px; right: 2px; top: 0; min-height: 40px;
  border-radius: 6px; background: rgba(22,21,19,.55);
  transition: left .25s var(--ease-out), right .25s var(--ease-out), background .25s;
}
.scrollbar:hover .scrollbar-thumb, .scrollbar.dragging .scrollbar-thumb { left: 0; right: 0; background: var(--ink); }
@media (hover: none) { .scrollbar { display: none; } html { scrollbar-width: thin; } html::-webkit-scrollbar { display: initial; } }
.thin-scroll { scrollbar-width: thin; scrollbar-color: rgba(22,21,19,.35) transparent; }
.thin-scroll::-webkit-scrollbar { width: 8px; }
.thin-scroll::-webkit-scrollbar-thumb { background: rgba(22,21,19,.3); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

.progress { display: none; position: fixed; left: 0; top: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--ink); z-index: 96; }

/* ---------- layout & type ---------- */
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section-title { font-size: clamp(38px, 5.6vw, 70px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.section-sub { margin: 14px 0 0; color: var(--muted); max-width: 58ch; font-size: 17px; }
.hand { font-family: var(--f-hand); font-weight: 600; color: var(--ink-2); }
.label { font: 500 13.5px/1.3 var(--f-body); color: var(--muted); letter-spacing: 0; }

/* ---------- buttons ---------- */
.btn {
  --h: 50px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: var(--h); padding: 0 22px 0 24px;
  border-radius: 999px; font: 600 15.5px/1 var(--f-body); letter-spacing: -0.005em;
  isolation: isolate; overflow: hidden; white-space: nowrap;
  transition: transform .5s var(--ease-spring), box-shadow .4s var(--ease-out), background .3s, color .3s;
  will-change: transform;
}
.btn .roll { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn .roll > span { display: block; transition: transform .55s var(--ease-out); }
.btn .roll > span + span { position: absolute; left: 0; top: 100%; }
.btn:hover .roll > span { transform: translateY(-100%); }
.btn .ico { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease-spring); }
.btn:hover .ico.arrow-r { transform: translateX(3px) rotate(-45deg); }
.btn:hover .ico.arrow-d { transform: translateY(3px); }
.btn:active { transform: scale(.96) !important; }
.btn-ink {
  background: var(--ink); color: #f7f4ee;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 -2px 0 rgba(0,0,0,.4) inset, 0 10px 24px -10px rgba(22,21,19,.55);
}
.btn-ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 60%);
  opacity: 0; transition: opacity .35s;
}
.btn-ink:hover::before { opacity: 1; }
.btn-ink:hover { box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 -2px 0 rgba(0,0,0,.4) inset, 0 18px 34px -12px rgba(22,21,19,.6); }
.btn-glass {
  background: var(--glass); color: var(--ink);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(22,21,19,.06), 0 8px 22px -12px rgba(22,21,19,.22);
}
.btn-glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn-glass:hover::before { transform: translateX(120%); }
.btn-glass:hover { background: var(--glass-strong); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(22,21,19,.08), 0 16px 30px -14px rgba(22,21,19,.3); }
.btn-sm { --h: 40px; padding: 0 16px 0 18px; font-size: 14px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(22,21,19,.07);
  transition: transform .45s var(--ease-spring), background .3s;
}
.icon-btn:hover { transform: rotate(90deg) scale(1.06); background: var(--glass-strong); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 80;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 999px;
  background: rgba(250, 248, 244, .6);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 0 0 1px rgba(22,21,19,.06), 0 12px 32px -18px rgba(22,21,19,.3);
  transition: transform .6s var(--ease-out), opacity .4s;
}
.nav.hide { transform: translate(-50%, -140%); }
.nav-logo {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ink); color: var(--paper);
  font: 800 15px/1 var(--f-display); letter-spacing: -0.03em;
  transition: transform .6s var(--ease-spring);
}
.nav-logo:hover { transform: rotate(-14deg) scale(1.06); }
.nav-links { position: relative; display: flex; gap: 2px; list-style: none; margin: 0; padding: 0 4px; }
.nav-links a { position: relative; z-index: 1; display: block; padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .3s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-pill {
  position: absolute; z-index: 0; top: 0; height: 100%; left: 0; width: 0;
  border-radius: 999px; background: rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(22,21,19,.07), 0 4px 10px -6px rgba(22,21,19,.25);
  transition: left .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
  opacity: 0;
}
.nav-time { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav-time .dot { width: 7px; height: 7px; border-radius: 50%; background: #7fae86; animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(127,174,134,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(127,174,134,0); } }
.nav-menu { display: none; }
.nav-cta { margin-left: 2px; }
.sheet {
  position: fixed; inset: 0; z-index: 79; display: grid; align-content: center; justify-items: start;
  padding: 90px var(--gutter) 40px; gap: 6px;
  background: rgba(244,241,234,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  clip-path: circle(0% at calc(100% - 44px) 40px);
  transition: clip-path .8s var(--ease-in-out);
  pointer-events: none;
}
.sheet.open { clip-path: circle(150% at calc(100% - 44px) 40px); pointer-events: auto; }
.sheet a { font: 800 clamp(36px, 10vw, 54px)/1.15 var(--f-display); letter-spacing: -0.03em; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .6s var(--ease-out); }
.sheet.open a { opacity: 1; transform: none; }
.sheet a:nth-child(2) { transition-delay: .05s; } .sheet a:nth-child(3) { transition-delay: .1s; } .sheet a:nth-child(4) { transition-delay: .15s; }
.sheet a:nth-child(5) { transition-delay: .2s; } .sheet a:nth-child(6) { transition-delay: .25s; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding-top: clamp(120px, 17vh, 180px); padding-bottom: 40px; display: flex; flex-direction: column; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 80px); align-items: center; flex: 1; }
.name {
  margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: .88;
  font-size: clamp(66px, 12vw, 172px);
}
.name .line { display: block; width: fit-content; white-space: nowrap; }
.name .ch { display: inline-block; transition: transform .6s var(--ease-spring); transform-origin: 50% 90%; }
.name .ch:hover { transform: translateY(-8%) rotate(-6deg); }
.name .ch.scatter { transition: transform 1.2s var(--ease-spring); }
.name .period { color: var(--rose); }

.hero-roles { margin: 30px 0 0; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 34ch; font-weight: 500; }
.hero-roles strong { color: var(--ink); font-weight: 600; }
.usc {
  font-family: var(--f-usc); font-weight: 400; color: var(--cardinal);
  letter-spacing: .005em; font-size: 1.04em;
  white-space: nowrap; position: relative; display: inline-block;
}
.usc::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; opacity: .35; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.usc:hover::after { transform: scaleX(1); }
.hero-statement { margin: 16px 0 0; color: var(--muted); max-width: 50ch; font-size: 16.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 10px;
  background: rgba(255,255,255,.5); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: transform .45s var(--ease-spring), background .3s, box-shadow .3s;
}
.tag:hover { transform: translateY(-2px); background: rgba(255,255,255,.85); box-shadow: 0 0 0 1px var(--line-2), 0 8px 18px -12px rgba(22,21,19,.35); }
.tag svg { width: 16px; height: 16px; color: var(--icon); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.annot { position: absolute; pointer-events: none; color: var(--ink-2); }
.annot svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.draw path { stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); }
.draw.in path { animation: draw 1.4s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.annot-hi { left: 100%; top: 50%; margin-left: 14px; display: flex; align-items: center; gap: 6px; font-size: clamp(20px, 2vw, 26px); letter-spacing: 0; line-height: 1; white-space: nowrap; transform: rotate(-4deg); font-family: var(--f-hand); font-weight: 600; }
.annot-hi svg { width: 54px; height: 40px; flex: none; }
.annot-hi > span { opacity: 0; transform: translateX(-6px); transition: opacity .6s .5s, transform .8s .5s var(--ease-out); }
.annot-hi.in > span { opacity: 1; transform: none; }

/* doodle pad */
.doodle-wrap { position: relative; padding: 18px 8px; }
.doodle {
  position: relative; aspect-ratio: 1 / 1.08; width: 100%;
  border-radius: 6px;
  background:
    linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(120,140,170,.16) 100%) 0 46px / 100% 30px,
    #fcfbf7;
  box-shadow: 0 1px 2px rgba(22,21,19,.06), 0 30px 60px -32px rgba(22,21,19,.4), 0 0 0 1px rgba(22,21,19,.06);
  transform: rotate(1.6deg);
  transition: transform .9s var(--ease-spring), box-shadow .6s;
  touch-action: none;
}
.doodle:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 1px 2px rgba(22,21,19,.06), 0 40px 70px -34px rgba(22,21,19,.45), 0 0 0 1px rgba(22,21,19,.07); }
.doodle::before { content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 1px; background: rgba(228,165,154,.55); }
.doodle canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.tape { position: absolute; width: 96px; height: 28px; background: rgba(241,231,196,.75); box-shadow: 0 1px 2px rgba(22,21,19,.08); z-index: 3; mix-blend-mode: multiply; }
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(244,241,234,1) 3px 5px); }
.tape::before { left: -3px; } .tape::after { right: -3px; }
.tape.t1 { left: 18%; top: -10px; transform: rotate(-6deg); }
.tape.t2 { right: 14%; top: -8px; transform: rotate(5deg); background: rgba(207,223,209,.75); }
.doodle-top { position: absolute; left: 48px; right: 16px; top: 12px; display: flex; justify-content: space-between; align-items: center; z-index: 2; pointer-events: none; }
.doodle-top .hand { font-size: 24px; color: var(--ink-2); }
.doodle-tools { position: absolute; left: 48px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(22,21,19,.15); transition: transform .4s var(--ease-spring), box-shadow .3s; }
.swatch:hover { transform: scale(1.15); }
.swatch.on { box-shadow: 0 0 0 2px #fcfbf7, 0 0 0 3.5px var(--c); }
.doodle-tools .spacer { flex: 1; }
.doodle-tools .note { font: 500 12.5px/1.2 var(--f-body); color: var(--faint); }
.doodle-clear { width: 34px; height: 34px; }
.doodle-clear svg { width: 16px; height: 16px; }

.scroll-cue { display: grid; place-items: center; margin: 40px auto 0; width: 40px; height: 56px; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 1.5px solid var(--ink-2); border-radius: 13px; position: relative; opacity: .7; transition: opacity .3s; }
.scroll-cue:hover .mouse { opacity: 1; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: var(--ink); animation: wheel 1.8s var(--ease-in-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }

/* ---------- cards ---------- */
.card {
  position: relative; border-radius: var(--r-l);
  background: linear-gradient(180deg, rgba(252,251,248,.9), rgba(248,246,241,.8));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-soft);
  transition: opacity .9s var(--ease-out), transform .7s var(--ease-out), box-shadow .5s var(--ease-out);
  transition-delay: var(--rd, 0s), 0s, 0s;
}
.card.tilt { will-change: transform; }
.card:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lift); }

/* ---------- research ---------- */
.research-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.r-card { grid-column: span 6; display: flex; flex-direction: column; padding: 14px; text-align: left; overflow: hidden; }
.r-card:nth-child(1) { grid-column: span 7; } .r-card:nth-child(2) { grid-column: span 5; }
.r-card:nth-child(3) { grid-column: span 5; } .r-card:nth-child(4) { grid-column: span 7; }
.r-art { position: relative; height: 250px; border-radius: 20px; overflow: hidden; background: var(--tone, var(--sage)); box-shadow: inset 0 0 0 1px rgba(22,21,19,.06); }
.r-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 1px 1px, rgba(22,21,19,.1) 1px, transparent 0) 0 0 / 18px 18px; opacity: .6; pointer-events: none; }
.r-art svg, .r-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; padding: clamp(14px, 4.5%, 28px); box-sizing: border-box; z-index: 1; }
.r-art.earth::after { opacity: .25; }
.r-body { padding: 22px 10px 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.r-title { font-size: clamp(27px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.05; }
.r-short { margin: 0; color: var(--ink-2); max-width: 54ch; font-size: 16px; }
.r-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #d6a35c; animation: ping-amber 2.4s infinite; }
@keyframes ping-amber { 0% { box-shadow: 0 0 0 0 rgba(214,163,92,.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(214,163,92,0); } }
.open-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: transform .6s var(--ease-spring); }
.open-dot svg { width: 16px; height: 16px; transition: transform .5s var(--ease-spring); }
.r-card:hover .open-dot svg { transform: rotate(45deg); }
.r-card:hover .open-dot { transform: scale(1.08); }

/* research art: every loop starts and ends on the same frame */
.art-node { animation: bob 6s ease-in-out infinite; }
.art-node.n2 { animation-delay: -2s; } .art-node.n3 { animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.art-edge { stroke-dasharray: 4 5; animation: flow9 1.2s linear infinite; }
@keyframes flow9 { to { stroke-dashoffset: -18; } }
.cv-hl { opacity: 0; animation: cvPulse 6s ease-in-out infinite; }
.cv-hl.h2 { animation-delay: 2s; } .cv-hl.h3 { animation-delay: 4s; }
@keyframes cvPulse { 0%, 100% { opacity: 0; } 8%, 26% { opacity: 1; } 36% { opacity: 0; } }

.sc-circle { stroke-dasharray: 320; stroke-dashoffset: 320; animation: scCircle 8s var(--ease-in-out) infinite; }
@keyframes scCircle { 0%, 8% { stroke-dashoffset: 320; opacity: 1; } 30% { stroke-dashoffset: 0; } 84% { stroke-dashoffset: 0; opacity: 1; } 94% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 320; opacity: 0; } }
.sc-arrow { stroke-dasharray: 90; stroke-dashoffset: 90; animation: scArrow 8s var(--ease-in-out) infinite; }
@keyframes scArrow { 0%, 30% { stroke-dashoffset: 90; opacity: 1; } 40% { stroke-dashoffset: 0; } 84% { stroke-dashoffset: 0; opacity: 1; } 94% { opacity: 0; } 100% { stroke-dashoffset: 90; opacity: 0; } }
.sc-bubble { opacity: 0; animation: scBubble 8s var(--ease-out) infinite; transform-box: fill-box; transform-origin: 0% 100%; }
@keyframes scBubble { 0%, 34% { opacity: 0; transform: translateY(8px) scale(.94); } 42% { opacity: 1; transform: none; } 84% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
.sc-wave rect { transform-box: fill-box; transform-origin: 50% 50%; animation: scWave .9s ease-in-out infinite; }
.sc-wave rect:nth-child(2) { animation-delay: -.3s; } .sc-wave rect:nth-child(3) { animation-delay: -.6s; } .sc-wave rect:nth-child(4) { animation-delay: -.15s; }
@keyframes scWave { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.sc-glow { opacity: 0; animation: scGlow 8s ease-in-out infinite; }
@keyframes scGlow { 0%, 40% { opacity: 0; } 50%, 76% { opacity: 1; } 86%, 100% { opacity: 0; } }
.sc-user { animation: scUser 8s var(--ease-in-out) infinite; }
@keyframes scUser { 0%, 46% { transform: translate(70px, 40px); opacity: 0; } 52% { opacity: 1; } 70% { transform: translate(0, 0); opacity: 1; } 74% { transform: translate(0, 0) scale(.9); } 78% { transform: translate(0, 0); } 88% { opacity: 1; } 96%, 100% { transform: translate(0, 0); opacity: 0; } }
.sc-click { transform-box: fill-box; transform-origin: center; opacity: 0; animation: scClick 8s ease-out infinite; }
@keyframes scClick { 0%, 73% { opacity: 0; transform: scale(.3); } 75% { opacity: .9; } 86%, 100% { opacity: 0; transform: scale(2.4); } }
.sc-done { opacity: 0; animation: scDone 8s ease-out infinite; }
@keyframes scDone { 0%, 76% { opacity: 0; } 80%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }

.cur-a { animation: curA 7s var(--ease-in-out) infinite; } .cur-b { animation: curB 8s var(--ease-in-out) infinite; } .cur-c { animation: curC 6.5s var(--ease-in-out) infinite; }
@keyframes curA { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(60px, 30px); } 66% { transform: translate(20px, -24px); } }
@keyframes curB { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-70px, -20px); } 70% { transform: translate(-20px, 34px); } }
@keyframes curC { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, -40px); } }

/* ---------- publications ---------- */
.pubs { display: grid; gap: 28px; }
.pub { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: clamp(14px, 1.6vw, 20px); align-items: start; }
.pub:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.pub:nth-child(even) .pub-fig { order: 2; }
.pub-fig { position: sticky; top: 90px; margin: 0; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; padding: clamp(12px, 2vw, 24px); }
.pub-fig img { width: 100%; height: auto; border-radius: 8px; transition: transform 1.2s var(--ease-out); }
.pub:hover .pub-fig img { transform: scale(1.025); }
.pub-fig .zoom { position: absolute; right: 12px; bottom: 12px; }
.pub-body { padding: clamp(6px, 1.4vw, 18px) clamp(4px, 1vw, 12px); display: flex; flex-direction: column; gap: 14px; }
.venue-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.venue { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 13.5px; font-weight: 600; }
.venue .seal { width: 22px; height: 22px; border-radius: 50%; background: #f5d77d; color: var(--ink); display: grid; place-items: center; animation: spin 12s linear infinite; }
.venue .seal svg { width: 12px; height: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.partner { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.pub-title { margin: 4px 0 0; font-size: clamp(23px, 2.3vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.pub-title .sys { color: var(--muted); }
.pub-authors { margin: 0; font-size: 14.5px; color: var(--muted); }
.pub-authors b { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-style: wavy; text-decoration-color: var(--rose); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pub-summary { margin: 0; color: var(--ink-2); font-size: 16px; }
.pub-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pub-points li { position: relative; padding-left: 22px; font-size: 15px; color: var(--ink-2); }
.pub-points li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 10px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(-8deg); }
.pub-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }

.writing { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(22px, 3vw, 36px); margin-top: 28px; background: rgba(250,248,244,.5); }
.writing h3 { margin: 0; font-size: clamp(23px, 2.4vw, 30px); letter-spacing: -0.02em; font-weight: 800; }
.writing p { margin: 6px 0 0; color: var(--muted); }
.page-anim { width: 132px; height: 110px; flex: none; }
.pa-line { stroke-dasharray: 60; stroke-dashoffset: 60; animation: paLine 7s linear infinite; }
.pa-line.l2 { animation-name: paLine2; } .pa-line.l3 { animation-name: paLine3; } .pa-line.l4 { animation-name: paLine4; }
@keyframes paLine  { 0%, 4% { stroke-dashoffset: 60; opacity: 1; } 18% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes paLine2 { 0%, 20% { stroke-dashoffset: 60; opacity: 1; } 34% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes paLine3 { 0%, 36% { stroke-dashoffset: 60; opacity: 1; } 50% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes paLine4 { 0%, 52% { stroke-dashoffset: 60; opacity: 1; } 64% { stroke-dashoffset: 0; } 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.pa-pencil { animation: paPencil 7s linear infinite; }
@keyframes paPencil {
  0%, 4% { transform: translate(0, 0); } 18% { transform: translate(52px, 0); } 20% { transform: translate(0, 13px); }
  34% { transform: translate(56px, 13px); } 36% { transform: translate(0, 26px); } 50% { transform: translate(48px, 26px); }
  52% { transform: translate(0, 39px); } 64% { transform: translate(34px, 39px); } 74% { transform: translate(40px, 30px) rotate(-8deg); }
  86% { transform: translate(40px, 30px) rotate(-8deg); } 100% { transform: translate(0, 0); }
}
.pa-cursor { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- journey ---------- */
.journey { display: grid; gap: clamp(40px, 6vw, 72px); }
.j-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); }
.j-head { position: sticky; top: 100px; align-self: start; }
.j-head h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.j-head .hand { font-size: 22px; color: var(--muted); display: block; margin-top: 2px; }
.tl { position: relative; list-style: none; margin: 0; padding: 0 0 0 30px; max-width: 720px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1.5px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 5px, transparent 5px 10px); }
.tl-line { position: absolute; left: 6px; top: 8px; width: 1.5px; height: 0; background: var(--ink); }
.tl li { position: relative; padding: 0 0 30px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: -29px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); transition: background .4s, transform .5s var(--ease-spring); }
.tl li.in::before { background: var(--ink); transform: scale(1.1); }
.tl .when { font-size: 13.5px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl h4 { margin: 6px 0 2px; font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; font-weight: 700; }
.tl .where { color: var(--ink-2); font-size: 15.5px; }
.tl p { margin: 6px 0 0; color: var(--muted); font-size: 15px; max-width: 60ch; }

/* ---------- skills ---------- */
.skill-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; padding: 5px; border-radius: 999px; width: fit-content; max-width: 100%; position: relative;
  background: rgba(250,248,244,.55); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 0 0 1px var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.skill-tab { position: relative; z-index: 1; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .3s; }
.skill-tab.active { color: var(--paper); }
.skill-tab .count { font-size: 11.5px; margin-left: 6px; opacity: .6; font-variant-numeric: tabular-nums; }
.skill-tab-pill { position: absolute; z-index: 0; top: 5px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: left .55s var(--ease-out), width .55s var(--ease-out), top .55s var(--ease-out); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.skill {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 1 / 1; padding: 14px 10px; border-radius: 20px; text-align: center;
  background: linear-gradient(180deg, rgba(252,251,248,.85), rgba(246,243,237,.7));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 0 0 1px var(--line), 0 1px 0 #fff inset;
  color: var(--icon);
  transition: transform .55s var(--ease-spring), box-shadow .4s, color .4s;
  transform: translateY(var(--ty, 0));
}
.skill svg { width: 34px; height: 34px; transition: transform .7s var(--ease-spring); }
.skill svg.line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skill svg.brand { fill: currentColor; width: 30px; height: 30px; }
.skill .mono-tile { width: 34px; height: 34px; border-radius: 9px; border: 1.5px solid currentColor; display: grid; place-items: center; font: 600 13px/1 var(--f-body); transition: transform .7s var(--ease-spring); }
.skill span.n { font-size: 12.5px; font-weight: 500; color: var(--ink-2); line-height: 1.2; }
.skill:hover { --ty: -5px; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 0 #fff inset, 0 16px 30px -18px rgba(22,21,19,.35); }
.skill:hover svg, .skill:hover .mono-tile { transform: rotate(-8deg) scale(1.12); }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- award ---------- */
.award { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(24px, 3.5vw, 44px); overflow: hidden; }
.award::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(500px circle at 10% 20%, rgba(241,231,196,.75), transparent 60%), radial-gradient(400px circle at 90% 90%, rgba(210,225,236,.6), transparent 60%); z-index: -1; }
.medal { width: clamp(108px, 13vw, 150px); transform-origin: 50% 0; animation: swing 5s var(--ease-in-out) infinite; }
.award:hover .medal { animation-duration: 1.6s; }
@keyframes swing { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }
.medal .shine { animation: shine 4s ease-in-out infinite; }
@keyframes shine { 0%, 60%, 100% { opacity: 0; } 75% { opacity: .9; } }
.award h3 { margin: 10px 0 8px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.award p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.award-logos { display: flex; align-items: center; gap: 16px; margin-top: 20px; color: var(--icon); }
.award-logos svg { height: 30px; width: auto; }
.award-logos .calhacks { height: 40px; }
.award-logos .x { font-size: 14px; color: var(--faint); }

/* ---------- work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.w-card { padding: 12px; text-align: left; display: flex; flex-direction: column; }
.w-cover { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.w-cover img, .w-cover video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.w-card:hover .w-cover img, .w-card:hover .w-cover video { transform: scale(1.04); }
.w-meta { padding: 16px 8px 6px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.w-meta h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.w-meta p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.empty-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 60px); align-items: center; padding: clamp(22px, 3vw, 40px); background: rgba(250,248,244,.45); }
.frames { width: 100%; max-width: 420px; }
.frames .fr { transform-box: fill-box; transform-origin: 50% 0; transition: transform .9s var(--ease-spring); }
.empty-work:hover .fr.f1 { transform: rotate(-6deg); } .empty-work:hover .fr.f2 { transform: rotate(4deg) translateY(-4px); } .empty-work:hover .fr.f3 { transform: rotate(-3deg); }
.empty-work h3 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; line-height: 1.1; font-weight: 800; }
.empty-work p { color: var(--ink-2); margin: 12px 0 0; }

/* ---------- photo teaser ---------- */
.photo-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.polaroids { position: relative; height: clamp(300px, 34vw, 420px); }
.polaroid {
  position: absolute; left: 50%; top: 50%; width: clamp(170px, 18vw, 230px); margin: 0;
  padding: 10px 10px 38px; background: #fdfcf9; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 34px -18px rgba(22,21,19,.45);
  transform: translate(-50%, -50%) rotate(var(--r)) translate(var(--x), var(--y));
  transition: transform .9s var(--ease-spring);
}
.polaroid .ph { aspect-ratio: 1; border-radius: 2px; background: linear-gradient(160deg, var(--a), var(--b)); position: relative; overflow: hidden; }
.polaroid .ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 60%); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-family: var(--f-hand); font-size: 19px; color: var(--ink-2); }
.polaroids:hover .polaroid:nth-child(1) { --x: -62%; --y: -4%; --r: -11deg; }
.polaroids:hover .polaroid:nth-child(2) { --x: 0%; --y: -10%; --r: 2deg; }
.polaroids:hover .polaroid:nth-child(3) { --x: 60%; --y: 2%; --r: 12deg; }
.photo-teaser p { color: var(--ink-2); max-width: 46ch; margin: 14px 0 24px; }

/* ---------- contact ---------- */
.contact { padding-bottom: 60px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 28px); overflow: hidden; }
.contact-lines { display: grid; gap: 2px; }
.c-line {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 8px; border-radius: 14px;
  text-align: left; width: 100%;
  transition: background .3s, padding .4s var(--ease-out);
}
.c-line + .c-line { border-top: 1px dashed var(--line-2); border-radius: 0; }
.c-line:hover { background: rgba(255,255,255,.6); padding-left: 14px; border-radius: 14px; }
.c-line .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); }
.c-line .ci svg { width: 18px; height: 18px; }
.c-line small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.c-line b { display: block; font-weight: 600; font-size: 16.5px; overflow-wrap: anywhere; }
.c-line .sub2 { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.c-line .act { font-size: 13px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: transform .4s var(--ease-spring), color .3s; }
.c-line:hover .act { color: var(--ink); transform: translateX(-3px); }
.c-static, .c-static:hover { cursor: default; background: none; padding-left: 8px; }

.la-art { margin-top: auto; padding-top: 18px; color: #8a857c; position: relative; }
.la-art svg { width: 100%; height: auto; overflow: visible; }
.la-art .s { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.la-art .s2 { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .65; }
.la-art .f { fill: currentColor; opacity: .1; }
.la-art .f2 { fill: currentColor; opacity: .18; }
.la-art .paper { fill: #f8f6f1; }
.la-art .star { fill: currentColor; animation: twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.la-art .star:nth-of-type(2n) { animation-delay: -1s; } .la-art .star:nth-of-type(3n) { animation-delay: -2s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }
.la-art .beam { stroke: currentColor; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .6s; }
.la-art.night .beam { opacity: .45; animation: sweep 6s var(--ease-in-out) infinite alternate; }
.la-art.night .beam.b2 { animation-delay: -3s; }
.la-art.night .win { fill: #e9c46a; opacity: .7; }
.la-art .win { fill: currentColor; opacity: .25; transition: fill .6s, opacity .6s; }
@keyframes sweep { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
.la-art .dome { cursor: pointer; }
.la-art .dome:hover .f2 { opacity: .3; }
.la-caption { position: absolute; left: 6px; top: 16px; font-size: 18px; color: var(--muted); transform: rotate(-3deg); }
.shooting { stroke: var(--ink-2); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 40 500; stroke-dashoffset: 40; opacity: 0; fill: none; }
.shooting.go { animation: shoot 1.4s var(--ease-out) forwards; }
@keyframes shoot { 0% { opacity: 1; stroke-dashoffset: 40; } 100% { opacity: 0; stroke-dashoffset: -460; } }

.form { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.form h3 { margin: 0 0 4px; font-size: 28px; letter-spacing: -0.02em; font-weight: 800; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 24px 16px 10px; border-radius: 16px;
  background: rgba(255,255,255,.6); border: 1px solid transparent;
  box-shadow: 0 0 0 1px var(--line), 0 1px 0 #fff inset;
  font-size: 16px; outline: none; resize: none;
  transition: box-shadow .3s, background .3s;
}
.field textarea { min-height: 160px; line-height: 1.5; }
.field label { position: absolute; left: 17px; top: 17px; font-size: 15.5px; color: var(--muted); pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus { background: rgba(255,255,255,.92); box-shadow: 0 0 0 1.5px var(--ink), 0 8px 20px -14px rgba(22,21,19,.35); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); color: var(--ink-2); }
.field .err { position: absolute; right: 14px; top: 10px; font-size: 12px; font-weight: 500; color: #b0533f; opacity: 0; transform: translateY(-4px); transition: .3s; }
.field.invalid input, .field.invalid textarea { box-shadow: 0 0 0 1.5px #c97a68; animation: shake .45s; }
.field.invalid .err { opacity: 1; transform: none; }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.field .count { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.form-foot { display: flex; justify-content: flex-end; }
.form-done { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; padding: 30px; background: rgba(250,248,244,.95); opacity: 0; pointer-events: none; transition: opacity .5s; border-radius: inherit; }
.form-done.show { opacity: 1; pointer-events: auto; }
.form-done svg { width: 120px; height: 90px; }
.form-done h4 { margin: 0; font-size: 28px; letter-spacing: -0.02em; }
.form-done p { margin: 0; color: var(--muted); max-width: 36ch; }
.plane { animation: plane 2.2s var(--ease-in-out) forwards; }
@keyframes plane { 0% { transform: translate(-40px, 30px) rotate(10deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(0, 0) rotate(0); opacity: 1; } }

/* ---------- footer ---------- */
.footer { padding: 30px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; font-size: 14px; color: var(--muted); }
.footer .hand { font-size: 22px; }
.eggs { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.eggs i { width: 11px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; border: 1.3px solid var(--faint); transition: background .4s, border-color .4s, transform .6s var(--ease-spring); }
.eggs i.found { background: var(--butter); border-color: var(--ink-2); transform: rotate(-12deg) scale(1.15); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; pointer-events: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30,28,25,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.modal-panel {
  position: relative; width: min(1020px, 100% - 24px); height: min(92svh, 100% - 24px); margin-bottom: 12px;
  background: var(--paper); border-radius: 28px 28px 22px 22px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, 0 40px 80px -30px rgba(0,0,0,.45);
  transform: translateY(105%); transition: transform .8s var(--ease-out);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at 0% 0%, var(--tone, var(--sage)), transparent 60%); opacity: .55; }
.modal.open { pointer-events: auto; }
.modal.open .modal-backdrop { opacity: 1; }
.modal.open .modal-panel { transform: none; }
.modal-bar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 24px; }
.modal-bar .grab { position: absolute; left: 50%; top: 7px; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(22,21,19,.15); }
.modal-scroll { position: relative; z-index: 1; overflow-y: auto; padding: 4px clamp(20px, 5vw, 64px) 60px; flex: 1; overscroll-behavior: contain; }
.m-title { font-size: clamp(44px, 8vw, 92px); line-height: .92; letter-spacing: -0.04em; font-weight: 800; margin: 10px 0 22px; }
.m-art { height: clamp(240px, 38vw, 400px); border-radius: 22px; margin-bottom: 34px; }
.m-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.m-grid p { margin: 0 0 16px; color: var(--ink-2); font-size: 17px; }
.m-side h5 { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.m-side ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; }
.m-side li { font-size: 15px; color: var(--ink-2); padding-left: 16px; position: relative; }
.m-side li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; border: 1.3px solid var(--muted); }
.m-side .pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.m-side .pills span { font-size: 13px; padding: 6px 11px; border-radius: 10px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px var(--line); }
.m-section { margin: 34px 0; }
.m-section h3 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; }
.m-section figure { margin: 0; }
.m-section img, .m-section video { width: 100%; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.m-section figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.m-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.m-next { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px dashed var(--line-2); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(244,241,234,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .4s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1400px, 100%); max-height: 86vh; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px -30px rgba(0,0,0,.4); transform: scale(.94); transition: transform .6s var(--ease-out); }
.lightbox.open img { transform: none; }
.lightbox > .icon-btn { position: absolute; top: 18px; right: 18px; }
.lightbox .lb-cap { position: absolute; left: 24px; right: 24px; bottom: 18px; text-align: center; font-size: 14px; color: var(--muted); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 400; transform: translate(-50%, calc(100% + 60px)); display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14.5px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); transition: transform .6s var(--ease-spring); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast .em { font-size: 18px; }

/* easter egg layers */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 350; }
/* legacy */ .critter { position: fixed; bottom: 14px; left: -120px; z-index: 60; width: 90px; pointer-events: auto; color: var(--ink-2); }
.critter.walk { animation: walk 14s linear forwards; }
.critter .leg { transform-box: fill-box; transform-origin: 50% 0; animation: leg .35s ease-in-out infinite alternate; }
.critter .leg.l2 { animation-direction: alternate-reverse; }
@keyframes walk { to { transform: translateX(calc(100vw + 240px)); } }
@keyframes leg { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
.wave-hand { position: fixed; z-index: 360; font-size: 64px; pointer-events: none; animation: wavein 2.2s var(--ease-spring) forwards; }
@keyframes wavein { 0% { transform: translateY(40px) scale(.4); opacity: 0; } 15% { opacity: 1; transform: none; } 25% { transform: rotate(18deg); } 35% { transform: rotate(-10deg); } 45% { transform: rotate(16deg); } 55% { transform: rotate(-6deg); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }

/* ---------- photos page ---------- */
.ph-hero { padding-top: clamp(130px, 18vh, 180px); padding-bottom: 30px; }
.ph-hero h1 { margin: 20px 0 0; font-size: clamp(56px, 10vw, 136px); line-height: .9; letter-spacing: -0.045em; font-weight: 800; }
.ph-hero p { color: var(--ink-2); max-width: 52ch; margin: 20px 0 0; }
.ph-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.masonry { columns: 3 300px; column-gap: 18px; padding-bottom: 80px; }
.photo { break-inside: avoid; margin: 0 0 18px; position: relative; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); transition: transform .7s var(--ease-out), box-shadow .5s, opacity .9s var(--ease-out); }
.photo:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lift); }
.photo .img { position: relative; overflow: hidden; display: block; width: 100%; }
.photo img { width: 100%; height: auto; transition: transform 1.3s var(--ease-out); }
.photo:hover img, .photo:hover .ph-fake { transform: scale(1.04); }
.ph-fake { width: 100%; background: linear-gradient(160deg, var(--a), var(--b)); display: grid; place-items: center; transition: transform 1.3s var(--ease-out); position: relative; }
.ph-fake::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 25%, rgba(255,255,255,.5), transparent 55%); }
.ph-fake svg { width: 46px; height: 46px; color: rgba(22,21,19,.35); position: relative; }
.photo-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px; }
.photo-info h3 { margin: 0; font: 600 15.5px/1.3 var(--f-body); }
.photo-info p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.like { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: transform .45s var(--ease-spring), background .3s, color .3s; flex: none; }
.like:hover { transform: scale(1.06); }
.like svg { width: 17px; height: 17px; overflow: visible; }
.like .heart { fill: transparent; stroke: currentColor; stroke-width: 1.7; transition: fill .3s, stroke .3s; transform-box: fill-box; transform-origin: center; }
.like.liked { background: var(--ink); color: var(--paper); box-shadow: none; }
.like.liked .heart { fill: #e98b7c; stroke: #e98b7c; animation: heart .7s var(--ease-spring); }
@keyframes heart { 0% { transform: scale(.2); } 50% { transform: scale(1.35); } 100% { transform: scale(1); } }
.like .num { display: inline-block; min-width: 1ch; }
.like .num.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 0% { transform: translateY(8px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.burst { position: absolute; left: 19px; top: 18px; pointer-events: none; }
.burst i { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: var(--c); animation: burst .7s var(--ease-out) forwards; }
@keyframes burst { 0% { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-26px) scale(0); opacity: 0; } }
.dbl-heart { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px; pointer-events: none; color: #fff; filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); animation: dbl 1s var(--ease-spring) forwards; }
@keyframes dbl { 0% { transform: scale(0); opacity: 0; } 30% { transform: scale(1.15); opacity: 1; } 60% { transform: scale(.95); } 100% { transform: scale(1) translateY(-30px); opacity: 0; } }
.ph-lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; }
.ph-lightbox .ph-fake { width: min(80vw, 760px); border-radius: 14px; }
.ph-lightbox figcaption { display: flex; align-items: center; gap: 14px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-time { display: none; }
}
@media (max-width: 900px) {
  .nav { left: var(--gutter); right: var(--gutter); transform: none; justify-content: space-between; }
  .nav.hide { transform: translateY(-140%); }
  .nav-links, .nav-cta { display: none; }
  .nav-time { display: flex; margin-left: auto; }
  .nav-menu { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .doodle-wrap { max-width: 460px; width: 100%; margin: 0 auto; }
  .doodle { aspect-ratio: 1.1 / 1; }
  .research-grid { grid-template-columns: 1fr; }
  .r-card, .r-card:nth-child(n) { grid-column: auto; }
  .pub, .pub:nth-child(even) { grid-template-columns: 1fr; }
  .pub:nth-child(even) .pub-fig { order: 0; }
  .pub-fig { position: relative; top: 0; }
  .contact-grid, .photo-teaser, .empty-work { grid-template-columns: 1fr; }
  .j-group { grid-template-columns: 1fr; gap: 18px; }
  .j-head { position: static; }
  .award { grid-template-columns: auto 1fr; }
  .award .award-cta { grid-column: 1 / -1; justify-self: start; }
  .m-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .annot-hi { font-size: 19px; margin-left: 8px; }
  .usc { font-size: .98em; }
  .annot-hi svg { width: 40px; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .skill { border-radius: 16px; gap: 8px; padding: 10px 6px; }
  .skill svg { width: 28px; height: 28px; } .skill svg.brand { width: 24px; height: 24px; } .skill .mono-tile { width: 28px; height: 28px; font-size: 11px; }
  .skill span.n { font-size: 11px; }
  .skill-tabs { border-radius: 22px; }
  .award { grid-template-columns: 1fr; }
  .medal { width: 96px; }
  .writing { grid-template-columns: 1fr; }
  .c-line { grid-template-columns: 38px minmax(0, 1fr); }
  .c-line .act { display: none; }
  .r-art { height: 210px; }
  .btn { --h: 48px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .lb-nav { top: auto; bottom: 70px; transform: none; }
  .lb-nav:hover { transform: scale(1.06); }
  .la-caption { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
  .grain { animation: none; }
}

/* ==========================================================================
   Miso, the cursor fox
   ========================================================================== */
.pet { position: fixed; left: 0; top: 0; z-index: 990; width: 72px; height: 64px; pointer-events: none; transition: opacity .4s, visibility .4s; will-change: transform; }
.pet.away, .pet.gone { opacity: 0; }
.pet.gone { visibility: hidden; }
.pet-body { width: 72px; height: 64px; transform-origin: 50% 90%; }
.pet-svg { width: 100%; height: 100%; overflow: visible; transition: transform .6s var(--ease-spring); }
.pet-tail { transform-box: view-box; transform-origin: 26px 48px; animation: wag 1.4s ease-in-out infinite; }
.pet.talking .pet-tail, .pet.run .pet-tail { animation-duration: .45s; }
@keyframes wag { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(8deg); } }
.pet-head { transform-box: view-box; transform-origin: 43px 36px; transition: transform .5s var(--ease-spring); }
.pet.talking .pet-head { animation: nod 1.6s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } }
.pet-ear { transform-box: fill-box; transform-origin: 50% 100%; animation: twitch 5s ease-in-out infinite; }
.pet-ear.r { animation-delay: -2.4s; }
@keyframes twitch { 0%, 90%, 100% { transform: rotate(0); } 94% { transform: rotate(-12deg); } }
.pet-eyes { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .08s; }
.pet.blink .pet-eyes, .pet.sleep .pet-eyes { transform: scaleY(.12); }
.pet-happy { opacity: 0; transition: opacity .2s; }
.pet.listen .pet-eyes, .pet.carry .pet-eyes { opacity: 0; }
.pet.listen .pet-happy, .pet.carry .pet-happy { opacity: 1; }
.pet-letter { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease-spring); }
.pet.carry .pet-letter { opacity: 1; transform: none; }
.pet.sleep .pet-head { transform: rotate(10deg) translateY(2px); }
.pet-zz { position: absolute; left: 50px; top: -8px; font: 600 15px/1 var(--f-hand); color: var(--ink-2); opacity: 0; }
.pet-zz span { font-size: 11px; margin-left: 2px; }
.pet.sleep .pet-zz { opacity: 1; animation: zz 2.4s ease-in-out infinite; }
@keyframes zz { 0% { transform: translate(0, 4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(8px, -10px); opacity: 0; } }
.pet.dash .pet-svg { transform: translateX(-260px) !important; transition: transform 1.1s cubic-bezier(.5,0,.75,0); }
.pet.dash { opacity: 0; transition: opacity .4s .7s; }

/* the name tag that grows into a chat bubble, like a teammate's cursor */
.pet-chat {
  position: absolute; left: 62px; top: 40px;
  display: flex; flex-direction: column; gap: 2px;
  width: max-content; max-width: 240px;
  padding: 3px 9px; border-radius: 4px 12px 12px 12px;
  background: #d9764a; color: #fff;
  box-shadow: 0 8px 20px -10px rgba(22,21,19,.45);
  transform-origin: 0 0;
  transition: padding .35s var(--ease-out), border-radius .35s;
}
.pet-name { font: 600 11.5px/1.3 var(--f-body); letter-spacing: .01em; }
.pet-text { font: 500 13.5px/1.35 var(--f-body); display: none; }
.pet.talking .pet-chat { padding: 7px 12px 9px; background: #2c2a26; animation: bubble .4s var(--ease-spring); }
.pet.talking .pet-name { color: #f0b48f; }
.pet.talking .pet-text { display: block; }
@keyframes bubble { from { transform: scale(.85); } to { transform: none; } }
.pet.left .pet-chat { left: auto; right: 62px; border-radius: 12px 4px 12px 12px; transform-origin: 100% 0; }
.pet.perched .pet-svg { transform: scale(1.18); }
.pet.corner .pet-chat, .pet.perched .pet-chat { left: auto; right: 10px; top: auto; bottom: 66px; border-radius: 12px 12px 4px 12px; transform-origin: 100% 100%; }

/* the contact form becomes Miso's desk */
.pet-home { position: absolute; right: 18px; top: 14px; width: 72px; height: 64px; pointer-events: none; }
.form .f-pet { display: none; }
.form.pet-here { box-shadow: 0 0 0 1.5px rgba(217,118,74,.55), 0 30px 60px -30px rgba(217,118,74,.45); }
.form.pet-here .f-default { display: none; }
.form.pet-here .f-pet { display: inline; }
.form .form-sub { margin: -8px 0 4px; color: var(--muted); font-size: 15px; min-height: 1.4em; }
@media (hover: none) { .pet-chat { max-width: 200px; } }

/* ==========================================================================
   origami crane easter egg
   ========================================================================== */
.crane { position: fixed; left: 0; top: 0; z-index: 970; width: 70px; height: 54px; pointer-events: auto; color: var(--ink-2); }
.crane svg { width: 100%; height: 100%; overflow: visible; }
.crane .w1, .crane .w2 { transform-box: view-box; transform-origin: 36px 30px; animation: flapc .5s ease-in-out infinite alternate; }
.crane .w2 { animation-name: flapc2; }
@keyframes flapc { from { transform: scaleY(1); } to { transform: scaleY(-.55); } }
@keyframes flapc2 { from { transform: scaleY(1); } to { transform: scaleY(-.4); } }
.crane.caught { pointer-events: none; transition: transform .7s var(--ease-spring), opacity .6s .2s; opacity: 0; }

/* ==========================================================================
   research: flat earth art, reserved spot
   ========================================================================== */
.ripple { transform-box: fill-box; transform-origin: center; animation: ripple 3.6s var(--ease-out) infinite; }
.ripple.r2 { animation-delay: 1.2s; } .ripple.r3 { animation-delay: 2.4s; }
@keyframes ripple { 0% { transform: scale(.2); opacity: .8; } 100% { transform: scale(3); opacity: 0; } }
.eb { transform-box: fill-box; transform-origin: 50% 100%; animation: eb 3s ease-in-out infinite; }
.eb:nth-child(2) { animation-delay: -.6s; } .eb:nth-child(3) { animation-delay: -1.2s; } .eb:nth-child(4) { animation-delay: -1.8s; } .eb:nth-child(5) { animation-delay: -2.4s; }
@keyframes eb { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.wing { transform-box: fill-box; transform-origin: right center; animation: flap .45s ease-in-out infinite alternate; }
.wing.rw { transform-origin: left center; }
@keyframes flap { to { transform: scaleX(.3); } }
.fly { animation: fly 8s ease-in-out infinite; }
@keyframes fly { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(8px, -8px); } 50% { transform: translate(16px, 2px); } 75% { transform: translate(6px, 6px); } }

.reserved {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(22px, 3vw, 36px); text-align: left;
  background: rgba(250,248,244,.35); border: 1.5px dashed var(--line-2); box-shadow: none;
}
.reserved:hover { background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); }
.reserved h3 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.reserved p { margin: 8px 0 0; color: var(--ink-2); max-width: 56ch; }
.reserved .slot { width: 120px; height: 96px; }
.reserved .slot .plus { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease-spring); }
.reserved:hover .slot .plus { transform: rotate(90deg) scale(1.1); }
.reserved .slot .note { transform-box: fill-box; transform-origin: 50% 0; animation: noteSway 4s ease-in-out infinite; }
@keyframes noteSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } }
.page-anim { overflow: visible; }
@media (max-width: 900px) { .reserved { grid-template-columns: 1fr; } .reserved .slot { width: 96px; height: 78px; } }
.la-art .shooting { stroke-dasharray: 90 1400; stroke-dashoffset: 90; }
.la-art .shooting.go { animation: shoot2 1.4s var(--ease-out) forwards; }
@keyframes shoot2 { 0% { opacity: 1; stroke-dashoffset: 90; } 100% { opacity: 0; stroke-dashoffset: -720; } }
.la-art .beam { transform-origin: 50% 100%; }

/* Miso's house in the hero */
.pet-house { display: flex; align-items: flex-end; gap: 4px; margin: 34px 0 0 10px; padding: 0; position: relative; }
.pet-house svg { width: 104px; height: 87px; transition: transform .6s var(--ease-spring); transform-origin: 50% 100%; }
.pet-house:hover svg { transform: scale(1.05) rotate(-2deg); }
.pet-spot { width: 76px; height: 64px; }
.house-flag { transform-box: fill-box; transform-origin: 0% 50%; animation: flagw 2.4s ease-in-out infinite; }
@keyframes flagw { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-8deg) scaleX(.9); } }
.pet.home .pet-chat { left: 66px; top: 0; border-radius: 12px 12px 12px 4px; }
@media (max-width: 900px) { .pet-house { margin-top: 26px; } }

/* hint at the empty house while Miso is out */
.house-hint { position: absolute; left: 108px; bottom: 6px; display: flex; align-items: flex-end; gap: 6px; width: 230px; text-align: left; color: var(--muted); font: 600 18px/1.1 var(--f-hand); opacity: 0; transform: translateY(6px); transition: opacity .5s .4s, transform .6s .4s var(--ease-out); pointer-events: none; }
.house-hint svg { width: 34px; height: 22px; flex: none; margin-bottom: 14px; }
.pet-house.empty .house-hint { opacity: 1; transform: none; }
.pet-house.empty svg .house-sign { opacity: .55; }
.pet-house.empty:hover .house-hint { color: var(--ink-2); }

/* reading a project: Miso sits quietly in a corner */
.pet.hush { opacity: 0; }
.pet.lcorner .pet-chat { right: auto; left: 10px; border-radius: 12px 12px 12px 4px; transform-origin: 0 100%; }
.pet.corner.reading .pet-svg { transform: scale(.78) translate(10px, 12px); }

/* ---------- publication illustrations ---------- */
.pub-fig { padding: 0; background: none; box-shadow: none; border-radius: 20px; }
.pub-art { height: auto; width: 100%; aspect-ratio: 376 / 236; }
.pub-note { margin: -4px 0 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.pub-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--faint); transform: translateY(1px); }
.wv { transform-box: fill-box; transform-origin: 50% 50%; animation: wv 1.6s ease-in-out infinite; }
@keyframes wv { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.chi-prog { stroke-dasharray: 120; animation: chiProg 8s linear infinite; }
@keyframes chiProg { 0% { stroke-dashoffset: 120; opacity: 0; } 4% { opacity: 1; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.chi-head { animation: chiHead 8s linear infinite; }
@keyframes chiHead { 0% { transform: translateX(0); opacity: 0; } 4% { opacity: 1; } 92% { transform: translateX(94px); opacity: 1; } 100% { transform: translateX(94px); opacity: 0; } }
.chi-line { animation: chiLine 8s var(--ease-in-out) infinite; }
@keyframes chiLine { 0% { transform: translateY(0); opacity: 0; } 4%, 21% { transform: translateY(0); opacity: 1; } 25%, 46% { transform: translateY(24px); } 50%, 71% { transform: translateY(48px); } 75%, 92% { transform: translateY(72px); opacity: 1; } 100% { transform: translateY(72px); opacity: 0; } }
.iui-step { opacity: 0; animation: iuiStep 7s ease-in-out infinite; }
@keyframes iuiStep { 0%, 6% { opacity: 0; } 10%, 82% { opacity: 1; } 90%, 100% { opacity: 0; } }
.iui-range { animation: iuiRange 3s ease-in-out infinite; }
@keyframes iuiRange { 0%, 100% { fill-opacity: .55; } 50% { fill-opacity: 1; } }
.iui-branch { stroke-dasharray: 80; stroke-dashoffset: 80; animation: iuiBranch 7s var(--ease-in-out) infinite; }
@keyframes iuiBranch { 0%, 30% { stroke-dashoffset: 80; opacity: 1; } 50%, 86% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.iui-bnodes { opacity: 0; animation: iuiNodes 7s ease-in-out infinite; }
@keyframes iuiNodes { 0%, 46% { opacity: 0; } 54%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
.pet.home.left .pet-chat { left: auto; right: 66px; border-radius: 12px 12px 4px 12px; transform-origin: 100% 0; }

/* ---------- selected work: covers, screens, full view ---------- */
.w-cover .work-art { position: absolute; inset: 0; height: 100%; border-radius: 0; }
.w-card { height: 100%; }
.w-meta { align-items: flex-start; }
.w-meta .label { white-space: nowrap; flex: none; }
.screen-art { height: auto; aspect-ratio: 16 / 10; border-radius: 18px; }
.screen-art svg { padding: clamp(10px, 2.5%, 20px); }
.m-h { margin: 26px 0 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.m-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.m-features li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; }
.m-features li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; border-radius: 2px; background: var(--ink); transform: rotate(-8deg); }
.m-section figure { margin: 0; }
.m-section figcaption { margin-top: 12px; }
.wk-bob { animation: bob 3.2s ease-in-out infinite; }
.wk-flow { animation: flow9 1.2s linear infinite; }
.wk-walk { animation: wkWalk 1.1s ease-in-out infinite; }
@keyframes wkWalk { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.wk-typed { transform-box: fill-box; transform-origin: 0 50%; animation: wkTyped 4s ease-in-out infinite; }
@keyframes wkTyped { 0%, 8% { transform: scaleX(.05); opacity: 1; } 60%, 84% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
.wk-key { animation: wkKey 1s ease-in-out infinite; }
@keyframes wkKey { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(2px); } }
.wk-float { animation: wkFloat 3.6s ease-out infinite; }
@keyframes wkFloat { 0% { transform: translateY(14px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateY(-10px); opacity: 1; } 100% { transform: translateY(-18px); opacity: 0; } }
.wk-pull { animation: wkPull 4s var(--ease-in-out) infinite; }
@keyframes wkPull { 0%, 20%, 100% { transform: translateY(0); } 40%, 80% { transform: translateY(-9px); } }
.wk-grow { transform-box: fill-box; transform-origin: 0 50%; animation: wkGrow 5s var(--ease-out) infinite; }
@keyframes wkGrow { 0%, 6% { transform: scaleX(0); opacity: 1; } 40%, 88% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.wk-scan { animation: wkScan 2.8s ease-in-out infinite alternate; }
@keyframes wkScan { from { transform: translateY(0); } to { transform: translateY(92px); } }
.wk-closed { opacity: 0; animation: wkClosed 6s ease-in-out infinite; }
@keyframes wkClosed { 0%, 40% { opacity: 0; } 46%, 70% { opacity: 1; } 76%, 100% { opacity: 0; } }
.wk-check { opacity: 0; transform-box: fill-box; transform-origin: center; animation: wkCheck 6s var(--ease-spring) infinite; }
@keyframes wkCheck { 0%, 72% { opacity: 0; transform: scale(.4); } 78%, 94% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.wk-dots { animation: wkDots 5s ease-in-out infinite; }
@keyframes wkDots { 0%, 6% { opacity: 0; } 12%, 36% { opacity: 1; } 42%, 100% { opacity: 0; } }
.wk-reply { animation: wkReply 5s ease-in-out infinite; }
@keyframes wkReply { 0%, 40% { opacity: 0; } 46%, 92% { opacity: 1; } 100% { opacity: 0; } }
.wk-xp { transform-box: fill-box; transform-origin: 0 50%; animation: wkGrow 5s var(--ease-out) infinite; }
.wk-cell { opacity: 0; animation: wkCell 9s ease-in-out infinite; }
@keyframes wkCell { 0% { opacity: 0; } 3%, 9% { opacity: 1; } 13%, 100% { opacity: 0; } }
.wk-draft { stroke-dashoffset: 0; animation: wkDraft 6s ease-in-out infinite; }
@keyframes wkDraft { 0%, 10% { opacity: 0; } 22%, 86% { opacity: 1; } 96%, 100% { opacity: 0; } }
.wk-pop { animation: wkPop 6s var(--ease-out) infinite; }
@keyframes wkPop { 0%, 30% { opacity: 0; transform: translateY(6px); } 38%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.wk-pencil { animation: wkPencil 6s ease-in-out infinite; }
@keyframes wkPencil { 0%, 100% { transform: translate(0, 0); } 15% { transform: translate(-60px, 2px); } 25% { transform: translate(-60px, 30px); } 35%, 85% { transform: translate(0, 30px); } }
.w-meta { flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 8px 8px; }
.w-meta .label { white-space: normal; }

/* real screenshots in the project full view */
.m-section .shot img { width: 100%; height: auto; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -26px rgba(22,21,19,.45); transition: transform .6s var(--ease-out); }
.m-section .shot img:hover { transform: translateY(-2px); }
.m-section .shot.tall { max-width: 560px; margin-inline: auto; }
.m-phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 2vw, 22px); padding: clamp(14px, 2.4vw, 26px); border-radius: 20px; background: var(--tone, var(--butter)); }
.m-phones img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 5px #1c1b19, 0 18px 34px -18px rgba(22,21,19,.5); background: #fff; }
@media (max-width: 700px) { .m-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- skills: four areas, ranked into two tiers ---------- */
.skills-grid { display: block; }
.skills-blurb { margin: 0 0 22px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.skills-tier { display: grid; gap: 12px; margin-bottom: 26px; }
.tier-label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.skills-core { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 12px; }
.skills-also { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border-radius: 12px; background: rgba(252,251,248,.7); box-shadow: 0 0 0 1px var(--line), 0 1px 0 #fff inset; color: var(--icon); font-size: 13.5px; font-weight: 500; transition: transform .45s var(--ease-spring), color .3s, box-shadow .3s; }
.skill-chip { color: var(--ink-2); }
.skill-chip svg { width: 18px; height: 18px; flex: none; color: var(--icon); transition: transform .6s var(--ease-spring), color .3s; }
.skill-chip svg.line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skill-chip svg.brand { fill: currentColor; width: 16px; height: 16px; }
.skill-chip .mono-tile { width: 20px; height: 20px; border-radius: 6px; border: 1.3px solid var(--icon); color: var(--icon); display: grid; place-items: center; font: 600 9px/1 var(--f-body); flex: none; }
.skill-chip:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 10px 20px -14px rgba(22,21,19,.35); }
.skill-chip:hover svg { color: var(--ink); transform: rotate(-8deg) scale(1.1); }
@media (max-width: 560px) { .skills-core { grid-template-columns: repeat(3, 1fr); gap: 8px; } .skill-chip { height: 34px; font-size: 12.5px; } }
.skills-core { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.skills-core .skill { aspect-ratio: 1 / .94; gap: 10px; padding: 12px 8px; }
.skills-core .skill svg { width: 30px; height: 30px; } .skills-core .skill svg.brand { width: 26px; height: 26px; }
@media (max-width: 560px) { .skills-core { grid-template-columns: repeat(3, 1fr); } .skills-core .skill { aspect-ratio: 1 / .82; } }

/* ---------- awards: AI@USC win + Cal Hacks ---------- */
.awards { display: grid; gap: 22px; }
.award-first::before { background: radial-gradient(520px circle at 8% 20%, rgba(241,231,196,.85), transparent 60%), radial-gradient(420px circle at 92% 90%, rgba(228,165,154,.35), transparent 60%); }
.award-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.prize { text-align: right; }
.prize span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.prize b { display: block; font: 800 clamp(34px, 4vw, 48px)/1 var(--f-display); letter-spacing: -0.03em; }
.aiusc-logo { display: inline-block; width: 92px; height: 33px; background: currentColor; -webkit-mask: url(../img/aiusc-mono.png) center/contain no-repeat; mask: url(../img/aiusc-mono.png) center/contain no-repeat; }
.hacksc-logo { display: inline-flex; align-items: center; gap: 6px; }
.hacksc-logo .hacksc-mark { width: 30px; height: 25px; color: var(--icon); }
.hacksc-logo b { font: 700 17px/1 var(--f-body); letter-spacing: -0.01em; color: var(--icon); }
.award-logos .x { font-size: 12.5px; }
@media (max-width: 900px) { .award-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; } .prize { text-align: left; } }
.skills-core { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 9px; }
.skills-core .skill { aspect-ratio: 1 / .9; gap: 9px; border-radius: 18px; }
.skills-core .skill svg { width: 27px; height: 27px; } .skills-core .skill svg.brand { width: 24px; height: 24px; }
.skills-core .skill .mono-tile { width: 27px; height: 27px; font-size: 11px; }
.skills-core .skill span.n { font-size: 12px; }
@media (max-width: 560px) { .skills-core { grid-template-columns: repeat(4, 1fr); gap: 7px; } .skills-core .skill { aspect-ratio: 1 / 1; padding: 8px 4px; gap: 6px; border-radius: 14px; } .skills-core .skill span.n { font-size: 10.5px; } .skills-core .skill svg { width: 22px; height: 22px; } .skills-core .skill svg.brand { width: 20px; height: 20px; } }
.award-hm::before { background: radial-gradient(520px circle at 8% 20%, rgba(221,215,238,.7), transparent 60%), radial-gradient(420px circle at 92% 90%, rgba(210,225,236,.55), transparent 60%); }
.rosette g { transform-box: view-box; }
