/* ================================================================
   THEME LAYER — glass + zinc + emerald
   Inter, 2.5rem section wrappers, dark grainy hero / timeline /
   footer blocks over a light zinc page. Loaded after style.css.
   ================================================================ */

:root {
  --font-serif: 'Bricolage Grotesque', 'Hanken Grotesk', sans-serif;   /* display */
  --font-sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;   /* body */

  --clr-bg:          #F4F4F5;
  --clr-bg-alt:      #F4F4F5;
  --clr-surface:     #FFFFFF;
  --clr-surface-2:   #F4F4F5;

  --clr-teal:        #047857;   /* emerald-700: 5.5:1 on white */
  --clr-teal-mid:    #10B981;
  --clr-teal-light:  rgba(16,185,129,0.10);
  --clr-sage:        #34D399;
  --clr-sage-light:  rgba(16,185,129,0.10);
  --clr-slate:       #52525B;
  --clr-slate-light: #F4F4F5;

  --clr-text-primary:   #18181B;
  --clr-text-secondary: #3F3F46;
  --clr-text-muted:     #62626A;
  --clr-text-inverse:   #FFFFFF;
  --clr-border:      #E4E4E7;
  --clr-border-med:  #D4D4D8;

  --clr-ink:          #18181B;   /* solid chips */
  --clr-ink-contrast: #FFFFFF;

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-section: 2.5rem;

  --shadow-sm: none; --shadow-md: none; --shadow-lg: none; --shadow-card: none;

  --glass-bg:     rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.10);
  --emerald:      #34D399;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

[data-theme="dark"] {
  --clr-bg:          #000000;
  --clr-bg-alt:      #09090B;
  --clr-surface:     #18181B;
  --clr-surface-2:   #27272A;
  --clr-teal:        #34D399;
  --clr-teal-mid:    #34D399;
  --clr-teal-light:  rgba(52,211,153,0.12);
  --clr-slate:       #A1A1AA;
  --clr-slate-light: #27272A;
  --clr-text-primary:   #FAFAFA;
  --clr-text-secondary: #A1A1AA;
  --clr-text-muted:     #71717A;
  --clr-text-inverse:   #000000;
  --clr-border:      rgba(255,255,255,0.10);
  --clr-border-med:  rgba(255,255,255,0.18);
  --clr-ink:          #34D399;
  --clr-ink-contrast: #022C22;
}

/* Dark blocks re-skin their own subtree, in both themes */
.hero, .timeline-section, .footer {
  --clr-text-primary:   #FAFAFA;
  --clr-text-secondary: rgba(255,255,255,0.72);
  --clr-text-muted:     rgba(255,255,255,0.55);
  --clr-teal:           var(--emerald);
  --clr-teal-mid:       var(--emerald);
  --clr-teal-light:     rgba(52,211,153,0.12);
  --clr-surface:        rgba(255,255,255,0.05);
  --clr-surface-2:      rgba(255,255,255,0.08);
  --clr-border:         rgba(255,255,255,0.10);
  --clr-border-med:     rgba(255,255,255,0.22);
  color: var(--clr-text-primary);
}

/* ---------- Base ---------- */
body { font-weight: 400; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-serif); text-wrap: balance; }
p, li { text-wrap: pretty; }

main > section, .footer { margin: 0.75rem; }
.hero, .timeline-section, .footer { border-radius: var(--radius-section); position: relative; overflow: hidden; isolation: isolate; }

/* Labels */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--clr-teal);
}
.section-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}

