:root {
  --bg: #0e0e0e;
  --ink: #131313;
  --paper: #e5e2e1;
  --secondary: #c4c7c8;
  --dim: #8e9192;
  --line: #444748;
  --display: Inter, Arial, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --body: Outfit, Arial, sans-serif;
  --edge: clamp(20px, 3.6vw, 64px);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 0;
  scroll-padding-bottom: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.loading {
  overflow: hidden;
}
::selection {
  background: var(--paper);
  color: var(--ink);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}
img,
video {
  display: block;
  width: 100%;
  max-width: 100%;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h2 {
  font: 900 clamp(60px, 8.6vw, 152px)/0.88 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 {
  text-wrap: balance;
}
p {
  line-height: 1.6;
}
.mono {
  font: 400 10px/1.6 var(--mono);
  letter-spacing: 0.06em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
}
.skip-link:focus {
  top: 20px;
}

/* Shared plate structure */
.plate {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid #44474848;
}
.plate-shell {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--edge);
}
.plate-label {
  position: absolute;
  top: 32px;
  left: var(--edge);
  right: var(--edge);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--dim);
  z-index: 5;
  font-size: 9px;
}
.annotation {
  min-width: 0;
}
.annotation > span,
.reveal-note-head > span,
.wall-note-head > span {
  display: block;
  font-size: 9px;
  color: var(--dim);
  margin-bottom: 12px;
}
.annotation > p,
.reveal-note-head > p,
.wall-note-head > p {
  font-size: clamp(24px, 2.2vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.22;
  font-weight: 400;
}
.annotation small {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--secondary);
  font-weight: 300;
  text-wrap: pretty;
}
.print {
  border: 1px solid #44474880;
  box-shadow: 0 28px 64px #0007;
  background: #131313;
}
.print-caption {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  background: #171717;
  color: #9a9a9a;
  font-size: 8px;
  border-top: 1px solid #44474855;
}

/* Quiet fixed HUD */
.edge-ui {
  position: fixed;
  left: max(var(--edge), env(safe-area-inset-left));
  right: max(var(--edge), env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  font-size: 8px;
  mix-blend-mode: difference;
  color: #d6d6d6;
}
.edge-ui > span {
  padding: 6px 0;
  opacity: 0.72;
}
.edge-ui button {
  pointer-events: auto;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 8px;
  line-height: 1.4;
  border: 1px solid #8885;
  background: #111c;
  color: #e2e2e2;
  transition: color 0.2s, border-color 0.2s;
}
.edge-ui button:hover:not(:disabled) {
  color: #fff;
  border-color: #bbb;
}
.edge-ui button:disabled {
  cursor: default;
  opacity: 0.55;
}
.reading-progress {
  position: fixed;
  top: 90px;
  right: 14px;
  bottom: 90px;
  width: 1px;
  background: #8882;
  z-index: 90;
  mix-blend-mode: difference;
  pointer-events: none;
}
.reading-progress i {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: top;
  transform: scaleY(0);
  background: #d8d8d8;
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0e0e0e;
  display: grid;
  place-items: center;
}
.loader-shell {
  width: min(440px, calc(100vw - 48px));
}
.loader-top,
.loader-bottom {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 8px;
}
.loader-title {
  font: 900 156px/0.9 var(--display);
  letter-spacing: -0.02em;
  margin: 30px 0;
}
.loader-track {
  height: 1px;
  background: #3a3a3a;
  margin-bottom: 16px;
}
.loader-track i {
  display: block;
  height: 100%;
  width: 100%;
  background: #ddd;
  transform: scaleX(0);
  transform-origin: left;
}
.loader-bottom b {
  font-weight: 400;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.load-fallback .loader {
  display: none;
}
.load-fallback .lab-controls,
.load-fallback .replay {
  visibility: hidden;
}

/* Plate 01: Iconic portrait cover poster */
.cover {
  height: max(840px, 100svh);
  background: #101010;
}
.cover-header {
  position: absolute;
  top: max(26px, env(safe-area-inset-top));
  left: var(--edge);
  right: var(--edge);
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #a6a6a6;
}
.cover-grid {
  position: absolute;
  inset: 0 var(--edge);
  background: repeating-linear-gradient(
    90deg,
    #ffffff06 0,
    #ffffff06 1px,
    transparent 1px,
    transparent 25%
  );
  z-index: -1;
}
.cover-smile {
  position: absolute;
  left: 1.4%;
  top: 11%;
  font: 900 30.2vw/0.77 var(--display);
  letter-spacing: 0;
  white-space: nowrap;
  z-index: 0;
}
.cover-portrait {
  position: absolute;
  left: 50%;
  bottom: -10%;
  height: 106%;
  width: 62%;
  object-fit: contain;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(16px 18px 42px #0006);
}
.cover-gallery {
  position: absolute;
  left: -0.4%;
  bottom: 9.5%;
  font: 900 22.4vw/0.78 var(--display);
  letter-spacing: 0;
  white-space: nowrap;
  z-index: 4;
  color: transparent;
  -webkit-text-stroke: 1px #e5e2e1d8;
}
.cover-note {
  position: absolute;
  left: var(--edge);
  top: 49%;
  width: 245px;
  z-index: 6;
}
.cover-note p {
  font-size: 22px;
  line-height: 1.38;
  color: var(--paper);
}
.cover-note > span {
  font-size: 8px;
  margin-bottom: 10px;
}

/* Plate 02: Interface in motion and project overview */
.film-plate {
  background: #101112;
  padding: 130px 0 118px;
}
.film-type {
  position: absolute;
  inset: 92px 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  font: 900 19vw/0.78 var(--display);
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1px #ffffff16;
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
}
.film-type > span:first-child {
  transform: translateX(-1vw);
}
.film-type > span:last-child {
  transform: translateX(1.2vw);
}
.film-frame {
  position: relative;
  width: min(88%, 1200px);
  margin-inline: auto;
  z-index: 1;
  border: 1px solid #44474860;
  background: #101112;
  box-shadow: 0 32px 72px #0008;
  overflow: hidden;
}
.film-frame video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.video-static {
  position: absolute;
  inset: 0;
  display: none;
  background: #101112;
}
.video-static img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.film-note.project-overview {
  position: relative;
  width: min(88%, 1200px);
  margin: 76px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px 7vw;
}
.project-overview > span {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 9px;
}
.project-story {
  min-width: 0;
}
.project-story h3 {
  font: 400 clamp(28px, 3vw, 42px)/1.14 var(--body);
  letter-spacing: -0.015em;
  max-width: 20ch;
  margin: 0 0 20px;
}
.project-story .project-summary {
  font: 300 16px/1.8 var(--body);
  color: var(--secondary);
  max-width: 54ch;
}
.project-overview .project-scope {
  margin: 0;
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}
.project-overview .project-scope > div {
  padding-top: 14px;
  border-top: 1px solid #44474880;
  min-width: 0;
}
.project-overview dt {
  font: 400 9px/1.6 var(--mono);
  color: var(--dim);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.project-overview dd {
  margin: 0;
  font: 300 15px/1.7 var(--body);
  color: var(--paper);
  overflow-wrap: anywhere;
}

/* Plate 03: Interactive liquid reveal specimen */
.reveal-plate {
  background: #0e0e0e;
  padding: 128px 0 124px;
}
.reveal-title {
  font-size: clamp(64px, 9.2vw, 156px);
  line-height: 0.88;
  margin-bottom: 44px;
}
.reveal-title span {
  display: block;
}
.reveal-title span:last-child {
  color: transparent;
  -webkit-text-stroke: 1px #8c8c8c;
}
.lab-frame {
  position: relative;
  width: min(100%, 1080px);
  margin-inline: auto;
  border: 1px solid #4d4f50;
  box-shadow: 0 36px 90px #0009;
  z-index: 3;
  overflow: hidden;
  background: #111;
}
.browser-chrome {
  height: 30px;
  background: #1c1c1b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 8px;
  color: #848788;
  border-bottom: 1px solid #44474855;
}
.browser-chrome > span:first-child {
  font-size: 6px;
  letter-spacing: 0.14em;
  color: #5e6061;
}
.reveal-surface {
  position: relative;
  aspect-ratio: 1.6;
  background: #131313;
  touch-action: pan-y;
  cursor: crosshair;
  overflow: hidden;
}
.reveal-surface:focus-visible {
  outline: 1px solid #ddd;
  outline-offset: -5px;
}
.reveal-surface img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.reveal-fallback {
  opacity: 0;
}
.reveal-surface canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}
.reveal-surface #reveal-canvas {
  z-index: 1;
}
.shader-ready canvas {
  opacity: 1;
}
.reveal-surface .liquid-fallback-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.lab-reticle {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  font: 300 22px var(--mono);
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
}
.preview-unavailable {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 28px;
  background: #131313e8;
  text-align: center;
  font-size: 18px;
}
.preview-unavailable button {
  border-bottom: 1px solid #777;
  font: 10px var(--mono);
  padding-block: 12px;
}
.lab-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #181818;
  border-top: 1px solid #44474870;
  font-size: 9px;
}
.lab-controls button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 9px;
  color: #9a9c9d;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.lab-controls button:hover:not(:disabled) {
  color: #fff;
  background: #ffffff08;
}
.lab-controls button[aria-pressed="true"] {
  color: #fff;
  background: #ffffff0e;
  border-color: #ffffff24;
}
.lab-controls button:disabled,
.replay:disabled {
  cursor: default;
  opacity: 0.45;
}
.mode-readout {
  margin-left: auto;
  color: #848788;
  font-size: 8px;
}
.reveal-note {
  width: min(100%, 1080px);
  margin: 52px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px 64px;
  align-items: start;
}
.reveal-note-body small {
  margin-top: 0;
}
.replay {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 20px;
  padding: 8px 14px;
  font-size: 9px;
  color: var(--paper);
  border: 1px solid #444748;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.replay:hover:not(:disabled) {
  color: #fff;
  border-color: #aaa;
  background: #ffffff08;
}

/* Plate 04: Calm structured UI anatomy */
.anatomy-plate {
  background: #151516;
  padding: 128px 0 128px;
}
.anatomy-title {
  font-size: clamp(58px, 8.2vw, 140px);
  line-height: 0.9;
  margin-bottom: 48px;
}
.anatomy-title span {
  font-size: 0.72em;
  color: #7c7f80;
}
.anatomy-main {
  position: relative;
  width: min(100%, 1080px);
  margin-inline: auto;
}
.anatomy-main img {
  width: 100%;
  height: auto;
}
.anatomy-guides {
  position: absolute;
  inset: 0 0 36px;
  display: grid;
  grid-template-columns: 27% 46% 27%;
  pointer-events: none;
}
.anatomy-guides i {
  border-right: 1px dashed #c4c7c845;
}
.anatomy-guides i:first-child {
  border-left: 1px dashed #c4c7c845;
}
.anatomy-grid {
  width: min(100%, 1080px);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.detail-print {
  border: 1px solid #44474890;
  background: #0e0e0e;
  padding: 16px;
}
.detail-index {
  font-size: 8px;
  display: block;
  margin-bottom: 12px;
  color: var(--dim);
}
.detail-print img {
  width: 100%;
  height: auto;
  border: 1px solid #303233;
}
.detail-print p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--secondary);
  margin-top: 14px;
}
.anatomy-note {
  padding-top: 6px;
}
.anatomy-note > p {
  font-size: clamp(22px, 2vw, 30px);
}
.anatomy-note > small {
  font-size: 15px;
}

