/* ========================================
   RESET
======================================== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

html {
  overscroll-behavior: none;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

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


/* ========================================
   ACCESSIBILITY
======================================== */

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* ========================================
   HERO WRAP
======================================== */

.hero-wrap {
  position: relative;

  width: 100%;
  height: 100svh;

  background: #ffffff;

  overflow: visible;
}


/* ========================================
   HERO
======================================== */

.hero {
  position: relative;

  width: 100%;
  height: 100%;

  min-height: 600px;

  overflow: hidden;

  background: #ffffff;
}


/* ========================================
   PRELOAD COVER
======================================== */

.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 4;

  background: #ffffff;

  opacity: 1;

  pointer-events: none;
}

.hero.is-ready::after {
  opacity: 0;
}


/* ========================================
   GIF
======================================== */

.gif-layer {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  bottom: 2px;

  z-index: 1;

  overflow: hidden;

  background: #000000;
}

.gif-layer img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  user-select: none;
  pointer-events: none;
}


/* ========================================
   SCRATCH CANVAS
======================================== */

.erase-canvas {
  position: absolute;
  inset: 0;

  z-index: 2;

  display: block;

  width: 100%;
  height: 100%;

  pointer-events: none;
}


/* ========================================
   WHITE FADE
======================================== */

.white-fade {
  position: absolute;
  inset: 0;

  z-index: 3;

  background: #ffffff;

  opacity: 0;

  pointer-events: none;

  will-change: opacity;
}


/* ========================================
   HERO CONTENT
======================================== */

.hero-content {
  position: fixed;

  top: 0;
  left: 0;

  z-index: 5;

  display: grid;

  grid-template-columns:
    1fr
    1fr
    1fr;

  width: 100%;

  padding:
    38px
    3vw;

  pointer-events: none;

  font-size:
    clamp(
      14px,
      1.05vw,
      18px
    );

  font-weight: 500;

  line-height: 1.25;

  letter-spacing: -0.035em;

  color: #000000;

  opacity: 0;

  transition:
    opacity
    800ms
    ease-out;

  will-change: opacity;
}

body.site-ready .hero-content {
  opacity: 1;
}

body.intro-complete .hero-content {
  transition: none;
}

.hero-content p {
  margin: 0;
}


/* ========================================
   INTRO
======================================== */

.intro {
  max-width: 330px;
}


/* ========================================
   EXPERTISE
======================================== */

.expertise {
  display: grid;

  grid-template-columns:
    auto
    1fr;

  gap: 35px;

  justify-self: center;
}

.expertise-label {
  white-space: nowrap;
}


/* ========================================
   CONTACT
======================================== */

.contact {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  justify-self: end;

  gap: 4px;

  pointer-events: auto;
}

.contact a {
  text-decoration: underline;

  text-decoration-thickness: 1px;

  text-underline-offset: 2px;
}


/* ========================================
   NAME
======================================== */

.name-window {
  position: absolute;

  left: 0;
  right: 0;

  bottom: -4.2vw;

  z-index: 10;

  width: 100%;

  overflow: visible;

  pointer-events: none;

  transform:
    translateY(70%);

  transition:
    transform
    1500ms
    cubic-bezier(
      0.22,
      1,
      0.36,
      1
    );

  will-change: transform;
}

body.site-ready .name-window {
  transform:
    translateY(0);
}


/* ========================================
   NAME CLIP
======================================== */

.name-clip {
  position: relative;

  width: 100vw;
  max-width: 100%;

  overflow-x: clip;
  overflow-y: visible;
}

@supports not (overflow: clip) {

  .name-clip {
    overflow-x: hidden;
  }

}


/* ========================================
   NAME TRACK
======================================== */

.name-track {
  display: flex;

  width: max-content;

  --ticker-distance: 0px;

  animation:
    nameTicker
    20s
    linear
    infinite;

  will-change: transform;
}

.name-group {
  display: flex;

  flex-shrink: 0;
}

.name-group span {
  display: block;

  flex-shrink: 0;

  padding-right: 6vw;

  font-family:
    "Space Grotesk",
    sans-serif;

  font-size: 18.5vw;

  font-weight: 700;

  line-height: 0.82;

  letter-spacing: -0.050em;

  white-space: nowrap;
}

@keyframes nameTicker {

  from {
    transform:
      translate3d(
        0,
        0,
        0
      );
  }

  to {
    transform:
      translate3d(
        calc(
          -1 *
          var(--ticker-distance)
        ),
        0,
        0
      );
  }

}


