/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}


/* =========================
   VARIABLES
========================= */

:root {

  --bg: #f2f0ea;
  --text: #111111;

  --secondary: #777777;
  --border: rgba(17, 17, 17, 0.18);

  --inverse-bg: #111111;
  --inverse-text: #f2f0ea;

  --transition:
    0.6s cubic-bezier(.16, 1, .3, 1);
}

body.dark {

  --bg: #0b0b0b;
  --text: #f2f0ea;

  --secondary: #888888;
  --border: rgba(255, 255, 255, 0.2);

  --inverse-bg: #f2f0ea;
  --inverse-text: #111111;
}


/* =========================
   CUSTOM CURSOR
========================= */

.cursor {

  position: fixed;

  width: 14px;
  height: 14px;

  border-radius: 50%;

  background: var(--text);

  pointer-events: none;

  z-index: 99999;

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

  transition:
    width .3s ease,
    height .3s ease,
    background .3s ease;
}

.cursor-text {

  position: fixed;

  z-index: 99998;

  pointer-events: none;

  font-family: "DM Mono", monospace;

  font-size: 9px;

  color: var(--inverse-text);

  opacity: 0;

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

  transition:
    opacity .2s ease;
}

body.cursor-hover .cursor {

  width: 70px;
  height: 70px;

  background: var(--text);
}

body.cursor-hover .cursor-text {

  opacity: 1;
}


/* =========================
   LOADER
========================= */

.loader {

  position: fixed;

  inset: 0;

  background: var(--bg);

  z-index: 100000;

  display: flex;

  flex-direction: column;

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

  gap: 25px;

  transition:
    transform 1s cubic-bezier(.76, 0, .24, 1);
}

.loader.hide {

  transform:
    translateY(-100%);
}

.loader-logo {

  font-size:
    clamp(3rem, 8vw, 9rem);

  font-weight: 700;

  letter-spacing: -0.08em;
}

.loader-line {

  width: 180px;
  height: 1px;

  background:
    var(--border);

  overflow: hidden;
}

.loader-line span {

  display: block;

  width: 0;
  height: 100%;

  background: var(--text);

  animation:
    loading 1.4s ease forwards;
}

.loader-text {

  font-family:
    "DM Mono", monospace;

  font-size: 10px;

  letter-spacing: 0.15em;
}

@keyframes loading {

  to {
    width: 100%;
  }

}


/* =========================
   HEADER
========================= */

.header {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 1000;

  display: grid;

  grid-template-columns:
    1fr 1fr 1fr;

  align-items: center;

  padding:
    25px 35px;

  mix-blend-mode: normal;

  transition:
    padding .4s ease,
    background .4s ease;
}

.logo {

  font-size: 1.25rem;

  font-weight: 700;

  letter-spacing: -0.07em;
}

.logo span {

  font-size: 0.45rem;

  vertical-align: top;

  margin-left: 2px;
}

.header-center {

  display: flex;

  justify-content: center;

  gap: 20px;

  font-family:
    "DM Mono", monospace;

  font-size: 9px;

  letter-spacing: 0.08em;
}

.header-actions {

  display: flex;

  justify-content: flex-end;

  align-items: center;

  gap: 20px;
}

.theme-toggle,
.menu-button {

  border: none;

  background: none;

  color: var(--text);

  cursor: pointer;

  font-family:
    "DM Mono", monospace;

  font-size: 10px;

  letter-spacing: 0.08em;
}

.theme-toggle {

  font-size: 18px;
}


/* =========================
   FULLSCREEN MENU
========================= */

.fullscreen-menu {

  position: fixed;

  inset: 0;

  z-index: 900;

  background: var(--inverse-bg);

  color: var(--inverse-text);

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding:
    140px 35px 35px;

  transform:
    translateY(-100%);

  transition:
    transform .8s cubic-bezier(.76, 0, .24, 1);
}

.fullscreen-menu.active {

  transform:
    translateY(0);
}

.menu-links {

  display: flex;

  flex-direction: column;
}

.menu-link {

  display: flex;

  align-items: baseline;

  gap: 25px;

  width: max-content;

  font-size:
    clamp(3rem, 9vw, 10rem);

  line-height: .95;

  font-weight: 700;

  letter-spacing: -0.08em;

  transition:
    transform .5s ease;
}

