/* =========================================================
   RONA VANA — stylesheet utama
   Palet diambil dari logo: cokelat kayu (R), hijau zaitun (tulisan),
   hijau daun → dilembutkan menjadi sage.
   ========================================================= */

:root {
  /* dasar */
  --paper: #fbf8f2;
  --cream: #f8f4ec;
  --sand: #f0e8da;
  --linen: #e5d9c4;
  --clay: #d6c5a8;

  /* dari logo */
  --bark: #7b5a43;
  --bark-dark: #5a3f2c;
  --bark-deep: #46321f;
  --olive: #5a5a22;
  --olive-soft: #7d7d45;
  --sage: #a7b48a;
  --sage-soft: #e4e8d6;
  --leaf: #96b25c;

  /* teks */
  --ink: #3d3227;
  --muted: #695c4f;

  /* pewarna alami */
  --indigo: #3e4f6b;
  --secang: #b06457;
  --tingi: #6e4a35;
  --jelawe: #8d8f4e;
  --mahoni: #8c4f3c;
  --kunyit: #c79a3e;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(70, 50, 31, .28);
  --shadow-soft: 0 10px 30px -12px rgba(70, 50, 31, .18);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, sans-serif;

  --header-h: 84px;
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  color: var(--bark-dark);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--olive); font-weight: 400; }
p { margin: 0 0 1em; }
::selection { background: var(--sage-soft); color: var(--bark-dark); }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .76rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--olive-soft);
  margin-bottom: 1.2em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow em { font-family: var(--serif); text-transform: none; letter-spacing: .02em; font-size: 1.25em; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.section-head p:last-child { color: var(--muted); max-width: 560px; margin-inline: auto; }

/* ---------- Tekstur kertas ---------- */
.grain {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .15 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--indigo), var(--secang), var(--kunyit), var(--jelawe), var(--tingi));
}

