/* ============================================================
   The Better Whisk — bespoke site layer (motion, 3D, chrome)
   Builds strictly on the design-system tokens. No new palette.
   ============================================================ */

/* ============================================================
   PALETTE OVERRIDE — retire the brass-gold accent, recolor it
   to a soft brand pink. Loaded after the DS color tokens so the
   whole system (rules, outlines, stars, focus rings, badges,
   buttons) inherits pink wherever it referenced --gold-*.
   ============================================================ */
:root {
  --gold-700: #9E5563;
  --gold-600: #BC6E7C;
  --gold-500: #C77E8A;
  --gold-400: #DCA0AC;
  --gold-300: #E9C3CC;
  --gold-200: #F4DDE3;
  --gold-100: #FBEFF1;
  /* keep the page airy: pink-only paper wash, no warm gold tint */
  --paper-wash:
    radial-gradient(1200px 600px at 85% 12%, rgba(220,160,172,0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 85%, rgba(233,195,204,0.12), transparent 60%);
}

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Custom cursor only on fine pointers */
@media (hover: hover) and (pointer: fine) {
  body.tbw-custom-cursor, body.tbw-custom-cursor * { cursor: none; }
  body.tbw-custom-cursor a,
  body.tbw-custom-cursor button,
  body.tbw-custom-cursor input,
  body.tbw-custom-cursor textarea { cursor: none; }
}

/* Thin warm scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--cream-100); }
::-webkit-scrollbar-thumb { background: var(--gold-300); border-radius: 999px; border: 3px solid var(--cream-100); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); }

/* ============================================================
   CURSOR FOLLOWER
   ============================================================ */
.cur-glow, .cur-heart { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; will-change: transform; }
.cur-glow {
  width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199,126,138,0.22), rgba(193,154,62,0.12) 40%, transparent 66%);
  filter: blur(10px); opacity: 0; transition: opacity .6s ease;
}
.cur-heart {
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  color: var(--rose-500); opacity: 0;
  transition: opacity .4s ease, transform .22s var(--ease-out), color .25s ease;
  filter: drop-shadow(0 1px 2px rgba(42,29,22,.18));
}
.cur-heart svg { width: 100%; height: 100%; display: block; }
body.cursor-ready .cur-glow { opacity: 1; }
body.cursor-ready .cur-heart { opacity: 1; }
.cur-heart.hot { color: var(--gold-500); transform: scale(1.45) rotate(-8deg); }
.cur-glow.hot { opacity: 1; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center;
  background: var(--cream-50); background-image: var(--paper-wash);
  transition: opacity .5s var(--ease-soft), visibility .5s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; transform: translateY(-2vh); }
.loader__badge {
  width: clamp(82px, 16vw, 112px); height: auto; margin: 0 auto .9rem;
  opacity: 0; transform: scale(.9) translateY(6px);
  animation: loadBadge .45s var(--ease-out) .02s forwards;
}
.loader__mark {
  font-family: var(--font-display); font-weight: 700; color: var(--espresso-900);
  font-size: clamp(2rem, 6vw, 3.4rem); letter-spacing: -0.01em; line-height: 1;
  opacity: 0; filter: blur(8px); animation: loadMark .45s var(--ease-out) .12s forwards;
}
.loader__rule {
  width: 0; height: 2px; background: var(--gold-500); border-radius: 999px;
  margin: 1.3rem auto 0; animation: loadRule .4s var(--ease-out) .26s forwards;
}
.loader__sub {
  font-family: var(--font-accent); font-style: italic; color: var(--rose-500);
  font-size: clamp(1rem, 2.4vw, 1.3rem); margin-top: 1rem; opacity: 0;
  animation: loadSub .35s ease .34s forwards;
}
@keyframes loadBadge { to { opacity: 1; transform: none; } }
@keyframes loadMark { to { opacity: 1; filter: blur(0); } }
@keyframes loadRule { to { width: 132px; } }
@keyframes loadSub  { to { opacity: 1; } }

/* ============================================================
   NAME GATE
   ============================================================ */
