/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --navy:      #0d1b2a;
  --navy-mid:  #132236;
  --navy-light:#1e3a5f;
  --teal:      #0e7490;
  --teal-light:#22d3ee;
  --gold:      #c9a84c;
  --gold-light:#e8c97a;
  --white:     #ffffff;
  --off-white: #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-500:  #64748b;
  --gray-700:  #334155;
  --gray-900:  #0f172a;

  --ff-serif:  'Playfair Display', Georgia, serif;
  --ff-sans:   'Inter', system-ui, sans-serif;

  --radius:    6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.16);

  --nav-h:     72px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  font-size: 18px; /* bumped from 16px — scales all rem values */
}

body {
  font-family: var(--ff-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.section-light  { background: var(--off-white); }
.section-dark   { background: var(--navy); color: var(--white); }
.section-accent { background: var(--navy-mid); color: var(--white); }

/* =========================================================
   TYPOGRAPHY UTILITIES
   ========================================================= */
.section-eyebrow {
  font-family: var(--ff-sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-eyebrow.light { color: var(--teal-light); }

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 2.5rem;
}
.section-title.light { color: var(--white); }

.sub-heading {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.sub-heading.light { color: var(--white); border-bottom-color: var(--teal-light); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  height: var(--nav-h);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
.nav-logo span {
  font-family: var(--ff-sans);
  font-size: .67rem;
  font-weight: 400;
  color: var(--teal-light);
  letter-spacing: .05em;
  margin-left: .4rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
}
.nav-links a {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: .4rem .7rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav-links a.active { color: var(--teal-light); }

.btn-nav {
  background: var(--teal) !important;
  color: var(--white) !important;
  border-radius: var(--radius) !important;
  padding: .42rem 1rem !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.btn-nav:hover { background: var(--teal-light) !important; color: var(--navy) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: var(--white); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* =========================================================
   HERO — split layout
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 30% 50%, rgba(14,116,144,.20) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 5% 90%, rgba(14,116,144,.10) 0%, transparent 60%);
}

/* subtle grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.hero-split {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.hero-content {
  flex: 1 1 0;
  min-width: 0;
}

.hero-photo-wrap {
  flex: 0 0 420px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: flex-start;
  padding-top: calc(var(--nav-h) + 1rem);
}

.hero-photo {
  width: 100%;
  max-width: 420px;
  object-fit: cover;
  object-position: top center;
  display: block;
  /* only fade bottom edge — let face show from the top */
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 75%,
    transparent 100%
  );
  filter: brightness(0.92) contrast(1.04);
}

.hero-eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--ff-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.hero-credentials {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .2em;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: rgba(255,255,255,.85);
  margin-bottom: .65rem;
  line-height: 1.35;
}

.hero-institution {
  font-size: .92rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.85rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.07);
}

.hero-scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-cue span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-cue span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  border-radius: 2px;
  background: rgba(255,255,255,.5);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  outline: 1px solid var(--gray-200);
}

.about-text p {
  margin-bottom: 1.15rem;
  color: var(--gray-700);
  font-size: 1rem;
}
.about-text .section-title { margin-bottom: 1.5rem; }
.about-text a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.about-text a:hover { color: var(--navy); }

/* =========================================================
   CLINICAL / SPECIALTY GRID
   ========================================================= */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.specialty-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-top: 3px solid var(--teal);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  transition: background var(--transition), transform var(--transition);
}
.specialty-card:hover {
  background: rgba(255,255,255,.07);
  transform: translateY(-3px);
}

.specialty-num {
  font-family: var(--ff-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.12);
  margin-bottom: .75rem;
  line-height: 1;
}
.specialty-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .8rem;
}
.specialty-card p {
  font-size: .94rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* =========================================================
   TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--teal-light), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 3.25rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -5px;
  top: 8px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--off-white);
  box-shadow: 0 0 0 3px var(--teal);
}

.timeline-period {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .35rem;
}
.timeline-content h3 {
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}
.timeline-place {
  font-size: .88rem;
  color: var(--gray-500);
  margin-bottom: .7rem;
  font-style: italic;
}
.timeline-content p {
  font-size: .97rem;
  color: var(--gray-700);
  line-height: 1.7;
}

/* =========================================================
   MEDIA SECTION
   ========================================================= */
