:root {
  color-scheme: light;
  --bg: #f6f3ed;
  --bg-soft: #fbfaf7;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-accent: rgba(52, 91, 208, 0.08);
  --text: #18202c;
  --muted: #5e6675;
  --subtle: #8b92a3;
  --border: rgba(24, 32, 44, 0.12);
  --border-strong: rgba(24, 32, 44, 0.18);
  --accent: #345bd0;
  --accent-deep: #21377c;
  --accent-soft: rgba(52, 91, 208, 0.12);
  --shadow: 0 24px 80px rgba(16, 24, 40, 0.08);
  --radius-sm: 18px;
  --radius-md: 28px;
  --radius-lg: 40px;
  --container: min(1180px, calc(100vw - 40px));
  --header-height: 56px;
  --section-gap: clamp(2.2rem, 3.5vw, 3rem);
  --ease: 300ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(70, 112, 224, 0.14), transparent 32%),
    radial-gradient(circle at 90% 15%, rgba(129, 156, 216, 0.11), transparent 22%),
    radial-gradient(circle at bottom right, rgba(78, 122, 211, 0.08), transparent 28%),
    linear-gradient(180deg, #f6f3ed 0%, #fbfaf7 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


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

a {
  color: inherit;
  text-decoration-color: rgba(52, 91, 208, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

button {
  font: inherit;
}

::selection {
  background: rgba(52, 91, 208, 0.18);
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--accent-deep);
  color: white;
  text-decoration: none;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 20px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: var(--section-gap) 0;
}

#home,
#papers,
#writing,
#trips,
#contact {
  scroll-margin-top: calc(var(--header-height) + 22px);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(246, 243, 237, 0.76);
  border-bottom: 1px solid rgba(24, 32, 44, 0.06);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  display: none;
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.site-nav a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}


.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease), box-shadow var(--ease);
  cursor: pointer;
}

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

.button-primary {
  background: var(--accent-deep);
  color: white;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(33, 55, 124, 0.22);
}

.button-primary:hover {
  background: #1c3071;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.95);
}

.hero {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hero-copy {
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  margin-bottom: 1.35rem;
}

.hero-lead {
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  max-width: 42rem;
  color: var(--text);
}

.hero-text {
  margin-top: 0.85rem;
  max-width: 40rem;
  font-size: 1.03rem;
  color: var(--muted);
}

.hero-text strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-panel {
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  box-shadow: var(--shadow);
}

.portrait-frame {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 10px);
  aspect-ratio: 1 / 1.02;
  background: #e7ebf5;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
}

.hero-details {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.hero-detail {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

.hero-detail span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--subtle);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-detail p {
  color: var(--muted);
}

.panel-note {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(24, 32, 44, 0.08);
}

.metric-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--subtle);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.metric-card p {
  margin-top: 0.2rem;
  font-size: 0.94rem;
  color: var(--muted);
}

.micro-copy {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.micro-copy p + p {
  margin-top: 0.8rem;
}

.summary-section {
  padding-top: 3.5rem;
}

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

.summary-card {
  padding: 1.55rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.04);
}

.summary-card h2 {
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  margin-bottom: 0.8rem;
}

.summary-card p:last-child {
  color: var(--muted);
}

.accent-card {
  background: linear-gradient(180deg, rgba(52, 91, 208, 0.1), rgba(255, 255, 255, 0.76));
}

.section-shell {
  display: grid;
  gap: 2.5rem;
}

.section-heading {
  max-width: 44rem;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  margin-bottom: 1.2rem;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.subsection-block {
  display: grid;
  gap: 1.8rem;
}

.section-subhead {
  max-width: 52rem;
}

.section-subhead h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.section-subhead p:last-child {
  margin-top: 0.75rem;
  color: var(--muted);
}

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

.highlight-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 32, 44, 0.08);
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.03);
  transition: transform var(--ease), box-shadow var(--ease);
}

.highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.07);
}

