/* ================================== */
/*          SETUP & LAYOUT UTAMA      */
/* ================================== */
:root {
  --ink: #111;
  --muted-ink: #666;
  --coral: #e2886d;
  --coral-dark: #c76f57;
  --display-font: "Poppins", sans-serif;
  --body-font: "Montserrat", sans-serif;
  --accent-font: "Playfair Display", serif;
  --mono-font: "Source Code Pro", monospace;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  background: #fff;
  color: #111;
  user-select: none;
}
body {
  font-family: var(--body-font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
h4,
.showcase-title,
.project-title,
.contact-title,
.modal-title {
  font-family: var(--display-font);
}
.navbar,
.email,
.profile-bio,
.project-desc,
.teaser-text,
.contact-intro,
.modal-desc,
.modal-highlights {
  font-family: var(--body-font);
}
.showcase-subtitle,
.project-category,
.project-status,
.currently-exploring,
.contact-eyebrow,
.contact-availability,
.modal-kicker,
.modal-status,
.modal-scroll-note,
.modal-coordinate,
.modal-side-rail,
.modal-footer-mark {
  font-family: var(--mono-font);
}
.page-container {
  display: flex;
  width: 400%;
  height: 100%;
  will-change: transform;
}
.page {
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  position: relative;
}

/* ================================== */
/*   STYLE HALAMAN 1 (HERO)           */
/* ================================== */
.hero-page {
  padding: 0 60px;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 65px 0px;
  font-size: 18px;
  position: relative;
}
.navbar nav a {
  text-decoration: none;
  color: #000;
  margin: 0 65px;
}
.navbar nav a:first-child {
  margin-left: 0;
}
.navbar nav a:hover {
  text-decoration: underline;
}
.email {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: #000;
  font-style: italic;
}
.vertical-wrapper {
  position: absolute;
  top: -40px;
  left: 65%;
  transform: translateX(-50%);
}
.vertical-text {
  writing-mode: vertical-rl;
  font-size: 80px;
  font-weight: 550;
  color: #000;
  letter-spacing: 1.4px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 60px;
  min-height: 80vh;
  position: relative;
}
.hero-left,
.hero-right {
  flex: 1;
}
.hero-left .welcome {
  font-family: "Montserrat", sans-serif;
  font-size: 50px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}
.hero-left .adna {
  font-family: "Poppins", sans-serif;
  font-size: 50px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.hero-left .highlight {
  background: #e2886d;
  color: #fff;
  display: inline-block;
  padding: 2px 12px;
}
.hero-right .text-mask {
  position: relative;
  left: -220px;
  top: 250px;
}
.tagline {
  font-size: 35px;
  letter-spacing: 1px;
  font-weight: 500;
  text-align: right;
}
.brand-block {
  position: absolute;
  top: 50px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand {
  font-weight: bold;
  color: #e2886d;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.brand-tagline {
  writing-mode: vertical-rl;
  text-align: justify;
  font-size: 10px;
  color: #000;
  letter-spacing: 1px;
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
}
.text-mask {
  overflow: hidden;
}
.navbar,
.vertical-wrapper,
.brand-block,
.hero-left .text-mask > *,
.hero-right .text-mask > * {
  opacity: 0;
  transition: all 1s cubic-bezier(0.7, 0, 0.3, 1);
}
.navbar {
  transform: translateY(-30px);
}
.vertical-wrapper {
  transform: translateY(-30px) translateX(-50%);
}
.brand-block {
  transform: translateX(30px);
}
.hero-left .text-mask > *,
.hero-right .text-mask > * {
  transform: translateY(110%);
}
body.is-visible .navbar,
body.is-visible .vertical-wrapper,
body.is-visible .brand-block,
body.is-visible .hero-left .text-mask > *,
body.is-visible .hero-right .text-mask > * {
  opacity: 1;
  transform: none;
}
body.is-visible .navbar {
  transition-delay: 0.1s;
}
body.is-visible .vertical-wrapper {
  transition-delay: 0.2s;
}
body.is-visible .hero-left .text-mask:nth-child(1) > * {
  transition-delay: 0.4s;
}
body.is-visible .hero-left .text-mask:nth-child(2) > * {
  transition-delay: 0.5s;
}
body.is-visible .hero-left .text-mask:nth-child(3) > * {
  transition-delay: 0.6s;
}
body.is-visible .hero-right .text-mask > * {
  transition-delay: 0.8s;
}
body.is-visible .brand-block {
  transition-delay: 0.9s;
}

/* ================================== */
/*   STYLE HALAMAN 2 (ABOUT)          */
/* ================================== */
#about-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 100px;
  perspective: 1000px;
}
.background-text {
  position: absolute;
  font-size: 18rem;
  font-weight: 600;
  color: #f2f2f2;
  z-index: -1;
  transition: transform 0.2s ease-out;
}
.profile-content {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
}
.profile-left {
  flex-basis: 55%;
}
.profile-title {
  font-family: "Poppins", sans-serif;
  font-size: 5rem;
  font-weight: 600;
  margin: 0 0 30px 0;
  line-height: 1.1;
  overflow: hidden;
}
.profile-title .line {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}
.profile-bio {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.profile-right {
  flex-basis: 45%;
}
.image-wrapper {
  position: relative;
  width: 350px;
  height: 450px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease-out;
}
.page.active .profile-title .line {
  transform: translateY(0);
}
.page.active .profile-title .line:nth-child(2) {
  transition-delay: 0.1s;
}
.page.active .profile-bio {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.page .logo {
  position: absolute;
  top: 65px;
  left: 105px;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.5s ease, color 0.3s ease;
  transition-delay: 0.5s;
  pointer-events: auto;
}
.page .logo:hover {
  color: #e2886d;
}
.portfolio-page .logo {
  opacity: 1;
}

/* ================================== */
/*   STYLE HALAMAN 3 (PORTFOLIO SHOWCASE) */
/* ================================== */
#bridge-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 80px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 68%, #fff9f7 100%);
}
#bridge-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: -1px;
  width: 42%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 100% 48%,
    rgba(226, 136, 109, 0.2) 0%,
    rgba(226, 136, 109, 0.08) 38%,
    transparent 74%
  );
}
.portfolio-showcase-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}
.showcase-header {
  margin-bottom: 30px;
  text-align: left;
}
.showcase-subtitle {
  font-size: 11px;
  letter-spacing: 2px;
  color: #e2886d;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.showcase-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.5px;
  color: #111;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 35px;
}
.project-card {
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 26px 22px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  opacity: 0;
  transform: translateY(30px);
}
#bridge-page.active .project-card {
  opacity: 1;
  transform: translateY(0);
}
#bridge-page.active .project-card:nth-child(1) { transition-delay: 0.2s; }
#bridge-page.active .project-card:nth-child(2) { transition-delay: 0.35s; }
#bridge-page.active .project-card:nth-child(3) { transition-delay: 0.5s; }

