/* Bảng màu lấy mẫu từ logo Instagram @xiximaison:
   nền logo #C1BAAA (greige), monogram #F2ECE0 (kem). */
:root {
  --greige: #c1baaa;
  --cream: #f2ece0;
  --blush: #b4ad9c;
  --rose: #554e40;
  --ink: #2b2822;
  --muted: #4f4a40;
  --line: #a9a291;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--greige); color: var(--ink); font-family: var(--sans); font-weight: 300; line-height: 1.7; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
em { font-style: italic; color: var(--rose); }
.eyebrow { font-size: .75rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
section { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1.25rem, 5vw, 5rem); background: rgba(193, 186, 170, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .12em; }
.logo span { font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--rose); }
.nav { display: flex; gap: 2rem; align-items: center; font-size: .9rem; }
.nav a { position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--ink); transition: width .3s; }
.nav a:hover::after { width: 100%; }
.nav-cta { padding: .5rem 1.1rem; border: 1px solid var(--ink); border-radius: 999px; transition: background .3s, color .3s; }
.nav-cta:hover { background: var(--ink); color: var(--cream); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--ink); margin: 7px auto; transition: transform .3s; }

/* Buttons */
.btn { display: inline-block; padding: .9rem 1.8rem; border-radius: 999px; font-size: .9rem; letter-spacing: .04em; transition: background .3s, color .3s, transform .2s; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--rose); }
.btn-line { border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cream); }

