/* === Fullscreen menu nav list item animation === */
.fullscreen-menu-nav li {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* === Cursor Trail Random Numbers === */
.cursor-trail-number {
  position: absolute;
  font-family: "Google Sans Code", monospace;
  pointer-events: none;
  user-select: none;
  opacity: 0.95;
  will-change: transform, opacity;
  transition: transform 0.7s, opacity 0.7s, color 0.01s;
}
.fullscreen-menu-overlay.active .fullscreen-menu-nav li {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered animation delays for each li */
.fullscreen-menu-overlay.active .fullscreen-menu-nav li:nth-child(1) { transition-delay: 0.05s; }
.fullscreen-menu-overlay.active .fullscreen-menu-nav li:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-menu-overlay.active .fullscreen-menu-nav li:nth-child(3) { transition-delay: 0.25s; }

.hamburger-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 0.5rem;
  z-index: 1100;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hamburger-menu.spin {
  transform: rotate(180deg);
}
.hamburger-menu .bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2px 0;
  background-color: #000;
  border-radius: 2px;
  transition: 0.3s;
}
.masonry-grid img, .gallery img, .gallery video, .video-container {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.masonry-grid img.img-fade-in, .gallery img.img-fade-in, .gallery video.img-fade-in, .video-container.img-fade-in {
  opacity: 1;
  transform: translateY(0);
}
/* === PAGE FADE-IN SEQUENCE === */
body {
  /* Start hidden */
  opacity: 1;
}
.site-header {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.site-header.header-fade-in {
  opacity: 1;
  transform: translateY(0);
}
main, footer {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1);
}
main.content-fade-in, footer.content-fade-in {
  opacity: 1;
}
/* Fullscreen hamburger menu overlay */
.hamburger-menu{
  display: none;
}

.fullscreen-menu-overlay {
  display: flex;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  inset: 0;
  background: rgb(20, 20, 20);
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.fullscreen-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.fullscreen-menu-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  word-break: break-word;
}
 .fullscreen-menu-nav li:nth-child(1) {
font-size: 2rem;
 }
 .fullscreen-menu-nav li:nth-child(n+2) {
  text-decoration: underline;
  font-size:1.5rem;
}
.fullscreen-menu-nav li:nth-child(2) {
  margin-top:1rem;
}

.fullscreen-menu-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.fullscreen-menu-nav a:hover {
  color: rgb(94, 0, 201);
}
.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  margin-right:0.8rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 2100;
}
/* Flex container for h1 and hamburger */
.header-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
.header-flex h1 {
  margin: 0;
}
/* Ensure .site-header uses flex for horizontal alignment */


/* Optional: Adjust spacing for hamburger and h1 */
.site-header h1 {
  margin-right: 1rem;
}


/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style:none;
}

/* ===== GENERAL ===== */
html {
  scroll-behavior: smooth;
}

body {
font-family: 'Switzer', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #000;
  background-color: #fafafa;
  display: flex;
  flex-wrap: wrap;
    /* text-shadow: 
  0.5px 0 0 rgba(0, 0, 0, 0.486),
  -0.5px 0 0 rgba(0, 0, 0, 0.459); */
}
/* p {
  text-shadow: 
  0.5px 0 0 rgba(0, 0, 0, 0.486),
  -0.5px 0 0 rgba(0, 0, 0, 0.459);
} */
a {
  color: #000;
  text-decoration: none;
}
.border {
  border-bottom:0.5px solid #000;
}

a:hover {
  color: rgb(94, 0, 201);
}

#fig-hover:hover{
  color: rgb(94, 0, 201);
}
/* ===== MAIN PROJECTS GRID ===== */
.masonry-grid {
  display: grid;
  padding-top:2rem;
  grid-template-columns: repeat(7, 1fr);
  gap:1.5rem;
  margin-right:auto;
  width: 100%;
}

.masonry-item {
  padding-top: 4rem;
  font-family: inherit;
  font-size: 1rem;
  color: #222;
  display: flex;
    flex-direction: column;
    justify-content: center;
  /* text-transform: uppercase; */
}


.masonry-item figcaption{
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
  color: #333;
  line-height: 1.4;
  font-weight: 400;
  
}

.masonry-grid img{
  width: 100%;
  height: auto;
  display: block;
  background-color: #f5f5f5;
  object-fit: cover;
}

/* ===== CAROUSEL FLEX & CAPTION ===== */
.carousel-flex {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  gap: 2rem;
  padding-top:5rem;
}

.carousel-container {
  flex: 2 1 0;
}

.carousel-caption {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  max-width: 100%;
}
.carousel-caption p {
  font-size: 1rem;
}

.carousel-caption h3{
  font-weight:600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.carousel-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}

