/* ============================================================
   MUBAROK WEI — SEO & IT Consultant Portfolio
   Design system: dark/light themes, editorial type, GSAP-ready
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Dark theme (default) */
  --bg: #0b0b0c;
  --bg-2: #101013;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --text: #f2f1ec;
  --text-2: #a9a8a0;
  --text-3: #6e6d66;
  --line: rgba(242, 241, 236, 0.08);
  --line-2: rgba(242, 241, 236, 0.18);
  --accent: #c6f34e;
  --accent-ink: #0b0b0c;
  --accent-soft: rgba(198, 243, 78, 0.12);
  --accent-glow: rgba(198, 243, 78, 0.28);
  --danger: #ff5c5c;

  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  --bg: #f3f1ea;
  --bg-2: #ebe8df;
  --surface: #ffffff;
  --surface-2: #f6f4ee;
  --text: #14140f;
  --text-2: #5c5b53;
  --text-3: #9a988e;
  --line: rgba(20, 20, 15, 0.1);
  --line-2: rgba(20, 20, 15, 0.22);
  --accent: #5d7f00;
  --accent-ink: #ffffff;
  --accent-soft: rgba(93, 127, 0, 0.1);
  --accent-glow: rgba(93, 127, 0, 0.22);
  --danger: #d92d20;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles it */
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

ul,
ol {
  list-style: none;
}

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

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: clamp(88px, 11vw, 150px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.sec-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}

.sec-num b {
  color: var(--accent);
  font-size: 16px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.display {
  font-size: clamp(52px, 9vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(38px, 5.4vw, 84px);
}

.h3 {
  font-size: clamp(26px, 3vw, 44px);
}

.accent {
  color: var(--accent);
}

.text-dim {
  color: var(--text-2);
}

/* Split-line reveal masks */
[data-split] .row {
  display: block;
}

[data-split] .split-line,
[data-reveal] {
  display: block;
  overflow: hidden;
}
[data-split] .split-line > .split-inner {
  display: inline-block;
  will-change: transform;
}

/* Reveal on scroll (JS adds .is-in when triggered) — only hidden when JS is active */
html.js .reveal-up {
  opacity: 0;
  transform: translateY(36px);
}
.reveal-up {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js .reveal-up.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. Grain + glow ---------- */
.grain::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- 5. Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transition: opacity 0.3s;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: transparent;
  transition: width 0.35s var(--ease-spring), height 0.35s var(--ease-spring),
    border-color 0.35s, background-color 0.35s, opacity 0.3s;
}

.cursor-ring .cursor-label {
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s, transform 0.25s var(--ease-spring);
}

.cursor-ring.is-hover {
  width: 68px;
  height: 68px;
  border-color: var(--accent);
  background: var(--accent);
}
.cursor-ring.is-hover .cursor-label {
  opacity: 1;
  transform: scale(1);
}

@media (hover: none), (max-width: 900px) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s,
    height 0.4s var(--ease-out), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  height: 62px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.logo .logo-dot {
  color: var(--accent);
  font-size: 26px;
  line-height: 0;
}

.logo .logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  padding: 2px;
  background: var(--surface);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}

.logo:hover .logo-img {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.nav.is-scrolled .logo-img {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
}

.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s;
  padding-block: 6px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link.is-active {
  color: var(--text);
}
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Nav item with submenu (desktop dropdown) */
.nav-item {
  position: relative;
}

.nav-item .nav-caret {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: var(--text-3);
  transition: transform 0.35s var(--ease-out), color 0.3s;
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Saat menu dibuka via tap (is-open), jangan tampilkan underline & caret
   "hover menempel" yang tersisa di perangkat sentuh. Mouse tidak terpengaruh
   (is-open hanya dibuat oleh pointer sentuh). */
.nav-item.is-open > .nav-link:not(.is-active)::after {
  transform: scaleX(0);
}

.nav-item.is-open > .nav-link:not(.is-active) {
  color: var(--text-2);
}

.nav-item.is-open .nav-caret {
  transform: none;
  color: var(--text-3);
}

/* Hover bridge: perpanjang area hover dari link sampai ke panel dropdown,
   supaya tidak ada "celah mati" saat kursor bergerak menuju menu
   (menu menghilang di tengah jalan). */
.nav-item.has-sub > .nav-link::before {
  content: "";
  position: absolute;
  left: -30px;
  right: -30px;
  top: 100%;
  height: 44px;
  pointer-events: auto;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown a {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 10px 14px;
  border-radius: 9px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}

.nav-dropdown a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* Mega menu (SaaS-style wide panel — gaya Framer SaaS Navigation) */
.has-mega {
  position: static;
}

.has-mega[data-mega-cols="2"] { --mega-cols: 2; }
.has-mega[data-mega-cols="3"] { --mega-cols: 3; }
.has-mega[data-mega-cols="4"] { --mega-cols: 4; }

.mega-menu {
  /* Anchored to .nav (fixed) — position:absolute here keeps it stable even
     when .nav.is-scrolled applies backdrop-filter (which would trap a
     position:fixed child). Centered on the viewport like a SaaS mega menu. */
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: min(880px, calc(100vw - var(--gutter) * 2));
  max-height: calc(100vh - var(--nav-h) - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  /* Morphy glass: kaca transparan + blur ringan — tulisan hero di
     belakang panel tetap terlihat */
  background: color-mix(in srgb, var(--surface) 46%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: 16px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  box-shadow:
    0 24px 48px -12px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 color-mix(in srgb, var(--text) 12%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  z-index: 105;
}

/* Blob gradient morphing di dalam kaca (accent lembut, bergerak pelan) */
.mega-menu::before,
.mega-menu::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(48px);
  opacity: 0.38;
  will-change: transform;
}

.mega-menu::before {
  width: 320px;
  height: 320px;
  left: -110px;
  top: -140px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 70%);
  animation: mm-morph-a 16s ease-in-out infinite alternate;
}

.mega-menu::after {
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -130px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent) 0%, transparent 70%);
  animation: mm-morph-b 21s ease-in-out infinite alternate;
}

@keyframes mm-morph-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(60px, 40px, 0) scale(1.15); }
  100% { transform: translate3d(-40px, 80px, 0) scale(0.92); }
}

@keyframes mm-morph-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-70px, -50px, 0) scale(1.2); }
  100% { transform: translate3d(40px, -30px, 0) scale(0.9); }
}

