/**
 * Aria Emerald Portfolio — Design System
 *
 * Satu-satunya stylesheet tema. style.css hanya berisi header tema.
 * Token warna, radius, dan skala font di :root ditimpa oleh inline style
 * yang dihasilkan ariaemerald_css_vars() sehingga Customizer selalu menang.
 */

/* ============================================================
   1. TOKENS
   ============================================================ */

:root {
  /* Ditimpa oleh Customizer. Nilai di sini hanya fallback. */
  --em: #00b074;
  --em-dk: #008d5d;
  --em-lt: #00d38b;
  --em-soft: #e6f8f1;
  --em-a12: rgba(0, 176, 116, .12);
  --em-a28: rgba(0, 176, 116, .28);
  --em-glow: 0 8px 28px rgba(0, 176, 116, .28);

  --ink: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #64748b;
  --ink-4: #94a3b8;

  --font-scale: 1;
  --head-weight: 800;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* Netral tetap */
  --white: #fff;
  --bg: #f8fafc;
  --line: #e2e8f0;
  --line-soft: #eef2f7;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-xs: 0 2px 8px rgba(0, 0, 0, .05);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, .07);
  --shadow-md: 0 10px 36px rgba(0, 0, 0, .1);

  --ease: cubic-bezier(.25, .46, .45, .94);
  --dur: .25s;

  --nav-h: 72px;
  --wrap: 1180px;
  --gutter: 28px;

  /* Skala tipografi. Semua ukuran teks memakai token ini agar
     kontrol "Skala Font" berlaku menyeluruh dan tidak ada teks
     yang jatuh di bawah batas keterbacaan. */
  --fs-3xs: calc(.75rem * var(--font-scale));
  --fs-2xs: calc(.8rem * var(--font-scale));
  --fs-xs: calc(.86rem * var(--font-scale));
  --fs-sm: calc(.92rem * var(--font-scale));
  --fs-md: calc(1rem * var(--font-scale));
  --fs-lg: calc(1.12rem * var(--font-scale));
  --fs-xl: calc(1.4rem * var(--font-scale));
  --fs-2xl: calc(1.75rem * var(--font-scale));
  --fs-3xl: calc(2.1rem * var(--font-scale));
  --fs-hero: calc(clamp(1.95rem, 4.6vw, 3.4rem) * var(--font-scale));
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Menahan overflow horizontal tanpa memutus position:sticky
     seperti yang terjadi bila overflow-x dipasang di html. */
  overflow-x: clip;
}

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

a {
  color: var(--em);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

a:hover {
  color: var(--em-dk);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--em);
  outline-offset: 3px;
  border-radius: 4px;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--head-weight);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.03em;
}

strong,
b {
  font-weight: 700;
  color: var(--ink);
}

/* Kata panjang tanpa spasi tidak boleh mendorong lebar halaman. */
h1,
h2,
h3,
h4,
p,
li,
td,
figcaption {
  overflow-wrap: break-word;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 2000;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: top .2s;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* Elemen yang nilainya kosong. Template tetap mencetak elemennya supaya
   live preview Customizer punya target untuk diisi; kelas ini yang
   menyembunyikannya di tampilan publik. JS pratinjau melepas kelas ini
   begitu field diisi. */
.is-empty {
  display: none !important;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow {
  max-width: 780px;
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg);
}

.page-shell {
  padding: calc(var(--nav-h) + 56px) 0 80px;
}

/* ============================================================
   4. HEADER & NAVIGASI
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px rgba(0, 0, 0, .07);
  background: rgba(255, 255, 255, .98);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
  gap: 20px;
}

.brand-logo {
  font-size: calc(1.35rem * var(--font-scale));
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.035em;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo:hover {
  color: var(--ink);
}

.brand-logo .dot {
  color: var(--em);
}

.primary-nav {
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: .5em .8em;
  border-radius: var(--r-sm);
  display: block;
  white-space: nowrap;
  transition: color var(--dur), background var(--dur);
}

.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links a.active {
  color: var(--em);
  background: var(--em-a12);
}

/* Submenu */
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--dur), transform var(--dur), visibility var(--dur);
}

.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-cta {
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0 10px;
  flex-shrink: 0;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
  display: block;
}

.mobile-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   5. TOMBOL
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--fs-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}