.gate {
  position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 1.5rem;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(193,154,62,0.10), transparent 60%),
    radial-gradient(700px 460px at 50% 120%, rgba(199,126,138,0.10), transparent 60%),
    rgba(252,248,243,0.74);
  backdrop-filter: blur(14px) saturate(1.06);
  opacity: 0; animation: gateIn .7s var(--ease-out) forwards;
}
.gate.out { animation: gateOut .55s var(--ease-soft) forwards; }
@keyframes gateIn { to { opacity: 1; } }
@keyframes gateOut { to { opacity: 0; visibility: hidden; } }
.gate__card {
  position: relative; width: min(480px, 92vw); text-align: center;
  background: var(--warm-white);
  border: 1px solid var(--cream-200); border-top: 3px solid var(--gold-400);
  border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl);
  padding: clamp(2.6rem, 5.5vw, 3.6rem) clamp(1.8rem, 5vw, 3.2rem) clamp(2rem, 4vw, 2.6rem);
  transform: translateY(30px) scale(.96); opacity: 0;
  animation: gateCard .85s var(--ease-out) .1s forwards;
}
@keyframes gateCard { to { transform: none; opacity: 1; } }
/* staggered reveal of inner pieces */
.gate__card > * { opacity: 0; transform: translateY(12px); animation: gatePiece .7s var(--ease-out) forwards; }
.gate__card > *:nth-child(1) { animation-delay: .30s; }
.gate__card > *:nth-child(2) { animation-delay: .40s; }
.gate__card > *:nth-child(3) { animation-delay: .48s; }
.gate__card > *:nth-child(4) { animation-delay: .56s; }
.gate__card > *:nth-child(5) { animation-delay: .64s; }
.gate__card > *:nth-child(6) { animation-delay: .74s; }
.gate__card > *:nth-child(7) { animation-delay: .84s; }
@keyframes gatePiece { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .gate, .gate__card, .gate__card > * { animation: none !important; opacity: 1 !important; transform: none !important; }
}
.gate__badge { width: 92px; height: 92px; margin: 0 auto 1.5rem; border-radius: 999px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 36% 30%, #FFFFFF 0%, var(--gold-100) 52%, #F3DADF 100%);
  box-shadow:
    inset 0 3px 7px rgba(255,255,255,.9),
    inset 0 -8px 16px rgba(199,126,138,.22),
    inset 0 0 0 1px var(--gold-200),
    0 14px 26px -10px rgba(42,29,22,.32); }
.gate__whisk { width: auto; height: 62px; margin: 0; display: block;
  filter: drop-shadow(0 2px 3px rgba(42,29,22,.22)); }
.gate__eyebrow { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .3em;
  font-size: .75rem; color: var(--taupe-400); margin: 0 0 .7rem; }
.gate__title { font-family: var(--font-display); font-weight: 700; color: var(--espresso-900);
  font-size: clamp(1.85rem, 4.4vw, 2.5rem); line-height: 1.08; margin: 0; }
.gate__title em { font-family: var(--font-accent); font-style: italic; color: var(--rose-500); font-weight: 600; white-space: nowrap; }
.gate__rule { display: block; width: 56px; height: 2px; border-radius: 999px; background: var(--gold-500);
  margin: 1.1rem auto 0; }
.gate__sub { color: var(--cocoa-500); font-size: var(--text-body-lg); line-height: var(--leading-relaxed);
  margin: 1.1rem auto 1.9rem; max-width: 34ch; }
.gate__row { display: flex; flex-direction: column; gap: .75rem; }
.gate__input { font-family: var(--font-serif); font-size: var(--text-body-lg); text-align: center;
  color: var(--espresso-900); background: var(--cream-50); border: 1px solid var(--cream-300);
  border-radius: var(--radius-md); padding: .95rem 1.1rem; width: 100%;
  transition: border-color .25s, box-shadow .25s, background .25s; }
.gate__input::placeholder { color: var(--taupe-400); }
.gate__input:focus { outline: none; border-color: var(--gold-500); background: var(--warm-white);
  box-shadow: var(--shadow-ring-gold, 0 0 0 3px rgba(193,154,62,.22)); }
