/* ============================================================
   Md Abu Bakr Siddique — Academic Portfolio
   Formal · Elegant · Refined
   ============================================================ */

:root {
  --ink: #0a1628;
  --ink-soft: #132338;
  --navy: #1a3352;
  --slate: #3d5268;
  --muted: #6b7c8f;
  --line: rgba(26, 51, 82, 0.12);
  --pearl: #f4f6f8;
  --paper: #eef1f4;
  --white: #ffffff;
  --accent: #2a6f7c;
  --accent-soft: #3d8a98;
  --accent-glow: rgba(42, 111, 124, 0.18);
  --gold: #9a7b4f;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 7.5rem;

  --radius: 2px;
  --max: 1220px;
  --narrow: 780px;
  --header-h: 4.5rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 20px 50px rgba(10, 22, 40, 0.08);
}

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

html {
  /* Balanced scale for typical desktop/laptop screens */
  font-size: clamp(16px, 0.35vw + 14px, 18.5px);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(42, 111, 124, 0.07), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(154, 123, 79, 0.05), transparent 50%),
    linear-gradient(180deg, var(--pearl) 0%, var(--paper) 48%, #e8ecef 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--ink);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

p {
  margin: 0;
}

.page-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 3rem, var(--narrow));
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 246, 248, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.nav {
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-menu a {
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Light nav while over the dark hero */
.site-header:not(.is-scrolled) .nav-brand,
.site-header:not(.is-scrolled) .nav-menu a {
  color: rgba(247, 249, 251, 0.88);
}

.site-header:not(.is-scrolled) .nav-brand:hover,
.site-header:not(.is-scrolled) .nav-menu a:hover {
  color: #ffffff;
}

.site-header:not(.is-scrolled) .nav-cta {
  border-color: rgba(247, 249, 251, 0.45);
  color: #ffffff !important;
}

.site-header:not(.is-scrolled) .nav-cta:hover {
  background: #ffffff;
  color: var(--ink) !important;
  border-color: #ffffff;
}

.site-header:not(.is-scrolled) .nav-toggle span {
  background: #ffffff;
}

.nav-menu a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--navy);
  color: var(--ink) !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--pearl) !important;
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  margin: 0.35rem auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  background:
    linear-gradient(165deg, #07131f 0%, #0d2238 42%, #123047 72%, #1a3d4a 100%);
  color: var(--pearl);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero-orb--one {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -8%;
  right: -5%;
  background: radial-gradient(circle, rgba(61, 138, 152, 0.35), transparent 70%);
}

.hero-orb--two {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  bottom: 5%;
  left: -8%;
  background: radial-gradient(circle, rgba(154, 123, 79, 0.18), transparent 70%);
  animation-delay: -6s;
}

.hero-wave {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background:
    linear-gradient(180deg, transparent, rgba(7, 19, 31, 0.35)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 28px,
      rgba(255, 255, 255, 0.015) 28px,
      rgba(255, 255, 255, 0.015) 29px
    );
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, var(--max));
  margin-inline: auto;
}

.hero-role {
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 246, 248, 0.62);
  margin-bottom: 1.25rem;
}

.hero-name {
  font-size: clamp(3.25rem, 8vw, 5.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #f7f9fb;
  margin-bottom: 1.35rem;
  line-height: 1.08;
  max-width: none;
}

.hero-lede {
  max-width: 40rem;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(244, 246, 248, 0.78);
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--pearl);
  color: var(--ink);
}

.btn-primary:hover {
  background: #ffffff;
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(244, 246, 248, 0.35);
  color: var(--pearl);
}

.btn-ghost:hover {
  border-color: var(--pearl);
  color: #ffffff;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 246, 248, 0.12);
}

.profile-icons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid rgba(244, 246, 248, 0.2);
  border-radius: 50%;
  color: rgba(244, 246, 248, 0.85);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.profile-icon img,
.profile-icon svg {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
}

.profile-icon:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(244, 246, 248, 0.45);
  color: #ffffff;
}

/* ---------- Sections ---------- */

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: var(--space-lg);
  max-width: 40rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(2.3rem, 4.5vw, 3.35rem);
  margin-bottom: 0.85rem;
}

.section-desc {
  color: var(--slate);
  font-size: 1.08rem;
  max-width: 40rem;
}

/* Home band: content + news panel */

