/* Demo Studio Arsitek Contoh untuk portofolio Hastasurya. Perusahaan dan proyek fiktif. */
:root {
  --bg: #0d1012;
  --panel: #12171a;
  --panel-2: #192024;
  --fg: #f5f5f3;
  --muted: #9c9d9c;
  --muted-2: #807d7a;
  --line: rgba(245, 245, 243, .18);
  --line-soft: rgba(245, 245, 243, .1);
  --bronze: #a8865f;
  --wa: #25d366;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
section[id] { scroll-margin-top: 72px; }
body.menu-open { overflow: hidden; }

/* ---------- Tipografi ---------- */
/* Optical size dikunci agar garis tipis Bodoni tidak hilang di ukuran raksasa */
.caps {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  line-height: .94; letter-spacing: -.012em; margin: 0;
  font-variation-settings: "opsz" 40;
}
.caps i, .caps em { font-style: italic; }
.h-xl { font-size: clamp(44px, 7vw, 116px); }
.h-lg { font-size: clamp(36px, 4.6vw, 76px); }
.h-md { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.02; }
.label {
  font-family: var(--serif); font-style: italic; text-transform: uppercase;
  font-size: 13px; letter-spacing: .02em; margin: 0;
}
.tiny {
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
}
.small { font-size: 13px; line-height: 1.65; color: var(--muted); max-width: 310px; margin: 0; }
.small + .small { margin-top: 14px; }
.tag {
  font-family: var(--serif); font-style: italic; text-transform: uppercase;
  font-size: clamp(16px, 1.45vw, 21px); line-height: 1.12; margin: 0 0 18px;
}

/* ---------- Tombol pill ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 32px; padding: 0 18px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-family: var(--sans); font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--fg); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.pill:hover { background: transparent; color: var(--fg); }
.pill-ghost { background: rgba(245, 245, 243, .1); color: var(--fg); border-color: var(--line); }
.pill-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Navigasi ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 0 var(--pad);
  transition: background .4s, backdrop-filter .4s;
}
.bar.solid { background: rgba(13, 16, 18, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.bar-in {
  display: flex; align-items: center; gap: 28px; height: 76px;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--serif); font-size: 22px; letter-spacing: .02em; text-decoration: none; text-transform: uppercase;
  margin-right: auto;
}
.bar .where { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.bar .where::before { content: ""; order: 1; width: 22px; height: 1px; background: var(--line); }
.bar .where span:last-child { order: 2; color: var(--muted); }
.burger {
  width: 40px; height: 40px; display: grid; place-content: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.burger span { display: block; width: 22px; height: 1px; background: var(--fg); transition: transform .35s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  padding: 120px var(--pad) 40px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; align-items: end;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu li a {
  display: inline-block; text-decoration: none;
  font-family: var(--serif); text-transform: uppercase; font-size: clamp(38px, 6vw, 92px); line-height: 1.02;
  transform: translateY(105%); transition: transform .7s var(--ease), color .2s;
}
.menu li a:hover { font-style: italic; }
.menu.open li a { transform: none; }
.menu li:nth-child(2) a { transition-delay: .04s; }
.menu li:nth-child(3) a { transition-delay: .08s; }
.menu li:nth-child(4) a { transition-delay: .12s; }
.menu li:nth-child(5) a { transition-delay: .16s; }
.menu li:nth-child(6) a { transition-delay: .2s; }
.menu-side { display: grid; gap: 18px; justify-items: start; padding-bottom: 12px; }
.menu-side a:not(.pill) { text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  background: var(--panel);
}
.hero-bg { position: absolute; inset: -6% 0 0 0; height: 106%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 16, 18, .62) 0%, rgba(13, 16, 18, .08) 30%, rgba(13, 16, 18, .2) 60%, rgba(13, 16, 18, .86) 100%);
}
/* Butiran halus agar foto terasa seperti cetakan, bukan layar */
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-in {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); align-items: end; gap: 32px;
}
/* Ukuran wordmark dibatasi oleh lebar kolom kirinya (layar dikurangi kolom tagline 320px + jarak 32px),
   supaya tidak terpotong atau menabrak tagline di laptop kecil. Kata 4 huruf ≈ 2,7× ukuran font, 6–7 huruf ≈ 4,2× (pakai kelas .two). */
