/*
Theme Name: Era Visi Jubin
Theme URI: https://eravisi.com.my
Author: Era Visi Sdn. Bhd.
Description: Tema susun atur jubin (bento) yang terang dan bersih untuk Era Visi Sdn. Bhd. Setiap halaman — Utama, Pengenalan, Produk dan Pelanggan — disusun sebagai jubin pelbagai saiz. Katalog dengan penapis agensi dan carian ISBN. Kandungan asal dipasang secara automatik semasa tema diaktifkan.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eravisi-jubin
Tags: grid-layout, custom-logo, custom-menu, featured-images
*/

/* ---------- Token ---------- */
:root {
	--canvas: #f3f4f6;
	--white: #ffffff;
	--grey: #e8eaee;
	--ink: #16181d;
	--ink-2: #3f4450;
	--muted: #6b7180;
	--line: #e3e5ea;
	--orange: #f26a21;
	--orange-dk: #c94f0f;
	--tint: #ffede3;

	--font: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;

	--shell: 1320px;
	--gap: 12px;
	--r-tile: 22px;
	--r-inner: 14px;
	--pad: clamp(20px, 2.3vw, 32px);
}

/* ---------- Asas ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { overflow-x: clip; margin: 0; font: 400 1rem/1.6 var(--font); color: var(--ink); background: var(--canvas); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dk); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { top: 12px; }
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 clamp(12px, 2vw, 24px); }
.ico { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Butang & cip ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.4em; border-radius: 999px; border: 1.5px solid transparent;
	font: 700 .95rem/1.1 var(--font); text-decoration: none; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { padding: .65em 1.1em; font-size: .9rem; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dk); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { background: rgba(255,255,255,.12); color: #fff; }
.btn--light:hover { background: rgba(255,255,255,.22); color: #fff; }
.chip {
	display: inline-flex; align-items: center; gap: .45em; padding: .5em .95em; border-radius: 999px;
	border: 1px solid var(--line); background: var(--white); color: var(--ink);
	font: 600 .85rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.chip span { color: var(--muted); font-weight: 500; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active span { color: #ffb68e; }

/* ---------- Kepala ---------- */
.masthead { position: sticky; top: 0; z-index: 50; background: var(--canvas); padding: 12px 0; }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__img { max-height: 44px; width: auto; }
.brand__img + .brand__text { display: none; }
.brand__text { display: flex; align-items: baseline; gap: 6px; }
.brand__name { font: 800 1.4rem/1 var(--font); letter-spacing: -0.04em; }
.brand__name::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: var(--orange); margin-right: 8px; vertical-align: 1px; }
.brand__sub { font-size: .82rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 10px; }
.nav__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 5px; background: var(--white); border-radius: 999px; }
.nav__list a { display: block; padding: 9px 18px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color .15s; }
.nav__list a:hover { background: var(--canvas); }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { background: var(--ink); color: #fff; }
.nav-toggle { display: none; background: var(--white); border: 0; border-radius: 999px; padding: 11px; color: var(--ink); cursor: pointer; }
.nav-toggle__close { display: none; }

/* ---------- Grid bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: auto; gap: var(--gap); margin-bottom: var(--gap); }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; }
.c6 { grid-column: span 6; } .c8 { grid-column: span 8; } .c12 { grid-column: 1 / -1; }
.r2 { grid-row: span 2; }
.bento__heading { grid-column: 1 / -1; align-self: end; font-size: 1.5rem; margin: 28px 0 0; padding: 0 6px; display: flex; align-items: center; gap: 10px; }
.bento__heading span { font-size: .8rem; font-weight: 700; background: var(--white); border-radius: 999px; padding: 3px 10px; color: var(--muted); letter-spacing: 0; }
.bento > .bento__heading { min-height: 0; }

/* Jubin */
.tile { position: relative; min-height: 170px; background: var(--white); border-radius: var(--r-tile); padding: var(--pad); display: flex; flex-direction: column; overflow: hidden; color: var(--ink); text-decoration: none; margin: 0; }
.tile--orange { background: var(--orange); color: #fff; }
.tile--tint { background: var(--tint); }
.tile--ink { background: var(--ink); color: #fff; }
.tile--grey { background: var(--grey); }
.tile--plain { background: transparent; }
.tile--link { transition: background-color .2s; }
.tile--link:hover { color: inherit; }
.tile--tint.tile--link:hover { background: #ffe0cf; }
.tile--grey.tile--link:hover { background: #e0e3e8; }
.tile p:last-child { margin-bottom: 0; }
.tile__h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; margin-bottom: .35em; }
.tile__h1--xl { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.4rem); max-width: 12ch; }
.tile__h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; }
.tile__h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .45em; }
.tile__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 52ch; }
.tile__label { font-size: .85rem; font-weight: 700; color: var(--muted); letter-spacing: 0; margin: 0 0 6px; }
.tile--ink .tile__label, .tile--orange .tile__label { color: rgba(255,255,255,.7); }
.tile__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.tile__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--canvas); color: var(--ink); margin-bottom: 18px; flex: none; }
.tile__icon .ico { width: 22px; height: 22px; }
.tile__icon--orange { background: var(--tint); color: var(--orange-dk); }
.tile__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.tile__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; margin-top: auto; }
.tile__more:hover { color: var(--orange-dk); }
.tile__more .ico { transition: transform .15s; }
.tile__more:hover .ico { transform: translateX(3px); }
.tile__strong { font-weight: 700; font-size: 1.05rem; margin-top: auto; }
.tile__strong a { color: var(--ink); text-decoration: none; }
.tile__strong a:hover { color: var(--orange-dk); }
.tile__address { color: var(--ink-2); line-height: 1.55; }
.tile__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.badge { align-self: flex-start; background: var(--tint); color: var(--orange-dk); font-weight: 700; font-size: .8rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }

