:root {
  --bg: #0a0a0a;
  --bg-panel: #131313;
  --bg-panel-alt: #1a1a1a;
  --border: #262626;
  --text: #f2f2f2;
  --text-muted: #a3a3a3;
  /* Emas logo Garasi19 (diambil langsung dari assets/logo.png). Menggantikan
     merah #e30613 pada 12 Okt 2026 supaya warna aksen situs sama dengan logo. */
  --accent: #9c7931;
  --accent-hover: #c9a04e;
  /* Teks di ATAS bidang emas. Emasnya cukup terang, jadi tulisan kecil putih
     di atasnya tidak terbaca (3,8:1); teks gelap jauh lebih jelas (5,3:1). */
  --on-accent: #0a0a0a;
  /* Emas yang lebih tua, untuk teks di atas latar TERANG (halaman detail
     produk). Emas logo di atas putih cuma 3,0:1, yang ini 6,0:1. Angka sama
     dengan --gold-text di dashboard. */
  --accent-on-light: #7a5c22;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: 1px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: #050505;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 24px;
  text-align: right;
}

/* ---------- Header / Nav ---------- */
.site-header-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.site-header {
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.nav-logo img {
  /* Logo mendatar (rasio 4,4:1). Tinggi 38px -> lebar ~167px.
     Logo lama rasionya 1,86:1 jadi butuh tinggi jauh lebih besar;
     angka ini disetel ulang biar lebar di navbar tetap wajar. */
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-icons svg {
  width: 18px;
  height: 18px;
  fill: var(--text);
  transition: fill 0.15s;
}
.nav-icons a:hover svg { fill: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: background 0.15s ease;
}
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.hero-slider::-webkit-scrollbar { display: none; }
.hero-slider.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.85)),
              repeating-linear-gradient(135deg, #1a1a1a 0 40px, #151515 40px 80px);
}
.hero-slide-kosong {
  /* Latar hitam polos — dipakai saat hero slider belum diisi.
     Tanpa aturan ini yang muncul motif garis bawaan .hero-slide. */
  background: #000;
}

.hero-slide-1 {
  background-image: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.55)),
    url('/assets/hero1.jpg');
  background-size: cover;
  background-position: center;
}
.hero-slide-inner { max-width: var(--max-width); margin: 0 auto; width: 100%; pointer-events: none; }
.hero-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  margin-bottom: 4px;
  font-style: italic;
}
.hero-sub {
  font-size: 23px;
  color: var(--text-muted);
  font-style: italic;
}

