/* ============================================================================
   COLOURS: change the whole site from here.
   Base theme first (dark), then the Paper theme overrides.
   Each role/project has one pastel; it tints its machine, card, sticker,
   build-log year and the trace. Keep them light: they sit on a dark page.
   ============================================================================ */
:root {
  --bg: #121318;        /* page */
  --bg2: #181a20;       /* panels, sticker wall */
  --ink: #eeece6;       /* text + drawing lines */
  --muted: #9b9da7;     /* secondary text, leader lines (AA on --bg at 12px+) */
  --line: #272932;      /* borders */
  --grid: rgba(238,236,230,.04);
  --acc: #b4bf78;       /* olive: links, crosshair, logo pin-1 vias */
  --name: #b4bf78;      /* "ARORA" in the hero */

  --opalin: #c4b5fd;    /* lilac */
  --cargo: #fdba9a;     /* peach */
  --m3: #a7e8cf;        /* mint */
  --clearflame: #fde68a;/* butter */
  --thordrive: #a5cffb; /* sky */
  --devils: #f9b4cb;    /* pink */
  --ostrich: #c9e4a5;   /* sage */
  --ostrich2: #f2a08d;  /* terracotta: the ostrich's complementary accent */
  --sdr: #ffc98a;       /* amber: Sun Devil Robotics */
  --intro: #c4b5fd;     /* the PCB at the top */
  --asu: #ffd9a8;  --hack: #fde68a;  --pcb: #e4e1f7;  --ismr: #dff5ec;  --sticker-ink: #1b1c22;
}
:root[data-theme="paper"] {
  --bg: #f4f1ea; --bg2: #ebe7de; --ink: #1b1c22; --muted: #5e5b55; --line: #d9d4c8; --grid: rgba(27,28,34,.05);
  --acc: #6b7a2e; --name: #6b7a2e;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: Archivo, system-ui, sans-serif; overflow-x: hidden; transition: background .4s, color .4s;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
/* one visible focus ring for every link and button, keyboard only */
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
.stk:focus-visible { outline-offset: 6px; border-radius: 12px; }
/* one grid for the whole page, pinned to the viewport so nothing drifts against it */
.grid-bg { background-attachment: fixed; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
a { color: inherit; }
.a-f { fill: var(--acc); } .i-f { fill: currentColor; }   /* logo vias */
.m-bg { fill: var(--acc); } .m-i { fill: #121318; } .m-a { fill: #3a4215; }   /* the mark: favicon-style tile */
::selection { background: var(--acc); color: #1b1c22; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---------- nav ---------- */
nav { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; transition: background .3s, padding .3s, border-color .3s; border-bottom: 1px solid transparent; }
nav.solid { background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 10px; border-color: var(--line); }
nav .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 500 12px "JetBrains Mono"; letter-spacing: .14em; text-transform: uppercase; }
nav .brand svg { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 40%, transparent), 0 4px 18px -4px color-mix(in srgb, var(--acc) 55%, transparent); transition: transform .3s; }
nav .brand:hover svg { transform: rotate(-6deg) scale(1.06); }
/* the name shows once per screen: the hero has the big name, so the nav's copy waits until you leave it */
nav .brand span { transition: opacity .35s, transform .35s; }
nav:not(.solid) .brand span { opacity: 0; transform: translateX(-6px); }
nav .links { display: flex; gap: 6px; align-items: center; }
nav .links a, nav button { font: 500 12px "JetBrains Mono"; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(8px); cursor: pointer; transition: border-color .2s, color .2s; }
nav .links a:hover, nav button:hover { border-color: var(--acc); color: var(--acc); }
nav button { display: inline-flex; align-items: center; gap: 8px; }
nav button i { width: 12px; height: 12px; border-radius: 50%; display: block; background: conic-gradient(var(--opalin), var(--cargo), var(--m3), var(--clearflame), var(--thordrive), var(--devils), var(--opalin)); }

/* ---------- crosshair (desktop) ---------- */
.xh { position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: 0; transition: opacity .3s; }
.xh.on { opacity: 1; }
.xh .h, .xh .v { position: absolute; background: var(--acc); opacity: .22; }
.xh .h { left: 0; right: 0; height: 1px; } .xh .v { top: 0; bottom: 0; width: 1px; }
.xh .rd { position: absolute; font: 500 10px "JetBrains Mono"; color: var(--acc); letter-spacing: .08em; padding: 6px 0 0 8px; white-space: nowrap; }

/* ---------- hero: scroll story ---------- */
.hero-track { height: 860vh; position: relative; }
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; --explode: 0;
  --nf: clamp(64px, min(12.5vw, 20vh), 210px); }   /* name size: capped by height too, so short screens keep room for the board */
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 66% 48%, transparent 35%, var(--bg) 88%); }
/* the machines: one WebGL canvas over the whole hero (assets/hero3d.js). #stage is only the box they are
   framed into, right of the cards; the dev board sits above the name. Callouts are HTML over the canvas. */
