/* Homepage refresh — loaded last so it can restyle the Tailwind markup.
   Remove the <link> to assets/home.css in index.html to roll back. */

:root, .light {
  --gold-ink: #8a6420;
  --gold-dot: #c49a55;
  --gold-soft: #fbf4e6;
  --gold-line: #ecd6ae;
  --card-bg: #ffffff;
  --card-line: var(--neutral-200);
  --chip-bg: #f1f5f9;
  --card-radius: 14px;
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --card-shadow-hover: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 32px -14px rgba(15, 23, 42, .24);
}

.dark {
  --gold-ink: #f0c674;
  --gold-dot: #e4b976;
  --gold-soft: #2b2518;
  --gold-line: #6b5530;
  --card-bg: #141f35;
  --card-line: #263349;
  --chip-bg: #1e293b;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px -12px rgba(0, 0, 0, .45);
  --card-shadow-hover: 0 1px 2px rgba(0, 0, 0, .25), 0 14px 32px -14px rgba(0, 0, 0, .6);
}

/* Old load-in animation and hover zoom are replaced by the Motion section at the end. */
.fade-up, .fade-up.is-in { animation: none !important; }
main .card-hover:hover, aside .card-hover:hover { transform: none; }

/* ---------- Readable gold text ---------- */
main .text-accent, aside .text-accent { color: var(--gold-ink); }

/* ---------- Section headings ---------- */
main section h2.text-2xl {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  letter-spacing: -.01em;
}
main section h2.text-2xl::before {
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  background: var(--gold-dot);
  transform: rotate(45deg);
}
main section h2.text-2xl::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 6px;
  background: var(--card-line);
}
main section > .flex.justify-between:first-child { gap: 16px; }
main section > .flex.justify-between:first-child > a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--gold-ink);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
main section > .flex.justify-between:first-child > a:hover {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-ink);
}

/* ---------- Shared card ---------- */
#now a.group,
#publications .space-y-4 > article,
#research .space-y-3 > a, #blog .home-blog-list > a,
#news .space-y-3, #awards .grid > div, #teaching .space-y-3, #services > div,
#cv > .space-y-6, #manuscripts .manuscript-card,
aside .bg-neutral-100 {
  border: 1px solid var(--card-line);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}
#now a.group:hover, #publications .space-y-4 > article:hover,
#research .space-y-3 > a:hover, #blog .home-blog-list > a:hover {
  border-color: var(--gold-line);
  box-shadow: var(--card-shadow-hover);
}

/* Arrow buttons inside link cards */
#now a.group svg, #research a.group svg, #blog a.group svg {
  box-sizing: content-box;
  width: 14px;
  height: 14px;
  margin-top: 0;
  padding: 6px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  color: var(--neutral-500);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
#now a.group:hover svg, #research a.group:hover svg, #blog a.group:hover svg {
  border-color: var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-ink);
}

/* ---------- Sidebar ---------- */
aside .w-64 {
  border-radius: 22px;
  box-shadow: 0 0 0 6px var(--background), 0 0 0 7px var(--gold-line), 0 22px 44px -24px rgba(15, 23, 42, .5);
}
aside h1 { letter-spacing: -.01em; }
aside h1 + p.text-accent { font-size: 1rem; font-weight: 600; letter-spacing: .01em; }
#email-btn, #loc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}
#email-btn:hover, #loc-btn:hover { border-color: var(--gold-line); color: var(--gold-ink); }
aside .bg-neutral-100 { padding: 18px 20px; }
aside .bg-neutral-100 h3 {
  margin-bottom: 14px;
  color: var(--neutral-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
aside .bg-neutral-100 li .bg-accent { background: var(--gold-dot); }
aside .grid.grid-cols-2 > a { min-height: 44px; border-radius: 10px; }
aside .grid.grid-cols-2 > a.border { background: var(--card-bg); border-color: var(--card-line); }
aside .grid.grid-cols-2 > a.border:hover { border-color: var(--gold-line); }
.dark aside .grid.grid-cols-2 > a.bg-primary { color: var(--background); }

/* ---------- About ---------- */
#about .bio-md { font-size: 15.5px; line-height: 1.8; }
#about .bio-md p:first-child {
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.6;
}
#about .bio-md strong { color: var(--primary); font-weight: 600; }

/* ---------- Now & Learning ---------- */
#now a.group { height: 100%; padding: 20px; }
#now h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
#now h3::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-dot);
}
@media (min-width: 640px) {
  #now ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  #now ul > li { margin-top: 0; }
}

/* ---------- Learning (homepage cards) ---------- */
#learning .lrn-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
#learning .lrn-card {
  display: block;
  padding: 22px;
  border: 1px solid var(--card-line);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}
