@import url('https://fonts.googleapis.com/css2?family=Archivo+Narrow:wght@600;700&family=Instrument+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #151712;
  --panel: #20241b;
  --cream: #efefe7;
  --paper: #f4f3eb;
  --muted: #bdc1b3;
  --lime: #dcfa96;
  --gutter: clamp(22px, 5vw, 96px);
  --body: "Instrument Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", sans-serif;
  --editorial: "Instrument Serif", Georgia, "Songti SC", SimSun, serif;
  --mono: "IBM Plex Mono", "PingFang SC", monospace;
  --ease: cubic-bezier(.2,.75,.24,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 16px/1.55 var(--body); }
body, h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
h2, h3, a, button { overflow-wrap: anywhere; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid #6e8d22; outline-offset: 5px; }
.topbar :focus-visible, .hero :focus-visible, .about :focus-visible { outline-color: var(--lime); }
.wrap { width: min(100%, 1660px); margin-inline: auto; padding-inline: var(--gutter); }
.micro { font: 500 .72rem/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--lime); color: var(--ink); transform: translateY(-180%); }
.skip:focus { transform: none; }

.topbar { border-bottom: 1px solid #ffffff23; background: var(--ink); }
.bar { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; justify-self: start; font: 700 2.15rem/.9 var(--display); letter-spacing: -.085em; padding-block: 10px; }
.logo i { width: 6px; height: 6px; margin-left: 6px; background: var(--lime); }
.main-nav, .languages { display: flex; align-items: center; }
.main-nav { gap: clamp(20px, 3vw, 52px); }
.main-nav a, .languages a { display: grid; place-items: center; min-height: 44px; white-space: nowrap; }
.main-nav a { font-size: .88rem; color: var(--muted); transition: color .25s ease; }
.main-nav a:hover { color: var(--lime); }
.languages { justify-self: end; gap: 2px; padding: 1px 3px; border: 1px solid #ffffff27; border-radius: 50px; }
.languages a { min-width: 44px; padding-inline: 8px; color: var(--muted); border-radius: 50px; font: 500 .7rem var(--mono); transition: color .25s, background .25s; }
.languages a:hover { color: var(--lime); }
.languages a[aria-current] { background: var(--lime); color: var(--ink); }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 78% 38%, #343d22 0%, var(--ink) 66%); }
.hero-scene { position: relative; min-height: clamp(600px, calc(90svh - 110px), 820px); display: grid; align-items: center; padding-block: clamp(60px, 8svh, 100px); }
.hero-art { position: absolute; inset: 5% var(--gutter) 4% 43%; overflow: hidden; z-index: -1; border: 1px solid #e1f2b329; background: #20251a; animation: art-in 1.15s var(--ease) both; }
.portrait { position: absolute; inset: -1%; transform: translate3d(var(--portrait-x,0px), var(--portrait-y,0px), 0) scale(1.035); transition: transform .5s var(--ease); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 12%; filter: grayscale(1) sepia(.16) brightness(.89) contrast(1.04); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#182014ab,transparent 50%), linear-gradient(0deg,#161914d9,transparent 32%), #58643629; pointer-events: none; }
.portrait-grid { position: absolute; z-index: 1; inset: 20px; border: 1px solid #edffb822; pointer-events: none; }
.portrait-grid::before, .portrait-grid::after { content: ""; position: absolute; background: #edffb829; }
.portrait-grid::before { width: 1px; height: 100%; left: 65%; }
.portrait-grid::after { width: 100%; height: 1px; top: 75%; }
.portrait-corner { position: absolute; z-index: 2; top: 20px; right: 20px; width: 20px; height: 20px; border-top: 1px solid var(--lime); border-right: 1px solid var(--lime); }
.portrait-meta { position: absolute; z-index: 2; bottom: 31px; right: 32px; color: var(--cream); }
.hero-copy { align-self: center; position: relative; width: max-content; max-width: 100%; }
.hero-role { display: flex; align-items: center; gap: 10px; color: var(--lime); margin-bottom: 1.65rem; }
.hero-role span { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px #dafa9380; }
h1 { display: grid; font: 700 clamp(96px, 14vw, 218px)/.78 var(--display); text-transform: uppercase; letter-spacing: -.07em; margin-left: -.045em; }
h1 > span { display: block; overflow: hidden; padding: 0 .09em .10em .045em; margin: 0 -.09em -.10em -.045em; }
h1 b { display: block; font-weight: inherit; animation: name-in .95s var(--ease) both; }
h1 > span:nth-child(2) b { animation-delay: .1s; }
.name-dot { color: var(--lime); }
.hero-description { color: #e1e3d7; max-width: 34ch; margin-top: clamp(24px, 4vh, 46px); font-size: clamp(1rem,1.3vw,1.23rem); }
.hero-role, .hero-description, .hero-copy .pill { animation: rise .85s var(--ease) .19s both; }
.hero-copy .pill { margin-top: 25px; animation-delay: .28s; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 19px; border: 1px solid transparent; border-radius: 100px; font-size: .88rem; font-weight: 700; padding: 12px 18px; min-height: 48px; transition: background .3s, border-color .3s, color .3s; }
.pill span { font-size: 1.12rem; line-height: 1; transition: transform .3s var(--ease); }
.pill:hover span { transform: translate(2px,-2px); }
.primary { color: var(--ink); background: var(--lime); }
.primary:hover { background: var(--cream); }
.hero-base { min-height: 58px; border-top: 1px solid #ffffff26; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--muted); }
.hero-base a { min-height: 44px; display: inline-flex; align-items: center; gap: .75rem; }
.hero-base a:hover { color: var(--lime); }
.hero-base a span { color: var(--lime); animation: nudge 1.8s ease-in-out 2; font-size: 1rem; }
@keyframes nudge { 50% { transform: translateY(4px); } }
@keyframes name-in { from { transform: translateY(112%); opacity: 0; } }
@keyframes art-in { from { clip-path: inset(0 0 100% 0); opacity: .15; } to { clip-path: inset(0); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.section-wrap { padding-block: clamp(65px, 8.5vw, 135px); }
.work { background: var(--paper); color: var(--ink); }
.section-head, .about-intro, .contact-inner { display: flex; align-items: end; justify-content: space-between; gap: clamp(20px, 5vw, 72px); }
.section-head { padding-bottom: 24px; border-bottom: 1px solid #191d1740; margin-bottom: 24px; }
.section-head p { max-width: 29ch; color: #4c5144; padding-bottom: 3px; }
h2 { font: 700 clamp(3.5rem, 7.4vw, 7.7rem)/.94 var(--display); letter-spacing: -.065em; }
h2 em { font: italic 400 1.08em/.9 var(--editorial); letter-spacing: -.035em; }
html[lang="zh-CN"] h2 { font-family: var(--body); font-size: clamp(3.3rem, 7vw, 7rem); letter-spacing: -.07em; }
html[lang="zh-CN"] h2 em { font-size: .94em; font-style: normal; letter-spacing: -.08em; }

.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,2.7vw,44px); }
.project { min-width: 0; }
.project-art { display: block; position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.53; background: #25281e; color: var(--cream); }
.project-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .85s var(--ease); }
.aeri-art img { object-position: center 48%; }
.real-art img { object-position: 62% 55%; }
.project-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#090d08bb,transparent 44%); pointer-events: none; }
.project-art:hover img, .project-art:focus-visible img { transform: scale(1.065); }
.project-name { position: absolute; bottom: 9%; left: 6%; z-index: 1; font: 700 clamp(2.8rem,5.45vw,6.6rem)/.82 var(--display); letter-spacing: -.07em; }
.project-name span { color: var(--lime); }
.round-arrow { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #f0f0e67c; border-radius: 50%; font: 400 1.25rem/1 var(--body); transition: color .3s, background .3s, border-color .3s, transform .3s var(--ease); }
.project-art .round-arrow { position: absolute; top: 6%; right: 4%; z-index: 1; background: #191c15a6; }
.project-art:hover .round-arrow, .project-art:focus-visible .round-arrow { color: var(--ink); background: var(--lime); border-color: var(--lime); transform: rotate(10deg); }
.reticle { position: absolute; inset: 6% 4%; border: 1px solid #dffb9655; pointer-events: none; }
.reticle::before, .reticle::after { content: ""; position: absolute; inset: 0; width: 16px; height: 16px; border-top: 1px solid var(--lime); border-left: 1px solid var(--lime); }
.reticle::after { inset: auto 0 0 auto; transform: rotate(180deg); }
.project-details { padding-top: 21px; display: grid; gap: 7px; justify-items: start; }
.project-details h3 { font: 700 clamp(1.75rem,2.8vw,3rem)/1 var(--display); letter-spacing: -.045em; }
.project-details .micro { color: #526536; }
.project-details p:not(.micro) { max-width: 48ch; color: #4c5144; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 700; border-bottom: 1px solid #33372d60; transition: border-color .25s, color .25s; }
.text-link:hover { color: #4e641e; border-color: #4e641e; }
.text-link span { transition: transform .25s var(--ease); }
.text-link:hover span { transform: translate(2px,-2px); }

.about { background: var(--panel); }
.about-intro { align-items: center; padding-bottom: clamp(32px,5vw,65px); }
.about-intro h2 em { color: var(--lime); }
.about-intro > p { color: #e0e2d7; max-width: 51ch; font-size: clamp(1rem, 1.45vw, 1.26rem); }
.cv { border-block: 1px solid #f2f4e644; }
.cv summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; font: 600 clamp(1.4rem, 2.25vw, 2.25rem)/1.2 var(--display); padding: 20px 0; }
html[lang="zh-CN"] .cv summary { font-family: var(--body); }
.cv summary::-webkit-details-marker { display: none; }
.cv summary:hover { color: var(--lime); }
.cv .close-name, .cv[open] .cv-name { display: none; }
.cv[open] .close-name { display: inline; }
.plus { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid #f2f4e644; position: relative; }
.plus::after, .plus::before { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; height: 1px; background: currentColor; transition: transform .25s; }
.plus::after { transform: rotate(90deg); }
.cv[open] .plus::after { transform: none; }
.cv-content { padding-bottom: 24px; }
.cv[open] .cv-content { animation: rise .4s var(--ease) both; }
.print-title { display: none; }
.print { display: none; background: transparent; border-color: #f2f4e65f; margin-block: 2px 28px; }
.js .print { display: inline-flex; }
.print:hover { color: var(--ink); background: var(--lime); }
.cv-columns { display: grid; grid-template-columns: 1.75fr 1fr; gap: clamp(22px,6vw,95px); }
.cv-columns h3 { font: 500 .86rem/1.4 var(--mono); color: var(--lime); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.cv-columns section + section { margin-top: 31px; }
.cv-columns p { color: #d9ddd0; }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 11px 0; border-top: 1px solid #f2f4e62b; display: grid; gap: 8px 15px; grid-template-columns: minmax(105px, .75fr) 2fr; }
.timeline li > span { font: 400 .72rem/1.55 var(--mono); padding-top: .17rem; color: var(--muted); }
.timeline strong { display: block; font-weight: 600; }
.timeline p { margin-top: 3px; font-size: .91rem; }

.contact { background: var(--lime); color: var(--ink); }
.contact .section-wrap { padding-bottom: 0; }
.contact-inner { padding-bottom: clamp(40px, 6vw, 88px); }
.contact h2 { margin-bottom: 14px; }
.contact-link { display: flex; gap: 17px; align-items: center; padding-bottom: 7px; border-bottom: 1px solid #1517126a; font-size: clamp(.94rem,1.4vw,1.35rem); font-weight: 600; }
.contact-link .round-arrow { border-color: #15171265; flex: none; }
.contact-link:hover .round-arrow { background: var(--ink); color: var(--lime); transform: rotate(10deg); }
.footer { min-height: 64px; border-top: 1px solid #15171246; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.footer a { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.footer a:hover { text-decoration: underline; }
.reveal { transition: opacity .78s var(--ease), transform .78s var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(24px); }
.project:nth-child(2) { transition-delay: .1s; }

@view-transition { navigation: auto; }
@media (max-width: 980px) {
  .hero-scene { min-height: 620px; }
  h1 { font-size: clamp(100px, 15.4vw, 175px); }
  .hero-art { left: 39%; }
}
@media (max-width: 700px) {
  .bar { grid-template-columns: 1fr auto; gap: 0 16px; padding-top: 7px; }
  .logo { font-size: 1.95rem; }
  .languages { grid-area: 1 / 2; }
  .languages a { min-height: 42px; }
  .main-nav { grid-column: 1 / -1; gap: 28px; }
  .main-nav a { font-size: .85rem; }
  .hero-scene { display: flex; flex-direction: column; align-items: stretch; padding-block: 27px 22px; min-height: auto; }
  .hero-art { position: relative; inset: auto; order: 2; aspect-ratio: 1.3; width: 100%; margin-top: 27px; }
  .hero-copy { align-self: start; }
  .hero-role { margin-bottom: 19px; }
  h1 { font-size: clamp(78px, 18.6vw, 123px); }
  .hero-description { margin-top: 23px; }
  .hero-copy .pill { margin-top: 17px; }
  .portrait-grid { inset: 11px; }
  .portrait-corner { top: 11px; right: 11px; }
  .portrait-meta { right: 19px; bottom: 18px; }
  .section-head, .about-intro, .contact-inner { display: grid; justify-content: start; }
  .section-head p { max-width: none; padding: 0; }
  .projects { grid-template-columns: 1fr; gap: 32px; }
  .project-name { font-size: clamp(3.4rem,11vw,5.5rem); }
  .cv-columns { grid-template-columns: 1fr; }
  .contact-link { justify-self: start; }
}
@media (max-width: 370px) {
  :root { --gutter: 17px; }
  h1 { font-size: clamp(64px, 18.6vw, 80px); }
  .timeline li { grid-template-columns: 1fr; }
  .micro { letter-spacing: .06em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.pending { opacity: 1; transform: none; }
}
@media print {
  @page { margin: 13mm; }
  body, .about { background: white; color: black; font-size: 10pt; }
  .topbar, .skip, .hero, .work, .contact, .about-intro, .cv summary, .cv .print { display: none !important; }
  .wrap, .cv-content { margin: 0; padding: 0; }
  .cv { border: 0; }
  .cv::details-content { display: block; content-visibility: visible; }
  .print-title { display: block; margin-bottom: 18px; }
  .print-title h2 { font-size: 26pt; letter-spacing: 0; margin-bottom: 5px; }
  .cv-columns { grid-template-columns: 1fr; gap: 18px; }
  .cv-columns h3, .cv-columns p, .timeline li > span { color: #222; }
  .cv-columns section + section { margin-top: 17px; }
  .timeline li { padding-block: 5px; break-inside: avoid; border-color: #ccc; }
  .cv-columns h3 { break-after: avoid; }
  .reveal.pending { opacity: 1; transform: none; }
}
