/* ============================================================
   SOINIK GHOSH — PREMIUM PORTFOLIO
   Design System: Niche Teal | Strict Grids | Zero Chaos
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Colors */
  --c-bg:       #F5F7F8;
  --c-surface:  #FFFFFF;
  --c-dark:     #0F3840;
  --c-teal:     #2E8B9A;
  --c-teal-lt:  #EAF4F6;
  --c-muted:    #6B8085;
  --c-border:   #DDE4E6;
  --c-white:    #FFFFFF;

  /* Typography */
  --f-serif: 'Playfair Display', Georgia, serif;
  --f-sans:  'Inter', system-ui, sans-serif;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 8rem;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-sans);
  background-color: var(--c-bg);
  color: var(--c-dark);
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../images/pic1.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.055;
  z-index: -10;
  pointer-events: none;
}
img { display: block; width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: -1; /* Global backdrop behind content and section textures */
  pointer-events: none;
  opacity: 1.0;
}

/* ── Layout Utilities ───────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section {
  width: 100%;
  padding-block: var(--sp-xl);
  position: relative;
  overflow: hidden;
  background-color: #FFFFFF; /* High-readability solid background */
  z-index: 10; /* Above global fixed background shader */
}
/* Removed sectional ::before to prevent duplication */

.section--dark { 
  background: #1B3E44; 
  color: var(--c-white); 
  z-index: 10; 
}
.section--teal-lt { 
  background: #F8FAFC; 
  color: var(--c-dark); 
  z-index: 10; 
}

/* ── Content Wrapper Texture ────────────────────────────────── */
.main-content {
  position: relative;
  z-index: 10;
}
.main-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/pic1.jpeg') center / cover no-repeat;
  opacity: 0.035; /* Single non-repeating subtle texture */
  z-index: -1;
  pointer-events: none;
}

/* ── Vision Cards (Restored Professional Grid) ──────────────── */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
@media(max-width: 900px) {
  .vision-grid { grid-template-columns: 1fr; }
}
.vision-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 3rem 2.5rem;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.vision-card:hover { border-color: var(--c-teal); transform: translateY(-5px); }
.vision-card__icon {
  width: 44px; height: 44px;
  background: var(--c-teal-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-teal);
  font-size: 1.1rem;
}
.vision-card__title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-dark);
}
.vision-card__text {
  font-size: 0.95rem;
  color: var(--c-muted);
  line-height: 1.6;
}

