/* Tukangin.id design system
   Struktur editorial dipinjam dari template kaitex.id: kertas, tinta hitam, judul ringan.
   Identitasnya dari bengkel las kanopi:
   - Aksen tunggal = merah meni (cat dasar anti karat yang dioles ke besi sebelum dicat akhir).
     Dipakai untuk garis las, penanda aktif, dan blok survei saja.
   - Penanda blok = potongan miring seperti profil atap kanopi, pengganti kotak hitam kaitex.
   - Archivo (punya sumbu lebar) untuk wordmark dan teks: bentuk lebarnya terasa seperti profil baja.
     Lexend light untuk judul supaya kontras dengan wordmark yang tebal. */

:root {
  --paper: #f2f0eb;
  --paper-deep: #e6e2da;
  --ink: #151515;
  --ink-soft: #4a4740;
  --line: #cbc5ba;
  --meni: #8c3418;
  --meni-deep: #6f2810;
  --meni-ink: #f6efe9;
  --steel: #24272a;

  --font-display: "Lexend", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.35rem + 1.2vw, 2.4rem);
  --step-3: clamp(2.1rem, 1.5rem + 3vw, 4rem);
  --step-4: clamp(2.6rem, 1.6rem + 5vw, 6.5rem);

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max: 1320px;
  --radius: 2px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-drag: none;
}
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section--meni :focus-visible { outline-color: var(--meni-ink); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Penanda blok: profil atap miring. Mengulang bentuk yang dijual, bukan dekorasi acak. */
.slope {
  display: inline-block;
  width: 18px;
  height: 12px;
  background: currentColor;
  clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
  flex: none;
}
.slope--lg { width: 56px; height: 36px; }
.slope--meni { color: var(--meni); }

.eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.muted { color: var(--ink-soft); }

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-body);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.04em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.wordmark small { font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--meni); font-size: 0.8em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
}
/* Satu-satunya blur di halaman: header perlu tetap terbaca di atas foto saat discroll */
.site-header.is-scrolled {
  background: rgba(242, 240, 235, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header .wordmark { font-size: 1.2rem; }

.nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__list a {
  position: relative; text-decoration: none;
  font-size: var(--step--1); font-weight: 500; padding-block: 0.6rem;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.3rem; height: 2px;
  background: var(--meni); transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; position: relative; color: var(--ink);
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform 0.35s var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path 0.5s var(--ease-out), visibility 0s 0.5s;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.5s var(--ease-out), visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    display: block; font-family: var(--font-display); font-weight: 300;
    font-size: var(--step-2); padding-block: 0.5rem; border-bottom: 1px solid var(--line);
  }
  .nav__list a::after { display: none; }
  .nav .btn { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-fill: var(--meni);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.5rem;
  border: 1px solid var(--btn-bg); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 var(--step--1) / 1.15 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
/* Isian naik dari bawah dengan warna meni: seperti cat dasar yang dioles, memberi tanda tombol aktif */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill); transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover { color: var(--meni-ink); border-color: var(--btn-fill); }
.btn:hover::before { transform: translateY(0); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-fill: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { color: var(--paper); }

.btn--light { --btn-bg: var(--meni-ink); --btn-fg: var(--meni-deep); --btn-fill: var(--ink); }
.btn--light:hover { color: var(--paper); border-color: var(--ink); }

.btn--sm { min-height: 44px; padding: 0.65rem 1.1rem; }
/* Ikon WhatsApp: relevan karena tombol ini membuka percakapan WhatsApp */
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
}
.hero__text {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 1.75rem;
  padding: calc(var(--header-h) + 3rem) clamp(1.25rem, 3vw, 3rem) 4rem var(--gutter);
}
.hero__title { display: flex; flex-direction: column; gap: 0.15em; }
.hero__title .big {
  font-family: var(--font-body); font-weight: 800; font-stretch: 118%;
  font-size: var(--step-4); letter-spacing: -0.01em; line-height: 0.95;
}
.hero__title .light { font-size: var(--step-2); color: var(--ink-soft); line-height: 1.15; max-width: 24ch; }
.hero__lead { max-width: 44ch; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem;
  font-size: var(--step--1); font-weight: 600;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; align-items: center; gap: 0.55rem; }
.hero__facts .slope { width: 12px; height: 8px; color: var(--meni); }

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* Media hero: foto dimiringkan 3D mengikuti pointer, seperti melihat kanopi dari sudut berbeda */
.hero__media {
  position: relative; min-height: 60vh; overflow: hidden;
  perspective: 1200px; background: var(--paper-deep);
}
.hero__canvas {
  position: absolute; inset: -8% -6%; width: 112%; height: 116%;
  transform-style: preserve-3d; will-change: transform;
  transform: translate3d(0, var(--parallax-y, 0px), 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
/* Cahaya matahari yang lewat atap polycarbonate: bergeser pelan supaya foto terasa hidup */
.hero__sun {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, rgba(255, 236, 200, 0) 20%, rgba(255, 236, 200, 0.55) 45%, rgba(255, 236, 200, 0) 70%);
  animation: sun-pass 9s ease-in-out infinite alternate;
}
@keyframes sun-pass {
  from { transform: translate3d(-18%, 0, 0); opacity: 0.4; }
  to { transform: translate3d(18%, 0, 0); opacity: 0.8; }
}
.hero__meta {
  position: absolute; right: var(--gutter); bottom: 1.5rem; z-index: 5;
  background: var(--paper); padding: 0.4rem 0.7rem;
  font-size: var(--step--1); font-weight: 600;
}


@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__text { padding: calc(var(--header-h) + 2.25rem) var(--gutter) 2.5rem; }
  .hero__media { min-height: 92vw; }
}

/* ---------- Pita wilayah, bergerak terikat scroll ---------- */
.ribbon { border-block: 1px solid var(--ink); overflow: hidden; padding-block: 1rem; white-space: nowrap; }
.ribbon__track {
  display: inline-flex; gap: 2.25rem;
  font-family: var(--font-display); font-weight: 300; font-size: var(--step-2);
  will-change: transform;
}
.ribbon__track span { display: inline-flex; align-items: center; gap: 2.25rem; }
.ribbon__track span::after {
  content: ""; width: 18px; height: 12px; background: var(--meni);
  clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Section dasar ---------- */
.section { position: relative; padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--deep { background: var(--paper-deep); }
.section--ink { background: var(--steel); color: var(--paper); }
.section--ink .eyebrow, .section--ink .muted { color: #c9c4ba; }
.section--ink :focus-visible { outline-color: var(--paper); }
.section--meni { background: var(--meni-deep); color: var(--meni-ink); }
.section--meni .eyebrow { color: var(--meni-ink); }

.section__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 4rem; align-items: end;
  margin-bottom: clamp(2rem, 4.5vw, 4rem);
}
.section__head h2 { font-size: var(--step-3); }
.section__head p { color: var(--ink-soft); max-width: 48ch; }
.section--ink .section__head p { color: #d4cfc5; }
@media (max-width: 900px) { .section__head { grid-template-columns: 1fr; } }

/* Garis las: manik las merah meni yang tumbuh mengikuti scroll, menyambung antar section */
.weld {
  position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) / 2 - 2px);
  width: 4px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, var(--meni) 0 6px, #b5532f 6px 8px, transparent 8px 13px);
  border-radius: 2px;
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.section--meni .weld { background: repeating-linear-gradient(to bottom, var(--meni-ink) 0 6px, transparent 6px 13px); }
@media (max-width: 768px) { .weld { display: none; } }

/* ---------- Scene 3D kanopi (dirakit oleh main.js) ---------- */
.scene {
  position: relative;
  perspective: 1500px;
  perspective-origin: 50% 35%;
  overflow: hidden;
  touch-action: pan-y;
}
.scene__world {
  position: absolute; left: 50%; top: 58%; width: 0; height: 0;
  transform-style: preserve-3d;
}
.scene__world * { transform-style: preserve-3d; }
.p3 { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.face {
  position: absolute; left: 0; top: 0;
  backface-visibility: visible;
  opacity: var(--o, 1);
  transition: background-color 0.5s var(--ease-out), opacity 0.2s linear;
}

/* Rangka: warna mengikuti jenis rangka yang dipilih */
.scene { --frame: #1f2225; --frame-top: #3a3e42; --frame-side: #15171a; }
.scene[data-frame="baja-ringan"] { --frame: #a9afb3; --frame-top: #cfd4d7; --frame-side: #8a9094; }
.scene[data-frame="wf"] { --frame: #2b2f33; --frame-top: #4a4f54; --frame-side: #1b1e21; }
.steel .face { background: var(--frame); }
.steel .f-top, .steel .f-bottom { background: var(--frame-top); }
.steel .f-left, .steel .f-right { background: var(--frame-side); }
.gutter .face { background: #8d9295; }
.gutter .f-top { background: #b6babc; }

/* Lantai dan dinding rumah: netral supaya rangka dan atap yang jadi fokus */
.ground {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.12) 100%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(0, 0, 0, 0.07) 79px 80px),
    repeating-linear-gradient(0deg, transparent 0 79px, rgba(0, 0, 0, 0.07) 79px 80px),
    #d5d0c6;
}
.wall { background: linear-gradient(#ebe7df, #ddd8ce); }
.wall__door { position: absolute; background: #6b4a33; }
.wall__window { position: absolute; background: linear-gradient(135deg, #9fb0b8, #6f8189); border: 6px solid #2d2f31; }

.roof-shadow {
  position: absolute; background: rgba(20, 18, 15, var(--shade, 0.4));
  filter: blur(6px); opacity: var(--o, 1);
  transition: background-color 0.5s;
}
.survey-line {
  position: absolute; height: 0; border-top: 2px dashed var(--meni);
  opacity: var(--o, 1);
}
.survey-line span {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  font: 700 18px/1 var(--font-body); color: var(--meni); white-space: nowrap;
}

/* Material atap. Setiap kelas meniru tampilan lembaran asli dari atas. */
.roof .face { --roof: rgba(214, 232, 236, 0.5); background: var(--roof); }
.scene[data-roof="polycarbonate"] .roof .face {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px 9px),
    rgba(206, 228, 233, 0.5);
}
.scene[data-roof="alderon"] .roof .face {
  background:
    repeating-linear-gradient(90deg, #8f3f2a 0 6px, #a9523a 6px 14px, #7d3524 14px 20px);
}
.scene[data-roof="kaca"] .roof .face {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 0) 50%),
    rgba(190, 220, 226, 0.28);
  outline: 2px solid rgba(40, 44, 48, 0.8);
}
.scene[data-roof="spandek"] .roof .face {
  background: repeating-linear-gradient(90deg, #c3c7c9 0 4px, #9ea3a6 4px 8px, #d6d9db 8px 20px, #b3b7ba 20px 26px);
}
.scene[data-roof="membrane"] .roof .face {
  background: radial-gradient(ellipse at 50% 50%, #fbfaf6 0%, #e9e6de 100%);
  opacity: calc(var(--o, 1) * 0.94);
}
.scene[data-roof="awning"] .roof .face {
  background: repeating-linear-gradient(90deg, #2f4a3d 0 18px, #ece6d6 18px 36px);
}

/* ---------- Bagian rakit (sticky, terikat scroll) ---------- */
.assemble { position: relative; background: var(--steel); color: var(--paper); }
.assemble__track { height: 340vh; }
.assemble__sticky {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  align-items: center; gap: 2rem;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  max-width: var(--max); margin-inline: auto;
}
.assemble h2 { font-size: var(--step-3); }
.assemble .eyebrow { color: #c9c4ba; }
.assemble .scene { height: min(72svh, 640px); }

.steps { margin-top: 2rem; display: grid; gap: 0.25rem; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 0.5rem;
  padding: 0.85rem 0; border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9e998f;
  transition: color 0.4s var(--ease-out);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-weight: 700; font-size: var(--step--1); padding-top: 0.2rem;
}
.steps h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-0); letter-spacing: 0; }
.steps p {
  grid-column: 2; font-size: var(--step--1); max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.steps li.is-active { color: var(--paper); }
.steps li.is-active::before { color: #e0805c; }
.steps li.is-active p { max-height: 8rem; }
.steps li.is-done { color: #d4cfc5; }

.assemble__hint { margin-top: 1.25rem; font-size: var(--step--1); color: #b5b0a6; }

@media (max-width: 900px) {
  .assemble__track { height: 300vh; }
  .assemble__sticky {
    grid-template-columns: 1fr; align-content: start; gap: 0.5rem;
    padding-top: calc(var(--header-h) + 0.75rem);
  }
  .assemble h2 { font-size: var(--step-2); }
  .assemble .scene { height: 46svh; order: 2; }
  .steps { margin-top: 0.75rem; order: 3; }
  .steps li { display: none; border: 0; padding: 0.25rem 0; }
  .steps li.is-active { display: grid; }
  .steps li.is-active p { max-height: none; }
  .assemble__hint { display: none; }
}

/* Tanpa animasi: kanopi tampil utuh dan semua langkah terbaca */
.assemble.is-static .assemble__track { height: auto; }
.assemble.is-static .assemble__sticky { position: relative; height: auto; }
.assemble.is-static .steps li { display: grid; color: var(--paper); }
.assemble.is-static .steps p { max-height: none; }

/* ---------- Konfigurator jenis kanopi ---------- */
.config { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.config__controls { display: grid; gap: 2rem; }
.config legend {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.6rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.03em; color: var(--ink-soft);
}
.opt-list { border-top: 1px solid var(--ink); }
.opt { position: relative; border-bottom: 1px solid var(--line); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem;
  min-height: 56px; padding: 0.7rem 0.25rem; cursor: pointer;
}
.opt__name {
  font-family: var(--font-display); font-weight: 300; font-size: var(--step-1); line-height: 1.15;
  transition: transform 0.5s var(--ease-out);
}
.opt__name small { display: block; font-family: var(--font-body); font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.15rem; }
.opt__mark {
  width: 22px; height: 15px; border: 1.5px solid var(--ink);
  clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 100%);
  background: transparent; transition: background-color 0.3s;
}
.opt label:hover .opt__name { transform: translateX(0.5rem); }
.opt input:checked + label .opt__name { transform: translateX(0.75rem); }
.opt input:checked + label .opt__mark { background: var(--meni); border-color: var(--meni); }
.opt input:checked + label { box-shadow: inset 0 -2px 0 var(--meni); }
.opt input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }

.config__stage { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1.25rem; }
.config .scene {
  height: clamp(320px, 46vw, 520px);
  background: linear-gradient(#e9e5dd, #dcd7cd);
  cursor: grab;
}
.config .scene:active { cursor: grabbing; }
.scene__note {
  position: absolute; left: 0.85rem; bottom: 0.75rem; z-index: 2;
  font-size: 0.78rem; color: var(--ink-soft); background: rgba(242, 240, 235, 0.9); padding: 0.25rem 0.5rem;
}
.scene__label {
  position: absolute; right: 0.85rem; top: 0.75rem; z-index: 2;
  font-size: var(--step--1); font-weight: 700; background: var(--ink); color: var(--paper); padding: 0.35rem 0.65rem;
  transition: background-color 0.4s var(--ease-out), transform 0.3s var(--ease-out);
}
.scene__label.is-updated {
  background: var(--meni);
  transform: scale(1.04);
}

.info { border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.info[hidden] { display: none; }
.info h3 { font-size: var(--step-2); }
.info > p { margin-top: 0.6rem; color: var(--ink-soft); max-width: 60ch; }
.info__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
.info__cols h4 { font-size: var(--step--1); font-weight: 700; margin-bottom: 0.35rem; }
.info__cols p { font-size: var(--step--1); color: var(--ink-soft); }
.info__frame { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-soft); }
.info__frame strong { color: var(--ink); }
@media (max-width: 900px) {
  .config { grid-template-columns: 1fr; }
  .config__stage { position: relative; top: 0; order: -1; }
}
@media (max-width: 520px) { .info__cols { grid-template-columns: 1fr; } }

/* ---------- Survei: foto + daftar periksa ---------- */
.survey { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.frame { position: relative; overflow: hidden; background: var(--paper-deep); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-43 { aspect-ratio: 4 / 3; }
.checklist { margin-top: 1.75rem; border-top: 1px solid var(--ink); }
.checklist li {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.5rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.checklist .slope { margin-top: 0.4rem; color: var(--meni); }
.checklist strong { display: block; font-weight: 700; }
.checklist span { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 900px) { .survey { grid-template-columns: 1fr; } }

/* Kartu foto miring 3D saat disentuh kursor (desktop) */
.tilt { transform-style: preserve-3d; transition: transform 0.6s var(--ease-out); will-change: transform; }

/* ---------- Wilayah ---------- */
.region-list { border-top: 1px solid var(--ink); }
.region-list li { border-bottom: 1px solid var(--ink); }
.region-list a {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; align-items: center; gap: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0; text-decoration: none;
}
.region-list__no { font-size: var(--step--1); font-weight: 700; color: var(--meni); }
.region-list__name {
  font-family: var(--font-display); font-weight: 300; font-size: var(--step-3); line-height: 1;
  transition: transform 0.6s var(--ease-out);
}
.region-list__name small { display: block; margin-top: 0.5rem; font-family: var(--font-body); font-size: var(--step--1); color: var(--ink-soft); }
.region-list__go { font-size: var(--step--1); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.region-list a:hover .region-list__name,
.region-list a:focus-visible .region-list__name { transform: translateX(1rem); }
@media (max-width: 640px) {
  .region-list a { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .region-list__go { grid-column: 2; }
}

.jabar { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.5rem 4rem; }
.jabar h3 { font-size: var(--step-2); }
.jabar p { color: var(--ink-soft); margin-top: 0.75rem; }
.city-cols { columns: 3 11rem; column-gap: 2rem; font-size: var(--step--1); }
.city-cols li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .jabar { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2rem 4rem; }
.faq h2 { font-size: var(--step-3); }
.faq__intro { margin-top: 1.25rem; color: var(--ink-soft); max-width: 42ch; }
.faq__list { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 56px; padding: 1rem 0; cursor: pointer; list-style: none;
  font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; transition: transform 0.4s var(--ease-out); }
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__item p { padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 64ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Order / survei ---------- */
.order { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem 4rem; }
.order h2 { font-size: var(--step-3); }
.order__note { margin-top: 1.25rem; max-width: 40ch; }
.order__direct { margin-top: 1.5rem; font-weight: 600; }
.order__direct a { text-underline-offset: 4px; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.75rem 0.9rem;
  border: 1px solid rgba(246, 239, 233, 0.55); border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.14); color: var(--meni-ink);
  font: inherit; font-size: var(--step-0);
}
.field select option { color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 239, 233, 0.72); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--meni-ink); outline-offset: 2px; }
.field.has-error input, .field.has-error select { border-color: #ffd2bf; border-width: 2px; }
.field__error { font-size: var(--step--1); font-weight: 600; color: #ffe1d4; min-height: 1em; }
.form__status { font-size: var(--step--1); }
.form__status a { font-weight: 700; }
@media (max-width: 900px) { .order { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d4ca; padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; }
.footer__logo { font-size: 1.6rem; color: var(--paper); }
.footer__tagline { margin-top: 1rem; max-width: 38ch; font-size: var(--step--1); }
.footer__heading { font-family: var(--font-body); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.03em; color: var(--paper); margin-bottom: 0.9rem; }
.footer__list { display: grid; gap: 0.55rem; font-size: var(--step--1); }
.footer__list a { text-underline-offset: 3px; }
.footer__label { display: block; color: #a7a196; font-size: 0.78rem; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #3a3835;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.82rem;
}
.footer__bottom a { text-underline-offset: 3px; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- Tombol WhatsApp melayang ---------- */
.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 45;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), color 0.4s;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Halaman wilayah ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--ink); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: var(--step--1); color: var(--ink-soft); margin-bottom: 1.5rem; }
.crumbs a { text-underline-offset: 3px; }
.page-hero h1 { font-size: var(--step-4); font-family: var(--font-body); font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; line-height: 0.98; max-width: 16ch; }
.page-hero .lead { margin-top: 1.5rem; max-width: 56ch; color: var(--ink-soft); }
.page-hero .hero__actions { margin-top: 1.75rem; }
.local { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem 4rem; }
.local h2 { font-size: var(--step-2); margin-bottom: 1rem; }
.local p + p { margin-top: 1rem; }
.local p { color: var(--ink-soft); max-width: 62ch; }
.kec { columns: 2 10rem; column-gap: 2rem; margin-top: 1rem; font-size: var(--step--1); }
.kec li { break-inside: avoid; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.type-links { margin-top: 1rem; border-top: 1px solid var(--ink); }
.type-links li { border-bottom: 1px solid var(--line); }
.type-links a { display: block; padding: 0.85rem 0; text-decoration: none; font-weight: 600; }
.type-links a:hover { color: var(--meni); }
@media (max-width: 900px) { .local { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.js [data-reveal="rise"] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal="rise"].is-in { opacity: 1; transform: none; }
.js [data-reveal="lines"] .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.js [data-reveal="lines"] .line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal="lines"].is-in .line > span { transform: none; }
/* Foto terbuka dari bawah ke atas seperti terpal yang ditarik dari atap */
.js [data-reveal="curtain"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease-out); }
.js [data-reveal="curtain"].is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal="lines"] .line > span { transform: none !important; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: left; padding: var(--gutter); }
.notfound h1 { font-size: var(--step-4); font-family: var(--font-body); font-weight: 800; }
.notfound p { margin-top: 1rem; color: var(--ink-soft); max-width: 40ch; }
.notfound .hero__actions { margin-top: 1.5rem; }
