@font-face {
  font-display: swap;
  font-family: "PP Neue Montreal";
  font-style: normal;
  font-weight: 700;
  src:
    url("https://tlb.betteroff.studio/_nuxt/PPNeueMontreal-Bold.l3ulKZJq.woff2") format("woff2"),
    url("https://tlb.betteroff.studio/_nuxt/PPNeueMontreal-Bold.DV22cyV6.woff") format("woff");
}

@font-face {
  font-display: swap;
  font-family: "PP Neue Montreal";
  font-style: normal;
  font-weight: 500;
  src:
    url("https://tlb.betteroff.studio/_nuxt/PPNeueMontreal-Medium.BCmCQQaX.woff2") format("woff2"),
    url("https://tlb.betteroff.studio/_nuxt/PPNeueMontreal-Medium.CQ8xbuaV.woff") format("woff");
}

@font-face {
  font-display: swap;
  font-family: "PP Neue Montreal Mono";
  font-style: normal;
  font-weight: 500;
  src:
    url("https://tlb.betteroff.studio/_nuxt/PPNeueMontrealMono-Medium.DUem7D_U.woff2") format("woff2"),
    url("https://tlb.betteroff.studio/_nuxt/PPNeueMontrealMono-Medium.BNn5A5Jy.woff") format("woff");
}

:root {
  --home-bg: #f0f0f0;
  --site-bg: var(--home-bg);
  --home-text: #1b1b1b;
  --home-gap: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(12px, 0.72vw + 9px, 20px);
  color: var(--home-text);
}

body[data-page="home"] {
  margin: 0;
  overflow-x: hidden;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: "PP Neue Montreal", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-page="home"] {
  overflow: hidden;
  overscroll-behavior: none;
  min-height: 100svh;
  height: 100dvh;
}

body[data-page="home"] nav {
  z-index: 260;
}

img {
  display: block;
  max-width: 100%;
}

.study-home {
  --home-page-interaction: 0;
  position: relative;
  min-height: 100svh;
}

body[data-page="home"] .study-home,
body[data-page="home"] .home-stage {
  min-height: 100svh;
  height: 100dvh;
}

.home-stage {
  position: relative;
  min-height: 100svh;
  padding-top: 7rem;
  overflow: clip;
}

.home-logo {
  --home-logo-base-x: 0px;
  --home-logo-base-y: 0px;
  position: fixed;
  left: 0;
  right: 0;
  top: 6.6rem;
  z-index: 230;
  width: min(98vw, 102rem);
  margin-inline: auto;
  text-align: center;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.055em;
  pointer-events: none;
  user-select: none;
  color: #fff;
  mix-blend-mode: difference;
  transform: translate3d(var(--home-logo-base-x), var(--home-logo-base-y), 0);
}

.home-logo-line {
  font-size: clamp(4.8rem, 11vw, 12.4rem);
  color: inherit;
}

.home-logo-line__text {
  display: inline;
  mix-blend-mode: normal;
}

.home-logo-line--caps {
  text-transform: uppercase;
}

.home-carousel {
  --home-carousel-interaction: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  left: calc(var(--home-page-interaction) * -7vw);
  right: calc(var(--home-page-interaction) * -7vw);
  z-index: 3;
  display: flex;
  align-items: center;
  overflow: visible;
  padding: 13rem calc(1.5rem + var(--home-page-interaction) * 7vw) 3.25rem;
  cursor: grab;
  transform: scale(calc(1 - var(--home-page-interaction) * 0.068));
  transform-origin: center center;
  transition:
    transform 0.52s cubic-bezier(0.19, 1, 0.22, 1),
    left 0.52s cubic-bezier(0.19, 1, 0.22, 1),
    right 0.52s cubic-bezier(0.19, 1, 0.22, 1),
    padding 0.52s cubic-bezier(0.19, 1, 0.22, 1);
}

.home-carousel__track {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--home-gap);
  width: max-content;
  touch-action: none;
  will-change: transform;
  transform-origin: center center;
  transform: translate3d(0, 0, 0);
}

.home-carousel.is-dragging,
.home-carousel__track.is-dragging {
  cursor: grabbing;
}

.home-carousel.is-dragging .carousel-item__link,
.home-carousel.is-dragging .carousel-item__figure,
.home-carousel.is-dragging .carousel-item__figure img,
.home-carousel__track.is-dragging .carousel-item__link,
.home-carousel__track.is-dragging .carousel-item__figure,
.home-carousel__track.is-dragging .carousel-item__figure img {
  cursor: grabbing;
}

.carousel-item {
  --home-fisheye-scale: 1;
  --home-fisheye-x: 0px;
  --home-fisheye-y: 0px;
  --home-fisheye-opacity: 1;
  position: relative;
  width: var(--item-width);
  flex: 0 0 var(--item-width);
}

.carousel-item__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translate3d(var(--home-fisheye-x), var(--home-fisheye-y), 0) scale(var(--home-fisheye-scale));
  transform-origin: center center;
  opacity: var(--home-fisheye-opacity);
  transition:
    transform 0.42s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.28s ease;
  will-change: transform, opacity;
}

.carousel-item__link {
  display: block;
  color: inherit;
  text-decoration: none;
  touch-action: none;
  cursor: grab;
  -webkit-user-drag: none;
  user-drag: none;
}

