/* ============================================================
   Mộc Lam Wedding — template tĩnh độc lập (prefix: ml-)
   Giai đoạn 1: HEADER + BANNER · VÌ SAO CHỌN · ALBUM PRE-WEDDING
   Giai đoạn 2: LAYOUT MAKEUP · CẨM NANG CHỤP ẢNH CƯỚI
   Giai đoạn 3: MV WEDDING (video giả) · 12 ảnh thật cho album
   Giai đoạn 4: TRẢI NGHIỆM KHÁCH HÀNG · LIÊN HỆ · FOOTER · nút liên hệ nổi

   Desktop (≥ 1024px) dựng theo đúng tỉ lệ bản thiết kế rộng 941px:
   mọi kích thước viết dạng  N × --u  với N là số px đo trên ảnh
   thiết kế, nên bố cục khớp ảnh ở mọi độ rộng màn hình.
   Tablet / mobile (< 1024px) chuyển sang bố cục riêng bằng px.
   ============================================================ */

:root {
  --u: calc(min(100vw, 1920px) / 941);

  --ink:       #1D1B18;   /* tiêu đề */
  --text:      #55514E;   /* đoạn văn */
  --muted:     #75716D;   /* dòng phụ dưới tiêu đề */
  --nav:       #4A4643;
  --gold:      #B8894A;   /* menu đang chọn */
  --gold-ring: #CDA05A;   /* viền tròn quanh ảnh */
  --gold-deep: #A0722C;   /* chấm slide đang chọn */
  --cream:     #FBFAF5;   /* nền section "Vì sao" */
  --paper:     #FDFBF8;   /* nền section album */
  --btn:       #3A3A3A;

  /* bản thiết kế giai đoạn 2 dùng mực ngả xanh than và viền vàng sáng hơn */
  --navy:      #202435;   /* tiêu đề section makeup + cẩm nang */
  --navy-deep: #151A2B;   /* tên bài cẩm nang — nét Tinos mảnh hơn chữ trên ảnh nên mực đậm hơn để cân */
  --slate:     #565A68;   /* dòng phụ dưới tiêu đề của 2 section đó */
  --gold-soft: #E3AE63;   /* viền tròn ảnh cẩm nang */

  /* font chọn theo bản thiết kế: đo độ rộng từng dòng chữ trên ảnh rồi so */
  --display: "Tinos", "Times New Roman", Times, serif;              /* tiêu đề section, nút */
  /* không dùng Georgia làm dự phòng: thiếu chữ Việt dựng sẵn (ế, ấ, ồ…) nên dấu bị tách rời */
  --serif:   "Playfair Display", "Times New Roman", Times, serif; /* tiêu đề từng ý */
  --sans:    "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --head-h: calc(var(--u) * 56);
  /* > 1920px: --u dừng tăng, phần lề thừa chia đều hai bên để bố cục vẫn ở giữa */
  --gutter: max(0px, (100vw - var(--u) * 941) / 2);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h2, h3 { font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

.ml-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.ml-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--btn); color: #fff; padding: 10px 18px;
}
.ml-skip:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

section[id] { scroll-margin-top: var(--head-h); }

/* ============================================================
   HEADER — nền trắng, dính trên cùng khi cuộn
   ============================================================ */

.ml-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--head-h);
  background: #fff;
  box-shadow: 0 1px 0 rgba(70, 55, 35, .05), 0 2px 6px rgba(70, 55, 35, .07);
}

.ml-header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: calc(var(--gutter) + var(--u) * 165);
}

.ml-brand {
  flex: none;
  width: calc(var(--u) * 122.3);
}
.ml-brand img { width: 100%; height: auto; }

.ml-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) + var(--u) * 309);
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 19.5);
}

.ml-nav a {
  position: relative;
  padding: calc(var(--u) * 6) 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: max(10.5px, calc(var(--u) * 7.8));
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--nav);
  transition: color .25s ease;
}
.ml-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: calc(var(--u) * 2);
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.ml-nav a:hover { color: var(--gold); }
.ml-nav a:hover::after { transform: scaleX(1); }
.ml-nav a.is-active { color: var(--gold); }

.ml-burger {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--ink);
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}
.ml-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .25s ease, width .3s ease;
}
.ml-burger span:nth-child(3) { width: 14px; }
.ml-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.ml-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ml-burger[aria-expanded="true"] span:nth-child(3) { width: 22px; transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   BANNER — ảnh tràn viền, tỉ lệ 941 : 464 như thiết kế
   ============================================================ */

.ml-hero {
  position: relative;
  aspect-ratio: 941 / 464;
  overflow: hidden;
  background: #E9E3D7;
  isolation: isolate;
}

.ml-hero__track { position: absolute; inset: 0; }

.ml-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity .8s ease;
}
.ml-slide.is-active { opacity: 1; z-index: 1; }

.ml-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 4s ease-out;
}
.ml-slide.is-active img { transform: scale(1); }

.ml-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(var(--u) * 15.8);
  display: flex;
  gap: calc(var(--u) * 11.2);
  transform: translateX(-50%);
}

.ml-dots button {
  width: max(8px, calc(var(--u) * 8.3));
  height: max(8px, calc(var(--u) * 8.3));
  padding: 0;
  border: max(1px, calc(var(--u) * 1.3)) solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  /* bóng rất nhẹ để chấm trắng vẫn thấy trên ảnh sáng (cát, trời) */
  box-shadow: 0 0 3px rgba(0, 0, 0, .22);
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
}
.ml-dots button:hover { background: rgba(255, 255, 255, .85); }
.ml-dots button[aria-selected="true"] {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

/* ============================================================
   TIÊU ĐỀ SECTION — nhành lá + chữ serif in hoa + dòng phụ
   ============================================================ */

.ml-head { text-align: center; }

.ml-sprig {
  position: relative;
  left: calc(var(--u) * 3.5);   /* nhành lá lệch phải nhẹ so với chữ, như thiết kế */
  display: block;
  width: calc(var(--u) * 45);
  height: calc(var(--u) * 27);
  margin: 0 auto;
}

.ml-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: calc(var(--u) * var(--title-n, 21.4));
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--ink);
}

.ml-sub {
  font-size: calc(var(--u) * var(--sub-n, 13));
  line-height: 1.4;
  color: var(--muted);
}

/* ============================================================
   VÌ SAO NÊN CHỌN MỘC LAM — 2 cột × 3 hàng, ảnh tròn viền vàng
   ============================================================ */

.ml-why {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--u) * 18) 0 calc(var(--u) * 50);
  background:
    radial-gradient(ellipse 42% 46% at 50% 44%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)),
    var(--cream);
}

/* nét vẽ lá cành mờ ở hai mép, giống nền của ảnh thiết kế */
.ml-why::before,
.ml-why::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  width: calc(var(--u) * 300);
  height: calc(var(--u) * 600);
  background: url("images/botanical.svg") no-repeat 0 0 / 100% 100%;
  pointer-events: none;
}
.ml-why::before { left: calc(var(--u) * -20); }
.ml-why::after  { right: calc(var(--u) * -20); transform: scaleX(-1); }

.ml-why { --sub-n: 13; }
.ml-why .ml-title { margin-top: calc(var(--u) * 13.5); }
.ml-why .ml-sub   { margin-top: calc(var(--u) * 5); }

/* hàng cố định theo ảnh tròn (bước 142.5) — đoạn 4 dòng không làm giãn hàng */
.ml-why__grid {
  display: grid;
  grid-template-columns: repeat(2, calc(var(--u) * 408));
  grid-auto-rows: calc(var(--u) * 112);
  row-gap: calc(var(--u) * 30.5);
  margin: calc(var(--u) * 33) 0 0 calc(var(--gutter) + var(--u) * 85);
}

.ml-feat {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--u) * 15.5);
}

.ml-feat__pic {
  --ring-w: calc(var(--u) * 1.7);
  --ring-c: var(--gold-ring);
  flex: none;
  display: block;
  width: calc(var(--u) * 112);
  height: calc(var(--u) * 112);
  padding: calc(var(--u) * 1.2);
  border: var(--ring-w) solid var(--ring-c);
  border-radius: 50%;
  background: #fff;
}
.ml-feat__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.ml-feat__pic:hover img { transform: scale(1.05); }

.ml-feat__body { padding-top: calc(var(--u) * 17.5); }

.ml-feat__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(var(--u) * 14);
  line-height: 1.3;
  color: var(--ink);
}

.ml-feat__text {
  margin-top: calc(var(--u) * 5.5);
  font-size: max(12px, calc(var(--u) * 11.4));
  line-height: calc(var(--u) * 18.3);
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* ============================================================
   ALBUM PRE-WEDDING — lưới 4 cột sát mép, khe trắng mảnh
   ============================================================ */

/* đáy = đáy nút "Xem thêm": khoảng trống phía dưới do section makeup lo */
.ml-album {
  padding: calc(var(--u) * 5) 0 0;
  background: var(--paper);
}

.ml-album { --sub-n: 14; }
.ml-album .ml-title { margin-top: calc(var(--u) * 13.5); }
.ml-album .ml-sub   { margin-top: calc(var(--u) * 6.5); }

.ml-album__frame {
  max-width: calc(var(--u) * 941);
  margin: calc(var(--u) * 14.5) auto 0;
  padding: 0 calc(var(--u) * 7.5);
}

.ml-album__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--u) * 2.2);
  background: #fff;
}