/* ── Typography ─────────────────────────────────────────────── */
.label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--c-teal);
}
.heading-xl {
  font-family: var(--f-serif);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--c-dark);
}
.heading-lg {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.heading-md {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}
.body-lg { font-size: 1.2rem; line-height: 1.7; color: var(--c-muted); }
.body-md { font-size: 1rem; line-height: 1.65; color: var(--c-muted); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-dark);
  color: var(--c-white);
  border: 2px solid var(--c-dark);
}
.btn-primary:hover {
  background: var(--c-teal);
  border-color: var(--c-teal);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(46,139,154,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--c-dark);
  border: 2px solid var(--c-dark);
}
.btn-ghost:hover {
  transform: translateY(-3px);
}
.footer {
  width: 100%;
  background: #081214;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-block: 4rem;
  color: var(--c-white);
  position: relative;
  z-index: 10;
}
.btn-ghost-white {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost-white:hover {
  background: var(--c-white);
  color: var(--c-dark);
  border-color: var(--c-white);
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--c-teal);
  letter-spacing: -0.04em;
}
.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--c-teal); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-block: 6rem 5rem;
  background: transparent;
  position: relative;
}
.hero__social {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2.5rem;
  font-size: 1.5rem;
  color: var(--c-teal-lt);
  z-index: 10;
}
.hero__social a { transition: transform 0.2s, color 0.2s; opacity: 0.8; }
.hero__social a:hover { transform: translateY(-4px); color: var(--c-white); opacity: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 7rem;
  align-items: center;
  position: relative;
  z-index: 5;
  pointer-events: none;
}
.hero__grid > * {
  pointer-events: auto;
}
.hero__img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: 0 40px 80px rgba(13,43,46,0.15);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  cursor: crosshair;
}
.hero__img-wrap:hover {
  transform: scale(1.03) translateY(-8px);
  filter: brightness(1.1) contrast(1.05);
}
.hero__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s ease;
}
.hero__img-wrap:hover img {
  transform: scale(1.05);
}
.hero__text { display: flex; flex-direction: column; gap: 1.25rem; justify-content: center; }
.hero__eyebrow-pills {
  display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem;
}
.hero__pill-row {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
}
.hero__eyebrow-pills .pill {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(13, 43, 46, 0.75); /* Deep dark background */
  border: 1px solid rgba(45, 212, 191, 0.3); /* Soft teal glowing border */
  color: #F8FAFC; /* Crisply contrasting bright white text */
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}
.hero__eyebrow-pills .pill:hover {
  transform: translateY(-3px) scale(1.05);
  background: #14B8A6;
  border-color: #4FD1C5;
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.3);
}
.hero__name {
  color: #F8FAFC; 
  font-size: clamp(2.5rem, 4.5vw, 3.8rem); /* Slightly reduced the hero font size */
  text-shadow: 0 4px 24px rgba(0,0,0,0.25); 
  letter-spacing: 0.02em; 
  line-height: 1.1;
}
.hero__glass-block {
  background: rgba(13, 43, 46, 0.75); /* Darkened for higher contrast */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.8rem 2.2rem;
  border-radius: var(--r-md);
  margin-block: 1rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__glass-block:hover {
  transform: translateY(-8px);
  background: rgba(13, 43, 46, 0.85);
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.45);
}
.hero__tagline {
  font-family: var(--f-serif);
  font-size: 1.25rem; 
  white-space: normal; /* Mobile wrapping support */
  font-style: normal;
  font-weight: 700;
  color: #2DD4BF;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.hero__bio { 
  max-width: 100%; 
  color: #F1F5F9 !important; /* Brighter white for maximum visibility */
  font-family: var(--f-sans); 
  font-size: 1.15rem; 
  font-weight: 400; 
  font-style: normal;
  letter-spacing: 0.015em;
  line-height: 1.75; 
}
.hero__actions { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.5rem; }
.hero__actions .btn-primary { 
  background: var(--c-white); 
  color: var(--c-dark); 
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__actions .btn-primary:hover { 
  background: #AEE3EB; 
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 24px rgba(174, 227, 235, 0.3);
}
.hero__actions .btn-secondary { 
  background: transparent; 
  border-color: rgba(255,255,255,0.25); 
  color: var(--c-white); 
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__actions .btn-secondary:hover { 
  background: rgba(255,255,255,0.05); 
  border-color: #AEE3EB; 
  color: #AEE3EB; 
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* ── Section Header ──────────────────────────────────────────── */
.sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1.5px solid var(--c-border);
  gap: 2rem;
}
.sec-header--dark { border-color: rgba(255,255,255,0.1); }
.sec-header__count {
  font-family: var(--f-serif);
  font-size: 5rem;
  font-weight: 900;
  color: var(--c-teal);
  opacity: 0.15;
  line-height: 1;
  flex-shrink: 0;
}

/* ── About / Profile ─────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}
.about__lead {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--c-dark);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.about__body { display: flex; flex-direction: column; gap: 1.5rem; }
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.skill-pill {
  padding: 0.45rem 1.25rem;
  background: var(--c-teal-lt);
  color: var(--c-teal);
  border: 1.5px solid rgba(46,139,154,0.25);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Projects — PANORAMIC 2-COLUMN GRID ──────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  width: 100%;
}
.project-card {
  background: rgba(255, 255, 255, 0.04); /* Base glassy layer */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Holographic Variations (Multi-Tint Fill & Glow) ────────── */
.project-card:nth-child(4n+1) { 
  background: rgba(45, 212, 191, 0.08); /* Teal */
  box-shadow: 0 10px 40px rgba(45, 212, 191, 0.1);
}
.project-card:nth-child(4n+1):hover { 
  box-shadow: 0 20px 60px rgba(45, 212, 191, 0.3);
}

.project-card:nth-child(4n+2) { 
  background: rgba(52, 211, 153, 0.08); /* Emerald */
  box-shadow: 0 10px 40px rgba(52, 211, 153, 0.1);
}
.project-card:nth-child(4n+2):hover { 
  box-shadow: 0 20px 60px rgba(52, 211, 153, 0.3);
}

.project-card:nth-child(4n+3) { 
  background: rgba(59, 130, 246, 0.08); /* Blue */
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
}
.project-card:nth-child(4n+3):hover { 
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.project-card:nth-child(4n+4) { 
  background: rgba(129, 140, 248, 0.08); /* Indigo */
  box-shadow: 0 10px 40px rgba(129, 140, 248, 0.1);
}
.project-card:nth-child(4n+4):hover { 
  box-shadow: 0 20px 60px rgba(129, 140, 248, 0.3);
}

.project-card__meta {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #F8FAFC; /* Strong White Labels */
  opacity: 0.8;
  margin-bottom: -0.5rem;
}
.project-card__title {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: #F8FAFC; /* Crisp White Title */
}
.project-card__body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #CBD5E1; /* High Contrast Slate Gray Bio */
  flex: 1;
}
.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #F8FAFC;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 4px;
  width: fit-content;
  transition: all 0.3s ease;
}
.project-card__link:hover { 
  gap: 0.8rem; 
  border-color: #F8FAFC;
}

/* ── Skills & Expertise Grid ─────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3-column for 5-6 boxes */
  gap: 1.5rem;
  width: 100%;
}
@media(max-width: 1200px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-box {
  background: var(--c-surface); /* Solid White surface */
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.skill-box:hover {
  transform: translateY(-8px);
  border-color: var(--c-teal);
  box-shadow: 0 20px 40px rgba(46,139,154,0.12);
}

.skill-box__head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}
.skill-box__icon {
  font-size: 1.2rem;
  color: var(--c-teal);
  background: var(--c-teal-lt);
  width: 42px; height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.skill-box__title {
  font-family: var(--f-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-dark);
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.skill-pill {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
  transition: all 0.2s;
  white-space: nowrap;
}
.skill-pill:hover {
  background: var(--c-teal);
  color: var(--c-white);
  border-color: var(--c-teal);
}
.skill-pill--highlight {
  border-color: var(--c-teal);
  color: var(--c-teal);
  background: var(--c-teal-lt);
}

/* ── End Project Variations ──────────────────────────────────── */

/* ── Publications — SCHOLARLY GRID ──────────────────────────── */
.publications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
}
@media(max-width: 900px) {
  .publications-grid { grid-template-columns: 1fr; }
}

.pub-card {
  background: var(--c-surface); /* Solid White/High-readability surface */
  border: 1.5px solid var(--c-border);
  border-left: 4px solid var(--c-teal); /* Distinct academic accent */
  border-radius: var(--r-md);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.pub-card:hover {
  transform: translateY(-8px);
  border-color: var(--c-teal);
  box-shadow: 0 20px 40px rgba(46,139,154,0.12);
}

.pub-card__num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--f-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--c-teal);
  opacity: 0.08;
  line-height: 1;
}

.pub-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.5rem;
}
.pub-tag--journal { background: var(--c-teal-lt); color: var(--c-teal); }
.pub-tag--conference { background: #EEF2FF; color: #4F46E5; }
.pub-tag--review { background: #FFFBEB; color: #D97706; }

.pub-card__title {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-dark);
}
.pub-card__meta {
  font-size: 0.95rem;
  color: var(--c-muted);
  line-height: 1.5;
}
.pub-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-teal);
  transition: gap 0.2s;
}
.pub-card__link:hover { gap: 0.6rem; }

