:root {
  --background: #fafaf8;
  --foreground: #1a1a1a;
  --muted: #f5f3f0;
  --muted-foreground: #6b6b6b;
  --accent: #b8860b;
  --accent-soft: #d4a84b;
  --border: #e8e4df;
  --card: #ffffff;
  --shadow: 0 12px 32px rgba(26, 26, 26, 0.07);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

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

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

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(26, 26, 26, 0.06) 1px, transparent 0);
  background-size: 18px 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(232, 228, 223, 0.78);
  background: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(16px);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 4vw, 42px);
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

.nav-links a {
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--foreground);
  border-color: var(--accent);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(64px, 10vw, 122px) 0;
}

.section-label,
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.hero-lede {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted-foreground);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--foreground);
  border-radius: 6px;
  font-weight: 600;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--muted);
}

.identity-panel {
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.portrait-frame {
  margin: 0;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.92) contrast(1.02);
}

.identity-text,
.metric-grid {
  padding: 26px;
}

.identity-text h2 {
  margin-bottom: 10px;
}

.identity-text p:last-child {
  margin: 0;
  color: var(--muted-foreground);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--border);
}

.metric-grid div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: end;
}

.metric-grid div + div {
  border-left: 1px solid var(--border);
}

.metric-grid dt {
  color: var(--muted-foreground);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-grid dd {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.65vw, 2.15rem);
  line-height: 1.05;
  white-space: nowrap;
}

.research-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(245, 243, 240, 0.55), rgba(250, 250, 248, 0.9));
  padding: clamp(76px, 10vw, 128px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 70px);
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted-foreground);
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.research-grid {
  display: grid;
  gap: 22px;
}

.research-article {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  padding: clamp(26px, 4vw, 42px) 0;
  border-top: 1px solid var(--border);
}

.research-article.featured {
  border-top-color: var(--accent);
}

.article-index {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.88;
  color: rgba(184, 134, 11, 0.52);
}

.research-article p {
  max-width: 850px;
  color: var(--muted-foreground);
}

.evidence-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-list li {
  position: relative;
  padding-left: 22px;
}

.evidence-list li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 9px;
  height: 1px;
  background: var(--accent);
}

.image-ledger {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.image-ledger figure,
.capability-item {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--card);
}

.image-ledger img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  padding: 14px;
  background: #fff;
}

.image-ledger figcaption {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  color: var(--muted-foreground);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.capability-section {
  padding: clamp(76px, 10vw, 126px) 0;
}

.capability-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}

.capability-item {
  border-top: 2px solid var(--accent);
}

.capability-item img {
  width: 100%;
  height: 176px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.capability-item p,
.capability-item h3 {
  margin-left: 22px;
  margin-right: 22px;
}

.capability-item .eyebrow {
  margin-top: 24px;
}

.capability-item p:last-child {
  margin-bottom: 26px;
  color: var(--muted-foreground);
}

.closing-ledger {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 60px);
  margin-top: clamp(46px, 7vw, 80px);
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.closing-ledger ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  color: var(--muted-foreground);
  list-style: none;
}

.closing-ledger li {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(42px, 7vw, 72px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--border);
  background: var(--foreground);
  color: var(--background);
}

.site-footer h2 {
  max-width: 760px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.site-footer a {
  border-bottom: 1px solid var(--accent-soft);
  color: var(--accent-soft);
  font-weight: 600;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(250, 250, 248, 0.62);
  font-size: 0.86rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero,
  .section-heading,
  .closing-ledger,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .identity-panel {
    max-width: 520px;
  }

  .image-ledger,
  .capability-columns {
    grid-template-columns: 1fr;
  }

  .image-ledger img {
    height: auto;
    max-height: 420px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    font-size: 0.82rem;
  }

  .section-shell {
    width: min(100% - 28px, 1120px);
  }

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

  .research-article {
    grid-template-columns: 1fr;
  }

  .article-index {
    font-size: 3.2rem;
  }

  .metric-grid {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
