:root {

    --nav-title-condensed: -2px;
    --font-family-bricolage: 'Bricolage Grotesque', sans-serif;
    
    --font-display: var(--font-family-bricolage);
    --font-nav: var(--font-family-bricolage);
    --font-sans: var(--font-family-bricolage);

    --color-primary: #0033ff;
    --color-secondary: #ff6600;
    --color-accent: #8cf71a;
    --color-primary-dark: #010203;
    --color-background: #eefdff;
    --color-background-2: #ecfdfd;
    --color-inverse: #fff;

}



.works-bg-black {
  background: var(--color-primary-dark) !important;
}

.light-text h2,
.light-text p {
  color: white !important;
}

.img {
  z-index: 1000;
}

/* Main container */
.works-hero {
  height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #000;
  position: relative; /* anchor for absolute children */
  overflow: hidden;   /* prevents overflow on ultrawide screens */
}

/* THE IMPORTANT PART */
.works-logo-wrapper {
  position: absolute;
  top: 20px;          /* fixed distance from header */
  right: 20px;
  bottom: 20px;       /* fixed distance from bottom */
  width: 41vw;        /* scales sideways */
  max-height: calc(100vh - 40px - 40px - 60px);
  /* 40px top padding (hero)
     40px bottom padding (hero)
     60px header height
  */
  height: auto;
  z-index: 10;
  display: flex;
  align-items: flex-end; /* keeps logo aligned at bottom of wrapping box */
}

.works-logo-wrapper img {
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* Mobile override */
@media (max-width: 900px) {
  .works-logo-wrapper {
    width: 82vw;
    top: 0px;
    bottom: 20px;   /* keep same bottom spacing */
    max-height: calc(100vh - 40px - 20px);
  }

  .work-block.two-img{
    max-height: 70vh;
  }

  .work-block.full-image{
    max-height: 70vh;
    margin-top: 0px;
  }
}

.works-logo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}


.works-title {
  font-size: 8vh;
  font-weight: 200;
  color: white;
  margin-bottom: 20px;
  line-height: 1;
}

.works-subtitle {
  margin-top: 20px;
  font-size: 1.6rem;
  max-width: 60ch;
  color: white;
}




/* -------------------------------------------------- */
/* WORK BLOCKS */
/* -------------------------------------------------- */

.work-block {
  width: 100%;
  min-height: 100vh;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  background: var(--color-background);
}

/* Mobile: disable hover zoom to prevent layout jumps */
@media (max-width: 900px) {
  .two-img-row {
    height: 80vh;
  }
}



/* Shared hover animation for all work images */
.work-block img {
  transition: 
    transform 0.45s cubic-bezier(.25,.46,.45,.94),
    filter 0.45s ease;
  will-change: transform, filter;
}

/* Hover effect — subtle upscale & saturation */
.work-block img:hover {
  transform: scale(1.03);
  filter: saturate(1.15);
}

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

  /* Logo scaling + repositioning */
  #logo-MAYO-works {
    width: 45vw;        /* smaller logo */
    top: 10px;          /* closer to the top */
    right: 10px;        /* tucked into the corner */
    opacity: 0.15;      /* optional: softer presence */
    pointer-events: none; /* prevent interference */
  }

  /* Prevent logo overlap with text */
  .works-hero,
  .work-text {
    padding-top: 15vh;   /* creates space to avoid collision */
  }

  /* Images */
  .two-img-row {
    flex-direction: column;
    gap: 10px;
  }

  .two-img-row img,
  .full-image img {
    width: 100%;
    height: auto;
    max-height: 60vh;    /* prevent massive images on mobile */
    object-fit: contain;
  }

  /* Allow paragraphs to shrink better */
  .work-text p {
    font-size: 1rem;
  }
}
/* MOBILE ONLY: move titles above the images */
@media (max-width: 900px) {
  .work-block.two-images {
    display: flex;
    flex-direction: column-reverse; /* flips order */
    gap: 20px;
  }

    .work-block.full-image {
    display: flex;
    flex-direction: column-reverse; /* flips order */
    gap: 20px;
  }
}



.two-img-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.two-img-row img {
  width: 50%;
  height: 70vh;
  object-fit: contain;
  border-radius: 16px;
}

.full-image img {
  width: 100%;
  height: 80vh;
  object-fit: contain;
  border-radius: 16px;
}

.work-text {
  max-width: 600px;
}

.work-text h2 {
  font-size: 3rem;
  font-weight: 200;
  margin-bottom: 10px;
  color: var(--color-primary-dark);
}

.work-text p {
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--color-primary-dark);
}

.works-hero {
  position: relative; /* allows absolute positioning inside */
}

#logo-MAYO-works {
  position: absolute;
  top: 20px;       /* distance from top of section */
  right: 20px;     /* distance from right edge */
  width: 70vw;    /* adjust to match homepage logo visually */
  height: auto;
  z-index: 1000;
  opacity: 0;      /* start hidden */
  transform: translateY(-10px); /* slight upward offset for animation */
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Floating / fade-in effect triggered by "show" class */
#logo-MAYO-works.show {
  opacity: 1;
  transform: translateY(0);
}



