/* =========================================================================
   Dj Nana — Confidence Inside & Out
   Palette "Champagne Chic": #2B1C10 · #6E493A · #A78E78 · #E1D4C1 · #F4E1D2
   Fonts: Montserrat (Latin) + Kantumruy Pro (Khmer)
   ========================================================================= */

:root {
  --espresso: #2B1C10;
  --cocoa:    #6E493A;
  --taupe:    #A78E78;
  --sand:     #E1D4C1;
  --blush:    #F4E1D2;

  /* light theme tokens */
  --bg:        #FBF7F2;
  --bg-alt:    #F4E1D2;
  --surface:   #FFFFFF;
  --surface-2: #F7EFE6;
  --text:      #2B1C10;
  --muted:     #6E5A4C;
  --accent:    #6E493A;
  --accent-ink:#FBF7F2;
  --line:      rgba(43, 28, 16, .12);
  --line-strong: rgba(43, 28, 16, .28);
  --shadow:    0 18px 40px -24px rgba(43, 28, 16, .35);
  --logo-filter: none;
  --logo-opacity: .92;
  --pattern: url("../assets/images/pattern-light.png?v=2");
  --pattern-opacity: .10;

  --font: "Montserrat", "Kantumruy Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-km: "Kantumruy Pro", "Montserrat", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #17100A;
    --bg-alt:    #2B1C10;
    --surface:   #22170E;
    --surface-2: #2E2015;
    --text:      #F4E1D2;
    --muted:     #C4B09D;
    --accent:    #E1D4C1;
    --accent-ink:#2B1C10;
    --line:      rgba(244, 225, 210, .12);
    --line-strong: rgba(244, 225, 210, .3);
    --shadow:    0 18px 40px -24px rgba(0, 0, 0, .8);
    --logo-filter: brightness(0) invert(1) sepia(.25) saturate(1.4) hue-rotate(-10deg);
    --logo-opacity: .9;
    --pattern: url("../assets/images/pattern-dark.png?v=2");
    --pattern-opacity: .06;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #17100A;
  --bg-alt:    #2B1C10;
  --surface:   #22170E;
  --surface-2: #2E2015;
  --text:      #F4E1D2;
  --muted:     #C4B09D;
  --accent:    #E1D4C1;
  --accent-ink:#2B1C10;
  --line:      rgba(244, 225, 210, .12);
  --line-strong: rgba(244, 225, 210, .3);
  --shadow:    0 18px 40px -24px rgba(0, 0, 0, .8);
  --logo-filter: brightness(0) invert(1) sepia(.25) saturate(1.4) hue-rotate(-10deg);
  --logo-opacity: .9;
  --pattern: url("../assets/images/pattern-dark.png?v=2");
  --pattern-opacity: .06;
  color-scheme: dark;
}

