/* ───────────────────────────────────────────────────────────────────────────
   BÉ MÂY — art direction: "Sổ Bé Mây" (the mother-and-baby health booklet)
   • References: the pale-blue/pink "Sổ theo dõi sức khoẻ bà mẹ và trẻ em" every
     Vietnamese family keeps; growth-chart graph paper; the paper wristband a
     maternity ward snaps on a newborn; muslin swaddles; the round rubber stamp
     of a ward clinic; gift tags tied with cotton string.
   • Palette sampled from the photos: cream backdrop, milk-sky (the carrier,
     washed out), carrier blue-grey ink, sage of the bath and bottle sleeve,
     oak of the crib, and one peach accent from the diaper ribbon.
   • Type: Fraunces at SOFT 100 (round, warm serif for headings and prices) +
     Nunito (rounded sans with full Vietnamese) for reading. Numbers tabular.
   • Shape: booklet tabs, wristband pills with snap holes, ruled pages,
     perforated receipts. Corners small (6–10px); only bands and chips are pills.
   • Motion: soft, with weight. Clouds drift, things rise and settle on
     cubic-bezier(.2,.8,.2,1); everything stops under .calm / reduced motion.
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  --paper: #f6efe4; --milk: #fdfaf4; --sky: #dce8ee; --sky-2: #c3d7e2; --sky-3: #9fbccd;
  --ink: #2b3d4c; --ink-2: #4a5d6c; --ink-3: #5f7180; --blue: #7b8f9e;
  --sage: #a7c2b3; --sage-2: #d9e6dd; --sage-ink: #3f6552;
  --oak: #c89566; --oak-2: #ead5bd;
  --peach: #eaa68d; --peach-2: #f6d9cc; --peach-ink: #9c452e;
  --line: rgba(43, 61, 76, .14); --line-2: rgba(43, 61, 76, .28);
  --grid: rgba(123, 160, 186, .16);
  --display: 'Fraunces', Georgia, serif; --text: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 8px; --r2: 12px; --gut: clamp(18px, 4.2vw, 64px); --max: 1380px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --hdr: 76px;
  --muslin: 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='.85 .12' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .25 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #161d24; --milk: #1d262f; --sky: #253442; --sky-2: #30445a; --sky-3: #4d6a83;
  --ink: #efe7da; --ink-2: #c9c3b8; --ink-3: #a3a69f; --blue: #9fb4c4;
  --sage: #7fa592; --sage-2: #22332b; --sage-ink: #a9d0bb;
  --oak: #d6a77a; --oak-2: #3a2f25;
  --peach: #f0b29b; --peach-2: #3b2924; --peach-ink: #f5bda8;
  --line: rgba(239, 231, 218, .13); --line-2: rgba(239, 231, 218, .26); --grid: rgba(159, 188, 205, .07);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body { margin: 0; overflow-x: clip; background: var(--paper) var(--fibre); color: var(--ink); font: 400 16.5px/1.6 var(--text); -webkit-font-smoothing: antialiased; transition: background-color .4s var(--ease), color .4s var(--ease); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--peach-ink); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 300; background: var(--ink); color: var(--milk); padding: 12px 18px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
h1, h2, h3, .d { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'WONK' 0; font-weight: 500; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.6vw, 104px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08; }
h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--peach-ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
.lede { font-size: clamp(17px, 1.3vw, 19.5px); color: var(--ink-2); max-width: 48ch; }
.cap { font: 800 11.5px/1.3 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico.s { width: 18px; height: 18px; } .ico.l { width: 30px; height: 30px; stroke-width: 1.5; }
.calm *, .calm *::before, .calm *::after { animation: none !important; transition-duration: .01ms !important; }

/* page "folio" heading — like a booklet page number */
.folio { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.folio .pg { font: 500 italic 15px/1 var(--display); color: var(--peach-ink); }
.folio .rule { flex: 1; height: 1px; background: var(--line-2); align-self: center; }

/* buttons */
.btn { --bg: var(--ink); --fg: var(--milk); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 999px; background: var(--bg); color: var(--fg); font: 800 15px/1.2 var(--text); text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), background .25s, box-shadow .25s; }
.btn:hover { background: color-mix(in srgb, var(--bg) 86%, var(--peach)); }
.btn:active { transform: scale(.97); }
.btn.peach { --bg: var(--peach); --fg: #2b3d4c; }
.btn.peach:hover { background: color-mix(in srgb, var(--peach) 85%, #fff); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { background: var(--milk); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.lnk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1.5px no-repeat; transition: background-size .35s var(--ease); }
.lnk:hover { background-size: 0 1.5px; background-position: 100% calc(100% - 10px); }
.lnk .ico { transition: transform .3s var(--ease); } .lnk:hover .ico { transform: translateX(4px); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--milk); font: 700 14px/1.2 var(--text); white-space: nowrap; text-decoration: none; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--ink); } .chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--milk); border-color: var(--ink); }
.stamp { display: inline-grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; border: 2px solid var(--peach-ink); color: var(--peach-ink); text-align: center; font: 800 10.5px/1.25 var(--text); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-11deg); box-shadow: inset 0 0 0 5px var(--milk), inset 0 0 0 6.5px var(--peach-ink); background: var(--milk); padding: 16px; opacity: .92; }
.stamp b { display: block; font: 600 italic 19px/1 var(--display); letter-spacing: 0; text-transform: none; margin: 3px 0; }

