/* ==========================================================
   CV. Cipta Jaya Consultant — Revisi 3
   Navy + emas · Plus Jakarta Sans · animasi saat scroll
   Stylesheet bersama (PHP native & React)
   ========================================================== */

:root {
  --navy-950: #06142a;
  --navy-900: #0a1d38;
  --navy-800: #0f2a4f;
  --navy-700: #163a69;
  --steel: #2b5d8f;
  --teal: #136c7e;            /* warna logo */
  --gold: #f2a516;
  --gold-600: #d98b00;
  --gold-soft: #fff4dc;

  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --white: #ffffff;
  --cloud: #f3f6fb;           /* abu kebiruan */
  --sand: #f8f4ec;            /* krem hangat */
  --on-navy: #c8d5e6;
  --on-navy-2: #8fa3bf;
  --navy-line: rgba(255, 255, 255, 0.12);
  --wa: #25d366;

  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: 24px;
  --r: 14px;
  --r-sm: 8px;
  --section: clamp(72px, 9vw, 112px);
  --shadow: 0 14px 34px -18px rgba(10, 29, 56, 0.28);
  --shadow-lg: 0 30px 70px -28px rgba(10, 29, 56, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--body);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--navy-900); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ---------- Typography ---------- */
.h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; line-height: 1.06; letter-spacing: -0.035em; color: #fff; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
.h3 { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.gold { color: var(--gold); }
.mark { background: linear-gradient(180deg, transparent 62%, rgba(242, 165, 22, 0.35) 62%); }

.head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 60px); }
.head p { color: var(--muted); font-size: 17px; }
.head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 720px; margin-inline: auto; }
.head__bar { display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--gold); margin-bottom: 20px; }
.head--center .head__bar { margin-inline: auto; }
.on-navy .h2 { color: #fff; }
.on-navy .head p { color: var(--on-navy-2); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn::after { /* kilau */
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: -1;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.7s var(--ease);
}
.btn:hover::after { left: 130%; }
.btn:hover { transform: translateY(-3px); }
.btn .icon--arrow { transition: transform 0.35s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--navy-900); box-shadow: 0 12px 28px -12px rgba(242,165,22,0.75); }
.btn--gold:hover { background: #ffb52e; }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); box-shadow: var(--shadow); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,0.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--line { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--navy-800); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--navy-800); }
.link-arrow .icon { transition: transform 0.35s var(--ease); color: var(--gold-600); }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: var(--on-navy-2); font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 42px; }
.topbar__list { display: flex; gap: 26px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; color: var(--gold); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: box-shadow 0.3s; }
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(10,29,56,0.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; transition: height 0.35s var(--ease); }
.header.is-scrolled .header__inner { height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 54px; width: auto; transition: height 0.35s var(--ease); }
.header.is-scrolled .brand__logo { height: 46px; }
.brand__text { line-height: 1.15; border-left: 1px solid var(--line); padding-left: 12px; }
.brand__name { display: block; font-size: 17px; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.brand__sub { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--ink); transition: color 0.2s;
}
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--navy-700); }
.nav__link .chev { width: 14px; height: 14px; transition: transform 0.3s; }
.nav__drop { position: relative; }
.nav__drop:hover .chev { transform: rotate(180deg); }
.nav__drop-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 8px;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s var(--ease);
}
.nav__drop:hover .nav__drop-menu, .nav__drop:focus-within .nav__drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav__drop-menu a { display: flex; justify-content: space-between; padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--ink); }
.nav__drop-menu a:hover { background: var(--cloud); color: var(--navy-700); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--navy-800); color: #fff; align-items: center; justify-content: center; }
.burger .icon { width: 22px; height: 22px; }

