*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --crimson: #C0272D;
  --crimson-subtle: rgba(192, 39, 45, 0.08);
  --bg: #0A0A0C;
  --bg-elevated: #111114;
  --bg-surface: #18181B;
  --text: #E4E4E7;
  --text-secondary: #A1A1AA;
  --text-muted: #63636B;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.10);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle noise grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

::selection {
  background: var(--crimson);
  color: #fff;
}

a {
  color: inherit;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled {
  padding: 1rem 3rem;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav-logo img {
  height: 80px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.3s, height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.scrolled .nav-logo img {
  height: 52px;
}

.nav-logo:hover img {
  opacity: 1;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 6rem;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--crimson);
  margin-bottom: 2rem;
  opacity: 0;
  animation: rule-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes rule-in {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 48px;
    opacity: 1;
  }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--crimson);
}

.hero-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 620px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.scroll-cue-line {
  width: 32px;
  height: 1px;
  background: var(--text-muted);
}

.scroll-cue-text {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── SECTIONS ─── */
section {
  padding: 7rem 3rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ─── PRACTICE ─── */
#practice {
  background: var(--bg);
}

.practice-text {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 780px;
  margin-bottom: 4rem;
}

.practice-text strong {
  color: var(--text);
  font-weight: 500;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.focus-item {
  padding: 2rem 2.25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.focus-item:hover {
  background: var(--bg-elevated);
}

.focus-item h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.focus-item p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ─── RESEARCH ─── */
#research {
  background: var(--bg-elevated);
}

.research-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.research-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.research-text+.research-text {
  margin-top: 1.25rem;
}

.research-areas {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.research-area {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.research-area:first-child {
  border-top: 1px solid var(--border);
}

.research-area-name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.research-area-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── ABOUT ─── */
#about {
  background: var(--bg);
}

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) contrast(1.02);
  border: 1px solid var(--border);
}

.about-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.about-role {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--crimson);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
}

.about-bio {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-affiliations {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.about-affiliations-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.aff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.aff-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: all 0.2s;
}

.aff-tag:hover {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

/* ─── CONTACT ─── */
#contact {
  background: var(--bg-elevated);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-item-value {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-item-value a {
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item-value a:hover {
  color: var(--crimson);
}

/* ─── FOOTER ─── */
footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav {
    padding: 1.25rem 1.5rem;
  }

  nav.scrolled {
    padding: 0.8rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .nav-toggle {
    display: flex;
    background: transparent;
    border: none;
    padding: 0.5rem;
  }

  section {
    padding: 5rem 1.5rem;
  }

  .hero {
    padding: 7rem 1.5rem 5rem;
  }

  .scroll-cue {
    left: 1.5rem;
    bottom: 2rem;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .research-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo-wrap {
    max-width: 240px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
}