*, *::before, *::after {
  box-sizing: border-box;
}

html {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: #0a0a0a;
  color: white;
  font-family: "Lato", Helvetica, Arial, sans-serif;
}

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

main {
  color: rgba(255, 255, 255, 0.8);
}

/* HEADER */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;

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

  padding: 1.25rem 2.5rem;

  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);

  color: #fff;

  z-index: 99999;
}

.logo {
  font-size: 1.2em;
  text-decoration: none;
  text-transform: uppercase;
}

.menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
}

.menu a {
  transition: color 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.menu a:hover {
  color: #fff;
}

/* HERO SHOWREEL */
.hero {
  width: 100%;
  overflow: hidden;
}

.hero video {
  width: 100%;
  height: auto;  
  display: block;
}

/* HIRE SECTION */
.hire {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 7.5rem 3.75rem;
  gap: 3.75rem;
}

.hire-text {
  flex: 1;
}

.hire-text h2 {
  font-size: 7rem;
  margin: 0;
  line-height: 0.95;
}

.hire-text p {
  margin: 1em 0;
  font-size: 1.5rem;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  padding: 0.83em 1.67em;
  border: 1px solid #fff;
  color: #fff;
  background-color: inherit;
  text-decoration: none;
  font-size: 0.75rem;

  transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* PORTRAIT */
.hire-image {
  flex: 1;
  text-align: right;
}

.hire-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
}

/* CATEGORY LAYOUT */
.categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: center;
  gap: 10rem;
  padding: 6.25rem 1.25rem;
  max-width: 60em;
  margin: 0 auto;
}

.cat-block {
  position: relative;
  text-align: center;
  margin: 0;
}

.cat-title {
  font-size: 1.25rem;
  margin-bottom: 1em;
  transition: transform 0.3s ease;
}

/* Make entire category card clickable */
.cat-title a::after {
  content: "";
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Category card title underline */
.cat-title span {
  position: relative;
}

.cat-title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25em;

  width: 0%;
  height: 1px;
  background: white;

  transition: width 0.3s ease;
}

.cat-block:hover .cat-title span {
  transform: translateY(-0.2em);
}

.cat-block:hover .cat-title span::after {
  width: 100%;
}

.cat-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.4;
  display: block;
  position: relative;
}

.cat-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: opacity 0.6s ease;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  align-items: center;

  padding: 3.75em;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer .copyright {
  font-size: 1em;
}

.footer-contact {
  display: flex;
  justify-content: flex-end;
  flex: 1;

  gap: 3em;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);

  transition: color 0.3s ease,
              transform 0.3s ease;
}

.footer-contact a:hover {
  color: #fff;
  transform: translateY(-2px);
}

/* ACTIVE NAV UNDERLINE */
.menu .active::after {
  content: "";
  display: block;
  position: relative;
  top: 4px;
  border-bottom: 1px solid #fff;
}

/* PAGE TITLE */
.page-title {
  padding: 8.75rem 3.75rem 3.75rem;
}

.page-title h1 {
  font-size: 5rem;
  margin: 0;
}

/* CATEGORY TITLE */
.category-title {
  font-size: 1.75rem;
  margin: 5rem 3.75rem 2.5rem;
}

/* PROJECT LAYOUT */
.project-section {
  padding: 0 3.75rem;
}

.project {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* IMPORTANT: title higher feel */

  gap: 5rem;
  margin-bottom: 8.75rem;
}

/* TEXT SIDE */
.project-text {
  flex: 1;
  padding-top: 1.25rem; /* pushes text slightly up */
  max-width: 520px;
}

.project-text h3 {
  font-size: 3.25rem;   /* bigger title */
  margin: 0 0 1.25rem;
  line-height: 1;
}

.project-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* IMAGE SIDE BIGGER */
.project-image {
  flex: 1.2; /* makes image bigger than text */
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-page {
  padding: 8.75rem 3.75rem 5rem;
  max-width: 60rem;
  margin: 0 auto;
}

.project-title {
  font-size: 4rem;
  margin: 0;
}

.project-meta {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.625rem;
  font-size: 0.875rem;
}

.project-desc {
  margin-top: 1.25rem;
  line-height: 1.6;
}

.project-page img {
  width: 100%;
  margin-top: 2rem;
  display: block;
}

.about-page {
  max-width: 60rem;
}

.photo-masonry {
  columns: 4 280px;
  column-gap: 25px;

  padding: 80px 60px;
  margin: 0 auto;
}

.photo-masonry img {
  width: 100%;
  display: block;

  margin-bottom: 25px;

  border-radius: 10px;

  cursor: pointer;

  transition: transform 0.35s ease,
              filter 0.35s ease;
}

.photo-masonry img:hover {
  transform: scale(1.03);
  filter: contrast(1);
}

@media (max-width: 900px) {
  .photo-masonry {
    columns: 2 200px;
    padding: 50px 30px;
  }
}

@media (max-width: 600px) {
  .photo-masonry {
    columns: 1;
  }
}

.lightbox {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.92);

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

  z-index: 999999;
  padding: 40px;
}

.lightbox img {
  max-width: 85vw;
  max-height: 85vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