.btn:active {
  transform: scale(.97);
}

.btn svg {
  flex-shrink: 0;
}

.btn-em {
  background: var(--em);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--r-pill);
  box-shadow: var(--em-glow);
}

.btn-em:hover {
  background: var(--em-dk);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-em {
  background: transparent;
  color: var(--em);
  padding: 10px 24px;
  border-radius: var(--r-pill);
  border: 2px solid var(--em);
}

.btn-outline-em:hover {
  background: var(--em);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--em);
  padding: 13px 32px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.btn-white:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  padding: 11px 30px;
  border-radius: var(--r-pill);
  border: 2px solid rgba(255, 255, 255, .45);
}

.btn-ghost-white:hover {
  background: #fff;
  color: var(--em);
  border-color: #fff;
}

.btn-sm {
  padding: 9px 18px;
  font-size: var(--fs-xs);
  min-height: 40px;
}

/* ============================================================
   6. JUDUL SECTION
   ============================================================ */

.sec-tag {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--em);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 8px;
}

.sec-title {
  font-size: var(--fs-3xl);
  line-height: 1.15;
  margin-top: 4px;
}

.sec-accent-line {
  width: 44px;
  height: 3px;
  background: var(--em);
  border-radius: var(--r-pill);
  margin-top: 14px;
}

.section-head {
  max-width: 600px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head .sec-accent-line {
  margin: 14px auto 0;
}

.section-head p {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  margin-top: 14px;
}

/* ============================================================
   7. HERO
   ============================================================ */

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
  background: var(--white);
  padding: calc(var(--nav-h) + 52px) 0 52px;
}

.hero-diagonal-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background: linear-gradient(160deg, var(--em) 0%, var(--em-lt) 100%);
  clip-path: polygon(22% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero-diagonal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-left-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.social-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  padding: 14px 9px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.social-bar a {
  color: var(--ink-3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur), background var(--dur);
}

.social-bar a:hover {
  color: #fff;
  background: var(--em);
}

.hero-text-content {
  flex: 1;
  min-width: 0;
}

.hero-greeting {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--em);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-greeting::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--em);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-name-title {
  font-size: var(--fs-hero);
  line-height: 1.06;
  letter-spacing: -.04em;
  margin-bottom: 14px;
}

.hero-role-badge {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-role-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--em);
  flex-shrink: 0;
}

.hero-bio-desc {
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.75;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-meta-row {
  display: flex;
  gap: 14px 28px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  font-weight: 500;
}

.hero-meta-item svg {
  color: var(--em);
  flex-shrink: 0;
}

.hero-image-col {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  height: 440px;
}

.hero-person-img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .22));
  position: relative;
  z-index: 3;
  animation: aria-float 4s ease-in-out infinite;
}

.hero-avatar-fallback {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  border: 2px dashed rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(3.2rem * var(--font-scale));
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3;
}

.hero-float-badge {
  position: absolute;
  bottom: 44px;
  left: 0;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  animation: aria-float 5s ease-in-out infinite .8s;
}

.hero-float-badge .badge-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--em-a12);
  color: var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-float-badge b {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink);
}

.hero-float-badge span {
  font-size: var(--fs-3xs);
  color: var(--ink-3);
}

@keyframes aria-float {
  0%,
  100% {
    transform: translateY(0);
  }

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

/* ============================================================
   8. TENTANG & SKILLS
   ============================================================ */

.about-section {
  padding: 96px 0 84px;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-image-frame {
  position: relative;
  padding: 24px 0 0;
  /* Badge offset berada di dalam kotak ini agar tidak
     mendorong lebar dokumen di layar sempit. */
  isolation: isolate;
}

.about-offset-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 86%;
  height: 90%;
  border: 4px solid var(--em);
  border-radius: var(--r-md);
  z-index: 1;
}

.about-photo {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  margin-left: 28px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg);
}

.about-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.about-photo:hover img {
  transform: scale(1.04);
}

.about-photo-fallback {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, var(--em-soft), var(--bg));
  color: var(--ink-3);
  text-align: center;
  padding: 24px;
  font-size: var(--fs-xs);
}

.about-photo-fallback .fallback-initials {
  font-size: calc(2.6rem * var(--font-scale));
  font-weight: 800;
  color: var(--em);
  letter-spacing: -.04em;
}

