@font-face {
  font-family: "ABC Diatype";
  src: url("./assets/fonts/ABC-Diatype-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "GT America Trial";
  src: url("./assets/fonts/GT-America-Standard-Regular-Trial.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #000000;
  --primary: #ededed;
  --secondary: #a0a0a0;
  --muted: #7e7e7e;
  --content-width: clamp(672px, min(37vw, 68dvh), 1480px);
  --intro-font-size: clamp(24.8px, min(1.4vw, 2.5dvh), 54px);
  --intro-line-height: 1.41;
  --intro-paragraph-space: clamp(35px, min(2vw, 3.5dvh), 76px);
  --meta-font-size: clamp(13.2px, min(0.7vw, 1.3dvh), 28px);
  --meta-line-height: clamp(28px, min(1.4vw, 2.4dvh), 52px);
  --footer-font-size: clamp(24.8px, min(1.1vw, 2dvh), 44px);
  --footer-height: calc(var(--footer-font-size) * 1.41);
  --intro-x: calc(50% - (var(--content-width) / 2));
  --intro-y: clamp(120px, min(6.5vw, 8.5dvh), 230px);
  --card-size: clamp(300px, min(calc(40dvh - 20px), 24vw), 860px);
  --card-gap: clamp(12px, min(0.7vw, 1.3dvh), 28px);
  --card-y: clamp(300px, calc(47dvh - 12px), 820px);
  --footer-bottom: clamp(31px, min(1.6vw, 3dvh), 64px);
  --track-x: 0px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scrollbar-color: #333 var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--secondary);
  font-family: "GT America Trial", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

.scroll-space {
  position: relative;
}

.stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--background);
}

.hero {
  position: absolute;
  z-index: 2;
  top: var(--intro-y);
  left: var(--intro-x);
  display: flex;
  width: var(--content-width);
  flex-direction: column;
  gap: var(--card-gap);
}

.hero__meta {
  display: flex;
  height: var(--meta-line-height);
  align-items: center;
  gap: calc(var(--meta-font-size) * 0.61);
  color: var(--muted);
  font-family: "ABC Diatype", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--meta-font-size);
  font-variant-numeric: tabular-nums;
  line-height: var(--meta-line-height);
  text-transform: lowercase;
  white-space: nowrap;
}

.hero__meta > :last-child {
  font-size: calc(var(--meta-font-size) * 1.0455);
}

.dot {
  display: block;
  width: clamp(2px, calc(var(--meta-font-size) * 0.12), 4px);
  height: clamp(2px, calc(var(--meta-font-size) * 0.12), 4px);
  flex: 0 0 clamp(2px, calc(var(--meta-font-size) * 0.12), 4px);
  margin: 0;
  border-radius: 9999px;
  background: var(--muted);
}

.hero__intro {
  display: flex;
  margin: 0;
  width: 96%;
  flex-direction: column;
  color: var(--secondary);
  font-family: "GT America Trial", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--intro-font-size);
  font-weight: 400;
  letter-spacing: calc(var(--intro-font-size) * -0.0202);
  line-height: var(--intro-line-height);
  white-space: normal;
}

.hero__intro p {
  margin: 0;
}

.hero__intro-final {
  margin-top: var(--intro-paragraph-space) !important;
}

.hero__emphasis {
  color: var(--primary);
}

.gallery {
  position: absolute;
  z-index: 1;
  top: var(--card-y);
  left: 0;
  width: 100%;
  height: var(--card-size);
  overflow: visible;
}

.gallery__track {
  display: flex;
  width: max-content;
  height: var(--card-size);
  gap: var(--card-gap);
  transform: translate3d(var(--track-x), 0, 0);
  will-change: transform;
}

.tile {
  display: block;
  width: var(--card-width);
  height: var(--card-size);
  flex: 0 0 var(--card-width);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--background);
  color: inherit;
  cursor: zoom-in;
}

.tile:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.tile > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

.cast-artwork,
.vector-terminal-artwork,
.vector-video-artwork,
.composed-artwork {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
  user-select: none;
}

.vector-video-artwork__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portfolio-motion-video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
}

.vector-discover-artwork__video {
  transform: rotate(180deg);
}

