@font-face {
  font-family: "Suisse Intl";
  src: url("/fonts/SuisseIntl-Regular.otf") format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
  color: #000000;
  font-family: "Suisse Intl", Arial, sans-serif;
}

button {
  font: inherit;
}

.page {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  background: #ffffff;
  color: #000000;
  font-size: 12px;
  line-height: 1;
  --morph-exit-duration: 140ms;
  --morph-enter-duration: 420ms;
  --morph-exit-ease: cubic-bezier(0.4, 0, 1, 1);
  --morph-enter-ease: cubic-bezier(0.22, 1, 0.36, 1);
  transition: background-color 220ms ease-out;
}

.gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: blur(0);
  overflow: hidden;
  touch-action: none;
  transition: filter 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-distortion-canvas {
  position: absolute;
  z-index: 3;
  display: none;
  overflow: hidden;
  border-radius: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease-out;
}

.gallery.is-shader-transitioning .project-image {
  opacity: 0 !important;
}

.gallery.is-shader-transitioning .gallery-item.is-leaving .project-image.is-active,
.gallery.is-shader-transitioning .gallery-item.is-entering .project-image.is-active,
.gallery.is-shader-transitioning .project-image.is-sub-leaving,
.gallery.is-shader-transitioning .project-image.is-sub-entering {
  animation: none;
  filter: none;
  clip-path: inset(0 round 40px);
  transform: none;
}

.gallery.is-shader-transitioning .gallery-item.is-waiting .project-image.is-active,
.gallery.is-shader-transitioning .project-image.is-sub-waiting {
  filter: none;
  clip-path: inset(0 round 40px);
  transform: none;
}

.gallery-item {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, calc(var(--slide-y, 0) * 64px), 0) scale(0.98);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.gallery-item.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item.is-leaving {
  z-index: 1;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.gallery-item.is-waiting {
  opacity: 0;
}

.gallery-item.is-leaving .project-image.is-active {
  animation: gallery-morph-out var(--morph-exit-duration) var(--morph-exit-ease) forwards;
}

.gallery-item.is-waiting .project-image.is-active {
  filter: none;
  clip-path: inset(5% round 40px);
  transform: scale(0.985);
}

.gallery-item.is-entering .project-image.is-active {
  animation: gallery-morph-in var(--morph-enter-duration) var(--morph-enter-ease) forwards;
}

.project-images {
  position: relative;
  width: min(50vw, 720px);
  height: min(72vh, 720px);
  overflow: hidden;
  border-radius: 40px;
}

.project-images.project-video-frame {
  box-sizing: border-box;
  overflow: visible;
  border: 0;
  border-radius: 0;
  width: min(
    calc(100vw - 48px),
    calc(177.88162vh - 85.38318px),
    var(--video-native-width, 1142px)
  );
  height: auto;
  aspect-ratio: var(--video-aspect, 1142 / 642);
}

.project-images.project-video-frame::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: 40px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  content: "";
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
  will-change: inset, transform;
}

.gallery-item.is-leaving .project-video-frame::after {
  animation: gallery-border-mask-out var(--morph-exit-duration) var(--morph-exit-ease) forwards;
}

.gallery-item.is-waiting .project-video-frame::after {
  inset: 5%;
  transform: scale(0.985);
}

.gallery-item.is-entering .project-video-frame::after {
  animation: gallery-border-mask-in var(--morph-enter-duration) var(--morph-enter-ease) forwards;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 40px;
  user-select: none;
  -webkit-user-drag: none;
  will-change: filter, clip-path, transform;
}

.gallery-video {
  box-sizing: border-box;
  border: 0;
  border-radius: 40px;
  clip-path: inset(0 round 40px);
}