/* Statistik */
.stat { justify-content: space-between; }
.stat__num { font: 800 clamp(3rem, 2.2rem + 2.6vw, 4.75rem)/.9 var(--font); letter-spacing: -0.05em; }
.stat__label { font-weight: 600; font-size: .95rem; max-width: 20ch; }
.tile--tint .stat__num { color: var(--orange-dk); }
.tile--tint .stat__label { color: var(--ink-2); }
.tile--orange .stat__label { color: rgba(255,255,255,.88); }
.stat--big .stat__num { font-size: clamp(3rem, 2rem + 3.4vw, 5.25rem); }

/* Hero */
.tile--hero { justify-content: flex-start; }

/* Rak buku */
.shelf { justify-content: space-between; padding-bottom: calc(var(--pad) - 4px); }
.shelf__row { display: flex; justify-content: center; align-items: center; flex: 1; padding: 20px 4% 28px; }
.shelf__book { width: 23%; max-width: 168px; margin: 0 -2.2%; transform: rotate(calc((var(--i) - 2) * 5deg)) translateY(calc(var(--i) * 0px)); transition: transform .25s ease; position: relative; z-index: calc(10 - var(--i)); }
.shelf__book:nth-child(2), .shelf__book:nth-child(4) { transform: rotate(calc((var(--i) - 2) * 5deg)) translateY(-12px); }
.shelf__book:nth-child(3) { transform: translateY(-20px); z-index: 20; }
.shelf:hover .shelf__book { transform: rotate(calc((var(--i) - 2) * 7deg)) translateY(-10px); }
.shelf__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; }
.shelf__go { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; transition: background-color .15s; }
.shelf:hover .shelf__go { background: var(--orange); }

.cover { position: relative; display: block; aspect-ratio: 500 / 673; background: var(--grey); overflow: hidden; border-radius: 4px 8px 8px 4px; box-shadow: 0 2px 4px rgba(22,24,29,.1), 0 16px 26px -16px rgba(22,24,29,.55); }
.cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(255,255,255,.2) 60%, transparent); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__fallback { display: none; }
.cover.is-missing { background: var(--orange); }
.cover.is-missing .cover__fallback { display: flex; align-items: flex-end; position: absolute; inset: 0; padding: 14px; color: #fff; font: 800 .95rem/1.15 var(--font); letter-spacing: -0.01em; }

/* Perkhidmatan */
.service p { color: var(--ink-2); }
.service--wide { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: stretch; }
.service__img { margin: calc(var(--pad) * -1) calc(var(--pad) * -1) calc(var(--pad) * -1) 0; min-height: 200px; }
.service__img img { width: 100%; height: 100%; object-fit: cover; }

/* Logo */
.logo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.logo-tile { margin: 0; background: var(--canvas); border-radius: var(--r-inner); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 12px; }
.logo-tile img { max-height: 54px; max-width: 100%; width: auto; object-fit: contain; }
.logo-tile figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.logo-tile.is-missing figcaption { position: static; width: auto; height: auto; clip: auto; font-size: .78rem; font-weight: 600; text-align: center; line-height: 1.3; }

/* Foto & tentang */
.tile--photo { padding: 0; min-height: 260px; background: var(--grey); }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--photo figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--white); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 7px 12px; border-radius: 999px; }
.about p { color: var(--ink-2); }

