:root{
  --blue:#000000;
  --navy:#111111;
  --paper:#ffffff;
  --mist:#f0f0f0;
  --hair:#d7d7d7;
  --header-h:84px;
  --title-top:calc(50svh - 54px);
  --pin-top:250px;
  --ease:cubic-bezier(.6,.01,.05,.95);
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
body{
  font-family:"Inter","Noto Sans TC",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-weight:300; color:var(--navy); background:var(--paper);
  -webkit-font-smoothing:antialiased;
  position:relative;
  overflow-x:hidden;
  width:100%; max-width:100%;
  min-height:100vh;
}
a:focus-visible, button:focus-visible{ outline:2px solid var(--blue); outline-offset:3px; border-radius:2px; }

.site-header{
  position:fixed; z-index:60; inset:0 0 auto 0;
  height:var(--header-h);
  display:flex; flex-direction:column; align-items:stretch;
  overflow:hidden;
  background:rgba(255,255,255,.93);
  -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px);
  border-bottom:1px solid var(--hair);
  transition:height .62s var(--ease), background-color .62s var(--ease);
}
/* About 打開時，就是這塊背景自己往下長高 */
.site-header.is-open{
  height:100svh;
  background:rgba(255,255,255,.94);
}
.header-bar{
  flex:none; height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between;
  padding-inline:clamp(24px,6vw,120px);
}
.logo{ display:flex; align-items:center; text-decoration:none; }
.logo .brand-logo{ width:42px; height:42px; object-fit:contain; display:block; }
.logo svg{ display:none; }
.logo .logo-compact{ display:none; }
.header-right{ display:flex; align-items:center; gap:clamp(16px,2.2vw,28px); }
.progress{
  position:fixed; right:0; top:var(--header-h); bottom:0;
  width:2px; z-index:50; background:transparent;
}
.progress i{
  display:block; width:100%; height:100%;
  background:var(--blue); transform:scaleY(0);
  transform-origin:top center;
}
.lang-switch{
  display:inline-flex; align-items:center; gap:7px;
  font-family:"Inter","Noto Sans TC",sans-serif; font-size:13px; font-weight:400;
  letter-spacing:.06em; color:#4d4d4d; text-decoration:none;
  transition:color .4s var(--ease);
}
.lang-switch svg{
  width:22px; height:22px; display:block; flex:none; stroke:currentColor;
  stroke-width:1.5;
  transition:stroke .4s var(--ease), transform .5s var(--ease);
}
.lang-switch:hover{ color:var(--navy); }
.lang-switch:hover svg{ stroke:var(--blue); transform:rotate(24deg); }

.header-about{
  position:relative;
  border:0; background:transparent; padding:4px 0; margin:0;
  font-family:"Inter","Noto Sans TC",sans-serif; font-size:13px; font-weight:400;
  letter-spacing:.06em; color:#4d4d4d; cursor:pointer;
  transition:color .4s var(--ease);
}
.header-about::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--blue); transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.header-about:hover,.header-about[aria-expanded="true"]{ color:var(--navy); }
.header-about:hover::after,.header-about[aria-expanded="true"]::after{ transform:scaleX(1); }

/* ---------- About：長在 header 背景裡 ---------- */

.about-panel{
  flex:1 1 auto; min-height:0;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
  opacity:0; visibility:hidden;
  transition:opacity .4s var(--ease), visibility .4s;
}
.site-header.is-open .about-panel{
  opacity:1; visibility:visible;
  transition:opacity .5s .22s var(--ease), visibility .5s;
}

.about-inner{
  width:min(100%, 640px);
  margin:0 auto;
  padding:clamp(24px,5vh,56px) clamp(24px,6vw,48px) clamp(56px,10vh,96px);
}
.about-inner p{
  margin:0 0 20px;
  font-size:15px; font-weight:300; line-height:2.05;
  color:var(--navy); opacity:.78;
}
.about-inner p:first-child{ opacity:1; }

