body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: rgba(232, 231, 221, 0.579);
}
html{
    scroll-behavior: smooth;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1400;
  background-color: rgba(236, 237, 231, 0.3);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  padding: 0 20px;
  height: 90px;
}

.header .logo h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  margin-right: 25px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #000;
}
.header .logo {
  order: 2;       
  margin-left: auto;
}

.header .toggle-btn {
  order: 1;   
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
    padding: 85px;
}

.portfolio, .editorial, .photograf, .advert, .design, .ss25{
    width: 100%;
    min-height: 60px;
    margin-bottom: 10px;
}

.editorial h1, .photograf h1, .advert h1, .design h1, .portfolio h1, .ss25 h1{
    font-size: clamp(20px, 3vw, 14px);
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    text-transform: uppercase;                     
    font-weight: 400;                
    letter-spacing: 1.5px;           
    color: #111; 
    text-align: left;
    margin-top: 20px;
}

.main .imgs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap:13px; 
    width: 100%;
    margin-top: 30px;
}
.main .imgs img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}
p {
    line-height: 1.6;
    color: #666666;
}
h3 {
    font-size: 25px;
    color: #333333;
    padding-left: 10px;
}
hr{
    border: none;
    border-top: 1px solid #000000;
    width: 100%;}

  :root { --dur: .9s; --dist: 38px; }

  .demo-wrap { display:grid; }

  .reveal {
    opacity: 0;
    transform: translateY(0);
    will-change: transform, opacity;}
  
  @keyframes slideUp {
    from { opacity:0; transform: translateY(var(--dist)); }
    to   { opacity:1; transform: translateY(0); }
  }
  @keyframes slideDown {
    from { opacity:0; transform: translateY(calc(var(--dist) * -1)); }
    to   { opacity:1; transform: translateY(0); }
  }

  .slide-up   { animation: slideUp var(--dur) ease-out forwards; }
  .slide-down { animation: slideDown var(--dur) ease-out forwards; }

.menu {
  position: fixed;
  top: 0;
  left: 0;        
  height: 100%;
  background-color: rgba(232, 231, 221, 0.901);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(1px);
  width: 100%;
  opacity: 0 ;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  flex-direction: column;
  z-index: 1200;}

.menu.open {
  opacity: 1;
  pointer-events: auto;}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 10px;
  margin-top: 135px;}
.menu p {
  opacity: 0;
  transform: translateX(-40px);}
.menu.open p {
  animation: slideInFromLeft 0.5s ease forwards;}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.menu p{ 
    white-space: pre-line;
    padding-left: 35px;
    padding-top: 18em;
    font-family: 'Helvetica Neue', Arial, sans-serif; 
  font-size: 10px;                 
  font-weight: 400;                
  letter-spacing: 1.5px;           
  line-height: 1.4;                
  color: #111; 
}

.menu li {
  opacity: 0;
  transform: translateX(-30px); 
  padding-left: 35px;
  padding-top: 8px;
  font-size: 34px;
}

.menu li span#tag {
  cursor: pointer;      
  transition: color 0.3s;  
}

.menu li span#tag:hover {
  color: #555;          
}

.menu.open li {
  animation: menuItemIn 0.6s ease forwards;
}
.menu.open li:nth-child(1) { animation-delay: 0.1s; }
.menu.open li:nth-child(2) { animation-delay: 0.25s; }
.menu.open li:nth-child(3) { animation-delay: 0.4s; }
.menu.open li:nth-child(4) { animation-delay: 0.55s; }
.menu.open li:nth-child(5) { animation-delay: 0.60s; }
.menu.open li:nth-child(6) { animation-delay: 0.70s; }

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateX(-30px) translateY(-10px); 
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

.fade-slide-in {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideIn 0.6s ease forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-text {
  display: inline-block;
  padding: 10px 20px;
  background: none;
  display:inline-block;
  background: none;
  line-height:1;       
  mix-blend-mode: normal; 
  -webkit-font-smoothing: antialiased;
  font-family:  Arial, sans-serif; 
  text-transform: uppercase;     
  font-size: 10px;                
  font-weight: 400;               
  letter-spacing: 1.5px;         
  line-height: 1.4;             
  color: #111; 
}
.overlay{
  position: fixed; inset: 0;
  background: rgba(255, 255, 255, 0.156);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease;
  z-index: 1150;
  top:0px;
}

.overlay.show{ opacity:1; visibility:visible; }

#project-detail {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%; 
  max-width: 1200px;   
  margin: 0 auto;   
  padding: 20px;      
}

#project-images {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  justify-items: center;
}

#project-detail img {
  width: 100%;
  margin-top: 10px;
}

#project-title {
  font-size: clamp(20px, 5vw, 52px);
  font-weight: 600;
  margin-top: 130px;
  white-space: pre-line;
  font-family: 'Helvetica Neue', Arial, sans-serif; 
  text-transform: uppercase;                                  
  letter-spacing: 1.5px;           
  line-height: 1.4;                
  color: #111; 
}

.haed {
  display: flex;  
  justify-content: space-between; 
  margin-bottom: 10em;
}

.haed p {
  font-size: 16px;
  color: #555;
}