/* ── Experience — TWO EQUAL COLUMNS ─────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.exp-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 2.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.exp-card:hover {
  border-color: var(--c-teal);
  transform: translateY(-4px);
}
.exp-card__date {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-teal);
  margin-bottom: 0.75rem;
}
.exp-card__title {
  font-family: var(--f-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 0.4rem;
}
.exp-card__loc {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.exp-card__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--c-muted);
}

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.tl-item:first-child { padding-top: 0; }
.tl-item__date {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--c-teal);
  padding-top: 0.25rem;
}
.tl-item__title {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 0.4rem;
}
.tl-item__body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.honors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
}
@media(max-width: 900px) {
  .honors-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.honors-col { display: flex; flex-direction: column; gap: 1rem; }

.honors-list { display: flex; flex-direction: column; gap: 1.25rem; }
.honor-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(255,255,255,0.08); /* Sophisticated dark glass layer */
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  transition: all 0.3s ease;
}
.honor-item:hover { 
  background: rgba(45, 212, 191, 0.15); /* Soft teal glow on hover */
  border-color: var(--c-teal);
  transform: translateX(5px);
}
.honor-item__badge {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--c-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
}
.honor-item__text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.honor-item__text strong { color: var(--c-white); font-weight: 700; }
.tl-item__body { color: rgba(0,0,0,0.60); }