.verify-site-artwork__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 233px;
  height: 616px;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(90deg) scaleY(-1);
}

.palm-connect {
  position: relative;
  width: 356px;
  height: 340px;
  overflow: hidden;
  color: #fff;
  font-family: "GT America Trial", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.palm-connect__background {
  position: absolute;
  top: 0;
  left: 0.01%;
  width: 169.78%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.palm-connect__phone {
  position: absolute;
  top: 7.25%;
  left: 50%;
  width: 55.064%;
  height: 124.673%;
  overflow: hidden;
  border: 1.839px solid #fff;
  border-radius: 30.349px;
  background: #000;
  transform: translateX(-50%);
}

.palm-connect__hand-disc {
  position: absolute;
  top: 17.3%;
  left: 12.87%;
  width: 74.26%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #fcfcff;
}

.palm-connect__hand {
  position: absolute;
  top: -29.09%;
  left: 1.17%;
  width: 97.25%;
  height: 172.93%;
  max-width: none;
  object-fit: cover;
  transform: rotate(20.38deg);
}

.palm-connect__hand--overlay {
  opacity: 0.7;
  mix-blend-mode: overlay;
}

.palm-connect__rings {
  position: absolute;
  top: 13.33%;
  left: 7.087%;
  width: 91.47%;
  aspect-ratio: 1;
}

.palm-connect__ring-outer,
.palm-connect__ring-progress {
  position: absolute;
  display: block;
  height: auto;
}

.palm-connect__ring-outer {
  top: 3.08%;
  left: 0;
  width: 93.83%;
  opacity: 0.4;
}

.palm-connect__ring-progress {
  top: 0;
  left: 46.27%;
  width: 50.65%;
}

.palm-connect__status {
  position: absolute;
  top: 1.61%;
  left: 0.99%;
  width: 98.02%;
  height: 5.42%;
  color: #fff;
  font-size: 8.303px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.palm-connect__status span {
  position: absolute;
  top: 29.78%;
  left: 5.26%;
  width: 13.74%;
  text-align: center;
}

.palm-connect__status img {
  position: absolute;
  top: 40.42%;
  right: 5.97%;
  width: 19.69%;
  height: auto;
}

.palm-connect__title,
.palm-connect__description {
  position: absolute;
  left: 14.87%;
  width: 70.27%;
  margin: 0;
  text-align: center;
}

.palm-connect__title {
  top: 59.73%;
  font-size: 12.59px;
  font-weight: 600;
  line-height: 1.2;
}

.palm-connect__description {
  top: 64.14%;
  opacity: 0.6;
  font-size: 8.918px;
  font-weight: 400;
  line-height: 1.3;
}

.cast-artwork__blend {
  mix-blend-mode: hard-light;
}

.footer {
  position: absolute;
  z-index: 4;
  bottom: var(--footer-bottom);
  left: var(--intro-x);
  display: flex;
  width: 93.3%;
  max-width: calc(var(--content-width) * 0.933);
  height: var(--footer-height);
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  height: var(--footer-height);
  align-items: center;
  gap: calc(var(--footer-font-size) * 0.323);
  color: var(--secondary);
  font-family: "GT America Trial", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--footer-font-size);
  letter-spacing: calc(var(--footer-font-size) * -0.0202);
  line-height: 1.41;
  text-transform: lowercase;
  white-space: nowrap;
}

.footer-links a,
.email-copy {
  color: inherit;
  text-decoration: none;
}

.footer-links a:is(:hover, :focus-visible),
.email-copy:is(:hover, :focus-visible) {
  color: var(--primary);
  outline: none;
}

.footer-links .dot {
  background: currentColor;
}

.email-copy {
  min-width: 2.38em;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.crown {
  display: block;
  width: calc(var(--footer-font-size) * 0.847);
  height: calc(var(--footer-font-size) * 1.048);
  flex: 0 0 calc(var(--footer-font-size) * 0.847);
  pointer-events: none;
}

.modal[hidden] {
  display: none;
}

.modal {
  --modal-outer-padding: 32px;
  --modal-control-gutter: 64px;
  position: fixed;
  z-index: 20;
  inset: 0;
  height: 100dvh;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 80%);
  -webkit-backdrop-filter: blur(36px);
  backdrop-filter: blur(36px);
  cursor: zoom-out;
}

.modal__dialog {
  position: fixed;
  z-index: 1;
  inset: 0;
  height: 100dvh;
  outline: none;
  pointer-events: none;
}

.modal__viewport {
  position: absolute;
  top: var(--modal-outer-padding);
  right: calc(var(--modal-outer-padding) + var(--modal-control-gutter));
  bottom: var(--modal-outer-padding);
  left: calc(var(--modal-outer-padding) + var(--modal-control-gutter));
  display: grid;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  place-items: center;
}

.modal__media {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  place-items: center;
  pointer-events: auto;
}

.modal__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  filter: none;
  object-fit: contain;
}

.modal__image[hidden],
.modal__artwork[hidden] {
  display: none;
}

.modal__artwork {
  position: absolute;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.modal__artwork .cast-artwork,
.modal__artwork .vector-terminal-artwork,
.modal__artwork .vector-video-artwork,
.modal__artwork .composed-artwork {
  width: 100%;
  height: 100%;
}

.modal__control,
.modal__close {
  position: fixed;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  place-items: center;
  pointer-events: auto;
  transition: opacity 120ms ease-out;
}

.modal__control:hover,
.modal__close:hover {
  opacity: 0.8;
}

.modal__control:focus-visible,
.modal__close:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 6px rgb(255 255 255 / 65%));
}

