@import url("../../magic-scroll/magic-scroll.css"); /* glass layers on every page */
/* Sugarhive website concept by C&P. Applies the Sugarhive social, digital, photo and video guideline.
   STAND-IN FONTS: Fira Sans for Highgate, IBM Plex Sans Arabic for Portada Arabic. Production swaps to the brand files. */
@font-face { font-family: "Fira"; font-weight: 300; font-style: normal; font-display: swap; src: url(../fonts/fira-sans-300.woff2) format("woff2"); }
@font-face { font-family: "Fira"; font-weight: 300; font-style: italic; font-display: swap; src: url(../fonts/fira-sans-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Fira"; font-weight: 400; font-display: swap; src: url(../fonts/fira-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Fira"; font-weight: 500; font-display: swap; src: url(../fonts/fira-sans-500.woff2) format("woff2"); }
@font-face { font-family: "Fira"; font-weight: 700; font-display: swap; src: url(../fonts/fira-sans-700.woff2) format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-400-arabic.woff2) format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-500-arabic.woff2) format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-600-arabic.woff2) format("woff2"); }
@font-face { font-family: "PlexAr"; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-700-arabic.woff2) format("woff2"); }

:root {
  /* the four brand colours, with their jobs */
  --cv: #84319B;   /* Cadmium Violet: the signature accent, about 4% */
  --rv: #3D1150;   /* Russian Violet: depth and type */
  --aw: #EDE3D3;   /* Antique White: the ground */
  --fawn: #DDA26E; /* the golden touch: prices and stamps only */
  --paper: #F5EFE6; --stone: #DCCDB6; --line: rgba(61, 17, 80, .14); --mute: rgba(61, 17, 80, .74);
  --en: "Fira", system-ui, sans-serif; --ar: "PlexAr", "Fira", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px); --max: 1360px; --r: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--aw); color: var(--rv); font: 400 16px/1.55 var(--en); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="ar"] body { font-family: var(--ar); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cv); outline-offset: 3px; border-radius: 4px; }

/* Bilingual: both languages live in the markup, the inactive one is hidden */
html[lang="en"] [lang="ar"]:not(html), html[lang="ar"] [lang="en"]:not(html) { display: none !important; }
[lang="ar"] { font-family: var(--ar); }
.num { font-family: var(--en); font-variant-numeric: lining-nums; }

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.micro { display: flex; gap: 2.2em; font: 500 11px/1.2 var(--en); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.micro [lang="ar"], html[lang="ar"] .micro { font: 500 13px/1.2 var(--ar); letter-spacing: 0; text-transform: none; }
.h1, .h2 { font-weight: 300; letter-spacing: -.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(42px, 6.4vw, 96px); }
.h2 { font-size: clamp(34px, 4.6vw, 68px); }
.h1 em, .h2 em { font-style: italic; font-weight: 300; }
.h1 .v, .h2 .v { color: var(--cv); }
html[lang="ar"] .h1, html[lang="ar"] .h2 { font-family: var(--ar); font-weight: 500; letter-spacing: 0; line-height: 1.25; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--mute); max-width: 42ch; margin: 0; }
.eyebrow { font: 500 12px/1 var(--en); letter-spacing: .22em; text-transform: uppercase; color: var(--cv); }
html[lang="ar"] .eyebrow { font: 600 14px/1 var(--ar); letter-spacing: 0; }

/* Buttons: Russian Violet solid, or a hairline ghost. Cadmium only on hover. */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--rv);
  background: var(--rv); color: var(--aw); text-decoration: none; font: 500 15px/1 var(--en); letter-spacing: .02em; transition: background .25s, border-color .25s, color .25s; }
html[lang="ar"] .btn { font: 600 16px/1 var(--ar); }
.btn:hover { background: var(--cv); border-color: var(--cv); }
.btn.ghost { background: transparent; color: var(--rv); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--rv); color: var(--rv); background: rgba(61,17,80,.04); }
.btn.light { background: var(--aw); color: var(--rv); border-color: var(--aw); }
.btn.light:hover { background: #fff; border-color: #fff; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
html[dir="rtl"] .btn .arr { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }

/* Fawn price stamp: the golden touch */
.price { display: inline-flex; align-items: baseline; gap: .3em; font: 500 15px/1 var(--en); color: var(--rv); white-space: nowrap; }
.price small { font: 500 10px/1 var(--en); letter-spacing: .16em; opacity: .7; }
html[lang="ar"] .price small { font: 500 12px/1 var(--ar); letter-spacing: 0; }
.stamp { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--fawn); color: var(--rv); text-align: center; line-height: 1; }
.stamp b { font: 600 22px/1 var(--en); display: block; }
.stamp small { font: 500 10px/1 var(--en); letter-spacing: .18em; display: block; margin-top: 3px; }
html[lang="ar"] .stamp small { font: 600 10px/1 var(--ar); letter-spacing: 0; }

