/* =========================================================================
   Zeven Property: aksen BLUEPRINT (uji, 15 Nov 2026)
   Lapisan tambahan di atas style.css. Hanya di 4 titik:
   1) pembuka: sketsa rumah logo tergambar, lalu "dibangun" (isi biru naik)
   2) garis pandu pembuka diberi skala penggaris
   3) kartu proyek: garis ukur + koordinat kawasan saat kartu aktif
   4) From Plan to Sale: kertas grid, sketsa per langkah, kotak judul gambar
   ========================================================================= */

:root { --bp-line: rgba(255, 255, 255, .78); }

/* ---------- 0) Layar pembuka: logo PERSIS (diukur dari logo.png) ----------
   garis tipis tergambar (rumah + Z) -> isi biru naik dari bawah -> garis memudar,
   jadi yang tersisa bentuk logo asli dengan sudut tajam */
.pre__logo { position: relative; width: 92px; height: auto; aspect-ratio: 604 / 685; }
.pre__logo svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pre__fillbox { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); animation: preRise .5s cubic-bezier(.6,0,.2,1) .5s forwards; }
.pre__fill { fill: var(--brand); opacity: 1; animation: none; }
.pre__line {
  fill: none; stroke: var(--brand); stroke-width: 7; stroke-linejoin: miter; stroke-linecap: square;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: preDraw .55s cubic-bezier(.5,.1,.3,1) forwards, preLineOut .25s ease .95s forwards;
}
.pre__line--z { animation-delay: .12s, .95s; }
@keyframes preRise { to { clip-path: inset(0 0 0 0); } }
@keyframes preLineOut { to { opacity: 0; } }

