:root {
  --bg: #ffffff;
  --paper: #f7f8f6;
  --ink: #111111;
  --muted: #5b5f5a;
  --line: #1a1a1a;
  --soft-line: #d9ded8;
  --trading: #1d6f5f;
  --research: #744d9d;
  --legal: #b45335;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.text-link {
  color: var(--ink);
  font-weight: 760;
  border-bottom: 1px solid currentColor;
}

.text-link:hover {
  color: var(--research);
}

.heading-link {
  border-bottom: 1px solid currentColor;
  text-underline-offset: 0.14em;
}

.heading-link:hover {
  color: var(--research);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--line);
  font-weight: 780;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

nav a {
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 64px) clamp(42px, 6vw, 72px);
  overflow: hidden;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.card-meta {
  margin: 0;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 1;
  font-weight: 780;
}

.headline {
  margin: 18px 0 0;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.24;
  font-weight: 720;
}

.headline-en {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.42;
  font-weight: 520;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions a,
.contact-links a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 680;
}

.hero-actions a:hover,
.contact-links a:hover {
  background: var(--ink);
  color: #ffffff;
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  display: block;
  width: min(100%, 720px);
  max-width: 100%;
  aspect-ratio: 1200 / 760;
  object-fit: cover;
  border: 2px solid var(--line);
}

.section-band {
  border-top: 1px solid var(--soft-line);
  background: #ffffff;
}

.muted-band {
  background: var(--paper);
}

.section-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 92px) 0;
}

.intro-grid,
.two-column,
.timeline-layout,
.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 92px);
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 780;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.profile-points {
  border-left: 5px solid var(--line);
  padding-left: 26px;
}

.profile-points h3 {
  margin-bottom: 14px;
}

ul,
ol {
  margin: 0;
}

.profile-points li {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

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

.work-card,
.legal-grid article,
.detail-list article {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #ffffff;
}

.work-card {
  border-top: 5px solid var(--trading);
}

.work-card h3 {
  margin-top: 12px;
}

.work-card p,
.detail-list p,
.legal-grid p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.72;
}

.two-column .section-heading {
  margin-bottom: 0;
}

.detail-list {
  display: grid;
  gap: 16px;
}

.detail-list article {
  border-top: 5px solid var(--research);
}

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

.legal-grid article {
  border-top: 5px solid var(--legal);
}

.capability-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capability-strip span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.section-note {
  max-width: 780px;
  margin: 24px 0 0;
}

.inline-separator {
  display: inline-block;
  margin: 0 9px;
  color: var(--muted);
}

.timeline {
  list-style: none;
  padding: 0;
  border-top: 2px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.timeline span {
  color: var(--ink);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 760;
}

.timeline strong {
  color: var(--ink);
}

.education-band {
  background: #111111;
  color: #ffffff;
}

.education-band .section-kicker,
.education-band p {
  color: rgba(255, 255, 255, 0.68);
}

.education-list {
  list-style: none;
  padding: 0;
}

.education-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.education-list strong {
  font-size: 20px;
}

.education-list span {
  color: rgba(255, 255, 255, 0.68);
  text-align: right;
}

.contact-section {
  background: #ffffff;
  border-top: 1px solid var(--soft-line);
}

.contact-inner {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
}

.contact-inner .contact-links {
  justify-content: center;
}

@media (max-width: 960px) {
  .hero,
  .intro-grid,
  .two-column,
  .timeline-layout,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual img {
    width: 100%;
  }

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

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero-actions,
  .contact-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a,
  .contact-links a {
    justify-content: center;
    text-align: center;
  }

  .cards-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .education-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .education-list span {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .section-inner,
  .contact-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand {
    width: 38px;
    height: 38px;
  }

  h2 {
    font-size: 32px;
  }

  p,
  .profile-points li {
    font-size: 16px;
  }
}