/* wristband label — the newborn ID band */
.band { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--sky); color: var(--ink); font: 800 12px/1.2 var(--text); letter-spacing: .04em; position: relative; }
.band::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--milk); box-shadow: inset 0 0 0 1.5px var(--sky-3); flex: none; }
.band.peach { background: var(--peach-2); } .band.sage { background: var(--sage-2); color: var(--sage-ink); }

/* ── header */
.hdr { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom: 1px solid var(--line); transition: transform .4s var(--ease); }
.hdr-off .hdr { transform: translateY(-100%); }
.hdr .bar { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 46px; height: 32px; }
.logo .w { font: 500 25px/1 var(--display); font-variation-settings: 'SOFT' 100; letter-spacing: -.02em; }
.logo .t { display: block; font: 700 11px/1.2 var(--text); color: var(--ink-3); letter-spacing: .06em; margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-left: 18px; }
.nav a { padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: var(--milk); }
.nav a[aria-current="page"] { background: var(--sky); }
.hdr .sp { flex: 1; }
.ib { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; transition: background .2s, transform .2s var(--ease); text-decoration: none; }
.ib:hover { background: var(--milk); } .ib:active { transform: scale(.94); }
.ct { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--peach); color: #2b3d4c; font: 800 11px/19px var(--text); text-align: center; }
.ct:empty { display: none; }
.ct.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.45); } }
.tog { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 2px; }
.tog button { min-width: 40px; height: 36px; border-radius: 999px; font: 800 12.5px/1 var(--text); color: var(--ink-3); }
.tog button[aria-pressed="true"] { background: var(--ink); color: var(--milk); }
.menu-btn { display: none; }
@media (max-width: 1080px) { .nav { display: none; } .menu-btn { display: inline-grid; } .hide-m { display: none !important; } }
@media (max-width: 520px) { .logo .t { display: none; } .hdr .bar { gap: 6px; } .logo .w { font-size: 22px; } .tog button { min-width: 34px; } }

/* ── drawer, sheet, overlay */
.ov { position: fixed; inset: 0; z-index: 90; background: rgba(28, 38, 48, .38); opacity: 0; transition: opacity .35s var(--ease); }
.ov.on { opacity: 1; }
.drawer { position: fixed; z-index: 100; top: 0; bottom: 0; right: 0; width: min(440px, 100vw); background: var(--paper) var(--fibre); display: flex; flex-direction: column; transform: translateX(104%); transition: transform .5s var(--ease); box-shadow: -1px 0 0 var(--line); }
.drawer.left { right: auto; left: 0; transform: translateX(-104%); }
.drawer.on { transform: none; }
.drawer .dh > svg { width: 52px; height: 36px; color: var(--ink); }
.drawer .dh { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px dashed var(--line-2); }
.drawer .db { flex: 1; overflow: auto; padding: 18px 20px; overscroll-behavior: contain; }
.drawer .df { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px dashed var(--line-2); background: var(--milk); }
.mnav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 2px; border-bottom: 1px solid var(--line); font: 500 22px/1.2 var(--display); text-decoration: none; }

