/* ================================================================
   JAVERIA SHAMS PORTFOLIO — "Clinical Zen" Design System
   ================================================================ */

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  /* Color — Light Mode "Daytime Clinic" */
  --clr-bg:          #F8F7F4;
  --clr-bg-alt:      #F1EFE9;
  --clr-surface:     #FFFFFF;
  --clr-surface-2:   #EEF0EE;

  --clr-teal:        #1B5E6B;
  --clr-teal-mid:    #2A7A8C;
  --clr-teal-light:  #D4E9EE;
  --clr-sage:        #7A9E8C;
  --clr-sage-light:  #D8EAE1;
  --clr-slate:       #4A5568;
  --clr-slate-light: #E2E8F0;

  --clr-text-primary:   #1A202C;
  --clr-text-secondary: #4A5568;
  --clr-text-muted:     #718096;
  --clr-text-inverse:   #FFFFFF;

  --clr-border:      rgba(0,0,0,0.08);
  --clr-border-med:  rgba(0,0,0,0.14);

  /* Neural SVG colours */
  --neural-edge:     rgba(43, 122, 140, 0.18);
  --neural-node:     rgba(43, 122, 140, 0.55);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-card: 0 2px 12px rgba(27,94,107,0.08), 0 1px 3px rgba(0,0,0,0.04);

  /* Transitions */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-out:   cubic-bezier(0, 0, 0.2, 1);
  --dur-fast:   180ms;
  --dur-base:   300ms;
  --dur-slow:   500ms;
  --dur-reveal: 700ms;

  /* Layout */
  --nav-h:     70px;
  --container: 1120px;
}

/* Dark mode tokens — "Calm Evening" */
[data-theme="dark"] {
  --clr-bg:          #0F1820;
  --clr-bg-alt:      #162130;
  --clr-surface:     #1C2A3A;
  --clr-surface-2:   #243447;

  --clr-teal:        #4DB6C8;
  --clr-teal-mid:    #5EC8DA;
  --clr-teal-light:  rgba(77,182,200,0.15);
  --clr-sage:        #8CBFA8;
  --clr-sage-light:  rgba(140,191,168,0.15);
  --clr-slate:       #94A3B8;
  --clr-slate-light: rgba(148,163,184,0.12);

  --clr-text-primary:   #E8EEF4;
  --clr-text-secondary: #94A3B8;
  --clr-text-muted:     #64748B;
  --clr-text-inverse:   #0F1820;

  --clr-border:      rgba(255,255,255,0.07);
  --clr-border-med:  rgba(255,255,255,0.12);

  --neural-edge:     rgba(77,182,200,0.14);
  --neural-node:     rgba(77,182,200,0.55);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.45);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
}


/* ----------------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--clr-bg);
  color: var(--clr-text-primary);
  line-height: 1.6;
  transition: background-color var(--dur-slow) var(--ease),
              color var(--dur-slow) var(--ease);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ----------------------------------------------------------------
   3. TYPOGRAPHY SYSTEM
---------------------------------------------------------------- */
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-teal-mid);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--clr-text-primary);
  margin-bottom: var(--space-5);
}

.section-body {
  font-size: 1.0625rem;
  color: var(--clr-text-secondary);
  line-height: 1.72;
  max-width: 52ch;
}