/* Hubungi (kaki) */
.footer { padding-bottom: clamp(16px, 3vw, 32px); }
.contact { justify-content: flex-start; }
.contact__text { color: rgba(255,255,255,.75); max-width: 46ch; }
.contact__phone { display: block; margin-top: auto; padding-top: 18px; font: 800 clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem)/1 var(--font); letter-spacing: -0.04em; color: #fff; text-decoration: none; }
.contact__phone:hover { color: #ffb68e; }
.contact__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.footer__base { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; min-height: 0; }
.bento > .footer__base { grid-row: auto; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.footer__links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer__links a:hover { color: var(--orange-dk); }
.footer__social { display: flex; gap: 8px; margin: 0; }
.footer__social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--ink); }
.footer__copy { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Halaman dalaman ---------- */
.tile--title { justify-content: flex-end; }
.crumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: auto; padding-bottom: 28px; }
.crumbs a { color: var(--ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--orange-dk); }

.prose { font-size: 1.05rem; color: var(--ink-2); }
.prose p { max-width: 70ch; }
.prose p:first-child { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.prose strong { color: var(--ink); }

.facts dl { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:first-child { padding-top: 0; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { margin: 0; font-weight: 700; text-align: right; }

.mv__text { font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; margin: auto 0 0; }

.person__head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.person__avatar { width: 54px; height: 54px; border-radius: 16px; background: var(--tint); color: var(--orange-dk); font-weight: 800; display: grid; place-items: center; flex: none; }
.person__name { font-size: 1.1rem; margin: 0; }
.person__role { margin: 2px 0 0; color: var(--orange-dk); font-weight: 600; font-size: .9rem; }
.person__bio { color: var(--ink-2); font-size: .95rem; }

/* Katalog */
.bento > .tools { min-height: 0; gap: 14px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--canvas); border-radius: 999px; padding: 0 18px; color: var(--muted); }
.search:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font: 500 1rem/1 var(--font); color: var(--ink); padding: 14px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tools__status { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
.bento > .cat-group { min-height: 0; }
.cat-group .bento__heading { margin: 16px 0 var(--gap); }
.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--gap); }
.book { padding: 0; min-height: 0; }
.book__open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 12px 12px 18px; cursor: pointer; border-radius: var(--r-tile); }
.book__open:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.book__stage { position: relative; }
.book__zoom { position: absolute; left: 50%; bottom: 12px; margin-left: -54px; width: 108px; height: 32px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .78rem/1 var(--font); display: grid; place-items: center; box-shadow: 0 4px 12px -4px rgba(22,24,29,.35); opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s; }
.book__open:hover .book__zoom, .book__open:focus-visible .book__zoom { opacity: 1; transform: none; }
.book__open:hover .book__stage { background: #eceef2; }
.book__title, .book__isbn { display: block; }
.book__stage { display: grid; place-items: center; background: var(--canvas); border-radius: var(--r-inner); padding: 22px 0; margin-bottom: 14px; }
.book__stage .cover { width: 62%; }
.book__title { font-size: .98rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 0 6px 4px; }
.book__isbn { font-size: .8rem; color: var(--muted); margin: 0 6px; font-variant-numeric: tabular-nums; }
.bento > .empty { min-height: 0; }

/* ---------- Popup butiran produk ---------- */
html.pv-open { overflow: hidden; }
dialog.pv {
	position: fixed; inset: 0; margin: auto; padding: 0; border: 0; outline: 0;
	width: min(860px, calc(100vw - 40px)); max-width: none; height: fit-content; max-height: calc(100vh - 40px);
	background: transparent; color: var(--ink); overflow: visible; font-family: var(--font);
}
dialog.pv[open] { animation: pv-in .2s cubic-bezier(.2,.8,.2,1); }
dialog.pv::backdrop { background: rgba(22,24,29,.6); }
@keyframes pv-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.pv__card {
	position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	background: var(--white); border-radius: 24px; overflow: hidden; max-height: calc(100vh - 40px);
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
}
.pv__close {
	position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%; background: var(--canvas); color: var(--ink);
	display: grid; place-items: center; cursor: pointer; transition: background-color .15s;
}
.pv__close:hover { background: var(--grey); }
.pv__media { background: var(--canvas); display: flex; align-items: center; justify-content: center; padding: 36px 32px; min-height: 0; }
.pv__cover {
	display: block; width: auto; height: auto; max-width: 100%; max-height: min(460px, calc(100vh - 112px));
	border-radius: 4px 10px 10px 4px; background: var(--white);
	box-shadow: 0 2px 6px rgba(22,24,29,.12), 0 24px 40px -20px rgba(22,24,29,.55);
}
.pv__body { display: flex; flex-direction: column; gap: 0; padding: 34px 32px 24px; overflow-y: auto; min-height: 0; }
.pv__agency { align-self: flex-start; margin: 0 52px 12px 0; padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--orange-dk); font-size: .78rem; font-weight: 700; line-height: 1.3; }
.pv__title { margin: 0 0 20px; font-size: 1.6rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.025em; }
.pv__isbn {
	display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px;
	padding: 16px 18px; border-radius: 16px; background: var(--canvas); margin-bottom: 16px;
}
.pv__isbn[hidden] { display: none; }
.pv__isbn-text { display: flex; flex-direction: column; gap: 2px; }
.pv__label { font-size: .72rem; font-weight: 700; color: var(--muted); }
.pv__isbn-num { font-size: 1.15rem; font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pv__copy { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 700 .8rem/1 var(--font); cursor: pointer; }
.pv__copy:hover { border-color: var(--ink); }
.pv__barcode { grid-column: 1 / -1; display: block; width: 160px; height: auto; max-width: 100%; fill: var(--ink); background: var(--white); border-radius: 8px; padding: 8px 10px 4px; box-sizing: content-box; }
.pv__barcode text { font: 600 6.5px/1 var(--font); letter-spacing: .5px; }
.pv__meta { margin: 0 0 20px; font-size: .92rem; }
.pv__meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pv__meta div:first-child { border-top: 1px solid var(--line); }
.pv__meta dt { color: var(--muted); }
.pv__meta dd { margin: 0; font-weight: 600; text-align: right; }
.pv__actions { display: flex; gap: 8px; }
.pv__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 1;
	padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink);
	font: 700 .9rem/1.1 var(--font); text-decoration: none; transition: background-color .15s, color .15s;
}
.pv__btn:hover { background: var(--ink); color: #fff; }
.pv__btn--primary { flex: 1.5; background: var(--orange); border-color: var(--orange); color: #fff; }
.pv__btn--primary:hover { background: var(--orange-dk); border-color: var(--orange-dk); color: #fff; }
.pv__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.pv__navbtn { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.pv__navbtn:hover { border-color: var(--ink); }
.pv__navbtn[hidden] { visibility: hidden; display: grid; }
.pv__pos { font-size: .82rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
	dialog.pv { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
	.pv__card { grid-template-columns: 1fr; overflow-y: auto; max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
	.pv__media { padding: 28px 24px 22px; }
	.pv__cover { max-height: 38vh; }
	.pv__body { padding: 20px 20px 18px; overflow: visible; }
	.pv__title { font-size: 1.35rem; }
	.pv__actions { flex-direction: column; }
	.pv__close { position: fixed; top: 20px; right: 20px; background: var(--white); box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); }
}
@media (prefers-reduced-motion: reduce) { dialog.pv[open] { animation: none; } }

/* Pelanggan */
.bento > .client-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); min-height: 0; }
.client { min-height: 0; padding: 18px 14px; align-items: center; gap: 12px; text-align: center; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease; }
.client img { position: relative; z-index: 1; height: 70px; width: auto; max-width: 100%; object-fit: contain; transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.client figcaption { position: relative; z-index: 1; font-size: .82rem; font-weight: 600; color: var(--ink-2); line-height: 1.35; transition: color .2s; }

/* Animasi pelanggan: kilauan + angkat semasa hover */
.client::before {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
	transform: translateX(-120%);
}
@media (hover: hover) {
	.client:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--orange), 0 22px 34px -22px rgba(22,24,29,.45); }
	.client:hover::before { transform: translateX(120%); transition: transform .85s ease; }
	.client:hover img { transform: scale(1.12) rotate(-3deg); }
	.client:hover figcaption { color: var(--orange-dk); }
	.logo-row .logo-tile { transition: transform .3s cubic-bezier(.3,1.4,.5,1), background-color .2s; }
	.logo-row .logo-tile:hover { transform: translateY(-3px) scale(1.04); background: var(--tint); }
}

/* Muncul berturutan semasa ditatal (hanya bila JavaScript aktif) */
.anim-clients .client:not(.is-in) { opacity: 0; transform: translateY(26px) scale(.92); }
.anim-clients .client.is-in { animation: client-in .65s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: var(--d, 0ms); }
.anim-clients .client.is-in img { animation: logo-pop .75s cubic-bezier(.3,1.6,.5,1) backwards; animation-delay: calc(var(--d, 0ms) + 140ms); }
.anim-clients .client.is-in figcaption { animation: cap-in .5s ease backwards; animation-delay: calc(var(--d, 0ms) + 260ms); }
@keyframes client-in { from { opacity: 0; transform: translateY(26px) scale(.92); } }
@keyframes logo-pop { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 70% { opacity: 1; } }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } }
.client.is-missing figcaption { margin: auto 0; }
.record p { color: var(--ink-2); }
.nilam p { color: rgba(255,255,255,.9); margin-top: auto; }
.nilam__figs { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 18px 0 24px; }
.nilam__figs div { display: flex; flex-direction: column-reverse; gap: 6px; }
.nilam__figs dd { margin: 0; font: 800 clamp(2.1rem, 1.5rem + 1.6vw, 3rem)/1 var(--font); letter-spacing: -0.045em; }
.nilam__figs dt { font-weight: 600; color: rgba(255,255,255,.8); font-size: .9rem; }
.bento > .agencies { min-height: 0; }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { background: var(--white); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .9rem; }

