:root {
  --ink: #102e37;
  --paper: #e9eeec;
  --acid: #91cdd0;
  --hairline: rgba(16, 46, 55, 0.2);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; padding: 0; color: inherit; font: inherit; }

.noise { position: fixed; z-index: 20; inset: 0; opacity: .07; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.cursor-dot, .cursor-ring { position: fixed; z-index: 30; top: 0; left: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: difference; opacity: 0; }
.cursor-dot { width: 6px; height: 6px; background: white; margin: -3px; }
.cursor-ring { width: 28px; height: 28px; border: 1px solid white; margin: -14px; transition: width .25s, height .25s, margin .25s, background .25s; }
body:has(.project-image:hover) .cursor-ring, body:has(.email-link:hover) .cursor-ring { width: 48px; height: 48px; margin: -24px; background: rgba(255,255,255,.16); }

.preload { position: fixed; z-index: 100; inset: 0; display: flex; justify-content: center; align-items: center; gap: .1em; background: var(--ink); color: var(--paper); font: 500 clamp(3rem, 10vw, 8rem)/1 var(--serif); transition: transform 1.1s cubic-bezier(.77,0,.18,1); }
.preload span:last-child { font-style: italic; color: var(--acid); }
body.loaded .preload { transform: translateY(-100%); }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; padding: 27px 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; color: var(--paper); }
.wordmark { display: inline-flex; flex-direction: column; width: min-content; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: -.05em; line-height: .94; }
.header-note { margin: 0; font: 10px/1.35 var(--mono); text-align: center; opacity: .75; }
.menu-toggle { justify-self: end; display: flex; align-items: center; gap: 10px; background: none; color: currentColor; cursor: pointer; font: 10px var(--mono); letter-spacing: .03em; }
.menu-toggle i { position: relative; width: 22px; height: 1px; display: block; background: currentColor; }
.menu-toggle i::after { content: ""; position: absolute; right: 0; top: 6px; width: 13px; height: 1px; background: currentColor; transition: width .3s; }
.menu-toggle:hover i::after { width: 22px; }
.site-nav { position: fixed; z-index: 9; top: 0; right: 0; width: min(420px, 100%); min-height: 100vh; padding: 120px 32px 32px; display: flex; flex-direction: column; gap: 20px; background: var(--acid); transform: translateX(100%); transition: transform .55s cubic-bezier(.77,0,.18,1); }
.site-nav.open { transform: none; }
.site-nav a { font: 500 clamp(2rem, 5vw, 4rem)/.95 var(--serif); }