.section-body--center { text-align: center; max-width: 62ch; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.section-header .section-title { margin-bottom: var(--space-4); }
.section-header .section-body  { margin: 0 auto; }


/* ----------------------------------------------------------------
   4. LAYOUT UTILITIES
---------------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - 2 * var(--space-6));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-24);
}

.section:nth-child(even) {
  background-color: var(--clr-bg-alt);
}


/* ----------------------------------------------------------------
   5. BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--clr-teal);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27,94,107,0.35);
}
.btn--primary:hover {
  background: var(--clr-teal-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27,94,107,0.40);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-text-primary);
  border: 1.5px solid var(--clr-border-med);
}
.btn--ghost:hover {
  border-color: var(--clr-teal);
  color: var(--clr-teal);
  transform: translateY(-2px);
}

.btn--full { width: 100%; justify-content: center; }


/* ----------------------------------------------------------------
   6. BADGES
---------------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.badge--teal  { background: var(--clr-teal-light);  color: var(--clr-teal); }
.badge--sage  { background: var(--clr-sage-light);  color: #3d7a62; }
[data-theme="dark"] .badge--sage { color: var(--clr-sage); }
.badge--slate { background: var(--clr-slate-light); color: var(--clr-slate); }


/* ----------------------------------------------------------------
   7. NAVIGATION
---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  transition: background var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}

.nav.scrolled {
  background: var(--clr-surface);
  box-shadow: 0 1px 0 var(--clr-border), var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--clr-text-primary);
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--clr-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__link {
  padding: var(--space-2) var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease);
}
.nav__link:hover,
.nav__link.active {
  color: var(--clr-teal);
  background: var(--clr-teal-light);
}

.nav__controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__logo-img {
  width: 140px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}

/* Theme toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--clr-border-med);
  background: var(--clr-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease);
  color: var(--clr-text-secondary);
}
.theme-toggle:hover {
  border-color: var(--clr-teal);
  color: var(--clr-teal);
  transform: rotate(15deg) scale(1.05);
}
.theme-toggle__icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle__icon svg { width: 100%; height: 100%; }

[data-theme="light"] .theme-toggle__icon--sun  { display: flex; }
[data-theme="light"] .theme-toggle__icon--moon { display: none; }
[data-theme="dark"]  .theme-toggle__icon--sun  { display: none; }
[data-theme="dark"]  .theme-toggle__icon--moon { display: flex; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--clr-text-primary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-base) var(--ease);
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav__mobile-overlay {
  position: fixed;
  inset: 0;
  background: var(--clr-surface);
  z-index: 850;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}
.nav__mobile-overlay.open { opacity: 1; pointer-events: all; }

.nav__mobile-links { display: flex; flex-direction: column; gap: var(--space-6); text-align: center; }
.nav__mobile-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--clr-text-primary);
  transition: color var(--dur-fast);
}
.nav__mobile-link:hover { color: var(--clr-teal); }


/* ----------------------------------------------------------------
   8. PROGRESS BAR
---------------------------------------------------------------- */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-teal), var(--clr-sage));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}


/* ----------------------------------------------------------------
   9. HERO
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--clr-bg);
}

/* Neural SVG background — sits above the aurora (z-index 1) */
.hero__bg-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;          /* above aurora (z:0), below content (z:2+) */
  opacity: 0.55;       /* subtle — aurora provides the colour depth */
}

[data-theme="dark"] .hero__bg-canvas {
  opacity: 0.35;       /* darker bg needs less SVG contrast */
}

.neural-svg {
  width: 100%;
  height: 100%;
}

.neural-edges .edge {
  fill: none;
  stroke: var(--neural-edge);
  stroke-width: 1.2;
  stroke-linecap: round;
  animation: edgePulse 5s ease-in-out infinite alternate;
}
.neural-edges .edge:nth-child(2n) { animation-delay: 0.7s; }
.neural-edges .edge:nth-child(3n) { animation-delay: 1.4s; }
.neural-edges .edge:nth-child(4n) { animation-delay: 2.1s; }
.neural-edges .edge:nth-child(5n) { animation-delay: 0.35s; }

@keyframes edgePulse {
  from { stroke-opacity: 0.4; }
  to   { stroke-opacity: 1.0; }
}

.neural-nodes .node {
  fill: var(--neural-node);
  animation: nodePulse 3.5s ease-in-out infinite alternate;
}
.neural-nodes .node:nth-child(2n) { animation-delay: 0.6s; }
.neural-nodes .node:nth-child(3n) { animation-delay: 1.2s; }
.neural-nodes .node:nth-child(4n) { animation-delay: 1.8s; }

@keyframes nodePulse {
  from { opacity: 0.3; }
  to   { opacity: 0.9; }
}

/* ── Aurora ──────────────────────────────────────────────────── */

/*
 * Container sits behind the neural SVG (z-index 0) and is clipped
 * by the parent .hero { overflow: hidden }. No overflow: hidden
 * here — letting layers be larger than viewport is intentional so
 * animated edges never show a hard cutoff.
 */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.aurora__layer {
  position: absolute;
  border-radius: 50%;
  /*
   * will-change: transform tells the GPU to promote each layer to
   * its own compositing layer. Only transform is animated —
   * filter and background are never touched during runtime,
   * so there is no repaint cost.
   */
  will-change: transform;
}

/*
 * Layer 1 — main teal sweep
 * Wide ellipse anchored to the top-right corner.
 * Three-stop gradient: deep teal → mid teal → sage → transparent.
 * This creates the characteristic "two-colour band" of a real aurora.
 */