/* ── hero */
.hero { position: relative; min-height: calc(100svh - var(--hdr)); --hp: 0; display: grid; align-items: end; overflow: clip; isolation: isolate; color: #2b3d4c; }
.hero .ph { position: absolute; inset: -6% 0 0; z-index: -2; }
.hero .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; transform: scale(1.06); animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.14); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(246, 239, 228, .94) 0%, rgba(246, 239, 228, .78) 34%, rgba(246, 239, 228, 0) 64%), linear-gradient(0deg, rgba(246, 239, 228, .9), rgba(246, 239, 228, 0) 32%); }
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cloud { position: absolute; fill: #fdfaf4; opacity: .85; animation: drift var(--d, 80s) linear infinite; animation-delay: var(--dl, 0s); filter: drop-shadow(0 6px 10px rgba(123, 143, 158, .12)); }
.cloud path { animation: bob 7s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(120vw); } }
@keyframes bob { to { transform: translateY(8px); } }
.hero .in { padding-block: 120px 46px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.hero h1 { max-width: 11ch; font-size: clamp(48px, 8.4vw, 148px); line-height: .98; letter-spacing: -.03em; }
:lang(vi) .hero h1 { line-height: 1.04; }
.hero .in { transform: translateY(calc(var(--hp) * -60px)); opacity: calc(1 - var(--hp) * 1.4); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 800 11px var(--text); letter-spacing: .18em; text-transform: uppercase; color: #4a5d6c; }
.scroll-cue i { width: 1.5px; height: 42px; background: linear-gradient(#4a5d6c 50%, transparent 0) 0 0 / 100% 200%; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.hero h1 em { color: #9c452e; }
:root[data-theme="dark"] .hero .cap { color: #4a5d6c !important; }
.hero .lede { color: #3d4f5d; margin-top: 18px; }
.hero .acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .btn.ghost { --fg: #2b3d4c; box-shadow: inset 0 0 0 1.5px rgba(43, 61, 76, .35); }
.hero .stamp { justify-self: end; align-self: start; margin-top: 20px; }
:root[data-theme="dark"] .hero .stamp { background: #fdfaf4; color: #9c452e; border-color: #9c452e; box-shadow: inset 0 0 0 5px #fdfaf4, inset 0 0 0 6.5px #9c452e; }
.h-word { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; }
.h-word > span { display: inline-block; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes rise { from { transform: translateY(105%); } }
.fade-up { animation: fu .8s var(--ease) both; animation-delay: var(--dl, .5s); }
@keyframes fu { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 860px) {
  .hero { min-height: 100svh; }
  .hero .ph img { object-position: 46% 40%; }
  .hero::after { background: linear-gradient(0deg, rgba(246, 239, 228, .98) 0%, rgba(246, 239, 228, .88) 36%, rgba(246, 239, 228, 0) 58%); }
  .hero .in { grid-template-columns: 1fr; padding-block: 0 40px; }
  .hero .stamp { position: absolute; top: auto; bottom: calc(100% + 14px); right: var(--gut); width: 92px; height: 92px; margin: 0; font-size: 9px; padding: 12px; }
  .hero .stamp b { font-size: 16px; }
  .hero .scroll-cue { display: none; }
}
.hero-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: linear-gradient(transparent, var(--paper)); z-index: -1; pointer-events: none; }

/* ── booklet tabs (stages) */
.tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.tabs a { position: relative; text-decoration: none; padding: 20px 18px 22px; border-right: 1px solid var(--line); min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; transition: background .3s var(--ease); }
.tabs a:last-child { border-right: 0; }
.tabs a::before { content: ''; position: absolute; top: -1.5px; left: 18px; width: 48px; height: 7px; border-radius: 0 0 6px 6px; background: var(--tc, var(--sky-3)); transition: width .4s var(--ease); }
.tabs a:hover { background: var(--milk); } .tabs a:hover::before { width: 80px; }
.tabs a[aria-current="page"] { background: var(--milk); } .tabs a[aria-current="page"]::before { width: calc(100% - 36px); }
.tabs .n { font: 500 clamp(22px, 2.1vw, 30px)/1.05 var(--display); font-variation-settings: 'SOFT' 100; }
.tabs .s { font-size: 14px; color: var(--ink-3); font-weight: 700; }
.tabs .k { font: 500 italic 14px/1 var(--display); color: var(--peach-ink); }
@media (max-width: 860px) { .tabs { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; } .tabs a { scroll-snap-align: start; min-height: 112px; } }

/* sections */
.sec { padding-block: clamp(64px, 9vw, 132px); }
.sec.tight { padding-block: clamp(40px, 6vw, 80px); }
.sec-h { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-h p { color: var(--ink-2); margin: 0; max-width: 44ch; }
@media (max-width: 860px) { .sec-h { grid-template-columns: 1fr; } }
.graph { background-color: var(--milk); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.sky-bg { background: var(--sky) var(--muslin); }

/* reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rvi { clip-path: inset(0 0 100% 0 round var(--r2)); transition: clip-path 1.1s var(--ease); }
.rvi.in { clip-path: inset(0 0 0 0 round var(--r2)); }
.rvi img { transform: scale(1.12); transition: transform 1.6s var(--ease); } .rvi.in img { transform: scale(1); }
.card.rv.in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.calm .rv, .calm .rvi { opacity: 1; transform: none; clip-path: none; } .calm .rvi img { transform: none; }

/* ── product card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { position: relative; display: flex; flex-direction: column; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); }
.card .pic { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r2); overflow: hidden; background: var(--oak-2); display: block; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .pic img { transform: scale(1.045); }
.card .pic::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .38), transparent 46%); opacity: 0; transition: opacity .3s; pointer-events: none; mix-blend-mode: soft-light; }
.card:hover .pic::after { opacity: 1; }
.card .band { position: absolute; left: 12px; top: 12px; z-index: 2; }
.card .meta { padding: 14px 2px 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: start; }
.card .nm { font-weight: 800; font-size: 16px; line-height: 1.35; text-decoration: none; grid-column: 1 / -1; }
.card .nm::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card .pr { white-space: nowrap;  font: 500 21px/1.1 var(--display); font-variation-settings: 'SOFT' 100; }
.card .pr s { font: 600 13px var(--text); color: var(--ink-3); margin-left: 6px; }
.card .rt { font-size: 13px; color: var(--ink-3); font-weight: 700; display: flex; gap: 4px; align-items: center; }
.card .qa { position: absolute; z-index: 3; right: 10px; top: 10px; width: 46px; height: 46px; border-radius: 50%; background: var(--milk); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; color: var(--ink); }
.card .qa:hover { background: var(--peach); color: #2b3d4c; } .card .qa:active { transform: scale(.92); }
.card .qa.done { background: var(--sage); color: #1f3a2d; }
.card .ages { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }

/* skeleton */
.sk .pic, .sk .ln { background: linear-gradient(100deg, var(--oak-2) 30%, color-mix(in srgb, var(--oak-2) 55%, var(--milk)) 50%, var(--oak-2) 70%) 0 0 / 300% 100%; animation: shimmer 1.3s linear infinite; }
.sk .ln { height: 14px; border-radius: 4px; margin-top: 12px; } .sk .ln.s { width: 40%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }

/* ── home blocks */
.feat-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 72px); align-items: start; }
.feat-split .big { position: sticky; top: calc(var(--hdr) + 20px); }
.feat-split .big .pic { aspect-ratio: 4 / 5; border-radius: var(--r2); overflow: hidden; }
.feat-split .big img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.feat-split .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feat-split .grid > :nth-child(even) { margin-top: 56px; }
@media (max-width: 860px) { .feat-split { grid-template-columns: 1fr; } .feat-split .big { position: relative; top: 0; } .feat-split .grid > :nth-child(even) { margin-top: 0; } }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } .card .meta { grid-template-columns: 1fr; gap: 4px; } .card .pr { white-space: nowrap; } .card .band { left: 8px; top: 8px; font-size: 11px; padding: 5px 10px 5px 8px; } .card .qa { width: 44px; height: 44px; right: 6px; top: 6px; } }
@media (max-width: 420px) { .feat-split .grid, .grid.two-m { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .card .nm { font-size: 14.5px; } .card .pr { font-size: 18px; } .card .ages { display: none; } }

.room { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0; border-radius: var(--r2); overflow: hidden; background: #e7dccb; min-height: 560px; }
:root[data-theme="dark"] .room { background: #1b2229; }
.room .stage { position: relative; min-height: 440px; }
.room .stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; outline: none; }
.room .stage .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease); }
.room .stage.live .poster { opacity: 0; pointer-events: none; }
.room .tip { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: var(--milk); color: var(--ink); padding: 8px 12px; border-radius: 8px; font: 800 13px/1.3 var(--text); white-space: nowrap; opacity: 0; transition: opacity .2s; box-shadow: 0 1px 0 var(--line-2); }
.room .tip.on { opacity: 1; }
.room .tip small { display: block; font: 500 italic 14px var(--display); color: var(--peach-ink); }
.room .side { padding: clamp(22px, 3vw, 40px); background: var(--milk) var(--muslin); display: flex; flex-direction: column; gap: 16px; }
.room .side h2 { font-size: clamp(28px, 2.8vw, 40px); }
.hot { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hot li { border-bottom: 1px solid var(--line); }
.hot button, .hot a { display: flex; width: 100%; align-items: center; gap: 12px; padding: 9px 0; min-height: 56px; text-align: left; text-decoration: none; font-weight: 700; }
.hot img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.hot .ico { margin-left: auto; transition: transform .3s var(--ease); } .hot a:hover .ico, .hot button:hover .ico { transform: translateX(4px); }
.hot .on { color: var(--peach-ink); }
.pins { position: absolute; inset: 0; }
.pin { position: absolute; width: 44px; height: 44px; margin: -22px; border-radius: 50%; display: grid; place-items: center; }
.pin::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--milk); box-shadow: 0 0 0 5px rgba(253, 250, 244, .45); }
.room .stage.live .pins { display: none; }
@media (max-width: 960px) { .room { grid-template-columns: 1fr; } .room .stage { min-height: 380px; aspect-ratio: 4 / 3.2; } }

.list-tease { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.paper { background: var(--milk) var(--fibre); border-radius: 4px; padding: clamp(22px, 3vw, 40px); position: relative; box-shadow: 0 1px 0 var(--line-2), 6px 6px 0 -1px var(--sky-2); }
.ruled { background-image: repeating-linear-gradient(transparent 0 35px, var(--grid) 35px 36px); }
.paper .hole { position: absolute; left: 14px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; }
.paper .hole i { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); }
@media (max-width: 860px) { .list-tease { grid-template-columns: 1fr; } }

.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--peach) calc(var(--p) * 1%), var(--sky) 0); position: relative; transition: --p .6s var(--ease); flex: none; }
.ring::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: var(--milk); }
.ring b { position: relative; font: 500 34px/1 var(--display); font-variation-settings: 'SOFT' 100; }
.ring small { position: relative; display: block; font: 700 12px var(--text); color: var(--ink-3); text-align: center; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); }
.trust > div { padding: 22px 22px 6px 0; }
.trust > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.trust .big { font: 500 clamp(40px, 4.4vw, 64px)/1 var(--display); font-variation-settings: 'SOFT' 100; display: block; margin-bottom: 8px; }
.trust p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } .trust > div:nth-child(3) { padding-left: 0; border-left: 0; } .trust > div { border-top: 1px solid var(--line); } }