.gate__skip { margin-top: 1.2rem; background: none; border: 0; color: var(--taupe-400);
  font-family: var(--font-serif); font-size: .9rem; letter-spacing: .04em; cursor: pointer;
  transition: color .25s; }
.gate__skip:hover { color: var(--gold-700); }

/* ============================================================
   FLOATING PILL NAV
   ============================================================ */
.nav {
  position: fixed; top: clamp(.7rem, 1.6vw, 1.3rem); left: 50%; z-index: 800;
  transform: translateX(-50%) translateY(-130%);
  width: min(1480px, calc(100vw - 2 * clamp(.85rem, 2vw, 1.5rem)));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .42rem .6rem .42rem 1.35rem; border-radius: 999px;
  background: rgba(252,248,243,0.66); backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(235,223,209,0.8); box-shadow: var(--shadow-sm);
  animation: navDrop 1s var(--ease-out) .2s forwards;
  transition: padding .4s var(--ease-out), box-shadow .4s, background .4s, transform .5s var(--ease-out);
}
@keyframes navDrop { to { transform: translateX(-50%) translateY(0); } }
.nav.shrunk { box-shadow: var(--shadow-md); background: rgba(252,248,243,0.86); padding-block: .45rem; }
.nav__brand { display: inline-flex; align-items: center; gap: .55rem; }
.nav__brand .tbw-wordmark { white-space: nowrap; }
.nav__badge { width: 33px; height: auto; flex: none; transition: filter .3s, opacity .3s, width .4s var(--ease-out); }
.nav.shrunk .nav__badge { width: 29px; }
.nav__links { display: flex; align-items: center; gap: .15rem; }
.nav__link {
  position: relative; font-family: var(--font-serif); text-transform: uppercase;
  letter-spacing: .2em; font-size: .84rem; font-weight: 500; color: var(--cocoa-600);
  padding: .5rem .95rem; border-radius: 999px; white-space: nowrap;
  transition: color .3s var(--ease-out), background .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: .34rem; width: 0; height: 2px;
  background: var(--gold-500); border-radius: 2px; transform: translateX(-50%);
  transition: width .32s var(--ease-out);
}
.nav__link:hover { color: var(--espresso-900); }
.nav__link:hover::after { width: 1.3rem; }
.nav__link.active { color: var(--espresso-900); font-weight: 700; }
.nav__link.active::after { width: 1.6rem; height: 2.5px; }
.nav__right { display: flex; align-items: center; gap: .5rem; }
.nav__greet {
  display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-accent);
  font-style: italic; color: var(--rose-600); font-size: 1rem; padding: 0 .4rem 0 .2rem; white-space: nowrap;
}
.nav__greet b { font-style: normal; font-family: var(--font-serif); font-weight: 600; color: var(--espresso-800); }
.nav__lang {
  font-family: var(--font-serif); letter-spacing: .14em; text-transform: uppercase;
  font-size: .72rem; color: var(--gold-700); background: var(--gold-100);
  border: 1px solid var(--gold-200); border-radius: 999px; padding: .5rem .95rem; cursor: pointer;
  transition: background .3s, color .3s, transform .2s;
}
.nav__lang:hover { background: var(--gold-200); transform: translateY(-1px); }
.nav__lang[lang="ar"] { font-family: var(--font-arabic-display); letter-spacing: 0; }
.nav__theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; border-radius: 999px; cursor: pointer;
  color: var(--gold-700); background: var(--gold-100); border: 1px solid var(--gold-200);
  transition: background .3s, color .3s, transform .2s;
}
.nav__theme svg { width: 19px; height: 19px; }
.nav__theme:hover { background: var(--gold-200); transform: translateY(-1px); }
.nav__burger { display: none; }