.project-card:hover {
  transform: translateY(-8px);
  border-color: #e2886d;
  box-shadow: 0 12px 30px rgba(226, 136, 109, 0.12);
  background: #ffffff;
}
.project-num {
  font-family: "Source Code Pro", monospace;
  font-size: 12px;
  color: #aaa;
  font-weight: 600;
  margin-bottom: 10px;
}
.project-category {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #e2886d;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.project-title {
  font-family: "Poppins", sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #111;
}
.project-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 16px 0;
}
.project-status {
  display: block;
  margin-bottom: 14px;
  color: #999;
  font-family: "Source Code Pro", monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 11px;
  background: #f0f0f0;
  color: #333;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}
.project-card:hover .tag {
  background: #fdf0ec;
  color: #e2886d;
}
.bridge-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  margin-top: 15px;
  text-align: right;
  gap: 10px;
}
.currently-exploring {
  align-self: flex-start;
  margin: 0 auto 0 0;
  color: #999;
  font-family: "Source Code Pro", monospace;
  font-size: 10px;
  letter-spacing: 1px;
  line-height: 1.8;
  text-align: left;
}
.currently-exploring strong {
  color: #555;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.teaser-text {
  font-size: 15px;
  color: #555;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: right;
}
.cta-link {
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: #e2886d;
  padding: 9px 22px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(226, 136, 109, 0.25);
  align-self: flex-end;
}
.cta-link svg {
  transition: transform 0.3s ease;
}
.cta-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 22px rgba(226, 136, 109, 0.35);
  background: #d97b5e;
}
.cta-link:hover svg {
  transform: translateY(3px);
}
.teaser-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.7, 0, 0.3, 1), 
              transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
.teaser-text span.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#bridge-page .cta-link {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
#bridge-page.active .cta-link {
  opacity: 1;
  transition-delay: 0.6s;
}

