/* A vertical archive: wide films, portrait posters, alternating placement. */
body[data-page='projects'] main { overflow: clip; }
body[data-page='projects'] .archive-intro {
  position: relative;
  overflow: clip;
  padding: calc(var(--header-height) + 26px) var(--page-gutter) 54px;
  container-type: inline-size;
}
.archive-edition {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
}
.archive-edition > span:first-child { color: var(--paper); }
.archive-title-stage { position: relative; perspective: 1100px; }
.archive-opening-rule {
  position: absolute;
  z-index: 1;
  top: 38%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.archive-glyph,
.archive-glyph-mask { display: inline-block; position: relative; }
.archive-glyph { backface-visibility: hidden; }
.archive-glyph-mask { vertical-align: top; padding: .14em .07em; margin: -.14em -.07em; }
body[data-page='projects'] .archive-intro h1 {
  max-width: none;
  margin: 30px 0 0;
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.07em;
}
.archive-title-lead {
  display: block;
  width: fit-content;
  font: 400 clamp(90px, 16.5cqi, 290px)/.9 var(--name-font);
  letter-spacing: -.075em;
}
.archive-title-main {
  display: block;
  width: fit-content;
  margin: -.01em 0 0 18%;
  color: var(--blue);
  font: italic 400 clamp(130px, 24.5cqi, 425px)/1 Georgia, serif;
  letter-spacing: -.055em;
}
.archive-intro-tail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.archive-intro-tail > span:first-child { display: flex; align-items: center; gap: 15px; }
.archive-intro-tail > span:first-child::before {
  content: '';
  display: block;
  width: clamp(48px, 8vw, 140px);
  height: 1px;
  background: var(--line);
}
.archive-intro-tail > span:last-child { color: var(--blue-light); font-size: 23px; }
.archive-motion-ready .archive-title-lead,
.archive-motion-ready .archive-title-main { animation: none; }

body[data-page='projects'] .projects-archive { padding-top: 0; padding-bottom: 120px; }
.archive-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding: 16px 0 14px;
  margin-bottom: 58px;
  border-top: 1px solid var(--line);
}
.projects-archive .filters { gap: 10px 28px; margin: 0; }
.projects-archive .filter {
  position: relative;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  scale: 1;
  transition-property: color, translate;
}
.projects-archive .filter::after {
  content: '';
  position: absolute;
  inset: auto 0 3px;
  height: 1px;
  background: var(--blue);
  opacity: 0;
  transform: scaleX(.2);
  transform-origin: left;
  transition: opacity .25s, transform .4s var(--ease);
}
.projects-archive .filter.is-active { background: transparent; color: var(--paper); }
.projects-archive .filter.is-active::after,
.projects-archive .filter:not(:disabled):focus-visible::after { opacity: 1; transform: scaleX(1); }
.archive-total { margin: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.archive-total-number { color: var(--paper); }

.projects-archive .project-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(100px, 11vw, 180px);
  padding: 0;
}
.projects-archive .project-card {
  --archive-arrival: -56px;
  --project-radius: 8px;
  width: 60%;
  max-width: 990px;
  margin: 0;
  top: auto;
}
.projects-archive .project-card:nth-child(even) { --archive-arrival: 56px; align-self: flex-end; }
.projects-archive .project-card.project-card--poster { width: min(42%, 400px, calc(56svh * var(--poster-width-factor, .707115))); }
.archive-motion-ready .projects-archive .project-card { perspective: 1400px; }
.archive-number {
  position: absolute;
  left: calc(100% + 12%);
  top: 9%;
  display: block;
  color: var(--blue);
  font: italic 400 clamp(100px, 13vw, 225px)/1 Georgia, serif;
  letter-spacing: -.075em;
  pointer-events: none;
  white-space: nowrap;
}
.projects-archive .project-card:nth-child(even) .archive-number { left: auto; right: calc(100% + 12%); }
.archive-motion-ready .archive-number { transform-origin: 50% 80%; }
.projects-archive .project-scroll-scene { transform: none; clip-path: none; border-radius: var(--project-radius); }
.projects-archive .project-visual { aspect-ratio: 16 / 9; }
.projects-archive .project-visual.is-poster { aspect-ratio: var(--poster-ratio, 2 / 3); }
.projects-archive .project-info {
  --archive-title-size: clamp(21px, 3.75cqi, 34px);
  position: relative;
  flex: none;
  width: 100%;
  min-height: calc(var(--archive-title-size) * 2.32 + 94px);
  margin: 0;
  padding: 20px 26px 22px;
  gap: 10px;
  background: #141d2a;
}
.projects-archive .project-info > div { gap: 9px; }
.projects-archive .project-info h3 {
  max-width: 760px;
  font: 400 var(--archive-title-size)/1.16 var(--name-font);
  letter-spacing: -.055em;
}
.projects-archive .project-info h3 .motion-word { animation: none; }
.projects-archive .project-info p { font-size: 11px; }
.projects-archive .project-year { margin: 0; font-size: 12px; }
.js:not(.archive-motion-ready) .projects-archive .project-card.reveal {
  opacity: 0;
  translate: var(--archive-arrival) 38px;
  transition: opacity .85s var(--ease), translate 1.15s var(--ease);
  transition-delay: 0ms;
}
.js:not(.archive-motion-ready) .projects-archive .project-card.reveal.visible,
.js:not(.archive-motion-ready) .projects-archive .project-card.reveal:focus-within { opacity: 1; translate: 0 0; }
.js.archive-motion-ready .projects-archive .project-card.reveal,
.js.archive-motion-ready .archive-navigation .reveal {
  opacity: 1;
  translate: none;
  clip-path: none;
  animation: none;
  transition: none;
}
.archive-motion-ready .projects-archive .motion-word { opacity: 1; translate: none; animation: none !important; }
.archive-motion-ready .projects-archive .project-info h3 { transform-origin: left center; }
.archive-motion-ready .projects-archive .motion-media-plane { backface-visibility: hidden; }
.archive-motion-ready .projects-archive .visual-play { transition: none; }