.media-intro {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 3rem;
  max-width: 640px;
}

.media-category {
  margin-bottom: 3.5rem;
}
.media-category:last-child { margin-bottom: 0; }

.media-category-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--gray-200);
  display: block;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.media-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.media-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.media-card {
  text-decoration: none;
  display: block;
}

.media-thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: var(--gray-900);
  overflow: hidden;
}

.media-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .4s ease;
  filter: brightness(.88);
}

.media-card:hover .media-thumb-wrap img {
  transform: scale(1.04);
  filter: brightness(.7);
}

.media-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.media-play-btn svg {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
  transition: transform .25s ease;
}

.media-card:hover .media-play-btn svg {
  transform: scale(1.12);
}

.media-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.media-card-body h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

/* =========================================================
   TEACHING
   ========================================================= */
.teaching-grid { align-items: start; }

.feature-item {
  display: flex;
  gap: .9rem;
  margin-bottom: 1.5rem;
}
.feature-icon {
  color: var(--teal-light);
  font-size: .55rem;
  margin-top: .7rem;
  flex-shrink: 0;
}
.feature-item div { font-size: .97rem; color: rgba(255,255,255,.75); line-height: 1.7; }
.feature-item strong { color: var(--white); }

.feature-list {
  list-style: none;
  counter-reset: feature-counter;
  margin: 0;
  padding: 0;
}
.feature-list li {
  counter-increment: feature-counter;
  display: flex;
  gap: .9rem;
  margin-bottom: 1.5rem;
  font-size: .97rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}
.feature-list li::before {
  content: counter(feature-counter) ".";
  color: var(--teal-light);
  font-weight: 600;
  flex-shrink: 0;
}
.feature-list strong { color: var(--white); }

.research-text { font-size: .97rem; color: rgba(255,255,255,.75); line-height: 1.7; }

.publications-section {
  margin-top: 4rem;
}

.publication-box {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
}
.publication-box:last-child { margin-bottom: 0; }
.pub-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .65rem;
}
.pub-title {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .4rem;
  line-height: 1.4;
}
.pub-journal {
  font-size: .9rem;
  color: var(--teal-light);
  font-weight: 500;
  margin-bottom: .8rem;
}
.pub-authors {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: .4rem;
  font-style: italic;
}

.pub-link {
  color: var(--teal-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.pub-link:hover { color: var(--white); }

.pub-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

/* =========================================================
   BLOG SECTION
   ========================================================= */
.blog-intro {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.blog-embed {
  max-width: 900px;
  margin: 0 auto;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-container { text-align: center; }
.contact-intro {
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1rem;
  color: rgba(255,255,255,.65);
  line-height: 1.75;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 1.35rem 1.85rem;
  transition: background var(--transition), transform var(--transition);
  text-align: left;
}
a.contact-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
  border-color: var(--teal-light);
}
.contact-card-info { cursor: default; }

.contact-card-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.contact-card-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: .3rem;
}
.contact-card-value {
  font-size: .95rem;
  color: var(--white);
  font-weight: 500;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--gray-900);
  padding-block: 2.25rem;
  color: rgba(255,255,255,.5);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-name {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem;
}
.footer-links a {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  padding: .2rem .7rem;
  border-radius: 4px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }
.footer-badge img { display: block; max-width: 100%; height: auto; }
.footer-copy { font-size: .75rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  .hero-photo-wrap { flex: 0 0 320px; padding-top: calc(var(--nav-h) + 0.5rem); }
  .about-grid { grid-template-columns: 280px 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    transform: translateY(-100vh);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .8rem 2rem; border-radius: 0; font-size: .9rem; }

  /* Hero stacks: photo above content on mobile */
  .hero-split {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    padding-top: calc(var(--nav-h) + 1rem);
    padding-bottom: 4rem;
    min-height: auto;
  }
  .hero-photo-wrap {
    flex: none;
    width: 60%;
    max-width: 280px;
    align-self: center;
    padding-top: 0;
  }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }

  /* About stacks */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo-wrap { max-width: 320px; margin-inline: auto; }

  .grid-2 { grid-template-columns: 1fr; }
  .teaching-grid { gap: 2.5rem; }

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

  .contact-card {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-photo-wrap { width: 75%; }
  .media-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SCROLL-TRIGGERED FADE-IN
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