/* ================================== */
/*   STYLE HALAMAN 4 (CONTACT)        */
/* ================================== */
.contact-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 60px;
  box-sizing: border-box;
  text-align: left;
  background:
    radial-gradient(circle at 18% 20%, rgba(226, 136, 109, 0.12), transparent 28%),
    radial-gradient(circle at 82% 75%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, #fff7f4 0%, #f5f5f5 100%);
  position: relative;
  perspective: 1500px;
  overflow: hidden;
}
.contact-page::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -15%;
  left: -24%;
  width: 72%;
  height: 130%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(226, 136, 109, 0.16) 0%,
    rgba(226, 136, 109, 0.07) 42%,
    transparent 74%
  );
  filter: blur(18px);
}
.contact-page::before {
  content: "SAY HI";
  position: absolute;
  top: 8%;
  right: -4%;
  color: rgba(226, 136, 109, 0.09);
  font-family: "Poppins", sans-serif;
  font-size: clamp(7rem, 18vw, 15rem);
  font-weight: 600;
  letter-spacing: -10px;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
  transform: rotate(90deg);
}
.contact-center-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.contact-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.contact-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #e2886d;
  font-family: "Source Code Pro", monospace;
  font-size: 11px;
  letter-spacing: 2px;
}
.contact-title {
  margin: 0 0 10px 0;
  color: #111;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.02;
  text-align: left;
}
.contact-title em {
  color: #e2886d;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: -2px;
}
.contact-intro {
  max-width: 460px;
  margin: 0 0 14px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.contact-availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #777;
  font-family: "Source Code Pro", monospace;
  font-size: 10px;
  letter-spacing: 1px;
}
.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #77a878;
  box-shadow: 0 0 0 4px rgba(119, 168, 120, 0.14);
}
.contact-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
}
.chip {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 76px;
  padding: 12px 26px 12px 14px;
  border: 1px solid rgba(226, 136, 109, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 24px rgba(80, 40, 30, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #222;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.chip span {
  display: block;
  margin-bottom: 8px;
  color: #e2886d;
  font-family: "Source Code Pro", monospace;
  font-size: 10px;
  font-weight: 600;
  transition: color 0.25s ease;
}
.chip i {
  position: absolute;
  top: 13px;
  right: 12px;
  color: #b5a39d;
  font-size: 10px;
  transition: transform 0.25s ease, color 0.25s ease;
}
.chip:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: #e2886d;
  box-shadow: 0 14px 30px rgba(226, 136, 109, 0.18);
  transform: translateY(-3px);
}
.chip:hover i {
  color: #e2886d;
  transform: translate(2px, -2px);
}
.chip.active {
  background: #e2886d;
  border-color: #e2886d;
  color: #fff;
  box-shadow: 0 14px 30px rgba(226, 136, 109, 0.28);
  transform: translateY(-2px);
}
.chip.active span,
.chip.active i {
  color: #fff;
}
.contact-main-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  position: relative;
  z-index: 1;
  padding: 10px 20px;
  border: 1px solid rgba(226, 136, 109, 0.35);
  border-radius: 50px;
  background: #e2886d;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 20px rgba(226, 136, 109, 0.22);
}
.contact-main-link i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-size: 10px;
}
.contact-main-link:hover {
  gap: 16px;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(226, 136, 109, 0.32);
}
.contact-right-col {
  width: 100%;
}
.contact-form-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 20px 45px rgba(226, 136, 109, 0.08), 0 4px 15px rgba(0, 0, 0, 0.02);
}
.contact-form-header {
  margin-bottom: 12px;
}
.contact-form-header h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 3px 0;
}
.contact-form-header p {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  color: #777;
  margin: 0;
}
.socials-container {
  position: absolute;
  bottom: 30px;
  right: 60px;
  text-align: right;
  font-size: 14px;
  color: #777;
  z-index: 1;
}
.socials-container p {
  margin: 0 0 12px 0;
}
.social-icons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.social-icons a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  color: #555;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
  color: #e2886d;
  transform: translateY(-2px);
}
.social-icons i {
  font-size: 20px;
}