.quotes { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(18px, 3vw, 44px); }
.quotes blockquote { margin: 0; padding-top: 18px; border-top: 1px solid var(--line-2); }
.quotes blockquote p { font: 400 clamp(18px, 1.5vw, 22px)/1.45 var(--display); font-variation-settings: 'SOFT' 100; }
.quotes blockquote:first-child p { font-size: clamp(22px, 2vw, 30px); }
.quotes cite { font-style: normal; font-weight: 800; font-size: 14px; } .quotes cite span { display: block; font-weight: 600; color: var(--ink-3); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

.visit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; border-radius: var(--r2); overflow: hidden; background: var(--milk); }
.visit .pic { min-height: 420px; position: relative; overflow: hidden; } .visit .pic img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.visit .txt { padding: clamp(24px, 4vw, 56px); }
.visit dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 18px 0 24px; } .visit dt { font-weight: 800; color: var(--ink-3); font-size: 14px; } .visit dd { margin: 0; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } .visit .pic { min-height: 280px; } }

/* ── shop & filters */
.pagehead { padding-block: clamp(36px, 6vw, 80px) clamp(22px, 3vw, 36px); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); font-weight: 700; margin-bottom: 18px; } .crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(22px, 3vw, 48px); padding-bottom: 96px; }
.filters fieldset { border: 0; padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px dashed var(--line-2); }
.filters legend { font: 800 12px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; padding: 0; }
.ck { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-weight: 600; }
.ck input { appearance: none; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--milk); display: grid; place-items: center; flex: none; margin: 0; transition: background .2s, border-color .2s; }
.ck input:checked { background: var(--ink); border-color: var(--ink); }
.ck input:checked::after { content: ''; width: 10px; height: 6px; border: solid var(--milk); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.ck .c { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.ck input[type="radio"] { border-radius: 50%; } .ck input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--milk); transform: none; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.toolbar .sp { flex: 1; }
.field { display: grid; gap: 6px; }
.field label, .lbl { font-weight: 800; font-size: 14px; }
.inp, select.inp, textarea.inp { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--milk); transition: border-color .2s, box-shadow .2s; }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sky-2); }
.inp[aria-invalid="true"] { border-color: var(--peach-ink); }
.err { color: var(--peach-ink); font-size: 13.5px; font-weight: 700; min-height: 0; }
.search { position: relative; } .search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; } .search .inp { padding-left: 44px; }
.filt-btn { display: none; }
@media (max-width: 960px) { .shop { grid-template-columns: 1fr; } .filters { display: none; } .filt-btn { display: inline-flex; } }
.empty { text-align: center; padding: 64px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r2); }
.empty img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; filter: saturate(.7); }

