/* CyberAtom POS — "Service de nuit" (dark).
   A real restaurant at night as the 3D stage, warm near-black surfaces taken from the logo's orange,
   WhatsApp green for every contact button; the logo's gradients and slanted "speed stripes" mark the details. */
:root {
  --page: #0e0b09;
  --page-2: #17120f;
  --surface: #1a1512;
  --line: rgb(255 240 225 / 10%);
  --ink: #f4efe9;
  --muted: #b2a79d;
  --soft: #8c8278;
  --wa: #0f7d43;            /* WhatsApp green, deep enough for white text (5.2:1) */
  --wa-hover: #13873f;
  --orange: #f7803f;
  --orange-hover: #f9934f;
  --orange-ink: #1c0d05;
  --orange-text: #f7914a;   /* orange for text on dark grounds */
  /* Logo gradients: the C (warm) and the lower stripe (cool). */
  --warm: linear-gradient(90deg, #f2563d, #f7914a 45%, #f3d65f);
  --warm-v: linear-gradient(180deg, #f3d65f, #f7914a 50%, #f2563d);
  --stripe-angle: 29deg;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Geist", "Segoe UI", system-ui, sans-serif;
  --h1: clamp(2.7rem, 5.4vw, 4.8rem);
  --h2: clamp(2.2rem, 4.2vw, 3.6rem);
  --h3: clamp(1.9rem, 2.8vw, 2.5rem);
  --gutter: clamp(20px, 6vw, 96px);
  --copy: min(540px, 44vw);
  --stage-x: 72vw;          /* horizontal centre of the 3D counter on wide screens */
  --header-h: 72px;
  --radius: 24px;
  --shadow: 0 40px 80px -40px rgb(0 0 0 / 70%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
  scrollbar-color: #3a2f28 var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink); caret-color: var(--orange-text);
  font: 400 1.0625rem/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgb(247 128 63 / 38%); color: #fff; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb { background: #3a2f28; border: 3px solid var(--page); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #57463b; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange-text); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--orange); color: var(--orange-ink); font-weight: 600; text-decoration: none; transition: top .2s var(--ease); }
.skip-link:focus { top: 16px; }

/* ---------- Stage: the fixed 3D café behind the story ---------- */
#stage { position: fixed; left: 0; top: 0; z-index: 0; width: 100vw; height: 100vh; height: 100lvh; opacity: 0; transition: opacity .9s var(--ease); pointer-events: none; }
body.stage-ready #stage { opacity: 1; }
body.stage-hidden #stage, body.stage-hidden .stage-glow { opacity: 0; }
/* Before the café loads: a soft warm light on the page. Once it is there, a light wash on the text
   side keeps the copy readable and a fade at the top settles the header. */
.stage-glow {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transition: opacity .9s var(--ease);
  background: radial-gradient(42vmax 30vmax at var(--stage-x) 46%, rgb(255 255 255 / 5%), transparent 70%);
}
body.room-ready .stage-glow {
  background:
    linear-gradient(90deg, rgb(14 11 9 / 94%) 0%, rgb(14 11 9 / 78%) 32%, rgb(14 11 9 / 0%) 56%),
    linear-gradient(180deg, rgb(14 11 9 / 70%) 0%, transparent 16%);
}
.stage-fallback { display: none; }
.no-webgl .stage-fallback { display: block; width: min(600px, 46vw); height: auto; margin-inline-start: auto; border-radius: 18px; box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 20; display: flex; align-items: center; gap: 28px; height: var(--header-h);
  padding: 0 var(--gutter); padding-top: env(safe-area-inset-top); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s;
}
.site-header.scrolled { background: rgb(14 11 9 / 95%); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 700 1.32rem/1 var(--display); letter-spacing: -0.03em; }
.brand img { width: auto; height: 40px; }
.site-header nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-header nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--muted); font-size: .95rem; text-decoration: none; transition: color .2s, background .2s; }
.site-header nav a:hover { color: var(--ink); background: rgb(255 240 225 / 6%); }
.site-header nav a[aria-current] { color: var(--ink); }
.site-header nav a[aria-current]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px; background: var(--warm); }

/* ---------- Language switch ---------- */
.lang-switch { display: flex; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 5%); }
.lang-switch button {
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 .86rem/1 var(--text); cursor: pointer; touch-action: manipulation; transition: background .2s, color .2s;
}
.lang-switch button[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--text); font-size: 1rem; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--page); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: var(--wa); color: #fff; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 60%); transition: background .2s, scale .15s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.button:hover { background: var(--wa-hover); }
.button:active { scale: .98; }
.button svg { flex: none; width: 20px; height: 20px; fill: currentColor; }
.label-short { display: none; }
.button-small { min-height: 44px; padding: 0 18px; font-size: .95rem; box-shadow: none; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(255 240 225 / 30%); text-underline-offset: 6px; transition: text-decoration-color .2s; }
.text-link:hover { text-decoration-color: var(--orange); }