.wordmark {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(110px, min(25vw, calc((100vw - 2 * var(--pad) - 352px) * .36)), 420px);
  line-height: .74; letter-spacing: -.03em;
  margin: 0 0 -.02em -.04em; white-space: nowrap;
  font-variation-settings: "opsz" 28;
}
.wordmark.two {
  font-size: clamp(64px, min(12.5vw, calc((100vw - 2 * var(--pad) - 352px) * .23)), 210px);
  line-height: .84; margin-bottom: .06em; white-space: normal;
}
/* Line-height .74 membuat puncak huruf keluar dari kotak baris; padding atas memberi ruang agar
   overflow:hidden (untuk animasi muncul) tidak memangkasnya, margin negatif menjaga posisinya. */
.wordmark .ln { display: block; overflow: hidden; padding: .1em 0 .04em; margin-top: -.1em; }
.wordmark .ln > span { display: inline-block; }
.hero-aside { padding-bottom: clamp(40px, 7vh, 88px); }
.hero-aside .small { color: rgba(245, 245, 243, .78); }
.scroll { display: inline-block; margin-top: 30px; text-decoration: none; }
.back { position: absolute; z-index: 2; top: 100px; left: var(--pad); text-decoration: none; }

/* ---------- Panel umum ---------- */
.panel { background: var(--panel); position: relative; }
.sec { padding: clamp(72px, 10vw, 128px) var(--pad); }
.sec + .sec { border-top: 1px solid var(--line-soft); }

/* About */
#tentang.sec { padding-top: 116px; padding-bottom: 72px; }
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
  min-height: min(78vh, 720px);
}
.about-l { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.about-img { align-self: center; overflow: hidden; }
.about-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-r { padding-top: 4px; }
.about-r .pill { margin-top: 28px; }

/* Baris statistik di beranda */
.stats-head {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.stats-head .label { margin-bottom: 22px; }
.stats-head .small { max-width: 360px; justify-self: end; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats li { padding: 28px 24px 4px; border-left: 1px solid var(--line-soft); display: grid; align-content: start; gap: 10px; }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats b {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 30;
  font-size: clamp(56px, 6.2vw, 100px); line-height: .9; letter-spacing: -.02em;
}
.stats .tiny { color: var(--fg); margin-top: 8px; }
.stats p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 220px; }

/* Angka besar di halaman proyek */
.num {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; align-content: start;
}
.num b {
  font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 30;
  font-size: clamp(60px, 7vw, 112px); line-height: .9; letter-spacing: -.02em;
}
.num i { font-family: var(--serif); font-size: clamp(15px, 1.3vw, 19px); }
.num p { grid-column: 1 / -1; font-size: 12px; line-height: 1.5; color: var(--muted); margin: 14px 0 0; max-width: 200px; }

/* Layanan, gaya "amenities" */
.amen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: min(92vh, 820px); }
.amen-txt { padding: clamp(72px, 10vw, 128px) var(--pad); display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.svc-list { list-style: none; margin: 4px 0 6px; padding: 0; max-width: 340px; border-top: 1px solid var(--line-soft); }
.svc-list li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.svc-list li span { font-family: var(--serif); font-style: italic; color: var(--muted); min-width: 28px; }
.amen-pic { position: relative; overflow: hidden; }
.amen-big { position: absolute; inset: 0 0 0 22%; }
.amen-big img, .amen-inset img { width: 100%; height: 100%; object-fit: cover; }
.amen-inset { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 44%; aspect-ratio: 3 / 4; z-index: 1; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

/* Slider proyek */
.proj { padding: 40px var(--pad) clamp(56px, 7vw, 88px); overflow: hidden; }
.proj-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.proj-tabs { display: flex; gap: 6px; }
.proj-tabs button {
  background: none; border: 0; cursor: pointer; padding: 6px 4px;
  font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); transition: color .2s;
}
.proj-tabs button[aria-selected="true"] { color: var(--fg); }
.stage { position: relative; height: clamp(440px, 64vw, 760px); margin: 24px calc(var(--pad) * -1) 0; }
.slide { position: absolute; inset: 0; pointer-events: none; }
.slide.on { pointer-events: auto; }
.slide figure { position: absolute; margin: 0; overflow: hidden; background: var(--panel-2); }
.slide figure img { width: 100%; height: 100%; object-fit: cover; }
.f-l { left: 0; top: 24%; width: 21%; height: 48%; }
.f-c { left: 34.5%; top: 9%; width: 31%; height: 76%; }
.f-c::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 16, 18, .55) 0%, rgba(13, 16, 18, .2) 38%, rgba(13, 16, 18, 0) 60%);
}
.f-r { right: 0; top: 19%; width: 21%; height: 58%; }
.slide h3 {
  position: absolute; left: 0; right: 0; top: 9%; z-index: 2; text-align: center;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35); pointer-events: none;
}
.slide-foot {
  position: absolute; left: 34.5%; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 32px;
}
.slide-foot .small { max-width: 260px; }

