:root {
  color-scheme: dark;
  --surface: #0d0e10;
  --ink: #f3f2ee;
  --muted: #afb1b8;
  --accent: #c5d5ea;
  --line: #33353a;
  --grain: url("/assets/site/grain.png") 0 0 / 144px 144px repeat;
  --reading: 1220px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 87px; }
body { margin: 0; line-height: 1.62; background: var(--grain); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img, video { display: block; width: 100%; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(var(--reading), calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 8px; left: 12px; z-index: 8; padding: 8px 13px; background: #212329; transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 4; background: var(--grain), var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 17px; min-height: 67px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: .95rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.wordmark-latin { color: var(--muted); font-size: .74rem; letter-spacing: .08em; }
.brand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.primary-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 0 24px; }
.primary-nav a { text-decoration: none; padding: 8px 0; font-size: .9rem; }
.primary-nav a:hover, .primary-nav [aria-current="page"] { color: var(--accent); }
.primary-nav .nav-contact { padding: 7px 14px; border-radius: 5px; background: var(--accent); color: #15202e; font-weight: 800; }
.primary-nav .nav-contact:hover { background: #e4ecf6; color: #15202e; }
.section-title { font-size: clamp(1.85rem, 4vw, 3.65rem); letter-spacing: -.055em; line-height: 1.15; }
.section-text { margin-top: 8px; color: var(--muted); max-width: 47em; }
.text-link { color: var(--accent); font-weight: 750; font-size: .93rem; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: .93rem; font-weight: 720; padding: 8px 17px; border: 1px solid #777e8a; border-radius: 4px; text-decoration: none; cursor: pointer; }
.button-solid { color: #15202e; background: var(--accent); border-color: var(--accent); }
.button-solid:hover { background: #e4ecf6; }
.button-outline:hover { background: #292d34; }
.site-header.is-home {
  --header-rule: rgb(197 213 234 / .23);
  border-color: rgb(197 213 234 / .14);
}
.is-home .header-inner { min-height: 63px; }
.is-home .wordmark { gap: 12px; }
.is-home .brand-dot { display: none; }
.is-home .wordmark-latin { color: var(--muted); font: 500 .75rem/1.4 ui-monospace, monospace; letter-spacing: .08em; }
.is-home .primary-nav a { color: var(--muted); transition: color .2s ease, background-color .2s ease; }
.is-home .primary-nav a:hover { color: var(--accent); }
.is-home .primary-nav .nav-contact {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--header-rule);
  border-radius: 2px;
  padding: 5px 13px;
  font-weight: 600;
}
.is-home .primary-nav .nav-contact:hover { background: var(--ink); color: var(--surface); }

.portfolio-cover {
  background:
    var(--grain),
    linear-gradient(0deg, var(--surface), transparent 160px),
    radial-gradient(ellipse 80% 75% at 48% 18%, #2b2c30, transparent),
    var(--surface);
}
.portfolio-cover-inner {
  min-height: clamp(420px, calc(100svh - 63px), 690px);
  display: grid;
  align-content: center;
  gap: 10px;
  padding-block: clamp(23px, 4vh, 42px) 20px;
}
.portfolio-cover-sheet {
  --cover-rule: rgb(197 213 234 / .22);
  container-type: inline-size;
  min-width: 0;
  border: 1px solid var(--cover-rule);
  background: rgb(14 16 20 / .74);
}
.portfolio-cover-art {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: clamp(188px, 32.8cqw, 398px);
  padding: clamp(19px, 3.2cqw, 39px) clamp(13px, 3.3cqw, 40px) clamp(16px, 2.6cqw, 30px);
  background:
    linear-gradient(90deg, transparent 34%, var(--cover-rule) 34% calc(34% + 1px), transparent calc(34% + 1px)),
    linear-gradient(180deg, transparent 54%, var(--cover-rule) 54% calc(54% + 1px), transparent calc(54% + 1px)),
    radial-gradient(ellipse at 78% 81%, rgb(93 117 148 / .2), transparent 68%);
}
.portfolio-cover-art::before, .portfolio-cover-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 110%;
  height: 58%;
  border: 1px solid rgb(197 213 234 / .22);
  border-radius: 50%;
  pointer-events: none;
}
.portfolio-cover-art::before { inset: 67% auto auto -8%; transform: rotate(-12deg); }
.portfolio-cover-art::after { inset: 72% -17% auto auto; transform: rotate(11deg); }
.portfolio-cover-title { display: grid; gap: clamp(10px, 1.05cqw, 17px); }
.portfolio-cover-display {
  display: block;
  font: 760 18cqw/.79 Arial, Helvetica, sans-serif;
  letter-spacing: -.095em;
  white-space: nowrap;
}
.portfolio-cover-chinese {
  font: 600 clamp(2rem, 7.6cqw, 5.8rem)/1.08 "Songti SC", "Noto Serif CJK SC", serif;
  letter-spacing: -.035em;
}
.portfolio-cover-script {
  position: absolute;
  inset: clamp(75px, 15.55cqw, 187px) clamp(14px, 5.5cqw, 67px) auto auto;
  color: var(--accent);
  font: italic 400 clamp(3.6rem, 15.3cqw, 11.65rem)/.95 "Snell Roundhand", "Baskerville", Georgia, serif;
  letter-spacing: -.05em;
  transform: rotate(-8deg);
  pointer-events: none;
}
.portfolio-cover-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 22px;
  padding: clamp(14px, 2cqw, 24px) clamp(13px, 3.3cqw, 40px);
  border-top: 1px solid var(--cover-rule);
  background: rgb(13 15 19 / .32);
}
.portfolio-cover-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  color: var(--ink);
  font-size: clamp(1.07rem, 2cqw, 1.45rem);
  font-weight: 700;
}
.portfolio-cover-credit span { color: var(--muted); font: 500 .65em/1.35 ui-monospace, monospace; letter-spacing: .12em; }
.portfolio-cover-role { margin-top: 3px; font-size: clamp(.91rem, 1.4cqw, 1.08rem); font-weight: 700; }
.portfolio-cover-copy { margin-top: 3px; color: var(--muted); font-size: .91rem; text-wrap: pretty; }
.portfolio-cover-actions {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-items: start;
  align-items: center;
  gap: 5px 15px;
}
.portfolio-cover-actions .button { border-radius: 2px; }
.portfolio-cover-actions .button-outline {
  border-color: transparent;
  padding-inline: 0;
  color: var(--accent);
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--cover-rule);
  text-underline-offset: .35em;
}
.portfolio-cover-actions .button-outline:hover { color: var(--ink); text-decoration-color: currentColor; }
.portfolio-cover-actions .toolkit-trigger { grid-column: 1 / -1; gap: 7px; min-height: 32px; text-align: left; }
.portfolio-cover-actions .toolkit-trigger svg { flex: none; }
.portfolio-cover-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--cover-rule); }
.portfolio-cover-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 46px;
  padding-inline: clamp(10px, 2.2cqw, 27px);
  color: var(--accent);
  font-size: clamp(.86rem, 1.35cqw, 1rem);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.portfolio-cover-index a + a { border-inline-start: 1px solid var(--cover-rule); }
.portfolio-cover-index a:is(:hover, :focus-visible) { color: var(--ink); background: #242d39; }
.portfolio-cover-index a:focus-visible { outline-offset: -4px; }
.cover-continue {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 2px;
  color: var(--accent);
  font: 400 1.8rem/1 system-ui, sans-serif;
  text-decoration: none;
  transition: color .2s ease;
}
.cover-continue:hover { color: var(--ink); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cover-continue span { transition: transform .2s ease; }
  .cover-continue:hover span { transform: translateY(4px); }
}

.toolkit-dialog {
  position: fixed;
  width: min(790px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #414957;
  border-radius: 16px;
  background: var(--grain), radial-gradient(ellipse at 50% 18%, #262d39, #16191f 60%, #111317);
  box-shadow: 0 28px 96px rgb(0 0 0 / .56);
  color: var(--ink);
}
.toolkit-dialog::backdrop { background: rgb(7 9 12 / .78); backdrop-filter: blur(5px); }
.toolkit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px clamp(16px, 3vw, 31px);
  border-bottom: 1px solid rgb(197 213 234 / .14);
}
.toolkit-header h2 { font-size: clamp(1.02rem, 2.4vw, 1.58rem); line-height: 1.3; letter-spacing: -.03em; }
.toolkit-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #454d59;
  border-radius: 50%;
  background: #1e222a;
  color: var(--accent);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.toolkit-close:hover { color: var(--ink); border-color: var(--accent); background: #2b3442; }
.toolkit-body {
  display: grid;
  grid-template-areas: "description" "dock";
  gap: 19px;
  padding: clamp(21px, 4vw, 39px) clamp(16px, 4vw, 39px) clamp(23px, 4vw, 42px);
}
.toolkit-detail {
  grid-area: description;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-height: 186px;
  text-align: center;
}
.toolkit-mark, .toolkit-icon {
  display: grid;
  place-items: center;
  color: var(--tool-tone);
  background: #1d222b;
  background: color-mix(in srgb, var(--tool-tone) 12%, #161b22);
  font: 750 1.14rem/1 ui-monospace, "PingFang SC", monospace;
}
.toolkit-mark {
  width: 62px;
  height: 62px;
  margin-bottom: 9px;
  border: 1px solid rgb(197 213 234 / .31);
  border-radius: 17px;
  box-shadow: 0 12px 31px rgb(0 0 0 / .27);
  font-size: 1.45rem;
}
.toolkit-group { color: var(--accent); font-size: .875rem; }
.toolkit-detail h3 { font-size: clamp(1.54rem, 4vw, 2.17rem); font-weight: 760; line-height: 1.15; letter-spacing: -.035em; }
.toolkit-use { max-width: 28em; margin-top: 2px; color: #c1c6ce; font-size: .98rem; text-wrap: pretty; }
.toolkit-tabs {
  --toolkit-columns: 7;
  --toolkit-gap: 8px;
  grid-area: dock;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--toolkit-gap);
  width: min(100%, 700px);
  margin-inline: auto;
  padding: 11px;
  border: 1px solid #363e4a;
  border-radius: 15px;
  background: rgb(11 14 19 / .37);
}
.toolkit-tab {
  display: grid;
  place-items: center;
  flex: 0 0 calc((100% - (var(--toolkit-columns) - 1) * var(--toolkit-gap)) / var(--toolkit-columns));
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1;
  border: 1px solid #3c4553;
  border-radius: 10px;
  padding: 3px;
  background: #181c23;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.toolkit-icon { width: 100%; height: 100%; border-radius: 6px; }
.toolkit-tab[aria-selected="true"] {
  transform: translateY(-5px);
  border-color: var(--tool-tone);
  background: #303946;
  box-shadow: 0 6px 13px rgb(0 0 0 / .32);
}
@media (hover: hover) and (pointer: fine) {
  .toolkit-tab:hover { transform: translateY(-4px); border-color: var(--tool-tone); }
}
@media (min-width: 860px) {
  .toolkit-tabs { --toolkit-columns: 13; }
}
@media (max-width: 570px) {
  .toolkit-dialog { max-height: calc(100dvh - 24px); }
  .toolkit-body { gap: 13px; }
  .toolkit-detail { min-height: 168px; }
  .toolkit-mark { width: 53px; height: 53px; border-radius: 13px; }
  .toolkit-tabs { --toolkit-columns: 5; --toolkit-gap: 7px; max-width: 320px; }
  .toolkit-tab { aspect-ratio: auto; min-height: 48px; }
}
@media (max-width: 349px) {
  .toolkit-tabs { --toolkit-columns: 4; }
}
@media (prefers-reduced-motion: reduce) {
  .toolkit-tab:is(:hover, [aria-selected="true"]) { transform: none; }
}

.page-section { padding-block: 32px 56px; border-top: 1px solid var(--line); }
.selected-section { border-top-color: rgb(197 213 234 / .12); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 17px; }
.work-item { min-width: 0; }
.work-card { display: block; height: 100%; border: 1px solid var(--line); background: #17191c; border-radius: 6px; overflow: hidden; text-decoration: none; }
.card-image { --art-bg: #e9e1d4; background: var(--art-bg); aspect-ratio: 584 / 430; overflow: hidden; }
.card-image img { height: 100%; object-fit: cover; transition: transform .22s ease; }
.card-image.is-portrait img { object-fit: contain; }
[data-group="brand"] .card-image { --art-bg: #e9e3d7; }
[data-group="space"] .card-image { --art-bg: #272524; }
[data-group="poster"] .card-image { --art-bg: #302a29; }
[data-group="commerce"] .card-image { --art-bg: #eee6db; }
[data-group="character"] .card-image { --art-bg: #f0dfd2; }
[data-group="illustration"] .card-image { --art-bg: #e8dfec; }
[data-group="interactive"] .card-image { --art-bg: #e1e8d7; }
[data-group="motion"] .card-image { --art-bg: #24282d; }
.work-card:hover img { transform: scale(1.035); }
.card-text { padding: 10px 12px 14px; }
.card-label, .project-category { color: var(--accent); font-weight: 730; font-size: .875rem; }
.card-title { line-height: 1.3; margin-top: 3px; font-size: clamp(1.07rem, 1.87vw, 1.35rem); letter-spacing: -.025em; }
.work-card:hover .card-title { color: var(--accent); }
.card-summary { margin-top: 5px; color: var(--muted); font-size: .94rem; line-height: 1.52; }
.selected-section { padding-top: clamp(25px, 3.5vw, 48px); }
.featured-actions, .featured-views, .featured-steppers { display: flex; align-items: center; }
.featured-actions { gap: 13px 22px; flex-wrap: wrap; }
.featured-views {
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #14161a;
}
.featured-views button, .featured-steppers button {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
}
.featured-views button {
  border-radius: 3px;
  min-height: 34px;
  padding: 3px 11px;
  font-size: .875rem;
  white-space: nowrap;
}
.featured-views button:hover { color: var(--ink); }
.featured-views [aria-pressed="true"] { background: #252c36; color: var(--accent); }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(16px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.featured-grid > .work-item { border-bottom: 1px solid var(--line); }
.featured-grid .work-card {
  display: grid;
  grid-template-columns: clamp(85px, 11vw, 150px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  min-height: 100%;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.featured-grid .card-text { grid-area: 1 / 2; padding: 0; }
.featured-grid .card-image { grid-area: 1 / 1; border-radius: 4px; }
.featured-grid .card-label { color: var(--muted); font-size: .82rem; }

.featured-viewport.is-gallery {
  --gallery-card-width: clamp(232px, 34vw, 400px);
  position: relative;
  margin-inline: min(-1.6vw, -10px);
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  cursor: grab;
  background: radial-gradient(ellipse 72% 48% at 50% 48%, rgb(56 73 99 / .27), transparent);
}
.featured-viewport.is-gallery .featured-grid {
  display: block;
  position: relative;
  height: clamp(252px, 35vw, 390px);
  border: 0;
}
.featured-viewport.is-gallery .work-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--gallery-card-width);
  border: 0;
  transform: translate(-50%, -50%) var(--gallery-transform, translateZ(0));
  opacity: var(--gallery-opacity, 0);
  visibility: var(--gallery-visibility, hidden);
}
.featured-viewport.is-gallery .work-card {
  display: block;
  padding: 0;
  border: 1px solid #424851;
  border-radius: 9px;
  background: #14181e;
  cursor: grab;
  box-shadow: 0 12px 22px rgb(0 0 0 / .32);
  transition: border-color .22s ease;
}
.featured-viewport.is-gallery .is-front .work-card { border-color: #9eafc6; }
.featured-viewport.is-gallery .work-card:is(:hover, :focus-visible) { border-color: var(--accent); }
.featured-viewport.is-gallery .card-image { border-radius: 0; }
.featured-viewport.is-gallery .card-image img {
  object-fit: contain;
  filter: brightness(var(--gallery-brightness, 1));
}
.featured-viewport.is-gallery .work-card:hover img { transform: none; }
.featured-viewport.is-gallery .card-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.featured-viewport.is-dragging, .featured-viewport.is-dragging .work-card { cursor: grabbing; }

.featured-edge-controls {
  position: absolute;
  z-index: 1;
  inset: 50% clamp(8px, 1vw, 15px) auto;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.featured-edge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(197 213 234 / .46);
  border-radius: 50%;
  background: rgb(13 14 16 / .87);
  color: var(--accent);
  box-shadow: 0 3px 14px rgb(0 0 0 / .3);
  cursor: pointer;
  pointer-events: auto;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.featured-edge svg { width: 23px; height: 23px; display: block; }
.featured-edge:is(:hover, :focus-visible) {
  border-color: var(--accent);
  background: #293342;
  color: var(--ink);
}
.featured-edge:active { background: #364457; }

.featured-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px 24px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgb(197 213 234 / .17);
}
.featured-label { color: var(--muted); font-size: .84rem; }
.featured-title {
  display: inline-block;
  margin-top: 3px;
  font-size: clamp(1.04rem, 1.7vw, 1.4rem);
  line-height: 1.35;
  font-weight: 745;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.featured-title:hover { color: var(--accent); text-decoration-color: currentColor; }
.featured-hint { color: var(--muted); font-size: .84rem; }
.featured-steppers { justify-self: end; gap: 6px; }
.featured-steppers button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--accent);
  font-size: 1.1rem;
}
.featured-steppers button:hover { background: #252c36; color: var(--ink); }
.featured-count {
  min-width: 5.5ch;
  color: var(--muted);
  text-align: center;
  font: .83rem/1.6 ui-monospace, monospace;
}

.category-strip {
  border-block: 1px solid var(--line);
  background: var(--grain), radial-gradient(ellipse 85% 50% at 27% 47%, #1b2028, transparent), var(--surface);
  padding-block: clamp(29px, 5vw, 67px);
}
.category-heading { margin-bottom: clamp(21px, 3.1vw, 39px); }
.category-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-item { min-width: 0; }
.category-item:nth-child(4n + 2) { --category-delay: 65ms; }
.category-item:nth-child(4n + 3) { --category-delay: 130ms; }
.category-item:nth-child(4n + 4) { --category-delay: 195ms; }
.will-reveal {
  transition: opacity 420ms ease-out, transform 520ms cubic-bezier(.2, .74, .28, 1);
  transition-delay: var(--category-delay, 0ms);
}
.will-reveal:not(.is-visible, :focus-within) {
  opacity: 0;
  transform: translateY(24px);
}
.category-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: clamp(9px, 1.25vw, 18px);
  padding: clamp(11px, 1.5vw, 19px);
  border: 1px solid #3b4049;
  border-radius: 13px;
  background: linear-gradient(155deg, #1b1e24, #15171b);
  box-shadow: 0 9px 23px rgb(3 8 18 / .2);
  text-decoration: none;
  transition: border-color 200ms ease, box-shadow 230ms ease, transform 250ms ease;
}
.category-copy { display: grid; gap: 1px; }
.category-copy strong { font-size: clamp(1.03rem, 1.8vw, 1.42rem); line-height: 1.28; }
.category-copy span { color: var(--muted); font-size: .85rem; }
.category-image { aspect-ratio: 584 / 430; overflow: hidden; border-radius: 5px; background: #202329; }
.category-image img { height: 100%; object-fit: contain; transition: transform 350ms cubic-bezier(.2, .68, .3, 1); }
.category-action { margin-top: auto; font-size: .88rem; font-weight: 680; color: var(--accent); align-self: start; }
.category-link:is(:hover, :focus-visible) {
  border-color: #9eafc6;
  box-shadow: 0 13px 30px rgb(1 6 19 / .38);
  transform: translateY(-5px);
}
.category-link:is(:hover, :focus-visible) img { transform: scale(1.035); }
.category-link:is(:hover, :focus-visible) .category-action { text-decoration: underline; }
.category-link:active { transform: translateY(-1px); }

.evidence-band {
  background:
    var(--grain),
    radial-gradient(ellipse 72% 42% at 77% 26%, #232b36, transparent 89%),
    radial-gradient(ellipse 70% 35% at 47% 71%, #171d26, transparent),
    var(--surface);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(38px, 7vw, 95px) clamp(34px, 6vw, 76px);
}
.evidence-hero { padding-bottom: clamp(22px, 4vw, 47px); }
.evidence-intro { max-width: 33rem; }
.evidence-title {
  font-size: clamp(2.8rem, 6vw, 5.45rem);
  line-height: 1.01;
  letter-spacing: -.07em;
}
.evidence-intro .section-text { max-width: 28em; margin-top: 17px; }
.evidence-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 19px; margin-top: 22px; }
.evidence-actions .button { border-radius: 3px; }
.evidence-stack-slot { display: none; }
.evidence-grid {
  --evidence-gap: clamp(13px, 3vw, 36px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--evidence-gap);
}
.evidence-cell { min-width: 0; }
.evidence-case { position: relative; }
.evidence-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  border: 1px solid #46515f;
  border-radius: 6px;
  background: #1a2027;
  cursor: zoom-in;
  box-shadow: 0 20px 42px rgb(0 0 0 / .32);
  transition: border-color .2s ease;
}
.evidence-photo img { height: 100%; object-fit: cover; transition: transform .3s ease; }
.evidence-case[data-case="hotpot-brand"] .evidence-photo img { object-position: 52% center; }
.evidence-case[data-case="tea-house"] .evidence-photo img { object-fit: contain; background: #e9e3d3; }
.evidence-photo:is(:hover, :focus-visible) { border-color: var(--accent); }
.evidence-photo:hover img { transform: scale(1.025); }
.evidence-photo-count {
  position: absolute;
  inset: auto 10px 10px auto;
  padding: 4px 8px;
  border: 1px solid rgb(197 213 234 / .3);
  border-radius: 3px;
  background: rgb(13 14 16 / .88);
  color: var(--ink);
  font-size: .78rem;
  line-height: 1.35;
}
.evidence-caption { padding-top: 11px; }
.evidence-caption p { color: var(--muted); font-size: .875rem; }
.evidence-caption h3 { margin-top: 3px; font-size: clamp(1rem, 1.7vw, 1.34rem); line-height: 1.3; }
.evidence-caption a { text-decoration: none; }
.evidence-caption a:is(:hover, :focus-visible) { color: var(--accent); text-decoration: underline; }

.evidence-motion .evidence-hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  padding-bottom: 18px;
}
.evidence-motion .evidence-stack-slot { display: block; height: clamp(335px, 40vw, 505px); }
.evidence-motion .evidence-case {
  z-index: var(--evidence-depth, auto);
  transform: var(--evidence-transform, none);
  transform-origin: center top;
}
.evidence-motion .evidence-case:focus-within { z-index: 4; }
.evidence-motion .evidence-caption, .evidence-motion .evidence-photo-count { opacity: var(--evidence-detail, 1); }
.evidence-motion .evidence-case:focus-within .evidence-caption,
.evidence-motion .evidence-photo:is(:hover, :focus-visible) .evidence-photo-count { opacity: 1; }
.profile-section {
  padding-block: clamp(42px, 6vw, 78px) clamp(36px, 6vw, 78px);
  background: var(--grain), radial-gradient(ellipse 56% 56% at 27% 58%, #252d38, transparent), var(--surface);
  border-top: 1px solid var(--line);
}
.profile-grid { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); gap: clamp(28px, 6vw, 84px); }
.profile-intro { min-width: 0; }
.profile-portrait, .profile-practices { max-width: 485px; }
.profile-title {
  font: 530 clamp(3.5rem, 7.3vw, 6.4rem)/1.05 "Songti SC", "Noto Serif CJK SC", "Microsoft YaHei", serif;
  letter-spacing: -.045em;
}
.profile-identity { color: var(--accent); font: 500 .91rem/1.6 ui-monospace, monospace; letter-spacing: .2em; margin-top: 12px; }
.profile-portrait {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 4 / 4.65;
  margin-top: clamp(18px, 3vw, 38px);
}
.profile-portrait img {
  height: 100%;
  object-fit: cover;
  object-position: 51% 31%;
  filter: saturate(.66) brightness(.9);
  mask-image:
    radial-gradient(ellipse 74% 72% at 52% 48%, #000 49%, rgb(0 0 0 / .72) 67%, transparent 94%),
    linear-gradient(transparent, #000 17%, #000 69%, transparent);
  mask-composite: intersect;
}
.profile-portrait::after {
  content: "";
  position: absolute;
  inset: 12% 0 0;
  background: linear-gradient(0deg, #11161d 0%, transparent 39%);
  opacity: .53;
  mask-image: radial-gradient(ellipse 75% 68% at 54% 59%, #000 40%, transparent 86%);
  pointer-events: none;
}
.profile-credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.profile-credentials li, .profile-practice {
  min-width: 0;
  border: 1px solid rgb(197 213 234 / .17);
  border-radius: 9px;
  background: linear-gradient(152deg, #20252d, #14171c);
}
.profile-credentials li {
  display: flex;
  flex-direction: column;
  padding: clamp(11px, 1.65vw, 20px);
  line-height: 1.5;
}
.profile-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-bottom: 12px;
  border: 1px solid rgb(197 213 234 / .15);
  border-radius: 8px;
  background: #2b3543;
  color: var(--accent);
}
.profile-credentials strong { display: block; margin-bottom: 4px; font-size: clamp(.91rem, 1.4vw, 1.15rem); text-wrap: balance; }
.profile-credentials li > span:not(.profile-icon), .profile-credentials small { font-size: .84rem; color: var(--muted); }
.profile-credentials small { margin-top: 3px; }
.profile-content { min-width: 0; }
.profile-bio p {
  color: var(--ink);
  font-size: clamp(1.02rem, 1.65vw, 1.33rem);
  line-height: 1.82;
  text-wrap: pretty;
  transition: color .5s ease;
}
.profile-bio strong { font-weight: 750; color: var(--accent); }
.profile-bio.is-reading p:not(.is-read) { color: var(--muted); }
.profile-facts { margin-top: clamp(21px, 3vw, 36px); }
.profile-subtitle {
  margin-bottom: 11px;
  color: var(--ink);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}
.profile-experience { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.profile-experience li { padding-block: 11px; border-bottom: 1px solid var(--line); }
.profile-entry-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 13px; }
.profile-entry-head a, .profile-entry-head strong { color: var(--ink); font-weight: 740; }
.profile-entry-head a { text-decoration-color: rgb(197 213 234 / .5); }
.profile-entry-head a:hover { color: var(--accent); text-decoration-color: currentColor; }
.profile-entry-head span { color: var(--accent); font-size: .82rem; }
.profile-experience li p { margin-top: 3px; color: var(--muted); font-size: .9rem; text-wrap: pretty; }
.profile-practices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
  margin-top: clamp(14px, 2.2vw, 28px);
}
.profile-practice { transition: border-color .22s ease, background-color .22s ease; }
.profile-practice:is(:hover, [open]) { border-color: rgb(197 213 234 / .53); }
.profile-practice summary {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: start;
  gap: 11px;
  min-height: 111px;
  padding: clamp(11px, 1.4vw, 17px);
  font-size: .91rem;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}
.profile-practice summary::-webkit-details-marker { display: none; }
.profile-practice summary .profile-icon { margin: 0; }
.profile-practice summary::after {
  content: "+";
  position: absolute;
  inset: 12px 13px auto auto;
  color: var(--accent);
  font: 500 1.2rem/1 monospace;
  transition: transform .2s ease;
}
.profile-practice[open] summary::after { transform: rotate(45deg); }
.profile-practice-detail {
  padding: 0 clamp(11px, 1.4vw, 17px) 15px;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--muted);
}
.profile-practice-detail a { display: inline-block; color: var(--accent); }
.profile-practice-detail p + a { margin-top: 8px; }

.contact-callout {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(310px, 36vw, 490px);
  padding: clamp(28px, 4.7vw, 68px);
  border: 1px solid rgb(197 213 234 / .18);
  border-radius: 11px;
  background: var(--grain), radial-gradient(ellipse at 75% 51%, #202a3b, #13171d 56%, #101215);
}
.contact-callout::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18% -10% -18% 33%;
  transform: rotate(-11deg) skewX(-9deg);
  background:
    repeating-linear-gradient(93deg, transparent 0 12px, rgb(122 168 229 / .25) 15px, rgb(166 204 248 / .42) 18px, transparent 25px 33px),
    radial-gradient(ellipse at 61% 47%, rgb(79 128 188 / .44), transparent 60%);
  filter: blur(2.6px);
  mask-image: radial-gradient(ellipse 63% 42% at 56% 51%, #000 6%, rgb(0 0 0 / .6) 48%, transparent 90%);
  transition: transform .75s cubic-bezier(.2, .7, .28, 1);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .contact-callout:is(:hover, :focus-within)::before { transform: translateX(12px) rotate(-9deg) skewX(-9deg); }
}
.contact-callout-copy { max-width: 30rem; }
.contact-callout h2 { font-size: clamp(2.2rem, 5.25vw, 4.6rem); line-height: 1.09; letter-spacing: -.07em; }
.contact-callout h2 span { color: var(--accent); }
.contact-callout p { color: #c2c7d0; margin-top: 15px; text-wrap: pretty; }
.contact-callout .button { margin-top: 20px; padding-inline: 24px; border-color: #65748a; background: #161c26; color: var(--ink); }
.contact-callout .button:is(:hover, :focus-visible) { border-color: var(--accent); background: #263449; }
.contact-section {
  padding-block: clamp(43px, 7vw, 91px);
  background: var(--grain), radial-gradient(ellipse 74% 54% at 62% 20%, #222d3c, transparent), var(--surface);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 28px clamp(26px, 6vw, 84px); }
.contact-intro h2 { font-size: clamp(2.45rem, 5.9vw, 5.1rem); line-height: 1.05; letter-spacing: -.075em; }
.contact-intro > p { color: var(--muted); margin-top: 13px; }
.contact-methods { display: grid; gap: 9px; margin-top: 20px; }
.contact-methods dt { margin-bottom: 4px; color: var(--muted); font-size: .85rem; font-weight: 650; }
.contact-methods dd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 13px; }
.contact-methods [data-contact-value] { color: var(--accent); font-size: clamp(.95rem, 1.8vw, 1.25rem); overflow-wrap: anywhere; }
.contact-methods button { min-height: 40px; padding-inline: 11px; background: #1d2633; border-color: #566275; }
.contact-qr {
  display: grid;
  justify-items: center;
  align-self: start;
  gap: 10px;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid rgb(197 213 234 / .19);
  border-radius: 10px;
  background: rgb(21 26 34 / .87);
}
.contact-qr img { width: clamp(184px, 24vw, 264px); height: auto; border-radius: 5px; background: #fff; }
.contact-qr figcaption { color: var(--muted); font-size: .88rem; text-align: center; }
.contact-feedback:empty { display: none; }
.contact-intro .contact-feedback { margin-top: 8px; color: var(--accent); font-size: .88rem; }

.footer { background: var(--grain), var(--surface); color: var(--ink); padding: 30px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }
.footer h2 { font-size: clamp(1.35rem, 3vw, 2.2rem); }
.footer a { overflow-wrap: anywhere; }
.profile-footer { border-top: 1px solid var(--line); padding-block: clamp(21px, 4.8vw, 56px); }
.profile-footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 30px; }
.profile-footer-name { font: 550 clamp(1.65rem, 3vw, 2.5rem)/1.1 "Songti SC", "Noto Serif CJK SC", serif; text-decoration: none; }
.profile-footer p { color: var(--muted); font-size: .89rem; margin-top: 5px; }
.profile-footer nav { display: flex; flex-wrap: wrap; gap: 10px 19px; }
.profile-footer nav a { text-decoration: none; }
.profile-footer a:hover, .profile-footer-top { color: var(--accent); }

.library-head, .case-head { padding-block: clamp(32px, 5.5vw, 70px) 25px; }
.page-title { font-size: clamp(2.7rem, 7vw, 6.25rem); line-height: 1.04; letter-spacing: -.07em; }
.library-head .section-text { margin-top: 12px; }
.library-controls { padding: 14px 0 0; border-top: 1px solid var(--line); }
.library-controls fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-row button { min-height: 40px; padding: 6px 13px; font-size: .91rem; border: 1px solid #474c56; border-radius: 4px; background: #1b1e23; cursor: pointer; }
.filter-row button:hover { color: var(--accent); border-color: var(--accent); }
.filter-row [aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #15202e; font-weight: 750; }
.filter-secondary { margin-top: 9px; }
.filter-secondary button { min-height: 37px; font-size: .875rem; }
.library-tools { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 9px 18px; padding-block: 14px; }
.search-field { display: grid; gap: 4px; font-size: .875rem; color: var(--muted); width: min(100%, 290px); }
.search-field input { min-height: 41px; min-width: 0; border: 1px solid #474c56; border-radius: 4px; background: #171a20; padding: 6px 9px; font-size: 1rem; }
.count { color: var(--muted); font-size: .875rem; }
.library-grid { padding-bottom: 49px; }
.empty { padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.case-head { padding-top: 28px; }
.case-return { display: inline-block; margin-bottom: 20px; }
.case-head .page-title { max-width: 19ch; margin-top: 7px; font-size: clamp(2.3rem, 6vw, 5.6rem); }
.case-summary { color: var(--muted); max-width: 52em; margin-top: 13px; }
.case-facts { display: flex; flex-wrap: wrap; gap: 13px 44px; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--line); }
.case-facts dt { color: var(--muted); font-size: .875rem; }
.case-facts dd { font-weight: 700; }
.case-nav { display: flex; flex-wrap: wrap; gap: 10px 19px; padding: 11px 0 19px; }
.case-nav a { color: var(--accent); font-size: .9rem; font-weight: 700; }
.case-section { border-top: 1px solid var(--line); padding: 24px 0 40px; }
.case-section h2, .related h2 { font-size: clamp(1.45rem, 3.4vw, 2.7rem); line-height: 1.2; letter-spacing: -.04em; }
.case-section > p { margin-top: 7px; color: var(--muted); }
.gallery { margin-top: 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.gallery-posters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-wide { grid-template-columns: minmax(0, 790px); }
.gallery-media { display: block; overflow: hidden; cursor: zoom-in; background: #1a1d23; }
.gallery-media img { height: auto; }
.gallery-posters .gallery-media { height: 100%; display: grid; align-items: center; }
.gallery-posters img { max-height: 640px; object-fit: contain; }
.gallery figcaption { font-size: .88rem; color: var(--muted); padding-top: 5px; }
.case-video { width: min(100%, 940px); margin-top: 14px; background: #222; max-height: 70vh; }
.case-video.is-portrait { width: min(100%, 364px); }
.video-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.video-links a { color: var(--muted); font-size: .9rem; }
.related { border-top: 1px solid var(--line); padding: 24px 0 45px; }
.related ul { display: flex; gap: 8px 18px; list-style: none; flex-wrap: wrap; padding: 0; margin: 14px 0 0; }
.related a { color: var(--accent); }
.viewer { width: min(95%, 1210px); max-height: 94dvh; padding: 12px; color: white; background: #242421; border: 0; }
.viewer::backdrop { background: rgb(0 0 0 / .75); }
.viewer-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 8px; }
.viewer-tools button { background: transparent; border: 1px solid #a59c92; color: white; font-size: .9rem; cursor: pointer; padding: 4px 9px; min-height: 38px; }
.viewer-tools button:focus-visible { outline-color: #fff; }
.viewer-image { width: auto; height: auto; max-height: min(75dvh, 920px); max-width: 100%; margin: 0 auto; object-fit: contain; }
.viewer-caption { padding-top: 6px; font-size: .9rem; }

@media (max-width: 1090px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 930px) {
  .wrap { width: calc(100% - 58px); }
  .primary-nav { gap: 0 15px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .category-list .category-item:nth-child(odd) { --category-delay: 0ms; }
  .category-list .category-item:nth-child(even) { --category-delay: 65ms; }
}
@media (650px < width <= 880px) {
  .profile-practices { gap: 6px; }
  .profile-practice summary { min-height: 98px; padding: 8px; font-size: .84rem; }
  .profile-practice summary .profile-icon { width: 32px; height: 32px; }
  .profile-practice summary::after { inset: 8px 8px auto auto; }
  .profile-practice-detail { padding-inline: 8px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 70px; }
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 58px; gap: 9px; }
  .primary-nav { gap: 0 11px; }
  .primary-nav a { font-size: .83rem; }
  .wordmark-latin { display: none; }
  .brand-dot { width: 7px; height: 7px; }
  .wordmark { font-size: .83rem; gap: 5px; }
  .primary-nav .nav-contact { padding: 4px 7px; }
  .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .profile-portrait, .profile-practices { width: min(100%, 385px); margin-inline: auto; }
  .profile-portrait { margin-top: 15px; }
  .profile-credentials { gap: 6px; }
  .profile-credentials li { padding: 9px 7px; }
  .profile-credentials li > span:not(.profile-icon), .profile-credentials small { font-size: .76rem; }
  .profile-credentials .profile-icon { width: 33px; height: 33px; margin-bottom: 7px; }
  .profile-practices { grid-template-columns: 1fr; gap: 7px; }
  .profile-practice summary { grid-template: auto / auto 1fr; align-items: center; min-height: 58px; padding-inline-end: 39px; }
  .profile-practice summary::after { top: 50%; transform: translateY(-50%); }
  .profile-practice[open] summary::after { transform: translateY(-50%) rotate(45deg); }
  .contact-callout::before { inset-inline-start: 14%; opacity: .7; }
  .contact-grid { row-gap: 20px; }
  .is-home .header-inner { min-height: 56px; }
  .is-home .primary-nav .nav-contact { padding-inline: 6px; }
  .portfolio-cover-inner { min-height: 0; padding-block: 24px 14px; }
  .portfolio-cover-art { min-height: clamp(163px, 45cqw, 285px); }
  .portfolio-cover-meta { grid-template-columns: 1fr; }
  .portfolio-cover-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-cover-index a:nth-child(3) { border-inline-start: 0; }
  .portfolio-cover-index a:nth-child(n + 3) { border-top: 1px solid var(--cover-rule); }
  .button { min-height: 39px; font-size: .875rem; padding-inline: 11px; }
  .category-copy span, .category-action { font-size: .8rem; }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-cell:last-child { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--evidence-gap)) / 2); }
  .evidence-motion .evidence-hero { grid-template-columns: 1fr; gap: 14px; }
  .evidence-motion .evidence-stack-slot { height: clamp(248px, 69vw, 330px); }
  .evidence-intro .section-text { margin-top: 11px; }
  .evidence-actions { margin-top: 15px; }
  .evidence-photo-count { inset: auto 5px 5px auto; }
  .evidence-caption p { font-size: .81rem; }
  .page-section { padding-block: 21px 33px; }
  .section-head { margin-bottom: 13px; }
  .section-title { font-size: clamp(1.55rem, 7vw, 2.25rem); }
  .work-grid { gap: 15px 11px; }
  .card-image img { object-fit: contain; }
  .card-summary { display: none; }
  .card-title { font-size: 1rem; }
  .card-label { font-size: .78rem; }
  .card-text { padding: 7px 8px 10px; }
  .selected-section .section-head { align-items: start; }
  .featured-actions { align-items: end; flex-direction: column; gap: 7px; }
  .featured-actions .text-link { font-size: .83rem; }
  .featured-views button { min-height: 36px; padding-inline: 9px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-viewport.is-gallery {
    --gallery-card-width: clamp(181px, 60vw, 330px);
    margin-inline: -16px;
  }
  .featured-viewport.is-gallery .featured-grid { height: clamp(182px, 53vw, 285px); }
  .featured-footer { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding-top: 10px; }
  .featured-hint { grid-column: 1 / -1; grid-row: 2; }
  .featured-steppers button { width: 40px; height: 44px; }
  .featured-count { min-width: 5ch; }
  .footer { padding-block: 21px; }
  .library-head, .case-head { padding-block: 21px 13px; }
  .filter-row { gap: 5px; }
  .filter-row button { min-height: 38px; padding: 3px 9px; font-size: .84rem; }
  .library-tools { align-items: start; }
  .search-field { width: min(100%, 340px); }
  .case-facts { gap: 8px 20px; }
  .case-nav { gap: 8px 13px; padding-block: 8px 14px; }
  .case-section { padding-block: 17px 26px; }
  .gallery { grid-template-columns: 1fr; gap: 10px; }
  .gallery-posters { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
}
@media (max-width: 345px) {
  .primary-nav { gap: 0 7px; }
  .primary-nav a { font-size: .78rem; }
  .filter-row button { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .will-reveal:not(.is-visible, :focus-within) { opacity: 1; transform: none; }
  .category-link:is(:hover, :focus-visible, :active),
  .category-link:is(:hover, :focus-visible) img,
  .work-card:hover img, .evidence-photo:hover img { transform: none; }
}