/* ---------- Tombol ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1em 2em;
  border-radius: 999px;
  font-size: .95rem; font-weight: 400; letter-spacing: .04em;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--olive); color: var(--cream); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--bark-dark);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn--primary:hover::before { transform: none; }
.btn--primary > * { position: relative; }
.btn--ghost { border-color: rgba(123, 90, 67, .45); color: var(--bark); }
.btn--ghost:hover { background: var(--bark); border-color: var(--bark); color: var(--cream); }
.btn--link { padding-inline: .2em; border-radius: 0; color: var(--bark); }
.btn--link::after {
  content: ""; position: absolute; left: .2em; right: .2em; bottom: .7em; height: 1px;
  background: currentColor; transform-origin: right; transition: transform .5s var(--ease);
}
.btn--link:hover::after { transform: scaleX(0); transform-origin: left; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.icon-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .3s;
}
.icon-btn:hover { background: rgba(123, 90, 67, .08); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--bark-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kursor kustom ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor__ring {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1px solid rgba(90, 90, 34, .55);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s, opacity .3s;
}
.cursor__label {
  font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); opacity: 0; transition: opacity .3s;
}
.cursor.is-link .cursor__ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(167, 180, 138, .18); border-color: transparent; }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(90, 90, 34, .9); border-color: transparent; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-hidden .cursor__ring { opacity: 0; }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 300;
  background: var(--cream);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__inner { text-align: center; transition: transform 1.1s var(--ease-io), opacity .6s; }
.preloader.is-done .preloader__inner { transform: translateY(-60px); opacity: 0; }
.preloader__mark img {
  width: 130px; margin: 0 auto;
  clip-path: inset(100% 0 0 0);
  animation: grow 1.5s .15s var(--ease-io) forwards;
}
@keyframes grow { to { clip-path: inset(0 0 0 0); } }
.preloader__word {
  margin: 1rem 0 1.4rem;
  font-family: var(--serif); font-size: 2.2rem; font-style: italic; color: var(--olive);
}
.preloader__word span { display: inline-block; opacity: 0; transform: translateY(14px); animation: letter .8s var(--ease) forwards; }
@keyframes letter { to { opacity: 1; transform: none; } }
.preloader__bar { width: 160px; height: 2px; margin: 0 auto; background: var(--linen); border-radius: 2px; overflow: hidden; }
.preloader__bar span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--indigo), var(--secang), var(--kunyit), var(--jelawe));
  transform-origin: left; transform: scaleX(0);
  animation: bar 1.7s .2s var(--ease-io) forwards;
}
@keyframes bar { to { transform: scaleX(1); } }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: transform .6s var(--ease), background .4s, box-shadow .4s, height .4s;
}
.header.is-scrolled {
  height: 70px;
  background: rgba(248, 244, 236, .82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(123, 90, 67, .1);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand__mark { width: 40px; height: 42px; object-fit: contain; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__name { font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: var(--olive); font-weight: 500; }

.nav { display: flex; gap: 2.2rem; }
.nav a { position: relative; font-size: .92rem; letter-spacing: .03em; padding: .3em 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--olive); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav a.is-active { color: var(--olive); }

.header__actions { display: flex; align-items: center; gap: .3rem; }
.bag-btn { position: relative; }
.bag-btn__count {
  position: absolute; top: 4px; right: 2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--olive); color: var(--cream);
  font-size: .68rem; font-weight: 500; line-height: 19px; text-align: center;
  transform: scale(0); transition: transform .4s var(--ease);
}
.bag-btn__count.has-items { transform: scale(1); }
.bag-btn.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.2) rotate(-8deg); } 60% { transform: scale(.95) rotate(4deg); } }

.menu-btn { display: none; width: 46px; height: 46px; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--bark-dark); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 19px; }
.menu-btn span:nth-child(2) { top: 27px; }
.is-menu-open .menu-btn span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.is-menu-open .menu-btn span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--sand);
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path .9s var(--ease-io);
  visibility: hidden;
}
.is-menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.menu__inner { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 3rem; padding-top: var(--header-h); }
.menu__nav { display: flex; flex-direction: column; gap: .2rem; }
.menu__nav a {
  font-family: var(--serif); font-size: clamp(2.4rem, 10vw, 3.6rem); line-height: 1.2; color: var(--bark-dark);
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s, transform .8s var(--ease), color .3s;
}
.menu__nav a small { font-family: var(--sans); font-size: .8rem; color: var(--olive-soft); letter-spacing: .1em; }
.menu__nav a:hover { color: var(--olive); font-style: italic; }
.is-menu-open .menu__nav a { opacity: 1; transform: none; }
.is-menu-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.is-menu-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.is-menu-open .menu__nav a:nth-child(3) { transition-delay: .35s; }
.is-menu-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.is-menu-open .menu__nav a:nth-child(5) { transition-delay: .45s; }
.is-menu-open .menu__nav a:nth-child(6) { transition-delay: .5s; }
.menu__foot { color: var(--muted); font-size: .95rem; }
.menu__foot a { color: var(--olive); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 30px) 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__blobs { position: absolute; inset: 0; z-index: -2; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.blob--1 { width: 46vw; height: 46vw; right: -10vw; top: -14vw; background: var(--sage-soft); }
.blob--2 { width: 34vw; height: 34vw; left: -12vw; bottom: -12vw; background: #ecd2c6; animation-duration: 26s; }
.blob--3 { width: 28vw; height: 28vw; left: 34vw; top: 30%; background: var(--linen); animation-duration: 30s; opacity: .7; }
.blob--4 { width: 18vw; height: 18vw; right: 22vw; bottom: 4vw; background: #d3d9e3; animation-duration: 20s; opacity: .5; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3vw, -2vw) scale(1.08); }
  100% { transform: translate(-2vw, 3vw) scale(.96); }
}
.hero__leaves { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 4rem; align-items: center; }
.hero__title { font-size: clamp(2.8rem, 5.3vw, 5.4rem); white-space: nowrap; line-height: .98; margin-bottom: .45em; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(112%); transition: transform 1.4s var(--ease); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: .2s; }
.is-ready .hero__title .line > span { transform: none; }

.js .hero-fade { opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .hero-fade { opacity: 1; transform: none; }

.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 31em; }
.hero__actions { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; margin: 2.2rem 0 3rem; }
.hero__meta { list-style: none; padding: 0; margin: 0; display: flex; gap: 2.4rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.hero__meta strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--bark-dark); line-height: 1.1; }

.hero__art { position: relative; justify-self: center; perspective: 1100px; }
.hero__art-inner { position: relative; transition: transform .8s var(--ease); transform-style: preserve-3d; }
.arch {
  --hero-dye: var(--indigo);
  --hero-tint: #e7e6e3;
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 3 / 4.15;
  border-radius: 50% 50% var(--radius) var(--radius) / 34% 34% var(--radius) var(--radius);
  background: linear-gradient(180deg, var(--hero-tint), var(--sand));
  box-shadow: var(--shadow), inset 0 0 0 10px rgba(255, 255, 255, .35);
  overflow: hidden;
  transition: background 1.4s ease;
}
.arch__motif {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    repeating-linear-gradient(0deg, rgba(123, 90, 67, .05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(123, 90, 67, .05) 0 1px, transparent 1px 7px);
}
.hanger {
  position: absolute; left: 50%; top: 12%; width: 34%; transform: translateX(-50%);
  fill: none; stroke: var(--bark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.hero__dress {
  position: absolute; left: 50%; top: 19%; width: 74%; transform: translateX(-50%);
  transform-origin: 50% 0;
  animation: swing 6s ease-in-out infinite;
  filter: drop-shadow(0 18px 18px rgba(70, 50, 31, .22));
}
@keyframes swing { 0%, 100% { transform: translateX(-50%) rotate(-1.4deg); } 50% { transform: translateX(-50%) rotate(1.4deg); } }

.hero__dye-label {
  position: absolute; left: -12%; bottom: 12%;
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.3rem .8rem .8rem;
  border-radius: 999px;
  background: rgba(251, 248, 242, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  font-size: .78rem; color: var(--muted); line-height: 1.3;
  transform: translateZ(40px);
}
.hero__dye-label strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--bark-dark); }
.hero__dye-swatch {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--hero-dye, var(--indigo));
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .18), 0 0 0 3px var(--paper);
  transition: background 1.2s ease;
}
.badge { position: absolute; right: -9%; top: 6%; width: 124px; height: 124px; transform: translateZ(60px); }
.badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { font-family: var(--sans); font-size: 8.6px; letter-spacing: .12em; text-transform: uppercase; fill: var(--bark-dark); }
.badge img { position: absolute; inset: 0; margin: auto; width: 46px; }
.badge::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(251, 248, 242, .85); backdrop-filter: blur(6px); z-index: -1; box-shadow: var(--shadow-soft); }
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue span { width: 1px; height: 46px; background: rgba(123, 90, 67, .2); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--bark); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- Garmen (ilustrasi SVG) ---------- */
.garment { width: 100%; height: auto; overflow: visible; }
.garment__fill { transition: fill .9s ease; }
.garment__lines path { fill: none; stroke: rgba(40, 25, 12, .17); stroke-width: 1.2; stroke-linecap: round; }
.garment__edge { fill: none; stroke: rgba(50, 35, 22, .3); stroke-width: 1; }
.garment__extra { fill: none; stroke: rgba(50, 35, 22, .38); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.garment__button { fill: #c9a982; stroke: rgba(50, 35, 22, .35); stroke-width: .8; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden; padding: 1.5rem 0;
  border-block: 1px solid rgba(123, 90, 67, .14);
  background: var(--sand);
}
.marquee__track { display: flex; align-items: center; gap: 2.6rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-style: italic; color: var(--olive); white-space: nowrap; }
.marquee i {
  width: 22px; height: 22px; flex: none;
  background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6 8 5 14 12 22c7-8 6-14 0-20z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6 8 5 14 12 22c7-8 6-14 0-20z'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: rotate(35deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto { position: relative; padding: 170px 0 130px; overflow: hidden; }
.manifesto__deco { position: absolute; right: -60px; top: 80px; width: 340px; opacity: .1; pointer-events: none; }
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.9vw, 3.5rem);
  line-height: 1.24;
  color: var(--bark-dark);
  max-width: 1050px;
  margin-bottom: 5rem;
}
.manifesto__text em { color: var(--olive); }
.js .manifesto__text .w { opacity: .14; transition: opacity .5s ease; }
.js .manifesto__text .w.is-lit { opacity: 1; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { padding-top: 1.4rem; border-top: 1px solid rgba(123, 90, 67, .2); }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(3rem, 5.5vw, 4.6rem); line-height: 1; color: var(--olive); margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.stat__label { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   PILAR
   ========================================================= */
.pillars { padding: 80px 0 140px; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; align-items: start; }
.pillar:nth-child(2) { margin-top: 70px; }
.pillar__visual {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 50% 50% var(--radius) var(--radius) / 38% 38% var(--radius) var(--radius);
  display: grid; place-items: center;
  margin-bottom: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.pillar__visual::before {
  content: ""; position: absolute; inset: -20%;
  background: inherit; transition: transform 1.2s var(--ease);
}
.pillar__visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 6px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .04) 0 1px, transparent 1px 6px);
}
.pillar:hover .pillar__visual::before { transform: scale(1.1) rotate(4deg); }
.pillar__visual--dye { background: radial-gradient(circle at 30% 20%, #6d7c97, var(--indigo) 70%); }
.pillar__visual--fiber { background: radial-gradient(circle at 30% 20%, #c9c39a, var(--jelawe) 75%); }
.pillar__visual--earth { background: radial-gradient(circle at 30% 20%, #b48a6d, var(--tingi) 75%); }
.pillar__visual svg {
  position: relative; z-index: 1; width: 38%;
  fill: none; stroke: var(--cream); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 1s var(--ease);
}
.pillar:hover .pillar__visual svg { transform: translateY(-8px) scale(1.06); }
.pillar__num { font-size: .78rem; letter-spacing: .2em; color: var(--olive-soft); }
.pillar h3 { font-size: 2rem; margin: .3rem 0 .6rem; }
.pillar p { color: var(--muted); }

/* =========================================================
   KOLEKSI
   ========================================================= */
.collection { padding: 140px 0; background: linear-gradient(180deg, var(--cream), var(--paper) 30%, var(--paper)); }
.collection__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.collection__head h2 { font-size: clamp(2.8rem, 6vw, 5rem); margin-bottom: .2em; }
.collection__intro { color: var(--muted); max-width: 30em; margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter {
  padding: .55em 1.3em; border-radius: 999px;
  border: 1px solid rgba(123, 90, 67, .22);
  font-size: .88rem;
  transition: background .35s, color .35s, border-color .35s;
}
.filter:hover { border-color: var(--olive-soft); }
.filter.is-active { background: var(--olive); border-color: var(--olive); color: var(--cream); }

.dye-filter {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .55rem .6rem .55rem 1.2rem; margin-bottom: 2rem;
  background: var(--sage-soft); border-radius: 999px;
  font-size: .9rem; color: var(--bark-dark);
}
.dye-filter[hidden] { display: none; }
.dye-filter strong { font-weight: 500; color: var(--olive); }
.dye-filter button { padding: .3em .9em; border-radius: 999px; background: var(--paper); font-size: .8rem; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem 2.2rem; }
.card.is-hidden { display: none; }
.card__media {
  --tint: var(--sand);
  position: relative; display: grid; place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--tint);
  overflow: hidden;
  transition: background .9s ease;
}
.card__media::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .55), transparent 60%),
    repeating-linear-gradient(0deg, rgba(123, 90, 67, .04) 0 1px, transparent 1px 7px);
}
.card__garment {
  display: block;
  position: relative; width: 66%;
  filter: drop-shadow(0 16px 14px rgba(70, 50, 31, .2));
  transition: transform 1s var(--ease);
}
.card__media:hover .card__garment { transform: translateY(-8px) rotate(-1.5deg) scale(1.03); }
.card__tag {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  padding: .3em .9em; border-radius: 999px;
  background: rgba(251, 248, 242, .9);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bark-dark);
}
.card__view {
  position: absolute; left: 50%; bottom: 18px; z-index: 1;
  padding: .7em 1.5em; border-radius: 999px;
  background: var(--olive); color: var(--cream); font-size: .82rem; letter-spacing: .04em;
  transform: translate(-50%, 160%); transition: transform .6s var(--ease);
}
.card__media:hover .card__view, .card__media:focus-visible .card__view { transform: translate(-50%, 0); }
.card__body { padding: 1.3rem .2rem 0; }
.card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card__name { font-size: 1.7rem; margin: 0; }
.card__price { font-weight: 400; color: var(--olive); white-space: nowrap; }
.card__meta { font-size: .87rem; color: var(--muted); margin: .25rem 0 .9rem; }

.swatches { display: flex; gap: .55rem; flex-wrap: wrap; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .18), 0 0 0 2px var(--paper), 0 0 0 3px transparent;
  transition: box-shadow .3s, transform .3s var(--ease);
}
.swatch:hover { transform: scale(1.15); }
.swatch.is-active { box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .18), 0 0 0 2px var(--paper), 0 0 0 3px var(--bark); }
.swatches--lg .swatch { width: 34px; height: 34px; }

