/* Masar — the landing page, the second edition in the Mural design system (mural.design.md): the same tokens — black
   bands, a light serif display in dim grey, the jade pill as the single CTA voltage, pastel stickies only on product
   moments, radii 6/8 · 24 · pill — taken further: the brand's path drawn behind the hero, the product on a lit stage, a
   moving wall of authorities, a bento of real screens, hairline ledgers instead of card grids, one person's journey as
   a single line. Logical properties everywhere: the Arabic page mirrors without a second stylesheet. Two themes: the
   editorial bands AND the hero with its navigation follow the visitor's system or their choice (owner 2026-11-15: the
   toggle must show at the top of the page) — a white hero in light, the black one in dark; the other black bands are
   black in both, so the page still turns on its black-to-white flip.
   Its markup: designs/mural-2/page.html. */

@font-face { font-family: "MasarRiyal"; font-weight: 100 900; font-display: swap; src: url("/site-assets/fonts/masar-riyal.woff2") format("woff2"); unicode-range: U+20C1; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/site-assets/fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("/site-assets/fonts/newsreader-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/site-assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 300; font-display: swap; src: url("/site-assets/fonts/thmanyah-serif-display-300.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 400; font-display: swap; src: url("/site-assets/fonts/thmanyah-serif-display-400.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 300; font-display: swap; src: url("/site-assets/fonts/thmanyah-sans-300.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 400; font-display: swap; src: url("/site-assets/fonts/thmanyah-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 500 600; font-display: swap; src: url("/site-assets/fonts/thmanyah-sans-500.woff2") format("woff2"); }

:root {
  /* brand — mural.design.md; the same in both themes */
  --primary: #00c27a;          /* jade: the CTA voltage, never a panel */
  --surface-brand: #b4f5c8;    /* mint: AI badge, sticky notes, ticks */
  --ink: #000000;              /* the black bands */
  --canvas: #ffffff;           /* text on the black bands */
  --ink-tertiary: #8c8c8c;     /* the dim-grey display on black */
  --border-inverse: #4f5457;
  --sticky-mint: var(--surface-brand);
  --sticky-blush: #ffd9d3;
  --sticky-lemon: #fff2a8;
  --sticky-lavender: #e3dcff;
  --sticky-sky: #d2e9ff;

  /* theme — the editorial bands (light) */
  --page: #ffffff;
  --page-soft: #eeeeee;
  --card: #ffffff;
  --text: #000000;
  --text-2: #333333;
  --text-muted: #626262;
  --line: #dce1e5;
  --line-hover: #b8c1cc;
  --well: #eeeeee;
  --shot-bg: #f4f8f5;
  --card-shadow: 0 0 1px 0 rgba(11, 41, 70, .32), 0 24px 20px 0 rgba(42, 82, 121, .08);
  --hover-shadow: 0 12px 12px rgba(0, 0, 0, .12);
  color-scheme: light;

  --r-sm: 6px; --r-md: 8px; --r-xl: 24px; --r-pill: 9999px;
  --s-xs: 4px; --s-sm: 8px; --s-base: 16px; --s-md: 24px; --s-lg: 32px; --s-xl: 48px; --s-2xl: 80px; --s-3xl: 128px;

  --gutter: clamp(16px, 5vw, 80px);
  --wide: 90rem;
  --column: 64rem;

  --font-display: "MasarRiyal", "Newsreader", "Thmanyah Serif Display", "Times New Roman", serif;
  --font-sans: "MasarRiyal", "Inter", "Thmanyah Sans", Arial, sans-serif;
  --track-xl: -0.05em;  /* -4px at 80px */
  --track-lg: -0.04em;  /* -2.8px at 70px */
  --track-eyebrow: 2.45px;
}
/* Dark: the editorial bands go near-black, cards lift a step, text goes warm white; jade, mint and the stickies stay. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b0b0b; --page-soft: #131313; --card: #171717; --text: #f3f3f1; --text-2: #c9c9c6; --text-muted: #9a9a96;
    --line: #2a2a2a; --line-hover: #444444; --well: #242424; --shot-bg: #1b1d1c;
    --card-shadow: 0 0 0 1px #222222, 0 24px 30px rgba(0, 0, 0, .45); --hover-shadow: 0 16px 24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0b0b0b; --page-soft: #131313; --card: #171717; --text: #f3f3f1; --text-2: #c9c9c6; --text-muted: #9a9a96;
  --line: #2a2a2a; --line-hover: #444444; --well: #242424; --shot-bg: #1b1d1c;
  --card-shadow: 0 0 0 1px #222222, 0 24px 30px rgba(0, 0, 0, .45); --hover-shadow: 0 16px 24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
/* Arabic joins its letters — never track it; give it the line height its marks need. */
:root[lang="ar"] {
  --font-display: "MasarRiyal", "Thmanyah Serif Display", "Newsreader", serif;
  --font-sans: "MasarRiyal", "Thmanyah Sans", "Inter", Arial, sans-serif;
  --track-xl: 0; --track-lg: 0; --track-eyebrow: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--font-sans); font-weight: 300; font-size: 16px; line-height: 28px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-md); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.display-xl, .display-lg, .display-md, .display-sm {
  font-family: var(--font-display); font-weight: 300; margin: 0; text-wrap: balance;
}
.display-xl { font-size: clamp(2.75rem, 1.1rem + 6.2vw, 6rem); line-height: 1.04; letter-spacing: var(--track-xl); }
.display-lg { font-size: clamp(2.375rem, 1.3rem + 4.2vw, 4.375rem); line-height: 1.04; letter-spacing: var(--track-lg); }
.display-md { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.375rem); line-height: 1.2; }
.display-sm { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.2; }
[lang="ar"] .display-xl { line-height: 1.32; }
[lang="ar"] .display-lg { line-height: 1.3; }
[lang="ar"] .display-md, [lang="ar"] .display-sm { line-height: 1.4; }
.heading-md { font-size: 22px; line-height: 33px; font-weight: 300; margin: 0; }
.body-lg { font-size: 18px; line-height: 27px; }
[lang="ar"] .body-lg { line-height: 31px; }
.body-sm { font-size: 14px; line-height: 21px; }
.label { font-size: 16px; line-height: 24px; font-weight: 500; }
.eyebrow {
  display: block; font-size: 14px; line-height: 21px; font-weight: 300; text-transform: uppercase;
  letter-spacing: var(--track-eyebrow); color: var(--text-muted); margin: 0 0 var(--s-md);
}
[lang="ar"] .eyebrow { font-size: 15px; font-weight: 400; }
.band-black .eyebrow { color: var(--ink-tertiary); }
.mini-label { display: block; font-size: 13px; line-height: 18px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
[lang="ar"] .mini-label { letter-spacing: 0; font-size: 14px; }
.lead { max-width: 44rem; color: var(--text-2); margin: var(--s-md) 0 0; }
.band-black .lead { color: var(--canvas); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.column { max-width: var(--column); }
.band { padding-block: var(--s-2xl); }
.band-black { background: var(--ink); color: var(--canvas); }
.band-soft { background: var(--page-soft); }
.section-head { margin-block-end: var(--s-xl); }
.band-black .display-lg, .band-black .display-xl { color: var(--ink-tertiary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 8px 18px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-size: 16px; line-height: 24px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-primary:hover { box-shadow: var(--hover-shadow); transform: translateY(-1px); }
.btn-lg { height: 48px; padding-inline: 24px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 400; text-decoration: none;
  border-block-end: 1px solid currentColor; padding-block-end: 2px; width: fit-content;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }

/* ---------- event bar + nav ---------- */
.event-bar { background: var(--primary); color: var(--ink); font-size: 14px; line-height: 21px; text-align: center; padding: 8px var(--gutter); font-weight: 400; }
.event-bar a { font-weight: 500; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .78); color: var(--canvas); border-block-end: 1px solid #1a1a1a; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); margin-block-end: -65px; }  /* the hero runs under it */
.nav-inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--canvas); }
.brand svg { width: 28px; height: 28px; color: var(--primary); }
.brand-word { font-family: var(--font-display); font-size: 26px; font-weight: 300; letter-spacing: -0.02em; }
[lang="ar"] .brand-word { letter-spacing: 0; font-size: 28px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav-link { color: var(--canvas); text-decoration: none; font-size: 16px; line-height: 24px; font-weight: 300; padding: 8px 14px; border-radius: var(--r-md); }
.nav-link:hover { background: #1c1c1c; }
.nav-links .btn { margin-inline-start: 6px; }
/* the language: a globe and the language's own name — Arabic is spoken in all eight countries, so never one flag */
.nav-lang {
  display: inline-flex; align-items: center; gap: 7px; color: var(--canvas); text-decoration: none; padding: 7px 12px;
  border-radius: var(--r-pill); border: 1px solid var(--border-inverse); font-size: 15px; line-height: 20px; margin-inline-start: 6px;
}
.nav-lang svg { width: 16px; height: 16px; color: var(--ink-tertiary); }
.nav-lang:hover { border-color: var(--ink-tertiary); }
.nav-lang [lang="ar"] { font-family: "Thmanyah Sans", sans-serif; font-weight: 400; }
/* the theme: a moon in light mode, a sun in dark mode */
.nav-theme {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--border-inverse); background: transparent; color: var(--canvas);
}
.nav-theme:hover { border-color: var(--ink-tertiary); }
.nav-theme svg { width: 17px; height: 17px; grid-area: 1 / 1; transition: transform .35s ease, opacity .25s ease; }
.nav-theme .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .nav-theme .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .nav-theme .i-sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-theme .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
  :root:not([data-theme="light"]) .nav-theme .i-sun { opacity: 1; transform: none; }
}
.nav-menu { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--border-inverse); border-radius: var(--r-md); width: 40px; height: 40px; cursor: pointer; color: var(--canvas); }
.nav-menu svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; inset-inline: 0; top: 64px; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-block-end: 1px solid #1c1c1c; }
  .nav.open .nav-links { display: flex; }
  .nav-menu { display: inline-grid; place-items: center; }
  .nav-links .btn, .nav-lang { margin-inline-start: 0; margin-block-start: 8px; width: fit-content; }
  .nav-link { padding-block: 12px; }
}

/* ---------- hero: the path behind the words, the product on a lit stage ---------- */
.hero { position: relative; padding-block: calc(65px + clamp(64px, 8vw, 112px)) 0; overflow: hidden; isolation: isolate; }
/* a whiteboard's dot grid, fading out before the product */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(#242424 1px, transparent 1px); background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 62%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 62%);
}
/* Masar's mark — two dots joined by a winding path — drawn once, large, behind the headline */
/* It has a column of its own beside the words, above the figures — so it never runs through either, at any width. */
/* Exactly the logo, forty times larger: the same path, the same two circles in the same places. */
.hero-path { display: block; width: min(100%, 24rem); aspect-ratio: 780 / 860; justify-self: end; pointer-events: none; opacity: .6; }
@media (max-width: 1099px) { .hero-path { position: absolute; z-index: -1; inset-block-start: 72px; inset-inline-end: 4%; width: 70%; opacity: .22; } }
/* The drawing is Masar's mark: it keeps the logo's own direction in both languages — a ring where it starts (bottom
   left), a filled dot where it ends (top right) — never mirrored. */
.hero-path .trail, .closing-path .trail { stroke: var(--primary); stroke-width: 1.5; stroke-linecap: round; }
.hero-path { overflow: visible; }
.hero-path .runner { fill: var(--primary); opacity: 0; }
.hero-path .ring { stroke: var(--h-path); stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hero-path .d2 { transform-box: fill-box; transform-origin: center; fill: var(--primary); }
.hero-path .trail { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s cubic-bezier(.6, 0, .2, 1) .3s forwards; }
.hero-path .dot { stroke: var(--primary); stroke-width: 1.5; opacity: 0; animation: appear .6s ease forwards; }
.hero-path .d1 { animation-delay: .1s; }
.hero-path .d2 { animation-delay: 3.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
.hero-grid { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 1100px) { .hero-grid { grid-template-columns: minmax(0, 1fr) clamp(18rem, 32vw, 36rem); gap: var(--s-xl); align-items: stretch; } }
.hero-side { display: grid; gap: var(--s-lg); align-content: space-between; }
.hero h1 { color: var(--ink-tertiary); }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--canvas); }
.hero .lead { font-size: 18px; line-height: 27px; max-width: 38rem; color: #d6d6d3; }
[lang="ar"] .hero .lead { line-height: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md); margin-block-start: var(--s-lg); }
.hero-cta .link-arrow { color: var(--canvas); }
/* where Masar will be met: a quiet pill with a live dot */
.summit {
  display: inline-flex; align-items: center; gap: 10px; margin-block-end: var(--s-lg); padding: 6px 14px 6px 12px; max-width: 100%;
  border: 1px solid var(--border-inverse); border-radius: var(--r-pill); background: rgba(255, 255, 255, .04);
  color: var(--canvas); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 400;
  transition: border-color .2s ease, background-color .2s ease;
}
[dir="rtl"] .summit { padding: 6px 12px 6px 14px; }
a.summit:hover { border-color: var(--primary); background: rgba(0, 194, 122, .08); }
.summit i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.summit i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--primary); animation: ping 2.4s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.summit svg { width: 14px; height: 14px; color: var(--ink-tertiary); flex: none; }
[dir="rtl"] .summit svg { transform: scaleX(-1); }
/* the product in four figures, beside the words */
.hero-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: var(--s-lg) var(--s-xl); justify-content: start; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { font-family: "Newsreader", var(--font-display); font-weight: 300; font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--canvas); }
.hero-stats dd { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-tertiary); max-width: 11rem; }
.hero-stage { position: relative; margin-block-start: clamp(56px, 7vw, 96px); }
/* jade light falling on the stage from above — the only glow on the page */
.hero-stage::before {
  content: ""; position: absolute; z-index: -1; inset: -14% 4% 30%; pointer-events: none;
  background: radial-gradient(52% 60% at 50% 30%, rgba(0, 194, 122, .26), transparent 72%); filter: blur(24px);
}
.hero-stage .frame { box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 50px 100px rgba(0, 0, 0, .7); }
.hero-stage .sticky { position: absolute; z-index: 2; max-width: 15rem; box-shadow: var(--card-shadow); }
/* Placed in the dashboard's empty space, under the cards they speak about. */
.hero-stage .sticky.s1 { inset-inline-start: 76%; top: 56%; transform: rotate(2deg); }
.hero-stage .sticky.s2 { inset-inline-end: 14%; top: -38px; transform: rotate(-2deg); }
.hero-stage .sticky.s3 { inset-inline-start: 53%; top: 57%; transform: rotate(-2.5deg); }
@media (max-width: 1100px) { .hero-stage .sticky { display: none; } }

