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

/* ========================= */
/* RESET */
/* ========================= */
body {
  margin: 0;
  padding: 0;

  background: #000000;
  overflow-x: hidden;

  font-family: "JetBrains Mono", monospace;
}

/* ========================= */
/* HERO */
/* ========================= */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* ========================= */
/* FLOATING BACKGROUND */
/* ========================= */
.floating-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ========================= */
/* SIDE TEXT */
/* ========================= */
.side-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: #fff;
  z-index: 3;
  opacity: 1;
}

.side-text.left {
  left: 40px;
}

.side-text.right {
  right: 40px;
}

#yearCounter {
  display: inline-block;
  min-width: 60px;
  text-align: right;
}

#nameText::after {
  content: "|";
  margin-left: 3px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ========================= */
/* TANGAN ANIMATION */
/* ========================= */
.bg-tangan-kiri,
.bg-tangan-kanan {
  position: absolute;
}

.bg-tangan-kiri {
  width: 350px;
  top: 65%;
  left: 32%;
  transform: translate(-50%, -50%);
  animation: floatLeft 6s ease-in-out infinite;
}

.bg-tangan-kanan {
  width: 370px;
  top: 65%;
  left: 68%;
  transform: translate(-50%, -50%);
  animation: floatRight 6s ease-in-out infinite;
}

@keyframes floatLeft {
  0% {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-25px) rotate(-2deg);
  }

  100% {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
  }
}

@keyframes floatRight {
  0% {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-25px) rotate(2deg);
  }

  100% {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
  }
}

/* ========================= */
/* NAVIGATOR */
/* ========================= */
.navigator {
  position: relative;
  z-index: 2;
  height: 100%;
}

.nav-item {
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.nav-item:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

@keyframes floatNavSync {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-25px);
  }

  100% {
    transform: translateY(0);
  }
}

.nav-item img {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;

  animation: floatNavSync 6s ease-in-out infinite;
  transition: opacity 0.25s ease-in-out;
}

.img-default {
  opacity: 1;
}

.img-hover {
  opacity: 0;
}

.nav-item:hover .img-hover {
  opacity: 1;
}

.nav-item:hover .img-default {
  opacity: 0;
}

/* POSISI */
.works {
  width: 200px;
  top: 25%;
  left: 50%;
}

.about {
  width: 140px;
  top: 30%;
  left: 38%;
}

.contact {
  width: 180px;
  top: 34%;
  left: 62%;
}

/* ========================= */
/* HEADER */
/* ========================= */
#mainHeader {
  position: fixed;
  top: -100px;
  width: 100%;
  z-index: 999;

  display: flex;
  justify-content: center;

  opacity: 0;
  transition: all 0.5s ease;
}

#mainHeader.show {
  top: 20px;
  opacity: 1;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 200px;

  list-style: none;
  padding: 15px 40px;
  margin: 0;

  background: transparent;
}

/* ========================= */
/* NAV BUTTON ANIMATION */
/* ========================= */
nav a {
  position: relative;
  display: inline-block;

  color: white;
  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;
}

nav a::before {
  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);
}

nav a span {
  position: relative;
  z-index: 1;
}

nav a:hover::before {
  height: 100%;
}

nav a:hover span {
  color: black;
}

/* ========================= */
/* PARALLAX GRID EFFECT */
/* ========================= */
.parallax-container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  padding: 100px 20px;
}

.parallax-item {
  display: flex;
  margin: 120px 0;
}

.parallax-item.left {
  justify-content: flex-start;
}

.parallax-item.right {
  justify-content: flex-end;
}

.parallax-wrapper {
  position: relative;
  width: 60%;
  overflow: hidden;
}

.small .parallax-wrapper {
  height: 300px;
  width: 40%;
}

.medium .parallax-wrapper {
  height: 500px;
}

.tall .parallax-wrapper {
  height: 800px;
}

.wide .parallax-wrapper {
  height: 400px;
  width: 80%;
}

.parallax-image {
  position: absolute;
  width: 100%;
  height: 120%;
  object-fit: cover;
  top: 0;
  left: 0;
  will-change: transform;
  transform: translateZ(0);
}

/* ========================= */
/* SMOOTH SCROLL */
/* ========================= */
html {
  scroll-behavior: auto;
}

.smooth-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.smooth-content {
  will-change: transform, opacity, filter;
}

/* ========================= */
/* CURSOR LABEL */
/* ========================= */
.cursor-label {
  position: fixed;
  top: 0;
  left: 0;

  pointer-events: none;
  z-index: 9999;

  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.cursor-text {
  background: white;
  color: black;

  padding: 6px 14px;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 1px;
  white-space: nowrap;

  transform: translate(20px, 10px);
}

/* ========================= */
/* BACKGROUND MUSIC HIDDEN */
/* ========================= */
#bgMusic {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ========================= */
/* STARTUP LOADER - TERMINAL */
/* ========================= */
.startup-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;

  overflow: hidden;
  pointer-events: all;

  background: #000000;
  color: #ffffff;

  font-family: "JetBrains Mono", monospace;

  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.9s ease;
}

.startup-loader::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08), transparent 24%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.14), transparent 26%);
  opacity: 0.9;
}

.startup-loader.loader-exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-noise {
  position: absolute;
  inset: 0;
  z-index: 1;

  opacity: 0.18;
  pointer-events: none;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.08) 0px,
      rgba(255,255,255,0.08) 1px,
      transparent 1px,
      transparent 7px
    );

  animation: loaderNoiseMove 0.55s linear infinite;
}

@keyframes loaderNoiseMove {
  to {
    transform: translateY(14px);
  }
}

.loader-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background:
    linear-gradient(90deg, rgba(0,0,0,0.18), transparent 18%, transparent 82%, rgba(0,0,0,0.18)),
    linear-gradient(0deg, rgba(0,0,0,0.2), transparent 22%, transparent 78%, rgba(0,0,0,0.15));
}

