/* Halaman Karim Residence Trihanggo - Preloader & Transisi */
@font-face { font-family: "DM Sans"; src: url(/assets/fonts/dm-sans-latin.woff2) format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

html { scroll-behavior: auto; overflow-anchor: none; }
body.sedang-muat { overflow: hidden; }
/* Tanpa JavaScript, layar loading tidak pernah ditutup: sembunyikan saja */
html:not(.js) .kr-preloader { display: none; }

/* Preloader: logo fade in, lalu fade out */
.kr-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  color: #fdfaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #112a1a;
  transition: opacity 1s ease, visibility 0s linear 1s;
}
.kr-preloader.selesai { opacity: 0; visibility: hidden; pointer-events: none; }
.kr-preloader-isi { animation: kr-preloader-keluar .6s ease forwards; }
.kr-preloader-isi {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(340px, 85vw);
  animation: kr-preloader-masuk 1s ease forwards;
}
.kr-preloader-logo {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}
@keyframes kr-preloader-keluar { to { opacity: 0; } }
@keyframes kr-muncul-pudar { from { opacity: 0; } }
@keyframes kr-muncul-naik { from { opacity: 0; transform: translateY(24px); } }
/* Setelah layar loading memudar: navbar, lalu judul hero, lalu tombol muncul bergiliran */
.js body:not(.siap) .situs-header, .js body:not(.siap) .kr-hero-isi > * { opacity: 0; }
.js body.siap .situs-header { animation: kr-muncul-pudar 1s ease .5s backwards; }
.js body.siap .kr-hero-isi > * { animation: kr-muncul-naik 1s ease backwards; }
.js body.siap .kr-hero-isi > :nth-child(1) { animation-delay: .6s; }
.js body.siap .kr-hero-isi > :nth-child(2) { animation-delay: .8s; }
.js body.siap .kr-hero-isi > :nth-child(3) { animation-delay: 1s; }
.js body.siap .kr-hero-isi > :nth-child(4) { animation-delay: 1.2s; }
.js body.siap .kr-hero-isi > :nth-child(5) { animation-delay: 1.4s; }
@media (prefers-reduced-motion: reduce) {
  .kr-preloader { display: none; }
  .js body.siap .situs-header, .js body.siap .kr-hero-isi > * { animation: none; }
}
@keyframes kr-preloader-masuk {
  from { opacity: 0; }
  to { opacity: 1; }
}

