@font-face {
  font-family: "IntraNet";
  src: url("../font/IntraNet/IntraNet.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================= */
/* RESET */
/* ========================= */
* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  overflow: hidden;
}

body {
  cursor: default;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px),
    radial-gradient(circle at 48% 42%, rgba(255,255,255,0.055), transparent 36%),
    #000;
  background-size: 68px 68px, 68px 68px, 100% 100%, 100% 100%;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.045), transparent 28%),
    linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.62)),
    repeating-linear-gradient(to bottom, transparent 0 9px, rgba(255,255,255,0.017) 10px 11px);
}

/* ========================= */
/* HEADER - SAME FEEL AS WORKS */
/* ========================= */
#mainHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 128px;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.68) 42%,
    rgba(0,0,0,0.24) 72%,
    rgba(0,0,0,0) 100%
  );
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.porto-open #mainHeader {
  opacity: 0;
  transform: translateY(-26px);
  pointer-events: none;
}

#mainHeader nav { pointer-events: auto; }

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 200px;
  list-style: none;
  padding: 15px 40px;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  backdrop-filter: none !important;
}

nav a {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 200;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  overflow: hidden;
  transition: color 0.3s ease;
  z-index: 1;
}

nav a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: #fff;
  z-index: -1;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

nav a:hover::before { height: 100%; }
nav a:hover span { color: #000; }

/* ========================= */
/* BACK BUTTON */
/* ========================= */
.category-back {
  position: fixed;
  left: 38px;
  top: 48px;
  z-index: 1002;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 14px 9px 13px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1;
  text-transform: uppercase;
  background: transparent;
  border: 0 !important;
  border-radius: 0;
  backdrop-filter: none;
  opacity: 0.92;
  transition:
    background 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.32s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-back::before {
  content: "←";
  font-size: 13px;
  letter-spacing: 0;
  transform: translateY(-1px);
}

.category-back:hover {
  color: #000;
  background: #fff;
  border-color: #fff;
  opacity: 1;
  transform: translateX(-4px);
}

body.porto-open .category-back {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
}

/* ========================= */
/* LABEL */
/* ========================= */
.category-label {
  position: fixed;
  left: 38px;
  bottom: 34px;
  z-index: 50;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.porto-open .category-label {
  opacity: 0;
  transform: translateY(18px);
}

.category-label span {
  display: block;
  font-size: 11px;
  letter-spacing: 8px;
  font-weight: 300;
  opacity: 0.58;
}

.category-label h1 {
  margin: 13px 0 0;
  font-size: clamp(34px, 5vw, 76px);
  font-weight: 180;
  letter-spacing: 7px;
  line-height: 0.95;
  text-transform: uppercase;
}

.category-instruction {
  position: fixed;
  right: 38px;
  bottom: 39px;
  z-index: 50;
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  letter-spacing: 5px;
  font-weight: 300;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

body.porto-open .category-instruction { opacity: 0; }

/* ========================= */
/* EXPLORE DISPLAY / DRAG 4 ARAH */
/* ========================= */
.porto-page {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.explore-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

.explore-stage.is-dragging { cursor: grabbing; }

.explore-world {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.explore-segment {
  position: absolute;
  left: 0;
  top: 0;
}

.explore-item {
  position: absolute;
  overflow: hidden;
  background: #070707;
  border: 1px solid rgba(255,255,255,0.28);
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.98);
  animation: exploreIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.explore-item:nth-child(3n + 1) { animation-delay: 0.08s; }
.explore-item:nth-child(3n + 2) { animation-delay: 0.16s; }
.explore-item:nth-child(3n + 3) { animation-delay: 0.24s; }

@keyframes exploreIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.explore-item img,
.explore-cover {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  filter: none;
  transform: scale(1.05);
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s ease,
    opacity 0.45s ease;
}

.explore-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.10), transparent 28%, rgba(0,0,0,0.36)),
    repeating-linear-gradient(to bottom, transparent 0 9px, rgba(255,255,255,0.035) 10px 11px);
  opacity: 0.48;
  mix-blend-mode: screen;
  transition: opacity 0.35s ease;
}

.explore-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0);
  transition: border-color 0.35s ease, background 0.35s ease;
}

.explore-item:hover img,
.explore-item:hover .explore-cover {
  filter: none;
  transform: scale(1.06);
}

.explore-item:hover::before { opacity: 0.58; }
.explore-item:hover::after {
  border-color: rgba(255,255,255,0.86);
  background: rgba(255,255,255,0.035);
}

.explore-item:focus-visible {
  outline: 1px solid rgba(255,255,255,0.95);
  outline-offset: -6px;
}

/* cover fallback patterns */
.pattern-a {
  background:
    radial-gradient(circle at 48% 44%, rgba(255,255,255,0.45), transparent 18%),
    linear-gradient(90deg, transparent 0 44%, rgba(255,255,255,0.7) 45% 47%, transparent 48% 100%),
    linear-gradient(135deg, #030303, #303030 48%, #080808);
}
.pattern-b {
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(255,255,255,0.66) 36% 37%, transparent 38% 100%),
    radial-gradient(circle at 72% 24%, rgba(255,255,255,0.48), transparent 20%),
    linear-gradient(160deg, #0a0a0a, #3a3a3a 50%, #040404);
}
.pattern-c {
  background:
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,0.16) 25px 26px),
    radial-gradient(ellipse at 36% 67%, rgba(255,255,255,0.44), transparent 24%),
    linear-gradient(18deg, #040404, #292929, #070707);
}
.pattern-d { background: conic-gradient(from 35deg at 50% 50%, #050505, #3b3b3b, #090909, #626262, #050505), #000; }
.pattern-e {
  background:
    linear-gradient(rgba(255,255,255,0.22) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255,255,255,0.22) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 55% 42%, rgba(255,255,255,0.48), transparent 26%),
    linear-gradient(135deg, #050505, #303030, #080808);
  background-size: 44px 44px, 44px 44px, 100% 100%, 100% 100%;
}
.pattern-f { background: repeating-linear-gradient(-18deg, rgba(255,255,255,0.15) 0 2px, transparent 2px 18px), linear-gradient(128deg, #050505, #404040 50%, #080808); }
.pattern-g { background: radial-gradient(circle at 18% 18%, rgba(255,255,255,0.52), transparent 18%), radial-gradient(circle at 76% 74%, rgba(255,255,255,0.42), transparent 24%), linear-gradient(90deg, #050505, #1d1d1d, #050505); }
.pattern-h { background: linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,0.72) 49% 51%, transparent 52% 100%), radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.5), transparent 20%), radial-gradient(circle at 50% 74%, rgba(255,255,255,0.3), transparent 28%), linear-gradient(180deg, #161616, #030303); }
.pattern-i { background: linear-gradient(18deg, transparent 0 34%, rgba(255,255,255,0.72) 35% 37%, transparent 38% 100%), radial-gradient(circle at 42% 38%, rgba(255,255,255,0.42), transparent 18%), radial-gradient(circle at 64% 74%, rgba(255,255,255,0.28), transparent 25%), #050505; }
.pattern-j { background: repeating-linear-gradient(0deg, rgba(255,255,255,0.11) 0 1px, transparent 1px 15px), linear-gradient(110deg, #090909, #454545 42%, #060606 70%); }

/* ========================= */
/* MODAL / POPUP DETAIL - SCROLLABLE PROJECT PAGE */
/* ========================= */
.porto-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 108px 92px 74px;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.porto-modal::-webkit-scrollbar {
  width: 6px;
}

.porto-modal::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.porto-modal::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.42);
}

body.porto-open .porto-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.porto-modal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 42px;
  align-items: start;
  width: min(1180px, 100%);
  min-height: calc(100vh - 182px);
  margin: 0 auto;
  transform: translateY(34px) scale(0.985);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
}

body.porto-open .porto-modal-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.porto-modal-visual {
  position: sticky;
  top: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  background: #050505;
  min-height: 420px;
  height: min(760px, calc(100vh - 182px));
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
}

.modal-cover img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  filter: none;
  background: #050505;
}

.porto-modal-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 182px);
  padding: 18px 0 90px;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.32);
  border-bottom: 1px solid rgba(255,255,255,0.32);
}

.modal-type {
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: 7px;
  opacity: 0.68;
  text-transform: uppercase;
}

.porto-modal-info h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 82px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.modal-meta {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 5px;
  opacity: 0.55;
}

.modal-desc {
  max-width: 560px;
  margin-top: 38px;
  padding-bottom: 34px;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  white-space: pre-line;
}

.porto-close,
.porto-nav {
  position: fixed;
  z-index: 10000;
  background: rgba(0,0,0,0.18);
  color: #fff;
  border: 0 !important;
  border-radius: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 3px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.porto-close { top: 34px; right: 38px; padding: 12px 18px; }
.porto-nav { top: 50%; transform: translateY(-50%); padding: 14px 18px; }
.porto-prev { left: 38px; }
.porto-next { right: 38px; }

.porto-close:hover,
.porto-nav:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

@media (max-width: 900px) {
  nav ul { gap: 42px; padding-inline: 20px; }
  .category-back { left: 18px; top: 22px; }
  .category-label { left: 20px; bottom: 18px; }
  .category-instruction { right: 20px; bottom: 22px; font-size: 9px; letter-spacing: 3px; }

  .porto-modal {
    padding: 82px 18px 112px;
  }

  .porto-modal-inner {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: auto;
    gap: 22px;
  }

  .porto-modal-visual {
    position: relative;
    top: auto;
    min-height: 0;
    height: min(68vh, 620px);
  }

  .porto-modal-info {
    min-height: auto;
    padding: 22px 0 36px;
  }

  .porto-nav { bottom: 24px; top: auto; transform: none; }
  .porto-prev { left: 18px; }
  .porto-next { right: 18px; }
  .porto-close { top: 16px; right: 18px; }
}



/* MODAL */
.porto-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  padding: 96px 92px 62px;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

body.porto-open .porto-modal {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.porto-modal-scroll {
  width: min(1280px, 100%);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.porto-modal-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 42px;
  align-items: stretch;
  width: 100%;
  height: 100%;
  transform: translateY(34px) scale(0.985);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

body.porto-open .porto-modal-inner {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* gambar tetap diam di tempat */
.porto-modal-visual {
  position: sticky;
  top: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.24);
  background: #050505;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-cover img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  filter: none;
  background: #050505;
}

/* yang scroll hanya panel penjelasan */
.porto-modal-info {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 16px 90px 0;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.32);
  border-bottom: 1px solid rgba(255,255,255,0.32);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.42) transparent;
}

.porto-modal-info::-webkit-scrollbar {
  width: 4px;
}

.porto-modal-info::-webkit-scrollbar-track {
  background: transparent;
}

.porto-modal-info::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.42);
}

