:root {
  --bg: #faf8f1;
  --bg-soft: #f3f0e7;
  --ink: #151512;
  --muted: #5f5c55;
  --line: #d9d2c2;
  --panel: #eceee6;
  --panel-deep: #e1e7dd;
  --accent: #8c4b35;
  --accent-2: #53685f;
  --cream: #fffdf8;
  --quiet-blue: #e2eaeb;
  --radius: 8px;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

button,
a {
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

button {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.wrap {
  width: min(1284px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 241, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  font-family: var(--sans);
}

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

.brand {
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #262520;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  background: var(--panel);
}

.nav-links a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.nav-links a.active:hover {
  transform: translateY(-1px);
  background: #2a2924;
}

.hero {
  min-height: 88vh;
  padding: 114px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(83, 104, 95, 0.08), transparent 32%),
    linear-gradient(180deg, #faf8f1 0%, #f6f2e9 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 64px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 940px;
  margin: 26px 0 28px;
  font-family: var(--sans);
  font-size: 2.65rem;
  line-height: 1.08;
  font-weight: 900;
}

.hero h1 a {
  text-decoration: none;
}

.hero h1 a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.12em;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 760px;
  margin-top: 10px;
}

.hero-copy p {
  margin: 0;
  color: #24231f;
  font-size: 1.32rem;
  line-height: 1.45;
}

.hero-copy .abstract-text {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.56;
}

.paper-meta {
  border-top: 1px solid var(--line);
  font-family: var(--sans);
}

.meta-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.meta-row strong {
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  font-family: var(--sans);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 850;
  cursor: pointer;
}

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

.button:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.button.primary:hover {
  background: #2a2924;
}

.bibtex-fallback {
  max-width: 760px;
  margin: 16px 0 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.poster-stage {
  position: sticky;
  top: 96px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.poster-preview {
  display: block;
  overflow: hidden;
  aspect-ratio: 0.75;
  border: 1px solid #cfc8b9;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 0 22px 60px rgba(21, 21, 21, 0.10);
}

.poster-stage .poster-preview {
  border: 0;
  background: transparent;
  box-shadow: 0 24px 72px rgba(21, 21, 21, 0.12);
  transform: translateY(var(--poster-shift, 0));
}

.poster-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.72;
  border: 1px solid #cfc8b9;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    var(--cream);
  background-size: 22px 22px;
  box-shadow: 0 22px 60px rgba(21, 21, 21, 0.10);
  transform: translateY(var(--poster-shift, 0));
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(83, 104, 95, 0.10) 100%),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(21, 21, 21, 0.055) 43px 44px);
}

.poster-content {
  position: absolute;
  inset: 26px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
}

.poster-kicker {
  width: max-content;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--sans);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.poster-title {
  margin: 0;
  max-width: 360px;
  font-family: var(--sans);
  font-size: 2rem;
  line-height: 0.98;
  font-weight: 900;
}

.poster-diagram {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  min-height: 260px;
}

.poster-box {
  min-height: 82px;
  border: 1px solid #d2ccbe;
  border-radius: var(--radius);
  background: rgba(250, 248, 241, 0.82);
}

.poster-box.wide {
  grid-column: span 2;
}

.poster-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.poster-foot span {
  height: 8px;
  border-radius: 99px;
  background: var(--accent-2);
  opacity: 0.72;
}

.section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 36px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 3.2rem;
  line-height: 1;
  font-weight: 900;
}

.section-head > p:not(.section-kicker) {
  margin: 0;
  color: #2d2c27;
  font-size: 1.24rem;
  line-height: 1.45;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.insight {
  min-height: 270px;
  padding: 24px;
  background: var(--bg);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease, background 0.15s ease;
}

.insight:hover {
  background: var(--bg-soft);
}

.insight.visible {
  transform: translateY(0);
  opacity: 1;
}

.insight span {
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight h3 {
  margin: 28px 0 12px;
  font-family: var(--sans);
  font-size: 1.6rem;
  line-height: 1.08;
}

.insight p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
}

.poster-section {
  background: var(--panel);
}

.poster-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.poster-showcase > *,
.poster-notes,
.poster-large,
.note {
  min-width: 0;
}

.poster-large {
  display: grid;
  min-height: 680px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.poster-large-landscape {
  min-height: 0;
  padding: 14px;
}

.poster-large .poster-preview {
  height: 100%;
  min-height: 640px;
  box-shadow: none;
}

.poster-large .poster-preview-landscape {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
}

.poster-large .poster {
  height: 100%;
  min-height: 640px;
  box-shadow: none;
}

.poster-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.note h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.3rem;
}

.note p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
}

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

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 150px;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
}