#learning a.lrn-card:hover { border-color: var(--gold-line); box-shadow: var(--card-shadow-hover); }
#learning a.lrn-card:hover h3 { color: var(--gold-ink); }
#learning .lrn-head { display: flex; align-items: flex-start; gap: 14px; }
#learning .lrn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-ink);
}
#learning .lrn-icon-slate { border-color: var(--card-line); background: var(--chip-bg); color: var(--neutral-600); }
#learning .lrn-title { flex: 1; min-width: 0; }
#learning .lrn-title h3 { margin: 0 0 4px; color: var(--primary); font-size: 16px; font-weight: 600; line-height: 1.35; }
#learning .lrn-title p { margin: 0; color: var(--neutral-600); font-size: 14px; line-height: 1.55; }
#learning .lrn-arrow {
  box-sizing: content-box;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  padding: 6px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  color: var(--neutral-500);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
#learning a.lrn-card:hover .lrn-arrow { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-ink); }

#learning .lrn-data[hidden] { display: none; }
#learning .lrn-data {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--card-line);
}
#learning .lrn-label {
  margin: 0 0 6px;
  color: var(--neutral-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
#learning .lrn-label span { font-weight: 500; letter-spacing: .02em; text-transform: none; }
#learning .lrn-big { margin: 0; color: var(--neutral-600); font-size: 13px; }
#learning .lrn-big strong {
  margin-right: 2px;
  color: var(--primary);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
#learning .lrn-progress { height: 6px; margin: 12px 0 14px; overflow: hidden; border-radius: 999px; background: var(--gold-soft); }
#learning .lrn-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold-dot); }
#learning .lrn-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
#learning .lrn-meta dt { margin: 0; color: var(--neutral-600); font-size: 11.5px; }
#learning .lrn-meta dd { margin: 2px 0 0; color: var(--primary); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
#learning .lrn-bars { display: flex; align-items: flex-end; gap: 5px; height: 76px; margin-top: 12px; }
#learning .lrn-bar {
  flex: 1;
  min-width: 0;
  height: calc(var(--h, 0) * 100%);
  min-height: 3px;
  border-radius: 3px 3px 1px 1px;
  background: var(--gold-line);
}
#learning .lrn-bar.is-empty { background: var(--card-line); }
#learning .lrn-bar.is-latest { background: var(--gold-dot); }
#learning .lrn-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--neutral-600);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
#learning .lrn-card-static { display: flex; align-items: center; gap: 14px; }
#learning .lrn-card-static .lrn-title h3 { margin: 0; }
#learning .lrn-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 4px 11px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--neutral-600);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
#learning .lrn-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dot); }
@media (max-width: 639px) {
  #learning .lrn-card { padding: 18px; }
  #learning .lrn-data { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Learning motion: bars grow and the progress fills once the card is shown and the data has loaded */
.motion #learning .lrn-bar {
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform .6s var(--ease-out) calc(var(--i, 0) * 35ms + 150ms);
}
.motion #learning li.is-shown .is-ready .lrn-bar { transform: none; }
.motion #learning .lrn-fill {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease-out) .2s;
}
.motion #learning li.is-shown .is-ready .lrn-fill { transform: none; }

/* ---------- Publications ---------- */
#publications .space-y-4 { counter-reset: pub; }
#publications .space-y-4 > article {
  position: relative;
  counter-increment: pub;
  padding: 20px 22px 20px 64px !important;
}
#publications .space-y-4 > article::before {
  content: counter(pub, decimal-leading-zero);
  position: absolute;
  top: 19px;
  left: 22px;
  color: var(--gold-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
#publications article h3 { font-size: 15.5px; line-height: 1.4; }
#publications article h3 a:hover { color: var(--gold-ink); }
#publications article em { color: var(--neutral-700); }

/* ---------- Research & Blog cards ---------- */
#research .space-y-3 > a, #blog .home-blog-list > a { padding: 20px; }
#research .space-y-3, #blog .home-blog-list { display: grid; gap: 14px; }
#research .space-y-3 > a, #blog .home-blog-list > a { margin-top: 0; }
#research img, #blog img { border-radius: 0; }
#research .rounded-md.overflow-hidden, #blog .rounded-md.overflow-hidden {
  border-color: var(--card-line);
  border-radius: 10px;
}
#research a.group:hover h3, #blog a.group:hover h4 { color: var(--gold-ink); }
#research .mt-3 > span, #blog .mt-3 > span {
  padding: 2px 10px;
  border-color: var(--card-line);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--neutral-600);
  font-size: 11.5px;
}
#blog .bg-accent\/10 {
  border: 1px solid var(--gold-line);
  background: var(--gold-soft);
  color: var(--gold-ink);
}
.dark #research .bg-emerald-50 { border-color: #14532d; background: #0f2a20; color: #86efac; }
.dark #research .bg-sky-50 { border-color: #0c4a6e; background: #0b2536; color: #7dd3fc; }

