 * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    * {
  outline: 0px solid rgb(255, 16, 16); /* semi-transparent red */
}
 body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #000;
}
    a {
      text-decoration: none;
      color: inherit;
    }

    .project-title {
        font-size: clamp(3rem, 5vw, 3.5rem);
        font-weight: 200;
    }

    .smalltitle {
        font-size: clamp(2rem, 4vw, 3rem);
        font-weight: 200;
    }

    .project-sub {
        font-size: 1.5rem;
       font-weight: 200; 
       
    }

    .project-text {
       font-size: 1.2rem;
       font-weight: 300; 
    }

.small-text {
       font-size: 0.9rem;
       font-weight: 300;
       font-style: italic; 
    }

    .white {
      color: #fff;
    }

    .lime {
      color: rgb(208, 237, 0);
    }

    .grey {
      color: #7f7f7f;
    }

    .project-info {
      color: #9c9c9c;
      font-style: italic;
      font-size: 1.2rem;
      font-weight: 300; 
    }
    .italic {
      font-style: italic;
    }


    /* Container to confine width */
    .container {
      max-width: 1500px;
      margin: 0 auto;
      padding: 0px 40px; /* whitespace on sides */
    }

    /* Header / Menu */
    header {
      padding: 0 0 40px 0;
    }
    
header.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color:  rgba(255, 255, 255, 1);
  padding: 10px 0 10px 0;
  /*background: linear-gradient(
  rgb(255, 255, 255),
  rgba(208,237,0, 0)
);*/
  
}

    .header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
    
    }

    .menu-minimal img{
      width: 50px;
      height: 50px;
      align-items: left;
    }

    .menu-minimal {
  display: flex;
  align-items: center;
  gap: 10px; /* space between logo and text */
  text-decoration: none;
}

    .menu-left img {
      width: 100px;
      height: 100px;
    }
    .menu-right a {
      margin-left: 30px;
      font-weight: 400;
      transition: color 0.3s;
      letter-spacing: 0.03em;
    }
    .menu-right a.active {
        font-weight: 600;
        font-size: x-large;
    }
    .menu-right a:hover {
      color: #555;
    }

    /* Portfolio Grid */
/* Grid */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 475px);
  gap: 4px;
  justify-content: center;
}

/* Thumbnail wrapper */
.portfolio-thumb {
  position: relative; /* needed for overlay */
  display: block;
  width: 100%;
  max-width: 675px;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  background: rgb(208, 237,0);
  
  
}
.portfolio-thumb > img {
  width: 100%;
  height: 100%;  
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-link {
  display: block; /* VERY important */
  position: relative;
  text-decoration: none;
  color: inherit;

}

.portfolio-link > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  
}


.portfolio-thumb:hover .portfolio-link > img {
  transform: scale(1.1) rotate(2deg);
  
  
  /* filter:  grayscale(100%);
    mix-blend-mode: screen;
    opacity: 0.8;
    filter: invert(1) hue-rotate(90deg);
transition: filter 1s ease;*/


}

.portfolio-overlay {
  position: absolute;
  inset: 0;
background: rgba(208,237,0, 1); /* your tint color
/*background: radial-gradient(
  circle at center,
  rgba(208,237,1),
  rgba(208,237,0, 0.8)
);*/
display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: clamp(10px, 2vw, 20px);
  padding: clamp(12px, 3vw, 24px);

  text-align: center;
  color: rgb(0, 0, 0);

  opacity: 0;
  transition: opacity 0.3s ease;

  /* important for responsiveness */
  overflow-y: auto;
}

.portfolio-overlay h3,
.portfolio-overlay p {
  margin: 0;
  max-width: 90%;
  word-break: break-word;
}

.portfolio-overlay h3 {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400; 
}

.portfolio-overlay p {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.4;
  font-weight: 200; 

}

.portfolio-thumb:hover .portfolio-overlay {
  opacity: 1;
}



.overlay-logo {
  display: block;
  width: clamp(80px, 40%, 200px);
  height: auto;
  margin-bottom: 10px;
}

.overlay-tall {
  display: block;
  width: auto;
  height: clamp(80px, 40%, 120px);
  margin-bottom: 10px;
}

video {
  width: 100%;
  height: auto;
  display: block;
}

.narrower-video {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
}
.portrait-video {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
}