.section-title {
  font-weight: 600;
  font-size: clamp(2rem, 1rem + 3.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.section-body { font-weight: 300; font-size: 1.0625rem; line-height: 1.7; color: var(--clr-text-secondary); }
.section-body strong { font-weight: 500; color: var(--clr-text-primary); }

.section { padding-block: clamp(4rem, 8vw, 7rem); background: transparent; }
.section:nth-child(even) { background: transparent; }
.section.timeline-section { background: linear-gradient(to bottom, #18181B 0%, #121214 60%, #0B1210 100%); }
.section-header { text-align: left; margin-bottom: var(--space-12); padding: 0; border: 0; }
.section-header .section-body, .section-body--center { margin: 0; text-align: left; max-width: 58ch; }

/* Grain on dark blocks */
.hero::before, .timeline-section::before, .footer::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 220px; opacity: 0.15; mix-blend-mode: overlay;
}

/* ---------- Entry animation ---------- */
.reveal-up, .reveal-left, .reveal-right, .reveal-timeline {
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  transform: translateY(20px);
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px; font-size: 0.9375rem; font-weight: 500; box-shadow: none;
  transition: transform 0.3s var(--ease-out-expo), background-color 0.3s;
}
.btn--primary {
  background: #fff; color: #18181B; gap: 1rem; padding: 0.5rem 0.5rem 0.5rem 1.5rem;
}
.btn--primary::after {
  content: ''; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: #18181B url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7M8 7h9v9'/></svg>") center / 1.1rem no-repeat;
  transition: background-color 0.3s;
}
.btn--primary:hover { background: #fff; transform: scale(1.05); box-shadow: none; }
.btn--primary:hover::after { background-color: #3F3F46; }
.btn--ghost {
  background: var(--glass-bg); color: #fff; border: 1px solid var(--glass-border);
  padding: 0.95rem 1.6rem; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: var(--glass-border); transform: scale(1.05); }

/* ---------- Badges / chips (pill, label type) ---------- */
.badge, .timeline__badge, .research-card__type {
  border: 0; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.4rem 0.8rem;
}
.badge--teal, .timeline__badge--clin, .research-card__type { background: var(--clr-teal-light); color: var(--clr-teal); }
.badge--sage, .timeline__badge--vol, .badge--slate, .timeline__badge--edit, .timeline__badge--res {
  background: var(--clr-surface-2); color: var(--clr-text-secondary);
}
.timeline__badge--now { background: var(--emerald); color: #022C22; animation: none; }
.timeline__tags span, .research-card__tags span, .skill-pill {
  border-radius: 999px; font-size: 0.75rem; font-weight: 400; border: 1px solid var(--clr-border);
  background: transparent; color: var(--clr-text-secondary);
}
.skill-pill--filled { background: var(--clr-ink); color: var(--clr-ink-contrast); border-color: transparent; }
.skill-pill--outline { background: transparent; border: 1px solid var(--clr-border-med); color: var(--clr-text-secondary); }
.skill-pill--filled:hover { background: var(--clr-ink); opacity: 0.85; }
.skill-pill--outline:hover { background: transparent; border-color: var(--clr-teal); color: var(--clr-teal); }

/* ---------- Floating glass navbar ---------- */
.nav { top: 1rem; height: auto; }
.nav.scrolled { background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav__inner {
  width: min(var(--container), 100% - 1.5rem); max-width: none; height: 3.5rem;
  padding: 0 0.5rem 0 1.25rem;
  background: rgba(24,24,27,0.80); border: 1px solid var(--glass-border); border-radius: 999px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.nav__logo-img { filter: invert(1) brightness(1.1); }
.nav__links { gap: 0.25rem; }
.nav__link {
  padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.8);
  border: 0;
}
.nav__link:hover, .nav__link.active { background: rgba(255,255,255,0.10) !important; color: #fff; }
.theme-toggle { background: transparent; border-radius: 50%; border: 1px solid var(--glass-border); color: #fff; }
.theme-toggle:hover { background: rgba(255,255,255,0.10); }
.nav__burger span { background: #fff; }
.progress-bar { background: var(--emerald); height: 2px; z-index: 1000; }

/* ---------- Hero ---------- */
.hero__bg-canvas, .aurora, .hero__scroll-hint { display: none; }
.hero {
  min-height: 92vh; padding: 7rem 0 3rem; align-items: center;
  background:
    radial-gradient(70% 55% at 85% 105%, rgba(52,211,153,0.20), transparent 70%),
    linear-gradient(to bottom, #09090B 0%, #0C0C0E 55%, #101A16 100%);
}
.hero::after {
  content: 'Javeria'; position: absolute; left: 50%; bottom: -0.12em; transform: translateX(-50%);
  font-size: 22vw; font-weight: 700; letter-spacing: -0.05em; line-height: 1;
  color: #fff; opacity: 0.03; filter: blur(3px); pointer-events: none; z-index: -1; white-space: nowrap;
}
.hero__content {
  display: grid; grid-template-columns: minmax(0, 1fr) 17rem; column-gap: 4rem;
  align-items: center; padding-block: 0; width: min(var(--container), 100% - 3rem);
}
.hero__content > * { grid-column: 1; }
.hero__content > .hero__stats { grid-column: 2; grid-row: 1 / span 4; }
.hero__tag {
  justify-self: start; background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: rgba(255,255,255,0.8); border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
}
.hero__tag .dot { background: var(--emerald); animation: none; }
.hero__headline {
  font-weight: 600; font-size: clamp(2.5rem, 1rem + 5.6vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.04em; max-width: none; color: #fff;
}
.hero__headline em { font-style: normal; color: var(--emerald); }
.hero__sub { font-weight: 300; font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 46ch; padding: 0; border: 0; }
.hero__actions { margin-bottom: 0; align-items: center; }
.hero__stats { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; border: 0; padding: 0; }
.stat, .stat + .stat {
  display: block; padding: 1.25rem; border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.stat__number { font-size: 1.875rem; font-weight: 500; letter-spacing: -0.04em; color: #fff; }
.stat__unit { font-size: 1.875rem; font-weight: 500; vertical-align: baseline; margin: 0; color: var(--emerald); }
.stat__label { display: block; font-size: 0.875rem; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.6); margin-top: 0.35rem; }

/* ---------- Identity (feature block) ---------- */
.identity__text { position: sticky; top: 7rem; align-self: start; }
.identity__photo-tilt, .identity__photo-tilt:hover { transform: none; border-radius: var(--radius-section); box-shadow: none; }
.identity__photo { transition: transform 0.8s var(--ease-out-expo); }
.identity__photo-tilt:hover .identity__photo { transform: scale(1.05); }
.identity__photo-accent-1, .identity__photo-accent-2, .id-card__accent { display: none; }
.identity__photo-overlay { background: linear-gradient(to top, rgba(9,9,11,0.75), transparent); padding: 3rem 1.25rem 1.25rem; }
.identity__photo-label {
  color: #fff; border: 1px solid var(--glass-border); background: var(--glass-bg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; padding: 0.45rem 0.9rem; font-size: 10px; font-weight: 700; letter-spacing: 0.16em;
}
.id-card, .id-card:hover { transform: none; }
.id-card__avatar { background: var(--clr-ink); color: var(--clr-ink-contrast); border-radius: 1rem; font-weight: 600; }
.id-card__name { font-weight: 500; letter-spacing: -0.02em; }

/* ---------- Light cards ---------- */
.id-card, .research-card, .skill-category, .platform-card, .trust-pillar, .credential-block,
.contact__reach-card, .reach-btn {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl); box-shadow: none;
}
.research-card:hover, .skill-category:hover, .trust-pillar:hover, .platform-card:hover {
  transform: none; box-shadow: none; border-color: var(--clr-border-med);
}
.research-card__accent { height: 4px; background: var(--emerald); }
.research-card__title, .skill-category__title { font-weight: 500; letter-spacing: -0.03em; }
.skill-category { padding: var(--space-8); }
.skill-category__icon, .trust-pillar__icon, .credential-block__icon, .pillar__icon, .reach-btn__icon { border-radius: 1rem; }
.skill-category__footer-dot { animation: none; }
.reach-card__pulse { display: none; }
.reach-btn { border-radius: var(--radius-lg); }
.reach-btn:hover { transform: none; }
.contact { background: transparent; }
.contact__intro { text-align: left; }
.contact__intro .section-title em { font-style: normal; font-weight: 500; color: var(--clr-teal); }
.contact__intro .section-body { margin-inline: 0; }
.ethics-note { border-radius: var(--radius-lg); }

/* ---------- Timeline (dark productivity block) ---------- */
.timeline-section::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 100%);
}
.timeline { margin-top: 0; }
.timeline::before { left: 8.75rem; width: 1px; background: rgba(255,255,255,0.16); transform: none; }
.timeline .timeline__item, .timeline .timeline__item[data-side] {
  display: grid; grid-template-columns: 6.5rem 2rem minmax(0, 1fr); column-gap: var(--space-5); margin-bottom: var(--space-6);
}
.timeline .timeline__item[data-side] .timeline__year {
  grid-column: 1; grid-row: 1; order: 0; text-align: right;
  font-size: 1.5rem; font-weight: 500; letter-spacing: -0.04em; color: #fff; padding-top: 1.1rem;
}
.timeline .timeline__item[data-side] .timeline__dot {
  grid-column: 2; grid-row: 1; margin: 1.6rem auto 0; width: 10px; height: 10px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,0.35); box-shadow: 0 0 0 4px #121214;
}
.timeline .timeline__item[data-side] .timeline__card { grid-column: 3; grid-row: 1; }
.timeline__dot--current { background: var(--emerald) !important; animation: none; box-shadow: 0 0 0 4px #121214, 0 0 12px rgba(52,211,153,0.6) !important; }
.timeline__card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-lg);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: none;
  padding: var(--space-6); transition: background-color 0.3s, border-color 0.3s;
}
.timeline__card:hover { transform: none; box-shadow: none; background: rgba(255,255,255,0.08); }
.timeline__card--current { background: rgba(52,211,153,0.06); border-color: rgba(52,211,153,0.35); }
.timeline__org { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clr-text-muted); }
.timeline__role { font-weight: 500; font-size: 1.3rem; letter-spacing: -0.03em; color: #fff; }
.timeline__badge--clin { background: rgba(52,211,153,0.12); color: var(--emerald); }
.timeline__badge--vol, .timeline__badge--edit, .timeline__badge--res { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }
.timeline__tags span { border-color: var(--glass-border); color: rgba(255,255,255,0.65); }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(to bottom, #111113, #0A0F0D); border: 0; padding-block: var(--space-10); }
.footer__name { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.02em; }
.footer .nav__logo-img { filter: invert(1) brightness(1.1); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .identity__text { position: static; }
  .hero { min-height: auto; }
  .hero__content { grid-template-columns: 1fr; row-gap: 0; }
  .hero__content > .hero__stats { grid-column: 1; grid-row: auto; flex-direction: row; margin-top: var(--space-10); }
  .hero__stats .stat { flex: 1 1 0; padding: 1rem; }
  .nav__inner { padding-inline: 1rem 0.5rem; }
}
@media (max-width: 700px) {
  .hero__stats { flex-direction: column !important; }
  .timeline::before { left: 0.5rem; }
  .timeline .timeline__item, .timeline .timeline__item[data-side] {
    grid-template-columns: 1rem minmax(0, 1fr); column-gap: var(--space-4);
  }
  .timeline .timeline__item[data-side] .timeline__year { grid-column: 2; grid-row: 1; text-align: left; padding-top: 0; font-size: 1.25rem; }
  .timeline .timeline__item[data-side] .timeline__dot { grid-column: 1; grid-row: 1; margin: 0.5rem 0 0; }
  .timeline .timeline__item[data-side] .timeline__card { grid-column: 2; grid-row: 2; margin-top: var(--space-2); }
  .section-header { margin-bottom: var(--space-8); }
  .timeline-section, .footer, .hero { border-radius: 1.75rem; }
}
.badge--sage, .badge--slate { background: var(--clr-border); }

/* ---------- Workflow block: numbered steps ---------- */
.workflow__inner { position: relative; z-index: 1; }
.workflow__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: var(--space-8); }
.workflow__step {
  display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.25rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 1rem;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color 0.3s;
}
.workflow__step:hover { background: rgba(255,255,255,0.08); }
.workflow__num { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; color: var(--emerald); padding-top: 0.45rem; }
.workflow__step h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.03em; color: #fff; margin-bottom: 0.25rem; }
.workflow__step p { font-size: 0.9375rem; font-weight: 300; color: var(--clr-text-secondary); }

@media (max-width: 700px) { .workflow__list { grid-template-columns: 1fr; } }

/* ---------- Tablet / mobile refinements ---------- */
@media (min-width: 601px) and (max-width: 960px) {
  .identity__card-wrap { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
  .identity__photo-card { margin-bottom: 0; }
  .identity__photo-tilt { max-height: 420px; }
  .id-card { margin: 0; }
}
@media (max-width: 700px) {
  main > section, .footer { margin: 0.5rem; }
  .hero { padding: 6rem 0 2rem; }
  .hero__content { width: calc(100% - 2rem); }
  .hero__actions { gap: 0.5rem; }
  .hero__content > .hero__stats { flex-direction: row !important; gap: 0.5rem; margin-top: var(--space-8); }
  .hero__stats .stat { padding: 0.9rem 0.75rem; border-radius: 1rem; }
  .stat__number, .stat__unit { font-size: 1.5rem; }
  .stat__label { font-size: 0.7rem; line-height: 1.3; }
  .container { width: calc(100% - 2rem); }
  .timeline-section .container, .workflow .container { width: calc(100% - 2rem); }
  .nav__inner { width: calc(100% - 1rem); }
  .nav__logo-img { width: 112px; height: 40px; }
  .workflow__step { padding: 1rem; gap: 0.9rem; }
  .id-card, .research-card__body { padding-inline: 1.25rem; }
  .skill-category { padding: 1.25rem; }
  .footer__inner { gap: var(--space-4); }
}
@media (max-width: 380px) {
  .hero__headline { font-size: 2.25rem; }
  .btn--ghost, .btn--primary { font-size: 0.875rem; }
}

/* Mobile menu: dark glass sheet to match the nav pill */
.nav__mobile-overlay { background: rgba(9,9,11,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav__mobile-link { color: #fff; font-weight: 600; letter-spacing: -0.03em; font-size: clamp(2rem, 9vw, 2.75rem); }
.nav__mobile-link:hover { color: var(--emerald); }
@media (min-width: 961px) and (max-width: 1180px) {
  .hero__content { grid-template-columns: minmax(0, 1fr) 14rem; column-gap: 2rem; }
  .hero__headline { font-size: clamp(2.5rem, 1rem + 5vw, 4.25rem); }
}


/* ================================================================
   LIGHT SECTIONS — readability pass
   Larger body text, regular weight, AA contrast, shorter line
   lengths, scannable lists, clearer card edges, bigger tap targets.
   ================================================================ */
.identity, .research, .skills, .contact { --measure: 68ch; }

.identity .section-body, .research .section-body, .skills .section-body, .contact .section-body {
  font-weight: 400; font-size: 1.0625rem; line-height: 1.7; color: var(--clr-text-secondary);
}
.identity .section-eyebrow, .research .section-eyebrow, .skills .section-eyebrow, .contact .section-eyebrow {
  font-size: 0.6875rem;
}
.identity .badge, .research .research-card__type { font-size: 0.6875rem; }

/* Cards: visible edge + soft lift on the zinc page */
.identity .id-card, .research-card, .skill-category, .trust-pillar, .credential-block, .contact__reach-card {
  box-shadow: 0 1px 2px rgba(24,24,27,0.05), 0 8px 24px -12px rgba(24,24,27,0.10);
  border-color: var(--clr-border-med);
}
[data-theme="dark"] .identity .id-card, [data-theme="dark"] .research-card, [data-theme="dark"] .skill-category,
[data-theme="dark"] .trust-pillar, [data-theme="dark"] .credential-block, [data-theme="dark"] .contact__reach-card { box-shadow: none; }

/* Research cards */
.research-card__body { padding: clamp(1.5rem, 3vw, 2.5rem); }
.research-card__meta { margin-bottom: var(--space-4); }
.research-card__year { font-size: 0.8125rem; font-weight: 600; color: var(--clr-text-secondary); }
.research-card__title { font-size: clamp(1.5rem, 1rem + 1.4vw, 2rem); line-height: 1.15; margin-bottom: 0.35rem; }
.research-card__org { font-size: 1rem; font-weight: 600; color: var(--clr-teal); margin-bottom: var(--space-5); }
.research-card__desc { font-size: 1rem; line-height: 1.7; color: var(--clr-text-primary); font-weight: 500; max-width: var(--measure); margin-bottom: var(--space-5); }
.research-card__bullets { gap: 0.85rem; }
.research-card__bullets li { font-size: 1rem; line-height: 1.65; color: var(--clr-text-secondary); max-width: var(--measure); }
.research-card__bullets li::before { top: 0.7em; transform: none; width: 6px; height: 6px; }

/* Responsibility lists (bold lead-in) become a scannable two-column grid */
.research-card__bullets:has(> li > strong) {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem;
}
.research-card__bullets:has(> li > strong) li { max-width: none; padding-left: 1rem; border-left: 2px solid var(--clr-border-med); }
.research-card__bullets:has(> li > strong) li::before { display: none; }
.research-card__bullets:has(> li > strong) strong {
  display: block; margin-bottom: 0.25rem; color: var(--clr-text-primary);
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em;
}
.research-card__tags span, .skill-pill { font-size: 0.8125rem; }
.research-card__tags span { padding: 0.4rem 0.9rem; color: var(--clr-text-secondary); }

/* Skills */
.skill-category__title { font-size: 1.25rem; }
.skill-category__desc { font-size: 1rem; line-height: 1.65; color: var(--clr-text-secondary); max-width: 52ch; }
.skill-pill { height: 36px; padding: 0 14px; font-weight: 500; }
.skill-pill--outline { color: var(--clr-text-primary); border-color: var(--clr-border-med); }
.skill-category__footer { color: var(--clr-text-secondary); font-size: 0.875rem; }

/* Contact */
.trust-pillar__title { font-size: 1.125rem; }
.trust-pillar__body { font-size: 0.9375rem; line-height: 1.65; color: var(--clr-text-secondary); }
.credential-block__label { font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--clr-text-muted); }
.credential-block__value { font-size: 1rem; line-height: 1.45; }
.reach-card__headline { font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem); line-height: 1.15; }
.reach-card__body { font-size: 1rem; line-height: 1.65; color: var(--clr-text-secondary); }
.reach-btn { min-height: 64px; }
.reach-btn__label { font-size: 1rem; font-weight: 600; }
.reach-btn__sub { font-size: 0.875rem; color: var(--clr-text-muted); }
.reach-btn:hover { border-color: var(--clr-teal); }
.ethics-note p { font-size: 0.9375rem; line-height: 1.6; color: var(--clr-text-secondary); }
.reach-card__reassurance { font-size: 0.9375rem; color: var(--clr-text-muted); }

/* Identity */
.id-card__role { font-size: 0.875rem; color: var(--clr-text-muted); }
.id-card__list li { font-size: 0.9375rem; line-height: 1.5; color: var(--clr-text-secondary); }
.identity__text .section-body { max-width: 54ch; }

/* Keyboard focus: always visible on light surfaces */
.identity a:focus-visible, .research a:focus-visible, .skills a:focus-visible, .contact a:focus-visible,
.contact .reach-btn:focus-visible { outline: 2px solid var(--clr-teal); outline-offset: 3px; border-radius: 0.75rem; }

@media (max-width: 800px) {
  .research-card__bullets:has(> li > strong) { grid-template-columns: 1fr; gap: 1.25rem; }
  .research-card__bullets li, .research-card__desc { font-size: 1rem; }
}
@media (max-width: 700px) {
  .research-card__body { padding: 1.25rem; }
  .research-card__bullets:has(> li > strong) li { padding-left: 0.75rem; }
}

/* ================================================================
   MOTION — moving hero, marquee, scroll + card animation
   ================================================================ */

/* ---- Scroll reveals: real direction + a touch of scale ---- */
.reveal-up    { transform: translateY(28px) scale(0.985); }
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-pop {
  opacity: 0; translate: 0 18px; scale: 0.96;
  transition: opacity 0.7s var(--ease-out-expo), translate 0.7s var(--ease-out-expo), scale 0.7s var(--ease-out-expo);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal-pop.revealed { translate: none; scale: none; }
.research__grid > .reveal-up, .contact__pillars > .reveal-up { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---- Cards: lift + cursor-follow glow ---- */
.spot {
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo),
              translate 0.4s var(--ease-out-expo), border-color 0.3s, background-color 0.3s;
}
.spot:hover {
  translate: 0 -4px; border-color: rgba(16,185,129,0.45);
  background-image: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(16,185,129,0.10), transparent 65%);
}
.timeline-section .spot:hover, .hero .spot:hover, [data-theme="dark"] .spot:hover {
  border-color: rgba(52,211,153,0.5);
  background-image: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(52,211,153,0.14), transparent 65%);
}
.timeline__card:hover, .research-card:hover, .skill-category:hover, .trust-pillar:hover { transform: none; }

/* ---- Hero: moving background ---- */
.hero::before { z-index: 1; }
.hero__fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.hero__orb--1 { width: 36rem; height: 36rem; right: -9rem; top: -11rem; background: radial-gradient(circle, #10B981, transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.hero__orb--2 { width: 28rem; height: 28rem; left: -7rem; bottom: -9rem; background: radial-gradient(circle, #0D9488, transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.hero__orb--3 { width: 18rem; height: 18rem; left: 46%; top: 28%; background: radial-gradient(circle, #34D399, transparent 65%); opacity: 0.22; animation: drift3 26s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-7rem, 6rem) scale(1.18); } }
@keyframes drift2 { to { transform: translate(9rem, -5rem) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-8rem, 4rem) scale(1.4); } }

.hero__ring { position: absolute; right: 3rem; top: 50%; border-radius: 50%; }
.hero__ring--1 { width: 34rem; height: 34rem; margin-top: -17rem; right: -4rem; border: 1px dashed rgba(255,255,255,0.16); animation: spin 70s linear infinite; }
.hero__ring--2 { width: 23rem; height: 23rem; margin-top: -11.5rem; right: 1.5rem; border: 1px solid rgba(52,211,153,0.28); animation: spin 45s linear infinite reverse; }
.hero__ring--2::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 14px 3px rgba(52,211,153,0.7); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__spot {
  position: absolute; inset: 0;
  background: radial-gradient(520px circle at var(--hx, 72%) var(--hy, 28%), rgba(52,211,153,0.13), transparent 60%);
}

/* Headline: words rise in, "Research" shimmers */
.hero__headline.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__headline.is-split .w > span {
  display: inline-block; transform: translateY(115%);
  transition: transform 1s var(--ease-out-expo); transition-delay: calc(var(--i, 0) * 90ms + 150ms);
}
.hero__headline.is-split.revealed .w > span { transform: none; }
.hero__headline em .w > span {
  background: linear-gradient(90deg, #34D399 0%, #A7F3D0 45%, #34D399 90%); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero__headline.is-split.revealed em .w > span { animation: shimmer 5s linear 1.4s infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* Tag dot pings, stat cards float */
.hero__tag .dot { position: relative; }
.hero__tag .dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2.2s ease-out infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }
.hero__stats .stat { animation: floatY 7s ease-in-out infinite; }
.hero__stats .stat:nth-child(2) { animation-duration: 8.5s; animation-delay: -2.5s; }
.hero__stats .stat:nth-child(3) { animation-duration: 6.5s; animation-delay: -4s; }
@keyframes floatY { 50% { transform: translateY(-9px); } }
.btn { transition: transform 0.3s var(--ease-out-expo), background-color 0.3s, translate 0.25s var(--ease-out-expo); }

/* ---- Marquee: moving keyword band ---- */
.marquee {
  overflow: hidden; margin: 1.75rem 0; padding: 0.25rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-shrink: 0; align-items: center; }
.marquee__group span {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.035em;
  font-size: clamp(1.75rem, 1rem + 3vw, 3.25rem); color: var(--clr-text-primary); padding-inline: 1.25rem;
}
.marquee__group span:nth-child(even) { color: color-mix(in srgb, var(--clr-text-primary) 30%, transparent); }
.marquee__group span::after { content: '✦'; margin-left: 2.5rem; font-size: 0.55em; color: var(--clr-teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Identity photo: parallax-ready ---- */
.identity__photo { scale: 1.12; }

/* ---- Timeline: line draws as you scroll, dots light up ---- */
.timeline { --p: 0; }
.timeline::after {
  content: ''; position: absolute; top: 0; left: 8.75rem; width: 2px; margin-left: -0.5px;
  height: calc(var(--p) * 100%); background: linear-gradient(to bottom, rgba(52,211,153,0.15), var(--emerald));
  box-shadow: 0 0 12px rgba(52,211,153,0.5); border-radius: 2px;
}
.timeline__dot { transition: background-color 0.5s, transform 0.5s var(--ease-out-expo); }
.timeline .timeline__item.revealed[data-side] .timeline__dot { background: var(--emerald); transform: scale(1.35); }
@media (max-width: 700px) { .timeline::after { left: 0.5rem; } }

/* ---- Small screens: calm things down ---- */
@media (max-width: 960px) { .hero__ring { display: none; } }
@media (max-width: 700px) {
  .hero__orb { filter: blur(50px); }
  .hero__orb--1 { width: 22rem; height: 22rem; }
  .hero__orb--2 { width: 18rem; height: 18rem; }
  .hero__stats .stat { animation: none; }
  .marquee { margin: 1rem 0; }
}

/* ---- Reduced motion: everything still, content visible ---- */
@media (prefers-reduced-motion: reduce) {
  .hero__orb, .hero__ring, .hero__ring--2::after, .hero__stats .stat, .marquee__track,
  .hero__headline em .w > span, .hero__tag .dot::after { animation: none !important; }
  .reveal-pop { opacity: 1; translate: none; scale: none; transition: none; }
  .hero__spot { display: none; }
  .identity__photo { scale: 1; }
}


/* ================================================================
   RESEARCH SECTION — motion
   ================================================================ */
.research { position: relative; overflow: hidden; }
.research > .container { position: relative; z-index: 1; }

/* Drifting emerald glows behind the cards */
.research::before, .research::after {
  content: ''; position: absolute; z-index: 0; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: 0.22;
}
.research::before { width: 30rem; height: 30rem; right: -8rem; top: 8%; background: radial-gradient(circle, #34D399, transparent 65%); animation: researchDrift1 20s ease-in-out infinite alternate; }
.research::after  { width: 26rem; height: 26rem; left: -8rem; bottom: 6%; background: radial-gradient(circle, #2DD4BF, transparent 65%); animation: researchDrift2 24s ease-in-out infinite alternate; }
@keyframes researchDrift1 { to { transform: translate(-10rem, 14rem) scale(1.2); } }
@keyframes researchDrift2 { to { transform: translate(12rem, -12rem) scale(1.15); } }
[data-theme="dark"] .research::before, [data-theme="dark"] .research::after { opacity: 0.14; }

/* Heading: words rise in */
.split-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.split-title .w > span {
  display: inline-block; transform: translateY(115%);
  transition: transform 1s var(--ease-out-expo); transition-delay: calc(var(--i, 0) * 80ms + 100ms);
}
.section-header.revealed .split-title .w > span { transform: none; }

/* Accent bar: draws in, then keeps flowing */
.research-card__accent {
  transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, #10B981, #A7F3D0, #10B981); background-size: 200% 100%;
  transition: transform 1.4s var(--ease-out-expo) 0.2s;
}
.research-card.revealed .research-card__accent { transform: scaleX(1); animation: accentFlow 5s linear 1.6s infinite; }
@keyframes accentFlow { to { background-position: -200% 0; } }

/* One-time light sweep as each card arrives */
.research-card::after {
  content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.55) 50%, transparent 62%);
  transform: translateX(-130%);
}
[data-theme="dark"] .research-card::after { background: linear-gradient(115deg, transparent 38%, rgba(52,211,153,0.16) 50%, transparent 62%); }
.research-card.revealed::after { animation: cardSweep 1.5s var(--ease-out-expo) 0.5s forwards; }
@keyframes cardSweep { to { transform: translateX(130%); } }

/* Live "Active Position" dot */
.research-card__type { position: relative; padding-left: 1.5rem; }
.research-card__type::before {
  content: ''; position: absolute; left: 0.7rem; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: currentColor; animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 55%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

/* Numbered items (01, 02 …) with a rule that lights up on hover */
.research-card__bullets:has(> li > strong) { counter-reset: item; }
.research-card__bullets:has(> li > strong) li {
  counter-increment: item; transition: border-color 0.4s, padding-left 0.4s var(--ease-out-expo);
}
.research-card__bullets:has(> li > strong) li::before {
  display: block; position: static; transform: none; width: auto; height: auto; border-radius: 0; background: none;
  content: counter(item, decimal-leading-zero); margin-bottom: 0.35rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; color: var(--clr-teal);
}
.research-card__bullets:has(> li > strong) li:hover { border-left-color: var(--emerald); padding-left: 1.35rem; }

/* Tags lift on hover */
.research-card__tags span { transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, color 0.3s; }
.research-card__tags span:hover { transform: translateY(-3px); border-color: var(--clr-teal); color: var(--clr-teal); }

@media (prefers-reduced-motion: reduce) {
  .research::before, .research::after, .research-card.revealed .research-card__accent, .research-card__type::before { animation: none !important; }
  .research-card.revealed::after { animation: none; display: none; }
  .research-card__accent { transform: none; transition: none; }
  .split-title .w > span { transform: none; transition: none; }
}

/* ================================================================
   CONTACT — dark glass block (matches hero / timeline / footer)
   Animated by js/contact.js (GSAP); CSS here is the full static look.
   ================================================================ */
.contact {
  --clr-text-primary:   #FAFAFA;
  --clr-text-secondary: rgba(255,255,255,0.74);
  --clr-text-muted:     rgba(255,255,255,0.56);
  --clr-teal:           var(--emerald);
  --clr-teal-mid:       var(--emerald);
  --clr-teal-light:     rgba(52,211,153,0.12);
  --clr-surface:        rgba(255,255,255,0.05);
  --clr-surface-2:      rgba(255,255,255,0.08);
  --clr-border:         rgba(255,255,255,0.10);
  --clr-border-med:     rgba(255,255,255,0.22);
  color: var(--clr-text-primary);
}
.section.contact {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-section);
  background: linear-gradient(to bottom, #18181B 0%, #101113 55%, #0B1210 100%);
}
.contact::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 220px; opacity: 0.15; mix-blend-mode: overlay;
}
.contact > .container { position: relative; z-index: 1; }
.contact__fx { position: absolute; inset: -12% 0; z-index: -1; overflow: hidden; pointer-events: none; }
.contact__orb { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.contact__orb--1 { width: 34rem; height: 34rem; right: -10rem; top: -8rem; background: radial-gradient(circle, rgba(16,185,129,0.55), transparent 65%); animation: contactDrift1 20s ease-in-out infinite alternate; }
.contact__orb--2 { width: 28rem; height: 28rem; left: -9rem; bottom: -6rem; background: radial-gradient(circle, rgba(13,148,136,0.45), transparent 65%); animation: contactDrift2 24s ease-in-out infinite alternate; }
@keyframes contactDrift1 { to { transform: translate(-9rem, 8rem) scale(1.2); } }
@keyframes contactDrift2 { to { transform: translate(10rem, -6rem) scale(1.15); } }

/* Heading + intro */
.contact__intro .section-title { color: #fff; }
.contact__intro .section-title em { color: var(--emerald); }
.contact .section-eyebrow { color: var(--emerald); }

/* Trust pillars → glass tiles */
.contact .trust-pillar, .contact .credential-block, .contact .contact__reach-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: none;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.contact .trust-pillar { border-radius: var(--radius-lg); }
.contact .trust-pillar__icon, .contact .credential-block__icon {
  color: var(--emerald); background: rgba(52,211,153,0.10); border: 1px solid rgba(52,211,153,0.25); border-radius: 1rem;
}
.contact .trust-pillar__title, .contact .credential-block__value, .contact .reach-card__headline { color: #fff; }
.contact .trust-pillar__body, .contact .reach-card__body, .contact .ethics-note p { color: var(--clr-text-secondary); }
.contact .credential-block__label { color: var(--emerald); }
.contact .ethics-note { background: rgba(52,211,153,0.06); border-color: rgba(52,211,153,0.25); }
.contact .ethics-note svg { color: var(--emerald); }

/* Reach-out card */
.contact .contact__reach-card {
  position: relative; overflow: hidden; border-radius: var(--radius-section);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.contact .reach-card__pulse {
  display: block; top: -60px; left: auto; right: -60px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(52,211,153,0.5), transparent 70%); filter: blur(30px); opacity: 0.55;
}
.contact .reach-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 1.25rem; box-shadow: none;
  transition: background-color 0.3s, border-color 0.3s, translate 0.4s var(--ease-out-expo);
}
.contact .reach-btn:hover { background: rgba(255,255,255,0.09); border-color: rgba(52,211,153,0.55); translate: 0 -2px; }
.contact .reach-btn .reach-btn__icon {
  background: rgba(52,211,153,0.10); color: var(--emerald); border: 1px solid rgba(52,211,153,0.25);
}
.contact .reach-btn:hover .reach-btn__icon { background: var(--emerald); color: #022C22; }
.contact .reach-btn__label { color: #fff; }
.contact .reach-btn__sub { color: var(--clr-text-muted); }
.contact .reach-btn .reach-btn__arrow { color: var(--emerald); transition: transform 0.35s var(--ease-out-expo); }
.contact .reach-btn:hover .reach-btn__arrow { transform: translateX(6px); }
.contact .reach-card__reassurance { color: var(--clr-text-muted); border-top-color: var(--glass-border); }
/* GSAP owns opacity/transform in this section */
.contact .spot { transition: translate 0.4s var(--ease-out-expo), border-color 0.3s, background-color 0.3s; }
.contact .spot:hover { translate: 0 -3px; }

/* Split heading words: GSAP drives these (no CSS transition) */
.contact .split-title .w > span { transform: none; transition: none; }

/* Trust icons bob gently */
.contact .trust-pillar__icon { animation: iconBob 6s ease-in-out infinite; }
.contact .trust-pillar:nth-child(2) .trust-pillar__icon { animation-delay: -1.5s; }
.contact .trust-pillar:nth-child(3) .trust-pillar__icon { animation-delay: -3s; }
.contact .trust-pillar:nth-child(4) .trust-pillar__icon { animation-delay: -4.5s; }
@keyframes iconBob { 50% { transform: translateY(-5px); } }

@media (prefers-reduced-motion: reduce) { .contact__orb, .contact .trust-pillar__icon { animation: none; } }

/* Timeline: exact date range under the year */
.timeline__year small {
  display: block; margin-top: 0.3rem; font-family: var(--font-sans); font-size: 0.6875rem; font-weight: 500;
  letter-spacing: 0.04em; line-height: 1.35; color: var(--clr-text-muted);
}
