/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-tile: #141414;
  --text: #f5f5f5;
  --text-muted: #8a8a8a;
  --text-faint: #555;
  --accent: #ffffff;
  --nav-height: 130px;
  --gap: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ---------- Nav ---------- */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px;
  height: var(--nav-height);
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 30px;
  flex: 1;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

.site-logo {
  flex: 1;
  text-align: center;
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.35s ease, transform 0.35s ease;
  transform: skewX(0deg);
}

.site-logo:hover {
  color: #ff2d2d;
  font-style: italic;
  transform: skewX(-3deg);
}

.nav-social {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-social a {
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
}

.nav-social a:hover {
  opacity: 1;
}

.nav-social svg {
  width: 20px;
  height: 20px;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 10px 40px 26px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
  flex: 0 0 auto;
}

.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.filter-btn:hover {
  color: var(--text);
}

.filter-btn.active {
  color: var(--text);
}

.filter-btn.active::after {
  transform: scaleX(1);
}

/* ---------- Grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: 0 28px var(--gap);
}

.work-item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tile);
  cursor: pointer;
}

.work-item.is-hidden {
  display: none;
}

.work-thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: filter 0.4s ease;
}

.work-item:hover .work-thumb,
.work-item.is-active .work-thumb {
  filter: grayscale(1) brightness(0.6);
}

.work-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay,
.work-item.is-active .work-overlay {
  opacity: 1;
}

.work-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
}

.lightbox-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lightbox-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Contact / About page ---------- */
.contact-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.contact-main h1 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-main .about-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 48px;
}

.contact-block {
  margin-bottom: 32px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 18px;
  font-weight: 600;
}

.contact-value a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-value a:hover {
  border-color: var(--text);
}

.social-row {
  display: flex;
  gap: 20px;
  margin-top: 8px;
}

.social-row a {
  color: var(--text-muted);
}

.social-row a:hover {
  color: var(--text);
}

.social-row svg {
  width: 22px;
  height: 22px;
}

.contact-photo {
  margin-top: 48px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tile);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 30px 40px 50px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px var(--gap);
  }
}

@media (max-width: 960px) {
  .site-nav {
    padding: 0 40px;
  }

  .site-logo {
    font-size: 22px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 12px;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-height: auto;
  }

  .site-nav {
    position: relative;
    flex-direction: column;
    gap: 14px;
    padding: 20px 20px 4px;
  }

  .site-logo {
    order: -1;
    font-size: 18px;
  }

  .nav-links {
    flex: none;
    justify-content: center;
    gap: 20px;
  }

  .nav-social {
    flex: none;
    position: absolute;
    top: 22px;
    right: 20px;
  }

  .filters {
    padding: 16px 20px 20px;
    gap: 20px;
    justify-content: flex-start;
  }

  .work-grid {
    grid-template-columns: 1fr;
    padding: 0 14px var(--gap);
  }

  .contact-main {
    padding: 40px 20px 80px;
  }

  .contact-main .about-text {
    font-size: 16px;
  }
}