/* ------------------------------ base ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h, 128px) + 8px); -webkit-text-size-adjust: 100%; }

/* repeating beauty-product pattern behind the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pattern); background-repeat: repeat; background-size: 540px 540px;
  opacity: var(--pattern-opacity);
}
[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; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
html[lang="km"] body { font-family: var(--font-km); line-height: 1.85; }
[lang="en"] { font-family: var(--font); }
[lang="km"] { font-family: var(--font-km); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
html[lang="km"] h1, html[lang="km"] h2, html[lang="km"] h3 { line-height: 1.55; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.logo-mark { filter: var(--logo-filter); opacity: var(--logo-opacity); transition: filter .4s var(--ease); }

.eyebrow, .small-title {
  font-family: var(--font);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.2em;
}
html[lang="km"] .eyebrow, html[lang="km"] .small-title { font-family: var(--font-km); letter-spacing: .04em; font-size: .85rem; }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head h2, .story h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 300; }
html[lang="km"] .section-head h2, html[lang="km"] .story h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); font-weight: 400; }
.section-lead { color: var(--muted); margin-top: 1.2em; font-size: 1.02rem; }

/* ----------------------------- buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.6em;
  border-radius: 999px; border: 1px solid var(--accent);
  font-size: .82rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s;
  white-space: nowrap;
}
html[lang="km"] .btn { letter-spacing: .02em; text-transform: none; font-size: .95rem; }
.btn--solid { background: var(--accent); color: var(--accent-ink); }
.btn--solid:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 38px; padding: 0 1.1em; font-size: .72rem; }
html[lang="km"] .btn--sm { font-size: .85rem; }
.btn--block { width: 100%; }
.btn .i { width: 1.15em; height: 1.15em; }
.btn:active { transform: scale(.98); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  transition: border-color .25s;
}
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }

.chip {
  border: 1px solid var(--line-strong); background: transparent;
  border-radius: 999px; padding: .45em 1.1em; font-size: .8rem; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--text); }
.chip[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.link-arrow { font-size: .85rem; letter-spacing: .08em; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .25s; }
.link-arrow:hover { border-color: var(--text); }

/* ----------------------------- header ----------------------------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .4s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 24px;
}
.header__logo { flex: none; display: block; }
.header__logo img { height: 42px; width: auto; }

.nav { display: flex; gap: clamp(16px, 2.2vw, 30px); margin: 0 auto; }
.nav a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 0; position: relative; transition: color .25s; }
html[lang="km"] .nav a { text-transform: none; letter-spacing: .02em; font-size: .92rem; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang__btn { border: 0; background: transparent; border-radius: 999px; padding: 4px 11px; font-size: .78rem; color: var(--muted); line-height: 1.6; }
.lang__btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang__btn[lang="km"] { font-family: var(--font-km); }

.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}

.nav-toggle { display: none; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .header__order { display: none; }
  .header__tools { margin-left: auto; }
  .nav {
    position: fixed; inset: 68px 0 auto 0; margin: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
  html[lang="km"] .nav a { font-size: 1rem; }
  .nav a::after { display: none; }
}
@media (max-width: 380px) {
  .header__logo img { height: 34px; }
  .lang__btn { padding: 4px 8px; }
}

/* ----------------------------- search ----------------------------- */
.search { padding: 0 var(--gutter) 10px; }
.search__inner { position: relative; max-width: 640px; margin: 0 auto; }
.search__field {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 8px 0 16px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  transition: border-color .25s, box-shadow .25s;
}
.search__field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.search__field > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search__field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming in */
}
.search__field input::placeholder { color: var(--muted); opacity: .9; }
.search__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__clear { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); }
.search__clear:hover { color: var(--text); background: var(--surface-2); }
.search__clear svg { width: 16px; height: 16px; }
.search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -28px rgba(23, 16, 10, .55); padding: 6px;
}
.sresult {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 8px; border: 0; border-radius: var(--radius-sm); background: transparent;
}
.sresult[aria-selected="true"], .sresult:hover { background: var(--surface-2); }
.sresult img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-2); }
.sresult__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.sresult__text strong { font-weight: 500; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sresult__text span { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sresult__text small { color: var(--accent); font-size: .74rem; font-family: var(--font); }
.sresult__empty { margin: 0; padding: 14px; color: var(--muted); font-size: .9rem; }

/* suggestion chips under the search bar (tucked away once you scroll, back when you tap the bar) */
.search__suggest {
  display: flex; align-items: center; gap: 6px; margin-top: 8px;
  overflow-x: auto; scrollbar-width: none; white-space: nowrap; justify-content: center;
}
.search__suggest::-webkit-scrollbar { display: none; }
.search__try { font-size: .74rem; color: var(--muted); margin-right: 2px; flex: none; }
.search__chip {
  flex: none; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-radius: 999px; padding: 3px 12px; font-size: .78rem; color: var(--text); line-height: 1.7;
  transition: border-color .2s, background-color .2s;
}
.search__chip:hover { border-color: var(--accent); background: var(--surface); }
html[lang="km"] .search__chip { font-size: .84rem; }
.header.is-scrolled .search:not(:focus-within) .search__suggest { display: none; }
@media (max-width: 640px) { .search__suggest { justify-content: flex-start; } }

/* ------------------------------ hero ------------------------------ */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title {
  font-family: var(--font);
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 300; line-height: 1.02; letter-spacing: -.035em;
  margin-bottom: .35em;
}
html[lang="km"] .hero__title { line-height: 1.02; letter-spacing: -.035em; }
.hero__title em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text); font-weight: 400; margin-bottom: 1em; }
.hero__lead { color: var(--muted); max-width: 520px; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* portrait of Dj Nana with two floating product photos */
.hero__art { position: relative; width: 100%; max-width: 460px; margin-left: auto; padding: 0 4% 7% 0; }
.hero__portrait {
  margin: 0; position: relative; overflow: hidden; border-radius: 240px 240px var(--radius) var(--radius);
  aspect-ratio: 4 / 5.4; background: var(--surface-2); box-shadow: var(--shadow);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero__sign { position: absolute; right: 2%; bottom: 0; width: 42%; height: auto; pointer-events: none; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 440px; margin: 0 auto; order: -1; }
}

/* brand tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(56px, 8vw, 96px); }
.tile {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.tile__logo { width: 100%; max-width: 260px; height: auto; margin: 4px auto 6px; }
.tile__desc { color: var(--muted); font-size: .92rem; }
.tile__meta { margin-top: auto; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; display: flex; gap: .4em; align-items: center; }
html[lang="km"] .tile__meta { text-transform: none; letter-spacing: .02em; font-size: .9rem; }
.tile__meta .arrow { margin-left: auto; transition: transform .3s var(--ease); }
.tile:hover .arrow { transform: translateX(4px); }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr; } .tile__logo { max-width: 220px; } }

/* ----------------------------- brands ----------------------------- */
.brand { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.brand--alt { background: color-mix(in srgb, var(--surface-2) 78%, transparent); }
.brand__head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.brand__chapter { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6em; }
html[lang="km"] .brand__chapter { text-transform: none; letter-spacing: .04em; font-size: .88rem; }
.brand__logo { width: min(420px, 82%); height: auto; margin: 0 auto 1.8em; }
.brand__story { color: var(--muted); font-size: 1.02rem; }
.brand__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 1.6em; }
.brand__facts li { font-size: .78rem; padding: .45em 1em; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); }
html[lang="km"] .brand__facts li { font-size: .88rem; }