.hero-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-indicators .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hero-indicators .dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ---------- Generic Section ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-panel); }
.section-title { text-align: center; font-size: 34px; margin-bottom: 8px; }
.italic-title {
  font-size: clamp(36px, 5vw, 56px);
  color: var(--text);
}
.italic-title em { font-style: italic; font-weight: 400; }
.italic-title strong {
  font-weight: 700;
  -webkit-text-stroke: 1.2px currentColor;
}
.accent { color: var(--accent); }
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
}
.section-subtitle-lg { font-size: 18px; }
.one-step-badge-wrap {
  text-align: center;
  margin-bottom: 12px;
}
.one-step-badge {
  display: inline-block;
  background: #fff;
  padding: 4px 14px;
  color: #000;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Cards grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
/* Grid yang halamannya di-paging lewat display:none (lihat portfolio.js/shop.js):
   auto-fit collapse kolom kosong dan nge-stretch sisa item pas halaman terakhir
   cuma nyisa dikit -> pakai auto-fill biar kolom kosong tetap kosong. */
#portfolioList,
#productList {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.card {
  background: var(--bg-panel-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2a2a2a, #141414);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  padding: 8px;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 6px 16px 14px; }

.card-media img.badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 75px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.badge-discount {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 3px;
}
.shop-price-old {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 13px;
  margin: 0 0 2px;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.card-title { font-size: 15px; font-family: inherit; text-transform: none; letter-spacing: normal; margin: 4px 0 6px; }
.card-text {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.work-title {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* ---------- Card slider (soft drag-scroll, no forced page-snap) ----------
   Dipakai bareng oleh Recent Works (#worksSlider) & Achievement (#achievementList),
   di-drag pakai initFreeDragScroll() (public/js/slider.js). */
.card-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  padding: 16px 4px;

  /* Kalau kartunya belum memenuhi lebar — misalnya Achievement yang baru
     berisi 3 — jangan menumpuk ke kiri, taruh di tengah.
     Kata kunci "safe" penting: begitu isinya melebihi lebar, perilakunya
     balik seperti rata-kiri. Tanpa itu, kartu pertama terdorong keluar
     dan tidak bisa dijangkau lagi dengan digeser. */
  justify-content: safe center;
}

/* Peramban lama belum mengenal "safe center" dan akan mengabaikan baris di
   atas, jadi tetap rata kiri — aman, bukan rusak. */
@supports not (justify-content: safe center) {
  .card-slider { justify-content: flex-start; }
}
.card-slider::-webkit-scrollbar { display: none; }
.card-slider.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.card-slider > .card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

/* ---------- Why us columns ---------- */
.why-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.why-col { text-align: center; }
.why-col .badge {
  display: inline-block;
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 18px;
  transform: skewX(-12deg);
  margin-bottom: 12px;
}
.why-col .badge-inner {
  display: inline-block;
  transform: skewX(12deg);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  font-style: italic;
  letter-spacing: 1px;
}
.why-col p { color: var(--text-muted); font-size: 16px; }

/* ---------- Promo banner ---------- */
.promo-banner {
  position: relative;
  /* Wajib ada bersama aspect-ratio + min-height. Tanpa lebar yang pasti,
     di layar sempit min-height yang menang dan aspect-ratio malah MELEBARKAN
     kotaknya (260px x 3,8 = 988px), jadi seluruh halaman bisa digeser
     mendatar dan judulnya terdorong keluar layar. */
  width: 100%;
  min-height: 260px;
  /* Tinggi ikut lebar layar. Kalau dipatok 260px, di layar 1920px yang
     terlihat cuma 31% tinggi foto — padahal motor + rider menempati 56%,
     jadi rider-nya pasti kepotong berapa pun posisinya digeser.
     3,8:1 angka paling ramping yang masih memuat objek di semua lebar. */
  aspect-ratio: 19 / 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.75)),
              url('/assets/performance-division.jpg');
  background-size: cover;
  /* Objek ada di tengah tegak foto (21%..77%), bukan di bawah. */
  background-position: center 50%;
}
.promo-banner-inner { max-width: var(--max-width); margin: 0 auto; width: 100%; text-align: right; }
.promo-banner h3 { font-size: 30px; margin: 0; font-style: italic; }

/* ---------- About page ---------- */
.about-text {
  padding: 64px 24px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.about-text p { color: var(--text-muted); margin-bottom: 14px; }

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}
/* Foto di sini tegak (0,80:1 dan 0,75:1), jadi slot mendatar memotong
   banyak. Di 16:9 yang terlihat cuma 45% dan 42% tinggi foto — tapi objek
   utamanya (throttle body & air cleaner) kebetulan ada di tengah bingkai,
   jadi tetap masuk. Angka ini sudah mentok; lebih landai dari 16:9
   objeknya mulai kepotong. */
.about-gallery .card-media { aspect-ratio: 16 / 9; padding: 0; }
/* Foto kiri (throttle body): isinya dinaikkan supaya bagian mesin krom di
   bawah ikut masuk dan kabel/tangki gelap di atas terpotong.
   Tanpa ini pitanya tepat di tengah (28%..72% tinggi foto). */
.about-gallery .card-media:first-child img { object-position: center 70%; }

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 8px 24px 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.vm-grid h3 { font-style: italic; font-size: 42px; }
.vm-grid p { color: var(--text-muted); font-size: 15px; }

/* ---------- Achievement (dynamic) ---------- */
#achievementList .card-media { aspect-ratio: 3 / 4; position: relative; }
#achievementList .card-media img { width: 100%; height: 100%; object-fit: cover; }
#achievementList .card-caption-below {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 12px;
  margin: 0;
}
.achievement-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 6px;
}

/* ---------- Generic page hero (no photo) ---------- */
.page-hero {
  position: relative;
  padding: 168px 0 56px;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.85)),
              repeating-linear-gradient(135deg, #1a1a1a 0 40px, #151515 40px 80px);
  text-align: center;
}
.page-hero .hero-eyebrow { text-align: center; }
.page-hero .italic-title { margin-bottom: 12px; }
.page-hero .section-subtitle-lg { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ---------- Portfolio / Gallery page ---------- */
.portfolio-feature { text-align: center; }
.portfolio-feature-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 32px;
}
.portfolio-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-feature .italic-title { margin-bottom: 4px; }
.portfolio-feature-sub { color: var(--text-muted); font-size: 18px; margin-bottom: 20px; }
.portfolio-feature-text { max-width: 760px; margin: 0 auto; color: var(--text-muted); }

.card-grid a.card,
.card-slider a.card { display: block; }
/* Cover portofolio: 3:2 di semua tempat (daftar, pembuka artikel,
   related projects, dan pratinjau di dashboard). */
#portfolioList .card-media,
#worksSlider .card-media { aspect-ratio: 3 / 2; }
.portfolio-item-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin: 2px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-page="portfolio"] .work-title,
body[data-page="home"] #worksSlider .work-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}.portfolio-item-link { display: inline-block; margin-top: 6px; color: var(--accent); font-size: 13px; font-weight: 600; }