.mega-menu-inner {
  position: relative;
  z-index: 1;
}

.mega-menu::-webkit-scrollbar {
  display: none;
}

.nav-item.has-mega:hover .mega-menu,
.nav-item.has-mega:focus-within .mega-menu,
.nav-item.has-mega.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-inner {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.mega-menu-items {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--mega-cols, 4), minmax(0, 1fr));
  gap: 6px;
  align-content: start;
}

.mega-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.25s;
}

.mega-item:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.mega-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: background 0.3s, transform 0.3s var(--ease-out);
}

.mega-item:hover .mega-icon {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  transform: scale(1.05);
}

.mega-icon svg {
  width: 18px;
  height: 18px;
}

.mega-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.mega-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.mega-text small {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Kartu sorotan sisi kanan (gaya SaaS: judul + teks + tombol CTA) */
.mega-menu-featured {
  flex: none;
  width: 252px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}

.mega-featured-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: block;
}

.mega-featured-text {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-3);
}

.mega-featured-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.mega-featured-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 45%, transparent);
}

@media (max-width: 1024px) {
  .mega-menu {
    width: calc(100vw - var(--gutter) * 2);
  }
  .mega-menu-inner {
    flex-direction: column;
  }
  .mega-menu-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mega-menu-featured {
    width: auto;
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  width: 62px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: background 0.4s, border-color 0.4s;
}

.theme-toggle .knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease-spring);
}

[data-theme="light"] .theme-toggle .knob {
  transform: translateX(30px);
}

.theme-toggle .knob svg {
  width: 14px;
  height: 14px;
  color: var(--accent-ink);
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  transition: background 0.3s, color 0.3s;
  will-change: transform;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.nav-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-burger.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-glow));
  z-index: 101;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  padding: calc(var(--nav-h) + 14px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease-out), visibility 0.6s;
}

.mobile-menu::-webkit-scrollbar {
  display: none;
}

/* Decorative glow di belakang daftar menu */
.mobile-menu::before {
  content: "";
  position: absolute;
  top: 16vh;
  right: -22vw;
  width: 72vw;
  height: 72vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s 0.25s;
}

.mobile-menu.is-open::before {
  opacity: 1;
}

.mobile-menu.is-open {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(32px, 7.5vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--text);
  transition: color 0.3s, transform 0.4s var(--ease-out);
}

/* Entrance stagger — tiap item naik bergantian saat menu dibuka */
.mobile-menu > a,
.mobile-menu > .mm-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out), color 0.3s;
  transition-delay: calc(var(--i, 0) * 55ms);
}

.mobile-menu.is-open > a,
.mobile-menu.is-open > .mm-item {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu > a:hover,
.mobile-menu > .mm-item:hover > .mm-row a {
  color: var(--accent);
  transform: translateY(0) translateX(10px);
  transition-delay: 0ms; /* hover tidak boleh menunggu delay stagger */
}

.mobile-menu > a.is-active,
.mobile-menu > .mm-item.is-active > .mm-row a {
  color: var(--accent);
}

.mobile-menu a small {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.mobile-menu a.is-active small {
  color: var(--accent);
}

/* Mobile submenu */
.mobile-menu .mm-item {
  display: flex;
  flex-direction: column;
}

.mobile-menu .mm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu .mm-row a {
  flex: 1;
}

.mm-toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
  transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease-out), background 0.3s;
}