.aurora__layer--1 {
  width: 90%;
  height: 80%;
  top: -12%;
  right: -14%;
  background: radial-gradient(
    ellipse 68% 52% at 62% 48%,
    rgba(27,  94, 107, 0.52) 0%,
    rgba(43, 122, 140, 0.32) 32%,
    rgba(122,158, 140, 0.16) 58%,
    transparent               82%
  );
  filter: blur(48px);
  animation: auroraOne 14s ease-in-out infinite alternate;
}

/*
 * Layer 2 — sage/green counter-sweep
 * Anchored bottom-left, drifts toward top-right.
 * Colours tilt from sage → teal → transparent to
 * blend with layer 1 in the centre of the viewport.
 */
.aurora__layer--2 {
  width: 85%;
  height: 75%;
  bottom: -14%;
  left: -10%;
  background: radial-gradient(
    ellipse 62% 56% at 38% 62%,
    rgba(122, 158, 140, 0.46) 0%,
    rgba( 95, 145, 115, 0.26) 38%,
    rgba( 27,  94, 107, 0.12) 64%,
    transparent               84%
  );
  filter: blur(52px);
  animation: auroraTwo 18s ease-in-out infinite alternate;
}

/*
 * Layer 3 — blue-indigo accent
 * Sits centre-left and drifts slowly to the right.
 * Low opacity — its sole job is adding the third
 * colour hue that makes aurora feel multi-tonal,
 * not just a two-colour glow.
 */
.aurora__layer--3 {
  width: 72%;
  height: 65%;
  top: 14%;
  left: 4%;
  background: radial-gradient(
    ellipse 56% 50% at 46% 46%,
    rgba( 90, 115, 170, 0.22) 0%,
    rgba( 70,  95, 155, 0.12) 44%,
    transparent               74%
  );
  filter: blur(60px);
  animation: auroraThree 20s ease-in-out infinite alternate;
}

/*
 * Layer 4 — thin horizontal mid-band
 * Spans the full width, roughly at eye-level.
 * Very soft — creates the sense that the aurora
 * sits on a "horizon" rather than floating freely.
 */
.aurora__layer--4 {
  width: 130%;
  height: 38%;
  top: 36%;
  left: -15%;
  background: radial-gradient(
    ellipse 80% 50% at 50% 50%,
    rgba(43, 122, 140, 0.18) 0%,
    rgba(122,158, 140, 0.10) 50%,
    transparent               80%
  );
  filter: blur(44px);
  animation: auroraFour 16s ease-in-out infinite alternate;
}

/* Dark-mode variants — colours more vivid against the dark ground */
[data-theme="dark"] .aurora__layer--1 {
  background: radial-gradient(
    ellipse 68% 52% at 62% 48%,
    rgba( 77, 182, 200, 0.40) 0%,
    rgba( 43, 155, 185, 0.22) 36%,
    rgba(140, 191, 168, 0.12) 62%,
    transparent               84%
  );
}
[data-theme="dark"] .aurora__layer--2 {
  background: radial-gradient(
    ellipse 62% 56% at 38% 62%,
    rgba(140, 191, 168, 0.38) 0%,
    rgba(100, 170, 130, 0.20) 40%,
    rgba( 77, 182, 200, 0.10) 66%,
    transparent               86%
  );
}
[data-theme="dark"] .aurora__layer--3 {
  background: radial-gradient(
    ellipse 56% 50% at 46% 46%,
    rgba(100, 130, 215, 0.28) 0%,
    rgba( 80, 110, 195, 0.14) 46%,
    transparent               74%
  );
}
[data-theme="dark"] .aurora__layer--4 {
  background: radial-gradient(
    ellipse 80% 50% at 50% 50%,
    rgba( 77, 182, 200, 0.20) 0%,
    rgba(140, 191, 168, 0.12) 52%,
    transparent               80%
  );
}

/* ── Keyframes ──
 *
 * Each layer gets a unique trajectory so they drift past each other.
 * Only `transform` is animated — zero repaints, zero layout shifts.
 * Duration differences (14s / 18s / 20s / 16s) ensure the layers
 * never line up in the same position twice.
 */
@keyframes auroraOne {
  0%   { transform: translate(  0px,   0px) scale(1.00) rotate(-3deg); }
  40%  { transform: translate(-28px,  18px) scale(1.05) rotate( 1deg); }
  100% { transform: translate(-55px,  36px) scale(1.10) rotate( 5deg); }
}

@keyframes auroraTwo {
  0%   { transform: translate(  0px,   0px) scale(1.00) rotate( 2deg); }
  50%  { transform: translate( 26px, -22px) scale(1.05) rotate(-1deg); }
  100% { transform: translate( 46px, -46px) scale(1.09) rotate(-4deg); }
}

