/* =====================================================================
   Dr. Shailesh Sivan — Portfolio
   Design tokens: deep teal ink + vivid teal + soft mint + white,
   amber reserved strictly for honours.
   Type: Sora (display) · Manrope (body) · JetBrains Mono (labels/data)
   ===================================================================== */

:root {
  --ink:        #0a3331;   /* deep teal-black, body text          */
  --ink-soft:   #3f615e;   /* muted teal-grey                     */
  --teal:       #0fb5a6;   /* vivid accent                        */
  --teal-deep:  #0c8a80;   /* hover / stronger accent             */
  --teal-700:   #0a5d57;   /* headings accent                     */
  --mint:       #e8f7f4;   /* soft surface                        */
  --mint-2:     #d6efea;   /* slightly deeper surface             */
  --line:       #cfe6e1;   /* hairline borders                    */
  --white:      #ffffff;
  --paper:      #f6fbfa;   /* page background                     */
  --amber:      #f5a524;   /* HONOURS ONLY                        */

  --shadow-sm: 0 1px 2px rgba(10,51,49,.06), 0 2px 8px rgba(10,51,49,.05);
  --shadow-md: 0 8px 30px rgba(10,51,49,.10);
  --shadow-lg: 0 24px 60px rgba(10,51,49,.16);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--teal); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--teal);
}
.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-top: .8rem;
  color: var(--ink);
}
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.section--tint { background: linear-gradient(180deg, var(--white), var(--mint) 120%); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  display: flex; align-items: center; gap: .55rem;
}
.nav__brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(15,181,166,.18);
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-size: .9rem; font-weight: 600; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 99px;
  transition: color .25s, background .25s;
}
.nav__links a:hover { color: var(--teal-deep); background: var(--mint); }
.nav__cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--ink); color: #fff !important;
  padding: 10px 18px !important; border-radius: 99px;
  font-weight: 700; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), background .25s;
}
.nav__cta:hover { transform: translateY(-2px); background: var(--teal-700); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
#graph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; cursor: crosshair;
}
.hero::after { /* gentle wash so text stays legible over the graph */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 15% 30%, rgba(246,251,250,.92) 0%, rgba(246,251,250,.55) 42%, rgba(246,251,250,0) 70%);
}
.hero__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}
.hero__content { max-width: 640px; }

/* ---------- hero portrait ---------- */
.hero__portrait {
  position: relative;
  isolation: isolate;
  justify-self: end;
  width: 100%;
  max-width: 380px;
}
.hero__portrait-glow {
  position: absolute; inset: -16% -12% -22% -14%;
  z-index: 0; border-radius: 44px; pointer-events: none;
  background:
    radial-gradient(58% 55% at 72% 18%, rgba(15,181,166,.34), transparent 70%),
    radial-gradient(52% 52% at 22% 92%, rgba(12,138,128,.24), transparent 72%);
  filter: blur(26px);
}
.hero__portrait-frame {
  position: relative; z-index: 1;
  aspect-ratio: 82 / 107;
  border-radius: 26px;
  overflow: hidden;
  background: var(--mint);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line), inset 0 0 0 4px rgba(255,255,255,.35);
}
.hero__portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 14%;
  transition: transform .9s var(--ease);
}
.hero__portrait:hover .hero__portrait-frame img { transform: scale(1.04); }
.hero__portrait-frame::after { /* brand-tone wash for cohesion + text legibility */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(185deg, rgba(15,181,166,.10) 0%, transparent 30%, transparent 58%, rgba(10,51,49,.30) 100%);
}
.hero__portrait-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-deep);
  background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 7px 12px; border-radius: 99px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.portrait-role { display: inline-block; transition: opacity .22s var(--ease); }