/* AI tag on every generated image */
.ai { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; z-index: 2; padding: 4px 7px 3px; border-radius: 4px; background: rgba(237,227,211,.86);
  color: var(--rv); font: 500 11px/1.3 var(--en); letter-spacing: .02em; max-width: calc(100% - 20px); pointer-events: none; }
html[lang="ar"] .ai { font: 600 11px/1.4 var(--ar); letter-spacing: 0; }

/* ---------- Header ---------- */
/* The header is a floating glass bar: it refracts the hero frames, the photos and the violet sections as they pass under it */
.hdr { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 50; border-radius: 22px; color: var(--rv); transition: color .3s; }
.hdr .wrap { display: flex; align-items: center; gap: 22px; height: 62px; width: auto; max-width: none; margin: 0; padding-inline: 22px 10px; }
.brand { display: block; width: 132px; height: 36px; flex: none; background: var(--rv); -webkit-mask: url(../img/sh-en-violet.png) left center / contain no-repeat; mask: url(../img/sh-en-violet.png) left center / contain no-repeat; }
html[lang="ar"] .brand { -webkit-mask-image: url(../img/sh-ar-violet.png); mask-image: url(../img/sh-ar-violet.png); -webkit-mask-position: right center; mask-position: right center; width: 120px; }
.nav { display: flex; gap: 28px; margin-inline-start: 18px; }
.nav a { text-decoration: none; font-size: 15px; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--cv); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.chip-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 42px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(245,239,230,.35); font-size: 14px; }
.chip-btn:hover { border-color: var(--rv); }
.lang-btn [lang="ar"] { font-size: 15px; }
.cart-btn .count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rv); color: var(--aw); font: 600 12px/1 var(--en); }
.cart-btn .count[data-n="0"] { background: transparent; color: var(--rv); border: 1px solid var(--line); }
.cart-btn.bump .count { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); background: var(--cv); } }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .hdr { top: 8px; left: 8px; right: 8px; border-radius: 18px; }
  .hdr .wrap { height: 56px; gap: 10px; padding-inline: 16px 8px; }
  .brand { width: 112px; }
  .chip-btn { height: 40px; padding: 0 12px; }
  .chip-btn .lbl { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr.open .nav { display: flex; position: absolute; inset: 64px 0 auto; z-index: 3; flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 16px; border-radius: 18px; background: var(--aw); color: var(--rv); box-shadow: 0 24px 40px -20px rgba(61,17,80,.5); }
  .hdr.open .nav a { padding: 13px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .hdr.open .nav a:last-child { border-bottom: 0; }
}

/* ---------- Home: hero ---------- */
.hero { --ms-bg: var(--aw); }
.hero .ms-stage { background: var(--aw); }
.hero .ms-overlay { position: absolute; max-width: 470px; padding: 28px 30px 30px; border-radius: 24px; color: var(--rv); }
/* Antique White veil above the refraction layer: the filter chain greys a light tint, so the tint lives here */
.hero .ms-overlay.lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(245, 239, 230, .6); opacity: var(--ms-vis, 0); pointer-events: none; }
.ms-reduced.hero .ms-overlay.lg::after { opacity: 1; }
.hero .ov-1 { left: var(--gut); top: 50%; translate: 0 -50%; max-width: 440px; }
.hero .ov-2 { right: var(--gut); top: 50%; translate: 0 -50%; max-width: 400px; }
.hero .ov-3 { right: var(--gut); bottom: 12vh; max-width: 440px; }
/* overlays stay physical in RTL: the product sits left of centre in every frame */
.hero .ov-1 .h1 { margin: 16px 0 14px; font-size: clamp(40px, 4.6vw, 70px); }
.hero .ov-2 .h2 { font-size: clamp(28px, 3vw, 44px); margin: 14px 0 12px; }
.hero .ov-3 .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.hero .ov-2 .row { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.hero .ov-3 p { margin: 0; font-size: 15px; color: var(--mute); }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; display: grid; justify-items: center; gap: 8px; font: 500 10px/1 var(--en); letter-spacing: .22em; text-transform: uppercase; color: var(--mute);
  opacity: calc(1 - var(--ms-progress, 0) * 12); pointer-events: none; }