/* ---------- Chapters (each one is a keyframe of the 3D scene) ---------- */
main { position: relative; z-index: 1; }
.chapter { position: relative; display: flex; align-items: center; gap: 48px; min-height: 110vh; padding: 120px var(--gutter); }
.copy { width: var(--copy); flex: none; }
.lead { margin-top: 22px; color: var(--muted); font-size: 1.1875rem; line-height: 1.6; max-width: 34em; }

.hero { min-height: 100vh; min-height: 100svh; padding-top: calc(var(--header-h) + 56px); }
.hero h1 { font-size: var(--h1); line-height: 1; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.promise { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 34em; color: var(--ink); font-weight: 500; }
.promise::before { content: ""; display: inline-block; width: 4px; height: 16px; margin-inline-end: 12px; vertical-align: -2px; border-radius: 2px; background: var(--warm-v); transform: rotate(var(--stripe-angle)); }

h2 { font-size: var(--h2); line-height: 1.02; }
.story-intro, .packs-intro { min-height: 90vh; }

/* Panels: white cards in the left column, the 3D café on the right. */
.panel {
  width: var(--copy); flex: none; padding: clamp(26px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius);
  background: rgb(26 21 18 / 90%); box-shadow: var(--shadow);
}
.panel h3 { font-size: var(--h3); line-height: 1.05; }
.panel > p { margin-top: 12px; color: var(--muted); font-size: 1.0625rem; }
.panel ul { display: grid; margin-top: 22px; }
.panel li { position: relative; padding-block: 11px; padding-inline: 30px 0; border-top: 1px solid var(--line); line-height: 1.45; }
/* List marker: one of the logo's slanted stripes. */
.panel li::before { content: ""; position: absolute; inset-inline-start: 9px; top: 15px; width: 4px; height: 15px; border-radius: 2px; background: var(--warm-v); transform: rotate(var(--stripe-angle)); }
.panel li small { color: var(--muted); font-size: .85rem; }

/* ---------- Packs: each card says what it adds; the added items stand out ---------- */
.pack { min-height: 125vh; }
.panel > p.pack-adds { color: var(--ink); }
.pack .included li { padding-top: 9px; padding-bottom: 9px; color: var(--muted); }
.pack .included li::before { top: 13px; background: #4b3f37; }
.pack .included li.is-new { color: var(--ink); font-weight: 600; }
.pack .included li.is-new::before { background: var(--warm-v); }
.pack .included li small { margin-inline-start: 6px; font-weight: 400; }
.pack .button { width: 100%; margin-top: 26px; }
.pack-featured .panel { border: 2px solid transparent; background: linear-gradient(160deg, #2a1d17, #17120f) padding-box, var(--warm) border-box; }
.option { margin-top: 16px; padding: 13px 16px; border-radius: 14px; background: rgb(255 255 255 / 5%); color: var(--ink); font-size: .95rem; line-height: 1.45; }
.option strong { margin-inline-end: 6px; color: var(--orange-text); }
.option small { color: var(--muted); }

/* ---------- Rails: which topic / pack is on stage, centred above the 3D counter ---------- */
.rail {
  position: sticky; top: calc(var(--header-h) + 22px); z-index: 3; display: flex; gap: 6px; width: max-content; height: 0;
  margin: 0; margin-inline-start: var(--stage-x); transform: translateX(-50%); overflow: visible;
  transition: opacity .4s;
}
.js .rail:not(.is-visible), .rail.is-leaving, body.stage-hidden .rail, .no-webgl .rail { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .4s, visibility 0s .4s; }
.rail a {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: rgb(14 11 9 / 82%); color: var(--muted); font-size: .92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: color .3s, border-color .3s, background .3s;
}
.rail a:hover { color: var(--ink); }
.rail a.is-active { color: var(--orange-ink); background: var(--warm); border-color: transparent; }
.rail .short { display: none; }
.rail-numbered { counter-reset: pack; }
.rail-numbered li { counter-increment: pack; }
.rail-numbered a { padding-inline-start: 9px; }
.rail-numbered a::before { content: counter(pack); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(255 240 225 / 7%); font-size: .8rem; }
.rail-numbered a.is-active::before { background: rgb(28 13 5 / 12%); }

/* ---------- Why the original (zellige band) ---------- */
.maroc {
  --ink: #16120f; --muted: #5b554f; --line: rgb(22 18 15 / 12%); color-scheme: light;
  position: relative; z-index: 2; padding: clamp(96px, 12vw, 170px) var(--gutter); background-color: #f1f1ef; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%231a1510' stroke-opacity='.1' stroke-width='1.2'%3E%3Cpath d='M48 12l10 26 26 10-26 10-10 26-10-26-26-10 26-10z'/%3E%3Cpath d='M48 26l15.6 6.4L70 48l-6.4 15.6L48 70l-15.6-6.4L26 48l6.4-15.6z'/%3E%3Ccircle cx='48' cy='48' r='6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
}
.maroc::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(241 241 239 / 70%), rgb(241 241 239 / 88%)); pointer-events: none; }
.maroc ::selection { background: rgb(247 128 63 / 30%); color: var(--ink); }
.maroc-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); }
.maroc-head { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
.maroc-mark { width: auto; height: 76px; margin-bottom: 28px; }
.maroc .lead { margin-top: 0; }
.maroc dl { display: grid; margin: 36px 0 0; }
.maroc dl > div { padding: 22px 0; border-top: 1px solid var(--line); }
.maroc dt { font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
.maroc dd { margin: 6px 0 0; color: var(--muted); }

/* ---------- The three packs side by side ---------- */
.compare { position: relative; z-index: 2; padding: clamp(96px, 11vw, 160px) var(--gutter); background: var(--page-2); }
.compare-inner { max-width: 980px; }
.table-scroll { margin-top: 44px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { padding: 16px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font: 700 1.15rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.compare tbody th { text-align: start; font-weight: 500; color: var(--ink); padding-inline-start: 0; }
.compare .col-featured { background: rgb(247 128 63 / 7%); }
.compare thead .col-featured { border-radius: 14px 14px 0 0; color: var(--orange-text); }
.compare i { display: inline-block; vertical-align: middle; }
.compare i.yes { width: 24px; height: 24px; border-radius: 50%; background: var(--warm); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 7.4-7.4 1.8 1.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-1.6 17.2-5-5 1.8-1.8 3.2 3.2 7.4-7.4 1.8 1.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.compare i.no { width: 14px; height: 2px; border-radius: 2px; background: #4b3f37; }

/* ---------- Contact (the full setup stays on stage beside it) ---------- */
.contact-body { position: relative; width: var(--copy); flex: none; }
.contact .lead { max-width: 30em; }
.contact .button { margin-top: 36px; }
.contact-lines { display: grid; gap: 10px; margin-top: 36px; }
.contact-lines li { display: grid; gap: 2px; }
.contact-lines span { color: var(--muted); font-size: .9rem; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 44px; width: max-content; max-width: 100%; font: 600 1.35rem/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--orange-text); }
.contact-more { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.contact-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-underline-offset: 5px; text-decoration-color: rgb(255 240 225 / 30%); }
.contact-more a:hover { text-decoration-color: var(--orange); }

.site-footer { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 28px var(--gutter) calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--page); color: var(--muted); font-size: .9rem; }
.site-footer .brand { color: var(--ink); font-size: 1.1rem; }
.site-footer .brand img { height: 32px; }
.footer-note { margin-inline-start: auto; }

/* ---------- Header on narrower screens ---------- */
@media (max-width: 1080px) {
  .site-header { gap: 12px; }
  .site-header nav { display: none; }
  .lang-switch { margin-inline-start: auto; }
}

/* ---------- Short laptop screens (1366×768, 1280×720): tighter cards so each fits ---------- */
@media (min-width: 861px) and (max-height: 820px) {
  :root { --h1: clamp(2.5rem, 4.6vw, 4rem); --h3: clamp(1.7rem, 2.4vw, 2.1rem); }
  .chapter { padding-top: 96px; padding-bottom: 72px; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .lead { margin-top: 16px; font-size: 1.0625rem; }
  .actions { margin-top: 26px; }
  .promise { margin-top: 26px; }
  .panel { padding: 24px 28px; }
  .panel li { padding-top: 7px; padding-bottom: 7px; }
  .panel li::before { top: 11px; }
  .pack .button { margin-top: 18px; }
  .option { margin-top: 12px; padding: 10px 14px; }
}

/* ---------- Phones and tablets in portrait: the counter sits in the band above, cards below ----------
   main.js frames the 3D in the band between the header and 46 % of the screen and lines each
   card up just under it, so a card never covers the devices while it is being read. */
@media (max-width: 860px) and (orientation: portrait) {
  :root { --copy: 100%; --stage-x: 50vw; --header-h: 64px; --h1: clamp(2rem, 8.6vw, 2.75rem); --h2: clamp(1.8rem, 7.4vw, 2.4rem); --h3: clamp(1.6rem, 6.6vw, 2rem); }
  body.room-ready .stage-glow { background: linear-gradient(180deg, rgb(14 11 9 / 88%) 0%, rgb(14 11 9 / 35%) 12%, transparent 20%, transparent 44%, rgb(14 11 9 / 80%) 62%); }
  .site-header { padding: 0 16px; padding-top: env(safe-area-inset-top); }
  .brand { font-size: 1.2rem; }
  .brand img { height: 36px; }
  .chapter, .pack, .contact, .story-intro, .packs-intro { display: block; min-height: 0; padding: 44svh 16px 6svh; }
  .hero { min-height: 0; padding-top: 44svh; }
  .card {
    width: 100%; max-width: 620px; margin-inline: auto; padding: 24px 22px 26px; border: 1px solid var(--line); border-radius: var(--radius);
    background: rgb(24 19 16 / 95%); box-shadow: 0 -18px 50px -24px rgb(0 0 0 / 70%);
  }
  .pack-featured .panel { border: 2px solid transparent; background: linear-gradient(160deg, #2a1d17, #17120f) padding-box, var(--warm) border-box; }
  .hero h1 { line-height: 1.02; }
  .lead { margin-top: 14px; font-size: 1rem; line-height: 1.55; }
  .panel > p { font-size: 1rem; }
  .panel li { padding-block: 9px; padding-inline: 28px 0; font-size: .98rem; }
  .panel li::before { top: 13px; }
  .actions { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 22px; }
  .actions .text-link { align-self: center; }
  .promise { margin-top: 16px; font-size: .95rem; }
  .card .button { width: 100%; padding: 0 16px; }
  .pack .button, .contact .button { margin-top: 22px; }
  #pack-allin { padding-bottom: 14svh; }
  .contact { padding-bottom: 40px; }
  .contact-lines a { font-size: 1.2rem; }
  .rail { top: calc(var(--header-h) + 10px); gap: 4px; }
  .rail a { padding: 0 13px; font-size: .86rem; }
  .rail .long { display: none; }
  .rail .short { display: inline; }
  .rail-numbered a { gap: 6px; padding-block: 0; padding-inline: 7px 13px; }
  .rail-numbered a::before { width: 23px; height: 23px; font-size: .75rem; }
  .maroc-inner { grid-template-columns: 1fr; }
  .maroc-head { position: static; }
  .maroc-mark { height: 60px; margin-bottom: 20px; }
  .compare th, .compare td { padding: 13px 6px; font-size: .92rem; }
  .compare thead th { font-size: .98rem; }
  .compare tbody th { padding-right: 10px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .footer-note { margin-inline-start: 0; }
  .no-webgl .chapter, .no-webgl .pack, .no-webgl .contact, .no-webgl .story-intro, .no-webgl .packs-intro { padding-top: 32px; }
  .no-webgl .hero { padding-top: calc(var(--header-h) + 24px); }
  .no-webgl .stage-fallback { width: 100%; max-width: 620px; margin: 20px auto 0; }
}

/* Very narrow phones: the hero button uses its short label. */
@media (max-width: 400px) {
  .label-long { display: none; }
  .label-short { display: inline; }
}

/* Short landscape screens (phones turned sideways): keep the side-by-side layout, just tighter;
   the rails are hidden there because they would sit on the devices. */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --header-h: 60px; --h1: clamp(2rem, 5vw, 3rem); }
  .rail { display: none; }
  .chapter { padding: 84px var(--gutter); }
  .hero { padding-top: 84px; }
  .lead { font-size: 1rem; }
  .brand img { height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Languages: Arabic font and right-to-left ---------- */
.i18n-pending body { visibility: hidden; }
:root[lang="ar"] { --display: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif; --text: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] .brand, [lang="ar"] .maroc dt, [lang="ar"] .compare thead th, [lang="ar"] .contact-lines a { letter-spacing: 0; }
[lang="ar"] body { line-height: 1.75; }
[lang="ar"] h1 { line-height: 1.2; }
[lang="ar"] h2, [lang="ar"] .panel h3 { line-height: 1.25; }
[lang="ar"] .lead { line-height: 1.8; }
.brand span, .contact-lines a, [lang="ar"] .lang-switch button[lang="fr"], [lang="ar"] .lang-switch button[lang="en"] { font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; }
.lang-switch button[lang="fr"], .lang-switch button[lang="en"] { font-family: "Geist", "Segoe UI", system-ui, sans-serif; }
/* In Arabic the text column is on the right and the 3D counter on the left (main.js mirrors the camera). */
[dir="rtl"] { --stage-x: 28vw; }
[dir="rtl"] .rail { transform: translateX(50%); }
[dir="rtl"] .panel li::before, [dir="rtl"] .promise::before { transform: rotate(calc(-1 * var(--stripe-angle))); }
[dir="rtl"] body.room-ready .stage-glow {
  background:
    linear-gradient(270deg, rgb(14 11 9 / 94%) 0%, rgb(14 11 9 / 78%) 32%, rgb(14 11 9 / 0%) 56%),
    linear-gradient(180deg, rgb(14 11 9 / 70%) 0%, transparent 16%);
}
@media (max-width: 860px) and (orientation: portrait) {
  [dir="rtl"] { --stage-x: 50vw; }
  [dir="rtl"] body.room-ready .stage-glow { background: linear-gradient(180deg, rgb(14 11 9 / 88%) 0%, rgb(14 11 9 / 35%) 12%, transparent 20%, transparent 44%, rgb(14 11 9 / 80%) 62%); }
}
/* Phones: the header holds the logo, the language switch and a round WhatsApp button. */
@media (max-width: 520px) {
  .site-header { gap: 8px; }
  .site-header .button-small { width: 44px; padding: 0; }
  .site-header .button-small span { display: none; }
  .lang-switch button { min-width: 44px; padding: 0 4px; }
}
@media (max-width: 400px) {
  .brand { min-width: 44px; }
  .brand span { display: none; }
}
