:root {
  --white: #ffffff;
  /* Pastel logo colours (client's designer, 2026-11-04): orange #f6ab58, blue #5b90bf, near-black #231916
     for text. Neither pastel holds white text (1.9:1 and 3.4:1), so text on them is always ink.
     No cream: --cream/--peach are light greys for quiet backgrounds. */
  --orange: #f6ab58;
  --orange-dark: #ee9d48;  /* hover */
  --orange-ikon: #d9862f;  /* small icons on white, so they don't fade out */
  --blue-tua: #5b90bf;     /* solid blue blocks (announce, CTA, selected), ink text 5:1 */
  --cream: #e9ecf0;
  --cream-soft: color-mix(in srgb, var(--cream) 38%, var(--white));
  --peach: #e9ecf0;
  --peach-soft: color-mix(in srgb, var(--peach) 55%, var(--white));
  --sky: #dde9f3;
  --blue: #5b90bf;
  --blue-deep: #44739e;    /* pastel blue deepened for text and icons on white (5:1) */
  --ink: #231916;
  --ink-2: #3a2a24;
  --text: #2b2624;
  --muted: #5f5a58;
  --line: #2319161f;
  --wa: #1daa61;

  --font-head: "Kumbh Sans", "Poppins", sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--blue) var(--white); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--text); font: 400 0.97rem/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--sky); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
p { margin: 0; }
ul.bullets { margin: 16px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 1040px); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 112px); }
.bg-cream { background: var(--cream-soft); }
.eyebrow { display: block; font: 500 0.78rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lead-italic { font-style: italic; color: var(--text); margin-top: 16px; max-width: 48ch; }
.center { text-align: center; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 14px; color: var(--muted); }
.icon { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Buttons: square, uppercase, tracked */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border: 1.5px solid transparent; border-radius: 0;
  font: 600 0.78rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.btn-ink { background: var(--orange); color: var(--ink); }
.btn-ink:hover { background: var(--orange-dark); }
.btn-blue { background: var(--blue); color: var(--ink); }
.btn-blue:hover { background: var(--sky); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--cream); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.text-link .icon { color: var(--blue-deep); transition: transform 200ms var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }

/* Announcement bar */
.announce { background: var(--blue-tua); color: var(--ink); text-align: center; padding: 9px 16px; font: 500 0.78rem/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
.announce a { text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Logo client (file vektor dari client, 3.45 : 1) */
.wordmark { display: block; flex-shrink: 0; line-height: 0; }
.wordmark img { display: block; width: auto; height: 54px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 10px; border: 0; background: none; cursor: pointer; color: var(--ink);
  font: 500 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.nav-link:hover { color: var(--blue-deep); }
.nav-link .icon { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 18px); left: 0; min-width: 250px; display: none; opacity: 0; translate: 0 -6px; list-style: none; margin: 0; padding: 10px 0;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 40px -20px #1c2b4a59;
}
.dropdown a { display: block; padding: 9px 20px; text-decoration: none; font-size: 0.88rem; }
.dropdown a:hover { background: var(--cream-soft); }
.dropdown li:first-child a { font-weight: 600; }
.nav-item.open .dropdown { display: block; opacity: 1; translate: 0 0; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; color: var(--ink); cursor: pointer; }
.menu-toggle .icon { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; min-height: min(700px, 82svh); display: flex; align-items: center; overflow: hidden; background: var(--peach); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fffffff2 0%, #ffffffb3 36%, #ffffff00 62%); }
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 660px; padding-block: 64px; }
.hero-copy > p { max-width: 520px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--blue-deep); }
.hero p { margin-top: 22px; font-size: 1.05rem; color: var(--text); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-katalog { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; font-size: 0.9rem; color: var(--ink); text-decoration: none; }
.hero-katalog span { text-decoration: underline; }
.hero-katalog .icon { color: var(--blue-deep); }
.hero-katalog small { font-weight: 400; font-size: 0.82rem; color: var(--muted); }

/* Service grid with dashed borders */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px dashed var(--blue); }
.service { padding: 36px 28px 40px; }
.service + .service { border-left: 1px dashed var(--blue); }
.service > .icon { width: 40px; height: 40px; color: var(--blue-deep); stroke-width: 1.3; }
.service h3 { margin-top: 26px; font-size: 1.3rem; font-weight: 600; }
.service ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; font-size: 0.86rem; color: var(--muted); }

/* Katalog beranda: gift box sebagai kartu berfoto di satu lembar bergaris potong,
   paketnya ditulis seperti label kiriman. Merchandise dan jasa menyambung di baris bawah. */
.kotak-grid { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; border: 1px dashed var(--blue); background: var(--white); }
.kotak + .kotak { border-left: 1px dashed var(--blue); }
.kotak > a { display: flex; flex-direction: column; height: 100%; padding: 14px 14px 26px; color: inherit; text-decoration: none; }
.kotak-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-soft); }
.kotak-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.kotak a:hover .kotak-img img { transform: scale(1.04); }
.kotak h3 { margin: 20px 8px 0; font-size: 1.2rem; font-weight: 600; }
.kotak .spec { margin: 4px 8px 0; font-size: 0.86rem; color: var(--muted); }
/* Keterangan disamakan dua baris supaya baris paket di keempat kartu sejajar */
@media (min-width: 761px) { .kotak .spec { min-height: calc(2 * 1.7em); } }
.kotak-paket { margin: 18px 8px 0; border-top: 1px dashed var(--blue); }
.kotak-paket div { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--blue); }
.kotak-paket dt { font: 600 0.92rem/1.3 var(--font-head); color: var(--ink); }
.kotak-paket dd { margin: 0; font-size: 0.82rem; color: var(--muted); text-align: right; }
.kotak-paket .kotak-harga { grid-column: 1 / -1; margin-top: 2px; text-align: left; font-weight: 600; color: var(--ink); }
.kotak .text-link { margin: auto 8px 0; padding-top: 22px; }
.kotak-lain { display: grid; grid-template-columns: 1fr 1fr; border: 1px dashed var(--blue); border-top: 0; background: var(--white); }
.kotak-lebar { display: grid; grid-template-columns: 168px 1fr; gap: 24px; align-items: center; padding: 14px 28px 14px 14px; color: inherit; text-decoration: none; }
.kotak-lebar + .kotak-lebar { border-left: 1px dashed var(--blue); }
.kotak-lebar-img { aspect-ratio: 1; overflow: hidden; background: var(--cream-soft); }
.kotak-lebar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.kotak-lebar:hover img { transform: scale(1.04); }
.kotak-lebar h3 { font-size: 1.2rem; font-weight: 600; }
.kotak-lebar h3 small { margin-left: 6px; font: 400 0.82rem/1 var(--font-body); color: var(--muted); }
.kotak-lebar ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.86rem; color: var(--muted); }
.kotak-lebar .text-link { margin-top: 14px; }
.kotak-lebar:hover .text-link .icon { transform: translateX(4px); }
/* Rail marks (phones only, shown by the mobile rule): one dashed cut line per gift box,
   the one in view drawn solid and longer; tap one to jump to that card */
.kotak-geser { display: none; }
.kotak-geser button { position: relative; width: 22px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; transition: width 300ms var(--ease-out); }
.kotak-geser button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--blue); }
.kotak-geser button[aria-current]::before { border-top: 2px solid var(--blue-deep); }
.kotak-geser button[aria-current] { width: 40px; }
.kotak-geser-teks { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 600; font-size: 0.84rem; color: var(--ink); transition: opacity 300ms var(--ease-out); }
.kotak-geser-teks .icon { width: 18px; height: 18px; color: var(--blue-deep); }
.kotak-geser.is-tahu .kotak-geser-teks { opacity: 0; }
/* Gift box bertema membawa ciri temanya ke kartu: Ramadhan dengan untaian ketupat di atas foto */
.kotak[data-motif="ramadhan"] .kotak-img::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 34px; background: var(--anyaman) top -6px center / 36px 36px repeat-x; pointer-events: none; }
/* Tablet: dua kolom, foto dibuat melebar supaya satu kartu tidak memenuhi layar */
@media (min-width: 761px) and (max-width: 1080px) {
  .kotak-img { aspect-ratio: 4 / 3; }
  .kotak-lebar { grid-template-columns: 128px 1fr; gap: 18px; padding-right: 20px; }
}