/* ========================================
   TABLET TICKER

   Geen JS-meting.

   De track bestaat uit twee exact
   gelijke groepen.

   50% van de complete track =
   exact één groep.

   Daardoor ontstaat een naadloze loop.
======================================== */

@keyframes tabletNameTicker {

  from {
    transform:
      translate3d(
        0,
        0,
        0
      );
  }

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

}


/* ========================================
   REEL
======================================== */

.reel-section {
  position: relative;

  z-index: 2;

  width: 100%;

  padding-top: 6vw;
  padding-bottom: 28px;

  background: #ffffff;
}

.reel {
  position: relative;

  width: 94vw;

  aspect-ratio: 16 / 9;

  margin: 0 auto;

  overflow: hidden;

  border-radius: 8px;

  background: #ffffff;

  opacity: 0;

  transform:
    translateY(30px);

  will-change:
    opacity,
    transform;
}

.reel-video {
  position: absolute;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  background: #ffffff;
}

.reel-video-mobile {
  display: none;
}


/* ========================================
   TABLET
======================================== */

@media
  (min-width: 701px)
  and
  (max-width: 1100px),
  (min-width: 701px)
  and
  (pointer: coarse) {


  /* ------------------------------------
     WRAPPER
  ------------------------------------ */

  .hero-wrap {
    position: relative;

    display: flex;
    flex-direction: column;

    width: 100%;

    height: auto;
    min-height: 100svh;

    padding-bottom: 24px;

    background: #ffffff;

    overflow: visible;
  }


  /* ------------------------------------
     HERO
  ------------------------------------ */

  .hero {
    position: relative;

    flex:
      1
      1
      auto;

    width: 100%;

    height: auto;
    min-height: 180px;

    overflow: visible;

    background: #ffffff;
  }


  /* ------------------------------------
     GEEN GIF / GUM OP TABLET
  ------------------------------------ */

  .hero::after,
  .gif-layer,
  .erase-canvas,
  .white-fade {
    display: none;
  }


  /* ------------------------------------
     HEADER
  ------------------------------------ */

  .hero-content {
    position: relative;

    top: auto;
    left: auto;

    display: grid;

    grid-template-columns:
      1fr
      1.05fr
      1fr;

    width: 100%;

    padding:
      30px
      3.2vw
      0;

    font-size:
      clamp(
        13px,
        1.35vw,
        15px
      );

    font-weight: 500;

    line-height: 1.25;

    letter-spacing: -0.035em;

    color: #000000;

    opacity: 0;

    pointer-events: auto;

    transition:
      opacity
      800ms
      ease-out;

    will-change: opacity;
  }


  body.site-ready .hero-content {
    opacity: 1;
  }


  .intro {
    max-width: 260px;
  }


  .expertise {
    display: grid;

    grid-template-columns:
      auto
      1fr;

    gap: 20px;

    justify-self: center;
  }


  .contact {
    justify-self: end;

    gap: 5px;

    pointer-events: auto;
  }


  /* ------------------------------------
     NAME
  ------------------------------------ */

  .name-window {
    position: relative;

    left: auto;
    right: auto;
    bottom: auto;

    flex:
      0
      0
      auto;

    width: 100%;

    margin: 0;

    overflow: visible;

    transform: none;

    opacity: 0;

    transition:
      opacity
      800ms
      ease-out;

    will-change: opacity;
  }


  body.site-ready .name-window {
    transform: none;

    opacity: 1;
  }


  .name-clip {
    width: 100%;
    max-width: 100%;

    overflow-x: clip;
    overflow-y: visible;
  }


  /*
    BELANGRIJK:

    Tablet gebruikt zijn eigen pure
    CSS-ticker.

    Geen --ticker-distance.
    Geen JS-berekening.
  */

  .name-track {
    animation:
      tabletNameTicker
      20s
      linear
      infinite;

    will-change: transform;
  }


  .name-group span {
    padding-right: 5vw;

    font-size: 17.2vw;

    line-height: 0.82;

    letter-spacing: -0.052em;
  }


  /* ------------------------------------
     REEL
  ------------------------------------ */

  .reel-section {
    position: relative;

    flex:
      0
      0
      auto;

    width: 100%;

    padding-top: 24px;
    padding-bottom: 0;

    background: #ffffff;
  }


  .reel {
    width: 94vw;

    aspect-ratio: 16 / 9;

    margin: 0 auto;

    border-radius: 8px;

    background: #ffffff;

    transform: none;

    will-change: opacity;
  }


  .reel-video-desktop {
    display: block;
  }


  .reel-video-mobile {
    display: none;
  }

}


