@font-face {
  font-family: "Lenia";
  src: url("../../assets/fonts/Lenia.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #111111;
  --color-secondary: #f5f5f5;
  --color-grey: #d1d1d1;
  --color-white: #ffffff;

  --font-main: "Lenia", Arial, Helvetica, sans-serif;

  --page-padding: clamp(1.5rem, 4.5vw, 3.75rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  background: var(--color-white);
  color: var(--color-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.site-header.is-light {
  color: var(--color-white);
}

/* ================================
   HEADER
================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.5rem, 2.4vw, 2.4rem) var(--page-padding);
  color: var(--color-primary);
  mix-blend-mode: normal;
}

.site-logo {
  font-size: clamp(1.15rem, 1.15vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  position: relative;
  z-index: 320;
}

.menu-toggle {
  width: clamp(2.8rem, 3vw, 3.5rem);
  height: clamp(2.8rem, 3vw, 3.5rem);
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 500;
  pointer-events: auto;
  transition: color 0.25s ease;
}

.menu-toggle svg {
  width: clamp(1.7rem, 1.7vw, 2.1rem);
  height: clamp(1.7rem, 1.7vw, 2.1rem);
}

.menu-toggle .bar {
  stroke: currentColor;
  stroke-width: 1.8;
}

/* ================================
   MENU OVERLAY
================================ */

.site-nav {
  position: fixed;
  inset: 0;
  z-index: 250;
  visibility: hidden;
  pointer-events: none;
  padding: 1rem;
}

.nav-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(17, 17, 17, 0.24);
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
}

.nav-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  margin-left: auto;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.75rem;
  pointer-events: none;
}

.nav-panel {
  border-radius: 1.5rem;
  overflow: hidden;
  transform: translateX(110%);
  pointer-events: auto;
}

.nav-main {
  background: var(--color-white);
  color: var(--color-primary);
  padding: clamp(5rem, 9vw, 7rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-item {
  overflow: hidden;
}

.nav-link {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(2.35rem, 5.8vw, 4.9rem);
  line-height: 1;
  letter-spacing: -0.07em;
  color: var(--color-primary);
  overflow: hidden;
  height: 1.06em;
  padding-right: 0.16em;
  padding-bottom: 0.04em;
}

.nav-link-text {
  display: flex;
  flex-direction: column;
  transition: transform 0.65s var(--ease-out);
  will-change: transform;
}

.nav-link-text span {
  display: block;
  height: 1.06em;
  line-height: 1;
  padding-right: 0.16em;
}

.nav-link:hover .nav-link-text {
  transform: translateY(-1.06em);
}

.nav-link:hover {
  color: #555555;
}

.nav-note {
  max-width: 28rem;
  margin-top: 3rem;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.45;
  color: #6a6a6a;
}

.nav-bottom {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  min-height: 7.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.nav-socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-socials a {
  font-size: 0.95rem;
  color: var(--color-white);
}

.nav-socials a:hover {
  opacity: 0.65;
}

.nav-small {
  font-size: 0.9rem;
  opacity: 0.72;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 700px) {
  .site-header {
    padding-top: 1.25rem;
  }

  .site-nav {
    padding: 0.65rem;
  }

  .nav-inner {
    width: 100%;
  }

  .nav-main,
  .nav-bottom {
    border-radius: 1.15rem;
  }

  .nav-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-link {
    font-size: clamp(2.4rem, 13vw, 4.4rem);
  }
}

.site-logo {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-header.hide-logo .site-logo {
  opacity: 0;
  transform: translateY(-0.35rem);
  pointer-events: none;
}

.site-header.is-light {
  color: var(--color-white);
}

.site-header.is-light .menu-toggle,
.site-header.is-light .site-logo {
  color: var(--color-white);
}