/* ═══════════════════════════════════════════════════════════════
   العبدان للعود — Brand Experience · Phase 1 prototype
   Tokens follow Doc 04. Section backgrounds follow the light arc:
   daylight (ivory) → afternoon (sand) → golden (sand-deep) → evening (wood).
   ═══════════════════════════════════════════════════════════════ */

@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/plex-arabic-400.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/plex-arabic-500.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/plex-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/plex-latin-500.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Doc 04 palette */
  --ivory: #F7F3EE;
  --sand: #EDE5DA;
  --charcoal: #292624;
  --oud: #4A3428;
  --wood: #211A17;
  --gold: #B99A63;          /* accent on dark only — 2.4:1 on ivory, never text on light */
  --taupe: #D8CEC2;         /* decorative hairlines only */
  /* Light-arc extensions (derived, same family) */
  --sand-deep: #E6DACB;     /* golden hour */
  --sand-dusk: #DFD2C1;     /* late afternoon, trust */
  --dusk: #2A211C;          /* the lamp-lit Oud chapter — brown, never black */
  /* Text */
  --ink-soft: #5E534A;      /* 6.7:1 on ivory, 5.9:1 on sand */
  --ivory-soft: #C9BBAA;    /* 9:1 on wood */

  --white: #FFFFFF;         /* primary type over dark photography and dark sections */
  --white-soft: rgb(255 255 255 / 0.84);

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --fs-hero: clamp(2.625rem, 2rem + 2.9vw, 4.75rem);        /* ≈43 @390 · 74 @1440 */
  --fs-hero-lede: clamp(1.0625rem, 0.95rem + 0.55vw, 1.375rem); /* 17 → 22 */
  --fs-h2: clamp(2rem, 1.55rem + 1.6vw, 3.25rem);           /* 32 → 52 */
  --fs-panel: clamp(1.375rem, 1.2rem + 0.55vw, 1.875rem);   /* 22 → 30 */
  --fs-lg: clamp(1.0625rem, 0.98rem + 0.45vw, 1.375rem);    /* 17 → 22 */
  --fs-body: clamp(1rem, 0.94rem + 0.28vw, 1.1875rem);      /* 16 → 19 */
  --fs-nav: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);   /* 15 → 17 */
  --fs-cta: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);   /* 15 → 17 */
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;

  /* Doc 04 spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 80px; --s8: 96px; --s9: 128px; --s10: 160px;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --header-h: 96px;
  --logo-h: 52px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

@media (max-width: 1023px) { :root { --header-h: 72px; --logo-h: 40px; } }

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.9;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Arabic is never letter-spaced: tracking breaks the joins. */
body, body * { letter-spacing: 0 !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.3; text-wrap: balance; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: var(--s2); inset-block-start: -100px; z-index: 100; background: var(--charcoal); color: var(--ivory); padding: var(--s1) var(--s2); text-decoration: none; }
.skip-link:focus { inset-block-start: var(--s2); }

:focus-visible { outline: 2px solid var(--oud); outline-offset: 3px; border-radius: 1px; }
[data-tone="dark"] :focus-visible { outline-color: var(--gold); }

.section-title { font-size: var(--fs-h2); }
.section-intro { font-size: var(--fs-small); color: var(--ink-soft); }
.kicker { font-size: var(--fs-small); font-weight: 500; color: var(--oud); margin-block-end: var(--s2); line-height: 1.6; }
.body-lg { font-size: var(--fs-lg); color: var(--ink-soft); margin-block-start: var(--s2); max-width: 30ch; line-height: 1.8; }
.is-placeholder { color: var(--ink-soft); }

/* ─── Media: warm tone + blur while loading, never a grey flash ─── */
.media { display: block; position: relative; width: 100%; height: 100%; overflow: hidden;
  background: var(--tone, var(--sand)) var(--blur, none) center / cover no-repeat; }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) {
  .media { background-color: var(--tone-tall, var(--tone)); background-image: var(--blur-tall, var(--blur)); }
}

/* ─── Store links: every exit to Zid looks and reads the same ─── */
.icon-leave { width: 0.95em; height: 0.95em; flex: none; transition: transform 0.4s var(--ease); }
a:hover .icon-leave, a:focus-visible .icon-leave { transform: translate(-3px, -3px); }