/* ── Education ───────────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.edu-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 2.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.edu-card:hover {
  border-color: var(--c-teal);
  transform: translateY(-4px);
}
.edu-card__degree {
  font-family: var(--f-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 0.5rem;
}
.edu-card__school { font-size: 0.95rem; color: var(--c-teal); font-weight: 600; margin-bottom: 0.4rem; }
.edu-card__meta { font-size: 0.85rem; color: var(--c-muted); margin-bottom: 1rem; }
.edu-card__note { font-size: 0.82rem; color: var(--c-muted); font-style: italic; }

/* ── Beyond Science ──────────────────────────────────────────── */
.arts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.art-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 3rem;
  transition: border-color 0.3s, transform 0.3s;
}
.art-card:hover { border-color: var(--c-teal); transform: translateY(-4px); }
.art-card__icon {
  width: 48px; height: 48px;
  background: var(--c-teal-lt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-teal);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.art-card__title {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 0.75rem;
}
.art-card__desc { font-size: 0.95rem; color: var(--c-muted); margin-bottom: 2rem; line-height: 1.6; }
.art-links { display: flex; flex-direction: column; gap: 0.75rem; }
.art-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-dark);
  padding: 0.75rem 1rem;
  background: var(--c-bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border);
  transition: all 0.2s;
}
.art-link i { color: var(--c-teal); font-size: 1rem; width: 20px; text-align: center; }
.art-link:hover {
  background: var(--c-teal-lt);
  border-color: var(--c-teal);
  color: var(--c-teal);
  transform: translateX(4px);
}