@keyframes auroraThree {
  0%   { transform: translate(  0px,   0px) scale(1.00); }
  45%  { transform: translate( 38px, -14px) scale(1.04); }
  100% { transform: translate( 68px,  26px) scale(1.08); }
}

@keyframes auroraFour {
  0%   { transform: translateX(  0px) rotate( 0.0deg) scaleY(1.00); }
  50%  { transform: translateX(-18px) rotate( 0.8deg) scaleY(1.04); }
  100% { transform: translateX(-38px) rotate(-1.5deg) scaleY(1.08); }
}

/* Reduced-motion: freeze all aurora layers in place */
@media (prefers-reduced-motion: reduce) {
  .aurora__layer { animation: none !important; }
}

/* Hero content — sits above both aurora (z:0) and neural SVG (z:1) */
.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-20);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--clr-teal-light);
  color: var(--clr-teal);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: var(--space-6);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-sage);
  animation: blinkDot 2s ease-in-out infinite;
}
@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--clr-text-primary);
  max-width: 14em;
  margin-bottom: var(--space-6);
}
.hero__headline em {
  font-style: italic;
  color: var(--clr-teal-mid);
}

.hero__sub {
  font-size: clamp(0.95rem, 2.2vw, 1.125rem);
  color: var(--clr-text-muted);
  font-weight: 400;
  margin-bottom: var(--space-10);
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-16);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__number {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1;
}
.stat__unit {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-teal);
  vertical-align: super;
  margin-left: 2px;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-top: 2px;
}
.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--clr-border-med);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: fadeInUp 1s var(--ease) 1.5s both;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--clr-teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-text {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(1.3); opacity: 1; }
}


/* ----------------------------------------------------------------
   10. IDENTITY SECTION
---------------------------------------------------------------- */
.identity__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.identity__text .section-title { margin-bottom: var(--space-5); }
.identity__text .section-body  { margin-bottom: var(--space-4); }

.identity__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

/* ID card */
.identity__card-wrap {
  position: relative;
}

.id-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  transition: transform var(--dur-slow) var(--ease);
}
.id-card:hover { transform: translateY(-6px); }

.id-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.id-card__avatar {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-sage));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.id-card__name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
}
.id-card__role {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
  margin-top: 2px;
}

.id-card__divider {
  height: 1px;
  background: var(--clr-border);
  margin-bottom: var(--space-6);
}

.id-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.id-card__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
}
.id-card__list li svg {
  width: 16px; height: 16px;
  color: var(--clr-teal);
  flex-shrink: 0;
}

/* Decorative accent card */
.id-card__accent {
  inset: 16px -16px -16px 16px;
  background: linear-gradient(135deg, var(--clr-teal-light), var(--clr-sage-light));
  border-radius: var(--radius-xl);
  z-index: 0;
  transition: inset var(--dur-slow) var(--ease);
}
.identity__card-wrap:hover .id-card__accent {
  inset: 20px -20px -20px 20px;
}


/* ----------------------------------------------------------------
   11. TIMELINE
---------------------------------------------------------------- */
.timeline-section { background: var(--clr-bg-alt); }

.timeline {
  position: relative;
  margin-top: var(--space-4);
}

/* Center spine */
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent,
    var(--clr-teal-light) 5%,
    var(--clr-teal-light) 95%,
    transparent);
  transform: translateX(-50%);
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  column-gap: var(--space-8);
  margin-bottom: var(--space-12);
  align-items: start;
}

/* Year label */
.timeline__year {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-teal);
  white-space: nowrap;
  padding-top: 1.2rem;
}

/* Dot */
.timeline__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 2.5px solid var(--clr-teal);
  margin: 1.4rem auto 0;
  position: relative;
  z-index: 1;
  transition: transform var(--dur-base) var(--ease);
}
.timeline__dot--current {
  background: var(--clr-teal);
  box-shadow: 0 0 0 5px var(--clr-teal-light);
  animation: currentPulse 2.5s ease-in-out infinite;
}
@keyframes currentPulse {
  0%, 100% { box-shadow: 0 0 0 5px var(--clr-teal-light); }
  50%       { box-shadow: 0 0 0 10px transparent; }
}

/* Items: left side shows card on left col, right side on right col */
.timeline__item[data-side="left"] { }
.timeline__item[data-side="left"] .timeline__year { text-align: right; grid-column: 1; }
.timeline__item[data-side="left"] .timeline__dot  { grid-column: 2; }
.timeline__item[data-side="left"] .timeline__card { grid-column: 3; }