/* =========================================================
   LAB RONA
   ========================================================= */
.lab {
  position: relative; padding: 140px 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(167, 180, 138, .25), transparent 40%),
    var(--sand);
}
.lab__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 5rem; align-items: center; }
.lab h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.lab__intro { color: var(--muted); max-width: 30em; margin-bottom: 2.4rem; }
.lab__group { margin-bottom: 1.8rem; }
.lab__group h4 { display: flex; align-items: center; gap: .7rem; font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--bark); margin-bottom: 1rem; }
.lab__group h4 span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--olive); color: var(--cream); font-size: .72rem; letter-spacing: 0; }

.plants { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.plant {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem .8rem; border-radius: var(--radius-sm);
  background: rgba(251, 248, 242, .6);
  border: 1px solid transparent;
  text-align: left; line-height: 1.2;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.plant:hover { background: var(--paper); transform: translateY(-2px); }
.plant.is-active { background: var(--paper); border-color: var(--olive); box-shadow: var(--shadow-soft); }
.plant__dot { width: 28px; height: 28px; flex: none; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .2); }
.plant strong { display: block; font-weight: 500; font-size: .95rem; color: var(--bark-dark); }
.plant small { font-size: .74rem; color: var(--muted); }

.fabrics { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(251, 248, 242, .6); }
.fabric { padding: .55em 1.4em; border-radius: 999px; font-size: .9rem; transition: background .3s, color .3s; }
.fabric.is-active { background: var(--bark-dark); color: var(--cream); }

.plant-info {
  margin-top: 1.4rem; padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--sage);
  background: rgba(251, 248, 242, .5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .95rem; color: var(--muted);
}
.plant-info strong { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; color: var(--bark-dark); }
.plant-info i { font-family: var(--serif); font-size: 1.05rem; color: var(--olive-soft); }
.plant-info p { margin: .4rem 0 0; }
.plant-info.is-swap { animation: swapIn .6s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateX(-10px); } }