.kr {
  --krem: #fdfaf0;
  --pasir: #f4e2a4;
  --tua: #1b3f28;
  --tua-gelap: #112a1a;
  --hijau: #245234;
  --emas: #c9a24b;
  --garis: rgba(27, 63, 40, .18);
  --garis-tegas: rgba(27, 63, 40, .3);
  --bayangan-halus: 0 18px 42px -12px rgba(20, 48, 30, .09);
  --bayangan-kartu: 0 24px 54px -14px rgba(17, 42, 26, .16);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--krem);
  color: var(--tua);
  overflow-x: clip;
  margin-top: -88px;
}
.kr h1, .kr h2, .kr h3 {
  font-family: inherit;
  font-weight: 700;
  color: var(--tua);
  letter-spacing: -.028em;
  line-height: 1.08;
  margin: 0;
}
.kr p { margin: 0; }
.kr-lebar { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.kr-kecil {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(253, 250, 240, .94);
  background: rgba(17, 42, 26, .55);
  border: 1px solid rgba(244, 226, 164, .32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.kr-sub { font-size: 1.06rem; line-height: 1.6; margin-top: 12px; max-width: 580px; color: rgba(27, 63, 40, .82); }
.kr-besar { font-size: clamp(2.1rem, 4.6vw, 3.45rem); max-width: 860px; }
.kr-bagian { padding: 92px 0; }
.kr-tanpa-atas { padding-top: 0; }
.kr-pil {
  display: inline-block;
  border: 1px solid var(--garis-tegas);
  border-radius: 999px;
  padding: 5px 15px;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(253, 250, 240, .75);
}

/* Tombol */
.kr-tombol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tua);
  color: var(--krem);
  text-decoration: none;
  font: 600 15.5px/1 "DM Sans", sans-serif;
  padding: 17px 32px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s ease, box-shadow .3s ease;
}
.kr-tombol:hover {
  background: var(--hijau);
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(27, 63, 40, .22);
}
.kr-tombol-emas {
  background: var(--krem) !important;
  color: var(--tua) !important;
}
.kr-tombol-emas:hover {
  background: var(--pasir) !important;
}
.kr-tombol-kecil { padding: 13px 22px; font-size: 14.5px; }

/* Ombak Bergerak Dinamis */
.kr-ombak-bungkus {
  position: absolute;
  left: 0;
  width: 100%;
  height: 96px;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.kr-ombak-krem { bottom: -3px; }
.kr-ombak-atas { top: -3px; }
.kr-ombak-bawah { bottom: -3px; }
.kr-ombak {
  display: block;
  width: 145%;
  left: -22.5%;
  height: 100%;
  position: relative;
  fill: var(--krem);
  will-change: transform;
}
.kr-hero .kr-ombak { fill: var(--pasir); }
.kr-pasir.kr-pasir-rapat { margin-top: 0; padding-top: 70px; }
.kr-pasir-rapat .kr-ombak-atas { display: none; }
.kr-ombak-krem .kr-ombak, .kr-ombak-bawah .kr-ombak { transform-origin: bottom center; }
.kr-ombak-atas .kr-ombak { transform-origin: top center; }

/* Hero Eksklusif */
.kr-hero {
  position: relative;
  overflow: hidden;
  background: var(--tua-gelap);
  color: #fff;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
}
.kr-hero-foto {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.12);
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
body.siap .kr-hero-foto {
  transform: scale(1);
}
.kr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 30, 18, .22) 0%, rgba(12, 30, 18, .25) 35%, rgba(12, 30, 18, .82) 100%);
  z-index: 1;
}
.kr-hero-isi {
  position: relative;
  z-index: 3;
  padding-bottom: 155px;
  padding-top: 140px;
}
.kr-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  max-width: 760px;
  margin-bottom: 36px;
  letter-spacing: -.01em;
  line-height: 1.18;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.kr-hero h1 span { color: var(--pasir); }