.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.carousel-image {
  width: 100%;
  object-fit: contain;
  /* height: 400px; */
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.1, 1);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff00;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  transition: background 0.2s;
  
}
.carousel-arrow.left, .carousel-arrow.video-left {
  left: 0.5rem;
}

.carousel-arrow.right, .carousel-arrow.video-right {
  right: 0.5rem;
}

.carousel-arrow:hover {
  color: rgb(94, 0, 201);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  padding-top:1rem;
}
.carousel-dot {
  width: 8px;
  height:8px;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.2s;
  outline: 2px solid black;
  outline-offset: -1px;
}

.carousel-dot.active {
  background: black;
}

.carousel-caption p {
  padding: 0.5rem 0;
}

.carousel-caption a {
  text-decoration: underline;
}

.socials-container {
  flex:1 1 0;
}
/* ===== HEADER ===== */
.site-header {
  background: transparent;
  color: black;
  position: fixed;
  top: 0;
  height: 120px;
  min-height: 0;
  padding: 3rem 2rem;
  /* border-right: 1px solid #e0e0e0; */
  z-index: 101; /* above .header-invert (100) and .header-blur (99) */
  /* display: flex; */
  width: min(28vw, 500px);
    min-width: 180px;

}
.header-blur,
.header-invert {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
}

.header-blur {
  z-index: 99;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px) saturate(1.4);
  backdrop-filter: blur(4px) saturate(1.4);
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.header-invert {
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  mix-blend-mode: difference;
}
.site-header h1 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.site-header h2 {
  font-size:1rem;
}



.header-blur {
  display: none; /* hidden by default, only shown on mobile */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; /* match your header height */
  z-index: 99; /* one below .site-header which is 100 */
  background: rgba(255, 255, 255, 0.2);
  /* -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px); */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}
.header-nav {
  position: static;
  width: auto;
  margin: 0;
}


.desktop-about {
    flex: 1;
  display: flex;
  flex-direction: column;
}
.contact-archive, .clients-archive{
  padding-top:1rem;
  margin-top:1rem;
}

.contact-archive li:nth-child(2) {
  padding: 2rem 0;
}
.contact-archive li:nth-child(3),
.contact-archive li:nth-child(4) {
  text-decoration: underline;
}
.mobile-about {
  display:none;
}

.mobile-contact {
  display:none;
}
.site-credit-mobile {
  display:none;
}

/* ===== MAIN CONTENT ===== */
main {
  margin-left: min(32vw, 500px);
  width: calc(100% - min(32vw, 500px));
  padding: 4rem 2rem;
}

/* ===== GALLERY SECTION ===== */
#gallery {
  margin-bottom: 6rem;
}

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


/* Vertically center gallery items 7-10 */
.gallery-item:nth-child(n+7):nth-child(-n+9) {
  justify-content: center;
}
/* Make gallery item 10 span 2 columns and gallery item 19 span 3 columns on desktop */
.gallery-item:nth-child(9) {
  grid-column: span 2;
} 

/* ===== DETAIL VIEW ===== */
.detail-view {
  display: none;
}

.detail-view:target {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  left: 500px;
  height: 100vh;
  background-color: #fff;
  z-index: 1000;
  padding: 2rem;
  overflow-y: auto;
}

.detail-main {
  margin-left: 500px;
  width: calc(100% - 500px);
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.detail-media {
  grid-column: 1;
  width: 100%;
}

.detail-media img,
.detail-media .video-container {
  width: 100%;
  height: auto;
}


.gallery-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top:3rem;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #f5f5f5;
  object-fit: cover;
}

.video-container {
  position: relative;
  width: 100%;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  background-color: #f5f5f5;
}

.gallery-item figcaption {
  font-size: 1rem;
  letter-spacing: 0.05em;
  /* text-transform: uppercase; */
  margin-top: 0.75rem;
  color: #333;
  line-height: 1.4;
  font-weight: 400;
}

.gallery-item figcaption a {
  color: #000;
  border-bottom: 0.5px solid #000;
}