/* Plate 05: Four exhibition rooms */
.rooms-plate {
  overflow: hidden;
  background: #0e0e0e;
}
.rooms-intro {
  position: relative;
  padding: 132px var(--edge) 72px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.rooms-intro h2 {
  font-size: clamp(64px, 9.2vw, 158px);
}
.rooms-intro h2 span {
  color: #777;
}
.rooms-intro-note {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--secondary);
  line-height: 1.48;
  max-width: 30ch;
}
.rooms-exhibition {
  position: relative;
  height: auto;
  min-height: 0;
  padding: 36px var(--edge) 96px;
  overflow: visible;
  background: #0e0e0e;
}
.rooms-track {
  display: block;
  width: 100%;
  padding: 0;
  transform: none;
  will-change: transform;
}
.rooms-track > .room {
  width: min(1040px, 100%);
  margin: 0 auto 88px;
  padding-top: 24px;
  position: relative;
}
.room-number {
  position: absolute;
  right: 0;
  top: -40px;
  font: 900 260px/1 var(--display);
  letter-spacing: 0;
  color: #ffffff05;
  z-index: -1;
  pointer-events: none;
}
.room-top {
  display: flex;
  justify-content: space-between;
  color: var(--dim);
  font-size: 9px;
  margin-bottom: 16px;
}
.rooms-track .room-image {
  width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.room-image img {
  width: 100%;
  height: auto;
}
.room-caption {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: start;
  margin-top: 26px;
}
.room-caption h3 {
  font: 400 clamp(24px, 2.3vw, 34px)/1.14 var(--body);
  letter-spacing: -0.01em;
  max-width: 42%;
}
.room-caption p {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.68;
  max-width: 460px;
  width: 48%;
}
.rooms-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: 8px;
  margin-top: 28px;
}
.rooms-progress {
  display: none;
  position: absolute;
  left: var(--edge);
  right: var(--edge);
  bottom: 64px;
  height: 1px;
  background: #333;
}
.rooms-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #bbb;
  transform-origin: left;
  transform: scaleX(0.25);
}