.about-contact{
  display:grid; grid-template-columns:88px 1fr; gap:12px 20px;
  margin:clamp(32px,6vh,52px) 0 0;
  padding-top:clamp(24px,4vh,32px);
  border-top:1px solid var(--hair);
}
.about-contact dt{
  font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--navy); opacity:.4; padding-top:4px;
}
.about-contact dd{ margin:0; font-size:15px; font-weight:300; }
.about-contact a{
  color:var(--navy); text-decoration:none;
  border-bottom:1px solid rgba(0,0,0,.16);
  padding-bottom:2px;
  transition:border-color .35s var(--ease);
}
.about-contact a:hover{ border-color:var(--navy); }

html.about-open{ overflow:hidden; }

.hero{
  position:relative;
  min-height:100vh; min-height:100svh;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  overflow:hidden; isolation:isolate;
}
.crosshair{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  opacity:0; transition:opacity .5s var(--ease);
}
.crosshair.on{ opacity:1; }
.cross-v, .cross-h{ position:absolute; background:var(--hair); will-change:transform; }
.cross-v{ top:0; bottom:0; width:1px; left:0; }
.cross-h{ left:0; right:0; height:1px; top:0; }
.cross-v::after{
  content:""; position:absolute; left:-0.5px; width:2px; height:16%; top:-25%;
  background:linear-gradient(to bottom, transparent, var(--blue), transparent);
  opacity:0; animation:beamY 9s var(--ease) 1.5s infinite;
}
.cross-h::after{
  content:""; position:absolute; top:-0.5px; height:2px; width:16%; left:-25%;
  background:linear-gradient(to right, transparent, var(--blue), transparent);
  opacity:0; animation:beamX 11s var(--ease) 5s infinite;
}
@keyframes beamY{ 0%{ top:-25%; opacity:0; } 4%{ opacity:.8; } 30%{ top:110%; opacity:0; } 100%{ top:110%; opacity:0; } }
@keyframes beamX{ 0%{ left:-25%; opacity:0; } 4%{ opacity:.8; } 30%{ left:110%; opacity:0; } 100%{ left:110%; opacity:0; } }
.cross-dot{
  position:absolute; top:0; left:0; width:12px; height:12px;
  transform:translate(-50%,-50%); will-change:transform;
}
.cross-dot::before, .cross-dot::after{ content:""; position:absolute; background:var(--blue); }
.cross-dot::before{ left:50%; top:0; width:1px; height:100%; transform:translateX(-50%); }
.cross-dot::after{ top:50%; left:0; height:1px; width:100%; transform:translateY(-50%); }

html.cursor-on, html.cursor-on a{ cursor:none; }
.cur-dot,.cur-ring{
  position:fixed; top:0; left:0; z-index:9999; border-radius:50%;
  pointer-events:none; transform:translate(-50%,-50%); will-change:transform;
}
.cur-dot{ width:6px; height:6px; background:var(--blue); }
.cur-ring{
  width:34px; height:34px; border:1.5px solid var(--blue);
  transition:width .25s var(--ease), height .25s var(--ease), background-color .25s var(--ease), border-color .35s var(--ease), opacity .25s;
}
.cur-ring.hover{ width:58px; height:58px; background:rgba(0,0,0,.08); }
.pointer-in-hero .cur-ring{
  border-color:rgba(255,255,255,.42);
  background:rgba(255,255,255,.025);
}
.pointer-in-hero .cur-ring.hover{ background:rgba(255,255,255,.07); }
@media (hover:none),(pointer:coarse){ .cur-dot,.cur-ring{ display:none; } }

.orb{ position:absolute; border-radius:50%; pointer-events:none; z-index:0; will-change:transform; filter:blur(90px); }
.orb.a{
  width:46vw; max-width:720px; aspect-ratio:1; left:-14vw; bottom:-12vw;
  background:var(--blue); opacity:.18; animation:drift1 22s ease-in-out infinite;
}
.orb.b{
  width:34vw; max-width:520px; aspect-ratio:1; right:-8vw; top:-6vw;
  background:#b8b8b8; opacity:.14; animation:drift2 26s ease-in-out infinite; filter:blur(100px);
}
.orb.c{
  width:24vw; max-width:380px; aspect-ratio:1; right:14vw; bottom:4vw;
  background:var(--mist); opacity:.85; animation:drift3 30s ease-in-out infinite; filter:blur(70px);
}
@keyframes drift1{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(3vw,-3.5vw) scale(1.08);} }
@keyframes drift2{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(-2.5vw,3vw) scale(1.1);} }
@keyframes drift3{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(-3vw,-2vw) scale(1.06);} }

