:root {
    --font-sans-serif: Inter, sans-serif;
    --black: #000;
    --white:#fff;
    --greenneon: #e0ff16f7;
    --gray: #656565;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/**
*Typography
*/

body {
    font-family: var(--font-sans-serif);
    line-height: 1.1;
    font-weight: 400;
    margin: 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-sans-serif);
    line-height: 1.1;
}

h1 {
    font-size: 7rem;
    font-weight: 600;
}

h2 {
    font-size: 2.8rem;
    font-weight: 550;
    margin: 0;
    margin-top: 10px;
}

h3 {
    font-size: 3rem;
    font-weight: 550;
}

h4 {
    font-size: 2rem;
    font-weight: 450;
}

/**
*PAGE COVER
*/
.page-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    z-index: 9999;
    animation: coverSlideUp 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.5s;
    pointer-events: none;
}

@keyframes coverSlideUp {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

/**
*NAVBAR
*/

.main-nav {
    width: 100%;
    font-size: 1.5rem;
}

.main-nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.main-nav__logo {
    height: auto;
    line-height: 0.9;
    display: inline-block;
    white-space: normal;
    font-weight: 600;
}

.main-nav__menu {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.main-nav__menu a {
  text-decoration: none;
  color: var(--black);
  font-size: 1.5rem;
  font-weight: 450;
  transition: color 0.3s;
  white-space: nowrap;
}

.main-nav__menu a:hover {
  text-decoration: underline;
}

/**
*HERO
*/
.hero__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__slot {
    position: relative;
    height: 30rem;
}

.hero__intro-clip {
    overflow: hidden;
    left: 0;
    top: 0;
}

.hero__intro-viewport {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation-delay: 1s;
}

.hero__intro {
    font-size: 10rem;
    font-weight: 600;
    line-height: 0.8;
    transform: translateY(100%);
    animation: introIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards,
               introAway 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards 2s;
}

.hero__intro:last-child {
    animation-delay: 0.2s, 1.5s; 
}

.hero__static {
    font-size: 10rem;
    font-weight: 600;
    line-height: 1;
    transform: translateY(100%);
    animation: introIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.1s;
}

@keyframes introIn {
    0%   { transform: translateY(100%);}
    100% { transform: translateY(0);}
}

@keyframes introAway {
    0%   { transform: translateY(0);}
    100% { transform: translateY(-100%);}
}

.hero__viewport {
    position: absolute;
    top: 20rem;
    left: 0;
    height: 10rem;
    overflow: hidden;
}

.hero__word-track {
    display: flex;
    flex-direction: column;
    animation: slideUp 2s linear forwards;
    animation-delay: 1.9s;
    transform: translateY(100%);
    animation-fill-mode: both;
}

.hero__word-track span {
    font-size: 10rem;
    font-weight: 600;
    line-height: 1;
    height: 10rem;
}

@keyframes slideUp {
    0%   { transform: translateY(100%); }
    5%   { transform: translateY(0); }
    11%  { transform: translateY(-8%); }
    18%  { transform: translateY(-16.6%); }
    24%  { transform: translateY(-24%); }
    31%  { transform: translateY(-33.3%); }
    37%  { transform: translateY(-41%); }
    44%  { transform: translateY(-50%); }
    52%  { transform: translateY(-58%); }
    60%  { transform: translateY(-66.6%); }
    70%  { transform: translateY(-74%); }
    98%  { transform: translateY(-83.3%); }
    100% { transform: translateY(-83.3%); }
}

.cover {
    margin-top: 50px;
}

.hero__video {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
    transform-origin: bottom right;
    transition: transform 0.1s linear;
}

/**
*CLIENT STRIP
*/
.logo-strip {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  width: max-content;
  animation: scrollLeft 10s linear infinite;
}

.logo-track img {
  height: clamp(20px, 5vw, 60px); 
  width: auto;
  flex-shrink: 0;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/**
*PROJECT CARDS
*/
.project-cards {
    overflow-x: scroll;
    scrollbar-width: none;
    cursor: grab;
    width: 100vw;
    margin-left: -20px;
    padding-left: 20px;
    user-select: none;
}

.project-cards img,
.project-cards video {
    pointer-events: none;
    -webkit-user-drag: none;
}

.project-cards::-webkit-scrollbar {
    display: none;
}

.project-cards:active {
    cursor: grabbing;
}

.projects {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: max-content;
    user-select: none;
}

.project__cards {
    flex: 0 0 400px;
}

.project__img-wrap {
    position: relative;
    flex: 0 0 424px;
    width: 424px;
    height: 530px;
    overflow: hidden;
}

.project__img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
    pointer-events: none;
}

.project__cards:hover .project__img-wrap img {
    transform: scale(1.1);
}

.project__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.project__cards:hover .project__img-wrap video {
    transform: scale(1.1);
}

.project__img-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/**
*SERVICES
*/
.service {
    margin-top: 10rem;
}

.services__heading {
    border-bottom: 1px solid var(--black);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 3.2rem;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 550;
}

.services__layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* LEFT */
.services__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services__item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 4rem;
    font-weight: 650;
    line-height: 0.9;
    color: var(--black);
    transition: color 0.3s;
}

.services__item.active {
    color: var(--black);
}

.services__num {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--black);
    align-self: flex-start;
    margin-top: 0.5rem;
}

.services__name {
    font-size: 6rem;
    font-weight: 600;
}

.services__dot {
    opacity: 0;
    font-size: 7rem;
}

.services__item.active .services__dot {
    opacity: 1;
}

