/* =========================================================================
   Elima Shehu — personal academic site
   Design system: warm paper + deep indigo, editorial serif/sans pairing,
   geometric identity drawn from point–line incidences (algebraic vision).
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:      #fbfaf6;
  --paper-2:    #f4f1e9;
  --surface:    #ffffff;
  --ink:        #16171d;
  --ink-soft:   #34363f;
  --muted:      #64656f;
  --faint:      #8b8c96;
  --line:       #e7e3d8;
  --line-2:     #efece3;

  --accent:     #3b3f8f;   /* deep indigo — display + marks           */
  --accent-2:   #4f46e5;   /* brighter indigo — links / interactive   */
  --accent-3:   #eef0ff;   /* indigo tint                             */
  --gold:       #a9791f;   /* scholarly ochre — awards / highlights    */
  --gold-soft:  #f6edd7;

  --shadow-sm: 0 1px 2px rgba(20,21,26,.03), 0 1px 2px rgba(20,21,26,.04);
  --shadow-md: 0 2px 8px rgba(20,21,26,.04), 0 8px 22px rgba(20,21,26,.05);
  --shadow-lg: 0 6px 18px rgba(20,21,26,.05), 0 16px 40px rgba(20,21,26,.07);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  --paper:      #0e0f14;
  --paper-2:    #14161d;
  --surface:    #161821;
  --ink:        #eceef4;
  --ink-soft:   #cdcfda;
  --muted:      #9a9cae;
  --faint:      #74768a;
  --line:       #262a35;
  --line-2:     #20232d;

  --accent:     #aeb4ff;
  --accent-2:   #99a0ff;
  --accent-3:   #1b1e2e;
  --gold:       #d7ad5a;
  --gold-soft:  #2a2517;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.55);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
::selection { background: var(--accent-3); color: var(--accent); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 19px; color: var(--ink); font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-top: 1px; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); text-decoration: none; }

.theme-toggle {
  margin-left: 8px; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: .2s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent-2); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

.nav__burger { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 26%, transparent 58%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 26%, transparent 58%);
}
:root[data-theme="dark"] .hero__bg { opacity: .7; }
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.35fr .9fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-3);
  padding: 7px 13px; border-radius: 100px; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }

.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 4.7rem);
  margin: 20px 0 0; letter-spacing: -0.025em; font-weight: 500;
  font-optical-sizing: auto;
}
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.hero__role { font-size: 1.28rem; color: var(--ink-soft); margin: 16px 0 0; font-weight: 450; }
.hero__role b { font-weight: 650; color: var(--ink); }
.hero__lead { font-size: 1.08rem; color: var(--muted); max-width: 40ch; margin: 20px 0 0; line-height: 1.7; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 550;
  padding: 12px 20px; border-radius: 11px; cursor: pointer; transition: .22s var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
:root[data-theme="dark"] .btn--primary { color: #0e0f14; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-sm); }

.hero__social { display: flex; gap: 10px; margin-top: 26px; }
.hero__social a {
  width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; color: var(--muted); transition: .2s var(--ease);
}
.hero__social a:hover { color: var(--accent-2); border-color: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.hero__social svg { width: 20px; height: 20px; }

/* portrait — plain, light frame */
.portrait { position: relative; justify-self: center; }
.portrait__frame {
  position: relative; width: min(320px, 76vw); aspect-ratio: 1/1.08;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--paper-2);
}
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* affiliations strip */
.affil { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.affil__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; padding: 20px 0; }
.affil__label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.affil__item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; }
.affil__item svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.sec-num { font-family: var(--serif); font-size: 15px; color: var(--accent); font-weight: 600; letter-spacing: .05em; }
.sec-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 500; }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); align-self: center; }

.lede { font-size: 1.32rem; line-height: 1.6; color: var(--ink-soft); font-family: var(--serif); font-weight: 400; max-width: 40ch; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about p { color: var(--muted); margin: 0 0 18px; }
.about p:last-child { margin-bottom: 0; }
.about .lede { color: var(--ink-soft); margin-bottom: 26px; }
.about a { font-weight: 550; }

.facts { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.fact { display: flex; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.fact:last-child { border-bottom: 0; }
.fact__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-3); color: var(--accent); display: grid; place-items: center; flex: none; }
.fact__ic svg { width: 20px; height: 20px; }
.fact__k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.fact__v { font-size: 15.5px; color: var(--ink); font-weight: 500; margin-top: 2px; }
.fact__v span { color: var(--muted); font-weight: 400; }

/* Research cards */
.research { background: var(--paper-2); }
:root[data-theme="dark"] .research { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: .28s var(--ease); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover::after { transform: scaleX(1); }
.card__ic { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-3); color: var(--accent); display: grid; place-items: center; margin-bottom: 20px; }
.card__ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.32rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.62; }
.card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.tag { font-size: 12px; font-weight: 550; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); padding: 4px 10px; border-radius: 7px; }