@media (max-width: 940px) {
  .nav { padding-left: 1.1rem; }
  .nav__links {
    position: absolute; top: calc(100% + .6rem); left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: .2rem; padding: .7rem; border-radius: var(--radius-xl);
    background: rgba(252,248,243,0.96); backdrop-filter: blur(16px);
    border: 1px solid var(--cream-200); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all .35s var(--ease-out);
  }
  .nav__links.open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { text-align: center; padding: .8rem; font-size: .8rem; }
  .nav__link::after { display: none; }
  .nav__greet { display: none; }
  .nav__burger {
    display: inline-flex; flex-direction: column; gap: 4px; width: 42px; height: 42px;
    align-items: center; justify-content: center; border-radius: 999px; cursor: pointer;
    background: var(--cream-100); border: 1px solid var(--cream-200);
  }
  .nav__burger span { width: 17px; height: 1.6px; background: var(--espresso-800); border-radius: 2px;
    transition: transform .3s var(--ease-out), opacity .3s; }
  .nav__burger.open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }
}

/* RTL nav */
[dir="rtl"] .nav__link { letter-spacing: 0; }

/* ============================================================
   PAGE SCAFFOLD + ENTRANCE
   ============================================================ */
.page { opacity: 0; transition: opacity .45s var(--ease-out); }
.page.lit { opacity: 1; }
.section { padding-block: var(--section-padding-y); position: relative; }
.section--alt { background: var(--cream-100); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
main { position: relative; z-index: 1; }

/* Generic page hero (interior pages) */
.phero { position: relative; padding-top: clamp(8rem, 14vh, 12rem); padding-bottom: clamp(3rem, 6vw, 6rem); text-align: center; overflow: hidden; }
.phero__deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.phero .wrap { position: relative; z-index: 1; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-28px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal-l.in { opacity: 1; transform: none; }
.reveal-r { opacity: 0; transform: translateX(28px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal-r.in { opacity: 1; transform: none; }
.reveal-s { opacity: 0; transform: scale(.94); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal-s.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l, .reveal-r, .reveal-s { opacity: 1 !important; transform: none !important; }
}

/* Word-by-word headline reveal */
.tw { display: inline-block; overflow: hidden; vertical-align: top; }
.tw > span { display: inline-block; transform: translateY(110%); transition: transform .6s var(--ease-out); transition-delay: var(--td, 0ms); }
.tw.in > span { transform: none; }
.phero__title .tw, .hero__title .tw { padding-bottom: .12em; }

/* ============================================================
   3D TILT CARD
   ============================================================ */
.tilt { transform-style: preserve-3d; transition: transform .4s var(--ease-out); will-change: transform; }
.tilt__layer { transform: translateZ(40px); }

/* ============================================================
   FLOATING DECOR (botanical glyphs / orbs)
   ============================================================ */
.float { position: absolute; pointer-events: none; opacity: .5; z-index: 0; will-change: transform; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-22px) rotate(calc(var(--r,0deg) + 4deg)); } }
.bob { animation: bob 9s ease-in-out infinite; }
.bob-2 { animation-duration: 11s; animation-delay: -3s; }
.bob-3 { animation-duration: 13s; animation-delay: -6s; }

/* Decorative gold orb */
.orb { border-radius: 50%; background: radial-gradient(circle at 32% 28%, var(--gold-200), var(--gold-400)); box-shadow: var(--shadow-md); }
.orb--rose { background: radial-gradient(circle at 32% 28%, var(--rose-100), var(--rose-300)); }

/* ============================================================
   BUTTON SHEEN (adds to DS button)
   ============================================================ */
.sheen { position: relative; overflow: hidden; }
.sheen::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease-out);
}
.sheen:hover::before { left: 140%; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--espresso-900); color: var(--cream-150); position: relative; overflow: hidden; }
.foot__wash { position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background: radial-gradient(700px 300px at 80% 0%, rgba(220,160,172,.18), transparent 60%),
              radial-gradient(600px 300px at 10% 100%, rgba(199,126,138,.16), transparent 60%); }