/* ── product page */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); padding-bottom: 72px; }
.gal { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-self: start; position: sticky; top: calc(var(--hdr) + 16px); }
.gal .main { position: relative; aspect-ratio: 1; border-radius: var(--r2); overflow: hidden; background: var(--oak-2); cursor: zoom-in; }
.gal .main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.gal .thumbs { display: flex; flex-direction: column; gap: 10px; }
.gal .thumbs button { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; position: relative; opacity: .6; transition: opacity .2s; box-shadow: inset 0 0 0 0 var(--ink); }
.gal .thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.gal .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gal .count { position: absolute; right: 12px; bottom: 12px; background: var(--milk); padding: 4px 10px; border-radius: 999px; font: 800 12px var(--text); color: var(--ink); }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } .gal { position: relative; top: 0; grid-template-columns: 1fr; } .gal .thumbs { flex-direction: row; order: 2; } }
.buy h1 { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.12; margin: 12px 0 14px; }
.buy .price { font: 500 34px/1 var(--display); font-variation-settings: 'SOFT' 100; display: flex; align-items: baseline; gap: 12px; }
.buy .price s { font: 700 16px var(--text); color: var(--ink-3); }
.buy .price .off { font: 800 13px var(--text); background: var(--peach-2); color: var(--peach-ink); padding: 4px 8px; border-radius: 999px; }
.opt { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 999px; height: 50px; }
.qty button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; } .qty button:active { transform: scale(.9); }
.qty output { min-width: 32px; text-align: center; font-weight: 800; }
.buyrow { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; } .buyrow .btn.peach { flex: 1; min-width: 180px; }
.perks { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px dashed var(--line-2); display: grid; gap: 10px; font-size: 15px; } .perks li { display: flex; gap: 10px; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.cert { padding: 16px; border: 1.5px solid var(--sage); border-radius: var(--r); background: var(--sage-2); }
.cert b { font: 600 19px/1.2 var(--display); display: flex; gap: 8px; align-items: center; color: var(--sage-ink); margin-bottom: 6px; } .cert p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.spec { width: 100%; border-collapse: collapse; } .spec th, .spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; } .spec th { font-weight: 700; color: var(--ink-3); width: 42%; font-size: 15px; }
.acc { border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 14px 0; cursor: pointer; font-weight: 800; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { transition: transform .35s var(--ease); } .acc details[open] summary .ico { transform: rotate(45deg); }
.acc .ans { padding: 0 0 18px; color: var(--ink-2); }
.acc .who { font-size: 13px; color: var(--ink-3); font-weight: 700; display: block; margin-top: 6px; }
.blocks { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); padding-block: 48px 96px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .blocks { grid-template-columns: 1fr; } }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(22, 29, 36, .92); display: grid; place-items: center; padding: 24px; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: 8px; object-fit: contain; }
.lightbox .ib { position: absolute; top: 16px; right: 16px; background: var(--milk); color: var(--ink); }

