@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Familjen+Grotesk:ital,wght@0,400..700;1,400..700&family=Google+Sans+Code:ital,wght@0,300..800;1,300..800&family=Hanken+Grotesk:wght@100..900&family=Hubot+Sans:ital,wght@0,200..900;1,200..900&family=Parkinsans:wght@300..800&display=swap');

:root {
/*Colors*/
  --black: rgba(0,0,0, 1.00);
  --blank: rgba(255, 255, 255, 0.00);
  --Brand-brand: var(--Primary-700);
  --Neutral-900: rgba(21, 26, 22, 1.00);
  --Neutral-800: rgba(43, 39, 37, 1.00);
  --Neutral-700: rgba(65, 59, 56, 1.00);
  --Neutral-600: rgba(86, 79, 77, 1.00);
  --Neutral-500: rgba(111, 102, 100, 1.00);
  --Neutral-400: rgba(140, 133, 129, 1.00);
  --Neutral-300: rgba(198, 191, 187, 1.00);
  --Neutral-200: rgba(226, 219, 217, 1.00);
  --Neutral-100: rgba(244, 240, 239, 1.00);
  --Neutral-50: rgba(249, 247, 247, 1.00);
  
}


html {
  background: transparent; /* or same color as slider */
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* no native scroll */
  height: calc(var(--vh, 1vh) * 100);
  font-family: "Bricolage Grotesque", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  color: var(--Neutral-900);
  background: var(--black);
  }

.category-info a {
  color: var(--Neutral-700);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px; /* expand underline */
  transition: background-size 0.3s ease;
  }

.category-info a:hover {background-size: 0% 2px; /* start hidden */}

.sections-wrapper {
  height: 100%;
  scroll-snap-type: y mandatory; /* snap vertically */
  overflow: hidden; /* important to disable native scroll */
}

/* ---------- Section 1 ---------- */
.section {
  width: 100vw;
  height: 100%;
  position: relative;
  scroll-snap-align: start;
  padding-bottom: env(safe-area-inset-bottom);
  background: #000;

}

/* ---------- Section 2 ---------- */
.section2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding:calc(env(safe-area-inset-bottom) + 3.5rem) 0;
  background: var(--Neutral-50);
  box-sizing: border-box;
  gap: 2rem;
}


/* slide */

/* slider styles */
.slider {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
}

.slide {
  flex: 0 0 auto; /* width set dynamically by JS */
  display: block;
  margin: 0;
}

.slide img, .slide video {
  display: block;
  height: 100%;
  width: auto;
}

/* overlay */
.slider-overlay {
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  z-index: 10;
  background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.2));
  color: var(--Neutral-100);
  display: flex;
  flex-direction: column;
  justify-content:start ;
  align-items: start;
  text-align: left;
  pointer-events: auto;
  padding:1.5rem;

}
.tagline {
  margin-top: env(safe-area-inset-top);
  margin-bottom: env(safe-area-inset-bottom);
  font-size: 5rem; /* adjust size */
  font-weight: 800;
  display: flex;
  flex-direction: column; /* stack children vertically */
  justify-content: start; /* optional: center vertically inside container */
  align-items: stretch;     /* optional: center horizontally */
  flex-grow: 1;
}

button {
  padding: .75rem 1.5rem;
  font-size: 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--Neutral-100);
  color: var(--Neutral-100);
  cursor:pointer;
  font-weight: 400;
  width: auto;           /* hug content */
  display: inline-block; /* ensure it doesn’t stretch */
  justify-self: flex-end;
  align-self: center;
}

button:hover { background:var(--Neutral-100); color: var(--Neutral-900);}

button.secondary {color: var(--Neutral-900);border-color: var(--Neutral-800);}

button.secondary:hover, button.bottom:hover { background:var(--Neutral-900); color: var(--Neutral-100);}


/* Hide Button and hover on touch devices */