.small-video {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
}
/* layouts */

.multi-col {
  display: flex;
  gap: 10px;
  margin: 0 auto;
  padding: 5px 0;
}

.multi-col-narrow {
  display: flex;
  gap: 10px;
  padding: 5px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.same-height img {
  height: 100%;
  width: auto;
  display: block;
}

.same-height {
  display: flex;
}

.even {
  flex: 1;
}

.bigger {
  flex: 2;
}
.multi-col img {
    width: 100%;
    height: auto;
    display: block;
}

.centred {
  display: flex;
  justify-content: center;
}

.centred img {
  max-width: 100%;
  height: auto;
  display: block;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* controls space between Prev and Next */
  width: 100%;
}

.spacer-s { margin-bottom: 20px; }
.spacer-m { margin-bottom: 50px; }
.spacer-l { margin-bottom: 100px; }
.pad {
  padding: 20px;
}

.pad-m {
  padding: 40px;
}

.padL {
  padding-left: 30px;
}
.padR {
  padding-right: 30px;
}

.padT {
  padding-top: 30px;
}

.padT10 {
  padding-top: 10px;
}

.padB {
  padding-bottom: 30px;
}

.framelarge {
  padding: clamp(2rem, 7vw, 10rem);
}
.darksection {
  background-color: #17131f;
}
.purplesection {
  background-color: #43138d;
}

.tallimage {
    width: 100%;
    height: auto;
}


.frameborder {
  border: 2px solid #e3e3e3;
}

.shadow {
  filter: drop-shadow(8px 8px 10px rgb(195, 193, 193));
}

/* CAROUSEL */

.carousel {
  position: relative;
  width: 100%;
 max-width: 800px;
  overflow: hidden;
  background: #000;
}


.track {
  display: flex;
  width: 100%;
  transition: transform 0.3s ease;
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgb(255, 255, 255);
}

.slide > img,
.slide > video {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev {
  left: 12px;
}

.next {
  right: 12px;
}

.dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.2s;
}

.dot.active {
  background: white;
  transform: scale(1.3);
}

/* ========================= */
/* COMIC CONTAINER */
/* ========================= */

.comic {

    display:flex;

    align-items:center;

    justify-content:center;

    gap:2rem;

    width:100%;

    padding:1rem;

}



/* ========================= */
/* BOOK */
/* ========================= */

.book {

    position:relative;

    width:min(75vw,800px);

    height:min(65vh,550px);

    perspective:1600px;

    transform-style:preserve-3d;

}



/* ========================= */
/* STATIC PAGES */
/* ========================= */


.left-page,
.right-page {

    position:absolute;

    top:0;

    width:50%;

    height:100%;

    overflow:hidden;

    background:white;

}


.left-page {

    left:0;

}


.right-page {

    right:0;

}



/* Images */

.left-page img,
.right-page img,
.page img {

    width:100%;

    height:100%;

    object-fit:contain;

    display:block;

}



/* ========================= */
/* FLIPPING SHEET */
/* ========================= */


.flip-page {

    position:absolute;

    top:0;

    right:0;

    width:50%;

    height:100%;

    transform-origin:left center;

    transform-style:preserve-3d;

    transition:

        transform 1.3s cubic-bezier(.45,.05,.25,1);

    z-index:20;

}



/* the actual turn */

.flip-page.flipped {

    transform:rotateY(-180deg);

}



/* both sides of the paper */

.page {

    position:absolute;

    inset:0;

    backface-visibility:hidden;

    overflow:hidden;

}



/* front */

.front {

    z-index:2;

}



/* back of page */

.back {

    transform:rotateY(180deg);

}



/* ========================= */
/* SPINE */
/* ========================= */

/* 
.book::after {

    content:"";

    position:absolute;

    left:50%;

    top:0;

    width:6px;

    height:100%;

    transform:translateX(-50%);


    background:

        linear-gradient(
            to right,
            rgba(0,0,0,.25),
            rgba(255,255,255,.25),
            rgba(0,0,0,.25)
        );


    z-index:30;

}
*/


/* ========================= */
/* BUTTONS */
/* ========================= */


.nav {

    width:52px;

    height:52px;

    flex-shrink:0;

    border:none;

    border-radius:50%;

    cursor:pointer;

    font-size:26px;


    display:flex;

    align-items:center;

    justify-content:center;


    color:white;

    background:rgba(0,0,0,.45);

    z-index:100;

}



.nav:hover {

    background:rgba(0,0,0,.75);

}



/* ========================= */
/* MOBILE */
/* ========================= */


@media(max-width:700px){


    .comic {

        gap:.5rem;

    }


    .book {

        width:85vw;

        height:65vh;

    }


    .nav {

        width:40px;

        height:40px;

        font-size:20px;

    }

}

/*  ba slider */



.ba-compare {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}


/* KEY FIX: images are NOT absolute anymore */
.ba-compare img {
  width: 100%;
  height: auto;
  display: block;
  user-drag: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* overlay second image on top */
.ba-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  object-fit: cover;
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.ba-after {
  position: relative;
  z-index: 1;
}

/* handle 
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  z-index: 10;
}*/

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 44px;
  height: 100%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: ew-resize;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* the visible “bar” */
.ba-handle::before {
  content: "";
  position: absolute;
  width: 3px;
  height: 100%;
  background: white;
  opacity: 0.9;
}

/* the arrow indicator */
.ba-arrows {
  position: relative;
  font-size: 18px;
  color: rgb(0, 0, 0);
  background: rgba(255, 255, 255, 0.45);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

/* optional hover feedback */
.ba-compare:hover .ba-arrows {
  transform: scale(1.05);
  transition: 0.2s ease;
}

/* slider */
.comparison-slider {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}


/* BOTH videos fixed, identical, no layout influence */
.comparison-slider video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* BEFORE stays static underneath */
.before {
  z-index: 1;
}

/* AFTER is clipped (THIS is the key) */
.after {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

/* slider line */
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: white;
  transform: translateX(-50%);
  z-index: 10;
}


/* =========================
   MAIN LAYOUT
   ========================= */

.image-story-layout {
  display: flex;
}


/* =========================
   LEFT COLUMN
   ========================= */

.image-story-layout .image-panel {
  width: 33.333%;
  position: relative; /* IMPORTANT */
}


/* =========================
   RIGHT COLUMN
   ========================= */

.image-story-layout .text-panel {
  width: 66.666%;
  padding-left: 20px;
}


/* =========================
   SCROLL AREA (ABSOLUTE FIX)
   ========================= */

.image-story-layout .image-scroll {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  overflow-y: auto;
}


/* =========================
   IMAGE
   ========================= */

.image-story-layout .image-scroll img {
  width: 100%;
  height: auto;
  display: block;
}

.image-story-layout .text-panel img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

html {
	scroll-behavior: smooth;
	container-type: scroll-state;
  container-name: scroller;
}

.to-top {
	position: fixed;
	bottom: 20px;
	right: 20px;
	translate: 80px 0;
  transition: all 0.4s ease, border-color 0.4s ease;
}

@container scroller scroll-state(scrollable: top) {
  .to-top {
    translate: 0 0;
  }
}






/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
  .image-story-layout {
    flex-direction: column;
  }

  .image-story-layout .image-panel,
  .image-story-layout .text-panel {
    width: 100%;
  }

  .image-story-layout .text-panel {
    padding-left: 0;
  }

  .image-story-layout .image-scroll {
    position: relative;
    max-height: 60vh;
    overflow-y: auto;
  }
}
    /* Footer */
    footer {
      padding: 30px 0;
      text-align: center;
    }
    footer a {
      margin-left: 10px;
      display: inline-block;
    }
    footer img {
      width: 24px;
      height: 24px;
      vertical-align: middle;
    }


    /* Responsive tweaks */
    @media (max-width: 1500px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 475px);
  }
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 475px;
justify-content: center;
  }
}
    @media (max-width: 600px) {
      .menu-right a {
        margin-left: 15px;
        font-size: 14px;
      }
      .container {
        padding: 0 20px;
      }
      .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      }
    }

    @media (max-width: 700px) {
  .multi-col {
    flex-direction: column;
  }

  @media (max-width: 768px) {
  .narrower-video {
    width: 100%;
  }


}

  .multi-co-narrowl > * {
flex: 1;
}

/* MOBILE: stack vertically */
@media (max-width: 768px) {
.multi-col-narrow {
flex-direction: column;
}

