:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, .12);
  --paper: #f5f5f7;
  --white: #fff;
  --blue: #0071e3;
  --radius: 34px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.nav-shell {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 20px;
  pointer-events: none;
}
.nav {
  width: min(100%, 1080px);
  height: 52px;
  margin: auto;
  padding: 0 10px 0 18px;
  display: flex;
  align-items: center;
  gap: 42px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  pointer-events: auto;
}
.wordmark { font-weight: 750; letter-spacing: -.04em; }
.nav-links { display: flex; gap: 30px; margin: auto; font-size: 13px; color: #47474b; }
.nav-links a, .nav-cta { transition: opacity .2s ease; }
.nav-links a:hover, .nav-cta:hover { opacity: .58; }
.nav-cta {
  padding: 9px 15px;
  color: white;
  background: var(--ink);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 650;
}

.section { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.hero {
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 6vw;
}
.kicker {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
}
.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .16em;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.hero h1 .hero-greeting { color: #8e8e93; font-size: .82em; font-weight: 600; }
.hero h1 .hero-name { color: var(--ink); }
.hero-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
  letter-spacing: -.015em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-role { margin: 24px 0 8px; color: var(--ink); font-size: clamp(20px, 2vw, 28px); font-weight: 650; letter-spacing: -.025em; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-highlights span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.78); color: var(--ink); font-size: 13px; font-weight: 600; }
.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 650;
  transition: transform .25s ease, background .25s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: #0077ed; }
.button-quiet { color: var(--ink); background: white; }
.portrait-surface {
  position: relative;
  min-height: 650px;
  overflow: visible;
  isolation: isolate;
  background: transparent;
}
.portrait-surface img {
  position: absolute;
  z-index: 3;
  inset: auto 50% -2% auto;
  width: 82%;
  max-width: none;
  transform: translateX(50%);
  filter: saturate(.88) contrast(.98) drop-shadow(0 26px 30px rgba(80,65,54,.12));
}
.personality-tag, .portrait-name {
  position: absolute;
  z-index: 6;
  padding: 9px 14px;
  border: 1px solid rgba(67, 66, 72, .14);
  border-radius: 999px;
  color: #55545a;
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 26px rgba(0,0,0,.045);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.portrait-name { top: 7%; left: 7%; color: var(--ink); letter-spacing: .05em; }
.tag-zodiac { top: 25%; left: 5%; }
.tag-responsible { top: 59%; left: 4%; }
.tag-mbti { top: 17%; right: 5%; }
.tag-badminton { top: 53%; right: 3%; }
.tag-energy { right: 8%; bottom: 8%; }

.split-section {
  padding-block: 110px;
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 8vw;
  border-top: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 32px; }
.info-grid article { padding-top: 18px; border-top: 1px solid var(--line); }
.info-grid span { color: var(--muted); font-size: 12px; }
.info-grid h3 { margin: 16px 0 8px; font-size: 18px; letter-spacing: -.025em; }
.info-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.info-grid p + p { margin-top: 10px; line-height: 1.65; }
.info-grid .education-card { grid-column: 1 / -1; }
.education-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 16px; }
.education-item + .education-item { padding-left: 32px; border-left: 1px solid var(--line); }
.education-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.education-title h3 { margin-top: 0; }
.education-title strong { padding: 5px 10px; border-radius: 999px; background: #e8f2ff; color: var(--blue); font-size: 12px; white-space: nowrap; }
.info-grid .skill-card { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.72); }
.info-grid .skill-card h3 { margin-top: 12px; }
.info-grid .skill-card p { line-height: 1.7; }

#experience, .honors-section { padding-block: 130px; }
.wide-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
}
.wide-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.experience-list { border-top: 1px solid var(--line); }
.experience-row {
  padding: 34px 0;
  display: grid;
  grid-template-columns: .72fr 1.1fr 1.25fr;
  gap: 42px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.experience-date { color: var(--muted); font-size: 13px; }
.experience-row h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.025em; }
.experience-row p { margin: 0; color: var(--muted); line-height: 1.65; }
.experience-row ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.experience-row li + li { margin-top: 8px; }
.experience-row li strong { color: var(--ink); font-weight: 700; }

.projects-section { padding-top: 80px; overflow: hidden; }
.project-heading { margin-bottom: 74px; }
.project-heading h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 60px);
  line-height: 1.08;
  letter-spacing: -.05em;
}
.project-feature {
  width: min(calc(100% - 48px), 1380px);
  min-height: 760px;
  margin: 24px auto;
  padding: clamp(42px, 6vw, 90px);
  display: grid;
  grid-template-columns: .76fr 1.24fr;
  align-items: center;
  gap: 6vw;
  overflow: hidden;
  border-radius: 48px;
}
.project-light { background: #fff; }
.project-dark { color: white; background: #101114; }
.project-index { margin: 0 0 28px; color: #86868b; font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.project-copy h3 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.14; letter-spacing: -.045em; }
.project-copy > p:not(.project-index) { max-width: 560px; margin: 26px 0; color: #737377; font-size: 17px; line-height: 1.7; }
.project-dark .project-copy > p:not(.project-index) { color: #a1a1a6; }
.project-detail-list { max-width: 620px; margin: 24px 0; padding-left: 1.15em; color: #737377; font-size: 14px; line-height: 1.65; }
.project-detail-list li + li { margin-top: 8px; }
.project-detail-list strong { color: var(--ink); }
.project-metrics { margin: 34px 0; display: flex; gap: 30px; }
.project-metrics span { display: grid; gap: 6px; color: #86868b; font-size: 12px; }
.project-metrics strong { color: inherit; font-size: 25px; letter-spacing: -.04em; }
.text-link {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-weight: 650;
}
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px,-3px); }
.project-visual, .tile-image {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 36px 80px rgba(0,0,0,.16);
}
.project-visual { transform: perspective(1000px) rotateY(-4deg); transition: transform .5s ease; }
.project-visual:hover { transform: perspective(1000px) rotateY(0) scale(1.015); }
.project-pair { padding-block: 24px 130px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-tile {
  min-height: 740px;
  padding: clamp(30px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  border-radius: 40px;
  background: #fff;
}
.project-tile h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.18; letter-spacing: -.04em; }
.project-tile p:not(.project-index) { color: var(--muted); line-height: 1.65; }
.tile-blue { background: #e8f1ff; }
.tile-image { margin: auto 0 28px; }
.project-green { color: #17382c; background: #dfeee7; }
.project-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.project-methods span { padding: 20px; border: 1px solid rgba(23,56,44,.14); border-radius: 18px; background: rgba(255,255,255,.42); font-weight: 650; }

.honors-section { border-top: 1px solid var(--line); }
.honors-grid { display: block; }
.honor-major {
  min-height: 420px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  color: white;
  background: var(--blue);
}
.honor-major span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.honor-major strong { margin: auto 0 12px; font-size: clamp(38px, 4vw, 56px); letter-spacing: -.05em; }
.honor-major p { margin: 0; opacity: .7; }
.honor-list { background: white; border-radius: 34px; padding: 14px 34px; }
.honor-list div { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.honor-list div:last-child { border: 0; }
.honor-list strong { font-size: 15px; line-height: 1.5; }
.honor-list span { flex: 0 0 auto; color: var(--muted); font-size: 12px; }

.contact-section { padding: 150px 24px 24px; }
.contact-inner {
  min-height: 620px;
  padding: clamp(45px, 7vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 48px;
  color: white;
  background: var(--ink);
}
.contact-inner h2 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -.05em; }
.contact-links { margin-top: 70px; display: flex; flex-wrap: wrap; gap: 18px 44px; }
.contact-links a { color: #a1a1a6; font-size: 18px; transition: color .2s ease; }
.contact-links a:hover { color: white; }
.contact-item { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.contact-item button, .dialog-copy, .dialog-phone button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: transparent; color: #a1a1a6; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.contact-item button:hover { color: white; border-color: rgba(255,255,255,.6); }
.contact-label { color: #a1a1a6; font-size: 18px; }
.phone-value { color: white; font-size: 18px; letter-spacing: .04em; }
footer {
  max-width: 1380px;
  margin: auto;
  padding: 32px 30px 46px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

dialog { border: 0; }
dialog::backdrop { background: rgba(0,0,0,.54); backdrop-filter: blur(12px); }
.gallery-dialog {
  width: min(calc(100% - 32px), 1280px);
  max-height: calc(100vh - 32px);
  padding: 22px;
  border-radius: 30px;
  background: #f5f5f7;
  box-shadow: 0 40px 120px rgba(0,0,0,.28);
}
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 18px; }
.gallery-toolbar p { margin: 0 0 5px; color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.gallery-toolbar h2 { margin: 0; font-size: 20px; }
.gallery-actions { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; }
.gallery-actions button, .dialog-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #e3e3e7;
  cursor: pointer;
  font-size: 20px;
}
.gallery-stage {
  position: relative;
  min-height: 65vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #e8e8ed;
}
.gallery-stage img { max-height: 70vh; object-fit: contain; }
.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.82);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.gallery-arrow.previous { left: 18px; }
.gallery-arrow.next { right: 18px; }
.gallery-dots { padding-top: 14px; display: flex; justify-content: center; gap: 7px; }
.gallery-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #c7c7cc; cursor: pointer; }
.gallery-dots button.active { background: var(--ink); }
.contact-dialog {
  width: min(calc(100% - 32px), 520px);
  padding: 52px;
  border-radius: 34px;
  background: white;
}
.contact-dialog .dialog-close { position: absolute; top: 18px; right: 18px; }
.contact-dialog h2 { margin: 0 0 18px; font-size: 42px; letter-spacing: -.05em; }
.contact-dialog > p:not(.kicker) { color: var(--muted); line-height: 1.6; }
.contact-dialog > a { display: block; margin-top: 16px; color: var(--blue); }
.contact-dialog .dialog-copy, .contact-dialog .dialog-phone button { border-color: var(--line); color: var(--blue); }
.dialog-phone { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .nav { gap: 18px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .portrait-wrap { grid-row: 1; }
  .portrait-surface { min-height: 540px; }
  .portrait-surface img { width: 68%; }
  .hero h1 { gap: .2em; font-size: clamp(40px, 8vw, 58px); }
  .split-section, .project-feature, .honors-grid { grid-template-columns: 1fr; }
  .project-feature { min-height: auto; }
  .project-visual { margin-top: 30px; transform: none; }
  .experience-row { grid-template-columns: 1fr 1.6fr; }
  .experience-row > ul:last-child { grid-column: 2; }
  .project-pair { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .section { width: min(calc(100% - 32px), var(--max)); }
  .nav-shell { padding-inline: 10px; }
  .hero { padding-bottom: 40px; }
  .portrait-surface { min-height: 430px; }
  .portrait-surface img { width: 76%; }
  .personality-tag, .portrait-name { padding: 7px 10px; font-size: 10px; }
  .tag-zodiac { top: 28%; left: 3%; }
  .tag-responsible { top: 61%; left: 3%; }
  .tag-mbti { top: 18%; right: 3%; }
  .tag-badminton { top: 54%; right: 2%; }
  .tag-energy { right: 5%; bottom: 7%; }
  .split-section, #experience, .honors-section { padding-block: 90px; }
  .info-grid { grid-template-columns: 1fr; }
  .education-list { grid-template-columns: 1fr; gap: 24px; }
  .education-item + .education-item { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .wide-heading { display: block; }
  .wide-heading > p { margin-top: 24px; }
  .experience-row { grid-template-columns: 1fr; gap: 13px; }
  .experience-row > ul:last-child { grid-column: auto; }
  .project-feature { width: calc(100% - 20px); padding: 36px 24px; border-radius: 32px; }
  .project-pair { width: calc(100% - 20px); }
  .project-tile { min-height: 610px; border-radius: 32px; }
  .project-metrics { gap: 18px; }
  .honor-list { padding-inline: 22px; }
  .honor-list div { align-items: start; flex-direction: column; justify-content: center; gap: 8px; }
  .contact-section { padding-inline: 10px; }
  .contact-inner { min-height: 520px; border-radius: 32px; }
  .contact-links { flex-direction: column; }
  .gallery-dialog { padding: 12px; }
  .gallery-stage { min-height: 58vh; }
  .contact-dialog { padding: 44px 28px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