.home-band {
  padding: var(--space-2xl) 0;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(42, 111, 124, 0.06), transparent 55%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f5 100%);
  border-top: 1px solid var(--line);
}

.home-band > .container {
  width: min(100% - 2.5rem, 1320px);
}

.home-band-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(22rem, 28rem);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
}

.home-band-main {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.home-block {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2.15rem) clamp(1.35rem, 2.2vw, 2rem);
  background: #ffffff;
  border: 1px solid rgba(26, 51, 82, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.home-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--gold) 100%);
}

.home-block .section-head {
  margin-bottom: 1.75rem;
}

.home-block .section-desc {
  max-width: 36rem;
}

.home-block .interest-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 2rem;
}

.news-panel {
  position: sticky;
  top: calc(var(--header-h) + 1.15rem);
  padding: 1.65rem 1.55rem 1.85rem;
  background:
    linear-gradient(165deg, #ffffff 0%, #f4f7f9 100%);
  border: 1px solid rgba(26, 51, 82, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 16px 36px rgba(10, 22, 40, 0.07);
}

.news-panel::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}

.news-panel-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(26, 51, 82, 0.12);
}

.news-item + .news-item {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(26, 51, 82, 0.1);
}

.news-date {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.news-title {
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 1.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.news-title a {
  color: inherit;
}

.news-title a:hover {
  color: var(--accent);
}

.news-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
}

/* Resources */

.resources.page-section {
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(42, 111, 124, 0.05), transparent 55%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f5 100%);
}

.resource-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.35rem, 2.5vw, 1.85rem);
}

.resource-group {
  position: relative;
  padding: clamp(1.35rem, 2.2vw, 1.85rem);
  background: #ffffff;
  border: 1px solid rgba(26, 51, 82, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.resource-group:nth-child(2) {
  grid-column: 1 / -1;
}

.resource-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--gold) 100%);
}

.resource-group-head {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(26, 51, 82, 0.1);
}

.resource-group-index {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  line-height: 1;
}

.resource-group-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.resource-list {
  display: grid;
  gap: 0;
  margin-top: 0.35rem;
}

.resource-list li + li {
  border-top: 1px solid rgba(26, 51, 82, 0.08);
}

.resource-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0.35rem 1.05rem 0;
  color: inherit;
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.resource-list a:hover {
  padding-left: 0.35rem;
}

.resource-list a:hover .resource-name {
  color: var(--accent);
}

.resource-list a:hover .resource-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.resource-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.resource-name {
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.resource-meta {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.resource-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.25s var(--ease);
}

@media (max-width: 860px) {
  .resource-groups {
    grid-template-columns: 1fr;
  }

  .resource-group:nth-child(2) {
    grid-column: auto;
  }
}

/* About / Interests */

.interest-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}

.interest-list h2,
.interest-list h3 {
  font-size: 1.7rem;
  margin-bottom: 0.55rem;
  position: relative;
  padding-bottom: 0.65rem;
}

.interest-list h2::after,
.interest-list h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.interest-list p {
  color: var(--slate);
  max-width: 28rem;
}

/* Research highlights */

.page-inner .site-header,
.page-inner .site-header.is-scrolled {
  background: #e8eef3;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(26, 51, 82, 0.14);
}

.page-inner .site-header .nav-brand,
.page-inner .site-header:not(.is-scrolled) .nav-brand {
  color: var(--ink);
}

.page-inner .site-header .nav-menu a,
.page-inner .site-header:not(.is-scrolled) .nav-menu a {
  color: var(--navy);
}

.page-inner .site-header .nav-brand:hover,
.page-inner .site-header .nav-menu a:hover,
.page-inner .site-header:not(.is-scrolled) .nav-brand:hover,
.page-inner .site-header:not(.is-scrolled) .nav-menu a:hover {
  color: var(--accent);
}

.page-inner .site-header .nav-cta,
.page-inner .site-header:not(.is-scrolled) .nav-cta {
  border-color: var(--navy);
  color: var(--ink) !important;
}

.page-inner .site-header .nav-cta:hover,
.page-inner .site-header:not(.is-scrolled) .nav-cta:hover {
  background: var(--ink);
  color: var(--pearl) !important;
  border-color: var(--ink);
}

.page-inner .site-header .nav-toggle span,
.page-inner .site-header:not(.is-scrolled) .nav-toggle span {
  background: var(--ink);
}

