/* =========================================================
   张嘉琳 · 短视频剪辑作品集
   ========================================================= */
:root {
  --ink: #111009;
  --ink-2: #16140e;
  --ink-3: #1d1a12;
  --line: rgba(242, 234, 217, 0.14);
  --cream: #f2ead9;
  --cream-dim: rgba(242, 234, 217, 0.64);
  --cream-mute: rgba(242, 234, 217, 0.42);
  --gold: #d9a85f;
  --gold-soft: #b9853f;
  --sans: "Noto Sans SC", "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --pad: clamp(20px, 5vw, 84px);
  --max: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; color: var(--gold); }
::selection { background: var(--gold); color: #14120b; }

.grain {
  position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0.045;
  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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad);
  transition: background .4s ease, padding .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck {
  background: rgba(17, 16, 9, 0.84);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line);
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-cn { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .16em; }
.brand-en { font-family: "Inter", sans-serif; font-size: 9px; letter-spacing: .34em; color: var(--cream-mute); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 38px); font-size: 13px; letter-spacing: .12em; }
.nav a { color: var(--cream-dim); transition: color .25s ease; position: relative; padding: 4px 0; }
.nav a:hover { color: var(--cream); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.nav a:hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px !important; color: var(--cream) !important;
  transition: border-color .25s ease, background .25s ease;
}
.nav-cta:hover { border-color: var(--gold); background: rgba(217, 168, 95, .1); }
.nav-cta::after { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; flex-direction: column;
  justify-content: flex-start; padding: 118px var(--pad) 26px; overflow: hidden;
}
.hero-collage { position: absolute; top: 128px; right: var(--pad); z-index: 0; display: flex; align-items: flex-end; gap: 12px; -webkit-mask-image: linear-gradient(180deg,#000 74%,transparent 100%); mask-image: linear-gradient(180deg,#000 74%,transparent 100%); }
.hc { position: relative; overflow: hidden; border-radius: 2px; opacity: 0; width: 11.2vw; height: 19.9vw; animation: hcIn 1.5s cubic-bezier(.2,.7,.2,1) forwards; }
.hc img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.82) contrast(1.02); }
.hc-1 { animation-delay: .10s; transform: translateY(18px); }
.hc-2 { display: none; }
.hc-3 { animation-delay: .22s; transform: translateY(6px); }
.hc-4 { display: none; }
.hc-5 { display: none; }
@keyframes hcIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to { opacity: .95; transform: none; }
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(17,16,9,.99) 0%, rgba(17,16,9,.95) 34%, rgba(17,16,9,.7) 52%, rgba(17,16,9,.18) 72%, rgba(17,16,9,.55) 100%),
    linear-gradient(180deg, rgba(17,16,9,.85) 0%, rgba(17,16,9,.1) 26%, rgba(17,16,9,.2) 68%, var(--ink) 99%);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--max); width: 100%; margin: 0 auto; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: .3em;
  color: var(--cream-mute); text-transform: uppercase; margin: 0 0 26px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(217,168,95,.14); }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(27px, 3.3vw, 46px); line-height: 1.28; letter-spacing: .01em;
  margin: 0 0 14px; max-width: none; white-space: nowrap;
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; }
.hero-sub { font-size: clamp(13px, 1.1vw, 15px); color: var(--cream-dim); letter-spacing: .08em; margin: 0 0 40px; }
.hero-meta { font-size: clamp(11.5px, 1vw, 13px); color: var(--cream-dim); letter-spacing: .07em; margin: 0 0 20px; }
.hero-meta .sep { color: var(--gold-soft); margin: 0 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; font-size: 13px; letter-spacing: .14em;
  transition: transform .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}
