:root {
  --purple-950: #34303a;
  --purple-900: #403848;
  --purple-800: #62536d;
  --purple-700: #75647f;
  --purple-100: #e8e3eb;
  --purple-050: #f6f4f6;
  --ink: #242128;
  --muted: #6d6871;
  --line: #ded9df;
  --white: #ffffff;
  --max-width: 1120px;
  --shadow: 0 20px 48px rgba(42, 36, 47, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--purple-800);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--purple-700);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #cfc4d5;
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 0.9rem;
  color: var(--white);
  background: var(--purple-950);
  border-radius: 0.5rem;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--white);
  background: rgba(52, 48, 58, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  color: var(--purple-950);
  background: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0.65rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 18%, rgba(210, 199, 217, 0.18), transparent 30%),
    linear-gradient(135deg, #34303a 0%, #554a5e 58%, #66586e 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: 6.5rem;
}

.eyebrow,
.section-label,
.publication-kicker {
  margin: 0 0 1rem;
  color: var(--purple-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ddd5e1;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 8vw, 6.6rem);
  font-weight: 500;
}

h2 {
  margin-bottom: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 0.85rem;
  font-size: 1.35rem;
}

.hero-title {
  margin-bottom: 1.25rem;
  color: #f2eef4;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 650;
}

.hero-summary {
  max-width: 650px;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

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

.button-primary:hover {
  color: var(--purple-950);
  background: #f2eff3;
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.button-secondary:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
}

.portrait-wrap {
  position: relative;
  justify-self: center;
}

.portrait-frame {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 1 / 1;
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  border-radius: 1rem;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  pointer-events: none;
}

.node,
.edge {
  position: absolute;
  display: block;
}

.node {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05);
}

.node-a { left: 8%; top: 23%; }
.node-b { left: 19%; top: 39%; }
.node-c { right: 11%; bottom: 22%; }
.node-d { right: 23%; bottom: 37%; }

.edge {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.28), rgba(255,255,255,.05));
  transform-origin: left center;
}

.edge-a { width: 190px; left: 8.5%; top: 24%; transform: rotate(35deg); }
.edge-b { width: 260px; right: 10%; bottom: 23%; transform: rotate(-145deg); }
.edge-c { width: 420px; left: 42%; top: 17%; transform: rotate(78deg); opacity: 0.3; }

.section {
  padding-block: clamp(5rem, 9vw, 8rem);
}

.section-muted {
  background: var(--purple-050);
}

.section-label-main {
  margin-bottom: 1.2rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: 0.13em;
}

.research-heading {
  text-align: left;
}

.research-bubbles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  margin: 3rem auto 0;
  max-width: 980px;
}

.research-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 2rem 2.4rem;
  border: 1px solid rgba(52, 48, 58, 0.12);
  border-radius: 999px;
  box-shadow: 0 20px 42px rgba(43, 38, 47, 0.11);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.research-bubble:first-child {
  width: min(100%, 570px);
  color: #3f3547;
  background: linear-gradient(145deg, #e8e0eb 0%, #d8cadf 100%);
}

.research-bubble:last-child {
  width: min(100%, 330px);
  color: #334347;
  background: linear-gradient(145deg, #dfe9e8 0%, #cadbd8 100%);
}

.content-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
}

.prose {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose p:last-child,
.publication-panel p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.8fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading > p {
  color: var(--muted);
}

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

.research-card {
  min-height: 290px;
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 10px 24px rgba(43, 38, 47, 0.05);
}

.research-card p {
  color: var(--muted);
}

.card-number {
  margin-bottom: 3rem;
  color: var(--purple-700);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.publication-panel {
  display: grid;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--purple-050);
  border-left: 5px solid var(--purple-800);
  border-radius: 0 1rem 1rem 0;
}

.publication-panel p {
  color: var(--muted);
}

.text-link {
  width: fit-content;
  font-weight: 750;
  text-decoration: none;
  border-bottom: 2px solid var(--purple-100);
}

.contact-section {
  color: var(--white);
  background: linear-gradient(135deg, #34303a, #5d5165);
}

.contact-section h2 {
  margin-bottom: 1rem;
}

.contact-section p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
}

.section-label-light {
  color: #ddd5e1;
}

.contact-actions {
  align-self: center;
  justify-content: flex-start;
}

.button-light {
  color: var(--purple-950);
  background: var(--white);
}

.button-light:hover {
  color: var(--purple-950);
  background: #f2eff3;
}

.button-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.button-outline-light:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.noscript-note {
  width: 100%;
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #2b2830;
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(52, 48, 58, 0.99);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

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

  .nav-links a {
    padding: 0.85rem 0.5rem;
  }

  .hero-grid,
  .content-grid,
  .contact-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding-block: 4.5rem 5.5rem;
  }

  .portrait-wrap {
    justify-self: start;
    margin-top: 1rem;
  }

  .portrait-frame {
    width: min(300px, 78vw);
  }

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

  .research-bubbles {
    flex-direction: column;
    gap: 1rem;
  }

  .research-bubble,
  .research-bubble:first-child,
  .research-bubble:last-child {
    width: min(100%, 600px);
    min-height: 160px;
  }

  .research-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 1.75rem;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.6rem);
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