/* A play tab replaces the repeated circular controls. */
.projects-archive .visual-play {
  left: auto;
  right: 18px;
  top: auto;
  bottom: 18px;
  width: 48px;
  height: 44px;
  margin: 0;
  padding-left: 2px;
  border: 1px solid #f0f1f380;
  border-radius: 2px;
  background: #0b1017dc;
  color: var(--paper);
  font-size: 15px;
  transform: none;
  scale: 1;
  transition: color .25s, background .25s, transform .4s var(--ease);
}
.projects-archive .project-visual:focus-visible .visual-play { transform: translate3d(-4px, -4px, 0); background: var(--blue); color: var(--ink); }
.projects-archive .project-visual::after {
  content: '';
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 84px;
  bottom: 18px;
  height: 1px;
  background: var(--blue-light);
  transform: scaleX(0);
  transform-origin: right;
  opacity: 0;
  pointer-events: none;
  transition: transform .6s var(--ease), opacity .25s;
}
.projects-archive .project-visual:focus-visible::after { transform: scaleX(1); opacity: 1; }

.archive-next {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 34px;
  margin: 0 var(--page-gutter) 90px;
  padding: 32px 0 22px;
  border-top: 1px solid var(--line);
}
.archive-next > p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.archive-next > a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: clamp(24px, 6vw, 100px);
  color: var(--paper);
  font: italic 400 clamp(43px, 6vw, 100px)/1.05 Georgia, serif;
  letter-spacing: -.04em;
}
.archive-next svg {
  width: clamp(42px, 5vw, 76px);
  height: auto;
  color: var(--blue);
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  transition: transform .5s var(--ease);
}
.archive-next a:focus-visible svg { transform: translate3d(5px, -5px, 0); }

