@font-face {
  font-family: 'nbarchitekt';
  src: url('https://activetheory.net/assets/fonts/NBArchitektStd-Regular-export/NBArchitektStd-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.legacy-productions-card {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(14, 16, 23, .98), rgba(5, 7, 11, .98)) padding-box,
    conic-gradient(from 40deg, #72d8d1, #a793ed, #f0809f, #f6ca72, #fff2bc, #70d6cc) border-box;
  background-size: 100% 100%, 240% 240%;
  box-shadow: inset 0 0 34px rgba(252, 212, 118, .045), 0 14px 34px rgba(0, 0, 0, .24);
  isolation: isolate;
  animation: legacy-gilded-border 8s linear infinite;
}

.legacy-productions-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .7;
  background:
    radial-gradient(circle at 76% 22%, rgba(244, 198, 105, .16), transparent 22%),
    radial-gradient(circle at 22% 88%, rgba(110, 213, 204, .14), transparent 34%),
    linear-gradient(110deg, transparent 24%, rgba(255, 242, 190, .05) 49%, transparent 70%);
}

.legacy-productions-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  border: 1px solid rgba(255, 238, 174, .12);
  border-radius: calc(var(--radius) - 1px);
  pointer-events: none;
}

@keyframes legacy-gilded-border {
  50% { background-position: 0 0, 100% 100%; }
}

.legacy-productions-card-button {
  position: relative;
  width: 100%;
  min-height: 166px;
  padding: 16px;
  border: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  overflow: hidden;
  text-align: left;
  color: #f1ede3;
  background: transparent;
  cursor: pointer;
}

.legacy-productions-card-kicker {
  position: relative;
  z-index: 2;
  color: rgba(247, 213, 132, .72);
  font: 600 10px/1.2 Georgia, serif;
  letter-spacing: .24em;
}

.legacy-productions-card strong {
  position: relative;
  z-index: 2;
  align-self: end;
  font-family: 'Maple Mono CN', 'STKaiti', 'KaiTi', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .1em;
  text-shadow: 0 0 28px rgba(255, 215, 127, .22);
}

.legacy-productions-card p {
  position: relative;
  z-index: 2;
  max-width: 27ch;
  margin: 0;
  color: rgba(225, 221, 211, .58);
  font-size: 12px;
  line-height: 1.55;
}

.legacy-productions-card-enter {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  color: rgba(255, 231, 166, .76);
  font-size: 10px;
  letter-spacing: .12em;
}

.legacy-productions-card-enter i {
  display: inline-block;
  font-style: normal;
  transition: transform .25s ease;
}

.legacy-productions-card:hover,
.legacy-productions-card:focus-within {
  transform: translateY(-2px);
  box-shadow: inset 0 0 38px rgba(252, 212, 118, .075), 0 18px 46px rgba(0, 0, 0, .32);
}

.legacy-productions-card:hover .legacy-productions-card-enter i,
.legacy-productions-card:focus-within .legacy-productions-card-enter i { transform: translate(3px, -3px); }

.legacy-productions-card-button:focus-visible { outline: 2px solid rgba(255, 231, 166, .85); outline-offset: -4px; }

.legacy-productions-card-orbit {
  position: absolute;
  width: 106px;
  aspect-ratio: 1;
  right: 8px;
  top: 10px;
  border: 1px solid rgba(247, 208, 118, .22);
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow: 0 0 35px rgba(113, 218, 205, .08), inset 0 0 32px rgba(201, 109, 151, .08);
}

.legacy-productions-card-orbit::before,
.legacy-productions-card-orbit::after {
  content: '';
  position: absolute;
  border-radius: inherit;
  border: 1px solid rgba(118, 220, 212, .18);
}

.legacy-productions-card-orbit::before { inset: 17%; transform: rotate(58deg); }
.legacy-productions-card-orbit::after { inset: 38%; background: rgba(255, 224, 150, .13); box-shadow: 0 0 24px rgba(250, 198, 105, .26); }

