@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/JosefinSans-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif SC Portfolio";
  src: url("../fonts/NotoSerifSC-Light-subset.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --bg: #000;
  --text: #f4f4f1;
  --muted: #a5a5a0;
  --line: #333;
  --black: #1c1c1c;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-duration: .42s;
  --nav-motion-duration: .64s;
  --nav-open-ease: cubic-bezier(.22, 1.22, .36, 1);
  --nav-close-ease: cubic-bezier(.4, 0, .2, 1);
  --desktop-media-height: clamp(360px, 52vh, 520px);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: 400;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.single-page { min-height: 100vh; }

.site-sidebar {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 31%;
  height: 100vh;
  padding: 11vh 4vw 5vh 3vw;
  text-align: right;
}

.identity { width: 100%; letter-spacing: .08em; }
.site-name {
  display: inline-block;
  font-size: clamp(25px, 2.5vw, 42px);
  font-weight: 400;
  letter-spacing: .05em;
}

.identity p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .06em;
  font-weight: 300;
}

.main-nav {
  position: absolute;
  top: 11vh;
  right: 4vw;
  display: flex;
  min-height: var(--desktop-media-height);
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 42px;
  padding: calc(var(--desktop-media-height) * .34) 0 0;
}

.nav-section { display: block; }
.nav-section > summary { list-style: none; }
.nav-section > summary::-webkit-details-marker { display: none; }

.nav-trigger {
  position: relative;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: right;
  font-family: "Josefin Sans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: clamp(18px, 2vw, 31px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: .01em;
}

.nav-trigger::after {
  position: absolute;
  top: 50%;
  left: calc(100% + .35em);
  display: inline-block;
  width: .38em;
  height: .38em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-50%) rotate(-45deg);
  transform-origin: 50% 50%;
  transition: transform var(--nav-motion-duration) var(--nav-close-ease);
}

.nav-section[open] > .nav-trigger::after {
  transform: translateY(-50%) rotate(45deg);
  transition-timing-function: var(--nav-open-ease);
}

.about-section .nav-trigger::after { content: none !important; }
.nav-trigger:hover,
.nav-trigger.is-active,
.collection-list button:hover,
.collection-list button.is-active { color: var(--muted); }

.nav-section .collection-list {
  display: grid;
  grid-template-rows: 0fr;
  max-height: none;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: none;
  transition:
    grid-template-rows var(--nav-motion-duration) var(--nav-close-ease),
    opacity .28s var(--nav-close-ease);
}

.nav-section[open]:not(.is-closing) .collection-list {
  grid-template-rows: 1fr;
  opacity: 1;
  transition:
    grid-template-rows var(--nav-motion-duration) var(--nav-open-ease),
    opacity .4s var(--nav-close-ease);
}

.nav-section.is-closing .collection-list {
  grid-template-rows: 0fr;
  max-height: none;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: none;
}

.collection-list::before { display: none; }
.collection-list-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  row-gap: 10px;
  padding: 0;
}

.collection-list-inner button {
  min-height: 0;
  margin: 0;
  border: 0;
  background: none;
  padding: 7px 0;
  cursor: pointer;
  text-align: right;
  font-family: "Josefin Sans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .06em;
}

.collection-list-inner button:first-child { margin-top: 18px; }
.collection-list-inner button:last-child { margin-bottom: 32px; }

.email-link { margin-top: 20px; font-size: 27px; line-height: 1; }

.site-stage {
  min-height: 100vh;
  margin-left: 31%;
  padding: 11vh 3.5vw 7vh 2vw;
  view-transition-name: portfolio-stage;
}

.content-view,
.project-content { display: none; }
.content-view.is-visible { display: block; }
.content-view.is-visible.home-view { display: flex; }
.content-view.is-visible,
.project-content.is-visible {
  animation: content-in var(--motion-duration) var(--motion-ease) both;
}
.project-content.is-visible { display: block; }
.selected-view.is-switching-project .project-content.is-visible { animation: none; }

.home-view {
  min-height: var(--desktop-media-height);
  flex-direction: column;
  justify-content: flex-start;
}

.home-view .home-image {
  display: block;
  width: 80%;
  margin-left: auto;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top right;
}

