/* ==========================================================================
   utsavpoudel.com.np — design system
   White ground, black type, quiet motion.
   ========================================================================== */

:root {
  --ink:        #1d1d1f;
  --ink-2:      #6e6e73;
  --ink-3:      #86868b;
  --line:       rgba(0, 0, 0, 0.10);
  --line-soft:  rgba(0, 0, 0, 0.06);
  --bg:         #ffffff;
  --bg-2:       #f5f5f7;
  --bg-3:       #fafafc;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "New York", "Iowan Old Style", "Palatino Linotype", Palatino,
           "Times New Roman", serif;

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
  --section-y: clamp(76px, 11vw, 152px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 52px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.028em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: #1d1d1f; color: #fff; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 820px; }
/* a reading column that stays flush with the section headings above it */
.column { max-width: 74ch; }

section { position: relative; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(56px, 8vw, 104px); }
.section--grey { background: var(--bg-2); }
.section + .section--grey, .section--grey + .section { border-top: 1px solid transparent; }

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- type ---------- */
.display {
  font-size: clamp(2.9rem, 9.2vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 0.98;
}
.h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.9rem);
  letter-spacing: -0.036em;
  line-height: 1.05;
}
.h2 {
  font-size: clamp(1.85rem, 4.1vw, 3.1rem);
  letter-spacing: -0.032em;
  line-height: 1.06;
}
.h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  letter-spacing: -0.024em;
  line-height: 1.2;
}
.h4 {
  font-size: 1.0625rem;
  letter-spacing: -0.014em;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.15rem, 2.1vw, 1.6rem);
  line-height: 1.4;
  letter-spacing: -0.022em;
  color: var(--ink-2);
  font-weight: 400;
}
.body { font-size: 1.0625rem; line-height: 1.62; color: var(--ink-2); }
.body strong { color: var(--ink); font-weight: 600; }
.small { font-size: 0.875rem; line-height: 1.5; color: var(--ink-3); }
.mono-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.serif-quote {
  font-family: var(--serif);
  font-style: italic;
  letter-spacing: -0.01em;
}

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.measure { max-width: 68ch; }

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease);
}
.link-underline:hover { background-size: 100% 1px; }

.text-link {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.text-link:hover { border-color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.nav__brand img {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: block;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__brand:hover img { transform: scale(1.06); opacity: 0.85; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 32px);
}
.nav__list a {
  font-size: 0.8125rem;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--ink); }

.nav__toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 7px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 13px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__list {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px var(--pad) 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav.is-open .nav__list { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list li { width: 100%; }
  .nav__list a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav__list li:last-child a { border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07); }
.btn__arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero {
  min-height: min(94vh, 900px);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(0, 0, 0, 0.045), transparent 72%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__eyebrow { margin-bottom: 22px; }
.hero__name { margin-bottom: 22px; }
.hero__lead { max-width: 42ch; margin-bottom: 34px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 38px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 980px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  letter-spacing: -0.008em;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
a.chip:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue__line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--ink-3), transparent);
  animation: cue 2.6s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}
@media (max-width: 820px) { .scroll-cue { display: none; } }

/* ---------- page header (subpages) ---------- */
.page-head {
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 108px));
  padding-bottom: clamp(40px, 6vw, 72px);
}
.page-head .lead { max-width: 62ch; margin-top: 22px; }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

/* ---------- section headers ---------- */
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .mono-label { display: block; margin-bottom: 16px; }
.section-head .lead { margin-top: 18px; max-width: 58ch; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 34px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  position: relative;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.07);
}
.card--flat:hover { transform: none; box-shadow: none; }
.card__num {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: block;
}
.card .h3 { margin-bottom: 12px; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag {
  font-size: 0.75rem;
  color: var(--ink-3);
  border: 1px solid var(--line-soft);
  border-radius: 980px;
  padding: 4px 11px;
}

/* ---------- stats ---------- */
.stat { padding-block: 8px; }
.stat__num {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); line-height: 1.4; }