.scroll-cue i { display: block; width: 1px; height: 38px; background: linear-gradient(var(--rv), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 767px) {
  .hero .ms-overlay { left: 16px !important; right: 16px !important; translate: none !important; max-width: none; width: auto; padding: 20px 20px 22px; border-radius: 20px; }
  .hero .ov-1, .hero .ov-2 { top: auto; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .hero .ov-3 { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .chap .media .ai { inset-block-start: 10px; inset-block-end: auto; }
  .hero .ov-1 .h1 { font-size: 40px; margin: 10px 0 8px; }
  .hero .ov-1 .lead, .hero .ov-2 .lead { font-size: 15px; }
}

/* ---------- Sections ---------- */
.sec { position: relative; padding-block: clamp(72px, 10vw, 140px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head .h2 { margin-top: 14px; }
.sec-head .lead { margin-top: 14px; }

/* Today's menu strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; }
@media (max-width: 760px) { .strip { grid-auto-columns: 72%; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); } }

/* Product tile (shared by the strip and the menu grid) */
.tile { position: relative; display: block; text-decoration: none; color: inherit; border: 0; padding: 0; background: none; text-align: start; width: 100%; }
.tile .ph { display: block; container-type: inline-size; position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--paper); }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .ph img { transform: scale(1.035); }
/* No packshot yet: a designed type tile. Mark, the name in both languages, the price. */
.tile .ph .stand, .detail .ph .stand { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2.6cqw; text-align: center; padding: 10cqw;
  background: radial-gradient(110% 80% at 50% 38%, #F5EFE6, var(--aw) 72%); box-shadow: inset 0 0 0 1px rgba(61,17,80,.08); border-radius: inherit; }
.stand .mk { width: 24cqw; aspect-ratio: 942 / 204; margin-bottom: 3cqw; background: var(--cv); -webkit-mask: url(../img/sh-en-violet.png) center / contain no-repeat; mask: url(../img/sh-en-violet.png) center / contain no-repeat; }
.stand .n-en { font: 300 clamp(14px, 7.4cqw, 30px)/1.2 var(--en); letter-spacing: -.005em; color: var(--rv); }
.stand .n-ar { font: 400 clamp(13px, 6.4cqw, 27px)/1.45 var(--ar); color: rgba(61,17,80,.72); }
.stand .price { margin-top: 3cqw; padding: 1.4cqw 3.4cqw; border-radius: 99px; border: 1px solid rgba(61,17,80,.22); color: var(--rv); }
.tile .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 4px 0; }
.tile .nm { font-size: 16px; line-height: 1.3; }
.tile .sub { display: block; font-size: 13px; color: var(--mute); margin-top: 2px; }
.tile .add { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--aw); color: var(--rv); box-shadow: 0 6px 18px -8px rgba(61,17,80,.5); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .3s var(--ease), background .2s; }
.tile:hover .add, .tile:focus-within .add { opacity: 1; transform: none; }
.tile .add:hover { background: var(--rv); color: var(--aw); }
@media (hover: none) { .tile .add { opacity: 1; transform: none; } }

/* Gathering box: the evening register (Route B) */
.box-sec { background: var(--rv); color: var(--aw); overflow: hidden; padding-block: clamp(48px, 7vw, 96px); }
.box-sec .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.box-sec .shot { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgba(0,0,0,.6); }
.box-sec .shot img { width: 100%; height: 100%; object-fit: cover; }
.box-sec .shot .boxcut { position: absolute; left: 19%; bottom: 31%; width: 62%; height: auto; filter: drop-shadow(0 26px 22px rgba(10,0,16,.55)); }
.box-sec .shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(237,227,211,.12); pointer-events: none; }
.box-sec .eyebrow { color: var(--fawn); }
.box-sec .h2 { margin: 16px 0 18px; }
.box-sec .h2 em { color: var(--fawn); }
.box-sec .lead { color: rgba(237,227,211,.74); }
.box-sec .buy { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.box-sec .stamp { width: 96px; height: 96px; transform: rotate(-8deg); }
.box-sec .stamp b { font-size: 32px; }
.box-sec .incl { margin: 26px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(237,227,211,.16); }
.box-sec .incl li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(237,227,211,.16); font-size: 15px; }
.box-sec .incl li span:last-child { color: rgba(237,227,211,.6); }
.box-sec .ai { background: rgba(61,17,80,.7); color: var(--aw); }
@media (max-width: 860px) { .box-sec .wrap { grid-template-columns: 1fr; } .box-sec .shot { aspect-ratio: 1; } }

/* The store */
.store .grid { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: clamp(14px, 2vw, 24px); align-items: end; }
.store figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; }
.store figure img { width: 100%; height: 100%; object-fit: cover; }
.store .f1 { aspect-ratio: 4 / 5; }
.store .f2 { aspect-ratio: 4 / 5; transform: translateY(-48px); }
.store figcaption { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; padding: 4px 8px; border-radius: 4px; background: rgba(237,227,211,.86); font: 500 9px/1 var(--en); letter-spacing: .14em; text-transform: uppercase; }
html[lang="ar"] .store figcaption { font: 600 10px/1 var(--ar); letter-spacing: 0; }
.store .txt { align-self: center; padding-inline-start: clamp(0px, 2vw, 24px); }
.store .facts { margin: 28px 0 0; padding: 0; list-style: none; }
.store .facts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.store .facts li b { font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
html[lang="ar"] .store .facts li b { font: 600 13px/1.3 var(--ar); letter-spacing: 0; }
@media (max-width: 860px) { .store .grid { grid-template-columns: 1fr 1fr; } .store .txt { grid-column: 1 / -1; grid-row: 1; padding: 0; } .store .f2 { transform: translateY(32px); } }

/* Reel slot */
.reel .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; padding: 10px; background: var(--rv); box-shadow: 0 40px 80px -40px rgba(61,17,80,.7); }
.phone .scr { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: var(--paper); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.phone .wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px; }
.phone .wait .h2 { font-size: 30px; }
.reel .rules { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: r; }
.reel .rules li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.reel .rules li::before { content: "0" counter(r); font: 500 12px/1.6 var(--en); letter-spacing: .1em; color: var(--cv); }
@media (max-width: 760px) { .reel .wrap { grid-template-columns: 1fr; } .phone { width: min(78%, 320px); margin-inline: auto; } }

/* ---------- Purple wave seams between sections (two layers + Fawn hairline) ---------- */
.seam { position: relative; height: clamp(40px, 5vw, 76px); margin-block: -1px; overflow: hidden; pointer-events: none; }
.seam svg { position: absolute; left: 0; width: 200%; height: 100%; }
.seam .s-back { fill: var(--cv); transform: translateX(calc(-25% - var(--sx, 0) * 25%)); }
.seam .s-front { fill: var(--rv); transform: translateX(calc(-25% + var(--sx, 0) * 25%)); }
.seam .s-hair { fill: none; stroke: var(--fawn); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform: translateX(calc(-25% + var(--sx, 0) * 25%)); }
.seam.down { background: var(--aw); } /* light above, violet below */
.seam.up { background: var(--aw); transform: scaleY(-1); } /* violet above, light below */

/* ---------- Page and language wave transition (~0.8s) ---------- */
.wave { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.wave.on { visibility: visible; pointer-events: auto; }
.wave .wl { position: absolute; left: -5%; width: 110%; height: 140vh; top: 0; transform: translateY(110vh); will-change: transform; }
.wave .wl svg { position: absolute; left: 0; width: 100%; height: 20vh; }
.wave .wl svg.t { top: -19.9vh; } .wave .wl svg.b { bottom: -19.9vh; transform: scaleY(-1); }
.wave .wl .body { position: absolute; inset: 0; }
.wave .w1 .body { background: var(--cv); } .wave .w1 svg path { fill: var(--cv); }
.wave .w2 .body { background: var(--rv); } .wave .w2 svg path { fill: var(--rv); }
.wave .w2 svg .hair { fill: none; stroke: var(--fawn); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.wave .mark { position: absolute; left: 50%; top: 50%; width: 150px; height: 80px; translate: -50% -50%; background: var(--aw); opacity: 0;
  -webkit-mask: url(../img/sh-logo-violet.png) center / contain no-repeat; mask: url(../img/sh-logo-violet.png) center / contain no-repeat; transition: opacity .2s; }
.wave.cover .w1 { animation: wcover .42s cubic-bezier(.7,0,.3,1) both; }
.wave.cover .w2 { animation: wcover .42s .06s cubic-bezier(.7,0,.3,1) both; }
.wave.cover .mark { opacity: 1; transition-delay: .3s; }
.wave.held .wl { transform: translateY(-20vh); }
.wave.held .mark { opacity: 1; }
.wave.reveal .w2 { animation: wreveal .46s cubic-bezier(.7,0,.3,1) both; }
.wave.reveal .w1 { animation: wreveal .46s .06s cubic-bezier(.7,0,.3,1) both; }
@keyframes wcover { from { transform: translateY(110vh); } to { transform: translateY(-20vh); } }
@keyframes wreveal { from { transform: translateY(-20vh); } to { transform: translateY(-165vh); } }

/* ---------- Footer ---------- */
.foot { background: var(--paper); padding-block: 64px 36px; font-size: 14px; }
.foot .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.foot .logo { width: 180px; height: 95px; background: var(--rv); -webkit-mask: url(../img/sh-logo-violet.png) left center / contain no-repeat; mask: url(../img/sh-logo-violet.png) left center / contain no-repeat; }
html[dir="rtl"] .foot .logo { -webkit-mask-position: right center; mask-position: right center; }
.foot h4 { margin: 0 0 12px; font: 500 11px/1 var(--en); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
html[lang="ar"] .foot h4 { font: 600 13px/1 var(--ar); letter-spacing: 0; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--cv); }
.foot .note { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; color: var(--mute); font-size: 12.5px; }
.foot .cp { display: inline-flex; align-items: center; gap: 10px; }
.foot .cp img { height: 18px; width: auto; opacity: .8; }
@media (max-width: 760px) { .foot .top { grid-template-columns: 1fr 1fr; } .foot .top > :first-child { grid-column: 1 / -1; } }

/* ---------- Menu page ---------- */
.page-top { padding-top: clamp(120px, 14vw, 180px); padding-bottom: 28px; }
.page-top .h1 { margin-top: 18px; }
/* Filter bar: a glass pill that floats under the header over the packshots */
.filters { position: sticky; top: 84px; z-index: 20; padding-block: 10px; }
.filters .bar { position: relative; border-radius: 999px; }
.filters .chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px; scrollbar-width: none; border-radius: inherit; }
.filters .chips::-webkit-scrollbar { display: none; }
.filters .wrap:not(:has(.bar)) { display: flex; gap: 8px; overflow-x: auto; padding-block: 14px; scrollbar-width: none; }
.fchip { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.fchip:hover { border-color: var(--rv); }
.fchip[aria-pressed="true"] { background: var(--rv); border-color: var(--rv); color: var(--aw); }
.fchip .n { opacity: .55; margin-inline-start: 6px; font: 400 12px/1 var(--en); }
@media (max-width: 860px) { .filters { top: 68px; } }
.grid-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(12px, 1.6vw, 22px); padding-block: 36px 96px; }
@media (max-width: 1100px) { .grid-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile .nm { font-size: 14px; } .tile .meta { flex-direction: column; gap: 6px; padding-top: 10px; } }
.fam-head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--line); }
.fam-head:first-child { padding-top: 0; border-top: 0; }
.fam-head h2 { margin: 0; font: 300 clamp(26px, 2.6vw, 38px)/1.1 var(--en); letter-spacing: -.01em; }
html[lang="ar"] .fam-head h2 { font: 500 clamp(24px, 2.4vw, 34px)/1.3 var(--ar); }
.fam-head span { color: var(--mute); font-size: 13px; }
.grid-menu .tile { animation: tin .6s var(--ease) both; animation-delay: calc(min(var(--i, 0), 12) * 30ms); }
@keyframes tin { from { opacity: 0; transform: translateY(14px); } }

/* Item sheet (dialog) and item page */
.sheet { width: min(980px, 100% - 32px); max-height: min(720px, 100% - 32px); padding: 0; border: 0; border-radius: 26px; background: var(--aw); color: var(--rv); overflow: hidden; box-shadow: 0 40px 100px -30px rgba(61,17,80,.6); }
.sheet::backdrop { background: rgba(61,17,80,.42); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheetin .45s var(--ease); }
@keyframes sheetin { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.detail .ph { container-type: inline-size; position: relative; aspect-ratio: 1; background: var(--paper); }
.detail .ph img { width: 100%; height: 100%; object-fit: cover; }
.detail .info { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 48px); }
.detail .info .h2 { font-size: clamp(30px, 3.2vw, 46px); }
.detail .info .alt { font-size: 18px; color: var(--mute); }
.detail .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.detail .row .price { font-size: 26px; }
.qty { display: inline-flex; align-items: center; height: 48px; border-radius: 999px; border: 1px solid var(--line); }
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 20px; }
.qty output { min-width: 28px; text-align: center; font: 500 16px/1 var(--en); }
.x-btn { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(237,227,211,.9); font-size: 22px; line-height: 1; }
@media (max-width: 760px) {
  .sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; overflow-y: auto; }
  .detail { grid-template-columns: 1fr; }
}
.item-page { padding-top: clamp(100px, 12vw, 150px); padding-bottom: 96px; }
.item-page .detail { border-radius: 26px; overflow: hidden; background: var(--paper); }
.crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--mute); margin-bottom: 22px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--cv); }
.more { margin-top: 72px; }

