:root {
  --ink: #173c35;
  --ink-deep: #0f2d28;
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --mint: #dce9dd;
  --sage: #9ebaa8;
  --coral: #e7775e;
  --line: rgba(23, 60, 53, 0.17);
  --sans: "DM Sans", sans-serif;
  --serif: "Newsreader", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 236, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--coral);
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 100px;
}

.nav-cta:hover {
  color: var(--cream);
  background: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 12px 10px;
  border: 0;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 1px;
  margin: 6px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  padding: 6vw;
  overflow: hidden;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  margin: 0 0 1.5rem;
  color: var(--coral);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 7.4vw, 7.6rem);
}

h1 em {
  color: var(--coral);
  font-weight: 500;
}

.hero-intro {
  max-width: 600px;
  color: #49665f;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2.2rem 0 4.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--ink);
}

.text-link {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
}

.text-link span {
  margin-left: 7px;
}

.hero-stats {
  display: flex;
  gap: 4rem;
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.hero-stats span {
  color: #648078;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 580px;
  place-items: center;
}

.portrait-card {
  position: relative;
  z-index: 2;
  width: min(390px, 80%);
  padding: 12px;
  transform: rotate(2deg);
  border: 1px solid var(--line);
  border-radius: 210px 210px 22px 22px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(23, 60, 53, 0.12);
}

.portrait-photo {
  display: block;
  width: 100%;
  height: 460px;
  border-radius: 200px 200px 14px 14px;
  object-fit: cover;
  object-position: center top;
}

.portrait-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px 7px;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6aaa6a;
  box-shadow: 0 0 0 4px rgba(106, 170, 106, 0.14);
}

.orbit {
  position: absolute;
  border: 1px solid var(--sage);
  border-radius: 50%;
}

.orbit-one {
  width: 520px;
  height: 520px;
}

.orbit-two {
  width: 650px;
  height: 400px;
  transform: rotate(-35deg);
}

.section {
  padding: 9rem 7vw;
}

.about {
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
}

.about h2,
.section-heading h2,
.mentoring h2,
.contact h2 {
  font-size: clamp(2.9rem, 5vw, 5.5rem);
}

.about-content .lead {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.35;
}

.about-content p:not(.lead) {
  color: #56706a;
}

.skills {
  display: flex;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 8px;
}

.skills span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 4rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 390px;
  color: #607972;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.paper-card {
  position: relative;
  display: flex;
  min-height: 355px;
  padding: 2rem;
  overflow: hidden;
  justify-content: end;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 253, 248, 0.55);
}

.paper-card:hover {
  border-color: var(--sage);
  background: var(--paper);
}

.paper-featured {
  justify-content: space-between;
  color: white;
  background: var(--ink);
  transition: transform 0.2s, background 0.2s;
}

.paper-featured:hover {
  transform: translateY(-3px);
  background: var(--ink-deep);
}

.paper-icon {
  color: var(--coral);
  font-family: var(--serif);
  font-size: 5rem;
  line-height: 1;
}

.paper-type {
  display: block;
  margin-bottom: 1rem;
  color: var(--coral);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-card h3 {
  max-width: 920px;
  margin-bottom: 0.8rem;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.15;
}

.paper-card p {
  margin-bottom: 0;
  opacity: 0.73;
  font-size: 0.88rem;
}

.card-number {
  position: absolute;
  top: 1.7rem;
  right: 1.7rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  opacity: 0.55;
}

.mentoring {
  display: grid;
  color: white;
  background: var(--ink);
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
}

.mentoring-copy > p:not(.section-label) {
  max-width: 600px;
  color: #bed0ca;
}

.button-light {
  margin-top: 1.2rem;
  color: var(--ink);
  background: var(--cream);
}

.mentoring-list > div {
  display: grid;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  grid-template-columns: 55px 1fr;
}

.mentoring-list span {
  color: var(--coral);
  font-family: var(--serif);
}

.mentoring-list p {
  margin: 0;
  color: #aec3bd;
  font-size: 0.85rem;
}

.mentoring-list strong {
  display: block;
  margin-bottom: 4px;
  color: white;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}

.notes {
  background: var(--paper);
}

.note-tabs {
  display: flex;
  margin-bottom: 2rem;
  gap: 8px;
}

.note-tabs button {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  background: transparent;
  font-size: 0.76rem;
  font-weight: 600;
}

.note-tabs button.active {
  color: white;
  background: var(--ink);
}

.note-row {
  display: grid;
  min-height: 105px;
  align-items: center;
  border-top: 1px solid var(--line);
  grid-template-columns: 80px 1fr 60px;
  transition: padding 0.2s, color 0.2s;
}

.note-row:last-child {
  border-bottom: 1px solid var(--line);
}

.note-row:hover {
  padding-inline: 12px;
  color: var(--coral);
}

.note-row.hidden {
  display: none;
}

.note-index {
  color: var(--coral);
  font-family: var(--serif);
}

.note-row small {
  color: #789089;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.note-row h3 {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.note-arrow {
  justify-self: end;
  font-size: 1.3rem;
}

.notes-disclaimer,
.placeholder-note {
  margin-top: 1rem;
  color: #7b8c87;
  font-size: 0.72rem;
}

.contact {
  padding: 9rem 7vw;
  text-align: center;
  background: var(--mint);
}

.contact > div {
  max-width: 850px;
  margin: 0 auto;
}

.contact > div > p:last-child {
  max-width: 620px;
  margin: 0 auto 3rem;
  color: #57716a;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  padding-bottom: 8px;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 3rem);
}

.round-arrow {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--coral);
  font-family: var(--sans);
  font-size: 1.2rem;
}

footer {
  display: grid;
  min-height: 170px;
  padding: 3rem 6vw;
  align-items: center;
  color: #afc3bd;
  background: var(--ink-deep);
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 0.75rem;
}

footer .brand {
  color: white;
}

footer p {
  margin: 0;
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

@media (max-width: 900px) {
  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    padding: 1.5rem 6vw 2rem;
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    padding-top: 5rem;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 540px;
  }

  .about-content,
  .mentoring {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

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

  .paper-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 3.5rem;
  }

  .hero,
  .section,
  .contact {
    padding-inline: 5vw;
  }

  .hero-actions,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 1rem;
  }

  .hero-visual {
    min-height: 460px;
  }

  .portrait-photo {
    height: 360px;
  }

  .orbit-one {
    width: 420px;
    height: 420px;
  }

  .orbit-two {
    width: 460px;
  }

  .section {
    padding-block: 6rem;
  }

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

  .paper-featured {
    grid-column: auto;
  }

  .note-tabs {
    overflow-x: auto;
  }

  .note-tabs button {
    white-space: nowrap;
  }

  .note-row {
    grid-template-columns: 45px 1fr 30px;
  }

  .contact-email {
    gap: 10px;
    font-size: 1.25rem;
  }

  .round-arrow {
    width: 40px;
    height: 40px;
  }

  footer {
    justify-items: center;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  footer p:last-child {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
