:root {
  --bg: #0b0b0b;
  --surface: #151515;
  --text: #f2f2f2;
  --muted: #8d8d8d;
  --line: #282828;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 5vw;

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

  z-index: 10;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav nav {
  display: flex;
  gap: 30px;
}

.nav nav a {
  color: #bdbdbd;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav nav a:hover {
  color: white;
}


.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding: 140px 5vw 80px;

  background:
    radial-gradient(
      circle at 75% 40%,
      #252525 0,
      #121212 26%,
      #0b0b0b 57%
    );
}

.hero-content {
  max-width: 1100px;
}

.eyebrow {
  margin: 0 0 24px;

  color: var(--muted);

  font-size: 0.72rem;
  font-weight: 600;

  letter-spacing: 0.17em;
}

.hero h1 {
  margin: 0;

  max-width: 1000px;

  font-size: clamp(3.4rem, 8vw, 8.5rem);
  line-height: 0.92;

  letter-spacing: -0.065em;
  font-weight: 500;
}

.hero-text {
  margin: 38px 0 35px;

  color: #aaa;

  font-size: 1.1rem;
  line-height: 1.6;
}

.button {
  display: inline-block;

  padding: 14px 20px;

  border: 1px solid #555;

  font-size: 0.9rem;

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

.button:hover {
  background: white;
  color: black;
}


.section {
  padding: 130px 5vw;

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

.section-heading {
  margin-bottom: 60px;
}

.section h2 {
  margin: 0;

  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 500;

  letter-spacing: -0.055em;
  line-height: 0.95;
}


.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 60px 24px;
}

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

.project-image {
  aspect-ratio: 4 / 3;
  width: 100%;

  overflow: hidden;

  background: var(--surface);
}

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

.placeholder {
  display: grid;
  place-items: center;

  color: #555;

  border: 1px solid #202020;

  background:
    radial-gradient(
      circle at 70% 30%,
      #262626,
      #171717 45%,
      #111
    );
}

.project-info {
  margin-top: 18px;

  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.project-info h3 {
  margin: 0;

  font-size: 1rem;
  font-weight: 500;
}

.project-info p {
  margin: 0;

  color: var(--muted);

  font-size: 0.85rem;
}


.split {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 80px;
}

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

  color: #bcbcbc;

  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.55;
}

.about-copy p:first-child {
  margin-top: 0;
}


.contact {
  min-height: 70vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact h2 {
  margin-bottom: 40px;
}

.contact > p:last-child {
  color: var(--muted);

  font-size: 1.1rem;
}


footer {
  padding: 30px 5vw;

  display: flex;
  justify-content: space-between;

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

  color: #666;

  font-size: 0.8rem;
}


@media (max-width: 800px) {

  .nav {
    padding: 25px;
  }

  .nav nav {
    gap: 18px;
  }

  .hero {
    padding-left: 25px;
    padding-right: 25px;
  }

  .section {
    padding:
      90px
      25px;
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .project-large {
    grid-column: auto;
  }

  .project-large .project-image {
    aspect-ratio: 4 / 3;
  }

  .split {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  footer {
    padding: 25px;

    flex-direction: column;
    gap: 8px;
  }

}


/* PROJECT PAGES */

.project-nav {
  position: relative;
}

.project-page {
  padding-top: 40px;
}

.project-hero {
  padding: 100px 5vw 120px;
  max-width: 1500px;
}

.project-hero h1 {
  margin: 0 0 40px;

  font-size: clamp(4rem, 10vw, 10rem);
  line-height: .9;

  font-weight: 500;
  letter-spacing: -.07em;
}

.project-intro {
  max-width: 700px;

  color: #aaa;

  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.5;
}


.project-gallery {
  padding: 0 5vw 130px;

  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gallery-image {
  width: 100%;
  aspect-ratio: 16 / 9;

  background: #151515;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 24px;
}

.gallery-grid .gallery-image {
  aspect-ratio: 4 / 5;
}

.gallery-portrait {
  width: min(65%, 900px);

  align-self: center;

  aspect-ratio: 4 / 5;
}


.project-details {
  padding: 120px 5vw;

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

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

  gap: 80px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 40px;
}

.details-grid span {
  color: var(--muted);

  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.details-grid p {
  margin: 8px 0 0;
}


.next-project {
  padding: 150px 5vw;
}

.next-project a {
  display: inline-block;

  font-size: clamp(3rem, 7vw, 8rem);
  line-height: .9;

  letter-spacing: -.06em;

  transition: opacity .2s ease;
}

.next-project a:hover {
  opacity: .55;
}


.project {
  cursor: pointer;
}

.project a {
  display: block;
}

.project-image {
  transition: transform .35s ease;
}

.project:hover .project-image {
  transform: scale(.995);
}


@media (max-width: 800px) {

  .project-hero {
    padding:
      70px
      25px
      80px;
  }

  .project-gallery {
    padding:
      0
      25px
      80px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-portrait {
    width: 100%;
  }

  .project-details {
    padding:
      80px
      25px;

    grid-template-columns: 1fr;
  }

  .next-project {
    padding:
      100px
      25px;
  }

}


/* PORTFOLIO IMAGES */

.project-image {
  position: relative;
}

.project-image img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform .6s cubic-bezier(.2,.7,.2,1),
    filter .4s ease;
}

.project-image span {
  position: relative;
  z-index: 0;
}

.project a:hover .project-image img {
  transform: scale(1.025);
}



/* REAL PROJECT GALLERY IMAGES */

.gallery-image {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.gallery-image img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.gallery-image:hover img {
  transform: scale(1.015);
}

.gallery-image > span {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  color: #444;
  font-size: .8rem;
  letter-spacing: .1em;
}

.gallery-wide {
  aspect-ratio: 16 / 9;
}



/* IMAGE LOADING */

.project-gallery img {
  opacity: 0;
  cursor: zoom-in;

  transition:
    opacity .45s ease,
    transform .7s cubic-bezier(.2,.7,.2,1);
}

.project-gallery img.loaded {
  opacity: 1;
}


/* FULLSCREEN LIGHTBOX */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;

  z-index: 9999;

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

  background: rgba(5, 5, 5, .97);

  opacity: 0;
  visibility: hidden;

  transition:
    opacity .25s ease,
    visibility .25s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  width: min(88vw, 1600px);
  height: 88vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100% - 40px);

  width: auto;
  height: auto;

  object-fit: contain;
}

.lightbox-counter {
  margin-top: 18px;

  color: #777;

  font-size: .75rem;
  letter-spacing: .12em;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;

  width: 48px;
  height: 48px;

  border: 0;
  background: transparent;

  color: white;

  font-size: 2rem;
  font-weight: 200;

  cursor: pointer;

  z-index: 2;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;

  transform: translateY(-50%);

  border: 0;
  background: transparent;

  color: #aaa;

  font-size: 2rem;

  cursor: pointer;

  padding: 30px;

  transition: color .2s ease;
}

.lightbox-arrow:hover {
  color: white;
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}


@media (max-width: 800px) {

  .lightbox-content {
    width: 100vw;
    height: 85vh;

    padding: 20px;
  }

  .lightbox-arrow {
    display: none;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
  }

}