/* ── checklist (booklet page) */
.ckl { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); padding-bottom: 96px; align-items: start; }
.ckl .side { position: sticky; top: calc(var(--hdr) + 16px); display: grid; gap: 18px; }
.grp { margin-bottom: 26px; }
.grp h3 { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); margin-bottom: 4px; }
.grp h3 small { font: 800 13px var(--text); color: var(--ink-3); }
.row { display: grid; grid-template-columns: 44px 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row .tick { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: var(--milk); transition: background .3s var(--ease), border-color .3s; }
.row .tick svg { width: 24px; height: 24px; stroke: #2b3d4c; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .45s var(--ease) .05s; }
.row.done .tick { background: var(--peach); border-color: var(--peach); }
.row.done .tick svg { stroke-dashoffset: 0; }
.row .th { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--oak-2); }
.row .th img { width: 100%; height: 100%; object-fit: cover; }
.row .tx { font-weight: 700; } .row .tx a { text-decoration: none; } .row .tx a:hover { text-decoration: underline; }
.row .tx small { display: block; font-weight: 600; color: var(--ink-3); font-size: 13.5px; }
.row.done .tx > span:first-child { text-decoration: line-through; text-decoration-color: var(--peach-ink); color: var(--ink-3); }
.row .pr { font: 500 17px var(--display); white-space: nowrap; }
@media (max-width: 960px) { .ckl { grid-template-columns: 1fr; } .ckl .side { position: relative; top: 0; order: -1; } }
@media (max-width: 480px) { .row { grid-template-columns: 44px 52px minmax(0, 1fr); } .row .th { width: 52px; height: 52px; } .row .pr { grid-column: 3; font-size: 15px; } }
.note { background: var(--peach-2); padding: 16px 18px; border-radius: var(--r); font-size: 15px; } .note b { display: block; margin-bottom: 4px; }

/* ── registry (gift tag) */
.tag { position: relative; background: var(--milk) var(--fibre); border-radius: 10px 10px 10px 10px; padding: clamp(24px, 3vw, 40px); padding-left: clamp(48px, 5vw, 72px); clip-path: polygon(28px 0, 100% 0, 100% 100%, 28px 100%, 0 calc(100% - 28px), 0 28px); }
.tag::before { content: ''; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--oak); }
.reg { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding-bottom: 96px; align-items: start; }
@media (max-width: 960px) { .reg { grid-template-columns: 1fr; } }
.share { display: flex; gap: 8px; align-items: stretch; } .share .inp { font-size: 14px; }
.ritem { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ritem img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.ritem .gv { font-size: 13px; font-weight: 800; color: var(--sage-ink); }
.prog { height: 8px; background: var(--sky); border-radius: 999px; overflow: hidden; } .prog i { display: block; height: 100%; background: var(--peach); border-radius: 999px; transition: width .7s var(--ease); }

/* ── cart / checkout / receipt */
.line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.line .n { font-weight: 800; text-decoration: none; display: block; line-height: 1.35; } .line .o { font-size: 13.5px; color: var(--ink-3); }
.line .ctl { display: flex; align-items: center; gap: 8px; margin-top: 8px; } .line .qty { height: 44px; } .line .qty button { width: 40px; height: 40px; }
.line .rm { font-size: 13px; font-weight: 800; color: var(--ink-3); min-height: 44px; padding: 0 6px; text-decoration: underline; }
.line .p { font: 500 18px var(--display); white-space: nowrap; }
.sum { display: grid; gap: 8px; font-size: 15px; } .sum div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; } .sum div > :last-child { white-space: nowrap; text-align: right; } .sum .tot { font: 500 22px var(--display); padding-top: 10px; border-top: 1px dashed var(--line-2); margin-top: 4px; }
.freebar { font-size: 14px; margin-bottom: 14px; } .freebar .prog { margin-top: 8px; }
.co { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); padding-bottom: 96px; align-items: start; }
.co form { display: grid; gap: 18px; }
.co .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co .aside { position: sticky; top: calc(var(--hdr) + 16px); }
.pay { display: grid; gap: 10px; }
.pay label { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); cursor: pointer; background: var(--milk); font-weight: 700; min-height: 56px; }
.pay label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay small { display: block; font-weight: 600; color: var(--ink-3); }
@media (max-width: 960px) { .co { grid-template-columns: 1fr; } .co .aside { position: relative; top: 0; } }
@media (max-width: 480px) { .co .two { grid-template-columns: 1fr; } }
.receipt { max-width: 560px; margin: 0 auto; background: var(--milk) var(--fibre); padding: 36px clamp(22px, 4vw, 40px); position: relative; --perf: radial-gradient(circle at 10px 0, transparent 7px, var(--milk) 7.5px); }
.receipt::before, .receipt::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: var(--perf) 0 0 / 20px 10px repeat-x; }
.receipt::before { top: -10px; transform: scaleY(-1); } .receipt::after { bottom: -10px; }
.receipt .stamp { position: absolute; right: 18px; top: 18px; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; } .receipt dt { color: var(--ink-3); font-weight: 700; } .receipt dd { margin: 0; text-align: right; }
.steps { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.steps li::before { content: ''; width: 14px; height: 14px; margin: 5px 7px; border-radius: 50%; background: var(--sky-2); }
.steps li.on::before { background: var(--peach); box-shadow: 0 0 0 5px var(--peach-2); }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 13.5px; top: 22px; bottom: 0; width: 1px; background: var(--line-2); }

