:root {
  --bg: #f7f9fc;
  --bg-alt: #eef3f8;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --ink: #0e1728;
  --ink-soft: #5b687c;
  --accent: #6aa6cf;
  --accent-strong: #4f84b0;
  --line: rgba(14, 23, 40, 0.1);
  --glow: rgba(106, 166, 207, 0.08);
  --shadow: 0 16px 34px rgba(17, 28, 46, 0.05);
  --shell: 1120px;
  --content-width: 58rem;
  --portrait-width: 18.15rem;
  --portrait-aspect: 0.76 / 1;
  --section-break-width: 24rem;
  --heading-font: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --body-font: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono-font: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.72;
  background:
    radial-gradient(circle at top left, rgba(106, 166, 207, 0.08), transparent 24%),
    linear-gradient(180deg, #f9fbfe 0%, var(--bg) 100%);
  background-size: auto, auto;
  background-position: 0 0, 0 0;
}

.page-frame {
  width: min(calc(100% - 1.5rem), 1320px);
  margin: 0.9rem auto 0;
  border: 1px solid rgba(14, 23, 40, 0.1);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 14px 32px rgba(17, 28, 46, 0.04);
}

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

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

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

.button-row,
.interest-list,
.paper-entry__top,
.paper-entry__meta,
.paper-entry__title-row,
.paper-entry__title-links {
  display: flex;
}

.landing,
.page-header {
  position: relative;
  overflow: hidden;
}

.landing::before,
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(106, 166, 207, 0.12), transparent 16rem),
    radial-gradient(circle at 16% 18%, rgba(79, 132, 176, 0.05), transparent 14rem);
  pointer-events: none;
}

.landing__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18.5rem, var(--portrait-width));
  gap: 1.25rem;
  align-items: stretch;
  padding: 3.8rem 0 3.5rem;
}

.landing__copy,
.profile-panel,
.profile-links,
.prose {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.landing__copy {
  height: 100%;
  padding: 1.85rem;
  border-radius: 1.3rem;
}

.profile-column {
  width: min(100%, var(--portrait-width));
  justify-self: end;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
}

.profile-panel {
  width: 100%;
  height: auto;
  border-radius: 1.3rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
}

.profile-panel {
  padding: 0.62rem;
}

.profile-panel__frame {
  width: 100%;
  height: auto;
  aspect-ratio: var(--portrait-aspect);
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(106, 166, 207, 0.08), rgba(79, 132, 176, 0.05));
  border: 1px solid rgba(14, 23, 40, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.profile-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: saturate(1.02) contrast(1.04);
}

.profile-links {
  border-radius: 1.3rem;
  padding: 1rem 1.1rem;
}

.mono-label,
.section-label,
.abstract-toggle__label,
.inline-link,
.site-footer__inner {
  font-family: var(--mono-font);
}

.section-label,
.mono-label {
  margin: 0 0 0.95rem;
  color: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.9rem, 5.5vw, 5.4rem);
  margin-bottom: 0.35rem;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
  margin-bottom: 0.7rem;
}

h3 {
  font-size: 1.38rem;
}

.landing__role,
.paper-entry__meta,
.site-footer__inner,
.page-lead {
  color: inherit;
}

.landing__role {
  margin: 0 0 1rem;
  font-size: 1.04rem;
}

.landing__intro,
.page-lead {
  max-width: 42rem;
  font-size: 1.05rem;
  margin: 0;
}

.interest-block {
  margin-top: 1.45rem;
}