.modal-type {
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: 7px;
  opacity: 0.68;
  text-transform: uppercase;
}

.porto-modal-info h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 82px);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.modal-meta {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 5px;
  opacity: 0.55;
}

.modal-desc {
  max-width: 560px;
  margin-top: 38px;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(255,255,255,0.76);
  white-space: pre-line;
}

.porto-close,
.porto-nav {
  position: fixed;
  z-index: 10000;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 3px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.porto-close { top: 34px; right: 38px; padding: 12px 18px; }
.porto-nav { top: 50%; transform: translateY(-50%); padding: 14px 18px; }
.porto-prev { left: 38px; }
.porto-next { right: 38px; }

.porto-close:hover,
.porto-nav:hover { background: #fff; color: #000; border-color: #fff; }

@media (max-width: 900px) {
  nav ul { gap: 42px; padding-inline: 20px; }
  .category-back { left: 18px; top: 22px; }
  .category-label { left: 20px; bottom: 18px; }
  .category-instruction { right: 20px; bottom: 22px; font-size: 9px; letter-spacing: 3px; }

  .porto-modal {
    padding: 76px 18px 92px;
  }

  .porto-modal-inner {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 48vh) minmax(0, 1fr);
    gap: 22px;
  }

  .porto-modal-visual {
    min-height: 0;
    padding: 14px;
  }

  .porto-modal-info {
    height: 100%;
    padding: 18px 0 44px;
  }

  .porto-nav { bottom: 24px; top: auto; transform: none; }
  .porto-prev { left: 18px; }
  .porto-next { right: 18px; }
  .porto-close { top: 16px; right: 18px; }
}


/* ========================= */
/* SMOOTH HEAVY DRAG FEEL */
/* ========================= */
.explore-stage {
  cursor: grab;
}

.explore-stage.is-dragging {
  cursor: grabbing;
}

.explore-stage.is-dragging .explore-item {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.explore-world {
  transition: none;
}


/* ========================= */
/* AUTO SCROLL MICRO FEEL */
/* ========================= */
.category-instruction {
  opacity: 0.58;
}

.explore-stage:not(.is-dragging) .explore-item {
  transition:
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s ease,
    border-color 0.35s ease;
}


/* popup text scroll terasa lebih berat */
.porto-modal-info {
  scroll-behavior: auto;
  overscroll-behavior: contain;
}


/* ========================= */
/* HEADER-LIKE HOVER FOR BACK / PREV / NEXT */
/* ========================= */
.category-back,
.porto-prev,
.porto-next {
  position: fixed;
  overflow: hidden;
  isolation: isolate;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #fff !important;
  transition:
    color 0.3s ease,
    opacity 0.3s ease,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* tombol BACK sudah memakai ::before untuk panah, jadi fill pakai ::after */
.category-back::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: #fff;
  z-index: 0;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-back::before,
.category-back span {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.category-back:hover::after {
  height: 100%;
}

.category-back:hover,
.category-back:hover::before,
.category-back:hover span {
  color: #000 !important;
  opacity: 1 !important;
}

/* PREV / NEXT fill seperti hover header */
.porto-prev::before,
.porto-next::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: #fff;
  z-index: -1;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.porto-prev:hover::before,
.porto-next:hover::before {
  height: 100%;
}

.porto-prev:hover,
.porto-next:hover {
  color: #000 !important;
  background: transparent !important;
  opacity: 1 !important;
}

/* beri ruang agar efek fill terlihat seperti nav header */
.porto-prev,
.porto-next {
  padding: 14px 18px !important;
}

.category-back {
  padding: 9px 14px 9px 13px !important;
}


/* ========================= */
/* ANTI OVERLAP DISPLAY UPDATE */
/* ========================= */
.explore-item {
  box-shadow: 0 14px 26px rgba(0,0,0,0.28);
}

.explore-item:hover img,
.explore-item:hover .explore-cover {
  transform: scale(1.06);
}


/* ========================= */
/* LANDSCAPE POPUP VISUAL LAYOUT */
/* ========================= */
.porto-modal.landscape-visual {
  overflow-y: auto;
  overflow-x: hidden;
}

.porto-modal.landscape-visual .porto-modal-scroll {
  height: auto;
  overflow: visible;
}

.porto-modal-inner.landscape-visual {
  display: block;
  width: min(1180px, 100%);
  height: auto;
  min-height: 0;
}

.porto-modal-inner.landscape-visual .porto-modal-visual {
  position: relative;
  top: auto;
  width: 100%;
  height: clamp(280px, 50vw, 620px);
  min-height: 280px;
  margin: 0 auto 34px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #020202;
  overflow: hidden;
}

.porto-modal-inner.landscape-visual .modal-cover {
  width: 100%;
  height: 100%;
  background: #020202;
}

.porto-modal-inner.landscape-visual .modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.porto-modal-inner.landscape-visual .porto-modal-info {
  min-height: 0;
  height: auto;
  overflow: visible;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 0 84px;
  border-top: 0;
  border-bottom: 0;
  text-align: center;
  align-items: center;
}

.porto-modal-inner.landscape-visual .modal-type {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  opacity: 1;
  letter-spacing: normal;
}

.porto-modal-inner.landscape-visual .modal-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.03);
}

.porto-modal-inner.landscape-visual h2 {
  font-size: clamp(42px, 5.4vw, 86px);
  line-height: 0.95;
  letter-spacing: -1.5px;
  margin: 0 0 16px;
  text-align: center;
}

.porto-modal-inner.landscape-visual .modal-meta {
  display: block;
  margin-top: 0;
  margin-bottom: 34px;
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 300;
  letter-spacing: 0;
  opacity: 0.92;
}

.porto-modal-inner.landscape-visual .modal-desc {
  max-width: 780px;
  margin: 0 auto;
  padding-bottom: 18px;
  text-align: left;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(255,255,255,0.88);
}

@media (max-width: 900px) {
  .porto-modal.landscape-visual {
    padding: 76px 18px 108px;
  }

  .porto-modal-inner.landscape-visual .porto-modal-visual {
    height: min(42vh, 340px);
    margin-bottom: 22px;
  }

  .porto-modal-inner.landscape-visual .porto-modal-info {
    max-width: 100%;
    padding-bottom: 48px;
  }

  .porto-modal-inner.landscape-visual h2 {
    font-size: clamp(30px, 8vw, 48px);
  }

  .porto-modal-inner.landscape-visual .modal-meta {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .porto-modal-inner.landscape-visual .modal-desc {
    font-size: 15px;
    line-height: 1.8;
  }
}


/* ========================= */
/* PROJECT TITLE FONT */
/* ========================= */
#modalTitle,
.porto-modal-info h2,
.porto-modal-inner.landscape-visual h2 {
  font-family: "IntraNet", "JetBrains Mono", monospace;
  font-weight: 400;
}


/* ========================= */
/* DETAIL IMAGES IN POPUP */
/* ========================= */
.modal-desc-media {
  width: 100%;
  max-width: 820px;
  margin: 28px auto 0;
  display: none;
  grid-template-columns: 1fr;
  gap: 18px;
}

.modal-detail-item {
  margin: 0;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: #050505;
  overflow: hidden;
}

.modal-detail-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center center;
  background: #050505;
}

.explore-item.has-real-image img,
.explore-item .portfolio-real-img {
  filter: none !important;
  opacity: 1 !important;
  object-fit: contain !important;
  background: #050505;
}

.explore-item.has-real-image .explore-cover {
  opacity: 0;
}

.explore-item.image-missing .explore-cover {
  opacity: 1 !important;
}

@media (max-width: 900px) {
  .modal-desc-media {
    max-width: 100%;
    gap: 14px;
  }

  .modal-detail-item img {
    max-height: 420px;
  }
}


/* ========================= */
/* ADAPTIVE DETAIL GALLERY UPDATE */
/* ========================= */
.modal-desc-media {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: 34px auto 0;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}

.modal-detail-item {
  margin: 0;
  width: 100%;
  min-height: 0;
  border: 1px solid rgba(255,255,255,0.14);
  background: #050505;
  overflow: hidden;
}

.modal-detail-item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
  object-position: center center;
  background: #050505;
}

.porto-modal-inner.landscape-visual .modal-desc-media {
  max-width: 1120px;
}

@media (min-width: 960px) {
  .modal-detail-item:nth-child(3n + 1) {
    grid-column: span 2;
  }

  .modal-detail-item:nth-child(3n + 1):last-child {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .modal-desc-media {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .modal-detail-item img {
    max-height: 440px;
  }
}


/* ========================= */
/* TITLE CLASS SIZE SYSTEM */
/* ========================= */
#modalTitle.title-small {
  font-size: clamp(28px, 3.4vw, 52px) !important;
  letter-spacing: -0.8px !important;
  line-height: 1 !important;
}

#modalTitle.title-medium {
  font-size: clamp(34px, 4.2vw, 68px) !important;
  letter-spacing: -1px !important;
  line-height: 0.98 !important;
}

#modalTitle.title-big {
  font-size: clamp(44px, 6.2vw, 96px) !important;
  letter-spacing: -1.8px !important;
  line-height: 0.92 !important;
}