.kr-hero h1 { margin-bottom: 18px; }
@font-face { font-family: "Playfair Display"; src: url(/assets/fonts/playfair-italic-latin.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
.kr-tagline { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: var(--krem); margin-bottom: 22px; text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.kr-harga { font-size: 1.05rem; color: rgba(253, 250, 240, .9); margin-bottom: 30px; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.kr-harga strong { color: var(--pasir); font-size: 1.7rem; font-weight: 700; margin-left: 4px; }

/* Pengantar */
.kr-pengantar { padding: 36px 0 76px; }
.kr-pengantar-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 56px; align-items: center; }
.kr-pernyataan { font-size: clamp(1.45rem, 2.6vw, 2.15rem); line-height: 1.38; font-weight: 500; letter-spacing: -.015em; }
.kr-pernyataan em {
  font-style: normal;
  background: linear-gradient(120deg, rgba(244, 226, 164, .75) 0%, rgba(244, 226, 164, .35) 100%);
  padding: 0 8px;
  border-radius: 8px;
}
.kr-angka { display: grid; gap: 16px; }
.kr-angka-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kr-kartu-angka {
  border: 1.5px solid var(--garis);
  border-radius: 26px;
  padding: 24px 26px;
  background: #fff;
  box-shadow: var(--bayangan-halus);
  transition: transform .25s ease, border-color .25s ease;
}
.kr-kartu-angka:hover { transform: translateY(-3px); border-color: var(--emas); }
.kr-kartu-aksen { background: var(--tua); color: var(--krem); border-color: var(--tua); }
.kr-angka-atas { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kr-lencana-kecil { background: var(--pasir); color: var(--tua); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.kr-kartu-angka strong { display: block; font-size: 2.5rem; line-height: 1.05; font-weight: 700; margin-bottom: 8px; }
.kr-kartu-aksen strong { color: var(--pasir); font-size: 2.85rem; }
.kr-kartu-angka span { font-size: 14.5px; line-height: 1.45; display: block; }

/* Pita berjalan */
.kr-pita { overflow: hidden; border-block: 1.5px solid var(--garis); padding: 22px 0; white-space: nowrap; background: rgba(244, 226, 164, .22); }
.kr-pita-jalan { display: inline-flex; gap: 56px; animation: kr-jalan 36s linear infinite; padding-left: 56px; }
.kr-pita span { font-size: clamp(1.45rem, 2.8vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 56px; }
.kr-pita span::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--emas); }
@keyframes kr-jalan { to { transform: translateX(-50%); } }

/* Bagian berlatar pasir dengan ombak */
.kr-pasir { position: relative; background: var(--pasir); padding: 135px 0; margin-top: 70px; }
.kr-isi-bagian { position: relative; z-index: 3; }
.kr-kepala { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.kr-kepala h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); max-width: 720px; }
.kr-kontrol-atas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kr-filter-program {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(253, 250, 240, .55);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--garis);
}
.kr-filter-program button {
  font: 600 13.5px/1 "DM Sans", sans-serif;
  padding: 10px 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--tua);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.kr-filter-program button.aktif { background: var(--tua); color: var(--krem); }
.kr-panah { display: flex; gap: 8px; flex: none; }
.kr-panah button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--tua); background: rgba(253, 250, 240, .5); color: var(--tua); font-size: 20px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.kr-panah button:hover { background: var(--tua); color: var(--krem); transform: scale(1.05); }

/* Jalur geser */
.kr-jalur { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 22px; scrollbar-width: none; }
.kr-jalur::-webkit-scrollbar { display: none; }
.kr-ubin {
  position: relative;
  flex: 0 0 min(305px, 80%);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--tua);
  color: #fff;
  box-shadow: 0 16px 34px rgba(27, 63, 40, .16);
  cursor: pointer;
}
.kr-ubin.sembunyi { display: none; }
.kr-ubin img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.kr-ubin-no {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: rgba(17, 42, 26, .72);
  color: var(--pasir);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.kr-ubin h3 {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  color: var(--tua);
  background: var(--krem);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 16px;
  line-height: 1.2;
  transition: opacity .25s ease, transform .25s ease;
}
.kr-ubin p {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 26px;
  background: rgba(20, 48, 30, .93);
  font-size: 15.5px;
  line-height: 1.55;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.kr-ubin:hover img, .kr-ubin:focus img { transform: scale(1.07); }
.kr-ubin:hover p, .kr-ubin:focus p, .kr-ubin.buka p { opacity: 1; }
.kr-ubin:hover h3, .kr-ubin:focus h3, .kr-ubin.buka h3 { opacity: 0; transform: translateY(8px); }

/* Tipe hunian */
.kr-tipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 38px; }
.kr-tipe {
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid var(--garis);
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--bayangan-halus);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.kr-tipe:hover { transform: translateY(-8px); box-shadow: var(--bayangan-kartu); border-color: var(--emas); }
.kr-tipe-media { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--krem); }
.kr-tipe-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.kr-tipe:hover .kr-tipe-media img { transform: scale(1.05); }
.kr-tipe-lencana {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 42, 26, .82);
  color: var(--pasir);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
}
.kr-tipe-isi { padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.kr-tipe-baris-atas { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kr-lantai-label { font-size: 12.5px; font-weight: 600; color: rgba(27, 63, 40, .7); }
.kr-tipe-dimensi h3 { font-size: 2.2rem; line-height: 1; }
.kr-tipe-dimensi h3 span { font-size: 1.4rem; font-weight: 500; color: rgba(27, 63, 40, .62); }
.kr-spek-ikon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: var(--krem);
  padding: 10px 8px;
  border-radius: 16px;
  border: 1.5px solid var(--garis);
  text-align: center;
}
.kr-spek-ikon strong { display: block; font-size: 15px; font-weight: 700; color: var(--tua); }
.kr-spek-ikon span { display: block; font-size: 11px; color: rgba(27, 63, 40, .75); }
.kr-tipe ul { list-style: none; padding: 10px 0 0; margin: 0; columns: 2; column-gap: 12px; font-size: 13px; }
.kr-tipe li { padding: 3px 0; break-inside: avoid; display: flex; align-items: center; gap: 8px; }
.kr-tipe .kr-ruang { border-top: 1px dashed var(--garis-tegas); padding-top: 14px; margin-bottom: 18px; }
.ik { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--hijau); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.kr-spek-ikon .ik { display: block; margin: 0 auto 4px; width: 22px; height: 22px; }
.kr-tipe .kr-tombol { text-align: center; margin-top: auto; width: 100%; }

/* Galeri Interior */
.kr-interior { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-top: 22px; }
.kr-interior-item {
  margin: 0;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 320px;
  cursor: zoom-in;
  box-shadow: var(--bayangan-halus);
}
.kr-interior-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.kr-interior-item:hover img { transform: scale(1.05); }
.kr-interior-item figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(253, 250, 240, .94);
  color: var(--tua);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kr-interior-item figcaption span { background: var(--tua); color: var(--pasir); font-size: 11px; padding: 2px 8px; border-radius: 999px; }

/* Kolase alasan */
.kr-kolase { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 220px; gap: 20px; margin-top: 38px; }
.kr-kolase figure { margin: 0; position: relative; border-radius: 28px; overflow: hidden; cursor: zoom-in; box-shadow: var(--bayangan-halus); }
.kr-kolase img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.kr-kolase figure:hover img { transform: scale(1.05); }
.kr-kolase figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  background: var(--krem);
  color: var(--tua);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 600;
}
.k1 { grid-column: span 4; grid-row: span 2; }
.k2 { grid-column: span 2; }
.k3 { grid-column: span 2; }
.k4 { grid-column: span 3; }
.k5 { grid-column: span 3; }