/* ---------- Blog (homepage): Research / Reflections groups ---------- */
#blog .home-blog-group + .home-blog-group { margin-top: 28px; }
#blog .home-blog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#blog .home-blog-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gold-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#blog .home-blog-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 11px;
  letter-spacing: 0;
}
#blog .home-blog-more { color: var(--neutral-600); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: color .2s ease; }
#blog .home-blog-more:hover { color: var(--gold-ink); }
#blog .home-blog-empty {
  margin: 0;
  padding: 18px 20px;
  border: 1px dashed var(--neutral-300);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  color: var(--neutral-600);
  font-size: 14px;
  text-align: center;
}

/* ---------- News timeline ---------- */
#news .space-y-3 { padding: 10px 24px; }
#news .space-y-3 > div {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: 32px;
  margin: 0 !important;
  padding: 12px 0;
}
#news .space-y-3 > div::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 80px;
  width: 1px;
  background: var(--card-line);
}
#news .space-y-3 > div:first-child::before { top: 20px; }
#news .space-y-3 > div:last-child::before { bottom: calc(100% - 20px); }
#news .space-y-3 > div::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 76px;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: 1.5px solid var(--neutral-400);
  border-radius: 50%;
  background: var(--card-bg);
}
#news .space-y-3 > div:first-child::after { border-color: var(--gold-dot); background: var(--gold-dot); }
#news .space-y-3 > div > span {
  width: auto !important;
  margin-top: 1px;
  color: var(--neutral-600);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
#news .space-y-3 > div:first-child > span { color: var(--gold-ink); }
#news .space-y-3 > div > p { margin-left: 0 !important; font-size: 14px; line-height: 1.6; }

/* ---------- Awards ---------- */
@media (min-width: 1024px) {
  #awards .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
#awards .grid { gap: 14px; }
#awards .grid > div { padding: 20px; }
#awards .grid > div > .flex {
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
#awards .grid > div > .flex > span {
  padding: 2px 9px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#awards .grid > div h3 { font-size: 14.5px; line-height: 1.4; }

/* ---------- Teaching (one card, divided rows) & Services ---------- */
#teaching .space-y-3 { padding: 4px 22px; }
#teaching .space-y-3 > div {
  margin: 0 !important;
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
#teaching .space-y-3 > div + div { border-top: 1px solid var(--card-line); }
#services > div { padding: 20px 22px; }
#teaching .flex > span, #services .flex > span {
  color: var(--neutral-600);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#teaching .flex, #services .flex { gap: 12px; }

/* ---------- CV ---------- */
#cv > .space-y-6 { padding: 4px 24px; }
#cv > .space-y-6 > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  column-gap: 28px;
  margin: 0 !important;
  padding: 22px 0;
}
#cv > .space-y-6 > div + div { border-top: 1px solid var(--card-line); }
#cv > .space-y-6 > div > h3 {
  grid-column: 1;
  grid-row: 1 / span 30;
  margin: 0 !important;
  padding-top: 4px;
  color: var(--gold-ink);
  font-size: 11.5px !important;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#cv > .space-y-6 > div > :not(h3) { grid-column: 2; }
#cv > .space-y-6 > div > p { font-size: 15px; }
#cv ul { margin-left: 0; padding-left: 0; list-style: none; }
#cv li { position: relative; padding-left: 18px; color: var(--neutral-700); font-size: 14.5px; }
#cv li::before {
  content: "";
  position: absolute;
  top: .72em;
  left: 3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-dot);
}

/* ---------- Footer ---------- */
main > footer { border-top-color: var(--card-line); background: transparent; }

/* ---------- Small screens ---------- */
@media (max-width: 639px) {
  #cv > .space-y-6 { padding: 4px 18px; }
  #cv > .space-y-6 > div { grid-template-columns: minmax(0, 1fr); }
  #cv > .space-y-6 > div > h3 { grid-row: auto; margin-bottom: 12px !important; }
  #cv > .space-y-6 > div > :not(h3) { grid-column: 1; }
}
@media (max-width: 479px) {
  #publications .space-y-4 > article { padding: 16px 16px 16px 50px !important; }
  #publications .space-y-4 > article::before { top: 16px; left: 16px; font-size: 17px; }
  #news .space-y-3 { padding: 6px 16px; }
  #news .space-y-3 > div { grid-template-columns: 54px minmax(0, 1fr); column-gap: 26px; }
  #news .space-y-3 > div::before { left: 67px; }
  #news .space-y-3 > div::after { left: 63px; }
  #teaching .space-y-3 { padding: 4px 16px; }
  #awards .grid > div, #services > div, #research .space-y-3 > a, #blog .home-blog-list > a { padding: 16px; }
}