#project-description {
  margin-top: 20px;
  font-size: 10px;
  color: #555;
  max-width: 340px;   
  white-space: pre-line;
  padding-top:120px;
  padding-right: 150px;
  font-family: 'Helvetica Neue', Arial, sans-serif; 
  text-transform: uppercase;                      
  font-weight: 400;                
  letter-spacing: 1.5px;           
  line-height: 1.4;              
  color: #111; 
}    

#back-btn {
  margin-bottom: 20px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #333;
}

.project-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(237, 236, 236, 0.579);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1400;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center; 
  height: 80px;
  order: 1;
  padding-left: 35px;
}

#project-header h1 {
  font-size: 13px;
  font-weight: 100;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #000;
}

#back-btn {
  order: 2;
  margin-right: 100px;
  margin-top: 10px;
  font-size: 10px;
}

#project-images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

#project-images img:hover {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.942);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #000000;
  cursor: pointer;
}

.wide-image {
  grid-column: span 2 !important;     
  max-width: 100%;           
  margin: 0 auto;         
}

.wide-image img {
  width: 50%;
  display: block;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-390px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInTop {
  from {
    opacity: 0;
    transform: translateY(-190px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(450px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-left   { animation: slideInLeft 0.9s ease forwards; }
.animate-top    { animation: slideInTop 0.7s ease forwards; }
.animate-bottom { animation: slideInBottom 0.9s ease forwards; }


@media (max-width: 1024px) {
  .main .imgs {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  }
}

@media (max-width: 768px) {
  .header { height: 70px; padding: 0 15px; }
  .header .logo h1 { font-size: 22px; }
  .btn-text { font-size: 13px; padding: 8px 14px; }
  .main .imgs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .main .imgs {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn-text {
    font-size: 12px;
    padding: 6px 10px;
  }
    .menu li {
        font-size: 30px;
    }
    .menu p {
        font-size: 16px;
        padding-left: 25px;
        padding-top: 300px;
    }
    .main {
        padding: 20px;
        margin-top: 30px;
    }
    .header {
      justify-content: center;
      height: 10px;
    
    }
  .header .toggle-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .header .logo h1 {
    font-size: 18px;
    letter-spacing: 1.5px;
  }
    .btn-text {
        font-size: 11px;
        padding: 5px 8px;
    }
    .editorial h1, .photograf h1, .advert h1, .design h1, .portfolio h1{
        font-size: 11px;
    }
    hr {
    border-top: 0.5px solid #000;
    width: 100%;
    margin: 10px auto;
    opacity: 0.7;
    }
    #back-btn {
        margin-right: 30px;
        margin-top: 1em;
        font-size: 14px;
    }
    
    .menu p {
        padding-top: 26em;
        padding-left: 4em;
        font-size: 10px;
    }
    .menu li {
        font-size: 29px;
        margin-right: 7em;
    }
}

@media (max-width: 375px) {
  header { height: 50px; }
  .header .logo h1 { font-size: 16px; }
  .main { padding: 10px; }
}


@media (max-width: 834px) {
  #project-title { font-size: 36px; margin-right:1em; padding-right: 11px;}
  #project-description { font-size: 14px; max-width: 100%;  padding-left: 20px;}
  #project-images { grid-template-columns: repeat(1, 1fr); }
  #project-detail { width: 670px; }
  
}

@media (max-width: 1024px) {
  .header { height: 80px; padding: 0 20px; }
  #project-detail { padding: 0 15px; }
  #project-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1280px) {
  #project-title { font-size: 48px; }
  #project-description { font-size: 15px; }
}

@media (max-width: 1440px) {
  #project-title { font-size: 56px; }
}


@media (min-width: 1920px) {
  .main { max-width: 1600px; margin: 0 auto; }
  #project-detail { max-width: 1600px; margin: 0 auto; }
}

@media (max-width: 1024px) {
  #project-detail {
    flex-direction: column;
  }

  #project-description {
    padding-top: 20px;
    padding-right: 0;
    max-width: 90%;
    font-size: 13px;
  }

  #project-images {
    grid-template-columns: repeat(3, 1fr); 
  }

  .haed {
    flex-direction: column;
    margin-bottom: 4em;
    gap: 10px;
  }

  #project-title {
    margin-top: 40px;
    font-size: clamp(18px, 4vw, 42px);
  }
}

@media (max-width: 768px) {
  #project-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  #project-title {
    font-size: clamp(16px, 5vw, 32px);
    margin-top: 20px;
  }

  #project-description {
    font-size: 12px;
    line-height: 1.3;
  }

  .project-header {
    padding-left: 15px;
    height: 65px;
  }

  #back-btn {
    margin-right: 20px;
    font-size: 12px;
  }
}

@media (max-width: 480px){
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  #project-detail {
    width: 100%;
    max-width: 100%;             
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
  }

  #project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: center;
    padding: 0 8px;
    box-sizing: border-box;
    max-width: 100%;
  }

  #project-images img {
    width: 100%;
    height: auto;
    display: block;
  }

  #project-title {
    font-size: 26px;
    margin-top: 80px;
    margin-left: 10px;
  }

  .haed {
    flex-direction: column;
  }

}