/* ---------- Drawer (HP) ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 140; background: rgba(6,20,42,0.55); opacity: 0; visibility: hidden; transition: all 0.35s; }
.drawer-bg.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(360px, 88vw);
  background: var(--navy-900); color: #fff; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 22px;
  transform: translateX(100%); transition: transform 0.5s var(--ease); overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__head .brand__logo { background: #fff; border-radius: var(--r-sm); padding: 4px; height: 48px; }
.drawer__close { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--navy-line); font-size: 24px; line-height: 1; }
.drawer__nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--navy-line); font-size: 18px; font-weight: 700; }
.drawer__nav a .icon { color: var(--gold); }
.drawer__nav a.sub { padding-left: 16px; font-size: 15px; font-weight: 600; color: var(--on-navy-2); }
.drawer__nav a.is-active { color: var(--gold); }
.drawer.is-open .drawer__nav a { animation: slideIn 0.5s var(--ease) both; }
.drawer.is-open .drawer__nav a:nth-child(2) { animation-delay: 0.05s; }
.drawer.is-open .drawer__nav a:nth-child(3) { animation-delay: 0.1s; }
.drawer.is-open .drawer__nav a:nth-child(4) { animation-delay: 0.15s; }
.drawer.is-open .drawer__nav a:nth-child(5) { animation-delay: 0.2s; }
.drawer.is-open .drawer__nav a:nth-child(6) { animation-delay: 0.25s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.drawer__contact { display: grid; gap: 10px; font-size: 14px; margin-top: auto; color: var(--on-navy); }
.drawer__contact a { display: flex; align-items: center; gap: 10px; }
.drawer__contact .icon { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; padding: clamp(56px, 7vw, 96px) 0 clamp(130px, 13vw, 170px); }
.blueprint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero::after {
  content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 160%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(43,93,143,0.55), transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--on-navy); max-width: 540px; margin: 24px 0 34px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--navy-line); }
.hero__trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--on-navy); }
.hero__trust .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--gold); color: var(--navy-900); stroke-width: 3; }

.hero__visual { position: relative; padding: 24px 0 40px 40px; }
.hero__frame { position: relative; aspect-ratio: 4/3.1; border-radius: 18px; overflow: hidden; background: var(--navy-800); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7); }
.hero__frame::before { /* bingkai emas */
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255,255,255,0.15); z-index: 3; pointer-events: none;
}
.hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 6s linear; }
.hero__frame img.is-active { opacity: 1; transform: scale(1); }
.hero__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 20px 16px 210px; text-align: right;
  background: linear-gradient(transparent, rgba(6,20,42,0.88)); font-size: 14px; font-weight: 600;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.hero__dots { display: flex; gap: 6px; }