.loader-terminal {
  position: absolute;
  z-index: 3;
  left: clamp(26px, 5vw, 95px);
  top: 50%;

  width: min(430px, 42vw);
  transform: translateY(-50%);

  font-size: clamp(11px, 1.05vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.4px;
  font-weight: 400;
}

.loader-line {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0 5px;

  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.loader-line.active {
  background: #ffffff;
  color: #000000;
}

.loader-percent {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  font-size: clamp(13px, 1.1vw, 18px);
  letter-spacing: 1px;
  color: rgba(255,255,255,0.95);
}

.loader-message {
  position: absolute;
  z-index: 4;

  right: clamp(28px, 5vw, 96px);
  top: 50%;

  width: min(430px, 36vw);
  transform: translateY(-50%);

  font-size: clamp(11px, 1vw, 15px);
  line-height: 1.18;
  letter-spacing: 0.7px;
  text-align: right;
  text-transform: uppercase;

  color: rgba(255,255,255,0.92);
}

.loader-message p {
  margin: 0;
}

.loader-caret {
  display: inline-block;
  width: 12px;
  height: 15px;
  margin-top: 8px;
  background: rgba(255,255,255,0.75);
  animation: caretBlink 0.72s steps(2, end) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.loader-actions {
  position: absolute;
  z-index: 5;

  left: 50%;
  top: calc(50% + 72px);

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;

  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.startup-loader.ready .loader-actions {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.loader-btn {
  border: 1px solid rgba(255,255,255,0.7);
  background: #ffffff;
  color: #000000;

  padding: 11px 18px;
  min-width: 170px;

  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.loader-btn.secondary {
  background: transparent;
  color: #ffffff;
}

.loader-btn:hover:not(:disabled) {
  transform: translateY(-3px);
}

.loader-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

body.loader-active .smooth-content {
  opacity: 0;
  filter: blur(18px);
}

body.loader-done .smooth-content {
  opacity: 1;
  filter: blur(0);

  transition:
    opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.startup-loader.loader-exit .loader-terminal,
.startup-loader.loader-exit .loader-percent,
.startup-loader.loader-exit .loader-message,
.startup-loader.loader-exit .loader-actions {
  opacity: 0;
  filter: blur(8px);
  transition:
    opacity 0.5s ease,
    filter 0.5s ease;
}

/* ========================= */
/* PAGE TRANSITION - SMOOTH */
/* ========================= */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;

  background: var(--page-transition-color, #000);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.72s ease;
}

.page-transition.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

body.is-leaving .smooth-content {
  filter: blur(8px);
  opacity: 0.52;

  transition:
    filter 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */
@media(max-width: 900px) {
  nav ul {
    gap: 45px;
  }

  .loader-terminal {
    left: 28px;
    top: 38%;
    width: calc(100vw - 56px);
    font-size: 12px;
  }

  .loader-percent {
    top: 56%;
  }

  .loader-message {
    left: 28px;
    right: 28px;
    top: 67%;
    width: auto;
    text-align: left;
    font-size: 11px;
  }

  .loader-actions {
    left: 28px;
    right: 28px;
    bottom: 32px;
    flex-direction: column;
  }

  .loader-btn {
    width: 100%;
  }
}

@media(max-height: 560px) {
  .loader-terminal {
    top: 42%;
    line-height: 1.45;
  }

  .loader-message {
    display: none;
  }

  .loader-percent {
    top: 50%;
  }

  .loader-actions {
    flex-direction: row;
    bottom: 24px;
  }

  .loader-btn {
    min-width: 0;
    padding: 9px 12px;
    font-size: 10px;
  }
}


/* ========================= */
/* LOADER COLOR + BUTTON POSITION FINAL FIX */
/* ========================= */
.startup-loader {
  background: #000000;
}

.loader-line.active {
  color: #000000;
}

.loader-btn {
  color: #000000;
}

.loader-btn.secondary {
  color: #ffffff;
}

.startup-loader .loader-actions {
  position: absolute;
  left: 50%;
  top: calc(50% + 72px);
  right: auto;
  bottom: auto;
  transform: translate(-50%, 10px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0;
  z-index: 100002;
}

.startup-loader.ready .loader-actions {
  transform: translate(-50%, 0);
}

.startup-loader .loader-btn {
  min-width: 170px;
  white-space: nowrap;
}

@media(max-width: 900px) {
  .startup-loader .loader-actions {
    left: 50%;
    right: auto;
    top: calc(56% + 62px);
    bottom: auto;
    width: min(420px, calc(100vw - 56px));
    flex-direction: column;
    transform: translate(-50%, 10px);
  }

  .startup-loader.ready .loader-actions {
    transform: translate(-50%, 0);
  }

  .startup-loader .loader-btn {
    width: 100%;
    min-width: 0;
  }
}

@media(max-height: 560px) {
  .startup-loader .loader-actions {
    top: calc(50% + 54px);
    flex-direction: row;
    width: min(420px, calc(100vw - 48px));
  }

  .startup-loader .loader-btn {
    width: auto;
    min-width: 0;
  }
}

/* ========================= */
/* HERO REVEAL AFTER LOADER */
/* ========================= */

/* Jaga visual hero tetap tersembunyi sampai tombol loader ditekan */
body.loader-active .side-text,
body.loader-done:not(.hero-reveal) .side-text,
body.loader-active .bg-tangan-kiri,
body.loader-done:not(.hero-reveal) .bg-tangan-kiri,
body.loader-active .bg-tangan-kanan,
body.loader-done:not(.hero-reveal) .bg-tangan-kanan,
body.loader-active .navigator .nav-item,
body.loader-done:not(.hero-reveal) .navigator .nav-item {
  opacity: 0;
  pointer-events: none;
}

body.loader-active .bg-tangan-kiri,
body.loader-done:not(.hero-reveal) .bg-tangan-kiri {
  animation: none;
  transform:
    translate(-50%, -50%)
    translateY(82px)
    scale(0.36)
    rotate(-8deg);
  filter: blur(18px);
}

body.loader-active .bg-tangan-kanan,
body.loader-done:not(.hero-reveal) .bg-tangan-kanan {
  animation: none;
  transform:
    translate(-50%, -50%)
    translateY(82px)
    scale(0.36)
    rotate(8deg);
  filter: blur(18px);
}

body.loader-active .navigator .nav-item,
body.loader-done:not(.hero-reveal) .navigator .nav-item {
  transform:
    translate(-50%, -50%)
    translateY(54px)
    scale(0.35);
  filter: blur(14px);
}

body.loader-active .side-text,
body.loader-done:not(.hero-reveal) .side-text {
  filter: blur(10px);
}

body.loader-active .side-text.left,
body.loader-done:not(.hero-reveal) .side-text.left {
  transform: translateY(-50%) translateX(-28px) scale(0.9);
}

body.loader-active .side-text.right,
body.loader-done:not(.hero-reveal) .side-text.right {
  transform: translateY(-50%) translateX(28px) scale(0.9);
}

/* tangan keluar dari kecil/transparan lalu lanjut floating sesuai posisi asli */
body.hero-reveal .bg-tangan-kiri {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  animation:
    heroHandLeftIn 1.08s cubic-bezier(0.16, 1, 0.3, 1) backwards,
    floatLeft 6s ease-in-out infinite 1.08s;
}

body.hero-reveal .bg-tangan-kanan {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  animation:
    heroHandRightIn 1.08s cubic-bezier(0.16, 1, 0.3, 1) backwards,
    floatRight 6s ease-in-out infinite 1.08s;
}

/* navigator muncul satu per satu tanpa mengubah posisi final */
body.hero-reveal .navigator .nav-item {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
  animation: heroObjectIn 0.92s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

body.hero-reveal .navigator .about {
  animation-delay: 0.12s;
}

body.hero-reveal .navigator .works {
  animation-delay: 0.26s;
}

body.hero-reveal .navigator .contact {
  animation-delay: 0.4s;
}

/* side text muncul setelah objek utama */
body.hero-reveal .side-text.left {
  opacity: 1;
  filter: blur(0);
  animation: sideTextLeftIn 0.86s cubic-bezier(0.16, 1, 0.3, 1) 0.62s backwards;
}

body.hero-reveal .side-text.right {
  opacity: 1;
  filter: blur(0);
  animation: sideTextRightIn 0.86s cubic-bezier(0.16, 1, 0.3, 1) 0.72s backwards;
}

@keyframes heroHandLeftIn {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform:
      translate(-50%, -50%)
      translateY(82px)
      scale(0.36)
      rotate(-8deg);
  }

  68% {
    opacity: 1;
    filter: blur(3px);
    transform:
      translate(-50%, -50%)
      translateY(-12px)
      scale(1.045)
      rotate(-1.2deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform:
      translate(-50%, -50%)
      translateY(0)
      scale(1)
      rotate(0deg);
  }
}

@keyframes heroHandRightIn {
  0% {
    opacity: 0;
    filter: blur(18px);
    transform:
      translate(-50%, -50%)
      translateY(82px)
      scale(0.36)
      rotate(8deg);
  }

  68% {
    opacity: 1;
    filter: blur(3px);
    transform:
      translate(-50%, -50%)
      translateY(-12px)
      scale(1.045)
      rotate(1.2deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform:
      translate(-50%, -50%)
      translateY(0)
      scale(1)
      rotate(0deg);
  }
}

@keyframes heroObjectIn {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform:
      translate(-50%, -50%)
      translateY(54px)
      scale(0.35);
  }

  70% {
    opacity: 1;
    filter: blur(3px);
    transform:
      translate(-50%, -50%)
      translateY(-9px)
      scale(1.08);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform:
      translate(-50%, -50%)
      translateY(0)
      scale(1);
  }
}

@keyframes sideTextLeftIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-50%) translateX(-28px) scale(0.9);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(0) scale(1);
  }
}

@keyframes sideTextRightIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-50%) translateX(28px) scale(0.9);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(0) scale(1);
  }
}


/* ========================= */
/* SKIP LOADER FROM HEADER */
/* ========================= */
body.skip-loader #startupLoader {
  display: none !important;
}

body.skip-loader .smooth-content {
  opacity: 1 !important;
  filter: none !important;
  /* jangan pakai transform: none; smooth scroll/parallax butuh transform translateY dari JS */
}

/* ========================= */
/* LOCK SCROLL DURING HOME INTRO */
/* ========================= */
html.home-scroll-lock,
body.home-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.home-scroll-lock .smooth-wrapper {
  pointer-events: none;
}


/* ========================= */
/* LOADING SCREEN SCROLL LOCK FIX */
/* ========================= */
html.home-scroll-lock,
body.home-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}

body.home-scroll-lock .smooth-wrapper {
  pointer-events: none;
}

body.home-scroll-lock #startupLoader,
body.home-scroll-lock .startup-loader {
  pointer-events: all;
  touch-action: auto;
}


/* ========================= */
/* FIXED HOME PARALLAX + SLOW BOUNCE POPUP */
/* Hero reversible + popup on wrapper, without breaking image parallax */
/* ========================= */
:root {
  --hero-scroll-scale: 1;
  --hero-scroll-opacity: 1;
  --hero-scroll-blur: 0px;
  --hero-scroll-y: 0px;
}

.hero {
  transform-origin: center center;
  transform:
    translate3d(0, var(--hero-scroll-y), 0)
    scale(var(--hero-scroll-scale)) !important;
  opacity: var(--hero-scroll-opacity) !important;
  filter: blur(var(--hero-scroll-blur)) !important;
  will-change: transform, opacity, filter;
}

body.home-parallax-focus .hero {
  pointer-events: none;
}

/* Parallax tetap menyatu dengan background, tanpa frame besar */
.parallax-container {
  position: relative;
  z-index: 20;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.parallax-container::before,
.parallax-container::after {
  content: none !important;
  display: none !important;
}

/*
  Popup diterapkan ke .parallax-wrapper, bukan .parallax-image.
  Dengan begitu efek parallax image yang lama tetap bekerja.
*/
.parallax-wrapper {
  --popup-scale: 0.76;
  --popup-opacity: 0;
  --popup-blur: 8px;
  --popup-y: 140px;
  --popup-shadow: 0;

  transform:
    translate3d(0, var(--popup-y), 0)
    scale(var(--popup-scale)) !important;
  opacity: var(--popup-opacity) !important;
  filter: blur(var(--popup-blur)) !important;
  transform-origin: center center;
  will-change: transform, opacity, filter;

  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 calc(10px + (var(--popup-shadow) * 30px))
      calc(24px + (var(--popup-shadow) * 72px))
      rgba(0,0,0, calc(0.10 + (var(--popup-shadow) * 0.38)));
}

.parallax-item.popup-active .parallax-wrapper {
  box-shadow:
    0 38px 96px rgba(0,0,0,0.48),
    0 0 0 1px rgba(255,255,255,0.045);
}

/* Jangan ganggu transform parallax-image, karena ini yang membuat efek parallax bekerja */
.parallax-image {
  will-change: transform;
}

@media (max-width: 900px) {
  .parallax-wrapper {
    --popup-y: 95px;
    border-radius: 10px;
  }
}



/* ========================= */

/* Border radius dibuat 0 agar lancip */
.parallax-wrapper {
  border-radius: 0 !important;
}

/* Agar bentuk frame bisa mengikuti rasio foto yang terload */
.parallax-item {
  flex-direction: column;
  align-items: inherit;
  gap: 14px;
}

.parallax-wrapper {
  width: var(--loaded-image-width, 52%) !important;
  max-width: min(var(--loaded-image-max, 760px), 82vw);
  height: auto !important;
  aspect-ratio: var(--loaded-image-ratio, 16 / 10);
}

/* Tinggi/rasio lama dari class small/medium/tall/wide tidak mengunci lagi */
.small .parallax-wrapper,
.medium .parallax-wrapper,
.tall .parallax-wrapper,
.wide .parallax-wrapper {
  height: auto !important;
}

/* Foto tetap memenuhi frame sesuai rasionya */
.parallax-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Label bawah parallax item */
.parallax-project-label {
  width: var(--loaded-image-width, 52%);
  max-width: min(var(--loaded-image-max, 760px), 82vw);
  margin-top: 16px;
  pointer-events: none;
  opacity: var(--popup-opacity, 0);
  transform: translateY(calc(var(--popup-y, 0px) * 0.18));
  filter: blur(calc(var(--popup-blur, 0px) * 0.35));
  transition:
    opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.26s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-item.left .parallax-project-label {
  margin-right: auto;
  text-align: left;
}

.parallax-item.right .parallax-project-label {
  margin-left: auto;
  text-align: right;
}

.parallax-project-category {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 300;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.46);
}

.parallax-project-title {
  display: block;
  font-size: clamp(18px, 2.1vw, 34px);
  font-weight: 300;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
  color: rgba(255,255,255,0.94);
}

/* Cursor label lama cukup nama project saja jika masih tampil */
.cursor-text {
  text-transform: uppercase;
}

/* Mobile */
@media (max-width: 900px) {
  .parallax-wrapper,
  .parallax-project-label {
    width: var(--loaded-image-width-mobile, 82%) !important;
    max-width: 88vw;
  }

  .parallax-project-label {
    text-align: left !important;
    margin-left: auto;
    margin-right: auto;
  }

  .parallax-project-title {
    font-size: clamp(18px, 6vw, 28px);
  }
}



/* ========================= */

/* Pastikan setiap item bisa membawa gambar + label secara vertikal */
.parallax-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  position: relative;
}

/* Selang-seling kiri kanan */
.parallax-item.left,
.parallax-item:nth-child(odd) {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.parallax-item.right,
.parallax-item:nth-child(even) {
  align-items: flex-end !important;
  justify-content: flex-end !important;
}

/* Jika class bawaan bentrok, data-side dari JS jadi acuan paling kuat */
.parallax-item[data-side="left"] {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.parallax-item[data-side="right"] {
  align-items: flex-end !important;
  justify-content: flex-end !important;
}

/* Wrapper dan label memakai width yang sama */
.parallax-item .parallax-wrapper {
  flex: 0 0 auto !important;
  border-radius: 0 !important;
}

.parallax-project-label {
  display: block !important;
  position: relative !important;
  z-index: 5 !important;

  width: var(--loaded-image-width, 52%) !important;
  max-width: min(var(--loaded-image-max, 760px), 82vw) !important;
  margin-top: 4px !important;

  opacity: var(--popup-opacity, 1) !important;
  transform: translateY(calc(var(--popup-y, 0px) * 0.10)) !important;
  filter: blur(calc(var(--popup-blur, 0px) * 0.18)) !important;

  color: #ffffff !important;
  mix-blend-mode: normal !important;
  pointer-events: none !important;
}

/* label ikut rata kiri/kanan sesuai posisi item */
.parallax-item[data-side="left"] .parallax-project-label,
.parallax-item.left .parallax-project-label,
.parallax-item:nth-child(odd) .parallax-project-label {
  align-self: flex-start !important;
  text-align: left !important;
}

.parallax-item[data-side="right"] .parallax-project-label,
.parallax-item.right .parallax-project-label,
.parallax-item:nth-child(even) .parallax-project-label {
  align-self: flex-end !important;
  text-align: right !important;
}

/* Category dibuat jelas di background hitam */
.parallax-project-category {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  margin: 0 0 7px 0 !important;
  padding: 0 !important;

  font-family: "JetBrains Mono", monospace !important;
  font-size: clamp(10px, 0.78vw, 12px) !important;
  font-weight: 300 !important;
  letter-spacing: 3.4px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;

  color: rgba(255,255,255,0.58) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85) !important;
}

/* Nama project sebagai label utama */
.parallax-project-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  font-family: "JetBrains Mono", monospace !important;
  font-size: clamp(18px, 2vw, 32px) !important;
  font-weight: 300 !important;
  letter-spacing: 1.1px !important;
  line-height: 1.02 !important;
  text-transform: uppercase !important;

  color: rgba(255,255,255,0.96) !important;
  text-shadow: 0 3px 16px rgba(0,0,0,0.92) !important;
}

/* Mobile: tetap aman dan terbaca */
@media (max-width: 900px) {
  .parallax-item,
  .parallax-item[data-side="left"],
  .parallax-item[data-side="right"] {
    align-items: center !important;
  }

  .parallax-project-label {
    width: var(--loaded-image-width-mobile, 82%) !important;
    max-width: 88vw !important;
    text-align: left !important;
    align-self: center !important;
  }

  .parallax-project-category {
    font-size: 10px !important;
    letter-spacing: 2.6px !important;
  }

  .parallax-project-title {
    font-size: clamp(18px, 5.6vw, 28px) !important;
  }
}


/* ========================= */
/* HOME PARALLAX EDITORIAL LAYOUT */
/* layout seperti referensi: kiri-kanan, label bawah, sharp corner */
/* ========================= */

/* Container layout editorial */
.parallax-container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 120px 40px 160px;
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: auto;
  column-gap: 40px;
  row-gap: 130px;
  box-sizing: border-box;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.parallax-container::before,
.parallax-container::after {
  content: none !important;
  display: none !important;
}

/* Reset item agar tidak seperti satu baris panjang */
.parallax-item {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  gap: 16px !important;
  transform: none;
}

/* Layout selang-seling kiri kanan */
.parallax-item:nth-child(4n + 1) {
  grid-column: 1 / span 4;
  margin-top: 0 !important;
  align-items: flex-start !important;
}

.parallax-item:nth-child(4n + 2) {
  grid-column: 7 / span 6;
  margin-top: 150px !important;
  align-items: flex-start !important;
}

.parallax-item:nth-child(4n + 3) {
  grid-column: 2 / span 5;
  margin-top: 10px !important;
  align-items: flex-start !important;
}

.parallax-item:nth-child(4n + 4) {
  grid-column: 8 / span 4;
  margin-top: 120px !important;
  align-items: flex-start !important;
}

/* Data side tetap dibaca, tapi layout grid di atas jadi acuan */
.parallax-item[data-side="left"],
.parallax-item[data-side="right"],
.parallax-item.left,
.parallax-item.right {
  justify-content: flex-start !important;
}

/* Wrapper mengikuti rasio gambar yang terload */
.parallax-wrapper {
  position: relative !important;
  width: 100% !important;
  max-width: var(--loaded-image-max, 760px) !important;
  height: auto !important;
  aspect-ratio: var(--loaded-image-ratio, auto);
  overflow: hidden !important;

  border-radius: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;

  transform:
    translate3d(0, var(--popup-y, 0px), 0)
    scale(var(--popup-scale, 1)) !important;
  opacity: var(--popup-opacity, 1) !important;
  filter: blur(var(--popup-blur, 0px)) !important;
  transform-origin: center center;
  will-change: transform, opacity, filter;

  box-shadow:
    0 calc(10px + (var(--popup-shadow, 0) * 30px))
      calc(24px + (var(--popup-shadow, 0) * 72px))
      rgba(0,0,0, calc(0.10 + (var(--popup-shadow, 0) * 0.38)));
}

/* Class size lama tidak mengunci tinggi */
.small .parallax-wrapper,
.medium .parallax-wrapper,
.tall .parallax-wrapper,
.wide .parallax-wrapper {
  width: 100% !important;
  height: auto !important;
}

/* Gambar ikut bentuk asli frame */
.parallax-image {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100%;
  object-fit: cover !important;
  top: auto !important;
  left: auto !important;
  border-radius: 0 !important;
  will-change: transform;
}

/* Label tepat di bawah gambar */
.parallax-project-label {
  display: block !important;
  position: relative !important;
  z-index: 6 !important;
  width: 100% !important;
  max-width: var(--loaded-image-max, 760px) !important;
  margin: 0 !important;
  padding: 0 !important;

  opacity: var(--popup-opacity, 1) !important;
  transform: translateY(calc(var(--popup-y, 0px) * 0.10)) !important;
  filter: blur(calc(var(--popup-blur, 0px) * 0.15)) !important;

  color: #ffffff !important;
  text-align: left !important;
  mix-blend-mode: normal !important;
  pointer-events: none !important;
}

/* Category kecil di atas */
.parallax-project-category {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;

  font-family: "JetBrains Mono", monospace !important;
  font-size: clamp(10px, 0.76vw, 12px) !important;
  font-weight: 300 !important;
  letter-spacing: 3.4px !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;

  color: rgba(255,255,255,0.58) !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9) !important;
}

/* Nama project sebagai label utama */
.parallax-project-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;

  font-family: "JetBrains Mono", monospace !important;
  font-size: clamp(20px, 2.1vw, 36px) !important;
  font-weight: 300 !important;
  letter-spacing: 1.1px !important;
  line-height: 1.02 !important;
  text-transform: uppercase !important;

  color: rgba(255,255,255,0.96) !important;
  text-shadow: 0 3px 16px rgba(0,0,0,0.92) !important;
}