.page-section {
  padding-top: calc(var(--header-h) + var(--space-xl));
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.5vw, 3.35rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.page-section + .section {
  padding-top: var(--space-lg);
}

.page-back {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.page-inner .page-back .btn-ghost {
  border-color: var(--navy);
  color: var(--ink);
  background: #e8eef3;
}

.page-inner .page-back .btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--pearl);
}

/* Team */

.team-profile {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  padding-top: 0.5rem;
}

.team-photo {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(26, 51, 82, 0.1),
    0 18px 40px rgba(10, 22, 40, 0.12);
}

.team-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.55rem;
}

.team-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.team-affiliation {
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.team-location {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

.team-summary {
  color: var(--slate);
  line-height: 1.7;
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.team-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-bottom: 1.85rem;
}

.team-focus li {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 1px solid rgba(42, 111, 124, 0.45);
  padding-bottom: 0.15rem;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-inner .team-btn.btn-primary {
  background: var(--ink);
  color: var(--pearl);
}

.page-inner .team-btn.btn-primary:hover {
  background: var(--navy);
  color: #ffffff;
}

.page-inner .team-btn.btn-ghost {
  border-color: var(--navy);
  color: var(--ink);
  background: transparent;
}

.page-inner .team-btn.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--pearl);
}

.highlight-list {
  display: grid;
  gap: 0;
  counter-reset: highlight;
}

.highlight-list > li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1.25rem;
  padding: 1.65rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.highlight-list > li:first-child {
  padding-top: 0;
}

.highlight-list > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.highlight-list > li::before {
  counter-increment: highlight;
  content: counter(highlight, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1.3;
  padding-top: 0.15rem;
}

.highlight-venue {
  grid-column: 2;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 0.4rem;
}

.highlight-title {
  grid-column: 2;
  font-size: clamp(1.28rem, 2.2vw, 1.65rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 44rem;
}

.highlight-figure {
  grid-column: 2;
  margin: 1.15rem 0 0;
  max-width: 44rem;
  width: 100%;
}

.highlight-title a {
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

.highlight-title a:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

.highlight-figure {
  grid-column: 2;
  margin: 1.25rem 0 0;
  max-width: 52rem;
  width: 100%;
}

.highlight-figure img,
.highlight-figure .highlight-media {
  width: 100%;
  height: auto;
  display: block;
  background: #ffffff;
  border: 1px solid #9ebbd4;
  box-shadow:
    0 0 0 4px #d7e8f5,
    0 0 0 10px #eaf3fa,
    0 8px 18px rgba(70, 120, 170, 0.18),
    0 18px 40px rgba(50, 100, 150, 0.16);
}

.highlight-figure figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Experience timeline */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), var(--line) 30%, var(--line));
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0 1.5rem 2rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 1.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pearl);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding-top: 0.2rem;
}