/* Cart drawer: visual only */
.drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 80; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--aw);
  box-shadow: -30px 0 80px -40px rgba(61,17,80,.6); transform: translateX(105%); transition: transform .5s var(--ease); visibility: hidden; }
html[dir="rtl"] .drawer { transform: translateX(-105%); box-shadow: 30px 0 80px -40px rgba(61,17,80,.6); }
.drawer.open { transform: none !important; visibility: visible; }
.scrim { position: fixed; inset: 0; z-index: 79; background: rgba(61,17,80,.36); opacity: 0; pointer-events: none; transition: opacity .4s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font: 300 28px/1 var(--en); } html[lang="ar"] .drawer header h2 { font: 500 26px/1.2 var(--ar); }
.drawer .lines { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .th { position: relative; width: 72px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.line .th img { width: 100%; height: 100%; object-fit: cover; }
.line .th span { font: 500 8px/1.2 var(--en); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); text-align: center; padding: 4px; }
.line .nm { font-size: 15px; line-height: 1.3; }
.line .qty { height: 36px; margin-top: 8px; } .line .qty button { width: 34px; height: 34px; font-size: 16px; }
.drawer .empty { display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; height: 100%; color: var(--mute); }
.drawer footer { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; background: var(--paper); }
.drawer footer .sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer footer .sum .price { font-size: 24px; }
.drawer footer .btn { justify-content: center; }
.drawer footer .btn[aria-disabled="true"] { cursor: not-allowed; }
.drawer footer .btn .pill { margin-inline-start: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(237,227,211,.16); font-size: 11px; letter-spacing: .08em; }
.drawer footer p { margin: 0; font-size: 12px; color: var(--mute); text-align: center; }

/* Reveal on scroll */
.rv-up { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-up.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv-up { opacity: 1; transform: none; }
  .seam svg { transform: none !important; }
}
.line .th span { display: none; }
.line .th { box-shadow: inset 0 0 0 1px rgba(61,17,80,.08); }

/* Arabic accents: no faux italic, no Cadmium display words. The accent is a weight change, as the light italic is in English. */
html[lang="ar"] .h1 em, html[lang="ar"] .h2 em, html[lang="ar"] .h1 .v, html[lang="ar"] .h2 .v { font-style: normal; color: inherit; font-weight: 300; }
html[lang="ar"] .box-sec .h2 em { color: var(--fawn); }
.hero .ai-top { inset-block-start: 88px; inset-block-end: auto; inset-inline-start: auto; inset-inline-end: var(--gut); }
/* the header mark steps back while the hero's own lockup is on screen */
body[data-page="home"] .hdr:not(.solid) .brand { opacity: calc(1 - (var(--ms-p, 0) - .66) * 8); }
.textlink { font-size: 14px; color: var(--rv); text-underline-offset: 4px; }
.textlink:hover { color: var(--cv); }
@media (max-width: 760px) {
  .sheet .detail .row { position: sticky; bottom: 0; z-index: 2; background: var(--aw); margin-inline: calc(-1 * clamp(24px, 4vw, 48px)); padding: 14px clamp(24px, 4vw, 48px) calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 20px -12px rgba(61,17,80,.25); }
  .item-page .detail .ph { background: var(--paper); }
}
.detail .info p { margin: 0; }

/* ---------- Glass surfaces (vanilla liquid glass from magic-scroll, rdev style) ----------
   The engine refracts what is behind; the tint lives in a veil above the refraction layer because the filter chain greys a light tint.
   Day: Antique White veil, Russian Violet type. Evening (.eve): Russian Violet veil, Antique White type. */
:root { --lg-radius: 22px; --lg-shadow: 0 18px 44px -24px rgba(61,17,80,.5); --lg-fallback: #EDE3D3; }
.lg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--veil, rgba(245,239,230,.64)); pointer-events: none; transition: background .35s; }
.hdr.lg::after { --veil: rgba(245,239,230,.56); }
.sheet.lg::after, .drawer.lg::after { --veil: rgba(241,234,223,.8); }
.filters .bar.lg::after { --veil: rgba(245,239,230,.6); }
.hdr.eve { color: var(--aw); }
.hdr.eve::after { --veil: rgba(61,17,80,.55); }
.hdr.eve .brand { background: var(--aw); }
.hdr.eve .chip-btn { border-color: rgba(237,227,211,.28); background: rgba(61,17,80,.25); }
.hdr.eve .cart-btn .count { background: var(--aw); color: var(--rv); }
.hdr.eve .nav a::after { background: var(--fawn); }
/* the drawer and sheet keep their own motion: the engine's elastic transform must not replace it */
.drawer.lg { transform: translateX(105%); transition: transform .5s var(--ease); }
html[dir="rtl"] .drawer.lg { transform: translateX(-105%); }
.drawer.lg.open { transform: none; }
.sheet.lg { transform: none; overflow: hidden; }
.sheet .sheet-body { position: relative; z-index: 1; max-height: inherit; overflow-y: auto; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lg::after { background: var(--aw); } .hdr.eve::after { background: var(--rv); } }
@media (prefers-reduced-transparency: reduce) { .lg::after { background: var(--aw) !important; } .hdr.eve::after { background: var(--rv) !important; } }