/* nicer entrance for the portrait (revealed on load by main.js) */
.hero__portrait.reveal { transform: translateY(30px) scale(.96); }
.hero__portrait.reveal.in { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero__portrait-frame { animation: heroFloat 6.5s var(--ease) infinite; }
  @keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
}
.hero__status {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 99px; color: var(--teal-deep);
  backdrop-filter: blur(6px);
}
.hero__status .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(15,181,166,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(15,181,166,.5)} 70%{box-shadow:0 0 0 12px rgba(15,181,166,0)} 100%{box-shadow:0 0 0 0 rgba(15,181,166,0)} }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: .98; letter-spacing: -.035em;
  margin: 1.1rem 0 .4rem;
}
.hero h1 .accent { color: var(--teal-deep); }
.hero__roles {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  color: var(--ink-soft); letter-spacing: -.01em;
  min-height: 1.6em;
}
.hero__roles .typed { color: var(--teal-700); font-weight: 700; }
.hero__roles .caret { color: var(--teal); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__lead { max-width: 560px; margin: 1.6rem 0 0; font-size: 1.12rem; color: var(--ink-soft); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.4rem; font-size: .92rem; color: var(--ink-soft); }
.hero__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta svg { width: 16px; height: 16px; color: var(--teal-deep); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .98rem;
  padding: 14px 24px; border-radius: 99px; cursor: pointer; border: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px rgba(15,181,166,.32); }
.btn--primary:hover { transform: translateY(-3px); background: var(--teal-deep); box-shadow: 0 16px 32px rgba(15,181,166,.4); }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--teal); color: var(--teal-deep); }

.hero__socials { display: flex; gap: 10px; margin-top: 1.8rem; }
.hero__socials a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: transform .25s var(--ease), color .25s, border-color .25s;
}
.hero__socials a:hover { transform: translateY(-3px); color: var(--teal-deep); border-color: var(--teal); }
.hero__socials svg { width: 18px; height: 18px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft); display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
.scroll-hint .line { width: 1px; height: 36px; background: linear-gradient(var(--teal), transparent); animation: drop 1.8s var(--ease) infinite; }
@keyframes drop { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.stat { background: var(--white); padding: 26px 18px; text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--teal-700); letter-spacing: -.03em; }
.stat__label { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about__text p { margin-bottom: 1.1rem; font-size: 1.06rem; color: var(--ink-soft); }
.about__text p:first-child { color: var(--ink); font-size: 1.15rem; }
.about__card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.about__card h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 14px; }
.lang { margin-bottom: 14px; }
.lang__name { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.lang__bar { height: 6px; background: var(--mint-2); border-radius: 99px; overflow: hidden; }
.lang__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-deep)); border-radius: 99px; width: 0; transition: width 1.1s var(--ease); }
.philosophy { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--teal-700); }

/* ---------- timeline (experience) ---------- */
.timeline { position: relative; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--teal), var(--mint-2)); }
.tl-item { position: relative; padding: 0 0 38px 42px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--teal);
  box-shadow: 0 0 0 4px var(--mint);
}
.tl-item__time { font-family: var(--font-mono); font-size: .76rem; color: var(--teal-deep); letter-spacing: .04em; }
.tl-item__role { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 4px 0 2px; }
.tl-item__org { font-weight: 600; color: var(--ink-soft); }
.tl-item__loc { font-size: .85rem; color: var(--ink-soft); opacity: .85; margin-bottom: 10px; }
.tl-item__loc svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.tl-item ul { list-style: none; display: grid; gap: 7px; }
.tl-item li { position: relative; padding-left: 18px; font-size: .96rem; color: var(--ink-soft); }
.tl-item li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* ---------- education cards ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.edu-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.edu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.edu-card__deg { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--teal-700); }
.edu-card__field { font-weight: 600; margin: 6px 0 14px; }
.edu-card__meta { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft); display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- expertise ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.exp-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.exp-card h4 { font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 12px; display: flex; align-items: center; gap: .5rem; }
.exp-card h4 .marker { width: 8px; height: 8px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: .78rem; font-weight: 600; color: var(--teal-700); background: var(--mint); border: 1px solid var(--line); padding: 5px 11px; border-radius: 99px; transition: background .2s, color .2s; }
.chip:hover { background: var(--teal); color: #fff; }

/* ---------- tech skills ---------- */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; }
.tech-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.tech-card h4 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 14px; }

