/* ==========================================================================
   THEME v2 — lapisan desain di atas app.css
   Palet: obsidian + champagne (gelap) dan gading + emas tua (terang).
   Judul memakai Fraunces (serif), teks memakai Inter.
   ========================================================================== */

/* 1. PALET ---------------------------------------------------------------- */
:root,
[data-bs-theme="dark"] {
  --bg: #0B0B0E;
  --bg-alt: #101015;
  --surface: #15151C;
  --surface-2: #1D1D26;
  --fg: #F3F0EA;
  --fg-muted: #A9A49C;
  --fg-subtle: #7D7970;
  --accent: #D6B77F;
  --accent-hover: #E9D2A6;
  --accent-pastel: #9C7C4E;
  --on-accent: #120E07;
  --border: #25242D;
  --success: #7BD3A0;
  --danger: #F08A94;
  --shadow: 0 60px 120px -60px rgba(0, 0, 0, .95);
  --shadow-sm: 0 24px 50px -30px rgba(0, 0, 0, .85);
  --glass: rgba(11, 11, 14, .68);
  color-scheme: dark;
}

[data-bs-theme="light"] {
  --bg: #F7F5F0;
  --bg-alt: #EFEBE3;
  --surface: #FFFFFF;
  --surface-2: #F3EFE7;
  --fg: #17161B;
  --fg-muted: #5C5852;
  --fg-subtle: #8F8A80;
  --accent: #8A6631;
  --accent-hover: #6E5124;
  --accent-pastel: #BC9B63;
  --on-accent: #FFFFFF;
  --border: #E4DDD1;
  --success: #2F7D52;
  --danger: #C2415A;
  --shadow: 0 60px 110px -60px rgba(70, 50, 20, .4);
  --shadow-sm: 0 24px 50px -30px rgba(70, 50, 20, .32);
  --glass: rgba(247, 245, 240, .8);
  color-scheme: light;
}

:root,
[data-bs-theme] {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 34px;
  --nav-h: 78px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* 2. DASAR & TIPOGRAFI ---------------------------------------------------- */
body {
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: -.005em;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.04;
}
.brand-logo { height: 34px; width: 34px; display: block; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.section-title {
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  margin-bottom: 0;
}
.section-sub {
  color: var(--fg-muted);
  font-size: 1.04rem;
  line-height: 1.75;
  max-width: 34rem;
  margin: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}
.eyebrow i { display: none; }
.text-muted-2 { color: var(--fg-muted) !important; }

/* 3. TOMBOL & LINK -------------------------------------------------------- */
.btn { letter-spacing: .01em; }
.btn-lg { padding: 1rem 2rem; font-size: .98rem; border-radius: 999px; }
.btn-accent { box-shadow: 0 18px 40px -18px var(--accent); }
.btn-soft { border-radius: 999px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: .15rem;
  transition: color .3s, gap .3s var(--ease), border-color .3s;
}
.link-arrow:hover { color: var(--accent); gap: .75rem; border-color: var(--accent); }

/* 4. NAVBAR (kaca mengambang) -------------------------------------------- */
.site-nav .nav-shell {
  margin-top: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem .5rem .45rem 1.2rem;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.site-nav .nav-link { font-size: .9rem; font-weight: 500; color: var(--fg-muted); letter-spacing: .005em; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--fg); }
.site-nav .brand { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: -.02em; }
.brand-mark { border-radius: 50%; }

/* 5. HERO ----------------------------------------------------------------- */
.hero2 {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 170px;
  overflow: hidden;
}
.hero2::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18%;
  right: -12%;
  width: min(82vw, 980px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%);
  filter: blur(30px);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero2::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 65%);
  opacity: .45;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 6%, 0) scale(1.08); }
}

.hero2 .status-pill { display: none; }
.hero2 .status-pill-unused {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 999px;
  padding: .45rem 1rem .45rem .75rem;
  margin-bottom: 2rem;
}
.hero2 .hero-title {
  font-size: clamp(3.2rem, 9vw, 8rem);
  line-height: .92;
  font-weight: 600;
  letter-spacing: -.045em;
  max-width: 13ch;
  margin: 0 0 1.8rem;
}
.hero2 .hero-title .w { margin-right: .02em; }
.hero2-sub {
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 38rem;
  margin: 0;
}
.hero2 .hero-actions { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: .8rem; }

