:root {
  --grid-pad: clamp(1.8rem, 2vw, 3.6rem);
  --grid-gap: clamp(1rem, 1.1vw, 2rem);
  --cell-pad: clamp(10px, 1.0vw, 18px);
}

html,
body {
  font-family: "SuisseIntl-Regular";
  scroll-behavior: smooth;
  font-size: 62.5%;
  overflow: hidden;

  -webkit-animation: fadeInAnimation ease 3s;
  animation: fadeInAnimation ease 3s;
  -webkit-animation-iteration-count: 1;
  animation-iteration-count: 1;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
  -webkit-font-smoothing: antialiased;
}

@-webkit-keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Hero */
.hero {
  width: var(--w);
  height: var(--h);
  position: relative;
  overflow: hidden;
}

@supports not (height: 100svh) {
  .hero {
    width: 100vw;
    height: 100vh;
  }
}

.hero-grid {
  width: 100%;
  height: 100%;
  padding: var(--grid-gap);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: var(--grid-gap);
  position: relative;
}

@media screen and (max-width: 768px) {
  .hero-grid {
    width: 100%;
    height: 100%;
    padding: var(--grid-gap);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: var(--grid-gap);
    position: relative;
  }
}

/* Sentences */
.scattered-sentence {
  grid-column: var(--col);
  grid-row: var(--row);
  align-self: center;
  justify-self: center;
  padding: var(--cell-pad);
  line-height: 1.25;
  text-align: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  font-size: var(--r-fontSize);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-break: break-word;
  hyphens: auto;
  user-select: none;
  pointer-events: auto;
  z-index: 3;
  background: transparent;
}

mark {
  background-color: var(--b-Colour);
  color: var(--bg-Colour);
}

/* Keep the original paragraph in the DOM but not visible */
.about-text {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  .scattered-sentence {
    display: none;
  }
}

/* Video */
.video-cell {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: stretch;
}

.video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--bg-fade-ms) ease-in-out;
  filter: invert(1);
}

.video-player.is-visible {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .video-cell {
    grid-column: 2 / 2;
    grid-row: 2 / 3;
    position: relative;
    z-index: 0;
    min-width: 0;
    min-height: 0;
  }
}

/* Logo */
.logo-container {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 5;
}

.logo-container img {
  width: var(--w);
  filter: invert(1);
}

@media screen and (max-width: 768px) {
  .logo-container {
    display: none;
  }
}

/* sentences */
.stage {
  display: none;
}

@media screen and (max-width: 768px) {
  .stage {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    height: 100svh;
    width: 100svw;
    z-index: 1;
  }

  .sentence {
    max-width: 20ch;
    text-align: center;
    font-size: var(--h5-fontSize);
    color: var(--b-Colour);
    line-height: 1;
    margin: 0;
    text-wrap: balance;
  }
}