/* ==========================================================================
   1. VARIABEL WARNA & PENGATURAN DASAR (:root) — DESKTOP BASELINE
   ========================================================================== */
:root {
  --bg: #101012;
  --surface: #18181B;
  --line: #26262B;
  --line2: #3A3A40;
  --text: #F4F1EA;
  --muted: #A8A39A;
  --accent: #F2B544;
  --accent-light: #F7C766;
  --ink: #101012;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 68px;
  --container-w: 1140px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: var(--accent);
  color: var(--ink);
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}

body {
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Garis Progres Gulir Emas 2px di Atas */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background-color: transparent;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ==========================================================================
   2. TATA LETAK, PEMISAH BAGIAN, & TOMBOL UMUM (DESKTOP)
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 5rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-h);
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

.section-subtitle {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Tombol Utama & Sekunder (Lapisan Sapuan Datar Tanpa Gradasi) */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.btn-label,
.btn-icon {
  position: relative;
  z-index: 1;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
}

.btn-primary::before {
  background-color: var(--accent-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--line2);
}

.btn-secondary::before {
  background-color: var(--accent);
}

/* Efek Tekan di Semua Perangkat */
.btn:active,
.btn-watch:not(:disabled):active,
.filter-pill:active,
.lang-switch:active,
.menu-btn:active,
.modal-close:active,
.contact-btn-card:active,
.footer-top-btn:active,
.view-mode-btn:active {
  transform: scale(0.98);
}

/* Efek Hover Hanya pada Perangkat Berkursor */
@media (hover: hover) {
  .btn-primary:hover::before {
    transform: scaleX(1);
  }

  .btn-secondary:hover {
    color: var(--ink);
    border-color: var(--accent);
  }

  .btn-secondary:hover::before {
    transform: scaleX(1);
  }

  .btn-watch:not(:disabled):hover {
    color: var(--ink);
    border-color: var(--accent);
  }

  .btn-watch:not(:disabled):hover::before {
    transform: scaleX(1);
  }

  .lang-switch:hover {
    border-color: var(--line2);
  }

  .nav-link:hover {
    color: var(--accent);
  }

  .filter-pill:not(.is-active):hover {
    border-color: var(--line2);
    color: var(--text);
  }

  .skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .resume-card:hover {
    transform: translateY(-4px);
    border-color: var(--line2);
  }

  .contact-btn-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background-color: #141417;
  }

  .contact-btn-card:hover .contact-icon-box {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
  }

  .contact-btn-card:hover .contact-btn-arrow {
    color: var(--accent);
    transform: translateX(4px);
  }

  .footer-top-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .view-mode-btn:hover {
    color: var(--text);
  }

  .modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
  }
}

/* ==========================================================================
   3. NAVBAR TETAP DI ATAS (STICKY) — DESKTOP
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
}

.navbar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.nav-panel {
  position: static;
  display: block;
  background: none;
  border: none;
  padding: 0;
}

.nav-links {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.35rem 0;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease-out);
}

.nav-link.is-active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.lang-item {
  color: var(--muted);
}

.lang-item.is-active {
  color: var(--accent);
}

.lang-divider {
  color: var(--line2);
}

.menu-btn {
  display: none;
  padding: 0.4rem 0.85rem;
  background-color: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   4. BERANDA (DUA KOLOM DI DESKTOP + FOTO SKETSA 2582 x 3703 TANPA BORDER)
   ========================================================================== */
.hero {
  padding-top: 3rem;
  padding-bottom: 4rem;
  border-bottom: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--text);
  margin-bottom: 1.15rem;
  overflow-wrap: break-word;
}

.hero-statement {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.85rem;
}

/* Garis Bawah Emas pada "satu cerita" / "one story" */
.story-highlight {
  position: relative;
  display: inline-block;
}

.story-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.story-highlight.is-drawn::after {
  transform: scaleX(1);
}

.hero-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 60ch;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Baris Fakta Kecil di Bawah Tombol */
.hero-facts {
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.25rem;
}

.fact-item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.fact-number {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.fact-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

/* Foto Diri Tanpa Border di Kanan Beranda (Rasio 2582 x 3703) */
.hero-preview {
  display: block;
  min-width: 0;
}

.hero-photo-raw {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 2582 / 3703;
  border-radius: 0;
  background-color: transparent;
  overflow: hidden;
  margin-inline: auto;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border: none;
  outline: none;
  box-shadow: none;
}

/* ==========================================================================
   BARIS ALAT (ANTARA BERANDA DAN KARYA)
   ========================================================================== */
.tools-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.15rem;
  background-color: var(--bg);
}

.tools-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.tools-strip-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.tools-strip-list {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.tools-strip-list span {
  color: var(--accent);
  margin-inline: 0.35rem;
}

/* ==========================================================================
   5. PROYEK — DESKTOP
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.25rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.filter-pill.is-active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.filter-count {
  font-size: 0.82rem;
  opacity: 0.85;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* Indikator titik carousel disembunyikan di tampilan Desktop & Tablet */
.works-dots {
  display: none;
}

.work-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.work-thumb-box {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.work-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  background-color: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.hero-photo-raw .thumb-placeholder {
  background-color: var(--surface);
}

.work-thumb-box.is-placeholder .thumb-placeholder,
.hero-photo-raw.is-placeholder .thumb-placeholder {
  display: flex;
}

.placeholder-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.placeholder-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.work-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.work-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.work-optional-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line2);
  border-radius: 6px;
}