/* ---------- list rows (publications, awards, timeline) ---------- */
.rows { border-top: 1px solid var(--line-soft); }
.row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding-block: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease);
}
.row:hover { background: linear-gradient(90deg, rgba(0,0,0,0.018), transparent 70%); }
.row__meta { color: var(--ink-3); font-size: 0.8125rem; padding-top: 4px; letter-spacing: -0.005em; }
.row__title { font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600; letter-spacing: -0.022em; line-height: 1.25; }
.row__sub { margin-top: 10px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.row__note { margin-top: 12px; color: var(--ink-3); font-size: 0.875rem; line-height: 1.5; }
.row__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 2px; }
.row__badge {
  font-size: 0.75rem;
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: 980px;
  padding: 4px 12px;
  white-space: nowrap;
}
@media (max-width: 780px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .row__meta { order: -1; padding-top: 0; }
  .row__aside { flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- timeline ---------- */
.timeline { border-left: 1px solid var(--line-soft); padding-left: clamp(20px, 3vw, 36px); }
.timeline__item { position: relative; padding-bottom: clamp(30px, 4vw, 46px); }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(20px, 3vw, 36px) - 3.5px);
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__when { font-size: 0.8125rem; color: var(--ink-3); }
.timeline__what { margin-top: 6px; font-size: clamp(1.05rem, 1.7vw, 1.25rem); font-weight: 600; letter-spacing: -0.022em; }
.timeline__role { margin-top: 4px; color: var(--ink-2); font-size: 0.9375rem; }
.timeline__body { margin-top: 12px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; max-width: 70ch; }
.timeline__body li { position: relative; padding-left: 18px; margin-top: 8px; }
.timeline__body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 4px;
  height: 1px;
  background: var(--ink-3);
}

/* ---------- feature panel ---------- */
.panel {
  background: var(--bg-2);
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(30px, 5vw, 72px);
}
.panel--outline { background: transparent; border: 1px solid var(--line-soft); }

/* ---------- link grid (elsewhere) ---------- */
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-soft); }
@media (max-width: 900px) { .links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .links { grid-template-columns: minmax(0, 1fr); } }
.links__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: padding-left 0.4s var(--ease);
}
.links__item:hover { padding-left: 12px; }
.links__name { font-weight: 600; letter-spacing: -0.02em; }
.links__meta { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- faq ---------- */
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 24px 40px 24px 0;
  font-family: inherit;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.faq__q::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center/12px 1.5px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center/1.5px 12px no-repeat;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.faq__item.is-open .faq__q::after { transform: rotate(90deg); }
.faq__item.is-open .faq__q::after {
  background: linear-gradient(var(--ink-2), var(--ink-2)) center/12px 1.5px no-repeat;
}
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s var(--ease), padding-bottom 0.5s var(--ease);
  opacity: 0;
}
.faq__item.is-open .faq__a { opacity: 1; padding-bottom: 26px; }
.faq__a p { color: var(--ink-2); line-height: 1.62; max-width: 72ch; }
.faq__a p + p { margin-top: 12px; }

/* ---------- contact / footer ---------- */
.contact-cta { text-align: center; }
.contact-cta .display { margin-bottom: 26px; }

.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 48px 40px;
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer h4 { margin-bottom: 14px; font-size: 0.8125rem; letter-spacing: 0.02em; }
.footer li + li { margin-top: 9px; }
.footer a, .footer p { font-size: 0.875rem; color: var(--ink-2); }
.footer a { transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--ink); }
.footer__bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.8125rem;
}

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