.foot__inner { position: relative; z-index: 1; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.foot__badge { width: 132px; height: auto; margin: 0 0 1.2rem; filter: brightness(0) invert(1); opacity: 1; }
.foot__mark { font-family: var(--font-display); font-weight: 700; color: var(--cream-50); font-size: 2rem; line-height: 1; }
.foot__tag { font-family: var(--font-accent); font-style: italic; color: var(--rose-300); font-size: 1.15rem; margin-top: .7rem; }
.foot__col h4 { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; color: var(--gold-300); margin: 0 0 1.1rem; font-weight: 600; }
.foot__col a, .foot__col p { display: block; color: var(--cream-200); font-size: 1rem; margin-bottom: .65rem; transition: color .3s, transform .3s; width: fit-content; }
.foot__col a:hover { color: var(--gold-300); transform: translateX(3px); }
.foot__rule { height: 1px; background: rgba(235,223,209,.14); margin: clamp(2.2rem,4vw,3.2rem) 0 1.6rem; }
.foot__base { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: space-between; color: var(--taupe-400); font-size: .9rem; }
.foot__base .heart { color: var(--rose-400); }
@media (max-width: 820px) { .foot__grid { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* ============================================================
   SMALL HELPERS
   ============================================================ */
.wrap { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--container-wide); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse > .split__media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse > .split__media { order: 0; } }
.stack-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* Eyebrow used outside SectionHeading */
.kicker { font-family: var(--font-serif); text-transform: uppercase; letter-spacing: .28em; font-size: .8125rem; color: var(--text-muted); }

/* Framed image with warm shadow + slow zoom */
.frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-image); }
.frame img { transition: transform 1.2s var(--ease-out); }
.frame:hover img { transform: scale(1.05); }

/* Team portraits — crop studio white margins by zooming the cover image */
.tbw-profile__media img {
  transform: scale(1.1); transform-origin: center 30%;
  transition: transform .6s var(--ease-out);
}
.tbw-profile__media:hover img { transform: scale(1.15); }

