/* ==========================================
   CORNELY PROJECTS - COMPLETE UPDATED CSS
   Transparent background / No outer spacing
   ========================================== */

#cornely-projects {
  --cp-gap: 22px;
  --cp-image-width: 260px;     /* bari image (pehle 215px) */
  --cp-image-height: 215px;    /* pehle 180px */
  --cp-blue: #69B3D0;
  --cp-white: #FFFFFF;

  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--cp-white);
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

#cornely-projects *,
#cornely-projects *::before,
#cornely-projects *::after {
  box-sizing: border-box;
}

#cornely-projects .cp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  width: 100%;
  min-width: 0;
  min-height: 345px;
  margin: 0;
  padding: 0;
}

/* LEFT CONTENT AND TIMELINE */

#cornely-projects .cp-content {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: stretch;
  column-gap: 25px;
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
}

#cornely-projects .cp-number-wrap,
#cornely-projects .cp-number {
  display: none;
}

#cornely-projects .cp-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
}

#cornely-projects .cp-title {
  margin: 0 0 20px;
  padding: 0;
  color: #FFFFFF;
  font-family: "MADE Awelier PERSONAL USE", sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 1px;
}

#cornely-projects .cp-heading {
  margin: 0 0 14px;
  padding: 0;
  color: #FFFFFF;
  font-family: "MADE Awelier PERSONAL USE", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

#cornely-projects .cp-description {
  margin: 0 0 16px;
  padding: 0;
  color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.48;
}

/* BUTTON */

#cornely-projects .cp-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 16px 30px;
  border: 0;
  border-radius: 30px;
  background: var(--cp-blue);
  color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#cornely-projects .cp-button:hover {
  background: #FFFFFF;
  color: #242424;
}

#cornely-projects .cp-button svg {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform 0.3s ease;
}

#cornely-projects .cp-button:hover svg {
  transform: translateX(4px);
}

/* VERTICAL CONNECTING LINE AND FOUR FIXED POINTS */

#cornely-projects .cp-dots {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  min-height: 260px;
  margin: 0;
  padding: 0;
}

#cornely-projects .cp-dots::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.30);
  transform: translateX(-50%);
  pointer-events: none;
}

/* PERFECT CIRCLE FIX & SOFT LIGHT SHADOW */
#cornely-projects .cp-dot {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#cornely-projects .cp-dot span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  color: transparent;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

#cornely-projects .cp-dot.is-active span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #242424;
  border: 3px solid rgba(255, 255, 255, 0.28);
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.10),
              0 0 16px rgba(255, 255, 255, 0.45);
}

#cornely-projects .cp-dot:hover span {
  background: #FFFFFF;
}

#cornely-projects .cp-dot.is-active:hover span {
  background: #FFFFFF;
  color: #242424;
}

/* RIGHT CAROUSEL - EXACT FIT FOR 2 FULL + 1 HALF IMAGE, NO RIGHT EXTRA SPACING */

#cornely-projects .cp-gallery {
  justify-self: start;
  align-self: center;
  position: relative;
  width: calc((var(--cp-image-width) * 2.5) + (var(--cp-gap) * 2));
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

#cornely-projects .cp-gallery.cp-dragging {
  cursor: grabbing;
}

#cornely-projects .cp-track {
  display: flex;
  align-items: flex-start;
  gap: var(--cp-gap);
  width: max-content;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: translate3d(0, 0, 0);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

#cornely-projects .cp-gallery.cp-dragging .cp-track {
  transition: none;
}

/* SLIDE = image frame + neeche detail */
#cornely-projects .cp-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--cp-image-width);
  width: var(--cp-image-width);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

#cornely-projects .cp-frame {
  position: relative;
  display: block;
  width: 100%;
  height: var(--cp-image-height);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

#cornely-projects .cp-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 9px;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* SEGMENTED BOTTOM PROGRESS (4 SEPARATE BARS) */

#cornely-projects .cp-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(220px, 100%);
  height: 3px;
  margin: 24px 0 0;
  padding: 0;
}

#cornely-projects .cp-progress-segment {
  flex: 1;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
  transition: background-color 0.35s ease, opacity 0.35s ease;
}

#cornely-projects .cp-progress-segment.is-active {
  background: var(--cp-blue);
}

/* CONTENT ANIMATION */

#cornely-projects .cp-content.is-changing .cp-copy {
  animation: cpTextIn 0.4s ease both;
}