.hero__dots button { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,0.4); transition: all 0.4s var(--ease); }
.hero__dots button.is-active { width: 26px; background: var(--gold); }
.hero__deco { position: absolute; left: 0; top: 0; width: 46%; height: 60%; border: 2px solid var(--gold); border-radius: 18px; opacity: 0.6; }
.hero__float {
  position: absolute; left: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); border-radius: var(--r); padding: 10px 18px 10px 10px; box-shadow: var(--shadow-lg);
  animation: bob 5s ease-in-out infinite;
}
.hero__float img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.hero__float strong { display: block; font-size: 15px; line-height: 1.2; }
.hero__float span { font-size: 13px; color: var(--muted); }
.hero__badge {
  position: absolute; right: -10px; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy-900); border-radius: 100px; padding: 10px 18px 10px 10px; font-weight: 800; font-size: 14px;
  box-shadow: 0 16px 30px -12px rgba(242,165,22,0.7); animation: bob 5s ease-in-out -2.5s infinite;
}
.hero__badge i { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-900); color: var(--gold); display: grid; place-items: center; }
.hero__badge .icon { stroke-width: 3; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* entrance hero */
.js :is(.hero, .page-hero) [data-in] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 0.12s + 0.1s); }
.js :is(.hero, .page-hero) .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 0.12s + 0.1s); }
.js .hero .hero__visual[data-in] { transform: translateY(40px) scale(0.94); }
.is-ready :is(.hero, .page-hero) [data-in] { opacity: 1; transform: none; }
.is-ready :is(.hero, .page-hero) .hero__title .line > span { transform: none; }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; z-index: 5; margin-top: -84px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { position: relative; padding: 30px 28px; display: grid; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.stat:hover::before { transform: scaleX(1); }
.stat__top { display: flex; align-items: center; justify-content: space-between; }
.stat__value { font-size: 46px; font-weight: 800; line-height: 1; color: var(--navy-900); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat__value small { font-size: 0.6em; color: var(--gold-600); }
.stat__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--cloud); color: var(--navy-700); display: grid; place-items: center; }
.stat__icon .icon { width: 22px; height: 22px; }
.stat__label { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.bg-sand { background: var(--sand); }
.bg-cloud { background: var(--cloud); }
.bg-navy { background: var(--navy-800); color: var(--on-navy); overflow: hidden; }
.bg-navy-deep { background: var(--navy-900); color: var(--on-navy); overflow: hidden; }
.section > .container { position: relative; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__text { display: grid; gap: 22px; }
.about__text > p { font-size: 16.5px; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); font-size: 15px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--cloud); transition: background 0.3s, transform 0.3s var(--ease); }
.checklist li:hover { background: var(--gold-soft); transform: translateX(4px); }
.checklist .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--navy-800); color: var(--gold); stroke-width: 3; }
.about__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 6px; }
.about__call { display: flex; align-items: center; gap: 12px; }
.about__call i { width: 48px; height: 48px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-600); display: grid; place-items: center; }
.about__call small { display: block; font-size: 13px; color: var(--muted); }
.about__call strong { color: var(--ink); font-size: 17px; }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 16px; position: relative; }
.mosaic figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--cloud); box-shadow: var(--shadow); }
.mosaic figure { aspect-ratio: 1/1.1; }
.mosaic figure:nth-child(2) { margin-top: 56px; }
.mosaic figure:nth-child(3) { margin-top: -56px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mosaic figure:hover img { transform: scale(1.07); }
.mosaic__badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 132px; height: 132px; border-radius: 50%; background: var(--navy-900); color: #fff; border: 6px solid #fff;
  display: grid; place-content: center; text-align: center; box-shadow: var(--shadow-lg);
}
.mosaic__badge strong { font-size: 30px; font-weight: 800; color: var(--gold); line-height: 1; }
.mosaic__badge span { font-size: 12px; line-height: 1.3; margin-top: 4px; }
.mosaic__badge::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px dashed var(--gold); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 1px 0 var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service__media { position: relative; aspect-ratio: 1/0.82; overflow: hidden; background: var(--cloud); }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service:hover .service__media img { transform: scale(1.08); }
.service__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(10,29,56,0.55)); }
.service__no { position: absolute; right: 14px; top: 12px; z-index: 1; font-size: 42px; font-weight: 800; color: #fff; opacity: 0.85; letter-spacing: -0.04em; text-shadow: 0 4px 18px rgba(0,0,0,0.35); }
.service__icon {
  position: absolute; left: 20px; bottom: -26px; z-index: 2; width: 54px; height: 54px; border-radius: 14px;
  background: var(--gold); color: var(--navy-900); display: grid; place-items: center; box-shadow: 0 12px 24px -10px rgba(242,165,22,0.8);
  transition: transform 0.5s var(--ease);
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.06); }
.service__icon .icon { width: 26px; height: 26px; }
.service__body { padding: 40px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service__sub { font-size: 13px; font-weight: 700; color: var(--gold-600); }
.service__desc { color: var(--muted); font-size: 15px; flex: 1; }
.service .link-arrow { margin-top: 10px; }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process__line { position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: var(--navy-line); }
.process__line span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) 0.2s; }
.process.is-in .process__line span { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 12px; justify-items: start; }
.step__no {
  width: 68px; height: 68px; border-radius: 50%; background: var(--navy-900); border: 2px solid var(--gold);
  color: var(--gold); display: grid; place-items: center; font-size: 22px; font-weight: 800;
  transition: background 0.4s, color 0.4s, transform 0.4s var(--ease);
}
.step:hover .step__no { background: var(--gold); color: var(--navy-900); transform: scale(1.08); }
.step h3 { color: #fff; font-size: 19px; font-weight: 700; margin-top: 8px; }
.step p { color: var(--on-navy-2); font-size: 15px; }

/* ---------- Tests marquee ---------- */
.marquee { position: relative; overflow: hidden; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track--rev { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 14px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink); white-space: nowrap; font-size: 16px;
  transition: border-color 0.3s, background 0.3s;
}
.chip:hover { border-color: var(--gold); background: var(--gold-soft); }
.chip i { width: 40px; height: 40px; border-radius: 50%; background: var(--navy-800); color: var(--gold); display: grid; place-items: center; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why__item { padding: 32px 26px 8px 0; display: grid; gap: 12px; align-content: start; }
.why__item + .why__item { padding-left: 26px; border-left: 1px solid var(--line); }
.why__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--navy-800); color: var(--gold); display: grid; place-items: center; transition: transform 0.5s var(--ease); }
.why__item:hover .why__icon { transform: translateY(-6px) rotate(6deg); }
.why__icon .icon { width: 24px; height: 24px; }
.why__item h3 { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.why__item p { font-size: 15px; color: var(--muted); }

/* ---------- Tools ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); transition: all 0.3s var(--ease);
}
.tab:hover { border-color: var(--navy-800); }
.tab.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tab .count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 100px; display: inline-grid; place-items: center; background: var(--cloud); color: var(--navy-700); font-size: 12px; }
.tab.is-active .count { background: var(--gold); color: var(--navy-900); }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool { background: #fff; border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); box-shadow: 0 1px 0 var(--line); }
.tool:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tool__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #fff; cursor: zoom-in; border-bottom: 1px solid var(--line); }
.tool__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tool__media img.contain { object-fit: contain; padding: 16px; }
.tool:hover .tool__media img { transform: scale(1.06); }
.tool__tag { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 100px; background: var(--navy-800); color: #fff; font-size: 12px; font-weight: 700; }
.tool__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.tool__name { display: flex; align-items: baseline; gap: 10px; }
.tool__name span { font-size: 13px; font-weight: 800; color: var(--gold-600); }
.tool__desc { color: var(--muted); font-size: 15px; }
.tool.is-hidden { display: none; }

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 20px; }
.projects--feature .project:first-child { grid-column: span 2; grid-row: span 2; }
.project { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--navy-800); cursor: zoom-in; }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project:hover img { transform: scale(1.08); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,42,0) 35%, rgba(6,20,42,0.92)); transition: opacity 0.4s; }
.project__tag { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 5px 12px; border-radius: 100px; background: var(--gold); color: var(--navy-900); font-size: 12px; font-weight: 800; }
.project__info { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; color: #fff; transition: transform 0.45s var(--ease); }
.project:hover .project__info { transform: translateY(-6px); }
.project__title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.projects--feature .project:first-child .project__title { font-size: clamp(22px, 2.4vw, 30px); }
.project__loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--on-navy); margin-top: 6px; }
.project__loc .icon { width: 15px; height: 15px; color: var(--gold); }
.project__line { display: block; height: 2px; width: 0; background: var(--gold); margin-top: 12px; transition: width 0.6s var(--ease); }
.project:hover .project__line { width: 64px; }
.project.is-hidden { display: none; }

/* ---------- CTA ---------- */
.cta { padding: 0 0 var(--section); }
.cta__box { display: grid; grid-template-columns: 0.9fr 1.1fr; border-radius: 22px; overflow: hidden; background: var(--navy-900); box-shadow: var(--shadow-lg); }
.cta__media { position: relative; min-height: 360px; }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--navy-900)); }
.cta__body { position: relative; padding: clamp(36px, 5vw, 60px); color: var(--on-navy); display: grid; gap: 18px; align-content: center; }
.cta__body .h2 { color: #fff; }
.cta__points { display: grid; gap: 10px; }
.cta__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.cta__points .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--gold); color: var(--navy-900); stroke-width: 3; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; padding: clamp(56px, 7vw, 88px) 0; }
.page-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.page-hero__text { display: grid; gap: 16px; }
.page-hero__text p { color: var(--on-navy); font-size: 17px; max-width: 560px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--on-navy-2); }
.crumbs a:hover { color: #fff; }
.crumbs .cur { color: var(--gold); font-weight: 700; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.thumbs figure { margin: 0; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; border: 3px solid rgba(255,255,255,0.12); }
.thumbs figure:nth-child(2) { transform: translateY(-22px); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--on-navy-2); padding-top: clamp(60px, 7vw, 84px); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 52px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand .brand__logo { height: 64px; background: #fff; border-radius: var(--r-sm); padding: 6px; }
.footer__brand p { max-width: 34ch; }
.footer__title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.footer__title::after { content: ""; display: block; width: 28px; height: 3px; background: var(--gold); border-radius: 3px; margin-top: 10px; }
.footer__list { display: grid; gap: 11px; }
.footer__list a { display: inline-flex; gap: 10px; align-items: flex-start; transition: color 0.2s, transform 0.3s var(--ease); }
.footer__list a:hover { color: #fff; transform: translateX(4px); }
.footer__list .icon { color: var(--gold); margin-top: 3px; width: 16px; height: 16px; }
.footer__bottom { border-top: 1px solid var(--navy-line); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.footer__bottom a:hover { color: var(--gold); }

/* ---------- Floating & lightbox ---------- */
.float-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 30px -10px rgba(37,211,102,0.7); transition: transform 0.3s var(--ease); }
.float-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(1.7); opacity: 0; } }
.float-wa:hover { transform: scale(1.08); }
.float-wa .icon { width: 28px; height: 28px; }

.lightbox { position: fixed; inset: 0; z-index: 180; background: rgba(6,20,42,0.94); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: all 0.35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 80vh; width: auto; border-radius: var(--r); margin: 0 auto; transform: scale(0.94); transition: transform 0.5s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__cap { color: #fff; text-align: center; margin-top: 14px; font-weight: 700; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff; font-size: 26px; line-height: 1; }

/* ---------- Animasi saat scroll ---------- */
.js [data-anim] { opacity: 0; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 0.1s); will-change: transform, opacity; }
.js [data-anim="up"] { transform: translateY(60px); }
.js [data-anim="left"] { transform: translateX(-70px); }
.js [data-anim="right"] { transform: translateX(70px); }
.js [data-anim="zoom"] { transform: scale(0.88); }
.js [data-anim="clip"] { opacity: 1; }
.js [data-anim="clip"] > img { clip-path: inset(100% 0 0 0); transform: scale(1.25); transition: clip-path 1.3s var(--ease), transform 1.6s var(--ease); transition-delay: calc(var(--d, 0) * 0.12s); }
.js .head__bar[data-anim] { opacity: 1; transform: scaleX(0); transform-origin: left; }
.head--center .head__bar[data-anim] { transform-origin: center; }
.js [data-anim].is-in { opacity: 1; transform: none; }
.js [data-anim="clip"].is-in > img { clip-path: inset(0 0 0 0); transform: none; }
.js [data-anim="clip"].is-in:hover > img { transform: scale(1.07); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-anim], .js :is(.hero, .page-hero) [data-in] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js :is(.hero, .page-hero) .hero__title .line > span { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: inline-flex; }
  .services, .why { grid-template-columns: repeat(2, 1fr); }
  .why__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process__line { display: none; }
}
@media (max-width: 900px) {
  .hero__grid, .about, .head, .page-hero__grid, .cta__box { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
  .tools, .projects { grid-template-columns: repeat(2, 1fr); }
  .projects--feature .project:first-child { grid-column: span 2; grid-row: span 1; }
  .cta__media { min-height: 240px; }
  .cta__media::after { background: linear-gradient(180deg, transparent 50%, var(--navy-900)); }
  .thumbs { max-width: 460px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .topbar__list li:not(:first-child), .topbar__inner > a { display: none; }
  .header__inner, .header.is-scrolled .header__inner { height: 68px; }
  .brand__logo, .header.is-scrolled .brand__logo { height: 44px; }
  .brand__sub { display: none; }
  .hero__visual { padding: 16px 0 0 18px; }
  .hero__caption { padding: 40px 16px 14px; font-size: 13px; }
  .hero__float { position: relative; margin: -22px 0 0 -6px; width: max-content; max-width: 100%; }
  .hero__badge { right: 0; font-size: 12px; }
  .hero__btns .btn { flex: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 16px; }
  .stat__value { font-size: 36px; }
  .stat__icon { display: none; }
  .services, .why, .tools, .process, .checklist { grid-template-columns: 1fr; }
  .why__item, .why__item + .why__item { padding: 24px 0 8px; border-left: 0; }
  .projects { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .projects--feature .project:first-child { grid-column: auto; }
  .mosaic__badge { width: 104px; height: 104px; }
  .mosaic__badge strong { font-size: 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .thumbs figure:nth-child(2) { transform: none; }
}
