:root {
  --bg: #f5f7f6;
  --panel: #ffffff;
  --ink: #17201c;
  --muted: #5f6864;
  --line: #dce3df;
  --green: #0b6b57;
  --green-soft: #e6f3ee;
  --blue: #244a7f;
  --blue-soft: #e8eef8;
  --dark: #111827;
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
button { font: inherit; }
img { max-width: 100%; }
[data-lang-panel][hidden] { display: none !important; }
section[id] { scroll-margin-top: 112px; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  background: rgba(245, 247, 246, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--dark);
  color: white;
  font-size: 14px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.nav a:hover { color: var(--ink); }
.lang-toggle {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}
.lang-toggle:hover { border-color: var(--ink); }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 36px 48px;
  align-items: start;
  padding-top: 70px;
}
.hero-copy {
  padding-top: 16px;
}
.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}
.hero-title {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: 0;
}
.hero-text {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}
.location {
  color: var(--muted);
  font-size: 14px;
}
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
  font-size: 14px;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.button:hover { transform: translateY(-1px); }
.primary { background: var(--dark); color: white; }
.secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.secondary:hover { border-color: var(--ink); }
.light { background: white; color: var(--dark); }
.outline-light { color: white; border: 1px solid rgba(255,255,255,.28); }
.outline-light:hover { background: rgba(255,255,255,.08); }

.profile-card {
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
  padding: 12px;
  border-radius: 8px;
}
.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  border-radius: 6px;
  background: #e9eef0;
}
.profile-card-inner {
  padding: 18px 6px 4px;
}
.profile-label {
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
.profile-card-inner p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.gateway-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.gateway-card {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
}
.gateway-kicker {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}
.gateway-card h2 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: 0;
}
.gateway-card p:not(.gateway-kicker) {
  color: var(--muted);
  font-size: 15px;
}
.gateway-card .button {
  align-self: flex-start;
}

.section-header {
  max-width: 780px;
  margin-bottom: 36px;
}
.section-header.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}
.section-header.compact { margin-bottom: 24px; }
.section-header h2 {
  margin-bottom: 14px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}
.section-header p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}
.profile-overview {
  padding-top: 56px;
}
.profile-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.profile-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.profile-link:hover { border-color: var(--blue); }
.profile-link span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}
.profile-link small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cards {
  display: grid;
  gap: 18px;
}
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}
.card .icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}
.card h3 {
  margin: 22px 0 12px;
  font-size: 22px;
  letter-spacing: 0;
}
.card p { color: var(--muted); font-size: 15px; }