.timeline__item[data-side="right"] { }
.timeline__item[data-side="right"] .timeline__year { text-align: left; grid-column: 3; grid-row: 1; order: 3; }
.timeline__item[data-side="right"] .timeline__dot  { grid-column: 2; grid-row: 1; }
.timeline__item[data-side="right"] .timeline__card { grid-column: 1; grid-row: 1; }

/* Card */
.timeline__card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.timeline__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.timeline__card--current {
  border-color: var(--clr-teal-light);
  background: linear-gradient(135deg, var(--clr-surface) 0%, color-mix(in srgb, var(--clr-teal-light) 30%, var(--clr-surface)) 100%);
}

.timeline__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.timeline__org {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--clr-text-muted);
  text-transform: uppercase;
}

.timeline__badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
}
.timeline__badge--vol  { background: var(--clr-sage-light);  color: #3d7a62; }
.timeline__badge--clin { background: var(--clr-teal-light);  color: var(--clr-teal); }
.timeline__badge--edit { background: var(--clr-slate-light); color: var(--clr-slate); }
.timeline__badge--res  { background: rgba(100,116,139,0.12); color: var(--clr-slate); }
.timeline__badge--now  {
  background: var(--clr-teal);
  color: #fff;
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.75; }
}

[data-theme="dark"] .timeline__badge--vol  { color: var(--clr-sage); }

.timeline__role {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-text-primary);
  margin-bottom: var(--space-2);
}

.timeline__desc {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.timeline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.timeline__tags span {
  background: var(--clr-bg-alt);
  color: var(--clr-text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--clr-border);
}
[data-theme="dark"] .timeline__tags span { background: var(--clr-surface-2); }


/* ----------------------------------------------------------------
   12. RESEARCH SECTION
---------------------------------------------------------------- */
.research__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-6);
}

.research-card--featured {
  grid-column: 1 / -1;
}

.research-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.research-card__accent {
  height: 5px;
  background: linear-gradient(90deg, var(--clr-teal), var(--clr-sage));
}

.research-card__body {
  padding: var(--space-8);
}

.research-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.research-card__year {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-teal);
  letter-spacing: 0.04em;
}

.research-card__type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--clr-teal-light);
  color: var(--clr-teal);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.research-card__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: var(--space-1);
}

.research-card__org {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-teal-mid);
  margin-bottom: var(--space-4);
}

.research-card__desc {
  font-size: 0.9375rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.research-card__bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.research-card__bullets li {
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  padding-left: var(--space-5);
  position: relative;
}
.research-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clr-sage);
}

.research-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.research-card__tags span {
  background: var(--clr-bg);
  color: var(--clr-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--clr-border);
}
[data-theme="dark"] .research-card__tags span { background: var(--clr-surface-2); }


/* ----------------------------------------------------------------
   13. SKILLS SECTION
---------------------------------------------------------------- */
.skills { background: var(--clr-bg); }

/* Two equal columns, cards stretch to the same height */
.skills__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Card shell */
.skill-category {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0;                    /* gaps handled individually below */
  transition: box-shadow var(--dur-base) var(--ease);
}
.skill-category:hover { box-shadow: var(--shadow-lg); }

/* Top block: icon → title → desc, stacked */
.skill-category__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
}

.skill-category__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.skill-category__icon svg { width: 26px; height: 26px; }

.skill-category__icon--teal {
  background: var(--clr-teal-light);
  color: var(--clr-teal);
}
.skill-category__icon--sage {
  background: var(--clr-sage-light);
  color: #3d7a62;
}
[data-theme="dark"] .skill-category__icon--sage { color: var(--clr-sage); }

.skill-category__title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.skill-category__desc {
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  line-height: 1.65;
  max-width: 44ch;
}

/* Pill cloud — grows to fill remaining space */
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  align-content: flex-start;
}

/* Single pill base */
.skill-pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease);
  cursor: default;
  line-height: 1;
}
.skill-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Filled — used for top-level skills (2–3 per card max) */
.skill-pill--filled {
  background: var(--clr-teal);
  color: #fff;
}
.skill-pill--filled:hover { background: var(--clr-teal-mid); }

/* Outline — all supporting skills */
.skill-pill--outline {
  background: var(--clr-teal-light);
  color: var(--clr-teal);
  border: 1px solid rgba(43, 122, 140, 0.18);
}
[data-theme="dark"] .skill-pill--outline {
  border-color: rgba(77, 182, 200, 0.22);
}
.skill-pill--outline:hover {
  background: color-mix(in srgb, var(--clr-teal-light) 70%, var(--clr-teal) 30%);
}