.legacy-productions-active { overflow: hidden; }

.legacy-productions-overlay {
  --legacy-pointer-x: 50vw;
  --legacy-pointer-y: 50vh;
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  color: #f2f2ed;
  background: #000;
  opacity: 0;
  transform: scale(1.008);
  transition: opacity .34s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}

.legacy-productions-overlay.is-open { opacity: 1; transform: none; }
.legacy-productions-overlay [hidden] { display: none !important; }

.legacy-productions-loader {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: rgba(204, 226, 224, .76);
  background: #000;
}

.legacy-productions-loader-mark {
  width: 90px;
  height: 52px;
  overflow: hidden;
  clip-path: polygon(8% 60%, 30% 18%, 70% 4%, 95% 42%, 82% 76%, 24% 94%);
  background:
    radial-gradient(circle, rgba(155, 226, 224, .92) 0 1px, transparent 1.35px) 0 0 / 7px 7px,
    radial-gradient(circle, rgba(99, 173, 184, .66) 0 .8px, transparent 1.2px) 3px 4px / 9px 9px,
    repeating-linear-gradient(125deg, rgba(117, 199, 206, .12) 0 1px, transparent 1px 7px);
  box-shadow: 0 0 18px rgba(112, 219, 216, .18);
  filter: drop-shadow(0 0 5px rgba(112, 219, 216, .42));
  animation: legacy-loader-flicker 1.35s steps(7, end) infinite;
}

.legacy-productions-loader-line { width: 72px; height: 1px; overflow: hidden; background: rgba(133, 193, 196, .08); }
.legacy-productions-loader-line i { display: block; width: 100%; height: 100%; transform: scaleX(0); transform-origin: left; background: #78bec0; transition: transform .15s linear; }
.legacy-productions-loader strong { font: 400 12px/1.2 monospace; letter-spacing: .08em; }
.legacy-productions-loader small { color: rgba(181, 203, 202, .24); font: 9px/1.2 monospace; letter-spacing: .2em; }

@keyframes legacy-loader-flicker {
  0%, 100% { opacity: .4; transform: skewX(-8deg); }
  48% { opacity: 1; transform: skewX(-8deg) translateY(-1px); }
}

.legacy-productions-overlay:not(.is-ready) .legacy-productions-header,
.legacy-productions-overlay:not(.is-ready) .legacy-productions-stage,
.legacy-productions-overlay:not(.is-ready) .legacy-productions-progress { opacity: 0; visibility: hidden; }

.legacy-productions-canvas,
.legacy-productions-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.legacy-productions-grain {
  z-index: 1;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.legacy-productions-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--legacy-pointer-x) var(--legacy-pointer-y), rgba(153, 232, 224, .018), transparent 20%),
    radial-gradient(ellipse at -4% 55%, rgba(70, 156, 176, .32), transparent 34%),
    radial-gradient(ellipse at 100% 68%, rgba(54, 122, 121, .11), transparent 31%),
    linear-gradient(110deg, rgba(18, 47, 53, .14), rgba(4, 14, 19, .04) 50%, rgba(11, 25, 32, .12));
}

.legacy-productions-header {
  position: fixed;
  z-index: 6;
  inset: 0 0 auto;
  padding: 42px 40px 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  transition: opacity .6s ease;
}

.legacy-productions-mark { display: none; }