.feature-panel {
  margin-top: 24px;
  padding: 30px;
  border-radius: 8px;
  background: var(--dark);
  color: white;
}
.feature-panel h3 {
  margin-bottom: 20px;
  font-size: 28px;
  letter-spacing: 0;
}
.feature-panel ul,
.text-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-panel ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-panel li {
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: #eef2ef;
  font-size: 14px;
}
.research-log-preview .section-header {
  max-width: none;
}
.statement-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.statement-panel blockquote {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #292d2a;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.55;
  letter-spacing: 0;
}
.statement-panel blockquote:first-child {
  border-color: rgba(36, 74, 127, .24);
  background: linear-gradient(135deg, var(--blue-soft), white);
}
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-pills span {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.alt {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1180px) / 2));
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.life-insights-preview .section-header {
  max-width: 820px;
}
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.insight-card {
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: #292d2a;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.insight-card:first-child {
  border-color: rgba(11, 107, 87, .24);
  background: var(--green-soft);
  color: var(--green);
}
.publication-record {
  padding-top: 0;
}
.publication-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 38px;
}
.publication-summary > div {
  display: grid;
  gap: 3px;
  min-height: 112px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.publication-summary strong {
  color: var(--green);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.publication-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.publication-years {
  border-bottom: 1px solid var(--line);
}
.publication-year {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.publication-year-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.publication-year-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  letter-spacing: -0.02em;
}
.publication-year-header p {
  margin: 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-align: right;
}
.publication-record-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.publication-record-list > li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid #edf1ef;
}
.publication-record-list > li:first-child {
  border-top: 0;
}
.publication-subgroup {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.publication-subgroup > h4 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 14px;
}
.record-number {
  color: #aab9b2;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.55;
}
.record-authors {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}
.publication-record-list h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.42;
  letter-spacing: 0;
}
.record-citation {
  margin: 8px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.record-citation a {
  text-decoration: underline;
  text-decoration-color: rgba(11, 107, 87, .35);
  text-underline-offset: 2px;
}
.record-citation a:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}
.manuscripts-under-review {
  background: linear-gradient(90deg, var(--green-soft), transparent 72%);
}
.manuscripts-under-review .record-number {
  color: var(--green);
}
.equal-contribution-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.paper-resources {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.paper-resources-empty {
  padding: 30px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.paper-resources-status {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}
.paper-resources-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.publication-list {
  display: grid;
  gap: 14px;
}
.publication {
  display: grid;
  grid-template-columns: 88px 1fr 92px;
  gap: 24px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}
.publication:hover { border-color: var(--green); }
.publication .num {
  color: #bcc7c2;
  font-size: 30px;
  font-weight: 850;
}
.publication .meta {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
}
.publication h3 {
  margin: 7px 0 0;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}
.publication .doi {
  color: var(--muted);
  font-weight: 850;
  font-size: 13px;
}
.timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.timeline-item {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.timeline-item .top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}
.timeline-item h3 {
  font-size: 22px;
  margin-bottom: 7px;
  letter-spacing: 0;
}
.timeline-item .org {
  color: var(--green);
  font-weight: 850;
  font-size: 13px;
}
.timeline-item .period {
  white-space: nowrap;
  border-radius: 999px;
  background: #edf1ef;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.timeline-item p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}
.text-list {
  display: grid;
  gap: 12px;
}
.text-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 14px;
}
.contact {
  width: min(1180px, calc(100% - 40px));
  margin-top: 76px;
  margin-bottom: 76px;
  padding: 42px;
  border-radius: 8px;
  background: var(--dark);
  color: white;
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 40px;
  align-items: end;
}
.contact h2 {
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: 0;
}
.contact p:not(.eyebrow) {
  max-width: 760px;
  color: #d6d8d4;
  font-size: 17px;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer p { margin: 0; }

.log-main {
  width: min(1040px, calc(100% - 40px));
  min-height: calc(100vh - 172px);
  margin: 0 auto;
  padding: 72px 0 96px;
}
.research-nav {
  gap: 18px;
}
.log-home-link {
  display: inline-flex;
  text-decoration: none;
}
.log-hero,
.category-header {
  margin-bottom: 48px;
}
.log-hero h1,
.category-header h1,
.post-header h1 {
  margin-bottom: 20px;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: 0;
}
.log-hero > p:last-child,
.category-header > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}
.category-header .button {
  margin-top: 12px;
}
.archive-note {
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  background: var(--blue-soft);
  color: #20344f;
}
.archive-note a {
  color: var(--blue);
  font-weight: 800;
}
.taxonomy-panel {
  margin-bottom: 34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.taxonomy-panel-header {
  max-width: 740px;
  margin-bottom: 22px;
}
.taxonomy-panel-header h2 {
  margin-bottom: 10px;
  font-size: 32px;
  letter-spacing: 0;
}
.taxonomy-panel-header p:not(.eyebrow) {
  color: var(--muted);
}
.algorithmic-panel {
  border-color: rgba(11, 107, 87, .24);
}
.judgment-panel {
  border-color: rgba(36, 74, 127, .24);
}
.research-categories .category-card {
  justify-content: space-between;
  min-height: 128px;
}
.research-categories .category-card h3 {
  margin-bottom: 22px;
  color: #18332d;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 850;
}
.research-categories .category-card h3 span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
}
.judgment-categories .category-card {
  justify-content: space-between;
  min-height: 128px;
}
.judgment-categories .category-card h3 {
  margin-bottom: 22px;
  color: #18332d;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 850;
}
.judgment-categories .category-card h3 span {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
}
.taxonomy-card-grid,
.log-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.category-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  min-width: 0;
  overflow-wrap: anywhere;
}
.category-card:hover {
  border-color: var(--green);
}
.category-card h2,
.category-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: 0;
}
.category-card p {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}
.category-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}
.judgment-hero .korean-description {
  margin-top: 18px;
  color: #353a36;
  font-weight: 600;
}
.category-card .category-korean {
  flex: none;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.judgment-category-header .category-korean-heading {
  margin: -8px 0 18px;
  color: var(--green);
  font-size: 19px;
  font-weight: 700;
}
.notes-section {
  margin-top: 36px;
}
.notes-heading h2 {
  margin-bottom: 24px;
  font-size: 32px;
  letter-spacing: 0;
}
.note-list {
  display: grid;
  gap: 16px;
}
.home-note-list {
  grid-template-columns: repeat(3, 1fr);
}
.note-card,
.post-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.note-card:hover,
.post-card:hover {
  border-color: var(--green);
}
.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}
.note-card h2,
.note-card h3,
.post-card h2,
.post-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.note-card p,
.post-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}
.note-card .paper-title,
.post-card .source-title {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.research-note-card {
  overflow-wrap: anywhere;
}
.empty-notes {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
}
.empty-notes p:last-child {
  margin-bottom: 0;
}
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.category-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.research-post,
.judgment-post {
  max-width: 780px;
  margin: 0 auto;
}
.post-header {
  margin-bottom: 40px;
}
.post-intro {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}
.korean-note-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}
.korean-note-button span + span {
  color: var(--green);
}
.korean-note-block,
.post-content details {
  margin: 32px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.korean-note-block summary,
.post-content details summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 850;
}
.paper-citation {
  margin-bottom: 46px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.citation-label {
  margin-bottom: 11px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}
.paper-citation h2 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.38;
}
.paper-citation p:not(.citation-label) {
  color: var(--muted);
}
.citation-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}
.post-content {
  font-size: 17px;
}
.post-content h2 {
  margin-top: 46px;
  margin-bottom: 14px;
  font-size: 29px;
  letter-spacing: 0;
}
.post-content h3 {
  margin-top: 30px;
  letter-spacing: 0;
}
.post-content a,
.post-footer a {
  color: var(--green);
  font-weight: 750;
}
.post-content p,
.post-content li {
  color: #363936;
}
.post-content ul,
.post-content ol {
  padding-left: 24px;
}
.post-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 58px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 44px;
}
.post-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 1120px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 10px 20px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 920px) {
  .hero,
  .cards.three,
  .timeline,
  .split,
  .contact,
  .home-note-list,
  .statement-panel,
  .insight-grid,
  .gateway-grid,
  .profile-link-grid,
  .publication-summary,
  .taxonomy-card-grid,
  .log-categories {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 52px;
  }
  .gateway-grid {
    order: 2;
  }
  .profile-card {
    order: 3;
    max-width: 420px;
  }
  .feature-panel ul { grid-template-columns: 1fr; }
  .section-header.row { align-items: start; flex-direction: column; }
  .publication-year-header { align-items: flex-start; flex-direction: column; gap: 6px; }
  .publication-year-header p { text-align: left; }
  .publication { grid-template-columns: 1fr; }
  .publication .num { font-size: 22px; }
  .contact { margin-top: 40px; margin-bottom: 40px; padding: 30px; }
  .footer { flex-direction: column; }
  .log-main { padding-top: 52px; }
  .log-home-link { padding-inline: 12px; }
  .preview-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  section[id] { scroll-margin-top: 176px; }
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }
  .brand {
    gap: 9px;
    font-size: 15px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .lang-toggle {
    padding: 8px 12px;
    font-size: 13px;
  }
  .nav {
    gap: 7px 14px;
    padding-top: 10px;
    font-size: 13px;
  }
  .section {
    width: calc(100% - 32px);
    padding: 46px 0;
  }
  .hero {
    gap: 24px;
    padding-top: 34px;
  }
  h1 {
    font-size: 44px;
  }
  .hero-title {
    font-size: 20px;
  }
  .hero-text,
  .location,
  .profile-card-inner p:last-child,
  .gateway-card p:not(.gateway-kicker),
  .profile-link small,
  .section-header p:not(.eyebrow),
  .card p,
  .feature-panel li,
  .statement-panel blockquote,
  .insight-card,
  .publication h3,
  .timeline-item p:last-child,
  .text-list li,
  .note-card p,
  .post-card p,
  .category-card p,
  .log-hero > p:last-child,
  .category-header > p:not(.eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    max-height: calc(1.55em * var(--mobile-lines, 2));
  }
  .hero-text,
  .gateway-card p:not(.gateway-kicker),
  .section-header p:not(.eyebrow),
  .card p,
  .statement-panel blockquote,
  .note-card p,
  .post-card p,
  .category-card p,
  .log-hero > p:last-child,
  .category-header > p:not(.eyebrow) {
    --mobile-lines: 2;
    -webkit-line-clamp: 2;
  }
  .feature-panel li,
  .publication h3,
  .timeline-item p:last-child,
  .text-list li {
    --mobile-lines: 3;
    -webkit-line-clamp: 3;
  }
  .profile-link small,
  .insight-card,
  .location,
  .profile-card-inner p:last-child {
    --mobile-lines: 1;
    -webkit-line-clamp: 1;
  }
  .section-header {
    margin-bottom: 22px;
  }
  .section-header h2,
  .contact h2 {
    font-size: 34px;
  }
  .log-hero h1,
  .category-header h1,
  .post-header h1 {
    font-size: 36px;
    overflow-wrap: anywhere;
  }
  .statement-panel blockquote,
  .card,
  .research-note-card,
  .post-card,
  .category-card,
  .gateway-card,
  .taxonomy-panel {
    padding: 20px;
  }
  .gateway-card,
  .profile-link {
    min-height: auto;
    gap: 14px;
  }
  .gateway-kicker {
    margin-bottom: 10px;
  }
  .card .icon {
    width: 38px;
    height: 38px;
  }
  .card h3 {
    margin-top: 16px;
  }
  .feature-panel {
    padding: 22px 20px;
  }
  .feature-panel h3 {
    font-size: 24px;
  }
  .paper-title,
  .source-title {
    --mobile-lines: 2;
    -webkit-line-clamp: 2;
  }
  .statement-panel blockquote {
    font-size: 18px;
  }
  .preview-footer .button,
  .preview-button,
  .gateway-card .button {
    width: 100%;
  }
  .category-pills span {
    font-size: 12px;
  }
  .alt {
    padding-inline: 16px;
  }
  .publication,
  .timeline-item {
    padding: 20px;
  }
  .publication-summary > div {
    min-height: 0;
    padding: 18px 20px;
  }
  .publication-year {
    padding: 24px 0;
  }
  .publication-record-list > li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }
  .publication-record-list h4 {
    font-size: 17px;
  }
  .paper-resources-empty {
    padding: 22px 20px;
  }
  .record-authors,
  .record-citation {
    font-size: 13px;
  }
  .timeline-item .top {
    flex-direction: column;
  }
  .contact {
    width: calc(100% - 32px);
    padding: 24px 20px;
  }
  .log-main {
    width: calc(100% - 32px);
    padding: 44px 0 64px;
  }
  .post-content {
    font-size: 16px;
  }
  .post-content pre {
    max-width: 100%;
    overflow-x: auto;
  }
  .post-content math[display="block"] {
    font-size: 0.78em;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }
}