.porto-modal-inner.landscape-visual #modalTitle.title-small,
.porto-modal-inner.split-showcase #modalTitle.title-small {
  font-size: clamp(28px, 3.6vw, 54px) !important;
}

.porto-modal-inner.landscape-visual #modalTitle.title-medium,
.porto-modal-inner.split-showcase #modalTitle.title-medium {
  font-size: clamp(34px, 4.4vw, 70px) !important;
}

.porto-modal-inner.landscape-visual #modalTitle.title-big,
.porto-modal-inner.split-showcase #modalTitle.title-big {
  font-size: clamp(44px, 6.4vw, 98px) !important;
}

/* ========================= */
/* CLICKABLE POPUP IMAGE */
/* ========================= */
.modal-cover img,
.modal-desc-media img {
  cursor: zoom-in;
}

/* ========================= */
/* FULLSCREEN IMAGE VIEWER */
/* ========================= */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

body.image-viewer-open .image-viewer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-viewer-img {
  display: block;
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #050505;
  box-shadow: 0 24px 80px rgba(0,0,0,0.56);
  cursor: zoom-out;
}

.image-viewer-close {
  position: fixed;
  right: 38px;
  top: 34px;
  z-index: 20001;
  padding: 12px 18px;
  border: 0 !important;
  background: transparent;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 3px;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.image-viewer-close::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 0;
  background: #fff;
  z-index: -1;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-viewer-close:hover::before {
  height: 100%;
}

.image-viewer-close:hover {
  color: #000;
}

@media (max-width: 900px) {
  .image-viewer {
    padding: 18px;
  }

  .image-viewer-close {
    right: 18px;
    top: 16px;
  }

  #modalTitle.title-small {
    font-size: clamp(26px, 7vw, 42px) !important;
  }

  #modalTitle.title-medium {
    font-size: clamp(30px, 8vw, 50px) !important;
  }

  #modalTitle.title-big {
    font-size: clamp(36px, 10vw, 64px) !important;
  }
}


