/* Amazfit Bip 6 Watchface Studio — site chia sẻ. Tối, ngà, vàng champagne. Chỉ animate transform/opacity. */
:root {
  color-scheme: dark;
  --ink: #0a0908;
  --ink-2: #110f0c;
  --card: #16130f;
  --raise: #1d1914;
  --line: #2b251d;
  --line-2: #3a3226;
  --fg: #f3ede2;
  --muted: #a9a090;
  --faint: #8c8475;
  --gold: #d6b26e;
  --gold-hi: #f1dcaa;
  --gold-lo: #8f7243;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.36, .64, 1);
  --r-face: 22.05% / 19.11%; /* góc màn 86px trên 390×450 */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.i18n-pending [data-i18n], .i18n-pending [data-i18n-html] { visibility: hidden; }

/* nền: quầng vàng rất nhẹ + hạt mịn, cố định nên không tốn khi cuộn */
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 36rem at 78% -8%, rgba(214, 178, 110, .13), transparent 60%),
    radial-gradient(40rem 30rem at -10% 30%, rgba(143, 114, 67, .08), transparent 60%),
    var(--ink);
}
.ambient::after {
  content: ''; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.top { position: relative; z-index: 3; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand > span { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--line-2); font-family: var(--serif); font-size: 1.36rem; font-weight: 600; line-height: 1; letter-spacing: .005em; }
.brand small { margin-top: .4em; font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.brand-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
.nav { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); font-size: .9rem; }
.nav a { color: var(--muted); transition: color .2s var(--ease); padding: 10px 2px; }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); transition: transform .5s var(--ease-out); }
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .02); }
.lang button {
  border: 0; background: transparent; cursor: pointer; min-width: 40px; min-height: 32px; padding: 0 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--muted);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang button[aria-pressed='true'] { background: var(--gold); color: #1a140b; }
@media (max-width: 640px) { .nav a { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding-block: clamp(24px, 6vw, 72px) clamp(40px, 8vw, 104px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.kicker::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.005em; margin: 0; text-wrap: balance; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--gold-hi); }
.lede { max-width: 34rem; margin: 22px 0 32px; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font-size: .92rem; font-weight: 600; letter-spacing: .01em; border: 1px solid transparent; overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #b8935a); color: #1a140b; box-shadow: 0 10px 30px -12px rgba(214, 178, 110, .55), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-gold::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transition: transform .9s var(--ease-out);
}
.btn-gold:hover::after { transform: translateX(120%); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); color: var(--fg); }
.btn-ghost:hover { border-color: var(--gold-lo); background: rgba(214, 178, 110, .06); }

/* bộ ba mặt xoè quạt */
.showcase { position: relative; aspect-ratio: 1 / 0.92; display: grid; place-items: center; }
.showcase::before {
  content: ''; position: absolute; inset: 8% 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 178, 110, .22), transparent 70%); filter: blur(10px);
}
.showcase .device { position: absolute; width: 42%; }
.showcase .device:nth-child(1) { transform: translate(-58%, 6%) rotate(-9deg); }
.showcase .device:nth-child(2) { width: 48%; z-index: 2; }
.showcase .device:nth-child(3) { transform: translate(58%, 6%) rotate(9deg); }
.showcase .float { animation: float 7s ease-in-out infinite; }
.showcase .device:nth-child(1) .float { animation-delay: -2.3s; }
.showcase .device:nth-child(3) .float { animation-delay: -4.6s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (min-width: 901px) {
  .showcase .device:nth-child(1) { transform: translate(-66%, 7%) rotate(-10deg); }
  .showcase .device:nth-child(3) { transform: translate(66%, 7%) rotate(10deg); }
}

/* ---------- khung thiết bị ---------- */
.device { position: relative; }
.bezel {
  position: relative; padding: 4.2%; border-radius: var(--r-face);
  background:
    linear-gradient(150deg, #8c7550 0%, #2a241c 22%, #15120e 48%, #3d3428 74%, #b49a6a 100%);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04), inset 0 1px 1px rgba(255, 255, 255, .25);
}
.bezel::before { /* cạnh trong tối */
  content: ''; position: absolute; inset: 3.2%; border-radius: var(--r-face); background: #050404;
}
.screen { position: relative; overflow: hidden; border-radius: var(--r-face); aspect-ratio: 390 / 450; background: #000; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen::after { /* ánh kính */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .02) 32%, transparent 45%);
}

/* ---------- thanh lọc (kính mờ, dính trên) ---------- */
.filters {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: rgba(10, 9, 8, .72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-block: 1px solid rgba(214, 178, 110, .12);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .filters { background: rgba(10, 9, 8, .96); } }
.filters .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-block: 12px; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 14px 0 40px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); color: var(--fg); font: inherit; font-size: .92rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--gold-lo); background: rgba(214, 178, 110, .05); }
.seg { position: relative; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg-thumb {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: var(--w, 0); border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, #2a241c, #1b1712); box-shadow: inset 0 0 0 1px rgba(214, 178, 110, .32), inset 0 1px 0 rgba(255, 236, 196, .12), 0 4px 14px -6px rgba(0, 0, 0, .8);
  transform: translateX(var(--x, 0));
}
.seg.ready .seg-thumb { transition: transform .55s var(--spring), width .55s var(--spring); }
.seg button { position: relative; z-index: 1; }
.seg button {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; background: transparent;
  font-size: .84rem; font-weight: 600; color: var(--muted); transition: background-color .25s var(--ease), color .25s var(--ease);
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed='true'] { color: var(--gold-hi); }
.tones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tones > span { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.tone {
  position: relative; width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .35), transparent 42%), var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 -3px 6px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .6);
  transition: transform .25s var(--ease);
}
.tone::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--gold); opacity: 0; transform: scale(.85); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.tone:hover { transform: scale(1.08); }
.tone[aria-pressed='true']::after { opacity: 1; transform: none; }
.tone::before { content: ''; position: absolute; inset: -9px; } /* vùng chạm 44px */
.count { margin: 0 0 0 auto; display: inline-flex; align-items: baseline; gap: .35em; font-size: .84rem; color: var(--muted); }
.odo { display: inline-flex; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1; color: var(--fg); font-variant-numeric: lining-nums tabular-nums; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; width: .5em; transition: width .5s var(--ease); }
.odo-col.blank { width: 0; }
.odo-strip { display: flex; flex-direction: column; transform: translateY(calc(var(--n, 0) * -1em)); transition: transform .9s var(--ease-out); transition-delay: var(--dl, 0ms); }
.odo-strip span { height: 1em; text-align: center; }
@media (max-width: 720px) { .search { max-width: none; flex-basis: 100%; } .count { margin-left: 0; } }