.marquee-unused {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
  padding: 1.15rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--fg-muted);
  letter-spacing: -.01em;
}
.marquee-track span { white-space: nowrap; padding-right: 2.6rem; }
.marquee-track span::after { content: "✦"; color: var(--accent); margin-left: 2.6rem; font-size: .7em; vertical-align: .15em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 6. SECTION -------------------------------------------------------------- */
.section { padding: 9rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-bottom: 4.5rem;
}
.section-split-end { max-width: 26rem; display: flex; flex-direction: column; align-items: flex-start; }
.section-split-end .section-sub { margin-bottom: 1rem; }
.page-head { padding: calc(var(--nav-h) + 70px) 0 1.5rem; }
.page-head .section-title { font-size: clamp(2.6rem, 6vw, 4.8rem); }

/* 7. PROYEK --------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.5rem;
}
.work-grid > div { grid-column: span 6; }
.work-grid > div:first-child:not(:last-child) { grid-column: span 12; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.project-card {
  position: relative;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .7s var(--ease), border-color .5s, box-shadow .7s var(--ease);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow);
}
.project-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-alt));
}
.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.project-card:hover .project-cover img { transform: scale(1.05); }
.project-cover > i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: var(--fg-subtle);
}
.project-go {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  opacity: 0;
  transform: translateY(8px) scale(.85);
  transition: all .5s var(--ease);
}
.project-card:hover .project-go { opacity: 1; transform: none; }
.project-body { padding: 1.7rem 1.8rem 1.8rem; }
.project-year {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: .6rem;
}
.project-title { font-size: 1.6rem; margin: 0 0 .6rem; }
.project-desc { color: var(--fg-muted); font-size: .95rem; line-height: 1.7; margin: 0 0 1.4rem; }
.project-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.link-more { color: var(--accent); font-weight: 600; font-size: .86rem; }
.chips { gap: .45rem; }
.chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-weight: 500;
  font-size: .74rem;
  padding: .25rem .7rem;
}

.project-card.is-lead {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: stretch;
}
.project-card.is-lead .project-cover { aspect-ratio: auto; min-height: 420px; height: 100%; }
.project-card.is-lead .project-body { display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
.project-card.is-lead .project-title { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.project-card.is-lead .project-desc { font-size: 1.02rem; }

/* 8. TECH STACK ----------------------------------------------------------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}
.stack-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .5s, transform .6s var(--ease);
}
.stack-cell:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); transform: translateY(-3px); }
.stack-head {
  font-family: var(--font-display);
  font-size: 1.45rem;
  padding: 0 0 1.1rem;
  margin: 0 0 1.4rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stack-head::after {
  content: attr(data-count);
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
}
.stack-items { display: flex; flex-wrap: wrap; gap: .55rem; }
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .42rem .95rem;
  font-size: .88rem;
  color: var(--fg);
  transition: border-color .3s, color .3s;
}
.tech-chip:hover { border-color: var(--accent); color: var(--accent); }
.tech-chip img { width: 18px; height: 18px; object-fit: contain; }

/* 9. PERJALANAN (timeline) ------------------------------------------------ */
.timeline {
  position: relative;
  padding-left: 2.4rem;
  max-width: 880px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 70%);
}
.tl-item {
  position: relative;
  border: none !important;
  padding: 0 0 3rem;
  margin: 0 !important;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg);
  transform: translateX(0);
}
.tl-item.is-current::before { background: var(--accent); }
.tl-period {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}
.tl-role { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: .5rem 0 .3rem; }
.tl-company { color: var(--fg-muted); font-weight: 500; }
.tl-desc { color: var(--fg-muted); max-width: 40rem; margin: .8rem 0 0; }

/* 10. TENTANG ------------------------------------------------------------- */
.about-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--fg);
  margin: 0 0 1.5rem;
}
.about-text { color: var(--fg-muted); font-size: 1.04rem; margin: 0; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.value-item {
  height: 100%;
  display: flex;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color .5s, transform .6s var(--ease);
}
.value-item:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); transform: translateY(-3px); }
.value-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.value-t { font-weight: 600; font-size: 1.05rem; margin-bottom: .35rem; color: var(--fg); }
.value-d { color: var(--fg-muted); font-size: .93rem; line-height: 1.7; margin: 0; }