/* Jadwal */
.kr-jadwal { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.kr-jadwal h2 { font-size: clamp(1.85rem, 3.6vw, 2.8rem); }
.kr-hari { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.kr-hari button {
  font: 600 14.5px/1 "DM Sans", sans-serif;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--tua);
  background: transparent;
  color: var(--tua);
  cursor: pointer;
  transition: all .2s ease;
}
.kr-hari button.aktif { background: var(--tua); color: var(--krem); }
.kr-panel-wadah {
  border: 1.5px solid var(--garis);
  border-radius: 28px;
  padding: 36px;
  min-height: 220px;
  background: #fff;
  box-shadow: var(--bayangan-halus);
  display: flex;
  align-items: center;
}
.kr-panel { display: block; width: 100%; }
.js .kr-panel { display: none; }
.js .kr-panel.aktif { display: block; }
.kr-panel h3 { font-size: 1.7rem; margin: 14px 0 6px; }
.kr-panel-kembar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 8px; }

/* Lokasi */
.kr-jarak { list-style: none; padding: 0; margin: 28px 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kr-jarak li {
  border: 1.5px solid var(--garis);
  border-radius: 24px;
  padding: 20px 22px;
  background: #fff;
  box-shadow: var(--bayangan-halus);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kr-jarak-waktu {
  align-self: flex-start;
  background: rgba(244, 226, 164, .55);
  color: var(--tua);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.kr-jarak strong { font-size: 1.9rem; line-height: 1.1; }
.kr-jarak span { font-size: 14.5px; color: rgba(27, 63, 40, .8); }
.kr-peta { width: 100%; height: 420px; border: 0; border-radius: 28px; display: block; box-shadow: var(--bayangan-halus); }

/* Testimoni */
.kr-jalur-testi { align-items: stretch; }
.kr-testi {
  margin: 0;
  flex: 0 0 min(345px, 84%);
  scroll-snap-align: start;
  background: var(--krem);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 32px rgba(27, 63, 40, .1);
}
.kr-testi img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kr-testi blockquote {
  margin: 0;
  padding: 20px 22px 0;
  font-size: 15px;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.kr-testi blockquote { -webkit-line-clamp: unset; display: block; cursor: default; }
.kr-testi-foto { position: relative; }
.kr-testi-nama { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 18px 22px 0; }
.kr-testi-nama::before { content: "\201C"; grid-row: 1 / span 2; font-size: 56px; line-height: .8; font-weight: 700; color: var(--emas); }
.kr-testi-nama strong { display: block; font-size: 17px; line-height: 1.25; color: var(--tua); }
.kr-testi-nama span { display: block; font-size: 13px; margin-top: 2px; color: rgba(27, 63, 40, .72); }
.kr-testi blockquote { padding-top: 12px; padding-bottom: 24px; }
.kr-testi-aksi { text-align: center; margin-top: 12px; }
@media (min-width: 900px) {
  .kr-jalur-testi { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; padding-bottom: 28px; }
  .kr-testi { flex: none; }
}
.kr-testi figcaption { padding: 14px 22px 22px; }
.kr-testi figcaption strong { display: block; font-size: 16px; }
.kr-testi figcaption span { font-size: 13px; }

/* Ajakan */
.kr-ajakan { background: var(--tua); color: var(--krem); text-align: center; padding: 100px 0; }
.kr-ajakan h2 { color: var(--krem); font-size: clamp(2rem, 4.8vw, 3.6rem); max-width: 900px; margin: 0 auto 18px; }
.kr-ajakan p { font-size: 1.15rem; margin-bottom: 30px; }
.kr-ajakan .kr-tombol { background: var(--pasir); color: var(--tua); }

/* Form */
.kr-brosur { background: var(--krem); }
.kr-brosur-isi { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.kr-brosur-foto { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 28px; margin-top: 28px; }
.kr-form {
  border: 1.5px solid var(--garis);
  border-radius: 28px;
  padding: 32px;
  display: grid;
  gap: 15px;
  background: #fff;
  box-shadow: var(--bayangan-kartu);
}
.kr-form-baris-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kr-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.kr-form input, .kr-form select {
  font: 400 15.5px "DM Sans", sans-serif;
  color: var(--tua);
  padding: 14px 16px;
  border: 1.5px solid var(--garis-tegas);
  border-radius: 16px;
  background: var(--krem);
  width: 100%;
}
.kr-form input:focus, .kr-form select:focus { outline: 2px solid var(--emas); border-color: var(--emas); background: #fff; }
.kr-form .kr-tombol { margin-top: 6px; width: 100%; }

/* Lightbox Modal */
.kr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(11, 26, 16, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.kr-lightbox.terbuka { opacity: 1; pointer-events: auto; }
.kr-lightbox-tutup {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.kr-lightbox-isi { margin: 0; max-width: min(1020px, 92vw); text-align: center; }
.kr-lightbox-isi img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 20px; }
.kr-lightbox-isi figcaption { color: var(--krem); margin-top: 14px; font-size: 15.5px; }

/* Muncul halus saat digulir */
.js .muncul { opacity: 0; transform: translateY(28px); transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1); }
.js .muncul.terlihat { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .kr-tipe-grid { grid-template-columns: repeat(2, 1fr); }
  .kr-pengantar-grid, .kr-jadwal, .kr-brosur-isi { grid-template-columns: 1fr; gap: 36px; }
  .kr-jarak { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #jalur-program { scroll-snap-type: none; }
}
@media (max-width: 680px) {
  .kr-lebar { padding: 0 18px; }
  .kr-bagian { padding: 44px 0; }
  /* Hero HP: judul di atas (area langit), rumah terlihat di bagian bawah */
  .kr-hero { min-height: 92vh; align-items: flex-start; }
  .kr-hero h1 { font-size: 1.9rem; margin-bottom: 12px; }
  .kr-harga { margin-bottom: 20px; }
  .kr-tagline { font-size: 1.2rem; margin-bottom: 0; }
  .kr-harga strong { font-size: 1.45rem; }
  .kr-hero::before { background: linear-gradient(180deg, rgba(12, 30, 18, .78) 0%, rgba(12, 30, 18, .45) 38%, rgba(12, 30, 18, 0) 58%, rgba(12, 30, 18, .75) 100%); }
  .kr-hero-foto { top: 40px; height: calc(100% - 10px); object-position: 64% center; }
  .kr-hero-isi { padding-top: 96px; padding-bottom: 118px; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
  .kr-hero-isi .kr-harga { margin-top: auto; }
  .kr-hero h1 br { display: none; }
  .kr-pasir { padding: 64px 0; margin-top: 40px; }
  .kr-form-baris-dua, .kr-panel-kembar { grid-template-columns: 1fr; }
  .kr-angka-dua { gap: 12px; }
  .kr-angka-dua .kr-kartu-angka { padding: 20px 18px; }
  /* Tampilan HP ringkas: tipe unit dan interior digeser ke samping, galeri dan jarak dua kolom */
  .kr-tipe-grid, .kr-interior { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -18px; padding: 6px 18px 18px; }
  .kr-tipe-grid::-webkit-scrollbar, .kr-interior::-webkit-scrollbar { display: none; }
  .kr-tipe-grid > .kr-tipe { flex: 0 0 82%; scroll-snap-align: center; }
  .kr-tipe-media { aspect-ratio: 4 / 3; }
  .kr-interior > .kr-interior-item { flex: 0 0 78%; height: 240px; scroll-snap-align: center; }
  .kr-jarak { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kr-jarak strong { font-size: 1.4rem; }
  .kr-ajakan { padding: 64px 0; }
  .kr-kolase { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 12px; }
  .kr-kolase figure { grid-column: auto !important; grid-row: auto !important; }
  .kr-kolase .k1 { grid-column: span 2 !important; grid-auto-rows: auto; }
  .kr-kolase figure { border-radius: 20px; }
  .kr-kolase figcaption { left: 8px; bottom: 8px; right: 8px; padding: 6px 10px; font-size: 11.5px; border-radius: 14px; line-height: 1.25; }
  .kr-kepala { flex-direction: column; align-items: flex-start; }
  /* Program kehidupan versi HP: filter satu baris, kartu tinggi dengan teks selalu terlihat */
  .kr-kontrol-atas { width: 100%; }
  .kr-kontrol-atas .kr-panah { display: none; }
  .kr-filter-program { flex-wrap: nowrap; overflow-x: auto; background: none; border: 0; padding: 0 18px; gap: 8px; margin-inline: -18px; width: calc(100% + 36px); scrollbar-width: none; }
  .kr-filter-program::-webkit-scrollbar { display: none; }
  .kr-filter-program button { flex: none; background: rgba(253, 250, 240, .7); border: 1px solid var(--garis); }
  .kr-filter-program button.aktif { background: var(--tua); color: var(--krem); border-color: var(--tua); }
  #jalur-program { gap: 14px; margin-inline: -18px; padding: 6px 18px 18px; scroll-snap-type: none; }
  #jalur-program .kr-ubin { flex: 0 0 78%; aspect-ratio: 3 / 4; border-radius: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
  #jalur-program .kr-ubin img { position: absolute; inset: 0; }
  #jalur-program .kr-ubin::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12, 30, 18, 0) 30%, rgba(12, 30, 18, .9) 100%); pointer-events: none; }
  #jalur-program .kr-ubin h3, #jalur-program .kr-ubin:hover h3, #jalur-program .kr-ubin:focus h3, #jalur-program .kr-ubin.buka h3 { position: relative; left: auto; bottom: auto; z-index: 2; background: none; color: #fff; padding: 0 18px; margin: 0 0 6px; font-size: 19px; opacity: 1; transform: none; }
  #jalur-program .kr-ubin p, #jalur-program .kr-ubin:hover p, #jalur-program .kr-ubin:focus p, #jalur-program .kr-ubin.buka p { position: relative; inset: auto; z-index: 2; background: none; padding: 0 18px 20px; font-size: 13.5px; line-height: 1.5; opacity: 1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: rgba(255, 255, 255, .9); }
  #jalur-program .kr-ubin.buka p { -webkit-line-clamp: unset; }
  .kr-peta { height: 320px; }
}
/* Footer menyatu dengan font halaman */
.situs-footer h2 { font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.situs-footer a { text-decoration: none; }
.situs-footer a:hover { color: var(--emas); }
.kr-geser-hint { display: none; }

@media (max-width: 680px) {
  /* Tombol WhatsApp melayang jadi ikon bulat agar tidak menutupi konten */
  .wa-melayang { font-size: 0; width: 54px; height: 54px; padding: 0; display: flex; align-items: center; justify-content: center; }
  .wa-melayang::before { content: ""; width: 28px; height: 28px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M8.5 7.5c.3-.6.6-.6 1-.6h.6c.2 0 .4 0 .6.5l.8 1.9c.1.3 0 .5-.1.7l-.5.6c-.2.2-.2.4 0 .6.5.9 1.2 1.6 2.1 2.1.2.1.4.1.6-.1l.6-.6c.2-.2.4-.2.7-.1l1.8.8c.3.2.4.3.4.5 0 .9-.6 1.8-1.5 2-1 .2-2.6-.2-4.6-2s-2.8-3.6-2.9-4.6c-.1-.6.1-1.2.4-1.7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M8.5 7.5c.3-.6.6-.6 1-.6h.6c.2 0 .4 0 .6.5l.8 1.9c.1.3 0 .5-.1.7l-.5.6c-.2.2-.2.4 0 .6.5.9 1.2 1.6 2.1 2.1.2.1.4.1.6-.1l.6-.6c.2-.2.4-.2.7-.1l1.8.8c.3.2.4.3.4.5 0 .9-.6 1.8-1.5 2-1 .2-2.6-.2-4.6-2s-2.8-3.6-2.9-4.6c-.1-.6.1-1.2.4-1.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
  /* Petunjuk kartu tipe bisa digeser */
  .kr-geser-hint { display: block; margin: 18px 0 -24px; font-size: 13px; font-weight: 600; color: rgba(27, 63, 40, .7); }
  /* Tombol hari kajian satu baris yang bisa digeser */
  .kr-hari { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding: 0 18px 4px; }
  .kr-hari::-webkit-scrollbar { display: none; }
  .kr-hari button { flex: none; }
  .kr-jadwal > * { min-width: 0; }
  /* Tulisan kecil diperbesar */
  .kr-spek-ikon span { font-size: 12px; }
  .kr-kolase figcaption { font-size: 12.5px; }
  /* Link footer lebih mudah diketuk */
  .situs-footer li { margin-bottom: 0; }
  .situs-footer li a { display: inline-block; padding: 9px 0; }
  .sosmed li a { padding: 8px 14px; }
}

/* Header HP lebih ramping (56px): sesuaikan tarikan halaman ke belakang header */
@media (max-width: 860px) {
  .kr { margin-top: -80px; }
}

@media (max-width: 680px) {
  /* Kolom isian 16px agar Safari iPhone tidak memperbesar layar saat diketuk */
  .kr-form input, .kr-form select { font-size: 16px; }
  /* Gelombang lebih landai di layar sempit */
  .kr-ombak-bungkus { height: 56px; }
  /* Foto hero tanpa celah gelap di atas; foto dibuat lebih tinggi agar gerbang tetap di bawah judul */
  .kr-hero-foto { top: 0; height: calc(100% + 60px); }
  /* Tombol brosur selebar layar */
  .kr-hero .kr-tombol { width: 100%; text-align: center; }
  /* Galeri "Kenapa Memilih": teks putih di atas bayangan gelap, foto tidak tertutup kotak */
  .kr-kolase figure::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(12, 30, 18, 0) 45%, rgba(12, 30, 18, .85) 100%); pointer-events: none; }
  .kr-kolase figcaption { left: 12px; right: 12px; bottom: 10px; padding: 0; background: transparent; color: #fff; font-size: 13px; line-height: 1.3; border-radius: 0; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
}

/* Hero HP mengikuti desain pemilik: rumah tipe C, judul H1 miring, harga,
   kutipan di kanan, tagline blok hijau di kiri bawah, foto Ustadz & Ummu di kanan bawah */
@font-face { font-family: "Merriweather"; src: url(/assets/fonts/merriweather-bold-italic-latin.woff2) format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
.kr-hero-orang, .kr-hero-kutip { display: none; }
@media (max-width: 680px) {
  .kr-hero { min-height: 92svh; background: linear-gradient(180deg, #5f8ac4 0%, #6e97cc 100%); }
  .kr-hero-foto { top: auto; bottom: 0; height: 76%; object-position: 52% bottom; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%); mask-image: linear-gradient(180deg, transparent 0, #000 10%); }
  .kr-hero::before { background: linear-gradient(180deg, rgba(12, 30, 18, .18) 0%, rgba(12, 30, 18, 0) 30%, rgba(12, 30, 18, 0) 80%, rgba(12, 30, 18, .18) 100%); }
  .kr-hero-isi { align-self: stretch; align-items: center; text-align: center; padding-top: 92px; padding-bottom: 0; }
  /* Label dan tombol tidak tampil di hero HP; judul H1 tampil bergaya miring seperti desain */
  .kr-hero-isi .kr-kecil, .kr-hero .kr-tombol { display: none; }
  /* Judul gaya editorial: baris pertama kecil berjarak, baris kedua serif miring besar */
  .kr-hero h1 { order: -1; margin: 0; font-family: "DM Sans", system-ui, sans-serif; font-style: normal; font-weight: 600; font-size: .82rem; line-height: 1.3; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .95); text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
  .kr-hero h1 span { display: block; margin-top: 6px; font-family: "Merriweather", Georgia, serif; font-style: italic; font-weight: 700; font-size: 2.15rem; line-height: 1.12; letter-spacing: 0; text-transform: none; color: #fff; text-shadow: 0 3px 18px rgba(0, 0, 0, .35); }
  .kr-hero h1 span::after { content: ""; display: block; width: 56px; height: 2px; margin: 12px auto 0; background: var(--pasir); border-radius: 2px; }
  .kr-hero-isi .kr-harga { order: 0; margin: 12px 0 0; background: #fff; color: var(--tua); padding: 4px 16px; border-radius: 4px; font-size: .9rem; font-style: italic; text-shadow: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
  .kr-harga strong { color: var(--hijau); font-size: 1.15rem; font-style: normal; }
  .kr-hero-kutip { display: block; position: absolute; right: 14px; top: 33%; z-index: 2; margin: 0; text-align: right; color: #fff; font-style: italic; font-size: 13px; line-height: 1.35; text-shadow: 0 2px 8px rgba(0, 0, 0, .55); }
  .kr-hero-isi .kr-tagline { position: absolute; left: 6px; bottom: 58px; margin: 0; text-align: left; font-family: "Merriweather", Georgia, serif; font-style: italic; font-weight: 700; font-size: 1.65rem; line-height: 1.15; text-shadow: none; }
  .kr-tagline span { display: table; background: var(--tua); color: #fff; padding: 2px 8px 4px; margin-top: 4px; }
  .kr-hero-orang { display: block; position: absolute; right: -6%; bottom: 0; width: 78%; max-width: 380px; height: auto; z-index: 2; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .25)); }
  .kr-hero .kr-ombak-bungkus { z-index: 3; }
}
