/* ==========================================================
   Lee coco — dark & elegant portfolio
   ========================================================== */
:root {
  --bg: #0d0c0a;
  --bg-2: #15130f;
  --bg-3: #1d1a15;
  --text: #ece6dc;
  --muted: #9a9183;
  --faint: #5d574e;
  --line: rgba(236, 230, 220, .14);
  --gold: #c9a978;
  --gold-2: #e6d2ab;

  --serif: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  --sans: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  --display: 'Inter', 'Noto Sans TC', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
html[lang="zh-Hant"] { --serif: 'Noto Sans TC', 'Inter', sans-serif; --display: 'Noto Sans TC', 'Inter', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 16px/1.7 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, .quote { text-wrap: balance; }
html[lang="zh-Hant"] :is(h1, h2, h3, .quote, .logo) { letter-spacing: .05em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 400 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
html[lang="zh-Hant"] .eyebrow { letter-spacing: .4em; font-size: 12px; }
.num { font: 400 15px/1 var(--serif); color: var(--gold); }

/* film grain */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .8em; padding: 1.05em 2.1em;
  border: 1px solid rgba(236, 230, 220, .55); font: 400 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  position: relative; overflow: hidden; isolation: isolate; transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--text); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); z-index: -1; }
.btn:hover { color: var(--bg); border-color: var(--text); }
.btn:hover::before { transform: scaleY(1); }
.btn--gold { border-color: var(--gold); color: var(--gold-2); }
.btn--gold::before { background: var(--gold); }
.link-u { position: relative; }
.link-u::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
.link-u:hover::after { transform: scaleX(0); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter);
  transition: background .5s var(--ease), border-color .5s; border-bottom: 1px solid transparent;
}
.header.is-solid { background: rgba(13, 12, 10, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.logo { font: 300 clamp(20px, 1.9vw, 25px)/1 var(--serif); letter-spacing: .06em; white-space: nowrap; }
.logo small { display: block; margin-top: 6px; font: 400 9px/1 var(--sans); font-style: normal; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); font-size: 13px; letter-spacing: .14em; }
html[lang="zh-Hant"] .nav { letter-spacing: .24em; }
.nav > a, .nav__group > a { position: relative; padding: 8px 0; color: rgba(236,230,220,.78); transition: color .3s; }
.nav > a:hover, .nav__group > a:hover, .nav a.is-active { color: var(--text); }
.nav a.is-active::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.nav__group { position: relative; }
.nav__drop {
  position: absolute; top: 100%; left: 50%; min-width: 180px; padding: 14px 0; margin-top: 10px;
  background: rgba(21, 19, 15, .96); border: 1px solid var(--line); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.nav__drop::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__group:hover .nav__drop, .nav__group:focus-within .nav__drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__drop a { display: block; padding: 8px 22px; color: var(--muted); white-space: nowrap; transition: color .2s, padding .3s var(--ease); }
.nav__drop a:hover { color: var(--gold-2); padding-left: 28px; }
.header__tools { display: flex; align-items: center; gap: 22px; }
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.lang button { padding: 4px 2px; transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--text); }
.lang span { opacity: .4; }
.menu-btn { display: none; width: 30px; height: 30px; position: relative; }
.menu-btn::before, .menu-btn::after { content: ''; position: absolute; left: 3px; right: 3px; height: 1px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn::before { top: 11px; }
.menu-btn::after { top: 19px; }
body.menu-open .menu-btn::before { transform: translateY(4px) rotate(45deg); }
body.menu-open .menu-btn::after { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}

/* mobile overlay menu */
.overlay {
  position: fixed; inset: 0; z-index: 40; background: var(--bg-2);
  display: grid; grid-template-rows: 1fr auto; padding: 110px var(--gutter) 36px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-out); visibility: hidden;
}
body.menu-open { overflow: hidden; }
body.menu-open .overlay { clip-path: inset(0); visibility: visible; }
.overlay nav { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.overlay nav a { display: flex; align-items: baseline; gap: 18px; font: 300 clamp(36px, 10vw, 64px)/1.15 var(--serif); opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.overlay nav a small { font: 400 11px var(--sans); color: var(--muted); letter-spacing: .2em; }
.overlay nav a.sub { font-size: clamp(20px, 5vw, 28px); padding-left: 44px; color: var(--muted); }
body.menu-open .overlay nav a { opacity: 1; transform: none; }
.overlay__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; color: var(--muted); }

/* ---------- home carousel ---------- */
.carousel { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.4s var(--ease), visibility 1.4s; }
.slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.slide__bg { position: absolute; inset: -80px; background: center / cover no-repeat; filter: blur(60px) brightness(.32) saturate(1.3); transform: scale(1.1); }
.slide__art { position: absolute; inset: calc(var(--header) + 16px) var(--gutter) 150px; display: flex; align-items: center; justify-content: center; }
.slide__art img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 40px 90px rgba(0,0,0,.55); transform: scale(1.06); transition: transform 8s var(--ease-out); }
.slide.is-on .slide__art img { transform: scale(1); }
.slide__cap { position: absolute; left: var(--gutter); bottom: 44px; z-index: 2; max-width: min(640px, 60vw); }
.slide__cap > * { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.slide.is-on .slide__cap > * { opacity: 1; transform: none; }
.slide.is-on .slide__cap > :nth-child(2) { transition-delay: .12s; }
.slide.is-on .slide__cap > :nth-child(3) { transition-delay: .24s; }
.slide__cap h2 { margin: 0 0 10px; font: 300 clamp(28px, 3.2vw, 46px)/1.1 var(--serif); text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.slide__cap p { margin: 0; font-size: 13px; color: rgba(236,230,220,.72); letter-spacing: .08em; }
.slide__cap a.more { display: inline-flex; gap: 10px; margin-left: 20px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); }
.car-ctl { position: absolute; right: var(--gutter); bottom: 52px; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.car-btns { display: flex; gap: 10px; }
.car-btns button { width: 52px; height: 52px; border: 1px solid rgba(236,230,220,.35); border-radius: 50%; display: grid; place-items: center; transition: background .4s, border-color .4s, color .4s; }
.car-btns button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.car-btns svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.car-dots { display: flex; gap: 8px; align-items: center; }
.car-dots button { width: 36px; height: 14px; position: relative; }
.car-dots button::before, .car-dots button i { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: rgba(236,230,220,.25); }
.car-dots button i { background: var(--gold); transform: scaleX(0); transform-origin: left; }
.car-dots button.is-on i { animation: prog var(--dur, 6s) linear forwards; }
.carousel.is-paused .car-dots button.is-on i { animation-play-state: paused; }
.car-dots button.is-done i { transform: scaleX(1); }
@keyframes prog { to { transform: scaleX(1); } }
.car-count { font: 400 15px var(--serif); color: var(--muted); }
.car-count b { font-weight: 400; color: var(--text); font-size: 22px; }
/* landscape screens: artwork fills the whole viewport */
@media (min-aspect-ratio: 1/1) {
  .slide__art { inset: 0; }
  .slide__art img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; box-shadow: none; transform: scale(1.14); transition: transform 9s var(--ease-out); }
  .slide.is-on .slide__art img { transform: scale(1.05); }
  .slide::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      linear-gradient(180deg, rgba(13,12,10,.75) 0%, rgba(13,12,10,.35) 12%, rgba(13,12,10,0) 26%),
      linear-gradient(0deg, rgba(13,12,10,.8) 0%, rgba(13,12,10,.35) 22%, rgba(13,12,10,0) 45%);
  }
  .slide__cap h2 { font-size: clamp(32px, 4vw, 60px); }
  .carousel ~ * .header, body:has(.carousel) .header:not(.is-solid) { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
}
@media (max-width: 720px) {
  .slide__art { inset: calc(var(--header) + 8px) 16px 190px; }
  .slide__cap { bottom: 100px; max-width: calc(100% - 32px); }
  .slide__cap a.more { display: flex; margin: 10px 0 0; }
  .car-ctl { left: 16px; right: 16px; bottom: 32px; flex-direction: row; justify-content: space-between; align-items: center; }
  .car-btns button { width: 44px; height: 44px; }
  .car-dots button { width: 24px; }
}

/* ---------- inner page header ---------- */
.page { padding-top: var(--header); min-height: 100svh; }
.page-head { padding: clamp(48px, 7vw, 100px) 0 clamp(36px, 5vw, 64px); }
.page-head h1 { margin: 16px 0 0; font: 200 clamp(40px, 6.4vw, 96px)/1.1 var(--serif); letter-spacing: -.02em; }
.page-head h1 em, h2 em { font-style: normal; color: var(--gold-2); }
.page-head p { max-width: 52ch; margin: 22px 0 0; color: var(--muted); }
.page-head > * { animation: fadeUp 1s var(--ease-out) both; }
.page-head > :nth-child(2) { animation-delay: .08s; }
.page-head > :nth-child(3) { animation-delay: .16s; }

/* ---------- works: category landing ---------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); padding-bottom: clamp(80px, 10vw, 140px); }
.cat { display: block; }
.cat__media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-3); }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); transition: transform 1.4s var(--ease-out), filter 1s; filter: brightness(.7); }
.cat:hover .cat__media img { transform: scale(1); filter: brightness(.85); }
.cat__media .empty-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a251d, var(--bg-3) 70%); font: 300 18px var(--serif); color: var(--muted); letter-spacing: .1em; }
.cat__label { position: absolute; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; align-items: end; }
.cat__label h2 { margin: 0; font: 300 clamp(30px, 3.2vw, 46px)/1 var(--serif); }
.cat__label span { font: 400 16px var(--serif); color: var(--gold-2); }
.cat p { margin: 18px 0 8px; color: var(--muted); font-size: 14px; }
.cat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; letter-spacing: .14em; color: rgba(236,230,220,.7); }
.cat ul li::before { content: '— '; color: var(--gold); }
@media (max-width: 860px) { .cats { grid-template-columns: 1fr; } .cat__media { aspect-ratio: 4 / 3; } }

/* ---------- works: category page ---------- */
.tabs { display: flex; gap: 28px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs a { padding: 14px 0; font: 300 clamp(18px, 1.8vw, 22px) var(--serif); color: var(--muted); position: relative; transition: color .3s; }
.tabs a:hover, .tabs a.is-active { color: var(--text); }
.tabs a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 4vw, 56px); }
.filters a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; letter-spacing: .14em; color: var(--muted); transition: all .3s; }
.filters a sup { font-size: 9px; margin-left: 4px; color: var(--faint); }
.filters a:hover { color: var(--text); border-color: rgba(236,230,220,.4); }
.filters a.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters a.is-active sup { color: var(--bg); opacity: .5; }