.portfolio-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.portfolio-pagination a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.portfolio-pagination a.active, .portfolio-pagination a:hover { color: var(--accent); }
.portfolio-pagination a.disabled { pointer-events: none; opacity: 0.4; }

/* ---------- Portfolio detail page ---------- */

.detail-article { color: var(--text-muted); line-height: 1.7; margin: 32px 0 48px; }
.detail-article p { margin: 0 0 20px; }
.detail-article p:last-child { margin-bottom: 0; }

.detail-gallery-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin-bottom: 48px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.detail-gallery-strip::-webkit-scrollbar { display: none; }
.detail-gallery-strip.dragging { cursor: grabbing; scroll-behavior: auto; }
.detail-gallery-item {
  -webkit-user-drag: none;
  user-drag: none;
  flex: 0 0 320px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
}
.detail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.detail-gallery-item:hover img { transform: scale(1.04); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}
body.lightbox-open { overflow: hidden; }

.related-project { border-top: 1px solid var(--border); padding-top: 40px; }
.related-project-title { font-size: 22px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 24px; }

.portfolio-list { display: flex; flex-direction: column; gap: 32px; }
.portfolio-item { display: flex; gap: 24px; text-decoration: none; }
.portfolio-item-media { flex: 0 0 320px; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; }
.portfolio-item-media img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-item-body { flex: 1; }
.portfolio-item-brand { font-style: italic; font-size: 24px; margin: 0 0 4px; }
.portfolio-item-name { color: var(--text-muted); font-style: italic; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; font-size: 13px; margin: 0 0 10px; }
.portfolio-item-text { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 8px; }

@media (max-width: 768px) {
  .detail-gallery-item { flex-basis: 240px; }
  .portfolio-item-media { flex-basis: 200px; }
}