.about-exp-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--em);
  color: #fff;
  border-radius: var(--r-md);
  padding: 16px 22px;
  text-align: center;
  z-index: 3;
  box-shadow: var(--em-glow);
}

.about-exp-badge .exp-num {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1;
}

.about-exp-badge .exp-lbl {
  font-size: var(--fs-3xs);
  font-weight: 600;
  opacity: .9;
  margin-top: 3px;
  display: block;
}

.about-content-col {
  min-width: 0;
}

.about-desc {
  margin-top: 20px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.78;
}

.skills-progress-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.progress-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 9px;
}

.progress-item-head .progress-value {
  color: var(--em);
  flex-shrink: 0;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--em), var(--em-lt));
  border-radius: var(--r-pill);
  transition: width 1.2s cubic-bezier(.4, 0, .2, 1);
}

/* ============================================================
   9. LAYANAN
   ============================================================ */

.services-section {
  padding: 88px 0;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--em);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--em-a28);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  border-radius: var(--r-md);
  background: var(--em-a12);
  color: var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(1.6rem * var(--font-scale));
  transition: background var(--dur), color var(--dur);
}

.service-card:hover .service-icon {
  background: var(--em);
  color: #fff;
}

.service-title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 10px;
}

.service-desc {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.68;
}

/* ============================================================
   10. PORTFOLIO
   ============================================================ */

.projects-section {
  padding: 96px 0 84px;
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--em-a28);
  box-shadow: var(--shadow-md);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-thumb-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--em-soft), var(--bg));
  color: var(--em);
  font-size: calc(2.6rem * var(--font-scale));
}

.project-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--em);
  color: #fff;
  font-size: var(--fs-3xs);
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  letter-spacing: .03em;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 9px;
}

.project-title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.35;
}

.project-title a {
  color: inherit;
  /* Flex + min-height memberi kotak sentuh 32px pada judul satu baris
     tanpa mengubah cara judul panjang membungkus. */
  display: flex;
  align-items: center;
  min-height: 32px;
}

.project-title a:hover {
  color: var(--em);
}

.project-excerpt {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.65;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-link {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--em);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 32px;
  transition: gap .2s;
}

.project-card:hover .project-link {
  gap: 10px;
}

.projects-more-row {
  text-align: center;
  margin-top: 44px;
}

.empty-state {
  text-align: center;
  padding: 72px 20px;
  color: var(--ink-4);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

.empty-state .empty-icon {
  font-size: calc(2.6rem * var(--font-scale));
  margin-bottom: 12px;
}

.empty-state p {
  font-size: var(--fs-sm);
}

/* ============================================================
   11. STATISTIK
   ============================================================ */

.stats-strip {
  padding: 50px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 0 16px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: calc(2.5rem * var(--font-scale));
  font-weight: 800;
  color: var(--em);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ============================================================
   12. TIMELINE PENGALAMAN
   ============================================================ */

.experience-section {
  padding: 96px 0 84px;
  background: var(--bg);
}

.exp-wrap {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.exp-wrap::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--em) 0%, var(--em-a12) 100%);
  border-radius: 2px;
}

.exp-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  position: relative;
  margin-bottom: 26px;
}

.exp-item:last-child {
  margin-bottom: 0;
}

.exp-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 0 5px var(--bg), 0 4px 12px var(--em-a12);
  transition: transform .25s var(--ease), box-shadow .25s;
}

.exp-item:hover .exp-node {
  transform: scale(1.08);
  box-shadow: 0 0 0 5px var(--bg), 0 6px 18px var(--em-a28);
}

.exp-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-xs);
  min-width: 0;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}