/* ========================= */
/* CLEAN DETAIL IMAGE - NO FRAME / NO BLACK BACKGROUND */
/* ========================= */
.modal-desc-media {
  background: transparent !important;
}

.modal-detail-item,
.modal-desc-image {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.modal-detail-item img,
.modal-desc-image img {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
  object-fit: contain !important;
}

.modal-detail-item::before,
.modal-detail-item::after,
.modal-desc-image::before,
.modal-desc-image::after {
  display: none !important;
}

/* ========================= */
/* UNIQUE DISPLAY HOVER EFFECT */
/* ========================= */
.explore-item {
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.16,1,.3,1), border-color .42s ease, box-shadow .42s ease, filter .42s ease;
}

.explore-item .portfolio-real-img,
.explore-item img,
.explore-item .explore-cover {
  transition: transform .85s cubic-bezier(.16,1,.3,1), filter .5s ease, opacity .5s ease;
}

/* diagonal light sweep */
.explore-item::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background:
    linear-gradient(115deg, transparent 0%, transparent 33%, rgba(255,255,255,.22) 42%, rgba(255,255,255,.62) 48%, rgba(255,255,255,.18) 54%, transparent 64%, transparent 100%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.16), transparent 58%);
  transform: translateX(-120%) skewX(-12deg);
  transition: opacity .35s ease, transform .85s cubic-bezier(.16,1,.3,1);
}