@keyframes cpTextIn {
  from {
    opacity: 0.65;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TABLET */

@media (max-width: 1024px) {
  #cornely-projects {
    --cp-gap: 16px;
    --cp-image-width: 205px;
    --cp-image-height: 170px;
  }

  /* tablet: text upar, images neeche (mobile jaisa) – text column ab dabta nahi */
  #cornely-projects .cp-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    min-height: 0;
  }

  #cornely-projects .cp-gallery {
    width: 100%;
  }

  #cornely-projects .cp-content {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 15px;
    width: 100%;
  }

  #cornely-projects .cp-title {
    margin-bottom: 15px;
    font-size: 38px;
  }

  #cornely-projects .cp-heading {
    font-size: 25px;
  }

  #cornely-projects .cp-description {
    font-size: 15px;
  }

  #cornely-projects .cp-button {
    padding: 13px 23px;
    font-size: 15px;
  }

  #cornely-projects .cp-dots {
    min-height: 240px;
  }

  #cornely-projects .cp-dot,
  #cornely-projects .cp-dot.is-active span {
    width: 34px;
    height: 34px;
  }

  #cornely-projects .cp-progress {
    margin-top: 22px;
  }
}

/* MOBILE */

@media (max-width: 767px) {
  #cornely-projects {
    --cp-gap: 12px;
    --cp-image-width: 72vw;
    --cp-image-height: 54vw;
  }

  #cornely-projects .cp-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 25px;
    min-height: 0;
  }

  #cornely-projects .cp-content {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 12px;
    width: 100%;
  }

  #cornely-projects .cp-title {
    margin-bottom: 13px;
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.15;
    letter-spacing: 0.5px;
  }

  #cornely-projects .cp-heading {
    margin-bottom: 12px;
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.3;
  }

  #cornely-projects .cp-description {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  #cornely-projects .cp-button {
    gap: 8px;
    padding: 13px 21px;
    font-size: 14px;
  }

  #cornely-projects .cp-dots {
    min-height: 100%;
  }

  #cornely-projects .cp-dot,
  #cornely-projects .cp-dot.is-active span {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  #cornely-projects .cp-gallery {
    width: 100%;
  }

  #cornely-projects .cp-progress {
    width: 125px;
    margin-top: 17px;
  }
}

@media (max-width: 380px) {
  #cornely-projects {
    --cp-image-width: 74vw;
    --cp-image-height: 56vw;
  }

  #cornely-projects .cp-content {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 9px;
  }

  #cornely-projects .cp-title {
    font-size: 29px;
  }

  #cornely-projects .cp-heading {
    font-size: 21px;
  }

  #cornely-projects .cp-description {
    font-size: 13px;
  }

  #cornely-projects .cp-button {
    padding: 12px 17px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cornely-projects *,
  #cornely-projects *::before,
  #cornely-projects *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   >>> ENHANCEMENTS (hover, animations, detail, lightbox)
   ========================================================================== */

/* ---------- Image ke neeche chhoti detail ---------- */
#cornely-projects .cp-info {
  margin-top: 16px;
  padding: 0 2px;
}
#cornely-projects .cp-info-title {
  margin: 0 0 5px;
  padding: 0;
  color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  transition: color 0.35s ease;
}
#cornely-projects .cp-info-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  padding: 0;
  color: var(--cp-blue);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
}
#cornely-projects .cp-info-loc[hidden] { display: none !important; }
#cornely-projects .cp-info-loc::before {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/></svg>") center / contain no-repeat;
}
#cornely-projects .cp-info-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- Image hover effect ---------- */
/* gallery ke upar thodi jagah, taake hover par image upar uthne par kate nahi (layout nahi badalta) */
#cornely-projects .cp-gallery {
  padding-top: 16px;
  margin-top: -16px;
}

#cornely-projects .cp-slide {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
#cornely-projects .cp-frame {
  transition: border-color 0.4s ease, box-shadow 0.55s ease;
}
#cornely-projects .cp-frame img {
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

#cornely-projects .cp-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 18, 28, 0.78), rgba(8, 18, 28, 0) 62%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
#cornely-projects .cp-frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 40%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-22deg);
  opacity: 0;
}

#cornely-projects .cp-zoom {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #FFFFFF;
  opacity: 0;
  transform: scale(0.4) rotate(-45deg);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
#cornely-projects .cp-zoom svg { display: block; width: 22px; height: 22px; }