/* ---------- Contact page ---------- */
.contact-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.contact-info-item { margin-bottom: 0; }
.contact-info-item h4 {
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.contact-info-item p { color: var(--text); margin: 0; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.map-section { padding: 32px 0; }
.contact-map {
  width: 100%;
  aspect-ratio: 21 / 4;
  max-height: 260px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.9) contrast(0.9); }

.contact-form-section { padding-bottom: 96px; }
.contact-form {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.contact-form h3 { font-size: 30px; margin-bottom: 20px; color: #111; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  padding: 10px 12px;
  color: #111;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.btn-submit {
  display: block;
  margin-left: auto;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: 4px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status { margin: 12px 0 0; font-size: 14px; min-height: 1.2em; }
.form-status-success { color: #4ade80; }
/* Tetap merah, bukan emas: ini status gagal, bukan warna merek. Kalau ikut
   emas, pesan error jadi tidak terbaca sebagai peringatan. */
.form-status-error { color: #ef4444; }

/* ---------- Brand partners ---------- */
.brand-section { background: #000; }
.brand-marquee {
  overflow: hidden;
  width: 100%;
  padding: 32px 0 56px;
}
.brand-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: brand-scroll 28s linear infinite;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 48px;
}
.brand-track img {
  height: 80px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-panel-alt);
  border-top: 1px solid var(--border);
  padding: 48px 24px 0;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer-col h4 {
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 8px;
}
.footer-col p, .footer-col a { color: var(--text); font-size: 13px; display: block; margin: 0 0 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social svg { width: 18px; height: 18px; fill: var(--text); }
.footer-bottom-wrap {
  background: #000;
  border-top: 1px solid var(--border);
  margin: 48px -24px 0;
  padding: 0 24px;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Shop pages (Parts / Apparels) ---------- */
body[data-page="parts"] .section-alt,
body[data-page="apparels"] .section-alt,
body[data-page="parts"] .shop-cta,
body[data-page="apparels"] .shop-cta {
  background: #e2e2e2;
}
body[data-page="parts"] .section-alt,
body[data-page="apparels"] .section-alt {
  padding-bottom: 32px;
}
body[data-page="parts"] .shop-cta-label,
body[data-page="apparels"] .shop-cta-label {
  color: #666;
}
body[data-page="parts"] .shop-cta-title,
body[data-page="apparels"] .shop-cta-title {
  color: #111;
}
body[data-page="parts"] .card,
body[data-page="apparels"] .card {
  background: #fff;
  border-color: #e5e5e5;
}
body[data-page="parts"] .card-media,
body[data-page="apparels"] .card-media {
  aspect-ratio: 1 / 1;
  background: #fff;
}
body[data-page="parts"] .work-title,
body[data-page="apparels"] .work-title {
  color: #111;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
body[data-page="parts"] .card-text,
body[data-page="apparels"] .card-text {
  color: #666;
  display: block;
  -webkit-line-clamp: unset;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-price { color: var(--accent-on-light); font-weight: 700; margin: 0; }

/* ---------- Product detail page (light background) ---------- */
body[data-page="product"] .section-alt {
  background: #e2e2e2;
}
body[data-page="product"] #productCategory,
body[data-page="product"] .product-detail-desc {
  color: #555;
}
.product-detail-title {
  font-size: clamp(26px, 3vw, 34px);
  color: #111;
  margin: 0 0 12px;
}

/* ---------- Portfolio detail page (light background) ---------- */
body[data-page="portfolio"] .section:not(.section-alt) {
  background: #e2e2e2;
}
body[data-page="portfolio"] .section:not(.section-alt) .detail-article,
body[data-page="portfolio"] .section:not(.section-alt) .portfolio-item-name,
body[data-page="portfolio"] .section:not(.section-alt) .portfolio-item-text {
  color: #555;
}
body[data-page="portfolio"] .section:not(.section-alt) .related-project-title,
body[data-page="portfolio"] .section:not(.section-alt) .portfolio-item-brand {
  color: #111;
}
body[data-page="portfolio"] .section:not(.section-alt) .related-project {
  border-top-color: #ccc;
}
.portfolio-detail-heading { margin-bottom: 24px; text-align: center; }
.portfolio-detail-heading .italic-title { margin-bottom: 0; line-height: 1.1; }
.portfolio-detail-heading .section-subtitle-lg { margin: 0; }
body[data-page="portfolio"] .section:not(.section-alt) .portfolio-detail-heading .italic-title {
  color: #111;
}
body[data-page="portfolio"] .section:not(.section-alt) .portfolio-detail-heading .section-subtitle-lg {
  color: #555;
}

.shop-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.shop-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23111111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center;
  background-size: 11px 7px;
  color: #111;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  padding: 10px 34px 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-detail-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-media img.badge-new {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 95px;
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
#productCategory {
  display: inline-block;
  border: 1px solid #555;
  padding: 4px 12px;
  font-size: 12px;
  margin: 0 0 16px;
}
.product-detail-price { font-size: 28px; margin: 0 0 20px; }
.product-detail-desc { color: var(--text-muted); line-height: 1.7; max-width: 520px; margin: 0 0 24px; }
.product-detail-info .shop-links { justify-content: flex-start; flex-wrap: nowrap; gap: 10px; margin-bottom: 24px; }
.product-detail-info .shop-link-btn {
  flex: 1;
  padding: 12px 8px;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  gap: 6px;
}
.product-detail-info .shop-link-btn .btn-icon { width: 14px; height: 14px; }
.product-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  border: 1px solid var(--accent);
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s ease, color 0.2s ease;
}
.product-detail-back span { font-size: 13px; line-height: 1; transition: transform 0.2s ease; }
.product-detail-back:hover {
  background: var(--accent);
  color: var(--on-accent);
}
.product-detail-back:hover span { transform: translateX(-3px); }

.shop-cta { text-align: center; padding-top: 0; }
.shop-cta-label { color: var(--text-muted); font-style: italic; margin-top: 0; margin-bottom: 4px; }
.shop-cta-title { font-size: 26px; text-transform: uppercase; letter-spacing: 1px; font-style: italic; margin-bottom: 24px; }
.shop-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.shop-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 0;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: #fff;
}
.shop-link-btn .btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.shop-link-tokopedia { background: #03ac0e; }
.shop-link-shopee { background: #ee4d2d; }
.shop-link-whatsapp { background: #128c7e; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: clamp(28px, 7vw, 44px); }
  .hero-sub { font-size: 14px; }
  .nav-logo img { height: 28px; }
  .nav-toggle { display: flex; }
  .nav-icons { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 4px;
    background: #0a0a0a;
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a { display: block; padding: 8px 0; font-size: 12px; letter-spacing: 0.5px; }
  .nav.nav-open .nav-links { display: flex; }
  .vm-grid, .about-gallery { grid-template-columns: 1fr; }
  .contact-info-row, .form-row, .portfolio-list, .product-detail { grid-template-columns: 1fr; }
  .product-detail-media, .product-detail-info { min-width: 0; }
  .portfolio-item { flex-direction: column; }
  .portfolio-item-media { flex-basis: auto; }
  .product-detail-info .shop-links { flex-wrap: wrap; }
  .product-detail-info .shop-link-btn { flex: 1 1 calc(50% - 5px); white-space: normal; }
  .footer-col { text-align: center; }
  .footer-social { justify-content: center; }
  .promo-banner-inner { text-align: center; }
  .about-text, .vm-grid { text-align: center; }
  .contact-info-item { text-align: center; }
}

@media (max-width: 480px) {
  .hero-slide { aspect-ratio: auto; min-height: 340px; }
}
