* {
  box-sizing: border-box;
}

:root {
  --black: #111111;
  --border: #171717;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "IBM Plex Mono", monospace;
}

/* =========================
   CURSOR GRID
   ========================= */

.cursor-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.cursor-grid__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* =========================
   PAGE
   ========================= */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 34px 43px;
  overflow: hidden;
  background: transparent;
}

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

.nav {
  position: relative;
  width: 40px;
  height: 88px;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  border-radius: 50px;

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

  padding: 0;
  overflow: hidden;

  transition:
    width 1.2s cubic-bezier(0.65, 0, 0.35, 1),
    border-radius 0.8s ease,
    padding 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav.nav-expand {
  width: 100%;
  border-radius: 28px;
  padding: 0;
}
.brand {
  position: absolute;
  left: 30px;

  color: inherit;
  text-decoration: none;
  font-family: "Inder", sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -1.4px;

  opacity: 0;
  transform: translateX(-20px);

  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}


.nav-mark {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 56px;
  height: 56px;

  object-fit: contain;

  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

@keyframes navLogoIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  60% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.nav-links {
  position: absolute;
  right: 60px;

  display: flex;
  align-items: center;
  gap: 47px;

  opacity: 0;
  transform: translateX(20px);

  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  font-family: "Inder", sans-serif;
  font-size: 15px;
  letter-spacing: 0.2px;
}

.menu {
  width: 34px;
  height: 28px;
  margin-left: 1px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #3a3a3a;
}

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

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  align-items: start;
  padding-top: 70px;
}

.hero-copy {
  padding-left: 1px;
}

.eyebrow {
  margin: 0 0 44px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 39px;
  line-height: 1;
  letter-spacing: 3px;
  -webkit-text-stroke: 1.1px var(--black);
  color: white;
}

h1 {
  margin: 0;
  font-family: "Michroma", Arial, sans-serif;
  font-size: clamp(92px, 9.2vw, 151px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: 2px;
  color: white;
  -webkit-text-stroke: 1.7px var(--black);
}

.intro {
  max-width: 780px;
  margin: 57px 0 41px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.36;
  letter-spacing: -0.55px;
}

.actions {
  display: flex;
  gap: 22px;
}

.button {
  width: 244px;
  height: 80px;
  border: 1px solid var(--border);
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.button:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

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

.hero-art {
  display: flex;
  justify-content: center;
  padding-top: 1px;
}

.hero-art img {
  width: min(420px, 82%);
  height: auto;
  object-fit: contain;
}

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

@media (max-width: 900px) {

  .page {
    padding: 18px;
  }

  .nav {
    height: 76px;
    border-radius: 22px;
    padding: 0 22px;
  }

  .nav-mark {
    width: 48px;
    height: 48px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 52px;
  }

  .hero-art {
    order: -1;
    justify-content: flex-end;
    padding: 0 15px 30px 0;
  }

  .hero-art img {
    width: min(330px, 72vw);
  }

  .eyebrow {
    margin-bottom: 30px;
    font-size: clamp(24px, 6vw, 38px);
  }

  h1 {
    font-size: clamp(64px, 17vw, 120px);
  }

  .intro {
    margin-top: 40px;
    font-size: 23px;
  }

  .button {
    width: min(244px, 44vw);
    height: 70px;
  }
}

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

@media (max-width: 600px) {

  .page {
    padding: 12px;
  }

  /* NAV */

  .nav {
    height: 68px;
    padding: 0 16px;
    border-radius: 20px;
    grid-template-columns: 1fr auto;
  }

  .brand {
    font-size: 22px;
    letter-spacing: -1px;
  }

  .nav-mark {
    display: none;
  }

  .menu {
    width: 30px;
    height: 25px;
  }

  .menu span {
    height: 3px;
  }

  /* HERO */

  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
  }

  /* LOGO */

  .hero-art {
    order: -1;
    width: 100%;
    justify-content: center;
    padding: 0 0 32px;
  }

  .hero-art img {
    width: min(320px, 82vw);
    max-width: 100%;
  }

  /* TEXT */

  .hero-copy {
    width: 100%;
    padding-left: 0;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: clamp(20px, 6vw, 27px);
    letter-spacing: 1.5px;
    -webkit-text-stroke: 0.8px var(--black);
  }

  h1 {
    font-size: clamp(58px, 16vw, 92px);
    line-height: .94;
    letter-spacing: 0;
    -webkit-text-stroke: 1.3px var(--black);
    white-space: nowrap;
  }

  .intro {
    width: 100%;
    max-width: 100%;
    margin: 30px 0 30px;
    font-size: clamp(19px, 5.2vw, 23px);
    line-height: 1.42;
    letter-spacing: -0.3px;
  }

  /* BUTTONS */

  .actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .button {
    width: 100%;
    height: 64px;
    border-radius: 15px;
    font-size: 14px;
  }

  /* Disable hover movement on touch devices */
  .button:hover {
    transform: none;
  }
}

/* =========================
   SMALL PHONES
   ========================= */

@media (max-width: 380px) {

  .page {
    padding: 10px;
  }

  .nav {
    height: 62px;
    padding: 0 14px;
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-art {
    padding-bottom: 26px;
  }

  .hero-art img {
    width: 78vw;
  }

  .eyebrow {
    font-size: 19px;
    margin-bottom: 17px;
  }

  h1 {
    font-size: 15.5vw;
  }

  .intro {
    font-size: 18px;
    line-height: 1.4;
    margin: 25px 0 27px;
  }

  .button {
    height: 60px;
  }
}

/* =========================
   TOUCH DEVICES
   ========================= */

@media (hover: none) and (pointer: coarse) {

  .cursor-grid {
    opacity: 0.55;
  }

  .button:hover {
    background: transparent;
    color: var(--black);
    transform: none;
  }
}.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;

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

    font-size: 18px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(180deg);
}:root {
    --bg-color: #ffffff;
    --text-color: #000000;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.4s ease, color 0.4s ease;
}

.dark-theme {
    --bg-color: #000000;
    --text-color: #ffffff;
}

.dark-theme .page {
    background: transparent;
}
.nav .brand,
.nav .nav-links {
  opacity: 0;
  transition:
    opacity 0.7s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav .brand {
  transform: translateX(-20px);
}

.nav .nav-links {
  transform: translateX(20px);
}

.nav.nav-content-visible .brand,
.nav.nav-content-visible .nav-links {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
   PROJECTS PAGE
   ========================= */

.projects-page {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 100px;
}

.projects-heading {
    max-width: 900px;
    margin-bottom: 80px;
}

.projects-eyebrow {
    margin: 0 0 30px;

    font-family: "Michroma", Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 2px;

    color: var(--text-color);
}

.projects-title {
    margin: 0;

    font-family: "Michroma", Arial, sans-serif;
    font-size: clamp(70px, 10vw, 150px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 2px;

    color: white;
    -webkit-text-stroke: 1.7px var(--black);
}

.projects-intro {
    max-width: 650px;
    margin: 40px 0 0;

    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(22px, 2vw, 29px);
    line-height: 1.35;
    letter-spacing: -0.5px;
}


/* =========================
   PROJECT GRID
   ========================= */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px 28px;
}


/* =========================
   PROJECT CARD
   ========================= */

.project-card {
    min-width: 0;
    cursor: pointer;
}

.project-image {
    position: relative;

    width: 100%;
    aspect-ratio: 4 / 3;

    border: 1.5px solid var(--border);
    border-radius: 24px;

    overflow: hidden;

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

    background: transparent;

    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.6s ease;
}

.project-image span {
    font-family: "Michroma", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 2px;

    transition:
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}


/* Hover */

.project-card:hover .project-image {
    transform: translateY(-6px);
    border-radius: 18px;
}

.project-card:hover .project-image span {
    transform: scale(1.08);
}


/* =========================
   PROJECT INFO
   ========================= */

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding-top: 22px;
}

.project-info h2 {
    margin: 0;

    font-family: "Inder", sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.project-info p {
    margin: 8px 0 0;

    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    letter-spacing: 1px;
}

.project-year {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
}


/* =========================
   LARGE PROJECT
   ========================= */

.project-card-large {
    grid-column: 1 / -1;
}

.project-card-large .project-image {
    aspect-ratio: 16 / 7;
}

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

.about-section {
    position: relative;
    z-index: 1;

    min-height: 100vh;
    padding: 150px 0 120px;

    border-top: 1.5px solid var(--border);
}


/* Heading */

.about-heading {
    margin-bottom: 100px;
}

.about-eyebrow {
    margin: 0 0 32px;

    font-family: "Michroma", Arial, sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
}

.about-heading h2 {
    margin: 0;

    font-family: "Michroma", Arial, sans-serif;
    font-size: clamp(70px, 10vw, 150px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 2px;

    color: white;
    -webkit-text-stroke: 1.7px var(--black);
}


/* Content */

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;

    align-items: start;
}


/* Description */

.about-description {
    max-width: 720px;
}

.about-description p {
    margin: 0 0 35px;

    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(24px, 2.2vw, 32px);
    line-height: 1.35;
    letter-spacing: -0.6px;
}


/* Services */

.about-services {
    border-top: 1px solid var(--border);
}

.service {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;

    min-height: 90px;

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

    transition:
        padding 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.3s ease;
}

.service span {
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
}

.service h3 {
    margin: 0;

    font-family: "Inder", sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0.5px;
}


/* Service hover */

.service:hover {
    padding-left: 15px;
}

.service:hover h3 {
    letter-spacing: 1.5px;
    transition: letter-spacing 0.3s ease;
}