/* PT. Raja Buana Makmur — design system. Warna mengikuti PRD §4.2. */
:root {
  --royal: #0E118A;
  --navy: #080B35;
  --charcoal: #15171D;
  --white: #FFFFFF;
  --mist: #F2F3F7;
  --steel: #9297A8;
  /* turunan tint royal blue untuk teks/garis di atas latar gelap */
  --royal-300: #9EA2FF;
  --royal-500: #2B2FD0;
  --ink: #15171D;
  --ink-soft: #4a4f63; /* teks sekunder di atas terang, kontras AA */
  --line: #d9dce8;
  --f-head: 'Space Grotesk', 'Sora', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
  --radius: 4px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--f-body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; }
.h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--white); color: var(--navy); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--royal-300); outline-offset: 3px; }
.sec--light :focus-visible, .sec--mist :focus-visible, .form :focus-visible { outline-color: var(--royal); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--ink-soft); }
.pending { color: var(--steel); font-style: italic; }
.site-footer .pending { color: #b4b8c9; }
.pending-block { border: 1px dashed var(--steel); padding: 1.1rem 1.25rem; border-radius: var(--radius); color: var(--ink-soft); background: rgba(255,255,255,.6); }
.note { font-size: .9rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.5rem; font: 600 .98rem/1 var(--f-body); border-radius: var(--radius); border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s, color .2s; }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--royal-500), var(--royal)); box-shadow: 0 8px 24px -10px rgba(43,47,208,.8); }
.btn--primary:hover { background: linear-gradient(135deg, #3a3ee6, var(--royal-500)); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--royal); }
.btn--dark:disabled { background: #cfd2df; color: #5b6075; cursor: not-allowed; }
.btn--light { background: #fff; color: var(--royal); }
.btn--light:hover { background: var(--mist); }
.btn--outline { color: #fff; border-color: rgba(255,255,255,.55); }
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--wa { background: var(--navy); color: #fff; }
.btn--wa:hover { background: var(--royal); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: #fff; transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.is-solid { background: rgba(8,11,53,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(158,162,255,.18); }
.site-header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 0 1px rgba(158,162,255,.95)) drop-shadow(0 0 8px rgba(43,47,208,.6)); }
.brand__name { font: 700 1.05rem/1.1 var(--f-head); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav ul { display: flex; gap: 1.6rem; }
.nav ul a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem 0; position: relative; color: rgba(255,255,255,.82); }
.nav ul a:hover, .nav ul a[aria-current] { color: #fff; }
.nav ul a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--royal-300); }
.nav__tools { display: flex; align-items: center; gap: 1rem; }
.nav .btn { min-height: 42px; padding: .5rem 1.1rem; font-size: .9rem; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); overflow: hidden; font: 600 .8rem/1 var(--f-body); }
.lang__item { padding: .55rem .7rem; text-decoration: none; color: rgba(255,255,255,.7); }
.lang__item[aria-current] { background: #fff; color: var(--navy); }
.lang__item.is-off { opacity: .45; cursor: not-allowed; }
.burger { display: none; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; color: #fff; }
.burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.burger i:first-of-type { top: 18px; } .burger i:last-of-type { top: 28px; }
.burger[aria-expanded="true"] i:first-of-type { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { top: 23px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; background: var(--navy); color: #fff; overflow: hidden; }
.terrain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 78% 35%, rgba(43,47,208,.5), transparent 70%),
  radial-gradient(40% 40% at 10% 100%, rgba(14,17,138,.55), transparent 70%),
  linear-gradient(180deg, rgba(8,11,53,0) 60%, var(--navy)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero__brand { font: 500 1rem/1.3 var(--f-body); color: var(--royal-300); margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.75rem, 7.2vw, 6.25rem); line-height: .98; letter-spacing: -.035em; max-width: 12ch; margin-bottom: 1.5rem; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.78); max-width: 46ch; margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__visual { will-change: transform; }

/* ---------- Slot foto resmi ---------- */
.slot { position: relative; margin: 0; width: 100%; aspect-ratio: var(--ratio, 4/3); display: flex; align-items: flex-end; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(rgba(14,17,138,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(14,17,138,.07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, #e4e6f1, #d7daea); }
.slot figcaption { position: relative; padding: 1rem 1.1rem; display: grid; gap: .15rem; font-size: .82rem; color: var(--ink-soft); line-height: 1.35; }
.slot figcaption strong { color: var(--navy); font-size: .9rem; }
.slot__big { position: absolute; right: .6rem; top: .2rem; font: 700 clamp(3.5rem, 9vw, 7rem)/1 var(--f-head); letter-spacing: -.04em; color: rgba(14,17,138,.14); }
.slot__corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--royal); opacity: .65; }
.slot__corner--tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; } .slot__corner--tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.slot__corner--bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; } .slot__corner--br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }
.hero .slot { background:
    linear-gradient(rgba(158,162,255,.12) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(158,162,255,.12) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(160deg, rgba(43,47,208,.25), rgba(8,11,53,.6));
  border: 1px solid rgba(158,162,255,.28); backdrop-filter: blur(2px); }
.hero .slot figcaption { color: rgba(255,255,255,.7); } .hero .slot figcaption strong { color: #fff; }
.hero .slot__corner { border-color: var(--royal-300); opacity: 1; }

/* ---------- Sections ---------- */
.sec { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sec--light { background: var(--white); }
.sec--mist { background: var(--mist); }
.sec--navy { background: var(--navy); color: #fff; }
.sec__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec__head p { color: var(--ink-soft); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--top { align-items: start; }
.split__text p { font-size: 1.1rem; }
.split__text .btn { margin-top: .75rem; }

/* Produk */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.25rem); }
.pcard { display: block; text-decoration: none; background: var(--white); border-radius: var(--radius); padding: 1rem; transition: box-shadow .25s, transform .25s; }
.pcard:hover { box-shadow: 0 24px 48px -28px rgba(8,11,53,.5); transform: translateY(-3px); }
.pcard__body { padding: 1.25rem .5rem .5rem; }
.pcard h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.pcard p { color: var(--ink-soft); }
.pcard__cta { font-weight: 600; color: var(--royal); border-bottom: 2px solid currentColor; }
.pcard:hover .pcard__cta { color: var(--royal-500); }

/* Teknologi */
.tech__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.tech__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
.tech__svg { width: 100%; height: auto; margin-top: 2rem; color: var(--royal-300); border: 1px solid rgba(158,162,255,.2); border-radius: var(--radius); background: rgba(14,17,138,.12); }
.tech__ground { fill: rgba(43,47,208,.28); }
.tech__line { fill: none; stroke: var(--royal-300); stroke-width: 2.5; }
.tech__level { stroke: #fff; stroke-width: 1; stroke-dasharray: 6 6; opacity: .55; }
.tech__pin line { stroke: #fff; stroke-width: 1.5; }
.tech__pin circle { fill: #fff; stroke: var(--royal-500); stroke-width: 3; }
.tech__pin { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.tech__cap { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: .75rem; }
.tech__steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .35; transition: opacity .4s; border-left: 2px solid rgba(158,162,255,.2); padding-left: 2rem; }
.tech__steps li.is-active { opacity: 1; border-left-color: var(--royal-300); }
.tech__steps h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.tech__steps p { color: rgba(255,255,255,.78); font-size: 1.1rem; }

/* Aplikasi */
.rows li { border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows a, .rows--open li > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 2rem; align-items: baseline; padding: 1.75rem 0; text-decoration: none; transition: padding-left .25s, background-color .25s; }
.rows a:hover { padding-left: 1rem; background: var(--mist); }
.rows h3, .rows h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); margin: 0; }
.rows h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.rows p { margin: 0; color: var(--ink-soft); }
.rows--open li { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Nilai */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.value { border-top: 3px solid var(--royal); padding-top: 1.25rem; }
.value h3, .value h2 { font-size: 1.4rem; }
.value p { color: var(--ink-soft); margin: 0; }

/* CTA */
.cta { background: radial-gradient(70% 120% at 85% 0%, var(--royal-500), transparent 60%), linear-gradient(135deg, var(--royal), var(--navy)); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { max-width: 20ch; margin: 0; font-size: clamp(2rem, 4.4vw, 3.5rem); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Page header */
.phead { position: relative; isolation: isolate; background: var(--navy); color: #fff; padding: calc(var(--header-h) + 2.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.phead::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 85% 10%, rgba(43,47,208,.4), transparent 70%); }
.phead__title { font-size: clamp(2.4rem, 6vw, 4.75rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.phead__lead { color: rgba(255,255,255,.78); font-size: 1.2rem; max-width: 52ch; }
.phead__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.5rem; }
.crumbs { font-size: .88rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.7); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: '/'; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }

/* Spesifikasi, galeri, chips */
.table-wrap { overflow-x: auto; }
.spec { width: 100%; border-collapse: collapse; background: #fff; }
.spec th, .spec td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { font-weight: 600; width: 45%; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips a { display: inline-block; padding: .5rem 1rem; border: 1.5px solid var(--royal); border-radius: 999px; text-decoration: none; color: var(--royal); font-weight: 600; font-size: .92rem; transition: background-color .2s, color .2s; }
.chips a:hover { background: var(--royal); color: #fff; }
.chips--lg a { font-size: 1.05rem; padding: .7rem 1.4rem; }

/* Kontak & form */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__side { background: var(--mist); padding: 1.75rem; border-radius: var(--radius); }
.contact__side dt { font-weight: 600; margin-top: 1.1rem; }
.contact__side dd { margin: 0; color: var(--ink-soft); }
.form { display: grid; gap: 1.1rem; margin-top: 1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; padding: .8rem .9rem; min-height: 48px; border: 1.5px solid #b8bccd; border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--royal); outline: 2px solid var(--royal); outline-offset: 0; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #b3261e; }
.field__err { color: #b3261e; font-size: .85rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__status { margin: 0; font-weight: 500; }
.form__status.is-ok { color: #1a6b3a; } .form__status.is-err { color: #b3261e; }

/* Footer */
.site-footer { background: var(--charcoal); color: #d6d8e3; padding: clamp(3rem, 7vw, 5rem) 0 1.5rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.site-footer__about p { margin-top: 1rem; color: #b4b8c9; max-width: 34ch; }
.footer-h { font: 600 .95rem/1.2 var(--f-head); color: #fff; margin-bottom: 1rem; letter-spacing: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { text-decoration: none; color: #d6d8e3; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-social a { margin-right: .8rem; text-transform: capitalize; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: #9ea2b3; }
.site-footer__legal p { margin: 0; }

/* Reveal: hanya blok teknologi & hero yang bergerak otomatis; sisanya statis */
@media (max-width: 1020px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 1rem var(--gutter) 2rem; transform: translateY(-110%); visibility: hidden; transition: transform .3s, visibility .3s; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 1rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav ul a[aria-current]::after { display: none; }
  .nav__tools { margin-top: 1.25rem; justify-content: space-between; flex-wrap: wrap; }
  .burger { display: block; }
  .site-header.menu-open { background: var(--navy); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero__grid, .split, .tech__grid, .contact { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__visual { max-width: 420px; }
  .tech__sticky { position: static; }
  .tech__steps li { min-height: 0; opacity: 1; padding: 1.5rem 0 1.5rem 1.5rem; }
  .pgrid, .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .rows a, .rows--open li > div { grid-template-columns: 1fr; gap: .5rem; }
  .form__row { grid-template-columns: 1fr; }
  .brand__name { font-size: .95rem; max-width: 11ch; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__visual { transform: none !important; }
}

/* ---------- Tambahan tema WordPress ---------- */
.nav ul .current-menu-item > a, .nav ul .current_page_item > a { color: #fff; }
.nav ul .current-menu-item > a::after, .nav ul .current_page_item > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--royal-300); }
.lang .lang__item, .lang li { list-style: none; }
.lang ul { display: flex; margin: 0; padding: 0; }
.lang li a { display: block; padding: .55rem .7rem; text-decoration: none; color: rgba(255,255,255,.7); }
.lang li.current-lang a { background: #fff; color: var(--navy); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose a { color: var(--royal); }
.prose img { height: auto; border-radius: var(--radius); }
.media { position: relative; aspect-ratio: var(--ratio, 4/3); overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.featlist li { padding: .8rem 0 .8rem 1.5rem; border-bottom: 1px solid var(--line); position: relative; }
.featlist li::before { content: ''; position: absolute; left: 0; top: 1.35rem; width: .6rem; height: 2px; background: var(--royal); }
.lang li a { text-transform: uppercase; }

/* ---------- Slider hero ---------- */
.hero--slider { --dur: 7s; display: block; padding: 0; }
.hslides { display: grid; min-height: 100svh; }
.hslide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 7rem; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s 1s; }
.hslide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; z-index: 1; }
.hslide__bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; transform: scale(1.12); transition: transform 9s cubic-bezier(.2,.6,.2,1); }
.hslide__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,11,53,.92), rgba(8,11,53,.45) 60%, rgba(8,11,53,.7)); }
.hslide.is-active .hslide__bg { transform: scale(1); }
.hslide__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; width: 100%; }
.hslide h1, .hslide h2 { font-size: clamp(2.4rem, 5.8vw, 5.2rem); line-height: 1; letter-spacing: -.035em; max-width: 14ch; margin-bottom: 1.5rem; color: #fff; }
.hslide__copy > * { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.hslide.is-active .hslide__copy > * { opacity: 1; transform: none; }
.hslide.is-active .hslide__copy > :nth-child(1) { transition-delay: .25s; }
.hslide.is-active .hslide__copy > :nth-child(2) { transition-delay: .4s; }
.hslide.is-active .hslide__copy > :nth-child(3) { transition-delay: .55s; }
.hslide.is-active .hslide__copy > :nth-child(4) { transition-delay: .7s; }
.hslide__art { position: relative; display: grid; place-items: center; min-height: 360px; }
.hslide__ring { position: absolute; width: min(100%, 420px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(158,162,255,.35); animation: hspin 40s linear infinite; }
.hslide__ring::after { content: ''; position: absolute; top: 8%; left: 14%; width: 12px; height: 12px; border-radius: 50%; background: var(--royal-300); box-shadow: 0 0 24px 4px rgba(158,162,255,.7); }
.hslide__ring--2 { width: min(78%, 320px); border-style: dashed; border-color: rgba(158,162,255,.22); animation-duration: 28s; animation-direction: reverse; }
.hslide__ring--2::after { display: none; }
@keyframes hspin { to { transform: rotate(360deg); } }
.hslide__logo { position: relative; width: min(62%, 260px); height: auto; filter: drop-shadow(0 24px 50px rgba(0,0,0,.45)); opacity: 0; transform: scale(.82); transition: opacity .9s ease .3s, transform 1.2s cubic-bezier(.2,.7,.2,1) .3s; }
.hslide.is-active .hslide__logo { opacity: 1; transform: none; animation: hfloat 6s ease-in-out 1.5s infinite alternate; }
@keyframes hfloat { to { transform: translateY(-14px); } }
.hslide__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; text-align: left; }
.hslide__list li { font: 700 clamp(1.7rem, 3.4vw, 3rem)/1.1 var(--f-head); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(158,162,255,.75); opacity: 0; transform: translateX(44px); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.7,.2,1); transition-delay: calc(.35s + var(--k) * .12s); }
.hslide__list li:first-child { color: #fff; -webkit-text-stroke: 0; }
.hslide.is-active .hslide__list li { opacity: 1; transform: none; }
.hctrl { position: absolute; left: 0; right: 0; bottom: 2.25rem; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-inline: auto; }
.hdots { display: flex; gap: .6rem; }
.hdot { width: clamp(44px, 7vw, 72px); height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.hdot i { position: relative; display: block; width: 100%; height: 3px; background: rgba(255,255,255,.25); overflow: hidden; border-radius: 2px; }
.hdot i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hdot.is-active i::after { animation: hfill var(--dur) linear forwards; }
.hero--slider.is-paused .hdot.is-active i::after { animation-play-state: paused; }
@keyframes hfill { to { transform: scaleX(1); } }
.hdot:focus-visible, .harrow:focus-visible { outline: 2px solid var(--royal-300); outline-offset: 3px; }
.hnav { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.7); font: 500 .9rem var(--f-body); }
.hcount { margin-right: .6rem; letter-spacing: .08em; } .hcount b { color: #fff; font-weight: 600; }
.harrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.04); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.harrow:hover { background: #fff; color: var(--navy); transform: scale(1.06); }
@media (max-width: 860px) {
  .hslides { min-height: 92svh; }
  .hslide { padding-bottom: 6.5rem; }
  .hslide__grid { grid-template-columns: 1fr; }
  .hslide__art { display: none; }
  .hcount { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hslide, .hslide__copy > *, .hslide__list li, .hslide__logo { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hslide__ring, .hslide.is-active .hslide__logo { animation: none; }
  .hdot.is-active i::after { animation: none; transform: scaleX(1); }
}

/* ---------- Item dalam series produk ---------- */
.pitem-nav { margin-bottom: 2rem; }
.pitems { display: grid; gap: 1.75rem; }
.pitem { background: #fff; border: 1px solid rgba(15,17,132,.12); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.25rem); scroll-margin-top: calc(var(--header-h) + 1rem); box-shadow: 0 12px 40px -24px rgba(15,17,132,.35); }
.pitem__head h3 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.pitem__head p { margin: 0 0 1.25rem; max-width: 70ch; }
.pitem__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .85rem; margin-bottom: 1.25rem; }
.pitem__photo { display: block; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: #eef0fb; }
.pitem__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pitem__photo:hover img { transform: scale(1.05); }
.pitem__videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.vid { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pitem__foot { margin: 0; }

/* ---------- Slider: foto & video di sisi kanan ---------- */
.hslide__art--media { min-height: 0; align-self: center; }
.hslide__media { position: relative; width: 100%; aspect-ratio: 4 / 3; margin: 0; border-radius: 24px; overflow: hidden; border: 1px solid rgba(158,162,255,.3); box-shadow: 0 34px 80px -30px rgba(0,0,0,.65); background: #0a0d3f; opacity: 0; transform: translateX(48px) scale(.97); transition: opacity .9s ease .3s, transform 1.2s cubic-bezier(.2,.7,.2,1) .3s; }
.hslide.is-active .hslide__media { opacity: 1; transform: none; }
.hslide__media--video { aspect-ratio: 16 / 10; }
.hslide__media img, .hslide__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hslide__media .vid { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
@media (max-width: 860px) {
  .hslide__art--media { display: block; margin-top: 2rem; }
  .hslide { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .hslide__media { transition-duration: .01ms !important; transition-delay: 0s !important; } }

/* ---------- Ilustrasi walking excavator (blok teknologi) ---------- */
.mach__leg { fill: none; stroke: #c9cbff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mach__leg--back { stroke: rgba(158,162,255,.45); stroke-width: 4; }
.mach__wheel { fill: #0a0d3f; stroke: #fff; stroke-width: 3; }
.mach__wheel--back { stroke: rgba(255,255,255,.4); }
.mach__chassis { fill: var(--royal-500); stroke: var(--royal-300); stroke-width: 1.5; }
.mach__cab { fill: var(--royal-500); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.mach__glass { fill: #dfe1ff; opacity: .92; }
.mach__boom { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.mach__bucket { fill: var(--royal-300); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
.hslide__logo--photo { width: auto; height: auto; max-width: min(62%, 300px); max-height: 300px; object-fit: contain; }

/* ---------- Lightbox foto & video produk ---------- */
.pitem__photo { position: relative; cursor: zoom-in; }
.pitem__photo::after { content: '\2922'; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,11,53,.72); color: #fff; font-size: 17px; opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s; }
.pitem__photo:hover::after, .pitem__photo:focus-visible::after { opacity: 1; transform: none; }
.pitem__video { position: relative; }
.vid__zoom { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(8,11,53,.78); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s, transform .2s; }
.vid__zoom:hover { background: var(--royal-500); transform: scale(1.08); }
.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 3.5rem 1rem 1.5rem; background: rgba(5,7,35,.94); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__stage { margin: 0; display: grid; place-items: center; max-width: 100%; max-height: calc(100vh - 8rem); overflow: hidden; border-radius: 14px; }
.lb__stage img { display: block; max-width: min(94vw, 1500px); max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; cursor: zoom-in; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.lb__stage.is-zoom img { transform: scale(2); cursor: zoom-out; }
.lb__stage--iframe, .lb__stage--video { width: min(94vw, 1200px); aspect-ratio: 16 / 9; max-height: calc(100vh - 8rem); background: #000; }
.lb__stage iframe, .lb__stage video { width: 100%; height: 100%; border: 0; }
.lb__cap { margin: 0; max-width: 90vw; color: rgba(255,255,255,.8); font-size: .95rem; text-align: center; }
.lb__btn { position: absolute; width: 48px; height: 48px; padding: 0 0 4px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.lb__btn:hover { background: #fff; color: var(--navy); }
.lb__btn:focus-visible { outline: 2px solid var(--royal-300); outline-offset: 3px; }
.lb__btn[hidden] { display: none; }
.lb__close { top: 14px; right: 14px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb__prev, .lb__next { top: auto; bottom: 14px; transform: none; } .lb__prev { left: calc(50% - 56px); } .lb__next { right: calc(50% - 56px); } .lb { padding-bottom: 5rem; } }
@media (prefers-reduced-motion: reduce) { .lb, .lb__stage img { transition-duration: .01ms !important; } }

/* ---------- Spesifikasi item: daftar berurutan ke bawah ---------- */
.pitem__desc { margin: 0 0 1.5rem; max-width: 72ch; }
.pitem__desc p { margin: 0 0 .75rem; }
.pitem__speclabel { font: 600 .95rem/1.3 var(--f-body); letter-spacing: .04em; text-transform: uppercase; color: var(--royal); }
.pitem__specs { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.pitem__specs li { position: relative; padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--line); line-height: 1.5; }
.pitem__specs li::before { content: ''; position: absolute; left: 0; top: 1.35rem; width: .7rem; height: 2px; background: var(--royal); }

/* ---------- Halaman produk: jarak antar-section lebih rapat ---------- */
.single-produk .sec { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.single-produk .sec--mist + .sec--mist, .single-produk .sec--light + .sec--light { padding-top: 0; }
.single-produk .pitems { gap: 1.25rem; }

/* ---------- Jarak section Item produk -> berikutnya (tanpa bergantung pada class body) ---------- */
#item-produk { padding-bottom: 1.5rem; }
#item-produk + .sec { padding-top: 2.5rem; }

/* ---------- Dropdown menu Produk ---------- */
.nav .has-sub { position: relative; display: flex; align-items: center; gap: .15rem; }
.nav__caret { width: 26px; height: 26px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.82); cursor: pointer; display: grid; place-items: center; border-radius: 6px; }
.nav__caret:hover, .nav__caret:focus-visible { color: #fff; background: rgba(255,255,255,.1); }
.nav__caret svg { transition: transform .25s ease; }
.nav .has-sub:hover .nav__caret svg, .nav .has-sub.is-open .nav__caret svg { transform: rotate(180deg); }
.nav .nav__sub { position: absolute; top: 100%; left: -.9rem; z-index: 60; min-width: 250px; margin: .65rem 0 0; padding: .5rem; display: grid; gap: 0; background: rgba(8,11,53,.98); border: 1px solid rgba(158,162,255,.28); border-radius: 14px; box-shadow: 0 28px 60px -20px rgba(0,0,0,.65); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s ease, transform .22s ease, visibility 0s .22s; }
.nav .nav__sub::before { content: ''; position: absolute; left: 0; right: 0; top: -.75rem; height: .75rem; }
.nav .has-sub:hover > .nav__sub, .nav .has-sub:focus-within > .nav__sub, .nav .has-sub.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .22s ease; }
.nav .nav__sub a { display: block; padding: .7rem .9rem; border-radius: 9px; font-size: .95rem; color: rgba(255,255,255,.86); }
.nav .nav__sub a::after { display: none; }
.nav .nav__sub a:hover, .nav .nav__sub a:focus-visible, .nav .nav__sub a[aria-current] { background: rgba(158,162,255,.16); color: #fff; }
.nav .nav__sub-all a { font-weight: 600; color: var(--royal-300); border-bottom: 1px solid rgba(158,162,255,.2); border-radius: 9px 9px 0 0; margin-bottom: .25rem; }
@media (max-width: 1020px) {
  .nav .has-sub { flex-wrap: wrap; gap: 0; }
  .nav .has-sub > a { flex: 1; }
  .nav__caret { width: 48px; height: 48px; border-radius: 0; }
  .nav .nav__sub { position: static; flex-basis: 100%; min-width: 0; margin: 0; padding: 0 0 .5rem 1rem; background: transparent; border: 0; box-shadow: none; border-radius: 0; opacity: 1; visibility: visible; transform: none; display: none; transition: none; }
  .nav .nav__sub::before { display: none; }
  .nav .has-sub:hover > .nav__sub, .nav .has-sub:focus-within > .nav__sub { display: none; }
  .nav .has-sub.is-open > .nav__sub { display: grid; }
  .nav .nav__sub a { padding: .85rem 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; background: none; }
  .nav .nav__sub-all a { margin: 0; border-radius: 0; }
}

/* ---------- Perataan menu utama: semua item (termasuk Produk) sejajar ---------- */
.nav > ul { align-items: center; }
.nav > ul > li { display: flex; align-items: center; }
@media (max-width: 1020px) {
  .nav > ul { align-items: stretch; }
  .nav > ul > li > a { flex: 1; }
}

/* Cadangan tanpa JavaScript (HP): ketuk panah -> daftar terbuka selama panah terfokus */
@media (max-width: 1020px) {
  html:not(.js-nav) .nav .has-sub:focus-within > .nav__sub { display: grid; }
}

/* ---------- Tentang Kami (gabungan) & Galeri ---------- */
.about__logo { display: flex; justify-content: center; }
.about__img,
.about__img--photo { width: 100%; max-width: 400px; height: auto; }
.about__img--photo { border-radius: var(--radius); }
.sec__head + .values { margin-top: 0; }
#mengapa-kami, #layanan-purna-jual, #galeri { scroll-margin-top: calc(var(--header-h) + 1rem); }
.gallery__intro { margin-bottom: 2.5rem; max-width: 70ch; }
.gallery--page { gap: 1.5rem; }
.gitem { margin: 0; }
.gitem .media { transition: transform .25s ease, box-shadow .25s ease; }
.gitem .media:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(8,11,53,.18); }
.gitem .media img { transition: transform .4s ease; }
.gitem .media:hover img { transform: scale(1.04); }
.gitem figcaption { padding: .7rem .15rem 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 1020px) and (min-width: 861px) { .gallery--page { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .gitem .media, .gitem .media img { transition: none; } .gitem .media:hover, .gitem .media:hover img { transform: none; } }

/* ---------- Video di Galeri ---------- */
.gallery__videos--after { margin-top: clamp(3rem, 6vw, 5rem); }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.gvid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0a0d3f; text-decoration: none; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.gvid:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(8,11,53,.18); }
.gvid:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.gvid__thumb, .gvid__thumb img, .gvid__thumb video, .gvid__ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.gvid__thumb img, .gvid__thumb video { object-fit: cover; pointer-events: none; }
.gvid__ph { background: radial-gradient(60% 80% at 80% 10%, rgba(43,47,208,.55), transparent 70%), linear-gradient(135deg, var(--royal), var(--navy)); }
.gvid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,11,53,.45)); pointer-events: none; }
.gvid__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,11,53,.78); color: #fff; border: 1px solid rgba(255,255,255,.35); padding-left: 3px; transition: background .2s, transform .2s; }
.gvid:hover .gvid__play { background: var(--royal-500); transform: scale(1.1); }
@media (max-width: 1020px) and (min-width: 861px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .vgrid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gvid, .gvid__play { transition: none; } .gvid:hover, .gvid:hover .gvid__play { transform: none; } }