/* ========================================
   TABLET LANDSCAPE

   HEADER
   ±200PX WIT
   NAAM
   VIDEO
======================================== */

@media
  (min-width: 701px)
  and
  (orientation: landscape)
  and
  (max-width: 1100px),
  (min-width: 701px)
  and
  (orientation: landscape)
  and
  (pointer: coarse) {


  .hero-wrap {
    display: flex;

    flex-direction: column;

    min-height: 0;

    padding-bottom: 24px;
  }


  .hero {
    flex:
      0
      0
      auto;

    height: auto;
    min-height: 0;

    overflow: visible;
  }


  .name-window {
    margin-top: 200px;
  }


  .reel-section {
    padding-top: 24px;
  }

}


/* ========================================
   REDUCED MOTION
======================================== */

@media
  (prefers-reduced-motion: reduce) {

  .hero-content,
  .name-window {
    transition: none;
  }

  .name-track {
    animation: none;
  }

  .reel {
    opacity: 1;

    transform: none;
  }

}


/* ========================================
   MOBILE
   <= 700px
======================================== */

@media
  (max-width: 700px) {


  /* ------------------------------------
     WRAPPER
  ------------------------------------ */

  .hero-wrap {
    display: block;

    height: auto;
    min-height: 0;

    padding-bottom: 0;

    overflow: hidden;
  }


  /* ------------------------------------
     HERO
  ------------------------------------ */

  .hero {
    height: auto;
    min-height: 0;

    overflow: visible;

    background: #ffffff;
  }


  .hero::after,
  .gif-layer,
  .erase-canvas,
  .white-fade {
    display: none;
  }


  /* ------------------------------------
     CONTENT
  ------------------------------------ */

  .hero-content {
    position: relative;

    top: auto;
    left: auto;

    display: flex;

    flex-direction: column;

    width: 100%;

    padding:
      34px
      26px
      0;

    font-size: 16px;

    font-weight: 500;

    line-height: 1.28;

    letter-spacing: -0.04em;

    opacity: 0;

    pointer-events: auto;

    transition:
      opacity
      800ms
      ease-out;
  }


  body.site-ready .hero-content {
    opacity: 1;
  }


  /* ------------------------------------
     INTRO
  ------------------------------------ */

  .intro {
    max-width: none;
  }


  /* ------------------------------------
     EXPERTISE
  ------------------------------------ */

  .expertise {
    display: block;

    justify-self: auto;

    margin-top: 30px;
  }


  .expertise-label {
    margin-bottom: 2px;

    white-space: normal;
  }


  /* ------------------------------------
     CONTACT
  ------------------------------------ */

  .contact {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-self: auto;

    margin-top: 34px;

    gap: 6px;
  }


  .contact a {
    text-decoration: underline;

    text-decoration-thickness: 1px;

    text-underline-offset: 2px;
  }


  /* ------------------------------------
     NAME
  ------------------------------------ */

  .name-window {
    position: relative;

    left: auto;
    right: auto;
    bottom: auto;

    width: 100%;

    margin-top: 38px;

    overflow: visible;

    transform: none;

    opacity: 0;

    transition:
      opacity
      800ms
      ease-out;

    will-change: opacity;
  }


  body.site-ready .name-window {
    transform: none;

    opacity: 1;
  }


  .name-clip {
    width: 100%;
    max-width: 100%;

    overflow-x: clip;
    overflow-y: visible;
  }


  .name-group span {
    padding-right: 8vw;

    font-size:
      clamp(
        100px,
        28vw,
        150px
      );

    line-height: 0.82;

    letter-spacing: -0.055em;
  }


  /* ------------------------------------
     REEL
  ------------------------------------ */

  .reel-section {
    padding-top: 38px;
    padding-bottom: 26px;

    background: #ffffff;
  }


  .reel {
    width:
      calc(
        100% - 52px
      );

    aspect-ratio: 4 / 5;

    border-radius: 8px;

    background: #ffffff;

    transform: none;

    will-change: opacity;

    transition:
      opacity
      800ms
      ease-out;
  }


  body.intro-complete .reel {
    transition: none;
  }


  .reel-video-desktop {
    display: none;
  }


  .reel-video-mobile {
    display: block;

    background: #ffffff;

    object-fit: cover;
  }

}