.ml-album__item {
  aspect-ratio: 230 / 202.5;
  overflow: hidden;
  background: #EEE9DF;
}
.ml-album__item picture { display: block; width: 100%; height: 100%; }
.ml-album__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}
.ml-album__item:hover img { transform: scale(1.04); }

.ml-btn {
  display: flex;
  width: fit-content;
  height: calc(var(--u) * 34);
  margin: calc(var(--u) * 20) auto 0;
  padding: 0 calc(var(--u) * 23.5);
  align-items: center;
  gap: calc(var(--u) * 8.5);
  border-radius: calc(var(--u) * 2);
  background: var(--btn);
  color: #F6F3EE;
  font-family: var(--display);
  font-weight: 400;
  font-size: max(11px, calc(var(--u) * 11.2));
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .3s ease;
}
.ml-btn svg {
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 15);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}
.ml-btn:hover { background: #262524; }
.ml-btn:hover svg { transform: translateX(3px); }

/* ============================================================
   LAYOUT MAKEUP + CẨM NANG — chung nền kem, cành lá viền mảnh ở hai mép
   (nửa trái vẽ trong SVG, nửa phải lật gương)
   ============================================================ */

.ml-makeup,
.ml-guide,
.ml-mv {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  --ink: var(--navy);
  --muted: var(--slate);
}
.ml-guide { overflow: hidden; }

.ml-makeup::before, .ml-makeup::after,
.ml-guide::before, .ml-guide::after,
.ml-mv::before, .ml-mv::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: no-repeat 0 0 / 100% 100%;
  pointer-events: none;
}
.ml-makeup::before, .ml-guide::before, .ml-mv::before { left: 0; }
.ml-makeup::after,  .ml-guide::after,  .ml-mv::after  { right: 0; transform: scaleX(-1); }

/* cành ngang ở góc trên, nhô lên phía trên section như thiết kế */
.ml-makeup::before, .ml-makeup::after,
.ml-mv::before, .ml-mv::after {
  top: calc(var(--u) * -25);
  width: calc(var(--u) * 250);
  height: calc(var(--u) * 150);
  background-image: url("images/leaves-corner.svg");
}
/* cành chéo phía trên + dây lá chạy dọc mép */
.ml-guide::before, .ml-guide::after {
  top: 0;
  width: calc(var(--u) * 240);
  height: calc(var(--u) * 540);
  background-image: url("images/leaves-side.svg");
}

/* ---------- LAYOUT MAKEUP — 6 ảnh 2 : 3 thẳng hàng với lưới album ---------- */

/* đáy = đáy dải ảnh: khoảng trống phía dưới do section cẩm nang lo */
.ml-makeup {
  padding: calc(var(--u) * 14) 0 0;
  --title-n: 21;
  --sub-n: 13.7;
}
.ml-makeup .ml-title { margin-top: calc(var(--u) * 10.8); }
.ml-makeup .ml-sub   { margin-top: calc(var(--u) * 7); }

.ml-makeup__strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: calc(var(--u) * 2.2);
  max-width: calc(var(--u) * 926);
  margin: calc(var(--u) * 12.6) auto 0;
  background: #fff;
}

.ml-makeup__item {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #EEE9DF;
}
.ml-makeup__item picture { display: block; width: 100%; height: 100%; }
.ml-makeup__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}
.ml-makeup__item:hover img { transform: scale(1.04); }

/* ---------- CẨM NANG — 3 cột, ảnh tròn + tên bài 2 dòng ---------- */

/* đáy = đáy dòng chú thích cuối: khoảng trống phía dưới do section MV lo */
.ml-guide {
  padding: calc(var(--u) * 13.8) 0 0;
  --title-n: 19.85;
  --sub-n: 13.2;
}
.ml-guide .ml-title { margin-top: calc(var(--u) * 8.6); }
.ml-guide .ml-sub   { margin-top: calc(var(--u) * 5.5); }

.ml-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, calc(var(--u) * 248.3));
  justify-content: center;
  row-gap: calc(var(--u) * 16.2);
  margin-top: calc(var(--u) * 15.9);
}

.ml-guide__item { text-align: center; }

.ml-guide__pic {
  --ring-w: calc(var(--u) * 1.7);
  --ring-c: var(--gold-soft);
  display: block;
  width: calc(var(--u) * 130);
  height: calc(var(--u) * 130);
  margin: 0 auto;
  padding: calc(var(--u) * 1.5);
  border: var(--ring-w) solid var(--ring-c);
  border-radius: 50%;
  background: #fff;
}
.ml-guide__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.ml-guide__item:hover .ml-guide__pic img { transform: scale(1.06); }
.ml-guide__title { cursor: pointer; }

.ml-guide__title {
  margin-top: calc(var(--u) * 3.1);
  font-family: var(--display);
  font-weight: 400;
  font-size: calc(var(--u) * 15.5);
  line-height: calc(var(--u) * 20.7);
  white-space: nowrap;
  color: var(--navy-deep);
}

/* ---------- MV WEDDING — 3 cột khung 16 : 9, video giả = ảnh + nút play + thời lượng ---------- */

/* tiêu đề – phụ đề – khung video xếp sát hơn các section khác, đúng như thiết kế */
.ml-mv {
  padding: calc(var(--u) * 5) 0 calc(var(--u) * 48);
  --title-n: 22;
  --sub-n: 13.45;
}
.ml-mv .ml-title { margin-top: calc(var(--u) * 3); }

.ml-mv__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--u) * 10.5);
  max-width: calc(var(--u) * 889);
  margin: calc(var(--u) * 6.6) auto 0;
}

.ml-mv__item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--u) * 2);
  background: #EEE9DF;
}
.ml-mv__item picture { display: block; width: 100%; height: 100%; }
.ml-mv__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}
.ml-mv__item:hover img { transform: scale(1.04); }

.ml-mv__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 46);
  border: calc(var(--u) * 1.9) solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  background: rgba(20, 16, 12, .16);
  transform: translate(-50%, -50%);
  transition: transform .35s ease, background-color .35s ease;
}
/* tam giác lệch phải một chút cho cân mắt */
.ml-mv__play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--u) * 15);
  height: calc(var(--u) * 18);
  background: #fff;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: translate(-40%, -50%);
}
.ml-mv__item:hover .ml-mv__play,
.ml-mv__item:focus-visible .ml-mv__play {
  background: rgba(20, 16, 12, .32);
  transform: translate(-50%, -50%) scale(1.08);
}

.ml-mv__time {
  position: absolute;
  right: calc(var(--u) * 7);
  bottom: calc(var(--u) * 7);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: calc(var(--u) * 36.7);
  height: calc(var(--u) * 18.7);
  padding: 0 calc(var(--u) * 5);
  border-radius: calc(var(--u) * 3);
  background: rgba(0, 0, 0, .8);
  color: #fff;
  font-family: var(--sans);
  font-size: max(10px, calc(var(--u) * 10.5));
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- MV: nền minh họa + chữ giữa + ảnh nằm trong 9 khung ----------
   Tọa độ khung đo trên file nền 1449 × 1086, viết theo % để khớp mọi độ rộng. */

.ml-mv {
  padding: calc(var(--u) * 18) 0 calc(var(--u) * 10);
  background: #FBF9F6;
  --title-n: 22;
  --sub-n: 13.45;
}
.ml-mv::before,
.ml-mv::after { content: none; }

.ml-mv__stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1449 / 1086;
  background: #FBF9F6 url("images/mv-section-bg.png") center / 100% 100% no-repeat;
  container-type: inline-size;
}

.ml-mv__copy {
  position: absolute;
  z-index: 2;
  /* tiêu đề nằm trong khoảng trống giữa cành lá (y ≈ 88) và dải nơ (y ≈ 140) của nền */
  top: 8.75%;
  left: 27%;
  width: 46%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #3E4634;
}

/* desktop: nền đã vẽ sẵn cành lá nên ẩn bản SVG; chỉ hiện ở màn hẹp */
.ml-mv__sprig {
  display: none;
  width: 5.6cqw;
  height: auto;
  margin-bottom: 0.35cqw;
}

.ml-mv__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.55cqw;
  line-height: 1.05;
  letter-spacing: 0.14em;
  color: #3A4332;
}

.ml-mv__lead {
  margin-top: 2.15cqw;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.72cqw;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #4A453C;
}

.ml-mv__note {
  width: 88%;
  margin-top: 1.15cqw;
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.98cqw;
  line-height: 1.65;
  color: #6E675F;
}