/* 11. SERTIFIKASI --------------------------------------------------------- */
.cert-card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .6s var(--ease), border-color .5s, box-shadow .6s var(--ease);
}
.cert-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.cert-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--surface-2), var(--bg-alt));
  font-size: 2.4rem;
  color: var(--accent);
  overflow: hidden;
}
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cert-body { padding: 1.6rem 1.7rem 1.8rem; }
.cert-name { font-size: 1.35rem; margin: 0 0 .4rem; }
.cert-issuer { color: var(--accent); font-weight: 600; font-size: .88rem; }
.cert-meta { color: var(--fg-subtle); font-size: .84rem; margin: .35rem 0 0; }
.cert-link { margin-top: 1.2rem; font-size: .88rem; }

/* 12. KONTAK -------------------------------------------------------------- */
.contact-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
    var(--surface);
  padding: clamp(2.6rem, 7vw, 6rem);
}
.contact-big {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 600;
  margin: 0;
  max-width: 14ch;
}
.contact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem 2.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border);
}
.contact-k { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: .3rem; }
.contact-v { font-size: 1.02rem; color: var(--fg); font-weight: 500; word-break: break-word; }
.social-row { display: flex; gap: .7rem; }
.social-row a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  transition: all .4s var(--ease);
}
.social-row a:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* 13. HALAMAN PROYEK & DETAIL -------------------------------------------- */
.back-link { color: var(--fg-muted); font-size: .9rem; }
.back-link:hover { color: var(--accent); }
.project-meta span { color: var(--fg-muted); font-size: .9rem; }
.gallery img { border-radius: var(--radius); }
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.side-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }

/* 14. FOOTER -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-top: 4rem; }

.footer-note { color: var(--fg-muted); }
.footer-links a { color: var(--fg-muted); }
.footer-links a:hover { color: var(--accent); }

/* 15. GERAK -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero2::before, .marquee-track { animation: none; }
}

/* 16. RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 991.98px) {
  .section { padding: 6.5rem 0; }
  .hero2 { padding-bottom: 150px; }
  .work-grid > div { grid-column: span 12; }
  .project-card.is-lead { grid-template-columns: 1fr; }
  .project-card.is-lead .project-cover { min-height: 260px; }
  .project-card.is-lead .project-body { padding: 2rem; }
}
@media (max-width: 640px) {
  .value-grid { grid-template-columns: 1fr; }
  .section-split { margin-bottom: 3rem; }
  .hero2 .hero-title { font-size: clamp(2.8rem, 15vw, 4.2rem); }
  .marquee-track { font-size: 1.15rem; }
}

/* 17. FOOTER BARU ---------------------------------------------------------- */
.site-footer { padding: 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 5rem 0 3.5rem;
}
.footer-mail {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.04em;
  color: var(--fg);
  border-bottom: 2px solid var(--accent);
  line-height: 1.1;
}
.footer-mail:hover { color: var(--accent); }
.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--fg-subtle);
}
.footer-bottom-bar .brand { color: var(--fg); font-family: var(--font-display); font-weight: 600; }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--fg-muted);
  font-weight: 500;
  transition: color .3s;
}
.footer-top:hover { color: var(--accent); }
.footer-top i {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border);
}
@media (max-width: 640px) { .footer-cta { padding: 3.5rem 0 2.5rem; } }