#cornely-projects .cp-cap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#cornely-projects .cp-cap b {
  padding: 4px 8px;
  border-radius: 20px;
  background: var(--cp-blue);
  font-weight: 600;
}
#cornely-projects .cp-cap em { font-style: normal; font-weight: 500; }

#cornely-projects .cp-slide:hover,
#cornely-projects .cp-slide:focus-visible {
  transform: translateY(-6px);
  outline: none;
}
#cornely-projects .cp-slide:hover .cp-frame,
#cornely-projects .cp-slide:focus-visible .cp-frame {
  border-color: rgba(105, 179, 208, 0.95);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.7),
              0 0 0 1px rgba(105, 179, 208, 0.45),
              0 0 26px rgba(105, 179, 208, 0.3);
}
#cornely-projects .cp-slide:hover .cp-frame img,
#cornely-projects .cp-slide:focus-visible .cp-frame img {
  transform: scale(1.12);
  filter: saturate(1.15) brightness(1.04);
}
#cornely-projects .cp-slide:hover .cp-frame::before,
#cornely-projects .cp-slide:focus-visible .cp-frame::before { opacity: 1; }
#cornely-projects .cp-slide:hover .cp-frame::after,
#cornely-projects .cp-slide:focus-visible .cp-frame::after { animation: cpShine 0.95s ease 0.05s forwards; }
#cornely-projects .cp-slide:hover .cp-zoom,
#cornely-projects .cp-slide:focus-visible .cp-zoom { opacity: 1; transform: scale(1) rotate(0); }
#cornely-projects .cp-slide:hover .cp-cap,
#cornely-projects .cp-slide:focus-visible .cp-cap { opacity: 1; transform: none; }
#cornely-projects .cp-slide:hover .cp-info-title,
#cornely-projects .cp-slide:focus-visible .cp-info-title { color: var(--cp-blue); }

@keyframes cpShine {
  0%   { left: -70%; opacity: 1; }
  100% { left: 130%; opacity: 1; }
}

/* touch devices: hover nahi hota, isliye chhota expand badge hamesha dikhta hai */
@media (hover: none) {
  #cornely-projects .cp-zoom {
    top: 10px;
    left: auto;
    right: 10px;
    width: 34px;
    height: 34px;
    margin: 0;
    opacity: 1;
    transform: none;
  }
  #cornely-projects .cp-zoom svg { width: 16px; height: 16px; }
  #cornely-projects .cp-cap { display: none; }
}

@media (max-width: 767px) {
  #cornely-projects .cp-info { margin-top: 13px; }
  #cornely-projects .cp-info-title { font-size: 15.5px; }
  #cornely-projects .cp-info-desc { font-size: 12.5px; }
}

/* ---------- Entrance animations (section nazar aate hi) ---------- */
#cornely-projects.cp-js:not(.cp-in) .cp-copy > *,
#cornely-projects.cp-js:not(.cp-in) .cp-slide,
#cornely-projects.cp-js:not(.cp-in) .cp-dot,
#cornely-projects.cp-js:not(.cp-in) .cp-progress { opacity: 0; }

#cornely-projects.cp-in .cp-copy > * { animation: cpUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
#cornely-projects.cp-in .cp-copy > :nth-child(1) { animation-delay: 0.05s; }
#cornely-projects.cp-in .cp-copy > :nth-child(2) { animation-delay: 0.18s; }
#cornely-projects.cp-in .cp-copy > :nth-child(3) { animation-delay: 0.3s; }
#cornely-projects.cp-in .cp-copy > :nth-child(4) { animation-delay: 0.42s; }

#cornely-projects.cp-in .cp-slide {
  animation: cpSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(0.25s + var(--i, 0) * 0.12s);
}
#cornely-projects.cp-in .cp-dot {
  animation: cpPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
  animation-delay: calc(0.1s + var(--di, 0) * 0.1s);
}
#cornely-projects.cp-in .cp-dot:nth-child(1) { --di: 0; }
#cornely-projects.cp-in .cp-dot:nth-child(2) { --di: 1; }
#cornely-projects.cp-in .cp-dot:nth-child(3) { --di: 2; }
#cornely-projects.cp-in .cp-dot:nth-child(4) { --di: 3; }
#cornely-projects.cp-in .cp-progress { animation: cpUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.7s backwards; }
#cornely-projects.cp-in .cp-dots::before { animation: cpLineIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