.mm-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.mm-item.is-open .mm-toggle {
  transform: rotate(180deg);
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.mm-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}

.mm-item.is-open .mm-sub {
  grid-template-rows: 1fr;
}

.mm-sub-inner {
  overflow: hidden;
  min-height: 0;
}

.mm-sub a {
  font-size: clamp(18px, 4vw, 28px);
  padding: 10px 0 10px 30px;
  border-left: 1px solid var(--line-2);
  margin-left: 12px;
  padding-left: 22px;
  color: var(--text-2);
  position: relative;
  align-items: center;
  gap: 12px;
}

.mm-sub-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.mm-sub-icon svg {
  width: 17px;
  height: 17px;
}

.mm-sub-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mm-sub-text strong {
  font-size: 20px;
  line-height: 1.15;
}

.mm-sub-text small {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-3);
}

.mm-sub a::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.mm-sub a:hover {
  color: var(--accent);
}
.mm-sub a:hover::before {
  opacity: 1;
}

/* Lock body scroll saat menu terbuka */
body.menu-locked {
  overflow: hidden;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  /* Tidak full-viewport lagi — menyisakan ruang di bawah lipatan agar
     section berikutnya (Skill & Stack) langsung terlihat tanpa scroll */
  /* Sedikit lebih pendek dari viewport agar marquee di bawahnya
     langsung terlihat tanpa scroll */
  min-height: 74svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(16px, 3vw, 40px) + 70px);
  margin-bottom: 40px;
  overflow: hidden;
}

/* Judul di dekat navbar, foot/meta di bawah — tanpa ruang kosong berlebih */
.hero-main,
.hero-foot-wrap {
  flex-shrink: 0;
}

.hero-foot-wrap {
  width: 100%;
}

.hero-title {
  font-size: clamp(54px, 10.5vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-title .row {
  display: block;
}

.hero-title .t-accent {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  transition: color 0.4s;
}

.hero-title .t-accent:hover {
  color: var(--accent);
}

.hero-foot {
  margin-top: clamp(16px, 2.5vw, 32px);
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 32px;
  align-items: end;
  padding-bottom: clamp(20px, 3vw, 40px);
}

.hero-sub {
  max-width: 46ch;
  color: var(--text-2);
  font-size: clamp(15px, 1.3vw, 18px);
}

.hero-sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 17px 30px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  transition: color 0.4s var(--ease-out), border-color 0.4s;
  will-change: transform;
}

.btn .btn-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
  z-index: -1;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn:hover .btn-fill {
  transform: translateY(0);
}

.btn .btn-arrow {
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn-arrow {
  transform: translate(4px, -4px);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary .btn-fill {
  display: none;
}

.btn-ghost {
  color: var(--text);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  border-left: 1px solid var(--line-2);
  padding-left: 20px;
}

.hero-meta strong {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-cue .cue-line {
  width: 1px;
  height: 60px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}

.scroll-cue .cue-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: cue-drop 1.8s var(--ease-out) infinite;
}

@keyframes cue-drop {
  0% { top: -40%; }
  100% { top: 110%; }
}

/* ---------- 8. Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 22px;
  overflow: hidden;
  background: var(--bg-2);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--text);
}

.marquee-item .star {
  color: var(--accent);
  font-size: 0.7em;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

/* Alt section (theme-aware surface) */
.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  transition: background-color 0.5s var(--ease-out), border-color 0.5s;
}

/* ---------- 9. Case studies ---------- */
.featured-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* kolom gambar lebih lebar agar gambar featured lebih besar */
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  position: relative;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  will-change: transform;
}

/* Efek hover difokuskan ke BLOK GAMBAR saja — kartu tidak berubah */
.featured-body {
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

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

.featured-title {
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1;
}

.featured-desc {
  color: var(--text-2);
  max-width: 52ch;
}

.featured-results {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  margin-top: auto;
  padding-top: 8px;
}

.result b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.result > span {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.featured-visual {
  position: relative;
  aspect-ratio: 16 / 10; /* rasio ideal 1600x1000 -> full-bleed, gambar tampil penuh */
  background:
    radial-gradient(120% 120% at 20% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
  border-left: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: clamp(24px, 3vw, 48px);
  overflow: hidden;
}

/* Tanpa gambar (visual dashboard default) tetap butuh tinggi minimal di layar kecil */
.featured-visual:not(.has-img) {
  min-height: 320px;
}

.featured-visual::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
  animation: spin 26s linear infinite;
}

/* Gambar: tampil UTUH 100% (contain) — laptop/screenshot tidak pernah
   terpotong. Margin hitam gambar menyatu dengan latar hitam, jadi terlihat
   rapi. Kolom visual dibuat lebih lebar agar gambarnya lebih besar. */
.featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  filter: saturate(0.94) contrast(1.02);
  transition: transform 0.8s var(--ease-out), filter 0.5s ease;
}

.featured-visual.has-img {
  padding: 0;
  aspect-ratio: auto;
  background: #000; /* latar hitam polos */
  box-shadow: inset 0 0 0 1px var(--line-2);
}

/* Tanpa overlay/gradien di atas gambar upload — latar hitam polos saja */
.featured-visual.has-img::after {
  display: none;
}

/* Hover SAMA PERSIS seperti mini card: zoom gambar halus (scale 1.05) saja */
.featured-visual.has-img:hover .featured-img {
  transform: scale(1.05);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mini analytics dashboard mock */
.dash {
  width: min(360px, 100%);
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  padding: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(-3deg);
  transition: transform 0.6s var(--ease-out);
}

.featured-visual:hover .dash {
  transform: rotate(0deg) translateY(-6px);
}

.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.dash-top .dots {
  display: flex;
  gap: 5px;
}
.dash-top .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-2);
}
.dash-top .dots i:first-child { background: var(--danger); }
.dash-top .dots i:nth-child(2) { background: var(--accent); }

.dash-top b {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.dash .big-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.dash .big-label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 16px;
}

.dash-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 90px;
}