#stage { position: absolute; left: calc(28px + min(400px, 34vw) + 3vw); right: 3vw; top: 84px; bottom: 60px; z-index: 1; pointer-events: none; }
#gl, #leads, #tags { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#gl { z-index: 1; opacity: 0; transition: opacity .8s; } .gl-ready #gl { opacity: 1; }
#leads { z-index: 1; overflow: visible; }
#leads .ld { fill: none; stroke: var(--muted); stroke-width: .8; }
#leads .ldot { fill: var(--c); }
#tags { z-index: 2; }
#tags .callout { position: absolute; left: 0; top: 0; font: 500 11px "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); white-space: nowrap; opacity: 0; will-change: transform; }
#tags .callout.hi { color: var(--c); }
:root[data-theme="paper"] #tags .callout.hi { color: color-mix(in srgb, var(--c) 45%, var(--ink)); }   /* pastels vanish on paper */
.fig { position: absolute; right: 0; bottom: -34px; font: 500 11px "JetBrains Mono"; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.fig::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 8px; }

.meta { position: absolute; top: 88px; left: 28px; z-index: 2; font: 500 11px/1.9 "JetBrains Mono"; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--explode)); }
.meta b { color: var(--acc); font-weight: 500; }
/* once the story starts, the name lifts to the top-left, shrinks and blurs out of the way */
.name { position: absolute; left: 24px; bottom: 30px; z-index: 2; transform-origin: left top; will-change: transform;
  transform: translateY(calc(var(--explode) * (100px + 100% - 100vh))) scale(calc(1 - var(--explode) * .64));
  filter: blur(calc(var(--explode) * 2.5px)); opacity: calc(1 - var(--explode) * .45); }
.name h1 { font-weight: 900; font-stretch: 125%; font-style: italic; font-size: var(--nf); line-height: .8; letter-spacing: -.045em; text-transform: uppercase; }
.name h1 span { display: block; }
.name h1 .a { color: var(--name); }
.name .dimline { opacity: calc(1 - var(--explode) * 3); position: relative; height: 22px; margin: 0 0 14px 4px; width: 0; animation: grow 1.2s cubic-bezier(.7,0,.2,1) .5s forwards; }
.name .dimline i { position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--ink); opacity: .5; }
.name .dimline::before, .name .dimline::after { content: ""; position: absolute; top: 3px; width: 1px; height: 15px; background: var(--ink); opacity: .5; }
.name .dimline::before { left: 0; } .name .dimline::after { right: 0; }
.name .dimline span { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); background: var(--bg); padding: 0 10px; font: 500 11px "JetBrains Mono"; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; opacity: 0; animation: fade .4s ease 1.5s forwards; }
@keyframes grow { to { width: min(62vw, 980px); } }
@keyframes fade { to { opacity: 1; } }
.tag { position: absolute; right: 28px; bottom: 36px; z-index: 2; max-width: 320px; text-align: right; font: 400 12px/1.8 "JetBrains Mono"; color: var(--muted); letter-spacing: .06em; opacity: calc(1 - var(--explode) * 1.5); }
.tag b { color: var(--ink); font-weight: 500; }