/* ── Zalo chat */
.zbtn { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--ink); color: var(--milk); font-weight: 800; font-size: 14.5px; box-shadow: 0 10px 24px -12px rgba(28, 38, 48, .55); transition: transform .3s var(--ease); }
.zbtn:active { transform: scale(.96); }
.zbtn .av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.zbtn .dot { position: absolute; left: 38px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: #7dc59b; box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 560px) { .zbtn .lbl { display: none; } .zbtn { padding: 7px; } }
.chat { position: fixed; z-index: 110; right: 18px; bottom: 18px; width: min(380px, calc(100vw - 24px)); height: min(580px, calc(100vh - 36px)); background: var(--paper); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(28, 38, 48, .5); transform-origin: 100% 100%; animation: pop .45s var(--spring); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
@media (max-width: 560px) { .chat { right: 12px; left: 12px; width: auto; bottom: 12px; height: calc(100dvh - 24px); } }
.chat .ch { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--sky); }
.chat .ch img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.chat .ch b { display: block; } .chat .ch small { font-size: 12.5px; color: var(--ink-2); }
.chat .cb { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper) var(--muslin); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--milk); font-size: 15px; line-height: 1.45; animation: fu .35s var(--ease) both; }
.msg.me { align-self: flex-end; background: var(--ink); color: var(--milk); border-radius: 14px 14px 4px 14px; }
.msg.typing { display: flex; gap: 4px; padding: 14px; } .msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: tp 1s infinite; } .msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 50% { transform: translateY(-4px); opacity: .4; } }
.chat .qk { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; background: var(--paper); } .chat .qk .chip { min-height: 38px; font-size: 13px; padding: 6px 12px; }
.chat form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--milk); }
.chat .fine { font-size: 11.5px; color: var(--ink-3); text-align: center; padding: 6px 12px 8px; background: var(--milk); margin: 0; }

/* toast + fly */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 130; transform: translate(-50%, 140%); background: var(--ink); color: var(--milk); padding: 12px 18px; border-radius: 999px; display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 14.5px; transition: transform .5s var(--spring); max-width: calc(100vw - 32px); }
.toast.on { transform: translate(-50%, 0); }
.toast a { color: var(--peach); font-weight: 800; }
.fly { position: fixed; z-index: 140; border-radius: 50%; object-fit: cover; pointer-events: none; }

/* page transition */
#main { outline: none; min-height: 60vh; }
#main.enter { animation: pg .45s var(--ease) both; }
@keyframes pg { from { opacity: 0; transform: translateY(10px); } }

