@font-face {
  font-family: "Swiss 721";
  src: url("./fonts/Swiss 721 Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --section-title: #868686;
  --title-text: #1c1c1c;
  --paragraph-text: #818181;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 500px;
  margin: 0;
  background: var(--background);
  color: var(--paragraph-text);
  font-family: "Swiss 721", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

html {
  overflow-x: clip;
}

body {
  min-height: 100vh;
  overflow-x: clip;
}

.page {
  width: 500px;
  margin: 0 auto;
  padding: 128px 0 48px;
}

.page-content {
  opacity: 1;
  visibility: visible;
  transition: opacity 220ms ease;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

body.is-loading .page-content {
  transition-duration: 660ms;
}

body.is-loading .page-content,
.page-content.is-fading-out {
  opacity: 0;
}

.page-content.is-hidden-for-swap {
  opacity: 0;
  visibility: hidden;
  transition: none !important;
}

html.is-page-transitioning {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-content {
    transition: none !important;
  }
}

.intro {
  margin: 0 0 48px;
}

h1,
h2,
h3,
p {
  margin: 0;
  font: inherit;
  text-wrap: pretty;
}

h1 {
  margin-bottom: 8px;
  color: var(--title-text);
}

.intro-icon,
.role-icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  margin-bottom: 16px;
}

.case-icon-stack {
  position: relative;
  width: 88px;
  height: 40px;
  margin-bottom: 16px;
  overflow: visible;
}

.case-icon-home,
.case-icon-primary {
  position: absolute;
  top: 0;
  display: block;
  width: 40px;
  height: 40px;
  transition:
    opacity 320ms ease,
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 520ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 240ms ease;
}

.case-icon-home {
  left: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: 100%;
  appearance: none;
  background: #f8f8f8;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.82);
}

.case-icon-home:hover {
  background: #f5f5f5;
}

.case-icon-home img {
  display: block;
  width: 18px;
  height: 18px;
  margin: 11px;
}

.case-icon-primary {
  left: 0;
  z-index: 2;
  border-radius: 100%;
  box-shadow: 0 0 0 4px #ffffff;
  overflow: hidden;
}

.case-icon-stack:hover .case-icon-home,
.case-icon-stack:focus-within .case-icon-home {
  opacity: 1;
  transform: scale(1);
}

.case-icon-stack:hover .case-icon-primary,
.case-icon-stack:focus-within .case-icon-primary {
  border-radius: 100%;
  transform: translateX(48px);
}

@media (min-width: 501px) {
  .case-icon-home,
  .case-icon-primary {
    transition-delay: 120ms;
  }

  .case-icon-stack:hover .case-icon-home,
  .case-icon-stack:focus-within .case-icon-home,
  .case-icon-stack:hover .case-icon-primary,
  .case-icon-stack:focus-within .case-icon-primary {
    transition-delay: 0ms;
  }
}

.case-icon-primary img {
  display: block;
  width: 40px;
  height: 40px;
  transform: scale(1.04);
  transform-origin: center;
}

h2 {
  margin-bottom: 48px;
  color: var(--paragraph-text);
}

.section-title {
  color: var(--section-title);
}

.role {
  margin-bottom: 48px;
}

.role:last-child {
  margin-bottom: 0;
}

.role h3 {
  margin-bottom: 8px;
  color: var(--title-text);
}

.role p {
  margin-bottom: 48px;
}

.role > p:has(+ .project-grid) {
  margin-bottom: 24px;
}

.project-grid {
  display: grid;
  gap: 24px;
}

.project-grid.two {
  grid-template-columns: 1fr;
  width: 500px;
}

.project-grid.one {
  width: 500px;
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 20px;
  appearance: none;
  overflow: hidden;
  background: #f8f8f8;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  color: inherit;
  text-decoration: none;
}

.project-card,
.project-card img {
  -webkit-user-drag: none;
  user-select: none;
}

.project-grid > .project-card {
  display: grid;
  grid-template-rows: 500px auto;
  gap: 16px;
  min-width: 0;
  aspect-ratio: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.project-grid > .project-card::before {
  content: "";
  grid-area: 1 / 1;
  display: block;
  border-radius: 20px;
  background: #f8f8f8;
  pointer-events: none;
}

.home-case-project {
  width: 100%;
}

.home-case-project .case-carousel {
  margin-bottom: 16px;
}

.home-archive-project .case-carousel {
  margin-bottom: 0;
}

.home-case-caption {
  width: 100%;
  padding: 0;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-align: left;
}

.project-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.project-card-image .project-media-pad-x {
  width: calc(100% - 108px);
  margin: 0 54px;
}

.project-card-image .project-media-pad-y {
  height: calc(100% - 108px);
  margin: 54px 0;
}

.project-card-image .project-media-euc {
  height: calc(100% - 148px);
  margin: 74px 0;
}

.project-card-image .project-media-archive {
  height: calc(100% - 296px);
  margin: 148px 0;
}

.project-grid > .project-card > img {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
}

.project-card-caption {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--title-text);
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  pointer-events: none;
}

.project-grid .project-card-caption {
  position: static;
  grid-area: 2 / 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  color: var(--title-text);
  pointer-events: none;
}

.project-grid .home-case-caption {
  pointer-events: auto;
}

.project-card-caption span {
  opacity: 0;
  transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-grid .project-card-caption span {
  opacity: 1;
}

.project-card:hover .project-card-caption span {
  opacity: 1;
}

.project-card-caption span:last-child {
  color: var(--section-title);
}

.case-carousel {
  position: relative;
  width: 500px;
  margin-bottom: 48px;
  transition:
    width 760ms cubic-bezier(0.16, 1, 0.3, 1),
    margin-left 760ms cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
  user-select: none;
}

.case-carousel.is-compositor-ready {
  will-change: width, margin-left;
}

.case-carousel.is-expanded {
  width: 1200px;
  margin-left: -350px;
}

.case-carousel-viewport {
  overflow: hidden;
  border-radius: 20px;
  background: #f8f8f8;
}

.case-carousel.is-compositor-ready .case-carousel-viewport {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.case-carousel-track {
  display: flex;
  background: #f8f8f8;
  transition: transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.case-carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  transition: aspect-ratio 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-carousel-slide.project-card {
  aspect-ratio: 1 / 1;
  height: auto;
}

.case-carousel.is-expanded .case-carousel-slide,
.case-carousel.is-expanded .case-carousel-slide.project-card {
  aspect-ratio: 1200 / 880;
}

.case-carousel-slide.project-card-image img {
  transition:
    width 760ms cubic-bezier(0.16, 1, 0.3, 1),
    height 760ms cubic-bezier(0.16, 1, 0.3, 1),
    margin 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-carousel.is-compositor-ready .case-carousel-slide.project-card-image img {
  will-change: width, height, margin;
}

.case-carousel.is-expanded .case-carousel-slide.project-card-image .project-media-pad-x {
  width: calc(100% - 220px);
  margin: 0 110px;
}

.case-carousel.is-expanded .case-carousel-slide.project-card-image .project-media-pad-y {
  height: calc(100% - 192px);
  margin: 96px 0;
}

@media (min-width: 1364px) {
  .case-carousel,
  .case-carousel * {
    cursor: zoom-in;
  }

  .case-carousel.is-expanded,
  .case-carousel.is-expanded * {
    cursor: zoom-out;
  }
}

body.is-page-blank .page-content {
  opacity: 0;
  pointer-events: none;
}

.case-carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 260ms ease;
}

.home-case-project .case-carousel-dots {
  opacity: 0;
  pointer-events: none;
}

.home-case-project .case-carousel:hover .case-carousel-dots,
.home-case-project .case-carousel:focus-within .case-carousel-dots {
  opacity: 1;
  pointer-events: auto;
}

.case-carousel-dot {
  display: block;
  width: 5px;
  height: 5px;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--paragraph-text);
  opacity: 0.6;
  transition:
    background-color 220ms ease,
    opacity 220ms ease;
}

.case-carousel-dot:hover,
.case-carousel-dot.is-active {
  background: var(--paragraph-text);
  opacity: 1;
}

.case-section {
  margin-bottom: 48px;
}

.case-section:last-child {
  margin-bottom: 0;
}

.case-section h2 {
  margin-bottom: 8px;
  color: var(--title-text);
}

.case-section p + p {
  margin-top: 16px;
}