/* ---------- lưới mặt ---------- */
.collection { padding-block: 32px clamp(64px, 8vw, 112px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(168px, 42vw), 1fr)); gap: clamp(18px, 2.6vw, 36px) clamp(14px, 2vw, 28px); }
.card { display: flex; flex-direction: column; gap: 14px; content-visibility: auto; contain-intrinsic-size: auto 300px; }
.card .bezel::after { /* viền vàng khi hover */
  content: ''; position: absolute; inset: -1px; border-radius: var(--r-face); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(214, 178, 110, .55), 0 18px 50px -18px rgba(214, 178, 110, .45);
  opacity: 0; transition: opacity .45s var(--ease);
}
@media (hover: hover) { .card:hover .bezel::after { opacity: 1; } }
.card:focus-visible { outline: none; }
.card:focus-visible .bezel::after { opacity: 1; }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-inline: 4px; }
.card-name { font-size: .92rem; font-weight: 600; line-height: 1.35; }
.card-kind { flex: none; transition: color .3s var(--ease); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.empty { display: grid; justify-items: center; gap: 16px; padding: 64px 16px; text-align: center; color: var(--muted); }

/* hiện dần khi cuộn tới (chỉ khi có JS và không giảm chuyển động) */
.js .rv { opacity: 0; transform: translateY(8px); }
.js .rv .screen img { transform: scale(1.08); }
.js .rv.in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in .screen img { transform: none; transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0ms); }