.carousel-item__figure {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: calc(1 / var(--aspect));
  overflow: hidden;
  background: #f3f3f3;
  border-radius: 0px;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.06);
  transition: transform 0.65s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease, opacity 0.35s ease;
  cursor: inherit;
}

.carousel-item__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  cursor: inherit;
}

.carousel-item__title-link {
  position: static;
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  font-family: "PP Neue Montreal Mono", monospace;
  font-size: 0.76rem;
  line-height: 1;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.carousel-item:hover .carousel-item__figure {
  transform: translateY(-0.35rem);
  box-shadow: 0 1.8rem 3.6rem rgba(0, 0, 0, 0.08);
}

.shared-contact {
  z-index: 180 !important;
}

@media (max-width: 900px) {
  :root {
    --home-gap: 0.9rem;
  }

  .home-stage {
    padding-top: 6.2rem;
  }

  .home-logo {
    top: 6.2rem;
    width: calc(100vw - 1.25rem);
  }

  .home-logo-line {
    font-size: clamp(3.9rem, 13.2vw, 8rem);
  }

  .home-carousel {
    padding: 11rem 1rem 3.8rem;
  }

  .carousel-item {
    width: calc(var(--item-width) * 0.76);
    flex-basis: calc(var(--item-width) * 0.76);
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  :root {
    --home-gap: 0.95rem;
  }

  .home-stage {
    padding-top: 6.4rem;
  }

  .home-logo {
    top: 6.55rem;
    width: calc(100vw - 1.6rem);
  }

  .home-logo-line {
    font-size: clamp(4.3rem, 10.4vw, 7.4rem);
    line-height: 0.84;
  }

  .home-carousel {
    padding: 10.8rem 1rem 4rem;
  }

  .carousel-item {
    width: calc(var(--item-width) * 0.82);
    flex-basis: calc(var(--item-width) * 0.82);
  }

  .carousel-item__title-link {
    font-size: 12px;
  }
}

@media (min-width: 641px) and (max-width: 1100px) and (orientation: portrait) {
  .home-logo {
    top: 24svh;
    width: calc(100vw - 0.8rem);
  }

  .home-logo-line {
    font-size: clamp(4.9rem, 12.2vw, 7.9rem);
    line-height: 0.84;
  }
}

@media (min-width: 820px) and (max-width: 860px) and (min-height: 1120px) and (max-height: 1220px) and (orientation: portrait) {
  .home-logo {
    top: 31svh;
  }
}

@media (max-width: 640px) {
  :root {
    --home-gap: 0.65rem;
  }

  .home-stage {
    min-height: 100svh;
    padding-top: 6.2rem;
  }

  .home-logo {
    --home-logo-base-x: -50%;
    --home-logo-base-y: -50%;
    top: 34svh;
    width: calc(100vw - 0.45rem);
  }

  .home-logo-line {
    font-size: clamp(3rem, 15.8vw, 5rem);
    line-height: 0.86;
  }

  .home-carousel {
    align-items: center;
    padding: 7.8rem 0.7rem 4rem;
  }

  .carousel-item {
    width: min(calc(var(--item-width) * 0.92), 90vw);
    flex-basis: min(calc(var(--item-width) * 0.92), 90vw);
  }

  .carousel-item__title-link {
    font-size: 11px;
    margin-top: 0.55rem;
    line-height: 1.15;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  :root {
    --home-gap: 0.55rem;
  }

  .home-stage {
    padding-top: 5.9rem;
  }

  .home-logo {
    left: 50%;
    right: auto;
    top: 35svh;
    width: calc(100vw - 0.2rem);
    letter-spacing: -0.045em;
  }

  .home-logo-line {
    font-size: clamp(2.7rem, 15.5vw, 4.55rem);
    line-height: 0.86;
  }

  .home-carousel {
    align-items: center;
    padding: 7.2rem 0.5rem 4.5rem;
  }

  .carousel-item {
    width: min(calc(var(--item-width) * 0.96), 92vw);
    flex-basis: min(calc(var(--item-width) * 0.96), 92vw);
  }

  .carousel-item__title-link {
    font-size: 11px;
    margin-top: 0.45rem;
  }
}

@media (max-width: 400px) {
  .home-stage {
    padding-top: 5.7rem;
  }

  .home-logo {
    left: 50%;
    right: auto;
    top: 37svh;
    width: calc(100vw - 0.7rem);
    letter-spacing: -0.04em;
  }

  .home-logo-line {
    font-size: clamp(2.3rem, 15.2vw, 3.85rem);
    line-height: 0.88;
  }

  .home-carousel {
    align-items: center;
    padding: 6.8rem 0.45rem 4.2rem;
  }

  .carousel-item {
    width: min(calc(var(--item-width) * 0.94), 92vw);
    flex-basis: min(calc(var(--item-width) * 0.94), 92vw);
  }
}

@media (max-height: 540px) {
  .home-stage {
    padding-top: 5.6rem;
  }

  .home-logo {
    top: 39svh;
    width: calc(100vw - 0.8rem);
    letter-spacing: -0.04em;
  }

  .home-logo-line {
    font-size: clamp(2rem, 9vw, 3.3rem);
    line-height: 0.9;
  }

  .home-carousel {
    align-items: center;
    padding: 6.2rem 0.5rem 2.8rem;
  }
}