.ml-mv__script {
  position: absolute;
  z-index: 2;
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 2.15cqw;
  line-height: 0.95;
  color: #B89A72;
  pointer-events: none;
}
.ml-mv__script--film {
  left: 3.2%;
  top: 21%;
  transform: rotate(-8deg);
}
.ml-mv__script--more {
  right: 2.4%;
  top: 13.5%;
  text-align: right;
  transform: rotate(7deg);
}

.ml-mv__grid {
  position: absolute;
  inset: 0;
  display: block;
  max-width: none;
  margin: 0;
}

/* Mỗi ô nằm lọt bên trong viền vàng mảnh (viền trong) của khung, chừa cả 2 lớp viền ra ngoài.
   Viền trong đo được: cột x 90–494 / 526–923 / 954–1359, hàng y 336–525 / 571–761 / 804–986. */
.ml-mv__grid > li { position: absolute; top: 52.808%; height: 17.035%; }
.ml-mv__grid > li:nth-child(-n+3) { top: 31.169%; }
.ml-mv__grid > li:nth-child(n+7)  { top: 74.263%; height: 16.298%; }
.ml-mv__grid > li:nth-child(3n+1) { left: 6.384%;  width: 27.605%; }
.ml-mv__grid > li:nth-child(3n+2) { left: 36.473%; width: 27.122%; }
.ml-mv__grid > li:nth-child(3n)   { left: 66.011%; width: 27.605%; }

.ml-mv__item {
  /* bán kính góc khuyết lõm, bám theo góc của viền trong (~13px trên nền 1449px) */
  --notch: 0.9cqw;
  --notch-mask: #0000 var(--notch), #000 calc(var(--notch) + 0.5px);
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  -webkit-mask:
    radial-gradient(circle at 0 0, var(--notch-mask)) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, var(--notch-mask)) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, var(--notch-mask)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, var(--notch-mask)) bottom right / 51% 51% no-repeat;
          mask:
    radial-gradient(circle at 0 0, var(--notch-mask)) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, var(--notch-mask)) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, var(--notch-mask)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, var(--notch-mask)) bottom right / 51% 51% no-repeat;
}
.ml-mv__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(to top, rgba(28, 22, 16, .55), rgba(28, 22, 16, 0));
  pointer-events: none;
}
.ml-mv__name {
  position: absolute;
  z-index: 2;
  left: 8.5%;
  right: 14%;
  bottom: 9%;
  color: #fff;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15cqw;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.ml-mv__gem {
  position: absolute;
  z-index: 2;
  right: 9%;
  bottom: 10%;
  width: 0.72cqw;
  height: 0.72cqw;
  fill: #E8D4A4;
  stroke: rgba(255, 255, 255, .7);
  stroke-width: .7;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}
.ml-mv__play {
  width: 15%;
  height: auto;
  aspect-ratio: 1;
  border-width: 1.5px;
}

/* nút "xem thêm" — đè lên viên nút xanh rêu vẽ sẵn trên nền (x 575–875, y 1013–1065) */
.ml-mv__more {
  position: absolute;
  z-index: 2;
  left: 39.683%;
  top: 93.278%;
  width: 20.704%;
  height: 4.788%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6cqw;
  border-radius: 999px;
  color: #F1EAD9;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.08cqw;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color .3s ease, background-color .3s ease;
}
.ml-mv__more svg {
  width: 1.05cqw;
  height: 1.05cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}
.ml-mv__more:hover { color: #E8D4A4; background-color: rgba(255, 255, 255, .06); }
.ml-mv__more:hover svg { transform: translateX(3px); }
.ml-mv__more:focus-visible { outline: 2px solid #C6A36A; outline-offset: 3px; }
.ml-mv__play::before {
  width: 32%;
  height: 38%;
}

/* ============================================================
   TRẢI NGHIỆM KHÁCH HÀNG — kéo ngang có điểm dừng, 3 thẻ mỗi khung
   ============================================================ */

.ml-review {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--u) * 28) 0 calc(var(--u) * 83);
  background: var(--paper);
  --title-n: 27;
  --sub-n: 17.6;
  --muted: #4A4D53;
}

/* desktop: 2 section cuối thu nhỏ đều 15% cho dễ đọc, bố cục giữ nguyên tỉ lệ
   (mọi kích thước bên trong tính theo --u). Công thức phải khớp --u ở :root. */
@media (min-width: 1024px) {
  .ml-review,
  .ml-contact { --u: calc(min(100vw, 1920px) / 941 * .85); }
}
.ml-review::before,
.ml-review::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  width: calc(var(--u) * 240);
  height: calc(var(--u) * 540);
  background: url("images/leaves-side.svg") no-repeat 0 0 / 100% 100%;
  pointer-events: none;
}
.ml-review::before { left: 0; }
.ml-review::after  { right: 0; transform: scaleX(-1); }

/* nhành lá to hơn ở 2 section cuối */
.ml-review .ml-sprig,
.ml-contact .ml-sprig {
  left: calc(var(--u) * 5);
  width: calc(var(--u) * 58);
  height: calc(var(--u) * 35);
}
.ml-review .ml-title { margin-top: calc(var(--u) * 20.3); }
.ml-review .ml-sub   { margin-top: calc(var(--u) * 10.1); }

/* nút trước · khung thẻ · nút sau, hàng chấm bên dưới */
.ml-review__slider {
  display: grid;
  grid-template-columns: calc(var(--u) * 40) calc(var(--u) * 873) calc(var(--u) * 40);
  grid-template-areas: "prev view next" ". dots .";
  justify-content: center;
  align-items: center;
  column-gap: calc(var(--u) * 26);
  margin-top: calc(var(--u) * 31.5);
}

.ml-review__arrow {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 40);
  height: calc(var(--u) * 40);
  margin-top: calc(var(--u) * 20);   /* canh giữa thân thẻ (khung có đệm trên cho huy hiệu) */
  padding: 0;
  border: 1px solid #E2CFB2;
  border-radius: 50%;
  background: #FEFDFA;
  color: #A07435;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .2s ease;
}
.ml-review__arrow--prev { grid-area: prev; }
.ml-review__arrow--next { grid-area: next; }
.ml-review__arrow svg {
  width: calc(var(--u) * 17);
  height: calc(var(--u) * 17);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ml-review__arrow:hover { background: #B8894A; border-color: #B8894A; color: #fff; }
.ml-review__arrow:active { transform: scale(.92); }
.ml-review__arrow[hidden],
.ml-review__dots[hidden] { display: none; }

/* padding-top chừa chỗ cho huy hiệu “ nhô lên trên viền thẻ */
.ml-review__viewport {
  position: relative;
  grid-area: view;
  padding-top: calc(var(--u) * 20);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ml-review__viewport::-webkit-scrollbar { display: none; }
.ml-review__viewport:focus-visible { outline-offset: 4px; }

.ml-review__track {
  display: flex;
  gap: calc(var(--u) * 21);
}

.ml-review__card {
  flex: 0 0 calc(var(--u) * 277);
  min-width: 0;
  scroll-snap-align: start;
}
.ml-review__card figure {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: calc(var(--u) * 38) calc(var(--u) * 10) calc(var(--u) * 24.5) calc(var(--u) * 27);
  border: 1px solid #E2CFB2;
  border-radius: calc(var(--u) * 10);
  background: #FEFDFA;
}

/* huy hiệu tròn chứa dấu “ — viền quanh cùng màu nền để "cắt" đường viền thẻ */
.ml-review__mark {
  position: absolute;
  top: calc(var(--u) * -20.5);
  left: 50%;
  width: calc(var(--u) * 40);
  height: calc(var(--u) * 40);
  margin-left: calc(var(--u) * -20);
  border-radius: 50%;
  background: #F9F3E6;
  box-shadow: 0 0 0 calc(var(--u) * 6.5) var(--paper);
  color: #B7863C;
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(var(--u) * 50);
  line-height: calc(var(--u) * 61);
  text-align: center;
}

.ml-review__text { flex: 1 0 auto; margin: 0; min-height: calc(var(--u) * 184); }
.ml-review__text p {
  font-family: var(--sans);
  font-size: calc(var(--u) * 14);
  line-height: calc(var(--u) * 23);
  letter-spacing: -.012em;
  white-space: nowrap;
  color: #3B3D43;
}

/* đường kẻ mảnh phía trên người nhận xét: lệch vào so với ảnh đại diện như thiết kế */
.ml-review__who {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 14);
  margin: calc(var(--u) * 23.5) 0 0 calc(var(--u) * -10);
  padding-top: calc(var(--u) * 15.5);
}
.ml-review__who::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--u) * 17);
  width: calc(var(--u) * 199);
  height: 1px;
  background: #EFE6D9;
}