.masonry { columns: 3; column-gap: clamp(16px, 2vw, 28px); padding-bottom: clamp(80px, 10vw, 140px); }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 560px) { .masonry { columns: 1; } }
.tile { display: block; break-inside: avoid; margin-bottom: clamp(24px, 3vw, 40px); cursor: zoom-in; width: 100%; text-align: left; }
.tile__img { overflow: hidden; background: var(--bg-3); }
.tile__img img { width: 100%; height: auto; transform: scale(1.04); transition: transform 1.2s var(--ease-out), opacity .8s; }
.tile:hover .tile__img img { transform: scale(1); }
.tile__cap { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 12px; }
.tile__cap strong { font: 400 17px/1.3 var(--serif); }
.tile__cap span { font-size: 11px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.empty { text-align: center; padding: clamp(64px, 10vw, 140px) 16px; border: 1px solid var(--line); margin-bottom: clamp(80px, 10vw, 140px); }
.empty p { margin: 0 0 8px; font: 300 clamp(24px, 2.6vw, 34px) var(--serif); color: var(--gold-2); letter-spacing: .06em; }
.empty small { color: var(--muted); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(10, 9, 8, .985); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); }
.lb__count { font: 400 15px var(--serif); color: var(--muted); }
.lb__close { width: 44px; height: 44px; position: relative; }
.lb__close::before, .lb__close::after { content: ''; position: absolute; left: 10px; right: 10px; top: 22px; height: 1px; background: currentColor; transform: rotate(45deg); }
.lb__close::after { transform: rotate(-45deg); }
.lb__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 clamp(16px, 8vw, 120px); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: fadeUp .6s var(--ease-out); }
.lb__nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border: 1px solid rgba(236,230,220,.3); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s; }
.lb__nav:hover { background: var(--text); color: var(--bg); }
.lb__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lb__prev { left: var(--gutter); }
.lb__next { right: var(--gutter); }
.lb__cap { padding: 20px var(--gutter) 28px; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.lb__cap h3 { margin: 0 0 4px; font: 300 clamp(24px, 2.6vw, 34px)/1.2 var(--serif); }
.lb__cap p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .06em; max-width: 70ch; }
.lb__cap .desc { margin-top: 8px; color: rgba(236,230,220,.8); letter-spacing: 0; }
@media (max-width: 720px) { .lb__nav { top: auto; bottom: -66px; margin: 0; width: 46px; height: 46px; } .lb__prev { left: 16px; } .lb__next { right: 16px; } .lb__stage { padding: 0 16px; } .lb__cap { padding-top: 84px; } }