.placeholder {
  width: 100%;
  min-height: 220px;
  background: var(--black);
}
.placeholder-wide { aspect-ratio: 1.8 / 1; }
.placeholder-tall { width: 67%; aspect-ratio: 1 / 1.25; }
.placeholder-medium { width: 60%; aspect-ratio: 1.25 / 1; }
.placeholder-small { width: 38%; aspect-ratio: 1 / 1.15; }
.stage-caption { margin: 12px 0 0; color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.eyebrow { margin: 0 0 28px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.about-content {
  max-width: 760px;
  padding: 0;
  font-family: "Helvetica Neue", "Avenir Next", Avenir, Arial, sans-serif;
  font-weight: 300;
}

.about-content h1 {
  max-width: 650px;
  margin: 0 0 5vh;
  font-size: clamp(12px, 1.25vw, 17px);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: .02em;
  text-align: justify;
  text-justify: inter-word;
}

.about-columns {
  display: flex;
  max-width: 520px;
  flex-direction: column;
  gap: 0;
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .04em;
  text-align: left;
}

.about-columns p { margin: 0; font-size: 11px; text-align: left; }
.about-columns a,
.detail-link { text-decoration: underline; text-underline-offset: 4px; }

.selected-intro {
  display: flex;
  justify-content: space-between;
  margin: 3vh 0 12vh;
  font-size: 11px;
  letter-spacing: .06em;
}
.selected-intro .eyebrow,
.project-content-heading h1 {
  font-family: "Josefin Sans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-weight: 300;
}
.selected-view.project-active .selected-intro { display: none; }

.project-content-heading {
  width: 88%;
  max-width: none;
  margin: 0 0 12vh auto;
  text-align: right;
}

.project-content-heading h1 {
  margin: 0 0 28px;
  font-size: clamp(32px, 5vw, 78px);
  font-weight: 300;
  line-height: 1;
  white-space: nowrap;
}

.project-content-heading p:last-child {
  max-width: 420px;
  margin-left: auto;
  font-size: 14px;
  line-height: 1.55;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 11vh;
}

.project-figure {
  width: 100%;
  margin: 0 0 0 auto;
}
.project-figure.figure-wide { width: 80%; }
.project-figure.figure-tall { width: 51%; }
.project-figure.figure-medium { width: 53%; }
.project-figure.figure-small { width: 34%; }
.project-figure img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.home-image { cursor: zoom-in; }
.project-figure .placeholder { width: 100%; aspect-ratio: 1.8 / 1; }
.project-figure.figure-tall .placeholder { aspect-ratio: 1 / 1.25; }
.project-figure.figure-medium .placeholder { aspect-ratio: 1.25 / 1; }
.project-figure.figure-small .placeholder { aspect-ratio: 1 / 1.15; }

.project-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: right;
}

.project-grid-row { display: flex; align-items: center; justify-content: space-between; padding: 0 10vw; }
.project-grid-row .placeholder-small { margin-top: 7vh; }
.project-grid-row .placeholder-medium { margin-bottom: 7vh; }
.detail-link { display: inline-block; margin-top: 12vh; font-size: 11px; letter-spacing: .08em; }
.project-nav,
footer { display: none; }
.field-report-heading { width: 100%; margin: 0 0 14px; text-align: right; }
.field-report-heading h2 { margin: 0 0 6px; font-size: clamp(14px, 1.2vw, 18px); font-weight: 300; letter-spacing: .04em; }
.field-report-heading p { margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .05em; }

.language-switch {
  position: fixed;
  z-index: 10;
  top: 3.4vh;
  right: 3.5vw;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}
.language-switch button {
  border: 0;
  background: none;
  padding: 2px 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  transition: color .2s ease;
}
.language-switch button[aria-pressed="true"],
.language-switch button:hover { color: var(--text); }
.language-switch button:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.lightbox {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  background: #000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-figure {
  display: flex;
  width: min(94vw, 1200px);
  max-width: none;
  max-height: none;
  flex-direction: column;
  align-items: center;
  margin: 0;
  transform: scale(.97);
  transition: transform .42s var(--motion-ease);
}
.lightbox.is-open .lightbox-figure { transform: scale(1); }
.lightbox-frame {
  width: min(94vw, 1200px);
  height: 84vh;
  overflow: hidden;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox-track {
  display: flex;
  width: 300%;
  height: 100%;
  transform: translate3d(-33.333333%, 0, 0);
  will-change: transform;
}
.lightbox-track.is-animating { transition: transform .36s var(--motion-ease); }
.lightbox-slide {
  display: block;
  width: 33.333333%;
  height: 100%;
  max-width: none;
  max-height: none;
  flex: 0 0 33.333333%;
  object-fit: contain;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}
.lightbox-image { transition: opacity .2s ease; }
.lightbox-caption { margin-top: 12px; color: var(--text); font-size: 11px; line-height: 1.4; letter-spacing: .04em; text-align: center; }
.lightbox-close {
  position: absolute;
  top: 3vh;
  right: 3vw;
  border: 0;
  background: none;
  padding: 4px 8px;
  color: var(--text);
  cursor: pointer;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}
.lightbox-close:hover,
.lightbox-nav:hover { color: var(--muted); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.lightbox-nav {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  width: 56px;
  height: 72px;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  font-size: 54px;
  font-weight: 200;
  line-height: 1;
  transform: translateY(-50%);
  transition: color .2s ease, opacity .2s ease;
}
.lightbox-nav[hidden],
.lightbox-counter[hidden] { display: none; }
.lightbox-prev { left: 1.5vw; }
.lightbox-next { right: 1.5vw; }
.lightbox-nav:disabled { opacity: .22; cursor: default; }
.lightbox-counter { position: absolute; top: 3vh; left: 3vw; margin: 0; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.lightbox.is-loading .lightbox-figure { opacity: .7; }
.lightbox.is-loading::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px;
  border: 1px solid rgba(244, 244, 241, .35);
  border-top-color: var(--text);
  border-radius: 50%;
  content: "";
  animation: lightbox-spin .7s linear infinite;
  pointer-events: none;
}
.lightbox-image.is-swipe-next { animation: lightbox-swipe-next .38s var(--motion-ease) both; }
.lightbox-image.is-swipe-previous { animation: lightbox-swipe-previous .38s var(--motion-ease) both; }
.lightbox.is-dismissing { opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.lightbox.is-dismissing .lightbox-figure { opacity: 0; transition: transform .22s var(--motion-ease), opacity .22s ease; }
body.lightbox-open { overflow: hidden; }
html.lightbox-restore-position { scroll-behavior: auto !important; }

.back-to-top { display: none; }
@keyframes content-in {
  from { opacity: 0; transform: translateY(12px) scale(.988); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes content-in-mobile {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightbox-spin { to { transform: rotate(360deg); } }
@keyframes lightbox-swipe-next {
  from { opacity: .25; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes lightbox-swipe-previous {
  from { opacity: .25; transform: translateX(-28px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes stage-out { to { opacity: 0; transform: translateY(-6px) scale(.996); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px) scale(.996); } }

@media (min-width: 701px) {
  .mobile-nav-trigger,
  .mobile-collection-list { display: none; }
  .site-sidebar { transform: translateX(-1.6vw); }
  .site-stage { transform: translateX(-7.8vw); }
  /* Match the right-aligned 80% image column, then inset the copy evenly. */
  .about-content {
    width: 80%;
    max-width: none;
    margin-left: auto;
    padding-inline: clamp(14px, 2vw, 30px);
  }
  .about-content h1,
  .about-columns { max-width: none; }
  html,
  body { overscroll-behavior: none; }
  html:lang(zh-CN) .identity,
  html:lang(zh-CN) .main-nav { transform: translateX(-3.2vw); }
}

@media (min-width: 1100px) {
  .project-content-heading p:last-child { max-width: none; white-space: nowrap; }
}

@media (max-width: 700px) {
  .content-view.is-visible,
  .project-content.is-visible { animation-name: content-in-mobile; }
  .site-sidebar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    height: auto;
    padding: max(3.5vw, env(safe-area-inset-top)) 6vw;
    text-align: left;
    background: rgba(22, 22, 22, .28);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }
  .mobile-header {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr .9fr .7fr;
    grid-template-areas: "brand collections about language";
    align-items: center;
    column-gap: 0;
    row-gap: 0;
  }
  .mobile-header .identity { display: contents; }
  .mobile-header .site-name {
    grid-area: brand;
    justify-self: start;
    width: auto;
    font-size: 21px;
    text-align: left;
    white-space: nowrap;
  }
  .mobile-header .identity p { display: none; }
  .main-nav,
  .mobile-collection-list { display: none; }
  .mobile-nav-trigger {
    position: relative;
    display: block;
    grid-area: collections;
    width: 100%;
    min-width: 0;
    border: 0;
    background: none;
    padding: 5px 0;
    cursor: pointer;
    text-align: center;
    font-family: "Josefin Sans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    font-size: clamp(8px, 2.7vw, 11px);
    font-weight: 300;
    letter-spacing: 0;
    white-space: nowrap;
    top: 0;
  }
  .mobile-about-trigger { grid-area: about; }
  .mobile-collections-toggle::after {
    display: inline-block;
    width: .36em;
    height: .36em;
    margin: 0 0 .16em .5em;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: "";
    transform: rotate(45deg);
    transition: transform var(--nav-motion-duration) var(--motion-ease);
  }
  .mobile-collections-toggle[aria-expanded="false"]::after { transform: rotate(-45deg); }
  .mobile-header .language-switch {
    position: relative;
    top: 0;
    grid-area: language;
    justify-self: end;
    gap: 5px;
    font-size: 9px;
    white-space: nowrap;
  }
  .mobile-collection-list {
    position: fixed;
    z-index: 31;
    left: 45.6vw;
    width: max-content;
    max-width: calc(100vw - 24px);
    max-height: min(60vh, 360px);
    margin: 0;
    padding: 2px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(22, 22, 22, .28);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -7px);
    transition: opacity .22s ease, transform .28s var(--motion-ease), visibility 0s linear .28s;
  }
  .mobile-collection-list.is-open {
    display: block;
    max-height: min(60vh, 360px);
    margin: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition: opacity .22s ease, transform .28s var(--motion-ease), visibility 0s;
  }
  .mobile-collection-list .collection-list-inner {
    display: grid;
    width: max-content;
    min-width: 0;
    min-height: 0;
    grid-template-columns: max-content;
    justify-items: center;
    row-gap: 6px;
    overflow: visible;
    padding: 0;
  }
  .mobile-collection-list .collection-list-inner button { margin: 0; }
  .mobile-collection-list button {
    width: max-content;
    min-width: 0;
    min-height: 0;
    border: 0;
    background: none;
    padding: 3px 8px;
    cursor: pointer;
    text-align: center;
    font-family: "Josefin Sans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: .04em;
    white-space: nowrap;
  }
  .site-stage { margin-left: 0; padding: 0 6vw 12vw; }
  .home-view { min-height: auto; }
  .home-view .home-image { width: 100%; margin-left: 0; }
  .placeholder-wide { aspect-ratio: 1.25 / 1; }
  .placeholder-tall,
  .placeholder-medium,
  .placeholder-small { width: 100%; }
  .stage-caption { line-height: 1.5; }
  .selected-intro {
    display: block;
    margin: 5vh 0 9vh;
    line-height: 1.8;
  }
  .selected-intro p { margin: 0; }
  .about-content { max-width: none; transform: none; }
  .about-content h1 { margin: 0 0 6vh; font-size: 12px; line-height: 1.65; }
  .about-columns { max-width: none; }
  .project-content-heading {
    width: 100%;
    margin: 0 0 9vh;
    text-align: left;
  }
  .project-content-heading h1 { font-size: clamp(22px, 7vw, 42px); white-space: nowrap; }
  .project-content-heading p:last-child { margin-left: 0; text-align: left; }
  .selected-view.project-active { padding-top: 4vh; }
  .selected-view.project-active .project-content-heading { margin-bottom: 3vh; }
  .project-grid { gap: 8vh; }
  .project-figure,
  .project-figure.figure-wide,
  .project-figure.figure-tall,
  .project-figure.figure-medium,
  .project-figure.figure-small { width: 100%; }
  .project-figure figcaption { text-align: left; }
  .project-grid-row { display: block; padding: 0; }
  .project-grid-row .placeholder { margin: 0 0 8vh; }
  .field-report-heading { text-align: left; }
  .back-to-top.is-visible {
    display: block;
    position: fixed;
    z-index: 25;
    right: 0;
    bottom: calc(18px + env(safe-area-inset-bottom));
    margin: 0;
    border: 0;
    border-radius: 0;
    height: 40px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%);
    background: rgba(22, 22, 22, .28);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    /* The left notch removes visual weight, so shift the label right optically. */
    padding: 0 18px 0 36px;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: .08em;
    text-align: right;
    transform: translateX(0);
    opacity: 1;
    transition: transform .84s cubic-bezier(.22, 1, .36, 1), opacity .6s ease;
    will-change: transform;
  }
  .back-to-top.is-visible.is-retracted {
    transform: translateX(calc(100% - 12px));
    opacity: .82;
  }
  .back-to-top:hover { color: var(--text); }
  .lightbox { padding: 4vh 4vw; }
  .lightbox-figure { width: 88vw; max-width: 88vw; }
  .lightbox-frame { height: 78vh; }
  .lightbox-caption { font-size: 10px; }
  .lightbox-close { top: 2vh; right: 4vw; font-size: 28px; }
  .lightbox-nav { display: none; }
  .lightbox-counter { top: 2.5vh; left: 5vw; }
}

html:lang(zh-CN) body {
  font-family: "Noto Serif SC Portfolio", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-weight: 300;
}
html:lang(zh-CN) .identity p,
html:lang(zh-CN) .nav-trigger,
html:lang(zh-CN) .collection-list button,
html:lang(zh-CN) .selected-intro .eyebrow,
html:lang(zh-CN) .about-content {
  font-family: "Noto Serif SC Portfolio", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  font-weight: 300;
}
html:lang(zh-CN) .site-name { font-family: "Helvetica Neue", "Avenir Next", Avenir, Arial, sans-serif; font-weight: 400; }
html:lang(zh-CN) .project-content-heading h1 { font-family: Arial, "Helvetica Neue", sans-serif; font-weight: 400; }
@media (max-width: 700px) {
  html:lang(zh-CN) .mobile-nav-trigger { font-size: 14px; }
  html:lang(zh-CN) .mobile-nav-trigger,
  html:lang(zh-CN) .mobile-collection-list button {
    font-family: "Noto Serif SC Portfolio", "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
    font-weight: 300;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-section .collection-list,
  .nav-section[open] .collection-list,
  .nav-section.is-closing .collection-list,
  .nav-trigger::after,
  .mobile-collections-toggle::after,
  .mobile-collection-list,
  .lightbox,
  .lightbox-figure,
  .lightbox-nav,
  .lightbox-image,
  .lightbox-track.is-animating,
  .lightbox.is-dismissing,
  .lightbox.is-dismissing .lightbox-figure,
  .back-to-top.is-visible { transition: none; }
  .content-view.is-visible,
  .project-content.is-visible,
  .lightbox-image.is-swipe-next,
  .lightbox-image.is-swipe-previous { animation: none; }
  .lightbox.is-loading::after { animation: none; }
}

::view-transition-old(portfolio-stage),
::view-transition-new(portfolio-stage) {
  animation-duration: var(--motion-duration);
  animation-timing-function: var(--motion-ease);
}
::view-transition-old(portfolio-stage) { animation-name: stage-out; }
::view-transition-new(portfolio-stage) { animation-name: stage-in; }

/* v2.1.3 — mobile Liquid Glass surfaces; deliberately keep square corners. */
@media (max-width: 700px) {
  :root {
    --liquid-surface: rgba(22, 22, 22, .28);
    --liquid-glint: rgba(255, 255, 255, .075);
    --liquid-edge: rgba(255, 255, 255, .09);
    --liquid-blur: 24px;
  }

  .site-sidebar {
    border-radius: 0;
    background:
      linear-gradient(145deg, var(--liquid-glint), rgba(255, 255, 255, .018) 42%, transparent 76%),
      var(--liquid-surface);
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(1.35);
    backdrop-filter: blur(var(--liquid-blur)) saturate(1.35);
    box-shadow: inset 0 1px 0 var(--liquid-edge), inset 0 -1px 0 rgba(255, 255, 255, .025);
  }

  .mobile-collection-list,
  .mobile-collection-list.is-open {
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025) 40%, transparent 76%),
      var(--liquid-surface);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, .18),
      inset 0 1px 0 var(--liquid-edge),
      inset 1px 0 0 rgba(255, 255, 255, .025);
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(1.35);
    backdrop-filter: blur(var(--liquid-blur)) saturate(1.35);
  }

  .back-to-top.is-visible {
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .02) 55%, transparent),
      var(--liquid-surface);
    box-shadow: inset 0 1px 0 var(--liquid-edge), 0 4px 16px rgba(0, 0, 0, .14);
    -webkit-backdrop-filter: blur(var(--liquid-blur)) saturate(1.35);
    backdrop-filter: blur(var(--liquid-blur)) saturate(1.35);
  }

  @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-sidebar,
    .mobile-collection-list,
    .mobile-collection-list.is-open,
    .back-to-top.is-visible {
      background: rgba(22, 22, 22, .88);
    }
  }
}