.exp-card:hover {
  border-color: var(--em-a28);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.exp-period {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-3xs);
  font-weight: 700;
  color: var(--em);
  background: var(--em-a12);
  padding: .3em .75em;
  border-radius: var(--r-pill);
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.exp-role {
  font-size: var(--fs-md);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.exp-org {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--em-dk);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.exp-org::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.exp-desc {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.72;
}

/* ============================================================
   13. BANNER CTA
   ============================================================ */

.cta-section {
  padding: 60px 0 96px;
}

.cta-box {
  background: linear-gradient(135deg, var(--em) 0%, var(--em-lt) 100%);
  border-radius: var(--r-lg);
  padding: 52px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  box-shadow: var(--em-glow);
  position: relative;
  overflow: hidden;
}

.cta-box::before,
.cta-box::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.cta-box::before {
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
}

.cta-box::after {
  bottom: -80px;
  left: 30%;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, .05);
}

.cta-text {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.cta-text h2 {
  font-size: var(--fs-2xl);
  color: #fff;
  margin-bottom: 10px;
}

.cta-text p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .88);
  max-width: 52ch;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

/* ============================================================
   14. FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .62);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.footer-brand-col {
  min-width: 0;
}

.footer-logo {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.035em;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
}

.footer-logo:hover {
  color: #fff;
}

.footer-logo .dot {
  color: var(--em);
}

.footer-tagline {
  font-size: var(--fs-xs);
  line-height: 1.65;
  color: rgba(255, 255, 255, .5);
  max-width: 32ch;
  margin-bottom: 20px;
}

.footer-social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}

.footer-social-row a:hover {
  background: var(--em);
  color: #fff;
  border-color: var(--em);
}

.footer-col {
  min-width: 0;
}

.footer-col h2 {
  font-size: var(--fs-3xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .42);
  margin-bottom: 16px;
}

/* Navigasi footer sebagai grid dua kolom. Versi lama memakai
   flex-wrap dengan anak selebar penuh sehingga enam tautan
   menumpuk menjadi enam baris. */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
}

.footer-nav a {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .62);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color var(--dur);
}

.footer-nav a:hover {
  color: var(--em-lt);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, .62);
  min-height: 32px;
  max-width: 100%;
  transition: color var(--dur);
}

.footer-contact-item svg {
  color: var(--em);
  flex-shrink: 0;
}

a.footer-contact-item:hover {
  color: #fff;
}

.footer-contact-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-bottom {
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--fs-3xs);
  color: rgba(255, 255, 255, .38);
}

/* ============================================================
   15. HALAMAN STATIS & ARSIP
   ============================================================ */

.page-head {
  margin-bottom: 44px;
}

.page-head h1 {
  font-size: var(--fs-3xl);
  margin-bottom: 10px;
}

.page-head p {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  max-width: 62ch;
}

.entry-content {
  font-size: var(--fs-sm);
  line-height: 1.85;
  color: var(--ink-2);
}

.entry-content > * + * {
  margin-top: 1.2em;
}

.entry-content h2 {
  font-size: var(--fs-xl);
  margin-top: 1.8em;
}

.entry-content h3 {
  font-size: var(--fs-lg);
  margin-top: 1.6em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4em;
}

.entry-content ul li {
  list-style: disc;
}

.entry-content ol li {
  list-style: decimal;
}

.entry-content li + li {
  margin-top: .5em;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img,
.entry-content iframe {
  border-radius: var(--r-md);
}

.entry-content blockquote {
  border-left: 3px solid var(--em);
  padding: 4px 0 4px 20px;
  color: var(--ink-3);
  font-style: italic;
}

.entry-content code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .15em .4em;
  font-size: .9em;
}

.entry-content pre {
  background: var(--ink);
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  overflow-x: auto;
}

.entry-content pre code {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  font-size: var(--fs-xs);
}

.entry-meta {
  font-size: var(--fs-2xs);
  color: var(--ink-4);
  margin-bottom: 28px;
  display: flex;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.entry-thumb {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 32px;
}

.entry-thumb img {
  width: 100%;
  height: auto;
}

.entry-footer-nav {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Di halaman 404 baris tombol ini bukan penutup artikel, jadi tidak
   perlu garis pemisah maupun jarak atas yang besar. */
.entry-footer-nav.error-404-actions {
  margin-top: 8px;
  padding-top: 0;
  border-top: none;
  justify-content: flex-start;
}

/* Kartu tulisan */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--em-a28);
  box-shadow: var(--shadow-md);
}