/* Klien, angka, testimoni: tiap bagian hanya tampil kalau sudah diisi */
.angka { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 80px; margin: 0 0 clamp(40px, 5vw, 56px); }
.angka div { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; }
.angka dd { margin: 0; font: 500 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-head); letter-spacing: -0.02em; color: var(--ink); }
.angka dt { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.logo-klien { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 52px; }
.logo-klien img { width: auto; height: 40px; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: 0.7; }
.testimoni { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: flex; justify-content: center; gap: 40px; }
.testimoni li { flex: 1 1 0; max-width: 380px; padding-top: 24px; border-top: 1px dashed var(--blue); }
.testimoni blockquote { margin: 0; }
.testimoni blockquote p { font: 400 1.08rem/1.55 var(--font-head); color: var(--ink); }
.testimoni-oleh { margin-top: 16px; font-size: 0.86rem; }
.testimoni-oleh b { display: block; font-weight: 600; color: var(--ink); }
.testimoni-oleh span { color: var(--muted); }

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-copy h2 { max-width: 18ch; }
.split-copy .btn { margin-top: 28px; }
.split-copy ul.bullets { font-size: 0.93rem; }
.numbered { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; font-size: 0.95rem; max-width: 46ch; }
.numbered b { color: var(--ink); }

/* Flow diagram (cara pesan) */
.flow {
  position: relative; width: min(100%, 480px); aspect-ratio: 1; margin-inline: auto;
  background: radial-gradient(circle, var(--sky) 0 17%, color-mix(in srgb, var(--sky) 55%, var(--white)) 17% 30%, color-mix(in srgb, var(--sky) 30%, var(--white)) 30% 43%, color-mix(in srgb, var(--sky) 14%, var(--white)) 43% 56%, transparent 56%);
  border-radius: 50%;
}
.flow svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow .ring { fill: none; stroke: var(--blue-deep); stroke-width: 1.2; stroke-dasharray: 1.5 2; }
.flow .ring-draw { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 100; stroke-dashoffset: 0; }
.flow .arrowhead { fill: var(--blue-deep); }
.flow-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.flow-center b { font: 600 0.95rem/1 var(--font-head); letter-spacing: 0.3em; margin-right: -0.3em; color: var(--ink); }
.flow-center small { display: block; margin-top: 6px; font-size: 0.68rem; color: var(--muted); letter-spacing: 0.04em; }
.node {
  position: absolute; width: 128px; transform: translate(-50%, -50%); text-align: center;
  background: var(--white); border: 1px solid var(--blue); padding: 10px 8px; box-shadow: 0 10px 24px -14px #1c2b4a59;
}
.node b { display: grid; place-items: center; width: 24px; height: 24px; margin: 0 auto 6px; background: var(--ink); color: var(--white); border-radius: 50%; font: 600 0.72rem/1 var(--font-body); }
.node span { display: block; font: 600 0.8rem/1.25 var(--font-head); color: var(--ink); }
.node small { display: block; margin-top: 3px; font-size: 0.66rem; line-height: 1.35; color: var(--muted); }
.node.n1 { left: 50%; top: 9%; }
.node.n2 { left: 91%; top: 50%; }
.node.n3 { left: 50%; top: 91%; }
.node.n4 { left: 9%; top: 50%; }

/* Logo band */
@keyframes marquee { to { transform: translateX(-50%); } }

/* Testimonials carousel */

/* Full-bleed feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; background: var(--peach-soft); }
.feature-copy { padding: clamp(48px, 7vw, 104px) clamp(24px, 6vw, 88px) clamp(48px, 7vw, 104px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); align-self: center; }
.feature-copy .btn { margin-top: 28px; }
.feature-img img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

/* Projects / products */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; }
.cards.four { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { text-align: center; }
.card > a { text-decoration: none; display: block; }
.card-img { aspect-ratio: 1; overflow: hidden; background: var(--cream-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card a:hover img { transform: scale(1.04); }
.card h3 { margin-top: 18px; font-size: 1.05rem; font-weight: 600; }
.card .spec { margin-top: 4px; font-size: 0.86rem; color: var(--muted); }
.card .btn { margin-top: 18px; }
.cards.four .card { text-align: left; }

/* Marquee band */
.band { background: var(--blue); color: var(--ink); overflow: hidden; padding-block: 18px; }
.band-track { display: flex; gap: 72px; width: max-content; animation: marquee 30s linear infinite; font: 500 0.82rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }

/* Collage */
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.collage .col { display: grid; gap: 10px; }
.collage img { width: 100%; object-fit: cover; }
.collage .col:first-child img:nth-child(1) { aspect-ratio: 16 / 10; }
.collage .col:first-child img:nth-child(2) { aspect-ratio: 4 / 3.4; }
.collage .col:first-child img:nth-child(3) { aspect-ratio: 16 / 9; }
.collage .col:last-child img { aspect-ratio: 4 / 4.6; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; display: flex; justify-content: space-between; gap: 16px; align-items: center; font: 500 1.02rem/1.4 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; transition: transform 250ms var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 40px 22px 4px; color: var(--muted); }

/* People banner */
.people { position: relative; min-height: 520px; display: flex; align-items: end; overflow: hidden; color: var(--white); }
.people > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.people::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #1c2b4a1a 20%, #1c2b4ad9 100%); }
.people .wrap { position: relative; z-index: 2; padding-block: 64px; }
.people h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.people p { margin-top: 14px; max-width: 54ch; color: #eef2f8; }
.people .btn { margin-top: 26px; }

/* Footer */
.site-footer { background: var(--cream-soft); padding-block: 64px 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr 1.3fr; gap: 40px; }
.footer-grid .wordmark { display: inline-block; }
.footer-grid h3 { font: 500 0.8rem/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer-grid p { color: var(--muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-grid ul a:hover { color: var(--ink); }
.footer-wa .btn { margin-top: 18px; }
.footer-about p { font-weight: 600; }
.footer-about a { display: inline-block; margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.socials { display: flex; gap: 16px; margin-top: 40px; }
.socials a { color: var(--muted); }
.socials a:hover { color: var(--ink); }
.socials .icon { width: 17px; height: 17px; }
.footer-bottom { margin-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted); }

/* Floating WhatsApp: hijau WhatsApp supaya langsung dikenali, label seperti gelembung chat */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.wa-label { display: grid; gap: 2px; padding: 10px 14px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 28px -12px #1c2b4a66; font-size: 0.86rem; line-height: 1.25; }
.wa-label b { font-weight: 600; }
.wa-label small { font-size: 0.74rem; color: var(--muted); }
.wa-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--white); box-shadow: 0 10px 24px -10px #0f5c3499; transition: background-color 200ms var(--ease-out); }
.wa-icon .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.wa-float:hover .wa-icon { background: color-mix(in srgb, var(--wa) 82%, #000); }
.wa-float:focus-visible { outline: none; }
.wa-float:focus-visible .wa-icon { outline: 2px solid var(--blue-deep); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
}

/* Responsive */
@media (min-width: 1081px) {
  /* Menu panjang (Merchandise) dibagi dua kolom */
  .dropdown.is-wide { columns: 2; column-gap: 0; min-width: 400px; }
  .dropdown.is-wide li { break-inside: avoid; }
  .dropdown.is-wide li:first-child { column-span: all; }
}
@media (hover: hover) and (min-width: 1081px) {
  .nav-item.has-dropdown:hover .dropdown { display: block; opacity: 1; translate: 0 0; }
  .nav-item.has-dropdown:hover::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px; }
}

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header-inner { height: 76px; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: var(--white);
    flex-direction: column; align-items: stretch; gap: 16px; padding: 12px var(--gutter) 32px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 0.85rem; }
  .dropdown { position: static; border: 0; box-shadow: none; padding: 0 0 10px; min-width: 0; }
  .nav.is-open { opacity: 1; translate: 0 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { border-left: 0; }
  .service:nth-child(n+3) { border-top: 1px dashed var(--blue); }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .kotak-grid { grid-template-columns: 1fr 1fr; }
  .kotak:nth-child(odd) { border-left: 0; }
  .kotak:nth-child(n+3) { border-top: 1px dashed var(--blue); }
}

@media (max-width: 760px) {
  .wordmark img { height: 42px; }
  .announce { font-size: 0.7rem; letter-spacing: 0.08em; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero > img { position: relative; height: 300px; }
  .hero::before { display: none; }
  .hero .wrap { background: var(--peach-soft); width: 100%; padding-inline: var(--gutter); }
  .hero-copy { padding-block: 36px 48px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .services { grid-template-columns: 1fr; }
  .service + .service { border-left: 0; border-top: 1px dashed var(--blue); }
  .split, .feature { grid-template-columns: 1fr; }
  .feature-copy { padding: 48px var(--gutter); }
  .feature-img img { min-height: 300px; }
  .flow { width: min(100% - 64px, 480px); }
  .node { width: 100px; padding: 8px 6px; }
  .node small { display: none; }
  .cards { grid-template-columns: 1fr; }
  .cards.four { gap: 20px 14px; }
  .people { min-height: 460px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { right: 16px; bottom: 16px; }
  .wa-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; border: 0; }
  /* Gift box jadi rel geser: kartu berikutnya mengintip supaya jelas bisa digeser */
  /* Phones: gift boxes in a swipe rail. The next card shows clearly at the edge, and
     marks underneath say how many there are and which one is in view */
  .kotak-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; scroll-padding-inline: var(--gutter); border: 0; background: none; }
  .kotak-grid::-webkit-scrollbar { display: none; }
  .kotak-grid > .kotak { border: 1px dashed var(--blue); background: var(--white); scroll-snap-align: start; }
  .js .kotak-geser { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
  .kotak-lain { grid-template-columns: 1fr; margin-top: 12px; border-top: 1px dashed var(--blue); }
  .kotak-lebar { grid-template-columns: 104px 1fr; gap: 16px; padding: 12px 16px 12px 12px; }
  .kotak-lebar + .kotak-lebar { border-left: 0; border-top: 1px dashed var(--blue); }
  .angka { gap: 24px 40px; }
  .testimoni { flex-direction: column; align-items: stretch; gap: 32px; }
  .testimoni li { max-width: none; }
}

/* ---------- Inner pages ---------- */
.nav-item.is-current > .nav-link { color: var(--blue-deep); }
.dropdown a[aria-current="page"] { color: var(--blue-deep); font-weight: 600; }

/* Page hero: the homepage hero's calmer sibling, copy on peach with the photo bleeding right */
/* Title blocks are the pastel logo orange, with a blue segment at the bottom right like the logo's blue box */
.page-hero {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--orange);
  border-bottom: 8px solid; border-image: linear-gradient(90deg, var(--orange) 0 72%, var(--blue) 72% 100%) 1;
}
.page-hero h1, .page-hero-copy > p, .page-hero .breadcrumb ol, .page-hero .breadcrumb [aria-current], .page-hero .breadcrumb li + li::before { color: var(--ink); }
.page-hero .btn-ink { background: var(--blue-tua); color: var(--ink); } /* orange on orange would vanish */
.page-hero .btn-ink:hover { background: #79a6ce; }
.page-hero-copy { padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px) clamp(48px, 6vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); align-self: center; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; max-width: 18ch; }
.page-hero-copy > p { margin-top: 20px; max-width: 50ch; font-size: 1.02rem; }
.page-hero-img img { width: 100%; height: 100%; min-height: 440px; max-height: 620px; object-fit: cover; }
.page-hero.no-img { grid-template-columns: 1fr; }
.page-hero.no-img .page-hero-copy { padding-block: clamp(32px, 4.5vw, 60px) clamp(40px, 5vw, 68px); padding-right: var(--gutter); }
.page-hero.no-img h1 { max-width: none; }
.page-hero.no-img + .section { padding-top: clamp(48px, 6vw, 80px); }

.breadcrumb ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font: 400 0.85rem/1.4 var(--font-body); color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline: 8px; color: var(--blue-deep); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }

/* Spec table + buying notes */
.spec-split { align-items: start; }
.spec-table { margin: 24px 0 0; border-top: 1px dashed var(--blue); }
.spec-table div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--blue); }
.spec-table dt { font: 400 0.88rem/1.6 var(--font-body); color: var(--muted); }
.spec-table dd { margin: 0; color: var(--ink); font-size: 0.93rem; }
.note { margin-top: 16px; font-size: 0.85rem; color: var(--muted); font-style: italic; }
.points { list-style: none; margin: 0; padding: 0; border: 1px dashed var(--blue); }
.points li { padding: 26px 28px; }
.points li + li { border-top: 1px dashed var(--blue); }
.points h3 { font-size: 1.1rem; font-weight: 600; }
.points p { margin-top: 8px; font-size: 0.9rem; color: var(--muted); }

/* Three-up variant of the dashed service grid */
.services.uses { grid-template-columns: repeat(3, 1fr); background: var(--white); }
.services.uses h3 { margin-top: 0; font-size: 1.15rem; }
.service > p { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

/* Order steps, a quieter cousin of the homepage ring */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { position: relative; }
.steps b { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: var(--ink); font: 600 0.9rem/1 var(--font-head); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 52px; right: -20px; border-top: 1px dashed var(--blue-deep); }
.steps h3 { margin-top: 18px; font-size: 1.05rem; font-weight: 600; }
.steps p { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }


/* Closing call to action */
.cta-band { background: var(--blue-tua); padding-block: clamp(56px, 7vw, 88px); text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; color: var(--ink); }
.cta-band p { margin: 14px auto 0; max-width: 52ch; color: var(--ink); }
.cta-band .btn { margin-top: 28px; }

/* Long-form text (tentang, blog) */
.prose { width: min(100% - 2 * var(--gutter), 68ch); margin-inline: auto; }
.prose h2 { margin-top: 48px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 16px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }

/* Hadith quote on the about page. Amiri is only loaded on that page. */
.hadith blockquote { margin: 0; }
.hadith { margin: 48px 0; padding: 36px 28px; background: var(--cream-soft); border-block: 1px dashed var(--blue); text-align: center; }
.hadith-ar { margin: 0; font: 400 clamp(1.9rem, 4vw, 2.5rem)/1.6 "Amiri", serif; color: var(--ink); }
.hadith-id { margin-top: 12px; font-style: italic; font-size: 1.02rem; color: var(--ink); text-wrap: balance; }
.hadith cite { display: block; margin-top: 10px; font: 400 0.82rem/1.5 var(--font-body); font-style: normal; color: var(--muted); }

/* Homepage intro next to the hadith (same .hadith block as the about page) */
.pembuka-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pembuka-teks { max-width: 56ch; font-size: clamp(1.04rem, 1.5vw, 1.16rem); line-height: 1.8; color: var(--ink); }
.pembuka .hadith { margin: 0; }
@media (max-width: 760px) {
  .pembuka-grid { grid-template-columns: 1fr; }
  .pembuka .hadith { padding: 28px 16px; }
}

/* Merchandise catalog (/merchandise/, /merchandise/<kategori>/): products on one sheet
   separated by dashed cut lines, categories on the side (a swipeable row on phones) */
.katalog-produk { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--blue); border-left: 1px dashed var(--blue); }
.produk { background: var(--white); border-right: 1px dashed var(--blue); border-bottom: 1px dashed var(--blue); }
.produk > a { display: flex; flex-direction: column; height: 100%; padding: 14px 14px 18px; color: inherit; text-decoration: none; }
.produk > a:focus-visible { outline-offset: -4px; }
.produk-img { aspect-ratio: 1; overflow: hidden; background: var(--cream-soft); }
.produk-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.produk a:hover .produk-img img { transform: scale(1.04); }
.produk h3 { margin: 16px 4px 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.produk a:hover h3 { color: var(--blue-deep); }
.produk .spec { margin: 4px 4px 0; font-size: 0.84rem; line-height: 1.55; color: var(--muted); }
.produk-kaki { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: auto 4px 0; padding-top: 14px; font-size: 0.78rem; color: var(--muted); }
.produk-kaki:empty { display: none; }
.produk-kat { padding: 4px 8px; background: color-mix(in srgb, var(--sky) 45%, var(--white)); color: var(--ink); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.produk-warna-n { margin-left: auto; }

.katalog-section { padding-block: clamp(36px, 5vw, 64px) clamp(64px, 8vw, 112px); scroll-margin-top: 96px; } /* below the sticky header when opened at #produk */
.katalog-samping, .katalog-isi { min-width: 0; }
.katalog-tata { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 4vw, 56px); align-items: start; }
.katalog-label { margin-bottom: 10px; font: 500 0.75rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.katalog-kategori { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--blue); }
.katalog-kategori a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px dashed var(--blue); color: var(--ink); font-size: 0.9rem; line-height: 1.35; text-decoration: none; transition: background-color 160ms var(--ease-out); }
.katalog-kategori .icon { width: 18px; height: 18px; color: var(--orange-ikon); }
.katalog-kat-nama { flex: 1; }
.katalog-kat-n { font-size: 0.76rem; color: var(--muted); }
.katalog-kategori a:hover { background: var(--cream-soft); }
.katalog-kategori a[aria-current] { background: var(--blue-tua); color: var(--ink); }
.katalog-kategori a[aria-current] .icon, .katalog-kategori a[aria-current] .katalog-kat-n { color: var(--ink); }
.katalog-giftbox { margin-top: 36px; }
/* Gift Box catalog: gift sets only, no category list (higher specificity, so it wins over the media rules below) */
.katalog-tata.is-giftbox { grid-template-columns: minmax(0, 1fr); }
.katalog-tata.is-giftbox .katalog-cari { flex: 1 1 0; }

.katalog-alat { display: flex; gap: 12px; }
.katalog-cari { position: relative; flex: 1; }
.katalog-cari input, .katalog-urut select {
  height: 50px; border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); border-radius: 0; background-color: var(--white);
  color: var(--ink); font: 400 0.9rem/1 var(--font-body);
}
.katalog-cari input { width: 100%; padding: 0 52px 0 16px; -webkit-appearance: none; appearance: none; }
.katalog-cari input::placeholder { color: var(--muted); }
.katalog-cari input:focus, .katalog-urut select:focus { outline: 2px solid var(--blue-deep); outline-offset: -1px; }
.katalog-cari button { position: absolute; top: 0; right: 0; width: 50px; height: 50px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.katalog-cari button .icon { width: 20px; height: 20px; }
.katalog-urut { position: relative; }
.katalog-urut label .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--blue-deep); pointer-events: none; }
.katalog-urut select {
  padding: 0 40px 0 42px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2b4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 15px no-repeat;
}
.katalog-jumlah { min-height: 1.5em; margin: 18px 0 14px; font-size: 0.84rem; color: var(--muted); }
.katalog-grid { grid-template-columns: repeat(3, 1fr); }
.katalog-grid.empat { grid-template-columns: repeat(4, 1fr); }

.katalog-kosong { padding: clamp(40px, 6vw, 72px) 24px; border: 1px dashed var(--blue); text-align: center; }
.katalog-kosong h3 { font-size: 1.25rem; }
.katalog-kosong p { max-width: 46ch; margin: 10px auto 0; color: var(--muted); }
.katalog-kosong-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

.katalog-hal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.katalog-hal a, .katalog-hal span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 8px; font-size: 0.88rem; color: var(--ink); text-decoration: none; }
.katalog-hal a { border: 1px solid var(--line); }
.katalog-hal a:hover { border-color: var(--ink); }
.katalog-hal [aria-current] { background: var(--blue-tua); color: var(--ink); }

/* Phones: category button + sheet sliding up from the bottom (HTML popover, works without JS) */
.katalog-kat-tombol { display: none; }
.kategori-sheet[popover] {
  position: fixed; inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: min(86dvh, 720px); margin: 0;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
  border: 0; background: var(--white); color: var(--text); box-shadow: 0 -18px 40px -20px #1c2b4a59;
}
.kategori-sheet::backdrop { background: #1c2b4a66; }
body:has(.kategori-sheet:popover-open) { overflow: hidden; }
.kategori-sheet-kepala {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  margin: 0 calc(-1 * var(--gutter)) 16px; padding: 14px var(--gutter); background: var(--white); border-bottom: 1px dashed var(--blue);
}
.kategori-sheet-kepala p { font: 500 1.15rem/1.2 var(--font-head); color: var(--ink); }
.kategori-sheet-kepala button { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.kategori-sheet-kepala .icon { width: 24px; height: 24px; }
.kategori-sheet .katalog-kategori { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; }
.kategori-sheet .katalog-kategori a { height: 100%; gap: 10px; padding: 12px; border: 1px solid var(--line); font-size: 0.86rem; }
.kategori-sheet .katalog-kategori a[aria-current] { border-color: var(--ink); }
.kategori-sheet .katalog-giftbox { margin-top: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .kategori-sheet[popover] { transition: translate 340ms var(--ease-out), overlay 340ms allow-discrete, display 340ms allow-discrete; }
  .kategori-sheet[popover]:not(:popover-open) { translate: 0 100%; }
  .kategori-sheet::backdrop { opacity: 0; transition: opacity 340ms var(--ease-out), overlay 340ms allow-discrete, display 340ms allow-discrete; }
  .kategori-sheet:popover-open::backdrop { opacity: 1; }
  @starting-style {
    .kategori-sheet[popover]:popover-open { translate: 0 100%; }
    .kategori-sheet:popover-open::backdrop { opacity: 0; }
  }
}

/* Merchandise and Jasa: the label is a link to the catalog, the chevron next to it opens the menu */
.nav-item.has-mega { display: flex; align-items: center; }
.nav-link-utama { padding-right: 2px; }
.nav-buka { padding-left: 2px; padding-right: 6px; }
@media (max-width: 1080px) {
  .nav-item.has-mega { flex-wrap: wrap; }
  .nav-item.has-mega .nav-link-utama { flex: 1; width: auto; }
  .nav-item.has-mega .nav-buka { width: 48px; justify-content: flex-end; padding-right: 0; }
  .nav-item.has-mega .dropdown { flex-basis: 100%; }
}

/* Mega menus (Merchandise, Jasa): every category/service with its icon (a gift box column only if passed) */
.mega-judul { margin: 0 0 12px; font: 500 0.75rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega-inner:has(> :only-child) .mega-judul { display: none; } /* one column: the nav item already names it */
.dropdown.mega li a, .dropdown.mega a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 0.9rem; font-weight: 400; color: var(--ink); }
.dropdown.mega a .icon { width: 18px; height: 18px; color: var(--orange-ikon); }
.dropdown.mega .text-link.mega-semua { display: inline-flex; margin-top: 14px; font-weight: 600; }
.dropdown.mega .text-link.mega-semua:hover { background: none; color: var(--blue-deep); }
@media (min-width: 1081px) {
  .nav-item.has-mega { position: static; }
  .nav-item.has-mega > .nav-link { position: relative; }
  /* bridge between the menu label and the panel, so the panel stays open on the way down */
  .nav-item.has-mega:hover > .nav-link::after { content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 48px; }
  .dropdown.mega { top: 100%; left: 0; right: 0; min-width: 0; padding: 36px 0 40px; border-width: 1px 0; }
  .mega-inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
  .mega-inner:has(> :only-child) { grid-template-columns: 1fr; }
  .mega-giftbox { padding-right: 32px; border-right: 1px dashed var(--blue); }
  .mega-kategori ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px 16px; }
}
@media (max-width: 1080px) {
  .dropdown.mega .wrap { width: 100%; }
  .mega-kolom + .mega-kolom { margin-top: 18px; }
  .mega-kategori ul, .mega-giftbox ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .dropdown.mega a { padding: 9px 4px; font-size: 0.86rem; }
  .dropdown.mega .text-link.mega-semua { margin-left: 4px; }
}

/* Product page: photo slider on the left, details and the WhatsApp button on the right */
.produk-detail { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 96px); }
.produk-atas { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 8px; }
.produk-slider { position: relative; }
.produk-slides { display: flex; list-style: none; margin: 0; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--cream-soft); }
.produk-slides::-webkit-scrollbar { display: none; }
.produk-slides li { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: start; }
.produk-slides img { width: 100%; height: 100%; object-fit: cover; }
.produk-panah {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: #ffffffe6; color: var(--ink); box-shadow: 0 6px 18px -8px #1c2b4a66; cursor: pointer;
  transition: opacity 160ms var(--ease-out);
}
.produk-panah .icon { width: 22px; height: 22px; }
.produk-panah.is-kiri { left: 14px; }
.produk-panah.is-kanan { right: 14px; }
.produk-panah:disabled { opacity: 0; pointer-events: none; }
.produk-galeri-kecil { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.produk-galeri-kecil a { display: block; width: 76px; aspect-ratio: 1; overflow: hidden; outline: 1px solid transparent; outline-offset: 2px; opacity: 0.6; transition: opacity 160ms var(--ease-out); }
.produk-galeri-kecil a:hover { opacity: 1; }
.produk-galeri-kecil a[aria-current] { outline-color: var(--ink); opacity: 1; }
.produk-galeri-kecil img { width: 100%; height: 100%; object-fit: cover; }

.produk-info-kat { display: inline-flex; align-items: center; gap: 8px; font: 500 0.75rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.produk-info-kat .icon { width: 17px; height: 17px; color: var(--orange-ikon); }
.produk-info-kat:hover { color: var(--ink); }
.produk-info h1 { margin-top: 14px; font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.1; }
.produk-info-ket { margin-top: 12px; font-size: 1.02rem; color: var(--muted); }
.produk-info-harga { margin-top: 16px; font: 600 1.2rem/1.3 var(--font-head); color: var(--ink); }
.produk-label { font: 500 0.75rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.produk-warna { margin-top: 28px; }
.produk-warna-pilih { margin-left: 4px; letter-spacing: 0.04em; text-transform: none; color: var(--ink); font-size: 0.88rem; }
.produk-warna ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.produk-swatch {
  width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); background: var(--w, var(--white)); cursor: pointer;
  outline: 1.5px solid transparent; outline-offset: 3px; transition: outline-color 160ms var(--ease-out);
}
.produk-swatch.is-teks { width: auto; min-width: 42px; padding: 0 12px; background: var(--white); font: 400 0.84rem/1 var(--font-body); color: var(--ink); }
.produk-swatch:hover { outline-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.produk-swatch[aria-pressed="true"] { outline-color: var(--ink); }
.produk-detail-blok { margin-top: 28px; padding-top: 26px; border-top: 1px dashed var(--blue); }
.produk-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 16px 0 0; }
.produk-spec dt { font-size: 0.84rem; color: var(--muted); }
.produk-spec dd { margin: 2px 0 0; color: var(--ink); font-size: 0.93rem; }
/* Gift box page (like a Dapu gift set): "Item termasuk" list; items in the catalog link to their page */
.produk-label span { margin-left: 6px; letter-spacing: 0.02em; text-transform: none; color: var(--ink); }
.produk-isi ul { list-style: none; margin: 10px 0 0; padding: 0; }
.produk-isi li { position: relative; padding: 9px 0 9px 18px; border-bottom: 1px dashed var(--blue); font-size: 0.93rem; color: var(--ink); }
.produk-isi li:last-child { border-bottom: 0; }
.produk-isi li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; translate: 0 -50%; background: var(--orange-ikon); }
.produk-isi li a { color: inherit; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.produk-isi li a:hover { color: var(--blue-deep); }
.produk-slider[data-motif="ramadhan"]::after { content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1; height: 34px; background: var(--anyaman) top -6px center / 36px 36px repeat-x; pointer-events: none; }
.produk-info-desk { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--blue); }
.produk-cta { margin-top: 30px; }
.produk-cta .btn { width: 100%; padding-block: 18px; }
.produk-cta .btn .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.produk-cta p { margin-top: 10px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.produk-ke-giftbox { display: inline-block; margin-top: 20px; } /* long label wraps with its arrow */
.produk-ke-giftbox .icon { margin-left: 6px; }
.nowrap { display: inline-flex; align-items: center; white-space: nowrap; } /* word + icon never split */
@media (min-width: 901px) {
  .produk-info { position: sticky; top: 124px; }
}
@media (hover: none) {
  .produk-panah { display: none; } /* phones swipe instead */
}

@media (max-width: 1080px) {
  .katalog-tata { grid-template-columns: 210px minmax(0, 1fr); }
  .katalog-grid { grid-template-columns: repeat(2, 1fr); }
  .katalog-grid.empat { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .katalog-tata { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .katalog-samping { display: none; }
  .katalog-alat { flex-wrap: wrap; gap: 10px; }
  .katalog-cari { flex: 1 1 100%; }
  .katalog-kat-tombol {
    display: flex; align-items: center; gap: 10px; flex: 1 1 0; min-width: 0; height: 50px; padding: 0 14px;
    border: 1px solid color-mix(in srgb, var(--ink) 28%, transparent); background: var(--white); color: var(--ink);
    font: 500 0.9rem/1.2 var(--font-body); text-align: left; cursor: pointer;
  }
  .katalog-kat-tombol > .icon:first-child { width: 18px; height: 18px; color: var(--blue-deep); }
  .katalog-kat-tombol > .icon:last-child { width: 16px; height: 16px; }
  .katalog-kat-tombol-teks { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .katalog-kat-tombol-teks small { display: block; margin-bottom: 1px; font-size: 0.64rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  .katalog-kat-tombol:focus-visible { outline-offset: -1px; }
  .katalog-urut { flex: 0 0 auto; }
  .katalog-grid { grid-template-columns: repeat(3, 1fr); }
  .produk-atas { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* Catalog on phones: a short title bar so the products show on the first screen, like Dapu.
     The intro paragraph stays in the page for Google, only hidden here. */
  .page-hero.is-katalog .page-hero-copy { padding-block: 16px 20px; }
  .page-hero.is-katalog .breadcrumb ol { margin-bottom: 8px; font-size: 0.8rem; }
  .page-hero.is-katalog h1 { font-size: 1.55rem; line-height: 1.2; }
  .page-hero.is-katalog .page-hero-copy > p { display: none; }
  .katalog-section { padding-top: 18px; scroll-margin-top: 76px; }
  .katalog-jumlah { margin: 12px 0 10px; }
  .katalog-produk, .katalog-grid, .katalog-grid.empat { grid-template-columns: repeat(2, 1fr); }
  .produk > a { padding: 10px 10px 14px; }
  .produk h3 { margin-top: 12px; font-size: 0.94rem; }
  .produk-kaki { padding-top: 10px; }
  .produk-kat { font-size: 0.64rem; }
  .produk-galeri-kecil { gap: 8px; }
  .produk-galeri-kecil a { width: 56px; }
  .katalog-urut select { padding-left: 38px; padding-right: 34px; background-position: right 10px center; }
  .katalog-urut label .icon { left: 12px; }
  .produk-spec { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
}


/* Tema gift box. Entri dengan `tema` di giftbox.js memberi data-tema pada <body>.
   Tema hanya mengganti warna aksen, motif, dan suasana hero; layout tetap sama.

   Ramadhan: hero seperti langit menjelang maghrib (ink ke biru, peach di cakrawala),
   anyaman ketupat sebagai pembatas, aksen hijau janur dan coklat kurma. */
[data-tema="ramadhan"], [data-motif="ramadhan"] {
  --janur: #a9b85a;
  --kurma: #6b3e26;
  --anyaman: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cpath d='M18 6 Q21 1 26 0' fill='none' stroke='%238a9a3e' stroke-width='1.2'/%3E%3Cg transform='translate(18 6) rotate(45)'%3E%3Crect x='0' y='0' width='6' height='6' fill='%23a9b85a'/%3E%3Crect x='6' y='0' width='6' height='6' fill='%23d9e3a3'/%3E%3Crect x='12' y='0' width='6' height='6' fill='%23a9b85a'/%3E%3Crect x='0' y='6' width='6' height='6' fill='%23d9e3a3'/%3E%3Crect x='6' y='6' width='6' height='6' fill='%23a9b85a'/%3E%3Crect x='12' y='6' width='6' height='6' fill='%23d9e3a3'/%3E%3Crect x='0' y='12' width='6' height='6' fill='%23a9b85a'/%3E%3Crect x='6' y='12' width='6' height='6' fill='%23d9e3a3'/%3E%3Crect x='12' y='12' width='6' height='6' fill='%23a9b85a'/%3E%3Crect width='18' height='18' fill='none' stroke='%237d8c3a' stroke-width='.8'/%3E%3C/g%3E%3C/svg%3E");
  --hilal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24'%3E%3Cpath d='M4 4 A20 20 0 0 0 44 4 A22 15 0 0 1 4 4Z' fill='%23fff4cf'/%3E%3C/svg%3E");
  --anyaman-tipis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='26'%3E%3Cg fill='none' stroke='%23a9b85a' stroke-opacity='.32' stroke-width='1'%3E%3Cpath d='M22 1 43 13 22 25 1 13Z'/%3E%3Cpath d='M11.5 7 32.5 19M32.5 7 11.5 19'/%3E%3C/g%3E%3C/svg%3E");
}
[data-tema="ramadhan"] main { --blue: var(--janur); --sky: color-mix(in srgb, var(--janur) 28%, var(--white)); --blue-deep: var(--kurma); }

/* Hero: langit maghrib */
[data-tema="ramadhan"] .page-hero-copy { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-bottom: calc(clamp(40px, 6vw, 96px) + 96px); color: #e6ecf5; }
[data-tema="ramadhan"] .page-hero-copy::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(180deg, #2b6a9e00 0%, #5d97c8 38%, #a9cdea 68%, #ffebcc 100%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  /* Hilal muncul pelan setelah hero terbuka, satu-satunya gerak khusus tema ini */
  [data-tema="ramadhan"] .page-hero-copy::before { animation: hilal-muncul 1600ms 900ms var(--ease-out) both; }
}
@keyframes hilal-muncul { from { opacity: 0; transform: translateY(8px); } }
[data-tema="ramadhan"] .page-hero-img { display: flex; }
[data-tema="ramadhan"] .page-hero-img img { max-height: none; }
[data-tema="ramadhan"] .page-hero-copy::before {
  content: ""; position: absolute; right: clamp(24px, 6vw, 72px); bottom: 118px; width: 46px; height: 23px;
  background: var(--hilal) center / contain no-repeat; filter: drop-shadow(0 0 10px #ffebccb3); pointer-events: none;
}
[data-tema="ramadhan"] .page-hero {
  background:
    radial-gradient(1.6px 1.6px at 38% 9%, #fff9d2 99%, #0000),
    radial-gradient(1.2px 1.2px at 46% 22%, #fff9d2cc 99%, #0000),
    radial-gradient(1.4px 1.4px at 30% 4%, #fff9d2b3 99%, #0000),
    radial-gradient(1px 1px at 44% 5%, #fff9d299 99%, #0000),
    radial-gradient(1.2px 1.2px at 26% 18%, #fff9d280 99%, #0000),
    linear-gradient(180deg, #1c2b4a 0%, #22355a 45%, #2b6a9e 100%);
}
[data-tema="ramadhan"] .page-hero h1 { color: var(--white); }
[data-tema="ramadhan"] .page-hero .breadcrumb ol { color: #c9d6e8; }
[data-tema="ramadhan"] .page-hero .breadcrumb li + li::before { color: var(--janur); }
[data-tema="ramadhan"] .page-hero .breadcrumb [aria-current], [data-tema="ramadhan"] .page-hero .breadcrumb a:hover { color: var(--white); }
[data-tema="ramadhan"] .page-hero .btn-ink { background: var(--peach); color: var(--ink); }
[data-tema="ramadhan"] .page-hero .btn-ink:hover { background: var(--cream); }
[data-tema="ramadhan"] .page-hero .btn-line { border-color: #ffffffb3; color: var(--white); }
[data-tema="ramadhan"] .page-hero .btn-line:hover { background: var(--white); color: var(--ink); }
[data-tema="ramadhan"] .page-hero :focus-visible { outline-color: var(--peach); }

/* Anyaman ketupat: satu baris pembatas di bawah hero, dan latar tipis kartu Premium */
[data-tema="ramadhan"] .page-hero + .section { background: var(--anyaman) top 6px center / 36px 36px repeat-x; padding-top: calc(clamp(64px, 8vw, 112px) + 20px); }

/* Penutup: langit setelah berbuka */
[data-tema="ramadhan"] .cta-band { background: linear-gradient(0deg, #1c2b4a 0%, #2b6a9e 100%); }
[data-tema="ramadhan"] .cta-band h2 { color: var(--white); }
[data-tema="ramadhan"] .cta-band p { color: #e6ecf5; }
[data-tema="ramadhan"] .cta-band .btn-ink { background: var(--orange); color: var(--ink); }
[data-tema="ramadhan"] .cta-band .btn-ink:hover { background: var(--orange-dark); }
[data-tema="ramadhan"] .cta-band :focus-visible { outline-color: var(--peach); }
/* HP: aturan di akhir supaya menang atas aturan tema di atas */
@media (max-width: 760px) {
  [data-tema="ramadhan"] .page-hero-copy { padding-bottom: 104px; }
  [data-tema="ramadhan"] .page-hero-copy::after { height: 88px; }
  [data-tema="ramadhan"] .page-hero-copy::before { bottom: 62px; right: 28px; width: 38px; height: 19px; }
  [data-tema="ramadhan"] .page-hero {
    background:
      radial-gradient(1.4px 1.4px at 82% 2%, #fff9d2 99%, #0000),
      radial-gradient(1.2px 1.2px at 93% 4.5%, #fff9d2b3 99%, #0000),
      radial-gradient(1px 1px at 70% 1.2%, #fff9d299 99%, #0000),
      linear-gradient(180deg, #1c2b4a 0%, #22355a 45%, #2b6a9e 100%);
  }
}

/* Card text (portfolio) */
.cards .card .card-text { margin-top: 6px; font-size: 0.9rem; color: var(--muted); }

/* Filter chips (portfolio) */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.chips button { border: 1px solid var(--ink); background: var(--white); color: var(--ink); padding: 10px 16px; cursor: pointer; font: 500 0.86rem/1 var(--font-body); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.chips button:hover { background: var(--cream); }
.chips button[aria-pressed="true"] { background: var(--blue-tua); color: var(--ink); }
.card .tag { display: inline-block; margin-top: 14px; font: 500 0.8rem/1 var(--font-body); color: var(--blue-deep); }
.card[hidden] { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px dashed var(--blue); }
.contact-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--blue); }
.contact-list .icon { width: 20px; height: 20px; color: var(--blue-deep); margin-top: 3px; }
.contact-list small { display: block; font: 400 0.85rem/1.6 var(--font-body); color: var(--muted); }
.contact-list a { color: var(--ink); }
.contact-form { border: 1px solid var(--ink); padding: 12px; }
.contact-form-inner { background: var(--cream-soft); padding: clamp(22px, 4vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form h2 { grid-column: 1 / -1; font-size: 1.5rem; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: grid; gap: 6px; font: 500 0.88rem/1.4 var(--font-body); color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #1c2b4a40; border-radius: 0; background: var(--white); padding: 12px 14px; font: 400 0.95rem/1.4 var(--font-body); color: var(--text); text-transform: none; letter-spacing: 0; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--blue-deep); outline-offset: 0; border-color: transparent; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form .btn { justify-self: start; }
.contact-form .btn.is-sent { background: var(--blue); color: var(--ink); }
.contact-form .form-note { grid-column: 1 / -1; font-size: 0.82rem; color: var(--muted); }

/* 404 */
.not-found { text-align: center; }
.not-found .big { font: 500 clamp(5rem, 14vw, 9rem)/1 var(--font-head); color: var(--blue); letter-spacing: -0.02em; }
.not-found h1 { margin-top: 12px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.not-found p { margin: 16px auto 0; max-width: 46ch; color: var(--muted); }
.not-found .hero-cta { justify-content: center; }

@media (max-width: 1080px) {
  .services.uses { grid-template-columns: 1fr; }
  .services.uses .service + .service { border-left: 0; border-top: 1px dashed var(--blue); }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .steps li:nth-child(2)::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-hero { grid-template-columns: 1fr; }
  .page-hero-copy { padding: 28px var(--gutter) 40px; }
  .page-hero-img img { min-height: 0; aspect-ratio: 16 / 10; }
  .page-hero .hero-cta .btn { flex: 1 1 auto; }
  .spec-table div { grid-template-columns: 1fr; gap: 2px; }
  .points li { padding: 22px 20px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding-bottom: 26px; }
  .steps li > :not(b) { grid-column: 2; }
  .steps h3 { margin-top: 8px; }
  .steps li:not(:last-child)::after, .steps li:nth-child(2)::after { display: block; top: 46px; bottom: 4px; left: 20px; right: auto; border-top: 0; border-left: 1px dashed var(--blue-deep); }
  .contact-form-inner { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
}

/* ---------- Motion ----------
   One page-load moment (hero unboxing), one informative reveal (order flow),
   and below the fold a few moments borrowed from making a box (a flap
   folds up, a laser marks the logo, items go in), plus quiet scroll depth on
   big photos. Everything else answers a click. Only transform, opacity, clip-path and
   stroke-dashoffset are animated, so phones stay on the compositor. */

@keyframes flaps-open {
  from { clip-path: inset(0 41% 0 41%); transform: scale(1.08); }
  to   { clip-path: inset(0 0 0 0); transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero: the photo opens outward like box flaps, the copy follows */
  /* waits for the photo (JS adds .is-ready after decode) so slow phones still see the opening */
  .js .hero:not(.is-ready) > img { clip-path: inset(0 41% 0 41%); transform: scale(1.08); }
  .js .hero.is-ready > img, html:not(.js) .hero > img { animation: flaps-open 1100ms cubic-bezier(0.7, 0, 0.2, 1) both; }
  .hero-copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero-copy > :nth-child(1) { animation-delay: 380ms; }
  .hero-copy > :nth-child(2) { animation-delay: 460ms; }
  .hero-copy > :nth-child(3) { animation-delay: 560ms; }
  .hero-copy > :nth-child(4) { animation-delay: 660ms; }
  .hero-copy > :nth-child(5) { animation-delay: 740ms; }

  /* Order flow: the ring is drawn clockwise and each step lands as the line reaches it */
  .js .flow .ring-draw { stroke-dashoffset: 100; transition: stroke-dashoffset 1400ms cubic-bezier(0.65, 0, 0.35, 1); }
  .js .flow.is-in .ring-draw { stroke-dashoffset: 0; }
  .js .flow .node { opacity: 0; transform: translate(-50%, -50%) scale(0.9); transition: opacity 450ms var(--ease-out), transform 550ms var(--ease-out); }
  .js .flow.is-in .node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .js .flow .arrowhead, .js .flow .flow-center { opacity: 0; transition: opacity 400ms var(--ease-out); }
  .js .flow.is-in .arrowhead, .js .flow.is-in .flow-center { opacity: 1; }
  .js .flow .n2 { transition-delay: 350ms; }
  .js .flow .n3 { transition-delay: 700ms; }
  .js .flow .n4 { transition-delay: 1050ms; }
  .js .flow .arrowhead:nth-of-type(1) { transition-delay: 200ms; }
  .js .flow .arrowhead:nth-of-type(2) { transition-delay: 550ms; }
  .js .flow .arrowhead:nth-of-type(3) { transition-delay: 900ms; }
  .js .flow .arrowhead:nth-of-type(4) { transition-delay: 1250ms; }
  .js .flow .flow-center { transition-delay: 1300ms; }

  /* Menus open with a short drop; closing is instant where display can't animate */
  .dropdown { transition: opacity 180ms var(--ease-out), translate 240ms var(--ease-out), display 240ms allow-discrete; }
  @starting-style {
    .nav-item.open .dropdown { opacity: 0; translate: 0 -6px; }
  }
  @media (hover: hover) and (min-width: 1081px) {
    @starting-style {
      .nav-item.has-dropdown:hover .dropdown { opacity: 0; translate: 0 -6px; }
    }
  }
  @media (max-width: 1080px) {
    .nav { transition: opacity 220ms var(--ease-out), translate 260ms var(--ease-out), display 260ms allow-discrete; }
    @starting-style {
      .nav.is-open { opacity: 0; translate: 0 -10px; }
    }
  }
}

/* Inner pages: the product is lifted out of the box. The photo rises out of a
   clip that opens upward while the copy follows, a quieter sibling of the
   homepage's opening flaps. */
@keyframes lift-out {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes settle {
  from { transform: translateY(9%) scale(1.06); }
  to   { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .page-hero:not(.is-ready) .page-hero-img { clip-path: inset(100% 0 0 0); }
  .js .page-hero:not(.is-ready) .page-hero-img img { transform: translateY(9%) scale(1.06); }
  .js .page-hero.is-ready .page-hero-img { animation: lift-out 950ms cubic-bezier(0.7, 0, 0.2, 1) both; }
  .js .page-hero.is-ready .page-hero-img img { animation: settle 1400ms var(--ease-out) both; }
  .page-hero-copy > * { animation: rise 650ms var(--ease-out) both; }
  .page-hero-copy > :nth-child(1) { animation-delay: 60ms; }
  .page-hero-copy > :nth-child(2) { animation-delay: 140ms; }
  .page-hero-copy > :nth-child(3) { animation-delay: 230ms; }
  .page-hero-copy > :nth-child(4) { animation-delay: 320ms; }

  /* Order steps: each number lands, then the dashed line runs on to the next one */
  .js .steps b { opacity: 0; transform: scale(0.6); transition: opacity 300ms var(--ease-out), transform 500ms var(--ease-out); }
  .js .steps h3, .js .steps p { opacity: 0; transform: translateY(8px); transition: opacity 450ms var(--ease-out), transform 550ms var(--ease-out); }
  .js .steps li::after { transform: scaleX(0); transform-origin: left center; transition: transform 520ms cubic-bezier(0.65, 0, 0.35, 1); }
  .js .steps.is-in b, .js .steps.is-in h3, .js .steps.is-in p, .js .steps.is-in li::after { opacity: 1; transform: none; }
  .js .steps li:nth-child(2) > * { transition-delay: 450ms; }
  .js .steps li:nth-child(3) > * { transition-delay: 900ms; }
  .js .steps li:nth-child(4) > * { transition-delay: 1350ms; }
  .js .steps li:nth-child(1)::after { transition-delay: 200ms; }
  .js .steps li:nth-child(2)::after { transition-delay: 650ms; }
  .js .steps li:nth-child(3)::after { transition-delay: 1100ms; }
  @media (max-width: 760px) {
    .js .steps li::after { transform: scaleY(0); transform-origin: center top; }
  }

  /* Moving between pages: a short crossfade instead of a white flash (Chrome, Edge, Safari 18.2+) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 180ms; }
  ::view-transition-new(root) { animation-duration: 280ms; }

  /* Portfolio filter: cards glide to their new place (names are set by JS only while filtering) */
  ::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }
  /* Cards that enter are appended on top of the stack, so keep header and WhatsApp above them */
  ::view-transition-group(site-header), ::view-transition-group(wa-float) { z-index: 2; }
}

/* Below the fold. Each moment is a step of making a gift box; JS adds .is-in when the
   block comes on screen and takes it off once it has fully left, so it plays again. Hover on a gift box card lifts the photo like a lid. */
.feature-img { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  /* Katalog: each photo folds up from its bottom crease like a box flap, left to right */
  .kotak-img { transition: translate 450ms var(--ease-out), box-shadow 450ms var(--ease-out); }
  .kotak a:hover .kotak-img img { transform: none; }
  .kotak a:hover .kotak-img { translate: 0 -8px; box-shadow: 0 22px 26px -18px #1c2b4a8c; }

  .js .kotak-grid .kotak-img { transform-origin: 50% 100%; transform: perspective(1100px) rotateX(78deg); opacity: 0;
    transition: transform 1000ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--d, 0s), opacity 350ms var(--ease-out) var(--d, 0s), translate 450ms var(--ease-out), box-shadow 450ms var(--ease-out); }
  .js .kotak-grid .kotak-img ~ * { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out) calc(var(--d, 0s) + 380ms), transform 600ms var(--ease-out) calc(var(--d, 0s) + 380ms); }
  .js .kotak-grid.is-in .kotak-img, .js .kotak-grid.is-in .kotak-img ~ * { transform: none; opacity: 1; }
  .js .kotak-grid .kotak:nth-child(2) { --d: 120ms; }
  .js .kotak-grid .kotak:nth-child(3) { --d: 240ms; }
  .js .kotak-grid .kotak:nth-child(4) { --d: 360ms; }
  .js .kotak-grid .kotak:nth-child(5) { --d: 480ms; }
  /* Ramadhan: the ketupat garland is hung after its flap is up */
  .js .kotak-grid .kotak[data-motif] .kotak-img::after { transform: translateY(-110%); transition: transform 700ms cubic-bezier(0.34, 1.4, 0.64, 1) calc(var(--d, 0s) + 950ms); }
  .js .kotak-grid.is-in .kotak[data-motif] .kotak-img::after { transform: none; }
  /* Phones: once the first cards have folded up, the rail peeks left and back to show
     it can be swiped; the arrow keeps nudging. Both stop after the first real swipe. */
  @media (max-width: 760px) {
    .js .kotak-grid.is-in:not(.is-tahu) > .kotak { animation: intip 1100ms cubic-bezier(0.45, 0, 0.25, 1) 1300ms both; }
    .kotak-geser:not(.is-tahu) .kotak-geser-teks .icon { animation: dorong 1400ms ease-in-out infinite; }
  }
  .js .katalog .kotak-lain { opacity: 0; transition: opacity 700ms var(--ease-out) 700ms; }
  .js .katalog:has(.kotak-grid.is-in) .kotak-lain { opacity: 1; }

  /* Jasa print & craft: one laser pass over the photo, the way a logo gets marked */
  .js .feature-jasa .feature-img::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0;
    background: linear-gradient(180deg, transparent calc(100% - 110px), #5fb6e633 calc(100% - 40px), #cde8f8b3 calc(100% - 4px), #fff calc(100% - 2px), #fff 100%);
    transform: translateY(-100%);
  }
  .js .feature-jasa.is-in .feature-img::after { animation: laser 1900ms cubic-bezier(0.45, 0, 0.3, 1) 250ms both; }

  /* Gift box page: the package contents go in one item at a time, both boxes together */
  .js .produk-isi li { opacity: 0; transform: translateY(-10px); transition: opacity 400ms var(--ease-out), transform 550ms cubic-bezier(0.34, 1.3, 0.64, 1); }
  .js .produk-isi.is-in li { opacity: 1; transform: none; }
  .js .produk-isi li:nth-child(2) { transition-delay: 90ms; }
  .js .produk-isi li:nth-child(3) { transition-delay: 180ms; }
  .js .produk-isi li:nth-child(4) { transition-delay: 270ms; }
  .js .produk-isi li:nth-child(5) { transition-delay: 360ms; }
  .js .produk-isi li:nth-child(6) { transition-delay: 450ms; }
  .js .produk-isi li:nth-child(7) { transition-delay: 540ms; }
  .js .produk-isi li:nth-child(n+8) { transition-delay: 630ms; }

  /* Merchandise and jasa pages: the spec label is filled in, one value per row */
  .js .spec-table dd { clip-path: inset(-4px 100% -4px 0); transition: clip-path 650ms cubic-bezier(0.65, 0, 0.35, 1); }
  .js .spec-table.is-in dd { clip-path: inset(-4px -4px -4px 0); }
  .js .spec-table div:nth-child(2) dd { transition-delay: 120ms; }
  .js .spec-table div:nth-child(3) dd { transition-delay: 240ms; }
  .js .spec-table div:nth-child(4) dd { transition-delay: 360ms; }
  .js .spec-table div:nth-child(5) dd { transition-delay: 480ms; }
  .js .spec-table div:nth-child(6) dd { transition-delay: 600ms; }
  .js .spec-table div:nth-child(n+7) dd { transition-delay: 720ms; }
}
@keyframes intip { 0%, 100% { translate: 0 0; } 45% { translate: -64px 0; } }
@keyframes dorong { 0%, 100% { translate: 0 0; } 50% { translate: 4px 0; } }
@keyframes laser {
  0% { opacity: 1; transform: translateY(-100%); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

/* Scroll-linked motion: tied to the scroll position itself, so it moves only while the
   visitor scrolls, runs backwards on the way up and never hides content to be waited for.
   Scroll-driven CSS, no JS; browsers without scroll timelines (Firefox) show it all still.
   It uses the separate translate/scale properties so it stacks on the opening animations
   (which use transform) instead of replacing them. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Leaving a hero: the photo swells and lags behind, the copy rises and fades */
    .hero, .page-hero { view-timeline: --hero block; }
    .page-hero-img { overflow: hidden; }
    .hero > img, .page-hero-img img { animation: hero-foto linear none; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    /* not on phones: there the hero copy is still being read while the hero leaves */
    @media (min-width: 761px) {
      .hero-copy, .page-hero-copy { animation: hero-teks linear none; animation-timeline: --hero; animation-range: exit 0% exit 90%; }
    }
    /* the hero's opening animation sits on the same element; list both so neither drops */
    .js .hero.is-ready > img { animation: flaps-open 1100ms cubic-bezier(0.7, 0, 0.2, 1) both, hero-foto linear none; animation-timeline: auto, --hero; animation-range: normal, exit 0% exit 100%; }
    .js .page-hero.is-ready .page-hero-img img { animation: settle 1400ms var(--ease-out) both, hero-foto linear none; animation-timeline: auto, --hero; animation-range: normal, exit 0% exit 100%; }

    /* Big photos open out to full size as they come in, like a lid being lifted off */
    .feature-img { animation: buka-samping linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .people { animation: buka-lebar linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }

    /* Drift: big photos lag a little behind the page, collage columns pass each other,
       and in a row of four products the even ones float at a different speed */
    .feature-img img, .people > img { animation: kedalaman linear both; animation-timeline: view(); }
    .collage .col:first-child { animation: kolase-a linear both; animation-timeline: view(); }
    .collage .col:last-child { animation: kolase-b linear both; animation-timeline: view(); }
    .cards.four .card:nth-child(even) { animation: kartu-ambang linear both; animation-timeline: view(); }
  }
}
@keyframes hero-foto { to { scale: 1.1; translate: 0 18%; } }
@keyframes hero-teks { to { translate: 0 -70px; opacity: 0; } }
@keyframes buka-samping { from { clip-path: inset(6% 0 6% 22%); } to { clip-path: inset(0 0 0 0); } }
@keyframes buka-lebar { from { clip-path: inset(0 7%); } to { clip-path: inset(0 0); } }
@keyframes kedalaman { from { transform: translateY(-7%) scale(1.15); } to { transform: translateY(7%) scale(1.15); } }
@keyframes kolase-a { from { transform: translateY(28px); } to { transform: translateY(-28px); } }
@keyframes kolase-b { from { transform: translateY(-36px); } to { transform: translateY(36px); } }
@keyframes kartu-ambang { from { translate: 0 44px; } to { translate: 0 -44px; } }

/* Set by JS for an instant while a moment off screen resets, and on a hero while it is
   scrolled away, so its opening runs again on the way back */
.no-anim, .no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; animation: none !important; }

/* FAQ answers slide open where the browser can animate to auto height */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 380ms var(--ease-out), content-visibility 380ms allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* Marquees stop when off screen (set by JS) so they cost nothing while scrolled away */

/* Skip layout and paint for sections the visitor hasn't reached yet */
main > section:nth-of-type(n+3), .site-footer { content-visibility: auto; contain-intrinsic-size: auto 760px; }