/* 18. REVISI: FONT MANROPE & PALET BIRU ---------------------------------- */
:root, [data-bs-theme] {
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root, [data-bs-theme="dark"] {
  --bg: #050914; --bg-alt: #09101F; --surface: #0C1528; --surface-2: #13203A;
  --fg: #E9EFFD; --fg-muted: #98A6C6; --fg-subtle: #65728F;
  --accent: #5B8DEF; --accent-hover: #8AB2FF; --accent-pastel: #2D5CB8;
  --on-accent: #04101F; --border: #1A2843;
  --glass: rgba(5, 9, 20, .72);
}
[data-bs-theme="light"] {
  --bg: #F5F8FF; --bg-alt: #EBF1FC; --surface: #FFFFFF; --surface-2: #EEF3FD;
  --fg: #0E1729; --fg-muted: #4A5878; --fg-subtle: #8590A8;
  --accent: #2D5FD0; --accent-hover: #1F4BB0; --accent-pastel: #7FA3EE;
  --on-accent: #FFFFFF; --border: #D8E1F2;
  --glass: rgba(245, 248, 255, .82);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; }

/* Hero */
.hero2 { padding: calc(var(--nav-h) + 56px) 0 110px; min-height: 100svh; align-items: center; }
.hero2::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%); top: -25%; right: -15%; }
.hero2::after {
  background-image: radial-gradient(var(--border) 1.3px, transparent 1.3px);
  background-size: 28px 28px;
  opacity: .9;
  mask-image: radial-gradient(ellipse 60% 55% at var(--hx, 72%) var(--hy, 35%), #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at var(--hx, 72%) var(--hy, 35%), #000 0%, transparent 70%);
}
.hero3-eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.hero2 .hero-title { font-size: clamp(3.4rem, 10.5vw, 9.4rem); font-weight: 700; line-height: .92; letter-spacing: -.055em; max-width: none; margin: 0; }
.hero2 .hero-title > span:last-child .w {
  background: linear-gradient(110deg, var(--accent-hover), var(--accent) 55%, var(--accent-pastel));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em;
}
.hero2-sub { font-size: 1.08rem; line-height: 1.75; color: var(--fg-muted); margin: 0 0 2rem; }
.hero2 .hero-actions { margin-top: 0; }

/* Kartu profil (kontak) */
.pf-wrap { position: relative; isolation: isolate; max-width: 360px; margin: 0 auto; padding: 18px; animation: pf-float 7s ease-in-out infinite; }
.pf-wrap::before {
  content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 34px;
  background: conic-gradient(from 0deg, var(--accent), transparent 25%, var(--accent-hover), transparent 60%, var(--accent));
  filter: blur(22px); opacity: .45; animation: pf-spin 12s linear infinite;
}
.pf-card { position: relative; border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .18s linear; will-change: transform; }
.pf-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, var(--surface-2), var(--bg-alt)); }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pf-card:hover .pf-photo img { transform: scale(1.05); }
.pf-shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .32), transparent 42%); mix-blend-mode: soft-light; }
.pf-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.5rem; font-weight: 700; color: var(--accent); }
.pf-info { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .2rem; }
.pf-name { font-weight: 700; font-size: 1.12rem; color: var(--fg); }
.pf-role { color: var(--fg-muted); font-size: .88rem; }
.pf-status { margin-top: .7rem; display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 600; color: var(--success); }
.pf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pf-pulse 2s infinite; }
@keyframes pf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pf-spin { to { transform: rotate(360deg); } }
@keyframes pf-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pf-wrap, .pf-wrap::before, .pf-dot { animation: none; } }

/* 19. JARAK ANTAR SECTION -------------------------------------------------- */
.section { padding: 5.5rem 0; }
.section-split { margin-bottom: 3rem; }
.hero2 { padding-bottom: 80px; }
@media (max-width: 991.98px) { .section { padding: 4.5rem 0; } }
@media (max-width: 640px) { .section { padding: 3.5rem 0; } .section-split { margin-bottom: 2rem; } }

/* 20. PERBAIKAN TIMELINE, HERO & FOOTER ----------------------------------- */
.timeline { padding-left: 2.6rem; }
.tl-item {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius);
  padding: 1.8rem 2rem 1.9rem !important;
  margin: 0 0 1.25rem !important;
  max-width: 820px;
}
.tl-item::before { left: -2.6rem; top: 2.1rem; }
.tl-item .tl-period { margin-bottom: .2rem; }

.hero2 .row { --bs-gutter-x: 0; margin-left: 0; margin-right: 0; align-items: flex-end; }
.hero2 .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.hero2 .row > .col-lg-4 { padding-left: 3.5rem; }
.hero2 .hero-title { line-height: 1.02; }
.hero2 .hero-title .w { padding-bottom: .1em; padding-right: .06em; }
.hero2 .hero-title > span:last-child .w { padding-bottom: .16em; }
@media (max-width: 991.98px) { .hero2 .row > .col-lg-4 { padding-left: 0; margin-top: 2rem; } }

/* 21. HERO GAYA REFERENSI ------------------------------------------------- */
.hero2 { padding: calc(var(--nav-h) + 40px) 0 90px; }
.hero2 .row { align-items: center; margin-left: 0; margin-right: 0; --bs-gutter-x: 0; }
.hero2 .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.hero2 .hero-title { font-size: clamp(3.6rem, 8.4vw, 8rem); line-height: .94; letter-spacing: -.05em; }
.hero2 .hero-line { display: block; }
.hero2 .hero-title .w { padding-bottom: .08em; padding-right: .05em; }
.hero2 .hero-title > span:last-child .w { padding-bottom: .14em; }
.hero2 .row > .col-lg-4 { padding-left: 0; margin-top: 0; }
.hero2 .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero2 .hero-actions .btn-lg { padding: .95rem 1.7rem; font-size: .95rem; }
.hero2 .social-row { margin-top: 1.6rem; }
.hero2-sub { font-size: 1.1rem; line-height: 1.7; max-width: 30rem; }
@media (max-width: 991.98px) { .hero2 .row > .col-lg-4 { margin-top: 2.5rem; } }

