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

@font-face {
  font-family: "nbarchitekt";
  src: url("/study-assets/fonts/activetheory.net/assets/fonts/NBArchitektStd-Bold-export/NBArchitektStd-Bold__0fe686fd47c6.woff2")
    format("woff2");
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --ink: #f4f4f4;
  --dim: rgba(244, 244, 244, 0.55);
  --line: rgba(205, 232, 255, 0.25);
  --cyan: #00ffff;
  --violet: #9ca5ff;
  --green: #9ed85d;
  --baropacity: 0.9;
}

* {
  box-sizing: border-box;
}

html,
body,
#Stage {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: "nbarchitekt", monospace;
}

body {
  -ms-content-zooming: none;
  -ms-touch-action: none;
  touch-action: none;
}

button,
a,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
}

noscript {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  background: #000;
  color: #fff;
  padding: 10px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, var(--baropacity));
  border-radius: 10px;
}

#Stage,
#Stage * {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: none;
  user-select: none;
}

#Stage textarea {
  user-select: auto;
}

.Container,
#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
}

#scene {
  display: block;
  background: #000;
  pointer-events: none;
}

.GLA11y {
  position: absolute;
  z-index: -1;
  width: 0;
  height: 100%;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.NavigationDOM {
  position: fixed;
  z-index: 30;
  top: 42px;
  right: 40px;
  pointer-events: none;
}

.nav-pill {
  width: 242px;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(175, 218, 255, 0.32);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  box-shadow:
    0 14px 34px rgba(33, 65, 155, 0.12),
    inset 0 0 20px rgba(255, 255, 255, 0.035);
  mix-blend-mode: plus-lighter;
  pointer-events: auto;
}

.nav-pill a,
.nav-audio {
  display: grid;
  place-items: center;
  height: 34px;
  color: rgba(244, 244, 244, 0.76);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
}

.nav-pill a[aria-current="page"],
.nav-pill a:hover,
.nav-audio:hover,
.nav-audio[aria-pressed="true"] {
  color: #fff;
  text-shadow: 0 0 7px #fff;
}

.nav-audio {
  background: transparent;
  opacity: 0.95;
}

.nav-audio span {
  width: 46px;
  height: 10px;
  display: block;
  border-radius: 100%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.9), transparent 36%),
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(255, 255, 255, 0.28) 6px, transparent 8px);
  filter: blur(0.25px);
  box-shadow: 0 0 22px rgba(180, 198, 255, 0.55);
  transform: scaleX(0.86);
}

.nav-audio[aria-pressed="true"] span {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 1), transparent 35%),
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(156, 165, 255, 0.85) 5px, transparent 7px);
  box-shadow: 0 0 24px rgba(156, 165, 255, 0.9);
}

.ChatDOM .chat-wrapper {
  position: fixed;
  z-index: 22;
  left: 56px;
  bottom: 46px;
  width: min(450px, calc(100vw - 72px));
  height: calc(100% - 100px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 0 0;
  mix-blend-mode: normal;
  pointer-events: none;
}

.messages {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  overflow: hidden;
  margin-bottom: 1rem;
  max-height: 245px;
  -webkit-mask-image: linear-gradient(to top, white 0%, white 75%, transparent 92%);
}

.messages p,
.messages a {
  margin: 6px 0 6px 10px;
  color: #f4f4f4;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  text-transform: none;
}

.messages a {
  width: fit-content;
  color: #c9c9ff;
  pointer-events: auto;
  cursor: pointer;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(156, 165, 255, 0.28);
  transition: all 0.4s cubic-bezier(0.17, 0.4, 0.02, 0.99);
}

.messages a:hover,
.messages a.active {
  color: #fff;
  text-shadow: #fff 1px 0 5px;
  transform: translateX(10px);
}

.ChatDOM textarea {
  width: 200px;
  min-height: 50px;
  padding: 15px 25px 5px;
  overflow: hidden;
  resize: none;
  border: 2px solid rgba(156, 165, 255, 0.55);
  border-radius: 50px;
  outline: none;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(235, 236, 255, 0.82);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  transition: all 0.8s cubic-bezier(0.17, 0.4, 0.02, 0.99);
  pointer-events: auto;
}

.ChatDOM textarea::placeholder {
  color: rgba(202, 202, 255, 0.58);
}

.ChatDOM textarea:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.ChatDOM textarea:focus {
  width: 330px;
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.9);
  color: #eee;
}

.flashing {
  position: relative;
  left: 37px;
  bottom: 34px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  opacity: 0;
}

.WorkScene {
  position: fixed;
  inset: 0;
  z-index: 14;
  --work-accent: #22d3ee;
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(1.03);
  transition:
    opacity 700ms cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 900ms cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
  perspective: 1100px;
}

