/* ============================================================
   MAISON MODE — Demo Showcase Zalin Labs (G802-A / Batch A)
   Butik fashion editorial. Krem + hitam, serif besar.
   Palet via CSS variables — NOL biru/indigo/ungu.
   ============================================================ */
:root {
  --bg: #f5f1ea;
  --bg-2: #efe7db;
  --panel: #fffdf8;
  --ink: #1a1a1a;
  --dim: rgba(26, 26, 26, 0.62);
  --line: rgba(26, 26, 26, 0.14);
  --acc: #a08050;
  --acc-deep: #7c5f3a;
  --gugur: #e8d9bf;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; width: 100%; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Aksesibilitas ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; font-weight: 500; text-decoration: none;
  font-size: 0.9rem; letter-spacing: 0.05em;
}
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--acc-deep); outline-offset: 3px; }
::selection { background: rgba(160, 128, 80, 0.28); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 26px;
  font-weight: 500; font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn .ic { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #000; }
.btn-line { border-color: rgba(26, 26, 26, 0.35); color: var(--ink); background: transparent; }
.btn-line:hover { background: rgba(26, 26, 26, 0.06); border-color: var(--ink); }

/* ---------- Nav ---------- */
.mm-nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mm-nav-inner { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.mm-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 1.02rem;
  letter-spacing: 0.22em; text-decoration: none; min-height: 44px;
}
.mm-brand-mark { width: 28px; height: 28px; flex: none; }
.mm-nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.mm-nav-links a {
  text-decoration: none; color: var(--dim); font-size: 0.86rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 14px; min-height: 44px;
  display: inline-flex; align-items: center;
  transition: color 0.15s ease;
}
.mm-nav-links a:hover { color: var(--ink); }
.mm-nav-cta { display: flex; align-items: center; }
.mm-nav-cta .btn { min-height: 42px; padding: 10px 18px; font-size: 0.8rem; }
.mm-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  place-items: center; background: none; border: 1px solid var(--line);
  color: var(--ink);
}
.mm-toggle .ic { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.mm-toggle .ic-close { display: none; }
.mm-toggle[aria-expanded="true"] .ic-open { display: none; }
.mm-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ---------- Hero ---------- */
.mm-hero { padding: 72px 0 64px; }
.mm-hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.mm-kicker {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--dim);
}
.mm-kicker-center { text-align: center; }
.mm-hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.05;
  margin-top: 18px; max-width: 14ch;
}
.mm-hero h1 em { font-style: italic; color: var(--acc); }
.mm-lead { color: var(--dim); max-width: 46ch; margin-top: 22px; font-size: 1.02rem; font-weight: 300; line-height: 1.75; }
.mm-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mm-hero-facts {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}
.mm-hero-facts dt {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dim);
}
.mm-hero-facts dd { font-family: var(--serif); font-size: 1.02rem; margin-top: 4px; }

.mm-hero-art { position: relative; min-width: 0; }
.mm-panel {
  background: linear-gradient(160deg, #e6d9c6 0%, #c8b492 55%, #8f7b5c 100%);
  aspect-ratio: 4 / 5; position: relative; overflow: hidden;
}
.mm-panel-hero { box-shadow: 24px 24px 0 -6px rgba(26, 26, 26, 0.08); }
.mm-art-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-art-label {
  font-family: var(--sans); font-size: 15px; letter-spacing: 0.3em;
  fill: rgba(26, 26, 26, 0.55); font-weight: 500;
}
.mm-hero-chip {
  position: absolute; left: -14px; bottom: -18px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 16px 26px; box-shadow: 0 18px 40px -20px rgba(26, 26, 26, 0.35);
}
.mm-chip-big { font-family: var(--serif); font-size: 1.5rem; }
.mm-chip-sub { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-top: 2px; }

/* ---------- Ticker ---------- */
.mm-ticker {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--ink); color: var(--gugur);
  padding: 13px 0;
}
.mm-ticker-track { display: flex; width: max-content; animation: mm-geser 30s linear infinite; }
.mm-ticker-group {
  display: flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: var(--serif); font-size: 0.88rem;
  letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap;
}
.mm-tick-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acc); flex: none; }
@keyframes mm-geser { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section umum ---------- */
.sec { padding: 92px 0; }
.sec-tight { padding-top: 20px; }
.sec-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { margin-bottom: 44px; }
.sec-head.split {
  display: flex; flex-wrap: wrap; gap: 16px 48px;
  align-items: flex-end; justify-content: space-between;
}
.sec h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; margin-top: 12px; }
.sec-note { color: var(--dim); font-size: 0.92rem; max-width: 44ch; }

