/* SACHI — paper, ink, blush. Tokens from the brand manual. */

:root {
  --ink: #1c1915;
  --ink-soft: #3a342c;
  --stone: #6f675c;
  --line: #e4d9c8;
  --ivory: #fffcf7;
  --paper: #f6f1e8;
  --sand: #e7dccb;
  --board: #c9b79a;
  --pink-500: #fbe8ef;
  --pink-700: #e7a8bc;
  --gold-300: #dab87d;
  --header: 76px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: Outfit, "Segoe UI", sans-serif;
  --page: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { font-family: Cairo, var(--sans); }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pink-700); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: Cairo, var(--serif); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 12px; }

.sx-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
}
.sx-lede { font-size: 18px; max-width: 38rem; color: var(--ink-soft); }
.sx-wrap { width: min(var(--page), calc(100% - 40px)); margin-inline: auto; }

.sx-btn, .sx-btn-ghost, .sx-btn-pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sx-btn-ghost { background: transparent; color: var(--ink); }
.sx-btn-pink { background: var(--pink-500); color: var(--ink); border-color: var(--pink-500); }

.sx-top { position: sticky; top: 0; z-index: 20; }
.sx-announce { overflow: hidden; background: var(--ink); color: var(--pink-500); height: 34px; display: flex; align-items: center; }
.sx-announce .sx-track span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding-inline-end: 28px; }
.sx-header {
  height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.sx-header .sx-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; width: min(1240px, calc(100% - 40px)); }
.sx-logo { justify-self: center; }
.sx-logo img { height: 46px; width: auto; }
.sx-nav { display: flex; align-items: center; gap: 22px; }
.sx-nav a { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.sx-nav a.is-on, .sx-nav a:hover { color: var(--ink); }
.sx-shop { position: relative; }
.sx-shop::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 18px; }
.sx-drop {
  position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 210px;
  background: var(--ivory); border: 1px solid var(--line); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
  z-index: 5; box-shadow: 0 18px 40px rgba(28,25,21,.08);
}
.sx-shop:hover .sx-drop, .sx-shop:focus-within .sx-drop { opacity: 1; visibility: visible; transform: none; }
.sx-drop a, .sx-drawer [data-cat] { display: block; padding: 8px 16px; letter-spacing: 0.08em; text-transform: none; font-size: 14px; }
.sx-drop a:hover { background: var(--pink-500); }
.sx-tools { justify-self: end; }
.sx-tools { display: flex; align-items: center; gap: 8px; }
.sx-icon {
  width: 40px; height: 40px; display: grid; place-items: center; position: relative; color: var(--ink);
}
.sx-count {
  position: absolute; top: 4px; inset-inline-end: 2px;
  min-width: 16px; height: 16px; border-radius: 99px;
  background: var(--pink-700); color: var(--ink); font-size: 10px;
  display: grid; place-items: center;
}
.sx-count[hidden] { display: none; }
.sx-lang { font-size: 12px; letter-spacing: 0.12em; min-width: 40px; }
.sx-menu { display: none; width: 40px; height: 40px; position: relative; }
.sx-menu span, .sx-menu span:before, .sx-menu span:after {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); content: "";
}
.sx-menu span { top: 19px; }
.sx-menu span:before { top: -6px; }
.sx-menu span:after { top: 6px; }

.sx-drawer {
  display: none; position: fixed; inset: var(--header) 0 0 0; background: var(--ivory); z-index: 19; padding: 28px;
}
.sx-drawer.is-open { display: grid; align-content: start; gap: 18px; }
.sx-drawer > a { font-family: var(--serif); font-size: 36px; color: var(--ink); }
.sx-drawer [data-cat] { font-size: 16px; letter-spacing: 0.06em; }
html[dir="rtl"] .sx-drawer a { font-family: Cairo, var(--serif); }