.legacy-productions-nav {
  display: flex;
  align-items: center;
  gap: 0;
  width: 240px;
  min-height: 48px;
  padding: 3px 8px;
  border: 1px solid rgba(116, 193, 184, .46);
  border-radius: 999px;
  background: rgba(0, 5, 6, .62);
  box-shadow: 0 0 38px rgba(95, 211, 191, .15), inset 0 0 18px rgba(95, 211, 191, .04);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.legacy-productions-nav button {
  position: relative;
  flex: 1 1 50%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  color: rgba(224, 229, 226, .94);
  background: transparent;
  font: 500 11px/1 monospace;
  letter-spacing: .04em;
  cursor: pointer;
}

.legacy-productions-nav button[data-legacy-nav='contact']::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  width: 48px;
  height: 1px;
  background: rgba(223, 230, 225, .66);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.legacy-productions-nav button:hover,
.legacy-productions-nav button:focus-visible { color: #eef5f1; background: rgba(124, 211, 198, .08); outline: none; }
.legacy-productions-close { color: rgba(244, 221, 170, .82) !important; }

.legacy-productions-stage {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  outline: none;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: opacity .8s ease .12s;
  touch-action: none;
}

.legacy-productions-stage[aria-hidden='true'] {
  opacity: 0;
  pointer-events: none;
}

.legacy-productions-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  background: transparent;
  text-align: left;
  transform: none;
  transform-origin: center;
  transition: opacity .1s linear;
  will-change: clip-path, opacity;
  pointer-events: none;
}

.legacy-productions-hero h1 {
  position: absolute;
  left: 20.2%;
  top: 39%;
  margin: 0;
  white-space: pre-line;
  font-family: 'nbarchitekt', 'Maple Mono CN', Consolas, monospace;
  font-size: clamp(72px, 5.15vw, 106px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: rgba(246, 247, 243, .98);
  text-shadow: 0 0 5px rgba(255, 255, 255, .52), 0 0 22px rgba(221, 237, 236, .16);
}

.legacy-productions-about-copy {
  position: absolute;
  left: 59%;
  top: 63%;
  width: min(430px, 34vw);
  font-family: 'nbarchitekt', 'Maple Mono CN', Consolas, monospace;
  color: rgba(246, 247, 243, .96);
  text-transform: uppercase;
}

.legacy-productions-about-copy > p {
  margin: 0 0 34px;
  font-size: clamp(13px, .9vw, 18px);
  line-height: 1.35;
}

.legacy-productions-about-copy > small {
  display: block;
  white-space: pre-line;
  font-size: clamp(13px, .9vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -.015em;
}

.legacy-clean-room-copy {
  position: absolute;
  inset: 0;
  z-index: 5;
  color: rgba(245, 249, 245, .92);
  font-family: 'nbarchitekt', 'Maple Mono CN', Consolas, monospace;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity .08s linear;
  will-change: opacity, transform;
}

.legacy-clean-room-copy h2 {
  position: absolute;
  left: 50%;
  top: 34%;
  margin: 0;
  translate: -50% -50%;
  font-size: clamp(19px, 1.55vw, 31px);
  font-weight: 400;
  letter-spacing: .08em;
  text-shadow: 0 0 18px rgba(175, 238, 226, .2);
}

.legacy-clean-room-copy p {
  position: absolute;
  left: 50%;
  top: 59%;
  margin: 0;
  translate: -50% -50%;
  font-size: clamp(12px, .8vw, 16px);
  line-height: 1.55;
  letter-spacing: .045em;
}

.legacy-clean-room-copy p span { display: block; }

.legacy-productions-scroll-cue {
  position: absolute;
  left: 45%;
  top: 29.5%;
  display: grid;
  justify-items: center;
  translate: -50% 0;
  color: rgba(154, 190, 199, .82);
  font: 500 12px/1 monospace;
  letter-spacing: .08em;
  transition: opacity .15s linear;
}

.legacy-productions-track { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }

.legacy-work {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform-style: preserve-3d;
  pointer-events: none;
  transition: opacity 200ms linear, visibility 0s 200ms;
}

.legacy-work.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 1s linear, visibility 0s;
}

.legacy-work-deck { position: absolute; inset: 0; perspective: 1400px; transform-style: preserve-3d; }

.legacy-work-card {
  --legacy-work-accent: #00c390;
  position: absolute;
  left: 50%;
  top: 41%;
  width: clamp(620px, 41vw, 840px);
  aspect-ratio: 1.46;
  overflow: hidden;
  padding: 0;
  border: 4px solid color-mix(in srgb, var(--legacy-work-accent) 58%, #07191a);
  border-radius: 30px;
  color: #f2f6f4;
  background: #071b20;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, .36), 0 24px 100px rgba(0, 0, 0, .34);
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  cursor: pointer;
  transition: filter 400ms cubic-bezier(.17, .4, .02, .99);
}

.legacy-work-card:hover,
.legacy-work-card:focus-visible { filter: brightness(1.14) saturate(1.08); outline: none; }

.legacy-work-card::before,
.legacy-work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.legacy-work-card::before {
  background:
    radial-gradient(circle at 63% 42%, color-mix(in srgb, var(--legacy-work-accent) 38%, transparent), transparent 34%),
    linear-gradient(116deg, rgba(255, 255, 255, .15), transparent 24% 68%, rgba(107, 232, 220, .12));
  mix-blend-mode: soft-light;
  opacity: .72;
}

.legacy-work-card::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent 52%, rgba(99, 225, 216, .14) 66%, transparent 82%);
  mix-blend-mode: screen;
  opacity: .34;
}

.legacy-work-card img,
.legacy-work-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
  filter: saturate(.82) contrast(1.12) brightness(.82);
  transform: scale(1.025);
}
.legacy-work-card.has-media .legacy-work-card-fallback { display: none; }
.legacy-work-card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12%;
  background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--legacy-work-accent) 34%, transparent), transparent 54%), #071b20;
  font: 400 clamp(32px, 4vw, 72px)/.95 'nbarchitekt', sans-serif;
  text-align: center;
  text-wrap: balance;
}