.menu-link:hover {

  transform:
    translateX(30px);
}

.menu-link span {

  font-family:
    "DM Mono", monospace;

  font-size: 10px;

  letter-spacing: 0;
}

.menu-footer {

  display: flex;

  justify-content: space-between;

  font-family:
    "DM Mono", monospace;

  font-size: 9px;

  letter-spacing: .05em;
}


/* =========================
   INTRO
========================= */

.intro {

  min-height: 100vh;

  padding:
    120px 35px 35px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.intro-top {

  display: flex;

  justify-content: space-between;

  font-family:
    "DM Mono", monospace;

  font-size: 10px;

  line-height: 1.5;

  letter-spacing: .04em;
}

.intro-content {

  width: 100%;
}

.intro h1 {

  font-size:
    clamp(4rem, 11vw, 13rem);

  line-height: .78;

  letter-spacing: -0.09em;

  font-weight: 700;
}

.intro h1 span {

  display: block;
}

.outline {

  color: transparent;

  -webkit-text-stroke:
    1.5px var(--text);

  transition:
    color .4s ease;
}

.intro-bottom {

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  font-family:
    "DM Mono", monospace;

  font-size: 9px;

  letter-spacing: .06em;
}

.scroll-indicator {

  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 8px;
}

.scroll-indicator i {

  font-style: normal;

  font-size: 24px;

  animation:
    bounce 1.8s infinite;
}

@keyframes bounce {

  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }

}


/* =========================
   WORK
========================= */

.work {

  position: relative;
}

.project {

  min-height: 100vh;

  position: relative;

  padding:
    100px 8vw;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;
}

.project-number {

  position: absolute;

  top: 50%;

  left: 35px;

  transform:
    translateY(-50%);

  font-family:
    "DM Mono", monospace;

  font-size: 10px;

  color: var(--secondary);
}

.project-image {

  width: 55vw;

  height: 70vh;

  overflow: hidden;
}

.project-image img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform:
    scale(1.15);

  transition:
    transform 1.5s cubic-bezier(.16, 1, .3, 1);
}

.project.active .project-image img {

  transform:
    scale(1);
}

.project-info {

  position: absolute;

  bottom: 10vh;

  left: 12vw;

  z-index: 2;
}

.project-category {

  margin-bottom: 15px;

  font-family:
    "DM Mono", monospace;

  font-size: 10px;

  letter-spacing: .08em;
}

.project h2 {

  font-size:
    clamp(4rem, 9vw, 11rem);

  line-height: .78;

  letter-spacing: -0.09em;

  font-weight: 700;

  transform:
    translateY(80px);

  opacity: 0;

  transition:
    all 1s cubic-bezier(.16, 1, .3, 1);
}

.project.active h2 {

  transform:
    translateY(0);

  opacity: 1;
}

.project-meta {

  display: flex;

  gap: 40px;

  margin-top: 25px;

  font-family:
    "DM Mono", monospace;

  font-size: 9px;

  color: var(--secondary);
}


/* =========================
   PROJECT COUNTER
========================= */

.project-counter {

  position: fixed;

  right: 35px;

  top: 50%;

  transform:
    translateY(-50%);

  z-index: 100;

  display: flex;

  flex-direction: column;

  align-items: flex-end;

  font-family:
    "DM Mono", monospace;

  pointer-events: none;
}

.counter-label {

  font-size: 8px;

  color: var(--secondary);

  margin-bottom: 4px;
}

.project-counter strong {

  font-size: 2rem;

  font-weight: 400;
}

.counter-total {

  font-size: 10px;

  color: var(--secondary);
}

.counter-category {

  margin-top: 20px;

  font-size: 8px;

  writing-mode:
    vertical-rl;

  transform:
    rotate(180deg);

  letter-spacing: .15em;
}


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