.hero-anim > * {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 1.1s var(--ease) forwards;
}
.hero-anim > *:nth-child(1) { animation-delay: 0.08s; }
.hero-anim > *:nth-child(2) { animation-delay: 0.18s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.28s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.38s; }
.hero-anim > *:nth-child(5) { animation-delay: 0.48s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.split-line { display: block; overflow: hidden; }
.split-line > span {
  display: block;
  transform: translateY(105%);
  animation: lineUp 1.15s var(--ease) forwards;
}
.split-line:nth-of-type(1) > span { animation-delay: 0.06s; }
.split-line:nth-of-type(2) > span { animation-delay: 0.16s; }
@keyframes lineUp { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-anim > *, .split-line > span { opacity: 1; transform: none; }
}

/* ---------- landing (home) ---------- */
.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;   /* the foot must never sit beside the hero */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

#graph-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
  -webkit-mask-image: radial-gradient(115% 105% at 50% 45%, #000 30%, transparent 82%);
  mask-image: radial-gradient(115% 105% at 50% 45%, #000 30%, transparent 82%);
}
#graph-canvas.is-ready { opacity: 1; }

.landing__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  padding-block: clamp(60px, 10vh, 120px);
}
.landing__inner::before {
  content: "";
  position: absolute;
  inset: -6% -10%;
  background: radial-gradient(58% 52% at 50% 50%, rgba(255, 255, 255, 0.94) 38%, rgba(255, 255, 255, 0) 78%);
  z-index: -1;
  pointer-events: none;
}

/* one spacing unit governs the whole hero — every gap is exactly this */
.landing__inner { --gap: clamp(22px, 3vw, 34px); }

.landing__name {
  font-size: clamp(3rem, 11vw, 8.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-bottom: var(--gap);
  display: inline-block;
  transition: letter-spacing 1.4s var(--ease);
}

/* hover: a greyscale sheen crosses the name, slowly, and nothing else */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .landing__name {
    background-image: linear-gradient(100deg,
      var(--ink) 0%, var(--ink) 38%,
      #9a9aa0 48%, #c9c9ce 52%, #9a9aa0 56%,
      var(--ink) 66%, var(--ink) 100%);
    background-size: 280% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transition: background-position 2.6s var(--ease), letter-spacing 1.4s var(--ease);
  }
  .landing__name:hover { background-position: 0 0; }
}
.landing__name:hover { letter-spacing: -0.04em; }

/* origin mark — monochrome silhouette that becomes the real flag on hover */
.landing__origin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--gap);
  transition: color 0.3s var(--ease);
}
.landing__origin:hover { color: var(--ink); }

.landing__origin-flag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.landing__origin-flag svg {
  width: 13px;
  height: auto;
  display: block;
  transition: opacity 0.35s var(--ease);
}
.landing__origin-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}
.landing__origin:hover svg { opacity: 0; }
.landing__origin:hover .landing__origin-emoji { opacity: 1; transform: scale(1); }

.landing__role {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: var(--gap);
}
.landing__role span { color: var(--ink-3); padding-inline: 6px; }

.landing__email {
  font-size: 0.9375rem;
  letter-spacing: -0.008em;
  color: var(--ink-2);
  margin-bottom: var(--gap);
}
.landing__email a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.landing__email a:hover { color: var(--ink); border-color: var(--ink); }
.landing__intro {
  font-size: clamp(1.02rem, 1.7vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  max-width: 40ch;
  margin: 0 auto 42px;
}

.landing__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.landing__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 980px;
  font-size: 0.9375rem;
  letter-spacing: -0.012em;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
.landing__links a:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.landing__links .ext { font-size: 0.75rem; color: currentColor; opacity: 0.5; }

.landing__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--ink-3);
  z-index: 1;
}
.landing__foot a:hover { color: var(--ink); }
@media (max-width: 620px) {
  .landing__foot {
    position: static;
    margin-top: 40px;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 6px;
  }
  .landing { min-height: 100svh; padding-bottom: 40px; }
  .landing__links a { padding: 10px 18px; font-size: 0.875rem; }
  .landing__intro { margin-bottom: 32px; }
}

/* ---------- print ---------- */
@media print {
  .nav, .scroll-cue, .footer, .btn-row { display: none !important; }
  body { font-size: 11pt; }
  .reveal { opacity: 1; transform: none; }
}