/* footer */
.ftr { background: var(--ink); color: #e9e2d6; padding-block: 72px 32px; margin-top: 0; }
:root[data-theme="dark"] .ftr { background: #0f151b; }
.ftr a { color: inherit; }
.ftr .top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(233, 226, 214, .18); }
.ftr h4 { font: 800 12px var(--text); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; color: #b8c6d1; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; } .ftr ul a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; } .ftr ul a:hover { text-decoration: underline; }
.ftr .logo .t { color: #b8c6d1; }
.ftr .about p { color: #cfd6dc; max-width: 40ch; margin-top: 16px; }
.ftr .fine { padding-bottom: 72px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; font-size: 14px; color: #b8c6d1; }
.ftr .fine p { margin: 0 0 4px; } .ftr .fine .lk { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) { .ftr .top { grid-template-columns: 1fr 1fr; } .ftr .about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv, .rvi { opacity: 1; transform: none; clip-path: none; }
}

/* brand labels laid over packaging photos */
.lb { position: absolute; inset: 0; pointer-events: none; overflow: hidden; transition: opacity .45s var(--ease); }
.lb svg { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 1; transform: translateX(-50%) scale(var(--sc, 1)); transform-origin: 50% 50%; overflow: visible; }
.card .pic .lb svg { transition: transform .8s var(--ease); }
.card:hover .pic .lb svg { transform: translateX(-50%) scale(1.045); }
.lpic, .row .th, .gal .thumbs button { position: relative; display: block; overflow: hidden; border-radius: 8px; }
.lpic img { display: block; }
.ritem .lpic { width: 72px; height: 72px; }
.line .lpic { width: 80px; height: 80px; }

/* ── landing: statement scrub */
.statement { padding-block: clamp(90px, 14vw, 200px); }
.statement p { font: 400 clamp(34px, 5.6vw, 92px)/1.08 var(--display); font-variation-settings: 'SOFT' 100; letter-spacing: -.025em; margin: 0; max-width: 17ch; }
:lang(vi) .statement p { line-height: 1.14; }
.statement .w { opacity: .14; transition: opacity .35s linear; }
.statement .w.on { opacity: 1; }
.statement em { color: var(--peach-ink); }
.statement .sig { display: flex; gap: 14px; align-items: center; margin-top: 36px; color: var(--ink-2); font-weight: 700; }
.statement .sig img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.calm .statement .w { opacity: 1; }

/* ── landing: pinned story */
.story { position: relative; }
.story-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); }
.story-pics { position: sticky; top: calc(var(--hdr) + 20px); height: calc(100svh - var(--hdr) - 40px); border-radius: var(--r2); overflow: hidden; background: var(--oak-2); }
.story-pics figure { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.story-pics figure.on { clip-path: inset(0 0 0 0); }
.story-pics img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.8s var(--ease); }
.story-pics figure.on img { transform: scale(1); }
.story-pics .lb svg { transform: translateX(-50%) scale(1); }
.story-hud { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 10px 16px; border-radius: 999px; background: rgba(43, 61, 76, .62); display: flex; align-items: center; gap: 14px; color: #fdfaf4; font: 800 12px var(--text); letter-spacing: .14em; z-index: 3; }
.story-hud .bar { flex: 1; height: 2px; background: rgba(253, 250, 244, .4); border-radius: 2px; overflow: hidden; }
.story-hud .bar i { display: block; height: 100%; width: 0; background: #fdfaf4; transition: width .6s var(--ease); }
.chap { min-height: 88svh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; opacity: .25; transition: opacity .6s var(--ease); }
.chap.on { opacity: 1; }
.chap .k { font: 500 italic clamp(64px, 8vw, 128px)/1 var(--display); color: var(--blue); font-variation-settings: 'SOFT' 100; }
.chap h3 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.12; margin: 8px 0 16px; }
.chap p { color: var(--ink-2); font-size: 17.5px; max-width: 40ch; }
.chap .lnk { align-self: flex-start; }
.calm .chap { opacity: 1; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-pics { top: calc(var(--hdr) + 8px); height: 46svh; z-index: 3; box-shadow: 0 -40px 0 var(--paper); }
  .chap { min-height: 0; position: relative; z-index: 1; justify-content: flex-start; padding: calc(46svh + 28px) 0 14svh; margin-top: calc(-46svh - 8px); }
  .chap:first-child { margin-top: 0; padding-top: 28px; }
  .story-pics { margin-bottom: 0; }
  .chap > * { background: var(--paper); }
  .chap .k { font-size: 56px; }
}

/* ── landing: closing CTA */
.finale { position: relative; min-height: 92svh; display: grid; align-items: center; overflow: clip; isolation: isolate; color: #fdfaf4; }
.finale > img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; }
.finale::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 38, 48, .25), rgba(28, 38, 48, .7)); }
.finale h2 { font-size: clamp(46px, 7.6vw, 128px); line-height: 1; letter-spacing: -.03em; max-width: 12ch; }
.finale h2 em { color: #f6d9cc; }
.finale p { font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; color: #efe7da; margin: 22px 0 30px; }
.finale .btn { --bg: #fdfaf4; --fg: #2b3d4c; }
.finale .btn.ghost { --bg: transparent; --fg: #fdfaf4; box-shadow: inset 0 0 0 1.5px rgba(253, 250, 244, .6); }
.finale .acts { display: flex; flex-wrap: wrap; gap: 12px; }
