:root {
  --paper: #f8f3eb;
  --paper-deep: #f1e8dd;
  --card: rgba(255, 253, 249, 0.86);
  --ink: #2c211d;
  --muted: #75665e;
  --terracotta: #c85d2f;
  --terracotta-deep: #a94624;
  --line: #dfcdbd;
  --soft-orange: #f4dfcf;
  --shadow: 0 16px 50px rgba(85, 55, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(220, 119, 72, 0.08), transparent 24rem),
    var(--paper);
  font-family:
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  z-index: 10;
}

a {
  color: inherit;
}

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

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, 0.78fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
  padding-block: 68px;
  position: relative;
}

.hero-copy {
  padding-left: clamp(0px, 2vw, 30px);
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--terracotta);
  font-family: "STSong", "Songti SC", serif;
  font-size: 17px;
  letter-spacing: 0.12em;
}

.hero-kicker i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin: 28px 0 24px;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(58px, 7vw, 92px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.04em;
}

.hero h1 span {
  display: block;
  margin-top: 20px;
  font-family:
    "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero-rule {
  width: min(100%, 680px);
  height: 1px;
  background: linear-gradient(90deg, var(--terracotta), var(--line) 72%, transparent);
  margin-bottom: 28px;
}

.hero-facts {
  display: grid;
  gap: 13px;
}

.hero-facts p {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
  font-size: 17px;
}

.fact-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--terracotta);
  background: #f7e6d8;
  font-family: "STSong", "Songti SC", serif;
  font-size: 15px;
}

.hero-achievement-line {
  margin: 28px 0 30px;
  color: var(--terracotta-deep);
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(18px, 2vw, 25px);
  letter-spacing: 0.04em;
}

.hero-achievement-line b {
  color: var(--line);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 52px;
  padding: 13px 26px;
  border: 1px solid var(--terracotta);
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

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

.button-primary {
  color: #fffaf4;
  background: var(--terracotta);
  box-shadow: 0 10px 24px rgba(169, 70, 36, 0.18);
}

.button-primary:hover {
  background: var(--terracotta-deep);
  box-shadow: 0 14px 30px rgba(169, 70, 36, 0.24);
}

.button-secondary {
  color: var(--terracotta-deep);
  background: transparent;
}

.button-secondary:hover {
  background: #fffaf4;
}

.hero-portrait {
  width: 100%;
}

.portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 0.71;
  overflow: hidden;
  border-radius: 80px 12px 80px 12px;
  box-shadow: var(--shadow);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: inherit;
  pointer-events: none;
}

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

.hero-tulip {
  position: absolute;
  bottom: 34px;
  left: -18px;
  width: 54px;
  color: rgba(200, 93, 47, 0.3);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.section-intro {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.education {
  padding-block: 100px 120px;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 20px;
  align-items: stretch;
}

.education-card,
.credentials {
  border: 1px solid rgba(200, 93, 47, 0.18);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(81, 53, 38, 0.05);
}

.education-card {
  display: flex;
  gap: 22px;
  padding: 30px;
}

.card-mark {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  color: var(--terracotta);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "STSong", "Songti SC", serif;
}

.card-time {
  margin-bottom: 6px;
  color: var(--terracotta);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.education-card h3 {
  margin-bottom: 4px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 21px;
}

.education-card p {
  margin-bottom: 10px;
}

.education-card small {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}

.credentials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  background: var(--terracotta);
  color: #fff8f1;
}

.credentials p {
  margin-bottom: 20px;
  opacity: 0.78;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.credentials strong {
  font-family: Georgia, serif;
  font-size: 23px;
}

.credentials span {
  opacity: 0.82;
  font-size: 13px;
}

.credentials hr {
  width: 100%;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  margin: 20px 0;
}

.achievements {
  position: relative;
  overflow: hidden;
  padding-block: 80px 120px;
  background: rgba(255, 251, 246, 0.5);
  border-block: 1px solid rgba(200, 93, 47, 0.12);
}

.achievement-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 100px;
  padding-block: 36px;
  border-block: 1px solid var(--line);
}

.achievement-band div {
  display: grid;
  place-items: center;
  text-align: center;
}

.achievement-band div + div {
  border-left: 1px solid var(--line);
}

.achievement-band strong {
  color: var(--terracotta);
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.achievement-band span {
  margin-top: 2px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.capability-card {
  display: flex;
  gap: 22px;
  padding: 30px;
  border: 1px solid rgba(200, 93, 47, 0.18);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.7);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.capability-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 93, 47, 0.42);
  box-shadow: var(--shadow);
}

.capability-card > span {
  color: var(--terracotta);
  font-family: Georgia, serif;
  font-size: 13px;
}

.capability-card h3 {
  margin-bottom: 6px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 23px;
}

.capability-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.capability-tulip {
  position: absolute;
  right: 2vw;
  bottom: 20px;
  width: 58px;
  color: rgba(200, 93, 47, 0.3);
}

.experience {
  padding-block: 120px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 34px;
  left: 30px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 24px;
  position: relative;
}

.timeline-marker {
  z-index: 1;
  padding-top: 18px;
}

.timeline-marker span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  color: #fff;
  background: var(--terracotta);
  font-family: "STSong", "Songti SC", serif;
  box-shadow: 0 4px 14px rgba(169, 70, 36, 0.18);
}

.timeline-card {
  display: grid;
  grid-template-columns: 0.72fr 1.65fr;
  border: 1px solid rgba(200, 93, 47, 0.16);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.timeline-item.featured .timeline-card {
  border-top: 3px solid var(--terracotta);
}

.experience-meta,
.experience-content {
  padding: 30px;
}

.experience-meta {
  border-right: 1px solid var(--line);
}

.experience-meta p {
  margin-bottom: 10px;
  font-family: "STSong", "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
}

.experience-meta span {
  color: var(--muted);
  font-size: 13px;
}

.experience-content h3 {
  margin-bottom: 14px;
  color: var(--terracotta-deep);
  font-family: "STSong", "Songti SC", serif;
  font-size: 24px;
}

.experience-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
}

.experience-content li {
  padding-left: 4px;
  color: #4b403b;
  font-size: 15px;
}

.experience-content li::marker {
  color: var(--terracotta);
}

.ai-section {
  padding-block: 120px;
  background:
    radial-gradient(circle at 96% 10%, rgba(200, 93, 47, 0.09), transparent 22rem),
    #f4ece3;
  border-top: 1px solid rgba(200, 93, 47, 0.14);
}

.project-list {
  display: grid;
  gap: 80px;
}

.project-block {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(38px, 6vw, 78px);
  align-items: center;
}

.project-block.reverse .project-visual {
  order: 2;
}

.project-visual {
  overflow: hidden;
  border: 1px solid rgba(200, 93, 47, 0.18);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.project-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(85, 55, 38, 0.12);
}

.project-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.project-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.project-title > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 10px 10px 10px 2px;
  color: #fff;
  background: var(--terracotta);
  font-family: Georgia, serif;
  font-weight: 700;
}