/* Footer — sits at the bottom of card 2 */
.skill-category__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--clr-border);
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
}

.skill-category__footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-sage);
  flex-shrink: 0;
  animation: blinkDot 2.4s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 800px) {
  .skills__two-col {
    grid-template-columns: 1fr;
  }
  .skill-category {
    padding: 24px;
  }
}


/* ----------------------------------------------------------------
   14. CLINICAL SECTION
---------------------------------------------------------------- */
.clinical { background: var(--clr-bg-alt); }

.clinical__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-6);
}

.clinical-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.clinical-card:hover:not(.clinical-card--philosophy) {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.clinical-card--philosophy {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--clr-teal-light) 60%, var(--clr-surface)) 0%, var(--clr-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.clinical-card__strip {
  height: 4px;
  border-radius: 2px;
  margin-bottom: var(--space-6);
  width: 40px;
}
.clinical-card__strip--teal  { background: var(--clr-teal); }
.clinical-card__strip--sage  { background: var(--clr-sage); }
.clinical-card__strip--light { background: var(--clr-teal-mid); }

.clinical-card__content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.clinical-card__icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--clr-teal-light);
  color: var(--clr-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.clinical-card__icon svg { width: 28px; height: 28px; }

.clinical-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: var(--space-1);
}

.clinical-card__period {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

.clinical-card__desc {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.68;
  margin-bottom: var(--space-5);
}

.clinical-card__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.pillar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--clr-text-secondary);
}
.pillar__icon {
  color: var(--clr-teal);
  font-size: 0.5rem;
  flex-shrink: 0;
}

/* Clinical quote */
.clinical-quote {
  text-align: center;
  padding: var(--space-6);
  max-width: 68ch;
  margin: 0 auto;
}
.clinical-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--clr-text-primary);
  margin-bottom: var(--space-4);
}
.clinical-quote footer {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-teal);
}


/* ----------------------------------------------------------------
   15. EDITORIAL SECTION
---------------------------------------------------------------- */
.editorial { background: var(--clr-bg); }

.editorial__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

.platform-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.platform-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--clr-teal-light);
  color: var(--clr-teal);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.platform-card__info {
  margin-bottom: var(--space-4);
}
.platform-card__info h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.platform-card__info span {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.platform-card__desc {
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
  line-height: 1.68;
  margin-bottom: var(--space-5);
}

.platform-card__stat {
  padding-top: var(--space-4);
  border-top: 1px solid var(--clr-border);
}
.stat-big {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-teal);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}

/* Impact card */
.impact-card {
  background: linear-gradient(135deg, var(--clr-teal), var(--clr-teal-mid));
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(27,94,107,0.35);
}
.impact-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}
.impact-card p {
  font-size: 0.9375rem;
  line-height: 1.72;
  opacity: 0.9;
  margin-bottom: var(--space-8);
}
.impact-card__metrics {
  display: flex;
  gap: var(--space-8);
}
.impact-metric__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
}
.impact-metric__label {
  font-size: 0.78rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ----------------------------------------------------------------
   16. CONTACT SECTION — Trust & Reach Out
---------------------------------------------------------------- */
.contact { background: var(--clr-bg-alt); }

/* ── Intro ── */
.contact__intro {
  text-align: center;
  margin-bottom: var(--space-16);
}
.contact__intro .section-title {
  margin-bottom: var(--space-4);
}
.contact__intro .section-title em {
  font-style: italic;
  color: var(--clr-teal-mid);
}
.contact__intro .section-body {
  margin: 0 auto;
}

/* ── Trust pillars grid ── */
.contact__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-16);
}

.trust-pillar {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease);
}
.trust-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-pillar__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--clr-teal-light);
  color: var(--clr-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}
.trust-pillar__icon svg { width: 28px; height: 28px; }

.trust-pillar__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.trust-pillar__body {
  font-size: 0.8375rem;
  color: var(--clr-text-secondary);
  line-height: 1.65;
}

/* ── Bottom two-column layout ── */
.contact__reach-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-8);
  align-items: start;
}

/* ── Credentials sidebar ── */
.contact__credentials {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.credential-block {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.credential-block__icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--clr-teal-light);
  color: var(--clr-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.credential-block__icon svg { width: 18px; height: 18px; }

.credential-block__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-bottom: 3px;
}
.credential-block__value {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-primary);
  line-height: 1.4;
}

