:root {
  --yellow: #fada82;
  --yellow-soft: #fbe5a6;
  --paper: #eee7d8;
  --ink: #263f37;
  --blue: #3f6d95;
  --blue-dark: #2c5275;
  --line: rgba(38,63,55,.38);
  --serif: Baskerville, "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", Georgia, serif;
  --hand: "Snell Roundhand", "Segoe Print", "Bradley Hand", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.65; overflow-x: hidden;
  background-color: var(--yellow);
  background-image:
    radial-gradient(circle at 9px 10px, rgba(63,109,149,.5) 0 1.25px, transparent 1.7px),
    radial-gradient(circle at 13px 7px, rgba(63,109,149,.28) 0 1px, transparent 1.4px),
    radial-gradient(circle at 5px 6px, rgba(63,109,149,.3) 0 1px, transparent 1.4px),
    radial-gradient(circle at 9px 4px, rgba(255,255,255,.35) 0 1px, transparent 1.5px);
  background-size: 58px 58px;
}
a { color: inherit; }
.paper-noise { position: fixed; inset: 0; opacity: .13; pointer-events: none; z-index: 99; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); }
.site-header { position: fixed; inset: 0 0 auto; height: 80px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; z-index: 80; border-bottom: 1px solid rgba(38,63,55,.2); background: rgba(250,218,130,.78); backdrop-filter: blur(14px); }
.home-header { background: rgba(250,218,130,.64); }
.monogram { font: 700 1.5rem var(--hand); color: var(--blue-dark); text-decoration: none; }
nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3.2rem); }
nav a { position: relative; font: 700 .8rem/1 Arial, sans-serif; letter-spacing: .18em; text-decoration: none; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: var(--blue-dark); transition: right .3s ease; }
nav a:hover::after, nav a:focus-visible::after, nav a.active::after { right: 0; }

.home-page { background: var(--yellow); }
.reference-hero { min-height: 100svh; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--yellow); }
.reference-hero::before { content: ""; position: absolute; inset: 80px 0 0; z-index: 1; pointer-events: none; opacity: .2; background-image: radial-gradient(circle at 9px 10px, rgba(63,109,149,.5) 0 1.2px, transparent 1.7px), radial-gradient(circle at 13px 7px, rgba(63,109,149,.3) 0 1px, transparent 1.4px), radial-gradient(circle at 5px 6px, rgba(63,109,149,.3) 0 1px, transparent 1.4px); background-size: 58px 58px; mix-blend-mode: multiply; }
.reference-art { position: absolute; inset: 80px 0 0; width: 100%; height: calc(100% - 80px); object-fit: cover; object-position: center; filter: none; opacity: 1; mix-blend-mode: multiply; }
.name-paper { position: relative; z-index: 2; width: min(500px, 82vw); height: min(500px, 82vw); margin-top: 68px; padding: 4.5rem 3rem 3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: inherit; text-decoration: none; background: transparent; backdrop-filter: none; clip-path: none; box-shadow: none; isolation: isolate; cursor: pointer; }
.name-paper::before { content: none; }
.name-paper > p, .name-paper > h1, .name-paper > .entry-label { position: relative; top: 95px; }
.name-paper p { margin: 0 0 1.1rem; color: rgba(34,48,42,.82); font: 700 .67rem Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; opacity: .88; mix-blend-mode: multiply; }
.identity-line { top: 100px !important; z-index: 3; display: flex; align-items: center; justify-content: center; width: min(590px, 92vw); gap: clamp(6rem, 12vw, 9rem); white-space: nowrap; }
.name-paper h1 { margin: 0; font: 600 clamp(4.5rem, 7.5vw, 7.5rem)/.66 var(--hand); letter-spacing: -.055em; color: rgba(34,48,42,.9); rotate: -2.5deg; opacity: .9; mix-blend-mode: multiply; filter: blur(.12px); text-shadow: none; }
.name-paper h1 span { display: block; }
.name-paper h1 span:last-child { margin-left: .5em; }
.entry-label { left: 14px; margin-top: 2rem; border-bottom: 1px solid currentColor; color: rgba(34,48,42,.84); font: italic 1.28rem var(--serif); mix-blend-mode: multiply; }
.name-paper:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 7px; }
.cursor-invite { position: absolute; z-index: 3; bottom: 16px; right: 2vw; margin: 0; padding: .35rem .65rem; background: rgba(238,231,216,.78); font-size: .78rem; font-style: italic; }

