body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

.masthead {
  position: static;
  top: unset;
  left: unset;
  right: unset;
  z-index: 1000;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px 0 40px;
  font-size: 15px;
  color: #222;
  font-family: 'Inter', Arial, sans-serif;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}

.masthead p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  font-family: inherit;
  margin-top: 0;
}

.masthead-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.masthead a.link {
  text-decoration: none;
  color: inherit;
}

.masthead a.link.active {
  font-weight: bold;
}

/* Add padding to the top of the content to offset the fixed header */
.filter-bar {
  padding: 10px 30px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
  margin-top: 60px; /* Adjust this value based on header height */
}

/* Remove project-specific styles that are no longer needed */
.project-info, .project-number, .project-title {
    all: unset;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0px;
  column-gap: 22px;
  padding: 60px 22px 0 22px; /* Increased top padding to move first row down */
  margin: 0;
  /* Remove align-items: stretch to restore original sizing */
  flex: 1 0 auto;
  box-sizing: border-box;
  /* padding-top: 9.5px;  match header height, reduced by 12.5px */
}

/* Remove top padding from .main-content and .grid-container if present, since header is no longer fixed */
.grid-container {
  padding-top: 0 !important;
}

@media (max-width: 600px) {
  .grid-container {
    gap: 9.5px;
    padding: 9.5px;
  }
}

.project {
  flex: 0 0 calc(33.333% - 14.7px); /* 3 items per row, accounting for 22px gap */
  width: calc(33.333% - 14.7px); /* 3 items per row, accounting for 22px gap */
  display: flex;
  flex-direction: column;
  gap: 0px;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  text-decoration: none;
  overflow: visible;
  margin-bottom: 0px;
  /* Remove forced height/min-height */
  margin-bottom: 0 !important;
  text-align: center;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  transform: scale(1);
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  will-change: transform;
}

/* Custom crop for Project 08 - shift 40px to the right */
.project img.project-08-crop {
  object-position: calc(50% + 40px) 50%;
}

/* Custom crop for Project 04 - shift 30px to the right */
.project img.project-04-crop {
  object-position: calc(50% + 30px) 50%;
}

/* Image wrapper to contain zoom effect */
.project-image-wrapper {
  /* overflow: hidden; */
  border-radius: 2px;
  width: 100%;
  /* Enforce 1:1 aspect ratio using padding hack */
  height: 0 !important;
  padding-top: 100% !important; /* 1:1 aspect ratio */
  position: relative;
  display: block;
  margin-bottom: 0 !important;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  transform: scale(0.5);
  transform-origin: center center;
  z-index: 1;
}

.project-hover-title {
  display: block;
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  color: #222;
  background: white;
  padding: 2px 12px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  margin: 0 auto;
  margin-top: 38px; /* 33% of image height + 5px gap */
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1) 0.12s, transform 0.3s cubic-bezier(0.4,0,0.2,1) 0.12s;
  z-index: 10;
  white-space: normal;
  transform: translateY(-20px);
  max-width: 90%;
}

.project:hover .project-hover-title,
.project:focus .project-hover-title {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .project-hover-title {
    font-size: 13px;
    padding: 2px 8px;
    margin-top: 32px;
    transform: translateY(-16px);
  }
}

/* Remove .clone rules if present */
.bg-image, .main-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s, filter 0.3s;
}

.bg-image {
  /* filter: blur(2px) brightness(0.95); */
  filter: brightness(0.95);
  opacity: 0;
  z-index: 1;
  transform: scale(0.9);
  pointer-events: none;
}

.project-image-wrapper:hover .bg-image.bg-top    { opacity: 1; transform: translateY(-30%) scale(1.1); }
.project-image-wrapper:hover .bg-image.bg-bottom { opacity: 1; transform: translateY(30%) scale(1.1);  }
.project-image-wrapper:hover .bg-image.bg-left   { opacity: 1; transform: translateX(-30%) scale(1.1); }
.project-image-wrapper:hover .bg-image.bg-right  { opacity: 1; transform: translateX(30%) scale(1.1);  }