.modal__control img,
.modal__close img {
  display: block;
  max-width: none;
}

.modal__nav {
  top: 50%;
  transform: translateY(-50%);
}

.modal__nav--previous {
  left: 32px;
}

.modal__nav--next {
  right: 32px;
}

.modal__close {
  top: 16px;
  right: 32px;
  width: 44px;
  height: 44px;
}

body.modal-open {
  position: fixed;
  right: 0;
  left: 0;
  overflow: hidden;
}

@media (max-width: 900px) {
  :root {
    --intro-x: 24px;
    --intro-y: 48px;
    --card-y: min(45svh, 360px);
  }

  .hero {
    width: calc(100vw - 48px);
  }

  .hero__intro {
    width: 100%;
    white-space: normal;
  }

  .footer {
    bottom: 18px;
    left: 24px;
    width: calc(100vw - 48px);
    transform: none;
  }
}

@media (max-width: 640px) {
  .modal {
    --modal-outer-padding: 8px;
    --modal-control-gutter: 48px;
  }

  .modal__nav--previous {
    left: 4px;
  }

  .modal__nav--next,
  .modal__close {
    right: 4px;
  }

  html,
  body {
    height: 100%;
  }

  .scroll-space {
    height: 100%;
  }

  .stage {
    position: relative;
    display: grid;
    height: 100%;
    min-height: 0;
    padding: max(24px, env(safe-area-inset-top)) 0 max(14px, env(safe-area-inset-bottom));
    grid-template-rows: auto minmax(0, 1fr) 28px;
    gap: 12px;
  }

  .hero {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    width: auto;
    margin: 0 24px;
    grid-row: 1;
    gap: 8px;
  }

  .hero__meta {
    height: 28px;
    font-size: 12.5px;
    line-height: 28px;
  }

  .hero__intro {
    width: 100%;
    font-size: 17px;
    line-height: 1.5;
  }

  .hero__intro-final {
    margin-top: 25.5px !important;
  }

  .gallery {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    grid-row: 2;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
  }

  .gallery::-webkit-scrollbar {
    display: none;
  }

  body.modal-open .gallery {
    overflow-x: hidden;
  }

  .gallery__track {
    height: 100%;
    padding: 0;
    align-items: center;
    gap: 8px;
    transform: none;
    will-change: auto;
  }

  .tile {
    width: auto;
    height: 100%;
    max-height: calc(100vw - 48px);
    flex: 0 0 auto;
    aspect-ratio: var(--card-ratio);
    cursor: grab;
  }

  .footer {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    width: auto;
    height: 28px;
    margin: 0 24px;
    grid-row: 3;
    transform: none;
  }

  .footer-links {
    height: 28px;
    font-size: 12.5px;
    letter-spacing: 0;
    line-height: 28px;
  }
}