@keyframes cpUp      { from { opacity: 0; translate: 0 26px; } }
@keyframes cpSlideIn { from { opacity: 0; translate: 0 34px; scale: 0.92; } }
@keyframes cpPop     { from { opacity: 0; scale: 0.3; } }
@keyframes cpLineIn  { from { scale: 1 0; } }

/* ---------- Timeline, dots, progress ---------- */
#cornely-projects .cp-dots::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 2px;
  height: calc(8px + var(--cp-p, 0) * (100% - 40px));
  background: linear-gradient(to bottom, var(--cp-blue), #FFFFFF);
  transform: translateX(-50%);
  border-radius: 2px;
  transition: height 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#cornely-projects .cp-dot.is-active span { position: relative; }
#cornely-projects .cp-dot.is-active span::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  animation: cpRing 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes cpRing {
  0%   { transform: scale(0.82); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
#cornely-projects .cp-dot:not(.is-active):hover span {
  width: 15px;
  height: 15px;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

#cornely-projects .cp-progress-segment {
  position: relative;
  overflow: hidden;
}
#cornely-projects .cp-progress-segment.is-active { background: rgba(255, 255, 255, 0.45); }
#cornely-projects .cp-progress-segment.is-done { background: rgba(105, 179, 208, 0.6); }
#cornely-projects .cp-progress-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cp-blue);
  transform: scaleX(0);
  transform-origin: left center;
}
#cornely-projects .cp-progress-segment.is-fill::after {
  animation: cpFill var(--cp-delay, 3.5s) linear forwards;
}
@keyframes cpFill { to { transform: scaleX(1); } }

/* ---------- "Discover Properties" button par chamak ---------- */
#cornely-projects .cp-button { position: relative; overflow: hidden; }
#cornely-projects .cp-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-22deg);
  opacity: 0;
  pointer-events: none;
}
#cornely-projects .cp-button:hover::after { animation: cpShine 0.9s ease forwards; }

/* ---------- LIGHTBOX (click par bada image viewer + poori detail) ---------- */
html.cp-lb-lock { overflow: hidden !important; }

.cp-lb {
  --cp-lb-acc: #69B3D0;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  visibility: hidden;
  pointer-events: none;
  font-family: "Poppins", sans-serif;
}
.cp-lb *, .cp-lb *::before, .cp-lb *::after { box-sizing: border-box; }
.cp-lb.is-open { visibility: visible; pointer-events: auto; }

.cp-lb-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 40% 40%, rgba(14, 26, 38, 0.86), rgba(4, 8, 14, 0.94));
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  opacity: 0;
  transition: opacity 0.55s ease;
}
.cp-lb.is-open .cp-lb-bg { opacity: 1; }
.cp-lb.is-closing .cp-lb-bg { opacity: 0; }

.cp-lb-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }

.cp-lb-img {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: left 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease,
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.cp-lb-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  color: #FFFFFF;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease 0.3s,
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s,
              background-color 0.3s ease,
              border-color 0.3s ease;
}
.cp-lb-btn svg { display: block; width: 22px; height: 22px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.cp-lb.is-ready .cp-lb-btn { opacity: 1; transform: none; }
.cp-lb-btn:hover,
.cp-lb-btn:focus-visible { background: var(--cp-lb-acc); border-color: var(--cp-lb-acc); outline: none; }

.cp-lb-close { top: 26px; right: 30px; }
.cp-lb-close:hover svg { transform: rotate(90deg); }
.cp-lb-prev  { left: 30px;  top: 50%; margin-top: -26px; }
.cp-lb-next  { right: 30px; top: 50%; margin-top: -26px; }
.cp-lb-prev:hover svg { transform: translateX(-3px); }
.cp-lb-next:hover svg { transform: translateX(3px); }

/* neeche ki bars */
.cp-lb-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease 0.35s, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.cp-lb.is-ready .cp-lb-info { opacity: 1; transform: none; }
.cp-lb-bars { display: flex; gap: 8px; width: min(260px, 70vw); }
.cp-lb-bar {
  position: relative;
  flex: 1;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background-color 0.35s ease, transform 0.3s ease;
}
.cp-lb-bar::before { content: ""; position: absolute; inset: -10px 0; }
.cp-lb-bar:hover { transform: scaleY(1.8); }
.cp-lb-bar.is-active { background: var(--cp-lb-acc); }

/* DETAIL PANEL */
.cp-lb-panel {
  position: absolute;
  right: 40px;
  top: 50%;
  width: 340px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  padding: 28px 28px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  opacity: 0;
  transform: translate(46px, -50%);
  transition: opacity 0.6s ease 0.45s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}
.cp-lb.is-ready .cp-lb-panel { opacity: 1; transform: translate(0, -50%); }
.cp-lb.is-closing .cp-lb-panel { transition-delay: 0s; }

.cp-lb-panel > * { transition: opacity 0.25s ease, transform 0.35s ease; }
.cp-lb-panel.is-swap > * { opacity: 0; transform: translateY(10px); }

.cp-lb-count {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--cp-lb-acc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.cp-lb-title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}
.cp-lb-loc {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--cp-lb-acc);
  font-size: 14px;
  font-weight: 500;
}
.cp-lb-loc::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/></svg>") center / contain no-repeat;
}
.cp-lb-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.65;
}