.highlight-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(52, 91, 208, 0.12), rgba(52, 91, 208, 0.06));
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-title {
  margin: 0 0 0.45rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.highlight-desc {
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.highlight-desc strong {
  color: var(--text);
}

.highlight-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.highlight-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.highlight-links a:hover {
  color: var(--accent-deep);
  border-color: rgba(52, 91, 208, 0.25);
  background: rgba(52, 91, 208, 0.05);
}

.highlight-featured {
  border-left-color: var(--accent-deep);
  background: linear-gradient(180deg, rgba(52, 91, 208, 0.06), rgba(255, 255, 255, 0.76));
}

.papers-by-year {
  display: grid;
  gap: 3.2rem;
}

.paper-year {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
}

.paper-year-head {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.paper-year-head h3 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.paper-stack {
  display: grid;
  gap: 1rem;
}

.publication-list {
  display: grid;
  gap: 1.1rem;
}

.publication-item {
  padding: 1.2rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.03);
}

.publication-line + .publication-line {
  margin-top: 0.38rem;
}

.publication-title-line {
  font-size: 1.08rem;
  color: var(--text);
}

.publication-title-line em {
  font-style: italic;
}

.publication-authors,
.publication-detail {
  color: var(--muted);
}

.paper-entry {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.04);
}

.paper-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  padding: 1.35rem 1.4rem;
  cursor: pointer;
  list-style: none;
}

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

.paper-summary-main {
  min-width: 0;
}

.paper-title {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.paper-meta-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
}

.paper-meta-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.paper-meta-item dt {
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paper-meta-item dd {
  margin: 0;
  color: var(--muted);
}

.paper-tags,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.paper-tags li {
  padding: 0.34rem 0.68rem;
  border-radius: 999px;
  background: rgba(52, 91, 208, 0.08);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.paper-toggle,
.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), color var(--ease);
}

.contact-links a:hover,
.paper-entry[open] .paper-toggle {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--border-strong);
}

.contact-links a:hover {
  transform: translateY(-1px);
}

.paper-entry[open] .paper-toggle {
  color: var(--accent-deep);
}

.paper-body {
  padding: 0 1.4rem 1.5rem;
  border-top: 1px solid rgba(24, 32, 44, 0.08);
}

.paper-cover {
  margin: 1.2rem 0 1.25rem;
  max-width: 360px;
}

.paper-cover img,
.paper-post-content img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: white;
}

.paper-cover figcaption {
  margin-top: 0.55rem;
  color: var(--subtle);
  font-size: 0.9rem;
}

.paper-post-content {
  max-width: 820px;
  padding-top: 1.2rem;
  color: var(--muted);
}

.paper-post-content h1,
.paper-post-content h2,
.paper-post-content h3,
.paper-post-content h4,
.paper-post-content h5 {
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.paper-post-content h1 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.paper-post-content h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.paper-post-content h3 {
  font-size: 1.3rem;
}

.paper-post-content p,
.paper-post-content ul,
.paper-post-content ol,
.paper-post-content .highlight,
.paper-post-content .footnotes,
.paper-post-content blockquote {
  margin: 1rem 0;
}

.paper-post-content ul,
.paper-post-content ol {
  padding-left: 1.35rem;
}

.paper-post-content li + li {
  margin-top: 0.4rem;
}

.paper-post-content hr {
  border: 0;
  border-top: 1px solid rgba(24, 32, 44, 0.1);
  margin: 1.8rem 0;
}

.paper-post-content pre,
.paper-post-content code {
  font-family: "SFMono-Regular", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.paper-post-content :not(pre) > code {
  padding: 0.12rem 0.35rem;
  border-radius: 8px;
  background: rgba(24, 32, 44, 0.06);
}

.paper-post-content .highlight {
  overflow: auto;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: #faf8f3;
}

.paper-post-content .highlight pre {
  margin: 0;
  background: transparent !important;
}

.paper-post-content .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0;
}

.paper-post-content .footnotes {
  padding-top: 0.6rem;
  border-top: 1px solid rgba(24, 32, 44, 0.08);
  font-size: 0.95rem;
}

.paper-post-content .footnote-ref,
.paper-post-content .footnote-backref {
  text-decoration: none;
}

.paper-source {
  margin-top: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: rgba(248, 246, 241, 0.72);
}

.paper-source summary {
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.paper-source summary::-webkit-details-marker {
  display: none;
}

.paper-source-code {
  margin: 0;
  padding: 0 1rem 1rem;
  overflow: auto;
  white-space: pre-wrap;
}

.detail-stack {
  display: grid;
  gap: 1rem;
}

.detail-body {
  display: grid;
  gap: 1.15rem;
}

.detail-header {
  display: grid;
  gap: 0.75rem;
}

.detail-byline {
  color: var(--text);
  font-size: 0.96rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.detail-chip,
.detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(24, 32, 44, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.detail-link:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.detail-lead {
  color: var(--muted);
}

.detail-tags {
  margin-top: 0.1rem;
}

.trip-panels {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: start;
}

.trip-panel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.03);
}

.trip-panel-body {
  display: grid;
  gap: 1rem;
  padding: 0 1.25rem 1.25rem;
}

.trip-panel-head {
  padding: 1.2rem 1.25rem 0.9rem;
}

.trip-panel-head h3 {
  font-size: 1.35rem;
}

.trip-year-group {
  display: grid;
  gap: 0.8rem;
}

.trip-year-group + .trip-year-group {
  margin-top: 0.6rem;
}

.trip-year-group h4 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trip-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trip-list li {
  padding: 0.85rem 0;
  color: var(--muted);
  border-top: 1px solid rgba(24, 32, 44, 0.08);
}

.trip-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.trip-empty {
  min-height: 7rem;
  border-radius: 22px;
  border: 1px dashed rgba(24, 32, 44, 0.12);
  background: rgba(255, 255, 255, 0.42);
}

.muted-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.accordion {
  display: grid;
  gap: 1.2rem;
}

.note-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.03);
}