/* Cursor label lama cukup nama project */
.cursor-text {
  text-transform: uppercase;
}

/* Tablet */
@media (max-width: 1200px) {
  .parallax-container {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 100px;
    padding: 110px 28px 140px;
  }

  .parallax-item:nth-child(4n + 1) {
    grid-column: 1 / span 3;
    margin-top: 0 !important;
  }

  .parallax-item:nth-child(4n + 2) {
    grid-column: 4 / span 3;
    margin-top: 110px !important;
  }

  .parallax-item:nth-child(4n + 3) {
    grid-column: 1 / span 3;
    margin-top: 0 !important;
  }

  .parallax-item:nth-child(4n + 4) {
    grid-column: 4 / span 3;
    margin-top: 90px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .parallax-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 80px !important;
    padding: 90px 20px 120px;
  }

  .parallax-item {
    width: 100% !important;
    margin-top: 0 !important;
    align-items: flex-start !important;
  }

  .parallax-wrapper,
  .parallax-project-label {
    width: 100% !important;
    max-width: 100% !important;
  }

  .parallax-project-category {
    font-size: 10px !important;
    letter-spacing: 2.6px !important;
  }

  .parallax-project-title {
    font-size: clamp(20px, 7vw, 30px) !important;
  }
}


/* ========================= */
/* HOME CONTACT REAL BELOW PARALLAX FIX */
/* exact contact.html layout, scoped inside home smooth-content */
/* ========================= */