.post-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}

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

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.post-card-date {
  font-size: var(--fs-3xs);
  color: var(--ink-4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.post-card-title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.35;
}

.post-card-title a {
  color: inherit;
  display: inline-block;
  min-height: 24px;
}

.post-card-title a:hover {
  color: var(--em);
}

.post-card-excerpt {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.65;
  flex-grow: 1;
}

/* Kartu profil di halaman Tentang */
.profile-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Judul blok di halaman Tentang. Sebelumnya jarak ini ditulis sebagai
   inline style di template. */
.profile-block-title {
  margin-top: 44px;
}

.profile-block-title-spaced {
  margin: 56px 0 28px;
}

.profile-card {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: 32px 26px;
  text-align: center;
  color: #fff;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--em), var(--em-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h2 {
  font-size: var(--fs-lg);
  color: #fff;
}

.profile-card .profile-role {
  font-size: var(--fs-2xs);
  color: rgba(255, 255, 255, .6);
  margin-top: 6px;
}

.profile-contact {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  color: rgba(255, 255, 255, .75);
  font-size: var(--fs-2xs);
  min-height: 44px;
}

.profile-contact-item svg {
  color: var(--em-lt);
  flex-shrink: 0;
}

.profile-contact-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.profile-contact-item:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

/* Halaman kontak */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
}

/* Garis pemisah dipasang di sisi atas, bukan bawah. Baris terakhir
   bisa disembunyikan lewat .is-empty saat nilainya kosong; dengan
   border-bottom, baris di atasnya akan meninggalkan garis menggantung. */
.contact-row {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}

.contact-row:first-of-type {
  border-top: none;
}

.contact-row .contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--em-a12);
  color: var(--em);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row b {
  display: block;
  font-size: var(--fs-xs);
  margin-bottom: 2px;
}

.contact-row .contact-value {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  word-break: break-word;
}

/* Nomor dan email di halaman kontak adalah tautan. Tanpa ini kotak
   sentuhnya hanya setinggi baris teks (16px) dan gagal batas 32px. */
a.contact-value {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

a.contact-value:hover {
  color: var(--em);
}

/* Tombol WhatsApp di bawah daftar kontak. Sebelumnya jarak ini ditulis
   sebagai inline style di template. */
.contact-wa-btn {
  margin-top: 24px;
}

.contact-form-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}

.contact-form-card h2 {
  font-size: var(--fs-lg);
  margin-bottom: 22px;
}

/* Field form generik supaya plugin form apa pun tampil rapi. */
.contact-form-card input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.contact-form-card textarea,
.contact-form-card select {
  width: 100%;
  font-family: var(--font);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  min-height: 44px;
}