.sx-stage { position: relative; min-height: calc(100vh - 110px); background: var(--sand); overflow: hidden; }
.sx-stage img[data-slide] {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity .8s ease, transform 7s ease;
}
.sx-stage img.is-on { opacity: 1; transform: scale(1); }
.sx-stage-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(28,25,21,.28), rgba(28,25,21,.05) 55%);
  pointer-events: none;
}
html[dir="rtl"] .sx-stage-shade { background: linear-gradient(270deg, rgba(28,25,21,.28), rgba(28,25,21,.05) 55%); }
.sx-stage-copy {
  position: absolute; inset-inline-start: 7vw; top: 50%; transform: translateY(-50%);
  color: var(--ivory); max-width: 520px; z-index: 1;
}
.sx-stage-copy h1, .sx-stage-copy .sx-eyebrow, .sx-stage-copy .sx-lede { color: var(--ivory); }
.sx-stage-copy h1 { font-size: clamp(48px, 5.4vw, 78px); margin-bottom: 14px; text-shadow: 0 10px 30px rgba(28,25,21,.25); }
.sx-stage-copy .is-in, .sx-stage-copy.is-in { animation: sx-rise .7s ease both; }
.sx-stage-ui {
  position: absolute; z-index: 1; inset-inline-end: 28px; bottom: 22px;
  display: flex; align-items: center; gap: 10px; color: var(--ivory);
}
.sx-stage-ui p { margin: 0; direction: ltr; unicode-bidi: isolate; letter-spacing: 0.14em; font-size: 12px; }
.sx-circle {
  width: 42px; height: 42px; border: 1px solid rgba(255,252,247,.7); border-radius: 50%;
  display: grid; place-items: center; color: var(--ivory); background: transparent;
  transition: background .3s ease, transform .3s ease;
}
.sx-circle:hover { background: var(--ivory); color: var(--ink); transform: translateY(-2px); }
.sx-dots { display: flex; gap: 6px; }
.sx-dots i { width: 18px; height: 2px; background: rgba(255,252,247,.45); display: block; transition: width .35s ease, background .35s; }
.sx-dots i.is-on { width: 32px; background: var(--ivory); }
@keyframes sx-rise {
  from { opacity: 0; transform: translateY(calc(-50% + 22px)); }
  to { opacity: 1; transform: translateY(-50%); }
}

.sx-circles { display: flex; justify-content: space-between; gap: 18px; text-align: center; }
.sx-circles a { color: var(--ink); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.sx-orb { width: 118px; height: 118px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin: 0 auto 12px; background: var(--sand); }
.sx-orb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sx-circles a:hover img { transform: scale(1.08); }
.sx-orb-icon { background: var(--pink-500); }
.sx-orb-icon img { width: 72%; height: 72%; object-fit: contain; }

.sx-features { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.sx-feature { position: relative; min-height: 460px; overflow: hidden; display: block; color: var(--ivory); }
.sx-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s ease; }
.sx-feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(28,25,21,.62), rgba(28,25,21,.05) 58%);
}
.sx-feature:hover img { transform: scale(1.06); }
.sx-feature div { position: absolute; inset-inline-start: 28px; bottom: 28px; z-index: 1; }
.sx-feature h2, .sx-feature .sx-eyebrow { color: var(--ivory); }
.sx-feature h2 { font-size: clamp(32px, 3vw, 48px); max-width: 12ch; }
.sx-textlink { letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; color: var(--ink); border-bottom: 1px solid var(--pink-700); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
.sx-card { overflow: hidden; transition: transform .35s ease; }
.sx-card img, .sx-grid article img { transition: transform .6s ease; }
.sx-card:hover { transform: translateY(-6px); }
.sx-card:hover img, .sx-grid article:hover img { transform: scale(1.05); }
.sx-grid article { width: 100%; background: var(--ivory); overflow: hidden; }
.sx-grid article img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

.sx-marquee { overflow: hidden; background: var(--ink); color: var(--pink-500); padding: 14px 0; }
.sx-track { display: flex; width: max-content; animation: sx-marquee 28s linear infinite; }
.sx-track span { padding-inline-end: 32px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 12px; }
@keyframes sx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .sx-track { animation-direction: reverse; }

.sx-section { padding: 72px 0; }
.sx-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.sx-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sx-tabs button, .sx-chip {
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
  min-height: 36px; padding: 0 14px; font-size: 13px;
}
.sx-tabs button.is-on, .sx-chip.is-on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.sx-rail-wrap { overflow: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sx-rail-wrap::-webkit-scrollbar { display: none; }
.sx-rail { display: flex; gap: 16px; }
.sx-card { flex: 0 0 280px; scroll-snap-align: start; background: var(--ivory); }
.sx-card img, .sx-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.sx-card figcaption, .sx-grid figcaption { padding: 14px 14px 18px; }
.sx-card strong, .sx-grid strong { display: block; color: var(--ink); font-weight: 500; }
.sx-card small, .sx-grid small { color: var(--stone); }

.sx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.sx-grid article { background: var(--ivory); }

.sx-palette { display: grid; grid-template-columns: repeat(5, 1fr); }
.sx-swatch { min-height: 280px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.sx-swatch b { font-family: var(--serif); font-size: 64px; font-weight: 500; line-height: 1; }
.sx-swatch span { letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }

.sx-band {
  background: var(--ink); color: var(--ivory); display: grid; grid-template-columns: 1.3fr 0.7fr;
  gap: 32px; align-items: center; padding: 72px 6vw;
}
.sx-band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4vw, 60px); line-height: 1.05; color: var(--ivory); }
html[dir="rtl"] .sx-band blockquote { font-family: Cairo, var(--serif); font-weight: 600; }
.sx-band p { color: color-mix(in srgb, var(--ivory) 78%, var(--pink-500)); }
.sx-seal { width: 88px; height: 88px; border-radius: 50%; background: var(--ivory); display: grid; place-items: center; margin-bottom: 16px; }
.sx-seal img { width: 64px; height: 64px; }

.sx-footer { background: var(--ink); color: var(--ivory); padding: 64px 0 28px; }
.sx-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.sx-footer h2 { color: var(--ivory); font-size: 18px; margin-bottom: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; }
html[dir="rtl"] .sx-footer h2 { font-family: Cairo, var(--sans); }
.sx-footer a, .sx-footer p { color: color-mix(in srgb, var(--ivory) 78%, var(--pink-500)); display: block; margin: 0 0 8px; }
.sx-footer .sx-logo-light { height: 48px; width: auto; filter: invert(1); margin-bottom: 16px; }
.sx-word { width: min(920px, 86%); margin: 36px auto 0; filter: invert(1); }
.sx-base { width: min(var(--page), calc(100% - 40px)); margin: 28px auto 0; display: flex; justify-content: space-between; gap: 12px; color: var(--stone); font-size: 13px; border-top: 1px solid color-mix(in srgb, var(--ivory) 16%, transparent); padding-top: 16px; }

.sx-page-hero { padding: 64px 0 20px; }
.sx-page-hero h1 { font-size: clamp(48px, 7vw, 92px); }
.sx-cat { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 28px; padding: 28px 0 48px; border-top: 1px solid var(--line); }
.sx-note { color: var(--stone); }

.sx-product { display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: calc(100vh - var(--header)); }
.sx-product-photo { background: var(--sand); min-height: 560px; }
.sx-product-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 560px; }
.sx-product-info { background: var(--ivory); padding: 48px 6vw; display: flex; flex-direction: column; justify-content: center; }
.sx-crumbs { color: var(--stone); font-size: 13px; margin-bottom: 18px; }
.sx-crumbs a:hover { color: var(--ink); }
.sx-product-info h1 { font-size: clamp(40px, 4vw, 64px); margin-bottom: 12px; }
.sx-acc { border-top: 1px solid var(--line); margin-top: 22px; }
.sx-acc button { width: 100%; display: flex; justify-content: space-between; padding: 14px 0; color: var(--ink); text-align: start; }
.sx-acc .sx-panel { display: none; color: var(--stone); padding-bottom: 12px; }
.sx-acc .is-open + .sx-panel, .sx-acc button.is-open + .sx-panel { display: block; }
.sx-wish { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--ink); }