.project-image-wrapper:hover .main-image {
  transform: scale(0.92);
}

.main-image {
  opacity: 1;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.project-image-wrapper:hover .bg-image {
  opacity: 1;
  transform: scale(1.1);
}

.bg-top    { transform: translateY(-30%) scale(0.95); z-index: 1; }
.bg-bottom { transform: translateY(30%) scale(0.95);  z-index: 1; }
.bg-left   { transform: translateX(-30%) scale(0.95); z-index: 1; }
.bg-right  { transform: translateX(30%) scale(0.95);  z-index: 1; }

/* Project descriptions */
.project-description {
  display: block !important;
  text-align: center !important;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  color: #888;
  margin: 0 auto !important;
  margin-top: 8px;
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: 0.02em;
  white-space: normal;
  width: 100% !important;
  max-width: 90%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1) 0.12s, transform 0.3s cubic-bezier(0.4,0,0.2,1) 0.12s;
  transform: translateY(-20px);
}

.project:hover .project-description,
.project:focus .project-description {
  opacity: 1;
  transform: translateY(0);
}

/* Hide project captions and titles */
.project-caption, .project-title, .project-number {
  display: none !important;
}

a.project, a.project:visited {
  color: #555;
  text-decoration: none;
}

.studio-info {
  padding: 40px 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-top: 10px;
}

.studio-info a {
  text-decoration: underline;
  color: inherit;
}

.content-between-header {
  position: absolute;
  top: 120px; /* below header, adjust as needed */
  left: calc(40px + 120px + 10px); /* 40px header padding + J.P.Acra width + 10px */
  right: calc(40px + 90px + 10px); /* 40px header padding + Contact width + 10px */
  width: auto;
  max-width: unset;
  min-width: 0;
  box-sizing: border-box;
}

/* About page specific layout - keep footer at bottom */
.studio-info.content-between-header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin-top: 120px !important;
  margin-bottom: 40px !important;
  min-height: calc(100vh - 200px) !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 40px !important;
  align-items: flex-start !important;
}

