:root {
  color-scheme: dark;
  --text: #f1f2ef;
  --body-font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --title-font: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #3d3445; color: var(--text); font-family: var(--body-font); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px 20px; background: white; color: #282531; border-radius: 10px; }
.skip-link:focus { top: 16px; }
.scene {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 760px;
  min-height: min(900px, 100svh);
  padding: 74px 48px;
  background-size: cover;
  background-position: center;
  scroll-margin-top: 0;
}
.scene-lab { background-image: url("assets/background-lab.png"); }
.scene-purple { background-image: url("assets/background-purple.jpg"); }
.scene-purple::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #19152724; }
.hero-layout { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 68px; width: min(1240px, 100%); }
.avatar-wrap { display: grid; place-items: center; }
.avatar { display: block; width: min(100%, 430px); filter: drop-shadow(0 14px 24px #30233918); }
.panel { border-radius: 36px; padding: 52px 60px; box-shadow: 0 18px 70px #1b142b12; }
.panel-gray { background: linear-gradient(130deg, #575a5ff5, #b8b5bbf5); }
.panel-purple { background: linear-gradient(130deg, #6d4e9bf5, #85bdfff5); }
.intro-panel { min-height: 610px; }
h1, h2 { margin: 0 0 46px; font-family: var(--title-font); font-size: clamp(38px, 4.1vw, 64px); font-weight: 400; line-height: 1.25; text-align: center; letter-spacing: .03em; }
.latin-name { margin-left: .12em; font-size: .82em; letter-spacing: -.035em; }
.version { white-space: nowrap; font-size: .8em; }
.facts { padding-left: 1.2em; margin: 0; font-size: clamp(18px, 1.65vw, 27px); line-height: 1.95; overflow-wrap: anywhere; }
.facts li { padding-left: .15em; margin-bottom: .42em; }
.facts li:last-child { margin-bottom: 0; }
.wide-panel { width: min(1120px, 100%); min-height: 610px; padding: 62px 82px; }
.wide-panel .facts { max-width: 900px; margin-inline: auto; }
.wide-panel h2 { margin-bottom: 46px; }
.academic-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.academic-panel .facts { width: 100%; }
.academic-panel h2 { width: 100%; }
.action { display: inline-block; margin-top: 40px; padding: 20px 42px; border-radius: 100px; font-size: clamp(20px, 2.1vw, 31px); line-height: 1.4; text-align: center; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: transform .2s ease, box-shadow .2s ease; }
.action-green { background: linear-gradient(120deg, #158c60, #009ca3); color: white; }
.action:hover { transform: translateY(-3px); box-shadow: 0 12px 28px #1d32402b; }
a:focus-visible { outline: 3px solid #fff3ae; outline-offset: 6px; }
.contact { user-select: all; }
.scene-past { background-image: linear-gradient(90deg, #17121ed4, #17121e55), url("assets/background-past.png"); background-position: center; }
.past-layout { width: min(1240px, 100%); }
.past-copy { max-width: 480px; padding: 32px 0; }
.past-copy h2 { text-align: left; margin-bottom: 36px; }
.past-copy p { font-size: clamp(20px, 1.65vw, 26px); line-height: 1.9; margin-block: 0 24px; }
.past-copy .past-note { font-size: clamp(18px, 1.5vw, 23px); }
.past-tags { display: flex; gap: 20px; margin-top: 34px; }
.past-tags span { display: inline-block; min-width: 140px; padding: 19px 28px; border-radius: 30px; background: linear-gradient(125deg, #8c6878, #decbeb); color: white; font-size: 24px; text-align: center; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px max(24px, calc((100vw - 1240px) / 2)); background: #302b37; font-size: 14px; color: #eee7ef; }
footer a { text-decoration: none; padding: 8px 0; }
@media (min-width: 1500px) { .scene { padding-block: 86px; } }
@media (max-width: 1000px) {
  .scene { padding: 60px 30px; min-height: 700px; }
  .hero-layout { gap: 30px; grid-template-columns: .7fr 1.3fr; }
  .panel { padding: 38px 34px; border-radius: 30px; }
  .intro-panel { min-height: auto; }
  .wide-panel { min-height: 560px; padding: 46px 52px; }
  h1, h2 { margin-bottom: 30px; }
}
@media (max-width: 650px) {
  .scene { min-height: auto; padding: 50px 20px; }
  .hero { padding-top: 34px; }
  .hero-layout { grid-template-columns: 1fr; gap: 20px; }
  .avatar { width: 210px; }
  .panel { border-radius: 24px; padding: 32px 25px; }
  .intro-panel { width: 100%; }
  h1, h2 { font-size: 40px; margin-bottom: 28px; }
  .facts { font-size: 18px; line-height: 1.9; }
  .facts li { margin-bottom: .65em; }
  .wide-panel { min-height: 0; }
  .wide-panel h2 { margin-bottom: 28px; }
  .action { margin-top: 30px; padding: 16px 22px; font-size: 20px; max-width: 100%; }
  .scene-past { min-height: 620px; background-position: 59% center; }
  .past-copy { max-width: 360px; }
  .past-copy p { font-size: 20px; }
  .past-copy .past-note { font-size: 18px; }
  .past-tags { gap: 14px; }
  .past-tags span { min-width: 110px; padding: 16px 22px; font-size: 21px; }
  footer { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .action { transition: none; }
  .action:hover { transform: none; }
}