/* Deepen the rose heading-accent so it stays legible on light grounds */
.tbw-heading__accent { color: #AE596B; }
html[data-theme="dark"] .tbw-heading__accent { color: var(--rose-500); }

/* ============================================================
   BRAND BADGE (whisk logo) — placed in nav, loader, footer
   ============================================================ */
.brand-badge { display: block; }
html[data-theme="dark"] .nav__badge,
html[data-theme="dark"] .loader__badge { filter: brightness(0) invert(1); opacity: .92; }

/* ============================================================
   ARABIC (RTL) — legibility: larger, unspaced, Arabic faces
   The eyebrows, nav, footer labels and badges were tiny + tracked
   (built for Latin caps). In Arabic that is unreadable — restore
   weight, size and the proper Arabic face, drop letter-spacing.
   ============================================================ */
[dir="rtl"] { font-family: var(--font-arabic-body); }
[dir="rtl"] .kicker,
[dir="rtl"] .tbw-eyebrow,
[dir="rtl"] .tbw-heading__eyebrow,
[dir="rtl"] .gate__eyebrow {
  font-family: var(--font-arabic-body); letter-spacing: 0; text-transform: none;
  font-size: 1.05rem; font-weight: 600; line-height: 1.7;
}
[dir="rtl"] .nav__link {
  font-family: var(--font-arabic-body); letter-spacing: 0; text-transform: none; font-size: 1.04rem;
}
[dir="rtl"] .nav__lang { font-family: var(--font-arabic-display); letter-spacing: 0; font-size: .92rem; }
[dir="rtl"] .nav__greet { font-size: 1.08rem; }
[dir="rtl"] .foot__col h4 {
  font-family: var(--font-arabic-body); letter-spacing: 0; text-transform: none; font-size: 1.1rem;
}
[dir="rtl"] .foot__col a, [dir="rtl"] .foot__col p { font-size: 1.06rem; }
[dir="rtl"] .foot__base { font-size: 1rem; }
[dir="rtl"] .tbw-badge { font-family: var(--font-arabic-body); letter-spacing: 0; font-size: 1rem; }
[dir="rtl"] .tbw-btn { font-family: var(--font-arabic-body); letter-spacing: 0; }
[dir="rtl"] .rev-card__loc { font-size: 1.05rem; letter-spacing: 0; }
[dir="rtl"] .rev-card__name { font-family: var(--font-arabic-display); }
[dir="rtl"] .mq__item { font-family: var(--font-arabic-display); }
[dir="rtl"] .gate__skip { font-family: var(--font-arabic-body); font-size: 1rem; }
/* Arabic hero title: looser line-height + room inside the word-reveal mask
   so tall Arabic glyphs/descenders aren't clipped by .tw overflow:hidden */
[dir="rtl"] .hero__title { line-height: 1.22; }
[dir="rtl"] .hero__title .tw { padding-bottom: .16em; }

/* ============================================================
   MOBILE OPTIMISATION — tighter rhythm, comfortable tap targets
   ============================================================ */
@media (max-width: 640px) {
  .section { padding-block: clamp(2.6rem, 9vw, 4rem); }
  .wrap { padding-inline: clamp(1.15rem, 5vw, 1.6rem); }
  .nav { padding: .5rem .55rem .5rem 1rem; }
  .nav__badge { width: 30px; }
  .nav__theme { width: 38px; height: 38px; }
  .nav__lang { padding: .5rem .8rem; }
  .foot__badge { width: 112px; }
}
@media (max-width: 400px) {
  .nav__brand .tbw-wordmark { font-size: 1.04rem; }
}
@media (max-width: 384px) {
  /* keep the fixed-width photo album from overflowing very narrow phones */
  .pstack-wrap { transform: scale(.86); transform-origin: center top; }
}

/* Equal-height product cards — every card stretches to the tallest in its row */
.prod-grid .reveal-s { height: 100%; }
.prod-grid .tilt > .tbw-product { height: 100%; }
.prod-grid .tbw-product__body { flex: 1 1 auto; }

/* ============================================================
   DARK MODE — warm-dark token remap + chrome patches.
   Toggled by html[data-theme="dark"]. Neutrals invert; the pink
   accent ramp is retuned so low steps become dark tints and high
   steps become light text. Footer is pinned dark in both themes.
   ============================================================ */
html[data-theme="dark"] {
  --cream-50:  #19130F;
  --cream-100: #211A14;
  --cream-150: #2A211A;
  --cream-200: #3A2D24;
  --cream-300: #4C3B2F;

  --espresso-900: #F6ECE1;
  --espresso-800: #ECDFD1;
  --espresso-700: #DFD0BE;
  --cocoa-600:    #CDBBA8;
  --cocoa-500:    #B4A28E;
  --taupe-400:    #9C8A78;
  --taupe-300:    #80705E;

  --white:      #241C16;
  --warm-white: #241C16;

  --gold-700: #ECC4CD;
  --gold-600: #DC93A1;
  --gold-500: #CE808F;
  --gold-400: #C2788A;
  --gold-300: #E6BAC4;
  --gold-200: #4A2E38;
  --gold-100: #38242D;

  --rose-700: #ECC4CD;
  --rose-200: #3C2730;
  --rose-100: #2C1E25;

  --paper-wash:
    radial-gradient(1200px 600px at 85% 12%, rgba(206,128,144,0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 85%, rgba(150,90,108,0.10), transparent 60%);

  --shadow-sm:    0 1px 2px rgba(0,0,0,.5);
  --shadow-md:    0 6px 18px -8px rgba(0,0,0,.6);
  --shadow-lg:    0 18px 40px -16px rgba(0,0,0,.7);
  --shadow-card:  0 1px 2px rgba(0,0,0,.45), 0 14px 32px -16px rgba(0,0,0,.65);
  --shadow-image: 0 20px 48px -18px rgba(0,0,0,.7);

  /* Semantic layer pinned directly — do not rely on scale-token
     resolution order (the DS injects :root tokens at runtime). */
  --text-heading: #F6ECE1;
  --text-body:    #D9C8B6;
  --text-strong:  #ECDFD1;
  --text-muted:   #A99883;
  --text-on-rose: #FBF1E6;
  --text-on-ink:  #F6ECE1;
  --surface-page:       #19130F;
  --surface-page-alt:   #211A14;
  --surface-card:       #241C16;
  --surface-card-blush: #2C1E25;
  --surface-field:      #2A211A;
  --border-subtle: #3A2D24;
  --border-strong: #4C3B2F;
  --border-field:  #4C3B2F;
}
html[data-theme="dark"] body { background-color: var(--cream-50); }
html[data-theme="dark"] ::selection { background: var(--rose-500); color: #19130F; }
html[data-theme="dark"] .tbw-btn--soft { --_fg: #24160F; }
html[data-theme="dark"] .nav { background: rgba(33,26,20,0.72); border-color: rgba(74,58,46,0.7); }
html[data-theme="dark"] .nav.shrunk { background: rgba(25,19,15,0.9); }
html[data-theme="dark"] .nav__burger { background: var(--cream-150); border-color: var(--cream-200); }
html[data-theme="dark"] .nav__burger span { background: var(--espresso-800); }
html[data-theme="dark"] .gate { background: rgba(16,11,8,0.82); }
html[data-theme="dark"] .gate__card { background: var(--cream-100); border-color: var(--cream-200); }
html[data-theme="dark"] .foot { background: #0F0B08; color: #E6D7C6; }
html[data-theme="dark"] .foot__mark { color: #F7EDE2; }
html[data-theme="dark"] .foot__col a, html[data-theme="dark"] .foot__col p { color: #CBB9A6; }
html[data-theme="dark"] .foot__base { color: #9C8A78; }
html[data-theme="dark"] .pcard__cap { color: #FBF4EC; }
/* Safety net: any body copy that hardcodes the light-theme ink stays legible */
html[data-theme="dark"] .tbw-product__desc,
html[data-theme="dark"] .tbw-heading__lead,
html[data-theme="dark"] .teaser__body,
html[data-theme="dark"] .lead,
html[data-theme="dark"] main p { color: var(--text-body); }
html[data-theme="dark"] .tbw-heading__lead { color: var(--cocoa-500); }
@media (max-width: 940px) {
  html[data-theme="dark"] .nav__links { background: rgba(25,19,15,0.97); border-color: var(--cream-200); }
}

/* ============================================================
   HERO LOGO MEDALLION — floating 3D whisk badge beside the
   photo album (home hero only). Outer element floats (translateY),
   inner disc wobbles in 3D so the badge reads with depth.
   ============================================================ */
.logo-coin {
  position: absolute; z-index: 5; pointer-events: none;
  top: 1%; left: -6%; bottom: auto;
  width: clamp(126px, 14.5vw, 174px); height: clamp(126px, 14.5vw, 174px);
  perspective: 860px;
  animation: coinFloat 7s ease-in-out infinite;
}
.logo-coin__inner {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, var(--warm-white), var(--cream-150) 78%);
  border: 1px solid var(--cream-200);
  box-shadow:
    0 22px 42px -16px rgba(42,29,22,.42),
    inset 0 2px 6px rgba(255,255,255,.75),
    inset 0 -10px 22px rgba(199,126,138,.14);
  transform-style: preserve-3d;
  animation: coinSpin 6.5s ease-in-out infinite;
}
.logo-coin__inner::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  border: 1px solid var(--gold-300); opacity: .45; transform: translateZ(3px);
}
.logo-coin__inner img {
  width: auto; height: 64%; transform: translateZ(16px) translateY(-17%);
  filter: drop-shadow(0 4px 7px rgba(42,29,22,.2));
}
@keyframes coinFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes coinSpin {
  0%, 100% { transform: rotateY(-17deg) rotateX(8deg); }
  50% { transform: rotateY(17deg) rotateX(-5deg); }
}
@media (max-width: 900px) {
  .logo-coin { top: -3%; left: 4%; right: auto; bottom: auto; width: clamp(102px, 25vw, 138px); height: clamp(102px, 25vw, 138px); }
}
html[data-theme="dark"] .logo-coin__inner img {
  filter: brightness(0) invert(1) drop-shadow(0 5px 8px rgba(0,0,0,.55));
}
html[data-theme="dark"] .logo-coin__inner::before { border-color: var(--gold-400); opacity: .5; }