/* Ethics note */
.ethics-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4);
  background: color-mix(in srgb, var(--clr-sage-light) 60%, var(--clr-surface));
  border-left: 3px solid var(--clr-sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: var(--space-2);
}
[data-theme="dark"] .ethics-note {
  background: color-mix(in srgb, var(--clr-sage-light) 30%, var(--clr-surface));
}
.ethics-note svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--clr-sage);
}
.ethics-note p {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ── Reach-out card ── */
.contact__reach-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.reach-card__top {
  position: relative;
}

/* Soft ambient glow behind the headline */
.reach-card__pulse {
  position: absolute;
  top: -20px; left: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--clr-teal-light);
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.7;
  animation: gentleGlow 5s ease-in-out infinite alternate;
}
@keyframes gentleGlow {
  from { opacity: 0.5; transform: scale(1); }
  to   { opacity: 0.85; transform: scale(1.15); }
}

.reach-card__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--clr-text-primary);
  margin-bottom: var(--space-4);
  position: relative; /* above the glow */
}

.reach-card__body {
  font-size: 0.9375rem;
  color: var(--clr-text-secondary);
  line-height: 1.72;
  max-width: 54ch;
}

/* CTA buttons */
.reach-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.reach-btn {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease);
  border: 1.5px solid transparent;
  color: inherit;
}
.reach-btn:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.reach-btn__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease);
}
.reach-btn__icon svg { width: 22px; height: 22px; }

.reach-btn__text { flex: 1; }
.reach-btn__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-text-primary);
  margin-bottom: 2px;
}
.reach-btn__sub {
  display: block;
  font-size: 0.78rem;
  color: var(--clr-text-muted);
}
.reach-btn__arrow {
  width: 18px; height: 18px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  color: currentColor;
  flex-shrink: 0;
}
.reach-btn:hover .reach-btn__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Email */
.reach-btn--email {
  background: var(--clr-teal-light);
  border-color: rgba(43,122,140,0.18);
}
.reach-btn--email .reach-btn__icon {
  background: var(--clr-teal);
  color: #fff;
}
.reach-btn--email:hover {
  background: color-mix(in srgb, var(--clr-teal-light) 80%, var(--clr-teal) 20%);
}
.reach-btn--email .reach-btn__arrow { color: var(--clr-teal); }

/* LinkedIn */
.reach-btn--linkedin {
  background: rgba(10,102,194,0.07);
  border-color: rgba(10,102,194,0.15);
}
.reach-btn--linkedin .reach-btn__icon {
  background: #0A66C2;
  color: #fff;
}
.reach-btn--linkedin:hover { background: rgba(10,102,194,0.12); }
.reach-btn--linkedin .reach-btn__arrow { color: #0A66C2; }

/* WhatsApp */
.reach-btn--whatsapp {
  background: rgba(37,211,102,0.07);
  border-color: rgba(37,211,102,0.18);
}
.reach-btn--whatsapp .reach-btn__icon {
  background: #25D366;
  color: #fff;
}
.reach-btn--whatsapp:hover { background: rgba(37,211,102,0.13); }
.reach-btn--whatsapp .reach-btn__arrow { color: #25D366; }

/* Reassurance line */
.reach-card__reassurance {
  text-align: center;
  font-size: 0.8375rem;
  color: var(--clr-text-muted);
  font-style: italic;
  padding-top: var(--space-4);
  border-top: 1px solid var(--clr-border);
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .contact__pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__reach-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .contact__pillars {
    grid-template-columns: 1fr;
  }
  .contact__reach-card {
    padding: var(--space-6);
  }
}


/* ----------------------------------------------------------------
   17. FOOTER
---------------------------------------------------------------- */
.footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding-block: var(--space-10);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}
.footer__tagline {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  margin-top: 2px;
}

.footer__nav {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  transition: color var(--dur-fast);
}
.footer__nav a:hover { color: var(--clr-teal); }

.footer__copy {
  font-size: 0.8125rem;
  color: var(--clr-text-muted);
}


/* ----------------------------------------------------------------
   18. REVEAL ANIMATIONS
---------------------------------------------------------------- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-timeline {
  opacity: 0;
  transition: opacity var(--dur-reveal) var(--ease),
              transform var(--dur-reveal) var(--ease);
}

.reveal-up      { transform: translateY(40px); }
.reveal-left    { transform: translateX(-40px); }
.reveal-right   { transform: translateX(40px); }
.reveal-timeline { transform: translateY(30px); }

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Staggered delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* Hero reveals start on load */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}


