/* ===== Tokens — sesuaikan dengan warna & font asli Bagus ===== */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e2e2de;
  --dark: #111111;
  --radius: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Inter", system-ui, sans-serif;
  --display: "Inter Tight", "Inter", sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px max(16px, calc((100% - var(--max)) / 2));
  background: rgba(244, 244, 242, 0.75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .6s var(--ease);
  animation: navIn .9s var(--ease) both;
}
.nav.is-hidden { transform: translateY(-100%); }
@keyframes navIn { from { transform: translateY(-100%); opacity: 0; } }
.nav__logo { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; font-size: .95rem; }
.nav__links a { position: relative; overflow: hidden; display: inline-block; color: var(--muted); transition: color .3s; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===== Hero ===== */
.hero { padding-top: 160px; padding-bottom: 64px; }
.hero__date { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.hero__title { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 11vw, 9rem); line-height: .95; letter-spacing: -0.045em; }
.split { display: inline-block; }
.split .char { display: inline-block; overflow: hidden; vertical-align: top; }
.split .char > span { display: inline-block; transform: translateY(105%); animation: charUp 1s var(--ease) forwards; animation-delay: calc(.1s + var(--i) * .035s); }
@keyframes charUp { to { transform: none; } }
.hero__desc { max-width: 640px; margin-top: 32px; color: var(--muted); font-size: 1.1rem; }

/* Entry fade (on load) */
.fade { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ===== Button (rolling text) ===== */
.btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px;
  padding: 14px 16px 14px 24px; border-radius: 999px;
  background: var(--dark); color: #fff; font-weight: 500;
  transition: transform .4s var(--ease);
}
.btn:hover { transform: scale(1.03); }
/* teks "berguling" ke atas saat hover */
.btn__label { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.btn__label > span { display: block; transition: transform .5s var(--ease); }
.btn:hover .btn__label > span { transform: translateY(-100%); }
.btn__icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--dark); font-size: .9rem; transition: transform .5s var(--ease); }
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn--light { background: #fff; color: var(--dark); }
.btn--light .btn__icon { background: var(--dark); color: #fff; }

/* ===== Meta ===== */
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.meta dt { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.meta dd { font-weight: 500; }

/* ===== Cover / parallax ===== */
.cover__frame { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.cover__frame .parallax { position: relative; top: -10%; height: 120%; will-change: transform; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(12% 6% 0 6% round var(--radius)); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.reveal-img img { transform: scale(1.15); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
.reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.reveal-img.is-in img:not(.parallax) { transform: none; }
.reveal-img.is-in .parallax { transform: none; }

/* ===== Text blocks ===== */
.text-block { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-block: 120px; }
.text-block__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; }
.text-block__body > p { font-size: 1.15rem; color: var(--muted); }
.text-block__lead { font-size: clamp(1.3rem, 2.4vw, 1.75rem) !important; color: var(--text) !important; line-height: 1.4; letter-spacing: -0.015em; }
.problems { margin-top: 40px; display: grid; gap: 16px; }
.problems li { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; transition: transform .5s var(--ease); }
.problems li:hover { transform: translateY(-4px); }
.problems__num { grid-row: span 2; color: var(--muted); font-size: .85rem; padding-top: 3px; }
.problems h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.problems p { color: var(--muted); margin-top: 4px; }

/* ===== Gallery ===== */
/* Satu kolom, lebar penuh, tinggi mengikuti gambar asli (tidak di-crop)
   supaya slide desain yang berisi teks kecil tetap terbaca. */
.gallery.container { width: min(1400px, 100% - 32px); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 32px; padding-block: 16px; }
.gallery__item { border-radius: var(--radius); overflow: hidden; background: var(--line); cursor: zoom-in; }
.gallery__item img { height: auto; object-fit: contain; }
.gallery__item--wide { grid-column: auto; }

/* Lightbox: klik gambar untuk melihat ukuran penuh */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 10, .92); overflow: hidden;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
/* Seluruh gambar selalu muat dalam satu layar (tidak ter-zoom/terpotong) */
.lightbox img {
  width: auto; height: auto;
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  object-fit: contain;
  border-radius: 12px; transform: scale(.94); transition: transform .5s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; }

/* ===== Next work ===== */
.next { padding-block: 120px; }
.next__card { display: grid; gap: 12px; padding: 48px; border-radius: var(--radius); background: var(--surface); transition: background .5s var(--ease), color .5s var(--ease); }
.next__card:hover { background: var(--dark); color: #fff; }
.next__label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.next__title { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 7vw, 5.5rem); letter-spacing: -0.04em; line-height: 1; display: flex; align-items: center; gap: 16px; }
.next__arrow { display: inline-block; transition: transform .5s var(--ease); }
.next__card:hover .next__arrow { transform: translateX(12px); }
.next__desc { max-width: 520px; color: var(--muted); }
.next__card:hover .next__desc, .next__card:hover .next__label { color: #a5a5a5; }

/* ===== Footer ===== */
.footer { background: var(--dark); color: #fff; padding: 120px 0 40px; border-radius: 32px 32px 0 0; }
.footer__title { font-family: var(--display); font-weight: 600; font-size: clamp(3rem, 10vw, 8rem); letter-spacing: -0.045em; line-height: .95; }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-top: 120px; padding-top: 24px; border-top: 1px solid #2a2a2a; }
.footer__name { font-weight: 600; }
.footer__loc { color: #8a8a8a; font-size: .95rem; }
.footer__links { display: flex; gap: 24px; color: #8a8a8a; }
.footer__links a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 810px) {
  .text-block { grid-template-columns: 1fr; gap: 24px; padding-block: 88px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .meta { grid-template-columns: 1fr 1fr; }
  .next__card { padding: 32px 24px; }
}
@media (max-width: 480px) {
  .nav__links { gap: 16px; font-size: .9rem; }
  .meta { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ================= HOME PAGE ================= */
.section-pad { padding-block: 120px; }

/* Hero */
.home-hero { padding-top: 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.home-hero__img { aspect-ratio: 4 / 3.1; }

/* Intro band */
.intro { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding-top: 96px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.intro__name { font-family: var(--display); font-weight: 600; font-size: clamp(2.6rem, 9vw, 7.5rem); letter-spacing: -0.045em; line-height: .95; }
.intro__scroll { color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.intro__scroll span { display: inline-block; animation: bobY 1.8s ease-in-out infinite; }
@keyframes bobY { 50% { transform: translateY(5px); } }

/* Section head */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.sec-head__title { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5.5vw, 4.2rem); letter-spacing: -0.04em; line-height: 1; }
.sec-head__desc { color: var(--muted); max-width: 460px; justify-self: end; }

/* Works */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; }
.work { display: grid; gap: 14px; }
.work__thumb { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.work__thumb img { transition: transform 1s var(--ease); }
.work:hover .work__thumb img { transform: scale(1.05); }
.work__thumb--empty { display: grid; place-items: center; background: linear-gradient(135deg, #e9e9e5, #dcdcd6); transition: transform 1s var(--ease); }
.work__thumb--empty span { font-family: var(--display); font-weight: 600; font-size: 2rem; color: #b5b5ae; letter-spacing: -0.03em; }
.work:hover .work__thumb--empty { transform: scale(.98); }
.work__info { display: flex; justify-content: space-between; align-items: center; }
.work__info h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; }
.work__tag { font-size: .8rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.work > p { color: var(--muted); max-width: 480px; }

/* Services: hover reveal image */
.services-list { border-top: 1px solid var(--line); }
.svc { position: relative; display: grid; grid-template-columns: 80px 1fr 220px; gap: 24px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); }
.svc__num { color: var(--muted); font-size: .9rem; }
.svc__text h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; transition: transform .6s var(--ease); }
.svc__text p { color: var(--muted); margin-top: 6px; max-width: 460px; }
.svc:hover .svc__text h3 { transform: translateX(10px); }
.svc__img { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; clip-path: inset(50% 50% 50% 50% round 14px); transition: clip-path .7s var(--ease); }
.svc:hover .svc__img { clip-path: inset(0 0 0 0 round 14px); }

/* About */
.about-sec__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.about-sec__name { font-family: var(--display); font-weight: 600; font-size: 1.4rem; margin-bottom: 20px; }
.about-sec__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.exp { border-top: 1px solid var(--line); }
.exp__item { border-bottom: 1px solid var(--line); }
.exp__header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; width: 100%; background: none; border: none; cursor: pointer; text-align: left; color: inherit; }
.exp__header:hover h4 { opacity: .65; }
.exp h4 { font-weight: 600; transition: opacity .2s; }
.exp__header > div > p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.exp__meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.exp__meta span { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.exp__chevron { color: var(--muted); transition: transform .3s ease; flex-shrink: 0; }
.exp__item.is-open .exp__chevron { transform: rotate(180deg); }
.exp__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.25,.46,.45,.94); }
.exp__body > * { min-height: 0; overflow: hidden; }
.exp__item.is-open .exp__body { grid-template-rows: 1fr; }
.exp__desc { padding: 0 0 20px 16px; list-style: disc; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease; }
.exp__item.is-open .exp__desc { opacity: 1; transform: translateY(0); transition: opacity .3s ease .15s, transform .3s ease .15s; }
.exp__desc li { color: var(--muted); font-size: .88rem; padding: 2px 0; }

/* Testimonials slider */
.testi { background: var(--surface); border-radius: var(--radius); padding: 48px; overflow: hidden; }
.testi__track { display: flex; transition: transform .8s var(--ease); }
.testi__item { flex: 0 0 100%; padding-right: 24px; }
.testi__item blockquote { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.8vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.3; max-width: 900px; }
.testi__item figcaption { margin-top: 28px; display: grid; }
.testi__item figcaption span { color: var(--muted); font-size: .95rem; }
.testi__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }
.testi__count { color: var(--muted); }
.testi__count b { color: var(--text); font-weight: 600; }
.testi__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 1.1rem; cursor: pointer; margin-left: 8px; transition: background .3s, color .3s, transform .4s var(--ease); }
.testi__btn:hover { background: var(--dark); color: #fff; transform: scale(1.06); }

@media (max-width: 810px) {
  .home-hero, .sec-head, .works, .about-sec__grid { grid-template-columns: 1fr; }
  .sec-head__desc { justify-self: start; }
  .svc { grid-template-columns: 48px 1fr; }
  .svc__img { grid-column: 1 / -1; clip-path: inset(0 0 0 0 round 14px); }
  .testi { padding: 28px 20px; }
  .section-pad { padding-block: 88px; }
}

/* ================= SEE MORE (home) ================= */
.works__more { display: flex; align-items: center; gap: 24px; margin-top: 72px; }
.works__more-line { flex: 1; height: 1px; background: var(--line); }
.works__more .btn { margin-top: 0; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--text); }
.btn--outline .btn__icon { background: var(--dark); color: #fff; }
.btn--outline:hover { background: var(--dark); color: #fff; }
.btn--outline:hover .btn__icon { background: #fff; color: var(--dark); transform: translateX(3px); }
.btn { transition: transform .4s var(--ease), background .35s, color .35s; }

/* ================= WORKS PAGE ================= */
.back-link { display: inline-flex; gap: 8px; color: var(--muted); margin-bottom: 24px; transition: color .3s; }
.back-link span { transition: transform .4s var(--ease); }
.back-link:hover { color: var(--text); }
.back-link:hover span { transform: translateX(-4px); }
.works-title { display: flex; align-items: flex-start; gap: 12px; }
.works-title__count { font-family: var(--font); font-size: clamp(1rem, 2vw, 1.4rem); font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: .6em; }
.section-pad-sm { padding-top: 32px; padding-bottom: 120px; position: relative; }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: inherit; font-size: .9rem; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.chip span { font-size: .75rem; color: var(--muted); transition: color .3s; }
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }
.chip.is-active span { color: #a5a5a5; }
.view-toggle { display: flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.view-toggle__btn { width: 38px; height: 34px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s; }
.view-toggle__btn.is-active { background: var(--dark); color: #fff; }

/* List view */
.plist__head, .prow { display: grid; grid-template-columns: 56px 1.6fr 1fr .9fr 70px 40px; gap: 24px; align-items: center; }
.plist__head { padding: 16px 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.prow { position: relative; padding: 32px 0; border-bottom: 1px solid var(--line); }
.prow::before { content: ""; position: absolute; inset: 0 -16px; border-radius: 14px; background: var(--surface); opacity: 0; transition: opacity .4s var(--ease); z-index: -1; }
.prow:hover::before { opacity: 1; }
.prow__num { color: var(--muted); font-size: .9rem; }
.prow__thumb { display: none; }
.prow__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.05; transition: transform .6s var(--ease); }
.prow:hover .prow__title { transform: translateX(10px); }
.prow__desc { color: var(--muted); font-size: .95rem; margin-top: 6px; max-width: 420px; }
.prow__meta { font-size: .95rem; }
.prow__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .35s, color .35s, transform .5s var(--ease), border-color .35s; }
.prow:hover .prow__arrow { background: var(--dark); color: #fff; border-color: var(--dark); transform: rotate(-45deg); }
.prow.is-hidden { display: none; }

/* Cursor preview */
.cursor-preview { position: fixed; top: 0; left: 0; width: 320px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; pointer-events: none; z-index: 40; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .35s var(--ease), transform .45s var(--ease); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.cursor-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-preview img { height: 100%; }

/* Grid view */
.plist[data-view="grid"] { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; padding-top: 32px; }
.plist[data-view="grid"] .plist__head { display: none; }
.plist[data-view="grid"] .prow { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "thumb thumb" "title arrow" "meta meta"; gap: 14px; padding: 0; border: 0; align-items: start; }
.plist[data-view="grid"] .prow::before, .plist[data-view="grid"] .prow__num { display: none; }
.plist[data-view="grid"] .prow__thumb { display: block; grid-area: thumb; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.plist[data-view="grid"] .prow__thumb img { transition: transform 1s var(--ease); }
.plist[data-view="grid"] .prow:hover .prow__thumb img { transform: scale(1.05); }
.plist[data-view="grid"] .prow__main { grid-area: title; }
.plist[data-view="grid"] .prow__title { font-size: 1.5rem; letter-spacing: -0.02em; }
.plist[data-view="grid"] .prow:hover .prow__title { transform: none; }
.plist[data-view="grid"] .prow__arrow { grid-area: arrow; }
.plist[data-view="grid"] .prow__meta { display: none; }

@media (max-width: 810px) {
  .plist__head { display: none; }
  .prow { grid-template-columns: 1fr auto; grid-template-areas: "thumb thumb" "main arrow" "meta meta"; gap: 14px; padding: 28px 0; }
  .prow::before, .prow__num, .prow__meta { display: none; }
  .prow__thumb { display: block; grid-area: thumb; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
  .prow__main { grid-area: main; }
  .prow__arrow { grid-area: arrow; }
  .plist[data-view="grid"] { grid-template-columns: 1fr; }
  .view-toggle { display: none; }
  .cursor-preview { display: none; }
  .works__more { gap: 16px; }
}