.btn-store {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65em;
  min-height: 52px; padding: 0 1.7rem;
  background: var(--charcoal); color: var(--ivory);
  font-size: var(--fs-cta); font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--charcoal); border-radius: 2px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn-store:hover { background: var(--oud); border-color: var(--oud); }
.btn-store--quiet { background: transparent; color: var(--charcoal); border-color: rgb(41 38 36 / 0.3); }
.btn-store--quiet:hover { background: var(--charcoal); color: var(--ivory); }
.btn-store--block { width: 100%; min-height: 56px; }
/* On photography and dark sections: a solid ivory action, contrast independent of the image */
.btn-store--light { background: var(--ivory); color: var(--wood); border-color: var(--ivory); }
.btn-store--light:hover { background: var(--white); border-color: var(--white); color: var(--wood); }

.link-store {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-block-start: var(--s4); padding-block: 10px; min-height: 44px;
  font-size: var(--fs-cta); font-weight: 500; text-decoration: none; color: var(--charcoal);
}
.link-store__label { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-block-end: 3px; transition: background-size 0.45s var(--ease); }
.link-store:hover .link-store__label { background-size: 40% 1px; }
.link-store--on-dark { color: var(--white); }
.link-store--on-dark .link-store__label { background-image: linear-gradient(var(--gold), var(--gold)); }

/* ─── Header: part of the photograph over the Hero, quiet ivory once it has passed ─── */
.site-header {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease), color 0.5s var(--ease), height 0.5s var(--ease);
}
.site-header.is-solid { color: var(--charcoal); background: rgb(247 243 238 / 0.95); box-shadow: 0 1px 0 var(--taupe);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header__inner { height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: var(--s4); }

.brand { position: relative; display: inline-flex; align-items: center; min-height: 48px; flex: none; }
.logo { display: block; height: var(--logo-h); width: auto; }
.brand .logo--color { position: absolute; inset-inline-start: 0; opacity: 0; transition: opacity 0.5s var(--ease); }
.brand .logo--white { transition: opacity 0.5s var(--ease); }
.is-solid .brand .logo--white { opacity: 0; }
.is-solid .brand .logo--color { opacity: 1; }

.site-nav { margin-inline: auto; }
.site-nav ul { display: flex; gap: clamp(24px, 2.8vw, 44px); }
.site-nav a { display: block; padding-block: 12px; font-size: var(--fs-nav); text-decoration: none; color: inherit;
  background: linear-gradient(currentColor, currentColor) 50% 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="true"] { background-size: 100% 1px; }

.btn-store--header { min-height: 48px; padding: 0 1.3rem; font-size: var(--fs-nav); background: transparent; color: inherit; border-color: rgb(255 255 255 / 0.62); }
.btn-store--header:hover { background: var(--white); color: var(--wood); border-color: var(--white); }
.is-solid .btn-store--header { border-color: rgb(41 38 36 / 0.35); }
.is-solid .btn-store--header:hover { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.site-header:not(.is-solid) :focus-visible { outline-color: var(--white); }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .site-header__inner { gap: var(--s2); }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-inline-start: -10px; order: -1; color: inherit; }
  .menu-toggle__bars, .menu-toggle__bars::before { display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; }
  .menu-toggle__bars { transform: translateY(-4px); }
  .menu-toggle__bars::before { content: ""; position: absolute; top: 8px; inset-inline-end: 0; width: 15px; }
  .btn-store--header { margin-inline-start: auto; min-height: 44px; padding: 0 1rem; }
}
@media (max-width: 380px) {
  .btn-store--header { padding: 0 0.7rem; gap: 0.45em; font-size: 0.875rem; }
  .site-header__inner { gap: 10px; }
}

/* Mobile menu — works without JS via :target; JS upgrades it to a dialog */
.menu { position: fixed; inset: 0; z-index: 70; display: none; flex-direction: column; background: var(--ivory);
  padding: 0 var(--gutter) max(var(--s4), env(safe-area-inset-bottom)); overflow-y: auto; }