.project-title p {
  margin-bottom: 2px;
  color: var(--terracotta);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.project-title h3 {
  margin-bottom: 0;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
}

.project-description {
  color: var(--muted);
}

.project-copy dl {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
}

.project-copy dl div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(200, 93, 47, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.58);
}

.project-copy dt {
  color: var(--terracotta-deep);
  font-weight: 700;
}

.project-copy dd {
  margin: 0;
  color: #5d5049;
  font-size: 14px;
}

.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 110px 24px 40px;
  text-align: center;
  overflow: hidden;
}

.footer > p {
  margin-bottom: 10px;
  color: var(--terracotta);
  letter-spacing: 0.16em;
}

.footer h2 {
  max-width: 720px;
  margin-bottom: 32px;
  font-family: "STSong", "Songti SC", serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.45;
}

.footer small {
  margin-top: 64px;
  color: var(--muted);
}

.footer-tulip {
  width: 44px;
  margin-bottom: 18px;
  color: rgba(200, 93, 47, 0.48);
}

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .capability-card,
  .project-visual {
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 42px;
    min-height: 700px;
  }

  .hero h1 {
    font-size: clamp(50px, 7vw, 70px);
  }

  .education-grid {
    grid-template-columns: 1fr 1fr;
  }

  .credentials {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 12px 20px;
    align-items: center;
  }

  .credentials p {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .credentials hr {
    display: none;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .experience-meta {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-block,
  .project-block.reverse {
    grid-template-columns: 1fr;
  }

  .project-block.reverse .project-visual {
    order: 0;
  }
}

@media (max-width: 760px) {
  .section-shell {
    width: min(100% - 32px, 620px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-block: 44px 70px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: clamp(48px, 17vw, 68px);
  }

  .hero h1 span {
    max-width: 12em;
    font-size: 22px;
    line-height: 1.45;
  }

  .hero-facts p {
    align-items: flex-start;
    font-size: 15px;
  }

  .hero-achievement-line {
    font-size: 18px;
    line-height: 1.8;
  }

  .hero-portrait {
    width: min(100%, 420px);
    justify-self: center;
  }

  .portrait-frame {
    aspect-ratio: 0.9;
    border-radius: 42px 8px 42px 8px;
  }

  .portrait-frame img {
    object-position: center 56%;
  }

  .hero-tulip {
    display: none;
  }

  .education,
  .experience,
  .ai-section {
    padding-block: 82px;
  }

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

  .education-grid {
    grid-template-columns: 1fr;
  }

  .credentials {
    grid-column: auto;
    display: flex;
  }

  .credentials hr {
    display: block;
  }

  .achievement-band {
    margin-bottom: 78px;
    padding-block: 18px;
  }

  .achievement-band strong {
    font-size: clamp(25px, 8vw, 34px);
    letter-spacing: 0.02em;
  }

  .achievement-band span {
    max-width: 7em;
    font-size: 12px;
    line-height: 1.5;
  }

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

  .capability-card {
    padding: 24px;
  }

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

  .timeline-item {
    grid-template-columns: 42px 1fr;
    gap: 12px;
  }

  .timeline-marker {
    padding-top: 16px;
  }

  .timeline-marker span {
    width: 42px;
    height: 42px;
    border-width: 4px;
    font-size: 13px;
  }

  .experience-meta,
  .experience-content {
    padding: 22px;
  }

  .experience-content ul {
    padding-left: 1.1em;
  }

  .project-list {
    gap: 68px;
  }

  .project-block {
    gap: 30px;
  }

  .project-copy dl div {
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .footer {
    padding-top: 84px;
  }
}

@media (max-width: 430px) {
  .hero-kicker {
    gap: 8px;
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-width: 0;
    padding-inline: 16px;
  }

  .education-card {
    gap: 15px;
    padding: 22px 18px;
  }

  .card-mark {
    flex-basis: 40px;
    height: 40px;
  }

  .achievement-band {
    width: calc(100% + 10px);
    margin-left: -5px;
  }

  .timeline-item {
    grid-template-columns: 34px 1fr;
    gap: 8px;
  }

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

  .timeline-marker span {
    width: 34px;
    height: 34px;
    border-width: 3px;
  }

  .experience-meta,
  .experience-content {
    padding: 18px;
  }

  .experience-meta p {
    font-size: 18px;
  }

  .experience-content h3 {
    font-size: 21px;
  }

  .project-title {
    gap: 12px;
  }

  .project-title > span {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .project-copy dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