.lab__stage-wrap { --cloth: #f1e9d8; --dye: var(--indigo); position: relative; }
.stage {
  position: relative;
  height: 520px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--paper), #f3ecdf);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stage__light { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .9), transparent 60%); }
.stage__rig {
  position: absolute; left: 50%; top: 46px;
  width: 260px; margin-left: -130px;
  transition: transform 1s var(--ease-io);
  z-index: 1;
}
.stage.is-dipping .stage__rig { transform: translateY(190px); }
.stage__rod {
  height: 14px; margin: 0 -24px;
  border-radius: 8px;
  background: linear-gradient(180deg, #9a765b, var(--bark) 50%, var(--bark-dark));
  box-shadow: 0 4px 8px rgba(70, 50, 31, .25);
  position: relative; z-index: 2;
}
.stage__rod::before, .stage__rod::after { content: ""; position: absolute; top: 3px; width: 10px; height: 8px; border-radius: 50%; background: var(--bark-deep); }
.stage__rod::before { left: -4px; } .stage__rod::after { right: -4px; }
.stage__cloth { margin-top: -6px; width: 100%; }
.stage__cloth svg { width: 100%; height: auto; overflow: visible; }
.cloth__fill { fill: var(--cloth); transition: fill 1.1s ease; }
.cloth__sheen { opacity: 0; transition: opacity .6s; }
.stage.is-silk .cloth__sheen { opacity: 1; }
.stage.is-swapping .stage__cloth { animation: clothSwap .8s var(--ease); }
@keyframes clothSwap { 0% { opacity: 1; } 40% { opacity: 0; transform: translateY(-14px); } 100% { opacity: 1; } }

.stage__bath { position: absolute; left: 50%; bottom: 26px; width: 360px; margin-left: -180px; z-index: 2; }
.bath__liquid {
  position: relative; height: 34px; margin: 0 14px -17px;
  border-radius: 50%;
  background: var(--dye);
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--dye) 70%, white), var(--dye) 70%);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, .25);
  transition: background 1s ease;
  overflow: hidden;
}
.bath__ripple { position: absolute; left: 50%; top: 50%; width: 30px; height: 10px; margin: -5px 0 0 -15px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); opacity: 0; }
.stage.is-rippling .bath__ripple { animation: ripple 1.2s ease-out; }
@keyframes ripple { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(9); } }
.bath__wood {
  height: 150px;
  border-radius: 0 0 50% 50% / 0 0 22% 22%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 46px),
    linear-gradient(90deg, var(--bark-dark), #8f6c51 30%, var(--bark) 60%, var(--bark-dark));
  box-shadow: inset 0 18px 18px -10px rgba(0, 0, 0, .35), 0 20px 30px -14px rgba(70, 50, 31, .5);
  position: relative;
}
.bath__wood::before, .bath__wood::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background: linear-gradient(180deg, #4d382a, #3a2a1e); }
.bath__wood::before { top: 34px; } .bath__wood::after { bottom: 34px; }
.stage__drips { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.drip {
  position: absolute; width: 7px; height: 10px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--dye);
  animation: drip 1s ease-in forwards;
}
@keyframes drip { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { opacity: 1; transform: translateY(4px) scale(1); } 100% { transform: translateY(var(--fall, 120px)); opacity: .2; } }

.readout { display: flex; align-items: center; gap: 1.1rem; margin: 1.6rem 0 1.4rem; padding: 0 .4rem; }
.readout__chip { width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--cloth, #f1e9d8); box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .15), 0 0 0 4px var(--paper), var(--shadow-soft); transition: background 1.1s ease; }
.readout__text { flex: 1; line-height: 1.3; }
.readout__text strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--bark-dark); }
.readout__text small { color: var(--muted); font-size: .85rem; letter-spacing: .04em; }
.dip-meter { display: flex; gap: 5px; }
.dip-meter i { width: 8px; height: 26px; border-radius: 4px; background: rgba(123, 90, 67, .14); transition: background .6s; }
.dip-meter i.is-on { background: var(--dye-c, var(--olive)); }
.lab__actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.lab__shop { display: inline-block; margin-top: 1.4rem; color: var(--olive); font-size: .95rem; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .3s; }
.lab__shop:hover { color: var(--bark); }