.home-contact-page-section {
  position: relative !important;
  display: block !important;
  z-index: 40 !important;
  width: 100% !important;
  min-height: 100vh !important;
  height: auto !important;
  clear: both !important;
  background: #000 !important;
  color: #fff !important;
  font-family: "JetBrains Mono", monospace !important;
  overflow: visible !important;
  padding: 40px 0 70px !important;
  margin-top: 80px !important;
}

/* CONTACT WRAPPER */
.home-contact-page-section .contact {
  position: relative !important;
  height: 80vh !important;
  width: 100% !important;
  padding-top: 2% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  /* override .nav-item.contact from home */
  top: auto !important;
  left: auto !important;
  transform: none !important;
  cursor: default !important;
}

/* IMAGE */
.home-contact-page-section .contact-bg {
  max-width: 90% !important;
  height: auto !important;
  display: block !important;
}

.home-contact-page-section .contact-link {
  text-decoration: none !important;
  color: inherit !important;
}

/* CONTACT TEXT WRAPPER */
.home-contact-page-section .contact-text {
  position: absolute !important;
  top: 63% !important;
  left: 35% !important;

  transform: translate(-50%, -50%) !important;

  font-family: "JetBrains Mono", monospace !important;
  font-size: 32px !important;
  font-weight: 300 !important;
  letter-spacing: 2px !important;

  color: #fff !important;
  z-index: 2 !important;
  padding: 8px 12px !important;
  overflow: hidden !important;
  display: inline-block !important;
  transition: color 0.35s ease !important;
}