/* ---------- 1) Pembuka ---------- */
.hero__paper {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(90deg, transparent 15%, rgba(0,0,0,.6) 50%, #000 85%);
          mask-image: linear-gradient(90deg, transparent 15%, rgba(0,0,0,.6) 50%, #000 85%);
}
.js .hero__paper { opacity: 0; transition: opacity 1s ease .15s; }
.js.is-loaded .hero__paper { opacity: 1; }

.hero__bp {
  right: clamp(60px, 8vw, 150px); bottom: auto; top: 50%;
  width: clamp(320px, 30vw, 470px); aspect-ratio: 640 / 680;
  margin-top: calc(clamp(320px, 30vw, 470px) * -0.5);
  color: inherit; opacity: 1;
}
.js .hero__bp, .js.is-loaded .hero__bp { transform: none; opacity: 1; transition: none; }
.hero__bp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.bp-fill { position: absolute; inset: 0; }
.bp-fill path { fill: var(--brand); opacity: .92; }

.bp-lines path { fill: none; stroke: var(--bp-line); stroke-linecap: square; }
.bp-con path { stroke: rgba(255,255,255,.42); stroke-width: 1.4; }
.bp-out { stroke-width: 3.2; stroke: #fff !important; stroke-linejoin: miter; }
.bp-hid { stroke-width: 1.6; stroke-dasharray: 9 7; }
.bp-dim path { stroke-width: 1.4; stroke: rgba(255,255,255,.7); }
.bp-txt text { fill: #fff; font: 600 15px var(--font); letter-spacing: .12em; }

/* urutan: garis bantu -> garis luar -> garis ukur -> angka -> isi biru naik ("dibangun") */
.js .bp-lines [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .bp-con path { transition: stroke-dashoffset .7s ease-out .35s; }
.js .bp-out { transition: stroke-dashoffset 1.25s cubic-bezier(.5,.1,.3,1) .6s; }
.js .bp-dim path { transition: stroke-dashoffset .8s ease-out 1.25s; }
.js .bp-dim path:nth-child(2) { transition-delay: 1.35s; }
.js .bp-dim path:nth-child(3) { transition-delay: 1.45s; }
.js .bp-dim path:nth-child(4) { transition-delay: 1.55s; }
.js .bp-dim path:nth-child(5) { transition-delay: 1.65s; }
.js .bp-hid, .js .bp-txt { opacity: 0; transition: opacity .6s ease 1.7s; }
.js .bp-fill { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.6,0,.2,1) 2.05s; }
.js.is-loaded .bp-lines [pathLength] { stroke-dashoffset: 0; }
.js.is-loaded .bp-hid, .js.is-loaded .bp-txt { opacity: 1; }
.js.is-loaded .bp-fill { clip-path: inset(0 0 0 0); }

/* ---------- 2) Garis pandu pembuka: skala penggaris ---------- */
.hero__grid span::before, .hero__grid span::after {
  content: ""; position: absolute; top: 0; bottom: 0; pointer-events: none;
}
.hero__grid span::before { left: 0; width: 6px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.45) 0 1px, transparent 1px 32px); }
.hero__grid span::after { left: 0; width: 12px; background: repeating-linear-gradient(180deg, rgba(255,255,255,.6) 0 1px, transparent 1px 160px); }
.hero__grid span:last-child::before, .hero__grid span:last-child::after { left: auto; right: 0; }

/* ---------- 3) Kartu proyek: garis ukur ---------- */
.hc-dim { position: absolute; z-index: 2; pointer-events: none; color: var(--ink-blue); }
.hc-dim i { position: absolute; background: currentColor; transition: transform .7s var(--ease); }
.hc-dim b {
  position: absolute; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; white-space: nowrap;
  opacity: 0; transition: opacity .4s ease .35s;
}
.hc-dim::before, .hc-dim::after {
  content: ""; position: absolute; width: 11px; height: 1px; background: currentColor;
  transform: rotate(-45deg); opacity: 0; transition: opacity .3s ease .5s;
}
/* datar: dari puncak atap ke tepi kanan */
.hc-dim--h { left: 50.5%; right: 0; top: -22px; height: 1px; }
.hc-dim--h i { inset: 0; transform: scaleX(0); transform-origin: left; }
.hc-dim--h::before { left: -5px; top: 0; }
.hc-dim--h::after { right: -5px; top: 0; }
.hc-dim--h b { right: 0; bottom: 7px; }
/* tegak: tinggi dinding kanan */
.hc-dim--v { right: -46px; top: 21.9%; bottom: 0; width: 1px; }
.hc-dim--v i { inset: 0; transform: scaleY(0); transform-origin: top; }
.hc-dim--v::before { top: -1px; left: -5px; }
.hc-dim--v::after { bottom: -1px; left: -5px; }
.hc-dim--v b { left: 9px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }
/* garis bantu tipis dari sudut bingkai ke garis ukur */
.hc-dim--h > s, .hc-dim--v > s { position: absolute; border: 0; background: currentColor; opacity: 0; transition: opacity .4s ease .3s; }
.hc-dim--h > s { width: 1px; top: -6px; height: 20px; }
.hc-dim--h > s:first-of-type { left: 0; height: 28px; }
.hc-dim--h > s:last-of-type { right: 0; height: calc(var(--roof, 0px) + 28px); }
.hc-dim--v > s { height: 1px; left: -26px; width: 34px; }
.hc-dim--v > s:first-of-type { top: 0; }
.hc-dim--v > s:last-of-type { bottom: 0; }

.hcard.is-active .hc-dim i, .hcard:hover .hc-dim i { transform: none; }
.hcard.is-active .hc-dim b, .hcard.is-active .hc-dim::before, .hcard.is-active .hc-dim::after,
.hcard:hover .hc-dim b, .hcard:hover .hc-dim::before, .hcard:hover .hc-dim::after { opacity: 1; }
.hcard.is-active .hc-dim > s, .hcard:hover .hc-dim > s { opacity: .35; }

/* ---------- 4) From Plan to Sale: kertas blueprint ---------- */
.flow--bp { position: relative; overflow: hidden; background: #f3f8fe; }
.flow--bp::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(68,156,254,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68,156,254,.16) 1px, transparent 1px),
    linear-gradient(rgba(68,156,254,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68,156,254,.08) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 50%, #000 40%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 60% 50%, #000 40%, transparent 100%);
}
.flow--bp .flow__in { position: relative; z-index: 1; }
.flow--bp .flow__step { grid-template-columns: 64px 1fr 120px; }
.flow--bp .flow__rail { background: #cfe0f6; }

.flow__sk { width: 120px; height: 120px; margin-top: 4px; overflow: visible; }
.flow__sk path { fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.flow__sk .sk-ghost path { stroke: #c9daf2; stroke-dasharray: 3 4; }
.flow__sk .sk-ink path { stroke: var(--brand); stroke-dasharray: 1; stroke-dashoffset: 1; }
.flow__sk .sk-ink path { transition: stroke-dashoffset .9s cubic-bezier(.5,.1,.3,1); }
.flow__sk .sk-ink path:nth-child(2) { transition-delay: .2s; }
.flow__sk .sk-ink path:nth-child(3) { transition-delay: .4s; }
.flow__sk .sk-ink path:nth-child(4) { transition-delay: .6s; }
.flow__step.is-on .flow__sk .sk-ink path { stroke-dashoffset: 0; }
.flow__step.is-now .flow__sk .sk-ink path { stroke: var(--ink-blue); }

.tblock {
  position: absolute; z-index: 1; right: var(--side); bottom: 36px;
  display: grid; grid-template-columns: auto auto auto auto;
  border: 1px solid rgba(47,96,148,.4); background: rgba(255,255,255,.75);
  font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: .06em; text-transform: uppercase;
}
.tblock div { padding: 8px 16px 9px; }
.tblock div + div { border-left: 1px solid rgba(47,96,148,.4); }
.tblock small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .18em; color: #8aa5c6; margin-bottom: 2px; }

/* ---------- Layar sempit ---------- */
@media (max-width: 1280px) {
  .hero__bp { right: 40px; width: clamp(280px, 30vw, 380px); margin-top: calc(clamp(280px, 30vw, 380px) * -0.5); }
}
@media (max-width: 960px) {
  .hero__paper { -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 80%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.5) 55%, transparent 80%); }
  .hero__bp { top: 104px; margin-top: 0; right: 24px; width: min(56vw, 300px); }
  .bp-txt text { font-size: 22px; }
  .bp-out { stroke-width: 4.5; }
  .hc-dim--v { display: none; }
  .hc-dim--h { top: -16px; }
  .flow--bp .flow__step { grid-template-columns: 48px 1fr; }
  .flow__sk { position: absolute; right: 0; top: 0; width: 64px; height: 64px; margin: 0; }
  .flow__sk path { stroke-width: 2.6; }
  .flow--bp .flow__body h3 { padding-right: 76px; }
  .tblock { position: relative; right: auto; bottom: auto; margin: 56px 0 0; grid-template-columns: 1fr 1fr; }
  .tblock div:nth-child(3) { border-left: 0; }
  .tblock div:nth-child(n+3) { border-top: 1px solid rgba(47,96,148,.4); }
}
@media (max-width: 600px) {
  .hero__bp { width: min(58vw, 240px); top: 96px; right: 18px; }
}
/* ponsel berlayar pendek: sketsa dikecilkan agar tak mepet judul */
@media (max-width: 960px) and (max-height: 700px) {
  .hero__bp { width: min(46vw, 180px); top: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero__paper, .js .bp-hid, .js .bp-txt { opacity: 1; transition: none; }
  .js .bp-lines [pathLength] { stroke-dashoffset: 0; transition: none; }
  .js .bp-fill { clip-path: none; transition: none; }
  .flow__sk .sk-ink path { stroke-dashoffset: 0; transition: none; }
  .hc-dim i { transform: none; } .hc-dim b, .hc-dim::before, .hc-dim::after { opacity: 1; }
}

/* =========================================================================
   v13: PEMBUKA TANPA FOTO, sketsa logo Zeven di atas kertas blueprint biru tua
   + kotak judul gambar di pojok kanan bawah.
   ========================================================================= */
.hero--draw { background: radial-gradient(110% 95% at 72% 62%, #1d4f88 0%, #143b6b 42%, #0c2648 100%); }
.hero--draw::before { background: linear-gradient(90deg, rgba(8,24,46,.5) 0%, rgba(8,24,46,.18) 40%, transparent 65%); }
.hero--draw .hero__media { inset: 0; }
.hero--draw .hero__paper {
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  -webkit-mask-image: none; mask-image: none;
}
.hero__draw { position: absolute; inset: 0; }
.hero--draw .hero__grid span:last-child { display: none; }
.js .hero--draw .hero__img, .js.is-loaded .hero--draw .hero__img { transform: none; transition: none; }

/* kotak judul gambar di pojok kanan bawah pembuka */
.hero__tb {
  position: absolute; z-index: 3; right: var(--side); bottom: 28px;
  display: grid; grid-template-columns: repeat(4, auto);
  border: 1px solid rgba(255,255,255,.4); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.hero__tb div { padding: 7px 14px 8px; }
.hero__tb div + div { border-left: 1px solid rgba(255,255,255,.4); }
.hero__tb small { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .2em; color: rgba(255,255,255,.55); margin-bottom: 2px; }
.js .hero__tb { opacity: 0; transition: opacity .8s ease 2.5s; }
.js.is-loaded .hero__tb { opacity: 1; }

@media (max-width: 960px) {
  .hero__tb { display: none; }
  .hero--draw::before { background: linear-gradient(180deg, transparent 40%, rgba(8,24,46,.55) 75%); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__tb { opacity: 1; transition: none; }
}

/* tanpa foto ruangnya lega: sketsa logo diperbesar */
.hero--draw .hero__bp { width: clamp(360px, 34vw, 540px); margin-top: calc(clamp(360px, 34vw, 540px) * -0.5); }
@media (max-width: 1280px) {
  .hero--draw .hero__bp { width: clamp(300px, 33vw, 420px); margin-top: calc(clamp(300px, 33vw, 420px) * -0.5); }
}
@media (max-width: 960px) {
  .hero--draw .hero__bp { width: min(64vw, 330px); margin-top: 0; }
}
@media (max-width: 960px) and (max-height: 700px) {
  .hero--draw .hero__bp { width: min(46vw, 180px); }
}
