:root {
  --primary: #000000;
  --secondary: #dfdfdf;
}

*,
*:before,
*:after {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

@font-face {
  font-family: 'Primary';
  src: url('assets/fonts/q-r.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: max(100vw / 1920 * 10);
}

body {
  font-family: 'Primary';
  background-color: var(--primary);
  color: var(--secondary);
  overflow: hidden;
}

::-webkit-scrollbar {
  width: none;
}

::selection {
  background-color: var(--secondary);
  color: var(--primary);
}

h1 {
  font-size: 8rem;
  text-transform: uppercase;
}

time,
span,
p {
  font-family: 'Primary';
  font-size: 2rem;
  line-height: 1.2;
}

/*  Lenis CSS styles */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Section Styles */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1.2fr) 2fr;
  width: 100%;
}

section {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 6.4rem;
}

.wrapper {
  position: relative;
  width: max-content;
}

.section_bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  object-fit: cover;
  z-index: -1;
}

.video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.content {
  display: flex;
  align-items: center;
}

.timeline-event {
  width: 100vw;
  padding-right: 120rem;
}

.title {
  margin-bottom: 3.2rem;
}

.timeline-indicator {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 2rem 3.2rem;
  z-index: 10;
}

.timeline-indicator-label {
  margin-bottom: 2rem;
}

.timeline-label {
  font-size: 1.8rem;
  padding: 1.5rem;
  justify-self: center;
  border-radius: 1rem;
  border: 1px solid #dfdfdf;
  background-color: transparent;
  color: var(--secondary);
  transition: background-color 0.64s ease-out, color 0.64s ease-out;
}

.timeline-label.--active {
  background-color: var(--secondary);
  color: var(--primary);
  transition: background-color 0.64s ease-out, color 0.64s ease-out;
}

.timeline-label:last-child {
  justify-self: end;
}

.timeline-dot {
  width: 1.6rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--secondary);
  justify-self: center;
  scale: 0;
  transition: scale 0.48s ease-out;
  z-index: 20;
}

.timeline-dot.--active {
  scale: 1;
  transition: scale 0.48s ease-out;
}

.timeline-dot:last-child {
  justify-self: end;
  margin-right: 9.6rem;
}

/* Timeline Progress Styles */
.timeline-progress {
  position: absolute;
  left: 0;
  bottom: 0.8rem;
  width: 100%;
  padding: inherit;
  z-index: -1;
}

.timeline-progress__track,
.timeline-progress__fill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  transform: translateY(-50%);
  background-color: var(--secondary);
  z-index: 100;
}

.timeline-progress__track {
  width: 100%;
  opacity: 0.2;
}

/* Breakpoints */
@media screen and (max-width: 768px) {
  html {
    font-size: calc(100vw / 768 * 10);
  }

  h1 {
    font-size: 2.5rem;
  }

  span,
  p {
    font-size: 2rem;
  }

  .wrapper {
    width: 100%;
    padding-top: 16rem;
  }

  .content {
    flex-direction: column;
  }

  .timeline-event {
    width: auto;
    height: 100vh;
    padding-right: 0;
  }

  .timeline-indicator {
    background-color: var(--primary);
  }

  .timeline-label {
    padding: 1rem;
  }

  .timeline-dot:last-child {
    margin-right: 0;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: calc(100vw / 480 * 10);
  }

  h1 {
    font-size: 2rem;
  }

  span,
  p {
    font-size: 1.5rem;
  }

  .wrapper {
    padding-top: 12rem;
  }

  .timeline-indicator {
    padding: 1rem 2rem;
  }

  .timeline-label {
    font-size: 1.6rem;
    padding: 0.8rem;
  }

  .timeline-dot {
    width: 1.2rem;
    height: 1.1rem;
  }

  .timeline-dot:last-child {
    margin-right: 0;
  }
}