/* WHITE BLOCK */
.home-contact-page-section .contact-text::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: #fff !important;
  transform: translateY(100%) !important;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) !important;
  z-index: -1 !important;
}

/* HOVER STATE */
.home-contact-page-section .contact-text:hover::before {
  transform: translateY(0) !important;
}

.home-contact-page-section .contact-text:hover {
  color: #000 !important;
}

/* SOCIAL WRAPPER */
.home-contact-page-section .social-wrapper {
  display: flex !important;
  gap: 300px !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 20px !important;
}

/* SOCIAL LINK */
.home-contact-page-section .social-link {
  text-decoration: none !important;
  color: inherit !important;
}

/* CONTAINER */
.home-contact-page-section .social-container {
  position: relative !important;
  width: 80px !important;
  height: 80px !important;
  border-radius: 20px !important;
  overflow: visible !important;
  cursor: pointer !important;
  display: block !important;
  text-decoration: none !important;
  box-shadow:
    0 10px 25px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
  isolation: isolate !important;
}

.home-contact-page-section .social-container:hover {
  transform: scale(1.06) !important;
}

/* BACKGROUND */
.home-contact-page-section .bg {
  position: absolute !important;
  width: 90% !important;
  height: 90% !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  object-fit: cover !important;
  z-index: 1 !important;
  filter: brightness(0.8) contrast(0.95) saturate(0.9) !important;
  transition: filter 0.6s ease !important;
}