/* Transisi slide: foto tersibak, judul naik */
.slide figure { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.slide.on figure { clip-path: inset(0 0 0 0); }
.slide.on .f-c { transition-delay: .08s; }
.slide.on .f-r { transition-delay: .16s; }
.slide h3, .slide-foot { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .9s var(--ease); }
.slide.on h3, .slide.on .slide-foot { opacity: 1; transform: none; transition-delay: .25s; }

/* "A vision of…" */
.vision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(92vh, 820px); position: relative; }
.vision-pic { position: relative; overflow: hidden; }
.vision-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vision-txt { padding: 40px var(--pad) clamp(56px, 8vw, 96px); display: flex; flex-direction: column; justify-content: space-between; }
.vision-txt .label { align-self: flex-start; }
.vision h2 { position: absolute; left: 36%; top: 38%; z-index: 2; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.vision-foot { align-self: flex-end; margin-left: 30%; }
.vision-foot .pill { margin-top: 26px; }

/* Indeks prinsip: daftar bernomor, foto di kanan mengikuti baris yang aktif */
.principles { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.pr-l .label { margin-bottom: 22px; }
.pr-l .small { margin-top: 24px; max-width: 380px; }
.pr-list { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; border-top: 1px solid var(--line); }
.pr {
  width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px; row-gap: 8px;
  padding: 22px 0; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line-soft);
  cursor: pointer; color: var(--fg); opacity: .42; transition: opacity .35s;
}
.pr:hover, .pr.on { opacity: 1; }
.pr .n { grid-row: 1 / span 2; font-family: var(--serif); font-style: italic; font-size: 14px; padding-top: 6px; color: var(--muted); }
.pr .t { font-size: clamp(24px, 2.4vw, 36px); line-height: 1; }
.pr .d { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 420px; }
.pr.on .n { color: var(--bronze); }
.pr-r { margin: 0; position: sticky; top: 104px; display: grid; gap: 14px; }
.pr-view { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--panel-2); }
.pr-view img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .7s, transform 1.4s var(--ease);
}
.pr-view img.on { opacity: 1; transform: none; }
.pr-count { justify-self: end; }

/* Kontak */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact-l { display: flex; flex-direction: column; gap: 40px; }
.lines { list-style: none; margin: 0; padding: 0; max-width: 420px; border-top: 1px solid var(--line-soft); }
.lines li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.lines span { color: var(--muted); }
.lines a { text-decoration: none; }
.lines a:hover { text-decoration: underline; text-underline-offset: 4px; }
.brief { display: grid; gap: 22px; }
.brief .label { margin-bottom: 4px; }
.field { display: grid; gap: 6px; }
.field > span, .brief legend { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.brief input:not([type="radio"]), .brief select, .brief textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 9px 0; font-size: 15px; border-radius: 0; color: var(--fg); font-weight: 300;
}
.brief select option { background: var(--panel); }
.brief input:focus, .brief select:focus, .brief textarea:focus { outline: none; border-bottom-color: var(--fg); }
.brief textarea { resize: vertical; min-height: 72px; }
.brief fieldset { border: 0; padding: 0; margin: 0; }
.brief legend { padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s;
}
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.brief .pill { justify-self: start; height: 40px; padding: 0 22px; }
.brief .note { font-size: 12px; color: var(--muted-2); margin: 0; }

/* Footer */
.foot { padding: 56px var(--pad) 0; overflow: hidden; border-top: 1px solid var(--line-soft); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; font-size: 12px; color: var(--muted); }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--fg); }
.foot-mark {
  font-family: var(--serif); text-transform: uppercase; font-size: 21vw; line-height: .74; letter-spacing: -.03em;
  margin: 40px 0 .05em -.04em; color: var(--fg); white-space: nowrap; user-select: none;
  font-variation-settings: "opsz" 28;
}