.dash-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent));
  height: 0%;
  transform-origin: bottom;
  transition: height 1s var(--ease-out);
}

.dash-bars i:nth-child(odd) {
  background: linear-gradient(180deg, var(--text-2), color-mix(in srgb, var(--text-2) 20%, transparent));
}

.featured-card.is-in .dash-bars i {
  height: var(--h);
}

.dash-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

/* Featured stack (multiple featured cards) */
.featured-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

/* Mini cards row */
.mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(16px, 2vw, 24px);
}

.mini-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  will-change: transform;
}

/* Mini card thumbnail (bleeds to the card edges, like blog post cards) */
.mini-card:has(.mini-thumb) {
  padding-top: 0;
}

.mini-card .mini-thumb {
  display: block;
  margin: 0 calc(clamp(26px, 3vw, 40px) * -1) 0;
  aspect-ratio: 16 / 10; /* ikuti rasio gambar ideal (1600x1000) -> laptop tampil utuh, tidak terpotong */
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.mini-card .mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.mini-card:hover .mini-thumb img {
  transform: scale(1.05);
}

/* With a real image, drop the decorative blur blob */
.mini-card:has(.mini-thumb) .mini-art {
  display: none;
}

.mini-card:hover {
  border-color: var(--line-2);
  transform: translateY(-5px);
}

.mini-card .mini-art {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(2px);
  transition: transform 0.6s var(--ease-out);
}

.mini-card:hover .mini-art {
  transform: scale(1.25);
}

.mini-card .mini-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.mini-card h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.05;
  max-width: 16ch;
}

.mini-card p {
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 44ch;
}

.mini-card .mini-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mini-card .mini-link .mini-arrow {
  transition: transform 0.35s var(--ease-out);
}
.mini-card:hover .mini-link .mini-arrow {
  transform: translateX(6px);
}

/* ---------- 10. Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}

.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), background 0.4s;
  will-change: transform;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
}
.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform 0.4s var(--ease-spring), background 0.4s;
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-6deg);
  background: var(--accent);
  color: var(--accent-ink);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.service-card h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  position: relative;
}

.service-card .service-tagline {
  color: var(--text-2);
  font-size: 14.5px;
  position: relative;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  padding-top: 4px;
}

.service-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14.5px;
  color: var(--text-2);
}

.service-list li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-2px);
}

.guarantee-pill {
  margin-top: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  border: 1px dashed var(--line-2);
  border-radius: 999px;
  padding: 8px 16px;
}

.guarantee-pill svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.service-cta {
  position: relative;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, background 0.35s;
}

.service-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}

.service-cta svg {
  flex: none;
  transition: transform 0.35s var(--ease-spring);
}

.service-cta:hover svg {
  transform: translateX(3px);
}

/* ---------- 10b. Our Clients ---------- */
.clients-section {
  padding-top: 0;
}

/* Marquee strip logo horizontal — auto-scroll seperti testimonial, fade tepi kiri & kanan */
.clients-marquee {
  overflow: hidden;
  padding-block: 10px 6px;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
  will-change: transform;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
  }
}

.client-logo {
  display: grid;
  place-items: center;
  height: 56px;
  padding: 0 14px;
  margin-right: clamp(24px, 4vw, 56px);
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.4s, filter 0.4s, transform 0.4s var(--ease-out);
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: translateY(-3px);
}

.client-logo img {
  max-height: 44px;
  max-width: 200px;
  object-fit: contain;
}

/* ---------- 11. Guarantee band ---------- */
.guarantee-band {
  position: relative;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 50% 120%, var(--accent-soft), transparent 60%),
    var(--bg-2);
  overflow: hidden;
}

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.guarantee {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}