/* =========================================================
   PROSES (horizontal)
   ========================================================= */
.process { position: relative; background: var(--paper); }
.process__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 40px; }
.process__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; gap: 2rem; }
.process__head h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0; }
.process__counter { font-family: var(--serif); font-size: 1.3rem; color: var(--muted); text-align: right; min-width: 150px; }
.process__counter span { font-size: 2.6rem; color: var(--olive); }
.process__bar { height: 2px; background: var(--linen); margin-top: .6rem; border-radius: 2px; overflow: hidden; }
.process__bar span { display: block; height: 100%; width: 100%; background: var(--olive); transform-origin: left; transform: scaleX(0); }
.process__track {
  display: flex; gap: 2rem; width: max-content;
  padding-inline: max(24px, (100vw - 1240px) / 2);
  will-change: transform;
}
.step-card {
  width: min(560px, 78vw);
  display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: center;
  padding: 2.4rem;
  border-radius: 28px;
  background: var(--cream);
  border: 1px solid rgba(123, 90, 67, .1);
}
.step-card:nth-child(even) { background: var(--sand); }
.step-card__art {
  aspect-ratio: 1; border-radius: 50%;
  background: var(--paper);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(123, 90, 67, .1);
}
.step-card__art svg { width: 78%; fill: none; stroke: var(--bark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step-card__art .f { fill: var(--sage-soft); }
.step-card__art .f2 { fill: #ecd2c6; }
.step-card__num { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--sage); }
.step-card h3 { font-size: 2rem; margin: .3rem 0 .6rem; }
.step-card p { color: var(--muted); margin: 0; }

/* =========================================================
   MOTIF
   ========================================================= */
.motifs { padding: 150px 0; }
.motifs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.motif {
  position: relative; aspect-ratio: 3 / 4.2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c);
  color: var(--cream);
  isolation: isolate;
}
.motif:nth-child(even) { margin-top: 50px; }
.motif__pattern { position: absolute; inset: -10%; width: 120%; height: 120%; max-width: none; transition: transform 1.6s var(--ease); }
.motif:hover .motif__pattern { transform: scale(1.12) rotate(3deg); }
.motif::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(30, 20, 12, .7)); z-index: 0; }
.motif__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; z-index: 1; }
.motif__body small { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.motif__body h3 { color: var(--cream); font-size: 2.2rem; margin: .1em 0 0; }
.motif__body p {
  font-size: .9rem; line-height: 1.55; margin: 0; opacity: 0;
  max-height: 0; overflow: hidden;
  transition: max-height .7s var(--ease), opacity .5s, margin .5s;
}
.motif:hover .motif__body p, .motif:focus-within .motif__body p { max-height: 10em; opacity: .92; margin-top: .6rem; }

/* =========================================================
   KUTIPAN
   ========================================================= */
.quote { padding: 140px 0; background: var(--linen); text-align: center; position: relative; overflow: hidden; }
.quote::before, .quote::after {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; filter: blur(50px); opacity: .5;
}
.quote::before { left: -80px; top: -80px; background: var(--sage-soft); }
.quote::after { right: -60px; bottom: -100px; background: #ecd2c6; }
.quote blockquote {
  position: relative; z-index: 1;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.3;
  color: var(--olive);
  max-width: 920px; margin: 0 auto 1.6rem;
}
.quote__by { position: relative; z-index: 1; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--bark); }
.quote__by::before { content: "— "; }

/* =========================================================
   PERAWATAN & FAQ
   ========================================================= */
.care { padding: 140px 0; }
.care__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: start; }
.care h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.care__intro { color: var(--muted); max-width: 32em; margin-bottom: 2.6rem; }
.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.tip { padding: 1.6rem; border-radius: 20px; background: var(--sand); transition: transform .5s var(--ease), background .4s; }
.tip:hover { transform: translateY(-4px); background: var(--sage-soft); }
.tip svg { width: 40px; height: 40px; margin-bottom: 1rem; fill: none; stroke: var(--olive); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tip h4 { font-size: 1.4rem; margin-bottom: .3rem; }
.tip p { font-size: .92rem; color: var(--muted); margin: 0; }

.faq h3 { font-size: 1.9rem; margin-bottom: 1.2rem; }
.faq details { border-bottom: 1px solid rgba(123, 90, 67, .18); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--serif); font-size: 1.3rem; color: var(--bark-dark);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--bark), var(--bark)) center / 11px 1.4px no-repeat,
    linear-gradient(var(--bark), var(--bark)) center / 1.4px 11px no-repeat,
    var(--sand);
  transition: transform .5s var(--ease), background-color .3s;
}
.faq details[open] summary::after {
  transform: rotate(135deg);
  background:
    linear-gradient(var(--cream), var(--cream)) center / 11px 1.4px no-repeat,
    linear-gradient(var(--cream), var(--cream)) center / 1.4px 11px no-repeat,
    var(--olive);
}
.faq details p { color: var(--muted); padding: 0 2.6rem 1.3rem 0; margin: 0; }
.faq details[open] p { animation: faqIn .6s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* =========================================================
   LINGKAR RONA
   ========================================================= */
.join { padding: 40px 0 140px; }
.join__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 3rem;
  padding: 4.5rem;
  border-radius: 40px;
  background:
    radial-gradient(circle at 15% 50%, rgba(255, 255, 255, .6), transparent 50%),
    var(--sage-soft);
}
.join__mark { width: 100%; max-width: 320px; justify-self: center; filter: drop-shadow(0 20px 20px rgba(70, 50, 31, .18)); }
.join h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.join__text > p { color: var(--muted); }
.join__form { display: flex; gap: .6rem; margin-top: 1.6rem; padding: 6px; background: var(--paper); border-radius: 999px; box-shadow: var(--shadow-soft); max-width: 520px; }
.join__form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1.2rem; color: var(--ink); outline: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--bark-deep); color: var(--linen); padding: 100px 0 30px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__brand { display: flex; align-items: center; gap: 1.2rem; align-self: start; }
.footer__logo { width: 110px; height: 110px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; flex: none; }
.footer__logo img { width: 70%; }
.footer__brand p { margin: 0; font-size: .95rem; opacity: .85; }
.footer__col { display: flex; flex-direction: column; gap: .5rem; }
.footer__col h5 { font-family: var(--sans); font-size: .76rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sage); margin-bottom: .6rem; }
.footer__col a { opacity: .85; transition: opacity .3s, transform .4s var(--ease); width: fit-content; }
.footer__col a:hover { opacity: 1; transform: translateX(4px); }
.footer__word {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(4.5rem, 19vw, 17rem); line-height: .9;
  text-align: center; margin: 4rem 0 2rem;
  color: rgba(229, 217, 196, .07);
  white-space: nowrap;
  user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; opacity: .6; border-top: 1px solid rgba(229, 217, 196, .14); padding-top: 1.6rem; }