/* ---------- Halaman proyek ---------- */
.space { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); }
.space-l { display: flex; flex-direction: column; gap: 28px; }
.space-l .small { max-width: 380px; }
.space-l .small + .small { margin-top: -12px; }
.space-stats { display: grid; gap: 28px; margin-top: auto; padding-top: 32px; }
.space-r { display: grid; gap: 14px; align-content: start; }
.space-head { display: flex; justify-content: space-between; align-items: baseline; }
.space-view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.space-view img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04); transition: opacity .6s, transform 1.2s var(--ease);
}
.space-view img.on { opacity: 1; transform: none; }
.rooms { display: grid; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.room {
  position: relative; min-height: 76px; padding: 12px 14px; text-align: left;
  background: none; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  cursor: pointer; color: var(--muted); transition: background .25s, color .25s;
  font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: flex-end;
}
.room::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--fg); opacity: 0; transition: opacity .25s;
}
.room:hover, .room.on { color: var(--fg); background: rgba(245, 245, 243, .05); }
.room.on::after { opacity: 1; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.facts div { padding: 18px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line-soft); }
.facts dt { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; }

/* Galeri horizontal dengan judul di belakang foto */
.hg { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 104px) 0; }
.hg-title { position: absolute; left: var(--pad); right: var(--pad); top: clamp(64px, 8vw, 104px); text-align: center; z-index: 0; }
.hg-track {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 22px;
  padding: 0 var(--pad); margin-top: clamp(70px, 8.5vw, 140px); width: max-content; will-change: transform;
}
.hg-track .shot { flex: none; height: clamp(300px, 34vw, 480px); }
.hg-track .shot.short { height: clamp(220px, 24vw, 340px); }
.hg-track .shot.pano { height: clamp(150px, 17vw, 240px); }
.hg-track .shot img { height: 100%; width: auto; }
.hg-hint { padding: 22px var(--pad) 0; color: var(--muted); }

.shot { display: block; padding: 0; border: 0; background: var(--panel-2); cursor: zoom-in; overflow: hidden; }
.shot img { transition: transform 1s var(--ease); }
.shot:hover img { transform: scale(1.03); }

.next { position: relative; display: block; height: min(70vh, 620px); overflow: hidden; text-decoration: none; }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); transition: transform 1.4s var(--ease), filter .6s; }
.next:hover img { transform: scale(1.04); filter: brightness(.65); }
.next-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 0 var(--pad); }

/* ---------- Elemen melayang ---------- */
.draft {
  position: absolute; right: var(--pad); top: 88px; z-index: 40; margin: 0;
  padding: 7px 12px; border-radius: 999px; background: var(--bronze); color: #1d150c;
  font-size: 12px; font-weight: 600;
}
.draft a { color: inherit; }
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--bg); box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab svg { width: 22px; height: 22px; }