/* Gerakan masuk (sekali, muka utama sahaja) */
@keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.bento--home > * { animation: tile-in .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--n, 0) * 45ms); }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
	.bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.c2 { grid-column: span 2; } .c3, .c4, .c5 { grid-column: span 3; } .c6, .c8 { grid-column: 1 / -1; }
	.r2 { grid-row: span 1; }
	.tile--hero { min-height: 420px; }
	.shelf { min-height: 380px; }
	.bento > .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nilam.r2 { grid-row: span 1; }
}
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; position: relative; z-index: 60; }
	.nav {
		position: fixed; inset: 0; z-index: 55; flex-direction: column; align-items: stretch; justify-content: center; gap: 16px;
		background: var(--canvas); padding: 90px 20px 32px;
		opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
	}
	.nav-open { overflow: hidden; }
	.nav-open .nav { opacity: 1; visibility: visible; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline; }
	.nav__list { flex-direction: column; border-radius: var(--r-tile); padding: 8px; }
	.nav__list a { font-size: 1.4rem; font-weight: 800; padding: 16px 18px; border-radius: 16px; letter-spacing: -0.02em; }
	.nav .btn { padding: 1em; font-size: 1rem; }
	.service--wide { grid-template-columns: 1fr; }
	.service__img { margin: 0 calc(var(--pad) * -1) calc(var(--pad) * -1); }
}
@media (max-width: 640px) {
	:root { --gap: 10px; --r-tile: 18px; }
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile { min-height: 0; }
	.bento > * { grid-column: 1 / -1; }
	.bento > .stat { grid-column: span 1; min-height: 150px; }
	.bento > .stat--big { grid-column: 1 / -1; min-height: 140px; }
	.tile--hero { min-height: 0; }
	.tile--hero .tile__actions { padding-top: 8px; }
	.stat__num { font-size: 2.6rem; }
	.stat__label { font-size: .85rem; }
	.shelf { min-height: 300px; }
	.logo-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.logo-tile { padding: 8px; }
	.tile--photo { min-height: 220px; }
	.book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.book__stage { padding: 16px 0; }
	.book__stage .cover { width: 70%; }
	.bento > .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bento > .tools { position: static; }
	.chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; }
	.chip { white-space: nowrap; }
	.footer__base { flex-direction: column; align-items: flex-start; }
	.brand__sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.bento--home > * { animation: none; }
	.client, .client img, .client figcaption { animation: none !important; }
	*, *::before, *::after { transition: none !important; }
}