/* project label */
.explore-item::after {
  content: "OPEN PROJECT";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  pointer-events: none;
  color: rgba(255,255,255,0);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0);
  background:
    linear-gradient(to top, rgba(0,0,0,.64), rgba(0,0,0,.04) 48%, rgba(255,255,255,.08)),
    linear-gradient(135deg, rgba(255,255,255,.08), transparent 32%, transparent 70%, rgba(255,255,255,.08));
  opacity: 0;
  transition: opacity .42s ease, color .42s ease, border-color .42s ease, letter-spacing .42s cubic-bezier(.16,1,.3,1), padding .42s cubic-bezier(.16,1,.3,1);
}

.explore-item:hover,
.explore-item:focus-visible {
  z-index: 20;
  transform: translate3d(0,-10px,0) scale(1.045) rotateX(1.5deg);
  border-color: rgba(255,255,255,.88);
  box-shadow: 0 28px 58px rgba(0,0,0,.52), 0 0 0 1px rgba(255,255,255,.2), 0 0 34px rgba(255,255,255,.16);
  filter: contrast(1.04);
}

.explore-item:hover .portfolio-real-img,
.explore-item:hover img,
.explore-item:hover .explore-cover,
.explore-item:focus-visible .portfolio-real-img,
.explore-item:focus-visible img,
.explore-item:focus-visible .explore-cover {
  transform: scale(1.115) rotate(-.6deg);
  filter: contrast(1.08) saturate(1.08) brightness(1.04);
}