.video-play-button {
  display: flex;
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 6;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 0;
  border-radius: 32px;
  appearance: none;
  background: rgba(119, 119, 119, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transform-origin: center;
  transition:
    opacity 180ms ease-out,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.video-play-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.video-play-button:active {
  transform: scale(0.92);
}

.project-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.project-image.is-active,
.project-image.is-sub-leaving {
  opacity: 1;
}

.project-image.is-active {
  z-index: 2;
}

.project-image.is-sub-leaving {
  z-index: 2;
  animation: gallery-morph-out var(--morph-exit-duration) var(--morph-exit-ease) forwards;
}

.project-image.is-sub-waiting {
  z-index: 1;
  opacity: 0;
  filter: none;
  clip-path: inset(5% round 40px);
  transform: scale(0.985);
}

.project-image.is-sub-entering {
  z-index: 3;
  opacity: 1;
  animation: gallery-morph-in var(--morph-enter-duration) var(--morph-enter-ease) forwards;
}

.gallery-image.is-intro-sequence {
  transform-origin: center;
  animation: gallery-intro-image-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes gallery-morph-out {
  from {
    filter: none;
    clip-path: inset(0 round 40px);
    transform: scale(1);
  }

  to {
    filter: none;
    clip-path: inset(5% round 40px);
    transform: scale(0.985);
  }
}

@keyframes gallery-morph-in {
  from {
    filter: none;
    clip-path: inset(5% round 40px);
    transform: scale(0.985);
  }

  to {
    filter: none;
    clip-path: inset(0 round 40px);
    transform: scale(1);
  }
}

@keyframes gallery-border-mask-out {
  from {
    inset: 0;
    transform: scale(1);
  }

  to {
    inset: 5%;
    transform: scale(0.985);
  }
}

@keyframes gallery-border-mask-in {
  from {
    inset: 5%;
    transform: scale(0.985);
  }

  to {
    inset: 0;
    transform: scale(1);
  }
}

@keyframes gallery-intro-image-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.page.is-selected {
  background: #111111;
}

.spinner-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.spinner-canvas-back {
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

.spinner-canvas-front {
  z-index: 3;
  cursor: grab;
  touch-action: none;
}

.spinner-canvas-front.is-hovering {
  cursor: pointer;
}

.spinner-canvas-front.is-dragging {
  cursor: grabbing;
}

.selection-dim {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: #111111;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.page.is-selected .selection-dim {
  opacity: 0.9;
}

.page.is-selected .spinner-canvas-front {
  z-index: 6;
}

.rotator {
  position: fixed;
  top: 16px;
  bottom: 16px;
  left: 50%;
  z-index: 4;
  width: 24px;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
}

.row {
  display: grid;
  position: relative;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 0;
}

.brand {
  display: flex;
  width: 24px;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 12px 4px;
  border-radius: 32px;
  background: rgba(119, 119, 119, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  text-transform: lowercase;
}

.brand-label,
.rail-option-text {
  display: block;
  flex: none;
  font-feature-settings: "ss07" 1, "ss08" 1, "ss09" 1, "ss10" 1, "ss11" 1, "dlig" 1;
  line-height: 16px;
  white-space: nowrap;
  text-orientation: mixed;
  transform: none;
  writing-mode: vertical-rl;
}

.context-pill {
  display: flex;
  position: relative;
  width: 24px;
  height: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  padding: 12px 4px;
  overflow: hidden;
  border-radius: 32px;
  background: rgba(119, 119, 119, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  transform-origin: center;
  text-transform: lowercase;
  will-change: height, opacity, transform;
  transition: height 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}

.context-pill-content {
  display: flex;
  width: 16px;
  height: 100%;
  min-height: 0;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
  gap: 0;
  will-change: opacity, transform;
}

.context-pill-content[hidden] {
  display: none;
}

.context-pill-connect {
  justify-content: space-between;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  pointer-events: auto;
}

.context-connect-text {
  display: block;
  flex: none;
  font-feature-settings: "ss07" 1, "ss08" 1, "ss09" 1, "ss10" 1, "ss11" 1, "dlig" 1;
  line-height: 16px;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.context-copy-hint {
  display: block;
  flex: none;
  color: rgba(255, 255, 255, 0.56);
  font-feature-settings: "ss07" 1, "ss08" 1, "ss09" 1, "ss10" 1, "ss11" 1, "dlig" 1;
  line-height: 16px;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.project-pagination-label {
  display: block;
  width: 16px;
  flex: none;
  font-feature-settings: "ss07" 1, "ss08" 1, "ss09" 1, "ss10" 1, "ss11" 1, "dlig" 1;
  line-height: 16px;
  text-align: right;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.project-dots {
  display: flex;
  width: 4px;
  flex: none;
  flex-direction: column;
  gap: 4px;
}

.project-dot {
  display: block;
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  transition: background-color 220ms ease-out;
}

.project-dot.is-active {
  background: #ffffff;
}

.tagline-pill {
  display: none;
  width: 16px;
  height: auto;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.tagline-text {
  display: block;
  flex: none;
  font-feature-settings: "ss07" 1, "ss08" 1, "ss09" 1, "ss10" 1, "ss11" 1, "dlig" 1;
  line-height: 16px;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.page.is-info-entering .tagline-text {
  animation: project-meta-in 0.52s cubic-bezier(0.16, 1, 0.3, 1) 0.02s both;
}

.page.is-info-closing .tagline-text {
  animation: project-meta-out 0.4s cubic-bezier(0.7, 0, 0.84, 0) both;
}

.project-meta {
  display: flex;
  position: relative;
  width: 16px;
  height: auto;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 12px 0;
  color: inherit;
  font-size: 11px;
  text-transform: lowercase;
}

.project-meta-word {
  display: block;
  flex: none;
  color: inherit;
  font-feature-settings: "ss07" 1, "ss08" 1, "ss09" 1, "ss10" 1, "ss11" 1, "dlig" 1;
  line-height: 16px;
  opacity: 1;
  text-decoration: none;
  transform: translateX(0) scale(1);
  transform-origin: center;
  will-change: opacity, transform;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.project-meta-link {
  color: rgba(255, 255, 255, 0.4);
}

.project-meta.is-intro-sequence .project-meta-title {
  animation: project-meta-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

.project-meta.is-intro-sequence .project-meta-link {
  animation: project-meta-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.58s both;
}

.project-meta-link {
  pointer-events: auto;
}

.project-meta-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-meta.is-entering .project-meta-word {
  animation: project-meta-in 0.52s cubic-bezier(0.16, 1, 0.3, 1) var(--meta-delay, 0s) both;
}

.project-meta.is-exiting .project-meta-word {
  animation: project-meta-out 0.14s cubic-bezier(0.7, 0, 0.84, 0) var(--meta-delay, 0s) both;
}

.contact {
  display: flex;
  position: relative;
  z-index: 5;
  width: 24px;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: center;
  gap: 0;
  justify-content: space-between;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  border-radius: 32px;
  appearance: none;
  background: rgba(119, 119, 119, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
  pointer-events: auto;
  text-transform: lowercase;
}

.contact-title,
.contact-email-text {
  display: block;
  flex: none;
  font-feature-settings: "ss07" 1, "ss08" 1, "ss09" 1, "ss10" 1, "ss11" 1, "dlig" 1;
  line-height: 16px;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.contact-email-text {
  color: rgba(255, 255, 255, 0.4);
}

.contact-email {
  display: flex;
  width: 16px;
  flex: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font: inherit;
}

.rail-option {
  display: flex;
  width: 16px;
  align-items: center;
  justify-content: center;
  transition: color 160ms ease-out;
}

.work-label {
  height: auto;
  color: #ffffff;
}

.connect-label {
  height: auto;
  color: rgba(255, 255, 255, 0.4);
}

.page.is-info-open .work-label,
.page.is-connect-mode .work-label {
  color: rgba(255, 255, 255, 0.4);
}

.page.is-info-open .connect-label,
.page.is-connect-mode .connect-label {
  color: #ffffff;
}

.page.is-info-open {
  background: #ffffff;
  color: #ffffff;
}

.page.is-info-open .rotator {
  z-index: 21;
}

.page.is-info-open .brand {
  animation: none;
  opacity: 1;
  transform: none;
}

.page.is-info-entering .brand {
  animation: none;
  opacity: 1;
  transform: none;
}

.page.is-info-closing .rotator {
  animation: info-color-out 0.14s ease-out 0.72s both;
}

.page.is-info-closing .brand {
  animation: none;
  opacity: 1;
  transform: none;
}

.page.is-info-open .gallery {
  opacity: 1;
  filter: blur(80px);
  pointer-events: none;
  visibility: visible;
}

.page.is-info-open .project-meta {
  pointer-events: none;
}

.page.is-work-returning .brand {
  animation: none;
  opacity: 1;
  transform: none;
}

.page.is-work-returning .project-meta-title {
  animation: project-meta-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.page.is-work-returning .project-meta-link {
  animation: project-meta-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.page.is-work-returning .contact {
  animation: intro-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.96s both;
}

.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
}

.about-overlay.is-closing {
  animation: none;
}

.about-overlay[hidden] {
  display: none;
}

.about-panel {
  display: flex;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 0;
  background: transparent;
  color: #000000;
  opacity: 0;
  transform: scale(0.92);
  transform-origin: center;
  transition:
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-overlay.is-open .about-panel {
  opacity: 1;
  transform: scale(1);
}

.about-overlay.is-closing .about-panel {
  opacity: 1;
  transform: scale(1);
  animation: none;
}

.about-copy {
  display: flex;
  max-width: 400px;
  flex-wrap: wrap;
  gap: 0.25em;
  justify-content: center;
  margin: 0;
  color: var(--overlay-text-color, #000000);
  mix-blend-mode: normal;
  text-align: center;
  transition: color 180ms ease-out;
}

.about-word {
  display: inline-block;
  opacity: 0;
  transform: translateX(-32px);
  transform-origin: left center;
}

.about-overlay.is-open .about-word {
  animation: about-word-in 0.52s cubic-bezier(0.16, 1, 0.3, 1)
    var(--word-in-delay) both;
}

.about-overlay.is-closing .about-word {
  animation: about-word-out 0.52s cubic-bezier(0.7, 0, 0.84, 0)
    var(--word-out-delay) both;
}

.intro {
  display: inline-block;
  opacity: 0;
  transform: translateX(-16px);
  animation: intro-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) var(--intro-delay, 0s) forwards;
}

.brand.intro,
.contact.intro,
.context-pill.intro {
  display: flex;
  transform: scale(0.92);
  transform-origin: center;
  animation-name: pill-intro-in;
}

@keyframes pill-intro-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes intro-in {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes intro-out {
  to {
    opacity: 0;
    transform: translateX(16px);
  }
}

@keyframes logo-info-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

@keyframes project-meta-in {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes project-meta-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
}

@keyframes about-panel-out {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(0.92);
  }
}

@keyframes about-word-in {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes about-word-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(32px);
  }
}

@keyframes info-color-out {
  from {
    color: #ffffff;
  }

  to {
    color: #000000;
  }
}

@keyframes logo-info-in {
  0% {
    opacity: 1;
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
  }

  24% {
    opacity: 0;
    transform: translateY(16px);
  }

  31% {
    opacity: 0;
    transform: translateY(-16px);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item,
  .gallery-item .gallery-image,
  .project-image,
  .project-meta-word,
  .connect-label,
  .intro,
  .contact {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }

  .page.is-info-entering .brand,
  .page.is-info-closing .brand,
  .page.is-work-returning .brand {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 720px) {
  .project-images {
    width: calc(100vw - 64px);
    height: calc(100vh - 96px);
  }
}