/* 22. HERO: NAMA LEBIH BESAR, KOLOM SEIMBANG ------------------------------ */
.hero2 .hero-title { font-size: clamp(4.6rem, 11.5vw, 11rem); line-height: .9; letter-spacing: -.055em; }
.hero2 .row { align-items: center; min-height: 62vh; }
.hero2 .hero2-sub { max-width: 27rem; font-size: 1.12rem; }
.hero2 .hero-actions .btn-lg { min-width: 200px; justify-content: center; }
.hero2 .hero-actions { margin-top: 2.2rem; }
.hero2 { padding-bottom: 60px; }
@media (max-width: 991.98px) {
  .hero2 .hero-title { font-size: clamp(3.6rem, 16vw, 6.5rem); }
  .hero2 .row { min-height: 0; }
}

/* 23. HERO: PERAN BERGANTI ------------------------------------------------- */
.role-rotor { margin-top: 1.8rem; display: inline-flex; align-items: center; gap: .8rem; font-size: 1.12rem; color: var(--fg-muted); animation: fadeUp .7s var(--ease); }
.role-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.role-text { font-weight: 600; color: var(--fg); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 24. CHATBOT ------------------------------------------------------------- */
.chat-fab {
  position: fixed; left: 22px; bottom: 22px; z-index: 1500;
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--accent); color: var(--on-accent); font-size: 1.3rem;
  box-shadow: 0 18px 40px -12px var(--accent); cursor: pointer;
  transition: transform .3s var(--ease);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.chat-panel {
  position: fixed; left: 22px; bottom: 94px; z-index: 1500;
  width: min(390px, calc(100vw - 44px)); height: min(560px, 70vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--shadow);
}
.chat-head { padding: 16px 18px; border-bottom: 1px solid var(--border); }
.chat-title { font-weight: 700; color: var(--fg); }
.chat-sub { font-size: .78rem; color: var(--fg-subtle); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.55; white-space: pre-line; word-break: break-word; }
.chat-msg.bot { background: var(--surface-2); color: var(--fg); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--accent); color: var(--on-accent); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg a { color: inherit; text-decoration: underline; }
.chat-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chat-sugg button { font-size: .78rem; border: 1px solid var(--border); background: transparent; color: var(--fg-muted); border-radius: 999px; padding: 4px 11px; }
.chat-sugg button:hover { color: var(--accent); border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-form input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; color: var(--fg); font: inherit; }
.chat-form input:focus { outline: none; border-color: var(--accent); }
.chat-form button { width: 44px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); }
.chat-form button:disabled { opacity: .45; }
.typing { display: inline-flex; gap: 4px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-subtle); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 640px) { .chat-fab { left: 14px; bottom: 14px; } .chat-panel { left: 14px; bottom: 84px; } }

/* 24. PERBAIKAN TAMPILAN HP ------------------------------------------------ */
@media (max-width: 640px) {
  /* ruang kiri-kanan lebih lega (navbar tidak ikut diubah) */
  .hero2 > .container,
  .section > .container,
  .site-footer .container { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* hero: jarak antara peran, deskripsi, dan tombol */
  .hero2 { padding-top: calc(var(--nav-h) + 28px); padding-bottom: 56px; }
  .hero2 .role-rotor { margin-top: 1.25rem; margin-bottom: 1.5rem; font-size: 1rem; }
  .hero2 .hero2-sub { font-size: 1rem; line-height: 1.7; max-width: none; margin-bottom: 1.5rem; }

  /* tombol penuh selebar layar dan sama lebar */
  .hero2 .hero-actions { flex-direction: column; gap: .7rem; margin-top: 0; }
  .hero2 .hero-actions .btn-lg { width: 100%; min-width: 0; justify-content: center; }

  /* tombol chat lebih kecil dan tidak menutupi konten */
  .chat-fab { width: 50px; height: 50px; font-size: 1.15rem; left: 16px; bottom: 16px; }
}
