@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

:root {
  --text: #f3eee8;
  --text-muted: rgba(243, 238, 232, 0.72);
  --red: #d2463d;

  --dark: #070a0e;
  --dark-secondary: #0b0e12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;

  background: var(--dark);
  color: var(--text);

  font-family:
    "Inter",
    "Helvetica Neue",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.hero {
  position: relative;

  width: 100%;
  height: 100dvh;
  min-height: 100dvh;

  overflow: hidden;

  background-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.02) 60%,
      rgba(0, 0, 0, 0.28) 100%
    ),
    url("assets/background.webp");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;
  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      transparent 48%,
      rgba(0, 0, 0, 0.10) 74%,
      rgba(0, 0, 0, 0.30) 100%
    );
}

/* =========================================================
   TOP LEFT
========================================================= */

.motto {
  position: absolute;

  top: 5.5%;
  left: 4%;

  z-index: 5;

  display: flex;
  flex-direction: column;

  gap: 0.42rem;

  font-size: 0.70rem;
  font-weight: 400;

  letter-spacing: 0.39em;
  line-height: 1;
}

/* =========================================================
   NAVIGATION
========================================================= */

.nav {
  position: absolute;

  top: 6%;
  right: 17%;

  z-index: 10;

  display: flex;
  align-items: center;

  gap: 4.2rem;
}

.nav a {
  position: relative;

  padding-bottom: 1rem;

  text-decoration: none;
  text-transform: uppercase;

  font-size: 0.73rem;
  font-weight: 400;

  letter-spacing: 0.25em;

  transition:
    opacity 0.2s ease,
    color 0.2s ease;
}

.nav a:hover {
  opacity: 0.7;
}

.nav a.active::after {
  content: "";

  position: absolute;

  bottom: 0;
  left: 50%;

  width: 49px;
  height: 2px;

  transform: translateX(-50%);

  background: var(--red);
}

/* =========================================================
   TOP RIGHT
========================================================= */

.studio-label {
  position: absolute;

  top: 4.9%;
  right: 3.7%;

  z-index: 5;

  display: flex;
  flex-direction: column;

  gap: 0.55rem;

  padding: 0.75rem 1.9rem;

  border-left: 2px solid var(--red);
  border-right: 2px solid var(--red);

  font-size: 0.68rem;
  font-weight: 400;

  letter-spacing: 0.34em;
  line-height: 1;
}

/* =========================================================
   CENTRAL BRANDING
========================================================= */

.branding {
  position: absolute;

  top: 39%;
  left: 50%;

  z-index: 5;

  width: min(700px, 68vw);

  transform: translate(-50%, -50%);

  text-align: center;
}

.logo {
  display: block;

  width: 106px;
  height: auto;

  margin: 0 auto 0.7rem;

  object-fit: contain;
}

.brand-wordmark {
  display: block;

  width: min(505px, 62vw);
  height: auto;

  margin: 0 auto;

  object-fit: contain;
}

.tagline {
  margin: 1.05rem 0 0;

  font-size:
    clamp(
      0.68rem,
      0.90vw,
      0.90rem
    );

  font-weight: 400;

  letter-spacing: 0.42em;

  color: var(--text);

  white-space: nowrap;
}

.accent-line {
  width: 64px;
  height: 2px;

  margin:
    2.15rem
    auto
    1.45rem;

  background: var(--red);
}

.development {
  display: inline-block;

  text-decoration: none;

  font-size: 0.81rem;
  font-weight: 300;

  letter-spacing: 0.23em;

  color: var(--text-muted);

  transition: color 0.2s ease;
}

.development:hover {
  color: var(--text);
}

/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-indicator {
  display: block;

  position: relative;

  width: 34px;
  height: 24px;

  margin:
    1.15rem
    auto
    0;

  opacity: 0.9;
}

.scroll-indicator span {
  position: absolute;

  top: 4px;
  left: 50%;

  width: 10px;
  height: 10px;

  border-right: 1.3px solid var(--text);
  border-bottom: 1.3px solid var(--text);

  transform:
    translateX(-50%)
    rotate(45deg);

  animation:
    scrollFloat
    2.1s ease-in-out
    infinite;
}

@keyframes scrollFloat {
  0%,
  100% {
    transform:
      translateX(-50%)
      translateY(0)
      rotate(45deg);
  }

  50% {
    transform:
      translateX(-50%)
      translateY(6px)
      rotate(45deg);
  }
}

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

