:root {
  --bg-body: #fff;
  --max-width-content: 1400px;
  --fs-s: 0.8em;
  --bg-secondary: #200911;
  --text-secondary: #F8F7F4;
  --text-black: #333333;
  --nav-link-color: #333333;
}

* {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  font-family: sans;
  margin: 0px;
  height: 100%;
  overscroll-behavior: none;
  scroll-behavior: smooth;
  background-color: var(--bg-body);
  font-size: clamp(1rem, 0.9259rem + 0.3704vw, 1.25rem);
}

.skiplink {
  background-color: var(--bg-body);
  position: absolute;
  top: -999px;
  z-index: 1;
  padding: 10px;
  text-decoration: none;
  color: var(--text-black);
  text-transform: uppercase;
}

.skiplink:focus {
  top: 0px;
  left: 10px;
  outline: medium solid var(--text-light-brown);
}

.root-wrapper {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

h1 {
  margin: 50px 0;
}

p {
  font-size: 1em;
  line-height: 1.6;
  letter-spacing: 0.035em;
}

a {
  color: black;
}

.centered {
  display: flex;
  justify-content: center;
}

.container {
  width: 90vw;
  max-width: var(--max-width-content);
}

.arrow svg {
  stroke: var(--text-black);
  width: 50%;
  height: auto;
  stroke-width: 2px;
}

.bg-secondary .arrow svg {
  stroke: var(--text-secondary);
}

/* links */
.link {
  display: flex;
  align-items: center;
  position: relative;
  width: fit-content;
  text-decoration: none;
}

/* arrow effect */

.arrow-viewbox {
  display: inline-block;
  vertical-align: center;
  margin-left: 0.5em;
  width: 50px;
  overflow: hidden;
}

.arrow-wrapper {
  transform: translateX(-50%);
  width: 200%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.arrow:hover .arrow-wrapper {
  transform: translateX(0);
}

/* underline effect */
.link.underline::before{
  content: '';
  position: absolute;
  bottom: -0.2em;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-black);
  transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.link.underline:hover::before{
  width: 100%;
}

/* scroll-over effect */
.scrollover-wrapper {
  --fs: 42px;
  --line-height: 52px;
  height: var(--line-height);
  overflow: hidden;
  position: relative;
}

.scrollover-wrapper .scrollover {
  font-size: var(--fs);
  line-height: var(--line-height);
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  transition: 0.4s;
}

.scrollover-target:hover .scrollover {
  top: -100%;
}

.scrollover-wrapper .scrollover::after {
  content: attr(data-text);
}

/* navigation */
.topnav {
  display: flex;
  align-items: center;
  padding: 50px;
  width: 100vw;
}

.topnav a {
  color: var(--nav-link-color);
}

.topnav:has(+ .full-height-hero) {
  position: absolute;
  mix-blend-mode: difference;
}

.topnav:has(+ .full-height-hero) a {
  --nav-link-color: white;
}

.topnav:has(+ .full-height-hero) .arrow svg {
  stroke: var(--nav-link-color);
}

.logolink {
  text-decoration: none;
}

.navlink-wrapper {
  list-style-type: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  flex: 1 1 0px;
  justify-content: end;
}

.navlink-wrapper > li > a {
  text-decoration: none;
  --navlinkheight: 58px;
  border: 1px solid var(--nav-link-color);
  height: var(--navlinkheight);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--navlinkheight);
  padding: 0 calc(var(--navlinkheight) / 2);
}

.navlink-wrapper > li > a:not(.arrow):hover {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

.topnav:has(+ .full-height-hero) .navlink-wrapper > li > a:not(.arrow):hover {
  background-color: var(--nav-link-color);
  color: black;
}

/* project page */
.full-height-hero {
  height: 100vh;
}

.hero-img, 
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* blocks */

.block {
  margin: 100px 0;
}

.block.section h2 {
  font-size: 0.48em;
  font-weight: 400;
}

.block.section h3 {
  font-size: 4em;
  font-weight: 500;
  margin: 0.2em 0;
}

.block.movingtext {
  width: 100vw;
  overflow: hidden;
}

.block.movingtext h1, 
.block.movingtext h1::after {
  font-family: "Noi Grotesk Trial";
  font-feature-settings: "ss04", "ss05";
}

.block.movingtext h1 {
  display: inline-block;
  text-wrap: nowrap;
  animation: moveText 20s linear infinite;
  font-size: clamp(3.125rem, -0.2332rem + 16.791vw, 31.25rem);
  letter-spacing: -0.03em;
}

.block.movingtext h1::after {
  content: attr(data-text);
  position: relative;
}

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

/* 20px - 100px */
.block.videoandtext {
  display: flex;
  gap: clamp(1.25rem, -0.2315rem + 7.4074vw, 6.25rem);
  flex-wrap: wrap;
}

.block.videoandtext > * {
  flex: 1 0 300px;
}

.block.videoandtext video { 
  width: 100%;
}

.block.textimagelink {
  display: flex;
}

.block.projectlink {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 25px;
}

.block.projectlink .project-wrapper {
  text-decoration: none;
}

.block.projectlink .project-wrapper h4 {
  font-weight: 400;
  margin: 0;
}

.block.projectlink .project-wrapper .scrollover-wrapper {
  margin: 10px 0;
  --fs: 0.88em;
  --line-height: 1em;
}

.block.projectlink .project-wrapper p {
  font-size: 1.68em;
  line-height: 1.238em;
  margin: 0;
}

.block.projectlink .project-wrapper img {
  width: 100%;
  object-fit: cover;
}

.block.services {
  --service-icon-width: 200px;
  display: grid;
  grid-template-columns: 1fr var(--service-icon-width);
}

.block.services .service-wrapper {
  grid-column-start: 1;
  grid-column-end: -1;
  display: grid;
  grid-template-columns: subgrid;
  border-top: 1px solid black;
}

.block.services .service-wrapper img {
  padding: 10px;
}

.block.services .service-wrapper:last-child {
  border-bottom: 1px solid black;
}

.block.clientlogos {
  width: 100vw;
  overflow: hidden;
}

.block.clientlogos .clientlogo-wrapper {
  --gap-clientlogos: 50px;
  display: flex;
  gap: var(--gap-clientlogos);
  animation: moveText 20s linear infinite;
  width: fit-content;
}

.block.clientlogos .clientlogo-wrapper > img:last-child {
  margin-right: var(--gap-clientlogos);
}

.block.portrait {
  display: flex;
  gap: 20px;
}

.block.portrait img {
  border-radius: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.block.hugebutton {
  --hugebuttonheight: 200px;
}

.block.hugebutton a {
  display: flex;
  text-decoration: none;
  height: var(--hugebuttonheight);
  justify-content: center;
  align-items: center;
  border: 4px solid;
  border-radius: calc(var(--hugebuttonheight) / 2);
  width: fit-content;
  padding: 0 calc(var(--hugebuttonheight)/2);
  font-size: 100px;
  font-weight: 500;
}

.block.hugebutton .arrow-viewbox {
  width: 1.5em;
}

.block.hugebutton svg {
  stroke-width: 0.015em;
}

.bg-secondary .block.hugebutton a {
  color: var(--text-secondary);
}

.block.paragraphsize.large p {
  font-size: xx-large;
}

.block.list ul {
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 75%;
  padding: 0;
}

.block.imagegrid {
  --gap: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin: calc(var(--gap) / 2) 0;
}

.block.imagegrid.split-l > img:last-child {
  grid-area: 1 / 2 / 3 / 3;
}

.block.imagegrid.split-r > img:first-child {
  grid-area: 1 / 1 / 3 / 2;
}

.block.imagegrid.oneimage > img {
  grid-area: auto / span 2;
}

.block.imagegrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-secondary {
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
}

.bg-secondary a {
  color: var(--text-secondary);
}

footer {
  padding: 150px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
}

.footer-grid .footer-grid-item {
  line-height: 37px;
  font-size: 22px;
}

.footer-grid .footer-grid-item:last-child {
  display: flex;
  justify-content: end;
}