/* experience cards that play over the exploded machine */
/* centred, but never under the shrunken name (it ends up at 70px + 36% of its height) */
.cards { position: absolute; left: 28px; top: max(50%, calc(70px + .36 * (1.6 * var(--nf) + 36px) + 190px)); transform: translateY(-50%); width: min(400px, 34vw); height: 340px; z-index: 3; container-type: inline-size; }
.card { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.card.on { opacity: 1; transform: none; pointer-events: auto; }
.card .cn { font: 500 11px "JetBrains Mono"; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card .cn span { display: inline-block; background: var(--c); color: #1b1c22; border-radius: 999px; padding: 3px 9px; margin-right: 4px; }
.card h3 { font-weight: 900; font-stretch: 125%; font-style: italic; font-size: min(72px, 10.2cqi); line-height: .88; letter-spacing: -.03em; text-transform: uppercase; margin: 18px 0 14px; color: var(--c); }
.card h3.long { font-size: min(56px, 8.4cqi); }   /* long company names (ClearFlame Engine Technologies) */
:root[data-theme="paper"] .card h3 { color: var(--ink); text-decoration: underline; text-decoration-color: var(--c); text-decoration-thickness: 10px; text-underline-offset: -2px; text-decoration-skip-ink: none; }
/* a small muted tag after a title: "Intern (3x)" */
.itag { display: inline-block; vertical-align: middle; margin-left: .5em; font: 500 11px/1 "JetBrains Mono", monospace; font-style: normal; font-stretch: 100%;
  letter-spacing: .06em; text-transform: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; position: relative; top: -.15em; }
.card h3 .itag { font-size: 11px; color: var(--muted); }
.card .cr { font: 500 12px/1.6 "JetBrains Mono"; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card .cr span { display: block; color: var(--ink); opacity: .7; }
.card p { font-size: 18px; line-height: 1.5; margin: 16px 0 22px; max-width: 36ch; }
.card a { font: 500 12px "JetBrains Mono"; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid var(--c); padding-bottom: 3px; transition: color .2s; }
.card a:hover { color: var(--c); }
.steps { position: absolute; left: 28px; bottom: 32px; z-index: 3; display: flex; gap: 6px; opacity: 0; transition: opacity .4s; }
.hero.stepping .steps { opacity: 1; }
.steps i { width: 26px; height: 4px; border-radius: 2px; background: var(--line); transition: background .3s; }
.steps i.on { background: var(--c); }

/* ---------- sticker wall ---------- */
.stk { display: block; transform: rotate(var(--r)); transition: transform .35s cubic-bezier(.3,1.6,.5,1), filter .2s; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); -webkit-user-drag: none; }
.stk svg { display: block; pointer-events: none; }
.stk:hover { transform: rotate(0deg) scale(1.06) translateY(-4px); filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
.stk .sk1 { font-family: Archivo; font-weight: 900; font-stretch: 125%; font-style: italic; letter-spacing: -.02em; }
.stk .sk2 { font-family: "JetBrains Mono"; font-weight: 500; letter-spacing: .12em; }
.stk .sk3 { font-family: Archivo; font-weight: 600; font-stretch: 125%; letter-spacing: .1em; }   /* geometric wordmarks */
.stk .sk4 { font-family: Archivo; font-weight: 500; letter-spacing: -.01em; }
.stk .sk5 { font-family: Archivo; font-weight: 800; font-style: italic; letter-spacing: -.02em; }
.wall-wrap { padding: 0 28px; }
/* a static sticker bomb: every sticker is a link; sizes and places are shares of the wall's width */
.wall { position: relative; aspect-ratio: 1000 / 480; max-width: 1000px; margin: 0 auto; container-type: inline-size; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 0) 0 0 / 18px 18px, var(--bg2); }
.wall .spot { position: absolute; left: var(--l); top: var(--t); }
.wall .spot:hover { z-index: 20; }
.wall .stk svg { width: calc(var(--k) * 100cqi); height: auto; }
.wall-note { display: flex; justify-content: space-between; max-width: 1000px; margin: 0 auto; font: 500 11px "JetBrains Mono"; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 4px 0; }

/* ---------- section heads ---------- */
.sh { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 120px 28px 48px; }
.sh h2 { font-weight: 900; font-stretch: 125%; font-style: italic; font-size: clamp(52px, 9vw, 150px); line-height: .8; letter-spacing: -.04em; text-transform: uppercase; }
.sh h2 span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.sh p { font: 400 13px/1.7 "JetBrains Mono"; color: var(--muted); letter-spacing: .04em; max-width: 300px; text-align: right; text-wrap: balance; }

/* ---------- build log with a routed pair ---------- */
.log { position: relative; padding: 0 28px 60px 120px; }
#route { position: absolute; left: 0; top: 0; width: 120px; height: 100%; overflow: visible; }
#route path { fill: none; stroke-width: 2.4; stroke-linejoin: round; }
#route .base { stroke: var(--line); }
#route .live { stroke: url(#routeGrad); }
#route circle { fill: var(--bg); stroke: var(--line); stroke-width: 2.4; transition: stroke .3s, fill .3s; }
#route circle.on { stroke: var(--c); fill: var(--c); }
.st { display: grid; grid-template-columns: clamp(110px, 13vw, 220px) minmax(0, 1fr) clamp(240px, 27vw, 380px); gap: clamp(20px, 2.6vw, 36px); align-items: start; padding: 48px 0; border-top: 1px solid var(--line); position: relative; scroll-margin-top: 80px; }
.st:last-child { border-bottom: 1px solid var(--line); }
.st .yr { font-weight: 900; font-stretch: 125%; font-size: clamp(38px, 4vw, 56px); line-height: .9; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1.2px var(--muted); transition: color .4s, -webkit-text-stroke-color .4s; }
.st.on .yr { color: var(--c); -webkit-text-stroke-color: var(--c); }
:root[data-theme="paper"] .st.on .yr { color: var(--ink); -webkit-text-stroke-color: var(--ink); }
.st .yr small { display: block; font: 500 11px "JetBrains Mono"; letter-spacing: .14em; color: var(--muted); -webkit-text-stroke: 0; margin-top: 12px; text-transform: uppercase; }
.st > div:nth-child(2), .pj > div:not(.frame):not(.slap) { container-type: inline-size; }
.st h3 { font-weight: 900; font-stretch: 115%; font-size: min(48px, 9.5cqi); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.st h3.long { font-size: min(34px, 7cqi); line-height: 1; }   /* the lab's full name */
.st .role { font: 500 12px "JetBrains Mono"; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 12px 0 16px; }
.st p { font-size: 17px; line-height: 1.6; opacity: .88; max-width: 58ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips span { font: 500 11px/1.2 "JetBrains Mono"; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--muted); }
.slap { position: absolute; z-index: 3; pointer-events: auto; }
.slap { zoom: .5; }
.st .slap { right: -26px; top: 6px; }
.frame { position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); overflow: hidden; background: var(--bg2); border-radius: 6px; }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.9); transition: filter .5s; }
.frame::after { content: ""; position: absolute; inset: 0; background: var(--c); mix-blend-mode: color; opacity: .55; transition: opacity .5s; }
.frame:hover img, .st.on .frame img { filter: none; }
.frame:hover::after, .st.on .frame::after { opacity: 0; }
.frame .cap { position: absolute; left: 10px; bottom: 8px; z-index: 2; font: 500 11px "JetBrains Mono"; letter-spacing: .12em; color: #fff; text-transform: uppercase; text-shadow: 0 1px 6px #000; }
.frame.plain::after { display: none; }
/* a brand panel: the company's own mark on its own colour (roles under NDA) */
.brandp { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bb); transform: none; filter: none; }
.brandp:hover { transform: none; filter: none; }
.brandp .mk { width: 46%; height: auto; max-height: 70%; }
.ndatag { position: absolute; left: 10px; bottom: 10px; z-index: 2; font: 500 10px "JetBrains Mono"; letter-spacing: .16em; text-transform: uppercase;
  color: #f4f1ea; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); padding: 5px 9px; border-radius: 999px; }

/* ---------- selected work ---------- */
.work { padding: 0 28px 80px; display: grid; gap: 20px; }
.pj { transition: border-color .3s; --c2: var(--c); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 10px; position: relative; scroll-margin-top: 80px; background: color-mix(in srgb, var(--c) 5%, transparent); }
.pj:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.pj:nth-child(even) .frame { order: 2; }
.pj .frame { aspect-ratio: 16/10; cursor: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 18%, transparent), 0 18px 50px -18px color-mix(in srgb, var(--c) 45%, transparent); }
/* a two-colour tint so a project isn't one flat colour (the ostrich: sage + terracotta) */
.pj .frame::after { background: linear-gradient(135deg, var(--c) 30%, var(--c2)); }
.pj .slap { left: -30px; top: -34px; }
.pj:nth-child(even) .slap { left: auto; right: -30px; }
.pj .n { font: 500 12px "JetBrains Mono"; letter-spacing: .14em; color: var(--muted); }
.pj .n b { color: #1b1c22; background: var(--c2); border-radius: 999px; padding: 2px 8px; font-weight: 500; }
.pj h3 { font-weight: 900; font-stretch: 125%; font-style: italic; font-size: min(68px, 8.4cqi); line-height: .88; letter-spacing: -.03em; text-transform: uppercase; margin: 14px 0 18px; }
.pj p { font-size: 17px; line-height: 1.6; opacity: .88; max-width: 58ch; }
.pj .facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 26px; }
.pj .facts div { padding: 14px 12px 0 0; }
.pj .facts b { display: block; font-weight: 900; font-stretch: 110%; font-size: 24px; }
.pj .facts div:nth-child(2) b { color: var(--c2); }
:root[data-theme="paper"] .pj .facts div:nth-child(2) b { color: inherit; }
.pj .facts span { font: 500 11px "JetBrains Mono"; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pj .go { display: inline-block; margin-top: 22px; font: 500 12px "JetBrains Mono"; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid var(--c); padding-bottom: 4px; transition: color .2s; }
.pj .go:hover { color: var(--c); }
.loupe { position: absolute; width: 190px; height: 190px; border-radius: 50%; border: 3px solid #fff; pointer-events: none; z-index: 50; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; background-repeat: no-repeat; box-shadow: 0 0 0 6px var(--lc, var(--acc)), 0 20px 40px rgba(0,0,0,.5); }
.loupe.on { opacity: 1; transform: scale(1); }
.loupe span { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); font: 500 10px "JetBrains Mono"; letter-spacing: .14em; background: var(--lc, var(--acc)); color: #1b1c22; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }

.rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.still .rv, .still .card { transition: none; }

.pj:hover, .edu article:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }

/* ---------- school + hackathons ---------- */
.edu { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; padding: 0 28px 40px; }
.edu article { transition: border-color .3s; position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 28px; background: color-mix(in srgb, var(--c) 5%, transparent); scroll-margin-top: 80px; }
.edu .n { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.edu h3 { font-weight: 900; font-stretch: 125%; font-style: italic; font-size: clamp(34px, 4vw, 60px); line-height: .9; letter-spacing: -.03em; text-transform: uppercase; margin: 16px 0 22px; }
.edu h3 span { color: var(--c); font-size: .55em; }
:root[data-theme="paper"] .edu h3 span { color: var(--ink); }
.edu ul { list-style: none; padding: 0; }
.edu li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; }
.edu li span, .edu td:last-child { color: var(--muted); font: 400 13px "JetBrains Mono"; letter-spacing: .04em; text-align: right; }
.edu table { width: 100%; border-collapse: collapse; }
.edu td { padding: 11px 6px; border-top: 1px solid var(--line); font-size: 16px; vertical-align: middle; }
.edu td i { font: 500 11px "JetBrains Mono"; font-style: normal; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; color: #1b1c22; }
.edu .p2 { background: #dfe3ea; } .edu .p3 { background: #f0c9a5; }
.edu .slap { right: -20px; top: -40px; }
.edu .school .slap { top: auto; bottom: -40px; }   /* below the list, clear of the header text */

.edu2 { grid-template-columns: 1fr 1fr; }
.edu2 .n { margin-bottom: 14px; }
.edu li a, .inl { color: var(--acc); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }

/* ---------- papers ---------- */
.papers { padding: 0 28px 40px; display: grid; gap: 12px; }
.paper { display: grid; grid-template-columns: 260px 1fr; gap: 6px 28px; padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 8px; transition: border-color .25s, background .25s; }
.paper:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); border-left-color: var(--c); background: color-mix(in srgb, var(--c) 4%, transparent); }
.paper .kind { grid-row: span 2; font: 500 11px/1.6 "JetBrains Mono"; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.paper b { font-size: 20px; line-height: 1.25; font-weight: 700; }
.paper .who { color: var(--muted); font-size: 15px; line-height: 1.5; } .paper u { text-decoration-color: var(--c); text-underline-offset: 3px; }

/* ---------- footer ---------- */
footer { padding: 120px 28px 28px; }
footer .big { font-weight: 900; font-stretch: 125%; font-style: italic; font-size: clamp(22px, 7vw, 110px); line-height: .85; letter-spacing: -.04em; text-transform: uppercase; text-decoration: none; display: inline-block; transition: color .3s; }
footer .big:hover { color: var(--acc); }
.tblock { margin-top: 72px; display: grid; grid-template-columns: 2fr repeat(4, 1fr); border: 1px solid var(--line); border-radius: 8px; }
.tblock div { padding: 12px 14px; border-left: 1px solid var(--line); }
.tblock div:first-child { border-left: 0; display: flex; align-items: center; gap: 12px; }
.tblock svg { width: 34px; height: 34px; border-radius: 8px; }
.tblock small { display: block; font: 500 11px "JetBrains Mono"; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.tblock b, .tblock a { font: 500 13px "JetBrains Mono"; letter-spacing: .06em; text-transform: uppercase; }
.tblock a { text-decoration: none; } .tblock a:hover { color: var(--acc); }

@media (max-width: 900px) {
  nav { padding: 14px 16px; } nav .links a { display: none; }
  .meta { left: 16px; top: 76px; }
  #stage { right: 0; left: 0; top: 70px; bottom: auto; width: auto; height: 50vh; } .fig { display: none; }
  .name { left: 12px; bottom: 132px; opacity: calc(1 - var(--explode) * 1.2); } .name .dimline { display: none; }
  .tag { left: 16px; right: 16px; bottom: 24px; text-align: left; max-width: none; }
  .cards { left: 16px; right: 16px; top: auto; bottom: 60px; transform: none; width: auto; height: 272px; }
  .card h3 { font-size: min(40px, 10.2cqi); margin: 12px 0 8px; } .card h3.long { font-size: min(30px, 8cqi); } .card p { font-size: 16px; line-height: 1.45; margin: 8px 0 14px; max-width: none; }
  .steps { left: 16px; bottom: 24px; }
  .sh { padding: 88px 16px 32px; flex-direction: column; align-items: start; } .sh p { text-align: left; }
  .log { padding: 0 16px 40px 52px; } #route { width: 52px; }
  .st { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; } .st .yr { font-size: 40px; } .st .slap { right: -40px; top: -8px; }
  .work { padding: 0 16px 60px; } .pj, .pj:nth-child(even) { grid-template-columns: 1fr; padding: 16px; gap: 20px; } .pj:nth-child(even) .frame { order: 0; }
  .pj .slap, .pj:nth-child(even) .slap { right: -30px; left: auto; top: -40px; }
  .edu .school { padding-bottom: 72px; }   /* room for the ASU sticker below the list */
  .st p, .pj p { font-size: 16px; }
  .edu, .edu2 { grid-template-columns: 1fr; padding: 0 16px 32px; } .papers { padding: 0 16px 32px; } .paper { grid-template-columns: 1fr; padding: 18px; } .paper .kind { grid-row: auto; } .edu article { padding: 20px; } .edu td:last-child { display: none; }
  .wall-wrap { padding: 0 12px; }
  .wall { aspect-ratio: 343 / 680; } .wall-note { flex-wrap: wrap; gap: 4px 16px; } .wall .spot { left: var(--lm); top: var(--tm); } .wall .stk svg { width: calc(var(--km) * 100cqi); }
  footer { padding: 88px 16px 20px; } .tblock { grid-template-columns: 1fr 1fr; } .tblock div { border-left: 0; } .tblock > div { border-top: 1px solid var(--line); } .tblock > div:first-child { grid-column: span 2; border-top: 0; }
}
@media (max-width: 600px) {
  #tags, #leads { display: none; }   /* labels are unreadable this small */
}
@media (prefers-reduced-motion: reduce) {
  .name .dimline { animation: none; width: min(62vw, 980px); } .name .dimline span { animation: none; opacity: 1; }
}
