:root {
  --ink: #050403;
  --cream: #F4EBDD;
  --muted: #B9AC98;
  --gold: #E3A82B;          /* signature turmeric gold */
  --curry: #8A4B1F;
  --line: rgba(244, 235, 221, 0.16);
  --display: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mm: "Noto Sans Myanmar", "Myanmar Text", "Padauk", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--cream);
  font-family: var(--sans);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 6px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 90; background: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 18px;
  transition: opacity .8s ease, visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__logo { width: 88px; opacity: .9; }
.loader__bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.loader__text { margin: 0; font-size: 13px; letter-spacing: .08em; color: var(--muted); }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px var(--pad);
  background: linear-gradient(to bottom, rgba(5,4,3,.75), rgba(5,4,3,0));
}
.topbar__brand img { width: clamp(72px, 7vw, 104px); height: auto; }
.chapters { display: flex; gap: clamp(12px, 2.4vw, 32px); }
.chapters a {
  text-decoration: none; font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.chapters a:hover, .chapters a.is-active { color: var(--cream); border-color: var(--gold); }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(244,235,221,.06); }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* Film canvas */
.film {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh;
  z-index: 0; display: block; background: var(--ink);
  transition: opacity .6s ease;
}
.film-vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(5,4,3,.55) 100%);
}

/* Scenes */
main { position: relative; z-index: 2; }
.scene { position: relative; height: var(--h, 160vh); }
.panel {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--pad) 72px;
  opacity: 0; transform: translateY(24px);
  will-change: opacity, transform;
}
.panel > * { max-width: 34rem; }

.panel--center { align-items: center; text-align: center; }
.panel--center > * { max-width: 44rem; }
.panel--right { align-items: flex-end; }
.panel--right > * { width: min(30rem, var(--side-w, 30vw)); }
.panel--left { align-items: flex-start; }
.panel--left > * { width: min(30rem, var(--side-w, 30vw)); }
.panel--bottom-left { justify-content: flex-end; align-items: flex-start; }
.panel--bottom-right { justify-content: flex-end; align-items: flex-end; text-align: right; }
.panel--story { justify-content: flex-start; padding-top: 18vh; }
.panel--story-right { align-items: flex-end; text-align: right; }
.panel--story-left { align-items: flex-start; }

.eyebrow {
  margin: 0 0 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.08; margin: 0 0 18px; }
.body { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* Hero */
.hero__logo { width: clamp(96px, 11vw, 150px); margin-bottom: 28px; }
.hero__slogan {
  font-family: var(--display); font-weight: 400; margin: 0;
  font-size: clamp(38px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -.01em;
}
.hero__slogan em { font-style: italic; color: var(--gold); }
.hero__sub { margin: 22px 0 0; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.hero__cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  margin: 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 12px; white-space: nowrap;
}
.cue-line { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(5,4,3,.45); backdrop-filter: blur(6px);
}

/* Product */
.product { --accent: var(--gold); }
.scene--product .panel > .product, .product { }
.product__name {
  font-family: var(--display); font-weight: 400; margin: 0;
  font-size: clamp(30px, 3.6vw, 60px); line-height: 1.02;
}
.product__mm { font-family: var(--mm); margin: 10px 0 18px; font-size: 20px; color: var(--accent); }
.product__desc { margin: 0 0 24px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.tag {
  display: inline-block; margin-left: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 2px 8px; border: 1px dashed var(--line); border-radius: 4px; color: var(--muted); vertical-align: middle;
}
.facts { display: flex; gap: 0; margin: 0 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { flex: 1; padding: 14px 0; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.facts dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 18px; font-weight: 500; }
.facts div:first-child dd { color: var(--accent); }
.continue {
  align-self: flex-start; text-decoration: none; font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--accent); padding-bottom: 4px;
}
.continue:hover { color: var(--accent); }

/* Story copy */
.story__mm {
  font-family: var(--mm); font-weight: 700; margin: 0;
  font-size: clamp(28px, 3.6vw, 54px); line-height: 1.5;
  text-shadow: 0 2px 30px rgba(0,0,0,.8);
}
.story__mm--big { font-size: clamp(34px, 4.8vw, 72px); color: var(--cream); }
.story__en { margin: 12px 0 0; font-family: var(--display); font-style: italic; font-size: clamp(17px, 1.6vw, 22px); color: var(--gold); }

/* Contact */
.contact {
  position: relative; min-height: 100vh; background: var(--ink); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad) 0;
}
.contact__glow {
  position: absolute; left: 50%; top: 30%; width: 900px; height: 600px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(227,168,43,.16), transparent 65%); pointer-events: none;
}
.contact__inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.contact__logo { width: 110px; margin: 0 auto 28px; }
.contact__title { font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4.6vw, 62px); line-height: 1.06; margin: 0 0 18px; }
.contact__title em { color: var(--gold); }
.contact__lead { color: var(--muted); font-size: 18px; margin: 0 0 36px; }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.btn { text-decoration: none; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .2s, background .2s, color .2s; }
button.btn { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { transform: translateY(-2px); background: #F0B93A; }
.btn--ghost, button.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.channels { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); text-align: left; }
.channels li { background: var(--ink); padding: 18px 20px; }
.channels__label { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.channels a { text-decoration: none; }
.channels a:hover { color: var(--gold); }
.contact__how { color: var(--muted); font-size: 15px; }
.footer {
  position: relative; display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); margin-top: 72px; padding: 22px 0 28px; font-size: 13px; color: var(--muted);
}
.footer p { margin: 0; }
.footer a { text-decoration: none; }

/* Mobile */
@media (max-width: 760px), (orientation: portrait) {
  .chapters a[data-chapter="story"] { display: none; }
  .chapters { gap: 14px; }
  .chapters a { font-size: 11px; }
  .panel, .panel--right, .panel--left, .panel--story, .panel--bottom-right {
    justify-content: flex-end; align-items: flex-start; text-align: left; padding-top: 0; padding-bottom: 48px;
  }
  .panel--center { justify-content: center; align-items: center; text-align: center; }
  .panel--right > *, .panel--left > * { width: 100%; }
  .panel::before {
    content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1;
    background: linear-gradient(to top, rgba(5,4,3,.95) 40%, rgba(5,4,3,0));
  }
  .panel--center::before { display: none; }
  .channels { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel { transform: none !important; transition: opacity .5s ease; }
  .cue-line { animation: none; }
}

/* Dialogs & forms */
.dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 0; border: 1px solid var(--line); border-radius: 20px;
  background: #0d0b09; color: var(--cream);
  box-shadow: 0 30px 120px rgba(0,0,0,.8);
}
.dialog::backdrop { background: rgba(5,4,3,.78); backdrop-filter: blur(6px); }
.form { padding: clamp(22px, 4vw, 36px); }
.dialog__title { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 6px; }
.dialog__sub { margin: 0 0 24px; color: var(--muted); font-size: 15px; }
.field { display: block; margin-bottom: 16px; }
.field span, .qty legend { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.field input, .field textarea, .qty__row input {
  width: 100%; font: inherit; font-size: 16px; color: var(--cream);
  background: rgba(244,235,221,.05); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .qty__row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,168,43,.2); }
.qty { border: 0; padding: 0; margin: 0 0 8px; }
.qty__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.qty__row span { font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--cream); margin: 0; }
.qty__row input { width: 110px; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { min-height: 22px; margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.form__status[data-kind="error"] { color: #ff8f7a; }
.form__status[data-kind="ok"] { color: #8fd694; }
.form__actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 14px; }
.form__actions .btn { padding: 12px 26px; }
.form__actions .btn[disabled] { opacity: .6; cursor: wait; }