/* Publications */
.pub-group + .pub-group { margin-top: 46px; }
.pub-group__h { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.pub-group__h h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; color: var(--ink); text-transform: uppercase; font-size: 13.5px; letter-spacing: .14em; }
.pub-group__h .count { font-size: 12px; color: var(--faint); background: var(--paper-2); border: 1px solid var(--line); border-radius: 100px; padding: 2px 10px; font-weight: 600; }
.pub-group__h .rule { flex: 1; height: 1px; background: var(--line); }

.pub {
  display: grid; grid-template-columns: 74px 1fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.pub:hover .pub__year { color: var(--accent); }
.pub__year { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); font-weight: 500; padding-top: 2px; transition: color .2s; }
.pub__title { font-size: 1.2rem; font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.35; }
.pub__title a { color: inherit; background-image: linear-gradient(var(--accent-2), var(--accent-2)); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), color .2s; }
.pub__title a:hover { color: var(--accent-2); background-size: 100% 1.5px; text-decoration: none; }
.pub__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; }
.venue { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-3); padding: 4px 11px; border-radius: 7px; }
.venue--stat { color: #0f766e; background: #dff5f0; }
:root[data-theme="dark"] .venue--stat { color: #6ee7d3; background: #10261f; }
.authors { font-size: 14.5px; color: var(--muted); }
.authors b { color: var(--ink-soft); font-weight: 650; }
.award { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--gold); background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); padding: 3px 10px; border-radius: 100px; }
.award svg { width: 13px; height: 13px; }
.pub__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.plink { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550; color: var(--ink-soft); border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; border-radius: 8px; transition: .2s var(--ease); }
.plink:hover { color: var(--accent-2); border-color: var(--accent-2); text-decoration: none; transform: translateY(-1px); }
.plink svg { width: 14px; height: 14px; }
.plink--code { color: var(--accent); }

/* Software */
.software { background: var(--paper-2); }
.soft-card {
  display: grid; grid-template-columns: 1.2fr .95fr; gap: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.soft-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent), var(--accent-2)); }
.soft-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.soft-card__ic { width: 54px; height: 54px; border-radius: 14px; background: var(--accent-3); color: var(--accent); display: grid; place-items: center; flex: none; }
.soft-card__ic svg { width: 28px; height: 28px; }
.soft-card__name { font-family: var(--mono); font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.soft-card__tagline { font-size: 14.5px; color: var(--accent); font-weight: 550; margin-top: 3px; }
.soft-card__desc { color: var(--muted); font-size: 15.5px; line-height: 1.66; margin: 0 0 18px; }
.soft-card__desc b { color: var(--ink-soft); font-weight: 650; }
.soft-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.soft-card__note { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--faint); margin: 20px 0 0; }
.soft-card__note svg { width: 15px; height: 15px; flex: none; color: var(--accent); }
.soft-card__note a { font-weight: 550; }