/* ---------- Slots: where the client fills in what we could not verify ---------- */
.slot { position: relative; display: grid; gap: 6px; padding: 16px 18px; border: 1px dashed rgba(61,17,80,.28); border-radius: 14px; background: rgba(245,239,230,.4); }
.slot-tag { font: 600 11px/1 var(--en); letter-spacing: .18em; text-transform: uppercase; color: var(--cv); }
html[lang="ar"] .slot-tag { font: 600 11px/1.2 var(--ar); letter-spacing: 0; }
.slot-txt { font-size: 14px; color: var(--mute); line-height: 1.45; }
.fine { font-size: 12.5px; color: var(--mute); margin: 10px 0 0; }

/* ---------- Bands ---------- */
.band { padding-block: clamp(64px, 8vw, 112px); }
.band .h2 { margin-top: 14px; }
.band-app { background: var(--paper); overflow: hidden; }
.band-app .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.band-app .lead { margin-top: 16px; }
.band-app .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.store-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); font: 500 14px/1 var(--en); }
.ba-ph { position: relative; display: flex; justify-content: center; gap: 4%; }
.ba-ph img { width: 40%; height: auto; border-radius: 26px; box-shadow: 0 40px 70px -40px rgba(61,17,80,.6), 0 0 0 7px var(--rv); }
.ba-ph img:nth-of-type(2n) { transform: translateY(12%); }
.ba-ph .ai { inset-block-end: -8px; }
.band-partners .pt-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.band-partners { padding-block: 40px; }
.band-trust { padding-block: 36px; border-block: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: center; }
.trust-row > div:not(.slot) { display: grid; gap: 4px; }
.trust-row b { font-weight: 500; font-size: 15px; }
.trust-row span { font-size: 13px; color: var(--mute); }
.faq-w { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cv); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p, .faq details > .slot { margin: 14px 0 0; color: var(--mute); }
.loc-w { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.loc-w figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; }
.loc-w figure img { width: 100%; height: 100%; object-fit: cover; }
.loc-w figcaption { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; padding: 4px 8px; border-radius: 4px; background: rgba(237,227,211,.86); font: 500 10px/1 var(--en); }
.foot .top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) {
  .band-app .wrap, .faq-w, .loc-w { grid-template-columns: 1fr; }
  .band-partners .pt-row, .trust-row { grid-template-columns: 1fr 1fr; }
  .foot .top { grid-template-columns: 1fr 1fr; }
}