/* ---------- work detail ---------- */
.detail { padding-bottom: clamp(80px, 10vw, 140px); }
.back { display: inline-flex; gap: 10px; align-items: center; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.back:hover { color: var(--text); }
.detail__art { display: flex; justify-content: center; background: var(--bg-2); padding: clamp(24px, 5vw, 72px); margin-bottom: clamp(40px, 6vw, 80px); }
.detail__art img { max-height: 82svh; width: auto; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.detail__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 100px); }
.meta { margin: 0; border-top: 1px solid var(--line); }
.meta div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta dt { color: var(--muted); font-size: 12px; letter-spacing: .14em; }
.meta dd { margin: 0; text-align: right; }
.detail__body .lead { margin: 0 0 1.2em; font: 300 clamp(22px, 2.4vw, 32px)/1.5 var(--serif); }
.detail__body p { color: rgba(236,230,220,.82); }
html[lang="zh-Hant"] .detail__body p { line-height: 2; }
.detail__gallery { display: grid; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(48px, 6vw, 80px); }
.detail__gallery img { width: 100%; height: auto; }
@media (max-width: 860px) { .detail__grid { grid-template-columns: 1fr; } }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { padding: clamp(40px, 6vw, 80px) var(--gutter); transition: background .5s; }
.pager a:hover { background: var(--bg-2); }
.pager a + a { text-align: right; border-left: 1px solid var(--line); }
.pager strong { display: block; margin-top: 10px; font: 300 clamp(22px, 3vw, 40px)/1.2 var(--serif); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; padding-bottom: clamp(80px, 10vw, 140px); }
.about__portrait { position: sticky; top: calc(var(--header) + 32px); }
.about__portrait figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__body p { margin: 0 0 1.3em; font-size: 17px; color: rgba(236,230,220,.84); max-width: 58ch; }
html[lang="zh-Hant"] .about__body p { line-height: 2.05; }
.about__fields { margin-top: 48px; }
.about__fields h3 { margin: 0 0 16px; }
.about__fields a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); transition: color .3s, padding .4s var(--ease); }
.about__fields a:first-of-type { border-top: 1px solid var(--line); }
.about__fields a:hover { color: var(--gold-2); padding-left: 8px; }
.about__fields a span { font-size: 12px; color: var(--muted); letter-spacing: .12em; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__portrait { position: static; max-width: 420px; } }
.philo { background: linear-gradient(180deg, transparent, rgba(21,19,15,.75) 18%, rgba(21,19,15,.75) 82%, transparent); padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.quote { max-width: 20ch; margin: 22px auto 0; font: 300 clamp(30px, 4.4vw, 60px)/1.3 var(--serif); }
html[lang="zh-Hant"] .quote { max-width: 16em; line-height: 1.6; font-size: clamp(26px, 3.6vw, 48px); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(56px, 8vw, 100px); text-align: left; }
.values div { border-top: 1px solid var(--line); padding-top: 22px; }
.values h3 { margin: 10px 0 10px; font: 400 26px/1.2 var(--serif); }
.values p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- experience ---------- */
.xp { padding-bottom: clamp(80px, 10vw, 140px); }
.xp__sec { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.xp__sec > h2 { margin: 0; font: 300 clamp(28px, 3vw, 40px)/1.2 var(--serif); position: sticky; top: calc(var(--header) + 24px); align-self: start; }
.xp__item { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.xp__item:first-child { padding-top: 6px; }
.xp__item:last-child { border-bottom: 0; }
.xp__period { font: 300 15px/1.9 var(--serif); letter-spacing: .06em; color: var(--gold); }
.xp__item h3 { margin: 0; font: 400 19px/1.45 var(--sans); }
.xp__item .org { color: var(--muted); font-size: 14px; margin-top: 2px; }
.xp__item p { margin: 10px 0 0; color: rgba(236,230,220,.78); font-size: 15px; }
@media (max-width: 760px) { .xp__sec { grid-template-columns: 1fr; } .xp__sec > h2 { position: static; } .xp__item { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); padding-bottom: clamp(80px, 10vw, 140px); }
.contact__links { display: flex; flex-direction: column; gap: 36px; }
.contact__links a.big { display: block; margin-top: 10px; font: 300 clamp(22px, 2.4vw, 32px)/1.3 var(--serif); word-break: break-all; transition: color .3s; }
.contact__links a.big:hover { color: var(--gold-2); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text);
  font: 300 17px/1.5 var(--sans); padding: 8px 0 12px; border-radius: 0; transition: border-color .4s; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__status { font-size: 14px; color: var(--muted); }
.form__status.ok { color: var(--gold-2); }
.form__status.err { color: #e39a8a; }
@media (max-width: 860px) { .contact, .form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.footer nav { display: flex; gap: 22px; }

/* ---------- reveal & curtain ---------- */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.curtain { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: grid; place-items: center; transition: transform 1.1s var(--ease-out) .15s; }
.curtain span { font: 300 clamp(30px, 4vw, 48px) var(--serif); color: var(--gold-2); opacity: 0; animation: fadeUp 1s .1s var(--ease-out) forwards; }
body.loaded .curtain { transform: translateY(-100%); }
#app { transition: opacity .35s var(--ease); }
#app.is-leaving { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- watercolor washes & page banners ---------- */
.washes { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(/assets/washes.svg) center / cover no-repeat; }
.page.has-banner { padding-top: 0; }
.banner { position: relative; overflow: hidden; min-height: clamp(400px, 60vh, 640px); padding-top: var(--header); display: flex; align-items: flex-end; }
.banner > .wrap { position: relative; z-index: 1; }
.banner .page-head { padding-top: 48px; }
.banner__img { position: absolute; inset: 0; background: center / cover no-repeat; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); transform: scale(1.08); animation: bannerIn 2.6s var(--ease-out) forwards; }
.banner__img::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,12,10,.72) 0%, rgba(13,12,10,.35) 55%, rgba(13,12,10,.15) 100%),
    linear-gradient(180deg, rgba(13,12,10,.65) 0%, rgba(13,12,10,.2) 30%, rgba(13,12,10,.45) 70%, rgba(13,12,10,.6) 100%);
}
@keyframes bannerIn { to { transform: scale(1.02); } }
.banner .page-head h1, .banner .page-head p { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.banner .page-head p { color: rgba(236,230,220,.82); }
.banner + .wrap { padding-top: clamp(24px, 4vw, 48px); }
@media (max-width: 720px) { .banner { min-height: 340px; } }