/* =========================================================
   QUICK VIEW (modal)
   ========================================================= */
.modal, .drawer { position: fixed; inset: 0; z-index: 200; }
.modal[hidden], .drawer[hidden] { display: none; }
.modal__overlay, .drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(61, 50, 39, .42);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  animation: fadeIn .4s ease;
}
.modal.is-closing .modal__overlay, .drawer.is-closing .drawer__overlay { animation: fadeOut .4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.modal__dialog {
  position: absolute; left: 50%; top: 50%;
  width: min(1000px, 100% - 40px); max-height: calc(100% - 40px);
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--paper); border-radius: 30px;
  overflow: hidden auto;
  box-shadow: 0 40px 80px -20px rgba(40, 28, 18, .45);
  animation: dialogIn .7s var(--ease);
}
.modal.is-closing .modal__dialog { animation: dialogOut .4s ease forwards; }
@keyframes dialogIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
@keyframes dialogOut { to { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(251, 248, 242, .85); }
.qv__media { position: relative; display: grid; place-items: center; padding: 3rem; background: var(--tint, var(--sand)); transition: background .9s ease; min-height: 420px; }
.qv__media .garment { width: 78%; filter: drop-shadow(0 20px 18px rgba(70, 50, 31, .22)); }
.qv__body { padding: 3rem 2.8rem; }
.qv__body h3 { font-size: 2.6rem; margin-bottom: .15em; }
.qv__price { font-size: 1.15rem; color: var(--olive); margin-bottom: 1.2rem; }
.qv__desc { color: var(--muted); }
.qv__group { margin: 1.4rem 0; }
.qv__group h5 { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--bark); margin-bottom: .8rem; }
.qv__group h5 span { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--olive); }
.sizes { display: flex; gap: .5rem; flex-wrap: wrap; }
.size { min-width: 48px; height: 44px; padding: 0 .9rem; border-radius: 12px; border: 1px solid rgba(123, 90, 67, .25); font-size: .9rem; transition: .3s; }
.size:hover { border-color: var(--bark); }
.size.is-active { background: var(--bark-dark); border-color: var(--bark-dark); color: var(--cream); }
.qv__specs { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.2rem; margin: 1.6rem 0; padding: 1.2rem 0; border-block: 1px solid rgba(123, 90, 67, .14); font-size: .9rem; }
.qv__specs dt { color: var(--muted); }
.qv__specs dd { margin: 0; color: var(--bark-dark); }
.qv__actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* =========================================================
   TAS BELANJA (drawer)
   ========================================================= */
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: -30px 0 60px -20px rgba(40, 28, 18, .3);
  animation: drawerIn .7s var(--ease);
}
.drawer.is-closing .drawer__panel { animation: drawerOut .45s var(--ease-io) forwards; }
@keyframes drawerIn { from { transform: translateX(100%); } }
@keyframes drawerOut { to { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 1.6rem; border-bottom: 1px solid rgba(123, 90, 67, .12); }
.drawer__head h3 { font-size: 1.9rem; margin: 0; }
.drawer__items { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.bag-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(123, 90, 67, .1); animation: swapIn .5s var(--ease); }
.bag-item__media { width: 80px; height: 96px; border-radius: 14px; background: var(--tint, var(--sand)); display: grid; place-items: center; }
.bag-item__media .garment { width: 70%; }
.bag-item h4 { font-size: 1.25rem; margin: 0 0 .1rem; }
.bag-item small { display: block; font-size: .82rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; margin-top: .5rem; border: 1px solid rgba(123, 90, 67, .2); border-radius: 999px; }
.qty button { width: 30px; height: 30px; font-size: 1rem; color: var(--bark); }
.qty span { min-width: 22px; text-align: center; font-size: .9rem; }
.bag-item__side { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.bag-item__price { color: var(--olive); font-size: .95rem; white-space: nowrap; }
.bag-item__remove { font-size: .78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bag-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.bag-empty img { width: 90px; margin: 0 auto 1.2rem; opacity: .8; }
.bag-empty strong { display: block; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--bark-dark); margin-bottom: .3rem; }
.drawer__foot { padding: 1.4rem 1.6rem 1.8rem; border-top: 1px solid rgba(123, 90, 67, .12); background: var(--cream); }
.drawer__foot[hidden] { display: none; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.drawer__total strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--bark-dark); }
.drawer__note { font-size: .82rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 260;
  padding: .9em 1.6em; border-radius: 999px;
  background: var(--bark-dark); color: var(--cream); font-size: .92rem;
  box-shadow: var(--shadow);
  transform: translate(-50%, 160%); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   ANIMASI MUNCUL
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIF
   ========================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .hero__grid { gap: 2rem; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .motifs__grid { grid-template-columns: repeat(2, 1fr); }
  .motif:nth-child(even) { margin-top: 0; }
  .lab__grid { gap: 3rem; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero { padding-bottom: 110px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { order: 2; }
  .hero__art { order: 1; margin-top: 1rem; }
  .hero .eyebrow::before { display: none; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__meta { justify-content: center; }
  .arch { width: min(320px, 72vw); }
  .hero__dye-label { left: -8%; }
  .badge { width: 96px; height: 96px; right: -6%; }
  .badge img { width: 36px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .pillars__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .pillar:nth-child(2) { margin-top: 0; }

  .lab__grid { grid-template-columns: 1fr; }
  .stage { height: 460px; }

  /* proses menjadi vertikal */
  .process__sticky { position: static; height: auto; padding: 110px 0; }
  .process__counter { display: none; }
  .process__track { flex-direction: column; width: auto; padding-inline: 0; margin-inline: auto; max-width: min(560px, 100% - 48px); transform: none !important; }
  .step-card { width: 100%; }

  .care__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .join__card { grid-template-columns: 1fr; padding: 3rem 2rem; text-align: center; }
  .join__mark { max-width: 180px; }
  .join .eyebrow::before { display: none; }
  .join__form { margin-inline: auto; }

  .modal__dialog { grid-template-columns: 1fr; top: auto; bottom: 0; left: 0; width: 100%; max-height: 92%; transform: none; border-radius: 28px 28px 0 0; animation: sheetIn .7s var(--ease); }
  .modal.is-closing .modal__dialog { animation: sheetOut .4s ease forwards; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  @keyframes sheetOut { to { transform: translateY(100%); } }
  .qv__media { min-height: 300px; padding: 2rem; }
  .qv__media .garment { width: 46%; }
  .qv__body { padding: 2rem 1.6rem 2.4rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .section-head { margin-bottom: 2.6rem; }
  .manifesto { padding: 110px 0 90px; }
  .manifesto__deco { width: 200px; right: -50px; }
  .pillars, .collection, .lab, .motifs, .care, .quote { padding-block: 90px; }
  .products { grid-template-columns: 1fr; gap: 2.8rem; }
  .card__view { transform: translate(-50%, 0); }
  .plants { grid-template-columns: repeat(2, 1fr); }
  .stage { height: 420px; }
  .stage__bath { width: 300px; margin-left: -150px; }
  .stage__rig { width: 210px; margin-left: -105px; }
  .stage.is-dipping .stage__rig { transform: translateY(130px); }
  .bath__wood { height: 120px; }
  .bath__wood::before { top: 26px; } .bath__wood::after { bottom: 26px; }
  .readout { flex-wrap: wrap; }
  .dip-meter { width: 100%; }
  .dip-meter i { flex: 1; height: 8px; }
  .step-card { grid-template-columns: 1fr; padding: 1.8rem; }
  .step-card__art { width: 150px; }
  .motifs__grid { grid-template-columns: 1fr; gap: 1rem; }
  .motif { aspect-ratio: 4 / 3.4; }
  .motif__body { padding: 1.1rem; }
  .motif__body h3 { font-size: 1.6rem; }
  .tips { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { flex-direction: column; align-items: flex-start; }
  .hero__dye-label { left: -4%; bottom: 6%; padding: .6rem 1rem .6rem .6rem; }
  .hero__dye-swatch { width: 32px; height: 32px; }
  .hero__dye-label strong { font-size: 1.1rem; }
}

/* Perangkat sentuh: tampilkan makna motif tanpa hover */
@media (hover: none) {
  .motif__body p { max-height: 10em; opacity: .92; margin-top: .5rem; }
  .card__view { transform: translate(-50%, 0); }
}

/* Hormati preferensi gerak minimal */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-fade { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
  .js .manifesto__text .w { opacity: 1; }
}