.btn span { font-size: 14px; }
.btn-solid { background: var(--gold); color: #171408; font-weight: 500; }
.btn-solid:hover { background: #e7bb78; transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-foot {
  position: relative; z-index: 2; margin-top: auto; padding: 40px 0 34px;
  display: flex; align-items: center; gap: clamp(22px, 4vw, 60px);
  border-top: 1px solid var(--line); max-width: var(--max); width: 100%; margin-left: auto; margin-right: auto;
}
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b { font-family: "Inter", sans-serif; font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.hero-stat span { font-size: 11px; letter-spacing: .18em; color: var(--cream-mute); }
.scroll-hint {
  margin-left: auto; display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .28em; color: var(--cream-mute);
}
.sh-line { display: block; width: 54px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- section base ---------- */
.section { padding: clamp(60px, 8vw, 110px) var(--pad); max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; }
.sec-head { margin-bottom: clamp(28px, 4vw, 52px); }
.sec-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.36; margin: 12px 0 0; letter-spacing: .01em;
}
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 26px; }
.sec-note { max-width: 310px; font-size: 13px; line-height: 1.95; color: var(--cream-mute); margin: 0 0 6px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.22fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy p { margin: 0 0 20px; color: var(--cream-dim); font-size: 15px; line-height: 2.05; }
.about-copy .lead { color: var(--cream); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.95; }
.service-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.service-list li {
  font-size: 12px; letter-spacing: .06em; color: var(--cream-dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  transition: border-color .3s ease, color .3s ease;
}
.service-list li:hover { border-color: var(--gold-soft); color: var(--cream); }
.about-side { display: flex; flex-direction: column; gap: 26px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stat { padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(24px, 2.5vw, 33px); font-weight: 500; margin-bottom: 4px; }
.stat span { font-size: 11px; letter-spacing: .14em; color: var(--cream-mute); }
.tool-box { border: 1px solid var(--line); padding: 26px 24px; }
.tool-title { font-size: 10px; letter-spacing: .3em; color: var(--gold); margin: 0 0 6px; font-family: "Inter", sans-serif; }
.tool-line { font-size: 13px; line-height: 1.95; color: var(--cream-dim); margin: 0 0 18px; }
.tool-line:last-child { margin-bottom: 0; }

/* ---------- works ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; letter-spacing: .06em; color: var(--cream-dim);
  transition: all .28s ease;
}
.filter span { font-family: "Inter", sans-serif; font-size: 10px; color: var(--cream-mute); margin-left: 5px; }
.filter:hover { border-color: var(--gold-soft); color: var(--cream); }
.filter.is-active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.filter.is-active span { color: rgba(17,16,9,.55); }

.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.1vw, 15px); }
.card {
  position: relative; overflow: hidden; cursor: pointer; background: var(--ink-3);
  border-radius: 2px; aspect-ratio: 9 / 16;
  opacity: 0; transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.card.is-in { opacity: 1; transform: none; }
.card.is-hidden { display: none; }
.card.wide { grid-column: span 2; aspect-ratio: auto; height: 100%; min-height: 0; }
.card img.poster { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s ease; filter: saturate(.94) brightness(.9); }
.card:hover img.poster { transform: scale(1.045); filter: saturate(1.02) brightness(.98); }
.card-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,16,9,.12) 0%, rgba(17,16,9,.06) 34%, rgba(17,16,9,.55) 70%, rgba(17,16,9,.95) 100%),
    linear-gradient(0deg, rgba(17,16,9,.72) 0%, rgba(17,16,9,0) 34%);
}
.card-info { position: absolute; inset: auto 0 0 0; padding: 15px 15px 14px; z-index: 2; }
.card-title { text-shadow: 0 1px 18px rgba(0,0,0,.55); }
.card-brand { font-size: 9.5px; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; font-family: "Inter", sans-serif; margin-bottom: 5px; display: block; }
.card-title { font-family: var(--serif); font-size: clamp(13px, 1.05vw, 15.5px); font-weight: 500; margin: 0 0 4px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 8px; font-size: 10px; letter-spacing: .06em; color: var(--cream-mute); }
.card-play {
  position: absolute; top: 50%; left: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  border: 1px solid rgba(242,234,217,.5); border-radius: 50%;
  display: grid; place-items: center; z-index: 3;
  opacity: 0; transform: scale(.86); transition: opacity .35s ease, transform .35s ease, background .35s ease, border-color .35s ease;
  backdrop-filter: blur(4px);
}
.card-play::before {
  content: ""; margin-left: 3px;
  border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent var(--cream);
}
.card:hover .card-play { opacity: 1; transform: scale(1); background: rgba(217,168,95,.2); border-color: var(--gold); }
.card-dur {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-family: "Inter", sans-serif; font-size: 9.5px; letter-spacing: .06em;
  background: rgba(17,16,9,.55); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 9px; backdrop-filter: blur(6px);
}
.card-ratio {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-family: "Inter", sans-serif; font-size: 9.5px; letter-spacing: .08em;
  color: var(--cream-dim); background: rgba(17,16,9,.45); border-radius: 999px; padding: 3px 8px;
  backdrop-filter: blur(6px);
}

/* ---------- contact ---------- */
.contact { padding-bottom: 0; }
.contact-inner { border-top: 1px solid var(--line); padding-top: clamp(50px, 7vw, 90px); display: flex; flex-direction: column; align-items: flex-start; }
.contact-title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.2vw, 60px); line-height: 1.3; margin: 0 0 20px; }
.contact-sub { color: var(--cream-dim); font-size: 14px; max-width: 46ch; margin: 0 0 36px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; font-size: 12px; letter-spacing: .1em; color: var(--cream-mute); }
.contact-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--cream-mute); }
.site-foot {
  margin-top: clamp(60px, 9vw, 110px); padding: 26px 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 10.5px; letter-spacing: .12em; color: var(--cream-mute); width: 100%;
}

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; }
.lightbox.is-open { display: block; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(8, 7, 4, .92); backdrop-filter: blur(10px); animation: fadeIn .35s ease; }
.lb-panel {
  position: relative; z-index: 2; height: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr);
  gap: clamp(22px, 3.2vw, 48px); align-items: center; padding: 52px var(--pad);
  animation: panelIn .45s cubic-bezier(.2,.7,.2,1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lb-media { position: relative; background: #050504; border-radius: 2px; overflow: hidden; max-height: 80vh; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(242,234,217,.07); }
.lb-media video { max-height: 80vh; width: 100%; height: auto; background: #050504; }
.lb-loader { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,5,4,.4); transition: opacity .3s ease; }
.lb-loader span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(242,234,217,.18); border-top-color: var(--gold); animation: spin .9s linear infinite; }
.lb-loader.is-done { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-close {
  position: absolute; top: 16px; right: var(--pad); z-index: 4;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--cream); font-size: 15px; transition: all .3s ease;
}
.lb-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }
.lb-nav {
  position: absolute; top: 50%; margin-top: -21px; z-index: 4;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--cream-dim); font-size: 15px; transition: all .3s ease;
  display: grid; place-items: center; background: rgba(17,16,9,.4);
}
.lb-nav:hover { border-color: var(--gold); color: var(--gold); background: rgba(217,168,95,.12); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-info h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(21px, 2.2vw, 30px); margin: 6px 0 12px; line-height: 1.4; }
.lb-info p { color: var(--cream-dim); font-size: 13.5px; line-height: 1.95; margin: 0 0 26px; }
.lb-top { display: flex; align-items: center; justify-content: space-between; }
.lb-brand { font-family: "Inter", sans-serif; font-size: 10px; letter-spacing: .26em; color: var(--gold); text-transform: uppercase; }
.lb-dur { font-family: "Inter", sans-serif; font-size: 11px; color: var(--cream-mute); letter-spacing: .1em; }
.lb-meta { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.lb-meta > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lb-meta dt { font-size: 10.5px; letter-spacing: .22em; color: var(--cream-mute); margin: 0; font-family: "Inter", sans-serif; }
.lb-meta dd { margin: 0; font-size: 13px; color: var(--cream-dim); text-align: right; }
.lb-hint { font-size: 10.5px !important; letter-spacing: .12em; color: var(--cream-mute) !important; margin: 22px 0 0 !important; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .card.wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .lb-panel { grid-template-columns: 1fr; gap: 22px; padding-top: 64px; align-content: start; overflow-y: auto; }
  .lb-media video { max-height: 50vh; }
  .lb-info { padding-bottom: 30px; }
  .hero-title { max-width: 12em; }
}
@media (max-width: 720px) {
  .brand-en { display: none; }
  .nav { gap: 14px; font-size: 12px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { padding: 84px 16px 20px; min-height: 0; justify-content: flex-start; }
  .hero-inner { margin-top: 0; }
  .hero-title { font-size: clamp(23px, 6.6vw, 29px); line-height: 1.4; letter-spacing: .01em; margin-bottom: 14px; white-space: nowrap; }
  .hero-meta { font-size: 11px; line-height: 1.7; margin-bottom: 16px; letter-spacing: .02em; }
  .hero-meta .sep { margin: 0 7px; }
  .hero-actions { gap: 8px; margin-bottom: 6px; }
  .btn { padding: 12px 22px; font-size: 12px; }
  .eyebrow { margin-bottom: 12px; font-size: 9px; letter-spacing: .2em; }
  .hero-collage { display: none; }
  .hc-1 { display: none; }
  .hc-2 { width: 30vw; height: 40vw; top: 48%; left: auto; right: 6%; }
  .hc-3, .hc-4, .hc-5 { display: none; }
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(17,16,9,.98) 0%, rgba(17,16,9,.94) 38%, rgba(17,16,9,.78) 62%, rgba(17,16,9,.95) 90%, var(--ink) 100%);
  }
  .hero-foot { margin-top: auto; flex-wrap: nowrap; gap: 0; padding-top: 22px; padding-bottom: 84px; justify-content: space-between; border-top-color: rgba(242,234,217,.1); }
  .hero-stat b { font-size: 16px; }
  .hero-stat span { font-size: 9.5px; letter-spacing: .12em; }
  .scroll-hint { display: none; }
  .section { padding-left: 14px; padding-right: 14px; }
  .works { padding-top: 4px; }
  .works .sec-head { display: none; }
  .filters { margin-top: 0; }
  .filters {
    position: sticky; top: 66px; z-index: 30;
    margin: 0 -14px 10px; padding: 8px 14px;
    background: rgba(17,16,9,.94); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; padding: 8px 15px; font-size: 12px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .card { grid-column: span 1; aspect-ratio: 9 / 16; }
  .card.wide { grid-column: span 2; aspect-ratio: 16 / 9; height: auto; }
  .card-info { padding: 10px 10px 11px; }
  .card-title { font-size: 12.5px; line-height: 1.35; }
  .card-brand { font-size: 8px; letter-spacing: .14em; margin-bottom: 3px; }
  .card-meta { display: none; }
  .card-dur { top: 7px; right: 7px; font-size: 8.5px; padding: 2px 6px; }
  .card-ratio { display: none; }
  .stat { padding: 20px 16px; }
  .site-foot { flex-direction: column; }
  /* 竖屏全屏播放器 */
  .lb-panel {
    display: block; max-width: none; height: 100dvh; padding: 0; overflow: hidden;
  }
  .lb-media {
    height: 100dvh; max-height: none; border: 0; border-radius: 0; background: #000;
    display: flex; align-items: center; justify-content: center;
  }
  .lb-media video { width: 100%; height: 100dvh; max-height: none; object-fit: contain; }
  .lb-info {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    padding: 56px 18px calc(24px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 34%, rgba(8,7,4,.94) 100%);
    pointer-events: none;
  }
  .lb-info h3 { font-size: 19px; margin: 4px 0 6px; }
  .lb-info p { font-size: 12.5px; line-height: 1.8; margin: 0 0 10px; }
  .lb-meta, .lb-hint { display: none; }
  .lb-nav { display: flex; top: auto; bottom: calc(158px + env(safe-area-inset-bottom)); margin-top: 0; width: 38px; height: 38px; z-index: 5; background: rgba(0,0,0,.35); }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lb-close { top: 14px; right: 14px; width: 38px; height: 38px; background: rgba(0,0,0,.45); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal, .card { opacity: 1 !important; transform: none !important; }
}

.works { padding-top: clamp(18px, 2.4vw, 30px); }
.works .sec-head { margin-bottom: 20px; }
.works .sec-title { font-size: clamp(21px, 2.1vw, 30px); }
.works .sec-note { display: none; }
.filters { margin-bottom: 20px; }