/* Placeholder slots */
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; height: 100%; padding: 1rem; background: repeating-linear-gradient(135deg, #b8b1a0 0 14px, #ada694 14px 28px); color: var(--muted); font-family: var(--serif); font-size: 1.15rem; }
.slot small { font-family: var(--sans); font-size: .75rem; margin-top: .4rem; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; min-height: min(calc(100vh - 70px), 920px); }
.hero-media { min-height: min(60vh, 640px); overflow: hidden; }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 6rem); }
.hero h1 { font-size: clamp(3.5rem, 8vw, 7rem); margin-bottom: 1.5rem; }
.hero-sub { max-width: 32ch; color: var(--muted); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Collection */
.collection { text-align: center; background: var(--blush); }
.launch-date { color: var(--muted); margin-bottom: 2rem; }
.countdown { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 3rem); margin-bottom: 2.5rem; }
.countdown div { display: flex; flex-direction: column; min-width: 4rem; }
.countdown span { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.countdown small { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

/* Lookbook */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.section-head .eyebrow, .section-head h2 { width: 100%; margin-bottom: 0; }
.section-head h2 { width: auto; }
.filters { display: flex; gap: .5rem; }
.filter { background: none; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1.1rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--muted); }
.filter.active { border-color: var(--ink); color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.section-sub { width: 100%; color: var(--muted); font-size: .9rem; }
.swatches { display: flex; gap: .5rem; margin-bottom: .6rem; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(43, 40, 34, .35); cursor: pointer; position: relative; }
.swatch.active::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--ink); border-radius: 50%; }
.swatch:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.teaser { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(.5rem, 1.5vw, 1rem); max-width: 900px; margin: 0 auto 2.5rem; }
.teaser-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: repeating-linear-gradient(135deg, #aaa391 0 10px, #a49d8b 10px 20px); }
.teaser-media img { filter: blur(6px) saturate(.9); transform: scale(1.1); }
.teaser-media span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.8rem; color: var(--cream); }
.modal-media-wrap { display: flex; flex-direction: column; }
.modal-thumbs { display: flex; gap: .4rem; padding: .4rem; }
.modal-thumbs:empty { display: none; }
.modal-thumbs img { width: 56px; height: 70px; cursor: pointer; opacity: .55; transition: opacity .2s; }
.modal-thumbs img.active, .modal-thumbs img:hover { opacity: 1; }
.modal-color { font-size: .9rem; }
.card h3 { font-size: 1.7rem; letter-spacing: .02em; }
.card .style { color: var(--ink); font-size: .88rem; margin-bottom: .15rem; }
.modal-style { color: var(--muted); margin-top: -.5rem; }
.card { cursor: pointer; background: none; border: 0; text-align: left; font: inherit; color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: .8rem; }
.card-media img { transition: transform .8s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-tag { position: absolute; top: .75rem; left: .75rem; background: var(--cream); padding: .2rem .7rem; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; border-radius: 999px; }
.card h3 { font-size: 1.3rem; }
.card p { font-size: .85rem; color: var(--muted); }
.card:focus-visible { outline: 2px solid var(--rose); outline-offset: 4px; }

/* Moments: lưới ảnh kiểu tạp chí, ảnh giữ nguyên khung */
.moments { background: var(--cream); }
.moment-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: clamp(.75rem, 2vw, 1.5rem); }
.moment { position: relative; display: block; overflow: hidden; border: 0; padding: 0; background: none; cursor: pointer; aspect-ratio: 4 / 5; }
.moment.wide { grid-column: span 2; aspect-ratio: auto; }
.moment.wide img { position: absolute; inset: 0; }
.moment img { transition: transform .9s ease; }
.moment:hover img, .moment:focus-visible img { transform: scale(1.04); }
.moment:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.moment-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; text-align: left; color: var(--cream); font-size: .85rem; background: linear-gradient(transparent, rgba(43, 40, 34, .65)); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.moment-cap b { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.moment:hover .moment-cap, .moment:focus-visible .moment-cap { opacity: 1; transform: none; }
@media (hover: none) { .moment-cap { opacity: 1; transform: none; } }

/* Reels */
.reels { background: var(--blush); }
.reel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: clamp(.75rem, 2vw, 1.5rem); overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 2rem; padding-bottom: .5rem; }
.reel { position: relative; aspect-ratio: 9 / 16; overflow: hidden; scroll-snap-align: start; background: var(--ink); }
.reel-filters { flex-wrap: wrap; margin-top: 1.25rem; }
.reel video { cursor: pointer; }
/* Điện thoại: video không tự phát, hiện nút phát ở giữa để khách biết bấm vào xem */
.tap-to-play .reel::after { content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; pointer-events: none; transition: opacity .2s ease;
  background: rgba(43, 34, 32, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23f4ede3'/%3E%3C/svg%3E") center / 30px no-repeat; }
.tap-to-play .reel.playing::after { opacity: 0; }
/* Khung xem video lớn trên điện thoại */
.reel-viewer { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: #14110f; }
.reel-viewer[hidden] { display: none; }
.reel-viewer video { width: 100%; height: 100%; max-height: 100dvh; object-fit: contain; }
.reel-viewer-close { position: absolute; top: max(.9rem, env(safe-area-inset-top)); right: .9rem; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(242, 236, 224, .16); color: var(--cream); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.reel-viewer .sound-btn { right: 1rem; bottom: max(1.2rem, env(safe-area-inset-bottom)); width: 44px; height: 44px; opacity: 1; }
.reel-viewer .sound-btn svg { width: 20px; height: 20px; }
.hero-media { position: relative; }
/* Nút loa: hình nhỏ 30px cho đỡ vướng, vùng bấm vẫn 44px nhờ ::before */
.sound-btn { position: absolute; right: .6rem; bottom: .6rem; z-index: 2; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(43, 40, 34, .32); color: var(--cream); cursor: pointer; opacity: .75; transition: opacity .25s, background .25s, transform .2s; }
.sound-btn::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.reel:hover .sound-btn, .hero-media:hover .sound-btn, .sound-btn:hover, .sound-btn:focus-visible, .sound-btn.on { opacity: 1; }
.sound-btn:hover { background: rgba(43, 40, 34, .55); }
.sound-btn:active { transform: scale(.92); }
.sound-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.sound-btn.on { background: rgba(242, 236, 224, .9); color: var(--ink); }
.sound-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-media .sound-btn { right: 1rem; bottom: 1rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; background: var(--cream); }
.about-media { aspect-ratio: 4 / 5; }
.about-text p { max-width: 42ch; margin-bottom: 1rem; }
.note { font-size: .8rem; color: var(--rose); border-left: 2px solid var(--rose); padding-left: .8rem; }

/* Order */
.order { text-align: center; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; text-align: left; }
.steps li { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.steps span { font-family: var(--serif); font-size: 1rem; color: var(--rose); }
.steps h3 { font-size: 1.6rem; margin: .4rem 0 .6rem; }
.steps p { color: var(--muted); font-size: .92rem; }
.channels { margin-top: 3.5rem; }
.channels-label { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.25rem; }
.channel-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.channel { display: flex; align-items: center; gap: .85rem; min-width: 220px; padding: 1rem 1.4rem; border: 1px solid var(--ink); border-radius: 999px; text-align: left; transition: background .3s, color .3s; }
.channel:hover, .channel:focus-visible { background: var(--ink); color: var(--cream); }
.channel svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.channel span { display: flex; flex-direction: column; line-height: 1.3; }
.channel b { font-weight: 500; }
.channel small { font-size: .78rem; opacity: .75; }
.modal-alt { font-size: .85rem; color: var(--muted); }
.modal-alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.5rem clamp(1.25rem, 5vw, 5rem); border-top: 1px solid var(--line); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.footer-links a { white-space: nowrap; }
.footer-links a:hover { color: var(--rose); }
.copy { color: var(--muted); }

/* Modal */
.modal { margin: auto; border: 0; padding: 0; width: min(920px, 92vw); background: var(--cream); color: var(--ink); }
.modal::backdrop { background: rgba(43, 34, 32, .55); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { aspect-ratio: 4 / 5; }
.modal-info { display: flex; flex-direction: column; justify-content: center; gap: 1rem; padding: 2.5rem; }
.modal-info h3 { font-size: 2.4rem; }
.modal-close { position: absolute; top: .5rem; right: .75rem; z-index: 2; background: none; border: 0; font-size: 2rem; cursor: pointer; width: 44px; height: 44px; }
.copied { font-size: .82rem; color: var(--rose); }

/* Floating button */
.float-ig { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 15; background: var(--ink); color: var(--cream); padding: .8rem 1.3rem; border-radius: 999px; font-size: .85rem; box-shadow: 0 6px 20px rgba(43, 34, 32, .2); transition: opacity .3s ease, transform .3s ease; }
/* Ẩn nút nổi khi khách đang ở khối Cách đặt, vì khối này đã có đủ nút kênh và form, tránh nút che ô nhập */
.float-ig.away { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .moment-grid { grid-template-columns: repeat(2, 1fr); }
  .moment.wide { aspect-ratio: 3 / 2; }
  /* 2 cột: nếu tổng số ô là số lẻ, ảnh cuối chiếm trọn hàng để không để trống */
  .moment-grid.odd .moment:last-child { grid-column: span 2; }
  .hero, .about, .modal-body { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-media { min-height: 0; height: min(70vh, 620px); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; gap: 1.25rem; padding: 2rem; background: var(--cream); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s ease; }
  .nav.open { transform: none; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .modal-media { aspect-ratio: 1; }
}