@media (hover: hover) and (pointer: fine) {
  .projects-archive .filter:not(:disabled):hover { color: var(--blue-light); background: transparent; scale: 1; }
  .projects-archive .filter:not(:disabled):hover::after { opacity: 1; transform: scaleX(1); }
  .projects-archive .project-visual:hover .visual-play { transform: translate3d(-4px, -4px, 0); background: var(--blue); color: var(--ink); scale: 1; }
  .projects-archive .project-visual:hover::after { transform: scaleX(1); opacity: 1; }
  .archive-next a:hover svg { transform: translate3d(5px, -5px, 0); }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .projects-archive .project-card { width: 64%; }
  .archive-number { left: calc(100% + 6%); font-size: 12vw; }
  .projects-archive .project-card:nth-child(even) .archive-number { right: calc(100% + 6%); }
  .projects-archive .project-info { padding-inline: 22px; }
}
@media (max-width: 760px) {
  body[data-page='projects'] .archive-intro { padding-top: calc(var(--header-height) + 22px); padding-bottom: 38px; }
  .archive-edition { font-size: 10px; }
  body[data-page='projects'] .archive-intro h1 { margin-top: 36px; }
  .archive-title-lead { font-size: 24cqi; }
  .archive-title-main { margin: .1em 0 0 9%; font-size: 25cqi; }
  .archive-intro-tail { margin-top: 25px; font-size: 10px; }
  .archive-intro-tail > span:last-child { font-size: 19px; }
  body[data-page='projects'] .projects-archive { padding-bottom: 80px; }
  .archive-navigation { margin-bottom: 72px; gap: 8px 16px; padding-block: 12px; }
  .projects-archive .filters { gap: 8px 22px; }
  .projects-archive .filter { font-size: 13px; }
  .archive-total { font-size: 10px; }
  .projects-archive .project-grid { gap: 104px; }
  .projects-archive .project-card { --archive-arrival: -16px; width: 100%; --project-radius: 6px; }
  .projects-archive .project-card.project-card--poster { width: min(100%, 400px); }
  .projects-archive .project-card:nth-child(even) { --archive-arrival: 16px; }
  .archive-number,
  .projects-archive .project-card:nth-child(even) .archive-number { top: -61px; left: 0; right: auto; font-size: 49px; letter-spacing: -.06em; }
  .projects-archive .project-card:nth-child(even) .archive-number { left: auto; right: 0; }
  .projects-archive .project-info { --archive-title-size: clamp(20px, 5.7cqi, 26px); min-height: calc(var(--archive-title-size) * 3.48 + 84px); padding: 18px 20px; gap: 9px; }
  .projects-archive .project-info p { font-size: 10px; }
  .projects-archive .project-year { font-size: 11px; }
  .projects-archive .visual-play { right: 12px; bottom: 12px; width: 44px; height: 40px; }
  .projects-archive .project-visual::after { bottom: 12px; left: 12px; right: 72px; }
  .archive-next { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 62px; padding-top: 24px; }
  .archive-next > p { margin: 0; font-size: 12px; }
  .archive-next > a { width: 100%; font-size: clamp(38px, 9vw, 66px); }
  .archive-next svg { width: 43px; }
}
html.user-motion-paused .archive-title-lead,
html.user-motion-paused .archive-title-main { animation: none !important; opacity: 1; transform: none; }
html.user-motion-paused .archive-next svg,
html.user-motion-paused .projects-archive .visual-play { transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .js .archive-title-lead,
  .js .archive-title-main { animation: none; opacity: 1; transform: none; }
  .js .projects-archive .project-card.reveal { opacity: 1; translate: none; transition: none; }
  .projects-archive .project-cover { scale: 1 !important; transition: opacity .01ms; }
  .projects-archive .visual-play,
  .archive-next svg { transform: none !important; transition: none; }
  .projects-archive .project-visual::after,
  .projects-archive .filter::after { transition: none; }
}