/* ==================================================================== */
/* ===== NETLIFY CONTACT FORM + PESAN SUKSES ===== */
/* ==================================================================== */
.simple-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
  position: relative;
  z-index: 2;
}
.input-group input, .input-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fcfcfc;
  font-family: inherit;
  font-size: 13px;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.input-group input:focus, .input-group textarea:focus {
  outline: none;
  border-color: #e2886d;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(226, 136, 109, 0.12);
}
.input-group textarea {
  height: 70px;
  resize: none;
}
.simple-submit {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.simple-submit:hover {
  background: #e2886d;
  transform: translateY(-2px);
}
#form-success {
  display: none;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
  color: #166534;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}
#form-error {
  display: none;
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* ================================== */
/*     SLIDER UI                      */
/* ================================== */
.slider-container {
  position: fixed;
  bottom: 50px;
  left: 80px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
body.on-page-0 .slider-container,
body.on-page-1 .slider-container,
body.on-page-2 .slider-container,
body.on-page-3 .slider-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.slider-label {
  font-size: 10px;
  color: #aaa;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.slider {
  position: relative;
  width: 200px;
  height: 10px;
  display: flex;
  align-items: center;
}
.slider-track {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ddd;
}
.slider-handle {
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 2px;
  background-color: #000;
  transform: translateY(-50%);
}

#loader-wrapper.fast-hide {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==================================================================== */
/* ===== LOADING SCREEN (THE UNFOLDING LINE) ===== */
/* ==================================================================== */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  transition: opacity 0.8s ease;
}
.unfolding-line {
  width: 1px;
  height: 100%;
  background-color: #fff;
  transition: width 1.2s cubic-bezier(0.83, 0, 0.17, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}
.unfolding-line.is-unfolded {
  width: 100%;
}
.loader-text {
  display: flex;
  font-family: "Playfair Display", serif;
  font-size: 10rem;
  font-weight: 500;
  color: #111;
}
.loader-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.loader-text .char.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#loader-wrapper.is-exiting {
  opacity: 0;
}
#loader-wrapper.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* ===== KODE BARU: ANIMASI UNTUK HALAMAN ABOUT DI MOBILE ===== */
#about-page .profile-title,
#about-page .profile-bio,
#about-page .image-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#about-page.active .profile-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
#about-page.active .profile-bio {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
#about-page.active .image-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* ==================================================================== */
/* ===================      MEDIA QUERIES (RESPONSIVE)    =============== */
/* ==================================================================== */

@media (max-width: 1024px) {
  .hero-page { padding: 0 40px; }
  .navbar { padding: 40px 0; font-size: 16px; }
  .navbar nav a { margin: 0 30px; }
  .vertical-text { font-size: 60px; }
  .hero-left .welcome, .hero-left .adna { font-size: 40px; }
  .tagline { font-size: 28px; }
  .hero-right .text-mask { left: -150px; top: 200px; }
  #about-page { padding: 0 60px; }
  .background-text { font-size: 12rem; }
  .profile-title { font-size: 4rem; }
  .profile-content { gap: 40px; }
  .image-wrapper { width: 300px; height: 400px; }
  .contact-page { padding: 36px 44px; }
  .contact-center-content { gap: 28px; grid-template-columns: 1fr 1fr; }
  .chip { min-height: 68px; padding: 10px 22px 10px 10px; font-size: 11px; }
  .contact-form-card { padding: 20px 22px; }
  .socials-container { right: 44px; bottom: 26px; }
  .slider-container { left: 44px; bottom: 34px; }
}

@media (max-width: 768px) {
  .loader-text { font-size: 5rem; }
  html, body { overflow-x: hidden; }
  .page { padding: 0 25px; }
  .hero-page { padding: 0 25px; }
  
  .navbar {
    display: none; /* SEMBUNYIKAN NAVBAR DI MOBILE */
  }
  
  .vertical-wrapper { display: none; }
  .hero { flex-direction: column; align-items: flex-start; text-align: left; min-height: auto; gap: 80px; padding-top: 60px; }
  .hero-left .welcome, .hero-left .adna { font-size: 44px; }
  
  .hero-left .highlight {
    padding: 4px 14px; /* TAMBAH PADDING HIGHLIGHT */
  }

  .hero-right { width: 100%; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; margin-top: 50px; }
  .hero-right .text-mask { position: static; margin-top: 0; }
  
  .tagline {
    text-align: right;
    font-size: 22px;
    position: relative;
    bottom: 10px;
  }
  .brand-block {
    margin-top: 0;
    align-items: flex-start;
    position: relative;
    top: 150px;
  }
  .brand-tagline {
    writing-mode: horizontal-tb;
    text-align: left;
  }
  
  #about-page { padding: 80px 25px 40px; justify-content: flex-start; }
  .background-text { font-size: 5rem; top: 100px; }
  .profile-content { flex-direction: column; text-align: center; align-items: center; gap: 30px; }
  .profile-title { font-size: 2.8rem; margin-bottom: 15px; }
  
  .profile-bio {
    max-width: 100%;
    font-size: 16px; /* PERBESAR FONT BIO */
  }
  
  .image-wrapper { width: 240px; height: 300px; }
  .page .logo { left: 25px; top: 40px; }
  #bridge-page { padding: 25px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .teaser-text { font-size: 16px; }
  .cta-link { position: static; margin-top: 40px; }
  #contact-page.contact-page {
    overflow-y: auto !important;
    height: 100vh !important;
    padding: 48px 22px 100px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  #contact-page .contact-center-content {
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    font-size: 16px;
  }
  #contact-page .contact-title {
    font-size: 2.4rem;
    letter-spacing: -1.5px;
  }
  #contact-page .contact-intro {
    margin-top: 8px;
    font-size: 13.5px;
  }
  #contact-page .contact-chips {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #contact-page .chip {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    padding: 12px 36px 12px 14px;
  }
  #contact-page .chip span {
    display: inline-block;
    margin: 0 10px 0 0;
  }
  #contact-page .chip i {
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
  }
  #contact-page .chip:hover i,
  #contact-page .chip.active i {
    transform: translateY(-50%) translate(2px, -2px);
  }
  #contact-page .contact-main-link {
    margin-top: 4px;
  }
  #contact-page .socials-container {
    position: static;
    margin-top: 24px;
    text-align: center;
    width: 100%;
  }
  #contact-page .social-icons {
    justify-content: center;
  }
  .slider-container { display: none; }
}

