* {
  box-sizing: border-box;
}

:root {
  --bg: #020807;
  --text: #f4f4f0;
  --muted: rgba(244, 244, 240, 0.58);
  --line: rgba(255, 255, 255, 0.13);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 70% 10%, rgba(0, 170, 255, 0.06), transparent 32%),
    radial-gradient(circle at 20% 50%, rgba(255, 180, 80, 0.04), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
}

.glass {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.18),
    rgba(255,255,255,0.04)
  );
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 24px 80px rgba(0,0,0,0.35);
}

.header {
  position: fixed;
  z-index: 20;
  top: 24px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: -0.12em;
}

.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 54px;
  padding: 20px 54px;
  border-radius: 999px;
}

.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav .active {
  position: relative;
}

.nav .active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 38px;
  height: 2px;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 0 18px white;
}

.project-hero {
  position: relative;
  min-height: 430px;
  height: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.58) 38%,
      rgba(0,0,0,0.14) 72%,
      rgba(0,0,0,0.38) 100%
    );
}

.project-hero-content {
  position: relative;
  z-index: 2;
  padding: 125px 60px 70px;
  max-width: 1100px;
}

.back-link {
  display: inline-block;
  margin-bottom: 58px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: white;
}

.eyebrow,
.section-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 18px 0 24px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 980px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
  padding-bottom: 4px;
}

.project-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(244,244,240,0.72);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.project-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  padding: 64px 60px;
  border-bottom: 1px solid var(--line);
}

.project-intro p {
  max-width: 860px;
  margin: 0 0 24px;
  color: rgba(244,244,240,0.74);
  font-size: 22px;
  line-height: 1.55;
  font-weight: 300;
}

.project-gallery {
  padding: 54px 60px 80px;
  border-bottom: 1px solid var(--line);
}

.gallery-header {
  margin-bottom: 24px;
}

.still-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.still-grid img {
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  opacity: 1;
  cursor: zoom-in;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.ratio-4x3 .still-grid img {
  aspect-ratio: 4 / 3;
}

.ratio-239 .still-grid img {
  aspect-ratio: 2.39 / 1;
}

.ratio-185 .still-grid img {
  aspect-ratio: 1.85 / 1;
}

.ratio-16x9 .still-grid img {
  aspect-ratio: 16 / 9;
}

.still-grid img:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 42px 60px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-nav a {
  transition: color 0.3s ease;
}

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

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.image-modal img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 88vw;
  max-height: 84vh;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  object-fit: contain;
  box-shadow: 0 40px 120px rgba(0,0,0,0.65);
}

.close-image,
.gallery-arrow {
  position: absolute;
  z-index: 3;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.close-image {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.gallery-arrow {
  top: 50%;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
  font-size: 44px;
  line-height: 1;
}

.gallery-prev {
  left: 32px;
}

.gallery-next {
  right: 32px;
}

@media (max-width: 900px) {
  .header {
    left: 24px;
    right: 24px;
  }

  .nav {
    display: none;
  }

  .project-hero {
      min-height: 520px;
      height: auto;
    }

  .project-hero-content {
     padding: 120px 28px 64px;
   }


  .back-link {
    margin-bottom: 42px;
  }

  h1 {
     font-size: clamp(38px, 12vw, 54px);
     line-height: 1;
     max-width: 100%;
   }

  .project-intro {
    grid-template-columns: 1fr;
    padding: 44px 24px;
  }

  .project-intro p {
    font-size: 18px;
  }

  .project-gallery {
    padding: 44px 24px 64px;
  }

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

  .project-nav {
    padding: 32px 24px;
  }

  .gallery-prev {
    left: 12px;
  }

  .gallery-next {
    right: 12px;
  }
}


.bts-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.bts-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  cursor: zoom-in;
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0.62;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

.bts-row img:hover {
  opacity: 1;
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.16);
}

@media (max-width: 900px) {
  .bts-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}


/* Project title watch button */

.project-title-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.project-title-row h1 {
  margin: 0;
}

.watch-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 26px rgba(255,255,255,0.10),
    0 14px 42px rgba(0,0,0,0.32);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.watch-button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.28);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.26),
    0 0 34px rgba(255,255,255,0.14),
    0 18px 52px rgba(0,0,0,0.42);
}

.play {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255,255,255,0.92);
}

/* Vimeo modal */

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.reel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.reel-container {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82vw;
  max-width: 1400px;
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  border-radius: 28px;
  overflow: hidden;
  background: black;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}

.reel-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.close-modal {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: white;
  cursor: pointer;
  font-size: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 900px) {
  .project-title-row {
    align-items: flex-start;
    gap: 18px;
  }

  .watch-button {
    padding: 9px 16px 9px 11px;
    gap: 10px;
    font-size: 10px;
  }

  .play {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }

  .reel-container {
    width: 92vw;
    border-radius: 18px;
  }
}


/* Footer */

.footer {
  display: flex;
  justify-content: space-between;
  padding: 34px 60px;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

@media (max-width: 900px) {
  .footer {
    flex-direction: column;
    gap: 12px;
    padding: 28px 24px;
  }
}


/* Mobile navigation */

@media (max-width: 900px) {
  .header {
    top: 18px;
    left: 18px;
    right: 18px;
    align-items: flex-start;
    gap: 14px;
  }

  .logo {
    position: relative;
    z-index: 30;
    font-size: 30px;
    line-height: 1;
    padding-top: 4px;
  }

  .nav {
    display: flex;
    position: relative;
    left: auto;
    transform: none;
    margin-left: auto;
    max-width: calc(100vw - 105px);
    gap: 0;
    padding: 7px;
    border-radius: 999px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav a {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.08em;
  }

  .nav a.active {
    background: rgba(255,255,255,0.16);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.16),
      0 8px 24px rgba(0,0,0,0.18);
  }

  .nav .active::after {
    display: none;
  }

  .play {
    width: 24px;
    height: 24px;
  }

  .play::before {
    border-top-width: 4.5px;
    border-bottom-width: 4.5px;
    border-left-width: 7px;
  }
}

/* Watch button alignment fix */

.watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 26px 12px 18px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 26px rgba(255,255,255,0.10),
    0 14px 42px rgba(0,0,0,0.32);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    color 0.3s ease;
}

.watch-button:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.28);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.26),
    0 0 34px rgba(255,255,255,0.14),
    0 18px 52px rgba(0,0,0,0.42);
}

.play {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(255,255,255,0.92);
}

@media (max-width: 900px) {
  .watch-button {
    padding: 11px 22px 11px 16px;
    gap: 13px;
    font-size: 11px;
  }

  .play {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .play::before {
    border-top-width: 5.5px;
    border-bottom-width: 5.5px;
    border-left-width: 8.5px;
  }
}
/* END Watch button alignment fix */
