@font-face {
  font-family: "PP Fragment";
  src: url("./assets/fonts/PPFragment-SerifLight.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --black-900: #0d0d0d;
  --white-900: #ffffff;
  --green-500: #7ae500;
  --brand-pink: #ff00b7;
  --brand-green: #81f200;
  --brand-blue: #00f2de;
  --theme-text: var(--white-900);
  --theme-background: var(--black-900);
  --page-margin: 24px;
  --gutter: 16px;
  --menu-height: 62px;
  --content-gap: 32px;
  --loader-content-shift: min(66.5svh, 681px);
  --font-interface: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "PP Fragment", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--theme-background);
  color: var(--theme-text);
  font-family: var(--font-interface);
  transition: background-color .18s ease, color .18s ease;
}

body.is-pink-mode {
  --theme-text: var(--black-900);
  --theme-background: var(--brand-pink);
}

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

@media (hover: hover) and (pointer: fine) {
  html,
  body,
  a,
  button {
    cursor: none;
  }
}

.coming-soon {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  padding: var(--page-margin);
  background-color: var(--theme-background);
  transition: background-color .18s ease;
}

.coming-soon::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("./assets/images/texture_bg.png");
  background-position: center;
  background-repeat: repeat;
  background-size: cover;
  animation: texture-cycle 1.0s steps(1, end) infinite;
  opacity: 1;
  transition: opacity .18s ease;
}

.is-pink-mode .coming-soon::before {
  opacity: 0;
  animation: none;
}

@keyframes texture-cycle {
  0%,
  33.333% {
    background-image: url("./assets/images/texture_bg.png");
  }

  33.334%,
  66.666% {
    background-image: url("./assets/images/texture_bg_02.png");
  }

  66.667%,
  100% {
    background-image: url("./assets/images/texture_bg_03.png");
  }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--white-900);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  will-change: opacity, transform;
}