.about {

  min-height: 100vh;

  padding:
    140px 35px 80px;

  border-top:
    1px solid var(--border);

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.about-label {

  display: flex;

  justify-content: space-between;

  font-family:
    "DM Mono", monospace;

  font-size: 9px;
}

.about-content {

  display: grid;

  grid-template-columns:
    1.5fr .5fr;

  gap: 8vw;

  margin:
    100px 0;
}

.about h2 {

  font-size:
    clamp(3rem, 7vw, 8rem);

  line-height: .9;

  letter-spacing: -0.08em;
}

.about h2 span {

  color: transparent;

  -webkit-text-stroke:
    1px var(--text);
}

.about-text {

  align-self: end;

  display: flex;

  flex-direction: column;

  gap: 25px;

  font-size: 1rem;

  line-height: 1.6;

  color: var(--secondary);
}

.about-image {

  width: 100%;

  height: 55vh;

  overflow: hidden;
}

.about-image img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 1.2s ease;
}

.about-image:hover img {

  transform:
    scale(1.04);
}


/* =========================
   MANIFESTO
========================= */

.manifesto {

  min-height: 80vh;

  background:
    var(--inverse-bg);

  color:
    var(--inverse-text);

  padding:
    100px 35px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.manifesto-small {

  font-family:
    "DM Mono", monospace;

  font-size: 9px;

  letter-spacing: .08em;
}

.manifesto h2 {

  font-size:
    clamp(4rem, 13vw, 15rem);

  line-height: .75;

  letter-spacing: -0.1em;
}

.manifesto h2 span {

  display: block;
}

.manifesto .outline {

  -webkit-text-stroke:
    1px var(--inverse-text);
}


/* =========================
   CONTACT
========================= */

.contact {

  min-height: 100vh;

  padding:
    140px 35px 35px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.contact-top {

  display: flex;

  justify-content: space-between;

  font-family:
    "DM Mono", monospace;

  font-size: 10px;
}

.contact-email {

  width: max-content;

  max-width: 100%;

  font-size:
    clamp(2rem, 8vw, 10rem);

  font-weight: 700;

  letter-spacing: -0.08em;

  line-height: .9;

  border-bottom:
    2px solid var(--text);

  transition:
    opacity .3s ease;
}

.contact-email:hover {

  opacity: .45;
}

.contact-bottom {

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  font-family:
    "DM Mono", monospace;

  font-size: 9px;
}

.social-links {

  display: flex;

  gap: 25px;
}

.social-links a {

  transition:
    opacity .3s ease;
}

.social-links a:hover {

  opacity: .5;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .cursor,
  .cursor-text {
    display: none;
  }

  .header {

    padding:
      20px;

    grid-template-columns:
      1fr auto;
  }

  .header-center {

    display: none;
  }

  .intro {

    padding:
      100px 20px 25px;
  }

  .intro h1 {

    font-size:
      clamp(3.5rem, 16vw, 6rem);

    line-height: .82;
  }

  .intro-top {

    font-size: 8px;
  }

  .intro-bottom {

    flex-direction: column;

    align-items: flex-start;

    gap: 30px;
  }

  .scroll-indicator {

    align-items: flex-start;
  }

  .project {

    padding:
      100px 20px;

    align-items: center;
  }

  .project-number {

    top: 100px;
    left: 20px;

    transform: none;
  }

  .project-image {

    width: 100%;
    height: 55vh;
  }

  .project-info {

    position: absolute;

    left: 20px;

    bottom: 8vh;
  }

  .project h2 {

    font-size:
      clamp(3.5rem, 15vw, 7rem);
  }

  .project-meta {

    gap: 20px;

    flex-wrap: wrap;
  }

  .project-counter {

    display: none;
  }

  .about {

    padding:
      100px 20px 50px;
  }

  .about-content {

    display: flex;

    flex-direction: column;

    gap: 50px;

    margin:
      80px 0;
  }

  .about h2 {

    font-size:
      clamp(3rem, 13vw, 6rem);
  }

  .about-image {

    height: 40vh;
  }

  .manifesto {

    min-height: 60vh;

    padding:
      80px 20px;
  }

  .contact {

    padding:
      100px 20px 25px;
  }

  .contact-email {

    font-size:
      clamp(2rem, 10vw, 5rem);
  }

  .contact-bottom {

    flex-direction: column;

    align-items: flex-start;

    gap: 25px;
  }

  .social-links {

    flex-wrap: wrap;
  }

  .fullscreen-menu {

    padding:
      120px 20px 25px;
  }

  .menu-link {

    font-size:
      clamp(3rem, 17vw, 7rem);
  }

  .menu-footer {

    flex-direction: column;

    gap: 10px;
  }

}