body[data-route="/work"] .WorkScene {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.MediaSpine {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: min(78vw, 920px);
  height: 142px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 116px;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 12px 0;
  opacity: 0;
  transform: translate3d(-50%, -50%, -420px) rotateX(58deg) rotateZ(-4deg);
  transition:
    opacity 800ms cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1000ms cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: auto;
}

body[data-route="/work"] .MediaSpine {
  opacity: 0.86;
  transform: translate3d(-50%, -50%, -120px) rotateX(58deg) rotateZ(-4deg);
}

.MediaSpine::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--work-accent) 74%, white), transparent);
  box-shadow: 0 0 32px color-mix(in srgb, var(--work-accent) 42%, transparent);
}

.spine-item {
  position: relative;
  width: 116px;
  height: 84px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 18px 42px rgba(0, 0, 0, 0.42);
  opacity: 0.55;
  transform: translate3d(0, 0, 0) scale(0.9);
  cursor: pointer;
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.17, 0.4, 0.02, 0.99),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.spine-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.25) contrast(1.08) brightness(0.8);
}

.spine-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, 0.08) 13px, transparent 14px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
  mix-blend-mode: screen;
}

.spine-item:hover,
.spine-item.is-active {
  opacity: 1;
  transform: translate3d(0, -10px, 74px) scale(1.12);
  border-color: color-mix(in srgb, var(--work-accent) 76%, white);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 36px color-mix(in srgb, var(--work-accent) 34%, transparent),
    0 22px 60px rgba(0, 0, 0, 0.58);
}

.spine-index {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.media-card {
  position: absolute;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--work-accent) 32%, transparent);
  border-radius: 30px;
  background: color-mix(in srgb, var(--work-accent) 16%, transparent);
  box-shadow:
    inset 0 0 50px rgba(255, 255, 255, 0.05),
    0 35px 120px rgba(0, 0, 0, 0.55);
  opacity: 0.84;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(255, 255, 255, 0.06) 17px, transparent 18px),
    linear-gradient(120deg, rgba(156, 165, 255, 0.18), rgba(0, 255, 255, 0.1), rgba(255, 105, 190, 0.14));
  mix-blend-mode: screen;
  pointer-events: none;
}

.featured-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.featured-media video,
.featured-media img,
.featured-external {
  position: absolute;
  inset: 0;
  transition: opacity 280ms ease;
}

.featured-external {
  z-index: 4;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.featured-media .is-hidden {
  opacity: 0;
  pointer-events: none;
}

.media-card video,
.media-card img,
.featured-external {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(1.35) contrast(1.1) brightness(0.9);
}

.featured-media.is-external-active video,
.featured-media.is-external-active img {
  opacity: 0;
}

.featured-media.is-external-active .featured-external {
  opacity: 1;
  filter: none;
}

.media-play,
.media-close {
  position: absolute;
  z-index: 6;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--work-accent) 68%, white);
  background: rgba(0, 0, 0, 0.48);
  color: #fff;
  cursor: pointer;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.17, 0.4, 0.02, 0.99),
    box-shadow 220ms ease;
}

.media-play {
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 42px color-mix(in srgb, var(--work-accent) 42%, transparent);
}

.media-play span {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #fff;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--work-accent) 80%, white));
}

.media-play:hover {
  transform: translate3d(-50%, -50%, 0) scale(1.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 62px color-mix(in srgb, var(--work-accent) 60%, transparent);
}

.media-close {
  right: 20px;
  top: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.media-close span::before,
.media-close span::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 20px;
  width: 18px;
  height: 2px;
  background: #fff;
}

.media-close span::before {
  transform: rotate(45deg);
}

.media-close span::after {
  transform: rotate(-45deg);
}

.PreviewStrip {
  position: absolute;
  z-index: 5;
  left: 24px;
  right: 24px;
  bottom: 22px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  pointer-events: auto;
}

.preview-thumb {
  position: relative;
  width: 82px;
  height: 56px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0.62;
  cursor: pointer;
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.17, 0.4, 0.02, 0.99),
    border-color 220ms ease;
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.2) contrast(1.08) brightness(0.82);
}

.preview-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.42));
}

.preview-thumb:hover,
.preview-thumb.is-active {
  opacity: 1;
  transform: translate3d(0, -5px, 0);
  border-color: color-mix(in srgb, var(--work-accent) 76%, white);
}

.preview-video {
  border-color: color-mix(in srgb, var(--work-accent) 72%, white);
}

.preview-play-icon {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.42);
  transform: translate3d(-50%, -50%, 0);
}

.preview-play-icon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.WorkScene.is-external-active .media-title,
.WorkScene.is-external-active .PreviewStrip {
  opacity: 0;
  pointer-events: none;
}

.media-card-left {
  left: -128px;
  top: 70px;
  width: 590px;
  height: 500px;
  transform: rotateY(18deg) rotateZ(-4deg);
}