@media (min-width: 801px) {
  .has-room-motion .rooms-exhibition {
    height: 100svh;
    min-height: 680px;
    padding: 36px 0 0;
    overflow: hidden;
  }
  .has-room-motion .rooms-track {
    display: flex;
    gap: 8vw;
    width: max-content;
    padding-left: 10vw;
  }
  .has-room-motion .rooms-track > .room {
    width: 72vw;
    max-width: 1020px;
    flex-shrink: 0;
    margin: 0;
    padding-top: 8px;
  }
  .has-room-motion .rooms-track .room-image {
    width: min(100%, calc(146svh - 460px));
  }
  .has-room-motion .rooms-foot {
    position: absolute;
    bottom: 74px;
    left: var(--edge);
    right: var(--edge);
    margin: 0;
  }
  .has-room-motion .rooms-progress {
    display: block;
  }
}

.reduced-motion .rooms-exhibition,
html:not(.js) .rooms-exhibition,
.motion-fallback .rooms-exhibition {
  height: auto !important;
  min-height: 0;
  padding: 40px var(--edge) 96px;
  overflow: visible !important;
}
.reduced-motion .rooms-track,
html:not(.js) .rooms-track,
.motion-fallback .rooms-track {
  display: block !important;
  width: 100%;
  padding: 0;
  transform: none !important;
}
.reduced-motion .rooms-progress,
html:not(.js) .rooms-progress {
  display: none;
}