.soft-card__side { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.soft-install { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.soft-install__bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: color-mix(in srgb, var(--ink) 5%, var(--paper-2)); border-bottom: 1px solid var(--line); }
.soft-install__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.soft-install__bar i:nth-child(1) { background: #e5836f; }
.soft-install__bar i:nth-child(2) { background: #e3c05a; }
.soft-install__bar i:nth-child(3) { background: #7bbf78; }
.soft-install__bar span { font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; }
.soft-install__code {
  margin: 0; padding: 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
  color: var(--ink-soft); overflow-x: auto; white-space: pre; -webkit-overflow-scrolling: touch;
}
.soft-install__code .pr { color: var(--accent); user-select: none; }
.soft-install__code .st { color: #0f766e; }
:root[data-theme="dark"] .soft-install__code .st { color: #6ee7d3; }
.soft-card__links { display: flex; flex-wrap: wrap; gap: 12px; }
.soft-card__links .btn svg { width: 18px; height: 18px; }

/* Activities timeline */
.activities { background: var(--paper); }
#cv { background: var(--paper-2); }
.act-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.act-col { display: flex; flex-direction: column; gap: 26px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.panel__h { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.panel__h .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-3); color: var(--accent); display: grid; place-items: center; flex: none; }
.panel__h .ic svg { width: 19px; height: 19px; }
.panel__h h3 { font-size: 1.18rem; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: var(--line); }
.tl li { position: relative; padding: 0 0 20px 26px; }
.tl li:last-child { padding-bottom: 0; }
.tl li::before { content: ""; position: absolute; left: 0; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.tl .t { font-size: 15px; color: var(--ink); font-weight: 550; line-height: 1.4; }
.tl .t em { font-style: italic; color: var(--ink-soft); font-weight: 500; }
.tl .m { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.tl .m .where { color: var(--ink-soft); }
.chip { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 6px; margin-left: 6px; }
.chip--talk { color: var(--accent); background: var(--accent-3); }
.chip--poster { color: var(--gold); background: var(--gold-soft); }

/* CV */
.cv-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
.edu li { position: relative; padding: 0 0 26px 30px; list-style: none; }
.edu { margin: 0; padding: 0; position: relative; }
.edu::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 10px; width: 1.5px; background: var(--line); }
.edu li::before { content: ""; position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-3); }
.edu li:last-child { padding-bottom: 0; }
.edu .deg { font-size: 1.08rem; font-weight: 650; color: var(--ink); font-family: var(--serif); }
.edu .org { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.edu .yr { font-size: 12.5px; font-weight: 600; color: var(--accent); letter-spacing: .03em; text-transform: uppercase; margin-top: 4px; display: inline-block; }
.edu .note { font-size: 13.5px; color: var(--faint); font-style: italic; margin-top: 3px; }

.side-panel { display: flex; flex-direction: column; gap: 22px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.mini h4 { font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 14px; }
.mini ul { list-style: none; margin: 0; padding: 0; }
.mini li { font-size: 14.5px; color: var(--ink-soft); padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.mini li:last-child { border-bottom: 0; }
.mini li b { color: var(--ink); font-weight: 600; }
.mini li span { color: var(--muted); font-size: 13px; display: block; margin-top: 1px; }
.mini--accent { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent); }
.mini--accent h4 { color: var(--gold); }
.mini--accent .award-title { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.mini--accent .award-sub { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Contact */
.contact { position: relative; overflow: hidden; }
.contact__card {
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 96%, #000), color-mix(in srgb, var(--accent) 62%, #1a1030));
  border-radius: 28px; padding: 64px 56px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.contact__card .bg { position: absolute; inset: 0; opacity: .5; z-index: 0; }
.contact__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; }
.contact p { color: rgba(255,255,255,.82); margin: 16px 0 0; font-size: 1.05rem; max-width: 44ch; }
.contact__links { display: flex; flex-direction: column; gap: 12px; }
.clink {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 13px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: .22s var(--ease);
  backdrop-filter: blur(4px);
}
.clink:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); text-decoration: none; }
.clink svg { width: 22px; height: 22px; flex: none; opacity: .9; }
.clink > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.clink .k { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .65; font-weight: 600; }
.clink .v { display: block; font-size: 15px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.footer__brand .mark { width: 26px; height: 26px; }
.footer p { font-size: 13.5px; color: var(--faint); margin: 0; }
.footer__links { display: flex; gap: 18px; }
.footer__links a { font-size: 14px; color: var(--muted); font-weight: 500; }
.footer__links a:hover { color: var(--accent-2); text-decoration: none; }

/* ---------- Reveal animation (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .portrait { order: -1; }
  .about, .cv-grid, .contact__inner { grid-template-columns: 1fr; gap: 34px; }
  .cards { grid-template-columns: 1fr; }
  .act-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  section { padding: 60px 0; }
  .nav__links { display: none; }
  .nav__burger { display: grid; }
  .hero { padding: 48px 0 40px; }
  .contact__card { padding: 40px 26px; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .pub__year { padding-top: 0; }
  .sec-head { flex-wrap: wrap; }
  .portrait__frame { width: min(280px, 78vw); }
}