@media (hover: none) and (pointer: coarse) {
      button.navigation {
        display: none;
      }

      .category-info a:hover {background-size: 100% 2px; /* start hidden */}

      .section1::after {
      content: "";
      position: absolute;
      left: 50%;
      bottom: 0rem;
      width: 36px;
      height: 72px;
      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/><polyline points='6 3 12 9 18 3'/></svg>") no-repeat center/contain;
      animation: moveFadeDown 1.2s ease-in-out 0s infinite,fadeOutTotal 0.5s ease forwards 10s;
      pointer-events: none; /* not needed, but safe */
      stroke: white;
    }

    /*.section2::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 0rem;
      width: 36px;
      height: 72px;
      background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='18 15 12 9 6 15'/><polyline points='18 21 12 15 6 21'/></svg>") no-repeat center/contain;
      animation: moveFadeUp 1.2s ease-in-out 0s infinite,fadeOutTotal 0.5s ease forwards 10s; 
      pointer-events: none; 
      stroke: white;
    } */

    @keyframes moveFadeDown {
      0%   { opacity: 0; transform: translate(-50%,0); }
      30%  { opacity: 1; transform: translate(-50%,4px); }
      100% { opacity: 0; transform: translate(-50%,12px); }
    }

    /* Move up and fade out */
    @keyframes moveFadeUp {
      0%   { opacity: 0; transform: translate(-50%,0); }
      30%  { opacity: 1; transform: translate(-50%,-4px); }
      100% { opacity: 0; transform: translate(-50%,-12px); }
    }

    @keyframes fadeOutTotal {
        to { opacity: 0; }
      }

    .section.up.fade-out {
        opacity: 0;
      }

    button.secondary:hover, button.bottom:hover,  { background:var(--Neutral-50); color: var(--Neutral-900);}
    button:hover { background:var(--Neutral-900); color: var(--Neutral-50);}

  }



/* Categories Slider */
.category-slider-wrapper {
  width: 100%;
  max-width: 920px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  border-radius: 12px;
  }

.category-slider-wrapper .title {
	font-size: 1.2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;}

.category-slider {
  display: flex;
  transition: transform 0.5s ease;
}

/* Category Controls */
.category-controls button {
  padding: .80rem;
  line-height: .75rem;
}
.category-controls button:hover img {
  
}

.category-slide {
  display: flex;
  flex: 1 0 100%;
  gap: 4rem;
  align-items: start;
  justify-content: space-between;
}

.category-info {
  flex: 1;
}

.category-info h2 {
  font-size: 2rem;
  margin: 0 0 1rem 0;
}

.category-info p {
  font-size: 1rem;
  line-height: 1.5;
}

.category-image {
  flex: 0 0 400px;
  width: 400px;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--Neutral-100);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Clients Continuous Slider */
.clients-slider-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

#clientsSlider {
  position: relative;
  height: 100%;
}

.client-slide {
  height: 100%;
  display: block;
}

.client-slide img,
.client-slide video {
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Social bar on right side, vertical alignment */
.social-bar {
  display: flex;
  flex-direction: row;
  gap: 4px;                 /* space between icons */
  z-index: 9999;
  margin-top: 32px;
}

.social-bar a {
  display: block;
  width: 36px;
  height: 36px;
  padding: 12px;
  text-align: center;
  line-height: 36px;
  transition: transform 0.2s ease;
  margin-right: 12px;
}

.social-bar svg {width: 100%; height: auto; color: var(--Neutral-50);}

.social-bar a:hover {
  transform: scale(1.2);     /* subtle hover effect */
}

.social-bar a img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}


/* Tooltip text */
.social-bar a::before {
  content: attr(title);     /* use the title attribute as tooltip text */
  position: absolute;
  right: 50%;              /* initial offset from icon */
  top: 0px;
  transform: translate(50%, 100%); /* position to the left and vertically center */
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;     /* tooltip won’t block hover */
  transition: opacity 0.2s, transform 0.2s;
  font-size: 0.85rem;
  z-index: 1000;
}

/* Show tooltip on hover */
.social-bar a:hover::before {
  opacity: 1;
  transform: translate(50%, 150%); /* slightly shift for nicer appearance */
}
/* other sections */

@media (max-width:1080px){ 
  .category-slider-wrapper {max-width:720px;}
}

/* MOBILE: full viewport width, media centered */

