@font-face {
  font-family: CyberCursor;
  src: url('../assets/cyber-cursor.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: CyberJost;
  src: url('../assets/jost-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GoogleSansCode;
  src: url('../assets/google-sans-code-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GoogleSansCode;
  src: url('../assets/google-sans-code-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: GoogleSansCode;
  src: url('../assets/google-sans-code-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: NotoSansSC;
  src: url('../assets/noto-sans-sc-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --list-text-alpha {
  syntax: '<number>';
  inherits: true;
  initial-value: 1;
}

.chinese-text {
  font-family: NotoSansSC,'Microsoft YaHei',sans-serif;
  font-size: .8em;
}

:root {
  --paper: #121212;
  --ink: #fff;
  --white: #fff;
  --edge: clamp(26px,2.60417vw,50px);
  --type: clamp(24px,2.08333vw,44px);
  /* Scale below 2100px without dropping below the mobile font sizes. */
  --project-title-size: clamp(30px, calc(100vw * 50 / 2100), 50px);
  --project-detail-size: clamp(20px, calc(100vw * 40 / 2100), 40px);
  --language-size: 20px;
  --panel-heading-size: 50px;
  --panel-section-size: 75px;
  --section-label-size: 75px;
  --section-label-weight: 450;
  --section-label-line-height: 1.1;
  --panel-heading-top: 20px;
  --brand-top: clamp(16px,2vh,22px);
  --controls-bottom: clamp(30px,4.3vh,48px);
  --frost-tint: rgb(18 18 18 / .72);
  --frost-blur: 16px;
  --book: CyberJost,'Century Gothic',sans-serif;
  --light: CyberJost,'Century Gothic',sans-serif;
  --nav: CyberJost,'Century Gothic',sans-serif;
  font-family: var(--book);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html, .panel {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #9b9b9b #202020;
}

html { scrollbar-gutter: stable; }

/* The open dialog owns the scrollbar at the viewport edge. */
html:has(.panel[open]) {
  overflow: hidden;
  scrollbar-gutter: auto;
  padding-right: var(--panel-scrollbar-gap, 0px);
}
html:has(.panel[open]) :is(.navigation, .mobile-controls, .language-switch--mobile) {
  margin-right: var(--panel-scrollbar-gap, 0px);
}

html::-webkit-scrollbar, .panel::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track, .panel::-webkit-scrollbar-track {
  background: #202020;
}

html::-webkit-scrollbar-thumb, .panel::-webkit-scrollbar-thumb {
  background: #9b9b9b;
  border: 2px solid #202020;
  border-radius: 10px;
}

body {
  margin: 0;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[data-input='pointer'] :is(button, a):focus { outline: none; }

body:has(dialog[open]),body.menu-open {
  overflow: hidden;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 7px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: var(--edge);
  top: 12px;
  transform: translateY(-180%);
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  padding: 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

[data-adaptive] {
  color: var(--white);
  transition: color 180ms ease;
  text-shadow: 0 1px 10px #00000012;
}

[data-adaptive].on-light {
  color: var(--ink);
  text-shadow: none;
}

.brand {
  position: fixed;
  left: var(--edge);
  top: var(--brand-top);
  translate: 0 var(--brand-y, calc(50svh - var(--brand-top) - 50%));
  z-index: 20;
  font-family: var(--book);
  font-size: clamp(32px,2.60417vw,54px);
  font-weight: 450;
  letter-spacing: .06em;
  line-height: 1.2;
  white-space: nowrap;
  visibility: hidden;
}

.navigation {
  position: fixed;
  right: clamp(32px,3.45vw,68px);
  bottom: var(--controls-bottom);
  z-index: 19;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-family: var(--nav);
  font-size: var(--type);
  line-height: 1.5;
  font-weight: 500;
  pointer-events: none;
  visibility: hidden;
}

.header-backdrop {
  display: none;
}

.brand.intro-ready,.navigation.intro-ready {
  visibility: visible;
}

.intro-step {
  display: inline-block;
  animation: intro-fade var(--intro-duration, 1s) ease-in-out both;
  animation-delay: var(--intro-delay, 0s);
}

.brand .intro-step {
  display: inline-grid;
  grid-template-areas: 'letter';
  animation-name: letter-reveal;
  transform-origin: center center;
}
.brand .intro-step::after {
  content: attr(data-letter);
  grid-area: letter;
  font-weight: 450;
  visibility: hidden;
}

.brand-glyph {
  grid-area: letter;
  font-weight: var(--brand-active-weight, 450);
  animation: brand-intro-weight var(--intro-duration, 1s) ease-in-out both, var(--brand-weight-animation, none);
  animation-delay: var(--intro-delay, 0ms), var(--weight-delay, 0ms);
  transition: font-weight 220ms ease;
}

@keyframes brand-intro-weight {
  from { font-weight: 100; }
  to { font-weight: 450; }
}

.brand:focus-visible,.panel-brand:focus-visible {
  --brand-active-weight: 450;
  --brand-weight-animation: brand-weight 500ms ease both;
}

@media(hover:hover) {
  .brand:hover,.panel-brand:hover {
    --brand-active-weight: 450;
    --brand-weight-animation: brand-weight 500ms ease both;
  }
}

@keyframes brand-weight {
  from { font-weight: 100; }
  to { font-weight: 450; }
}

.brand-letter {
  display: inline-block;
  animation: letter-arrive var(--letter-duration, 1s) cubic-bezier(.4,0,.2,1) both;
  animation-delay: var(--letter-delay, 2s);
}

.header-baseline {
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
  pointer-events: none;
}

@keyframes letter-reveal {
  from { opacity: 0; scale: .8; }
  to { opacity: 1; scale: 1; }
}

.navigation .intro-step {
  animation-name: nav-reveal;
  animation-fill-mode: backwards;
  transform-origin: left center;
}
.nav-letter {
  display: inline-grid;
  grid-template-areas: 'letter';
  white-space: pre;
}
.nav-letter::after {
  content: attr(data-letter);
  grid-area: letter;
  font-weight: 500;
  visibility: hidden;
}
.nav-glyph {
  grid-area: letter;
  display: inline-block;
  font-weight: var(--nav-weight, var(--section-label-weight));
  transform-origin: left center;
  transition: font-weight 260ms ease;
  animation: nav-glyph-reveal 500ms ease backwards;
  animation-delay: calc(var(--intro-delay, 0ms) + var(--glyph-delay, 0ms));
}
.nav-width-reference { position: absolute; visibility: hidden; pointer-events: none; white-space: nowrap; font-weight: 500; }

@keyframes nav-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nav-glyph-reveal {
  from { font-weight: 100; }
  to { font-weight: var(--nav-weight, var(--section-label-weight)); }
}

@keyframes letter-arrive {
  from { transform: translateX(var(--brand-start-x, 0px)); }
  to { transform: translateX(0); }
}

@media(min-width:800px) {
  .brand {
    left: var(--edge);
    top: var(--brand-aligned-top, var(--brand-top));
    font-size: 80px;
    translate: 0 var(--brand-y, 0px);
    transition: translate 300ms ease, color 180ms ease;
  }

  .brand-letter {
    animation: brand-arrive-from-right var(--letter-duration, 1s) cubic-bezier(.4,0,.2,1) both;
    animation-delay: calc(var(--letter-delay, 2s) - var(--intro-text-duration, 2s));
  }
  .brand .intro-step { animation: none; }
  .brand-glyph {
    animation: brand-settled-weight var(--intro-duration, 1s) ease-in-out both, var(--brand-weight-animation, none);
    animation-delay: calc(var(--intro-move-duration, 2s) + var(--intro-delay, 0ms)), var(--weight-delay, 0ms);
  }
}

@keyframes brand-arrive-from-right {
  from { transform: translateX(var(--brand-entry-x, 100vw)); }
  to { transform: translateX(0); }
}

@keyframes brand-settled-weight {
  0%, 100% { font-weight: 450; }
  40% { font-weight: 100; }
}

.menu-toggle,.scroll-cue {
  animation: intro-fade 2s ease-in-out both;
  animation-delay: calc(var(--intro-text-duration, 2s) + var(--intro-move-duration, 2s));
}

@keyframes intro-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.news {
  padding-top: 5px;
  scroll-margin-top: var(--nav-header-height, 96px);
}

.navigation > a {
  position: relative;
  pointer-events: auto;
  translate: var(--nav-x, 0px) var(--nav-y, 0px);
  font-weight: var(--nav-weight, var(--section-label-weight));
  transition: opacity 260ms ease,color 180ms ease,font-weight 260ms ease;
}

.nav-label {
  display: inline-block;
  transform-origin: left center;
  transition: transform 260ms ease;
}

@media (hover: hover) {
.navigation:has(> a:hover) > a:not(:hover) .nav-label { transform: scale(.88); }
.navigation:has(> a:hover) > a:not(:hover) { opacity: .6; }
}
html[data-input='keyboard']
.navigation:has(> a:focus-visible) > a:not(:focus-visible) .nav-label {
  transform: scale(.88);
}

html[data-input='keyboard']
.navigation:has(> a:focus-visible) > a:not(:focus-visible) {
  opacity: .6;
}

@media(min-width:800px) {
  .navigation > a {
    transition: translate 300ms ease, opacity 260ms ease, color 180ms ease, font-weight 260ms ease;
  }
  .navigation {
    right: var(--edge);
    font-family: var(--book);
    font-size: 80px;
    line-height: 1.1;
    font-weight: 500;
  }
  .navigation .nav-width-reference { font-weight: 500; }
  .navigation > a .nav-label { transform-origin: center center; }

  .navigation > a::before {
    content: '';
    position: absolute;
    left: calc(-1 * var(--nav-hit-left, 24px));
    right: calc(-1 * var(--nav-hit-right, 24px));
    top: calc(-1 * var(--nav-hit-top, 0px));
    bottom: calc(-1 * var(--nav-hit-bottom, 0px));
  }
}

@media(min-width:800px) and (max-width:2099px) {
  .brand { font-size: clamp(32px, 4vw, 80px); }
  .navigation { font-size: var(--section-label-size); }
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-width 180ms ease;
}
.menu-icon-cross { display: none; }
.menu-toggle[aria-expanded='true'] .menu-icon-bars { display: none; }
.menu-toggle[aria-expanded='true'] .menu-icon-cross { display: block; }
.menu-icon-feedback { position: absolute; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none; }

.language-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--language-size);
  font-weight: 400;
  line-height: 32px;
  pointer-events: auto;
}
.language-switch button { min-width: 28px; min-height: 32px; opacity: .45; transition: opacity 180ms; }
.language-switch--desktop button { text-align: left; }
.language-switch button[aria-pressed="true"],.language-switch button:hover { opacity: 1; }
.language-switch--desktop {
  position: relative;
  gap: 15px;
  margin-top: 8px;
  translate: var(--nav-x, 0px) var(--nav-y, 0px);
  animation: intro-fade 1s ease-in-out both;
  animation-delay: calc(var(--intro-text-duration, 2s) + var(--intro-move-duration, 2s) + 1s);
}
.mobile-controls,.language-switch--mobile { display: none; }

.hero {
  height: 100svh;
  position: relative;
  overflow: hidden;
  /* Clip the fixed slideshow as the following projects cover the viewport. */
  clip-path: inset(0);
  background: var(--paper);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  translate: -50% 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  z-index: 3;
}

.scroll-cue svg {
  width: 24px;
  height: 24px;
  animation: arrow-breathe 2.4s ease-in-out infinite;
  stroke-width: 1.5;
  transform: scale(1);
  transform-origin: center;
  transition: opacity 180ms ease, stroke-width 180ms ease, transform 180ms ease;
}

.scroll-cue:hover svg,.scroll-cue:focus-visible svg {
  animation: none;
  opacity: 1;
  stroke-width: 2.25;
  transform: scale(1.25);
}

@keyframes arrow-breathe {
  0%,100% { opacity: .15; }
  50% { opacity: 1; }
}

.slides,.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slides {
  position: fixed;
  height: 100svh;
  transform: scale(var(--hero-scroll-scale, 1));
  transform-origin: center;
}

@media (min-width: 800px) {
  /* Root padding preserves page flow, but fixed slides need their own gutter. */
  html:has(.panel[open]) .slides {
    width: calc(100% - var(--panel-scrollbar-gap, 0px));
  }
}

.slide {
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--slide-fade-duration, 2000ms) ease-in-out;
  pointer-events: none;
}

.hero .slide:first-child {
  object-position: calc(48% + 2% * var(--hero-crop-progress, 1)) center;
}

.hero .slide:not(:first-child) {
  object-position: calc(57% - 7% * var(--hero-crop-progress, 1)) center;
}

.slide.is-active {
  opacity: 1;
}

.hero[data-intro] .slide {
  opacity: 0;
}

.slide-navigation {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 2;
  pointer-events: none;
}
.slide-step {
  min-width: 0;
  pointer-events: auto;
  touch-action: pan-y;
  cursor: default;
}
.slide-step:focus-visible { outline-offset: -8px; }
.hero[data-intro] .slide-navigation { visibility: hidden; }

.news-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}

.news-gallery {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}

.news-image {
  position: relative;
  display: block;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  padding: 0;
  border: 0;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: var(--image-opacity, 0);
  transition: none;
}

.news-image:focus-visible {
  outline-offset: -8px;
}

@media(min-width:800px) {
  .news-item { min-height: 0; }
  .news-image {
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 100svh;
  }
  .news-image img {
    position: absolute;
    inset: 0;
  }
}

.news-copy {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  background: var(--paper);
  padding: clamp(26px,3.33333vh,42px) clamp(30px,2.8125vw,56px);
  min-width: 0;
}

.news-copy-content {
  position: sticky;
  top: calc(var(--nav-header-height, 96px) + 82px);
}

.news-copy-content > * {
  opacity: 0;
  transform: none;
}

.news-copy-content.is-visible > * { opacity: 1; }

.news-copy-content > :not(.news-heading-row) {
  clip-path: inset(0 0 100% 0);
  transition: none;
}

.news-copy-content > :is(.location, .news-year) {
  position: relative;
  width: fit-content;
  max-width: 100%;
  clip-path: inset(0 100% 0 0);
}

.news-copy-content.is-visible > :not(.news-heading-row) {
  clip-path: inset(0);
  transition: clip-path 550ms linear;
  transition-delay: var(--line-delay, 0ms);
}

/* Projects cursor labels retain their separate directional reveal. */
@keyframes cursor-label-reveal-right {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0); opacity: 1; }
}
.news-copy-content.is-visible > :is(.location, .news-year) {
  transition-duration: var(--detail-reveal-duration, 0ms);
  transition-delay: 500ms;
}
.news-copy-content.is-visible > .news-year { transition-delay: 1000ms; }
.is-pixel-revealing > .project-pixel-live {
  animation: project-title-live var(--title-reveal-duration, 1000ms) step-end both;
  animation-delay: var(--pixel-reveal-delay, 0ms);
}
@keyframes project-title-live {
  from { visibility: hidden; }
  to { visibility: visible; }
}
@keyframes project-title-overlay {
  from { opacity: 1; }
  to { opacity: 0; }
}
.project-title-pixels {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  image-rendering: pixelated;
  animation: project-title-overlay var(--title-reveal-duration, 1000ms) step-end forwards;
  animation-delay: var(--pixel-reveal-delay, 0ms);
}

.news-copy h2 {
  --line-weight: 400;
  font-family: var(--nav);
  font-size: var(--project-title-size);
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.news-heading-row { position: relative; width: fit-content; max-width: 100%; margin-bottom: 1em; }
.news-heading-row h2 { min-width: 0; }
.news-copy-content > .news-year { --line-weight: 200; margin-top: 12px; font-family: var(--book); font-size: var(--project-detail-size); line-height: 1.35; }

.news-copy p {
  font-family: var(--light);
  font-size: var(--project-detail-size);
  line-height: 1.35;
  font-weight: 300;
  margin: 0;
}

.news-copy .location {
  --line-weight: 300;
  font-family: var(--book);
  font-weight: 300;
  line-height: 1.5;
}

.news-copy .preview-note {
  --line-weight: 400;
  font-size: 15px;
  font-weight: 400;
  margin-top: 38px;
  color: #999;
}

.news-copy .news-copy-content > * { font-weight: var(--line-weight, 300); }

.news-item:nth-child(even) .news-gallery {
  grid-column: 2;
  grid-row: 1;
}

.news-item:nth-child(even) .news-copy {
  grid-column: 1;
  grid-row: 1;
}

.panel {
  position: fixed;
  outline: none;
  overflow-y: scroll;
  overflow-x: hidden;
  inset: 0;
  border: 0;
  margin: 0;
  /* The dialog owns the visible scrollbar while the page is locked. */
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.panel::backdrop {
  background: var(--frost-tint);
  -webkit-backdrop-filter: blur(var(--frost-blur)) saturate(110%);
  backdrop-filter: blur(var(--frost-blur)) saturate(110%);
}
@media (min-width: 800px) and (prefers-reduced-motion: no-preference) {
  .panel.is-returning::backdrop { animation: panel-backdrop-return 450ms ease-in forwards; }
  .panel.is-returning .panel-content,
  .panel.is-returning .language-switch--panel { pointer-events: none; }
  .panel.is-returning .panel-return-cursor { display: none; }
}
@keyframes panel-backdrop-return {
  from { opacity: 1; }
  to { opacity: 0; }
}
.home-crosshair, .home-cursor-cross, .home-cursor-logo, .home-cursor-direction,
.panel-return-cursor, .panel-cursor-cross { display: none; }

@media (min-width:800px) and (hover: hover) {
  .home-crosshair { position: fixed; z-index: 100; width: 0; height: 0; pointer-events: none; display: none; }
  .home-crosshair.is-visible { display: block; }
  body:not(.home-cursor-ready) .home-cursor-logo { display: none; }
  .home-crosshair .cursor-arm { position: absolute; display: block; background: rgba(255,255,255,var(--arm-opacity,.28)); transition: background-color 180ms ease, width 180ms ease, height 180ms ease; }
  .home-cursor-cross { position: fixed; z-index: 101; pointer-events: none; display: none; width: 34px; height: 34px; transform: translate(-50%,-50%); mix-blend-mode: difference; }
  .home-cursor-cross.is-visible { display: block; }
  .home-cursor-cross::before, .home-cursor-cross::after { content: ''; position: absolute; background: #fff; }
  .home-cursor-cross::before { width: 34px; height: 2px; left: 0; top: 16px; }
  .home-cursor-cross::after { width: 2px; height: 34px; left: 16px; top: 0; }
  .home-cursor-logo { display: block; position: fixed; z-index: 102; pointer-events: none; color: #fff; font-family: var(--book); font-size: 25px; font-weight: 400; line-height: 1.2; text-shadow: 0 1px 8px rgba(0,0,0,.75); white-space: nowrap; transform: translate(22px, 20px); opacity: 0; }
  .home-cursor-logo.chinese-text { font-family: NotoSansSC,'Microsoft YaHei',sans-serif; font-size: 25px; }
  .home-cursor-logo.is-right-half { transform: translate(calc(-100% - 22px), 20px); }
  .home-cursor-logo.is-bottom-half { transform: translate(22px, calc(-100% - 20px)); }
  .home-cursor-logo.is-right-half.is-bottom-half { transform: translate(calc(-100% - 22px), calc(-100% - 20px)); }
  .home-cursor-logo.is-playing { animation: home-cursor-label-reveal 1000ms cubic-bezier(.22,1,.36,1) both; }
  .home-cursor-logo.is-right-half { --cursor-reveal-inset: 0 0 0 100%; }
  @keyframes home-cursor-label-reveal {
    from { clip-path: inset(var(--cursor-reveal-inset, 0 100% 0 0)); opacity: 0; }
    to { clip-path: inset(0); opacity: 1; }
  }
  .home-cursor-direction { position: fixed; z-index: 102; font-family: CyberCursor; font-size: 24px; font-weight: 400; line-height: 30px; white-space: nowrap; pointer-events: none; color: #fff; transform: translate(calc(-100% - 22px), 20px); }
  .home-cursor-logo.is-playing + .home-cursor-direction { display: grid; }
  .home-cursor-direction.is-right-half { transform: translate(22px, 20px); }
  .home-cursor-direction.is-bottom-half { transform: translate(calc(-100% - 22px), calc(-100% - 20px)); }
  .home-cursor-direction.is-right-half.is-bottom-half { transform: translate(22px, calc(-100% - 20px)); }
  /* The character outlines match the Projects arrowhead without its shaft. */
  .home-cursor-direction span { grid-area: 1 / 1; }
  .home-cursor-direction .cursor-arrow--previous,
  .home-cursor-direction.is-previous .cursor-arrow--next { visibility: hidden; }
  .home-cursor-direction .cursor-arrow--next,
  .home-cursor-direction.is-previous .cursor-arrow--previous { visibility: visible; }
  body:not(.home-cursor-ready) .home-cursor-direction,
  body:has(#panel[open]) .home-cursor-direction { display: none; }
  body:has(#panel[open]) .home-crosshair, body:has(#panel[open]) .home-cursor-cross { display: none; }
  body:has(#panel[open]) .home-cursor-logo { display: none; }
  .panel.is-background-hover, .panel.is-background-hover .panel-content { cursor: default; }
  .panel-return-cursor {
    position: fixed; z-index: 5; pointer-events: none; display: none;
    width: 0; height: 0; color: #fff; font: 20px var(--book);
  }
  .panel.is-background-hover .panel-return-cursor, .panel.is-card-hover .panel-return-cursor, .panel.is-control-hover .panel-return-cursor, .panel.is-filter-hover .panel-return-cursor { display: block; }
  .panel-return-cursor .cursor-arm {
    position: absolute; display: block; background: rgba(255,255,255,var(--arm-opacity, .28));
    transition: background-color 180ms ease, width 180ms ease, height 180ms ease;
  }
  .cursor-arm--left { right: 17px; top: 0; width: 100vw; height: var(--arm-left, 1px); --arm-opacity: var(--arm-opacity-left, .28); transform: translateY(-50%); }
  .cursor-arm--right { left: 17px; top: 0; width: 100vw; height: var(--arm-right, 1px); --arm-opacity: var(--arm-opacity-right, .28); transform: translateY(-50%); }
  .cursor-arm--up { bottom: 17px; left: 0; height: 100vh; width: var(--arm-up, 1px); --arm-opacity: var(--arm-opacity-up, .28); transform: translateX(-50%); }
  .cursor-arm--down { top: 17px; left: 0; height: 100vh; width: var(--arm-down, 1px); --arm-opacity: var(--arm-opacity-down, .28); transform: translateX(-50%); }
  .panel-cursor-cross {
    position: fixed; z-index: 6; pointer-events: none; display: none;
    width: 34px; height: 34px; transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
  .panel.is-background-hover .panel-cursor-cross, .panel.is-card-hover .panel-cursor-cross, .panel.is-control-hover .panel-cursor-cross, .panel.is-filter-hover .panel-cursor-cross { display: block; }
  .panel.is-pointer-inside .panel-return-cursor,
  .panel.is-pointer-inside .panel-cursor-cross { display: block; }
  .panel-cursor-cross::before, .panel-cursor-cross::after {
    content: ''; position: absolute; background: #fff;
  }
  .panel-cursor-cross::before { width: 34px; height: 2px; left: 0; top: 16px; }
  .panel-cursor-cross::after { width: 2px; height: 34px; left: 16px; top: 0; }
  .panel-return-cursor span {
    position: absolute; right: 17px; bottom: 17px; white-space: nowrap;
    color: #fff; font: 19.5px/24px var(--book);
  }
  .panel-return-cursor svg { position: absolute; left: 17px; bottom: 17px; width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
  .panel.is-filter-hover .panel-return-cursor svg { display: none; }
  .panel.is-filter-hover .panel-return-cursor .panel-back-label { display: none; }
  .panel.is-back-obstructed .panel-return-cursor .panel-back-label,
  .panel.is-back-obstructed .panel-return-cursor svg { visibility: hidden; }
  .panel-return-cursor .panel-contact-label { display: none; }
  .panel.is-contact-hover .panel-return-cursor .panel-contact-label { display: block; left: 17px; right: auto; bottom: 17px; transform: none; }
  .panel.is-contact-target .panel-return-cursor .panel-back-label,
  .panel.is-contact-target .panel-return-cursor svg { display: none; }
  .panel-return-cursor .panel-project-label { display: none; }
  .panel-return-cursor .panel-project-label { font-size: 25px; line-height: 30px; }
  .panel-return-cursor .panel-location-label, .panel-return-cursor .panel-year-label { display: none; font-weight: 300; }
  .panel-return-cursor .panel-year-label { font-family: GoogleSansCode, monospace; font-weight: 300; }
  .panel.is-card-hover .panel-return-cursor .panel-back-label, .panel.is-card-hover .panel-return-cursor svg,
  .panel.is-control-hover .panel-return-cursor .panel-back-label, .panel.is-control-hover .panel-return-cursor svg { display: none; }
  .panel.is-card-hover .panel-return-cursor .panel-project-label { display: block; right: 17px; left: auto; }
  .panel.is-card-hover .panel-return-cursor .panel-location-label { display: block; right: 17px; left: auto; top: 17px; bottom: auto; }
  .panel.is-card-hover .panel-return-cursor .panel-year-label:not(:empty) { display: block; left: 17px; right: auto; bottom: 17px; top: auto; }
  .panel-return-cursor .panel-project-label.is-revealing,
  .panel-return-cursor .panel-location-label.is-revealing {
    animation: cursor-label-reveal-left 1000ms cubic-bezier(.22,1,.36,1) both;
  }
  .panel-return-cursor.is-cursor-left .panel-project-label.is-revealing,
  .panel-return-cursor.is-cursor-left .panel-location-label.is-revealing,
  .panel-return-cursor .panel-year-label.is-revealing {
    animation: cursor-label-reveal-right 1000ms cubic-bezier(.22,1,.36,1) both;
  }
  .panel-return-cursor .panel-back-label.is-revealing,
  .panel-return-cursor .panel-contact-label.is-revealing {
    animation: cursor-label-reveal-left 1000ms cubic-bezier(.22,1,.36,1) both;
  }
  .panel-return-cursor .panel-contact-label.is-revealing { animation-name: cursor-label-reveal-right; }
  .panel-return-cursor svg.is-revealing {
    animation: cursor-label-reveal-right 1000ms cubic-bezier(.22,1,.36,1) both;
  }
  .panel-return-cursor .panel-location-label.is-revealing,
  .panel-return-cursor.is-cursor-left .panel-location-label.is-revealing { animation-delay: 500ms; }
  .panel-return-cursor .panel-year-label.is-revealing { animation-delay: 1000ms; }
  .panel-return-cursor.is-cursor-left .panel-year-label.is-revealing { animation-name: cursor-label-reveal-left; }
  @keyframes cursor-label-reveal-left {
    from { clip-path: inset(0 0 0 100%); opacity: 0; }
    to { clip-path: inset(0); opacity: 1; }
  }
  .panel.is-card-hover .panel-return-cursor.is-cursor-left .panel-project-label { right: auto; left: 17px; }
  .panel.is-card-hover .panel-return-cursor.is-cursor-left .panel-location-label { right: auto; left: 17px; }
  .panel.is-card-hover .panel-return-cursor.is-cursor-left .panel-year-label:not(:empty) { left: auto; right: 17px; }
  .panel .panel-return-cursor .panel-project-label.is-coming-soon {
    animation: coming-soon-reveal 1000ms cubic-bezier(.22,1,.36,1) both;
  }
  @keyframes coming-soon-reveal {
    from { clip-path: inset(0 100% 0 0); opacity: 0; }
    to { clip-path: inset(0); opacity: 1; }
  }
}

.panel-content {
  min-height: 100%;
  padding: clamp(110px,15vh,180px) var(--edge) 60px;
}

.panel:not(.is-image) .panel-content {
  padding-top: var(--panel-heading-top);
  padding-bottom: 104px;
}
.panel:not(.is-image) .panel-content:has(> .back-to-top--list) {
  position: relative;
  /* Keep the final project clear of the bottom controls and vertical label. */
  padding-bottom: calc(var(--controls-bottom) + 210px);
}

/* Modal controls belong inside the dialog's top layer so they remain usable. */
.language-switch--panel {
  position: fixed;
  inset: 0;
  z-index: 2;
  color: var(--ink);
  pointer-events: none;
}

.language-switch--panel button {
  position: fixed;
  min-width: 0;
  min-height: 0;
  pointer-events: auto;
}
.panel .back-to-top--panel { position: fixed; z-index: 3; pointer-events: auto; }
.back-to-top--panel[hidden] { display: none; }

body:has(.panel[open]) .language-switch--desktop,
body:has(.panel[open]) .language-switch--mobile,
body:has(.panel[open]) .back-to-top--desktop,
body:has(.panel[open]) .back-to-top--footer { visibility: hidden; }

.close-panel {
  position: fixed;
  right: var(--edge);
  top: 40px;
  z-index: 2;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: #aaa;
}

.close-panel > span {
  font-family: Arial,sans-serif;
  font-size: 32px;
  font-weight: 300;
}
.close-panel .close-label { font: inherit; }
.panel-brand,.close-panel .close-label,.close-panel .close-symbol { display: none; }
.close-panel .return-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 18px);
  left: auto;
  width: max-content;
  font-family: var(--book);
  font-size: 19.5px;
  font-weight: 400;
  line-height: 1.55;
  white-space: nowrap;
  transform-origin: right center;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
}
@media (hover: hover) {
  .close-panel:hover .return-label { opacity: 1; transition-duration: 180ms; }
  .close-panel:hover,.menu-toggle:hover { --arrow-opacity: 1; --arrow-stroke: 2.25; --arrow-scale: 1.25; --arrow-duration: 180ms; }
}
@media(min-width:800px) {
  .panel:not(.is-image) .close-panel { top: calc(20px + clamp(22px, 2.75vw, 44px) - 16px); }
}
.language-switch--panel button { transition: opacity 180ms ease; }
@media(max-width:799px) {
  :root { --section-label-size: 45px; --panel-section-size: 45px; --section-label-line-height: 1.6; }
  .close-panel .return-label { right: calc(100% + 14px); }
}
.panel-brand-letter { display: inline-grid; grid-template-areas: 'letter'; }
.panel-brand-letter::after { content: attr(data-letter); grid-area: letter; font-weight: 450; visibility: hidden; }
.panel-brand-glyph { grid-area: letter; font-weight: 450; animation: var(--brand-weight-animation, none); animation-delay: var(--weight-delay, 0ms); }
.panel-back-icon { display: block; width: 24px; height: 24px; flex-shrink: 0; stroke-linecap: round; stroke-linejoin: round; }
.close-panel { color: #fff; }
.close-panel::before { content: ''; position: absolute; inset: -6px -10px; }
.close-panel:is(:active, .is-pressed),html[data-input="keyboard"] .close-panel:focus-visible { --arrow-opacity: 1; --arrow-stroke: 2.25; --arrow-scale: 1.25; --arrow-duration: 180ms; }
.close-panel:is(:active, .is-pressed) .return-label,html[data-input="keyboard"] .close-panel:focus-visible .return-label { opacity: 1; transition-duration: 180ms; }
.close-panel:is(:active, .is-pressed) { --arrow-duration: 0ms; }
.close-panel:is(:active, .is-pressed) .return-label { transition-duration: 0ms; }

.panel h2 {
  font-family: var(--book);
  font-size: var(--panel-heading-size);
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0 0 56px;
}





/* Share word shaping, but keep page headings independent of navigation fitting. */
.navigation,
.panel:not(.is-image) #panel-title {
  font-family: var(--book);
  font-size: var(--section-label-size);
  font-weight: var(--section-label-weight);
  line-height: var(--section-label-line-height);
  letter-spacing: normal;
  word-spacing: normal;
  font-kerning: normal;
  text-transform: uppercase;
}

.panel:not(.is-image) #panel-title {
  font-size: var(--panel-section-size);
}

.panel-nav-text { display: inline-block; }
.panel-nav-text .nav-glyph {
  font-weight: var(--section-label-weight);
  animation: none;
  transition: none;
}
.panel-title-return { display: block; text-align: left; text-transform: inherit; }
.panel-title-return .panel-nav-text {
  transform: scale(1);
  transform-origin: center center;
  transition: transform 180ms ease;
}
.panel:not(.is-returning) #panel-title:not(.is-entering) .panel-title-return:focus-visible .panel-nav-text { transform: scale(.9); }
@media(hover:hover) {
  .panel:not(.is-returning) #panel-title:not(.is-entering) .panel-title-return:hover .panel-nav-text { transform: scale(.9); }
}

@media(min-width:800px) {
  .panel:not(.is-image) #panel-title {
    position: sticky;
    top: var(--panel-title-peek-top, -44px);
    z-index: 1;
    width: max-content;
    max-width: calc(100% - 70px);
    transition: top 300ms ease;
  }
  .panel:not(.is-image) .close-panel { top: 21px; }
  .panel:not(.is-image) .close-panel {
    top: calc(var(--panel-heading-top) + var(--panel-heading-size) * 1.1 / 2 - 12px);
    right: calc(var(--edge) + 78px);
  }
  .panel.title-revealed:not(.is-image) #panel-title,
  .panel:not(.is-image) #panel-title:hover,
  .panel:not(.is-image) #panel-title:focus-within,
  .panel:not(.is-image) #panel-title:focus-visible { top: var(--panel-heading-top); }
}

.panel h3 {
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 20px;
}

.panel p {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 104px;
}

.navigation > a { text-transform: uppercase; }
.project-filters { --filter-muted: #fff; --filter-font-size: 26px; display: flex; align-items: flex-start; gap: 0; width: max-content; margin: -30px 0 -98px -12px; padding: 0 12px 130px; position: relative; z-index: 3; font-family: GoogleSansCode, monospace; }
.project-filter { position: static; }
.project-filter-trigger { border: 0; padding: 6px 8px; background: none; color: var(--filter-muted); font: 300 var(--filter-font-size)/1.25 GoogleSansCode, monospace; cursor: pointer; transition: color 200ms ease; }
.project-filter-options { position: absolute; top: 48px; left: 12px; display: flex; align-items: center; gap: 2px; width: max-content; max-width: calc(100vw - 100px); overflow-x: auto; color: var(--filter-muted); font: 300 var(--filter-font-size)/1.25 GoogleSansCode, monospace; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 220ms ease, transform 220ms ease, visibility 220ms; }
.project-filter-options { scrollbar-width: none; --sort-option-gap: 2px; }
.project-filter-options::-webkit-scrollbar { display: none; }
.project-filter-options span { display: block; padding: 8px 0; white-space: nowrap; transition: color 200ms ease; }
.project-filter[data-filter="year"] .project-filter-options > span[aria-disabled="false"] { cursor: pointer; }
.project-filter:nth-child(2) .project-filter-options { left: 12px; }
.project-filter-options button { border: 0; padding: 8px 8px; background: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; transition: color 200ms ease; }
.project-sort-controls { display: inline-flex; flex-direction: row; flex-shrink: 0; align-self: center; gap: 0; margin-left: 8px; margin-right: calc(10px - var(--sort-option-gap)); }
.project-filter-options button[data-project-sort] { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 1.25em; padding: 2px; }
.project-filter-options button[data-project-sort]::before { content: ''; position: absolute; top: 0; bottom: 0; }
.project-filter-options button[data-project-sort]:first-child::before { left: -10px; right: 0; }
.project-filter-options button[data-project-sort]:last-child::before { left: 0; right: -10px; }
.project-filter-options button[data-project-sort] svg { width: calc(1cap * 5 / 6); height: calc(1cap * 7 / 6); flex-shrink: 0; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.project-filter-options button[data-project-sort] path { vector-effect: non-scaling-stroke; stroke-width: .095em; }
.project-filter-options button[data-project-sort][aria-pressed="true"] path { stroke-width: .115em; }
.project-filters .project-filter-options button.project-sort-toggle {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  padding-inline: 0;
  gap: 2px;
  opacity: 1;
  color: #fff;
}
.project-sort-toggle svg { opacity: .4; }
.project-sort-controls { width: 36px; }
.project-sort-toggle[data-project-sort="asc"] svg[data-direction="asc"],
.project-sort-toggle[data-project-sort="desc"] svg[data-direction="desc"] { opacity: 1; }
.project-filter-options span.is-range-selected, .project-filter-options button[aria-pressed="true"] { color: #fff; font-weight: 500; }
/* Equal label columns keep each row's first label at its existing origin. */
.project-filter[data-filter="size"] .project-filter-options > button { min-width: 2ch; box-sizing: content-box; text-align: left; }
.project-filter[data-filter="year"] .project-filter-options > span { flex: 0 0 auto; }
.project-filter[data-filter="year"] .project-filter-options > span:nth-of-type(odd) { width: 4ch; }
.project-filter[data-filter="year"] .project-filter-options > span:nth-of-type(even) { width: 1ch; }
.project-alphabet-options { left: 12px; }
.project-alphabet-options button { padding-inline: 3px; }
.project-grid .project-card[hidden] { display: none; }
.project-filter.is-open .project-filter-options { opacity: 1; visibility: visible; transform: translateY(0); }
.project-filter-suboptions { position: absolute; top: 96px; left: 12px; display: flex; gap: 2px; width: max-content; max-width: calc(100vw - 100px); overflow-x: auto; scrollbar-width: none; color: var(--filter-muted); font: 300 var(--filter-font-size)/1.25 GoogleSansCode, monospace; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 220ms ease, transform 220ms ease, visibility 220ms; }
.project-filter-suboptions::-webkit-scrollbar { display: none; }
.project-filter[data-filter="size"] .project-filter-suboptions { padding-left: var(--paired-option-offset, 0px); }

.project-filter-suboptions button { border: 0; padding: 6px 8px; background: none; color: inherit; font: inherit; white-space: nowrap; cursor: pointer; transition: color 200ms ease; }
.project-filter-suboptions button[aria-pressed="true"] { color: #fff; font-weight: 500; }
.project-filter.is-architecture-open .project-filter-suboptions { opacity: 1; visibility: visible; transform: translateY(0); }
.project-filter:first-child .project-filter-options { gap: 2px; text-transform: lowercase; }
.project-filter-trigger[aria-pressed="true"] { color: #fff; font-weight: 500; }
/* Hover and selection share emphasis independently within each filter row. */
.project-filter-trigger,
.project-filter-options button,
.project-filter-options > span,
.project-filter-suboptions > button {
  opacity: .5;
  font-weight: 400;
  transition: opacity 200ms ease, color 200ms ease;
}
/* Dim siblings only in the row that contains an active item. */
.project-filters:has(.project-filter-trigger:is(:hover, :focus-visible, [aria-pressed="true"])) .project-filter-trigger:not(:hover, :focus-visible, [aria-pressed="true"]),
.project-filter-options:has(button:not(.project-sort-toggle):is(:hover, :focus-visible, [aria-pressed="true"]), > span:is(.is-range-hover, .is-range-selected)) :is(button, span):not(.project-sort-toggle, :disabled, [aria-disabled="true"], :hover, :focus-visible, [aria-pressed="true"], .is-range-hover, .is-range-selected),
.project-filter-suboptions:has(> button:is(:hover, :focus-visible, [aria-pressed="true"])) > button:not(:disabled, :hover, :focus-visible, [aria-pressed="true"]) {
  opacity: .25;
  color: #fff;
  font-weight: 300;
}
.project-filter-trigger:is(:hover, :focus-visible, [aria-pressed="true"]),
.project-filter-options button:is(:hover, :focus-visible, [aria-pressed="true"]),
.project-filter-options > span:is(.is-range-hover, .is-range-selected),
.project-filter-suboptions > button:is(:hover, :focus-visible, [aria-pressed="true"]) {
  opacity: 1;
  color: #fff;
  font-weight: 500;
}

/* Size previews the parent; paired details highlight only when selected. */
.project-filters .project-filter[data-filter="size"].is-architecture-open .project-filter-options button[aria-expanded="true"],
.project-filters .project-filter[data-filter="size"] .project-filter-suboptions > button[aria-pressed="true"] {
  opacity: 1;
  color: #fff;
  font-weight: 500;
}
.project-filters .project-filter[data-filter="size"] .project-filter-suboptions > button:not([aria-pressed="true"]) {
  opacity: .5;
  color: var(--filter-muted);
  font-weight: 400;
}

/* Empty filters remain readable but do not react to pointers or selection. */
.project-filters .project-filter .project-filter-options button:disabled,
.project-filters .project-filter .project-filter-suboptions button:disabled,
.project-filters .project-filter .project-filter-options > span[aria-disabled="true"] {
  opacity: .1;
  color: var(--filter-muted);
  font-weight: 300;
  pointer-events: none;
  cursor: default;
}

/* Keep desktop filter rows in flow so wrapped options push the cards down. */
@media (min-width:800px) {
  .project-filters {
    display: grid;
    grid-template-columns: repeat(6, max-content) minmax(0, 1fr);
    grid-template-rows: 48px minmax(48px, auto) minmax(48px, auto);
    width: calc(100% + 24px);
    margin: -30px -12px 0;
    padding: 0 12px;
  }
  .project-filter { display: contents; }
  .project-filter-trigger { grid-row: 1; }
  .project-filter:first-child .project-filter-trigger { grid-column: 1; }
  .project-filter:nth-child(2) .project-filter-trigger { grid-column: 2; }
  .project-filter:nth-child(3) .project-filter-trigger { grid-column: 3; }
  .project-filter:nth-child(4) .project-filter-trigger { grid-column: 4; }
  .project-filter:nth-child(5) .project-filter-trigger { grid-column: 5; }
  .project-all-trigger { grid-column: 6; }
  .project-filter-options,
  .project-filter-suboptions {
    display: none;
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  .project-filter-suboptions { grid-row: 3; }
  .project-filter.is-open .project-filter-options,
  .project-filter.is-open.is-architecture-open .project-filter-suboptions { display: flex; }
  .project-filters + .project-grid { margin-top: 24px; }
}

@media (max-width:799px) {
  .project-filters {
    display: grid;
    grid-template-columns: repeat(6, max-content) 1fr;
    gap: 8px clamp(6px, 2vw, 16px);
    width: 100%;
    margin: -20px 0 35px;
    padding: 0;
  }
  .project-filter { display: contents; }
  .project-filter-trigger { grid-row: 1; padding: 6px 0; }
  .project-filter:first-child .project-filter-trigger { grid-column: 1; }
  .project-filter:nth-child(2) .project-filter-trigger { grid-column: 2; }
  .project-filter:nth-child(3) .project-filter-trigger { grid-column: 3; }
  .project-filter:nth-child(4) .project-filter-trigger { grid-column: 4; }
  .project-filter:nth-child(5) .project-filter-trigger { grid-column: 5; }
  .project-all-trigger { grid-column: 6; }
  .project-filter-options,
  .project-filter-suboptions {
    display: none;
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0 16px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    font-size: var(--filter-font-size);
    text-align: left;
  }
  .project-filter-suboptions { grid-row: 3; }
  .project-filter.is-open .project-filter-options,
  .project-filter.is-open.is-architecture-open .project-filter-suboptions { display: flex; }
  .project-filter:first-child .project-filter-options { gap: 0 16px; }
  .project-filter-options button,
  .project-filter-suboptions button { padding: 6px 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: left; }
  .project-filter-suboptions button { padding-block: 3px; }
  /* Offset the row gap so every sorting control has exactly 10px after it. */
  .project-filter-options { --sort-option-gap: 16px; }
  .project-filter:nth-child(2) .project-filter-options { gap: 0 6px; --sort-option-gap: 6px; }
  .project-sort-controls { margin-left: 0; }
  .project-filter.is-open .project-alphabet-options {
    --sort-option-gap: 0px;
    display: grid;
    grid-template-columns: max-content repeat(13, minmax(0, 1fr));
    gap: 0;
  }
  .project-alphabet-options button { min-width: 0; text-align: left; }
  .project-alphabet-options > .project-sort-controls {
    grid-column: 1;
    grid-row: 1;
  }
  /* Sorting leads the first row; # leads the second, with 13 letters per row. */
  .project-alphabet-options > button:first-of-type {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    width: calc(1cap * 5 / 3 + 2px);
    padding-inline: 0;
    text-align: right;
  }
}

@media (min-width:800px) and (max-width: 1199px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.project-card {
  text-align: left;
  display: block;
  opacity: 0;
  transition: opacity 900ms ease;
  transition-delay: var(--card-reveal-delay, 0ms);
}
.project-card.is-revealed { opacity: 1; }
.project-card .project-card-image {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0;
  transform: scale(.94);
  transition: transform 900ms cubic-bezier(.2,.7,.25,1);
  transition-delay: var(--card-reveal-delay, 0ms);
}
.project-card.is-revealed .project-card-image { transform: scale(1); }
.project-card .project-card-info {
  display: grid;
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 1;
  color: #fff;
  font-size: 25px;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0,0,0,.75);
  pointer-events: none;
}
.project-card-caption { display: block; grid-area: 1 / 1; }
.project-card-area,
.project-card-year,
.project-card-region,
.project-card-location,
.project-card-climate,
.project-card-context,
.project-card-type {
  display: block;
  grid-area: 2 / 1;
  width: fit-content;
  margin-top: 6px;
  font: 300 19.5px/1.3 GoogleSansCode, monospace;
  opacity: 0;
  visibility: hidden;
  clip-path: inset(0 100% 0 0);
  transition: opacity 300ms ease, clip-path 300ms ease, visibility 300ms;
}
.project-grid[data-detail-filter="size"] .project-card-area,
.project-grid[data-detail-filter="year"] .project-card-year,
.project-grid[data-detail-filter="region"] .project-card-region,
.project-grid[data-detail-filter="location"] .project-card-location,
.project-grid[data-detail-filter="climate"] .project-card-climate,
.project-grid[data-detail-filter="context"] .project-card-context,
.project-grid[data-detail-filter="type"] .project-card-type {
  opacity: 1;
  visibility: visible;
  clip-path: inset(0);
}
.project-card .project-card-caption.chinese-text {
  font-size: 25px;
}
@media (min-width:800px) and (hover: hover) {
  .project-card:hover .project-card-info { opacity: 0; }
}
.project-grid .project-card:nth-child(-n+3) .project-card-image {
  filter: brightness(calc(1 - var(--top-row-fade, 0) * .65));
  opacity: calc(1 - var(--top-row-fade, 0));
}

.project-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease, filter 300ms ease;
}

@media(hover:hover) {
  .project-grid:has(.project-card:hover) .project-card:not(:hover) img { filter: brightness(.55); }
}
.project-grid:has(.project-card:focus-visible) .project-card:not(:focus-visible) img { filter: brightness(.55); }

.project-card > span {
  display: block;
  font-size: 25px;
  margin-top: 18px;
}

@media(min-width:800px) {
  a.news-card > :is(.news-card-title, .news-card-metadata) { display: none; }
}

.panel.is-image {
  background: var(--paper);
  color: white;
}

.panel.is-image .panel-content {
  height: 100%;
  padding: 90px var(--edge) 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-image {
  width: auto;
  height: auto;
  flex-shrink: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.full-image[role="button"] { cursor: pointer; }
.image-coming-soon {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font: 25px/1.2 var(--book);
  text-shadow: 0 1px 8px rgba(0,0,0,.75);
  pointer-events: none;
}
@media(min-width:800px) and (hover:hover) {
  .image-coming-soon { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.no-script {
  padding: 30px;
}

.site-footer {
  position: relative;
  background: var(--paper);
  color: #fff;
  padding: 224px var(--edge) 24px;
  min-height: 310px;
  font-size: clamp(16px,1.04vw,21px);
  line-height: 1.55;
}

.footer-main {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px,2vw,44px);
  row-gap: 44px;
  align-items: center;
}
.footer-row { display: flex; align-items: center; gap: 28px; }
@media(min-width:800px) {
  .site-footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: var(--controls-bottom);
  }
  .footer-row { line-height: 32px; }
}
.footer-copyright { font-size: 13px; color: #aaa; white-space: nowrap; }
.list-copyright {
  display: block;
  position: absolute;
  left: var(--edge);
  bottom: var(--controls-bottom);
  line-height: 32px;
}
.footer-actions { display: flex; flex-shrink: 0; align-items: center; gap: 16px; }
.footer-language-slot { flex: 0 0 85px; height: 32px; visibility: hidden; }

.footer-contacts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px clamp(18px,2vw,44px); font-style: normal; }
:is(.footer-contacts a, .contact-details > a),.footer-contacts span { white-space: nowrap; }
:is(.footer-contacts a, .contact-details > a) { position: relative; display: inline-grid; grid-template-areas: 'contact feedback'; grid-template-columns: max-content 0; align-items: baseline; color: #999; font-weight: 400; transition: color 180ms ease, font-weight 180ms ease; }
.contact-copy-status { grid-area: feedback; width: max-content; margin-left: 8px; white-space: nowrap; pointer-events: none; opacity: 0; }
:is(.footer-contacts a, .contact-details > a) > span { grid-area: contact; justify-self: center; text-align: center; transform-origin: center; }
.footer-contact-size { visibility: hidden; font-weight: 500; pointer-events: none; }
@media (hover: hover) {
  :is(.footer-contacts a, .contact-details > a):hover { color: #fff; font-weight: 500; }
}
html[data-input="keyboard"] :is(.footer-contacts a, .contact-details > a):focus-visible,
.contact-details > a.is-cursor-target { color: #fff; font-weight: 500; }
.footer-socials { display: flex; align-items: center; gap: 14px; }
.footer-socials button,.footer-socials > a { position: relative; display: block; width: 24px; height: 24px; flex-shrink: 0; cursor: default; }
.footer-socials > a { cursor: pointer; }
.footer-socials svg { display: block; width: 22px; height: 22px; fill: currentColor; opacity: .55; transform: scale(1); transition: opacity 180ms ease, transform 180ms ease; }
.footer-socials .wechat-trigger { position: relative; cursor: pointer; opacity: 1; }
@media (hover: hover) {
  .footer-socials button:hover svg,.footer-socials > a:hover svg { opacity: 1; transform: scale(1.25); }
}
html[data-input="keyboard"] .footer-socials button:focus-visible svg,html[data-input="keyboard"] .footer-socials > a:focus-visible svg,
.footer-socials .is-cursor-target svg,
.panel.is-social-row-aligned .contact-socials svg { opacity: 1; transform: scale(1.25); }
.wechat-id,.social-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  transform: none;
  font-size: inherit;
  font-weight: 400;
  text-align: left;
  line-height: 1.55;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
.is-tooltip-visible :is(.wechat-id,.social-tooltip) { opacity: 1; visibility: visible; }
.is-tooltip-fading :is(.wechat-id,.social-tooltip) { opacity: 0; visibility: visible; transition: opacity 1.5s ease; }
.footer-socials > a:is(.is-tooltip-visible, .is-tooltip-fading) .social-tooltip { pointer-events: auto; cursor: pointer; }
.wechat-copy-hint,.social-hint,.contact-copy-status { display: block; font: 400 14px/1.55 var(--book); color: #999; }
.back-to-top { position: relative; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; font: 400 19.5px/1.55 var(--book); color: #fff; }
.back-to-top--desktop {
  position: absolute;
  left: calc(100% + 22px + var(--back-to-top-offset, 0px));
  top: 50%;
  transform: translateY(-50%);
  color: inherit;
  opacity: var(--back-to-top-opacity, 0);
  visibility: hidden;
  pointer-events: none;
}
.back-to-top--desktop.is-visible { visibility: visible; pointer-events: auto; }
.back-to-top--footer { visibility: hidden; }
.back-to-top--list { display: none; }
@media (min-width:800px) {
  .language-switch--desktop button { position: relative; }
  :is(.language-switch--desktop, .language-switch--panel) button::before {
    content: ''; position: absolute; top: -6px; bottom: -6px;
    left: -7.5px; right: -7.5px;
  }
  :is(.language-switch--desktop, .language-switch--panel) button[data-language='en']::before { left: -12px; }
  .language-switch--desktop button[data-language='cn']::before { right: -11px; }
  .language-switch--panel button[data-language='cn']::before { right: -8px; }
  :is(.back-to-top--desktop, .back-to-top--panel)::before {
    content: ''; position: absolute; top: -12px; bottom: -12px;
    left: -11px; right: -12px;
  }
  .back-to-top--panel::before { left: -8px; }
}
.back-to-top-label {
  text-transform: uppercase;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  width: max-content;
  white-space: nowrap;
  transform-origin: left bottom;
  transform: rotate(-90deg) translateY(50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.5s ease;
}
.back-to-top:hover .back-to-top-label,.back-to-top:focus-visible .back-to-top-label { opacity: 1; transition-duration: 180ms; }
.back-to-top svg {
  width: 20px;
  height: 20px;
}
.back-to-top svg,.close-panel .panel-back-icon,.menu-toggle .menu-icon {
  opacity: var(--arrow-opacity, .45);
  stroke-width: var(--arrow-stroke, 1.5);
  transform: scale(var(--arrow-scale, 1));
  transform-origin: center;
  transition: opacity var(--arrow-duration, 1.5s) ease, stroke-width var(--arrow-duration, 1.5s) ease, transform var(--arrow-duration, 1.5s) ease;
}
.back-to-top:hover svg,.back-to-top:focus-visible svg {
  --arrow-opacity: 1;
  --arrow-stroke: 2.25;
  --arrow-scale: 1.25;
  --arrow-duration: 180ms;
}
.contact-details { display: grid; gap: 12px; font-size: 22px; font-weight: 300; line-height: 1.5; }
.contact-details > a { position: relative; width: max-content; max-width: 100%; line-height: inherit; }
.contact-details > a::before { content: ''; position: absolute; inset: -6px -12px; }
.contact-socials > :is(button, a)::before { content: ''; position: absolute; inset: -14px -7px -12px; }
.contact-socials > :first-child::before { left: -12px; }
.contact-socials > :last-child::before { right: -12px; }
.contact-details > a > span { justify-self: start; text-align: left; transform-origin: left center; }
.contact-details .contact-socials { margin-top: 8px; margin-left: 5px; padding-bottom: 0; }
.contact-socials { font-size: 19.5px; }
.contact-socials :is(.wechat-id, .social-tooltip) { top: calc(100% + 12px); bottom: auto; }
@media (max-width: 359px) {
  .contact-details { font-size: 19px; }
}

@media(min-width:1800px) {
  .news-copy h2 {
    margin-bottom: 40px;
  }
}

@media(min-width:800px) and (max-width:1199px) {
  .footer-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; }
  .footer-main { grid-column: 1 / -1; grid-row: 1; flex-direction: column; gap: 12px; }
  .footer-contacts { flex-direction: column; align-items: center; }
  .footer-copyright { grid-column: 1; grid-row: 2; }
  .footer-actions { grid-column: 2; grid-row: 2; justify-self: end; }
}

@media(max-width:1199px) {
  .footer-socials { padding-bottom: calc(1.55em + 32px); }
  .wechat-id,.social-tooltip { top: calc(100% + 12px); bottom: auto; }
}


@media(max-width:799px) {
  :root {
    --edge: 24px;
    --type: 29px;
    --brand-top: 18px;
  }
  .brand {
    font-size: 32px;
    letter-spacing: .035em;
    transform-origin: left center;
  }
  html[data-input="keyboard"] .menu-toggle:focus-visible { --arrow-opacity: 1; --arrow-stroke: 2.25; --arrow-scale: 1.25; --arrow-duration: 180ms; }
  .mobile-controls {
    --mobile-control-gap: 20px;
    display: flex;
    align-items: center;
    gap: var(--mobile-control-gap);
    position: fixed;
    right: 32px;
    top: calc(var(--brand-top) + 3px);
    z-index: 31;
  }
  .menu-toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    position: relative;
    width: 16px;
    height: 32px;
    color: #fff;
    transition: color 180ms ease;
    animation-duration: 350ms;
  }
  .menu-toggle::before { content: ''; position: absolute; inset: -6px -14px; }
  .language-switch--desktop { display: none; }
  .language-switch--mobile {
    display: flex;
    position: fixed;
    right: calc(var(--edge) + 40px);
    bottom: max(var(--controls-bottom), env(safe-area-inset-bottom));
    gap: var(--mobile-control-gap);
    color: #fff;
    animation: intro-fade 350ms ease-in-out both;
    animation-delay: calc(var(--intro-text-duration, 2s) + var(--intro-move-duration, 2s));
  }
  .language-switch--mobile button { position: relative; min-width: 0; }
  .language-switch--mobile button:last-child { left: -5px; }
  .language-switch--mobile button::before { content: ''; position: absolute; inset: -6px; }
  .navigation {
    display: flex;
    inset: 0;
    padding: 120px 32px 70px;
    background: var(--frost-tint);
    -webkit-backdrop-filter: blur(var(--frost-blur)) saturate(110%);
    backdrop-filter: blur(var(--frost-blur)) saturate(110%);
    justify-content: center;
    font-size: var(--section-label-size);
    line-height: var(--section-label-line-height);
    gap: 7px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 220ms ease, visibility 0s 220ms;
    z-index: 30;
  }
  .navigation.intro-ready { visibility: hidden; }
  .navigation a {
    translate: none;
    pointer-events: none;
  }
  .navigation .intro-step {
    animation: none;
    opacity: 0;
    transform-origin: left center;
    transition: opacity 300ms ease;
  }
  .navigation .nav-glyph { animation: none; }
  .menu-open .navigation .nav-glyph {
    animation: nav-glyph-reveal 500ms ease backwards;
    animation-delay: calc(var(--menu-reveal-delay, 650ms) + var(--nav-item-delay, 0ms) + var(--glyph-delay, 0ms));
  }
  .news {
    scroll-margin-top: var(--nav-header-height, 72px);
  }
  .menu-open .navigation.intro-ready {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .menu-open .navigation a { pointer-events: auto; }
  .menu-open .navigation .intro-step {
    opacity: 1;
    transition-duration: var(--nav-reveal-duration, 900ms);
    transition-timing-function: ease-in-out;
    transition-delay: var(--menu-reveal-delay, 650ms);
  }
  .menu-open .navigation a:nth-child(2) .intro-step { transition-delay: calc(var(--menu-reveal-delay, 650ms) + var(--nav-reveal-stagger, 450ms)); }
  .menu-open .navigation a:nth-child(3) .intro-step { transition-delay: calc(var(--menu-reveal-delay, 650ms) + var(--nav-reveal-stagger, 450ms) * 2); }
  .menu-open .navigation a:nth-child(4) .intro-step { transition-delay: calc(var(--menu-reveal-delay, 650ms) + var(--nav-reveal-stagger, 450ms) * 3); }
  .menu-open .header-backdrop { opacity: 0; }
  .menu-open .navigation a,.menu-open .brand {
    color: var(--ink);
    text-shadow: none;
  }
  .menu-open .brand {
    z-index: 31;
  }
  .scroll-cue { bottom: 12px; }
  .news-item {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .news-gallery {
    width: 100%;
  }
  .news-image {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }
  .news-image img {
    position: absolute;
    inset: 0;
  }
  .news-copy,.news-item:nth-child(even) .news-copy {
    position: sticky;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    top: calc(var(--nav-header-height, 72px) - 120px);
    z-index: 2;
    background: transparent;
    pointer-events: none;
    padding: 38px 24px 24px;
    min-height: 350px;
  }
  .news-copy-content {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    text-shadow: 0 1px 6px rgb(0 0 0 / .45);
  }
  .news-copy h2 {
    font-size: 30px;
    line-height: 1.2;
    max-width: 100%;
  }
  .news-heading-row { flex-basis: 100%; margin-bottom: 6px; }
  .news-copy-content > .news-year {
    margin-top: 0;
    font-size: 20px;
    font-weight: 200;
  }
  .news-copy-content > .news-year::before {
    content: '/';
    display: inline-block;
    margin-right: 8px;
    font-weight: 300;
  }
  .news-copy p {
    font-size: 20px;
    line-height: 1.35;
  }
  .news-copy .location { line-height: 1.35; }
  .news-copy-content > :is(.status, .preview-note) { flex-basis: 100%; }
  .news-copy .preview-note {
    font-size: 14px;
    margin-top: 25px;
  }
  .panel {
    overflow-y: auto;
  }
  .panel-content {
    padding: 120px 24px 50px;
  }
  .panel:not(.is-image) .panel-content {
    padding-top: var(--brand-top);
    min-height: 100%;
  }
  .panel-brand {
    display: block;
    position: fixed;
    left: var(--edge);
    top: var(--brand-top);
    z-index: 3;
    font-family: var(--book);
    font-size: 32px;
    font-weight: 450;
    letter-spacing: .035em;
    line-height: 1.2;
    transform: translateY(calc(-100% - var(--brand-top) - 8px));
    transition: transform 900ms cubic-bezier(.4,0,.2,1);
  }
  .panel:not(.is-image) #panel-title {
    position: sticky;
    top: var(--brand-top);
    width: max-content;
    max-width: 100%;
    font-size: var(--panel-section-size);
    /* Tighten the line box so the visible capitals align with the side inset. */
    line-height: 1.1;
    margin-bottom: 32px;
    transform-origin: left top;
  }
  .panel.is-returning .panel-brand { transform: translateY(0); }
  .panel.is-returning::backdrop { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* The dialog replaces the menu's frost immediately; stacking both flashes dark. */
  body:has(.panel[open]:not(.is-returning)) .navigation {
    opacity: 0;
    visibility: hidden;
    transition: none;
  }
  /* The menu takes over the identical frosted backdrop in the same frame. */
  .menu-open.menu-returned .navigation { transition: none; }
  .menu-open.menu-returned .navigation .intro-step { opacity: 1; transition: none; }
  .menu-open.menu-returned .navigation .nav-glyph { animation: none; }
  body:has(.panel[open]) .brand,
  body:has(.panel[open]) .menu-toggle { visibility: hidden; }
  .panel h2 {
    position: relative;
    z-index: 1;
    font-size: 45px;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 32px;
  }
  .close-panel {
    justify-content: center;
    align-items: center;
    color: #fff;
    gap: 0;
  }
  .close-panel::before { content: ''; position: absolute; inset: -6px -14px; }
  .project-grid {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-top: 0;
  }
  .project-card > span {
    font-size: 23px;
  }
  .news-card {
    display: flex;
    flex-direction: column;
    font-size: 30px;
    font-weight: 400;
  }
  .news-card .project-card-info { display: none; }
  .project-grid[data-mobile-image-fade] .project-card .project-card-image {
    opacity: var(--mobile-image-presence, 1);
    filter: brightness(calc(.35 + .65 * var(--mobile-image-presence, 1)));
  }
  .back-to-top--list { display: flex; visibility: hidden; }
  .news-card > :is(.news-card-title, .news-card-metadata) {
    color: rgb(255 255 255 / min(calc(.1 + (var(--list-text-alpha, 1) - .1) * var(--row-presence, 1)), calc(.06 + (var(--list-text-alpha, 1) - .06) * var(--row-bottom-presence, 1))));
    transition: --list-text-alpha 300ms ease;
  }
  .news-card > .news-card-title { --row-presence: var(--title-presence, 1); --row-bottom-presence: var(--title-bottom-presence, 1); }
  .news-card > .news-card-metadata { --row-presence: var(--metadata-presence, 1); --row-bottom-presence: var(--metadata-bottom-presence, 1); }
  .project-grid:has(.news-card) {
    position: relative;
    row-gap: 24px;
  }
  .project-grid:has(.news-card:not([hidden]))::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: -24px;
    right: -24px;
    height: 1px;
    background: rgb(255 255 255 / min(calc(.1 + .2 * var(--closing-line-presence, 1)), calc(.06 + .24 * var(--closing-line-bottom-presence, 1))));
    pointer-events: none;
  }
  .news-card > .news-card-title {
    position: relative;
    order: -2;
    margin-top: 0;
    padding-top: 25px;
    font-size: 1em;
    line-height: 1.2;
  }
  .news-card > .news-card-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -24px;
    right: -24px;
    height: 1px;
    background: rgb(255 255 255 / min(calc(.1 + .2 * var(--line-presence, 1)), calc(.06 + .24 * var(--line-bottom-presence, 1))));
    pointer-events: none;
  }
  .news-card > .news-card-metadata {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    order: -1;
    margin: 12px 0 18px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 300;
  }
  .news-card-location,.news-card-year { display: block; }
  .news-card-metadata.has-filter-detail > :not(.news-card-filter-detail) { display: none; }
  .news-card-year { font-weight: 200; }
  .news-card-separator { display: block; font-size: 0; }
  .news-card-separator::before { content: '/'; font-size: 20px; }
  .panel.is-image .panel-content {
    padding: 85px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    justify-items: center;
  }
  .panel.is-image :is(.full-image, .image-coming-soon) { grid-area: 1 / 1; }
  .panel.is-image .visually-hidden { position: absolute; }
  .panel.is-image .image-coming-soon { position: static; transform: none; }
  .site-footer { padding: 158px 24px var(--controls-bottom); }
  .footer-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; line-height: 32px; }
  .footer-copyright { grid-column: 1; grid-row: 2; }
  .footer-actions { grid-column: 2; grid-row: 2; justify-self: end; }
  .footer-language-slot { display: none; }
  .footer-main { grid-column: 1 / -1; grid-row: 1; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 12px; }
  .footer-contacts { flex-direction: column; }
  .footer-socials { flex-wrap: wrap; }
  .footer-actions { min-width: 20px; min-height: 20px; }
  .back-to-top--footer, .back-to-top--list {
    position: fixed;
    left: var(--mobile-back-to-top-left, calc(100% - var(--edge) - 20px));
    right: auto;
    bottom: calc(max(var(--controls-bottom), env(safe-area-inset-bottom)) + 16 * var(--mobile-unit) - 10px);
    z-index: 19;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }
  .back-to-top--footer.is-visible, .back-to-top--list.is-visible { visibility: visible; opacity: 1; pointer-events: auto; }
}

@media(max-width:799px) and (hover:hover) {
  .news-card {
    position: relative;
    isolation: isolate;
  }
  .news-card::before {
    content: '';
    position: absolute;
    inset: 0 -24px -24px;
    z-index: -1;
    background: rgb(255 255 255 / 0);
    transition: background-color 300ms ease;
    pointer-events: none;
  }
  .news-card:hover::before { background-color: rgb(255 255 255 / .06); }
  .project-grid:has(.news-card:hover) .news-card:not(:hover) img { filter: brightness(.5); }
  .project-grid:has(.news-card:hover) .news-card:not(:hover) > :is(.news-card-title, .news-card-metadata) {
    --list-text-alpha: .5;
  }
}

/* The supplied mobile composition is 500px wide. Scale its type and spacing
   together on smaller phones; keep the 500px design intact on wider screens. */
@media(max-width:799px) {
  :root {
    --mobile-unit: min(.2vw, 1px);
    --edge: calc(24 * var(--mobile-unit));
    --brand-top: calc(18 * var(--mobile-unit));
    --language-size: calc(20 * var(--mobile-unit));
    --section-label-size: calc(45 * var(--mobile-unit));
    --panel-section-size: var(--section-label-size);
  }
  .brand,.panel-brand { font-size: calc(32 * var(--mobile-unit)); }
  .mobile-controls {
    --mobile-control-gap: calc(20 * var(--mobile-unit));
    right: calc(32 * var(--mobile-unit));
    top: calc(var(--brand-top) + 3 * var(--mobile-unit));
  }
  .language-switch--mobile { line-height: calc(32 * var(--mobile-unit)); }
  .language-switch--mobile button { min-height: calc(32 * var(--mobile-unit)); }
  .language-switch--mobile button:last-child { left: calc(-5 * var(--mobile-unit)); }
  .menu-toggle { width: calc(16 * var(--mobile-unit)); height: calc(32 * var(--mobile-unit)); }
  .menu-icon,.panel-back-icon { width: calc(24 * var(--mobile-unit)); height: calc(24 * var(--mobile-unit)); }
  .navigation { padding: calc(120 * var(--mobile-unit)) calc(32 * var(--mobile-unit)) calc(70 * var(--mobile-unit)); gap: calc(7 * var(--mobile-unit)); }
  .panel-content { padding-inline: var(--edge); }
  .panel:not(.is-image) #panel-title { margin-bottom: calc(32 * var(--mobile-unit)); }
  .project-filters { --filter-font-size: 13px; margin: calc(-20 * var(--mobile-unit)) 0 calc(35 * var(--mobile-unit)); column-gap: calc(10 * var(--mobile-unit)); }
  .project-filter-trigger { padding-block: calc(6 * var(--mobile-unit)); }
  .news-card { font-size: calc(30 * var(--mobile-unit)); }
  .project-grid:has(.news-card) { row-gap: var(--edge); }
  .news-card > .news-card-title { padding-top: calc(25 * var(--mobile-unit)); }
  .news-card > .news-card-metadata { font-size: calc(20 * var(--mobile-unit)); gap: calc(6 * var(--mobile-unit)) calc(8 * var(--mobile-unit)); margin: calc(12 * var(--mobile-unit)) 0 calc(18 * var(--mobile-unit)); }
  .news-card-separator::before { font-size: calc(20 * var(--mobile-unit)); }
  .news-card > .news-card-title::before,.project-grid:has(.news-card:not([hidden]))::after { left: calc(-1 * var(--edge)); right: calc(-1 * var(--edge)); }
  .project-grid:has(.news-card:not([hidden]))::after { bottom: calc(-1 * var(--edge)); }
}

@media(max-width:799px) {
  /* The desktop links must not fade out after moving into the mobile overlay. */
  .viewport-switched .navigation,
  .viewport-switched .navigation .intro-step { transition: none; }
}
@media(min-width:800px) {
  /* Once a mobile breakpoint was crossed, never replay the delayed page intro. */
  .navigation-intro-settled .navigation .intro-step { animation: none; opacity: 1; }
  .navigation-intro-settled .navigation .nav-glyph { animation: none; }
}
.viewport-controls-settled .menu-toggle,.viewport-controls-settled .language-switch--mobile,.viewport-controls-settled .language-switch--desktop { animation: none; opacity: 1; }

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,*::before,*::after {
    transition: none!important;
    animation: none!important;
  }
  .news-image img,.news-copy-content > * {
    opacity: 1;
  }
  .news-copy .news-copy-content > * { transform: none; font-weight: var(--line-weight, 300); }
  .project-card { opacity: 1; }
  .project-card .project-card-image,.project-card img { transform: none!important; }
}


/* Resize positions follow the viewport immediately; hover animation stays active. */
.navigation-resizing .navigation > a {
  transition: opacity 260ms ease, color 180ms ease, font-weight 260ms ease;
}

@media(prefers-reduced-motion:reduce) {
  .news-copy-content > :not(.news-heading-row),
  .news-copy-content > .news-heading-row { clip-path: none; }
  .is-pixel-revealing > .project-pixel-live { visibility: visible; }
  .project-title-pixels { display: none; }
}

@media (max-width: 799px) {
  .news-gallery > .news-image:nth-child(n+4) { display: none; }
}