.media-card-left span {
  position: absolute;
  left: 34px;
  bottom: 42%;
  color: rgba(255, 255, 255, 0.78);
  font-size: 42px;
  text-shadow:
    2px 0 #00ffff,
    -2px 0 #ff5eb6;
}

.media-card-main {
  right: 42px;
  top: 278px;
  width: min(58vw, 830px);
  height: min(42vw, 590px);
  transform: rotateY(-11deg) rotateZ(2deg);
  pointer-events: auto;
}

.media-title {
  position: absolute;
  z-index: 2;
  right: 8%;
  top: 44%;
  display: grid;
  gap: 16px;
  color: #fff;
  text-align: left;
  text-transform: uppercase;
  text-shadow:
    3px 0 #00ffff,
    -3px 0 #ff5eb6,
    0 0 22px rgba(255, 255, 255, 0.25);
}

.media-title small {
  color: rgba(255, 255, 255, 0.44);
  font-size: 13px;
  text-shadow: none;
}

.media-title strong {
  width: 420px;
  font-size: clamp(42px, 5vw, 82px);
  line-height: 0.9;
  font-weight: 400;
}

.media-card-shadow {
  right: -110px;
  bottom: -42px;
  width: 400px;
  height: 420px;
  transform: rotateY(-20deg) rotateZ(7deg);
  background: rgba(15, 40, 45, 0.22);
}

.ContactDOM {
  position: fixed;
  z-index: 24;
  right: 62px;
  bottom: 52px;
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 600ms cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 600ms cubic-bezier(0.215, 0.61, 0.355, 1);
  pointer-events: none;
}

body[data-route="/contact"] .ContactDOM {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.contact-panel {
  width: 370px;
  min-height: 180px;
  padding: 22px 28px 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.contact-panel p,
.contact-panel a {
  display: block;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}

.contact-panel p {
  color: #fff;
  text-transform: uppercase;
}

.contact-panel a {
  color: #c6c6c6;
  font-weight: 700;
}

.contact-panel a:hover {
  color: #fff;
  text-shadow: #fff 1px 0 5px;
}

.MusicPlayerDOM {
  position: fixed;
  z-index: 31;
  top: 112px;
  right: 72px;
  width: 170px;
  height: 42px;
  opacity: 0.8;
  mix-blend-mode: plus-lighter;
}

.music-wrapper {
  width: 170px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: transparent;
}

.MusicPlayerDOM button {
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.4s ease-out;
}

.MusicPlayerDOM button:hover {
  opacity: 1;
}

@keyframes ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}

.ticker {
  width: 80px;
  height: 30px;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.5;
}

.ticker > * {
  display: inline-block;
  height: 30px;
  line-height: 30px;
  padding: 0 0.8rem;
  color: #fff;
  font-size: 10px;
  animation: ticker 9s linear infinite;
}

.FXScroll {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden scroll;
  pointer-events: none;
}

.scrollElement {
  position: absolute;
  left: 0;
  width: 100%;
}

.scroll-a {
  top: 0;
  height: 420vh;
}

.scroll-b {
  top: 420vh;
  height: 105vh;
}

.scroll-c {
  top: 525vh;
  height: 1050vh;
}

.scroll-d {
  top: 1575vh;
  height: 210vh;
}

.scroll-e {
  top: 1785vh;
  height: 126vh;
}

.scroll-f {
  top: 1911vh;
  height: 420vh;
}

.VideoTextures {
  position: absolute;
  z-index: -10;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.WorkPage a {
  position: relative !important;
}

@media (max-width: 768px) {
  .NavigationDOM {
    top: 26px;
    right: 24px;
  }

  .nav-pill {
    width: 218px;
  }

  .ChatDOM .chat-wrapper {
    left: 30px;
    bottom: 26px;
    padding: 2rem 0 0;
    mix-blend-mode: normal;
  }

  .messages p,
  .messages a,
  .ChatDOM textarea {
    font-size: 13px;
  }

  .MusicPlayerDOM {
    top: 92px;
    right: 42px;
  }

  .media-card-left {
    left: -300px;
    width: 480px;
    height: 420px;
  }

  .media-card-main {
    right: -180px;
    top: 260px;
    width: 620px;
    height: 430px;
  }

  .MediaSpine {
    left: 48%;
    width: 96vw;
    grid-auto-columns: 88px;
    gap: 12px;
    transform: translate3d(-50%, -58%, -120px) rotateX(54deg) rotateZ(-4deg);
  }

  .spine-item {
    width: 88px;
    height: 64px;
  }

  .PreviewStrip {
    left: 16px;
    right: 16px;
    bottom: 16px;
    height: 62px;
    gap: 8px;
  }

  .preview-thumb {
    width: 66px;
    height: 46px;
  }

  .media-play {
    width: 62px;
    height: 62px;
  }

  .media-title strong {
    width: 280px;
    font-size: 44px;
  }

  .ContactDOM {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .contact-panel {
    width: 100%;
    border-radius: 12px 12px 0 0;
  }
}
