
@import url('https://fonts.googleapis.com/css2?family=Abhaya+Libre:wght@500;600;700;800&family=Be+Vietnam+Pro:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f7f2ec;
  --paper: #fffaf4;
  --ink: #201815;
  --muted: #6f625c;
  --line: rgba(32,24,21,.14);
  --max: 1180px;
  --header-height: 86px;
}

/* GLOBAL */

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(247,242,236,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 9999;
  transition: transform .35s ease;
}

.site-header.header-hidden {
  transform: translateY(-105%);
}

.nav-wrap {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: 'Abhaya Libre', serif;
  font-size: 2rem;
  font-weight: 800;
  text-decoration: none;
}

.logo-img {
  height: 55px;
  width: auto;
  display: block;
  transition: opacity .3s ease;
}

.logo-img:hover {
  opacity: .9;
}

.nav-toggle {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .88rem;
  letter-spacing: .08em;
}

.nav-links a {
  position: relative;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--ink);
}

/* PROJECT PAGE */

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 150px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .8rem;
  margin-bottom: 20px;
}

h1 {
  font-family: 'Abhaya Libre', serif;
  font-size: 62px !important;
  line-height: .95;
  margin-bottom: 40px;
}

h3 {
  font-family: 'Abhaya Libre', serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.meta-block {
  margin-bottom: 40px;
}

.project-overview {
  margin-top: 90px;
  max-width: 520px;
}

.project-meta {
  padding-bottom: 80px !important;
}

.project-details {
  padding-top: 20px;
}

.project-details .meta-block {
  margin-bottom: 40px;
}

.project-link {
  border-bottom: 1px solid var(--ink);
}

/* PROJECT SHOWCASE - VIDEOS */

.project-showcase {
  padding: 50px 0 100px !important;
  margin-bottom: 80px;
}

.showcase-video {
  width: 100%;
  display: block;
  background: #fff;
  border-radius: 24px;
  padding: 25px;
}

.project-showcase .container:first-child {
  margin-bottom: 80px;
}

/* PROJECT GALLERY */

.project-gallery {
  padding-bottom: 70px;
  padding-top: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: #ddd;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* PLACEHOLDER */

.placeholder {
  min-height: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

/* FOOTER - MATCHES HOMEPAGE */

.footer {
  padding: 38px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer a:hover {
  opacity: .7;
}

/* TABLET AND MOBILE */

@media (max-width: 920px) {

  /* PROJECT LAYOUT */

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

  .hero-grid {
    gap: 35px;
  }

  .project-meta {
    padding-bottom: 0 !important;
  }

  .project-overview {
    margin-bottom: 0;
  }

  .project-details {
    padding-top: 0;
  }

  /* MOBILE NAVIGATION */

  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    transition: none;
  }

  .site-header.menu-open,
  .site-header:has(.nav-links.open) {
    transform: none !important;
    background: var(--bg);
    border-bottom-color: transparent;
  }

  .nav-toggle {
    position: relative;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    min-height: 2px;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--muted);
    opacity: 1;
    transform-origin: center;
    transition: none;
  }

  /* HAMBURGER TO X */

  .nav-toggle.active span:first-child,
  .nav-toggle.open span:first-child,
  .nav-wrap:has(.nav-links.open)
  .nav-toggle span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2),
  .nav-toggle.open span:nth-child(2),
  .nav-wrap:has(.nav-links.open)
  .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:last-child,
  .nav-toggle.open span:last-child,
  .nav-wrap:has(.nav-links.open)
  .nav-toggle span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* FULL-SCREEN MOBILE MENU */

  .nav-links {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 5px 8px 0 2px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 2.5vh, 26px);
    overflow-y: auto;
    border: 0;
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
    transition: none;
    animation: none;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: auto;
    padding: 0;
    color: var(--muted);
    font-size: clamp(1.65rem, 5.5vw, 3.25rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
    text-align: center;
  }

  .nav-links a.active,
  .nav-links a:hover {
    color: var(--muted);
  }

  .nav-links a::after {
    display: none !important;
  }

  .site-header.menu-open .logo,
  .site-header:has(.nav-links.open) .logo {
    position: relative;
    z-index: 1002;
  }

}

/* SMALL MOBILE */

@media (max-width: 620px) {

  :root {
    --header-height: 76px;
  }

  .nav-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(2.7rem, 11vw, 3.875rem) !important;
  }

}

/* FOOTER CENTERING ON MOBILE */

@media (max-width: 760px) {

  .footer .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  .footer {
    text-align: center;
  }

}