.animated-swipe-hint {
  display: none;
}
.mobile-page-nav {
  display: none;
}
@media (max-width: 768px) {
  .animated-swipe-hint {
    display: flex;
    position: fixed;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: 15px;
    color: #bbb;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out 2s infinite;
  }
  body:not(.on-page-0) .animated-swipe-hint {
    display: none;
  }
  .mobile-page-nav {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 22px;
    right: 22px;
    z-index: 11;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }
  .mobile-page-button {
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #111;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  }
  .mobile-page-button:not(:disabled):active,
  .mobile-page-button:not(:disabled):hover {
    background: #e2886d;
    border-color: #e2886d;
    color: #fff;
  }
  .mobile-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.3;
  }
  .mobile-page-indicator {
    color: #888;
    font-family: "Source Code Pro", monospace;
    font-size: 11px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.82);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .animated-swipe-hint i {
    animation: pulse-arrow 2s infinite ease-in-out;
  }
  .animated-swipe-hint .fa-chevron-right {
    animation-delay: 0.1s;
  }
}
@keyframes fadeInOut {
  0%, 100% { 
    opacity: 0; 
  }
  20%, 80% { 
    opacity: 1; 
  }
}
@keyframes pulse-arrow {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.3); 
  }
}
.bridge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 25px;
  text-align: center;
  gap: 12px;
}
.teaser-wrapper {
  text-align: center;
  width: 100%;
}
.teaser-text {
  font-size: 15.5px;
  color: #555;
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  display: inline-block;
}
.cta-link {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: #e2886d;
  padding: 10px 26px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(226, 136, 109, 0.25);
  align-self: center;
  margin: 0 auto;
}
.cta-link svg {
  transition: transform 0.3s ease;
}
.cta-link:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 22px rgba(226, 136, 109, 0.35);
  background: #d97b5e;
}
.cta-link:hover svg {
  transform: translateY(3px);
}
.teaser-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.7, 0, 0.3, 1), 
              transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
.teaser-text span.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#bridge-page .cta-link {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
#bridge-page.active .cta-link {
  opacity: 1;
  transition-delay: 0.6s;
}