/* Plate 06: Visual language on light paper */
.language-plate {
  background: #e5e2e1;
  color: #131313;
  color-scheme: light;
  padding: 128px 0 132px;
}
.language-plate .plate-label {
  color: #5c5f60;
}
.giant-aa {
  position: absolute;
  left: -2%;
  top: 210px;
  font: 900 38vw/0.86 var(--display);
  letter-spacing: -0.03em;
  z-index: 0;
  color: #d6d3d2;
  pointer-events: none;
}
.language-plate .plate-shell {
  position: relative;
  z-index: 2;
}
.language-heading {
  font-size: clamp(64px, 9.4vw, 162px);
  line-height: 0.86;
  margin-bottom: 56px;
}
.language-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px 6vw;
  align-items: center;
  margin-bottom: 72px;
}
.type-slip {
  padding: 32px 36px 36px;
  background: #131313;
  color: #e5e2e1;
  box-shadow: 0 28px 56px #0000001e;
}
.type-slip > span {
  display: block;
  font-size: 9px;
  color: #8e9192;
}
.type-slip > div {
  font: 400 clamp(18px, 2.2vw, 34px)/1.65 var(--mono);
  letter-spacing: 0.02em;
  margin-top: 22px;
}
.type-slip > div > span {
  color: #8a8d8e;
}
.type-label {
  margin-top: 16px;
  color: #585b5c;
  font-size: 9px;
}
.language-note > span {
  color: #585b5c;
}
.language-note > p {
  font-size: clamp(24px, 2.2vw, 34px);
  color: #131313;
}
.language-note > small {
  color: #4b4e4f;
  font-size: 16px;
}
.palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #13131330;
}
.palette > div {
  min-width: 0;
}
.palette i {
  display: block;
  height: 96px;
  background: var(--swatch);
  border: 1px solid #13131320;
}
.palette span,
.palette b {
  display: block;
  font: 400 8px/1.5 var(--mono);
  color: #5a5d5e;
  margin-top: 12px;
  letter-spacing: 0.04em;
}
.palette b {
  font-size: 11px;
  color: #131313;
  margin-top: 5px;
}

