/* =========================================================
   Sashwat Pyakurel — Portfolio
   One day in Kathmandu: the sky runs from morning to night
   as you scroll, past Boudha, Patan Durbar Square,
   Gaddi Baithak and Swayambhu.
   Colours marked "live" are set by script.js from the hour.
   ========================================================= */

:root {
  /* live: sky and land */
  --sky-top: #a9bcd8;
  --sky-bot: #f6d6bf;
  --far: #e7d3cf;
  --mid: #b3b0c4;
  --land: #6b6880;
  --dome: #f8eee6;
  --sun: #ffe2c2;
  --gold: #d7a447;
  --win: #ffd48a;
  --lights: 0;
  --flags: .85;

  /* text (day) */
  --ink: #221b22;
  --ink-soft: #4b434d;
  --ink-faint: #6f6670;
  --accent: #9c4429;
  --line: rgba(34, 27, 34, 0.14);

  /* text (night) */
  --night: #0c1025;
  --paper: #f1ebe0;

  --display: "Instrument Serif", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --deva: "Noto Serif Devanagari", serif;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--night);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.deva { font-family: var(--deva); }
em { font-style: italic; }

.container { width: min(1120px, 90%); margin-inline: auto; position: relative; z-index: 1; }

/* ---------------- SKY ---------------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-bot) 100%);
  pointer-events: none;
}
.stars { position: absolute; inset: 0; width: 100%; height: 70%; opacity: var(--stars, 0); }
.stars circle { fill: #fff; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: var(--o, .7); } 50% { opacity: .2; } }

.sun, .moon { position: absolute; border-radius: 50%; will-change: transform, opacity; }
.sun {
  left: 0; top: 0;
  width: 52px; height: 52px;
  background: radial-gradient(circle at 50% 50%, #fffaf0 0%, var(--sun) 70%);
  box-shadow: 0 0 60px 18px color-mix(in srgb, var(--sun) 45%, transparent), 0 0 160px 60px color-mix(in srgb, var(--sun) 18%, transparent);
}
.moon {
  left: 0; top: 0;
  width: 34px; height: 34px;
  background: radial-gradient(circle at 38% 38%, #fffaf0 0%, #ece3d2 65%, #d3c7b2 100%);
  box-shadow: 0 0 40px 8px rgba(255, 244, 222, .14);
  opacity: 0;
}

/* ---------------- NAV ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  color: var(--ink);
  transition: background .4s, color .6s, padding .35s, box-shadow .35s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .28);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding-block: 12px;
  box-shadow: 0 1px 0 var(--line);
}
body.is-night .nav { color: var(--paper); }
body.is-night .nav.scrolled { background: rgba(12, 16, 37, .45); box-shadow: 0 1px 0 rgba(241, 235, 224, .1); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
}
.brand-name { font-size: .95rem; font-weight: 500; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .9rem; opacity: .75; transition: opacity .2s, background .2s, color .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links .nav-cta { opacity: 1; border: 1px solid currentColor; margin-left: 8px; }
.nav-links .nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
body.is-night .nav-links .nav-cta:hover { background: var(--paper); color: var(--night); border-color: var(--paper); }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; position: relative; color: inherit; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s, top .3s; }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------------- SCENES ---------------- */
.scene { position: relative; }
.scene svg {
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
.scene .s-far   { fill: var(--far); }
.scene .s-mid   { fill: var(--mid); }
.scene .s-land  { fill: var(--land); }
.scene .s-dome  { fill: var(--dome); }
.scene .s-gold  { fill: var(--gold); }
.scene .s-win   { fill: var(--win); opacity: var(--lights); }
.scene .s-eyes  { fill: var(--land); }
.scene .s-stroke { stroke: var(--land); fill: none; }
.scene .flags { opacity: var(--flags); }
.scene .flags rect { animation: flutter 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: top center; }
@keyframes flutter { 50% { transform: skewX(calc(7deg * var(--gust, 1))) scaleY(calc(1 - .08 * var(--gust, 1))); } }

/* living details: kept small and slow */
.scene .bell { transform-box: fill-box; transform-origin: 50% 0; animation: bellSway 3.4s ease-in-out infinite; }
.scene .bell.ring { animation: bellRing .4s ease-in-out 4 alternate; }
@keyframes bellSway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
@keyframes bellRing { from { rotate: -16deg; } to { rotate: 16deg; } }

.scene .glint { animation: glint 9s ease-in-out infinite; }
@keyframes glint { 0%, 88%, 100% { filter: none; } 93% { filter: brightness(1.45) drop-shadow(0 0 2px #ffe7a6); } }

.scene .pigeons { fill: var(--dome); }
.scene .pg { transition: transform 2.2s cubic-bezier(.35, .1, .3, 1), opacity 2s; }
.scene .pg .wing { opacity: 0; }
.scene .pg-head { transform-box: fill-box; transform-origin: 0% 100%; animation: peck 4s ease-in-out infinite; }
@keyframes peck { 0%, 70%, 100% { rotate: 0deg; } 78%, 86% { rotate: 38deg; translate: .4px 1.2px; } 82% { rotate: 20deg; } }
.scene-hero.flown .pg { transform: translate(var(--dx), var(--dy)); opacity: 0; transition-delay: var(--delay); transition-duration: 1.8s, 1.6s; }
.scene-hero.flown .pg .wing, .scene-hero.landing .pg .wing { opacity: 1; animation: wingbeat .14s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.scene-hero.flown .pg-head, .scene-hero.landing .pg-head { animation: none; }
@keyframes wingbeat { to { scale: 1 -.4; } }

.scene .kite-lift { transform: translateY(calc((1 - var(--gust, 1)) * 6px)); transition: transform .6s ease-out; }
.scene .kite { transform-box: fill-box; transform-origin: 50% 100%; animation: kiteBob 5.5s ease-in-out infinite; }
@keyframes kiteBob { 0%, 100% { rotate: -5deg; translate: 0 0; } 35% { rotate: 4deg; translate: 2px -3px; } 70% { rotate: -1deg; translate: -1px 1px; } }
.scene .kite-tail { transform-box: fill-box; transform-origin: 50% 0; animation: kiteTail 1.6s ease-in-out infinite alternate; }
@keyframes kiteTail { from { skew: 8deg 0deg; } to { skew: -8deg 0deg; } }

.scene .lamps { fill: #ffcf7a; opacity: calc(.3 + var(--lights) * .7); filter: drop-shadow(0 0 1.5px #ffb347); }
.scene .lamps circle { animation: flicker 1.7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes flicker { 0% { opacity: 1; scale: 1; } 40% { opacity: .65; scale: .85 1.1; } 70% { opacity: .9; } 100% { opacity: .75; scale: 1.05 .9; } }

.scene .monkey { transition-property: transform; transition-timing-function: linear; }
.scene .monkey.moving .mk-hop { animation: hop .32s ease-out infinite alternate; }
@keyframes hop { to { translate: 0 -2.5px; } }
.scene .mk-tail { transform-box: fill-box; transform-origin: 100% 100%; animation: tail 3.2s ease-in-out infinite alternate; }
@keyframes tail { from { rotate: -6deg; } to { rotate: 8deg; } }

.scene-band { height: clamp(200px, 24vw, 300px); margin-top: 20px; }
.scene-dusk { height: clamp(280px, 32vw, 420px); margin-top: 12vh; margin-bottom: 26vh; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: max(100vh, 760px);
  padding: clamp(130px, 19vh, 190px) 0 0;
  display: flex; flex-direction: column;
}
.hero-inner { width: min(1120px, 90%); margin-inline: auto; position: relative; z-index: 2; }
.scene-hero { position: absolute; left: 0; right: 0; bottom: 0; height: 40%; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.eyebrow .deva { font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--accent); }
.eyebrow-rule { width: 34px; height: 1px; background: currentColor; opacity: .5; }
.hero-name { font-size: clamp(3.4rem, 8.4vw, 7.4rem); letter-spacing: -0.015em; line-height: .95; }
.hero-name em { color: var(--accent); }
.hero-deva { font-family: var(--deva); font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--ink-faint); margin: 14px 0 22px; }
.hero-role { font-size: .95rem; font-weight: 500; letter-spacing: .03em; margin-bottom: 10px; }
.hero-lede { max-width: 46ch; color: var(--ink-soft); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 26px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .92rem;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(34, 27, 34, .35); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.hero-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .86rem; color: var(--ink-soft); }
.hero-meta li { display: flex; align-items: center; gap: 10px; }
.coord { font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--accent); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: #3f9a66; box-shadow: 0 0 0 0 rgba(63, 154, 102, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(63, 154, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 154, 102, 0); } }

/* ---------------- SECTIONS ---------------- */
.section { padding: 110px 0; position: relative; }

.section-head { margin-bottom: 56px; }
.kicker { font-family: var(--deva); font-size: 1rem; color: var(--accent); margin-bottom: 8px; }
.section-head h2 { font-size: clamp(2.5rem, 5.2vw, 4rem); letter-spacing: -0.01em; }
.section-head h2 em { color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 72px; align-items: start; }
.about-text .lead { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1.25; margin-bottom: 1.1em; }
.about-text p { color: var(--ink-soft); }
.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-faint); }
.facts dd { margin: 0; font-weight: 500; }
.facts em { color: var(--ink-faint); font-weight: 400; font-style: normal; font-size: .9em; }

/* Experience */
.trail { list-style: none; margin: 0; padding: 0; }
.trail-item { display: grid; grid-template-columns: 190px 40px 1fr; position: relative; padding-bottom: 54px; }
.trail-item:last-child { padding-bottom: 0; }
.trail-item::before { content: ""; position: absolute; left: 209px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.trail-item:last-child::before { display: none; }
.trail-when { padding-top: 4px; display: grid; justify-items: start; gap: 8px; align-content: start; }
.trail-date { font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.trail-now { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(156, 68, 41, .12); color: var(--accent); font-weight: 600; }
.trail-dot { justify-self: center; width: 9px; height: 9px; margin-top: 10px; border-radius: 50%; background: var(--ink-faint); position: relative; z-index: 1; }
.trail-item:first-child .trail-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(156, 68, 41, .15); }
.trail-body h3 { font-size: 1.9rem; }
.trail-role { margin: 6px 0 16px; font-size: .9rem; color: var(--accent); font-weight: 500; }
.trail-body ul { margin: 0; padding: 0; list-style: none; max-width: 68ch; }
.trail-body li { position: relative; padding-left: 20px; margin-bottom: 10px; color: var(--ink-soft); }
.trail-body li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 8px; height: 1px; background: var(--ink-faint); }
.trail-body strong { color: var(--ink); font-weight: 600; }

/* Projects */
.project-link { margin-top: auto; align-self: flex-start; font-weight: 500; font-size: .9rem; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color .2s; }
.project-link span { display: inline-block; transition: transform .2s; }
.project-link:hover { color: var(--accent); }
.project-link:hover span { transform: translate(3px, -3px); }
.project-private { border-bottom-color: var(--line); color: var(--ink-faint); }
.project-private:hover { color: var(--ink-faint); }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.skill-group { padding: 30px 32px 10px 0; }
.skill-group + .skill-group { padding-left: 32px; border-left: 1px solid var(--line); }
.skill-group h3 { font-size: 1.7rem; margin-bottom: 18px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 13px; border-radius: 999px; font-size: .85rem; background: rgba(255, 255, 255, .4); border: 1px solid var(--line); color: var(--ink-soft); transition: background .2s, color .2s; }
.chips li:hover { background: var(--ink); color: var(--paper); }

/* Education */
.edu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.edu-row { display: grid; grid-template-columns: 210px 1.1fr 1fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.edu-date { font-size: .85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.edu-row h3 { font-size: 1.65rem; }
.edu-row p { margin: 0; color: var(--ink-soft); }
.edu-row em { color: var(--ink-faint); }
.badge { display: inline-block; margin-left: 8px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-faint); vertical-align: middle; }

/* Contact (night) */
.contact {
  color: var(--paper);
  background: linear-gradient(to bottom, rgba(12, 16, 37, 0) 0, rgba(12, 16, 37, .8) 320px, var(--night) 100%);
  padding-bottom: 130px;
}
.contact .kicker { color: #f0b27a; }
.contact .section-head h2 em { color: #f0b27a; }
.contact-lede { font-size: 1.15rem; max-width: 48ch; color: rgba(241, 235, 224, .72); margin-bottom: 48px; }
.contact-list { border-top: 1px solid rgba(241, 235, 224, .25); max-width: 860px; }
.contact-row { display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 20px; padding: 22px 6px; border-bottom: 1px solid rgba(241, 235, 224, .14); transition: padding .3s, background .3s; }
.contact-row:hover { padding-left: 18px; background: rgba(241, 235, 224, .05); }
.cc-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(241, 235, 224, .55); }
.cc-value { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; word-break: break-word; }
.cc-arrow { font-size: 1.2rem; color: #f0b27a; transition: transform .3s; }
.contact-row:hover .cc-arrow { transform: translateX(6px); }

/* Footer */
.footer { position: relative; overflow: hidden; background: var(--night); color: rgba(241, 235, 224, .5); text-align: center; font-size: .85rem; border-top: 1px solid rgba(241, 235, 224, .08); }
.footer-inner { position: relative; z-index: 1; padding: 80px 0 56px; }
.footer .big { font-size: 1.5rem; color: #f0b27a; margin-bottom: 4px; }
.footer p:last-child { margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-group, .skill-group + .skill-group { padding: 26px 0 18px; border-left: 0; }
  .skill-group + .skill-group { border-top: 1px solid var(--line); }
  .edu-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 66px; left: 5%; right: 5%;
    flex-direction: column; align-items: stretch;
    background: #f6f1e8; color: var(--ink);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 24px 50px -24px rgba(12, 16, 37, .5);
    opacity: 0; pointer-events: none; transform: translateY(-10px);
    transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { display: block; padding: 12px 16px; opacity: 1; }
  .nav-links .nav-cta { margin: 6px 0 0; text-align: center; }
  .brand-name { display: none; }
  .section { padding: 84px 0; }
  .hero { padding-top: 140px; min-height: max(100svh, 780px); }
  .scene-hero { height: 34%; }
  .trail-item { grid-template-columns: 24px 1fr; }
  .trail-item::before { left: 12px; }
  .trail-when { grid-column: 2; grid-row: 1; padding: 0 0 8px; grid-auto-flow: column; align-items: center; }
  .trail-dot { grid-column: 1; grid-row: 1; margin-top: 7px; }
  .trail-body { grid-column: 2; }
  .contact-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .cc-label { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- INTERACTIONS ---------------- */
/* scenes: cursor parallax, landmark lift, fact on hover / tap / focus */
.scene .ly { transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.scene .landmark { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.scene:hover .landmark { transform: translateY(-5px); }

/* experience line fills as you read */
.trail { position: relative; --p: 0; }
.trail::after {
  content: "";
  position: absolute;
  left: 209px; top: 18px;
  width: 1px;
  height: calc((100% - 18px) * var(--p));
  background: var(--accent);
}
.trail-dot { transition: background .4s, box-shadow .4s; }
.trail-item.passed .trail-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(156, 68, 41, .15); }

/* nav: current section */
.nav-links a { position: relative; }
.nav-links a.active:not(.nav-cta) { opacity: 1; }
.nav-links a.active:not(.nav-cta)::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: currentColor;
}

/* contact: copy email + toast */
.contact-row .cc-value { transition: color .2s; }
.contact-row .cc-value:hover { color: #f0b27a; }
.cc-copy {
  font: inherit; font-size: .75rem; letter-spacing: .08em;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(241, 235, 224, .3);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.cc-copy:hover { background: var(--paper); color: var(--night); border-color: var(--paper); }
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 60;
  transform: translate(-50%, 12px);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: .82rem;
  color: var(--night);
  background: var(--paper);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* shooting stars */
.shooting {
  position: absolute;
  width: 130px; height: 1.2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0));
  border-radius: 1px;
  animation: shoot 1.3s ease-out forwards;
}
@keyframes shoot {
  0% { opacity: 0; transform: rotate(-21deg) translateX(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: rotate(-21deg) translateX(-320px); }
}

@media (max-width: 760px) {
  .trail::after { left: 12px; }
}
/* cards respond to tilt immediately once they have revealed */
.project.reveal.in { transition: transform .35s ease-out, opacity .9s ease; transition-delay: 0s; }

/* footer starfield */
.footer-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.footer-stars circle { fill: #fff; animation: twinkle 4s ease-in-out infinite; }

/* morning birds */
.birds { position: absolute; inset: 0 0 40% 0; pointer-events: none; z-index: 1; overflow: hidden; }
.bird { position: absolute; left: 0; animation: fly linear infinite; will-change: transform; }
.bird-bob { display: block; animation: bob 4s ease-in-out infinite; }
.bird svg { overflow: visible; animation: flap .5s ease-in-out infinite alternate; transform-origin: 50% 70%; }
.bird path { fill: none; stroke: var(--land); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
@keyframes fly { from { transform: translateX(-40px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes bob { 50% { transform: translateY(-9px); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.35); } }

/* ---------------- DAI (the little local) ---------------- */
.dai {
  position: fixed;
  left: 0; bottom: 4px;
  z-index: 45;
  width: 40px; height: 65px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
  will-change: transform;
}
.dai.held { cursor: grabbing; }
.dai:focus-visible .dai-svg { filter: drop-shadow(0 0 0 2px var(--accent)) drop-shadow(0 0 3px var(--accent)); }
.dai-svg { width: 100%; height: 100%; overflow: visible; transform: scaleX(var(--face, 1)); transition: transform .15s; }
.dai-shadow {
  position: absolute; left: 50%; bottom: 1px;
  width: 26px; height: 5px; margin-left: -13px;
  border-radius: 50%;
  background: rgba(12, 16, 37, .22);
  filter: blur(1px);
}
.dai .leg, .dai .arm { transform-box: fill-box; transform-origin: 50% 0; }
.dai .dai-body { transform-box: fill-box; transform-origin: 50% 100%; }

/* walking */
.dai.walking .leg-f { animation: legA .42s ease-in-out infinite alternate; }
.dai.walking .leg-b { animation: legA .42s ease-in-out infinite alternate-reverse; }
.dai.walking .arm-f { animation: armA .42s ease-in-out infinite alternate-reverse; }
.dai.walking .arm-b { animation: armA .42s ease-in-out infinite alternate; }
.dai.walking .dai-body { animation: step .21s ease-in-out infinite alternate; }
@keyframes legA { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes armA { from { transform: rotate(20deg); } to { transform: rotate(-20deg); } }
@keyframes step { from { transform: translateY(0); } to { transform: translateY(-1.4px); } }

/* idle: breathing, and a cup of chiya */
.dai .dai-body { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleY(1.012); } }
.dai .cup { opacity: 0; transition: opacity .4s; }
.dai.idle .cup { opacity: 1; }
.dai.idle .arm-f { transform: rotate(-142deg); transition: transform .6s ease; }
.dai.idle .arm-f .cup { transform-box: fill-box; transform-origin: center; transform: rotate(142deg); }
.dai .steam { animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 0%, 100% { opacity: 0; transform: translateY(0); } 40% { opacity: .9; } 100% { transform: translateY(-2px); } }

/* waving */
.dai.waving .arm-f { animation: wave .35s ease-in-out infinite alternate; }
@keyframes wave { from { transform: rotate(-150deg); } to { transform: rotate(-178deg); } }
.dai.waving .dai-body { animation: none; }

/* lantern at night */
.dai .lantern { opacity: 0; transition: opacity .8s; }
body.is-night .dai .lantern { opacity: 1; }
body.is-night .dai-shadow { background: rgba(255, 212, 138, .18); }

/* speech bubble */
.dai-bubble {
  position: absolute;
  left: 50%; bottom: calc(100% + 6px);
  transform: translate(calc(-50% + var(--bx, 0px)), 4px);
  padding: 5px 10px;
  border-radius: 10px;
  font-size: .74rem;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px -10px rgba(12, 16, 37, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.dai-bubble::after {
  content: ""; position: absolute; left: calc(50% - var(--bx, 0px)); top: 100%;
  margin-left: -5px;
  border: 5px solid transparent; border-top-color: rgba(255, 255, 255, .92);
}
.dai.talking .dai-bubble { opacity: 1; transform: translate(calc(-50% + var(--bx, 0px)), 0); }

/* bubble: optional English line under the Nepali */
.dai-bubble { text-align: center; line-height: 1.3; }
.dai-bubble small { display: block; font-size: .66rem; color: var(--ink-faint); }

/* jumping: the shadow stays on the ground and shrinks */
.dai-shadow {
  transform: translateY(calc(var(--lift, 0) * 1px)) scale(calc(1 - var(--lift, 0) / 110));
  opacity: calc(1 - var(--lift, 0) / 90);
}
.dai.airborne .leg-f { transform: rotate(-28deg); }
.dai.airborne .leg-b { transform: rotate(22deg); }
.dai.airborne .arm-f, .dai.airborne .arm-b { transform: rotate(-120deg); }
.dai.airborne .dai-body, .dai.land .dai-body { animation: none; }
.dai.land .dai-body { transform: scaleY(.92); transition: transform .08s; }

/* dancing: hands up, hips sway (a little Resham Firiri) */
.dai.dancing .dai-body { animation: sway .45s ease-in-out infinite alternate; }
.dai.dancing .arm-f { animation: twirlF .45s ease-in-out infinite alternate; }
.dai.dancing .arm-b { animation: twirlB .45s ease-in-out infinite alternate; }
.dai.dancing .leg-f { animation: legA .45s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-7deg) translateY(0); } to { transform: rotate(7deg) translateY(-1.5px); } }
@keyframes twirlF { from { transform: rotate(-165deg); } to { transform: rotate(-130deg); } }
@keyframes twirlB { from { transform: rotate(-130deg); } to { transform: rotate(-165deg); } }

/* scrolled too fast */
.dai.wobble .dai-svg { animation: wobble .7s ease-in-out; }
@keyframes wobble {
  20% { rotate: -12deg; } 40% { rotate: 10deg; } 60% { rotate: -6deg; } 80% { rotate: 3deg; } 100% { rotate: 0deg; }
}

/* momo */
.momo {
  position: fixed;
  left: 0; bottom: 6px;
  z-index: 44;
  width: 22px; height: 16px;
  pointer-events: none;
  animation: momoIn .6s cubic-bezier(.3, 1.6, .5, 1) both;
}
.momo svg { width: 100%; height: 100%; overflow: visible; }
.momo .dough { fill: #f8f2e6; stroke: #a8946f; stroke-width: .9; }
.momo svg { filter: drop-shadow(0 1px 1.5px rgba(12, 16, 37, .3)); }
.momo .pleat { stroke: #a8946f; stroke-width: .8; fill: none; stroke-linecap: round; }
.momo .steam { stroke: rgba(255, 255, 255, .9); stroke-width: .8; fill: none; stroke-linecap: round; animation: steam 2s ease-in-out infinite; }
body:not(.is-night) .momo .steam { stroke: rgba(34, 27, 34, .25); }
.momo.eaten { animation: momoOut .45s ease forwards; }
.momo.gone { transition: opacity .6s; opacity: 0; }
.momo.high { bottom: 100px; animation: momoIn .6s cubic-bezier(.3, 1.6, .5, 1) both, hover 1.8s ease-in-out .6s infinite; }
@keyframes hover { 50% { translate: 0 -6px; } }
.momo.high.eaten { animation: momoOut .45s ease forwards; }
@keyframes momoIn { from { opacity: 0; margin-bottom: 30px; } to { opacity: 1; margin-bottom: 0; } }
@keyframes momoOut { to { opacity: 0; margin-bottom: 26px; scale: .6; } }

@media (max-width: 760px) {
  .dai { width: 34px; height: 55px; }
}

/* ---------------- PROJECTS: carved Newari windows (aakhi jhyal) ---------------- */
:root {
  --jh-leaf: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2222%22 viewBox=%220 0 32 22%22%3E%3Crect width=%2232%22 height=%2222%22 fill=%22%23a98157%22/%3E%3Cpath d=%22M0 22 C2 8 10 3 16 3 C22 3 30 8 32 22Z%22 fill=%22%23e2c79e%22 stroke=%22%238a6440%22 stroke-width=%221%22/%3E%3Cpath d=%22M7 20 C9 12 12 9 16 9 C20 9 23 12 25 20%22 fill=%22none%22 stroke=%22%23a98157%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M16 9 V18%22 stroke=%22%238a6440%22 stroke-width=%221.3%22/%3E%3Cpath d=%22M3 21 C5 10 11 5 16 4.5%22 fill=%22none%22 stroke=%22%23f4e2c2%22 stroke-width=%22.9%22 opacity=%22.8%22/%3E%3C/svg%3E");
  --jh-arrow: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2226%22 height=%2216%22 viewBox=%220 0 26 16%22%3E%3Crect width=%2226%22 height=%2216%22 fill=%22%23e2c79e%22/%3E%3Crect y=%220%22 width=%2226%22 height=%222%22 fill=%22%23a98157%22/%3E%3Crect y=%2214%22 width=%2226%22 height=%222%22 fill=%22%23a98157%22/%3E%3Cpath d=%22M3 4 L12 8 L3 12 L6 8Z%22 fill=%22%238a6440%22/%3E%3Cpath d=%22M23 4 L14 8 L23 12 L20 8Z%22 fill=%22%23a98157%22/%3E%3Cpath d=%22M13 3 V13%22 stroke=%22%23f4e2c2%22 stroke-width=%221%22 opacity=%22.7%22/%3E%3C/svg%3E");
  --jh-teeth: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2213%22 height=%2222%22 viewBox=%220 0 13 22%22%3E%3Crect width=%2213%22 height=%2222%22 fill=%22%23f4e2c2%22/%3E%3Crect width=%2213%22 height=%223%22 fill=%22%23cdab7c%22/%3E%3Cpath d=%22M2.5 3 L6.5 20 L10.5 3Z%22 fill=%22%238a6440%22/%3E%3Cpath d=%22M0 3 V22%22 stroke=%22%23e2c79e%22 stroke-width=%221%22/%3E%3C/svg%3E");
  --jh-steps: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2236%22 height=%2218%22 viewBox=%220 0 36 18%22%3E%3Crect width=%2236%22 height=%2218%22 fill=%22%23a98157%22/%3E%3Crect x=%221%22 y=%221%22 width=%2216%22 height=%227%22 fill=%22%23e2c79e%22/%3E%3Crect x=%2219%22 y=%221%22 width=%2216%22 height=%227%22 fill=%22%23cdab7c%22/%3E%3Crect x=%22-8%22 y=%2210%22 width=%2216%22 height=%227%22 fill=%22%23cdab7c%22/%3E%3Crect x=%2210%22 y=%2210%22 width=%2216%22 height=%227%22 fill=%22%23e2c79e%22/%3E%3Crect x=%2228%22 y=%2210%22 width=%2216%22 height=%227%22 fill=%22%23cdab7c%22/%3E%3Crect x=%221%22 y=%221%22 width=%2216%22 height=%221.5%22 fill=%22%23f4e2c2%22/%3E%3Crect x=%2210%22 y=%2210%22 width=%2216%22 height=%221.5%22 fill=%22%23f4e2c2%22/%3E%3C/svg%3E");
  --jh-blocks: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2218%22 viewBox=%220 0 24 18%22%3E%3Crect width=%2224%22 height=%2218%22 fill=%22%23a98157%22/%3E%3Crect x=%222%22 y=%222%22 width=%229%22 height=%226%22 rx=%221%22 fill=%22%23e2c79e%22/%3E%3Crect x=%2213%22 y=%222%22 width=%229%22 height=%226%22 rx=%221%22 fill=%22%23cdab7c%22/%3E%3Crect x=%222%22 y=%2210%22 width=%225%22 height=%226%22 rx=%221%22 fill=%22%23cdab7c%22/%3E%3Crect x=%229%22 y=%2210%22 width=%2213%22 height=%226%22 rx=%221%22 fill=%22%23e2c79e%22/%3E%3Crect x=%222%22 y=%222%22 width=%229%22 height=%221.2%22 fill=%22%23f4e2c2%22/%3E%3Crect x=%229%22 y=%2210%22 width=%2213%22 height=%221.2%22 fill=%22%23f4e2c2%22/%3E%3C/svg%3E");
  --jh-beads: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2214%22 viewBox=%220 0 12 14%22%3E%3Crect width=%2212%22 height=%2214%22 fill=%22%238a6440%22/%3E%3Cellipse cx=%226%22 cy=%227%22 rx=%225%22 ry=%226%22 fill=%22%23cdab7c%22 stroke=%22%23a98157%22 stroke-width=%22.8%22/%3E%3Cellipse cx=%224.8%22 cy=%225%22 rx=%221.8%22 ry=%222.6%22 fill=%22%23e2c79e%22/%3E%3C/svg%3E");
  --jh-vine: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2226%22 height=%2264%22 viewBox=%220 0 26 64%22%3E%3Crect x=%220%22 width=%222.5%22 height=%2264%22 fill=%22%23cdab7c%22/%3E%3Crect x=%2223.5%22 width=%222.5%22 height=%2264%22 fill=%22%23cdab7c%22/%3E%3Cpath d=%22M13 0 C21 14 5 30 13 44 C17 52 13 60 13 64%22 fill=%22none%22 stroke=%22%23cdab7c%22 stroke-width=%223.4%22/%3E%3Cpath d=%22M13 0 C21 14 5 30 13 44 C17 52 13 60 13 64%22 fill=%22none%22 stroke=%22%23f4e2c2%22 stroke-width=%221%22 opacity=%22.6%22/%3E%3Cpath d=%22M15 12 C23 6 25 16 19 20 C18 16 16 14 15 12Z%22 fill=%22%23e2c79e%22 stroke=%22%23a98157%22 stroke-width=%22.7%22/%3E%3Cpath d=%22M10 34 C2 28 1 38 7 42 C8 38 9 36 10 34Z%22 fill=%22%23e2c79e%22 stroke=%22%23a98157%22 stroke-width=%22.7%22/%3E%3Ccircle cx=%2220%22 cy=%2240%22 r=%223%22 fill=%22none%22 stroke=%22%23e2c79e%22 stroke-width=%221.8%22/%3E%3Ccircle cx=%226%22 cy=%2214%22 r=%223%22 fill=%22none%22 stroke=%22%23e2c79e%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M14 54 C20 50 23 56 19 60%22 fill=%22none%22 stroke=%22%23e2c79e%22 stroke-width=%222%22/%3E%3C/svg%3E");
  --jh-diamond: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2222%22 height=%2222%22 viewBox=%220 0 22 22%22%3E%3Crect width=%2222%22 height=%2222%22 fill=%22%23cdab7c%22/%3E%3Cpath d=%22M0 11 L11 1 L22 11 L11 21Z%22 fill=%22%23e2c79e%22 stroke=%22%23a98157%22 stroke-width=%221%22/%3E%3Cpath d=%22M6 6 L16 16 M16 6 L6 16%22 stroke=%22%23a98157%22 stroke-width=%221.6%22/%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%221.4%22 fill=%22%238a6440%22/%3E%3C/svg%3E");
  --jh-petals: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2217%22 height=%2228%22 viewBox=%220 0 17 28%22%3E%3Cpath d=%22M0 0 H17 V7 Q14 22 8.5 28 Q3 22 0 7Z%22 fill=%22%23cdab7c%22 stroke=%22%238a6440%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M8.5 4 V22%22 stroke=%22%238a6440%22 stroke-width=%221.8%22/%3E%3Cpath d=%22M3 6 Q5 16 8 24%22 fill=%22none%22 stroke=%22%23f4e2c2%22 stroke-width=%22.8%22 opacity=%22.7%22/%3E%3C/svg%3E");
  --jh-scroll: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2264%22 height=%2240%22 viewBox=%220 0 64 40%22%3E%3Crect width=%2264%22 height=%223.5%22 fill=%22%23e2c79e%22/%3E%3Crect y=%2236.5%22 width=%2264%22 height=%223.5%22 fill=%22%23cdab7c%22/%3E%3Cpath d=%22M0 28 C10 10 24 8 32 20 C40 32 54 30 64 12%22 fill=%22none%22 stroke=%22%23cdab7c%22 stroke-width=%224.5%22/%3E%3Cpath d=%22M0 28 C10 10 24 8 32 20 C40 32 54 30 64 12%22 fill=%22none%22 stroke=%22%23f4e2c2%22 stroke-width=%221.2%22 opacity=%22.7%22/%3E%3Cpath d=%22M18 12 C10 10 8 20 15 21%22 fill=%22none%22 stroke=%22%23e2c79e%22 stroke-width=%222.6%22/%3E%3Cpath d=%22M46 28 C54 30 56 20 49 19%22 fill=%22none%22 stroke=%22%23e2c79e%22 stroke-width=%222.6%22/%3E%3Cpath d=%22M30 18 C34 8 42 8 42 14 C38 13 34 15 30 18Z%22 fill=%22%23e2c79e%22 stroke=%22%23a98157%22 stroke-width=%22.7%22/%3E%3C/svg%3E");
  --jh-spandrel: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22130%22 height=%2286%22 viewBox=%220 0 130 86%22%3E%3Cpath d=%22M0 0 H130 V14 C112 14 104 20 96 26 C88 32 80 30 72 36 C64 42 58 52 50 54 C38 57 28 56 22 64 C16 72 14 80 13 86 H0Z%22 fill=%22%23a98157%22/%3E%3Cpath d=%22M8 74 C10 50 24 34 46 26 C64 20 82 12 108 8%22 fill=%22none%22 stroke=%22%23cdab7c%22 stroke-width=%224%22/%3E%3Cpath d=%22M30 40 C26 30 36 24 42 30 C38 32 34 36 30 40Z%22 fill=%22%23e2c79e%22 stroke=%22%238a6440%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M58 22 C58 12 70 10 72 18 C66 18 62 20 58 22Z%22 fill=%22%23e2c79e%22 stroke=%22%238a6440%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M14 58 C8 50 14 42 20 46 C18 50 16 54 14 58Z%22 fill=%22%23e2c79e%22 stroke=%22%238a6440%22 stroke-width=%22.8%22/%3E%3Ccircle cx=%2286%22 cy=%2218%22 r=%224%22 fill=%22none%22 stroke=%22%23e2c79e%22 stroke-width=%222%22/%3E%3Cpath d=%22M92 4 L100 12 M100 4 L92 12 M104 4 L112 12 M112 4 L104 12%22 stroke=%22%23e2c79e%22 stroke-width=%221.6%22/%3E%3Crect x=%226%22 y=%226%22 width=%2212%22 height=%2212%22 fill=%22%23cdab7c%22 stroke=%22%238a6440%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M6 10 H18 M6 14 H18 M10 6 V18 M14 6 V18%22 stroke=%22%238a6440%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M130 14 C112 14 104 20 96 26 C88 32 80 30 72 36 C64 42 58 52 50 54 C38 57 28 56 22 64 C16 72 14 80 13 86%22 fill=%22none%22 stroke=%22%23e2c79e%22 stroke-width=%225%22/%3E%3Cpath d=%22M130 17 C113 17 106 22 98 28 C90 34 82 32 74 38 C66 44 60 54 51 57 C40 60 30 59 25 66 C19 74 17 82 16 86%22 fill=%22none%22 stroke=%22%238a6440%22 stroke-width=%221.2%22 opacity=%22.7%22/%3E%3C/svg%3E");
  --jh-peak: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2284%22 height=%2230%22 viewBox=%220 0 84 30%22%3E%3Cpath d=%22M0 0 H84 V14 C64 14 50 10 42 1 C34 10 20 14 0 14Z%22 fill=%22%23a98157%22/%3E%3Cpath d=%22M0 14 C20 14 34 10 42 1 C50 10 64 14 84 14%22 fill=%22none%22 stroke=%22%23e2c79e%22 stroke-width=%225%22/%3E%3Cpath d=%22M0 17 C21 17 35 13 42 5 C49 13 63 17 84 17%22 fill=%22none%22 stroke=%22%238a6440%22 stroke-width=%221.2%22 opacity=%22.7%22/%3E%3C/svg%3E");
  --jh-archband: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2218%22 viewBox=%220 0 20 18%22%3E%3Crect width=%2220%22 height=%2214%22 fill=%22%23a98157%22/%3E%3Cpath d=%22M4 3 L10 9 M10 3 L4 9 M12 3 L18 9 M18 3 L12 9%22 stroke=%22%23cdab7c%22 stroke-width=%221.4%22/%3E%3Crect y=%2211.5%22 width=%2220%22 height=%225%22 fill=%22%23e2c79e%22/%3E%3Crect y=%2216.5%22 width=%2220%22 height=%221.2%22 fill=%22%238a6440%22 opacity=%22.7%22/%3E%3C/svg%3E");
  --jh-lotus: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2246%22 height=%2240%22 viewBox=%220 0 46 40%22%3E%3Cpath d=%22M23 3 C31 12 34 22 23 34 C12 22 15 12 23 3Z%22 fill=%22%23e2c79e%22 stroke=%22%238a6440%22 stroke-width=%221%22/%3E%3Cpath d=%22M23 10 C27 16 27 22 23 28 C19 22 19 16 23 10Z%22 fill=%22%23cdab7c%22 stroke=%22%238a6440%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M6 30 C12 24 18 28 23 34 C28 28 34 24 40 30%22 fill=%22none%22 stroke=%22%23e2c79e%22 stroke-width=%223%22/%3E%3Crect x=%220%22 y=%2236.5%22 width=%2246%22 height=%223.5%22 fill=%22%23cdab7c%22/%3E%3C/svg%3E");
}

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 66px 52px; padding: 36px 20px 0; }
.project {
  /* frame geometry (px) */
  --top: 38px; --side: 38px; --bottom: 56px;
  position: relative;
  display: flex; flex-direction: column;
  padding: calc(var(--top) + 70px) calc(var(--side) + 24px) calc(var(--bottom) + 50px);
  transition: transform .35s ease-out;
  will-change: transform;
}
.project:hover { transform: translateY(-3px); }
.project > :not(.jh):not(.project-num) { position: relative; z-index: 3; }

.jh { position: absolute; inset: 0; z-index: 1; pointer-events: none; filter: drop-shadow(0 10px 16px rgba(90, 60, 30, .12)); }
.jh > * { position: absolute; }

/* the opening: warm paper, like the rest of the page */
.jh-panel {
  left: var(--side); right: var(--side); top: var(--top); bottom: var(--bottom);
  background: linear-gradient(#fcf7ef, #f6ecdd);
  box-shadow: inset 0 0 0 1px #cfb08a, inset 0 6px 14px rgba(120, 80, 40, .1);
  transition: background .5s;
}
.project:hover .jh-panel { background: linear-gradient(#fffaf2, #f9efdf); }

/* cornice */
.jh-crest  { left: -18px; right: -18px; top: -30px; height: 14px; background: var(--jh-leaf) repeat-x center / auto 100%; clip-path: polygon(0 0, 100% 0, calc(100% - 7px) 100%, 7px 100%); }
.jh-crest::after { content: ""; position: absolute; inset: -3px 0 auto; height: 3px; background: #e2c79e; }
.jh-teeth  { left: -5px; right: -5px; top: -16px; height: 14px; background: var(--jh-teeth) repeat-x center / auto 100%; }
.jh-lintel { left: -16px; right: -16px; top: -2px; height: 12px; background: var(--jh-steps) repeat-x center / auto 100%; clip-path: polygon(0 0, 100% 0, 100% 60%, calc(100% - 5px) 100%, 5px 100%, 0 60%); }
.jh-head   { left: 0; right: 0; top: 10px; height: calc(var(--top) - 10px); background: linear-gradient(#dcbf93, #cdab7c); box-shadow: inset 0 -1px 0 #a98157; }

/* sides */
.jh-pil   { top: var(--top); bottom: var(--bottom); width: 14px; background: var(--jh-blocks) repeat-y center top / 100% auto; opacity: .9; }
.jh-pil.l { left: 2px; } .jh-pil.r { right: 2px; }
.jh-jamb  { top: var(--top); bottom: var(--bottom); width: 22px; background: linear-gradient(90deg, #e2c79e, #d3b384 60%, #b89066); }
.jh-jamb.l { left: 16px; } .jh-jamb.r { right: 16px; transform: scaleX(-1); }

/* cusped arch */
.jh-arch  { left: var(--side); right: var(--side); top: var(--top); height: 12px; background: var(--jh-archband) repeat-x left top / auto 100%; }
.jh-spand { top: var(--top); width: 86px; height: 57px; background: var(--jh-spandrel) no-repeat center / 100% 100%; }
.jh-spand.l { left: var(--side); } .jh-spand.r { right: var(--side); transform: scaleX(-1); }
.jh-peak  { top: var(--top); left: 50%; width: 56px; height: 20px; margin-left: -28px; background: var(--jh-peak) no-repeat center / 100% 100%; }

/* bottom of the opening */
.jh-ledge { left: calc(var(--side) - 3px); right: calc(var(--side) - 3px); bottom: calc(var(--bottom) + 27px); height: 4px; background: linear-gradient(#f4e2c2, #cdab7c); border-radius: 2px; box-shadow: 0 2px 2px rgba(120, 80, 40, .15); }
.jh-scroll { left: var(--side); right: var(--side); bottom: var(--bottom); height: 27px; background: var(--jh-scroll) repeat-x center bottom / auto 100%; opacity: .85; }
.jh-lotus { left: 50%; bottom: var(--bottom); width: 31px; height: 27px; margin-left: -15.5px; background: var(--jh-lotus) no-repeat center / 100% 100%; }

/* base */
.jh-sill  { left: -13px; right: -13px; bottom: calc(var(--bottom) - 13px); height: 13px; background: var(--jh-steps) repeat-x center / auto 100%; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 40%, 100% 100%, 0 100%, 0 40%); }
.jh-dia   { left: -9px; right: -9px; bottom: calc(var(--bottom) - 28px); height: 15px; background: var(--jh-diamond) repeat-x center / auto 100%; }
.jh-mould { left: -18px; right: -18px; bottom: calc(var(--bottom) - 33px); height: 5px; background: linear-gradient(#f4e2c2, #cdab7c); clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 3px 100%); }
.jh-petal { left: -14px; right: -14px; bottom: calc(var(--bottom) - 52px); height: 19px; background: var(--jh-petals) repeat-x center top / auto 100%; }

/* text inside the window: the page's own ink and accent */
.project-num {
  position: absolute; z-index: 4;
  left: 50%; top: -17px; transform: translateX(-50%);
  padding: 1px 9px;
  font-size: .6rem; letter-spacing: .16em; font-variant-numeric: tabular-nums;
  color: #fbeedd;
  background: #8a6440;
  box-shadow: inset 0 0 0 1px #cdab7c;
}
.project-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #8a6440; margin-bottom: 6px; }
.project h3 { font-size: 1.75rem; margin-bottom: 10px; color: var(--ink); }
.project p { color: var(--ink-soft); font-size: .95rem; }
.project .project-link { margin-top: 14px; }


@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; gap: 64px; padding: 36px 14px 0; }
  .project { --side: 30px; padding: calc(var(--top) + 64px) calc(var(--side) + 16px) calc(var(--bottom) + 46px); }
  .jh-pil { width: 12px; } .jh-jamb { width: 16px; } .jh-jamb.l { left: 14px; } .jh-jamb.r { right: 14px; }
  .jh-spand { width: 72px; height: 48px; }
}

:root { --orn: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2228%22 height=%2212%22 viewBox=%220 0 28 12%22%3E%3Cpath d=%22M2 11 C6 2.5 22 2.5 26 11%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.5%22/%3E%3Cpath d=%22M8 11 C10 6.5 18 6.5 20 11%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.1%22/%3E%3Ccircle cx=%2214%22 cy=%224.3%22 r=%221.3%22 fill=%22%23000%22/%3E%3C/svg%3E"); }

/* section heads: a Devanagari kicker and a short carved lotus band */
.section-head .kicker { letter-spacing: .02em; opacity: .9; }
.section-head::after {
  content: ""; display: block;
  width: 196px; height: 12px; margin-top: 22px;
  background: var(--accent); opacity: .5;
  -webkit-mask: var(--orn) repeat-x left center / auto 100%, linear-gradient(90deg, #000 55%, transparent);
  -webkit-mask-composite: source-in;
  mask: var(--orn) repeat-x left center / auto 100%, linear-gradient(90deg, #000 55%, transparent);
  mask-composite: intersect;
}
.contact .section-head::after { background: #f0b27a; opacity: .6; }

/* About: the facts sit in a small carved window */
.facts { position: relative; border-top: 0; margin-top: 22px; padding: 6px 26px; background: rgba(255, 250, 242, .55); box-shadow: inset 0 0 0 1px rgba(169, 129, 87, .35); }
.facts::before, .facts::after { content: ""; position: absolute; left: -10px; right: -10px; height: 11px; background: var(--jh-steps) repeat-x center / auto 100%; }
.facts::before { top: -11px; clip-path: polygon(0 0, 100% 0, 100% 60%, calc(100% - 5px) 100%, 5px 100%, 0 60%); }
.facts::after { bottom: -11px; clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 40%, 100% 100%, 0 100%, 0 40%); }
.facts > div:last-child { border-bottom: 0; }

/* Experience: carved diamonds on the trail */
.trail-dot { width: 10px; height: 10px; margin-top: 9px; border-radius: 1px; transform: rotate(45deg); background: #f6ecdd; box-shadow: inset 0 0 0 1.5px #a98157; }
.trail-item:first-child .trail-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(156, 68, 41, .14); }
.trail-item.passed .trail-dot { background: #cdab7c; box-shadow: inset 0 0 0 1.5px #8a6440, 0 0 0 4px rgba(169, 129, 87, .16); }
.trail-item:first-child.passed .trail-dot { background: var(--accent); box-shadow: 0 0 0 4px rgba(156, 68, 41, .14); }
.trail-now { background: rgba(169, 129, 87, .16); color: #7a5634; }

/* Skills: beaded dividers, diamond marks, warm chips */
.skill-group + .skill-group { border-left: 0; background: radial-gradient(circle, rgba(169, 129, 87, .6) 1.3px, transparent 1.8px) left top / 4px 9px repeat-y; }
.skill-group h3::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 12px 0 2px; vertical-align: .28em; transform: rotate(45deg); box-shadow: inset 0 0 0 1.5px var(--accent); }
.chips li { background: rgba(255, 250, 242, .55); border-color: rgba(169, 129, 87, .32); }
.chips li:hover { background: #8a6440; border-color: #8a6440; color: #fbeedd; }

/* Education: diamond markers and wood-toned badges */
.badge { border-color: rgba(169, 129, 87, .5); color: #7a5634; background: rgba(255, 250, 242, .5); }
.badge-link { transition: background .2s, color .2s, border-color .2s; }
.badge-link span { display: inline-block; transition: transform .2s; }
.badge-link:hover { background: #8a6440; border-color: #8a6440; color: #fbeedd; }
.badge-link:hover span { transform: translate(2px, -2px); }

/* ---------------- EXPERIENCE: a hanging scroll (paubha style) that unrolls as you read ---------------- */
.scroll { --open: 1; position: relative; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.scroll-top { position: relative; height: 58px; }
/* hanging cord */
.scroll-cord { position: absolute; left: 50%; top: 0; width: 46%; height: 34px; transform: translateX(-50%); background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 34%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 34 L50 3 L100 34%22 fill=%22none%22 stroke=%22%238a6440%22 stroke-width=%221.4%22 vector-effect=%22non-scaling-stroke%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") no-repeat center / 100% 100%; }
.scroll-cord::before { content: ""; position: absolute; left: 50%; top: -6px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; box-shadow: inset 0 0 0 1.6px #8a6440; }
/* carved wooden rod with brass finials */
.scroll-rod { position: absolute; left: -6px; right: -6px; top: 32px; height: 16px; border-radius: 8px;
  background: linear-gradient(#d9b98c, #b28553 45%, #8a6440 80%, #a57b4c);
  box-shadow: 0 3px 6px rgba(80, 50, 20, .25); }
.scroll-rod::before, .scroll-rod::after { content: ""; position: absolute; top: -4px; width: 22px; height: 24px; border-radius: 40% 40% 45% 45%;
  background: radial-gradient(circle at 35% 30%, #f6e2b0, #d7a447 45%, #9a6d22); box-shadow: 0 2px 4px rgba(80, 50, 20, .3); }
.scroll-rod::before { left: -16px; } .scroll-rod::after { right: -16px; }
/* silk ribbons hanging from the rod */
.scroll-ribbon { position: absolute; top: 44px; width: 11px; height: 52px; z-index: 3;
  background: linear-gradient(90deg, #a0473a, #c2604d 50%, #a0473a); opacity: .85;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%); transform-origin: top center; animation: ribbon 5s ease-in-out infinite alternate; }
.scroll-ribbon.l { left: 52px; } .scroll-ribbon.r { right: 52px; animation-delay: -2.5s; }
@keyframes ribbon { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

/* the sheet: lokta paper inside a brocade border; clipped to how far it has unrolled */
.scroll-body { position: relative; padding-bottom: 30px; }
.scroll-clip { overflow: hidden; transform: translate3d(0, calc((var(--open) - 1) * var(--h, 0px)), 0); will-change: transform; }
.scroll-paper {
  position: relative;
  padding: 64px clamp(26px, 5vw, 64px) 70px;
  background:
    radial-gradient(rgba(150, 110, 60, .07) 1px, transparent 1.4px) 0 0 / 7px 7px,
    radial-gradient(rgba(150, 110, 60, .05) 1px, transparent 1.4px) 3px 4px / 11px 11px,
    linear-gradient(#fbf4e6, #f6ead5);
  box-shadow:
    inset 0 0 0 14px #7f3a2e,          /* brocade */
    inset 0 0 0 15.5px #d7a447,        /* gold thread */
    inset 0 0 0 19px #f3e6cf,
    inset 0 0 0 20px rgba(169, 129, 87, .55);
  transform: translate3d(0, calc((1 - var(--open)) * var(--h, 0px)), 0);
  will-change: transform;
}
/* brocade pattern on the border */
.scroll-paper::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 14px solid transparent;
  background: repeating-linear-gradient(45deg, rgba(215, 164, 71, .22) 0 1px, transparent 1px 7px) border-box, repeating-linear-gradient(-45deg, rgba(215, 164, 71, .22) 0 1px, transparent 1px 7px) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); }
/* a thangka's broader bands at the top and bottom */
.scroll-paper::after { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; bottom: 14px; pointer-events: none;
  border-top: 3px solid rgba(215, 164, 71, .55); border-bottom: 3px solid rgba(215, 164, 71, .55); }

/* the paper roll at the bottom: it travels down as the sheet unrolls */
.scroll-roll { position: absolute; left: -10px; right: -10px; top: 0; height: 30px; z-index: 4; pointer-events: none; transform: translate3d(0, calc(var(--open) * var(--h, 0px) - 15px), 0); will-change: transform; }
.roll-paper { position: absolute; inset: 0 10px; border-radius: 15px; overflow: hidden; transform: scaleY(calc(1 - var(--open) * .18));
  background: linear-gradient(#e9d7b6, #fbf4e6 30%, #e3cda7 70%, #c9ab7e);
  box-shadow: inset 0 0 0 1px rgba(150, 110, 60, .25), 0 -6px 12px -6px rgba(80, 50, 20, .25), 0 6px 10px -4px rgba(80, 50, 20, .3); }
.roll-paper::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 7px; margin-top: -3.5px;
  background: linear-gradient(#7f3a2e, #9c4a3b 50%, #6d3026); opacity: .5; }
/* faint grain that turns with the roll */
.roll-paper::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(150, 110, 60, .14) 0 1px, transparent 1px 5px);
  background-position: 0 calc(var(--open) * var(--h, 0px) * .35);
  mix-blend-mode: multiply; }
.roll-knob { position: absolute; top: 3px; transition: none; width: 20px; height: 24px; border-radius: 40% 40% 45% 45%;
  background: radial-gradient(circle at 35% 30%, #f6e2b0, #d7a447 45%, #9a6d22); box-shadow: 0 2px 4px rgba(80, 50, 20, .3); }
.roll-knob.l { left: -8px; } .roll-knob.r { right: -8px; }

/* while rolled up the content waits; items appear as the sheet reaches them */
.scroll .trail { position: relative; }
@media (max-width: 760px) {
  .scroll { padding: 0 8px; }
  .scroll-paper { padding: 54px 26px 60px; }
  .scroll-ribbon { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scroll { --open: 1 !important; } }

/* ---------------- SKILLS: prayer wheels (mane) like the ones around Boudha ---------------- */
.skills-grid { border-top: 0; gap: 0 28px; }
.skill-group, .skill-group + .skill-group { padding: 0 12px 10px; background: none; border: 0; text-align: center; }
.skill-group h3 { margin: 18px 0 16px; }
.skill-group h3::before { display: none; }
.skill-group .chips { justify-content: center; }

.wheel { position: relative; width: 120px; height: 178px; margin: 0 auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* carved beam and sill the wheel turns between */
.wheel-beam, .wheel-sill { position: absolute; left: -6px; right: -6px; height: 11px; background: var(--jh-steps) repeat-x center / auto 100%; }
.wheel-beam { top: 0; clip-path: polygon(0 0, 100% 0, 100% 60%, calc(100% - 4px) 100%, 4px 100%, 0 60%); }
.wheel-sill { bottom: 0; clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 40%, 100% 100%, 0 100%, 0 40%); }
.wheel-axle { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 5px; margin-left: -2.5px; background: linear-gradient(90deg, #6e4a2c, #b08a5c 50%, #6e4a2c); }
/* domed top cap with a finial, flat bottom cap */
.wheel-top { position: absolute; left: 14px; right: 14px; top: 22px; height: 22px; border-radius: 50% 50% 6px 6px / 90% 90% 6px 6px;
  background: linear-gradient(90deg, #8a5a2a, #d9a45e 30%, #f3d29a 46%, #c48a46 66%, #7a4b20); box-shadow: inset 0 -2px 0 rgba(70, 40, 15, .35); }
.wheel-top::before { content: ""; position: absolute; left: 50%; top: -9px; width: 10px; height: 11px; margin-left: -5px; border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #f6e2b0, #d7a447 50%, #9a6d22); }
.wheel-bot { position: absolute; left: 12px; right: 12px; bottom: 20px; height: 12px; border-radius: 4px 4px 40% 40% / 4px 4px 100% 100%;
  background: linear-gradient(90deg, #8a5a2a, #d9a45e 30%, #f3d29a 46%, #c48a46 66%, #7a4b20); box-shadow: 0 3px 5px -2px rgba(70, 40, 15, .35); }
/* the drum: copper, with the mantra band that turns */
.wheel-drum { position: absolute; left: 18px; right: 18px; top: 42px; bottom: 30px; overflow: hidden; border-radius: 3px;
  background: linear-gradient(90deg, #7c4a22, #b8743a 22%, #e0a868 42%, #f0c892 50%, #d39556 62%, #a7652e 80%, #6e3f1b); }
.wheel-drum::before, .wheel-drum::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; z-index: 2;
  background: repeating-linear-gradient(90deg, rgba(255, 230, 180, .35) 0 2px, transparent 2px 6px), linear-gradient(90deg, #8a5a2a, #e2b071 45%, #8a5a2a); }
.wheel-drum::before { top: 0; box-shadow: 0 1px 0 rgba(60, 30, 10, .35); }
.wheel-drum::after { bottom: 0; box-shadow: 0 -1px 0 rgba(60, 30, 10, .35); }
.wheel-band { position: absolute; left: 0; top: 50%; height: 30px; margin-top: -15px; display: flex; white-space: nowrap; will-change: transform; }
.wheel-band span { font-family: var(--deva); font-size: 15px; line-height: 30px; padding-right: 14px; color: rgba(70, 35, 10, .62);
  text-shadow: 0 1px 0 rgba(255, 225, 170, .55); }
/* curved light on top of the turning band so it reads as a cylinder */
.wheel-shade { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(60, 30, 10, .55), rgba(60, 30, 10, 0) 26%, rgba(255, 236, 200, .28) 48%, rgba(60, 30, 10, 0) 70%, rgba(60, 30, 10, .6)); }
.wheel:hover .wheel-top::before { filter: brightness(1.1); }
.wheel:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 6px; }

@media (max-width: 760px) {
  .skills-grid { gap: 44px; }
}

/* ---------------- EDUCATION: brass lamps (panas) lit for learning, on lokta paper ---------------- */
.edu-list { border-top: 0; display: grid; gap: 14px; max-width: 1040px; }
.edu-row {
  --glow: 0;
  position: relative;
  grid-template-columns: 52px 170px minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px; align-items: center;
  padding: 20px 28px 20px 18px;
  border: 0; border-radius: 4px;
  background:
    radial-gradient(260px 140px at 40px 50%, rgba(255, 196, 110, calc(var(--glow) * .32)), transparent 70%),
    radial-gradient(rgba(150, 110, 60, .06) 1px, transparent 1.4px) 0 0 / 7px 7px,
    linear-gradient(rgba(255, 251, 244, .72), rgba(250, 242, 228, .66));
  box-shadow: inset 0 0 0 1px rgba(169, 129, 87, .28), 0 10px 24px -20px rgba(90, 60, 30, .45);
  transition: --glow .9s ease, transform .35s ease, box-shadow .35s;
}
@property --glow { syntax: "<number>"; inherits: true; initial-value: 0; }
.edu-row.lit { --glow: 1; }
.edu-row:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(169, 129, 87, .4), 0 14px 28px -20px rgba(90, 60, 30, .5); }
.edu-date { font-size: .82rem; letter-spacing: .02em; color: #7a5634; }
.edu-row h3 { font-size: 1.5rem; line-height: 1.15; }
.edu-row p { font-size: .95rem; line-height: 1.5; }

/* the lamp */
.lamp { width: 40px; height: 66px; justify-self: center; overflow: visible; }
.lamp .flame, .lamp .glow { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: scale(.2); transition: opacity .6s ease, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.lamp .glow { transform-origin: 50% 50%; }
.edu-row.lit .lamp .flame { opacity: 1; transform: scale(1); }
.edu-row.lit .lamp .glow { opacity: .75; transform: scale(1); }
.edu-row.lit .lamp .flicker { animation: lampFlicker 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.edu-row:hover .lamp .glow { opacity: 1; transform: scale(1.15); }
.edu-row:hover .lamp .flicker { animation-duration: 1.4s; }
@keyframes lampFlicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  25% { transform: scale(.94, 1.06) skewX(-3deg); }
  50% { transform: scale(1.03, .95) skewX(2deg); }
  75% { transform: scale(.97, 1.04) skewX(-1deg); }
}

/* badge links, tidied */
.edu-row p:has(.badge-link) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.edu-row .badge-link { margin-left: 0; padding: 3px 10px; white-space: nowrap; }

@media (max-width: 960px) {
  .edu-row { grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 18px 18px 18px 10px; }
  .edu-row .lamp { grid-row: 1 / span 3; align-self: start; }
  .edu-row > :not(.lamp) { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .edu-row { --glow: 1; } }

/* ---------------- FINAL POLISH ---------------- */
/* everything lines up with the section headings */
.scroll { max-width: none; padding: 0 14px; }
.edu-list { max-width: none; }
/* the project link sits at the foot of each window, whatever the text length */
.project .project-link { margin-top: auto; }
.project p:last-of-type { margin-bottom: 18px; }
/* Dai steps aside while you scroll on touch screens, so he never sits on the text you're reading */
.dai { transition: opacity .35s; }
.dai.shy { opacity: .28; }
@media (max-width: 760px) {
  .wheel { transform: scale(.82); margin: -14px auto -16px; }
  .skills-grid { gap: 36px; }
  .skill-group h3 { margin-top: 10px; }
}