.guarantee:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
}

.guarantee .g-num {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.guarantee .g-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.guarantee p {
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- 12. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}

.about-sticky {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.stat-row b {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-row span {
  font-size: 13.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-copy p {
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
  margin-bottom: 22px;
  max-width: 62ch;
}

.about-copy p strong {
  color: var(--text);
}

.about-copy .lead {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.skills-head {
  margin: 44px 0 22px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.skills-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease-spring);
  cursor: default;
}

.skill-chip:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ---------- 12b. About page ---------- */
.about-hero {
  padding-top: calc(var(--nav-h) + clamp(60px, 10vw, 140px));
  padding-bottom: clamp(60px, 8vw, 120px);
}

.about-hero .eyebrow {
  margin-bottom: clamp(20px, 3vw, 36px);
}

.about-hero-title {
  font-size: clamp(42px, 7.5vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 20ch;
}

.about-hero-title .row {
  display: block;
}

.about-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 48px);
}

/* Narrative */
.about-narrative {
  padding-block: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

.about-narrative-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

/* Narrative tanpa kolom stats (halaman services) — teks full-width, lebar baca nyaman */
.about-narrative-grid--single {
  grid-template-columns: 1fr;
  max-width: 76ch;
}

/* Narrative dengan gambar hero di kolom kanan (halaman services) */
.about-narrative-grid--media {
  align-items: center;
}

.services-narrative-media img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.6);
}

.about-narrative-text .lead {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 56ch;
}

.about-narrative-text p {
  color: var(--text-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  margin-bottom: 22px;
  max-width: 60ch;
}

.about-narrative-text p strong {
  color: var(--text);
}

/* Narrative rendered from page content: first paragraph becomes the lead */
.about-narrative-text .about-post-body > p:first-child {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.45;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 56ch;
}

.about-narrative-stats {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  position: sticky;
  top: 120px;
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-2);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.8s var(--ease-out), filter 0.6s var(--ease-out);
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04);
  pointer-events: none;
}
.about-photo:hover img {
  transform: scale(1.045);
}

/* Education */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.edu-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
}

.edu-item:last-child {
  border-bottom: none;
}

.edu-date {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding-top: 6px;
  text-transform: uppercase;
}

.edu-body h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.1;
  margin-bottom: 4px;
}

.edu-role {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.edu-body p {
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 52ch;
}

/* Skills (about page) */
.about-skills-cloud {
  gap: 14px;
}

.about-skills-cloud .skill-chip {
  font-size: 15px;
  padding: 14px 24px;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}

.value-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  will-change: transform;
}

.value-card:hover {
  border-color: var(--line-2);
  transform: translateY(-5px);
}

.value-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.value-card h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
}

.value-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
}

/* Interests */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}

.interest-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.interest-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 100%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
}

.interest-card:hover {
  border-color: var(--line-2);
  transform: translateY(-5px);
}
.interest-card:hover::before {
  opacity: 1;
}

.interest-card h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  position: relative;
}

.interest-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
  position: relative;
}

/* About CTA */
.about-cta {
  position: relative;
  border-top: 1px solid var(--line);
}

.about-cta-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 130% at 50% 120%, var(--accent-soft), transparent 60%),
    var(--surface);
  padding: clamp(40px, 6vw, 80px);
}

.about-cta-inner h2 {
  font-size: clamp(32px, 5vw, 72px);
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.about-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* About page responsive */
@media (max-width: 1080px) {
  .about-narrative-grid {
    grid-template-columns: 1fr;
  }
  .about-narrative-stats {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .about-photo {
    flex: 0 0 100%;
    aspect-ratio: auto;
    max-height: none;
  }
  .about-photo img {
    height: auto;
  }
  .edu-item {
    grid-template-columns: 130px 1fr;
  }
  .values-grid,
  .interests-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .about-hero-title {
    font-size: clamp(34px, 9vw, 56px);
  }
  .edu-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .values-grid,
  .interests-grid {
    grid-template-columns: 1fr;
  }
  .about-cta-inner {
    padding: clamp(28px, 5vw, 44px);
  }
}

/* ---------- 12b. Services SEO page ---------- */
.services-hero {
  padding-top: calc(var(--nav-h) + clamp(60px, 10vw, 140px));
  padding-bottom: clamp(60px, 8vw, 120px);
}

.services-hero .eyebrow {
  margin-bottom: clamp(20px, 3vw, 36px);
}

.services-hero-title {
  font-size: clamp(42px, 7.5vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 16ch;
}

.services-hero-title .row {
  display: block;
}

.services-hero-sub {
  margin-top: clamp(24px, 3vw, 40px);
  color: var(--text-2);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
  max-width: 56ch;
}

.services-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 48px);
}

/* Narrative */
.services-narrative {
  padding-block: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

/* Hero visual */
/* Pillars */
.services-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 24px);
}