.hero-footer {
  position: absolute;

  bottom: 4.7%;
  left: 4.2%;
  right: 4.2%;

  z-index: 5;

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 0.67rem;
  font-weight: 300;

  letter-spacing: 0.11em;

  color: rgba(255, 255, 255, 0.84);
}

.hero-footer a {
  text-decoration: none;

  transition: opacity 0.2s ease;
}

.hero-footer a:hover {
  opacity: 0.68;
}

/* =========================================================
   ABOUT
========================================================= */

.about {
  min-height: 60vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 7rem 2rem;

  background: var(--dark-secondary);

  text-align: center;
}

.section-inner {
  width: min(720px, 100%);
}

.section-label {
  margin: 0 0 1.4rem;

  color: var(--red);

  font-size: 0.7rem;
  letter-spacing: 0.38em;
}

.about h2 {
  margin: 0 0 1.8rem;

  font-size:
    clamp(
      2rem,
      4vw,
      3rem
    );

  font-weight: 300;
  letter-spacing: 0.02em;
}

.about-copy {
  max-width: 640px;

  margin: 0 auto;

  color: var(--text-muted);

  font-size: 1rem;
  line-height: 1.8;
}

.contact-link {
  display: inline-block;

  margin-top: 2.5rem;
  padding-bottom: 0.35rem;

  border-bottom: 1px solid var(--red);

  text-decoration: none;

  font-size: 0.8rem;
  letter-spacing: 0.2em;

  text-transform: uppercase;

  transition: opacity 0.2s ease;
}

.contact-link:hover {
  opacity: 0.68;
}

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

@media (max-width: 1100px) {

  .nav {
    right: 5%;
    gap: 2.5rem;
  }

  .studio-label {
    display: none;
  }

  .branding {
    top: 40%;
    width: min(650px, 74vw);
  }

  .logo {
    width: 98px;
    margin-bottom: 0.6rem;
  }

  .brand-wordmark {
    width: min(470px, 67vw);
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

  .hero {
    width: 100%;

    height: 100dvh;
    min-height: 100dvh;

    background-image:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.03) 0%,
        rgba(0, 0, 0, 0.02) 58%,
        rgba(0, 0, 0, 0.24) 100%
      ),
      url("assets/background-mobile.webp");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }

  .hero::after {
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.04) 0%,
        rgba(0, 0, 0, 0.00) 35%,
        rgba(0, 0, 0, 0.00) 70%,
        rgba(0, 0, 0, 0.24) 100%
      );
  }

  .motto,
  .studio-label {
    display: none;
  }

  /* NAV */

  .nav {
    top: 2.4rem;
    left: 50%;
    right: auto;

    transform: translateX(-50%);

    gap: 2rem;

    white-space: nowrap;
  }

  .nav a {
    font-size: 0.68rem;
    letter-spacing: 0.17em;

    padding-bottom: 0.85rem;
  }

  .nav a.active::after {
    width: 42px;
  }

  /* BRANDING */

  .branding {
    top: 42%;
    left: 50%;

    width: 88%;

    transform: translate(-50%, -50%);
  }

  .logo {
    width: 92px;

    margin:
      0 auto
      0.65rem;
  }

  .brand-wordmark {
    width: min(76vw, 390px);

    margin:
      0 auto;
  }

  .tagline {
    margin-top: 0.95rem;

    font-size: 0.60rem;
    letter-spacing: 0.20em;

    white-space: nowrap;
  }

  .accent-line {
    width: 52px;

    margin:
      1.9rem
      auto
      1.3rem;
  }

  .development {
    font-size: 0.67rem;
    letter-spacing: 0.16em;
  }

  .scroll-indicator {
    margin-top: 1rem;
  }

  /* FOOTER */

  .hero-footer {
    bottom: 1.6rem;

    left: 1.8rem;
    right: 1.8rem;

    flex-direction: column;
    align-items: flex-start;

    gap: 0.65rem;

    font-size: 0.56rem;
    letter-spacing: 0.05em;
  }

  .about {
    padding:
      5rem
      1.5rem;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

  .nav {
    gap: 1.35rem;
  }

  .nav a {
    font-size: 0.61rem;
  }

  .branding {
    top: 41.5%;

    width: 92%;
  }

  .logo {
    width: 84px;
  }

  .brand-wordmark {
    width: 79vw;
  }

  .tagline {
    font-size: 0.55rem;
    letter-spacing: 0.16em;
  }

  .development {
    font-size: 0.63rem;
  }
}