.explore-item:hover::before,
.explore-item:focus-visible::before {
  opacity: 1;
  transform: translateX(120%) skewX(-12deg);
}

.explore-item:hover::after,
.explore-item:focus-visible::after {
  opacity: 1;
  color: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.82);
  letter-spacing: 5px;
  padding-bottom: 20px;
}

.explore-stage.is-dragging .explore-item,
.explore-stage.is-dragging .explore-item:hover {
  transform: translate3d(0,0,0) scale(1);
  box-shadow: 0 14px 26px rgba(0,0,0,.28);
}

.explore-stage.is-dragging .explore-item::before,
.explore-stage.is-dragging .explore-item::after {
  opacity: 0 !important;
}

@media (max-width: 900px) {
  .explore-item:hover,
  .explore-item:focus-visible {
    transform: translate3d(0,-6px,0) scale(1.025);
  }

  .explore-item::after {
    font-size: 9px;
    letter-spacing: 3px;
    padding: 12px;
  }
}



/* ========================= */
.category-cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.92);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: difference;
}

.category-cursor-label.active {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.category-cursor-label span {
  position: relative;
  display: inline-block;
  padding: 8px 11px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow:
    0 10px 35px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

.category-cursor-label span::before,
.category-cursor-label span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: rgba(255,255,255,0.55);
  transform: translateY(-50%);
}

.category-cursor-label span::before {
  right: calc(100% + 8px);
}

.category-cursor-label span::after {
  left: calc(100% + 8px);
}

body.porto-open .category-cursor-label {
  opacity: 0 !important;
}

.explore-item {
  cursor: none !important;
}

@media (hover: none) {
  .category-cursor-label {
    display: none !important;
  }

  .explore-item {
    cursor: pointer !important;
  }
}



/* ========================= */
.category-cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10050;
  pointer-events: none;

  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);

  mix-blend-mode: difference;
  color: #fff;
}