/* ---------- Koleksi + filter ---------- */
.mm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.mm-filter {
  border: 1px solid var(--line); background: transparent; color: var(--dim);
  padding: 10px 20px; min-height: 44px;
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.15s ease;
}
.mm-filter:hover { border-color: var(--ink); color: var(--ink); }
.mm-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.mm-prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px 18px; }
.mm-prod { min-width: 0; }
.mm-prod[hidden] { display: none; }
.mm-thumb {
  aspect-ratio: 3 / 4; position: relative; overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.mm-prod:hover .mm-thumb { box-shadow: 10px 10px 0 -2px rgba(160, 128, 80, 0.5); }
.mm-g1 { background: linear-gradient(160deg, #efe7db, #d8c9b4); }
.mm-g2 { background: linear-gradient(160deg, #3a3a3a, #141414); }
.mm-g3 { background: linear-gradient(160deg, #c9a87c, #a08050); }
.mm-g4 { background: linear-gradient(160deg, #e8c4bd, #cf9f96); }
.mm-g5 { background: linear-gradient(160deg, #e0d3ba, #b09a72); }
.mm-g6 { background: linear-gradient(160deg, #ddd3c2, #a89a83); }
.mm-thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.07) 0 3px, transparent 3px 26px);
}
.mm-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: rgba(255, 253, 248, 0.92); color: var(--ink);
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 10px;
}
.mm-prod-name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; margin-top: 14px; }
.mm-prod-meta { color: var(--dim); font-size: 0.86rem; margin-top: 3px; letter-spacing: 0.04em; }

/* ---------- Lookbook ---------- */
.mm-look-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.mm-look { min-width: 0; }
.mm-look-art { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.mm-lg1 { background: linear-gradient(150deg, #e8dcc7, #b39b72); }
.mm-lg2 { background: linear-gradient(150deg, #4a403a, #1d1812); }
.mm-lg3 { background: linear-gradient(150deg, #d9cfc0, #9c8f7d); }
.mm-look-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-look-art { transition: box-shadow 0.25s ease; }
.mm-look:hover .mm-look-art { box-shadow: 10px 10px 0 -2px rgba(26, 26, 26, 0.18); }
.mm-look-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin-top: 16px; }
.mm-look-sub { color: var(--dim); font-size: 0.9rem; margin-top: 6px; max-width: 40ch; font-weight: 300; }

/* ---------- Atelier / story ---------- */
.mm-story {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.mm-story h2 { margin-top: 14px; max-width: 20ch; }
.mm-story-copy p:not(.mm-kicker) {
  color: rgba(26, 26, 26, 0.72); margin-top: 18px;
  max-width: 58ch; font-weight: 300; font-size: 1rem; line-height: 1.8;
}
.mm-stats {
  display: flex; flex-wrap: wrap; gap: 24px 40px;
  margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line);
}
.mm-stats li { min-width: 130px; }
.mm-stat-num { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--acc-deep); }
.mm-stat-cap { display: block; font-size: 0.8rem; color: var(--dim); margin-top: 2px; max-width: 20ch; }
.mm-quote {
  background: var(--panel); border: 1px solid var(--line);
  padding: 34px 30px; position: relative;
}
.mm-quote-mark { width: 42px; color: var(--acc); }
.mm-quote-text { margin-top: 18px; }
.mm-quote-text p { font-family: var(--serif); font-style: italic; font-size: 1.18rem; line-height: 1.55; }
.mm-quote-by { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.mm-avatar {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-size: 0.9rem;
}
.mm-cite-name { display: block; font-style: normal; font-weight: 600; font-size: 0.92rem; }
.mm-cite-role { display: block; font-size: 0.78rem; color: var(--dim); }

/* ---------- CTA Cercle ---------- */
.mm-cta {
  text-align: center; background: var(--panel);
  border: 1px solid var(--line); padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 60px);
}
.mm-cta h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: 16px; }
.mm-cta-sub { color: var(--dim); max-width: 56ch; margin: 14px auto 0; font-weight: 300; }
.mm-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.mm-cta-note { color: var(--dim); font-size: 0.8rem; margin-top: 18px; letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.mm-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 60px 0 42px; }
.mm-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.mm-f-tagline { color: var(--dim); font-size: 0.9rem; margin-top: 14px; max-width: 34ch; font-weight: 300; }
.mm-f-col h3 {
  font-family: var(--serif); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.mm-f-links { display: grid; gap: 8px; }
.mm-f-links a {
  color: var(--dim); text-decoration: none; font-size: 0.9rem;
  min-height: 34px; display: inline-flex; align-items: center;
  transition: color 0.15s ease;
}
.mm-f-links a:hover { color: var(--ink); }
.mm-f-text { color: var(--dim); font-size: 0.9rem; margin-bottom: 10px; font-weight: 300; }
.mm-f-cta .btn { margin-top: 6px; }
.badge {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 46px; padding: 14px 18px;
  border: 1px dashed rgba(160, 128, 80, 0.55);
  color: var(--dim); font-size: 0.86rem;
}
.badge-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--acc); margin-top: 7px; }
.mm-footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  justify-content: space-between; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line); color: var(--dim); font-size: 0.84rem;
}
.mm-to-top {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--dim); text-decoration: none; min-height: 44px; letter-spacing: 0.08em;
}
.mm-to-top .ic { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mm-to-top:hover { color: var(--ink); }

/* ---------- Reveal on scroll (gating html.js) ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease var(--d, 0s), transform 0.6s ease var(--d, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .mm-ticker-track { animation: none; }
  .btn, .mm-thumb, .mm-look-art { transition: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1020px) {
  .mm-footer-grid { grid-template-columns: 1fr 1fr; }
  .mm-story { grid-template-columns: 1fr; }
  .mm-quote { max-width: 560px; }
}
@media (max-width: 860px) {
  .mm-hero-grid { grid-template-columns: 1fr; }
  .mm-hero-art { max-width: 440px; }
  .mm-hero-chip { left: 10px; bottom: -16px; }
}
@media (max-width: 760px) {
  .mm-nav-links {
    display: none; margin-left: 0;
    position: absolute; top: 66px; left: 0; right: 0; z-index: 90;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
  }
  .mm-nav-links.open { display: grid; gap: 4px; }
  .mm-nav-links a { padding: 12px 14px; font-size: 0.94rem; }
  .mm-nav-cta { display: none; }
  .mm-toggle { display: grid; }
  .mm-hero { padding: 52px 0 56px; }
  .mm-hero-facts { gap: 18px 26px; }
  .sec { padding: 64px 0; }
  .sec-head.split { flex-direction: column; align-items: flex-start; }
  .mm-footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .mm-hero-cta .btn { width: 100%; }
  .mm-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .mm-brand { letter-spacing: 0.16em; font-size: 0.94rem; }
  .mm-cta-actions .btn { width: 100%; }
}