@media (max-width: 900px) {
  .content-between-header {
    position: static;
    left: unset;
    right: unset;
    width: 100vw;
    max-width: 100vw;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade.visible {
  opacity: 1;
}

/* Hero Video */
.hero-video {
  width: calc(100% - 44px);
  margin: 10px 22px 0;
  display: block;
  margin-top: 10px;
}

/* Footer */
.footer {
  position: relative;
  text-align: center;
  font-family: sans-serif;
  color: #444;
  font-size: 10px;
  margin: 20px 0 0 0;
  padding: 10px 0 10px 0;
  background: #fff;
  box-sizing: border-box;
}

/* Mobile footer styling */
@media (max-width: 600px) {
  .footer {
    padding: 10px 22px 10px 22px !important;
  }
  
  /* Mobile slider options styling */
  .slider-options {
    font-size: 11px !important;
    padding: 4px 8px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }
  
  .slider-options label {
    font-size: 11px !important;
    margin: 0 !important;
  }
  
  .slider-options input[type="radio"] {
    margin-right: 2px !important;
    transform: scale(0.8) !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .slider-options {
    font-size: 10px !important;
    padding: 3px 6px !important;
    gap: 6px !important;
  }
  
  .slider-options label {
    font-size: 10px !important;
  }
  
  .slider-options input[type="radio"] {
    transform: scale(0.7) !important;
  }
}

/* Project Detail Pages */
.split-gallery {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 45px); /* Account for fixed header */
}

.split-gallery img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

/* Image container for project pages */
.image-container {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 0px 22px 10px 22px;
  box-sizing: border-box;
  margin-top: 10px;
}

/* Full bleed image for project pages */
.full-bleed-image {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  flex: 1;
}

.full-bleed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Full width image within container (excluding padding) */
.full-width-image {
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

.full-width-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Full width video within container (excluding padding) */
.full-width-video {
  width: 100%;
  height: auto;
  margin-bottom: 22px;
}

.full-width-video video {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Half and half layout with white space between */
.half-half-container {
  display: flex;
  gap: 22px;
  width: 100%;
  height: 100vh;
}

.half-image {
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.half-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centered single image */
.centered-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.centered-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centered half-width image with same dimensions as half images */
.centered-half-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.centered-half-image img {
  width: calc(50% - 11px); /* Half width minus half the gap */
  height: 100%;
  object-fit: cover;
}

/* Full-size centered image */
.centered-full-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
}

.centered-full-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Adjust image1 to match other pages */
.image-container .full-bleed-image img[src*="Bones (2).png"] {
  object-position: calc(50% - 10px) 50%;
  transform: scale(1.1);
}

/* Crop Bones 5, 6, and 11 from bottom */
.half-image img[src*="Bones 5.png"],
.half-image img[src*="Bones 6.png"],
.half-image img[src*="Bones 11.png"] {
  object-position: center bottom;
}

.project-description {
  font-family: sans-serif;
  font-size: 15px;
  color: #555;
  text-align: left;
  padding-left: 22px;
  padding-right: 22px;
  max-width: 600px;
  margin-left: 22px;
  margin-right: auto;
  margin-top: 40px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.project-description strong {
  font-weight: bold;
  color: #222;
}

/* Project page descriptions (not hover effects) */
.project-page-description {
  opacity: 1 !important;
  white-space: normal !important;
  pointer-events: auto !important;
  transform: none !important;
  display: block !important;
  text-align: left !important;
  font-size: 15px !important;
  color: #555 !important;
  line-height: 1.6 !important;
  font-weight: normal !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  padding: 0px 22px 40px 22px !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.project-info {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  font-size: 14px;
  text-align: left;
  width: 100%;
  color: #555;
}

.masthead-nav-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
}

@media (max-width: 600px) {
  .masthead-nav-center {
    display: none !important;
  }
}

.masthead-nav-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin-top: 0;
}

.masthead-nav-right a {
  color: #222;
  text-decoration: none;
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.masthead-nav-right a:hover {
  color: #888;
}

.masthead-nav-right .link.active {
  font-weight: 700 !important;
}

.masthead a.active {
  font-weight: bold;
}

/* Transition overlay styles */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: none;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.transition-image {
  position: absolute;
  object-fit: cover;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Landing Page Styles */
.landing-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 25px);
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.landing-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.landing-video {
  width: 40%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.landing-text {
  font-size: 12px;
  color: #333;
  text-align: center;
  margin: 0;
  margin-top: 0px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.landing-text:hover {
  color: #555;
}

.landing-title {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

.landing-subtitle {
  font-size: 18px;
  color: #777;
  margin: 0 0 40px 0;
  font-weight: normal;
}

.landing-description {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 60px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.landing-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-button {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.landing-button.primary {
  background: #333;
  color: white;
}

.landing-button.primary:hover {
  background: #555;
}

.landing-button.secondary {
  background: transparent;
  color: #333;
  border-color: #333;
}

.landing-button.secondary:hover {
  background: #333;
  color: white;
}

/* Prevent cropping for video frames in full-bleed-image */
.full-bleed-image.video-frame {
  height: auto !important;
  overflow: visible !important;
}

.full-bleed-image.video-frame video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #000;
}

/* Three images per row */
.thirds-container {
  display: flex;
  gap: 22px;
  width: 100%;
  margin-bottom: 10px;
}
.third-image {
  flex: 1;
  /* height: auto; */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.third-image img,
.third-image video {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top;
  display: block;
}
/* Special class for last row if needed */
.thirds-container.match-height {
  height: 300px; /* Will be set dynamically by JS */
}

/* === Global image layout rules === */
img {
  display: block;
  margin: 22px auto; /* vertical spacing, centered by default */
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

/* Landscape images: take full width minus padding */
img.landscape {
  width: calc(100% - 44px); /* match container padding (22px left/right) */
  max-width: 100%;
  margin-left: 22px;
  margin-right: 22px;
}

/* Portrait or square images: centered, not stretched */
img.portrait, img.square {
  width: auto;
  max-width: 80vw; /* don't stretch too wide on desktop */
  max-height: 80vh;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Responsive: On small screens, allow portrait/square to be a bit wider */
@media (max-width: 600px) {
  img.portrait, img.square {
    max-width: 98vw;
    max-height: 60vh;
  }
  img.landscape {
    width: 100vw;
    margin-left: 0;
    margin-right: 0;
  }

  /* About page mobile layout - stack image above text */
  .studio-info.content-between-header {
    flex-direction: column !important;
    gap: 30px !important;
    align-items: center !important;
    padding-top: 40px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  
  .studio-info.content-between-header > div:first-child {
    order: 2;
    width: 100% !important;
    text-align: left;
  }
  
  .studio-info.content-between-header > div:last-child {
    order: 1;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .studio-info.content-between-header img {
    max-width: 80% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  /* Force all image rows to stack vertically on mobile */
  .half-half-container,
  .thirds-container,
  .thirds-container.match-height,
  .full-bleed-image,
  .centered-half-image {
    display: block !important;
    height: auto !important;
    width: 100% !important;
    margin: 0 auto 22px auto;
    box-sizing: border-box;
  }
  .half-image,
  .third-image {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-bottom: 22px !important;
    margin-left: 0;
    margin-right: 0;
  }
  .third-image img,
  .third-image video,
  .half-image img,
  .full-bleed-image img,
  .centered-half-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
  }
  
  .full-width-image {
    margin-bottom: 22px !important;
  }
  
  .image-container {
    gap: 22px !important;
    padding: 0px 22px 22px 22px !important;
  }
  


  .grid-container {
    display: block !important;
    padding-left: 22px;
    padding-right: 22px;
    padding-top: 60px !important; /* Extra top padding for mobile */
  }
  .project {
    width: 100% !important;
    max-width: 100%;
    display: block !important;
    margin-bottom: 32px;
    box-sizing: border-box;
    text-align: center;
  }
  .project-image-wrapper {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 8px auto;
    display: block;
    overflow: visible !important;
  }
  .project img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    margin: 0 auto;
    border-radius: 2px;
  }
  .project-caption {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
    padding: 0;
    box-sizing: border-box;
  }

  .project-description {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 90% !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  .masthead-nav-center {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    position: static !important;
    left: unset !important;
    transform: none !important;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 0 0 2px;
  }
  .masthead-nav-center .link {
    padding: 4px 10px;
    font-size: 13px !important;
    min-width: 80px;
    text-align: center;
    border-radius: 2px;
    background: none;
    border: none;
    margin: 0;
    display: inline-block;
  }
  .masthead-nav-center .link {
    display: none !important;
  }
  .project-filter-select,
  .project-filter-select option {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 12px !important;
    color: #777 !important;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    height: 32px;
    min-height: 32px;
    line-height: 32px;
    padding: 0 8px;
    margin: 0 auto !important;
    box-sizing: border-box;
    width: max-content !important;
    max-width: none !important;
    min-width: 0 !important;
    float: none !important;
    display: inline-block !important;
  }
  .masthead-nav-center {
    justify-content: center !important;
    align-items: center !important;
  }
  .project-filter-select {
    display: inline-block !important;
    margin: 0 auto !important;
    float: none !important;
  }
  .project-filter-select {
    width: 110px !important; /* fallback width, adjust as needed */
    min-width: 0 !important;
    max-width: 100vw;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .project-description {
    font-size: 11px !important;
    line-height: 1.3 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .project-description {
    font-size: 10px !important;
    line-height: 1.2 !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Remove or comment out the following block: */
/*
@media (min-width: 601px) {
  .project.hide-mobile {
    display: block !important;
  }
}
*/

.project-filter-select {
  display: none;
}

/* Utility: auto-detect aspect ratio for images using JS (see note below) */
/*
  You should add JS to assign .landscape, .portrait, or .square classes to each <img> based on its naturalWidth/naturalHeight.
  Example JS (to be added in your HTML):
  document.querySelectorAll('img').forEach(img => {
    img.onload = function() {
      if (img.naturalWidth > img.naturalHeight) img.classList.add('landscape');
      else if (img.naturalWidth < img.naturalHeight) img.classList.add('portrait');
      else img.classList.add('square');
    };
    if (img.complete) img.onload();
  });
*/

/* Hide filtered projects on all screen sizes */
.project.hide-mobile {
  display: none !important;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* overflow-x: hidden; */
}

.project-filters-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  margin-top: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.project-filters-desktop .link {
  color: #222;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  transition: color 0.2s;
}

.project-filters-desktop .link:hover,
.project-filters-desktop .link.active {
  color: #888;
  font-weight: bold;
}

.project-filters-desktop .link.active {
  font-weight: 700 !important;
}

@media (max-width: 600px) {
  .project-filters-desktop {
    display: none !important;
  }

  /* Hamburger menu styles */
  .hamburger-menu {
    display: none !important; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
  }

  .hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #222;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
  }

  .hamburger-menu.open span:first-child {
    transform: rotate(45deg);
  }

  .hamburger-menu.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
  }

  /* Mobile navigation menu */
  .mobile-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 2000;
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .mobile-nav-menu.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-menu a {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
  }

  .mobile-nav-menu a:hover {
    color: #888;
  }

  .mobile-nav-menu a.active {
    font-weight: 700 !important;
  }

  /* Show hamburger menu on mobile */
  .hamburger-menu {
    display: flex !important;
  }
  
  /* Show mobile nav menu on mobile */
  .mobile-nav-menu {
    display: flex;
  }
  
  /* Hide desktop navigation on mobile */
  .masthead-nav-right {
    display: none !important;
  }
}

/* Ensure hamburger menu and mobile nav are hidden on desktop */
@media (min-width: 601px) {
  .hamburger-menu {
    display: none !important;
  }
  
  .mobile-nav-menu {
    display: none !important;
  }
  
  .masthead-nav-right {
    display: flex !important;
  }
}

/* Floating header reveal button */
.header-reveal-btn {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.header-reveal-btn.visible {
  opacity: 1;
  pointer-events: auto;
}
.header-reveal-btn::before {
  content: '\2191'; /* Unicode up arrow */
  display: block;
  font-size: 22px;
  line-height: 44px;
  width: 44px;
  height: 44px;
  text-align: center;
  transform: rotate(0deg);
}
.header-reveal-btn span, .header-reveal-btn svg, .header-reveal-btn i {
  display: none;
}

.masthead-nav-right a,
.masthead-nav-center .link,
.project-filters-desktop .link,
.masthead a.link {
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #222 !important;
}

.masthead-nav-right .link,
.masthead-nav-center .link,
.project-filters-desktop .link,
.masthead a.link {
  position: relative;
  overflow: visible;
}

.masthead-nav-right .link::after,
.masthead-nav-center .link::after,
.project-filters-desktop .link::after,
.masthead a.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #222;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 2;
}

.masthead-nav-right .link:hover::after,
.masthead-nav-center .link:hover::after,
.project-filters-desktop .link:hover::after,
.masthead a.link:hover::after {
  transform: scaleX(1);
}

.masthead.slide-down {
  animation: headerSlideDown 0.4s cubic-bezier(0.4,0,0.2,1);
}
@keyframes headerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.project-title,
.project-hover-title {
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #222 !important;
}

.project-header-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #222;
  margin: 0;
  text-align: center;
  display: block;
}

/* Mobile styling for project header titles */
@media (max-width: 600px) {
  .project-header-title {
    display: none !important;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .project-header-title {
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
    padding: 0 5px !important;
  }
}

/* Very small mobile devices */
@media (max-width: 360px) {
  .project-header-title {
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
    padding: 0 2px !important;
  }
}