/* ==================================================================== */
/* ===== PROJECT DETAIL MODAL OVERLAY (PREMIUM GLASSMORPHISM) ===== */
/* ==================================================================== */
.project-card {
  cursor: pointer;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(circle at 15% 20%, rgba(226, 136, 109, 0.22), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12), transparent 28%),
    rgba(15, 15, 15, 0.62);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
  box-sizing: border-box;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal-sheet {
  background: #fcfaf8;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow:
    0 34px 90px rgba(67, 42, 34, 0.24),
    0 10px 24px rgba(67, 42, 34, 0.1),
    0 0 0 8px rgba(255, 255, 255, 0.08);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  padding-left: 28px;
}
.modal-sheet::-webkit-scrollbar {
  display: none;
}
.modal-overlay.active .modal-sheet {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(17, 17, 17, 0.14);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  color: #111111;
  box-shadow: 0 6px 16px rgba(67, 42, 34, 0.12);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.modal-close:hover {
  background: #e2886d;
  color: #ffffff;
  transform: rotate(90deg);
  border-color: #e2886d;
}
.modal-side-rail {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 0;
  z-index: 8;
  display: flex;
  width: 28px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #999;
  font-family: "Source Code Pro", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  writing-mode: vertical-rl;
}
.modal-side-rail span:first-child {
  color: #e2886d;
}
.modal-rail-line {
  width: 1px;
  min-height: 100px;
  flex: 1;
  margin: 14px 0;
  background: linear-gradient(180deg, transparent, #e2886d, transparent);
}
.modal-header-accent {
  min-height: 285px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(226, 136, 109, 0.2), transparent 25%),
    linear-gradient(135deg, #fffaf7 0%, #f2e9e3 100%);
  padding: 30px 38px;
  border-top-left-radius: 17px;
  border-top-right-radius: 17px;
  border-bottom: 0;
  position: relative;
  isolation: isolate;
}
.modal-header-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 25%, rgba(226, 136, 109, 0.12) 25.2%, transparent 25.5%),
    linear-gradient(300deg, transparent 64%, rgba(255, 255, 255, 0.7) 64.2%, transparent 64.5%);
  pointer-events: none;
  z-index: -1;
}
.modal-header-accent::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: -8px;
  left: 4%;
  height: 18px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(226, 136, 109, 0.08) 12%,
    rgba(226, 136, 109, 0.62) 50%,
    rgba(226, 136, 109, 0.08) 88%,
    transparent 100%
  );
  filter: blur(6px);
  opacity: 0.85;
  pointer-events: none;
}
.modal-header-copy {
  position: relative;
  z-index: 2;
  max-width: 450px;
}
.modal-kicker {
  display: block;
  color: rgba(17, 17, 17, 0.5);
  font-family: "Source Code Pro", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.modal-category {
  display: block;
  margin-top: 30px;
  color: #e2886d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.modal-title {
  margin: 10px 0 0;
  color: #111;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.02;
}
.modal-visual {
  position: absolute;
  right: 70px;
  top: 47px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(226, 136, 109, 0.72);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.modal-visual-grid {
  position: absolute;
  inset: -35px;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle, #000 20%, transparent 70%);
}
.modal-visual-cross {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid #e2886d;
  transform: rotate(25deg);
}
.modal-cross-one {
  top: -18px;
  right: 8px;
}
.modal-cross-two {
  bottom: 2px;
  left: -18px;
  border-color: rgba(17, 17, 17, 0.25);
}
.modal-visual::before,
.modal-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 50%;
}
.modal-visual::before {
  inset: 18px -28px;
}
.modal-visual::after {
  inset: -18px 28px;
}
.modal-visual-number {
  position: absolute;
  top: 41px;
  left: 55px;
  color: rgba(17, 17, 17, 0.11);
  font-family: "Poppins", sans-serif;
  font-size: 7rem;
  font-weight: 600;
  letter-spacing: -8px;
  line-height: 1;
  transform: rotate(25deg);
}
.modal-visual-line {
  position: absolute;
  top: 50%;
  left: -35px;
  width: 260px;
  height: 1px;
  background: #e2886d;
}
.modal-visual-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2886d;
  box-shadow: 0 0 0 8px rgba(226, 136, 109, 0.14);
  transform: translate(-50%, -50%);
}
.modal-coordinate {
  position: absolute;
  right: 38px;
  bottom: 82px;
  color: rgba(17, 17, 17, 0.38);
  font-family: "Source Code Pro", monospace;
  font-size: 8px;
  letter-spacing: 1px;
  transform: rotate(-90deg);
  transform-origin: right bottom;
}
.modal-orbit {
  position: absolute;
  border: 1px solid rgba(226, 136, 109, 0.55);
  border-radius: 50%;
  transform: rotate(-24deg);
  pointer-events: none;
}
.modal-orbit-one {
  width: 230px;
  height: 75px;
  right: 60px;
  top: 28px;
}
.modal-orbit-two {
  width: 300px;
  height: 100px;
  right: 25px;
  top: 14px;
  border-color: rgba(255, 255, 255, 0.13);
}
.modal-badge-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-project-num {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #e2886d;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}
.modal-header-bottom {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-status,
.modal-scroll-note {
  font-family: "Source Code Pro", monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
}
.modal-status {
  color: #c76f57;
}
.modal-scroll-note {
  color: rgba(17, 17, 17, 0.42);
}
.modal-body {
  padding: 30px 38px 36px;
}
.modal-desc {
  max-width: 620px;
  margin: 0 0 24px;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}
.modal-meta-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 12px;
  margin-bottom: 12px;
}
.modal-section {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 12px;
  background: #fff;
}
.modal-status-card {
  background: #fff3ee;
  border-color: rgba(226, 136, 109, 0.2);
}
.modal-status-card p {
  margin: 0;
  color: #7d625a;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  line-height: 1.3;
}
.modal-section h4 {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-section h4 i {
  color: #e2886d;
}
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-tags .tag {
  font-size: 12px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  color: #333;
  font-weight: 500;
}
.modal-highlights {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  color: #444;
  line-height: 1.8;
}
.modal-highlights-card {
  margin-bottom: 0;
}
.modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding-top: 10px;
}
.modal-footer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: #aaa;
  font-family: "Source Code Pro", monospace;
  font-size: 9px;
  letter-spacing: 1px;
}
.modal-footer-line {
  width: 50px;
  height: 1px;
  background: #e2886d;
}
.modal-btn {
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}
.modal-btn[hidden] {
  display: none;
}
.modal-btn.primary {
  background: #e2886d;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(226, 136, 109, 0.3);
}
.modal-btn.primary:hover {
  background: #d97b5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(226, 136, 109, 0.4);
}
.modal-btn.secondary {
  background: rgba(17, 17, 17, 0.86);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.modal-btn.secondary:hover {
  background: #222222;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 14px;
  }
  .modal-sheet {
    max-height: 88vh;
    border-radius: 20px;
    padding-left: 22px;
  }
  .modal-side-rail {
    top: 24px;
    bottom: 24px;
    width: 22px;
    font-size: 7px;
  }
  .modal-header-accent {
    min-height: 245px;
    padding: 25px 24px;
    border-top-left-radius: 19px;
    border-top-right-radius: 19px;
  }
  .modal-header-bottom {
    left: 24px;
    right: 24px;
    bottom: 19px;
  }
  .modal-visual {
    right: 32px;
    top: 72px;
    width: 145px;
    height: 145px;
  }
  .modal-visual-number {
    top: 31px;
    left: 42px;
    font-size: 5.5rem;
  }
  .modal-visual-line {
    left: -24px;
    width: 195px;
  }
  .modal-coordinate {
    display: none;
  }
  .modal-category {
    margin-top: 25px;
    font-size: 10px;
  }
  .modal-title {
    max-width: 240px;
    font-size: 2rem;
  }
  .modal-body {
    padding: 27px 24px 28px;
  }
  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .modal-scroll-note {
    display: none;
  }
  .modal-desc {
    margin-bottom: 20px;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .modal-footer-mark {
    font-size: 8px;
  }
}

body.chaos-mode .project-card:nth-child(1) {
  transform: rotate(-1deg) translateY(-4px);
}
body.chaos-mode .project-card:nth-child(2) {
  transform: rotate(1deg) translateY(3px);
}
body.chaos-mode .project-card:nth-child(3) {
  transform: rotate(-0.5deg) translateY(-2px);
}
body.chaos-mode .showcase-title,
body.chaos-mode .profile-title {
  text-shadow: 3px 2px 0 rgba(226, 136, 109, 0.35);
}

/* ==================================================================== */
/* ===== MOTION SYSTEM: MOMENTUM, REVEAL, AND MICRO-INTERACTIONS ===== */
/* ==================================================================== */
@keyframes pageShearForward {
  0% { opacity: 0.7; transform: translateX(3vw) skewX(-1.2deg); }
  100% { opacity: 1; transform: translateX(0) skewX(0); }
}

@keyframes pageShearBackward {
  0% { opacity: 0.7; transform: translateX(-3vw) skewX(1.2deg); }
  100% { opacity: 1; transform: translateX(0) skewX(0); }
}

@keyframes softRise {
  0% { opacity: 0; transform: translateY(28px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes softBlurIn {
  0% { opacity: 0; filter: blur(10px); transform: translateY(16px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes ambientDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -1%, 0) scale(1.04); }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(119, 168, 120, 0.14); }
  50% { box-shadow: 0 0 0 8px rgba(119, 168, 120, 0.04); }
}

.page.is-entering.enter-from-forward {
  animation: pageShearForward 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page.is-entering.enter-from-backward {
  animation: pageShearBackward 1.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page.is-leaving {
  opacity: 0.92;
  transition: opacity 0.5s ease;
}

.page-container {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.hero-page::after,
#about-page::after,
#bridge-page::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  animation: ambientDrift 12s ease-in-out infinite;
}

.hero-page::after {
  width: 28vw;
  height: 28vw;
  right: -12vw;
  top: 18vh;
  background: rgba(226, 136, 109, 0.045);
}

#about-page::after {
  width: 24vw;
  height: 24vw;
  left: -10vw;
  bottom: 8vh;
  background: rgba(226, 136, 109, 0.06);
}

#bridge-page::before {
  width: 22vw;
  height: 22vw;
  left: -10vw;
  top: 8vh;
  background: rgba(226, 136, 109, 0.045);
}

.page.is-entering .showcase-header,
.page.is-entering .profile-left,
.page.is-entering .profile-right,
.page.is-entering .contact-center-content > *,
.page.is-entering .socials-container {
  animation: softRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#about-page.is-entering .profile-left { animation-delay: 0.16s; }
#about-page.is-entering .profile-right { animation-delay: 0.3s; }
#bridge-page.is-entering .showcase-header { animation-delay: 0.12s; }
#bridge-page.is-entering .showcase-grid { animation: softBlurIn 0.9s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both; }
#bridge-page.is-entering .bridge-content { animation: softRise 0.8s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }
#contact-page.is-entering .contact-center-content > *:nth-child(1) { animation-delay: 0.1s; }
#contact-page.is-entering .contact-center-content > *:nth-child(2) { animation-delay: 0.18s; }
#contact-page.is-entering .contact-center-content > *:nth-child(3) { animation-delay: 0.28s; }
#contact-page.is-entering .contact-center-content > *:nth-child(4) { animation-delay: 0.36s; }
#contact-page.is-entering .contact-center-content > *:nth-child(5) { animation-delay: 0.46s; }
#contact-page.is-entering .socials-container { animation-delay: 0.68s; }

.contact-page::after {
  animation: ambientDrift 14s ease-in-out infinite;
}

.availability-dot {
  animation: dotPulse 2.8s ease-in-out infinite;
}

.project-card {
  overflow: hidden;
  isolation: isolate;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover::before {
  transform: translateX(120%);
}

.project-num {
  transition: color 0.35s ease, transform 0.35s ease;
}

.project-card:hover .project-num {
  color: #e2886d;
  transform: translateX(4px);
}

.modal-overlay.active .modal-header-accent::before {
  animation: ambientDrift 9s ease-in-out infinite;
}

.modal-overlay.active .modal-visual {
  animation: modalOrbit 14s linear infinite;
}

@keyframes modalOrbit {
  from { transform: rotate(-25deg); }
  to { transform: rotate(335deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== COMPLETE REVEALS FOR PROJECTS & OPEN CHANNEL ===== */
#bridge-page .showcase-subtitle,
#bridge-page .showcase-title,
#bridge-page .project-card,
#bridge-page .currently-exploring,
#bridge-page .teaser-wrapper,
#bridge-page .cta-link {
  opacity: 0;
  transform: translateY(24px);
  transition-property: opacity, transform, box-shadow, background, border-color;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

#bridge-page.active .showcase-subtitle,
#bridge-page.active .showcase-title,
#bridge-page.active .project-card,
#bridge-page.active .currently-exploring,
#bridge-page.active .teaser-wrapper,
#bridge-page.active .cta-link {
  opacity: 1;
  transform: translateY(0);
}

#bridge-page.active .showcase-subtitle { transition-delay: 0.08s; }
#bridge-page.active .showcase-title { transition-delay: 0.16s; }
#bridge-page.active .project-card:nth-child(1) { transition-delay: 0.28s; }
#bridge-page.active .project-card:nth-child(2) { transition-delay: 0.4s; }
#bridge-page.active .project-card:nth-child(3) { transition-delay: 0.52s; }
#bridge-page.active .currently-exploring { transition-delay: 0.66s; }
#bridge-page.active .teaser-wrapper { transition-delay: 0.74s; }
#bridge-page.active .cta-link { transition-delay: 0.84s; }
#bridge-page.active .project-card:hover,
#bridge-page.active .cta-link:hover {
  transition-delay: 0s;
}

#bridge-page .project-card > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#bridge-page.active .project-card > * {
  opacity: 1;
  transform: translateY(0);
}

#bridge-page.active .project-card:nth-child(1) > * { transition-delay: 0.42s; }
#bridge-page.active .project-card:nth-child(2) > * { transition-delay: 0.54s; }
#bridge-page.active .project-card:nth-child(3) > * { transition-delay: 0.66s; }

#bridge-page .project-content > * {
  opacity: 0;
  transform: translateY(9px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

#bridge-page.active .project-content > * {
  opacity: 1;
  transform: translateY(0);
}

#bridge-page.active .project-card:nth-child(1) .project-content > * { transition-delay: 0.48s; }
#bridge-page.active .project-card:nth-child(2) .project-content > * { transition-delay: 0.6s; }
#bridge-page.active .project-card:nth-child(3) .project-content > * { transition-delay: 0.72s; }

#bridge-page .cta-link svg {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#bridge-page .cta-link:hover svg {
  transform: translateY(4px) scale(1.15);
}

#contact-page .contact-eyebrow,
#contact-page .contact-title,
#contact-page .contact-intro,
#contact-page .contact-availability,
#contact-page .contact-chips,
#contact-page .contact-main-link,
#contact-page .contact-right-col,
#contact-page .socials-container {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease,
              background 0.25s ease,
              gap 0.25s ease;
}

#contact-page.active .contact-eyebrow,
#contact-page.active .contact-title,
#contact-page.active .contact-intro,
#contact-page.active .contact-availability,
#contact-page.active .contact-chips,
#contact-page.active .contact-main-link,
#contact-page.active .contact-right-col,
#contact-page.active .socials-container {
  opacity: 1;
  transform: translateY(0);
}

#contact-page.active .contact-eyebrow { transition-delay: 0.05s; }
#contact-page.active .contact-title { transition-delay: 0.12s; }
#contact-page.active .contact-intro { transition-delay: 0.2s; }
#contact-page.active .contact-availability { transition-delay: 0.28s; }
#contact-page.active .contact-chips { transition-delay: 0.35s; }
#contact-page.active .contact-main-link { transition-delay: 0.45s; }
#contact-page.active .contact-right-col { transition-delay: 0.22s; }
#contact-page.active .socials-container { transition-delay: 0.52s; }

#contact-page .chip {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease,
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease,
              box-shadow 0.25s ease;
}

#contact-page.active .chip {
  opacity: 1;
  transform: translateY(0);
}