/* ---------- hướng dẫn ---------- */
.guide { position: relative; isolation: isolate; padding-block: clamp(56px, 9vw, 120px); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px;
  background: linear-gradient(180deg, var(--card), var(--ink-2)); border: 1px solid var(--line);
}
.step-art { aspect-ratio: 4 / 3; border-radius: 14px; background: radial-gradient(circle at 50% 40%, #221d16, #0f0d0a 75%); display: grid; place-items: center; overflow: hidden; }
.step-art svg { height: 92%; width: auto; }
.step-num { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--gold); font-style: italic; }
.step h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }
.note { margin-top: 24px; max-width: 46rem; font-size: .88rem; color: var(--faint); }
.tap { transform-origin: center; animation: tap 2.4s var(--ease-out) infinite; }
@keyframes tap { 0% { opacity: .9; transform: scale(.4); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
.scanline { animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 50% { transform: translateY(46px); } }

/* ---------- trang một mặt ---------- */
.face-top { padding-block: 8px 0; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: .9rem; transition: color .2s var(--ease), gap .3s var(--ease); }
.back svg { width: 18px; height: 18px; }
.back:hover { color: var(--fg); gap: 12px; }
.face-hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding-block: clamp(16px, 4vw, 48px) clamp(48px, 8vw, 96px); }
.face-stage { position: relative; display: grid; place-items: center; padding: 6% 10%; }
.face-stage::before { content: ''; position: absolute; inset: 0 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(214, 178, 110, .2), transparent 72%); }
.face-stage .device { width: min(100%, 400px); view-transition-name: face; }
.face-info h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; }
.compat { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; padding: 0; list-style: none; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .8rem; color: var(--muted); background: rgba(255, 255, 255, .02); }
.chips li:first-child { border-color: rgba(214, 178, 110, .35); color: var(--gold-hi); }
.install { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(160deg, rgba(214, 178, 110, .08), rgba(255, 255, 255, .01) 45%); }
.qr { width: clamp(150px, 18vw, 188px); padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(214, 178, 110, .4), 0 20px 40px -20px rgba(0, 0, 0, .8); }
.qr img { width: 100%; height: auto; image-rendering: pixelated; }
.install h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: .01em; }
.install p { margin: 6px 0 16px; color: var(--muted); font-size: .9rem; }
.install .actions { gap: 8px; }
.install .btn { min-height: 44px; padding: 0 18px; font-size: .86rem; }
.mobile-hint { display: none; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(214, 178, 110, .07); border: 1px solid rgba(214, 178, 110, .22); color: var(--gold-hi); font-size: .86rem; }
@media (pointer: coarse) and (max-width: 900px) { .mobile-hint { display: block; } }
.related { position: relative; isolation: isolate; padding-block: clamp(48px, 7vw, 88px); }
.related h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 28px; }
@media (min-width: 900px) { .related .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (max-width: 900px) {
  .hero .wrap, .face-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .showcase { max-width: 460px; width: 100%; margin-inline: auto; order: -1; }
  .face-stage { padding: 0 14%; }
}
@media (max-width: 520px) {
  .install { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .install .actions { justify-content: center; }
}

/* ---------- footer, toast ---------- */
.foot { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: .84rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 10;
  padding: 12px 20px; border-radius: 999px; background: var(--fg); color: var(--ink); font-size: .9rem; font-weight: 600;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- vào trang ---------- */
.enter { animation: enter 1s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } }
.showcase .device { animation: deal 1.2s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes deal { from { opacity: 0; translate: 0 40px; } }

/* chuyển trang mượt (Chrome/Safari mới): mặt ở lưới bay sang trang chi tiết */
@view-transition { navigation: auto; }
::view-transition-group(face) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }


/* ================= hoàn thiện kiểu mặt số: nền các phần ================= */
/* Mỗi phần mượn một kiểu hoàn thiện của đồng hồ cơ, chỉ đơn sắc vàng ở 2–5% — giàu chất liệu, không thêm chi tiết. */
.finish { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
/* soleil: tia mặt trời toả từ đỉnh bộ sưu tập, như mặt số sunburst */
.finish-soleil {
  background: repeating-conic-gradient(from 0deg at 50% -60%, rgba(214, 178, 110, .05) 0deg .3deg, transparent .3deg 1.2deg);
  -webkit-mask-image: radial-gradient(70% 520px at 50% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(70% 520px at 50% 0%, #000 0%, transparent 100%);
}
/* Côtes de Genève: các dải sóng mềm như cầu máy, kèm ánh đèn tủ kính rọi từ trên */
.finish-geneve {
  background:
    radial-gradient(60% 360px at 50% 0%, rgba(214, 178, 110, .10), transparent 70%),
    repeating-linear-gradient(112deg, rgba(214, 178, 110, 0) 0px, rgba(214, 178, 110, .024) 30px, rgba(214, 178, 110, 0) 60px);
  -webkit-mask-image: radial-gradient(85% 100% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(85% 100% at 50% 0%, #000 20%, transparent 100%);
}
/* đáy vỏ: vòng đồng tâm khắc chìm */
.finish-caseback {
  background:
    repeating-radial-gradient(circle at 50% 140%, rgba(214, 178, 110, .07) 0 1px, transparent 1px 11px),
    radial-gradient(80% 100% at 50% 120%, #15110c, var(--ink) 70%);
  -webkit-mask-image: radial-gradient(90% 140% at 50% 130%, #000 30%, transparent 75%);
  mask-image: radial-gradient(90% 140% at 50% 130%, #000 30%, transparent 75%);
}
.engraved {
  display: block; margin-bottom: clamp(28px, 5vw, 56px); font-family: var(--serif); font-weight: 500; line-height: .9;
  font-size: clamp(2.4rem, 9.4vw, 8.4rem); letter-spacing: -.02em; text-align: center; user-select: none;
  color: #0d0b08; text-shadow: 0 1px 0 rgba(214, 178, 110, .16), 0 -1px 0 rgba(0, 0, 0, .9);
}
.engraved small { display: block; margin-top: .5em; font-family: var(--sans); font-size: max(.16em, .7rem); font-weight: 600; letter-spacing: .5em; text-transform: uppercase; }

/* vạch chia: hai sợi tóc vàng + một vạch giờ ở giữa, thay cho đường kẻ cứng */
.rule { display: flex; align-items: center; gap: 18px; width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.rule::before, .rule::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(214, 178, 110, .35)); }
.rule::after { transform: scaleX(-1); }
.rule i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); box-shadow: 0 0 12px rgba(214, 178, 110, .45); }

/* đầu phần bộ sưu tập */
.collection-head { position: relative; isolation: isolate; padding-block: clamp(48px, 7vw, 96px) clamp(20px, 3vw, 32px); }
.collection-head h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.05; }

/* ================= tương tác nhỏ ================= */
/* logo là một đồng hồ thật: kim giây nhảy từng nhịp có nảy nhẹ như máy quartz */
.brand-mark .hand { transform-origin: 20px 20px; transform-box: view-box; }
.brand-mark .hand-s { transition: transform .32s cubic-bezier(.4, 2.1, .55, 1); }

/* khung thép bắt sáng theo con trỏ + nghiêng 3D nhẹ (chỉ chuột/bút) */
.tilt { --rx: 0; --ry: 0; --mx: 50%; --my: 30%; --lift: 0px; }
.tilt { transform: perspective(900px) translateY(var(--lift)) rotateX(calc(var(--ry) * -7deg)) rotateY(calc(var(--rx) * 8deg)); transition: transform .7s var(--ease-out); }
.tilt.lit { will-change: transform; }
.tilt .bezel { background-size: 180% 180%; background-position: calc(50% + var(--rx) * 60%) calc(50% + var(--ry) * 60%); transition: background-position .7s var(--ease-out); }
.tilt .screen::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transform: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 240, 210, .26), transparent 48%);
  transition: opacity .5s var(--ease);
}
.tilt.lit .screen::before { opacity: 1; }
.card .tilt.lit { --lift: -6px; }
.card .tilt.lit + .card-meta .card-kind, .card:focus-visible .card-kind { color: var(--gold); }

/* nút nam châm: nhích theo con trỏ tối đa vài px */
.btn { transform: translate(var(--bx, 0px), var(--by, 0px)) scale(var(--bs, 1)); }
.btn > * { transform: translate(calc(var(--bx, 0px) * .35), calc(var(--by, 0px) * .35)); transition: transform .5s var(--ease-out); }
.btn:active { --bs: .97; }

/* QR: góc ngắm vàng + một vệt quét khi rê/tab vào */
.qr { position: relative; }
.qr::before {
  content: ''; position: absolute; inset: -9px; pointer-events: none; opacity: 0; transform: scale(1.06);
  transition: opacity .4s var(--ease), transform .6s var(--spring);
  --c: var(--gold);
  background:
    linear-gradient(var(--c), var(--c)) top left / 16px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 16px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 16px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1.5px 16px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 16px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1.5px 16px no-repeat;
}
.qr::after {
  content: ''; position: absolute; left: 10px; right: 10px; top: 10px; height: 2px; border-radius: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(214, 178, 110, .95), transparent); box-shadow: 0 0 14px rgba(214, 178, 110, .7);
}
.install:hover .qr::before, .install:focus-within .qr::before { opacity: 1; transform: none; }
.install:hover .qr::after, .install:focus-within .qr::after { animation: qrscan 1.6s var(--ease) 1; }
@keyframes qrscan { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(calc(var(--qr, 168px) - 4px)); } }

/* tiêu đề hero: kéo màn từ dưới lên thay vì mờ dần */
.curtain { animation: curtain 1.3s var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes curtain { from { clip-path: inset(0 0 100% 0); transform: translateY(24px); } to { clip-path: inset(0 0 -10% 0); transform: none; } }

/* bỏ qua tới nội dung */
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 999px; background: var(--gold); color: #1a140b; font-weight: 700; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }

/* ================= điện thoại: thiết kế riêng, không phải bản thu nhỏ ================= */
.filter-toggle { display: none; }
.filter-panel { display: contents; }
@media (max-width: 720px) {
  .filters .wrap { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .search { flex: 1 1 0; max-width: none; }
  .filter-toggle {
    position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-size: .88rem; font-weight: 600;
  }
  .filter-toggle svg { width: 18px; height: 18px; }
  .filter-toggle .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #1a140b; font-size: .72rem; line-height: 20px; text-align: center; }
  .filter-panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 14px; padding-block: 6px 8px; }
  .filters.open .filter-panel { display: flex; animation: panel .45s var(--ease-out); }
  @keyframes panel { from { opacity: 0; transform: translateY(-6px); } }
  .seg { align-self: flex-start; }
  .count { margin: 0; }
  .card-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .collection-head { padding-block: 40px 16px; }
}
@media (max-width: 520px) {
  /* trên điện thoại, gửi link quan trọng hơn quét: đưa nút lên trước mã */
  .install > div:last-child { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv, .js .rv .screen img, .tilt { opacity: 1; transform: none !important; }
  @view-transition { navigation: none; }
}