.services-pillar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.5s;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.services-pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 110%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.services-pillar:hover {
  border-color: var(--line-2);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
}

.services-pillar:hover::before {
  opacity: 1;
}

.services-pillar-media {
  position: relative;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.services-pillar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.services-pillar:hover .services-pillar-media img {
  transform: scale(1.04);
}

.services-pillar h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.15;
  position: relative;
}

.services-pillar p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
  position: relative;
}

/* Process */
.services-process-list {
  display: flex;
  flex-direction: column;
}

.services-process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  transition: background 0.4s;
}

.services-process-step:last-child {
  border-bottom: 1px solid var(--line);
}

.services-process-step:hover {
  background: var(--accent-soft);
}

.services-process-num {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.services-process-media {
  width: 100%;
  max-width: 360px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.services-process-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-process-body h3 {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.services-process-body p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
  max-width: 62ch;
}

/* FAQ */
.services-faq-list {
  display: flex;
  flex-direction: column;
}

.services-faq-item {
  border-top: 1px solid var(--line);
}

.services-faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.services-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(22px, 3vw, 30px);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.3s;
  user-select: none;
}

.services-faq-item summary::-webkit-details-marker {
  display: none;
}

.services-faq-item summary:hover {
  color: var(--accent);
}

.services-faq-icon {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform 0.4s var(--ease-out), color 0.3s;
}

.services-faq-item[open] .services-faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.services-faq-answer {
  padding-bottom: clamp(22px, 3vw, 32px);
  max-width: 64ch;
}

.services-faq-answer p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}

.services-faq-media {
  width: 100%;
  max-width: 320px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
}

.services-faq-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .services-hero-title {
    font-size: clamp(34px, 9vw, 56px);
  }
  .services-pillars-grid {
    grid-template-columns: 1fr;
  }
  .services-process-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ---------- 13. Journey / timeline ---------- */
.timeline {
  position: relative;
  margin-top: 8px;
  padding-left: clamp(20px, 4vw, 48px);
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-line .timeline-progress {
  position: absolute;
  inset: 0;
  transform-origin: top;
  transform: scaleY(0);
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
}

.tl-item {
  position: relative;
  padding-bottom: clamp(44px, 5vw, 68px);
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(16px, 3vw, 40px);
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: calc(-1 * clamp(20px, 4vw, 48px) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line-2);
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.tl-item.is-in .tl-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.tl-date {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  padding-top: 6px;
  text-transform: uppercase;
}

.tl-content h3 {
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.1;
  margin-bottom: 4px;
}

.tl-content .tl-role {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tl-content p {
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 56ch;
}

.tl-type {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}

/* ---------- 13b. Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  will-change: transform;
}

.post-card:hover {
  border-color: var(--line-2);
  transform: translateY(-5px);
}

.post-card h3 {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.1;
}

.post-card p {
  color: var(--text-2);
  font-size: 14.5px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Search */
.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: clamp(28px, 4vw, 44px) 0 10px auto;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.4s;
}

.blog-search:focus-within {
  border-color: var(--line-2);
}

.blog-search-icon {
  color: var(--text-3);
  flex: none;
}

.blog-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-1);
  font: inherit;
  font-size: 14.5px;
  padding: 10px 0;
}

.blog-search-input::placeholder {
  color: var(--text-3);
}

.blog-search-input::-webkit-search-cancel-button {
  display: none;
}

.blog-search-clear {
  flex: none;
  color: var(--text-3);
  font-size: 13px;
  padding: 6px;
  border-radius: 50%;
  transition: color 0.3s, background 0.3s;
}

.blog-search-clear:hover {
  color: var(--text-1);
  background: var(--surface-2);
}

.blog-search-btn {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 22px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.blog-search-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.blog-search-info {
  margin: 0 0 clamp(24px, 3vw, 32px);
  color: var(--text-3);
  font-size: 13.5px;
  text-align: right;
}

.blog-search-info b {
  color: var(--text-1);
}

/* Pagination */
.blog-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(36px, 5vw, 56px);
}

.pager-btn,
.pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}

.pager-btn:hover:not(.is-disabled),
.pager-num:hover {
  border-color: var(--line-2);
  color: var(--text-1);
  transform: translateY(-2px);
}

.pager-num.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.pager-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.post-date {
  font-size: 12.5px;
  color: var(--text-3);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.post-page .display {
  font-size: clamp(36px, 6.5vw, 88px);
  margin-bottom: 28px;
}

.post-lede {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.6;
  margin-bottom: 36px;
}

.post-body {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
  max-width: 72ch;
}

.post-body h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 44px 0 14px;
}

.post-body h3 {
  font-size: clamp(19px, 2.2vw, 26px);
  margin: 34px 0 12px;
}