.grain{
  position:absolute; inset:0; z-index:1; pointer-events:none; opacity:.05; mix-blend-mode:multiply;
  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='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage{ position:relative; z-index:2; display:flex; flex-direction:column; align-items:center; }
.hero-name{
  color:#fff; font-family:"Inter",sans-serif; font-weight:700;
  font-size:clamp(9px,.72vw,12px); line-height:1; letter-spacing:.28em;
  text-align:center; text-shadow:0 2px 28px rgba(0,0,0,.28);
  opacity:0; transform:translateY(14px); animation:textUp 1s var(--ease) .2s forwards;
}

.hero__bg{ position:absolute; inset:0; z-index:2; opacity:1; pointer-events:none; }
.hbg{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transform:scale(1); transition:opacity 1s var(--ease), transform 20s linear;
}
.hbg.is-on{ z-index:1; opacity:1; transform:scale(1.12); }
.hero__mask{
  position:absolute; inset:0; z-index:2;
  background:rgba(0,0,0,.58);
  -webkit-backdrop-filter:blur(9px);
  backdrop-filter:blur(9px);
  transition:background-color .75s var(--ease), -webkit-backdrop-filter .75s var(--ease), backdrop-filter .75s var(--ease);
  will-change:background-color,backdrop-filter;
  transform:translateZ(0);
}
@media (hover:hover) and (pointer:fine){
  .hero:hover .hero__mask{
    background:rgba(0,0,0,.42);
    -webkit-backdrop-filter:blur(0);
    backdrop-filter:blur(0);
  }
}
/* 觸控裝置沒有 hover，模糊永遠散不掉，直接不做模糊
   （backdrop-filter 在行動裝置上也是最貴的效果之一） */
@media (hover:none),(pointer:coarse){
  .hero__mask{
    background:rgba(0,0,0,.42);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
    will-change:auto;
  }
}

.hero .stage{ z-index:3; }
.hero.has-carousel .orb,.hero.has-carousel .grain{ opacity:0 !important; }
.hero.has-carousel .crosshair{ z-index:3; }
.hero.has-carousel .cross-v,
.hero.has-carousel .cross-h{ background:rgba(255,255,255,.26); }
.hero.has-carousel .cross-v::after{ background:linear-gradient(to bottom,transparent,rgba(255,255,255,.7),transparent); }
.hero.has-carousel .cross-h::after{ background:linear-gradient(to right,transparent,rgba(255,255,255,.7),transparent); }
.hero.has-carousel .cross-dot::before,
.hero.has-carousel .cross-dot::after{ background:rgba(255,255,255,.92); }
@keyframes textUp{ to{ opacity:1; transform:translateY(0);} }

.scroll-cue{
  position:absolute; left:50%; bottom:34px; transform:translateX(-50%); z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px; opacity:0;
  animation:cueIn 1s var(--ease) 1.8s forwards;
}
.scroll-cue span{ font-family:"Inter",sans-serif; font-size:10px; letter-spacing:.3em; text-transform:uppercase; color:#c0c0c0; }
.scroll-cue .line{ width:1px; height:44px; background:linear-gradient(to bottom, var(--hair), transparent); position:relative; overflow:hidden; }
.scroll-cue .line::after{ content:""; position:absolute; top:-40%; left:0; width:100%; height:40%; background:var(--blue); animation:cueRun 2.2s var(--ease) infinite; }
.hero.has-carousel .scroll-cue span{ color:rgba(255,255,255,.75); }
.hero.has-carousel .scroll-cue .line{ background:linear-gradient(to bottom,rgba(255,255,255,.65),transparent); }
.hero.has-carousel .scroll-cue .line::after{ background:#fff; }
@keyframes cueIn{ to{ opacity:1; } }
@keyframes cueRun{ 0%{ top:-40%;} 60%,100%{ top:100%;} }

.reveal{ opacity:0; transform:translateY(20px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

.works-grid-sec,.detail-sec{ scroll-margin-top:calc(var(--header-h) + 24px); }

.detail-sec,
.site-footer{
  width:min(100%, var(--content-max, 1480px));
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}

.works-cta-wrap{
  position:relative;
  height:130vh;
}
.works-cta{
  position:sticky;
  top:0;
  z-index:4;
  width:min(100%, var(--content-max, 1480px));
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  height:100vh;
  padding:clamp(36px,8vh,92px) clamp(24px,6vw,120px) clamp(72px,14vh,140px);
}
/* text fades in from above */
.works-cta .works-more{
  opacity:0; transform:translateY(-24px);
  transition:opacity 1s var(--ease), transform 1s var(--ease);
}
/* button fades in from below, slight delay */
.works-cta .btn{
  opacity:0; transform:translateY(28px);
  transition:opacity 1s .15s var(--ease), transform 1s .15s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.works-cta.in .works-more{
  opacity:.62; transform:none;
}
.works-cta.in .btn{
  opacity:1; transform:none;
  animation:btn-breathe 2.8s 1.2s ease-in-out infinite;
}
@keyframes btn-breathe{
  0%,100%{ box-shadow:0 18px 36px rgba(0,0,0,.16); }
  50%{ box-shadow:0 24px 52px rgba(0,0,0,.28); }
}

.works-more{
  align-self:center; max-width:42ch;
  font-size:15px; font-weight:300; line-height:1.75;
  color:var(--navy); opacity:.62;
  padding-bottom:clamp(18px,3vh,28px);
}
.cta-progress{
  width:1px; height:40px;
  background:rgba(0,0,0,.1);
  border-radius:1px;
  margin-bottom:clamp(14px,2vh,20px);
  overflow:hidden;
}
.cta-progress-bar{
  display:block; width:100%; height:0;
  background:var(--blue);
  border-radius:1px;
  transition:none;
}
.btn{
  display:inline-flex; align-items:center; gap:12px;
  margin-top:clamp(10px,2.4vh,24px);
  padding:20px 38px; border-radius:2px;
  background:var(--blue); color:#fff; text-decoration:none;
  font-family:"Inter","Noto Sans TC",sans-serif;
  font-size:18px; font-weight:400; letter-spacing:.04em;
  box-shadow:0 18px 36px rgba(0,0,0,.16);
  transition:background-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), opacity .9s var(--ease);
}
.btn .arrow{ transition:transform .35s var(--ease); }
.btn:hover{ background:var(--navy); transform:translateY(-3px); box-shadow:0 14px 30px rgba(0,0,0,.28); }
.btn:hover .arrow{ transform:translate(4px,-4px); }
.detail-sec{
  position:relative; z-index:2;
  padding:0 clamp(24px,6vw,120px);
}
#clients{ padding-top:clamp(76px,12vh,132px); }
.accordion{ border-top:1px solid rgba(17,17,17,.16); }
.accordion:last-child{ border-bottom:1px solid rgba(17,17,17,.16); }
.detail-sec + .detail-sec .accordion{ border-top:0; }
.accordion summary{
  position:relative;
  padding:clamp(20px,3vh,28px) 44px clamp(20px,3vh,28px) 0;
  font-family:"Inter","Noto Sans TC",sans-serif;
  font-size:clamp(14px,1.1vw,16px); font-weight:400; letter-spacing:.12em;
  color:var(--navy); cursor:pointer; list-style:none;
}
.accordion summary:focus-visible{ outline:2px solid var(--blue); outline-offset:4px; }
.accordion summary::-webkit-details-marker{ display:none; }
.accordion summary::before,
.accordion summary::after{
  content:"";
  position:absolute; right:2px; top:50%;
  width:18px; height:1px;
  background:currentColor;
  transform-origin:center;
  transition:transform .48s var(--ease), opacity .32s ease;
}
.accordion summary::before{ transform:translateY(-50%) rotate(0deg); }
.accordion summary::after{ transform:translateY(-50%) rotate(90deg) scaleX(1); opacity:1; }
.accordion[open]:not(.is-closing) summary::before{ transform:translateY(-50%) rotate(180deg); }
.accordion[open]:not(.is-closing) summary::after{ transform:translateY(-50%) rotate(180deg) scaleX(0); opacity:0; }
.accordion-content{
  overflow:hidden;
  padding:0 0 clamp(36px,6vh,68px);
  opacity:0;
  transform:translateY(-8px);
  transition:opacity .4s ease, transform .52s var(--ease);
  will-change:opacity,transform;
}
.accordion[open]:not(.is-closing) .accordion-content{
  opacity:1;
  transform:translateY(0);
}
.cv-row{
  display:grid; grid-template-columns:78px 1fr;
  gap:clamp(14px,2vw,30px); align-items:baseline;
  padding:11px 0; border-top:1px solid rgba(17,17,17,.10);
}
.cv-year{
  font-size:12px; letter-spacing:.02em;
  color:rgba(17,17,17,.5); font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.cv-desc{ font-size:clamp(14px,1vw,15.5px); line-height:1.7; color:var(--navy); }
.tag{
  display:inline-block; margin-left:10px; padding:1px 6px;
  border:1px solid rgba(17,17,17,.35); border-radius:5px;
  font-size:11px; letter-spacing:.08em; line-height:1.7;
  color:rgba(17,17,17,.6); vertical-align:middle; white-space:nowrap;
}
.clients{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  column-gap:clamp(16px,2vw,32px);
}
.clients span{
  display:block; padding:13px 2px;
  border-top:1px solid rgba(17,17,17,.10);
  font-size:clamp(14px,1vw,15.5px); line-height:1.5; color:var(--navy);
}
.site-footer{
  margin-top:clamp(56px,11vh,128px);
  padding:22px clamp(24px,6vw,120px) 32px;
  border-top:1px solid rgba(17,17,17,.1);
  font-size:12px; letter-spacing:.08em; color:rgba(17,17,17,.5);
}

@media (prefers-reduced-motion: reduce){
  .accordion summary::before,
  .accordion summary::after,
  .accordion-content{ transition:none!important; }
}
@media (max-width:678px){
  :root{ --header-h:64px; }
  .progress{ display:none; }
  /* 手機寬度不夠時，改用 favicon.svg 同款的純圖示 logo，取代完整字標，避免跟右側icon群卡在一起 */
  .logo .brand-logo{ width:32px; height:32px; }
  .lang-switch{ gap:0; }
  .lang-switch span{ display:none; }
  .header-right{ gap:26px; }
  .lang-switch svg{ width:20px; height:20px; }
  .cv-row{ grid-template-columns:60px 1fr; gap:14px; }
  .clients{ grid-template-columns:repeat(2,1fr); column-gap:16px; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; }
  .hero-name,.scroll-cue{ opacity:1 !important; transform:none !important; filter:none !important; }
  .crosshair{ opacity:1 !important; }
}

/* ============================================================
   全部作品：緊密 grid + 作品檢視
   ============================================================ */

.intro{
  width:min(100%, var(--content-max, 1480px));
  margin:0 auto;
  padding:clamp(72px,15vh,150px) clamp(24px,6vw,120px) clamp(56px,11vh,120px);
  text-align:center;
}
.intro-text{
  margin:0 auto;
  max-width:44ch;
  font-size:15px;
  font-weight:300; line-height:2.05; letter-spacing:.01em;
  color:var(--navy); opacity:.72;
}

.works-grid-sec{
  position:relative; z-index:3;
  width:100%;
  margin:0;
}

.works-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
}

.works-tile{
  position:relative; display:block; overflow:hidden;
  aspect-ratio:4/3; border:0; padding:0; margin:0;
  background:var(--mist);
  cursor:pointer; appearance:none;
}
.works-tile img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .8s var(--ease);
}
.works-tile:hover img,
.works-tile:focus-visible img{ transform:scale(1.04); }

/* 資訊只出現在被滑到的那一格，其餘完全不動 */
.works-tile figcaption{
  position:absolute; left:0; right:0; bottom:0;
  padding:40px 16px 15px; text-align:left; color:#fff;
  background:linear-gradient(to top,rgba(12,12,14,.8),rgba(12,12,14,0));
  opacity:0; transform:translateY(6px);
  transition:opacity .3s var(--ease), transform .32s var(--ease);
}
.works-tile:hover figcaption,
.works-tile:focus-visible figcaption{ opacity:1; transform:none; }
.works-tile figcaption b{
  display:block; font-size:13.5px; font-weight:400; line-height:1.55;
}
.works-tile figcaption span{
  display:block; margin-top:2px;
  font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:rgba(255,255,255,.7);
}

/* ---------- 作品檢視 ---------- */

.lb{
  position:fixed; inset:0; z-index:9000;
  display:flex; align-items:center; justify-content:center;
  gap:clamp(8px,2vw,28px);
  padding:clamp(56px,9vh,96px) clamp(16px,4vw,64px);
  background:rgba(255,255,255,.97);
  backdrop-filter:saturate(180%) blur(18px);
  -webkit-backdrop-filter:saturate(180%) blur(18px);
  opacity:0; visibility:hidden;
  transition:opacity .35s var(--ease), visibility .35s;
}
.lb.is-open{ opacity:1; visibility:visible; }

.lb-fig{
  margin:0; display:flex; flex-direction:column; align-items:center;
  max-width:100%; max-height:100%; min-width:0;
}
.lb-img{
  max-width:100%; max-height:calc(100vh - 210px);
  width:auto; height:auto; object-fit:contain; display:block;
  opacity:0; transition:opacity .3s var(--ease);
}
.lb-img.is-ready{ opacity:1; }

.lb-cap{ padding-top:18px; text-align:center; max-width:60ch; }
.lb-cap b{ display:block; font-size:16px; font-weight:400; line-height:1.6; color:var(--navy); }
.lb-meta{
  display:block; margin-top:4px;
  font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--navy); opacity:.45;
}

.lb-nav,.lb-close{
  flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; padding:0;
  border:1px solid rgba(0,0,0,.12); border-radius:50%;
  background:transparent; color:var(--navy);
  cursor:pointer;
  transition:border-color .3s var(--ease), background-color .3s var(--ease), opacity .3s var(--ease);
}
.lb-nav:hover,.lb-close:hover{ border-color:rgba(0,0,0,.4); background:rgba(0,0,0,.04); }
.lb-nav[disabled]{ opacity:.22; cursor:default; }
.lb-nav[disabled]:hover{ border-color:rgba(0,0,0,.12); background:transparent; }
.lb-close{ position:absolute; top:clamp(16px,3vh,32px); right:clamp(16px,4vw,40px); }

html.lb-open{ overflow:hidden; }

@media (max-width:1180px){
  .works-grid{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:678px){
  .works-grid{ grid-template-columns:1fr; }
  .intro{ padding:clamp(52px,10vh,90px) 22px clamp(40px,8vh,70px); }
  .intro-text{ font-size:14.5px; line-height:1.95; }
  .header-about{ font-size:12.5px; }
  .about-inner{ padding-top:clamp(18px,4vh,36px); }
  .about-contact{ grid-template-columns:72px 1fr; }
  .lb{ padding:64px 12px 24px; gap:6px; }
  .lb-img{ max-height:calc(100vh - 250px); }
  .lb-nav,.lb-close{ width:38px; height:38px; }
}

/* 觸控裝置沒有 hover，作品資訊固定顯示（平板也適用，不只手機寬度） */
@media (hover:none){
  .works-tile figcaption{
    opacity:1; transform:none; padding:44px 18px 16px;
  }
  .works-tile figcaption b{ font-size:15px; line-height:1.55; }
  .works-tile figcaption span{ font-size:10.5px; }
}

@media (prefers-reduced-motion:reduce){
  .works-tile img,.lb,.lb-img,.about-panel,.site-header{ transition:none !important; }
}