.release-row:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.release-row h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.5rem;
  line-height: 1.2;
}

.release-row p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
}

.release-meta {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.release-link {
  justify-self: end;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 850;
}

.bio-section {
  padding: 108px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.68fr);
  gap: 54px;
  align-items: start;
}

.bio-copy {
  min-height: 560px;
  display: grid;
  align-content: start;
}

.bio-copy h2 {
  max-width: 820px;
  margin: 0 0 28px;
  font-family: var(--sans);
  font-size: 4.2rem;
  line-height: 0.98;
  font-weight: 900;
}

.bio-copy .bio-lead {
  max-width: 760px;
  margin: 0 0 32px;
  color: #25231f;
  font-size: 1.42rem;
  line-height: 1.45;
}

.bio-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.bio-columns h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 1rem;
}

.bio-columns p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 1rem;
}

.headshot-panel {
  position: sticky;
  top: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.headshot-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.headshot-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #cfc8b9;
  border-radius: var(--radius);
  background: #d7dce5;
}

.headshot-slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact {
  padding: 58px 0;
  background: var(--ink);
  color: var(--cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
}

.contact h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 2.5rem;
  line-height: 1;
}

.contact p {
  margin: 0;
  color: #d7d0c1;
  font-family: var(--sans);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.contact-links a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: var(--radius);
  color: var(--cream);
}

.contact-links a:hover {
  background: rgba(255, 253, 248, 0.1);
  border-color: rgba(255, 253, 248, 0.54);
}

.contact-icon {
  display: block;
  width: 22px;
  height: 22px;
}

.contact-icon-stroke {
  fill: none;
  stroke: #fffdf8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-icon-fill {
  fill: #fffdf8;
  stroke: none;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: none;
  max-width: 330px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.92rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.toast.show {
  display: block;
}

.reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.reveal.visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1020px) {
  .hero-grid,
  .hero-copy,
  .section-head,
  .poster-showcase,
  .bio-layout,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .poster-stage,
  .headshot-panel {
    position: relative;
    top: auto;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .release-row {
    grid-template-columns: 1fr;
  }

  .release-link {
    justify-self: start;
  }

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

  .poster-notes {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .wrap {
    width: min(calc(100% - 28px), 1284px);
  }

  [id] {
    scroll-margin-top: 172px;
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: 1.82rem;
  }

  .hero-copy p,
  .section-head > p:not(.section-kicker) {
    font-size: 1.08rem;
  }

  .section h2,
  .bio-copy h2 {
    font-size: 2.35rem;
  }

  .bio-section {
    padding: 64px 0;
  }

  .bio-copy {
    min-height: 0;
  }

  .bio-copy .bio-lead {
    font-size: 1.08rem;
  }

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

  .poster-content {
    inset: 18px;
  }

  .poster-title {
    font-size: 1.55rem;
  }

  .poster-diagram {
    min-height: 180px;
  }

  .poster-large {
    min-height: 0;
  }

  .poster-large .poster {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 0.72;
  }

  .poster-large .poster-preview {
    width: 100%;
    min-height: 0;
    height: auto;
  }
}

@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;
  }

  .poster {
    transform: none !important;
  }

  .poster-preview {
    transform: none !important;
  }
}