@media (max-width:768px){ 
	.category-slider-wrapper {margin-bottom: .5rem;max-width:400px;gap: 1rem;}
	.category-slide {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .category-image {
    width: 100%;
    flex: 0 0 380px;
  }

  .category-info h2 {
    font-size: 1.5rem;
  }

  .category-info p {
    font-size: 0.9rem;
  }

  .entry-slide {
    width: 120px;
    height: 120px;
  }
  .tagline { font-size: 3.5rem; }
  .social-bar {right: .75rem;top: calc(50% - 102px);}
  .social-bar a {
  width: 28px;
  height: 28px;
  line-height: 28px;
}
  .social-bar a:hover::before {opacity: 0;}

  .category-controls button {padding: .5rem;}

  .section2 {
    padding:calc(env(safe-area-inset-bottom) + 1.5rem) 0;
  	gap: 1rem;

  }

  .clients-slider-wrapper {height: 160px;}

}

@media (max-width: 480px) {
  .category-slider-wrapper {width:320px }

  .category-info h2 {
    flex-direction: column;
    gap: 0.5rem;
  }

  .category-controls {
    align-self: flex-start;
  }

  .clients-slider-wrapper {height: 120px;}
}

@media (max-width: 390px) {

  .clients-slider-wrapper {height: 100px;}
}

/* Hide the normal content in landscape */
@media only screen and (orientation: landscape) and (max-width: 920px) {

  body > * {
    display: none !important;
  }

  body::after {
    content: "Trust me! You do not want to see it this way please rotate back!";
    position: fixed;
    top: 30vh;
    left: 0;
    width: 100vw;
    height: 20vh;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-align: center;
    z-index: 9999;
  }

  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 30vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;

    /* Use your icon from the icons folder */
    background-image: url('/icons/mobile_rotate_lock.svg'); /* path relative to site root */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100px 100px; /* adjust size */
  }
}

/* work page */

body.work {overflow: scroll;background: black;}



/* Custom dropdown container */
.custom-select {
  position: fixed;
  display: inline-flex;
  gap: .5rem;
  width: 260px;
  top: 1rem;
  margin: 0 calc(50% - 125px);
  z-index: 1;
  background-color: #fff;
  border-radius: 99px;
  border: 1px solid #ccc;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1),  /* soft larger shadow */
                0 1px 2px rgba(0,0,0,0.03); /* smaller sharper shadow */
}

.homelink {
    display: block;
    width: 45px;   /* set the logo width */
    height: 45px;   /* set the logo height */
    background-image: url('/logo.svg');
    background-size: contain; /* scale to fit */
    background-repeat: no-repeat;
    background-position: center;
}

.custom-select select {
  display: none; /* hide native select */
}

.select-selected {
  cursor: pointer;
  user-select: none;
  flex: 1;
  padding-right: 8px;
  display: flex;
  align-items: center;
  gap: .5rem;
  }

.select-selected span {flex: 1;text-align: center;}

.select-items {
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  top: calc(100% + .25rem);
  left: 0;
  right: 0;
  z-index: 99;
  display: none;
  overflow-y: auto;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1),  /* soft larger shadow */
                0 1px 2px rgba(0,0,0,0.03); /* smaller sharper shadow */
}

.select-items div {
  padding: 10px;
  cursor: pointer;
}

.select-items div:hover {
  background-color: #f0f0f0;
}

.select-arrow {display: flex;flex-direction: row;}

.select-arrow svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: auto;
}

.select-arrow svg.active {transform: rotate(180deg);}

/* Masonry Grid */

.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));    grid-auto-rows: 1px; /* keep for masonry calculation */
    justify-content: start; /* align tiles to the left if extra space */
    gap: 0; /* remove gaps if needed */
}

.entry-card {
    position: relative;
    display: block;
    margin: 0;
    padding: 0;
    overflow: hidden;
    grid-row-end: span var(--row-span); /* masonry height */
}

.media-wrapper {
    position: relative;
    width: 100%;
    min-height: 120px;
}

.media-wrapper img,
.media-wrapper video {
    display: block; /* remove baseline gap */
    width: 100%;
    height: auto;
    object-fit: cover;
}

.info {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.info:hover {opacity: 0;}

.info h3 {
    position: absolute;
    bottom: 16px;
    left: 16px;
}

.info .year {
    position: absolute;
    bottom: 16px;
    left: 16px;
}

.info .category {
    position: absolute;
    bottom: 38px;
    right: 16px;
}

.info.filtered .category {
    display: none;
}


.play-btn { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:30px; color:rgba(0,0,0,0.5); cursor:pointer; }



