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

:root {
  --bg: #fbfaf6;
  --text: #131313;
  --muted: rgba(0,0,0,.34);

  --site-padding: 32px;
  --header-height: 80px;

  --ease-soft:  cubic-bezier(.2, .65, .3, 1);
  --ease-bloom: cubic-bezier(.16, 1, .3, 1);

  --text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

html,
body {
  width: 100%;
  height: 100%;
  background-color: #000;
}

body {
  background: #000;
  color: white;
  font-family: 'IBM Plex Mono', monospace;
  -webkit-font-smoothing: antialiased;
}

.site {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: var(--site-padding);
  padding-bottom: 20px;
  flex-shrink: 0;
  z-index: 101;
  color: white;
  text-shadow: var(--text-shadow);
}

.header-left {
  color: white;
  text-align: left;
}

.header-left strong {
  font-size: 11px;
  font-weight: bold;
  color: white;
}


.filter-nav-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.filter-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.filter-btn {
  background: none;
  border: none;
  color: white;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: crosshair;
  padding: 0;
  font-weight: 400;
  text-shadow: var(--text-shadow);
  text-align: left;
  display: block;
}


.filter-btn.active {
  color: white;
  font-weight: bold;
}

.filter-btn.inactive {
  color: white;
  font-weight: 300;
}


.header-left a {
  color: white;
  text-decoration: none;
  cursor: crosshair;
  font-size: 28px;
  margin-right: 4px;
  letter-spacing: normal;
}


.contact-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: baseline;
  line-height: inherit;
}

.project-info-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: var(--text-shadow);
  cursor: crosshair;
}

.project-info-title {
  color: white;
  font-weight: bold;
  line-height: 1.8;
}

.project-info-role {
  color: white;
  font-weight: 400;
  line-height: 1.8;
}

.project-info-type {
  color: white;
  font-weight: 400;
  line-height: 1.8;
}

/* Main content area */
.content-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Background image that fills the entire viewport */
.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  background-color: #000;
  transition: opacity 2s ease;
  pointer-events: auto;
}

.background-image.current {
  opacity: 1;
}

.background-image.next {
  opacity: 0;
}

.background-image.fade-out {
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Navigation overlay container */
.projects-overlay {
  position: fixed;
  z-index: 100;
  pointer-events: auto;
}


.project-nav-arrow {
  background: none;
  border: none;
  padding: 0;
  cursor: crosshair;
  font-size: 14px;
  color: white;
  text-shadow: var(--text-shadow);
  font-family: inherit;
  width: 16px;
  text-align: center;
}


.project-nav-arrow:disabled {
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
}


/* Project Navigation */
.project-nav-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: calc(9 * 1.8em);
  margin-left: -24px;
}

.project-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  width: 60px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior: none;
}

.project-nav-list::-webkit-scrollbar {
  display: none;
}

.project-nav-list li {
  margin: 0;
  padding: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
  text-shadow: var(--text-shadow);
}

.project-nav-list li.active {
  color: #ffffff;
  font-weight: bold;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.project-nav-list li.inactive {
  color: white;
  font-weight: 300;
}


/* Global crosshair cursor for all clickable elements */
button,
a,
[role="button"],
li {
  cursor: crosshair;
}

/* ═════════════════════════════════════════════════════════════════════════ */
/* LIGHTBOX / POPUP */
/* ═════════════════════════════════════════════════════════════════════════ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

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

.lightbox-header-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
}

.lightbox-close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: crosshair;
  transition: opacity 0.2s ease;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  letter-spacing: .12em;
  flex-shrink: 0;
}


.lightbox-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: none;
  min-height: 0;
  padding-top: 20px;
}

.lightbox-content.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow-x: hidden;
  overflow-y: auto;
  align-items: center;
  justify-items: center;
  padding: 30px;
  scrollbar-gutter: stable;
}

.lightbox-content.grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 8px;
}

.lightbox-content::-webkit-scrollbar {
  display: none;
}

.lightbox-content.grid::-webkit-scrollbar {
  display: none;
}

.lightbox-content img,
.lightbox-content video {
  height: 100%;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.lightbox-video-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: min(90vw, calc(78vh * (16 / 9)));
  margin: 0 auto;
}

.lightbox-video-wrap video {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: calc(100vh - 250px);
}

/* Custom Video Controls */
.custom-video-controls {
  width: 100%;
  max-width: min(90vw, calc(78vh * (16 / 9)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 40px;
  padding: 8px 16px;
  box-sizing: border-box;
  margin-top: 16px;
}

.video-time {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #fff;
  min-width: 40px;
  text-align: left;
  flex-shrink: 0;
}

.video-play-btn,
.video-mute-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: crosshair;
  padding: 0;
  min-width: 24px;
  text-align: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}


.video-progress-bar {
  flex: 1;
  height: 1px;
  background-color: #444;
  cursor: crosshair;
  position: relative;
  margin: 0 16px;
}

.video-progress-fill {
  height: 100%;
  background-color: #fff;
  width: 0%;
  transition: width 0.1s linear;
}

.lightbox-content iframe {
  width: min(90vw, calc(78vh * (16 / 9)));
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  border: none;
}

.lightbox-footer {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: var(--text-shadow);
  white-space: nowrap;
}

.lightbox-footer-title {
  font-weight: bold;
  color: white;
}

.lightbox-footer-role {
  color: white;
  font-weight: 400;
}

.lightbox-footer-type {
  color: white;
  font-weight: 400;
}

.lightbox-footer-company {
  color: white;
  font-weight: 400;
}

/* Mobile */
@media (max-width: 640px) {
  .header {
    padding: 20px;
    padding-bottom: 16px;
    flex-direction: column;
    gap: 12px;
  }

  .header-left {
    font-size: 10px;
  }

.lightbox {
    padding-top: 40px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .lightbox-content {
    width: 95vw;
    height: calc(100vh - 250px);
  }

  .lightbox-header {
    max-width: 90vw;
    margin-bottom: 24px;
    font-size: 10px;
  }

  .custom-video-controls {
    max-width: 90vw;
    bottom: 32px;
  }
}
