/* ==========================================================================
   Melvi Design
   ========================================================================== */

:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #eeebe7;
  --ink: #1b1919;
  --ink-2: #3b3737;
  --muted: #6e6865;
  --line: #e4e0db;
  --red: #e5232c;
  --red-dark: #c41820;
  --red-soft: #fdeceb;
  --dark: #141212;
  --dark-2: #1f1c1c;
  --dark-line: #2f2b2b;

  --radius-lg: 32px;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 1px 2px rgb(20 18 18 / .04), 0 16px 40px -18px rgb(20 18 18 / .18);
  --shadow-lg: 0 30px 60px -30px rgb(20 18 18 / .35);

  --gutter: clamp(20px, 4vw, 40px);
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
h2 { font-size: clamp(30px, 4vw, 52px); }
h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-muted { background: var(--surface-2); }
.section-dark { background: var(--dark); color: #fff; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--ink-2);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.eyebrow .icon { color: var(--red); }
.eyebrow:has(.icon)::before { display: none; }
.eyebrow-glass { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .25); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.eyebrow-dark { background: var(--dark-2); border-color: var(--dark-line); color: #d9d4d0; }
.eyebrow-light { background: rgb(255 255 255 / .15); border-color: rgb(255 255 255 / .3); color: #fff; }
.eyebrow-light::before { background: #fff; }

.chip-row, .filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 14px; font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}
.chip small { font-size: 12px; color: var(--muted); font-weight: 600; }
.chip .icon { color: var(--red); }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active small { color: #bdb6b1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  cursor: pointer; transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 8px 8px 8px 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ic { display: grid; place-items: center; width: 28px; height: 28px; margin-right: -8px; border-radius: 50%; background: rgb(255 255 255 / .18); transition: transform .3s var(--ease); }
.btn-sm .btn-ic { margin-right: 0; }
.btn:hover .btn-ic { transform: rotate(45deg); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -12px rgb(229 35 44 / .7); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-dark .btn-ic { background: var(--red); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-outline .btn-ic { background: var(--surface-2); }
.btn-outline-light { border-color: rgb(255 255 255 / .4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.btn-glass { border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .12); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgb(255 255 255 / .22); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; border-bottom: 1.5px solid currentColor; padding-bottom: 4px; transition: color .2s, gap .25s var(--ease); }
.link-arrow:hover { color: var(--red); gap: 14px; }
.link-arrow-light:hover { color: #fff; }

.circle-btn { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--ink); transition: background .25s, color .25s, transform .35s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(246 245 243 / .82);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgb(20 18 18 / .4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand img { width: 210px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / .7); }
.site-nav ul a { display: block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .2s, color .2s; }
.site-nav ul a:hover { color: var(--ink); background: var(--surface-2); }
.site-nav ul a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav-cta { display: none; }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; }

/* ---------- Hero (beranda) ---------- */
.hero { padding: 8px clamp(8px, 1.2vw, 16px) 0; }
.hero-frame {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - var(--header-h) - 16px), 820px);
  display: flex; align-items: flex-end;
  border-radius: var(--radius-lg); background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  will-change: transform; animation: heroDrift 22s ease-in-out infinite alternate;
}
.hero-frame::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgb(12 10 10 / .85) 0%, rgb(12 10 10 / .35) 45%, rgb(12 10 10 / .05) 75%),
    linear-gradient(to right, rgb(12 10 10 / .45), transparent 60%);
}
.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-block: clamp(120px, 16vw, 200px) clamp(32px, 5vw, 64px); color: #fff; }
.hero-copy { max-width: 720px; animation: rise .9s .1s var(--ease) both; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy p { max-width: 540px; font-size: clamp(16px, 1.4vw, 18px); color: rgb(255 255 255 / .82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats {
  display: grid; gap: 4px; margin: 0; flex: none;
  padding: 10px; border: 1px solid rgb(255 255 255 / .2); border-radius: var(--radius);
  background: rgb(255 255 255 / .1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: rise .9s .3s var(--ease) both;
}
.hero-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; padding: 12px 16px; border-radius: var(--radius-sm); }
.hero-stats div + div { border-top: 1px solid rgb(255 255 255 / .14); border-radius: 0; }
.hero-stats dt { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.hero-stats dd { margin: 0; font-size: 13px; color: rgb(255 255 255 / .75); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 28px; border-bottom: 1px solid var(--line); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; color: var(--ink); }
.marquee-track .marquee-dot { font-size: 18px; color: var(--red); }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { max-width: 640px; }
.section-head > p { max-width: 400px; color: var(--muted); }
.section-dark .section-head > p { color: #a8a19c; }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.statement { font-size: clamp(26px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.2; margin-bottom: 36px; }
.statement span { color: var(--muted); }
.intro-media { position: relative; }
.intro-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); }
.intro-badge {
  position: absolute; left: -28px; bottom: 36px; max-width: 220px;
  padding: 20px 22px; border-radius: var(--radius); background: var(--red); color: #fff; box-shadow: var(--shadow-lg);
}
.intro-badge strong { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 6px; }
.intro-badge span { font-size: 14px; line-height: 1.4; color: rgb(255 255 255 / .9); }

/* ---------- Service cards ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card-media { overflow: hidden; aspect-ratio: 16 / 11; margin: 8px 8px 0; border-radius: calc(var(--radius) - 6px); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.06); }
.service-card-body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.service-card-num { font-size: 13px; font-weight: 700; color: var(--red); margin-bottom: 8px; }
.service-card h3 { font-size: 24px; margin-bottom: 8px; padding-right: 56px; }
.service-card p { color: var(--muted); font-size: 15px; padding-right: 56px; }
.service-card .circle-btn { position: absolute; right: 22px; top: 22px; }
.service-card:hover .circle-btn { background: var(--red); color: #fff; transform: rotate(45deg); }
.service-card-cta { background: var(--ink); color: #fff; justify-content: flex-end; min-height: 280px; }
.service-card-cta .service-card-body { justify-content: flex-end; }
.service-card-cta p { color: #b3aca7; }
.service-card-cta .circle-btn { background: var(--red); color: #fff; }
.services-grid-compact { grid-template-columns: repeat(4, 1fr); }
.services-grid-compact .service-card h3 { font-size: 20px; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.bento-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); min-height: 240px; }
.bento-card h3 { margin-top: auto; }
.bento-card p { color: var(--muted); font-size: 15px; }
.bento-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red-soft); color: var(--red); }
.bento-image { grid-row: span 2; padding: 0; overflow: hidden; justify-content: flex-end; color: #fff; min-height: 520px; }
.bento-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(12 10 10 / .75), transparent 55%); }
.bento-image-caption { position: relative; z-index: 1; padding: 28px; }
.bento-image-caption strong { display: block; font-size: 26px; letter-spacing: -.03em; margin-bottom: 4px; }
.bento-image-caption span { color: rgb(255 255 255 / .82); font-size: 15px; }
.bento-red { background: var(--red); color: #fff; justify-content: space-between; }
.bento-red .bento-icon { background: rgb(255 255 255 / .18); color: #fff; }
.bento-big { font-size: clamp(48px, 5vw, 68px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin-top: auto; }
.bento-red span:last-child { color: rgb(255 255 255 / .88); font-size: 15px; }
.bento-dark { background: var(--ink); color: #fff; }
.bento-dark .bento-icon { background: rgb(255 255 255 / .1); color: #fff; }
.bento-dark p { color: #b3aca7; max-width: 440px; }
.bento-dark .link-arrow { align-self: flex-start; margin-top: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 28px; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark-2); transition: border-color .3s, transform .4s var(--ease); }
.steps li:hover { border-color: #4a4444; transform: translateY(-4px); }
.step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 48px; border-radius: 50%; background: var(--red); font-weight: 700; font-size: 15px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: #a8a19c; font-size: 15px; }

/* ---------- Work cards ---------- */
.works-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.works-preview .work-card:nth-child(odd) { margin-top: 48px; }
.works-preview:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
.work-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); cursor: zoom-in; }
.works-preview .work-card img { aspect-ratio: 3 / 4; }
.work-card img { width: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover img { transform: scale(1.05); }
.work-card-label {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgb(255 255 255 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1.3;
  transform: translateY(6px); opacity: .96; transition: transform .4s var(--ease);
}
.work-card:hover .work-card-label { transform: none; }
.work-card-label small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 600; color: var(--red); letter-spacing: 0; }

.masonry { columns: 3 300px; column-gap: 20px; }
.masonry .work-card { margin-bottom: 20px; break-inside: avoid; }
.masonry .work-card:nth-child(3n+1) img { aspect-ratio: 4 / 5; }
.masonry .work-card:nth-child(3n+2) img { aspect-ratio: 1 / 1; }
.masonry .work-card:nth-child(3n) img { aspect-ratio: 4 / 3; }
.empty-state { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg);
  background: var(--red); color: #fff;
}
.cta-band::before, .cta-band::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); }
.cta-band::before { width: 520px; height: 520px; right: -140px; top: -260px; }
.cta-band::after { width: 340px; height: 340px; right: -50px; top: -170px; }
.cta-band h2 { max-width: 620px; margin-bottom: 16px; }
.cta-band p { max-width: 520px; color: rgb(255 255 255 / .88); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Page hero (halaman dalam) ---------- */
.hero-page .hero-frame { min-height: clamp(460px, 66vh, 640px); }
.hero-page .hero-inner { padding-block: clamp(110px, 12vw, 160px) clamp(32px, 5vw, 60px); }
.hero-page h1 { font-size: clamp(36px, 5.2vw, 68px); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }
.breadcrumb-light { color: rgb(255 255 255 / .7); }
.breadcrumb-light a:hover, .breadcrumb-light [aria-current] { color: #fff; }
.chip-row-top, .filter-row-top { margin: 0 0 32px; }

/* ---------- Service rows (daftar layanan) ---------- */
.service-rows { display: grid; gap: 24px; }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: 12px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.service-row:nth-child(even) .service-row-media { order: 2; }
.service-row-media { display: block; overflow: hidden; border-radius: calc(var(--radius-lg) - 8px); }
.service-row-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.service-row:hover .service-row-media img { transform: scale(1.04); }
.service-row-body { padding: clamp(12px, 3vw, 40px); }
.service-row-body h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
.service-row-body > p { color: var(--muted); margin-bottom: 24px; }
.service-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }

.check-list { display: grid; gap: 12px; }
.check-list-2 { grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; font-size: 15px; line-height: 1.45; }
.check-list li span { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red-soft); color: var(--red); }

/* ---------- Detail layanan ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 6vw, 80px); align-items: start; }
.detail-body h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 18px; }
.detail-body h3 { margin: 44px 0 18px; font-size: 22px; }
.detail-intro { font-size: 18px; color: var(--ink-2); }
.mini-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; counter-reset: mini; }
.mini-steps li { counter-increment: mini; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 15px; }
.mini-steps li::before { content: '0' counter(mini); display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--red); }
.mini-steps strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.aside-card h3 { font-size: 22px; }
.aside-card p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.aside-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--red); color: #fff; flex: none; }

/* ---------- Tentang ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.story-copy { display: grid; gap: 20px; font-size: 18px; color: var(--ink-2); padding-top: 52px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.stat-row div { padding: 32px 28px; }
.stat-row div + div { border-left: 1px solid var(--line); }
.stat-row dt { font-size: clamp(36px, 4vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin-bottom: 8px; }
.stat-row dd { margin: 0; color: var(--muted); font-size: 14px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.value-card h3 { margin-top: 28px; }
.value-card p { color: var(--muted); font-size: 15px; }
.visit-card { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--dark); color: #fff; }
.visit-copy { padding: clamp(32px, 5vw, 64px); align-self: center; }
.visit-copy h2 { margin-bottom: 16px; }
.visit-copy p { color: #b3aca7; max-width: 420px; }
.visit-media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

/* ---------- Portofolio ---------- */
.instagram-card { display: flex; align-items: center; gap: 24px; margin-top: 40px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.instagram-card h2 { font-size: 24px; margin-bottom: 4px; }
.instagram-card p { color: var(--muted); font-size: 15px; }
.instagram-card .btn { margin-left: auto; }

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 18px; padding: 18px 18px 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card > span:nth-child(2) { flex: 1; min-width: 0; }
.contact-card small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.contact-card strong { display: block; font-size: 20px; letter-spacing: -.02em; }
.contact-card strong.contact-address { font-size: 15px; letter-spacing: 0; font-weight: 600; line-height: 1.45; }
.contact-card-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--red-soft); color: var(--red); }
.contact-card:hover .circle-btn { background: var(--ink); color: #fff; transform: rotate(45deg); }
.contact-card-primary { background: var(--red); color: #fff; }
.contact-card-primary small { color: rgb(255 255 255 / .8); }
.contact-card-primary .contact-card-icon { background: rgb(255 255 255 / .18); color: #fff; }
.contact-card-primary .circle-btn { background: #fff; }
.form-card { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.form-card h2 { font-size: 28px; }
.form-card > p { color: var(--muted); font-size: 15px; margin-top: -8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 600; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231b1919' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgb(27 25 25 / .08); }
.map-card { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-2); box-shadow: var(--shadow); }
.map-card iframe { width: 100%; height: 440px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 72px); padding: clamp(56px, 7vw, 88px) 0 32px; background: var(--dark); color: #b3aca7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 160px; height: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; font-size: 15px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--dark-line); border-radius: 50%; color: #fff; transition: background .2s, border-color .2s; }
.footer-social a:hover { background: var(--red); border-color: var(--red); }
.footer-title { margin-bottom: 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: 10px; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-contact li:last-child { line-height: 1.5; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: 14px; }
.footer-bottom a:hover { color: #fff; }

.floating-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgb(37 211 102 / .6);
  transition: transform .3s var(--ease);
}
.floating-wa:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox { width: min(100% - 32px, 1100px); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(12 10 10 / .88); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; max-height: calc(100vh - 110px); object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 14px; text-align: center; color: #fff; font-weight: 600; }
.lightbox-close { position: absolute; top: -14px; right: -14px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.lightbox[open] { animation: pop .35s var(--ease); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
/* Skala selalu > 1 + geseran, supaya tepi foto tidak pernah terlihat */
@keyframes heroDrift {
  from { transform: scale(1.14) translate3d(-1.5%, 0, 0); }
  to   { transform: scale(1.04) translate3d(1%, 0, 0); }
}
@keyframes heroPan {
  from { transform: translate3d(12%, 0, 0) scale(1.06); }
  to   { transform: translate3d(-12%, 0, 0) scale(1); }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav ul a { padding: 8px 12px; }
  .services-grid, .services-grid-compact { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-image { grid-row: auto; grid-column: span 2; min-height: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .works-preview { grid-template-columns: 1fr 1fr; }
  .works-preview .work-card:nth-child(odd) { margin-top: 0; }
  .works-preview .work-card:nth-child(even) { margin-top: 48px; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr 320px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  /* backdrop-filter membuat menu fixed ikut terpotong di dalam header */
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .brand img { width: 170px; }
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; flex: none;
    width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
    background: var(--surface); cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 49; margin: 0;
    display: flex; flex-direction: column; gap: 24px;
    padding: 24px var(--gutter) 32px; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { padding: 18px 0; border-radius: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
  .site-nav ul a:hover { background: none; color: var(--red); }
  .site-nav ul a[aria-current="page"] { background: none; color: var(--red); }
  .nav-cta { display: inline-flex; margin-top: auto; min-height: 56px; }
  body.nav-open { overflow: hidden; }

  .hero-inner { flex-direction: column; align-items: stretch; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stats div { display: block; padding: 10px 12px; }
  .hero-stats div + div { border-top: 0; border-left: 1px solid rgb(255 255 255 / .14); }
  .hero-stats dt { font-size: 24px; }
  .hero-stats dd { font-size: 12px; line-height: 1.35; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .intro, .story, .detail-grid, .contact-grid, .visit-card { grid-template-columns: minmax(0, 1fr); }
  .intro-badge { left: 16px; bottom: 16px; }
  .story-copy { padding-top: 0; }
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .service-row-body { padding: 8px 12px 20px; }
  .detail-aside { position: static; }
  /* Di layar portrait foto dibuat lebih lebar lalu digeser pelan kiri-kanan */
  .hero-bg { inset: 0 auto 0 -25%; width: 150%; max-width: none; animation: heroPan 18s ease-in-out infinite alternate; }
  .hero-frame::after { background: linear-gradient(to top, rgb(12 10 10 / .9) 0%, rgb(12 10 10 / .6) 55%, rgb(12 10 10 / .3) 100%); }
  .hero-page .hero-frame { min-height: 0; }
  .hero-page .hero-inner { padding-top: 150px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-row div:nth-child(3) { border-left: 0; }
  .stat-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .instagram-card { flex-wrap: wrap; }
  .instagram-card .btn { margin-left: 0; }
}

@media (max-width: 600px) {
  .btn-lg { min-height: 52px; padding: 12px 22px; font-size: 15px; }
  /* Logo, tombol Konsultasi, dan menu tetap satu baris sampai layar 320px */
  .header-inner { gap: 10px; }
  .brand img { width: clamp(112px, 40vw, 170px); }
  .header-cta { min-height: 40px; padding: 8px 16px; font-size: 13px; }
  .header-cta .btn-ic { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stats div { padding: 8px 10px; }
  .hero-stats dt { font-size: 20px; }
  .services-grid, .services-grid-compact { grid-template-columns: 1fr; }
  .service-card-cta { min-height: 220px; }
  .bento { grid-template-columns: 1fr; }
  .bento-image { grid-column: auto; }
  .bento-card { min-height: 0; }
  .bento-card.bento-image { min-height: 380px; }
  .bento-card h3 { margin-top: 18px; }
  .steps { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 24px; }
  .works-preview { gap: 12px; }
  .works-preview .work-card:nth-child(even) { margin-top: 32px; }
  .work-card-label { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; font-size: 13px; }
  .work-card-label small { font-size: 11px; }
  .check-list-2, .mini-steps, .form-row, .value-grid { grid-template-columns: 1fr; }
  /* Footer: Menu & Layanan berdampingan, nomor WhatsApp sebaris */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .footer-brand, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-contact { display: flex; flex-wrap: wrap; gap: 10px 28px; }
  .footer-contact li:last-child { flex-basis: 100%; }
  .service-row-actions .btn { width: 100%; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1 1 100%; }
  .contact-card strong { font-size: 18px; }
  .contact-card { gap: 14px; padding: 14px; }
  .contact-card-icon { width: 46px; height: 46px; border-radius: 14px; }
  .contact-card .circle-btn { width: 38px; height: 38px; }
  .stat-row div { padding: 24px 18px; }
  .stat-row dt { font-size: clamp(30px, 9vw, 40px); }
  .map-card iframe { height: 320px; }
  .floating-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