.note-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  cursor: pointer;
  list-style: none;
}

.note-card summary::-webkit-details-marker {
  display: none;
}

.note-card summary span:first-child {
  display: grid;
  gap: 0.2rem;
}

.note-card summary strong {
  font-size: 1.02rem;
}

.note-card summary small {
  color: var(--muted);
  font-size: 0.86rem;
}

.summary-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.note-card[open] .summary-toggle {
  color: var(--accent-deep);
  border-color: rgba(52, 91, 208, 0.22);
  background: rgba(52, 91, 208, 0.08);
}

.note-body {
  padding: 0 1.35rem 1.35rem;
  color: var(--muted);
}

.note-body p + p {
  margin-top: 0.9rem;
}

.section-fold > summary strong {
  font-size: 1.08rem;
}

.section-fold-body {
  display: grid;
  gap: 1rem;
}

.section-fold-intro {
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 180px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(24, 32, 44, 0.05), rgba(24, 32, 44, 0.18), rgba(24, 32, 44, 0.05));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
  padding: 0.4rem 0 0.4rem 1.1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 175px;
  top: 1rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 8px rgba(52, 91, 208, 0.08);
}

.timeline-meta {
  color: var(--subtle);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-content {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 32, 44, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.timeline-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.timeline-content p {
  color: var(--muted);
}

.contact-section h2 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.site-footer {
  padding: 0 0 2.4rem;
}

.footer-inner {
  display: flex;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(24, 32, 44, 0.08);
  color: var(--muted);
  font-size: 0.94rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 1080px) {
  .hero-grid,
  .summary-grid,
  .paper-year,
  .trip-panels {
    grid-template-columns: 1fr;
  }

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

  .summary-grid {
    gap: 1.2rem;
  }

  .paper-year-head {
    position: static;
  }

  .hero-panel {
    max-width: 34rem;
  }
}

@media (max-width: 920px) {
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .paper-summary {
    grid-template-columns: 1fr;
  }

  .paper-toggle {
    width: fit-content;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding-left: 2.6rem;
  }

  .timeline-item::before {
    left: 10px;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .site-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .brand-text {
    display: none;
  }

  .hero h1 {
    margin-bottom: 1rem;
  }

  .paper-meta-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .detail-meta {
    gap: 0.5rem;
  }

  .note-card summary {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .reveal,
  .reveal.is-visible,
  .button,
  .publication-item,
  .highlight-card,
  .paper-entry,
  .paper-toggle,
  .trip-panel,
  .contact-links a,
  .site-nav a {
    transition: none !important;
    transform: none !important;
  }
}