.menu:target, .menu.is-open { display: flex; }
.menu.is-open { animation: menu-in 0.35s var(--ease); }
@keyframes menu-in { from { opacity: 0; } }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.logo--menu { height: var(--logo-h); width: auto; }
.menu__close { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 4px; font-size: var(--fs-small); text-decoration: none; }
.menu__list { margin-block-start: auto; padding-block: var(--s5) var(--s4); } /* anchored low: reachable with one thumb */
.menu__list li { border-block-end: 1px solid var(--taupe); }
.menu__list a { display: block; padding-block: 14px; font-size: 1.625rem; line-height: 1.5; text-decoration: none; }
.menu__note { margin-block-start: var(--s2); font-size: var(--fs-micro); color: var(--ink-soft); text-align: center; }
@media (min-width: 1024px) { .menu { display: none !important; } }

/* ═══ 01 · HERO — 10/10 · daylight ═══
   White type sits in light the photograph already holds: the shaded wall is burned into the image
   (content/images.json → burn), so there is no overlay layer here. */
.hero { position: relative; display: grid; min-height: 100svh; min-height: max(100svh, 600px); color: var(--white); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media .media { background-position: 72% 60%; }
.hero__media img { object-position: 72% 60%; }
.hero__content { position: relative; width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; }
/* The lockup — the only text in the Hero. The second line is written naturally (never letter-spaced: that breaks
   Arabic joins) and centered under the title for balance; only the word gap opens slightly. */
.hero__lockup { display: inline-flex; flex-direction: column; align-items: center; text-align: center; }
.hero__name { font-size: var(--fs-hero); line-height: 1.12; font-weight: 400; white-space: nowrap; text-shadow: 0 1px 28px rgb(33 26 23 / 0.28); }
.hero__signature { margin-block-start: 0.55em; font-size: calc(var(--fs-hero) * 0.42); line-height: 1.4; word-spacing: 0.18em; white-space: nowrap; color: rgb(255 255 255 / 0.9); text-shadow: 0 1px 18px rgb(33 26 23 / 0.32); }

@media (min-width: 1024px), (min-width: 768px) and (orientation: landscape) {
  .hero { max-height: 1200px; }
  .hero__content { align-self: center; padding-block: calc(var(--header-h) + var(--s5)) clamp(112px, 17vh, 208px); }
  /* In RTL the oud (right) is seen first; the words wait in the shaded wall on the left. */
  .hero__text { width: max-content; margin-inline-start: auto; }
}
@media (max-width: 767px), (max-width: 1023px) and (orientation: portrait) {
  .hero__media .media, .hero__media img { object-position: 50% 100%; background-position: 50% 100%; }
  .hero__content { align-self: end; padding-block: calc(var(--header-h) + var(--s5)) max(var(--s6), calc(env(safe-area-inset-bottom) + var(--s5))); }
  /* Portrait: the lockup is the centerpiece, set in the shaded stone below the oud, clear of the WhatsApp corner. */
  .hero__text { align-items: center; }
  .hero__content { padding-block-end: clamp(96px, 15svh, 150px); }
}
@media (max-width: 767px) {
}
@media (prefers-reduced-motion: no-preference) {
  .js .hero__media img { animation: settle 2.4s var(--ease) both; }
  .js .hero__content { animation: rise 1.2s 0.25s var(--ease) both; }
}
@keyframes settle { from { transform: scale(1.04); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ═══ 02 · PAUSE — 3/10 · breathing space, time, confidence ═══
   Typographic, no photograph: the year is the image. Oud Brown on Ivory, one sentence on its baseline. */
.pause { padding-block: clamp(104px, 12vw, 184px) clamp(88px, 10vw, 152px); }
.pause__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.pause__since { grid-column: 2 / span 6; display: flex; flex-direction: column; align-items: flex-start; color: var(--oud); }
.pause__word { font-size: var(--fs-lg); line-height: 1.4; color: var(--ink-soft); }
.pause__year { font-size: clamp(6rem, 2.6rem + 11.5vw, 13.5rem); line-height: 0.92; font-variant-numeric: lining-nums; margin-block-start: 0.04em; }
.pause__line { grid-column: 8 / span 4; font-size: var(--fs-lg); line-height: 1.9; color: var(--charcoal); max-width: 22ch; padding-block-end: 0.35em; text-wrap: balance; }
@media (max-width: 767px) {
  .pause__inner { display: flex; flex-direction: column; align-items: flex-start; }
  .pause__line { margin-block-start: var(--s4); padding-block-end: 0; }
}

/* ═══ 03 · WORLD — 6/10 · one photographic world, divided into scenes ═══
   Full-bleed, adjacent panels; the name is set into the image, not stacked under a card. */
.world { padding-block: clamp(40px, 4vw, 64px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-block-end: clamp(32px, 4vw, 56px); }
.gallery { position: relative; }
/* Four doors: full width, touching, a quiet wide–narrow–wide–narrow rhythm that keeps the four in balance. */
.gallery__track { display: grid; grid-template-columns: 1.08fr 0.92fr 1.08fr 0.92fr; height: clamp(540px, 80vh, 840px); }
.panel { position: relative; overflow: hidden; }
.panel__link { position: absolute; inset: 0; display: block; color: var(--white); text-decoration: none; }
.panel__media { position: absolute; inset: 0; }
.panel__media img { object-position: 50% 100%; transform-origin: 50% 100%; transition: transform 1.6s var(--ease); } /* keep the burned lower edge (where the name sits) in frame */
.panel__link:hover .panel__media img { transform: scale(1.03); }
.panel__caption { position: absolute; inset-inline: 0; inset-block-end: 0; padding: clamp(24px, 2.6vw, 44px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.panel__name { font-size: var(--fs-panel); line-height: 1.35; text-shadow: 0 1px 18px rgb(33 26 23 / 0.32); }
.panel__line { font-size: var(--fs-small); line-height: 1.6; color: var(--white-soft); text-shadow: 0 1px 14px rgb(33 26 23 / 0.35); }
.panel__tag { display: inline-flex; align-items: center; gap: 0.4em; margin-block-start: var(--s2); font-size: var(--fs-micro); color: var(--white); opacity: 0.86; transition: opacity 0.4s var(--ease); }
.panel__link:hover .panel__tag, .panel__link:focus-visible .panel__tag { opacity: 1; }
.panel__link:focus-visible { outline: 2px solid var(--white); outline-offset: -10px; }
@media (max-width: 1023px) {
  .gallery { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__track { display: flex; height: auto; }
  .panel { flex: 0 0 80vw; aspect-ratio: 3 / 5; scroll-snap-align: start; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .panel { flex-basis: 46vw; }
}

/* ═══ 04 · STORY — 4/10 · late sand, continuity ═══
   An editorial pair: the line on one side, the paragraph on the other, sharing a baseline. */
.story { background: var(--sand-dusk); padding-block: clamp(112px, 13vw, 200px); }
.story__inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2vw, 32px); align-items: end; }
.story__head { grid-column: 2 / span 5; }
.story__title { font-size: var(--fs-h2); line-height: 1.25; color: var(--charcoal); }
.story__body { grid-column: 8 / span 4; }
.story__text { font-size: var(--fs-lg); line-height: 2; color: var(--charcoal); max-width: 34ch; }
.story__reviews { grid-column: 2 / span 10; margin-block-start: var(--s8); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.review blockquote { margin: 0; font-size: var(--fs-lg); line-height: 1.8; }
.review__by { margin-block-start: var(--s2); font-size: var(--fs-small); color: var(--ink-soft); }
@media (max-width: 1023px) {
  .story__inner { display: block; }
  .story__text { margin-block-start: var(--s4); }
  .story__reviews { margin-block-start: var(--s6); }
  .reviews { grid-template-columns: 1fr; }
}

/* ═══ 09 · CLOSING — 8/10 · evening, Deep Wood ═══ */
.closing { background: radial-gradient(70% 90% at 50% 0%, rgb(74 52 40 / 0.5), transparent 72%), var(--wood); color: var(--white);
  padding-block: clamp(120px, 14vw, 216px); text-align: center; }
.closing__inner { display: flex; flex-direction: column; align-items: center; }
.closing__title { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.5rem); max-width: 18ch; }
.closing__signature { display: flex; flex-direction: column; align-items: center; gap: var(--s2); margin-block-end: var(--s7); }
.logo--closing { height: clamp(56px, 4.6vw, 72px); }
.closing__sig { font-size: var(--fs-body); color: var(--white-soft); line-height: 1.6; }
.closing__text { margin-block-start: var(--s3); font-size: var(--fs-lg); color: var(--ivory-soft); line-height: 1.8; }
.btn-store--closing { margin-block-start: var(--s5); min-height: 56px; padding: 0 2rem; }
.closing__note { margin-block-start: var(--s3); font-size: var(--fs-micro); color: var(--ivory-soft); }

/* ─── Footer ─── */
.site-footer { background: var(--wood); color: var(--ivory-soft); padding-block: var(--s7) var(--s5); border-block-start: 1px solid rgb(247 243 238 / 0.08); font-size: var(--fs-small); }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--s5); }
.site-footer__links a { display: inline-block; padding-block: 6px; text-decoration: none; }
.site-footer__links a:hover { color: var(--ivory); }
.site-footer__col .link-store { margin-block-start: 0; }
.site-footer__contact { margin-block-start: var(--s2); display: grid; gap: var(--s1); }
.site-footer__label { color: var(--ivory); margin-inline-end: 0.4em; }
.site-footer__wa { display: inline-flex; align-items: center; min-height: 44px; color: var(--ivory); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 85% / 100% 1px no-repeat; }
.site-footer .is-placeholder { color: var(--ivory-soft); }
.site-footer__base { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); margin-block-start: var(--s7); padding-block-start: var(--s3); border-block-start: 1px solid rgb(247 243 238 / 0.08); font-size: var(--fs-micro); }
.site-footer__notice { max-width: 64ch; }
@media (max-width: 767px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__base { flex-direction: column; }
}

/* ─── Scroll reveal: gated on JS having set up the observer; off for reduced motion ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
}
/* ─── Prototype review layer (content governance, Doc 05) ─── */
.review [data-status], .review [data-image-status] { position: relative; }
.review [data-status] { outline: 1px dashed var(--rv); outline-offset: 4px; }
.review [data-status="draft"] { --rv: #A8711F; }
.review [data-status="pending"] { --rv: #9A3F2E; } /* facts awaiting the owner's confirmation */
.review [data-status="placeholder"], .review [data-status="mock"] { --rv: #3F6E8C; }
.review [data-image-status] { --rv: #3F6E8C; }
.review [data-status]::after, .review [data-image-status]::after {
  content: attr(data-label); position: absolute; z-index: 3; pointer-events: none;
  inset-block-start: -1.05rem; inset-inline-start: 0;
  font: 500 10px/1.5 var(--font); color: #fff; background: var(--rv); padding: 1px 6px; border-radius: 2px; white-space: nowrap;
}
.review .media[data-status]::after, .review [data-image-status]::after { inset-block-start: 8px; inset-inline-start: 8px; }
.review .media[data-status] { outline-offset: -1px; }
.review-layer-note { display: none; }
.review .review-layer-note { grid-column: 2 / span 10; display: block; margin-block-start: var(--s6); max-width: 40rem;
  padding: var(--s2) var(--s3); border: 1px dashed #3F6E8C; color: #2F536B; font-size: var(--fs-small); line-height: 1.8; }
@media (max-width: 767px) { .review .review-layer-note { margin-inline-start: 0; } }

/* ─── WhatsApp — official glyph (Meta Brand Resource Center), unmodified, on a quiet ivory base ─── */
.wa-fab { position: fixed; z-index: 55; inset-inline-end: clamp(16px, 2.2vw, 32px); inset-block-end: clamp(16px, 2.2vw, 32px);
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; transition: transform 0.35s var(--ease); }
.wa-fab img { display: block; width: 48px; height: 48px; filter: drop-shadow(0 2px 6px rgb(33 26 23 / 0.28)); }
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab:focus-visible { outline: 2px solid var(--oud); outline-offset: 2px; }
@media (max-width: 767px) {
  /* On the first screen the WhatsApp disc shares a row with the store action instead of covering it. */
  .wa-fab { inset-inline-end: var(--gutter); inset-block-end: max(20px, calc(env(safe-area-inset-bottom) + 12px)); }
}
.site-footer { padding-block-end: calc(var(--s5) + 72px); }

.review-toggle { position: fixed; z-index: 60; inset-block-end: 16px; inset-inline-start: 16px;
  padding: 8px 14px; border: 1px solid rgb(41 38 36 / 0.2); border-radius: 999px; background: rgb(247 243 238 / 0.94);
  color: var(--charcoal); font-size: 12px; cursor: pointer; box-shadow: 0 2px 12px rgb(33 26 23 / 0.08); }
.review-toggle[hidden] { display: none; }

.toast { position: fixed; z-index: 80; inset-inline: 0; inset-block-end: 24px; margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
  padding: 12px 18px; background: var(--charcoal); color: var(--ivory); font-size: var(--fs-small); border-radius: 2px;
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: none; }