/* browser frame around a real screenshot */
.frame { background: var(--card); border-radius: var(--r-xl); padding: 10px; border: 1px solid var(--line); }
.band-black .frame { border-color: #262626; background: #0d0d0d; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.band-black .frame-bar i { background: #333; }
.frame-bar span { margin-inline-start: 10px; font-size: 13px; color: var(--ink-tertiary); }
.frame img { border-radius: var(--r-md); width: 100%; background: var(--shot-bg); }

/* sticky notes — decoration on product moments; paper colours, always dark ink */
.sticky { border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 400; }
.sticky b { display: block; font-weight: 600; margin-block-end: 2px; }
.sticky.mint { background: var(--sticky-mint); }
.sticky.blush { background: var(--sticky-blush); }
.sticky.lemon { background: var(--sticky-lemon); }
.sticky.lavender { background: var(--sticky-lavender); }
.sticky.sky { background: var(--sticky-sky); }

/* the authorities, passing by: two copies of the row, each moving by its own width */
.wall { border-block-start: 1px solid #1f1f1f; margin-block-start: var(--s-2xl); padding-block: var(--s-xl); }
.wall .eyebrow { margin-block-end: var(--s-lg); }
.wall-track {
  display: flex; overflow: hidden; direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.wall-row { display: flex; flex: none; align-items: baseline; gap: clamp(40px, 6vw, 88px); padding-inline-end: clamp(40px, 6vw, 88px); animation: wall 48s linear infinite; }
.wall-track:hover .wall-row { animation-play-state: paused; }
@keyframes wall { to { transform: translateX(-100%); } }
.wall-item { display: inline-flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.wall-item strong { font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; color: var(--canvas); letter-spacing: -0.01em; }
.wall-item span { font-size: 14px; line-height: 20px; color: var(--ink-tertiary); }

/* ---------- what Masar holds to ---------- */
.manifesto { border-block-start: 1px solid #1f1f1f; padding-block: clamp(80px, 10vw, 144px); }
.manifesto-grid { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); }
.manifesto h2 span { display: block; }
.manifesto h2 span:last-child { color: var(--canvas); }
.manifesto .lead { margin: 0; max-width: 34rem; justify-self: end; color: #c9c9c6; border-inline-start: 1px solid var(--primary); padding-inline-start: var(--s-md); }

/* ---------- new in Masar: a bento of real screens ---------- */
.pill-label { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-brand); color: var(--ink); border-radius: var(--r-sm); padding: 4px 10px; font-size: 14px; line-height: 20px; font-weight: 500; margin-block-end: var(--s-md); }
.pill-label svg { width: 14px; height: 14px; }
.bento { display: grid; gap: var(--s-md); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--card-shadow);
  padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: var(--s-md); min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cell:hover { border-color: var(--line-hover); box-shadow: var(--card-shadow), var(--hover-shadow); }
.cell-words { display: grid; gap: 12px; align-content: start; }
.cell-words h3 { max-width: 22ch; }
.cell-words p { margin: 0; color: var(--text-2); max-width: 46ch; }
.cell .thumb {
  display: block; width: 100%; padding: 0; margin-block-start: auto; cursor: zoom-in; overflow: hidden;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--shot-bg);
}
.cell .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; transition: transform .5s ease; }
[dir="rtl"] .cell .thumb img { object-position: right top; }
.cell .thumb:hover img { transform: scale(1.015); }
@media (min-width: 900px) {
  .cell.wide { grid-column: 1 / -1; }
  .cell.wide .thumb img { aspect-ratio: auto; }
}
@media (min-width: 1200px) {
  .cell.wide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-xl); align-items: center; }
  .cell.wide .thumb { margin: 0; }
}

