:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #1d1d1f;
  --muted: #626269;
  --quiet: #85858d;
  --blue: #0071e3;
  --blue-deep: #075eb4;
  --gold: #b08d3e;
  --line: #e5e5ea;
  --wash: #f6f9fc;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { width: min(1160px, calc(100% - 64px)); height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: baseline; gap: 11px; font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.brand small { color: var(--gold); font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .06em; }
.nav-end { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
.nav-end a:hover, .text-link:hover { color: var(--blue); }
.language { color: var(--blue); }
main { overflow: clip; }
.hero { width: min(1160px, calc(100% - 64px)); min-height: 540px; margin: auto; padding: 76px 0 70px; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 48px; }
.hero-copy { max-width: 570px; }
.kicker { display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--gold); font-size: 13px; letter-spacing: .08em; }
.kicker::before { width: 26px; height: 1px; background: var(--gold); content: ""; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { max-width: 620px; margin-bottom: 23px; font-family: var(--serif); font-size: clamp(48px, 6vw, 78px); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; }
.hero h1 span { color: var(--blue); }
.hero-copy > p:not(.kicker) { max-width: 510px; margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; padding: 13px 19px; border: 1px solid var(--blue); border-radius: 3px; background: var(--blue); color: white; font-size: 14px; transition: background-color .2s ease, transform .2s ease; }
.hero-link:hover { transform: translateY(-2px); background: var(--blue-deep); }
.hero-link::after { content: "↘"; font-size: 16px; }
.hero-figure { position: relative; min-width: 0; margin: 0; }
.hero-figure img { display: block; width: 100%; height: auto; }
.hero-figure figcaption { position: absolute; right: 4%; bottom: 2%; padding: 8px 12px; background: rgba(255,255,255,.9); color: var(--quiet); font-family: var(--serif); font-size: 12px; }
.figure-frame { padding: 16px; border: 1px solid var(--line); background: linear-gradient(145deg, #fbfdff, #f0f6fc); }
.hero-figure img { animation: trace-in 1.1s ease-out both; }
@keyframes trace-in { from { opacity: .45; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.lab-section { padding: 70px 0 96px; border-top: 1px solid var(--line); background: #fcfcfd; }
.section-inner { width: min(1160px, calc(100% - 64px)); margin: auto; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(33px, 4vw, 46px); font-weight: 500; letter-spacing: -.025em; }
.section-head p { max-width: 390px; margin: 0 0 3px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.lab-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lab-card { display: flex; min-width: 0; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); transition: background-color .2s ease; }
.lab-card:hover { background: #fafdff; }
.lab-art { display: block; width: 100%; aspect-ratio: 1.86; object-fit: cover; border-bottom: 1px solid var(--line); background: var(--wash); }
.lab-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 21px 22px 23px; }
.lab-copy h3 { margin: 0 0 7px; font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.35; }
.lab-copy p { min-height: 48px; margin: 0 0 17px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.lab-open { margin-top: auto; color: var(--blue); font-size: 13px; }
.lab-open::after { margin-left: 7px; content: "↗"; }
.curriculum-section { padding: 70px 0 76px; border-top: 1px solid var(--line); background: var(--wash); }
.curriculum-section .section-head { align-items: start; }
.curriculum-section .section-head h2 { max-width: 650px; }
.curriculum-name { white-space: nowrap; }
.curriculum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.curriculum-card { display: flex; flex-direction: column; min-width: 0; padding: 26px; border: 1px solid var(--line); background: var(--paper); }
.curriculum-card h3 { margin-bottom: 10px; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.3; }
.curriculum-label { margin-bottom: 17px; color: var(--gold); font-size: 12px; line-height: 1.6; }
.curriculum-card ul { margin: 0 0 23px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.curriculum-card li + li { margin-top: 11px; }
.curriculum-card li a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.curriculum-source { margin-top: auto; color: var(--blue); font-size: 12px; line-height: 1.7; }
.curriculum-note { max-width: 950px; margin: 24px 0 0; color: var(--muted); font-size: 12px; line-height: 1.85; }
.about { padding: 69px 0 76px; }
.about-inner { width: min(1160px, calc(100% - 64px)); margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.about h2 { margin: 0; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.about p { max-width: 680px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { width: min(1160px, calc(100% - 64px)); min-height: 85px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--quiet); font-size: 12px; }
.footer-inner .brand { color: var(--ink); font-size: 18px; }
.footer-meta { display: flex; align-items: center; gap: 20px; }
.footer-note { margin: 0; }
@media (max-width: 820px) {
  .nav { width: min(100% - 40px, 680px); height: 66px; }
  .hero { width: min(100% - 40px, 680px); min-height: auto; padding: 66px 0 56px; grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 620px; }
  .hero h1 { max-width: 600px; font-size: clamp(46px, 9vw, 66px); }
  .hero-figure { width: min(100%, 600px); margin-inline: auto; }
  .lab-section { padding: 55px 0 68px; }
  .section-inner, .about-inner, .footer-inner { width: min(100% - 40px, 680px); }
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .curriculum-grid { grid-template-columns: 1fr; }
  .curriculum-section { padding: 55px 0 60px; }
  .about-inner { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 520px) {
  .nav { width: calc(100% - 36px); height: 62px; }
  .brand { gap: 8px; font-size: 19px; }
  .brand small { font-size: 10px; }
  .nav-end { gap: 16px; font-size: 13px; }
  .hero { width: calc(100% - 36px); padding: 55px 0 44px; gap: 28px; }
  .kicker { margin-bottom: 17px; }
  .hero h1 { margin-bottom: 17px; font-size: clamp(42px, 12vw, 55px); }
  .hero-copy > p:not(.kicker) { margin-bottom: 23px; font-size: 15px; line-height: 1.8; }
  .hero-link { padding: 12px 15px; }
  .figure-frame { padding: 8px; }
  .hero-figure figcaption { right: 3%; bottom: 3%; font-size: 10px; }
  .lab-section { padding: 45px 0 57px; }
  .section-inner, .about-inner, .footer-inner { width: calc(100% - 36px); }
  .section-head { display: block; margin-bottom: 22px; }
  .section-head h2 { margin-bottom: 9px; font-size: 34px; }
  .section-head p { font-size: 13px; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-art { aspect-ratio: 2.15; }
  .lab-copy { padding: 16px 17px 18px; }
  .lab-copy h3 { font-size: 22px; }
  .lab-copy p { min-height: 0; margin-bottom: 12px; }
  .curriculum-section { padding: 45px 0 50px; }
  .curriculum-card { padding: 22px; }
  .about { padding: 48px 0 54px; }
  .about h2 { font-size: 27px; }
  .footer-inner { min-height: 80px; flex-wrap: wrap; padding: 16px 0; }
  .footer-meta { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