.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: transparent; color: var(--fg); }
.lb::backdrop { background: rgba(8, 10, 11, .95); }
.lb[open] { display: grid; place-items: center; }
.lb figure { margin: 0; display: grid; gap: 14px; justify-items: center; padding: 64px 72px; }
.lb img { max-width: min(88vw, 820px); max-height: 78vh; width: auto; }
.lb figcaption { font-family: var(--serif); font-style: italic; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.lb button {
  position: fixed; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(245, 245, 243, .08); border: 1px solid var(--line); font-size: 16px;
}
.lb-x { top: 18px; right: 18px; }
.lb-p { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Gerak ---------- */
.motion .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .rv-img { clip-path: inset(14% 0 0 0); transition: clip-path 1.3s var(--ease); }
.motion .rv-img img { transform: scale(1.1); transition: transform 1.6s var(--ease); }
.motion .rv-img.in { clip-path: inset(0 0 0 0); }
.motion .rv-img.in img { transform: none; }
/* 125%: cukup jauh agar puncak huruf (yang menjulang di atas kotak baris) ikut tersembunyi sebelum naik */
.motion .wordmark .ln > span { transform: translateY(125%); transition: transform 1.3s var(--ease); }
.motion.ready .wordmark .ln > span { transform: none; }
.motion .wordmark .ln:nth-child(2) > span { transition-delay: .1s; }
.motion .hero-bg img { transform: scale(1.08); transition: transform 2.4s var(--ease); }
.motion.ready .hero-bg img { transform: none; }
.motion .hero-aside, .motion .back { opacity: 0; transition: opacity 1.2s .5s; }
.motion.ready .hero-aside, .motion.ready .back { opacity: 1; }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .bar .where { display: none; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-l { grid-column: 1 / -1; gap: 24px; }
  /* Tablet: tagline di atas, wordmark selebar layar di bawahnya (seperti di ponsel) */
  .hero-in { grid-template-columns: 1fr; gap: 0; padding-bottom: 10px; }
  .hero-aside { order: -1; padding-bottom: 28px; max-width: 440px; }
  .wordmark { font-size: 30vw; margin-bottom: 0; }
  .wordmark.two { font-size: 17vw; margin-bottom: .1em; }
  .amen { grid-template-columns: 1fr; }
  .amen-pic { min-height: 70vw; }
  .vision { grid-template-columns: 1fr; }
  .vision-pic { min-height: 64vw; }
  .vision h2 { position: static; margin: 0; }
  .vision-txt { gap: 32px; }
  .vision-foot { margin-left: 0; align-self: flex-start; }
  .contact { grid-template-columns: 1fr; align-items: start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line-soft); margin-top: 24px; }
  .principles { grid-template-columns: 1fr; }
  .pr-r { position: static; order: -1; }
  .pr-view { aspect-ratio: 4 / 3; }
  .space { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { margin-top: 20px; border-top: 1px solid var(--line-soft); }
}

/* ---------- Ponsel ---------- */
@media (max-width: 680px) {
  body { font-size: 15px; }
  .bar-in { height: 64px; gap: 14px; }
  .bar .pill { display: none; }
  section[id] { scroll-margin-top: 64px; }
  .menu { grid-template-columns: 1fr; align-content: end; padding-top: 96px; }
  .hero { min-height: 560px; }
  .back { top: 84px; }
  .small { max-width: none; }

  .about { grid-template-columns: 1fr; min-height: 0; gap: 36px; }
  .about-l { flex-direction: column; align-items: flex-start; gap: 28px; }
  .about-img { width: 78%; justify-self: center; }

  .num b { font-size: 60px; }
  .stats-head { grid-template-columns: 1fr; gap: 24px; }
  .stats-head .small { justify-self: start; }
  .stats li { padding: 22px 12px 4px 16px; }
  .stats li:nth-child(odd) { padding-left: 0; }
  .stats b { font-size: 52px; }
  .pr { grid-template-columns: 40px minmax(0, 1fr); padding: 18px 0; opacity: .55; }
  .pr .t { font-size: 24px; }

  .amen-pic { min-height: 108vw; }
  .amen-big { inset: 0 0 0 18%; }
  .amen-inset { width: 50%; }

  .stage { height: 150vw; max-height: 640px; }
  .f-l { top: 30%; width: 22%; height: 30%; }
  .f-c { left: 22%; width: 56%; top: 14%; height: 58%; }
  .f-r { top: 26%; width: 22%; height: 36%; }
  .slide h3 { top: 6%; font-size: 13vw; padding: 0 12px; }
  .slide-foot { left: var(--pad); right: var(--pad); flex-direction: column; align-items: flex-start; gap: 16px; }


  .lines li { grid-template-columns: 96px 1fr; }
  .brief .pill { justify-self: stretch; }

  .hg-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; scrollbar-width: none; }
  .hg-track::-webkit-scrollbar { display: none; }
  .hg-track .shot { scroll-snap-align: center; height: 62vw; }
  .hg-track .shot.short { height: 50vw; }
  .hg-track .shot.pano { height: 36vw; }
  .hg-title { font-size: 11vw; }

  .rooms { grid-template-columns: 1fr 1fr !important; grid-template-areas: none !important; }
  .room { grid-area: auto !important; min-height: 60px; }
  .facts { grid-template-columns: 1fr; }
  .facts div, .facts div + div { padding: 14px 0; border-left: 0; margin-top: 0; }
  .facts div + div { border-top: 1px solid var(--line-soft); }

  .draft { font-size: 11px; padding: 6px 10px; top: 74px; }
  .lb figure { padding: 72px 12px; }
  .lb img { max-width: 94vw; }
  .lb-p, .lb-n { top: auto; bottom: 18px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