/* ---------- publications ---------- */
.pub-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.tabs { display: inline-flex; background: var(--mint); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.tab { font-weight: 700; font-size: .9rem; padding: 9px 20px; border-radius: 99px; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; transition: .25s; }
.tab.active { background: var(--white); color: var(--teal-deep); box-shadow: var(--shadow-sm); }
.search {
  display: flex; align-items: center; gap: 8px; background: var(--white);
  border: 1px solid var(--line); border-radius: 99px; padding: 9px 16px; min-width: 240px;
}
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,181,166,.15); }
.search svg { width: 16px; height: 16px; color: var(--ink-soft); }
.search input { border: 0; outline: 0; font-family: var(--font-body); font-size: .92rem; width: 100%; background: transparent; color: var(--ink); }

.pub-list { display: grid; gap: 12px; }
.pub {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.pub:hover { transform: translateX(4px); border-color: var(--teal); box-shadow: var(--shadow-md); }
.pub__year { font-family: var(--font-mono); font-weight: 700; font-size: .95rem; color: var(--teal-700); padding-top: 2px; }
.pub__title { font-weight: 700; font-size: 1.02rem; line-height: 1.35; }
.pub__title a { color: inherit; }
.pub__title a:hover { color: var(--teal-deep); }
.pub__venue { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.pub__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; font-weight: 600; }
.tag--q1 { background: #d8f3ef; color: #0a6b62; }
.tag--q2 { background: #e3f4f1; color: #0c7a72; }
.tag--q3, .tag--q4 { background: var(--mint); color: var(--teal-deep); }
.tag--scie, .tag--scopus, .tag--esci { background: #eef1f4; color: #41566b; }
.tag--best { background: #fdeccc; color: #97640a; }
.tag--review { background: #f3e9da; color: #8a6d3b; }
.tag--default { background: var(--mint); color: var(--teal-deep); }
.pub__empty { text-align: center; padding: 40px; color: var(--ink-soft); font-family: var(--font-mono); font-size: .9rem; }
.show-more { margin: 22px auto 0; display: block; }

/* ---------- patents ---------- */
.patent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.patent {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.patent:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.patent__badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--teal); padding: 5px 12px; border-radius: 99px; }
.patent__icon { position: absolute; top: 24px; right: 24px; width: 34px; height: 34px; color: var(--mint-2); }
.patent h4 { font-family: var(--font-display); font-size: 1.18rem; line-height: 1.25; margin: 16px 0 8px; max-width: 88%; }
.patent__ref { font-family: var(--font-mono); font-size: .78rem; color: var(--teal-deep); margin-bottom: 12px; }
.patent p { font-size: .94rem; color: var(--ink-soft); }

/* ---------- books ---------- */
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.book-feature { background: linear-gradient(135deg, var(--teal-700), var(--teal-deep)); color: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); }
.book-feature .eyebrow { color: #bff3ec; }
.book-feature .eyebrow::before { background: #7fe0d4; }
.book-feature h4 { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; margin: 14px 0 10px; }
.book-feature p { color: #d9f5f1; font-size: .96rem; }
.book-feature .pub-meta { font-family: var(--font-mono); font-size: .76rem; color: #adeae2; margin-top: 14px; }
.chapters { display: grid; gap: 12px; }
.chapter { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.chapter:hover { transform: translateX(4px); }
.chapter h5 { font-weight: 700; font-size: .98rem; line-height: 1.3; }
.chapter p { font-size: .84rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- awards ---------- */
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.award {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.award::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--amber); }
.award:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.award__star { width: 30px; height: 30px; color: var(--amber); margin-bottom: 12px; }
.award h4 { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.25; }
.award__year { font-family: var(--font-mono); font-size: .74rem; color: var(--amber); font-weight: 700; margin: 6px 0; }
.award p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- consultancy ---------- */
.consult-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.consult { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.consult:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.consult h4 { font-family: var(--font-display); font-size: 1.06rem; color: var(--teal-700); margin-bottom: 8px; }
.consult p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- engagement (talks / bodies / reviewer) ---------- */
.engage-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.panel h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.panel .count { font-family: var(--font-mono); font-size: .74rem; color: var(--teal-deep); letter-spacing: .08em; }
.talk-list { list-style: none; display: grid; gap: 10px; margin-top: 16px; max-height: 420px; overflow-y: auto; padding-right: 6px; }
.talk-list::-webkit-scrollbar { width: 6px; }
.talk-list::-webkit-scrollbar-thumb { background: var(--mint-2); border-radius: 99px; }
.talk-list li { position: relative; padding-left: 20px; font-size: .92rem; color: var(--ink-soft); }
.talk-list li::before { content: "▹"; position: absolute; left: 0; color: var(--teal); }
.stack { display: grid; gap: 16px; }
.body-item { display: flex; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.body-item:last-child { border-bottom: 0; }
.body-item .tagk { font-family: var(--font-display); font-weight: 800; color: var(--teal-700); min-width: 56px; }
.body-item p { font-size: .9rem; color: var(--ink-soft); }
.rev-list { list-style: none; display: grid; gap: 8px; margin-top: 12px; max-height: 320px; overflow-y: auto; padding-right: 6px; }
.rev-list li { font-size: .88rem; color: var(--ink-soft); padding-left: 16px; position: relative; }
.rev-list li::before { content: "·"; position: absolute; left: 4px; color: var(--teal); font-weight: 700; }

/* ---------- contact ---------- */
.contact { background: linear-gradient(160deg, var(--ink), #06403c); color: #fff; }
.contact .section-head h2 { color: #fff; }
.contact .eyebrow { color: #7fe0d4; }
.contact .eyebrow::before { background: #7fe0d4; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact__lead { font-size: 1.15rem; color: #cdeae6; max-width: 460px; }
.contact__links { display: grid; gap: 14px; margin-top: 26px; }
.contact__link { display: inline-flex; align-items: center; gap: 12px; color: #eafaf7; font-weight: 600; }
.contact__link svg { width: 18px; height: 18px; color: var(--teal); }
.contact__link:hover { color: var(--teal); }
.contact__cta { display: flex; flex-direction: column; gap: 14px; }
.contact__cta .btn--primary { justify-content: center; }
.contact__cta .btn--ghost { justify-content: center; background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.2); }
.contact__cta .btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.contact__socials { display: flex; gap: 12px; margin-top: 8px; }
.contact__socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); color: #eafaf7; transition: .25s; }
.contact__socials a:hover { background: var(--teal); transform: translateY(-3px); }
.contact__socials svg { width: 18px; height: 18px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #9fc4bf; padding: 28px 0; text-align: center; font-size: .84rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer a { color: #cdeae6; }
.footer a:hover { color: var(--teal); }
.footer .admin-link { font-family: var(--font-mono); font-size: .72rem; opacity: .6; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .pulse, .caret, .line { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .about__grid, .engage-grid, .contact__grid, .books-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .hero__content { max-width: 720px; }
  .hero__content .hero__meta,
  .hero__content .hero__cta,
  .hero__content .hero__socials { justify-content: center; }
  .hero__content .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__portrait { order: -1; justify-self: center; max-width: 268px; }
  .hero__portrait-frame { aspect-ratio: 4 / 5; }
  .hero__portrait-frame img { object-position: center 8%; }
}
@media (max-width: 760px) {
  .nav__links { position: fixed; inset: 64px 16px auto 16px; flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-lg);
    transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; }
  .nav__toggle { display: block; }
  .nav__links .nav__cta { text-align: center; justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pub { grid-template-columns: 48px 1fr; gap: 12px; padding: 16px; }
  .pub-controls { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }
  .hero__portrait { max-width: 220px; }
}