.interest-block__title {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.button-row {
  gap: 0.95rem;
  flex-wrap: wrap;
  margin-top: 1.45rem;
}

.button-row--hero {
  margin-top: 0;
  margin-bottom: 1.15rem;
}

.button-row--links {
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.button {
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.button:hover {
  color: #2d628d;
}

.interest-list {
  flex-wrap: wrap;
  gap: 0.32rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: inherit;
  line-height: 1.55;
}

.interest-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.93rem;
  white-space: nowrap;
}

.interest-item:not(:last-child)::after {
  content: "•";
  margin-left: 0.55rem;
  color: rgba(91, 104, 124, 0.48);
}

.journey-block {
  margin-top: 0.95rem;
  padding-top: 0.2rem;
}

.journey-block__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.journey-map {
  position: relative;
  min-height: 14.3rem;
}

.journey-map__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.journey-map__line {
  fill: none;
  stroke: rgba(79, 132, 176, 0.38);
  stroke-width: 5.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-map__line--early {
  stroke: rgba(79, 132, 176, 0.28);
}

.journey-map__line--mid {
  stroke: rgba(79, 132, 176, 0.46);
}

.journey-map__line--late {
  stroke: rgba(79, 132, 176, 0.68);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.journey-step--1 {
  grid-column: 1;
  grid-row: 1;
}

.journey-step--2 {
  grid-column: 2;
  grid-row: 1;
}

.journey-step--3 {
  grid-column: 3;
  grid-row: 1;
}

.journey-step--4 {
  grid-column: 3;
  grid-row: 2;
}

.journey-step--5 {
  grid-column: 2;
  grid-row: 2;
}

.journey-step--6 {
  grid-column: 1;
  grid-row: 2;
}

.journey-step--7 {
  grid-column: 1;
  grid-row: 3;
}

.journey-step--8 {
  grid-column: 2;
  grid-row: 3;
}

.journey-step--9 {
  grid-column: 3;
  grid-row: 3;
}

.logo-chip {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.1rem;
  height: 4.1rem;
  margin: 0 auto;
  border-radius: 1.1rem;
  border: 1px solid rgba(14, 23, 40, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 22px rgba(17, 28, 46, 0.06);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.logo-chip:hover {
  transform: translateY(-0.08rem);
  border-color: rgba(79, 132, 176, 0.28);
  box-shadow: 0 12px 24px rgba(17, 28, 46, 0.09);
}

.logo-chip__image {
  width: 2.45rem;
  height: 2.45rem;
  object-fit: contain;
}

.interest-block {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(14, 23, 40, 0.1);
}

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

.section,
.page-header {
  padding: 4rem 0;
}

.section--tight {
  padding-top: 2rem;
  padding-bottom: 1.35rem;
}

.section--tight + .section--tight {
  padding-top: 0.55rem;
}

.section-break {
  position: relative;
  width: min(100%, var(--section-break-width));
  height: 0.7rem;
  margin: 0 auto 2.5rem;
}

.section-break::before,
.section-break::after {
  content: "";
  position: absolute;
}

.section-break::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(14, 23, 40, 0.18) 16%, rgba(14, 23, 40, 0.18) 84%, transparent 100%);
}

.section-break::after {
  left: 50%;
  top: 50%;
  width: 4.6rem;
  height: 0.3rem;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, rgba(79, 132, 176, 0.5), rgba(106, 166, 207, 0.95), rgba(79, 132, 176, 0.5));
  box-shadow: 0 0 12px rgba(106, 166, 207, 0.12);
}

.page-header {
  padding-top: 5rem;
  padding-bottom: 2.4rem;
}

.page-header .shell {
  position: relative;
  z-index: 1;
}

.paper-list {
  padding: 0;
  max-width: var(--content-width);
}

.section-heading {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.3rem;
  max-width: var(--content-width);
}

.paper-entry {
  position: relative;
  padding: 1.02rem 0 1.08rem;
}

.paper-entry::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(14, 23, 40, 0.12) 12%, rgba(14, 23, 40, 0.12) 88%, transparent 100%);
}

.paper-entry:last-child::after {
  display: none;
}

.paper-entry__top {
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.paper-entry__heading {
  min-width: 0;
}

.paper-entry__title-row {
  align-items: baseline;
  gap: 0.32rem;
  flex-wrap: wrap;
}

.paper-entry__number {
  color: inherit;
  font-family: var(--mono-font);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  min-width: 1.6rem;
  padding-top: 0.02rem;
}

.paper-entry__title-links {
  gap: 0.32rem;
  flex-wrap: wrap;
}

.paper-entry__title {
  margin-bottom: 0.08rem;
  font-family: var(--body-font);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.28;
}

.paper-entry__subtitle {
  color: inherit;
  font-weight: 500;
}

.paper-entry__title-link {
  color: var(--accent-strong);
  transition: color 160ms ease;
}

.paper-entry__title-link:hover {
  color: #2d628d;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.paper-entry__side-link {
  color: var(--accent-strong);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
}

.paper-entry__side-link:hover {
  color: #2d628d;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.paper-entry__meta {
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.paper-entry__meta span {
  position: relative;
}

.paper-entry__meta span:not(:last-child)::after {
  content: "•";
  margin-left: 0.75rem;
  color: rgba(91, 104, 124, 0.5);
}

.abstract-toggle {
  margin-top: 0;
  padding-top: 0.05rem;
}

.abstract-toggle summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
}

.abstract-toggle summary::-webkit-details-marker {
  display: none;
}

.abstract-toggle__marker,
.abstract-toggle__label {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.abstract-toggle__marker::before {
  content: "[+]";
  color: var(--accent-strong);
}

.abstract-toggle[open] .abstract-toggle__marker::before {
  content: "[-]";
}

.abstract-toggle__content {
  padding-top: 0.35rem;
  max-width: 58rem;
  color: inherit;
}

.prose {
  max-width: 48rem;
  background: var(--panel-strong);
  border: 1px solid rgba(14, 23, 40, 0.08);
  border-radius: 1.4rem;
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.prose h2,
.prose h3 {
  margin-top: 2rem;
}

.site-footer {
  padding: 1.5rem 0 2.3rem;
}

.site-footer__inner {
  color: inherit;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 940px) {
  .landing__grid {
    grid-template-columns: 1fr;
    padding-top: 3.3rem;
    align-items: start;
  }

  .journey-map__path {
    display: none;
  }

  .profile-column {
    width: min(100%, 21rem);
    justify-self: start;
    align-self: start;
  }

  .profile-panel__frame {
    aspect-ratio: var(--portrait-aspect);
  }

  .paper-entry__top {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-frame {
    width: min(calc(100% - 0.75rem), 1320px);
    margin-top: 0.4rem;
    border-radius: 1rem;
  }

  .shell {
    width: min(calc(100% - 1.2rem), var(--shell));
  }

  .landing__copy,
  .profile-panel,
  .prose {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .paper-list {
    padding: 0 1rem;
  }

  .section,
  .page-header {
    padding: 3.2rem 0;
  }

  .journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .logo-chip {
    width: 3.45rem;
    height: 3.45rem;
  }

  .logo-chip__image {
    width: 2.05rem;
    height: 2.05rem;
  }
}