.sx-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.sx-facts article { background: var(--ivory); padding: 22px; }
.sx-facts strong { display: block; color: var(--ink); margin-bottom: 6px; }

.sx-story-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; }
.sx-form { display: grid; gap: 12px; max-width: 560px; }
.sx-form label { display: grid; gap: 6px; color: var(--ink); font-size: 13px; }
.sx-form input, .sx-form textarea {
  width: 100%; background: var(--ivory); border: 1px solid var(--line); padding: 14px 12px; border-radius: 0;
}
.sx-form textarea { min-height: 120px; resize: vertical; }
.sx-hp { position: absolute; left: -9999px; }
.sx-form .sx-ok { color: var(--ink); }
.sx-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sx-policy { background: var(--sand); padding: 22px; }

.sx-search {
  display: none; position: fixed; inset: 0; background: color-mix(in srgb, var(--paper) 94%, transparent); z-index: 40; padding: 10vh 8vw;
}
.sx-search.is-open { display: block; }
.sx-search input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: 40px; color: var(--ink); padding: 8px 0; }
html[dir="rtl"] .sx-search input { font-family: Cairo, var(--serif); }
.sx-search ul { list-style: none; padding: 18px 0; margin: 0; }
.sx-search li { padding: 8px 0; border-bottom: 1px solid var(--line); }

.sx-preloader {
  position: fixed; inset: 0; z-index: 50; background: var(--ivory); display: grid; place-items: center;
  animation: sx-pre 0.7s ease 0.45s forwards;
}
.sx-preloader img { width: 92px; }
@keyframes sx-pre { to { opacity: 0; visibility: hidden; } }

@media (max-width: 900px) {
  .sx-nav { display: none; }
  .sx-menu { display: block; }
  .sx-header .sx-wrap { display: flex; }
  .sx-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .sx-tools { margin-inline-start: auto; }
  .sx-features, .sx-product, .sx-cat, .sx-split, .sx-band, .sx-footer-grid, .sx-palette, .sx-facts, .sx-grid, .sx-story-head { grid-template-columns: 1fr; }
  .sx-palette { grid-template-columns: 1fr 1fr; }
  .sx-swatch { min-height: 180px; }
  .sx-stage { min-height: 78vh; }
  .sx-stage-copy { inset-inline-start: 22px; inset-inline-end: 22px; }
  .sx-circles { overflow: auto; justify-content: flex-start; }
  .sx-orb { width: 92px; height: 92px; }
  .sx-feature { min-height: 320px; }
  .sx-base { flex-direction: column; }
  .sx-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-track, .sx-stage-copy.is-in { animation: none; }
  .sx-preloader { display: none; }
  .sx-stage img[data-slide] { transition: opacity .2s linear; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