.contact-form-card textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form-card label {
  display: block;
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Paginasi */
.pagination {
  margin-top: 52px;
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  background: #fff;
}

.pagination .page-numbers:hover {
  border-color: var(--em);
  color: var(--em);
}

.pagination .page-numbers.current {
  background: var(--em);
  border-color: var(--em);
  color: #fff;
}

/* ============================================================
   16. SCROLL REVEAL
   ============================================================ */

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

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ============================================================
   17. RESPONSIVE
   ============================================================ */

/* ─── Tablet lebar (≤1024px) ─── */
@media (max-width: 1024px) {
  :root {
    --nav-h: 62px;
    --gutter: 22px;
  }

  .section,
  .about-section,
  .projects-section,
  .experience-section {
    padding: 64px 0;
  }

  .services-section {
    padding: 64px 0;
  }

  .cta-section {
    padding: 44px 0 64px;
  }

  .page-shell {
    padding: calc(var(--nav-h) + 40px) 0 64px;
  }

  /* Navigasi berpindah ke panel geser. */
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter) 20px;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-102%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s;
    z-index: 999;
  }

  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-links a {
    font-size: var(--fs-sm);
    padding: .65em .8em;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Submenu tampil sebagai daftar bertakik. */
  .nav-links .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 14px;
    border-left: 2px solid var(--line);
    margin: 2px 0 6px;
  }

  /* Hero menjadi satu kolom, foto di atas. */
  .hero-section {
    min-height: auto;
    padding: calc(var(--nav-h) + 28px) 0 40px;
  }

  /* Jarak foto -> teks dilebarkan supaya band diagonal punya ruang untuk
     berakhir di antara keduanya (lihat .hero-diagonal-bg di bawah). */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  /* Latar diagonal harus berakhir di bawah foto hero, bukan memotongnya,
     dan tetap di atas teks hero. Geometri di viewport sempit:
       - foto: top 90px (nav-h + 28px), max-height 230px  -> bottom 320px
       - teks: top 320px + gap 56px                       -> 376px
     Titik terendah garis miring ada di tepi kiri (90% x 360px = 324px),
     jadi seluruh garis berada di bawah 320px dan foto berdiri di atas band;
     tepi bawah band (360px) masih 16px di atas teks.
     Slant sengaja dangkal (36px) karena versi sebelumnya (turun 72px dari
     288px) melintas di badan foto. */
  .hero-diagonal-bg {
    width: 100%;
    height: 360px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
  }

  .hero-image-col {
    height: auto;
    order: -1;
    justify-content: center;
    align-items: center;
  }

  .hero-person-img {
    max-height: 230px;
  }

  .hero-avatar-fallback {
    width: 130px;
    height: 130px;
    font-size: calc(2.2rem * var(--font-scale));
  }

  .hero-float-badge {
    display: none;
  }

  .hero-left-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .social-bar {
    flex-direction: row;
    align-self: flex-start;
    padding: 8px 12px;
  }

  .hero-bio-desc {
    max-width: 100%;
  }

  /* Grid utama. */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-photo img,
  .about-photo-fallback {
    height: 280px;
  }

  .exp-desc {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cta-box {
    padding: 36px 28px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  /* Layout halaman dalam. */
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-card {
    position: static;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
  :root {
    --gutter: 18px;
  }

  .section,
  .about-section,
  .projects-section,
  .experience-section,
  .services-section {
    padding: 48px 0;
  }

  .cta-section {
    padding: 32px 0 48px;
  }

  .page-shell {
    padding: calc(var(--nav-h) + 28px) 0 48px;
  }

  .hero-meta-row {
    gap: 10px 20px;
    margin-top: 26px;
    padding-top: 20px;
  }

  .hero-cta-row .btn {
    flex: 1 1 auto;
  }

  .services-grid,
  .projects-grid,
  .post-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Kartu layanan menjadi baris horizontal yang lebih padat. */
  .service-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 18px 16px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    flex-shrink: 0;
    font-size: calc(1.3rem * var(--font-scale));
  }

  .service-body {
    min-width: 0;
  }

  .project-body {
    padding: 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .stat-item {
    border-right: none;
    padding: 0 8px;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .exp-item {
    grid-template-columns: 38px 1fr;
    gap: 14px;
    margin-bottom: 16px;
  }

  .exp-node {
    width: 38px;
    height: 38px;
    font-size: var(--fs-md);
  }

  .exp-wrap::before {
    left: 18px;
  }

  .exp-card {
    padding: 16px 18px;
  }

  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 22px;
    gap: 20px;
  }

  .cta-text p {
    max-width: 100%;
  }

  .cta-actions {
    width: 100%;
    justify-content: center;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .about-image-frame {
    max-width: 420px;
  }

  .about-photo {
    margin-left: 20px;
    margin-top: 20px;
  }

  .about-offset-border {
    width: 82%;
    height: 88%;
    border-width: 3px;
  }

  .contact-form-card {
    padding: 22px 18px;
  }

  /* Footer: dua kolom, brand melintang penuh. */
  .site-footer {
    padding: 40px 0 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding-bottom: 28px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-tagline {
    max-width: 100%;
    margin-bottom: 16px;
  }

  .footer-bottom {
    padding: 16px 0;
  }
}

/* ─── Mobile sempit (≤560px) ─── */
@media (max-width: 560px) {
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .about-photo img,
  .about-photo-fallback {
    height: 230px;
  }

  .about-exp-badge {
    padding: 12px 16px;
  }

  .stats-grid {
    gap: 18px 12px;
  }

  .entry-footer-nav {
    flex-direction: column;
  }

  .entry-footer-nav .btn {
    width: 100%;
  }

  /* Footer satu kolom, rata kiri agar mudah dibaca. */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ============================================================
   18. AKSESIBILITAS
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Kontras tinggi untuk pengguna yang memintanya. */
@media (prefers-contrast: more) {
  .hero-bio-desc,
  .service-desc,
  .project-excerpt,
  .exp-desc,
  .about-desc {
    color: var(--ink-2);
  }

  .footer-tagline,
  .footer-nav a,
  .footer-contact-item {
    color: rgba(255, 255, 255, .82);
  }
}

/* ============================================================
   19. CETAK
   ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .cta-section,
  .mobile-toggle,
  .social-bar,
  .hero-diagonal-bg {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .page-shell,
  .hero-section {
    padding-top: 0;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