.post-body p {
  margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
  color: var(--text-2);
}

.post-body li {
  margin-bottom: 8px;
}

.post-body ul li::marker,
.post-body ol li::marker {
  color: var(--accent);
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  color: var(--text-2);
  font-style: italic;
}

.post-body a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  transition: color 0.3s;
}

.post-body a:hover {
  color: var(--text);
}

.post-body img {
  border-radius: var(--radius);
  margin: 28px 0;
}

.post-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
}

.post-back {
  margin-bottom: 8px;
}

/* ---------- 13b2. Case studies index page + filter tabs ---------- */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.filter-tab {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: var(--surface);
  transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s var(--ease-spring);
}

.filter-tab span {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  color: var(--text-3);
  transition: color 0.3s;
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.filter-tab.is-active {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.filter-tab.is-active span {
  color: var(--accent-ink);
  opacity: 0.7;
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.cs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  will-change: transform;
}

.cs-card:hover {
  border-color: var(--line-2);
  transform: translateY(-5px);
}

/* cs-card thumbnail (bleeds to the card edges) */
.cs-card:has(.cs-thumb) {
  padding-top: 0;
}

.cs-card .cs-thumb {
  display: block;
  margin: 0 calc(clamp(24px, 3vw, 36px) * -1) 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.cs-card .cs-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.cs-card:hover .cs-thumb img {
  transform: scale(1.05);
}

.cs-card h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
}

.cs-card p {
  color: var(--text-2);
  font-size: 14.5px;
}

.cs-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tag-ghost {
  background: transparent;
  color: var(--text-3);
  border-style: dashed;
}

.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-tags span {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

.cs-empty {
  text-align: center;
  padding: clamp(40px, 6vw, 80px);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--text-3);
  font-size: 15px;
}

/* ---------- 13c. Case study detail page ---------- */
.work-hero {
  padding-top: clamp(24px, 4vw, 48px);
}

.work-lede {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.65;
  max-width: 62ch;
}

.work-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(32px, 5vw, 56px);
}

.wr-item {
  background: var(--surface);
  padding: clamp(22px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wr-item b {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.wr-item > span {
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.03em;
}

.work-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s, transform 0.5s var(--ease-out);
  will-change: transform;
}

.work-next:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.work-next h2 {
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.05;
}

.work-next svg {
  flex: none;
  color: var(--accent);
  transition: transform 0.4s var(--ease-out);
}

.work-next:hover svg {
  transform: translate(6px, -6px);
}

/* ---------- 14. Support strip ---------- */
.support-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 120% at 100% 0%, var(--accent-soft), transparent 55%),
    var(--surface);
  padding: clamp(28px, 4vw, 56px);
}

.support-strip h2 {
  max-width: 18ch;
}

.support-strip p {
  color: var(--text-2);
  max-width: 46ch;
  font-size: 15px;
}

/* ---------- 15. Footer / contact ---------- */
.contact {
  position: relative;
  padding-block: clamp(90px, 12vw, 170px) clamp(40px, 6vw, 80px);
}

/* Footer tanpa CTA besar (halaman selain homepage) — padding ramping */
.contact--footer-only {
  padding-block: clamp(40px, 5vw, 70px) clamp(28px, 4vw, 50px);
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(60px, 8vw, 110px);
}

.contact-cta h2 {
  font-size: clamp(44px, 7.6vw, 128px);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  transition: color 0.3s, border-color 0.3s;
  will-change: transform;
}

.contact-email:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  transition: color 0.3s;
}

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

.footer-links svg {
  width: 16px;
  height: 16px;
}

.back-top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.3s;
}

.back-top:hover {
  color: var(--accent);
}

.back-top svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-out);
}

.back-top:hover svg {
  transform: translateY(-4px);
}

/* ---------- 16. Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader .pl-word {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  overflow: hidden;
}

.preloader .pl-word span {
  display: inline-block;
  transform: translateY(110%);
  animation: pl-rise 0.8s var(--ease-out) forwards;
}

@keyframes pl-rise {
  to { transform: translateY(0); }
}

.preloader .pl-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  transition: width 1s var(--ease-out);
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-foot {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-meta {
    border-left: none;
    padding-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-visual {
    border-left: none;
    border-bottom: 1px solid var(--line);
    order: -1; /* mobile: gambar tampil DI ATAS teks */
  }
  /* Mobile: panel visual di-stack di bawah body. Tanpa rasio, tinggi collapse jadi 0
     karena gambar position:absolute tidak memberi tinggi -> kembalikan rasio 16:10 */
  .featured-visual.has-img {
    aspect-ratio: 16 / 10;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-sticky {
    position: static;
  }
  .tl-item {
    grid-template-columns: 110px 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .services-grid,
  .mini-cards,
  .guarantee-grid {
    grid-template-columns: 1fr;
  }
  .tl-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .tl-date {
    padding-top: 0;
  }
  .scroll-cue {
    display: none;
  }
  .contact-email {
    font-size: 18px;
  }
}

/* ---------- 18. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal-up {
    opacity: 1;
    transform: none;
  }
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ---------- 20. Live support widget (WhatsApp) ---------- */
.wa-widget {
  position: fixed;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0;
}

.wa-launcher {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
  will-change: transform;
}

.wa-launcher:hover {
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 16px 40px -8px var(--accent-glow);
}

.wa-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.wa-icon {
  width: 30px;
  height: 30px;
}

/* Online pulse dot */
.wa-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid var(--bg);
}