/* =====================================================================
   Motion — subtle, one-shot. The inline script at the end of index.html
   adds .motion to <html> (skipped for prefers-reduced-motion) and marks
   elements with .rv / .is-shown as they scroll into view.
   ===================================================================== */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-pop: cubic-bezier(.34, 1.56, .64, 1); }

/* Reveal: fade + rise, staggered within each batch */
.motion .rv {
  opacity: 0;
  translate: 0 16px;
  transition:
    opacity .6s var(--ease-out) var(--rv-delay, 0ms),
    translate .7s var(--ease-out) var(--rv-delay, 0ms),
    transform .35s var(--ease-out),
    box-shadow .35s var(--ease-out),
    border-color .2s ease,
    background-color .2s ease,
    color .2s ease !important;
}
.motion .rv.is-shown { opacity: 1; translate: none; }

/* Section headings: the diamond pops in, the rule draws left to right */
.motion main section h2.rv::before {
  transform: rotate(-45deg) scale(0);
  transition: transform .6s var(--ease-pop) calc(var(--rv-delay, 0ms) + 120ms);
}
.motion main section h2.rv.is-shown::before { transform: rotate(45deg) scale(1); }
.motion main section h2.rv::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease-out) calc(var(--rv-delay, 0ms) + 200ms);
}
.motion main section h2.rv.is-shown::after { transform: none; }

/* News: the timeline draws downward and each dot pops in */
.motion #news .space-y-3 > div.rv::before {
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .5s var(--ease-out) var(--rv-delay, 0ms);
}
.motion #news .space-y-3 > div.rv.is-shown::before { transform: none; }
.motion #news .space-y-3 > div.rv::after {
  transform: scale(0);
  transition: transform .45s var(--ease-pop) calc(var(--rv-delay, 0ms) + 150ms);
}
.motion #news .space-y-3 > div.rv.is-shown::after { transform: none; }

/* Manuscript: progress fills once, the current step rings once */
.motion .manuscript-stages.rv .manuscript-step.is-done .manuscript-step-bar,
.motion .manuscript-stages.rv .manuscript-step.is-current .manuscript-step-bar::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--ease-out) calc(var(--rv-delay, 0ms) + 150ms);
}
.motion .manuscript-stages.rv .manuscript-step:nth-child(2) .manuscript-step-bar { transition-delay: calc(var(--rv-delay, 0ms) + 400ms); }
.motion .manuscript-stages.rv .manuscript-step.is-current .manuscript-step-bar::after { transition-delay: calc(var(--rv-delay, 0ms) + 650ms); }
.motion .manuscript-stages.rv.is-shown .manuscript-step.is-done .manuscript-step-bar,
.motion .manuscript-stages.rv.is-shown .manuscript-step.is-current .manuscript-step-bar::after { transform: none; }
@keyframes ms-ring {
  from { box-shadow: 0 0 0 4px var(--ms-live-bg), 0 0 0 4px var(--ms-live-strong); }
  to { box-shadow: 0 0 0 4px var(--ms-live-bg), 0 0 0 14px transparent; }
}
.motion .manuscript-event-latest.rv.is-shown .manuscript-event-marker {
  animation: ms-ring 1.4s var(--ease-out) calc(var(--rv-delay, 0ms) + 350ms) 1 both;
}

/* Hover: clickable cards lift a little, arrows nudge, photos ease in */
@media (prefers-reduced-motion: no-preference) {
  #now a.group:hover, #learning a.lrn-card:hover, #publications .space-y-4 > article:hover,
  #research .space-y-3 > a:hover, #blog .home-blog-list > a:hover { transform: translateY(-3px); }
  #now a.group:hover svg, #learning a.lrn-card:hover .lrn-arrow,
  #research a.group:hover svg, #blog a.group:hover svg { transform: translateX(3px); }
  #research a.group img, #blog a.group img, aside .w-64 img { transition: transform .9s var(--ease-out); }
  #research a.group:hover img, #blog a.group:hover img { transform: scale(1.05); }
  aside .w-64:hover img { transform: scale(1.04); }
  #email-btn, #loc-btn, aside .grid.grid-cols-2 > a, main section > .flex.justify-between:first-child > a {
    transition: transform .3s var(--ease-out), border-color .2s ease, background-color .2s ease, color .2s ease;
  }
  #email-btn:hover, #loc-btn:hover, aside .grid.grid-cols-2 > a:hover { transform: translateY(-2px); }
  main section > .flex.justify-between:first-child > a:hover { transform: translateX(2px); }
  .nav-pill {
    transition: left .35s var(--ease-out), width .35s var(--ease-out), top .35s var(--ease-out),
      height .35s var(--ease-out), opacity .2s ease !important;
  }
}
