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

/* ========================= */
/* RESET */
/* ========================= */
body {
  margin: 0;
  padding: 0;
  background: #000000;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  overflow-x: hidden;
}

/* ========================= */
/* HEADER */
/* ========================= */
#mainHeader {
  position: fixed;
  top: 20px;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: center;
}

/* NAV BAR */
nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 200px;
  list-style: none;
  padding: 15px 40px;
  margin: 0;
}

/* NAV LINK */
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;
}

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

/* IMAGE */
.contact-bg {
  max-width: 90%;
  height: auto;
  display: block;
}

.contact-link {
  text-decoration: none;
  color: inherit;
}

/* ========================= */
/* CONTACT TEXT WRAPPER */
/* ========================= */
.contact-text {
  position: absolute;
  top: 63%;
  left: 35%;

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

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

  color: #fff;

  z-index: 2;

  padding: 8px 12px;

  overflow: hidden;
  display: inline-block;

  transition: color 0.35s ease;
}

/* ========================= */
/* WHITE BLOCK */
/* ========================= */
.contact-text::before {
  content: "";

  position: absolute;
  inset: 0;

  background: #fff;

  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: -1;
}

/* ========================= */
/* HOVER STATE */
/* ========================= */
.contact-text:hover::before {
  transform: translateY(0);
}

.contact-text:hover {
  color: #000;
}

/* ========================= */
/* SOCIAL WRAPPER */
/* ========================= */
.social-wrapper {
  display: flex;
  gap: 300px;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* ========================= */
/* SOCIAL LINK */
/* ========================= */
.social-link {
  text-decoration: none;
  color: inherit;
}

/* ========================= */
/* CONTAINER */
/* ========================= */
.social-container {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 20px;

  overflow: visible;

  cursor: pointer;
  display: block;
  text-decoration: none;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  isolation: isolate;
}

.social-container:hover {
  transform: scale(1.06);
}

/* ========================= */
/* BACKGROUND */
/* ========================= */
.bg {
  position: absolute;
  width: 90%;
  height: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;

  filter: brightness(0.8) contrast(0.95) saturate(0.9);
  transition: filter 0.6s ease;
}

.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));
}

/* ========================= */
/* BLUR */
/* ========================= */
.blur {
  position: absolute;
  inset: -12px;
  border-radius: 26px;
  z-index: 2;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  background: linear-gradient(
    to bottom right,
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.03)
  );

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.25),
    inset 0 -2px 6px rgba(103, 103, 103, 0.2);

  transform: scale(0.9);
  opacity: 1;

  transition:
    backdrop-filter 0.45s ease,
    opacity 0.35s ease;
}

.social-container:hover .blur {
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
}