/* ---------- Why Masar: the problem, then seven reasons with their proof ---------- */
.why-problem { display: grid; gap: var(--s-md); grid-template-columns: minmax(0, 1fr); margin-block-end: var(--s-2xl); }
@media (min-width: 1000px) { .why-problem { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.today { border: 1px dashed var(--line-hover); border-radius: var(--r-xl); padding: var(--s-lg); display: grid; gap: var(--s-md); align-content: start; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 16px 14px; }
.notes .sticky { box-shadow: var(--card-shadow); font-size: 15px; line-height: 21px; position: relative; min-height: 4.4rem; display: flex; align-items: center; }
.notes li:nth-child(3n + 1) { transform: rotate(-2deg); }
.notes li:nth-child(3n + 2) { transform: rotate(1.5deg) translateY(4px); }
.notes li:nth-child(3n) { transform: rotate(-0.8deg); }
/* crossed out like a note that's been dealt with: a strikethrough that follows each line of the words */
.notes .sticky { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .38); text-decoration-thickness: 1.5px; }
.answer { background: var(--ink); color: var(--canvas); border-radius: var(--r-xl); padding: var(--s-lg); display: grid; gap: var(--s-md); align-content: space-between; }
.answer .mini-label { color: var(--ink-tertiary); }
.answer .display-sm { color: var(--canvas); margin: 0; }
.reasons { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .reasons { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-2xl); } }
.reason-index { display: grid; gap: 12px; }
@media (min-width: 1100px) { .reason-index { position: sticky; top: 96px; } }
.reason-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (max-width: 1099px) {
  .reason-index ul { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 6px; scrollbar-width: thin; }
  .reason-index li { flex: none; }
}
.reason-index a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); text-decoration: none;
  color: var(--text-muted); font-size: 15px; line-height: 21px; font-weight: 400; border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease;
}
@media (max-width: 1099px) { .reason-index a { border-color: var(--line); white-space: nowrap; } }
.reason-index a svg { width: 17px; height: 17px; flex: none; }
.reason-index a:hover { color: var(--text); background: var(--well); }
.reason-index a[aria-current="true"] { background: var(--text); color: var(--page); border-color: var(--text); }
.reason-list { display: grid; gap: 0; }
.reason { display: grid; gap: var(--s-base); padding-block: var(--s-xl); border-block-start: 1px solid var(--line); scroll-margin-top: 88px; }
.reason:first-child { padding-block-start: 0; border-block-start: 0; }
.reason-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.reason-eyebrow svg { width: 16px; height: 16px; }
.reason-eyebrow b { font-family: "Newsreader", var(--font-display); font-weight: 300; font-size: 22px; letter-spacing: 0; color: var(--text); margin-inline-end: 6px; }
.reason h3 { max-width: 24ch; }
.reason-story { margin: 0; color: var(--text-2); max-width: 46rem; font-size: 17px; line-height: 29px; }
[lang="ar"] .reason-story { line-height: 31px; }
.features { list-style: none; margin: var(--s-sm) 0 0; padding: 0; display: grid; gap: 10px var(--s-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.features li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 22px; color: var(--text); }
.features .tick { width: 22px; height: 22px; margin-block-start: 0; }
.features .tick svg { width: 13px; height: 13px; }
/* Features beside their proof on wide screens; stacked below 1280px. */
.reason-body { display: grid; gap: var(--s-lg); grid-template-columns: minmax(0, 1fr); margin-block-start: var(--s-sm); align-items: start; }
@media (min-width: 1280px) {
  .reason-body:not(.solo) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .reason-body:not(.solo) .features { grid-template-columns: minmax(0, 1fr); }
}
.reason-features { display: grid; gap: var(--s-md); align-content: start; }
.reason-features .features { margin: 0; }
.reason-proof { display: grid; gap: var(--s-md); }
.proof { margin: 0; display: grid; gap: 10px; }
.proof figcaption { font-size: 14px; line-height: 21px; color: var(--text-muted); }
.frame-shot {
  display: block; width: 100%; padding: 8px; cursor: zoom-in; text-align: start; border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: border-color .2s ease;
}
.frame-shot:hover { border-color: var(--line-hover); }
.frame-shot img { border-radius: var(--r-md); width: 100%; background: var(--shot-bg); }
.tick { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--surface-brand); color: var(--ink); display: grid; place-items: center; flex: none; }
.tick svg { width: 16px; height: 16px; }
/* Masar's own schedule (the automation proof) */
.schedule { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-md); box-shadow: var(--card-shadow); }
.schedule-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-block-end: 12px; border-block-end: 1px solid var(--line); }
.schedule-head b { font-weight: 500; }
.schedule-head span { font-size: 13px; color: var(--text-muted); }
.schedule ul { list-style: none; margin: 0; padding: 0; }
.schedule li { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 16px; padding-block: 12px; border-block-end: 1px solid var(--line); }
.schedule li:last-child { border-block-end: 0; padding-block-end: 0; }
.schedule .when { font-size: 13px; line-height: 20px; color: var(--text-muted); white-space: nowrap; }
.schedule .when::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-inline-end: 8px; vertical-align: 1px; }
.schedule .what b { display: block; font-weight: 500; font-size: 15px; line-height: 21px; }
.schedule .what small { display: block; color: var(--text-2); font-size: 14px; line-height: 21px; margin-block-start: 2px; }
@media (max-width: 560px) { .schedule li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* enterprise tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-md); display: grid; gap: 8px; align-content: start; }
.tile .icon { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--well); display: grid; place-items: center; }
.tile .icon svg { width: 17px; height: 17px; }
.tile b { font-weight: 500; font-size: 16px; line-height: 22px; }
.tile p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 21px; }