.wa-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: wa-pulse 2s var(--ease-out) infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Tooltip card (mini chat) */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 16px);
  bottom: -8px;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(14px) translateY(6px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.wa-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 26px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(-45deg);
}

.wa-widget:hover .wa-tooltip,
.wa-widget:focus-within .wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) translateY(0);
}

/* Header with photo */
.wa-tooltip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background:
    radial-gradient(120% 160% at 0% 0%, var(--accent-soft), transparent 55%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.wa-tooltip-photo {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  background: var(--surface);
}

.wa-tooltip-photo-fallback {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.wa-tooltip-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wa-tooltip-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.wa-tooltip-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-online-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* Chat bubble */
.wa-tooltip-bubble {
  position: relative;
  margin: 14px 14px 0 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
}

.wa-tooltip-bubble p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.wa-bubble-time {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--text-3);
  text-align: right;
}

/* CTA inside tooltip */
.wa-tooltip-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 14px 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
  pointer-events: auto;
}

.wa-tooltip-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px var(--accent-glow);
}

.wa-tooltip-cta svg {
  transition: transform 0.3s var(--ease-out);
}

.wa-tooltip-cta:hover svg {
  transform: translate(3px, -3px);
}

@media (hover: none) {
  .wa-tooltip {
    display: none;
  }
}

/* ---------- 21. Popular posts ---------- */
.popular-posts {
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
}

.popular-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 3vw, 40px);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}

.popular-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.4s, transform 0.5s var(--ease-out), background 0.4s;
  will-change: transform;
}

.popular-card:hover {
  border-color: var(--line-2);
  transform: translateY(-5px);
  background: var(--surface-2);
}

.popular-rank {
  flex: none;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
}

.popular-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.popular-body h3 {
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.15;
}

.popular-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.popular-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.popular-views svg {
  color: var(--accent);
}

.post-views {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.post-views svg {
  color: var(--accent);
}

@media (max-width: 760px) {
  .popular-grid {
    grid-template-columns: 1fr;
  }
}

/* Post category tag on cards */
.post-cat-tag {
  align-self: flex-start;
  font-size: 11px;
  padding: 5px 12px;
}

.post-card .post-cat-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  border-style: solid;
}

/* ---------- 22. Post thumbnails ---------- */
.post-card:has(.post-thumb) {
  padding-top: 0;
}

.post-thumb {
  display: block;
  margin: 0 calc(clamp(24px, 3vw, 34px) * -1) 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.post-card:hover .post-thumb img {
  transform: scale(1.05);
}

.post-card:has(.post-thumb) .post-meta {
  margin-top: clamp(20px, 2.6vw, 30px);
}

/* Hero image on article page */
.post-hero {
  margin: clamp(28px, 4vw, 44px) 0 clamp(32px, 4vw, 48px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.post-hero img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Small thumbnail inside popular / related cards */
.popular-thumb {
  flex: none;
  width: clamp(64px, 7vw, 92px);
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.popular-card:hover .popular-thumb img {
  transform: scale(1.08);
}

/* ---------- 23. Blog grid column variants ---------- */
.blog-grid--2 { grid-template-columns: repeat(2, 1fr); }
.blog-grid--3 { grid-template-columns: repeat(3, 1fr); }
.blog-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
  .blog-grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .blog-grid--3, .blog-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .blog-grid--2, .blog-grid--3, .blog-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- 25. What others say (testimonials) ---------- */
.testimonials-section {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}

.sec-head-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 38ch;
}

.tst-count {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.tst-marquee {
  overflow: hidden;
  padding-block: 8px 48px;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tst-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
  will-change: transform;
}

.tst-marquee:hover .tst-track {
  animation-play-state: paused;
}

.tst-card {
  width: clamp(320px, 34vw, 460px);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-right: 20px;
  padding: 30px 30px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.tst-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px var(--accent-soft);
}

.tst-quote {
  width: 30px;
  height: 30px;
  color: var(--accent);
  opacity: 0.85;
}

.tst-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.tst-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tst-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.tst-card figcaption b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tst-card figcaption em {
  display: block;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 2px;
}

@media (max-width: 760px) {
  .tst-card {
    width: min(84vw, 380px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tst-track {
    animation: none;
  }
}