/* desktop: image left me, panel right me */
@media (min-width: 1024px) {
  .cp-lb-next { right: 430px; }
  .cp-lb-info { right: 400px; }
}

/* tablet + mobile: panel image ke neeche */
@media (max-width: 1023px) {
  .cp-lb-panel {
    top: auto;
    left: 24px;
    right: 24px;
    bottom: 150px;
    width: auto;
    max-height: 38vh;
    padding: 18px 20px;
    transform: translateY(30px);
  }
  .cp-lb.is-ready .cp-lb-panel { transform: none; }
  .cp-lb-count { margin-bottom: 10px; }
  .cp-lb-title { font-size: 21px; }
  .cp-lb-desc { margin-bottom: 0; font-size: 14px; line-height: 1.55; }
  .cp-lb-prev, .cp-lb-next { top: auto; bottom: 84px; margin: 0; }
  .cp-lb-prev { left: calc(50% - 60px); }
  .cp-lb-next { right: auto; left: calc(50% + 14px); }
  .cp-lb-info { bottom: 40px; right: 0; }
  .cp-lb-btn { width: 46px; height: 46px; }
  .cp-lb-close { top: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-lb-img, .cp-lb-bg, .cp-lb-btn, .cp-lb-info, .cp-lb-panel, .cp-lb-panel > * { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}

/* ==========================================================================
   >>> SPEED TUNING: sab animations tez kiye gaye hain
   (JS ki speed script ke upar AUTO_PLAY_DELAY, SLIDE_MS, LB_MS me hai. CSS ki speed yahan hai.
    SLIDE_MS ko .cp-track ke transition se, aur LB_MS ko .cp-lb-img ke transition se match rakho.)
   ========================================================================== */
#cornely-projects .cp-track { transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1); }
#cornely-projects .cp-content.is-changing .cp-copy { animation-duration: 0.28s; }
#cornely-projects .cp-dots::after { transition: height 0.48s cubic-bezier(0.22, 1, 0.36, 1); }

/* hover */
#cornely-projects .cp-slide { transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1); }
#cornely-projects .cp-frame { transition: border-color 0.3s ease, box-shadow 0.4s ease; }
#cornely-projects .cp-frame img { transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease; }
#cornely-projects .cp-frame::before { transition: opacity 0.35s ease; }
#cornely-projects .cp-zoom { transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
#cornely-projects .cp-cap { transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
#cornely-projects .cp-slide:hover .cp-frame::after,
#cornely-projects .cp-slide:focus-visible .cp-frame::after { animation-duration: 0.7s; animation-delay: 0s; }

/* entrance (section nazar aate hi) */
#cornely-projects.cp-in .cp-copy > * { animation-duration: 0.7s; }
#cornely-projects.cp-in .cp-copy > :nth-child(1) { animation-delay: 0.02s; }
#cornely-projects.cp-in .cp-copy > :nth-child(2) { animation-delay: 0.1s; }
#cornely-projects.cp-in .cp-copy > :nth-child(3) { animation-delay: 0.18s; }
#cornely-projects.cp-in .cp-copy > :nth-child(4) { animation-delay: 0.26s; }
#cornely-projects.cp-in .cp-slide { animation-duration: 0.7s; animation-delay: calc(0.12s + var(--i, 0) * 0.08s); }
#cornely-projects.cp-in .cp-dot { animation-duration: 0.5s; animation-delay: calc(0.05s + var(--di, 0) * 0.07s); }
#cornely-projects.cp-in .cp-progress { animation-duration: 0.6s; animation-delay: 0.4s; }
#cornely-projects.cp-in .cp-dots::before { animation-duration: 0.8s; }

/* bada viewer (lightbox) */
.cp-lb-bg { transition: opacity 0.4s ease; }
.cp-lb-img {
  transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              top 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.35s ease,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cp-lb-btn {
  transition: opacity 0.35s ease 0.15s,
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s,
              background-color 0.25s ease,
              border-color 0.25s ease;
}
.cp-lb-info { transition: opacity 0.35s ease 0.2s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.cp-lb-panel { transition: opacity 0.4s ease 0.25s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.25s; }
.cp-lb.is-closing .cp-lb-panel { transition-delay: 0s; }
.cp-lb-panel > * { transition: opacity 0.2s ease, transform 0.25s ease; }

/* auto slide band ho to active progress segment seedha blue */
#cornely-projects[data-cp-autoplay="0"] .cp-progress-segment.is-active { background: var(--cp-blue); }
#cornely-projects[data-cp-lightbox="0"] .cp-gallery { cursor: grab; }

/* ---------- Project link (card + viewer) ---------- */
#cornely-projects .cp-info-link,
.cp-lb-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--cp-blue, #69B3D0);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.3s ease, gap 0.3s ease;
}
#cornely-projects .cp-info-link svg,
.cp-lb-link svg { display: block; width: 14px; height: 14px; flex: 0 0 14px; transition: transform 0.3s ease; }
#cornely-projects .cp-info-link:hover svg,
.cp-lb-link:hover svg { transform: translateX(4px); }
#cornely-projects .cp-info-link:hover,
.cp-lb-link:hover { color: #FFFFFF; }
.cp-lb-link { margin-top: 18px; font-size: 15px; color: var(--cp-lb-acc, #69B3D0); }
.cp-lb-link[hidden] { display: none !important; }

/* ==========================================================================
   v1.5 : timeline hide, bottom navigation (dots / arrows), background
   ========================================================================== */

/* timeline hidden: text uses the full width */
#cornely-projects.cp-no-timeline .cp-content { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
#cornely-projects.cp-no-timeline .cp-copy { grid-column: 1; }

/* bottom navigation wrapper (dots / arrows) */
#cornely-projects .cp-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 0;
}
#cornely-projects .cp-nav .cp-progress { margin: 0; }

/* dots style */
#cornely-projects .cp-progress--dots {
  width: auto;
  height: auto;
  gap: 10px;
}
#cornely-projects .cp-progress--dots .cp-progress-segment {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transition: width 0.35s ease, background-color 0.35s ease, border-radius 0.35s ease;
}
#cornely-projects .cp-progress--dots .cp-progress-segment.is-active {
  width: 28px;
  border-radius: 9px;
}

/* arrows */
#cornely-projects .cp-arrow {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background-color: transparent;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
#cornely-projects .cp-arrow svg { display: block; width: 18px; height: 18px; }
#cornely-projects .cp-arrow:hover {
  background-color: #FFFFFF;
  border-color: #FFFFFF;
  color: #242424;
}
#cornely-projects .cp-arrow-prev:hover { transform: translateX(-2px); }
#cornely-projects .cp-arrow-next:hover { transform: translateX(2px); }
#cornely-projects .cp-arrow:focus-visible { outline: 2px solid var(--cp-blue); outline-offset: 3px; }

/* entrance animation for the new wrapper */
#cornely-projects.cp-js:not(.cp-in) .cp-nav { opacity: 0; }
#cornely-projects.cp-in .cp-nav { animation: cpUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.7s backwards; }

@media (max-width: 1024px) { #cornely-projects .cp-nav { margin-top: 22px; } }
@media (max-width: 767px) {
  #cornely-projects .cp-nav { margin-top: 17px; gap: 12px; }
  #cornely-projects .cp-arrow { flex-basis: 38px; width: 38px; height: 38px; }
}

/* sub heading (heading ke baad, description se pehle) */
#cornely-projects .cp-subheading {
  margin: 0 0 14px;
  padding: 0;
  color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
@media (max-width: 1024px) { #cornely-projects .cp-subheading { font-size: 17px; } }
@media (max-width: 767px)  { #cornely-projects .cp-subheading { margin-bottom: 12px; font-size: 16px; } }

/* background video (dashboard: Section background > video) */
.cp-bgvideo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cp-bgvideo video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cp-bgvideo-shade { position: absolute; inset: 0; }