/* ---------- worked calculations ---------- */
.trace-block { display: grid; gap: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: var(--s-md); }
.tab {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r-md);
  padding: 7px 14px; cursor: pointer; font-size: 15px; line-height: 22px; font-weight: 400; color: var(--text-2);
}
.tab:hover { border-color: var(--line-hover); }
.tab[aria-selected="true"] { background: var(--text); color: var(--page); border-color: var(--text); }
.card-light { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-lg); box-shadow: var(--card-shadow); }
.card-soft { background: var(--page-soft); border-radius: var(--r-xl); padding: var(--s-lg); }
.trace-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-block-end: var(--s-md); }
.trace-head .chip { font-size: 13px; line-height: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px 8px; color: var(--text-muted); }
.trace-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.trace-steps li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  padding-block: 12px; border-block-end: 1px solid var(--line); counter-increment: step;
}
.trace-steps li::before {
  content: counter(step); width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--well);
  font-size: 13px; line-height: 24px; text-align: center; font-weight: 500; color: var(--text-2);
}
/* Complete at rest; a replay (first view, a new tab) writes the working out step by step. */
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.trace.play .trace-steps li, .trace.play .trace-result { animation: step-in .45s ease both; }
.trace-steps li span { color: var(--text-2); }
.trace-steps li small { display: block; color: var(--text-muted); font-size: 14px; line-height: 21px; margin-block-start: 2px; }
.trace-steps li b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.trace-result { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-block-start: var(--s-md); }
.trace-result .big { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.375rem); line-height: 1.1; letter-spacing: -0.02em; direction: ltr; unicode-bidi: isolate; }
.trace-result .big small { font-family: var(--font-sans); font-size: 18px; letter-spacing: 0; color: var(--text-muted); margin-inline-start: 6px; }
.trace-note { margin: var(--s-base) 0 0; color: var(--text-muted); }
.trace-panel[hidden] { display: none; }

