/* SELECTION */

::-moz-selection {
  color: #fdfd13;
}

::selection {
  color: #fdfd13;
}

/* GLOBAL */

:root {
  --vh: 1vh;
  --nav-height: 7vh;
  --page-gap: 1vw;
  --panel-radius: 25px;
  --text-surface-bg: #f8f8f8;

  --space-section: 58vh;
  --space-caption: 25vh;
  --space-image-group: 0vh;
  --description-overlap: 14vh;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100001;
  padding: 0.85rem 1rem;
  border: 2px solid #000;
  border-radius: 0.5rem;
  background: #fdfd13;
  color: #000;
  font-family: "apercu_bold", sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff;
  color: #000000;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  font-family: "apercu_mono";
  cursor: none;
}

body {
  overflow-x: hidden;
  overflow-y: scroll;
}

a {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

a:focus-visible,
.skip-link:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #000;
  outline-offset: 4px;
}

main:focus {
  outline: none;
}

/* LAYOUT LAYERS */

.nav {
  z-index: 50;
}

.slides-wrapper {
  position: relative;
  z-index: 2;
  margin-top: calc(var(--nav-height) + 1vh);
  background: transparent;
}

/* NAV */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: #fdfd13;
  color: #000;
  border: 0;
  box-shadow: none;
  outline: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: #fdfd13;
  pointer-events: none;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 2vh;
}

.nav-links-left,
.nav-links-right {
  position: static;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 1.5vh;
}

.nav-links-left {
  font-family: "apercu_bold";
  font-size: 2vh;
  letter-spacing: 1px;
}

.nav-links-right {
  font-family: "apercu_mono";
  font-size: 2vh;
  letter-spacing: 1px;
}

.nav-links-left a,
.nav-links-right a,
.nav-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.nav-toggle-button {
  margin: 0;
  padding: 0.22em 0.42em;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle-button__label {
  display: block;
  font: inherit;
  line-height: 1;
}

html.ui-paused .nav-toggle-button {
  background: #0202b0;
  color: #fdfd13;
}

.nav-links-left a:hover,
.nav-links-left a:focus-visible,
.nav-links-right a:hover,
.nav-links-right a:focus-visible,
.nav-toggle-button:hover,
.nav-toggle-button:focus-visible,
.typo a:hover,
.typo a:focus-visible,
.description a:hover,
.description a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

html.ui-paused,
html.ui-paused body {
  cursor: auto;
}

html.ui-paused a,
html.ui-paused button,
html.ui-paused .no-cursor-link {
  cursor: pointer;
}

html.ui-paused .cursor-pointer-bg {
  opacity: 0;
  visibility: hidden;
}

html.ui-paused .marquee-track {
  animation-play-state: paused;
}

/* MARQUEE */

.marquee,
.marquee-track,
.marquee-sequence,
.marquee-logo,
.marquee-gap {
  background: transparent;
}

.marquee {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  z-index: 1;
  width: 100%;
  height: calc(var(--vh, 1vh) * 100 - var(--nav-height));
  overflow: hidden;
  pointer-events: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: marquee-loop 75s linear infinite;
}

.marquee-track--right-start {
  animation: marquee-loop 75s linear infinite;
}

.marquee-sequence {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
}

.marquee-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
}

.marquee-logo img,
.marquee-logo svg {
  display: block;
  width: auto;
  height: 90%;
  max-width: none;
  max-height: none;
  transform: translateZ(0);
}

.marquee-gap {
  width: 100vw;
  height: 100%;
  flex: 0 0 100vw;
}

@keyframes marquee-loop {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-loop-right-start {
  from {
    transform: translate3d(calc(-50% + 100vw), 0, 0);
  }

  to {
    transform: translate3d(calc(-100% + 100vw), 0, 0);
  }
}

/* CONTENT STRUCTURE */

.intro-spacer {
  height: calc(var(--vh, 1vh) * 100 - var(--nav-height));
}

.content-block {
  margin-bottom: var(--space-section);
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block--contact {
  padding-bottom: var(--space-section);
}

.panel-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-image-group);
}