.home-contact-page-section .social-container:hover .bg {
  filter:
    brightness(1.2)
    contrast(1)
    saturate(1.3)
    blur(0.5px)
    drop-shadow(0 0 15px rgba(255,255,255,0.3))
    drop-shadow(0 0 35px rgba(255,255,255,0.2)) !important;
}

/* BLUR */
.home-contact-page-section .blur {
  position: absolute !important;
  inset: -12px !important;
  border-radius: 26px !important;
  z-index: 2 !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.03)
  ) !important;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.25),
    inset 0 -2px 6px rgba(103, 103, 103, 0.2) !important;
  transform: scale(0.9) !important;
  opacity: 1 !important;
  transition:
    backdrop-filter 0.45s ease,
    opacity 0.35s ease !important;
}

.home-contact-page-section .social-container:hover .blur {
  backdrop-filter: blur(0) !important;
  -webkit-backdrop-filter: blur(0) !important;
  opacity: 0 !important;
}

/* ICON */
.home-contact-page-section .icon {
  position: absolute !important;
  inset: 0 !important;
  width: 60% !important;
  height: 60% !important;
  margin: auto !important;
  object-fit: contain !important;
  z-index: 3 !important;
  transform: scale(1.25) !important;
  transform-origin: center !important;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.home-contact-page-section .social-container:hover .icon {
  transform: scale(1) !important;
}

/* LABEL */
.home-contact-page-section .label {
  position: absolute !important;
  top: 50% !important;
  left: calc(100% + 20px) !important;
  transform: translateY(-50%) translateX(-20px) !important;
  opacity: 0 !important;
  font-size: 25px !important;
  letter-spacing: 1px !important;
  white-space: nowrap !important;
  color: #fff !important;
  z-index: 10 !important;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease !important;
  pointer-events: none !important;
}

.home-contact-page-section .social-container:hover .label {
  transform: translateY(-50%) translateX(0) !important;
  opacity: 1 !important;
}

/* NUMERIC EFFECT */
.home-contact-page-section .num {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  letter-spacing: 2px !important;
  color: rgba(255,255,255,0.35) !important;
  z-index: 5 !important;
  opacity: 0 !important;
  transform: translateY(10px) scale(0.85) !important;
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease !important;
}

.home-contact-page-section .social-container:hover .num {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  color: rgba(255,255,255,0.9) !important;
}

/* LOCAL CLOCK */
.home-contact-page-section .local-clock {
  position: relative !important;
  right: auto !important;
  bottom: auto !important;
  padding-top: 0 !important;
  width: fit-content !important;
  margin: 45px 80px 70px auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  font-family: "IntraNet", "JetBrains Mono", monospace !important;
}

.home-contact-page-section .clock-top {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* ACTIVE INDICATOR */
.home-contact-page-section .clock-indicator {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #00ff66 !important;
  box-shadow:
    0 0 6px #00ff66,
    0 0 14px rgba(0, 255, 102, 0.8),
    0 0 28px rgba(0, 255, 102, 0.45) !important;
  animation: homeContactActivePulse 1.6s ease-in-out infinite !important;
}

@keyframes homeContactActivePulse {
  0% {
    opacity: 0.45;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.25);
  }

  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
}

.home-contact-page-section #clock-time {
  font-size: 18px !important;
}