/* ===== ABOUT SECTION ===== */
.about {
  max-width: 700px;
  margin: 0 auto 4rem;
  padding: 2rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.about h2 {

  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.about p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: #333;
}

.about a {
  font-weight: 400;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  margin-left: 500px;
  width: calc(100% - 500px);
  border-top: 1px solid #e0e0e0;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #999;
}

/* ===== RESPONSIVE ===== */

/*Small desktop*/
@media (max-width: 2200px) {
.masonry-grid {
  grid-template-columns: repeat(5, 1fr);
}


  .carousel-media-container{
    height: 700px !important;
  }

  .carousel-image {
    width: 100%;
    object-fit: contain;
    height: 600px;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.1, 1);
  }

  .carousel-video {
    width: 100%;
    object-fit: contain;
    height: 600px;
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.1, 1);
  }
  .carousel-image,
  .carousel-video {
    height: 700px !important;
  }

}
@media (max-width: 1600px) {
    .carousel-image,
  .carousel-video {
    height: 600px !important;
  }
    .carousel-media-container{
    height: 600px !important;
  }
  .masonry-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5),
  .gallery-item:nth-child(6) {
    display: none;
  }
  .site-header {
    width: min(28vw, 400px);
    min-width: 180px;
    padding: 2.5rem 1.5rem;
  }
  main {
    margin-left: min(28vw, 400px);
    width: calc(100% - min(28vw, 400px));
  }

  .carousel-flex {
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
  }
  .carousel-container,
  .carousel-caption {
    width: 100%;
    max-width: 100%;
  }
  .carousel-image,
  .carousel-video {
    height: 600px !important;
  }
  .carousel-caption {
    margin-top: 1.5rem;
    align-items: flex-start;
  }
}

@media (max-width: 1200px) {

  .masonry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .carousel-media-container{
    align-items: start !important;
    height: 550px !important;
  }
  .carousel-image,
  .carousel-video {
    height: 550px !important;
  }
}

/*Tablets */
@media (max-width: 900px) {

  
  /* ===== HAMBURGER MENU ===== */
.carousel-arrow {
  color:black !important
}
  .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hamburger-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 0.5rem;
  z-index: 1100;
}
.hamburger-menu .bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2px 0;
  background-color: #ffffff;
  border-radius: 2px;
  transition: 0.3s;
}

 
.header-blur,
.header-invert {
  display: block;
}

.about-me {
  padding-bottom:2rem;
}
  
.carousel-flex {
  padding-top:0;
}
  .carousel-arrow {
    padding:0;
    transform: translateY(700%);
  }
.carousel-media-container{
    /* align-items: start !important; */
    height: 550px !important;
  }
  .carousel-image,
  .carousel-video {
    height: 500px !important;
  }
    .masonry-grid {
    grid-template-columns: repeat(2, 1fr);
    gap:2rem;
    padding-top:0.1rem;
  }
  .masonry-item {
    padding-top: 1rem;  
  }
  
  .header-nav a {
    display: block;
  }
  .mobile-about {
  display:block;
  padding-bottom:2rem;
  padding-top:2rem;
}
.mobile-contact {
  display:block;
}

 .mobile-contact li a{
  font-size:0.9rem;
  color: white;
}

  .site-header {
    background: rgba(255, 255, 255, 0);
    position: fixed;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 2rem 2rem;
    border-right: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    /* border-bottom: 1px solid #e0e0e0; */
    /* background-color: white !important; */
  }


  .site-header h1 a {
    font-size: 1.2rem;
    text-shadow: 
      0.5px 0 0 rgba(0, 0, 0, 0.438),
      -0.5px 0 0 rgba(0, 0, 0, 0.548);
    color: white;
    display: block;
  }
  .mobile-contact {
    margin-top: 0.5rem;
  }
  


.mobile-about p:nth-child(2) {
  padding-top: 1rem;
}

.mobile-about a{
  text-decoration: underline;
}
  .desktop-about {
    display:none;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }



  .archive-title {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-family: 'Switzer', sans-serif;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 400;
  }
  .archive-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-size: 0.85rem;
    color: #222;
    opacity: 0.85;
    
  }
  .archive-list li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
  }
  .archive-list a {
    color: #222;
    border-bottom: 0.5px solid #aaa;
    text-decoration: none;
  }
  .archive-list a:hover {
    opacity: 0.7;
  }
  
  .gallery-item:nth-child(19){
  grid-column: span 2;
} 

  .tagline {
    font-size: 0.65rem;
  }

  main {
    margin-left: 0;
    margin-top:8rem;
    width: 100%;
    padding: 2rem 4rem;
  
  }

  footer {
    margin-left: 0;
    width: 100%;
  }

  .about {
    padding: 1.5rem 0;
  }

  .about p {
    font-size: 0.9rem;
  }

  .detail-main {
    margin-left: 0;
    width: 100%;
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .detail-caption {
    grid-column: 1;
    padding-top: 1.5rem;
  }

  .site-credit-mobile {
  display:block;
}

}
/* Mobile*/
@media (max-width: 600px) {

  .fullscreen-menu-nav li:nth-child(1) {
font-size: 1.5rem;
 }
 .fullscreen-menu-nav li:nth-child(n+2) {
  text-decoration: underline;
  font-size:1rem;
}
 .masonry-grid {
    grid-template-columns: repeat(1, 1fr);
    gap:2rem;
  }
  .carousel-media-container{
    height: 500px !important;
  }

  .carousel-arrow {
    transform: translateY(650%);
  }

  .gallery-item {
    grid-column: 1 / -1;
  }
main {
  padding:0 2rem;
}
}