.legacy-work-filters {
  position: fixed;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: min(450px, 100%);
  height: calc(100% - 100px);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: #c6c6c6;
  mix-blend-mode: color-dodge;
  pointer-events: none;
  font: 400 14px/1.5 'nbarchitekt', monospace;
}

.legacy-work.is-active .legacy-work-filters { pointer-events: auto; }
.legacy-work-filters strong { margin-bottom: 10px; color: #fff; font-weight: 400; }
.legacy-work-filter-links { display: flex; flex-direction: column; align-items: flex-start; }
.legacy-work-filter-links button {
  padding: 5px 0;
  border: 0;
  color: #c6c6c6;
  background: transparent;
  font: 700 14px/1.5 'nbarchitekt', monospace;
  text-align: left;
  cursor: pointer;
  transition: color .4s cubic-bezier(.17, .4, .02, .99), transform .4s cubic-bezier(.17, .4, .02, .99), text-shadow .4s;
}
.legacy-work-filter-links button:hover,
.legacy-work-filter-links button:focus-visible,
.legacy-work-filter-links button[aria-current='true'] { color: #fff; transform: translateX(10px); text-shadow: 0 0 5px #fff; outline: none; }
.legacy-work-question {
  width: 200px;
  height: 46px;
  margin-top: 18px;
  padding: 0 22px;
  border: 1px solid rgba(198, 198, 198, .34);
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .08);
  font: 400 12px/1 'nbarchitekt', monospace;
  outline: none;
}
.legacy-work-question::placeholder { color: rgba(198, 198, 198, .65); }
.legacy-work-empty { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(224, 232, 227, .45); }

.legacy-productions-progress { position: fixed; z-index: 7; top: 0; right: 0; bottom: 0; width: 6px; border-radius: 999px; background: rgba(255, 255, 255, .025); }
.legacy-productions-progress span { display: block; width: 100%; height: 32px; border-radius: inherit; transform: translate3d(0, 0, 0); background: rgba(244, 246, 240, .92); box-shadow: 0 0 13px rgba(191, 235, 226, .3); will-change: transform; }

.legacy-production-detail {
  --legacy-detail-accent: #7dd6cf;
  position: fixed;
  inset: 0;
  z-index: 9;
  overflow: hidden;
  padding: 0;
  display: block;
  color: #f0eee7;
  background: transparent;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .28s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}

.legacy-production-detail.is-open { opacity: 1; transform: none; }
.legacy-production-detail-media,
.legacy-production-detail-gallery { display: none; }
.legacy-production-detail-copy { position: fixed; left: 2.8vw; top: 63.5%; bottom: auto; width: calc(100vw - 5.6vw); max-width: 390px; font-family: 'Maple Mono CN', 'nbarchitekt', Consolas, monospace; font-size: 12px; }
.legacy-production-detail-media { position: relative; min-height: min(58vw, 680px); overflow: hidden; border: 1px solid rgba(133, 216, 205, .24); background: radial-gradient(circle, rgba(107, 210, 198, .16), transparent 24%), linear-gradient(145deg, rgba(14, 21, 27, .94), rgba(2, 3, 5, .94)); clip-path: polygon(3% 0, 100% 0, 96% 100%, 0 94%); }
.legacy-production-detail-media[data-empty='true']::after { content: '魇'; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(215, 239, 232, .09); font-family: 'Maple Mono CN', 'STKaiti', 'KaiTi', serif; font-size: min(28vw, 260px); }
.legacy-production-detail-media img,
.legacy-production-detail-media video { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.legacy-production-detail-copy > span { display: block; margin-top: 4px; color: var(--legacy-detail-accent, #7dd6cf); font-size: 12px; letter-spacing: .08em; }
.legacy-production-detail-copy h2 { margin: 0; font-family: 'Maple Mono CN', 'nbarchitekt', Consolas, monospace; font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: .02em; }
.legacy-production-detail-copy > p { margin: 8px 0 0; color: rgba(226, 228, 221, .66); line-height: 1.6; }
.legacy-production-detail-copy > small { display: none; }
.legacy-production-detail-roles { display: none; }
.legacy-production-detail-tags { display: none; }
.legacy-production-detail-project-link { width: max-content; margin-top: 9px; padding: 0; border: 0; color: var(--legacy-detail-accent, #7dd6cf); background: none; font: inherit; text-decoration: none; }
.legacy-production-detail-project-link:not([hidden]) { display: block; }
.legacy-production-detail-close { position: static; display: block; width: max-content; margin-top: 7px; padding: 0; border: 0; border-radius: 0; color: rgba(239, 241, 235, .8); background: none; font: inherit; cursor: pointer; }
.legacy-production-detail-gallery { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.legacy-production-detail-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: .78; }

@media (max-width: 760px) {
  .legacy-productions-card { min-height: 168px; }
  .legacy-productions-card-button { min-height: 166px; }
  .legacy-productions-mark { display: none; }
  .legacy-productions-header { justify-content: flex-end; padding: 12px 10px; }
  .legacy-productions-nav { width: 190px; min-height: 40px; }
  .legacy-productions-nav button { min-height: 34px; padding-inline: 10px; }
  .legacy-productions-hero { width: 100%; }
  .legacy-productions-hero h1 { left: 8vw; top: 24%; font-size: clamp(46px, 13vw, 78px); }
  .legacy-productions-about-copy { left: 8vw; top: 61%; width: 84vw; }
  .legacy-clean-room-copy h2 { top: 31%; font-size: clamp(18px, 6vw, 27px); }
  .legacy-clean-room-copy p { top: 63%; width: 84vw; font-size: clamp(11px, 3.4vw, 15px); }
  .legacy-work-card { top: 48%; width: 82vw; border-width: 2px; border-radius: 18px; }
  .legacy-work-filters { width: 100%; height: 48%; padding: 2rem; mix-blend-mode: normal; }
  .legacy-work-filter-links button { padding-block: 3px; font-size: 12px; }
  .legacy-work-question { width: 190px; height: 42px; margin-top: 12px; }
  .legacy-production-detail-copy { max-width: min(390px, calc(100vw - 40px)); }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-productions-card,
  .legacy-productions-loader-mark { animation: none; }
  .legacy-productions-overlay,
  .legacy-clean-room-copy,
  .legacy-work-card,
  .legacy-production-detail { transition: none; }
}
