@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap");
:root {
  --bg: #f4f2ed;
  --fg: #0c0c0c;
  --muted: #6f6d67;
  --line: rgba(16, 16, 16, 0.22);
  --pill: rgba(16, 16, 16, 0.07);
}

html[data-theme=dark] {
  --bg: #161616;
  --fg: #f4f2ed;
  --muted: #aaa7a0;
  --line: rgba(244, 242, 237, 0.24);
  --pill: rgba(244, 242, 237, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Archivo", "Arial Narrow", Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

button,
a {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
}

a {
  text-decoration: none;
}

img,
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  height: 82px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  mix-blend-mode: difference;
  color: white;
}

.site-header > * {
  pointer-events: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.wordmark__logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.wordmark .comma {
  display: inline-block;
  transform: translateY(-0.03em);
}

.nav {
  display: flex;
  gap: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav a {
  position: relative;
}

.nav a:after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav a:hover:after {
  right: 0;
}

.theme-toggle {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  padding: 6px 0;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.theme-toggle__track {
  width: 34px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 99px;
  padding: 2px;
}

.theme-toggle__thumb {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme=dark] .theme-toggle__thumb {
  transform: translateX(16px);
}

.hero {
  height: 100svh;
  min-height: 650px;
  position: relative;
  overflow: hidden;
  color: white;
  background: #111;
}

.hero__media {
  position: absolute;
  inset: -7%;
  will-change: transform;
}

.hero__media img,
.hero__media video {
  transform: scale(1.04);
  animation: heroIn 1.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: scale(1.14);
  }
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(22, 22, 22), rgba(22, 22, 22, 0.05) 20%, rgba(22, 22, 22, 0));
}

.hero__eyebrow {
  position: absolute;
  top: 105px;
  left: 28px;
  font-size: 11px;
  letter-spacing: 0.11em;
  background: #000;
  padding: 0.25rem 0.5rem;
}

.hero__copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 52px;
}

.hero__type {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
}

.hero__project {
  width: 100%;
  background: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: white;
  cursor: pointer;
  text-align: left;
  font-size: clamp(56px, 10vw, 156px);
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-weight: 600;
}

.hero__project .arrow {
  font-size: 0.34em;
  letter-spacing: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__project:hover .arrow {
  transform: translate(8px, -8px);
}

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.scroll-cue i {
  width: 42px;
  height: 1px;
  background: white;
  transform-origin: left;
  animation: cue 1.7s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes cue {
  0%, 100% {
    transform: scaleX(0.2);
    opacity: 0.5;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}
.surface {
  background: var(--bg);
  color: var(--fg);
}

.work-shell {
  padding: 130px 28px 80px;
  min-height: 100vh;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 60px;
  align-items: end;
  margin-bottom: 90px;
}

.kicker {
  font-size: 10px;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  color: var(--muted);
}

.section-head h1 {
  margin: 0;
  font-size: clamp(90px, 17vw, 250px);
  line-height: 0.7;
  letter-spacing: -0.09em;
  font-weight: 600;
}

.period {
  font-weight: 400;
}

.section-intro {
  margin: 0;
  max-width: 390px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.work-toolbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
}

.filter,
.stage-tab,
.capsule {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.08em;
  transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter:hover,
.stage-tab:hover,
.capsule:hover {
  transform: translateY(-2px);
}

.filter.is-active,
.stage-tab.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.view-toggle {
  background: none;
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.view-toggle i {
  width: 26px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  position: relative;
}

.view-toggle i:after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

body.index-view .view-toggle i:after {
  transform: translateX(12px);
}

.project-grid {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: stretch;
  gap: clamp(48px, 6vw, 92px) clamp(15px, 1.25vw, 21px);
}

.project-card {
  grid-column: span 4;
  min-width: 0;
  min-height: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card--wide {
  grid-column: span 8;
}

.project-card--wide-paired,
.project-card--tall-paired {
  grid-column: span 6;
}

.project-card--wide .project-card__media {
  aspect-ratio: 16/9;
  max-height: none;
}

.project-card--tall .project-card__media {
  aspect-ratio: 8/9;
}

.project-card[hidden] {
  display: none;
}

.project-card button {
  width: 100%;
  padding: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card__media {
  aspect-ratio: 4/3;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #bbb;
}

.project-card__media img {
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card button:hover img {
  transform: scale(1.035);
  filter: brightness(1.2) saturate(1.4);
}

.project-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
  font-size: 10px;
  letter-spacing: 0.07em;
  line-height: 1.3;
}

.project-card--meta-above .project-card__meta {
  order: -1;
  padding: 0 0 8px;
}

.project-card--meta-below .project-card__meta {
  order: 1;
  padding: 21px 0 0;
  margin-top: auto;
}

.project-card__meta > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.project-card__meta > span:last-child {
  flex: 0 1 42%;
  color: var(--muted);
  text-align: right;
}

.project-index {
  display: none;
}

body.index-view .project-grid {
  display: none;
}

body.index-view .project-index {
  display: block;
}

.index-row {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 60px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-row:hover {
  padding-left: 10px;
}

.index-row span:nth-child(3) {
  color: var(--muted);
}

.index-row[hidden] {
  display: none;
}

.about {
  min-height: 75vh;
  border-top: 1px solid var(--line);
  padding: 110px 28px 28px;
  display: flex;
  flex-direction: column;
}

.about__statement {
  font-size: clamp(55px, 9vw, 135px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin: 30px 0 auto;
  font-weight: 100;
}

.about__statement em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.about__footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.project-modal {
  --modal-control-size: 44px;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), overlay 0.55s allow-discrete, display 0.55s allow-discrete;
}

.project-modal[open] {
  opacity: 1;
  transform: none;
}

@starting-style {
  .project-modal[open] {
    opacity: 0;
    transform: translateY(40px);
  }
}
.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
}

.modal-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modal-top {
  min-height: 84px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(80px, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.modal-identity {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.modal-count {
  color: var(--muted);
}

.stage-tabs {
  display: flex;
  gap: 6px;
}

.modal-close {
  justify-self: end;
  width: var(--modal-control-size);
  height: var(--modal-control-size);
  border-radius: 50%;
  background: var(--fg);
  position: relative;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-close span {
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--bg);
  left: 13px;
  top: 21px;
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
}

.modal-stage-frame {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}

.modal-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.32s ease;
}

.modal-stage.is-swapping {
  opacity: 0;
}

.modal-column {
  position: relative;
  min-width: 0;
  overflow: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: none;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-column--text {
  isolation: isolate;
  overflow: hidden auto;
  user-select: none;
}

.modal-column--text:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../assets/texture/lines.png") center/cover no-repeat;
  opacity: 0.25;
  pointer-events: none;
}

.modal-stage-number {
  position: absolute;
  z-index: -1;
  top: clamp(18px, 2.8vw, 42px);
  left: clamp(18px, 2.8vw, 42px);
  color: var(--fg);
  opacity: 0.09;
  font-size: clamp(96px, 12vw, 210px);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.025em;
  pointer-events: none;
}

.stage-navigation {
  position: absolute;
  z-index: 4;
  inset: 50% 18px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.stage-arrow {
  width: var(--modal-control-size);
  height: var(--modal-control-size);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  pointer-events: auto;
  transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-arrow:hover:not(:disabled) {
  background: var(--fg);
  color: var(--bg);
  transform: scale(1.06);
}

.stage-arrow:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.stage-arrow:disabled {
  opacity: 0;
  cursor: default;
  pointer-events: none;
}

.modal-column + .modal-column {
  border-left: 1px solid var(--line);
}
.modal-column + .modal-column .modal-media {
  margin-right: 4rem;
}

.modal-column .modal-media {
  margin-left: 4rem;
}

.modal-stage.is-swapping .modal-column:first-child {
  transform: translateX(-30px);
}

.modal-stage.is-swapping .modal-column:last-child {
  transform: translateX(30px);
}

.modal-media {
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: var(--pill);
}

.modal-media img,
.modal-media video {
  min-height: 400px;
}

.modal-media video {
  background: #000;
}

.modal-media--fit {
  display: grid;
  place-items: center;
}

.modal-media--fit img,
.modal-media--fit video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.modal-copy {
  max-width: 720px;
  margin: auto;
  padding: 6vh 3vw;
}

.modal-copy .number {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.modal-copy h2 {
  font-size: clamp(42px, 6vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.065em;
  margin: 16px 0 28px;
}

.modal-copy p {
  font-size: 22px;
  line-height: 1.5;
  max-width: 520px;
}

.modal-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.capsule {
  display: inline-block;
}

@media (max-width: 850px) {
  .site-header {
    grid-template-columns: 1fr auto;
    height: 68px;
    padding: 0 16px;
  }
  .nav {
    display: none;
  }
  .hero__eyebrow,
  .hero__copy {
    left: 16px;
    right: 16px;
  }
  .hero__project {
    font-size: clamp(54px, 16vw, 100px);
  }
  .scroll-cue {
    right: 16px;
  }
  .work-shell {
    padding: 100px 16px 60px;
  }
  .section-head {
    grid-template-columns: 1fr;
    margin-bottom: 60px;
  }
  .section-head h1 {
    font-size: 29vw;
  }
  .work-toolbar {
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
  }
  .view-toggle {
    margin-top: 8px;
  }
  .project-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 42px;
  }
  .project-card,
  .project-card--wide-paired,
  .project-card--tall-paired {
    grid-column: auto;
    margin-bottom: 0;
    min-height: 0;
  }
  .project-card--wide .project-card__media,
  .project-card--tall .project-card__media {
    aspect-ratio: 4/3;
  }
  .index-row {
    grid-template-columns: 35px 1fr 60px;
  }
  .index-row span:nth-child(3) {
    display: none;
  }
  .about {
    padding: 80px 16px 20px;
  }
  .modal-top {
    grid-template-columns: 1fr auto;
    padding: 12px 14px;
  }
  .stage-tabs {
    grid-row: 2;
    grid-column: 1/-1;
    overflow: auto;
    padding-top: 12px;
  }
  .modal-stage {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .modal-column {
    overflow: visible;
  }
  .modal-column--text {
    min-height: 70svh;
    overflow: hidden;
  }
  .modal-stage-number {
    font-size: clamp(88px, 30vw, 150px);
  }
  .stage-navigation {
    inset-inline: 12px;
  }
  .modal-column + .modal-column {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Full-width project gallery stage */
.modal-stage.is-gallery {
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-gallery {
  width: 100%;
  padding: 22px 22px 90px;
}

.gallery-item {
  margin: 0 0 clamp(56px, 8vw, 120px);
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--gallery-index) * 80ms);
}

.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item__media {
  width: 100%;
  overflow: hidden;
  background: var(--pill);
}

.gallery-item__media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: scale(1.018);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.is-visible .gallery-item__media img {
  transform: scale(1);
}

.gallery-item figcaption {
  display: grid;
  grid-template-columns: 52px minmax(280px, 620px);
  justify-content: space-between;
  gap: 24px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.gallery-item figcaption span:first-child {
  color: var(--fg);
}

@media (max-width: 850px) {
  .modal-gallery {
    padding: 14px 14px 70px;
  }
  .gallery-item {
    margin-bottom: 64px;
  }
  .gallery-item figcaption {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }
}
/* Optional pseudo-3D front/back image column */
.modal-column--3d {
  overflow: hidden;
}

.pseudo3d {
  position: relative;
  flex: 1;
  min-height: 480px;
  display: grid;
  place-items: center;
  background: var(--pill);
  cursor: grab;
  user-select: none;
  touch-action: none;
  overflow: hidden;
}

.pseudo3d.is-dragging {
  cursor: grabbing;
}

.pseudo3d.is-open,
.pseudo3d.is-transitioning {
  cursor: default;
}

.pseudo3d__hint {
  position: absolute;
  z-index: 6;
  left: 18px;
  top: 16px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.pseudo3d.is-dragging .pseudo3d__hint {
  opacity: 0.25;
}

.pseudo3d.is-open .pseudo3d__hint,
.pseudo3d.is-transitioning .pseudo3d__hint {
  opacity: 0;
}

.pseudo3d__open {
  position: absolute;
  z-index: 7;
  right: 18px;
  top: 16px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px 7px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.pseudo3d__open:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.pseudo3d__open:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.pseudo3d__scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(62%, 520px);
  aspect-ratio: 3/4;
  perspective: 1500px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  will-change: left, transform;
}

.pseudo3d__object {
  --depth: 9px;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  /* Keep grouping effects off this preserve-3d element; they can flatten the
     front/back faces in WebKit and make the front appear mirrored from behind. */
}

.pseudo3d__face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #ddd;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.pseudo3d__face img,
.pseudo3d__open-leaf img {
  display: block;
  width: 100%;
  height: 100%;
  /* Front and back are exports of the same physical cover. Using the same
     exact page box prevents a tiny source-aspect mismatch from independently
     scaling one side and moving artwork/bands out of register. */
  object-fit: fill;
  image-rendering: auto;
  pointer-events: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.pseudo3d__front {
  transform: rotateY(0deg) translateZ(var(--depth));
}

.pseudo3d__back {
  transform: rotateY(180deg) translateZ(var(--depth));
}

/* Dedicated opening leaf for the back-cover artwork.

   CLOSED:
   - The front cover occupies the normal page box on the RIGHT.
   - This leaf is physically positioned one page-width to the LEFT, hinged on
     its RIGHT edge (the same centre/spine line as the front cover's left edge).
   - rotateY(-180deg) folds that left-hand leaf underneath the front cover.
     The negative rotation deliberately sends the fold behind the front rather
     than swinging it over the top.

   OPEN:
   - The front remains in its exact page box on the RIGHT.
   - The leaf eases to rotateY(0deg), occupying the exact same-size page box on
     the LEFT. Both images therefore share one parent scale, one raster size,
     one top edge and one final Z plane, preventing any independent zoom or
     cross-cover band misalignment. */
.pseudo3d__open-leaf {
  position: absolute;
  z-index: 1;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  transform-origin: right center;
  transform: rotateY(-180deg) translateZ(0px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  transition: transform 1.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.08s linear;
}

.pseudo3d__front {
  z-index: 2;
}

.pseudo3d.is-open .pseudo3d__front {
  transform: rotateY(0deg) translateZ(0px);
}

.pseudo3d.is-open .pseudo3d__back {
  opacity: 0;
}

.pseudo3d.is-open .pseudo3d__open-leaf {
  opacity: 1;
  transform: rotateY(0deg) translateZ(0px);
}

.pseudo3d.is-closing .pseudo3d__open-leaf {
  opacity: 1;
  transform: rotateY(-180deg) translateZ(0px);
  transition: transform var(--close-leaf-duration, 2700ms) cubic-bezier(0.37, 0, 0.63, 1), opacity 0.08s linear calc(var(--close-leaf-duration, 2700ms) - 80ms);
}

.pseudo3d.is-closing .pseudo3d__back {
  transition: opacity 0.08s linear calc(var(--close-leaf-duration, 2700ms) - 100ms);
}

.pseudo3d__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  width: calc(var(--depth) * 2);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(110, 110, 110, 0.55));
  transform-style: preserve-3d;
  transition: opacity 0.55s ease;
}

.pseudo3d.is-open .pseudo3d__edge,
.pseudo3d.is-transitioning .pseudo3d__edge {
  opacity: 0;
}

.pseudo3d__edge--l {
  left: 0;
  transform-origin: left;
  transform: rotateY(90deg) translateX(calc(var(--depth) * -1));
}

.pseudo3d__edge--r {
  right: 0;
  transform-origin: right;
  transform: rotateY(-90deg) translateX(var(--depth));
}

@media (prefers-reduced-motion: reduce) {
  .pseudo3d__front,
  .pseudo3d__back,
  .pseudo3d__open-leaf,
  .pseudo3d__edge,
  .pseudo3d__hint,
  .pseudo3d__open {
    transition-duration: 0.001ms !important;
  }
}
@media (max-width: 850px) {
  .pseudo3d {
    min-height: 68svh;
  }
  .pseudo3d__scene {
    max-width: 90%;
    max-height: 90%;
  }
}
/* v4 legibility + interaction refinements */
.site-header {
  background: var(--bg);
  color: var(--fg);
  mix-blend-mode: normal;
  border-bottom: 1px solid var(--line);
  transition: background 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero {
  padding-top: 82px;
}

.hero__eyebrow {
  top: 105px;
}

/* Raise the floor on utility / metadata text. */
.nav {
  font-size: 13px;
}

.theme-toggle {
  font-size: 12px;
}

.hero__eyebrow,
.hero__type {
  font-size: 12px;
}

.scroll-cue {
  font-size: 11px;
}

.kicker {
  font-size: 12px;
}

.filter,
.stage-tab,
.capsule {
  font-size: 12px;
}

.view-toggle {
  font-size: 11px;
}

.project-card__meta {
  font-size: 12px;
}

.about__footer {
  font-size: 11px;
}

.modal-identity {
  font-size: 12px;
}

.modal-copy .number {
  font-size: 12px;
}

.pseudo3d__hint {
  font-size: 11px;
}

.gallery-item figcaption {
  font-size: 12px;
}

/* Capsules invert decisively on hover. In dark mode this naturally becomes
   a light capsule with dark type; in light mode it becomes black/white. */
.filter:hover,
.stage-tab:hover,
.capsule:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.filter.is-active:hover,
.stage-tab.is-active:hover {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--fg);
}

/* Index rows get a quiet surface highlight without losing the editorial feel. */
.index-row {
  padding-left: 10px;
  padding-right: 10px;
  transition: padding 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-row:hover {
  padding-left: 16px;
  background: var(--pill);
}

@media (max-width: 850px) {
  .hero {
    padding-top: 68px;
  }
  .site-header {
    height: 68px;
  }
}
/* v5 — gallery carousel */
.modal-stage.is-gallery {
  display: block;
  overflow: hidden;
}

.gallery-carousel {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 22px 22px;
}

.gallery-carousel__top {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 4px;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  position: relative;
  width: 84px;
  height: 58px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid transparent;
  background: var(--pill);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.48;
  transition: opacity 0.4s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.gallery-thumb:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--fg);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb span {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 2px 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.gallery-controls {
  display: flex;
  gap: 6px;
}

.gallery-arrow {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-arrow:hover {
  background: var(--fg);
  color: var(--bg);
  transform: scale(1.06);
}

.gallery-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.gallery-viewport.is-dragging {
  cursor: grabbing;
}

.gallery-slide {
  position: absolute;
  inset: 18px 0 0;
  margin: 0;
  display: none;
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0;
}

.gallery-slide.is-active {
  display: grid;
  opacity: 1;
}

.gallery-slide__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--pill);
}

.gallery-slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  pointer-events: none;
}

.gallery-slide__media--fit img {
  object-fit: contain;
  pointer-events: none;
}

.gallery-slide figcaption {
  display: grid;
  grid-template-columns: 90px minmax(280px, 620px);
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 2px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.gallery-slide figcaption span:first-child {
  color: var(--fg);
}

@media (max-width: 850px) {
  .gallery-carousel {
    padding: 12px 14px 14px;
  }
  .gallery-carousel__top {
    gap: 12px;
    padding-bottom: 11px;
  }
  .gallery-thumb {
    width: 66px;
    height: 46px;
  }
  .gallery-controls {
    display: none;
  }
  .gallery-slide {
    inset: 12px 0 0;
  }
  .gallery-slide figcaption {
    grid-template-columns: 58px 1fr;
    gap: 10px;
    font-size: 11px;
  }
}
/* v6 — clearer hero action */
.hero__explore {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 0.08em 24px;
  padding: 21px 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.09em;
  font-weight: 600;
  transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__explore i {
  font-style: normal;
  font-size: 14px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__project:hover .hero__explore {
  background: white;
  color: #101010;
  transform: translateY(-3px);
}

.hero__project:hover .hero__explore i {
  transform: translate(3px, -3px);
}

/* Modal close now behaves like the other capsule controls */
.modal-close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close span {
  background: currentColor;
}

.modal-close:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: rotate(90deg);
}

/* Gallery autoplay capsule */
.gallery-controls {
  align-items: center;
}

.gallery-autoplay {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: background 0.35s ease, color 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-autoplay:hover {
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-2px);
}

.gallery-autoplay__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.gallery-autoplay.is-active .gallery-autoplay__dot {
  opacity: 1;
  animation: galleryPulse 2s ease-in-out infinite;
}

@keyframes galleryPulse {
  0%, 100% {
    transform: scale(0.8);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}
@media (max-width: 850px) {
  .hero__explore {
    margin-left: 10px;
    padding: 9px 12px;
    font-size: 10px;
  }
  .gallery-controls {
    display: flex;
  }
  .gallery-arrow {
    display: none;
  }
  .gallery-autoplay {
    height: 38px;
    font-size: 10px;
    padding: 0 10px;
  }
}
/* Optional visual grouping between stage capsules */
.stage-tab-wrap {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.stage-tab-wrap.has-divider {
  --divider-space: 15px;
  padding-right: var(--divider-space);
  margin-right: calc(var(--divider-space) - 6px);
  position: relative;
}

.stage-tab-wrap.has-divider:after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 24px;
  background: var(--line);
  transform: translateY(-50%);
}

@media (max-width: 850px) {
  .stage-tab-wrap.has-divider {
    margin-right: 11px;
    padding-right: 12px;
  }
  .stage-tab-wrap.has-divider:after {
    height: 22px;
  }
}
/* Responsive sizing and mobile stage carousel. Keep after legacy refinements. */
.hero__title,
.modal-title,
.modal-copy,
.project-card__meta,
.index-row,
.capsule,
.about__statement {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero__title {
  flex: 1 1 auto;
}

.section-head {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 30%);
  gap: 3vw;
}

.section-head h1 {
  font-size: clamp(60px, 12vw, 200px);
}

.project-card__media {
  width: 100%;
}

.work-toolbar {
  gap: 16px;
}

.view-toggle {
  flex-shrink: 0;
}

.project-modal {
  height: 100dvh;
}

.modal-top {
  flex-shrink: 0;
  grid-template-columns: minmax(180px, 1fr) minmax(0, max-content) minmax(180px, 1fr);
  gap: 16px;
  padding-top: max(12px, env(safe-area-inset-top));
}

.modal-identity,
.stage-tabs,
.modal-stage-frame,
.modal-stage,
.gallery-thumbs {
  min-width: 0;
}

.stage-tabs {
  overflow-x: auto;
  padding-block: 4px;
}

@media (min-width: 851px) {
  .stage-tabs > :first-child {
    margin-left: auto;
  }
  .stage-tabs > :last-child {
    margin-right: auto;
  }
  .stage-tabs.is-scrollable,
  .stage-tabs.is-scrollable .stage-tab {
    cursor: grab;
  }
  .stage-tabs.is-dragging,
  .stage-tabs.is-dragging .stage-tab {
    cursor: grabbing;
    user-select: none;
  }
}
.stage-tab {
  white-space: nowrap;
  min-height: 44px;
}

.modal-stage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-column {
  min-height: 0;
}

.modal-column .modal-media {
  margin: 0;
}

.modal-column:first-child {
  padding-left: 76px;
}

.modal-column:last-child {
  padding-right: 76px;
}

.modal-media {
  flex: 1 0 160px;
}

.modal-media img,
.modal-media video {
  min-height: 0;
}

.modal-media video {
  object-fit: contain;
}

.modal-column--text {
  container-type: inline-size;
}

.modal-copy {
  width: 100%;
  padding: clamp(24px, 4vh, 64px) 0;
}

.modal-copy h2 {
  font-size: clamp(32px, 4.8vw, 86px);
}

.modal-copy p {
  font-size: clamp(16px, 1.6vw, 22px);
}

.modal-stage-number {
  top: 20px;
  left: 16px;
  max-width: calc(100% - 32px);
  font-size: clamp(72px, 24vw, 180px);
  font-size: clamp(64px, 42cqi, 210px);
  overflow: hidden;
  white-space: nowrap;
}

.gallery-carousel {
  padding-inline: 76px;
}

.gallery-thumbs {
  flex: 1 1 auto;
}

.gallery-controls {
  flex-shrink: 0;
}

.gallery-slide figcaption {
  grid-template-columns: auto minmax(0, 620px);
  overflow-wrap: anywhere;
}

.pseudo3d {
  min-height: min(480px, 65dvh);
}

@media (min-width: 851px) and (max-width: 1150px) {
  .modal-top {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .stage-tabs {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .modal-close {
    grid-row: 1;
    grid-column: 2;
  }
}
@media (max-width: 850px) {
  .hero {
    min-height: min(650px, 100svh);
  }
  .hero__project {
    flex-wrap: wrap;
    gap: 20px;
    font-size: clamp(38px, 12vw, 100px);
    line-height: 0.95;
  }
  .hero__title {
    flex-basis: 100%;
  }
  .hero__explore {
    margin: 0;
    min-height: 44px;
  }
  .hero__copy {
    bottom: 54px;
  }
  .hero__eyebrow {
    top: 90px;
  }
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .section-head h1 {
    font-size: clamp(48px, 19vw, 150px);
  }
  .section-intro {
    font-size: clamp(18px, 3vw, 22px);
  }
  .work-toolbar {
    flex-wrap: wrap;
  }
  .filters {
    gap: 6px;
  }
  .filter {
    min-height: 44px;
  }
  .view-toggle {
    min-height: 44px;
    margin: 0;
  }
  .about__statement {
    font-size: clamp(36px, 9vw, 76px);
  }
  .about__footer {
    margin-top: 48px;
  }
  .modal-top {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    padding-inline: max(14px, env(safe-area-inset-left));
  }
  .modal-identity {
    gap: 10px;
  }
  .modal-close {
    grid-column: 2;
    grid-row: 1;
  }
  .stage-tabs {
    position: relative;
    display: block;
    height: 60px;
    padding: 0;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  }
  .stage-tab-wrap,
  .stage-tab-wrap.has-divider {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 32%;
    height: 44px;
    margin: 0;
    padding: 0;
    justify-content: center;
    transform: translateX(calc(-50% + var(--stage-offset, 0) * 100%));
    opacity: 0.4;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  }
  .stage-tab-wrap.has-divider:after {
    display: none;
  }
  .stage-tab-wrap.is-current {
    opacity: 1;
  }
  .stage-tab-wrap.is-distant {
    visibility: hidden;
    pointer-events: none;
  }
  .stage-tab {
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .stage-navigation,
  .stage-arrow,
  .gallery-arrow {
    display: none;
    margin: 0;
    padding: 0;
  }
  .modal-stage {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
  }
  .modal-column,
  .modal-column:first-child,
  .modal-column:last-child {
    flex: 0 0 auto;
    width: 100%;
    padding: 16px;
    gap: 16px;
    overflow: visible;
  }
  .modal-column .modal-media,
  .modal-column + .modal-column .modal-media {
    margin: 0;
  }
  .modal-column--text {
    min-height: 0;
  }
  .modal-copy {
    margin: 0;
    padding: 40px 0 20px;
  }
  .modal-copy h2 {
    font-size: clamp(32px, 9vw, 68px);
    line-height: 0.98;
  }
  .modal-copy p {
    font-size: clamp(16px, 2.8vw, 20px);
  }
  .modal-media {
    flex: none;
    width: 100%;
  }
  .modal-media img,
  .modal-media video,
  .modal-media--fit img,
  .modal-media--fit video {
    position: static;
    width: 100%;
    height: auto;
    max-height: 70svh;
    object-fit: contain;
  }
  .modal-column:last-child {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .modal-stage.is-gallery {
    overflow-y: auto;
  }
  .gallery-carousel {
    height: 100%;
    min-height: 280px;
    padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  }
  .gallery-carousel__top {
    gap: 8px;
  }
  .gallery-slide figcaption {
    grid-template-columns: auto minmax(0, 1fr);
    max-height: min(140px, 25svh);
    overflow-y: auto;
  }
  .gallery-slide {
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .gallery-slide__media img {
    object-fit: contain;
  }
  .gallery-controls {
    margin: 0;
    padding: 0;
  }
  .gallery-autoplay {
    min-height: 44px;
  }
  .pseudo3d {
    flex: none;
    height: clamp(240px, 65svh, 640px);
    min-height: 0;
  }
  .pseudo3d__scene {
    max-width: none;
    max-height: none;
  }
}
@media (max-height: 500px) and (max-width: 850px) {
  .hero {
    min-height: 480px;
  }
  .gallery-carousel {
    min-height: 320px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage-tab-wrap {
    transition: none;
  }
}
/* Mobile projects are one continuous document below the fixed modal header. */
@media (max-width: 850px) {
  .modal-stage.is-mobile-flow {
    display: block;
    scroll-behavior: auto;
  }
  .mobile-project-stage {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-bottom: 1px solid var(--line);
    padding-block: 12px 24px;
  }
  .mobile-project-stage:last-child {
    border-bottom: 0;
  }
  .mobile-project-stage > .modal-column {
    border-left: 0;
    border-top: 0;
  }
  .mobile-project-stage .gallery-carousel {
    height: clamp(360px, 75svh, 780px);
  }
  .stage-tab {
    width: 100%;
    padding-inline: 6px;
    font-size: clamp(10px, 2.6vw, 12px);
  }
  .stage-tab-wrap {
    opacity: 0.6;
  }
}
/* Mobile grid cards always lead with their metadata. */
.project-card__year {
  display: none;
}

@media (max-width: 850px) {
  .project-card .project-card__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    width: 100%;
    min-height: 0;
    order: -1;
    margin: 0;
    padding: 0 0 12px;
  }
  .project-card__name {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .project-card__number {
    display: none;
  }
  .project-card__year {
    display: block;
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
    color: var(--muted);
  }
  .project-card .project-card__categories {
    grid-column: 1/-1;
    grid-row: 2;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .project-card__categories:empty {
    display: none;
  }
}
@media (min-width: 851px) {
  .project-card .project-card__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    width: 100%;
  }
  .project-card__name {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .project-card__year {
    display: block;
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
    color: var(--muted);
  }
  .project-card .project-card__meta > .project-card__categories {
    grid-column: 1/-1;
    grid-row: 2;
    text-align: left;
  }
}
/* Full-width video stages use the gallery's inset and divider styling. */
.modal-stage.is-video {
  display: block;
  overflow-y: auto;
}

.video-stage {
  min-width: 0;
  padding: 18px 76px 22px;
}

.video-stage__header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.video-stage__header h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.1;
  font-weight: 500;
}

.video-stage__header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.5;
}

.video-stage__media {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-stage__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 850px) {
  .video-stage {
    padding: 12px 14px max(14px, env(safe-area-inset-bottom));
  }
  .video-stage__header {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
}
/* Fit the full-width player within the desktop modal's remaining height. */
@media (min-width: 851px) {
  .modal-stage.is-video {
    overflow: hidden;
  }
  .modal-stage.is-video .video-stage {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .modal-stage.is-video .video-stage__media {
    min-height: 0;
    aspect-ratio: auto;
  }
  .modal-stage.is-video .video-stage__media video {
    min-height: 0;
    object-fit: contain;
  }
}
.work-toolbar {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(0, auto) minmax(110px, 1fr);
  align-items: center;
}

.work-toolbar .filters {
  justify-content: center;
}

.work-toolbar .view-toggle {
  justify-self: end;
  margin: 0;
}

.year-filter {
  justify-self: start;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-align: center;
}

.year-filter:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .work-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
  }
  .work-toolbar .filters {
    grid-column: 1/-1;
    grid-row: 1;
    width: 100%;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.137254902);
  }
  .work-toolbar .filter {
    flex: 1 1 auto;
    text-align: center;
  }
  .work-toolbar .year-filter {
    grid-column: 1;
    grid-row: 2;
    min-height: 44px;
    font-size: 0.9rem;
  }
  .work-toolbar .view-toggle {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}
/* Featured splash: centered title, separate project action, and archive link. */
.hero__copy {
  top: max(160px, 29svh);
  bottom: auto;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: calc(100% - 56px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.hero__type {
  margin: 0 0 12px;
  text-align: left;
}

.hero__title {
  margin: 0;
  font-size: clamp(44px, 6vw, 156px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-align: center;
  text-wrap: balance;
}

.hero__project.hero__explore {
  align-self: flex-end;
  width: auto;
  min-height: 44px;
  margin: 18px 0 0;
  padding: 10px 24px;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
  color: white;
  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.hero__explore svg {
  width: 24px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.4s ease;
}

.hero__project.hero__explore:hover {
  background: white;
  color: #101010;
}

.hero__explore:hover svg {
  transform: translateX(3px);
}

.scroll-cue {
  left: 50%;
  right: auto;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: white;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.3s ease, color 0.3s ease;
}

.scroll-cue svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.scroll-cue:hover {
  background: white;
  color: #101010;
}

.hero__explore:focus-visible,
.scroll-cue:focus-visible {
  outline: 3px solid white;
  outline-offset: 5px;
}

#projects {
  scroll-margin-top: 82px;
}

@media (max-width: 850px) {
  .hero__copy {
    top: max(145px, 29svh);
    max-width: calc(100% - 36px);
  }
  .hero__title {
    font-size: clamp(38px, 10vw, 84px);
  }
  .hero__type {
    font-size: 10px;
    line-height: 1.5;
  }
  .hero__project.hero__explore {
    margin-top: 16px;
    padding: 9px 18px;
    gap: 12px;
  }
  #projects {
    scroll-margin-top: 68px;
  }
}
/* Hero metadata shares the title width, with the year flush right. */
.hero__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hero__meta .hero__type {
  min-width: 0;
  margin: 0;
}

.hero__year {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-align: right;
}

/* Size the complete heading to its column, including the reserved counter. */
.projects-heading {
  container-type: inline-size;
  min-width: 0;
  margin-left: 5rem;
}

.section-head h1 {
  display: flex;
  align-items: baseline;
  gap: 0.16em;
  font-size: clamp(24px, 14cqw, 140px);
  white-space: nowrap;
}

.project-counter {
  --counter-min-width: 3ch;
  display: inline-flex;
  flex: 0 0 auto;
  align-self: center;
  justify-content: flex-end;
  min-width: max(var(--counter-min-width), var(--counter-digits, 3) * 1ch);
  font-size: 0.46em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1.15;
}

.project-counter__digit {
  position: relative;
  display: block;
  flex: 0 0 1ch;
  width: 1ch;
  height: 1.15em;
  overflow: hidden;
}

.project-counter__number {
  position: absolute;
  inset: 0;
  display: block;
  text-align: center;
}

@media (max-width: 850px) {
  .hero__year {
    font-size: 10px;
  }
}
/* Scroll-aware header: the collapsing prefix keeps PROJECTS centered. */
.nav {
  --nav-newest-width: 64px;
  --nav-gap: 30px;
  --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.nav__newest-mask {
  display: block;
  flex: 0 0 auto;
  width: 0;
  overflow: hidden;
  padding-block: 8px;
  margin-block: -8px;
  transition: width 620ms var(--nav-ease) 160ms;
}

.nav a.nav__newest {
  display: block;
  width: max-content;
  opacity: 0;
  transform: translateX(calc(100% + var(--nav-gap)));
  transition: transform 380ms var(--nav-ease), opacity 220ms ease;
}

.nav__delimiter {
  flex: 0 0 auto;
  width: 0;
  height: 1.1em;
  margin-right: 0;
  background: currentColor;
  opacity: 0;
  transform: translateX(12px);
  transition: width 620ms var(--nav-ease) 160ms, margin-right 620ms var(--nav-ease) 160ms, transform 380ms var(--nav-ease) 100ms, opacity 220ms ease 100ms;
}

.nav.is-projects-visible .nav__newest-mask {
  width: calc(var(--nav-newest-width) + var(--nav-gap));
  transition-delay: 0ms;
}

.nav.is-projects-visible .nav__delimiter {
  width: 1px;
  margin-right: var(--nav-gap);
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0ms;
}

.nav.is-projects-visible .nav__newest {
  opacity: 1;
  transform: translateX(0);
  transition: transform 520ms var(--nav-ease) 140ms, opacity 320ms ease 140ms;
}

.nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .nav__newest-mask,
  .nav__delimiter,
  .nav a.nav__newest {
    transition: none;
  }
}
/* BRIEF title: adaptive, staggered kinetic type over the project image. */
.project-card__media {
  position: relative;
  isolation: isolate;
}

.project-card__brief {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  overflow: hidden;
  pointer-events: none;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.38));
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.project-card__brief-title {
  display: block;
  width: 100%;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-align: left;
  text-wrap: balance;
  overflow-wrap: normal;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.12);
}

.project-card__brief-word {
  display: inline-block;
  white-space: nowrap;
  vertical-align: top;
}

.project-card__brief-letter {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.7em, 0) rotate(5deg);
  clip-path: inset(0 0 100% 0);
  transition: none;
}

.project-card__media[data-brief-shape=wide] .project-card__brief-letter {
  transform: translate3d(0.22em, 0.35em, 0);
}

.project-card__media[data-brief-shape=tall] .project-card__brief-letter {
  transform: translate3d(0, 1em, 0) rotate(7deg);
}

.project-card .project-trigger:is(.is-brief-hovered, :focus-visible) .project-card__brief {
  opacity: 1;
  transition-duration: 260ms;
}

.project-card .project-trigger:is(.is-brief-hovered, :focus-visible) .project-card__brief-letter {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0);
  clip-path: inset(-20% -30% -20% -30%);
  transition: transform 540ms cubic-bezier(0.16, 1, 0.3, 1), clip-path 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 150ms ease-out;
  transition-delay: var(--brief-delay, 0ms);
}

.project-card .project-trigger:is(.is-brief-hovered, :focus-visible) .project-card__media img {
  transform: scale(1.035);
  filter: saturate(0.8) brightness(0.85);
}

.project-card .project-trigger:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .project-card .project-trigger .project-card__brief,
  .project-card .project-trigger .project-card__brief-letter,
  .project-card .project-trigger .project-card__media img {
    transition: none;
    transform: none;
  }
}/*# sourceMappingURL=styles.css.map */