/* ---------- Home: a day at Sugarhive ---------- */
.chap { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.chap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.chap .media { position: relative; grid-column: 1; grid-row: 1; aspect-ratio: 4 / 5; width: min(100%, 560px); border-radius: 28px; overflow: hidden; background: var(--paper); box-shadow: 0 40px 80px -48px rgba(61,17,80,.55); }
.chap .media > img:first-child, .chap .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chap .media video { z-index: 1; }
.chap .media .boxcut { position: absolute; z-index: 2; left: 31%; bottom: 17%; width: 58%; height: auto; filter: drop-shadow(0 22px 20px rgba(10,0,16,.6)); }
.chap .media .ai { z-index: 3; }
/* the glass card overlaps the picture so it has something to refract */
.chap .card { position: relative; grid-column: 2; grid-row: 1; z-index: 2; margin-inline-start: -22%; padding: clamp(26px, 3vw, 44px); border-radius: 26px; max-width: 520px; }
.chap .card .h2 { margin: 14px 0 14px; }
.chap.mirror .media { grid-column: 2; justify-self: end; }
.chap.mirror .card { grid-column: 1; margin-inline-start: 0; margin-inline-end: -22%; justify-self: end; }
.chap-n { display: flex; align-items: baseline; gap: 12px; font: 500 11px/1 var(--en); letter-spacing: .2em; text-transform: uppercase; color: var(--cv); }
.chap-n .num { font: 300 30px/1 var(--en); letter-spacing: 0; color: inherit; }
html[lang="ar"] .chap-n { font: 600 13px/1 var(--ar); letter-spacing: 0; }
.chap-evening .chap-n { color: var(--fawn); }
.chap .card.eve { color: var(--aw); }
.chap .card.eve::after { --veil: rgba(61,17,80,.5); }
.chap .card.eve .lead { color: rgba(237,227,211,.78); }
.chap .card.eve .textlink { color: var(--aw); }
.chap .buy-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.chap .buy-row .stamp { width: 84px; height: 84px; transform: rotate(-8deg); }
.chap .buy-row .stamp b { font-size: 28px; }
.chap .buy { margin-top: clamp(48px, 6vw, 80px); }
.buy-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.chap .strip { grid-auto-columns: minmax(220px, 1fr); }
/* chapter ribbon: a violet wave crossing between two daylight chapters */
.ribbon { position: relative; height: clamp(36px, 4vw, 60px); overflow: hidden; pointer-events: none; }
.ribbon svg { position: absolute; left: 0; width: 200%; height: 100%; }
.ribbon .r-back { fill: var(--cv); transform: translateX(calc(-25% - var(--sx, 0) * 25%)); }
.ribbon .r-front { fill: var(--rv); transform: translateX(calc(-25% + var(--sx, 0) * 25%)); }
.ribbon .r-hair { fill: none; stroke: var(--fawn); stroke-width: 1.2; vector-effect: non-scaling-stroke; transform: translateX(calc(-25% + var(--sx, 0) * 25%)); }
.chap-afternoon { background: var(--paper); }
@media (max-width: 860px) {
  .chap-grid { grid-template-columns: 1fr; }
  .chap .media, .chap.mirror .media { grid-column: 1; grid-row: 1; width: 100%; justify-self: stretch; }
  .chap .card, .chap.mirror .card { grid-column: 1; grid-row: 2; margin: -96px 14px 0; justify-self: stretch; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .ribbon svg { transform: none !important; } }
.br-opt { display: grid; gap: 3px; width: 100%; padding: 11px 12px; border: 0; border-radius: 10px; background: none; text-align: start; }
.br-opt:hover { background: rgba(61,17,80,.06); }
.br-opt b { font-weight: 500; font-size: 15px; }
.br-opt span { font-size: 12.5px; color: var(--mute); }
[data-branch-btn] .sub { margin-inline-start: 8px; color: var(--mute); font-size: 12px; }
.branch .pop { max-height: min(460px, 62vh); overflow-y: auto; }