/* ── Contact ─────────────────────────────────────────────────── */
.contact-card {
  background: var(--c-teal-lt);
  border: 1.5px solid rgba(46,139,154,0.25);
  border-radius: var(--r-md);
  padding: 5rem;
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.contact-card__text {
  font-size: 1.15rem;
  color: var(--c-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-socials {
  display: flex;
  gap: 1rem;
}
.contact-socials a {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(46,139,154,0.4);
  border-radius: 50%;
  color: var(--c-teal);
  font-size: 1rem;
  transition: all 0.2s;
}
.contact-socials a:hover {
  background: var(--c-teal);
  border-color: var(--c-teal);
  color: white;
  transform: translateY(-3px);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding-block: 3rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.footer__text { font-size: 0.82rem; color: var(--c-muted); }
.footer__links { display: flex; gap: 2rem; }
.footer__links a { font-size: 0.82rem; color: var(--c-muted); font-weight: 600; }
.footer__links a:hover { color: var(--c-teal); }

/* ── Areas Grid (New) ────────────────────────────────────────── */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width: 768px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(4, 1fr);  gap: 1.5rem; }
}
.area-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-teal);
  border-radius: var(--r-md);
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.area-card__title {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-dark);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.area-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.area-list li {
  font-size: 0.95rem;
  color: var(--c-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.area-list li::before {
  content: "•";
  color: var(--c-teal);
  font-weight: bold;
}

/* ── Systems Clusters ────────────────────────────────────────── */
.systems-cluster {
  margin-bottom: 5rem;
}
.systems-cluster:last-child {
  margin-bottom: 0;
}
.system-category__header {
  font-family: var(--f-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--c-white);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

/* ── Animations ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Hamburger Menu ───────────────────────────────────────────── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 6px;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.nav__hamburger:hover {
  border-color: var(--c-teal);
  background: var(--c-teal-lt);
}
.nav__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s, width 0.3s;
  transform-origin: center;
}
/* Open state → X shape */
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  top: 64px; /* below navbar height */
  right: 0;
  width: min(320px, 85vw);
  height: calc(100dvh - 64px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--c-border);
  z-index: 99;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  padding: 2rem 1.5rem;
}
.nav__drawer.is-open {
  transform: translateX(0);
}
.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}
.nav__drawer-links li a {
  display: block;
  padding: 1rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  transition: color 0.2s, padding-left 0.2s;
}
.nav__drawer-links li:last-child a { border-bottom: none; }
.nav__drawer-links li a:hover { color: var(--c-teal); padding-left: 1rem; }

/* Overlay behind drawer */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 56, 64, 0.4);
  backdrop-filter: blur(2px);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav__overlay.is-open {
  display: block;
  opacity: 1;
}

/* ── Responsive ──────────────────────────────────────────────── */

/* ─── Tablet landscape (1100px) ─────────────────────────── */
@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: 340px 1fr; gap: 4rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Tablet portrait (900px) ───────────────────────────── */
@media (max-width: 900px) {
  :root { --sp-xl: 5rem; }

  /* Nav */
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }


  /* Hero */
  .hero {
    min-height: auto;
    padding-block: 4rem 3rem;
    flex-direction: column;   /* ← KEY FIX: stack social + content vertically */
    align-items: center;
    justify-content: flex-start;
  }
  .hero .wrap {
    width: 100%;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero__img-wrap {
    max-width: 240px;
    margin-inline: auto;
    aspect-ratio: 3/4;
  }
  .hero__text {
    align-items: center;
  }
  .hero__eyebrow-pills {
    align-items: center;
  }
  .hero__pill-row {
    justify-content: center;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__glass-block {
    text-align: left;
  }

  /* Social icons — sits ABOVE the grid now (column flex) */
  .hero__social {
    position: static;
    transform: none;
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    font-size: 1.2rem;
    margin-bottom: 0;        /* spacing handled by hero padding */
    width: 100%;
    padding-block: 0.5rem;
  }


  /* About */
  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Experience */
  .exp-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Arts */
  .arts-grid { grid-template-columns: 1fr; }

  /* Vision */
  .vision-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Honors */
  .honors-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ─── Small tablet / large phone (768px) ───────────────── */
@media (max-width: 768px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .sec-header__count { font-size: 3.5rem; align-self: flex-end; }
  .project-card { padding: 2.5rem; }
}

/* ─── Mobile (680px) ────────────────────────────────────── */
@media (max-width: 680px) {
  :root { --sp-xl: 4rem; }

  .wrap { padding-inline: 1.25rem; }

  /* Nav */
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  /* Section */
  .section { padding-block: 4rem; }

  /* Hero */
  .hero {
    padding-block: 4.5rem 3rem;
  }
  .hero__name {
    font-size: clamp(2rem, 9vw, 3rem);
  }
  .hero__tagline {
    font-size: 1rem;
    white-space: normal;
  }
  .hero__bio {
    font-size: 1rem;
  }
  .hero__glass-block {
    padding: 1.5rem;
  }
  .hero__img-wrap {
    max-width: 220px;
  }

  /* Typography */
  .heading-lg {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }
  .about__lead {
    font-size: 1.2rem;
  }

  /* Grids → single column */
  .projects-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }

  /* Cards */
  .project-card { padding: 2rem; min-height: auto; }
  .vision-card { padding: 2rem 1.5rem; }
  .contact-card { padding: 2.5rem 1.5rem; }
  .pub-card { padding: 1.75rem; }
  .art-card { padding: 2rem; }

  /* Section header counter */
  .sec-header__count { font-size: 3rem; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; gap: 1.25rem; }
  .footer__links { flex-wrap: wrap; justify-content: center; }

  /* Experience cards */
  .exp-card { padding: 1.75rem; }

  /* Fix tl-item */
  .pub-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }

  /* Skills section */
  .skill-box { padding: 1.75rem; }
}

/* ─── Small phones (480px) ───────────────────────────── */
@media (max-width: 480px) {
  :root { --sp-xl: 3.5rem; }

  .wrap { padding-inline: 1rem; }

  .hero {
    padding-block: 4rem 2.5rem;
  }
  .hero__img-wrap {
    max-width: 180px;
  }
  .hero__name {
    font-size: clamp(1.8rem, 10vw, 2.8rem);
  }
  .hero__social {
    font-size: 1.1rem;
    gap: 1.25rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section { padding-block: 3rem; }

  .nav__inner { height: 56px; }
  .nav__drawer { top: 56px; height: calc(100dvh - 56px); }

  .contact-card { padding: 2rem 1rem; }
  .project-card { padding: 1.5rem; }
  .skill-box { padding: 1.5rem; }
  .pub-card { padding: 1.5rem; }
  .art-card { padding: 1.5rem; }

  .heading-lg { font-size: clamp(1.4rem, 8vw, 2rem); }
  .sec-header__count { font-size: 2.5rem; }

  .btn { padding: 0.75rem 1.5rem; font-size: 0.72rem; }
}

/* ─── Landscape phone (height-based) ───────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-block: 3rem 2rem;
  }
  .hero__grid {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
  }
  .hero__img-wrap {
    max-width: 200px;
    aspect-ratio: 3/4;
  }
  .hero__name {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .hero__text { align-items: flex-start; text-align: left; }
  .hero__eyebrow-pills { align-items: flex-start; }
  .hero__pill-row { justify-content: flex-start; }
  .hero__actions { justify-content: flex-start; }
  .hero__social {
    position: static;
    transform: none;
    justify-content: flex-start;
    margin-bottom: 1rem;
  }
}

/* ─── Ensure desktop drawer stays hidden ─────────────── */
@media (min-width: 901px) {
  .nav__hamburger { display: none !important; }
  .nav__drawer { display: none !important; }
  .nav__overlay { display: none !important; }
  .nav__links { display: flex !important; }
}