/* Plate 07: Calm responsive showcase */
.wall-plate {
  background: #111214;
  padding: 128px 0 132px;
}
.wall-title {
  font-size: clamp(62px, 9vw, 152px);
  line-height: 0.88;
  margin-bottom: 56px;
}
.wall-title > span {
  color: transparent;
  -webkit-text-stroke: 1px #9a9a9a;
}
.responsive-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.45fr);
  gap: 32px 48px;
  align-items: center;
}
.responsive-desktop img {
  width: 100%;
  height: auto;
}
.responsive-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.wall-phone {
  position: relative;
  width: min(100%, 260px);
  background: #161617;
  border: 2px solid #727576;
  border-radius: 34px;
  box-shadow: 0 28px 56px #0008;
  padding: 16px 7px 9px;
}
.wall-phone img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.phone-island {
  position: absolute;
  width: 30%;
  left: 35%;
  top: 7px;
  height: 8px;
  background: #000;
  border-radius: 10px;
}
.mobile-caption {
  font-size: 8px;
  color: var(--dim);
}
.wall-note {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid #44474860;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px 64px;
  align-items: start;
}
.wall-note small {
  margin-top: 0;
}

/* Closing footer */
.closing {
  background: #e5e2e1;
  color: #131313;
  padding: 40px var(--edge) calc(104px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
  color-scheme: light;
}
.closing-meta {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: #5c5f60;
  font-size: 9px;
}
.closing-title {
  padding-top: 84px;
  padding-bottom: 64px;
  font: 900 clamp(72px, 12.5vw, 210px)/0.85 var(--display);
  letter-spacing: -0.02em;
}
.portfolio-next {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  padding: 20px 0 32px;
  border-top: 1px solid #13131325;
  font-size: 16px;
  font-weight: 400;
}
.portfolio-next a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.closing-bottom {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: #585b5c;
  font-size: 9px;
}
.closing-bottom a:hover {
  color: #131313;
}
.end-block {
  margin-left: 10px;
  color: #131313;
}

/* Motion and fallback utilities */
.reduced-motion .video-static,
.video-unavailable .video-static,
.motion-fallback .video-static {
  display: block;
}
.reduced-motion #hero-video {
  visibility: hidden;
}
.reduced-motion .lab-reticle {
  display: none;
}

@media (max-width: 960px) {
  .anatomy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .anatomy-note {
    grid-column: 1 / -1;
    padding-top: 8px;
  }
  .language-stage {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .responsive-stage {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .wall-note,
  .reveal-note {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 800px) {
  .plate-label {
    top: 24px;
    font-size: 8px;
  }
  .plate-label > span:last-child {
    text-align: right;
    max-width: 48%;
  }
  .cover {
    height: 820px;
    min-height: 100svh;
  }
  .cover-header {
    font-size: 8px;
  }
  .cover-portrait {
    height: 86%;
    width: 96%;
    left: 50%;
    bottom: -2%;
  }
  .cover-note {
    top: 38%;
    width: 190px;
  }
  .cover-note p {
    font-size: 19px;
  }
  .film-plate,
  .reveal-plate,
  .anatomy-plate,
  .language-plate,
  .wall-plate {
    padding: 96px 0 96px;
  }
  .film-frame,
  .film-note.project-overview {
    width: calc(100% - var(--edge) * 2);
  }
  .film-note.project-overview {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
  }
  .project-overview .project-scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .room-caption {
    flex-direction: column;
    gap: 16px;
  }
  .room-caption h3,
  .room-caption p {
    max-width: none;
    width: 100%;
  }
  .palette {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .palette i {
    height: 68px;
  }
}

@media (max-width: 520px) {
  :root {
    --edge: 20px;
  }
  .cover-header {
    font-size: 7px;
  }
  .cover-header > span:last-child {
    display: none;
  }
  .cover-portrait {
    height: 78%;
    width: 118%;
    max-width: none;
  }
  .cover-gallery {
    bottom: 13%;
    -webkit-text-stroke: 0.7px #e5e2e1d8;
  }
  .cover-note {
    top: 32%;
    width: 160px;
  }
  .cover-note p {
    font-size: 17px;
  }
  .project-overview .project-scope,
  .anatomy-grid {
    grid-template-columns: 1fr;
  }
  .mode-readout {
    display: none;
  }
  .lab-controls {
    gap: 6px;
    padding: 8px 10px;
  }
  .palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .loader-title {
    font-size: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .video-static {
    display: block;
  }
  #hero-video {
    visibility: hidden;
  }
}