.category-cursor-label.active {
  opacity: 1;
}

.category-cursor-label span {
  display: block;
  padding: 0;
  margin: 0;

  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  white-space: nowrap;

  color: #fff;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow:
    0 0 10px rgba(255,255,255,0.38),
    0 6px 18px rgba(0,0,0,0.72);
}

/* hapus ornamen garis/box versi sebelumnya */
.category-cursor-label span::before,
.category-cursor-label span::after {
  content: none !important;
  display: none !important;
}

body.porto-open .category-cursor-label {
  opacity: 0 !important;
}

.explore-item {
  cursor: none !important;
}

@media (hover: none) {
  .category-cursor-label {
    display: none !important;
  }

  .explore-item {
    cursor: pointer !important;
  }
}



/* ========================= */
.category-cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10050;
  pointer-events: none;

  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.18s ease,
    transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);

  mix-blend-mode: normal !important;
  color: #000;
}

.category-cursor-label.active {
  opacity: 1;
}

.category-cursor-label span {
  display: block;
  padding: 10px 17px 11px;
  margin: 0;

  font-family: "JetBrains Mono", monospace;
  font-size: clamp(16px, 1.45vw, 24px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;

  color: #000 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;

  box-shadow:
    0 12px 28px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.92);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-shadow: none !important;
}

/* hapus ornamen/garis dari versi sebelumnya */
.category-cursor-label span::before,
.category-cursor-label span::after {
  content: none !important;
  display: none !important;
}

/* saat popup project dibuka, label cursor hilang */
body.porto-open .category-cursor-label {
  opacity: 0 !important;
}

/* supaya cursor asli tidak bentrok dengan label */
.explore-item {
  cursor: none !important;
}

@media (hover: none) {
  .category-cursor-label {
    display: none !important;
  }

  .explore-item {
    cursor: pointer !important;
  }
}


/* ========================= */
/* CATEGORY CURSOR PROJECT LABEL */
/* mengikuti sistem cursor parallax Home: transform translate + delay 0.01 */
/* ========================= */
.cursor-label.category-project-cursor {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 10050 !important;
  pointer-events: none !important;
  opacity: 0 !important;

  transform: translate(0px, 0px);
  transition: opacity 0.18s ease !important;

  mix-blend-mode: normal !important;
}

.cursor-label.category-project-cursor.active {
  opacity: 1 !important;
}

.cursor-label.category-project-cursor .cursor-text {
  display: block !important;
  padding: 10px 17px 11px !important;
  margin: 0 !important;

  font-family: "JetBrains Mono", monospace !important;
  font-size: clamp(16px, 1.45vw, 24px) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;

  color: #000 !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;

  box-shadow:
    0 12px 28px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.92) !important;

  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* matikan label lama jika masih tersisa */
.category-cursor-label {
  display: none !important;
}

body.porto-open .cursor-label.category-project-cursor {
  opacity: 0 !important;
}

.explore-item {
  cursor: none !important;
}

@media (hover: none) {
  .cursor-label.category-project-cursor {
    display: none !important;
  }

  .explore-item {
    cursor: pointer !important;
  }
}