.description-block {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: calc(var(--description-overlap) * -1);
  padding: 0 2vw;
}

.content-block--tight {
  margin-bottom: var(--space-image-group);
}

/* PANELS */

.panel {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 98vw;
  min-height: calc(var(--vh, 1vh) * 100 - 8vh);
  margin-left: 1vw;
  overflow: hidden;
  border-radius: var(--panel-radius);
  background-color: transparent;
  box-sizing: border-box;
  font-size: 0.9vw;
  letter-spacing: 1px;
  text-align: center;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.panel-text-bg {
  position: relative;
  display: block;
  min-height: 100%;
  border-radius: inherit;
}

.panel-text-surface {
  width: 98vw;
  background-color: var(--text-surface-bg);
}

.panel-content {
  position: relative;
  width: 100%;
  height: 150vh;
  overflow: hidden;
  border-radius: inherit;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.panel-content img {
  margin-left: auto;
  margin-right: auto;
}

/* TEXT */

.text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
}

.typo {
  color: #000;
  font-family: "apercu_mono";
  font-size: 3.25vw;
  line-height: 4.5vw;
  font-style: normal;
  font-weight: normal;
  letter-spacing: 0;
  text-align: center;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.description {
  position: relative;
  z-index: 7;
  display: inline-block;
  width: auto;
  max-width: 60vw;
  margin: 0;
  padding: 1vw;
  border: solid 1.5px;
  border-radius: 7px;
  background-color: var(--text-surface-bg);
  font-size: 0.9vw;
  line-height: 1.6vw;
  letter-spacing: 1px;
  text-align: center;
}

/* IMAGES */

img {
  display: block;
  width: auto;
  height: 150vh;
  margin: 0;
  user-drag: none;
  user-select: none;
  backface-visibility: hidden;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-backface-visibility: hidden;
}

.no-cursor-link {
  cursor: pointer;
}

/* CUSTOM CURSOR */

.cursor-pointer-bg {
  position: fixed;
  inset: 0;
  z-index: 99999;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  width: 10vw;
  height: 10vw;
  border-radius: 9999px;
  background-color: #fff;
  pointer-events: none;
  will-change: transform;
  transition: transform 300ms ease-in-out;
  transition: background-color 0.3s;
}

/* SPLITTING */

.splitting .char {
  position: relative;
  z-index: 1;
  display: inline-block;
  transform-origin: 50% 100%;
  animation-name: wheee;
  animation-duration: 2.2s;
  animation-delay: calc(var(--char-index) * -0.5s);
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  -webkit-text-stroke-color: #000;
}

.splitting .char:nth-child(2n) {
  --name: wheee-alt;
}

@keyframes wheee {
  from {
    transform: translate(2%, -12%) rotate(-2deg);
  }

  to {
    transform: translate(-2%, 6%) rotate(4deg);
  }
}

@keyframes wheee-alt {
  from {
    transform: translate(0%, -6%) rotate(-2deg);
  }

  to {
    transform: translate(2%, 12%) rotate(4deg);
  }
}

/* PORTRAIT / MOBILE */

@media (orientation: portrait) {
  :root {
    --nav-height: 7vh;
    --space-section: 100vh;
    --space-caption: 40vh;
    --space-image-group: 20vh;
    --description-overlap: 10vh;
  }

  .nav-inner {
    padding: 0 1.5vh;
  }

  .nav-links-left,
  .nav-links-right {
    font-size: 1.75vh;
  }

  .typo {
    font-size: 5.5vw;
    line-height: 8.5vw;
    color: #000;
  }

  .description {
    max-width: 80vw;
    padding: 3.5vw;
    font-size: 3vw;
    line-height: 4.5vw;
  }

  .panel-image {
    min-height: calc(var(--vh, 1vh) * 100 - 8vh);
  }

  .panel-image .panel-content {
    width: 100%;
    height: 100%;
    min-height: calc(var(--vh, 1vh) * 100 - 8vh);
    overflow: hidden;
    border-radius: var(--panel-radius);
  }

  .panel-image .panel-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: var(--panel-radius);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }

  .cursor {
    width: 20vw;
    height: 20vw;
  }

  .img-01 {
    object-position: 43% 50%;
  }

  .img-02 {
    object-position: 51% 42%;
  }

  .img-03-1 {
    object-position: 50% 50%;
  }

  .img-03-2 {
    object-position: 52% 56%;
  }

  .img-04 {
    object-position: 56% 42%;
  }

  .img-05-1 {
    object-position: 46% 48%;
  }

  .img-05-2 {
    object-position: 50% 52%;
  }

  .img-06 {
    object-position: 36% 50%;
  }

  .img-07 {
    object-position: 50% 50%;
  }

  .img-08 {
    object-position: 63% 50%;
  }
}

/* TOUCH STABILITY */

@media (hover: none), (pointer: coarse) {
  html,
  body {
    height: auto;
    min-height: 100%;
    cursor: auto;
  }

  .cursor {
    opacity: 0;
  }

  html.touch-cursor-ready .cursor {
    opacity: 1;
  }

  .panel,
  .panel-content,
  .panel-content img {
    content-visibility: visible;
    contain: none;
  }

  .panel {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }

  .cursor-pointer-bg {
    display: block;
  }

  .marquee {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
  }
}

/* LEGAL PAGE */

html:has(body.legal-page-body),
body.legal-page-body {
  background: #f8f8f8;
}

.legal-page-body {
  margin: 0;
  min-height: 100vh;
  color: #000;
  cursor: auto;
}

.legal-page-body a:hover,
.legal-page-body a:focus-visible {
  text-decoration: underline;
}

.legal-page {
  --legal-content-width: 70%;
  --legal-content-margin-left: 5%;
  --legal-content-padding-top: 5%;
  width: var(--legal-content-width);
  margin-top: 0;
  margin-left: var(--legal-content-margin-left);
  padding-top: var(--legal-content-padding-top);
  padding-bottom: 5vw;
  font-size: 0.9vw;
  line-height: 1.6vw;
  letter-spacing: 1px;
}

.legal-page .section {
  margin-bottom: 3.5vw;
}

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

.legal-page .headline {
  margin: 0 0 1.1vw;
  font-family: "apercu_bold", sans-serif;
  font-size: 1.1vw;
  line-height: 1.4;
}

.legal-page p {
  margin: 0 0 1.1vw;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

.legal-page .contact-block,
.legal-page .legal-list {
  margin: 0;
}

.legal-page .legal-list {
  padding-left: 1.4em;
}

.legal-page .legal-list li {
  margin-bottom: 0.7vw;
}

.legal-page .legal-list li:last-child {
  margin-bottom: 0;
}

@media (orientation: portrait) {
  .legal-page {
    --legal-content-width: 90%;
    --legal-content-margin-left: 5%;
    --legal-content-padding-top: 7%;
    width: var(--legal-content-width);
    margin-top: 0;
    margin-left: var(--legal-content-margin-left);
    padding-top: var(--legal-content-padding-top);
    font-size: 3vw;
    line-height: 5vw;
    hyphens: auto;
  }

  .legal-page .section {
    margin-bottom: 10vw;
  }

  .legal-page .headline {
    margin-bottom: 4vw;
    font-size: 3.1vw;
  }

  .legal-page p {
    margin-bottom: 4vw;
  }

  .legal-page .legal-list li {
    margin-bottom: 2.5vw;
  }
}

@media (forced-colors: active) {
  .cursor-pointer-bg {
    display: none;
  }

  .skip-link,
  a:focus-visible,
  [tabindex]:focus-visible {
    forced-color-adjust: auto;
  }
}


.nav-toggle-button:hover,
.nav-toggle-button:focus-visible {
  text-decoration: none;
}