/* ----------------------------------------------------------------
   19. RESPONSIVE — TABLET (≤ 960px)
---------------------------------------------------------------- */
@media (max-width: 960px) {
  .nav__links   { display: none; }
  .nav__burger  { display: flex; }

  .identity__inner {
    grid-template-columns: 1fr;
  }
  .identity__card-wrap { max-width: 480px; }

  .timeline::before { left: 20px; }
  .timeline__item {
    grid-template-columns: 40px 1fr;
    column-gap: var(--space-4);
  }
  .timeline__item[data-side="left"],
  .timeline__item[data-side="right"] {
    display: grid;
    grid-template-columns: 40px 1fr;
  }
  .timeline__item[data-side="right"] .timeline__year,
  .timeline__item[data-side="left"]  .timeline__year {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    order: 0;
  }
  .timeline__item[data-side="right"] .timeline__dot,
  .timeline__item[data-side="left"]  .timeline__dot {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-top: 1.4rem;
  }
  .timeline__item[data-side="right"] .timeline__card,
  .timeline__item[data-side="left"]  .timeline__card {
    grid-column: 2;
    grid-row: 2;
  }

  .research__grid    { grid-template-columns: 1fr; }
  .research-card--featured { grid-column: 1; }

  .skills__grid      { grid-template-columns: 1fr 1fr; }

  .clinical__grid    { grid-template-columns: 1fr; }
  .clinical-card--philosophy { grid-column: 1; }

  .editorial__layout { grid-template-columns: 1fr; }

  .contact__inner { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------
   20. RESPONSIVE — MOBILE (≤ 600px)
---------------------------------------------------------------- */
@media (max-width: 600px) {
  :root {
    --space-24: 4rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
  }

  .hero__stats {
    gap: var(--space-4);
  }

  .skills__grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; text-align: center; gap: var(--space-5); }

  .hero__headline { font-size: clamp(2rem, 10vw, 3rem); }

  .clinical-card__pillars { grid-template-columns: 1fr; }

  .contact__social-proof { gap: var(--space-6); }

  .id-card__accent { display: none; }
}


/* ----------------------------------------------------------------
   21. REDUCED MOTION
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-up, .reveal-left, .reveal-right, .reveal-timeline {
    opacity: 1;
    transform: none;
  }
}


/* ----------------------------------------------------------------
   22. FOCUS STYLES (accessibility)
---------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--clr-teal);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ----------------------------------------------------------------
   23. SCROLLBAR STYLING
---------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg); }
::-webkit-scrollbar-thumb {
  background: var(--clr-teal-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-teal-mid); }


/* ----------------------------------------------------------------
   24. SELECTION
---------------------------------------------------------------- */
::selection {
  background: var(--clr-teal-light);
  color: var(--clr-teal);
}

/* ── Identity Photo Card ────────────────────────────── */

.identity__photo-card {
  position: relative;
  margin-bottom: 2rem;
}

.identity__photo-tilt {
  max-height: 480px;  /* add this line */
  position: relative;
  transform: rotate(-2deg);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 2px 0 0 rgba(0,0,0,0.06),
    0 8px 32px rgba(0,0,0,0.12);
  transition: transform 0.4s ease;
}

.identity__photo {
  width: 100%;
  height: 100%;           /* add this */
  max-height: 480px;      /* add this */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.identity__photo-tilt:hover {
  transform: rotate(0deg) scale(1.02);
}



.identity__photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(10, 60, 50, 0.82) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.identity__photo-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8e6d4;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(168, 230, 212, 0.35);
  border-radius: 100px;
  background: rgba(15, 110, 86, 0.4);
  backdrop-filter: blur(6px);
}

/* Decorative angled accents behind the photo */
.identity__photo-accent-1 {
  position: absolute;
  top: 12px;
  left: -10px;
  right: 10px;
  bottom: -12px;
  border-radius: 18px;
  border: 2px solid var(--color-teal, #1D9E75);
  opacity: 0.25;
  transform: rotate(-4deg);
  z-index: -1;
  pointer-events: none;
}

.identity__photo-accent-2 {
  position: absolute;
  top: 20px;
  left: -18px;
  right: 18px;
  bottom: -20px;
  border-radius: 18px;
  background: var(--color-teal-light, #E1F5EE);
  opacity: 0.4;
  transform: rotate(-6deg);
  z-index: -2;
  pointer-events: none;
}

/* Dark mode adjustments */
[data-theme="dark"] .identity__photo-accent-2 {
  opacity: 0.08;
}

[data-theme="dark"] .identity__photo-accent-1 {
  opacity: 0.2;
}