.timeline-meta time {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.badge {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(42, 111, 124, 0.35);
  padding: 0.2rem 0.5rem;
}

.timeline-body h3 {
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
}

.org {
  font-size: 0.98rem;
  color: var(--accent-soft);
  margin-bottom: 0.45rem;
}

.timeline-body p:last-child:not(.org) {
  color: var(--slate);
  font-size: 1rem;
}

/* Education */

.edu-grid {
  display: grid;
  gap: 2.75rem;
}

.edu-item {
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.edu-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.edu-degree {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.edu-item h3 {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.edu-school {
  color: var(--accent-soft);
  margin-bottom: 0.35rem;
}

.edu-meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.edu-courses {
  font-size: 0.95rem;
  color: var(--slate);
  max-width: 48rem;
}

/* Publications */

.pub-group {
  margin-bottom: 3rem;
}

.pub-group:last-child {
  margin-bottom: 0;
}

.pub-group-title {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.35rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.pub-list {
  display: grid;
  gap: 1.75rem;
  counter-reset: pub;
}

.pub-list > li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.35rem 1rem;
  align-items: start;
}

.pub-list > li::before {
  counter-increment: pub;
  content: counter(pub, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  line-height: 1.4;
  padding-top: 0.1rem;
}

.pub-list[reversed] {
  counter-reset: pub 5;
}

.pub-list[reversed] > li::before {
  counter-increment: pub -1;
}

.pub-list--compact[reversed] {
  counter-reset: pub 24;
}

.pub-title {
  font-family: var(--font-display);
  font-size: 1.32rem;
  line-height: 1.35;
  color: var(--ink);
  grid-column: 2;
}

.pub-title a {
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

.pub-title a:hover {
  color: var(--accent);
  background-size: 100% 1px;
}

.pub-meta {
  grid-column: 2;
  font-size: 0.88rem;
  color: var(--accent-soft);
  margin-top: 0.2rem;
}

.pub-authors {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--muted);
}

.pub-list--compact {
  gap: 1.25rem;
}

.pub-list--compact .pub-title {
  font-size: 1.15rem;
}

.pub-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

.pub-scholar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline: 0.15rem;
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
  vertical-align: middle;
}

.pub-scholar-link:hover {
  color: var(--ink);
}

.pub-scholar-link svg {
  flex-shrink: 0;
}

/* Projects */

.project-list {
  display: grid;
  gap: 2rem;
}

.project-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.55rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

.project-list h2,
.project-list h3 {
  font-size: 1.55rem;
}

.project-list p {
  color: var(--slate);
  max-width: 46rem;
}

/* Skills */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
  margin: 0;
}

.skill-grid dt {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.skill-grid dd {
  margin: 0;
  color: var(--slate);
}

/* Awards */

.award-list {
  display: grid;
  gap: 1rem;
}

.award-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--slate);
}

.award-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.review-list {
  display: grid;
  gap: 0.85rem;
}

.review-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.25rem;
  color: var(--slate);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  font-size: 0.98rem;
}

.review-list li:last-child {
  border-bottom: 0;
}

.review-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Contact */

.contact {
  background:
    linear-gradient(180deg, transparent, rgba(19, 35, 56, 0.03)),
    linear-gradient(165deg, #0a1628 0%, #132338 55%, #163042 100%);
  color: var(--pearl);
  border-top: 0 !important;
}

.contact .section-label {
  color: var(--accent-soft);
}

.contact h2,
.contact .section-desc {
  color: rgba(244, 246, 248, 0.92);
}

.contact .section-desc {
  color: rgba(244, 246, 248, 0.65);
}

.contact-panel {
  text-align: left;
  padding-top: 0.5rem;
}

.contact-email {
  display: inline-block;
  font: inherit;
  color: rgba(244, 246, 248, 0.7);
  margin-bottom: 1rem;
  letter-spacing: inherit;
}

.contact-email:hover {
  color: var(--accent-soft);
}

.contact-location {
  color: rgba(244, 246, 248, 0.7);
  margin-bottom: 0.35rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 246, 248, 0.12);
}

/* Footer */

.site-footer {
  background: #07131f;
  color: rgba(244, 246, 248, 0.45);
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: rgba(244, 246, 248, 0.6);
}

.site-footer a:hover {
  color: #ffffff;
}

/* ---------- Reveal motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.hero .reveal {
  transition-delay: 0s;
}

.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.28s; }
.hero .reveal:nth-child(4) { transition-delay: 0.4s; }
.hero .reveal:nth-child(5) { transition-delay: 0.52s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18px, 24px, 0) scale(1.06); }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .home-band-layout {
    grid-template-columns: 1fr;
  }

  .news-panel {
    position: static;
    order: -1;
  }

  .home-block .interest-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .interest-list,
  .skill-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .timeline-meta time {
    white-space: normal;
  }

  .highlight-list > li {
    grid-template-columns: 2.25rem 1fr;
    column-gap: 0.85rem;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(244, 246, 248, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu li {
    border-bottom: 1px solid var(--line);
  }

  .nav-menu a {
    display: block;
    padding: 0.9rem 0.25rem;
  }

  .nav-cta {
    border: 0;
    padding-left: 0.25rem;
    margin-top: 0.25rem;
  }

  .hero-name {
    font-size: clamp(2.7rem, 11vw, 4rem);
    max-width: none;
  }

  .team-profile {
    grid-template-columns: 1fr;
    max-width: 28rem;
  }

  .team-photo img {
    aspect-ratio: 3 / 4;
  }

  .review-list li {
    white-space: normal;
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .timeline::before,
  .timeline-item::before {
    display: none;
  }

  .timeline-item {
    padding-left: 0;
  }

  .pub-list > li {
    grid-template-columns: 1.75rem 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-orb {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