.work-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.work-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.work-details {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.detail-line {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0.5rem;
  min-width: 0;
}

.detail-label {
  color: var(--muted);
  font-weight: 500;
}

.detail-val {
  color: var(--text);
  min-width: 0;
}

.btn-watch {
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background-color: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.2s var(--ease-out);
}

.btn-watch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.btn-watch:disabled {
  border-color: var(--line2);
  color: var(--muted);
  background-color: transparent;
  cursor: not-allowed;
}

.empty-category-box {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  max-width: 560px;
}

.empty-category-text {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

/* ==========================================================================
   CARA SAYA BEKERJA (4 KOLOM DI DESKTOP)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-step {
  padding: 1.75rem 1.25rem;
  min-width: 0;
}

.process-step:first-child {
  padding-left: 0;
}

.process-step:last-child {
  padding-right: 0;
}

.process-step + .process-step {
  border-left: 1px solid var(--line);
}

.process-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.process-step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.process-step-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ==========================================================================
   6. TENTANG SAYA (LAYOUT KARTU ATAS + 3 KARTU RESUME BAWAH + BINGKAI EMAS)
   ========================================================================== */
.about-top {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.25rem;
  margin-bottom: 1.5rem;
}

.about-photo-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 250px;
  margin-inline: auto;
}

.photo-frame-offset {
  position: absolute;
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 12px;
  transform: translate(12px, 12px);
  z-index: 0;
  pointer-events: none;
}

.about-photo-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 250px;
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--bg);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
}

.about-photo-box.is-placeholder .photo-fallback {
  display: flex;
}

.fallback-name {
  font-weight: 800;
  color: var(--text);
}

.fallback-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.about-story {
  min-width: 0;
}

.about-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.about-role {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-bio {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.sub-heading {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.4rem 0.9rem;
  background-color: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.resume-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.resume-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  min-width: 0;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.resume-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.resume-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.resume-card-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.edu-major {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.edu-univ {
  color: var(--muted);
  font-size: 0.92rem;
}

.edu-period {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  margin-bottom: 0.85rem;
}

.gpa-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background-color: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
}

.resume-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.resume-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.resume-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* ==========================================================================
   7. KONTAK & FOOTER (4 TOMBOL KARTU INTERAKTIF 2x2 — DESKTOP)
   ========================================================================== */
.contact-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 3rem 2.5rem;
}

.contact-header {
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.contact-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background-color: var(--bg);
  border: 1px solid var(--line2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-subtitle {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Grid 4 Tombol Kontak: 2 Kolom x 2 Baris di Desktop */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-btn-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background-color: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 14px;
  text-align: left;
  min-width: 0;
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out), background-color 0.22s var(--ease-out);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--surface);
  border: 1px solid var(--line2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.22s var(--ease-out), color 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}

.contact-icon-box svg {
  width: 20px;
  height: 20px;
}

.contact-btn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.contact-btn-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.contact-btn-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-btn-arrow {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.contact-cv-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
}

.contact-cv-note {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.contact-cv-btn {
  gap: 0.5rem;
  flex-shrink: 0;
  width: auto;
}

/* Footer Bawah */
.site-footer {
  padding-block: 2.25rem;
  background-color: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-copy {
  color: var(--text);
  font-size: 0.92rem;
}

.footer-copy strong {
  color: var(--accent);
  font-weight: 700;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 0.2rem;
}

/* Baris Pemilih Tampilan Manual di Footer */
.footer-view-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.view-switcher-label {
  font-weight: 500;
  margin-right: 0.15rem;
}

.view-mode-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.15rem 0.25rem;
  border-radius: 4px;
  transition: color 0.2s var(--ease-out);
}

.view-mode-btn.is-active {
  color: var(--accent);
}

.view-dot-sep {
  color: var(--line2);
  user-select: none;
}

.footer-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

/* ==========================================================================
   8. POP-UP PEMUTAR VIDEO 9:16 (ANIMASI 250ms)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 16, 18, 0.9);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 350px;
  background-color: var(--surface);
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: 0.85rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal.is-open .modal-dialog {
  opacity: 1;
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-inline: 0.25rem;
}

.modal-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-close {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line2);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.modal-video-box {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 76dvh;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000;
}

.modal-video-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   9. ANIMASI BERANDA, SCROLL REVEAL, & GANTI BAHASA
   ========================================================================== */
.hero-seq {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.hero-seq.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal,
.reveal-stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.is-visible,
.reveal-stagger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-i18n] {
  transition: opacity 0.15s var(--ease-out);
}

body.is-switching-lang [data-i18n] {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-seq,
  .reveal,
  .reveal-stagger {
    opacity: 1 !important;
    transform: none !important;
  }
  .story-highlight::after {
    transform: scaleX(1) !important;
  }
}