.home-contact-page-section .clock-label {
  font-size: 15px !important;
}

.home-contact-page-section .clock-message {
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  opacity: 0.85 !important;
}

/* Keep parallax then contact as normal document flow */
.parallax-container {
  margin-bottom: 0 !important;
}

.smooth-content {
  overflow: visible !important;
}

/* responsive */
@media (max-width: 900px) {
  .home-contact-page-section .contact {
    height: 62vh !important;
  }

  .home-contact-page-section .contact-bg {
    max-width: 120% !important;
  }

  .home-contact-page-section .contact-text {
    top: 63% !important;
    left: 50% !important;
    font-size: 24px !important;
  }

  .home-contact-page-section .social-wrapper {
    gap: 85px !important;
    flex-wrap: wrap !important;
    margin-top: 20px !important;
  }

  .home-contact-page-section .local-clock {
    margin: 45px auto 70px !important;
  }
}

@media (max-width: 560px) {
  .home-contact-page-section .social-wrapper {
    gap: 50px !important;
  }

  .home-contact-page-section .social-container {
    width: 66px !important;
    height: 66px !important;
  }

  .home-contact-page-section .label {
    display: none !important;
  }
}


/* ========================= */
/* HOME EMAIL POPUP MODAL */
/* contact email popup like reference */
/* ========================= */

body.email-popup-open {
  overflow: hidden !important;
}

.home-email-popup {
  position: fixed;
  inset: 0;
  z-index: 99980;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.36s ease;
}

.home-email-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.home-email-popup-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 32% 50%, rgba(255,255,255,0.055), transparent 28%),
    rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-email-dialog {
  position: relative;
  width: min(880px, 92vw);
  min-height: 560px;
  padding: 42px 44px 38px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(180deg, rgba(36,36,36,0.96), rgba(12,12,12,0.98));
  box-shadow:
    0 34px 110px rgba(0,0,0,0.78),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  transform: translateY(28px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.52s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.42s ease;
}

.home-email-popup.active .home-email-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.home-email-dialog::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0.25;
}

.home-email-close {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 54px;
  line-height: 0.78;
  font-weight: 200;
  cursor: pointer;
  z-index: 4;
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.32s ease,
    color 0.32s ease;
}

.home-email-close:hover {
  transform: rotate(90deg) scale(1.05);
  background: #fff;
  color: #000;
}

.home-email-avatar-stack {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.home-email-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.16);
  overflow: hidden;
  box-shadow:
    0 12px 35px rgba(0,0,0,0.38),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.home-email-avatar-photo {
  transform: translateX(10px);
  z-index: 1;
}

.home-email-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.home-email-avatar-icon {
  transform: translateX(-10px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-email-avatar-icon span {
  position: relative;
  width: 30px;
  height: 30px;
  display: block;
}

.home-email-avatar-icon span::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.86);
  transform: translateX(-50%);
}

.home-email-avatar-icon span::after {
  content: "";
  position: absolute;
  bottom: 1px;
  left: 50%;
  width: 34px;
  height: 16px;
  border-radius: 18px 18px 8px 8px;
  background: rgba(255,255,255,0.86);
  transform: translateX(-50%);
}

.home-email-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 32px;
}

.home-email-heading h2 {
  margin: 0 0 12px;
  font-family: "IntraNet", "JetBrains Mono", monospace;
  font-size: clamp(28px, 3.1vw, 44px);
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1;
  color: #fff;
}

.home-email-heading p {
  margin: 0;
  font-size: clamp(13px, 1vw, 16px);
  color: rgba(255,255,255,0.58);
  letter-spacing: -0.3px;
}

.home-email-form {
  position: relative;
  z-index: 2;
}

.home-email-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.home-email-form input,
.home-email-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.13);
  outline: 0;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(24,24,24,0.96), rgba(6,6,6,0.98));
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  padding: 19px 24px;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 30px rgba(0,0,0,0.24);
  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.home-email-form input::placeholder,
.home-email-form textarea::placeholder {
  color: rgba(255,255,255,0.78);
}

