:root {
  --bg: #030711;
  --paper: #07111f;
  --panel: #0b1628;
  --panel-soft: #101d31;
  --ink: #f4f7fb;
  --muted: #aeb9c8;
  --line: rgba(183, 202, 228, 0.17);
  --sage: #7fa7d2;
  --forest: #d5e7ff;
  --rust: #d8b35f;
  --amber: #8fbbe8;
  --wash: #0c1829;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #02040a 0%, #07101e 42%, #030711 100%),
    var(--bg);
  color: var(--ink);
  font-family:
    Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(143, 187, 232, 0.46);
  text-underline-offset: 0.2em;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

a:hover {
  color: var(--forest);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 17, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(213, 231, 255, 0.38);
  border-radius: 50%;
  background: rgba(143, 187, 232, 0.08);
  color: var(--forest);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 26px);
  color: #bfcbda;
  font-size: 0.96rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 76svh;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  padding: 66px 0 70px;
  background:
    linear-gradient(180deg, rgba(3, 7, 17, 0.98), rgba(7, 17, 31, 0.94)),
    linear-gradient(135deg, #02040a 0%, #081429 52%, #02040a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 26%, rgba(143, 187, 232, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(3, 7, 17, 0.99) 0%, rgba(3, 7, 17, 0.93) 54%, rgba(3, 7, 17, 0.72) 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
  padding-top: 8px;
}

.hero-copy {
  min-width: 0;
}

.hero-portrait {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 4;
  margin: 0;
  align-self: center;
  border: 1px solid rgba(213, 231, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--panel-soft);
  background-image:
    radial-gradient(circle at 30% 24%, rgba(143, 187, 232, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(16, 29, 49, 0.96), rgba(3, 7, 17, 0.96));
  box-shadow: var(--shadow);
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(213, 231, 255, 0.14);
  border-radius: 8px;
  pointer-events: none;
}

.hero-portrait span {
  place-self: center;
  color: rgba(213, 231, 255, 0.22);
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 9rem;
  line-height: 1;
  transition: opacity 160ms ease;
}

.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.04) brightness(0.95);
}

.hero-portrait.is-loaded span {
  opacity: 0;
}

.eyebrow,
.section-kicker,
.pub-meta,
.card-index,
.timeline span {
  margin: 0;
  color: var(--rust);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 820px;
  margin-top: 16px;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 5.35rem;
  font-weight: 400;
}

h2 {
  max-width: 780px;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 4.35rem;
  font-weight: 400;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.28;
}

.hero-lede {
  max-width: 700px;
  margin: 30px 0 0;
  color: var(--ink);
  font-size: 1.48rem;
  line-height: 1.52;
  font-weight: 500;
}

.hero-note {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(213, 231, 255, 0.26);
  border-radius: 8px;
  background: rgba(16, 29, 49, 0.72);
  color: var(--forest);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.button:hover {
  border-color: rgba(213, 231, 255, 0.58);
  background: rgba(18, 37, 62, 0.96);
  transform: translateY(-1px);
}

.button.primary {
  border-color: rgba(216, 179, 95, 0.78);
  background: #d8b35f;
  color: #07111f;
}

.button.primary:hover {
  background: #e3c578;
  color: #030711;
}

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

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 88px);
  padding: 64px 0;
  align-items: start;
}

.intro-grid h2 {
  margin-top: 10px;
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.78;
}

.section-block {
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-top: 10px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: var(--forest);
  font-weight: 700;
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 29, 49, 0.92), rgba(8, 17, 31, 0.92));
  padding: 22px;
  box-shadow: var(--shadow);
}

.work-card h3 {
  margin-top: 30px;
}

.work-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.publication-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.publication-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.publication-item h3 {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.28;
  font-size: 1.72rem;
}

.publication-item a {
  text-decoration-thickness: 1px;
}

.background-section {
  padding-top: 70px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.timeline article {
  border-top: 3px solid var(--amber);
  border-radius: 8px;
  background: rgba(16, 29, 49, 0.78);
  padding: 22px;
  box-shadow: var(--shadow);
}

.timeline h3 {
  margin-top: 14px;
}

.timeline p {
  margin: 12px 0 0;
  color: var(--muted);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 82px 0;
}

.contact-section h2 {
  margin-top: 10px;
  max-width: 720px;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 44px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--forest);
  font-weight: 700;
}

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

  h2 {
    font-size: 3.45rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    max-width: 360px;
  }

  .intro-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-section {
    display: grid;
  }

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

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 62px;
  }

  .hero-overlay {
    background:
      radial-gradient(circle at 78% 24%, rgba(143, 187, 232, 0.14), transparent 36%),
      rgba(3, 7, 17, 0.78);
  }

  .hero-portrait {
    max-width: 320px;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .hero-lede {
    font-size: 1.25rem;
  }

  .publication-item h3 {
    font-size: 1.46rem;
  }

  .work-grid,
  .timeline,
  .publication-item {
    grid-template-columns: 1fr;
  }

  .publication-item {
    gap: 8px;
  }

  .section-heading.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .text-link {
    white-space: normal;
  }

  .section-block {
    padding: 70px 0;
  }

  .intro-grid,
  .contact-section {
    padding-block: 58px;
  }
}

@media (max-width: 480px) {
  .section-shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand {
    white-space: normal;
  }

  h1 {
    font-size: 2.9rem;
  }

  h2 {
    font-size: 2.48rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