/* MIDDLE */
.services__details {
    align-self: start;
    padding-top: 1.8rem;
}

.services__subitems {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
}

.services__subitems.active {
    display: flex;
}

.services__subitems p {
    margin: 0;
    font-size: 1rem;
    line-height: 0.8;
}

/* RIGHT */
.services__image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.services__image img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding-top: 1rem;
    object-fit: cover;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.services__image img.active {
    transform: translateY(0); 
}

/* BOTTOM */
.services__cta {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.services__button {
    border: 1px solid var(--black);
    color: var(--black);
    text-decoration: none;
    border-radius: 999px;
    padding: 15px 25px;
    margin: 50px 20px 30px 50px;
    font-size: 1.8rem;
    font-weight: 450;
}

.services__cta-details {
    padding-top: 15px;
}

.services__button:hover {
    color: var(--white);
    background: var(--black);
}


/**
*STICKY BANNER
*/
.banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    align-items: center;
    gap: 3rem;
    z-index: 999;
    background: var(--greenneon);
}

.banner__heading {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin: 15px;
    display: grid;
    flex-direction: row;
    align-self: center;
}

.banner__text {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
}

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

.banner__cta {
    display: inline-flex;
    font-size: 1.6rem;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--black);
    border-radius: 999px;
    padding: 8px 15px;
    text-decoration: none;
    color: var(--black);
    white-space: nowrap;
    transition: background 0.3s;
}

.banner__cta:hover {
    background: var(--black);
    color: var(--white);
}

.banner__close {
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    font-weight: 200;
    margin: 10px;
}

/**
*MISSION
*/
.mission {
    margin-top: 8rem;
    margin-bottom: 4rem;
}

.mission__img {
    width: 100%;
    height: 100%;
}

.mission__statement {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    padding-right: 15rem;
}

/**
*TESTIMONIALS
*/
.testimonials__track {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--black);
    padding-bottom: 2rem;
    margin-left: -20px;
    margin-right: -20px;
    cursor: grab;
}

.testimonials__track:active {
    cursor: grabbing;
}

.testimonials__card {
    flex: 0 0 40vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    padding: 20px;
    border-right: 1px solid var(--black);
    margin: 0;
    gap: 12rem;
}

.testimonials__body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
}

.testimonials__quote {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: auto;
    padding: 0;
}

.testimonials__text {
    font-size: 1.5rem;
    font-weight: 450;
    line-height: 1.3;
    margin: 0;
    flex: 2;
}

.testimonials__author {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 1rem;
}

.testimonials__author strong {
    font-weight: 700;
}

.testimonials__author span {
    font-weight: 400;
    color: var(--gray);
}

.testimonials__footer {
    margin-top: 3.5rem;
}

.testimonials__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 350;
    text-decoration: none;
    background: var(--black);
    border-radius: 999px;
    padding: 15px 25px;
    border: 1px solid var(--black);
}

.testimonials__cta:hover {
    background: var(--white);
    color: var(--black);
}

/**
*ABOUT US
*/
.aboutus {
    margin-top: 7rem;
}

.aboutus__heading{
    font-size: 1.5rem;
    font-weight: 450;
    line-height: 0.8;
}

.aboutus__details {
    font-size: 4rem;
    font-weight: 600;
    margin-top: 2rem;
}

.aboutus__button {
    margin-top: 3.5rem;
}

.aboutus__people {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    font-size: 1.5rem;
    font-weight: 350;
    text-decoration: none;
    background: var(--white);
    border-radius: 999px;
    padding: 15px 25px;
    border: 1px solid var(--black);
}

.aboutus__people:hover{
    background: var(--black);
    color: var(--white);
}

/**
*IMG SWAP
*/
.img-swap__combo {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.img-swap__text {
    font-size: 12rem;
    font-weight: 600;
    padding-right: 10px;
    margin-top: 150px;
}

.img-swap {
    position: relative;
    margin-left: 50px;
    margin-top: 0;
}

.img-swap__hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.1s;
}
.img-swap img {
    width: auto;
    height: 19rem;
}

.img-swap img:first-child {
    opacity: 1;
    position: relative;
}

/**
*CONTACT
*/
.contact__heading {
    font-size: 1.5rem;
    font-weight: 450;
    line-height: 0.8;
}

.contact__details {
    display: flex;
    flex-direction: column;
    margin-top: 0;
    gap: 1rem;
}

.contact__details a {
    font-size: 4rem;
    font-weight: 600;
    margin-top: 0;
    color: var(--black);
    text-decoration: underline;
}

.contact__details a:hover {
    text-decoration: none;
}

/**
*ADDRESS
*/
.address {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    margin-top: 7rem;
    gap: 20px;
}

.address__column {
    display: flex;
    flex-direction: column;
}

.address__heading {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.address__details {
    font-size: 1rem;
    margin-top: 0;
}

.address .img-swap {
    width: 100%;
    margin: 0;
    margin-top: 20px;
}

.address .img-swap img {
    width: 100%;
    height: auto;
}

/**
*FOOTER
*/
.footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    justify-content: space-between;
    align-self: start;
    margin-top: 40px;
}

.footer__logo {
    display: flex;
    flex-direction: column;
    font-size: 4.5rem;
    font-weight: 550;
    line-height: 0.8;
}
.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list-items a {
    color: var(--black);
    font-weight: 450;
    font-size: 1.6rem;
    line-height: 1.8;
}

.footer__list-items a:hover{
    text-decoration: none;
}

.footer__credit {
    grid-column: 4;
    text-align: right;
    align-self: end;
}

/**
*CURSOR
*/

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background: black;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}