@media (hover: none), (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

.loader-message {
  position: absolute;
  inset: var(--page-margin);
  z-index: 4;
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: opacity, transform;
}

.loader-message p {
  position: relative;
  z-index: 1;
  width: min(100%, 688px);
  margin: 0;
  color: var(--theme-text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  mix-blend-mode: difference;
  text-align: center;
}

.text-reveal-line {
  display: block;
  overflow: hidden;
}

[data-text-reveal-inner] {
  display: block;
  will-change: transform;
}

.loader-complete .loader-message {
  display: none;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
  width: 100%;
  height: calc(100svh - (var(--page-margin) * 2));
  min-height: 0;
  overflow: hidden;
}

.js-enabled .menu {
  transform: translateY(-108px);
}

.js-enabled .footer-menu {
  transform: translateY(108px);
}

.js-enabled .center-copy {
  transform: translateY(var(--loader-content-shift));
  visibility: hidden;
}

.js-enabled [data-loader-image][data-enter-from="top"] {
  transform: translateY(-292px);
  visibility: hidden;
}

.js-enabled [data-loader-image][data-enter-from="bottom"] {
  transform: translateY(356px);
  visibility: hidden;
}

.loader-complete .menu,
.loader-complete .footer-menu,
.loader-complete .center-copy,
.loader-complete .tablet-carousel,
.loader-complete [data-loader-image] {
  transform: none;
  visibility: visible;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--menu-height);
  padding: 16px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.menu p {
  flex: 0 0 136px;
  margin: 0;
  text-align: left;
}

.brand {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
}

.mode-selector {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 99999px;
}

.mode-button {
  display: flex;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;
  width: 64px;
  padding: 4px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--theme-text);
  font-family: var(--font-interface);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  appearance: none;
}

.mode-button.is-selected {
  border: 1px solid var(--theme-text);
  background: var(--black-900);
  color: var(--white-900);
}

.footer-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  padding: 16px 0;
  color: var(--theme-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.footer-menu p {
  margin: 0;
}

.footer-link {
  text-decoration-line: underline;
  text-decoration-skip-ink: none;
  text-underline-position: from-font;
}

.tablet-carousel {
  display: none;
}

.section-main {
  --grid-width: 100%;
  --col: calc((var(--grid-width) - (var(--gutter) * 11)) / 12);
  --step: calc(var(--col) + var(--gutter));
  --span-3: calc((var(--col) * 3) + (var(--gutter) * 2));
  --span-2: calc((var(--col) * 2) + var(--gutter));
  --square: var(--col);

  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.center-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 688px);
  padding: 0 24px;
  text-align: center;
}

h1 {
  margin: 0;
  color: var(--theme-text);
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0;
}

h1 .text-reveal-line {
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.center-copy p {
  width: min(100%, 616px);
  margin: 24px auto 0;
  color: var(--theme-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.placeholder {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  transform-origin: center;
  will-change: opacity, transform;
}

.letter-placeholder {
  display: block;
  width: 100%;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

.letter-placeholder svg,
.letter-placeholder-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.placeholder-4x3 .letter-placeholder {
  width: auto;
  height: 100%;
  max-width: 100%;
}

.placeholder.is-pink {
  background: var(--brand-pink);
}

.placeholder.is-green {
  background: var(--brand-green);
}

.placeholder.is-blue {
  background: var(--brand-blue);
}

.placeholder.is-magenta {
  background: #ff00b7;
}

.is-pink-mode .placeholder {
  background: var(--black-900);
}

.placeholder-4x3.large {
  width: var(--span-3);
  aspect-ratio: 4 / 3;
}

.placeholder-3x4 {
  width: var(--span-2);
  aspect-ratio: 3 / 4;
}

.square {
  width: var(--square);
  aspect-ratio: 1 / 1;
}

.top-left {
  top: 0;
  left: 0;
}

.bottom-right {
  right: 0;
  bottom: 0;
}

.top-center {
  top: 0;
  right: calc(var(--step) * 4);
}

.bottom-center {
  bottom: 0;
  right: calc(var(--step) * 8);
}

.top-right {
  top: 0;
  right: var(--step);
}

.bottom-left {
  bottom: 0;
  left: var(--step);
}

@media (max-width: 1439px) {
  h1 {
    font-size: 48px;
  }
}

@media (max-width: 1023px) {
  .section-main > .placeholder {
    display: none;
  }

  .center-copy {
    width: min(100%, 688px);
    padding: 0;
  }

  .center-copy p {
    margin-top: 8px;
  }

  .tablet-carousel {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    touch-action: pan-y;
    user-select: none;
    -webkit-overflow-scrolling: touch;
  }

  .tablet-carousel::-webkit-scrollbar {
    display: none;
  }

  .tablet-carousel.is-enhanced {
    overflow: hidden;
    touch-action: none;
  }

  .tablet-carousel-track {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: max-content;
    will-change: transform;
  }

  .tablet-carousel-item {
    position: relative;
    inset: auto;
    z-index: 1;
    flex: 0 0 calc(66.666667vw - 37.333px);
    width: calc(66.666667vw - 37.333px);
    aspect-ratio: 4 / 3;
    cursor: grab;
    will-change: transform;
  }

  .tablet-carousel.is-dragging .tablet-carousel-item {
    cursor: grabbing;
  }
}

@media (max-width: 440px) {
  :root {
    --page-margin: 16px;
    --gutter: 10px;
    --menu-height: 52px;
    --content-gap: 32px;
  }

  .menu {
    align-items: center;
    font-size: 16px;
  }

  .menu > p {
    display: none;
  }

  .loader-message p {
    font-size: 20px;
  }

  .brand {
    text-align: left;
  }

  .footer-menu {
    align-items: center;
    font-size: 16px;
  }

  .section-main {
    --col: calc((var(--grid-width) - (var(--gutter) * 3)) / 4);
    --step: calc(var(--col) + var(--gutter));
  }

  .center-copy {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  h1 {
    font-size: 32px;
    line-height: 1.0;
  }

  .center-copy p {
    font-size: 12px;
  }

  .tablet-carousel-item {
    flex-basis: calc(100vw - (var(--page-margin) * 2));
    width: calc(100vw - (var(--page-margin) * 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .loader-message {
    display: none;
  }

  .coming-soon::before {
    animation: none;
  }

  .js-enabled .footer-menu,
  .js-enabled .center-copy,
  .js-enabled [data-loader-image] {
    visibility: visible;
  }

  .js-enabled .menu,
  .js-enabled .footer-menu,
  .js-enabled .center-copy,
  .js-enabled [data-loader-image] {
    transform: none;
  }
}