.filters {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 28px; padding: 2px var(--gutter);
  overflow-x: auto; scrollbar-width: none; justify-content: center;
}
.filters::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .filters { justify-content: flex-start; } }
html[lang="km"] .chip { font-size: .9rem; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 24px); }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .grid { grid-template-columns: repeat(2, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-align: left;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  animation: fadeUp .5s var(--ease) both;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); border: 0; padding: 0; width: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__cat { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
html[lang="km"] .card__cat { text-transform: none; letter-spacing: 0; font-size: .78rem; }
.card__title { font-size: .92rem; font-weight: 500; line-height: 1.4; margin: 0; }
html[lang="km"] .card__title { line-height: 1.7; font-weight: 500; }
.card__alt { font-size: .76rem; color: var(--muted); line-height: 1.45; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__price { font-weight: 500; font-size: .98rem; font-family: var(--font); }
.card__price small { font-weight: 400; color: var(--muted); font-size: .72rem; margin-left: 4px; }
.card__order {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  transition: transform .25s var(--ease), background-color .25s;
}
.card__order:hover { transform: scale(1.08); }
.card__order svg { width: 16px; height: 16px; }
.card__title-btn { all: unset; cursor: pointer; }
.card__title-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
  .card__body { padding: 11px 11px 13px; }
  .card__title { font-size: .84rem; }
  .card__alt { display: none; }
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* facebook strip */
.fbstrip {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 3.5vw, 40px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.brand--alt .fbstrip { background: var(--bg); }
.fbstrip h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 300; margin-bottom: .6em; }
.fbstrip p { color: var(--muted); }
.fbstrip__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.fbframe {
  width: 100%; min-height: 420px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center;
}
.fbframe iframe { border: 0; width: 100%; height: 520px; display: block; background: #fff; }
/* Klavuu: our header in Facebook's page-card style + the live post stream */
.fbcard {
  position: relative; height: 520px; max-width: 100%; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; color: #050505; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Kantumruy Pro", sans-serif;
}
.fbcard__cover { display: block; height: 96px; flex: none; position: relative; overflow: hidden; background: #e4e6eb; }
.fbcard__panel { position: relative; flex: none; margin-top: -18px; background: #fff; border-radius: 16px 16px 0 0; }
.fbcard__cat { display: flex; align-items: center; gap: 6px; margin: 0 14px 10px; font-size: .8rem; font-weight: 600; color: #050505; }
.fbcard__cat svg { width: 14px; height: 14px; stroke: currentColor; }
.fbstrip .fbcard p { color: #050505; }
.fbcard__cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.fbcard__fb { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; background: #0866ff; color: #fff; display: grid; place-items: center; }
.fbcard__fb svg { width: 16px; height: 16px; }
.fbcard__head { display: flex; align-items: center; gap: 10px; padding: 0 14px; position: relative; }
.fbcard__avatar { width: 76px; height: 76px; margin-top: -22px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; background: #fff; flex: none; }
.fbcard__name { font-weight: 700; font-size: 1.15rem; line-height: 1.25; color: #050505; }
.fbcard__name:hover { text-decoration: underline; }
.fbcard__about { margin: 8px 14px 10px; font-size: .84rem; line-height: 1.5; color: #050505; flex: none; }
.fbcard__follow {
  margin: 0 14px 12px; flex: none; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; border-radius: 6px; background: #0866ff; color: #fff; font-weight: 600; font-size: .9rem;
}
.fbcard__follow:hover { background: #0759e0; }
.fbcard__follow svg { width: 14px; height: 14px; }
.fbcard__stream { flex: 1; min-height: 0; overflow: hidden; border-top: 1px solid #e4e6eb; position: relative; }
/* hide the embed's own (broken) header and its scrollbar */
.fbcard__stream iframe { position: absolute; top: -74px; left: 0; border: 0; height: calc(100% + 74px) !important; max-width: none; background: #fff; }
.fbframe__ph { padding: 24px; text-align: center; color: var(--muted); font-size: .85rem; }
.fbframe__ph svg { width: 32px; height: 32px; margin: 0 auto 10px; display: block; }
@media (max-width: 860px) { .fbstrip { grid-template-columns: 1fr; } }

/* ----------------------------- promise ---------------------------- */
.promise { padding: clamp(72px, 10vw, 140px) 0; background: var(--espresso); color: var(--blush); }
.promise .eyebrow, .promise .section-lead, .promise .pillar p { color: #CDB8A4; }
/* heading on one line, intro on two (from tablet width up) */
.promise .section-head { max-width: 1080px; }
@media (min-width: 720px) {
  .promise .section-head h2 { white-space: nowrap; font-size: clamp(1.5rem, 3.3vw, 2.5rem); }
  .promise .section-lead { max-width: 920px; margin-left: auto; margin-right: auto; font-size: clamp(.9rem, 1.35vw, 1.02rem); }
}
.promise .logo-mark { filter: brightness(0) invert(1); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(244, 225, 210, .14); border: 1px solid rgba(244, 225, 210, .14); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--espresso); padding: clamp(24px, 3vw, 40px); }
.pillar__n { display: block; font-family: var(--font); font-size: .75rem; letter-spacing: .2em; color: var(--taupe); margin-bottom: 1.6em; }
.pillar h3 { font-size: 1.2rem; font-weight: 400; margin-bottom: .7em; color: var(--blush); }
.pillar p { font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* ------------------------------ story ----------------------------- */
.story { padding: clamp(72px, 10vw, 140px) 0; }
.story__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story__text h2 { margin-bottom: .8em; }
.story__text > p { color: var(--muted); }
.story__portrait {
  margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 30% 20%, var(--bg-alt), var(--surface-2));
  display: grid; place-items: center; padding: 10%;
  border: 1px solid var(--line);
}
.story__portrait img { width: 100%; height: auto; }
@media (max-width: 860px) { .story__grid { grid-template-columns: 1fr; } .story__portrait { aspect-ratio: 16 / 10; order: -1; padding: 6%; } .story__portrait img { width: 70%; } }

.io { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2em 0; }
.io__item { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.io__label { display: block; font-size: 1.15rem; font-style: italic; font-weight: 300; color: var(--accent); margin-bottom: .3em; }
.io__item p { margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 420px) { .io { grid-template-columns: 1fr; } }

.social { margin-bottom: 2em; }
.social__row { display: flex; gap: 10px; }
.social__row a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .25s, color .25s; }
.social__row a:hover { background: var(--text); color: var(--bg); }
.social__row svg { width: 18px; height: 18px; }

/* interviews, talks & articles */
.press { margin-top: clamp(64px, 9vw, 112px); }
.press__lead { color: var(--muted); margin: .4em 0 0; font-size: .95rem; }
.press__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(12px, 2vw, 20px); }
.presscard {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 18px 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.presscard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.presscard--video { grid-row: span 2; }
.presscard__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; margin: -6px -6px 6px; background: var(--surface-2); }
.presscard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.presscard__meta { font-size: .72rem; color: var(--muted); letter-spacing: .04em; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding-right: 22px; }
.presscard__type { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--accent); }
html[lang="km"] .presscard__type { letter-spacing: 0; font-size: .74rem; }
.presscard strong { font-weight: 500; font-size: .95rem; line-height: 1.55; }
.presscard__go { position: absolute; right: 16px; top: 16px; color: var(--muted); transition: transform .3s var(--ease); }
.presscard--video .presscard__go { top: auto; bottom: 16px; }
.presscard:hover .presscard__go { transform: translateX(3px); color: var(--text); }
@media (max-width: 560px) { .presscard--video { grid-row: auto; } }

.latest { margin-top: clamp(64px, 9vw, 112px); }
.latest__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.latest__head h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 300; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 860px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .videos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .videos::-webkit-scrollbar { display: none; }
  .video { scroll-snap-align: start; }
}
.video { display: block; }
.video__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); margin-bottom: 12px; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.video:hover .video__thumb img { transform: scale(1.05); }
.video__play { position: absolute; inset: auto auto 12px 12px; width: 40px; height: 40px; border-radius: 50%; background: rgba(23, 16, 10, .72); color: #fff; display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.video__play svg { width: 14px; height: 14px; fill: currentColor; stroke: none; margin-left: 2px; }
.video__title { font-size: .92rem; line-height: 1.6; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video__date { font-size: .74rem; color: var(--muted); letter-spacing: .06em; }

/* ------------------------------- buy ------------------------------ */
.buy { padding: clamp(72px, 10vw, 140px) 0; background: color-mix(in srgb, var(--bg-alt) 85%, transparent); }
:root[data-theme="dark"] .buy { background: color-mix(in srgb, var(--surface) 88%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .buy { background: color-mix(in srgb, var(--surface) 88%, transparent); } }
/* 2 × 2 so the Goody branch names fit on one line */
.buy__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 960px; margin: 0 auto; }
@media (max-width: 640px) { .buy__grid { grid-template-columns: 1fr; } }
.branches { margin: 0 0 1.4em; display: grid; gap: 6px; }
.branches a { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.branches a:hover { color: var(--accent); }
.branches svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.buycard { position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); background: var(--bg); border-radius: var(--radius); border: 1px solid var(--line); }
.buycard__n { position: absolute; top: 24px; right: 26px; font-size: .75rem; letter-spacing: .2em; color: var(--muted); font-family: var(--font); }
.buycard__icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 1.2em; }
.buycard h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: .6em; }
.buycard p { color: var(--muted); font-size: .94rem; }
.buycard__big { font-size: 1.25rem !important; color: var(--text) !important; font-weight: 500; margin: .2em 0 1.2em !important; }
.buycard__big[lang="km"], .buycard__term { font-family: var(--font-km); }
.buycard .btn { margin-top: auto; }
.buy__menu { text-align: center; margin-top: 40px; }

/* ------------------------------ footer ---------------------------- */
.footer { background: var(--espresso); color: #CDB8A4; padding: clamp(56px, 7vw, 88px) 0 28px; font-size: .9rem; }
.footer .small-title { color: var(--taupe); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { width: 180px; filter: brightness(0) invert(1); opacity: .9; margin: 0 0 18px; }
.footer ul li { margin-bottom: .55em; }
.footer__sub > span { display: block; color: var(--blush); margin: .2em 0 .35em; }
.footer__sub ul { padding-left: 12px; border-left: 1px solid rgba(244, 225, 210, .18); }
.footer__sub ul li { margin-bottom: .35em; font-size: .86rem; white-space: nowrap; }
.footer a:hover { color: var(--blush); }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(244, 225, 210, .12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: #A9927E; }
.footer__base p { margin: 0; max-width: 640px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand, .footer__buy { grid-column: 1 / -1; } }

/* -------------------------- floating button ----------------------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: none; place-items: center; box-shadow: 0 12px 28px -10px rgba(43, 28, 16, .6);
  transform: translateY(90px); transition: transform .4s var(--ease);
}
.fab.is-visible { transform: none; }
.fab svg { width: 24px; height: 24px; }
@media (max-width: 960px) { .fab { display: grid; } }

/* ------------------------------ modal ----------------------------- */
.modal {
  width: min(960px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  overflow: auto;
}
.modal::backdrop { background: rgba(23, 16, 10, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: sticky; top: 12px; float: right; margin: 12px 12px -52px 0; z-index: 3; background: var(--surface); }
.modal__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.modal__media { background: var(--surface-2); padding: 0 0 12px; position: sticky; top: 0; }
.modal__main { margin: 0; position: relative; background: #fff; }
.modal__main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.modal__badge {
  position: absolute; left: 12px; bottom: 12px; font-size: .7rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(23, 16, 10, .72); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal__thumbs { display: flex; gap: 8px; padding: 12px 12px 0; overflow-x: auto; scrollbar-width: thin; }
.modal__thumb { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; position: relative; opacity: .75; transition: opacity .2s, border-color .2s; }
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumb:hover { opacity: 1; }
.modal__thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.modal__thumb.is-official::after { content: "KR"; position: absolute; right: 3px; bottom: 3px; font-size: .55rem; font-weight: 600; padding: 1px 4px; border-radius: 4px; background: rgba(23, 16, 10, .7); color: #fff; font-family: var(--font); }
.modal__info { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 10px; }
.modal__spec { margin: 4px 0 6px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.modal__spec > div { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.modal__spec dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
html[lang="km"] .modal__spec dt { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.modal__spec dd { margin: 0; font-size: .9rem; }
@media (max-width: 420px) { .modal__spec > div { grid-template-columns: 1fr; gap: 2px; } }
.modal__name { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.modal__name-label { grid-column: 1 / -1; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[lang="km"] .modal__name-label { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.modal__name-text { margin: 0; font-size: .86rem; line-height: 1.6; user-select: all; }
@media (max-width: 720px) { .modal__brand { width: 130px; height: auto; margin-bottom: 6px; }
.modal__cat { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
html[lang="km"] .modal__cat { text-transform: none; letter-spacing: 0; font-size: .85rem; }
.modal__info h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 400; line-height: 1.35; }
.modal__alt { color: var(--muted); font-size: .9rem; margin: 0; }
.modal__price { font-size: 1.4rem; font-weight: 500; margin: 4px 0; font-family: var(--font); }
.modal__size { font-size: .85rem; color: var(--muted); font-weight: 400; }
.modal__desc { color: var(--muted); }
.modal__hint { font-size: .8rem; color: var(--muted); margin: 0 0 6px; }
@media (max-width: 720px) {
  .modal { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; }
  .modal[open] { animation: sheetIn .4s var(--ease); }
  .modal__body { grid-template-columns: minmax(0, 1fr); }
  .modal__media { position: static; }
  .modal__main img { max-height: 46dvh; }
}
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------ toast ----------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: .85rem;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ----------------------------- reveal ----------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.intro { animation: fadeUp 1s var(--ease) both; }
.intro--late { animation-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