.ml-review__ava {
  flex: none;
  display: block;
  width: calc(var(--u) * 100);
  height: calc(var(--u) * 100);
  padding: calc(var(--u) * 1.5);
  border: calc(var(--u) * 1.5) solid #E3C9A0;
  border-radius: 50%;
  background: #fff;
}
.ml-review__ava img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ml-review__id { display: flex; flex-direction: column; gap: calc(var(--u) * 8); }
.ml-review__name {
  font-family: var(--display);
  font-style: normal;
  font-size: calc(var(--u) * 17.3);
  line-height: calc(var(--u) * 22);
  white-space: nowrap;
  color: var(--ink);
}
.ml-review__loc {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 9.5);
  padding-left: calc(var(--u) * 2);
  font-family: var(--sans);
  font-size: calc(var(--u) * 12.8);
  line-height: calc(var(--u) * 18);
  white-space: nowrap;
  color: #4A4C51;
}
.ml-review__loc svg { flex: none; width: calc(var(--u) * 15.5); height: calc(var(--u) * 18); fill: #A98349; }

.ml-review__dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  gap: calc(var(--u) * 12);
  margin-top: calc(var(--u) * 30.5);
}
.ml-review__dots button {
  position: relative;
  width: calc(var(--u) * 12.5);
  height: calc(var(--u) * 12.5);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ECE4D9;
  cursor: pointer;
  transition: background-color .3s ease, transform .3s ease;
}
/* vùng bấm rộng hơn chấm */
.ml-review__dots button::before { content: ""; position: absolute; inset: -8px; }
.ml-review__dots button:hover { background: #DCCBB2; }
.ml-review__dots button[aria-current="true"] { background: #C39C62; }

/* ============================================================
   LIÊN HỆ + FOOTER — nền chung: dải sóng mềm ở đỉnh, hoa trắng hai góc đáy.
   Kéo xuống phủ luôn khoảng đệm của thanh credit (--dn-credit-space) để hoa không bị cắt.
   ============================================================ */

.ml-end {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: calc(var(--dn-credit-space, 0px) * -1);
  padding-bottom: var(--dn-credit-space, 0px);
  background: var(--paper);
}
.ml-end::before,
.ml-end::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  pointer-events: none;
}
.ml-end::before {
  top: 0;
  height: calc(var(--u) * 140);
  background: url("images/wave.svg") no-repeat 0 0 / 100% 100%;
}
/* ảnh nền footer tỉ lệ 3 : 1, mờ dần phía trên để hoà vào nền */
.ml-end::after {
  bottom: 0;
  aspect-ratio: 3 / 1;
  background: url("images/footer-bg.webp") no-repeat 50% 100% / 100% auto;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0), #000 32%);
  mask-image: linear-gradient(rgba(0, 0, 0, 0), #000 32%);
}

.ml-contact {
  padding-top: calc(var(--u) * 52);
  --title-n: 25.5;
  --sub-n: 16.65;
  --muted: #34373D;
}
.ml-contact .ml-title { margin-top: calc(var(--u) * 16.3); }
.ml-contact .ml-sub   { margin-top: calc(var(--u) * 10.9); line-height: calc(var(--u) * 25); }

.ml-contact__grid {
  display: grid;
  grid-template-columns: calc(var(--u) * 308) calc(var(--u) * 287) calc(var(--u) * 281);
  width: calc(var(--u) * 876);
  margin: calc(var(--u) * 40.7) auto 0;
}
.ml-contact__col { border-left: 1px solid #EFE9DF; }
.ml-contact__col:nth-child(2) { padding: 0 calc(var(--u) * 14) calc(var(--u) * 8) calc(var(--u) * 17); }
.ml-contact__col:nth-child(3) { padding: 0 0 calc(var(--u) * 8) calc(var(--u) * 22); }
.ml-contact__info { padding-right: calc(var(--u) * 26); }

/* logo gốc, cao 78u như khối logo trong thiết kế */
.ml-contact__brand { display: block; width: calc(var(--u) * 251); }
.ml-contact__brand img { width: 100%; height: auto; }

.ml-contact__list {
  display: grid;
  gap: calc(var(--u) * 14.5);
  margin-top: calc(var(--u) * 26);
  font-family: var(--sans);
  font-size: calc(var(--u) * 13.9);
  line-height: calc(var(--u) * 21.5);
  color: #45474D;
}
.ml-contact__list li {
  display: grid;
  grid-template-columns: calc(var(--u) * 24) minmax(0, 1fr);
  column-gap: calc(var(--u) * 25);
  align-items: start;
}
.ml-contact__list svg { width: calc(var(--u) * 24); height: calc(var(--u) * 24); fill: #A67C44; }
.ml-contact__list .ml-ico-cut { fill: none; stroke: var(--paper); stroke-width: 1.7; stroke-linejoin: round; }
.ml-contact__list .ml-ico-line { fill: none; stroke: #A67C44; stroke-width: 1.9; stroke-linecap: round; }
.ml-contact__list address { font-style: normal; }
.ml-contact__list strong { font-weight: 400; color: #25282E; }
.ml-contact__list a { transition: color .25s ease; }
.ml-contact__list a:hover { color: var(--gold); }

.ml-contact__social-title {
  margin-top: calc(var(--u) * 25);
  padding-top: calc(var(--u) * 29.5);
  border-top: 1px solid #EFE3CF;
  font-family: var(--display);
  font-size: calc(var(--u) * 15.1);
  line-height: 1.3;
  color: var(--ink);
}
.ml-contact__social {
  display: flex;
  gap: calc(var(--u) * 14);
  margin-top: calc(var(--u) * 10.8);
}
.ml-contact__social a {
  display: grid;
  place-items: center;
  width: calc(var(--u) * 42.5);
  height: calc(var(--u) * 42.5);
  border-radius: 50%;
  background: #F3E8D8;
  color: #5E3D1C;
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.ml-contact__social a:hover { background: #B8894A; color: #fff; transform: translateY(-2px); }
.ml-contact__social svg { width: calc(var(--u) * 21); height: calc(var(--u) * 21); fill: currentColor; }
.ml-contact__social .ml-ico-line { fill: none; stroke: currentColor; stroke-width: 2; }

.ml-contact__title {
  margin-top: calc(var(--u) * 2);
  font-family: var(--display);
  font-size: calc(var(--u) * 16.6);
  line-height: 1.3;
  color: var(--ink);
}

/* khung fanpage dựng tĩnh theo giao diện Facebook */
.ml-fb {
  margin-top: calc(var(--u) * 11.3);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(60, 40, 20, .09);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.ml-fb__cover { display: block; height: calc(var(--u) * 119); }
.ml-fb__cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ml-fb__page {
  position: relative;
  min-height: calc(var(--u) * 51);
  padding: calc(var(--u) * 10) calc(var(--u) * 8) 0 calc(var(--u) * 89);
}
.ml-fb__ava {
  position: absolute;
  top: calc(var(--u) * -28);
  left: calc(var(--u) * 12.5);
  display: block;
  width: calc(var(--u) * 68);
  height: calc(var(--u) * 68);
  padding: calc(var(--u) * 1.5);
  border-radius: 50%;
  background: #fff;
}
.ml-fb__ava img { width: 100%; height: 100%; }
.ml-fb__name { font-size: calc(var(--u) * 12.8); font-weight: 600; line-height: 1.25; color: #1C1E21; }
.ml-fb__meta { margin-top: calc(var(--u) * 2); font-size: calc(var(--u) * 9.4); line-height: 1.3; color: #65676B; }
.ml-fb__actions {
  display: grid;
  grid-template-columns: 120fr 108fr;
  gap: calc(var(--u) * 7);
  padding: 0 calc(var(--u) * 11) 0 calc(var(--u) * 10);
}
.ml-fb__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 5);
  height: calc(var(--u) * 28);
  border-radius: calc(var(--u) * 4);
  background: #E4E6EB;
  color: #050505;
  font-size: calc(var(--u) * 11.3);
  font-weight: 600;
  transition: filter .2s ease;
}
.ml-fb__btn:hover { filter: brightness(.95); }
.ml-fb__btn svg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); fill: currentColor; }
.ml-fb__btn--follow { background: #1877F2; color: #fff; }
.ml-fb__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--u) * 1.5);
  margin-top: calc(var(--u) * 12);
}
.ml-fb__grid li { aspect-ratio: 84.5 / 88; overflow: hidden; background: #EEE9DF; }
.ml-fb__grid img { width: 100%; height: 100%; object-fit: cover; }

.ml-contact__map {
  height: calc(var(--u) * 356);
  margin-top: calc(var(--u) * 11.3);
  overflow: hidden;
  border: 1px solid #E7E1D7;
  background: #E9E5DD;
}
.ml-contact__map iframe { display: block; width: 100%; height: 100%; border: 0; }

.ml-contact__dir {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 9);
  height: calc(var(--u) * 37);
  margin-top: calc(var(--u) * 7.5);
  border-radius: calc(var(--u) * 3);
  background: #E3CDAB;
  color: #3A2612;
  font-family: var(--display);
  font-size: max(11px, calc(var(--u) * 12.4));
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background-color .3s ease;
}
.ml-contact__dir:hover { background: #D8BD90; }
.ml-contact__dir-pin { width: calc(var(--u) * 14); height: calc(var(--u) * 16); fill: #6A4722; }
.ml-contact__dir-arrow {
  width: calc(var(--u) * 17);
  height: calc(var(--u) * 17);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}
.ml-contact__dir:hover .ml-contact__dir-arrow { transform: translateX(3px); }

.ml-foot {
  padding: calc(var(--u) * 46) 0 calc(var(--u) * 72);
  text-align: center;
}
.ml-foot::before {
  content: "";
  display: block;
  width: calc(var(--u) * 748);
  height: 1px;
  margin: 0 auto calc(var(--u) * 74);
  background: #DCC3A0;
}
.ml-foot__copy {
  font-family: var(--sans);
  font-size: max(11px, calc(var(--u) * 11.45));
  line-height: 1.5;
  color: #5F5F63;
}
.ml-foot__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: calc(var(--u) * 13);
  font-family: var(--sans);
  font-size: max(10.5px, calc(var(--u) * 10.6));
  line-height: 1.6;
  color: #77777C;
}
.ml-foot__nav a { transition: color .25s ease; }
.ml-foot__nav a:hover { color: var(--gold); }
.ml-foot__nav a + a::before {
  content: "|";
  margin: 0 calc(var(--u) * 13.5);
  color: #8B8B90;
}

/* ============================================================
   NÚT LIÊN HỆ NỔI — góc trái dưới (góc phải là nút của thanh DN dùng chung)
   ============================================================ */

.ml-fab {
  position: fixed;
  z-index: 85;
  left: 28px;
  bottom: var(--dn-credit-space, 60px);
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.ml-fab__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: linear-gradient(145deg, #C9A267, #A87B40);
  color: #fff;
  box-shadow: 0 5px 14px rgba(120, 82, 34, .32);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ml-fab__btn:hover { transform: scale(1.08); box-shadow: 0 8px 20px rgba(120, 82, 34, .4); }
.ml-fab__btn svg { width: 20px; height: 20px; fill: currentColor; }
.ml-fab__btn--zalo { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }

/* ============================================================
   ALBUM — hover hiện tên cô dâu - chú rể, bấm mở ảnh lớn
   ============================================================ */

.ml-album__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s ease;
}
.ml-album__link:active { transform: scale(.975); }

/* phủ tối từ đáy + khung mảnh bên trong */
.ml-album__link::before,
.ml-album__link::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease, transform .45s ease;
}
.ml-album__link::before {
  inset: 0;
  background: linear-gradient(to top, rgba(24, 19, 14, .74), rgba(24, 19, 14, .22) 48%, rgba(24, 19, 14, 0) 72%);
}
.ml-album__link::after {
  inset: calc(var(--u) * 7);
  border: 1px solid rgba(255, 255, 255, .6);
  transform: scale(1.03);
}

.ml-album__cap {
  position: absolute;
  z-index: 2;
  left: calc(var(--u) * 10);
  right: calc(var(--u) * 10);
  bottom: calc(var(--u) * 17);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--u) * 5);
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.ml-album__names,
.ml-album__more {
  opacity: 0;
  transform: translateY(calc(var(--u) * 9));
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1);
}
.ml-album__names {
  font-family: var(--serif);
  font-weight: 600;
  font-size: max(14px, calc(var(--u) * 14.5));
  line-height: 1.25;
  letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.ml-album__more {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  font-family: var(--sans);
  font-size: max(10px, calc(var(--u) * 8));
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #F2DDB6;
  transition-delay: .06s;
}
.ml-album__more::before,
.ml-album__more::after {
  content: "";
  width: calc(var(--u) * 12);
  height: 1px;
  background: currentColor;
  opacity: .8;
}

.ml-album__link:hover::before,
.ml-album__link:focus-visible::before,
.ml-album__link:hover::after,
.ml-album__link:focus-visible::after { opacity: 1; transform: none; }
.ml-album__link:hover .ml-album__names,
.ml-album__link:focus-visible .ml-album__names,
.ml-album__link:hover .ml-album__more,
.ml-album__link:focus-visible .ml-album__more { opacity: 1; transform: none; }
.ml-album__link:focus-visible { outline-offset: -3px; }

/* ============================================================
   LAYOUT MAKEUP — hover hiện dịp trang điểm
   ============================================================ */

.ml-makeup__item { position: relative; }
.ml-makeup__item::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 19, 14, .7), rgba(24, 19, 14, .15) 45%, rgba(24, 19, 14, 0) 65%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.ml-makeup__cap {
  position: absolute;
  z-index: 2;
  left: calc(var(--u) * 6);
  right: calc(var(--u) * 6);
  bottom: calc(var(--u) * 16);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.ml-makeup__cap > span {
  opacity: 0;
  transform: translateY(calc(var(--u) * 10));
  transition: opacity .45s ease var(--d, 0s), transform .5s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.ml-makeup__kicker {
  font-family: var(--sans);
  font-size: max(9px, calc(var(--u) * 7.2));
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #F2DDB6;
}
.ml-makeup__name {
  margin-top: calc(var(--u) * 4);
  font-family: var(--display);
  font-size: max(15px, calc(var(--u) * 17));
  line-height: 1.15;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
  --d: .05s;
}
.ml-makeup__name::after {
  content: "";
  display: block;
  width: calc(var(--u) * 18);
  height: 1px;
  margin: calc(var(--u) * 6) auto 0;
  background: #E9C58A;
}
.ml-makeup__desc {
  margin-top: calc(var(--u) * 5);
  font-family: var(--sans);
  font-size: max(10px, calc(var(--u) * 8.6));
  color: rgba(255, 255, 255, .88);
  --d: .1s;
}

.ml-makeup__item:hover::before { opacity: 1; }
.ml-makeup__item:hover .ml-makeup__cap > span { opacity: 1; transform: none; }

/* màn cảm ứng không có hover: luôn hiện tên dịp, gọn ở đáy ảnh */
@media (hover: none) {
  .ml-makeup__item::before { opacity: .85; }
  .ml-makeup__cap > .ml-makeup__name { opacity: 1; transform: none; }
  .ml-makeup__kicker, .ml-makeup__desc { display: none; }
}

/* ============================================================
   ẢNH TRÒN MỞ STORY — nhấn lún, vòng đứt nét quay khi đang mở,
   viền chuyển xám khi đã xem hết (như Instagram)
   ============================================================ */

.ml-story {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s ease, border-color .35s ease;
}
.ml-story picture {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}
.ml-story:active { transform: scale(.94); }
.ml-story::after {
  content: "";
  position: absolute;
  inset: calc(var(--ring-w) * -1);
  border: var(--ring-w) dashed var(--ring-c);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.ml-story.is-loading { border-color: transparent; }
.ml-story.is-loading::after { opacity: 1; animation: ml-spin 1s linear infinite; }
.ml-story.is-seen { --ring-c: #D5D0C8; }

@keyframes ml-spin { to { transform: rotate(360deg); } }

/* gợi ý bấm story: con trỏ lướt tới ảnh tròn đầu tiên rồi "bấm" (gợn vòng vàng nhạt).
   Chỉ chạy khi ảnh đang trong màn hình; JS gỡ đi sau khi khách đã bấm story của section đó. */
.ml-hint {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.ml-hint.is-on { opacity: 1; }
.ml-hint.is-done { opacity: 0; }

.ml-hint__ring {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 44%;
  height: 44%;
  margin: -22% 0 0 -22%;
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(184, 137, 74, .35), 0 0 14px rgba(184, 137, 74, .45);
  opacity: 0;
}
.ml-hint__cursor {
  position: absolute;
  left: 50%;
  top: 54%;
  width: clamp(17px, calc(var(--u) * 13), 26px);
  height: auto;
  overflow: visible;
  opacity: 0;
  transform-origin: 11% 7%;
  filter: drop-shadow(0 2px 3px rgba(40, 28, 14, .35));
}
.ml-hint__cursor path { fill: #fff; stroke: #2F2A24; stroke-width: 1.3; stroke-linejoin: round; }

.ml-hint.is-on .ml-hint__cursor { animation: ml-hint-move 4s cubic-bezier(.45, .05, .25, 1) infinite; }
.ml-hint.is-on .ml-hint__ring { animation: ml-hint-ring 4s ease-out infinite; }

@keyframes ml-hint-move {
  0%       { opacity: 0; transform: translate(260%, 210%); }
  12%      { opacity: 1; }
  42%      { transform: translate(0, 0) scale(1); }
  48%      { transform: translate(0, 0) scale(.8); }
  56%      { transform: translate(0, 0) scale(1); }
  76%      { opacity: 1; transform: translate(0, 0); }
  92%,100% { opacity: 0; transform: translate(40%, 35%); }
}
@keyframes ml-hint-ring {
  0%, 46%  { opacity: 0; transform: scale(.35); }
  50%      { opacity: 1; }
  82%,100% { opacity: 0; transform: scale(1.75); }
}

@media (prefers-reduced-motion: reduce) {
  .ml-hint.is-on .ml-hint__cursor { animation: none; opacity: 1; }
  .ml-hint.is-on .ml-hint__ring { animation: none; }
}

/* ============================================================
   STORY VIEWER KIỂU INSTAGRAM (JS dựng DOM)
   Desktop: story 9 : 16 ở giữa, 2 story kề mỗi bên thu nhỏ.
   Điện thoại / màn dọc: story toàn màn hình, chuyển nhóm kiểu khối lập phương.
   ============================================================ */

.ml-lock, .ml-lock body { overflow: hidden; }

.ml-sv {
  --h: min(calc(100vh - 40px), 940px);
  --w: calc(var(--h) * 9 / 16);
  --k: .4;
  position: fixed;
  inset: 0;
  z-index: 200;
  color: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
@supports (height: 100dvh) { .ml-sv { --h: min(calc(100dvh - 40px), 940px); } }
.ml-sv[hidden] { display: none; }

.ml-sv svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ml-sv svg.is-fill, .ml-sv svg .f { fill: currentColor; stroke: none; }

.ml-sv__backdrop {
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  opacity: 0;
  transition: opacity .3s ease;
}
.ml-sv__logo,
.ml-sv__x,
.ml-sv__arrow { opacity: 0; transition: opacity .3s ease; }
.ml-sv.is-open .ml-sv__backdrop,
.ml-sv.is-open .ml-sv__logo,
.ml-sv.is-open .ml-sv__x,
.ml-sv.is-open .ml-sv__arrow { opacity: 1; }

.ml-sv__logo {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 22px;
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* reset nút — :where để các class bên dưới ghi đè được */
:where(.ml-sv) button {
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.ml-sv :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.ml-sv__x {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.ml-sv__x svg { width: 26px; height: 26px; }

.ml-sv__stage { position: absolute; inset: 0; overflow: hidden; }

.ml-sv__card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--w);
  height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  border-radius: 8px;
  overflow: hidden;
  background: #262626;
  transition: transform .45s cubic-bezier(.3, .72, .25, 1), opacity .35s ease;
  will-change: transform;
}
.ml-sv__card.is-far { opacity: 0; pointer-events: none; }
.ml-sv:not(.is-open) .ml-sv__card:not(.is-active) { opacity: 0; }

.ml-sv__media { position: absolute; inset: 0; transition: filter .35s ease; }
.ml-sv__card:not(.is-active) .ml-sv__media { filter: brightness(.42); }
.ml-sv__bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(26px) brightness(.72) saturate(1.1);
}
.ml-sv__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ml-sv__spin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: ml-spin .8s linear infinite;
  transition: opacity .2s ease;
}
.ml-sv__card.is-loading .ml-sv__spin { opacity: 1; transition-delay: .25s; }

.ml-sv__ui { position: absolute; inset: 0; transition: opacity .25s ease; }
.ml-sv__card:not(.is-active) .ml-sv__ui { opacity: 0; visibility: hidden; }
.ml-sv__ui::before,
.ml-sv__ui::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
  transition: opacity .25s ease;
}
.ml-sv__ui::before { top: 0; background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
.ml-sv__ui::after  { bottom: 0; background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .42)); }

/* giữ để tạm dừng: ẩn thanh tiến trình, tên, ô trả lời như IG */
.ml-sv__bars, .ml-sv__head, .ml-sv__reply { transition: opacity .25s ease; }
.ml-sv.is-holding .ml-sv__bars,
.ml-sv.is-holding .ml-sv__head,
.ml-sv.is-holding .ml-sv__reply,
.ml-sv.is-holding .ml-sv__ui::before,
.ml-sv.is-holding .ml-sv__ui::after { opacity: 0; }

.ml-sv__tap { position: absolute; inset: 0; z-index: 1; cursor: pointer; touch-action: none; }

.ml-sv__bars {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.ml-sv__bar {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .35);
  overflow: hidden;
}
.ml-sv__bar i {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.ml-sv__head {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 16px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ml-sv__ava {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.ml-sv__name {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 0 3px rgba(0, 0, 0, .25);
}
.ml-sv__time { flex: none; color: rgba(255, 255, 255, .72); }
.ml-sv__tools { flex: none; display: flex; margin-left: auto; }
.ml-sv__btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}
.ml-sv__btn svg { width: 22px; height: 22px; }
.ml-sv__btn--close { display: none; }

.ml-sv__reply {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 10px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ml-sv__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  margin: 0 8px 0 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 22px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-overflow: ellipsis;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
}
.ml-sv__input::placeholder { color: rgba(255, 255, 255, .9); }
.ml-sv__input:focus { border-color: #fff; }
.ml-sv__reply .ml-sv__btn svg { width: 24px; height: 24px; }
.ml-sv__like.is-liked { color: #FF3040; }
.ml-sv__like.is-liked svg { fill: currentColor; animation: ml-like .45s cubic-bezier(.2, .8, .3, 1.2); }
@keyframes ml-like {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  65% { transform: scale(.92); }
  100% { transform: scale(1); }
}

/* story kề bên (desktop): mờ tối + ảnh đại diện có vòng vàng, tên, giờ */
.ml-sv__peek {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(6px / var(--k));
  padding: 0 calc(10px / var(--k));
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.ml-sv__card:not(.is-active) .ml-sv__peek { opacity: 1; visibility: visible; }
.ml-sv__peek-ring {
  width: calc(66px / var(--k));
  height: calc(66px / var(--k));
  padding: calc(2.5px / var(--k));
  border-radius: 50%;
  background: linear-gradient(45deg, #C98536, #E6AA5C 45%, #F5DCA6);
}
.ml-sv__peek.is-seen .ml-sv__peek-ring { background: rgba(255, 255, 255, .35); }
.ml-sv__peek-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border: calc(3px / var(--k)) solid #1a1a1a;
  border-radius: 50%;
  object-fit: cover;
}
.ml-sv__peek-name {
  max-width: 100%;
  margin-top: calc(4px / var(--k));
  font-size: calc(14px / var(--k));
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}
.ml-sv__peek-time { font-size: calc(14px / var(--k)); color: rgba(255, 255, 255, .72); }

.ml-sv__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: #262626;
}
.ml-sv__arrow svg { width: 16px; height: 16px; stroke-width: 2.6; }
.ml-sv__arrow--prev { left: calc(50% - var(--w) / 2 - 46px); }
.ml-sv__arrow--next { left: calc(50% + var(--w) / 2 + 16px); }
.ml-sv__arrow:hover { background: #fff; }
.ml-sv__arrow.is-off { visibility: hidden; }

.ml-sv__toast {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 96px;
  padding: 11px 18px;
  border-radius: 8px;
  background: rgba(54, 54, 54, .96);
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.ml-sv__toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---- điện thoại / màn dọc: toàn màn hình, chuyển nhóm kiểu khối lập phương ---- */
.ml-sv--m .ml-sv__logo,
.ml-sv--m .ml-sv__x,
.ml-sv--m .ml-sv__arrow,
.ml-sv--m .ml-sv__peek { display: none; }
.ml-sv--m .ml-sv__btn--close { display: grid; }
.ml-sv--m .ml-sv__stage { perspective: 1400px; background: #000; }
.ml-sv--m .ml-sv__card {
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  border-radius: 0;
  transition: none;
  backface-visibility: hidden;
}
.ml-sv--m .ml-sv__card:not(.is-active):not(.is-anim) { visibility: hidden; }
.ml-sv--m .ml-sv__bars { top: calc(8px + env(safe-area-inset-top)); }
.ml-sv--m .ml-sv__head { top: calc(20px + env(safe-area-inset-top)); right: 4px; }
.ml-sv--m .ml-sv__reply { bottom: calc(12px + env(safe-area-inset-bottom)); }

.ml-sv__card.is-cube-out-next { transform-origin: 100% 50%; animation: ml-cube-out-next .5s ease-in both; }
.ml-sv__card.is-cube-in-next  { transform-origin: 0 50%;    animation: ml-cube-in-next .5s ease-in both; }
.ml-sv__card.is-cube-out-prev { transform-origin: 0 50%;    animation: ml-cube-out-prev .5s ease-in both; }
.ml-sv__card.is-cube-in-prev  { transform-origin: 100% 50%; animation: ml-cube-in-prev .5s ease-in both; }
@keyframes ml-cube-out-next {
  50% { transform: translateX(-50%) translateZ(-200px) rotateY(-45deg); animation-timing-function: ease-out; }
  100% { opacity: .35; transform: translateX(-100%) rotateY(-90deg); }
}
@keyframes ml-cube-in-next {
  0% { opacity: .35; transform: translateX(100%) rotateY(90deg); }
  50% { transform: translateX(50%) translateZ(-200px) rotateY(45deg); animation-timing-function: ease-out; }
}
@keyframes ml-cube-out-prev {
  50% { transform: translateX(50%) translateZ(-200px) rotateY(45deg); animation-timing-function: ease-out; }
  100% { opacity: .35; transform: translateX(100%) rotateY(90deg); }
}
@keyframes ml-cube-in-prev {
  0% { opacity: .35; transform: translateX(-100%) rotateY(-90deg); }
  50% { transform: translateX(-50%) translateZ(-200px) rotateY(-45deg); animation-timing-function: ease-out; }
}

/* ============================================================
   LIGHTBOX ALBUM (JS dựng DOM)
   ============================================================ */

.ml-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.ml-lb[hidden] { display: none; }
.ml-lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 14, .94);
  opacity: 0;
  transition: opacity .35s ease;
}
.ml-lb.is-open .ml-lb__backdrop { opacity: 1; }

.ml-lb__fig { position: relative; z-index: 1; margin: 0; }
.ml-lb__frame {
  width: min(86vw, calc((100vh - 170px) * 1.1355));
  aspect-ratio: 1316 / 1159;
  overflow: hidden;
  background: #2a2521;
  touch-action: pan-y;
}
.ml-lb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .25s ease;
}
.ml-lb__img.is-swap { opacity: 0; }

.ml-lb__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease .1s, transform .35s ease .1s;
}
.ml-lb.is-open .ml-lb__cap { opacity: 1; transform: none; }
.ml-lb__names {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 24px);
}
.ml-lb__count {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .18em;
  color: #E3C38E;
}

.ml-lb__x,
.ml-lb__nav {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .3s ease, background-color .25s ease;
}
.ml-lb.is-open .ml-lb__x,
.ml-lb.is-open .ml-lb__nav { opacity: 1; }
.ml-lb svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ml-lb__x { top: 14px; right: 16px; width: 46px; height: 46px; }
.ml-lb__x svg { width: 26px; height: 26px; }
.ml-lb__nav {
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
}
.ml-lb__nav:hover { background: rgba(255, 255, 255, .12); }
.ml-lb__nav svg { width: 22px; height: 22px; }
.ml-lb__nav--prev { left: 24px; }
.ml-lb__nav--next { right: 24px; }
.ml-lb :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 699px) {
  .ml-lb__frame { width: 100vw; }
  .ml-lb__cap { padding: 0 16px; }
  .ml-lb__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-sv__card, .ml-sv__backdrop, .ml-lb__backdrop, .ml-lb__img { transition: none !important; }
  .ml-sv__card[class*="is-cube"] { animation: none !important; }
  .ml-story.is-loading::after { animation: none; }
}

/* ============================================================
   Hiện dần khi cuộn tới — thuộc tính do JS gắn, tắt JS vẫn hiện đủ
   ============================================================ */

[data-ml-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
[data-ml-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   TABLET + MOBILE (< 1024px)
   ============================================================ */

@media (max-width: 1023px) {
  :root { --head-h: 64px; }

  .ml-header__inner { padding: 0 20px; }
  .ml-brand { width: 138px; }
  .ml-burger { display: flex; }

  .ml-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    bottom: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 20px 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(70, 55, 35, .1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .ml-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .ml-nav a {
    padding: 13px 0;
    font-size: 13px;
    letter-spacing: .06em;
    border-bottom: 1px solid #F0EBE2;
  }
  .ml-nav a:last-child { border-bottom: 0; }
  .ml-nav a::after { display: none; }

  .ml-dots { bottom: 14px; gap: 10px; }

  .ml-sprig { left: 3px; width: 42px; height: 25px; }
  .ml-title { font-size: 26px; line-height: 1.3; }
  .ml-sub { font-size: 15px; line-height: 1.55; }

  .ml-why { padding: 36px 24px 56px; }
  .ml-why::before, .ml-why::after { width: 240px; height: 480px; }
  .ml-why .ml-title { margin-top: 12px; }
  .ml-why .ml-sub { margin-top: 8px; }

  .ml-why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    column-gap: 32px;
    row-gap: 36px;
    max-width: 880px;
    margin: 40px auto 0;
  }
  .ml-feat { gap: 16px; }
  .ml-feat__pic { width: 104px; height: 104px; padding: 2px; --ring-w: 2px; }
  .ml-feat__body { padding-top: 10px; }
  .ml-feat__title { font-size: 18px; }
  .ml-feat__text {
    margin-top: 8px;
    font-size: 14.5px;
    line-height: 1.7;
    letter-spacing: 0;
    white-space: normal;
  }
  .ml-feat__text br { display: none; }

  .ml-album { padding: 32px 0 0; }
  .ml-album .ml-title { margin-top: 12px; }
  .ml-album .ml-sub { margin-top: 8px; padding: 0 20px; }
  .ml-album__frame { margin-top: 26px; padding: 0 8px; }
  .ml-album__grid { gap: 3px; }

  .ml-btn {
    height: 46px;
    margin-top: 26px;
    padding: 0 24px;
    gap: 10px;
    border-radius: 3px;
    font-size: 13px;
  }
  .ml-btn svg { width: 16px; height: 16px; }

  .ml-makeup::before, .ml-makeup::after,
  .ml-mv::before, .ml-mv::after { top: -20px; width: 200px; height: 120px; }
  .ml-guide::before, .ml-guide::after { width: 190px; height: 428px; }
  .ml-makeup .ml-title, .ml-guide .ml-title, .ml-mv .ml-title { margin-top: 12px; }
  .ml-makeup .ml-sub, .ml-guide .ml-sub, .ml-mv .ml-sub { margin-top: 8px; }

  .ml-makeup { padding-top: 36px; }
  .ml-makeup .ml-head, .ml-mv .ml-head { padding: 0 20px; }
  .ml-makeup .ml-head, .ml-guide .ml-head, .ml-guide__title, .ml-mv .ml-head { text-wrap: balance; }
  .ml-makeup__strip { max-width: none; margin: 26px 8px 0; gap: 3px; }

  .ml-guide { padding: 44px 24px 0; }
  .ml-guide__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 34px;
    max-width: 780px;
    margin: 36px auto 0;
  }
  .ml-guide__pic { width: 150px; height: 150px; padding: 2px; --ring-w: 2px; }
  .ml-guide__title {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.45;
    white-space: normal;
  }

  .ml-mv { padding: 40px 0 56px; }
  .ml-mv__grid { max-width: none; margin: 24px 16px 0; gap: 10px; }
  .ml-mv__item { border-radius: 3px; }
  .ml-mv__play { width: 46px; height: 46px; border-width: 2px; }
  .ml-mv__play::before { width: 14px; height: 17px; }
  .ml-mv__time { right: 7px; bottom: 7px; min-width: 40px; height: 20px; padding: 0 6px; border-radius: 3px; font-size: 11px; }

  .ml-review { padding: 40px 0 56px; }
  .ml-review::before, .ml-review::after { width: 190px; height: 428px; }
  .ml-review .ml-sprig, .ml-contact .ml-sprig { left: 4px; width: 50px; height: 30px; }
  .ml-review .ml-title, .ml-contact .ml-title { margin-top: 12px; }
  .ml-review .ml-sub, .ml-contact .ml-sub { margin-top: 8px; line-height: 1.55; }
  .ml-review .ml-head, .ml-contact .ml-head { padding: 0 20px; text-wrap: balance; }
  /* nút trước / sau nằm hai bên hàng chấm */
  .ml-review__slider {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "view view view" "prev dots next";
    column-gap: 16px;
    row-gap: 20px;
    margin-top: 22px;
  }
  .ml-review__arrow { width: 40px; height: 40px; margin-top: 0; }
  .ml-review__arrow--prev { justify-self: end; }
  .ml-review__arrow--next { justify-self: start; }
  .ml-review__arrow svg { width: 17px; height: 17px; }
  .ml-review__viewport { padding: 22px 20px 4px; scroll-padding: 0 20px; }
  .ml-review__track { gap: 16px; }
  .ml-review__card { flex-basis: calc((100% - 16px) / 2); }
  .ml-review__card figure { padding: 36px 22px 22px 24px; border-radius: 10px; }
  .ml-review__mark {
    top: -20px; width: 40px; height: 40px; margin-left: -20px;
    box-shadow: 0 0 0 6px var(--paper); font-size: 46px; line-height: 66px;
  }
  .ml-review__text { min-height: 0; }
  .ml-review__text p { font-size: 15px; line-height: 1.65; white-space: normal; }
  .ml-review__text br { display: none; }
  .ml-review__who { gap: 14px; margin: 20px 0 0 -6px; padding-top: 16px; }
  .ml-review__who::before { left: 6px; right: 0; width: auto; }
  .ml-review__ava { width: 80px; height: 80px; padding: 2px; border-width: 1.5px; }
  .ml-review__id { gap: 6px; }
  .ml-review__name { font-size: 18px; line-height: 1.3; }
  .ml-review__loc { gap: 8px; font-size: 13.5px; line-height: 1.4; }
  .ml-review__loc svg { width: 14px; height: 17px; }
  .ml-review__dots { gap: 12px; margin-top: 0; }
  .ml-review__dots button { width: 10px; height: 10px; }

  .ml-end::before { height: 110px; }
  .ml-contact { padding-top: 48px; }
  .ml-contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
    width: auto;
    max-width: 780px;
    margin: 36px auto 0;
    padding: 0 24px;
  }
  .ml-contact__info { padding-right: 0; }
  .ml-contact__col:nth-child(2),
  .ml-contact__col:nth-child(3) { padding: 0; border-left: 0; }
  .ml-contact__col:nth-child(3) { grid-column: 1 / -1; }
  .ml-contact__brand { width: 232px; }
  .ml-contact__list { gap: 14px; margin-top: 24px; font-size: 15px; line-height: 1.55; }
  .ml-contact__list li { grid-template-columns: 22px minmax(0, 1fr); column-gap: 16px; }
  .ml-contact__list svg { width: 22px; height: 22px; }
  .ml-contact__social-title { margin-top: 24px; padding-top: 22px; font-size: 17px; }
  .ml-contact__social { gap: 12px; margin-top: 12px; }
  .ml-contact__social a { width: 44px; height: 44px; }
  .ml-contact__social svg { width: 19px; height: 19px; }
  .ml-contact__title { margin-top: 0; font-size: 19px; }
  .ml-fb { max-width: 360px; margin-top: 12px; }
  .ml-fb__cover { height: 150px; }
  .ml-fb__page { min-height: 62px; padding: 10px 10px 0 104px; }
  .ml-fb__ava { top: -32px; left: 14px; width: 80px; height: 80px; padding: 2px; }
  .ml-fb__name { font-size: 15px; }
  .ml-fb__meta { font-size: 12px; }
  .ml-fb__actions { gap: 8px; padding: 0 12px; }
  .ml-fb__btn { gap: 6px; height: 34px; border-radius: 6px; font-size: 14px; }
  .ml-fb__btn svg { width: 15px; height: 15px; }
  .ml-fb__grid { gap: 2px; margin-top: 12px; }
  .ml-contact__map { height: 320px; margin-top: 12px; }
  .ml-contact__dir { gap: 10px; height: 46px; margin-top: 10px; border-radius: 4px; font-size: 13.5px; }
  .ml-contact__dir-pin { width: 15px; height: 17px; }
  .ml-contact__dir-arrow { width: 18px; height: 18px; }
  .ml-foot { padding: 44px 20px 56px; }
  .ml-foot::before { width: 100%; max-width: 640px; margin-bottom: 36px; }
  .ml-foot__copy { font-size: 13px; }
  .ml-foot__nav { row-gap: 6px; margin-top: 10px; font-size: 13px; }
  .ml-foot__nav a + a::before { margin: 0 10px; }
}

/* ============================================================
   MOBILE (< 700px)
   ============================================================ */

@media (max-width: 699px) {
  .ml-hero { aspect-ratio: 4 / 3; }

  .ml-title { font-size: 21px; }
  .ml-sub { font-size: 14px; }

  .ml-why { padding: 30px 20px 44px; }
  .ml-why::before, .ml-why::after { width: 170px; height: 340px; opacity: .8; }

  .ml-why__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
    margin-top: 30px;
  }
  .ml-feat { gap: 14px; }
  .ml-feat__pic { width: 88px; height: 88px; }
  .ml-feat__body { padding-top: 4px; }
  .ml-feat__title { font-size: 17px; }
  .ml-feat__text { font-size: 14px; }

  .ml-album { padding-top: 26px; }
  .ml-album__frame { padding: 0 6px; }
  .ml-album__grid { grid-template-columns: repeat(2, 1fr); gap: 3px; }

  .ml-btn { padding: 0 20px; font-size: 12px; letter-spacing: .02em; }

  .ml-makeup::before, .ml-makeup::after,
  .ml-mv::before, .ml-mv::after { top: -14px; width: 140px; height: 84px; opacity: .8; }
  .ml-guide::before, .ml-guide::after { width: 140px; height: 315px; opacity: .8; }

  .ml-makeup { padding-top: 30px; }
  .ml-makeup__strip { grid-template-columns: repeat(3, 1fr); margin: 24px 6px 0; }

  .ml-guide { padding: 38px 16px 0; }
  .ml-guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 28px; margin-top: 28px; }
  .ml-guide__pic { width: 128px; height: 128px; }
  .ml-guide__title { margin-top: 10px; font-size: 15.5px; }
  .ml-guide__title br { display: none; }

  .ml-mv { padding: 34px 0 44px; }
  .ml-mv__grid { grid-template-columns: repeat(2, 1fr); margin: 22px 10px 0; gap: 8px; }
  .ml-mv__play { width: 40px; height: 40px; }
  .ml-mv__play::before { width: 12px; height: 15px; }
  .ml-mv__time { right: 5px; bottom: 5px; min-width: 36px; height: 18px; padding: 0 5px; font-size: 10.5px; }

  .ml-review { padding: 34px 0 44px; }
  .ml-review::before, .ml-review::after { width: 140px; height: 315px; opacity: .8; }
  .ml-review__viewport { padding: 22px 16px 4px; scroll-padding: 0 16px; }
  .ml-review__track { gap: 12px; }
  .ml-review__card { flex-basis: 86%; }
  .ml-review__card figure { padding: 34px 18px 20px 20px; }
  .ml-review__text p { font-size: 14.5px; }
  .ml-review__ava { width: 68px; height: 68px; }
  .ml-review__name { font-size: 17px; }

  .ml-contact { padding-top: 40px; }
  .ml-contact .ml-sub br { display: none; }
  .ml-contact__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 30px; padding: 0 16px; }
  .ml-contact__col:nth-child(3) { grid-column: auto; }
  .ml-fb { max-width: none; }
  .ml-contact__map { height: 280px; }
  /* chữ chân trang tránh hai cột nút nổi hai bên */
  .ml-foot { padding: 40px 64px 48px; }
  .ml-foot::before { width: calc(100% + 48px); margin: 0 0 28px -24px; }
  .ml-foot__nav a + a::before { margin: 0 8px; }

  .ml-fab { left: 12px; gap: 9px; }
  .ml-fab__btn { width: 42px; height: 42px; }
}

/* MV — dưới 1024px bỏ lớp phủ theo % (khung trên nền sẽ quá nhỏ),
   giữ dải hoa phía trên rồi xếp MV thành lưới có khung riêng. */
@media (max-width: 1023px) {
  .ml-mv { padding: 28px 0 40px; }
  .ml-mv__stage {
    aspect-ratio: auto;
    background: #FBF9F6;
    container-type: normal;
  }
  .ml-mv__stage::before {
    content: "";
    display: block;
    height: calc(100vw * 300 / 1449);
    max-height: 220px;
    background: url("images/mv-section-bg.png") top center / 100% auto no-repeat;
  }
  .ml-mv__copy {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    max-width: 640px;
    margin: 4px auto 0;
    padding: 16px 22px 0;
  }
  .ml-mv__sprig { display: block; width: 78px; margin-bottom: 6px; }
  .ml-mv__title { font-size: 28px; letter-spacing: 0.12em; }
  .ml-mv__lead { margin-top: 12px; font-size: 22px; }
  .ml-mv__note {
    width: 100%;
    max-width: 540px;
    margin-top: 12px;
    font-size: 15.5px;
    line-height: 1.7;
  }
  .ml-mv__script { display: none; }
  .ml-mv__grid {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 16px 0;
    inset: auto;
  }
  .ml-mv__grid > li:nth-child(n) {
    position: static;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
  }
  .ml-mv__item {
    --notch: 10px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    filter: drop-shadow(0 0 0 #C6A36A) drop-shadow(0 0 0.6px #C6A36A);
  }
  .ml-mv__name { font-size: 15px; bottom: 10px; left: 14px; right: 36px; }
  .ml-mv__gem { width: 11px; height: 11px; right: 12px; bottom: 12px; }
  .ml-mv__play { width: 46px; height: 46px; aspect-ratio: auto; border-width: 2px; }
  .ml-mv__play::before { width: 14px; height: 17px; }
  /* màn hẹp không còn viên nút trên nền → tự vẽ lại viên xanh rêu viền kem */
  .ml-mv__more {
    position: relative;
    left: auto;
    top: auto;
    width: fit-content;
    height: 48px;
    margin: 28px auto 0;
    padding: 0 30px;
    gap: 10px;
    background: #474A35;
    box-shadow: inset 0 0 0 3px #474A35, inset 0 0 0 4.5px #D9CCAE;
    font-size: 14.5px;
  }
  .ml-mv__more svg { width: 16px; height: 16px; }
  .ml-mv__more:hover { background-color: #3A3D2B; box-shadow: inset 0 0 0 3px #3A3D2B, inset 0 0 0 4.5px #D9CCAE; }
}

@media (max-width: 699px) {
  .ml-mv { padding: 20px 0 32px; }
  .ml-mv__title { font-size: 22px; }
  .ml-mv__lead { font-size: 18px; }
  .ml-mv__note { font-size: 14.5px; }
  .ml-mv__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 16px 12px 0; }
  .ml-mv__play { width: 42px; height: 42px; }
  .ml-mv__play::before { width: 13px; height: 16px; }
}