#contact-page.active .chip:nth-child(1) { transition-delay: 0.36s, 0.36s, 0s, 0s, 0s, 0s; }
#contact-page.active .chip:nth-child(2) { transition-delay: 0.44s, 0.44s, 0s, 0s, 0s, 0s; }
#contact-page.active .chip:nth-child(3) { transition-delay: 0.52s, 0.52s, 0s, 0s, 0s, 0s; }

#contact-page.active .chip:hover {
  transition-delay: 0s;
  transform: translateY(-3px);
}

#contact-page.active .chip.active {
  transition-delay: 0s;
  transform: translateY(-2px);
}

#contact-page.active .contact-main-link:hover {
  transition-delay: 0s;
  transform: translateY(-2px);
}

#contact-page .social-icons a {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.45s ease,
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.25s ease,
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

#contact-page.active .social-icons a {
  opacity: 1;
  transform: translateY(0) scale(1);
}

#contact-page.active .social-icons a:nth-child(1) { transition-delay: 0.56s, 0.56s, 0s, 0s, 0s, 0s; }
#contact-page.active .social-icons a:nth-child(2) { transition-delay: 0.62s, 0.62s, 0s, 0s, 0s, 0s; }
#contact-page.active .social-icons a:nth-child(3) { transition-delay: 0.68s, 0.68s, 0s, 0s, 0s, 0s; }

#contact-page.active .social-icons a:hover {
  transition-delay: 0s;
  transform: translateY(-3px) scale(1.06);
  color: #e2886d;
  border-color: rgba(226, 136, 109, 0.5);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 18px rgba(226, 136, 109, 0.16);
}

#contact-page::before {
  transform: rotate(90deg) translateX(20px);
  opacity: 0;
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

#contact-page.active::before {
  opacity: 1;
  transform: rotate(90deg) translateX(0);
  transition-delay: 0.15s;
}

@keyframes channelExitDown {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(0.98);
  }
}

#contact-page.is-leaving .contact-eyebrow,
#contact-page.is-leaving .contact-title,
#contact-page.is-leaving .contact-intro,
#contact-page.is-leaving .contact-availability,
#contact-page.is-leaving .contact-chips,
#contact-page.is-leaving .contact-main-link,
#contact-page.is-leaving .contact-right-col,
#contact-page.is-leaving .socials-container {
  animation: channelExitDown 0.45s cubic-bezier(0.55, 0, 0.8, 0.25) both;
}