.inner-page { width: min(1280px, 90vw); margin: 0 auto; padding: 150px 0 90px; }
.page-title { padding: 5vw 0 7vw; border-bottom: 1px solid var(--line); }
.page-title > p, .meta { font: 700 .7rem/1.3 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-dark); }
.page-title h1 { margin: 1.2rem 0 0; font-size: clamp(3.7rem, 8vw, 8.5rem); font-weight: 400; line-height: .9; letter-spacing: -.05em; }
.page-title em, .contact-card em { color: var(--blue-dark); font-weight: 400; }
.about-page { line-height: 1.5; }
.about-page .inner-page { padding-top: 112px; }
.about-page-title { padding: 1rem 0 .65rem; border-bottom: 0; }
.about-page-title > p { font-size: .82rem; }
.about-layout { max-width: 1160px; padding: clamp(3.5rem,5vw,5rem) 0 clamp(2rem,3vw,3rem); display: flow-root; }
.about-copy p { margin: 0 0 1rem; font-size: clamp(.98rem,1.25vw,1.08rem); line-height: 1.55; }
.about-name { color: #111; font-weight: 700; }
.about-copy p:last-child { margin-bottom: 0; }
.project-copy .lead { font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.38; }
.about-photo { position: relative; float: right; width: min(43%,500px); margin: clamp(-4rem,-4vw,-2rem) 0 .6rem clamp(2.5rem,5vw,5rem); padding: clamp(.45rem,.8vw,.7rem); border: 1px solid rgba(38,63,55,.34); background: rgba(255,248,225,.42); box-shadow: 0 18px 38px rgba(77,58,25,.13); rotate: 1.2deg; }
.about-photo::after { content: ""; position: absolute; inset: clamp(.45rem,.8vw,.7rem); border: 1px solid rgba(250,218,130,.45); pointer-events: none; }
.about-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center; filter: saturate(.82) contrast(.96); }
.image-divider { width: min(880px, 78vw); height: clamp(48px,5.4vw,64px); margin: 0 auto clamp(.75rem,1.4vw,1.25rem); overflow: hidden; border: 1px solid rgba(38,63,55,.32); box-shadow: 0 8px 24px rgba(77,58,25,.08); background: rgba(255,248,225,.32); }
.image-divider img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 36%; filter: saturate(.76) contrast(.94); mix-blend-mode: multiply; }
.education-panel { position: relative; padding: 0 0 clamp(1.25rem,2vw,2rem); border-bottom: 1px solid var(--line); }
.education-heading { position: relative; min-height: 46px; padding: 0 0 .7rem; border-bottom: 1px solid var(--line); }
.education-heading h2 { margin: 0; font-family: Baskerville, "Iowan Old Style", Georgia, serif; font-size: clamp(1.5rem,2.4vw,2.5rem); font-weight: 600; line-height: .95; letter-spacing: -.035em; }
.education-entries article { display: grid; grid-template-columns: minmax(145px,210px) minmax(0,1fr); gap: clamp(2rem,5vw,5rem); padding: clamp(1.15rem,1.7vw,1.75rem) 0; }
.three-notes + .image-divider { margin-top: clamp(2rem,3vw,3rem); margin-bottom: 0; }
.education-entries article + article { border-top: 1px solid var(--line); }
.education-entries time { display: block; padding-top: .25rem; color: var(--blue-dark); font: 700 clamp(.98rem,1.12vw,1.12rem)/1.3 Arial, sans-serif; letter-spacing: .04em; }
.education-school-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.education-entries h3 { margin: 0; font-family: Baskerville, "Iowan Old Style", "Songti SC", Georgia, serif; font-size: clamp(1.25rem,1.75vw,1.85rem); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.education-entries h3 small { display: block; margin-top: .25rem; font: 400 clamp(1.05rem,1.7vw,1.55rem)/1.15 var(--serif); letter-spacing: 0; }
.qs-rank { flex: 0 0 auto; margin: .25rem clamp(6rem,14vw,13rem) 0 0; color: var(--blue-dark); font: 700 .84rem/1.3 Arial, sans-serif; letter-spacing: .08em; white-space: nowrap; }
.education-degree { margin: .85rem 0 .4rem; color: var(--ink); font-size: clamp(1.05rem,1.7vw,1.55rem); font-style: normal; }
.education-detail > p:last-child { margin: 0; font-size: clamp(.95rem,1.25vw,1.08rem); }
.about-page .education-detail p { line-height: 1.32; }
.about-page .three-notes p { line-height: 1.5; }
.three-notes { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.three-notes article { padding: 3rem 3.5rem 4rem; }
.three-notes article + article { border-left: 1px solid var(--line); }
.three-notes span { font: 700 .7rem Arial, sans-serif; color: var(--blue-dark); }
.three-notes h2 { margin: .5rem 0; font-size: clamp(1.25rem,1.7vw,1.4rem); font-weight: 400; }
.three-notes p { margin: .45rem 0 0; font-size: .88rem; }

.project-hero { display: grid; grid-template-columns: 60px minmax(0,1fr) 180px; gap: clamp(1.5rem, 5vw, 5rem); padding: 7vw 0; border-bottom: 1px solid var(--line); }
.project-number { font: 700 .75rem Arial, sans-serif; color: var(--blue-dark); }
.project-copy h2, .project-grid h2, .timeline h2, .skills-layout h2 { margin: .3rem 0 .9rem; font-size: clamp(2.7rem, 5vw, 5.5rem); line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.project-copy ul { padding-left: 1.2rem; }
.pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.4rem; }
.pills span { border: 1px solid rgba(44,82,117,.5); border-radius: 999px; padding: .3rem .7rem; font: 700 .68rem Arial, sans-serif; color: var(--blue-dark); }
.big-metric { align-self: center; width: 165px; aspect-ratio: 1; border: 1px solid var(--blue-dark); border-radius: 50%; display: grid; place-content: center; text-align: center; rotate: 4deg; }
.big-metric strong { font-size: 2.7rem; font-weight: 400; color: var(--blue-dark); }
.big-metric span { font: 700 .65rem Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.project-grid article { padding: 4.5rem 3rem; }
.project-grid article + article { border-left: 1px solid var(--line); }
.project-grid h2 { font-size: clamp(2rem,3vw,3.2rem); }

.work-menu-page { overflow: hidden; background: var(--yellow); }
.work-menu { min-height: 100svh; padding-top: 80px; display: grid; place-items: center; overflow: hidden; background: var(--yellow); }
.work-scene { position: relative; width: min(100vw, calc((100svh - 80px) * 1.74)); aspect-ratio: 1918 / 1102; max-height: calc(100svh - 80px); }
.work-background { display: block; width: 100%; height: 100%; object-fit: contain; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 3.5%, #000 96.5%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 3.5%, #000 96.5%, transparent 100%); }
.work-choice { position: absolute; z-index: 2; display: block; color: var(--ink); text-decoration: none; outline: none; }
.work-girl-cutout { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; pointer-events: none; transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(38,63,55,0)); transition: opacity .22s ease, transform .32s cubic-bezier(.2,.72,.2,1), filter .32s ease; }
.work-choice:hover .work-girl-cutout, .work-choice:focus-visible .work-girl-cutout { opacity: 1; transform: translateY(-7px) scale(1.018); filter: drop-shadow(0 13px 10px rgba(38,63,55,.34)) drop-shadow(0 3px 2px rgba(255,250,220,.72)); }
.work-label { position: absolute; left: 50%; z-index: 4; isolation: isolate; width: clamp(228px, 18vw, 282px); height: clamp(62px, 4.5vw, 70px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(.1rem,.18vw,.2rem); padding: .42rem clamp(2rem,2.7vw,2.65rem); transform: translateX(-50%); color: #253d38; letter-spacing: .015em; text-align: center; white-space: nowrap; text-shadow: 0 1px rgba(255,248,222,.75); }
.work-label::before { content: none; }
.work-label-en { font: italic 600 clamp(1.38rem,1.9vw,1.88rem)/.96 var(--serif); }
.work-label-zh { font: 500 clamp(.96rem,1.15vw,1.18rem)/1.05 "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif; letter-spacing: .12em; }
.work-choice-film .work-label { left: 35%; top: -7%; --work-frame: url("assets/work-label-frame-blue-v3.png"); }
.work-choice-design .work-label { top: -12%; --work-frame: url("assets/work-label-frame-violet-v3.png"); }
.work-choice-animation .work-label { top: -10.5%; --work-frame: url("assets/work-label-frame-iris-v3.png"); }
.work-choice-animation .work-label-en { font-size: clamp(1.16rem,1.48vw,1.46rem); letter-spacing: -.01em; }
.work-choice-film { left: 11.5%; top: 9%; width: 20.5%; height: 87%; }
.work-choice-design { left: 38%; top: 13%; width: 21%; height: 84%; }
.work-choice-animation { left: 72.5%; top: 12%; width: 20%; height: 85%; }

.category-title { padding: 2vw 0 6vw; border-bottom: 1px solid var(--line); }
.category-title > a { display: inline-block; margin-bottom: 4rem; font: 700 .72rem Arial, sans-serif; letter-spacing: .1em; text-decoration: none; }
.category-title > p { margin: 0; color: var(--blue-dark); font: 700 .72rem Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.category-title h1 { margin: 1rem 0 0; font-size: clamp(3.8rem,8vw,8.5rem); font-weight: 400; line-height: .88; letter-spacing: -.05em; }
.category-title em { color: var(--blue-dark); font-weight: 400; }
.category-placeholder { min-height: 32vh; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.category-placeholder p { font: italic 1.05rem var(--serif); }
.graphic-design-page { min-height: 100vh; }
.graphic-gallery { position: relative; z-index: 1; width: min(1400px, calc(100% - clamp(2rem, 7vw, 8rem))); margin: 0 auto; padding: clamp(272px, 23vw, 315px) 0 clamp(4rem, 8vw, 8rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.7rem, 4.5vw, 4.8rem) clamp(2rem, 5vw, 5.5rem); }
.graphic-back { position: absolute; top: clamp(104px, 8vw, 118px); left: 0; color: #111; font: 700 .72rem/1 Arial, sans-serif; letter-spacing: .1em; text-decoration: none; }
.graphic-kicker { position: absolute; top: clamp(178px, 14vw, 198px); left: 0; width: 100%; margin: 0; padding-bottom: clamp(2rem, 4vw, 4rem); border-bottom: 1px solid var(--line); color: var(--blue-dark); font: 700 .72rem/1 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.graphic-item { min-width: 0; margin: 0; }
.graphic-image-stage { width: 100%; height: clamp(320px, 33vw, 500px); display: grid; place-items: end center; }
.graphic-image-stage img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center bottom; }
.graphic-item figcaption { margin-top: .38rem; color: #111; font: 500 .84rem/1.5 "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif; letter-spacing: .045em; text-align: center; }
.film-page .category-title { padding-bottom: clamp(2rem,4vw,4rem); }
.film-library { border-top: 1px solid var(--line); }
.film-group { padding: clamp(2.5rem,4vw,4rem) 0; }
.film-group + .film-group { border-top: 1px solid var(--line); }
.film-group > header { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 1.5rem; align-items: baseline; margin-bottom: 1.5rem; }
.film-group > header > span, .film-index { color: var(--blue-dark); font: 700 .72rem/1.3 Arial, sans-serif; letter-spacing: .1em; }
.film-group h1 { margin: 0; font-size: clamp(1.8rem,3.2vw,3.2rem); font-weight: 500; line-height: 1; }
.film-group h1 small { display: inline-block; margin-left: .65rem; color: var(--blue-dark); font: italic 400 .9rem/1.2 var(--serif); letter-spacing: .03em; }
.film-link-card { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; gap: 1.5rem; align-items: center; margin-top: .8rem; padding: clamp(1.25rem,2vw,1.8rem); color: inherit; text-decoration: none; border: 1px solid rgba(38,63,55,.28); border-radius: 22px; background: rgba(255,248,225,.34); transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
.film-link-card:hover, .film-link-card:focus-visible { transform: translateY(-3px); background: rgba(255,248,225,.58); box-shadow: 0 12px 28px rgba(77,58,25,.1); outline: none; }
.film-card-copy { display: grid; gap: .3rem; }
.film-card-copy strong { font-size: clamp(1.25rem,1.8vw,1.65rem); font-weight: 500; }
.film-card-copy small { font-size: .92rem; line-height: 1.5; }
.film-watch { padding: .65rem 1rem; border-radius: 999px; background: var(--ink); color: var(--yellow-soft); font: 700 .7rem/1 Arial, sans-serif; letter-spacing: .08em; white-space: nowrap; }
.animation-page .inner-page { padding-top: 115px; }
.animation-reel-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin: clamp(2rem,4vw,4rem) 0; padding: 4px; border: 1px solid rgba(38,63,55,.34); background: rgba(38,63,55,.24); box-shadow: 0 18px 40px rgba(77,58,25,.12); }
.animation-reel-grid video { display: block; width: 100%; aspect-ratio: 36 / 25; object-fit: cover; background: rgba(255,248,225,.45); }

.timeline { border-top: 1px solid var(--ink); }
.timeline article { display: grid; grid-template-columns: 170px minmax(0,1fr) 145px; gap: clamp(1.5rem,5vw,5rem); padding: 2.75rem 0; border-bottom: 1px solid var(--line); }
.timeline time { font: 700 .72rem Arial, sans-serif; color: var(--blue-dark); }
.timeline h2 { font-size: clamp(2.1rem,3.8vw,4rem); }
.experience-page .page-title { padding: 2rem 0 2.5rem; border-bottom: 0; }
.experience-ornament-header { position: relative; min-height: 150px; display: flex; align-items: flex-end; overflow: visible; }
.experience-top-relief { position: absolute; top: -72px; left: 50%; z-index: 0; width: min(860px,82vw); max-height: 165px; object-fit: contain; transform: translateX(-50%); opacity: .22; mix-blend-mode: multiply; filter: saturate(.34) sepia(.16) drop-shadow(-1px -1px 0 rgba(255,248,214,.86)) drop-shadow(1px 2px 1px rgba(44,82,117,.2)); pointer-events: none; }
.experience-ornament-header > p { position: relative; z-index: 1; }
.experience-type small { margin-top: .3rem; color: var(--blue-dark); font-size: .68rem; letter-spacing: .1em; }
.experience-points { margin: .7rem 0 1rem; padding-left: 1.2rem; font-size: .94rem; }
.experience-points li { margin: 0 0 .45rem; line-height: 1.6; }
.experience-metrics { align-self: center; display: grid; gap: 1.35rem; }
.experience-metrics strong { text-align: center; color: var(--blue-dark); font: 400 2.4rem var(--serif); }
.experience-divider { margin-top: clamp(2rem,3vw,3rem); margin-bottom: 0; }
.timeline small { display: block; color: var(--ink); font: 700 .68rem Arial, sans-serif; letter-spacing: .08em; }

.skills-layout { display: grid; grid-template-columns: 1.05fr .95fr; border-bottom: 1px solid var(--line); }
.skills-page .page-title { padding: 2rem 0 1.25rem; border-bottom: 0; }
.skills-ornament-header { position: relative; overflow: visible; }
.skills-ornament-header > p { position: relative; z-index: 1; }
.skills-top-relief { opacity: .12; filter: saturate(.2) sepia(.12) drop-shadow(-1px -1px 0 rgba(255,248,214,.72)) drop-shadow(1px 2px 1px rgba(44,82,117,.12)); }
.skills-layout-single { grid-template-columns: 1fr; }
.skills-layout.skills-layout-single > div { padding-right: 0; }
.skills-layout > div { padding: 3vw 4vw 6vw 0; }
.skills-layout > div + div { padding-left: 4vw; border-left: 1px solid var(--line); }
.skills-layout > div > h2 { margin-bottom: 3rem; font-size: clamp(1.8rem,3.33vw,3.67rem); }
.education-list article { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.education-list time { font: 700 .7rem Arial, sans-serif; color: var(--blue-dark); }
.education-list h3 { margin: 0; font-size: 1.45rem; }
.education-list p { margin: .2rem 0; }
.toolkit dl { margin: 0; }
.toolkit dl div { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.toolkit dt { color: var(--blue-dark); font: 700 .72rem Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.toolkit dd { margin: .35rem 0 0; }
.contact-card { margin-top: 7vw; padding: clamp(3rem,6vw,6rem); background: rgba(44,82,117,.94); color: #fff8e8; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
.contact-card h2 { margin: .1em 0; font-size: clamp(3.5rem,7vw,7.5rem); font-weight: 400; line-height: .9; }
.contact-card > div:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.skills-contact-invite { margin: clamp(3.5rem,7vw,7rem) 0 1rem; text-align: center; color: rgba(34,48,42,.76); font: 400 clamp(1.1rem,1.8vw,1.55rem)/1.35 var(--serif); }
.skills-contact { margin-top: 0; padding: clamp(1.4rem,2.6vw,2.4rem); display: block; background: rgba(255,248,224,.38); color: rgba(34,48,42,.82); border: 1px solid rgba(44,82,117,.12); }
.skills-contact p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; text-align: center; gap: .42rem .7rem; font-size: clamp(1rem,1.35vw,1.18rem); }
.skills-contact a { color: inherit; text-underline-offset: 4px; text-decoration-color: rgba(44,82,117,.28); }
.skills-contact span { color: rgba(44,82,117,.36); }

.mini-footer { width: min(1280px,90vw); margin: 0 auto; padding: 35px 0 50px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font: 700 .7rem Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.mini-footer a { text-underline-offset: 6px; }
#cursor-garden { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.trail-card { position: fixed; left: 0; top: 0; width: clamp(42px,5vw,72px); aspect-ratio: 1; object-fit: contain; border: 0; filter: drop-shadow(0 4px 7px rgba(39,63,58,.12)); will-change: transform, opacity; }

#garden-transition { position: fixed; inset: 0; z-index: 200; pointer-events: none; visibility: hidden; overflow: hidden; opacity: 0; background: radial-gradient(circle at var(--x,50%) var(--y,50%), rgba(240,212,118,0) 0, rgba(240,212,118,.12) 15%, rgba(240,212,118,.58) 75%, rgba(240,212,118,.82) 100%); }
#garden-transition.is-active { visibility: visible; animation: washIn .82s cubic-bezier(.18,.7,.2,1) forwards; }
.garden-ripple { position: absolute; left: var(--x); top: var(--y); width: 46px; height: 30px; border: 1px solid rgba(44,82,117,.34); border-radius: 46% 54% 47% 53%; transform: translate(-50%,-50%) scale(.05) rotate(var(--turn)); opacity: 0; animation: rippleOut .72s cubic-bezier(.15,.72,.2,1) var(--delay) forwards; }
.leaf-wave { position: absolute; left: var(--x); top: var(--y); width: var(--size); height: calc(var(--size) * .48); border: 1px solid rgba(44,82,117,.4); border-radius: 92% 12% 88% 18%; background: rgba(63,109,149,.06); transform: translate(-50%,-50%) rotate(var(--start)) scale(.15); opacity: 0; animation: leafDrift .7s cubic-bezier(.14,.66,.24,1) var(--delay) forwards; }
@keyframes washIn { 0% { opacity: 0; } 35% { opacity: .38; } 100% { opacity: 1; } }
@keyframes rippleOut { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.05) rotate(var(--turn)); } 15% { opacity: .62; } 100% { opacity: 0; transform: translate(-50%,-50%) scale(var(--spread)) rotate(calc(var(--turn) + 18deg)); } }
@keyframes leafDrift { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--start)) scale(.15); } 18% { opacity: .82; } 70% { opacity: .4; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--end)) scale(1.1); } }

@media (max-width: 820px) {
  .site-header { height: 68px; padding: 0 5vw; }
  nav { gap: .78rem; }
  nav a { font-size: .68rem; letter-spacing: .06em; }
  .reference-art { inset: 68px 0 0; height: calc(100% - 68px); object-position: center; }
  .reference-hero::before { inset: 68px 0 0; }
  .work-menu { min-height: 100svh; padding-top: 68px; }
  .work-scene { width: 100vw; max-height: calc(100svh - 68px); }
  .work-label { width: clamp(168px,34vw,210px); height: clamp(54px,11vw,62px); padding: .34rem 1.35rem; gap: .08rem; }
  .work-label::before { content: none; }
  .work-label-en { font-size: clamp(1.1rem,3.45vw,1.35rem); }
  .work-label-zh { font-size: clamp(.76rem,2.35vw,.9rem); }
  .work-choice-animation .work-label-en { font-size: clamp(.88rem,2.65vw,1.08rem); }
  .name-paper { width: min(82vw,500px); height: min(82vw,500px); padding: 3rem 1.5rem 2.25rem; }
  .name-paper > p, .name-paper > h1, .name-paper > .entry-label { top: 52px; }
  .identity-line { top: 58px !important; width: min(92vw, 390px); gap: 2.25rem; font-size: .58rem !important; }
  .entry-label { left: 8px; font-size: 1.12rem; }
  .name-paper h1 { font-size: clamp(3.4rem,15vw,5.2rem); }
  .cursor-invite { display: none; }
  .inner-page { padding-top: 110px; }
  .page-title h1 { font-size: clamp(3.25rem,13vw,5.5rem); }
  .about-layout, .project-hero, .project-grid, .skills-layout, .contact-card { grid-template-columns: 1fr; }
  .about-page .inner-page { padding-top: 88px; }
  .about-layout { padding-top: 3rem; padding-bottom: 1.25rem; }
  .about-photo { float: none; width: min(100%,560px); margin: -2rem auto 1.5rem; }
  .education-heading { min-height: 42px; padding-right: 0; }
  .education-heading h2 { font-size: clamp(1.4rem,6vw,1.9rem); }
  .education-entries article { grid-template-columns: 1fr; gap: .8rem; }
  .education-school-line { gap: 1rem; }
  .education-entries h3 { font-size: clamp(1.2rem,5.4vw,1.65rem); }
  .qs-rank { margin-right: 0; }
  .image-divider { width: 100%; height: 48px; margin-bottom: .85rem; }
  .three-notes { grid-template-columns: 1fr; }
  .three-notes article + article { border-left: 0; border-top: 1px solid var(--line); }
  .project-hero { grid-template-columns: 34px 1fr; }
  .film-group > header { grid-template-columns: 34px minmax(0,1fr); gap: .8rem; }
  .film-group h1 small { display: block; margin: .45rem 0 0; }
  .film-link-card { grid-template-columns: 34px minmax(0,1fr); gap: .8rem; border-radius: 16px; }
  .film-watch { grid-column: 2; justify-self: start; }
  .animation-page .inner-page { padding-top: 88px; }
  .graphic-gallery { width: min(100% - 2rem, 720px); padding-top: 240px; grid-template-columns: 1fr; gap: 3.5rem; }
  .graphic-back { top: 92px; }
  .graphic-kicker { top: 156px; padding-bottom: 2rem; }
  .graphic-image-stage { height: auto; min-height: 0; }
  .graphic-image-stage img { width: 100%; height: auto; min-width: 0; min-height: 0; max-height: 78svh; }
  .graphic-item--portrait .graphic-image-stage { height: min(118vw, 560px); }
  .graphic-item--portrait .graphic-image-stage img { width: 100%; height: 100%; min-width: 0; min-height: 0; }
  .graphic-item figcaption { margin-top: .34rem; font-size: .8rem; }
  .big-metric { grid-column: 2; width: 120px; }
  .project-grid article + article, .skills-layout > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .timeline article { grid-template-columns: 1fr; gap: 1rem; }
  .experience-ornament-header { min-height: 122px; }
  .experience-top-relief { top: -42px; width: 96vw; max-height: 125px; opacity: .19; }
  .experience-metrics { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
  .experience-metrics strong { text-align: left; }
  .skills-layout > div, .skills-layout > div + div { padding: 4rem 0; }
  .skills-page .skills-layout > div, .skills-page .skills-layout > div + div { padding-top: 2rem; }
  .contact-card > div:last-child { align-items: flex-start; }
  .mini-footer { flex-direction: column; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; } #cursor-garden, #garden-transition { display:none; } }