.home-email-form input:focus,
.home-email-form textarea:focus {
  border-color: rgba(255,255,255,0.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 0 3px rgba(255,255,255,0.06),
    0 12px 34px rgba(0,0,0,0.35);
}

.home-email-form textarea {
  margin-top: 10px;
  min-height: 220px;
  resize: vertical;
}

.home-email-actions {
  display: grid;
  grid-template-columns: 190px auto 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 24px;
  padding: 0 24px;
}

.home-email-send {
  height: 96px;
  border: 0;
  border-radius: 999px;
  background: rgba(235,240,238,0.42);
  color: rgba(0,0,0,0.62);
  font-family: "JetBrains Mono", monospace;
  font-size: 26px;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.34s ease,
    color 0.34s ease;
}

.home-email-send:hover {
  transform: scale(1.035);
  background: #fff;
  color: #000;
}

.home-email-or {
  color: rgba(255,255,255,0.64);
  font-size: 15px;
  justify-self: center;
}

.home-email-alt {
  position: relative;
  min-height: 70px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.4px;
}

.home-email-alt::before,
.home-email-alt::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 34px;
  top: 50%;
  transform: translateY(-50%);
  border-color: rgba(255,255,255,0.56);
  border-style: solid;
  transition:
    width 0.3s ease,
    border-color 0.3s ease;
}

.home-email-alt::before {
  left: 0;
  border-width: 2px 0 2px 2px;
  border-radius: 18px 0 0 18px;
}

.home-email-alt::after {
  right: 0;
  border-width: 2px 2px 2px 0;
  border-radius: 0 18px 18px 0;
}

.home-email-alt:hover::before,
.home-email-alt:hover::after {
  width: 28px;
  border-color: #fff;
}

@media (max-width: 860px) {
  .home-email-popup {
    padding: 18px;
  }

  .home-email-dialog {
    width: 94vw;
    min-height: auto;
    padding: 34px 22px 28px;
    border-radius: 22px;
  }

  .home-email-close {
    width: 48px;
    height: 48px;
    font-size: 44px;
    top: 18px;
    right: 18px;
  }

  .home-email-grid {
    grid-template-columns: 1fr;
  }

  .home-email-form textarea {
    min-height: 160px;
  }

  .home-email-actions {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }

  .home-email-send {
    height: 72px;
    font-size: 22px;
  }

  .home-email-or {
    justify-self: center;
  }

  .home-email-alt {
    text-align: center;
    font-size: 13px;
  }
}


/* ========================= */
/* EMAIL POPUP SLIDE-UP REFINEMENT */
/* muncul dari bawah, top gap, transparent backdrop, ukuran lebih nyaman */
/* ========================= */

.home-email-popup {
  align-items: flex-start !important;
  justify-content: center !important;
  padding: clamp(34px, 6vh, 72px) 28px 28px !important;
}

.home-email-popup-backdrop {
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,0.075), transparent 30%),
    rgba(0,0,0,0.46) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
}

/* default state: benar-benar datang dari bawah */
.home-email-dialog {
  width: min(760px, 90vw) !important;
  min-height: auto !important;
  max-height: calc(100vh - clamp(70px, 12vh, 120px)) !important;
  overflow-y: auto !important;

  padding: clamp(28px, 4vw, 38px) clamp(24px, 4vw, 38px) 30px !important;
  border-radius: 24px !important;

  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.20), transparent 34%),
    linear-gradient(180deg, rgba(34,34,34,0.86), rgba(7,7,7,0.88)) !important;

  transform: translate3d(0, 110vh, 0) scale(0.98) !important;
  opacity: 0 !important;

  transition:
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease !important;
}

/* active state: naik ke posisi dengan jarak atas */
.home-email-popup.active .home-email-dialog {
  transform: translate3d(0, 0, 0) scale(1) !important;
  opacity: 1 !important;
}

.home-email-heading {
  margin-bottom: 24px !important;
}

.home-email-heading h2 {
  font-size: clamp(25px, 2.6vw, 36px) !important;
}

.home-email-heading p {
  font-size: clamp(12px, 0.95vw, 15px) !important;
}

.home-email-avatar-stack {
  margin-bottom: 18px !important;
}

.home-email-avatar {
  width: 58px !important;
  height: 58px !important;
}

.home-email-close {
  width: 50px !important;
  height: 50px !important;
  top: 20px !important;
  right: 20px !important;
  font-size: 46px !important;
}

.home-email-form input,
.home-email-form textarea {
  border-radius: 14px !important;
  font-size: 15px !important;
  padding: 17px 20px !important;
  background:
    linear-gradient(180deg, rgba(18,18,18,0.82), rgba(5,5,5,0.88)) !important;
}

.home-email-form textarea {
  min-height: 160px !important;
}

.home-email-actions {
  grid-template-columns: 160px auto 1fr !important;
  gap: 22px !important;
  margin-top: 22px !important;
  padding: 0 8px !important;
}

.home-email-send {
  height: 76px !important;
  font-size: 22px !important;
}

.home-email-alt {
  min-height: 62px !important;
  font-size: 13px !important;
}

/* parallax item clickable */
.parallax-wrapper,
.parallax-project-label {
  cursor: pointer !important;
}

.parallax-item.is-project-link .parallax-wrapper {
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.42s ease,
    filter 0.42s ease,
    box-shadow 0.42s ease !important;
}

.parallax-item.is-project-link:hover .parallax-wrapper {
  box-shadow:
    0 42px 110px rgba(0,0,0,0.56),
    0 0 0 1px rgba(255,255,255,0.12) !important;
}

.parallax-item.is-project-link .parallax-project-title::after {
  content: "  ↗";
  font-size: 0.72em;
  opacity: 0;
  display: inline-block;
  transform: translate(-8px, -2px);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-item.is-project-link:hover .parallax-project-title::after {
  opacity: 0.8;
  transform: translate(0, -2px);
}

@media (max-width: 860px) {
  .home-email-popup {
    padding: 22px 16px 16px !important;
  }

  .home-email-dialog {
    width: 94vw !important;
    max-height: calc(100vh - 44px) !important;
    border-radius: 20px !important;
  }

  .home-email-actions {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 0 !important;
  }

  .home-email-send {
    height: 66px !important;
  }
}


/* ========================= */
/* PARALLAX TITLE INTRANET PATCH */
/* hanya judul project di bawah parallax */
/* ========================= */
.parallax-project-title {
  font-family: "IntraNet", "JetBrains Mono", monospace !important;
}