/* PROJECT PAGE NAVIGATION */
.project-nav {
  position: fixed;
  left: 20px;
  top: 80px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  color: white;
  z-index: 9000;
  transition: height 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}

.project-nav.minimized {
  height: 40px; /* only show header/button */
  padding: 5px 10px;
}

.project-nav h4 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-weight: 300;
}

.project-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-nav li a {
  color: var(--color-background);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.9em;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.project-nav li a:hover {
  opacity: 1;
}

/* Minimize button */
#nav-minimize {
  position: absolute;
  top: 5px;
  right: 5px;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9100;
}



/* -------------------------------------------------- */
/* RESPONSIVE */
/* -------------------------------------------------- */
@media (max-width: 768px) {
  .project-nav {
    display: none;
  }

  .two-img-row {
    flex-direction: column;
    
  }
  .two-img-row img {
    width: 100%;

  }

}

/* MOBILE PROJECT MENU */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* hide default links on mobile */
  }

  .mobile-project-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-background);
    z-index: 1000;
    padding: 60px 20px 20px 20px;
    overflow-y: auto;
    flex-direction: column;
  }

  .mobile-project-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-project-nav li {
    margin-bottom: 20px;
  }

  .mobile-project-nav a {
    text-decoration: none;
    font-size: 1.2rem;
    color: var(--color-primary-dark);
  }
}



#project-nav.align-left {
    text-align: left;
}

#project-nav.align-right {
    text-align: right;
}

#project-nav.align-left a {
    justify-content: flex-start;
}

#project-nav.align-right a {
    justify-content: flex-end;
}

.drag-tip {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    font-weight: 300;
}

.project-nav.show-tip .drag-tip {
    opacity: 1;
}



/* ACTIVE LINK */
.project-nav li a.active {
    opacity: 1;                       /* fully visible */
    font-weight: 600;                 /* make it stand out */
    color: #caff39;                       /* or another highlight color */
    position: relative;
}

.project-nav li a.active::before {
    content: '';
    position: absolute;
    left: -8px;                        /* small marker on left */
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #caff39;                   /* marker color */
}



/* MOBILE HAMBURGER NAV */
@media (max-width: 768px) {
  #navLinks {
    display: none;           /* hidden by default */
    flex-direction: column;
    max-height: 80vh;        /* limit height to viewport */
    overflow-y: auto;        /* enable vertical scroll if too long */
    padding: 10px 20px;
    background-color: var(--color-background);
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 100;
  }

@media (max-width: 768px) {
  #navLinks a {
    color: var(--color-primary-dark);
    font-family: var(--font-family-bricolage);
    font-variation-settings: "wght" 500;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    display: block;
    padding: 8px 0;
    border-bottom: 1.2px solid var(--color-accent);
  }
}

}



.page-grid {
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;

  pointer-events: none;

  z-index: 9999; /* visible above section backgrounds */

  background-image:
    linear-gradient(to right, rgba(195, 255, 0, 0.150) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(195, 255, 0, 0.150) 1px, transparent 1px);

  background-size: 40px 40px;
}


section{ 
    scroll-snap-align: start;
    scroll-margin-top: 8vh;

}

/* Create a wrapper for mobile transforms without touching the animations */
@media (max-width: 900px) {

  .works-hero {
    position: relative;   /* ensure absolute children stay inside */
  }

  .title-group {
    position: absolute;
    top: 80px;      /* distance from top/nav */
    left: 20px;     /* distance from left */
    z-index: 2000;  /* above background, below nav */
    width: calc(100% - 40px); /* keeps it from going offscreen */
  }

  /* optional: make mobile spacing cleaner */
  .title-group .works-title {
    margin-bottom: 6px;
  }

  .cursor {
  display: none;
}

}




/* -------------------------------------------------- */
/* MOBILE SPACING FIX (global) */
/* -------------------------------------------------- */
@media (max-width: 900px) {

  /* Reduce global section padding */
  .work-block {
    padding: 24px 20px;
    gap: 24px; /* tighter vertical spacing */
    min-height: auto; /* don't force 100vh on mobile */
  }

  /* Reduce spacing between image and text block after reverse */
  .work-block.two-images {
    gap: 16px !important;
  }

  /* Fix images being too tall or getting cut off */
  .two-img-row img,
  .full-image img {
    height: auto !important;
    max-height: 55vh;  /* safe height for all phones */
    width: 100%;
    object-fit: contain;
  }

  /* Stack images cleanly, no overflow */
  .two-img-row {
    flex-direction: column;
    gap: 12px;
    height: auto !important;
  }

  /* Title spacing */
  .work-text h2 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 2rem; /* better mobile scale */
  }

  /* Paragraph spacing */
  .work-text p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.35;
  }

  /* Reduce section gap between projects */
  .work-block {
    padding-bottom: 32px;
  }








  /* Logo on mobile — safer sizing + spacing */

}