/* ========================= */
/* ICON */
/* ========================= */
.icon {
  position: absolute;
  inset: 0;
  width: 60%;
  height: 60%;
  margin: auto;
  object-fit: contain;

  z-index: 3;

  transform: scale(1.25);
  transform-origin: center;

  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-container:hover .icon {
  transform: scale(1);
}

/* ========================= */
/* LABEL */
/* ========================= */
.label {
  position: absolute;
  top: 50%;
  left: calc(100% + 20px);

  transform: translateY(-50%) translateX(-20px);
  opacity: 0;

  font-size: 25px;
  letter-spacing: 1px;
  white-space: nowrap;
  color: #fff;

  z-index: 10;

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;

  pointer-events: none;
}

.social-container:hover .label {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

/* ========================= */
/* NUMERIC EFFECT */
/* ========================= */
.num {
  position: absolute;

  top: -8px;
  right: -8px;

  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2px;

  color: rgba(255,255,255,0.35);

  z-index: 5;

  opacity: 0;
  transform: translateY(10px) scale(0.85);

  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease;
}

.social-container:hover .num {
  opacity: 1;
  transform: translateY(0) scale(1);

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

/* ========================= */
/* LOCAL CLOCK */
/* ========================= */
.local-clock {
  position: relative;
  right: auto;
  bottom: auto;
  padding-top: 0;

  width: fit-content;
  margin: 45px 80px 70px auto;

  display: flex;
  flex-direction: column;
  gap: 4px;

  font-family: 'IntraNet', monospace;
}

.clock-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ACTIVE INDICATOR */
.clock-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff66;

  box-shadow:
    0 0 6px #00ff66,
    0 0 14px rgba(0, 255, 102, 0.8),
    0 0 28px rgba(0, 255, 102, 0.45);

  animation: activePulse 1.6s ease-in-out infinite;
}

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

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

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

#clock-time {
  font-size: 18px;
}

.clock-label {
  font-size: 15px;
}

.clock-message {
  font-size: 14px;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* ========================= */
/* SIMPLE PAGE TRANSITION */
/* Smooth, single overlay, no stacking */
/* ========================= */
body.page-light {
  --page-enter-bg: #ffffff;
  --page-enter-ink: #000000;
}

body.page-dark {
  --page-enter-bg: #000000;
  --page-enter-ink: #ffffff;
}

.page-enter,
.page-exit {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

.page-enter {
  background: var(--page-enter-bg, #000000);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.78s ease;
}

.page-enter.hide {
  opacity: 0;
  visibility: hidden;
}

.page-exit {
  background: var(--page-exit-bg, var(--page-enter-bg, #000000));
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.42s ease;
}

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

.page-enter span,
.page-exit span {
  position: absolute;
  inset: -20%;
  opacity: 0.34;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 42%,
      rgba(255,255,255,0.18) 49%,
      transparent 58%,
      transparent 100%
    );
  transform: translateX(-42%);
}

.page-enter span {
  animation: smoothTransitionSweep 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-exit.active span {
  animation: smoothTransitionSweep 0.52s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smoothTransitionSweep {
  from {
    transform: translateX(-56%);
  }

  to {
    transform: translateX(56%);
  }
}

body.page-loading:not(.page-ready) #mainHeader,
body.page-loading:not(.page-ready) .about-page,
body.page-loading:not(.page-ready) .category,
body.page-loading:not(.page-ready) .contact,
body.page-loading:not(.page-ready) .social-wrapper,
body.page-loading:not(.page-ready) .local-clock {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
}

body.page-loading.page-ready #mainHeader,
body.page-loading.page-ready .about-page,
body.page-loading.page-ready .category,
body.page-loading.page-ready .contact,
body.page-loading.page-ready .social-wrapper,
body.page-loading.page-ready .local-clock {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity 0.76s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.76s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.76s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-leaving #mainHeader,
body.page-leaving .about-page,
body.page-leaving .category,
body.page-leaving .contact,
body.page-leaving .social-wrapper,
body.page-leaving .local-clock {
  opacity: 0.72;
  filter: blur(5px);
  transition:
    opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}



/* ===================================================== */
/* TARGET-AWARE PAGE TRANSITIONS                         */
/* Single overlay only, unique per page, no stacking      */
/* ===================================================== */
body.page-light {
  --page-enter-bg: #ffffff;
  --page-enter-ink: #000000;
}

body.page-dark {
  --page-enter-bg: #000000;
  --page-enter-ink: #ffffff;
}

.page-enter,
.page-exit {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  overflow: hidden;
}

.page-enter {
  background: var(--page-enter-bg, #000000);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.82s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.82s ease;
}

.page-enter.hide {
  opacity: 0;
  visibility: hidden;
}

.page-exit {
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.54s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.54s ease;
}

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

.page-enter span,
.page-exit span {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.page-enter span::before,
.page-enter span::after,
.page-exit span::before,
.page-exit span::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* ABOUT enter/exit: soft ID-card / paper reveal */
body.page-about .page-enter,
.page-exit.to-about {
  background: #fff;
  color: #000;
}

body.page-about .page-enter span,
.page-exit.to-about span {
  background:
    linear-gradient(115deg, transparent 0%, transparent 41%, rgba(0,0,0,0.07) 50%, transparent 61%, transparent 100%);
  animation: aboutPageSweep 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-about .page-enter span::before,
.page-exit.to-about span::before {
  width: min(430px, 54vw);
  height: min(270px, 34vh);
  left: 50%;
  top: 50%;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 22px;
  opacity: 0.55;
  transform: translate(-50%, -50%) scale(1);
}

/* WORKS enter/exit: category shutter */
body.page-works .page-enter,
.page-exit.to-works {
  background: #000;
  color: #fff;
}

body.page-works .page-enter span,
.page-exit.to-works span {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,0.10) 0px,
      rgba(255,255,255,0.10) 1px,
      transparent 1px,
      transparent 24vw
    );
  animation: worksPageShutter 0.86s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-works .page-enter span::before,
.page-exit.to-works span::before {
  inset: -15%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.10), transparent 24%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.09), transparent);
  animation: worksPageScan 0.92s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* CONTACT enter/exit: signal connection */
body.page-contact .page-enter,
.page-exit.to-contact {
  background: #000;
  color: #fff;
}

body.page-contact .page-enter span,
.page-exit.to-contact span {
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.10), transparent 26%),
    linear-gradient(90deg, rgba(255,255,255,0.03), transparent 45%, rgba(255,255,255,0.03));
}

body.page-contact .page-enter span::before,
.page-exit.to-contact span::before {
  width: 120px;
  height: 120px;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255,255,255,0.68);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  animation: contactPagePulse 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.page-contact .page-enter span::after,
.page-exit.to-contact span::after {
  left: -20%;
  top: 50%;
  width: 140%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: contactPageLine 0.72s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* HOME/default target */
.page-exit.to-home,
.page-exit.to-default {
  background: #000;
}

.page-exit.to-home span,
.page-exit.to-default span {
  background:
    linear-gradient(115deg, transparent 0%, transparent 42%, rgba(255,255,255,0.10) 50%, transparent 60%, transparent 100%);
  transform: translateX(-35%);
  animation: defaultPageSweep 0.62s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes aboutPageSweep {
  from { transform: translateX(-35%); }
  to { transform: translateX(35%); }
}

@keyframes worksPageShutter {
  0% { opacity: 0; transform: scaleX(0.92); filter: blur(6px); }
  100% { opacity: 1; transform: scaleX(1); filter: blur(0); }
}

@keyframes worksPageScan {
  from { transform: translateX(-36%); }
  to { transform: translateX(36%); }
}

@keyframes contactPagePulse {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes contactPageLine {
  from { transform: translateX(-28%); }
  to { transform: translateX(28%); }
}

@keyframes defaultPageSweep {
  to { transform: translateX(36%); }
}

body.page-loading:not(.page-ready) #mainHeader,
body.page-loading:not(.page-ready) .about-page,
body.page-loading:not(.page-ready) .category,
body.page-loading:not(.page-ready) .contact,
body.page-loading:not(.page-ready) .social-wrapper,
body.page-loading:not(.page-ready) .local-clock {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
}

body.page-loading.page-ready #mainHeader,
body.page-loading.page-ready .about-page,
body.page-loading.page-ready .category,
body.page-loading.page-ready .contact,
body.page-loading.page-ready .social-wrapper,
body.page-loading.page-ready .local-clock {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition:
    opacity 0.84s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.84s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.84s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-leaving #mainHeader,
body.page-leaving .about-page,
body.page-leaving .category,
body.page-leaving .contact,
body.page-leaving .social-wrapper,
body.page-leaving .local-clock {
  opacity: 0.45;
  filter: blur(8px);
  transition:
    opacity 0.52s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}



/* ========================= */
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-project-title {
  font-family: "IntraNet", "JetBrains Mono", monospace !important;
}


/* ========================= */
/* CONTACT MAILTO DIRECT PATCH */
/* popup email dimatikan */
.home-email-popup,
.home-email-dialog,
.home-email-popup-backdrop {
  display: none !important;
}


/* ========================= */
/* CONTACT BLACK SCREEN MAILTO FIX */
/* popup email dipastikan tidak muncul */
.home-email-popup,
.home-email-dialog,
.home-email-popup-backdrop {
  display: none !important;
}



/* ========================= */
/* CONTACT FAST ENTER + EXIT TRANSITION PATCH */
/* masuk dan keluar contact lebih langsung, tetap smooth */
body.page-contact .page-enter {
  transition:
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1) ,
    visibility 0.28s ease !important;
}

body.page-contact .page-exit,
body.page-contact .page-exit.active {
  transition:
    opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1) ,
    visibility 0.18s ease !important;
}

body.page-contact.page-leaving .contact,
body.page-contact.page-leaving .social-wrapper,
body.page-contact.page-leaving .local-clock,
body.page-contact.page-leaving #mainHeader {
  opacity: 0.72 !important;
  filter: blur(3px) !important;
  transition:
    opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1) ,
    filter 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.page-contact .page-enter span::before,
body.page-contact .page-exit.to-contact span::before {
  animation-duration: 0.30s !important;
}

body.page-contact .page-enter span::after,
body.page-contact .page-exit.to-contact span::after {
  animation-duration: 0.24s !important;
}

body.page-loading.page-ready .contact,
body.page-loading.page-ready .social-wrapper,
body.page-loading.page-ready .local-clock,
body.page-loading.page-ready #mainHeader {
  transition:
    opacity 0.34s cubic-bezier(0.16, 1, 0.3, 1) ,
    filter 0.34s cubic-bezier(0.16, 1, 0.3, 1) ,
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1) !important;
}


/* ========================= */
/* CONTACT CSS VALIDATION CLEAN PATCH */
/* popup email tetap dimatikan */
.home-email-popup,
.home-email-dialog,
.home-email-popup-backdrop {
  display: none !important;
}