/* ---------- by the numbers: each figure with its proof ---------- */
.stats-head { display: grid; gap: var(--s-md) var(--s-xl); grid-template-columns: minmax(0, 1fr); align-items: end; margin-block-end: var(--s-xl); }
@media (min-width: 1024px) { .stats-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.stats-head .lead { margin: 0; }
.stats { display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
@media (min-width: 680px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Each card spans three rows of a shared subgrid: the figure, its sentence and its proof line up across a row. */
.stat { background: var(--card); padding: clamp(24px, 2.6vw, 40px); display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: var(--s-base); transition: background-color .2s ease; }
.stat:hover { background: var(--page-soft); }
.stat-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.stat .n { font-family: "Newsreader", var(--font-display); font-weight: 300; font-size: clamp(4rem, 3rem + 3.4vw, 6.5rem); line-height: .92; letter-spacing: -0.045em; }
.stat .unit { font-size: 18px; line-height: 24px; font-weight: 500; }
.stat > p { margin: 0; color: var(--text-2); max-width: 36ch; }
.stat-proof { padding-block-start: var(--s-base); border-block-start: 1px solid var(--line); display: grid; align-content: start; gap: 12px; }
.stat-proof .chips { margin: 0; }
.chips.codes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.codes abbr { text-decoration: none; font-weight: 500; letter-spacing: 1px; text-align: center; padding-block: 6px; cursor: help; }
.skills .chip-sm { display: inline-flex; align-items: center; gap: 5px; }
.skills .chip-sm svg { width: 12px; height: 12px; flex: none; }
.bilingual { display: grid; gap: 6px; }
.bilingual [lang="en"] { font-family: "Newsreader", serif; font-weight: 300; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; text-align: left; }
.bilingual [lang="ar"] { font-family: "Thmanyah Serif Display", serif; font-weight: 300; font-size: 30px; line-height: 1.35; text-align: right; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: var(--r-sm); background: var(--text); flex: none; }
.dot.addon { background: var(--sticky-mint); }
.dot.layer { background: var(--sticky-lavender); }
.dot.workspace { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 12px; height: 12px; border-radius: 4px; }
.legend b { font-weight: 600; color: var(--text); }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini div { display: grid; gap: 2px; }
.mini b { font-family: "Newsreader", serif; font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.mini span { font-size: 13px; line-height: 18px; color: var(--text-muted); }

/* ---------- the Masars (a black band in both themes) ---------- */
.masars { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.masar { border: 1px solid #262626; background: #0a0a0a; border-radius: var(--r-xl); padding: clamp(24px, 2.6vw, 40px); display: grid; gap: var(--s-base); align-content: start; transition: border-color .25s ease, background-color .25s ease; }
.masar:hover { border-color: var(--primary); background: #0e0e0e; }
.masar-icon { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--primary); color: var(--primary); display: grid; place-items: center; margin-block-end: var(--s-sm); }
.masar-icon svg { width: 20px; height: 20px; }
.masar h3 { color: var(--canvas); margin: 0; }
.masar p { margin: 0; color: #c9c9c6; }

/* ---------- platform: one person's journey as a single line + product cards ---------- */
.journey { overflow-x: auto; margin-block-end: var(--s-xl); padding: 8px 2px 12px; scrollbar-width: thin; }
.journey ol { list-style: none; margin: 0; padding: 0; display: flex; min-width: max-content; position: relative; }
.journey ol::before { content: ""; position: absolute; inset-inline: 6px; top: 6px; height: 1px; background: var(--text); }
.journey li { flex: 1 0 8.5rem; display: grid; gap: 14px; justify-items: start; position: relative; font-size: 16px; line-height: 24px; color: var(--text); }
.journey li:last-child { flex: 0 0 auto; }
.journey li i { width: 13px; height: 13px; border-radius: 50%; background: var(--page); border: 1px solid var(--text); position: relative; }
.journey li:first-child i { background: var(--primary); border-color: var(--primary); }
.journey li:last-child i { background: var(--text); }
.journey li span { padding-inline-end: var(--s-md); }
.products { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-md);
  display: flex; flex-direction: column; gap: var(--s-base); box-shadow: var(--card-shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.product:hover { border-color: var(--line-hover); box-shadow: var(--card-shadow), var(--hover-shadow); }
.product .thumb {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in; text-align: start;
  border-radius: var(--r-md); overflow: hidden; background: var(--shot-bg); border: 1px solid var(--line);
}
.product .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .5s ease; }
.product .thumb:hover img { transform: scale(1.02); }
.product .thumb .sticky { position: absolute; inset-inline-end: 10px; bottom: 10px; transform: rotate(-2deg); box-shadow: 0 4px 4px rgba(0, 0, 0, .12); max-width: 62%; font-size: 13px; line-height: 18px; padding: 7px 10px; }
.product h3 { margin: 0; }
.product p { margin: 0; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: auto; }
.chip-sm { font-size: 13px; line-height: 18px; padding: 3px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--text-2); font-weight: 400; }

/* ---------- countries (a black band in both themes) ---------- */
.countries { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .countries { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } }
.country-pills { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1024px) { .country-pills { flex-direction: column; align-items: stretch; } }
.country-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: start;
  background: transparent; border: 1px solid var(--border-inverse); color: var(--canvas); border-radius: var(--r-md);
  padding: 10px 14px; cursor: pointer; font-size: 16px; line-height: 24px; font-weight: 300;
}
.country-pill code { font-family: var(--font-sans); font-size: 12px; color: var(--ink-tertiary); letter-spacing: 1px; }
.country-pill:hover { border-color: var(--ink-tertiary); }
.country-pill[aria-selected="true"] { background: var(--canvas); color: var(--ink); border-color: var(--canvas); }
.country-pill[aria-selected="true"] code { color: #626262; }
.country-card { border: 1px solid var(--border-inverse); border-radius: var(--r-xl); padding: var(--s-lg); background: #050505; }
.country-card[hidden] { display: none; }
.country-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-block-end: var(--s-md); border-block-end: 1px solid #222; }
.country-card header .display-sm { color: var(--canvas); }
.country-card header span { color: var(--ink-tertiary); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 var(--s-lg); margin: 0; }
.fact { padding-block: 14px; border-block-end: 1px solid #1d1d1d; }
.fact dt { font-size: 13px; line-height: 18px; color: var(--ink-tertiary); text-transform: uppercase; letter-spacing: 1.2px; margin-block-end: 4px; }
[lang="ar"] .fact dt { text-transform: none; letter-spacing: 0; font-size: 14px; }
.fact dd { margin: 0; color: var(--canvas); font-size: 16px; line-height: 24px; }
.country-card footer { margin-block-start: var(--s-md); color: var(--ink-tertiary); font-size: 14px; line-height: 21px; }

/* ---------- Masar AI ---------- */
.ai-grid { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .ai-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.ai-cards { display: grid; margin-block-start: var(--s-lg); border-block-end: 1px solid var(--line); }
.ai-card { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 4px var(--s-base); padding-block: var(--s-md); border-block-start: 1px solid var(--line); }
.ai-card b { grid-row: span 2; font-family: "Newsreader", var(--font-display); font-weight: 300; font-size: 26px; line-height: 33px; color: var(--text-muted); }
.ai-card h3 { margin: 0; }
.ai-card p { margin: 0; color: var(--text-2); }
.ai-rules { list-style: none; margin: var(--s-lg) 0 0; padding: 0; display: grid; gap: 12px; }
.ai-rules li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; color: var(--text-2); }
.ai-shot { position: relative; }
@media (min-width: 1100px) { .ai-shot { position: sticky; top: 96px; } }
.ai-shot .sticky { position: absolute; inset-inline-start: -14px; bottom: -26px; transform: rotate(-2.5deg); max-width: 16rem; box-shadow: var(--card-shadow); }
@media (max-width: 720px) { .ai-shot .sticky { position: static; transform: none; margin-block-start: 12px; max-width: none; } }

/* ---------- two languages: compare slider ---------- */
.compare { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--card-shadow); background: var(--shot-bg); touch-action: pan-y; user-select: none; }
.compare img { width: 100%; aspect-ratio: 2880 / 1880; object-fit: cover; }
.compare .top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--ink); transform: translateX(-1px); pointer-events: none; }
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, .9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat;
}
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 14px; font-size: 13px; line-height: 18px; padding: 4px 10px; border-radius: var(--r-sm); background: var(--ink); color: var(--canvas); pointer-events: none; }
.compare .tag.left { left: 14px; }
.compare .tag.right { right: 14px; }
.lang-points { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-block-start: var(--s-xl); }
.lang-points div { border-block-start: 1px solid var(--text); padding-block-start: var(--s-base); }
.lang-points strong { display: block; font-weight: 500; margin-block-end: 4px; }
.lang-points p { margin: 0; color: var(--text-2); }

/* ---------- packages ---------- */
.pack-groups { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.pack { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-lg); display: grid; gap: var(--s-base); align-content: start; }
.pack h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.pack p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 23px; }
.pack .chips { margin-block-start: 0; }
.pack .chip-sm.pro { background: var(--surface-brand); border-color: transparent; color: var(--ink); }

/* ---------- closing CTA: the path arrives ---------- */
.closing { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(96px, 11vw, 160px); }
/* the same mark as the hero, whole and in the logo's own proportions, on the side the words leave free */
.closing-path { position: absolute; z-index: -1; inset-block-end: 51%; inset-inline-end: max(4%, calc((100% - 1280px) / 2)); width: min(26%, 19rem); aspect-ratio: 780 / 860; overflow: visible; pointer-events: none; opacity: 1; }
/* stacked on a narrow screen there is no free side: the words and the QR code have the band to themselves */
@media (max-width: 899px) { .closing-path { display: none; } }
/* the closing band is black in both themes — the mark is drawn in the bright green that stands clear on it */
.closing-path .trail, .closing-path .dot { stroke: #00d488; stroke-width: 5; }
.closing-path .end { fill: #00d488; }
.closing .summit { margin-block-end: var(--s-lg); }
.closing h2 { max-width: 16ch; }
.cta-grid { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.demo-form { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: var(--s-lg); max-width: 36rem; }
.demo-form input {
  flex: 1 1 16rem; height: 48px; background: var(--ink); color: var(--canvas); border: 1px solid var(--border-inverse);
  border-radius: var(--r-md); padding: 8px 16px; font: inherit; font-size: 16px; color-scheme: dark;
}
.demo-form input::placeholder { color: var(--ink-tertiary); }
.demo-form input:focus { outline: none; border-color: var(--primary); }
.form-note { margin: 12px 0 0; color: var(--ink-tertiary); font-size: 14px; line-height: 21px; }
.form-note a { color: var(--canvas); }
.qr { display: grid; gap: 12px; justify-items: start; }
.qr-tile { background: var(--canvas); border-radius: var(--r-md); padding: 12px; width: 180px; }
.qr-tile svg { width: 100%; height: auto; display: block; }
.qr p { margin: 0; color: var(--ink-tertiary); font-size: 14px; line-height: 21px; max-width: 16rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--ink-tertiary); padding-block: var(--s-xl); border-block-start: 1px solid #1a1a1a; font-size: 14px; line-height: 21px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-md); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a { color: var(--canvas); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); width: 100%; }
.lightbox::backdrop { background: rgba(0, 0, 0, .86); }
.lightbox figure { margin: 0; background: var(--card); border-radius: var(--r-xl); padding: 12px; }
.lightbox img { border-radius: var(--r-md); width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox figcaption { padding: 12px 8px 4px; color: var(--text-2); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.lightbox button { background: var(--text); color: var(--page); border: 0; border-radius: var(--r-pill); height: 36px; padding: 0 16px; cursor: pointer; flex: none; }

/* ---------- the demo video ---------- */
.link-play {
  display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--canvas); font-size: 16px; line-height: 24px; font-weight: 400;
}
.link-play .play-ring { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-inverse); display: grid; place-items: center; transition: border-color .2s ease, background-color .2s ease; }
.link-play .play-ring svg { width: 16px; height: 16px; margin-inline-start: 2px; }
[dir="rtl"] .link-play .play-ring svg { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 2px; }
.link-play:hover .play-ring { border-color: var(--canvas); background: #1c1c1c; }
.stage-play {
  position: absolute; z-index: 3; left: 50%; top: 46%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; cursor: pointer; text-align: start;
  border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .84); color: var(--canvas);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45); backdrop-filter: blur(6px); font-size: 17px; line-height: 22px; font-weight: 500;
  transition: transform .2s ease, background-color .2s ease;
}
[dir="rtl"] .stage-play { padding: 10px 10px 10px 22px; }
.stage-play:hover { transform: translate(-50%, -50%) scale(1.03); background: #000; }
.stage-play small { display: block; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-tertiary); }
.play-disc { width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: var(--ink); display: grid; place-items: center; flex: none; }
.play-disc svg { width: 20px; height: 20px; margin-inline-start: 3px; }
[dir="rtl"] .play-disc svg { transform: scaleX(-1); margin-inline-start: 0; margin-inline-end: 3px; }
.stage-play > span:last-child { white-space: nowrap; }
@media (max-width: 640px) { .stage-play { font-size: 15px; gap: 10px; padding: 7px 16px 7px 7px; } [dir="rtl"] .stage-play { padding: 7px 7px 7px 16px; } .stage-play small { display: none; } .play-disc { width: 40px; height: 40px; } }
.video-dialog { border: 0; padding: 0; background: transparent; width: min(94vw, 1280px); max-width: none; overflow: visible; }
.video-dialog::backdrop { background: rgba(0, 0, 0, .9); }
.video-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #000; box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center;
}
.video-close svg { width: 18px; height: 18px; }
.video-frame video::cue { font-family: Inter, "Thmanyah Sans", system-ui, sans-serif; font-size: 22px; line-height: 1.45; color: #fff; background: rgba(8, 8, 8, .82); }
.video-credit { margin: 12px 0 0; text-align: center; color: var(--ink-tertiary); font-size: 12px; line-height: 18px; }

/* ---------- motion ---------- */
.reveal { transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .8s ease; }
.js .reveal:not(.in) { transform: translateY(18px); opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .reveal, .trace-steps li, .trace-result { transform: none !important; opacity: 1 !important; transition: none !important; animation: none !important; }
  .hero-path .trail { animation: none; stroke-dashoffset: 0; }
  .hero-path .dot { animation: none; opacity: 1; }
  .summit i::after { animation: none; opacity: 0; }
  .wall-row { animation: none; }
  .wall-track { flex-wrap: wrap; mask-image: none; -webkit-mask-image: none; padding-inline: var(--gutter); }
  .wall-row { flex-wrap: wrap; row-gap: var(--s-md); }
  .wall-row[aria-hidden] { display: none; }
  .product, .btn, .nav-theme svg { transition: none; }
}
/* ---------- the hero and its navigation follow the theme ---------- */
:root { --h-bg: #ffffff; --h-fg: #000000; --h-dim: #000000; --h-accent: #007b3b; --h-muted: #5b6360; --h-soft: #333333; --h-line: #d3e3da; --h-line-2: #a9bdb2; --h-hover: #e3f4ea; --h-dot: #bfd9cb; --h-nav: rgba(255, 255, 255, .8); --h-frame: #ffffff; --h-pill: #ffffff; --h-shadow: 0 0 1px rgba(11, 41, 70, .4), 0 30px 60px -10px rgba(11, 41, 70, .22), 0 80px 120px -30px rgba(0, 123, 59, .22); --h-glow: 0; --h-wash: linear-gradient(180deg, #e3f7ea 0%, #f4fbf6 38%, #ffffff 74%); --h-path: #008f55; --h-path-o: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --h-bg: #000000; --h-fg: #ffffff; --h-dim: #8c8c8c; --h-accent: #ffffff; --h-wash: none; --h-path: #00d488; --h-path-o: 1; --h-muted: #8c8c8c; --h-soft: #d6d6d3; --h-line: #262626; --h-line-2: #4f5457; --h-hover: #1c1c1c; --h-dot: #242424; --h-nav: rgba(0, 0, 0, .78); --h-frame: #0d0d0d; --h-pill: rgba(255, 255, 255, .04); --h-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 50px 100px rgba(0, 0, 0, .7); --h-glow: .26; } }
:root[data-theme="dark"] { --h-bg: #000000; --h-fg: #ffffff; --h-dim: #8c8c8c; --h-accent: #ffffff; --h-wash: none; --h-path: #00d488; --h-path-o: 1; --h-muted: #8c8c8c; --h-soft: #d6d6d3; --h-line: #262626; --h-line-2: #4f5457; --h-hover: #1c1c1c; --h-dot: #242424; --h-nav: rgba(0, 0, 0, .78); --h-frame: #0d0d0d; --h-pill: rgba(255, 255, 255, .04); --h-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 50px 100px rgba(0, 0, 0, .7); --h-glow: .26; }
.nav { background: var(--h-nav); color: var(--h-fg); border-block-end-color: var(--h-line); transition: background-color .25s ease, color .25s ease; }
.nav .brand, .nav .nav-link, .nav .nav-lang, .nav .nav-theme, .nav .nav-menu { color: var(--h-fg); }
.nav .nav-link:hover { background: var(--h-hover); }
.nav .nav-lang, .nav .nav-theme, .nav .nav-menu { border-color: var(--h-line-2); }
.nav .nav-lang:hover, .nav .nav-theme:hover { border-color: var(--h-fg); }
.nav .nav-lang svg { color: var(--h-muted); }
@media (max-width: 1080px) { .nav .nav-links { background: var(--h-bg); border-block-end-color: var(--h-line); } }
.hero.band-black { background: var(--h-bg) var(--h-wash); color: var(--h-fg); transition: background-color .25s ease, color .25s ease; }
.hero::before { background-image: radial-gradient(var(--h-dot) 1px, transparent 1px); }
.hero.band-black h1 { color: var(--h-dim); }
.hero.band-black h1 span:last-child { color: var(--h-accent); }
.hero .hero-path { opacity: var(--h-path-o); }
.hero .hero-path .trail, .hero .hero-path .dot { stroke: var(--h-path); stroke-width: 5; }
.hero .hero-path .runner, .hero .hero-path .d2 { fill: var(--h-path); }
@media (max-width: 1099px) { .hero .hero-path { opacity: .25; } }
.hero.band-black .lead { color: var(--h-soft); }
.hero.band-black .eyebrow { color: var(--h-muted); }
.hero .summit { border-color: var(--h-line-2); background: var(--h-pill); color: var(--h-fg); }
.hero .summit svg { color: var(--h-muted); }
.hero .link-play, .hero .hero-cta .link-arrow { color: var(--h-fg); }
.hero .link-play .play-ring { border-color: var(--h-line-2); }
.hero .link-play:hover .play-ring { border-color: var(--h-fg); background: var(--h-hover); }
.hero .hero-stats dt { color: var(--h-fg); }
.hero .hero-stats dd { color: var(--h-muted); }
.hero.band-black .frame { border-color: var(--h-line); background: var(--h-frame); }
.hero.band-black .frame-bar i { background: var(--h-line-2); }
.hero .frame-bar span { color: var(--h-muted); }
.hero .hero-stage .frame { box-shadow: var(--h-shadow); }
.hero .hero-stage::before { background: radial-gradient(52% 60% at 50% 30%, rgba(0, 194, 122, var(--h-glow)), transparent 72%); }
.hero .wall { border-block-start-color: var(--h-line); }
.hero .wall-item strong { color: var(--h-fg); }
.hero .wall-item span { color: var(--h-muted); }

/* ---------- the page moves with the reader (only for someone who hasn't asked for less motion) ---------- */
.nav .progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
[dir="rtl"] .nav .progress { transform-origin: 100% 50%; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(8px); } }
/* one journey, 8 s: the traveller sets off, arrives at 78% — then the whole path thickens and glows, the last dot fills and a ring spreads from it */
@keyframes run { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } 78% { offset-distance: 100%; opacity: 1; } 82%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes arrived { 0%, 77% { stroke-width: 5; filter: none; } 83% { stroke-width: 9; filter: drop-shadow(0 0 10px var(--h-path)); } 100% { stroke-width: 5; filter: none; } }
@keyframes land { 0%, 77% { transform: scale(1); } 83% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes ripple { 0%, 78% { opacity: 0; transform: scale(1); } 80% { opacity: .9; } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes breathe { from { opacity: .65; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
@keyframes float { to { translate: 0 -9px; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flatten { from { transform: perspective(1800px) rotateX(18deg) scale(.9); } to { transform: none; } }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes light { to { color: var(--canvas); } }
@keyframes drift { from { scale: 1.1; } to { scale: 1; } }
@keyframes lift { from { opacity: 0; translate: 0 45%; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  /* the hero writes itself: the pill, the lines one after another, the words under them, then the figures */
  .hero .summit, .hero-words > .eyebrow { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 span { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 span:nth-child(1) { animation-delay: .12s; }
  .hero h1 span:nth-child(2) { animation-delay: .26s; }
  .hero h1 span:nth-child(3) { animation-delay: .4s; }
  .hero .lead { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .6s both; }
  .hero-cta { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .72s both; }
  .hero-stats div { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-stats div:nth-child(1) { animation-delay: 2.5s; }
  .hero-stats div:nth-child(2) { animation-delay: 2.65s; }
  .hero-stats div:nth-child(3) { animation-delay: 2.8s; }
  .hero-stats div:nth-child(4) { animation-delay: 2.95s; }
  /* someone travelling the path, from the first dot to the last, again and again */
  .hero-path .runner {
    offset-path: path("M360 760h340a140 140 0 0 0 0-280H260a140 140 0 0 1 0-280h340"); offset-rotate: 0deg;
    filter: drop-shadow(0 0 6px var(--h-path)); animation: run 8s linear 3.6s infinite;
  }
  .hero-path .trail { animation: draw 3.2s cubic-bezier(.6, 0, .2, 1) .3s forwards, arrived 8s linear 3.6s infinite; }
  .hero-path .d2 { animation: appear .6s ease 3.2s forwards, land 8s linear 3.6s infinite; }
  .hero-path .ring { animation: ripple 8s linear 3.6s infinite; }
  .hero-stage::before { animation: breathe 7s ease-in-out infinite alternate; }
  .hero-stage .sticky { animation: float 5s ease-in-out infinite alternate; }
  .hero-stage .sticky.s2 { animation-duration: 6.5s; animation-delay: -2s; }
  .hero-stage .sticky.s3 { animation-duration: 7.5s; animation-delay: -4s; }
  /* each Masar's ring carries a small satellite */
  .masar-icon { position: relative; }
  .masar-icon::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(0, 194, 122, .45); animation: orbit 18s linear infinite; }
  .masar:nth-child(2) .masar-icon::after { animation-direction: reverse; animation-duration: 24s; }
  .masar:hover .masar-icon::after { animation-duration: 4s; }
  /* cards arrive one after another */
  .bento .cell:nth-child(3), .masars .masar:nth-child(2), .stats .stat:nth-child(3n + 2), .products .product:nth-child(3n + 2) { transition-delay: .1s; }
  .masars .masar:nth-child(3), .stats .stat:nth-child(3n), .products .product:nth-child(3n) { transition-delay: .2s; }
}
/* tied to the scroll itself, where the browser can: nothing here hides content from a browser that can't */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .nav .progress { animation: grow linear both; animation-timeline: scroll(root); }
    /* the product leans back, and stands up as it comes into view */
    .hero-stage .frame { transform-origin: 50% 100%; animation: flatten linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .hero-stage .sticky, .hero-stage .stage-play { animation: arrive linear both, float 5s ease-in-out infinite alternate; animation-timeline: view(), auto; animation-range: cover 34% cover 46%, normal; }
    .hero-stage .stage-play { animation: arrive linear both; animation-timeline: view(); animation-range: cover 34% cover 46%; }
    /* what Masar holds to: each line lights as it is read */
    .manifesto h2 span, .manifesto h2 span:last-child { color: #3d3d3d; animation: light linear both; animation-timeline: view(); animation-range: cover 22% cover 48%; }
    /* the journey's line is drawn from its first dot */
    .journey ol::before { transform-origin: 0 50%; animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    [dir="rtl"] .journey ol::before { transform-origin: 100% 50%; }
    /* real screens settle into their frames; figures rise into their cells */
    .cell .thumb img, .product .thumb img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .stat .n { display: inline-block; animation: lift linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
    /* the path arrives at the closing band */
    .closing-path .trail { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  }
}
@media print { .nav, .event-bar, .demo-form, .lightbox { display: none !important; } .reveal { transform: none; opacity: 1; } }