.hero { position: relative; min-height: max(720px, 100vh); padding: 164px 4.2vw 40px; display: flex; flex-direction: column; justify-content: space-between; color: var(--paper); overflow: hidden; background: #0a2d38; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 54% at 82% 4%, rgba(121,191,198,.3), transparent 72%), radial-gradient(ellipse 80% 76% at 52% 40%, transparent 15%, rgba(0,25,34,.58) 100%), linear-gradient(118deg, rgba(5,34,44,.95), rgba(15,74,84,.65) 55%, rgba(5,37,50,.82)), url("./works/hero.jpg") center/cover; filter: saturate(.78); animation: hero-shift 16s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; width: 64vw; height: 64vw; min-width: 600px; min-height: 600px; right: -16vw; top: -18vw; border: 1px solid rgba(186,232,231,.25); border-radius: 50%; box-shadow: 0 0 0 8vw rgba(163,217,219,.035), 0 0 0 16vw rgba(163,217,219,.025); }
@keyframes hero-shift { to { transform: scale(1.08); } }
.hero > * { position: relative; z-index: 1; }
.eyebrow, .section-label, .statement-kicker, .contact-top, .project-meta p, .image-index, .image-caption { font-family: var(--mono); font-size: 10px; letter-spacing: .02em; }
.eyebrow { margin: 0; opacity: .72; }
.hero-title { max-width: 1100px; margin: auto 0 35px; font: 500 clamp(5.1rem, 13.4vw, 13rem)/.79 var(--serif); letter-spacing: -.065em; }
.hero-title span { display: block; }
.hero-line--accent { padding-left: min(22vw, 260px); font-style: italic; color: var(--acid); }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hero-copy { width: min(280px, 55vw); margin: 0; font-size: 14px; line-height: 1.5; }
.scroll-prompt { display: flex; align-items: center; gap: 18px; font: 10px var(--mono); white-space: nowrap; }
.scroll-prompt span { font-size: 19px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
.hero-orbit { position: absolute; right: 4vw; bottom: 19vh; width: 138px; aspect-ratio: 1; border: 1px solid rgba(238,236,231,.45); border-radius: 50%; animation: spin 16s linear infinite; }
.hero-orbit span { position: absolute; inset: 12px; display: flex; align-items: center; overflow: hidden; font: 9px var(--mono); white-space: nowrap; transform: rotate(-31deg); }
.guangzhou-mark { position: absolute; z-index: 0; right: 9vw; bottom: -8vh; width: min(42vw, 560px); color: #9cd5d6; opacity: .42; pointer-events: none; }
.guangzhou-mark svg { display: block; width: 100%; height: auto; }
.skyline-fill { fill: rgba(79, 157, 166, .08); }
.skyline-line, .tower, .tower-ring { stroke: currentColor; stroke-width: 1.35; vector-effect: non-scaling-stroke; }
.tower { stroke-linecap: round; stroke-linejoin: round; }
.guangzhou-mark span { position: absolute; right: 1%; bottom: 7%; font: 9px var(--mono); letter-spacing: .08em; }
@keyframes spin { to { transform: rotate(360deg); } }

.intro { padding: 18vw 4.2vw 14vw; display: grid; grid-template-columns: 1fr 2fr; }
.section-label { display: flex; gap: 18px; text-transform: uppercase; }
.section-label span:first-child { color: #777; }
.intro-copy { max-width: 720px; }
.intro h2 { margin: -7px 0 28px; font: 500 clamp(3rem, 6.2vw, 6rem)/.92 var(--serif); letter-spacing: -.06em; }
.intro-copy p { max-width: 295px; margin: 0; font-size: 14px; line-height: 1.55; }

.projects { padding: 0 4.2vw 14vw; }
.project { position: relative; }
.project-image { position: relative; display: block; width: 100%; overflow: hidden; cursor: pointer; text-align: left; isolation: isolate; background-color: #aaa; }
.project-image::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 26%, transparent 70%, rgba(0,0,0,.52)); transition: opacity .4s; }
.project-image::before { content: ""; position: absolute; z-index: -1; inset: -2%; background: inherit; transition: transform .8s cubic-bezier(.2,.75,.22,1), filter .8s; }
.project-image:hover::before { transform: scale(1.055); filter: brightness(1.08); }
.project-image > span { position: absolute; z-index: 1; color: white; }
.image-index { top: 15px; left: 17px; }
.image-caption { right: 17px; bottom: 15px; opacity: .8; }
.project-view { top: 50%; left: 50%; display: flex; align-items: center; gap: 8px; transform: translate(-50%, -38%); opacity: 0; transition: opacity .35s, transform .35s; font: 500 15px var(--serif); white-space: nowrap; }
.project-view b { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--acid); color: var(--ink); font: 15px var(--sans); }
.project-image:hover .project-view { opacity: 1; transform: translate(-50%, -50%); }
.project-meta { display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; }
.project-meta h3 { margin: 0; font: 500 clamp(1.45rem, 2.3vw, 2.25rem)/1 var(--serif); letter-spacing: -.04em; }
.project-meta p { margin: 4px 0 0; text-transform: uppercase; color: #666; }
.project--large { width: 74.5%; }
.project--large .project-image { aspect-ratio: 1.38/1; }
.project-pair { margin: 15vw 0 18vw; display: grid; grid-template-columns: 1fr 1fr; gap: 11vw; align-items: start; }
.project--right { margin-top: 8vw; }
.project--right .project-image { aspect-ratio: .91/1; }
.project--offset .project-image { aspect-ratio: 1.09/1; }
.project--wide { width: 88%; margin-left: auto; }
.project--wide .project-image { aspect-ratio: 1.78/1; }
.project-pair--last { grid-template-columns: .88fr 1.12fr; margin: 16vw 9vw 0 0; }
.project--left .project-image { aspect-ratio: .85/1; }
.project--right-bottom { margin-top: 12vw; }
.project--right-bottom .project-image { aspect-ratio: 1.36/1; }

/* The gradients are intentional fallbacks until the matching images are added to /works. */
.visual-dawn { background-image: url("./works/01-dawn-at-wuzhen.jpg"), linear-gradient(145deg, #173946 0%, #477785 29%, #b4d1d1 50%, #e1e5dc 66%, #205668 100%); }
.visual-ember { background-image: url("./works/02-ember.jpg"), radial-gradient(circle at 66% 30%, #d3e7de 1%, #6f9da8 33%, #214455 73%); }
.visual-quiet { background-image: url("./works/03-quiet-geometry.jpg"), linear-gradient(125deg, #1d5064 0 27%, #a8d0d0 27% 36%, #e5e8df 36% 52%, #6396a4 52% 70%, #c9d8d5 70%); }
.visual-ocean { background-image: url("./works/04-blue-hour.jpg"), radial-gradient(ellipse at 45% 13%, #d6edf0 0 4%, transparent 15%), linear-gradient(182deg, #bddfe0 0 32%, #5a99ad 45%, #113c55 100%); }
.visual-silk { background-image: url("./works/05-silk-and-smoke.jpg"), radial-gradient(circle at 55% 44%, #e5ece4 0 9%, #9ec4c5 20%, transparent 40%), linear-gradient(135deg, #183a49, #5c8c98 55%, #152f3b); }
.visual-night { background-image: url("./works/06-night-studies.jpg"), radial-gradient(circle at 21% 57%, #d1eeee 0 2%, transparent 10%), radial-gradient(circle at 74% 30%, #88c7cb 0 1%, transparent 6%), linear-gradient(120deg, #081f2d, #12566a 49%, #092c3d); }

.statement { padding: 16vw 4.2vw; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1fr 2fr; }
.statement-main { max-width: 900px; }
.statement-kicker { margin: 0 0 8vw; color: #666; }
.statement h2 { margin: 0; font: 500 clamp(3rem, 6.25vw, 6.1rem)/.96 var(--serif); letter-spacing: -.062em; }
.statement h2 em { color: #4d929a; }
.statement-detail { max-width: 315px; margin: 8vw 0 0 auto; }
.statement-detail p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; }
.text-link { display: inline-flex; padding-bottom: 6px; border-bottom: 1px solid; gap: 20px; font: 11px var(--mono); }
.text-link span { font-size: 15px; }

.bio { padding: 16vw 4.2vw; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1fr 2fr; }
.bio-main { max-width: 900px; }
.bio h2 { max-width: 760px; margin: 0; font: 500 clamp(3rem, 6.25vw, 6.1rem)/.96 var(--serif); letter-spacing: -.062em; }
.bio h2 em { color: #4d929a; }
.bio-intro { max-width: 490px; margin: 8vw 0 7vw; font-size: 18px; line-height: 1.5; }
.bio-intro p { margin: 0; }
.education-list { margin: 0; padding: 0; border-top: 1px solid var(--hairline); list-style: none; }
.education-list li { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 19px 0 18px; border-bottom: 1px solid var(--hairline); }
.education-list span { padding-top: 4px; color: #777; font: 10px var(--mono); }
.education-list p { margin: 0; font-size: 13px; line-height: 1.45; }
.education-list strong { display: block; margin-bottom: 3px; font: 500 clamp(1.2rem, 1.8vw, 1.7rem)/1.1 var(--serif); letter-spacing: -.03em; }
.bio-closing { max-width: 415px; margin: 8vw 0 0 auto; font-size: 14px; line-height: 1.6; }
.bio-hobbies { max-width: 415px; margin: 32px 0 0 auto; color: #45717a; font-size: 13px; line-height: 1.6; }
.bio-hobbies span { display: block; margin-bottom: 7px; color: #777; font: 10px var(--mono); letter-spacing: .04em; }

.contact { padding: 4.2vw 4.2vw 28px; color: var(--paper); background: #092934; }
.contact-top, .contact-footer { display: flex; justify-content: space-between; gap: 25px; }
.contact-top { padding-top: 8px; color: #aaa; }
.contact-top p { margin: 0; }
.contact-top span { font-size: 10px; font-family: var(--mono); }
.contact h2 { margin: 10vw 0 7vw; font: 500 clamp(4rem, 10.5vw, 10rem)/.83 var(--serif); letter-spacing: -.075em; }
.contact h2 em { color: var(--acid); }
.contact-note { max-width: 430px; margin: -3vw 0 4vw auto; color: #c7c7c4; font-size: 14px; line-height: 1.6; }
.email-link { display: inline-flex; align-items: center; gap: 15px; padding-bottom: 8px; border-bottom: 1px solid #777; font: 500 clamp(1.2rem, 2.3vw, 2.25rem)/1 var(--serif); transition: color .3s, border .3s; }
.email-link span { font: clamp(1.2rem, 2.2vw, 2rem) var(--sans); }
.email-link:hover { color: var(--acid); border-color: var(--acid); }
.contact-details { max-width: 650px; margin: 6vw 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(233,238,236,.28); }
.contact-details p { display: flex; flex-direction: column; gap: 8px; min-height: 86px; margin: 0; padding: 16px 0; border-bottom: 1px solid rgba(233,238,236,.28); color: #e9eeec; font: 14px/1.45 var(--sans); }
.contact-details p:nth-child(odd) { padding-right: 25px; border-right: 1px solid rgba(233,238,236,.28); }
.contact-details p:nth-child(even) { padding-left: 25px; }
.contact-details p:last-child { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
.contact-details span { color: #9ab1b3; font: 9px var(--mono); letter-spacing: .04em; }
.contact-details a { text-decoration: underline; text-decoration-color: rgba(145,205,208,.5); text-underline-offset: 4px; }
.contact-details a:hover { color: var(--acid); }
.contact-footer { margin-top: 13vw; padding-top: 14px; border-top: 1px solid #555; color: #9b9b9b; font: 10px var(--mono); }
.contact-footer p { margin: 0; }
.contact-footer div { display: flex; gap: 18px; }
.contact-footer a:hover { color: var(--acid); }

.project-modal { width: min(900px, calc(100% - 32px)); max-height: min(850px, calc(100% - 32px)); padding: 0; overflow: hidden; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.45); }
.project-modal::backdrop { background: rgba(14,14,13,.74); backdrop-filter: blur(8px); }
.modal-close { position: absolute; z-index: 2; top: 15px; right: 16px; display: flex; align-items: center; gap: 9px; cursor: pointer; color: white; mix-blend-mode: difference; font: 10px var(--mono); }
.modal-close span { font-size: 24px; line-height: 12px; }
.modal-art { height: min(65vh, 600px); background-size: cover; background-position: center; }
.modal-detail { display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; padding: 22px; align-items: baseline; }
.modal-detail p, .modal-detail span { margin: 0; font: 10px/1.5 var(--mono); color: #666; }
.modal-detail h2 { margin: 0; font: 500 clamp(1.8rem, 4vw, 3.4rem)/1 var(--serif); letter-spacing: -.05em; }
.modal-detail > p:nth-child(3) { grid-column: 2 / 3; max-width: 400px; font: 13px/1.5 var(--sans); color: var(--ink); }
.modal-detail span { grid-column: 3; grid-row: 1; }

.reveal, .reveal-line, .reveal-project { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.75,.22,1); }
.revealed { opacity: 1; transform: none; }
.hero .reveal-line:nth-child(2) { transition-delay: .11s; }

@media (max-width: 700px) {
  .cursor-dot, .cursor-ring { display: none; }
  .site-header { padding: 20px; }
  .header-note { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 710px; padding: 128px 20px 24px; }
  .hero-title { margin-bottom: 65px; font-size: clamp(4.3rem, 19vw, 7rem); line-height: .82; }
  .hero-line--accent { padding-left: 9vw; }
  .hero-orbit { right: 22px; bottom: 23vh; width: 96px; }
  .guangzhou-mark { right: -26vw; bottom: 11vh; width: 86vw; opacity: .31; }
  .hero-copy { width: 210px; font-size: 12px; }
  .scroll-prompt { font-size: 9px; }
  .intro, .statement, .bio { padding: 25vw 20px 20vw; display: block; }
  .section-label { margin-bottom: 60px; }
  .intro h2 { font-size: clamp(3rem, 14vw, 4.9rem); }
  .projects { padding: 0 20px 25vw; }
  .project--large, .project--wide { width: 100%; margin: 0; }
  .project--large .project-image { aspect-ratio: .88/1; }
  .project-pair, .project-pair--last { display: block; margin: 25vw 0; }
  .project--right, .project--right-bottom { margin: 0 0 25vw; }
  .project--right .project-image, .project--offset .project-image, .project--left .project-image, .project--right-bottom .project-image { aspect-ratio: .88/1; }
  .project--wide .project-image { aspect-ratio: 1.15/1; }
  .project-meta { padding-top: 11px; }
  .project-meta h3 { font-size: 1.5rem; }
  .project-meta p { font-size: 8px; }
  .statement h2 { font-size: clamp(2.9rem, 13.8vw, 4.8rem); }
  .statement-kicker { margin-bottom: 22vw; }
  .statement-detail { margin: 17vw 0 0 auto; }
  .bio h2 { font-size: clamp(2.9rem, 13.8vw, 4.8rem); }
  .bio-intro { margin: 18vw 0; font-size: 16px; }
  .education-list li { grid-template-columns: 45px 1fr; gap: 10px; padding: 16px 0; }
  .education-list strong { font-size: 1.3rem; }
  .bio-closing { margin-top: 18vw; font-size: 13px; }
  .bio-hobbies { margin-top: 28px; font-size: 12px; }
  .contact { padding: 20px 20px 21px; }
  .contact-top span { display: none; }
  .contact h2 { margin: 28vw 0 16vw; font-size: clamp(4rem, 19vw, 7rem); }
  .contact-note { margin: -5vw 0 16vw; font-size: 13px; }
  .contact-details { margin-top: 18vw; display: block; }
  .contact-details p { min-height: 0; padding: 14px 0; }
  .contact-details p:nth-child(odd), .contact-details p:nth-child(even) { padding-right: 0; padding-left: 0; border-right: 0; }
  .contact-footer { margin-top: 25vw; flex-wrap: wrap; }
  .contact-footer .back-top { width: 100%; margin-top: 10px; }
  .modal-detail { grid-template-columns: 1fr; gap: 11px; }
  .modal-detail > p:nth-child(3), .modal-detail span { grid-column: auto; grid-row: auto; }
  .modal-art { height: 55vh; }
}

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