/*!
 * Tristora theme — main stylesheet
 * Majorelle blue × saffron × ivory. Light & dark, RTL & LTR, phone → 4K TV.
 */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
	--majorelle: #2B35A0;
	--majorelle-2: #3D49C9;
	--saffron-a: #F7CB4D;
	--saffron-b: #E39A12;
	--ivory: #FFF6E3;
	--ink: #0B0F35;
	--teal: #0E9C9C;
	--terra: #D2603A;

	--bg: #FBF7EE;
	--bg-2: #F3EDDF;
	--surface: #FFFFFF;
	--surface-2: #F6F2E8;
	--line: rgba(21, 24, 72, .11);
	--line-2: rgba(21, 24, 72, .2);
	--text: #151838;
	--muted: #555978;
	--primary: #2B35A0;
	--primary-ink: #2B35A0;
	--btn-primary: #2B35A0;
	--btn-primary-h: #222B8A;
	--focus: #E39A12;
	--danger: #C0362C;
	--ok: #13804B;
	--chip-bg: rgba(43, 53, 160, .08);
	--glass: rgba(255, 255, 255, .72);
	--glass-line: rgba(43, 53, 160, .14);
	--shadow-sm: 0 2px 8px rgba(20, 24, 80, .06);
	--shadow: 0 12px 34px -12px rgba(20, 24, 80, .22);
	--shadow-lg: 0 30px 70px -25px rgba(20, 24, 80, .35);
	--hero-a: rgba(61, 73, 201, .18);
	--hero-b: rgba(247, 203, 77, .28);

	/* Logo (light mode: Majorelle mark, navy word, saffron sub) */
	--mark-a: #3D49C9;
	--mark-b: #2B35A0;
	--logo-word: #1C2380;
	--logo-sub: #B9760A;

	--radius-sm: .6rem;
	--radius: 1rem;
	--radius-lg: 1.5rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--maxw: 78rem;
	--header-h: 4.5rem;
	--ease: cubic-bezier(.2, .7, .2, 1);

	--f-body: 'TB', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--f-head: 'TH', 'TB', system-ui, sans-serif;
	--f-logo: 'Unbounded', 'TH', sans-serif;
	color-scheme: light;
}

html[data-theme="dark"] {
	--bg: #080B28;
	--bg-2: #0D1140;
	--surface: #11164A;
	--surface-2: #171D5C;
	--line: rgba(255, 246, 227, .11);
	--line-2: rgba(255, 246, 227, .22);
	--text: #FFF6E3;
	--muted: #B8BBDD;
	--primary: #F7CB4D;
	--primary-ink: #9AA2FF;
	--btn-primary: #3D49C9;
	--btn-primary-h: #4C58DA;
	--focus: #F7CB4D;
	--danger: #FF7B6E;
	--ok: #4ADE9A;
	--chip-bg: rgba(247, 203, 77, .1);
	--glass: rgba(20, 26, 84, .62);
	--glass-line: rgba(255, 246, 227, .14);
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
	--shadow: 0 14px 40px -14px rgba(0, 0, 0, .6);
	--shadow-lg: 0 34px 80px -28px rgba(0, 0, 0, .75);
	--hero-a: rgba(61, 73, 201, .45);
	--hero-b: rgba(227, 154, 18, .22);

	/* Logo (dark mode: saffron mark, ivory word) */
	--mark-a: #F7CB4D;
	--mark-b: #E39A12;
	--logo-word: #FFF6E3;
	--logo-sub: #F7CB4D;
	color-scheme: dark;
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
	font-size: clamp(16px, calc(.42vw + 10.5px), 34px); /* scales up gracefully on large screens and TVs */
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 1rem;
	line-height: 1.7;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .35s var(--ease), color .35s var(--ease);
}
html[data-lang="ar"] body { line-height: 1.9; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--primary-ink); text-underline-offset: .2em; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
html[data-lang="ar"] h1, html[data-lang="ar"] h2, html[data-lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0 0 1em; overflow-wrap: break-word; }
h1, h2, h3, .sec-head__sub, .hero__sub { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: .35rem; }
::selection { background: var(--saffron-a); color: var(--ink); }
[hidden] { display: none !important; }
.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; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; vertical-align: -.15em; }
bdi { unicode-bidi: isolate; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 200; background: var(--saffron-a); color: var(--ink); padding: .6rem 1rem; border-radius: .6rem; font-weight: 700; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }
.site-main { display: block; outline: none; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 52rem); }

/* ───────────────────────── Logo (adapts to mode + language) ───────────────────────── */
.logo { display: inline-flex; align-items: center; gap: .6em; color: var(--logo-word); text-decoration: none; line-height: 1; direction: ltr; white-space: nowrap; }
.logo__mark { width: 2.3em; height: auto; aspect-ratio: 300 / 267; flex: none; filter: drop-shadow(0 .15em .35em rgba(43, 53, 160, .25)); }
html[data-theme="dark"] .logo__mark { filter: drop-shadow(0 .15em .5em rgba(227, 154, 18, .35)); }
.logo__word { font-family: var(--f-logo); font-weight: 700; font-size: 1.15em; letter-spacing: .14em; color: var(--logo-word); }

/* ───────────────────────── Buttons, chips ───────────────────────── */
.btn {
	--b-bg: var(--surface-2); --b-fg: var(--text); --b-bd: transparent;
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 2.9rem; padding: .7rem 1.25rem; border-radius: 999px;
	border: 1.5px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg);
	font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
	-webkit-tap-highlight-color: transparent; max-width: 100%;
}
.btn > span { min-width: 0; overflow-wrap: anywhere; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn--sm { min-height: 2.4rem; padding: .45rem .95rem; font-size: .86rem; }
.btn--lg { min-height: 3.4rem; padding: .9rem 1.7rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }
.btn--primary { --b-bg: var(--btn-primary); --b-fg: #fff; box-shadow: 0 10px 24px -10px rgba(43, 53, 160, .7); }
.btn--primary:hover { --b-bg: var(--btn-primary-h); }
.btn--gold { --b-bg: linear-gradient(135deg, var(--saffron-a), var(--saffron-b)); --b-fg: #1B1530; background: linear-gradient(135deg, var(--saffron-a), var(--saffron-b)); box-shadow: 0 12px 28px -12px rgba(227, 154, 18, .85), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold:hover { box-shadow: 0 16px 34px -12px rgba(227, 154, 18, .95), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--text); --b-bd: var(--line-2); }
.btn--ghost:hover { --b-bd: var(--primary-ink); --b-fg: var(--primary-ink); }
.btn--ghost-light { --b-bg: rgba(255, 255, 255, .08); --b-fg: #FFF6E3; --b-bd: rgba(255, 246, 227, .4); }
.btn--ghost-light:hover { --b-bg: rgba(255, 255, 255, .16); }
.btn--wa { --b-bg: #128C4A; --b-fg: #fff; box-shadow: 0 10px 24px -12px rgba(18, 140, 74, .8); }
.btn--wa:hover { --b-bg: #0F7A40; }
.btn--danger { --b-bg: transparent; --b-fg: var(--danger); --b-bd: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn--danger:hover { --b-bg: color-mix(in srgb, var(--danger) 10%, transparent); }

.icon-btn {
	display: inline-grid; place-items: center; gap: .3rem; grid-auto-flow: column;
	min-width: 2.6rem; height: 2.6rem; padding: 0 .55rem; border-radius: 999px;
	border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
	transition: border-color .2s, transform .2s var(--ease), background-color .2s;
}
.icon-btn:hover { border-color: var(--primary-ink); transform: translateY(-1px); }
.icon-btn .ic { width: 1.1rem; height: 1.1rem; }

.chip { display: inline-flex; align-items: center; gap: .35em; padding: .2rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--chip-bg); color: var(--primary-ink); white-space: nowrap; }
html[data-theme="dark"] .chip { color: var(--saffron-a); }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; margin: 0 0 .9rem; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--primary-ink); }
html[data-lang="ar"] .eyebrow { letter-spacing: 0; font-size: .92rem; }
html[data-theme="dark"] .eyebrow { color: var(--saffron-a); }
.eyebrow--pill { padding: .4rem .95rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); letter-spacing: .06em; text-transform: none; }

/* ───────────────────────── Header ───────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.site-header__brand { display: inline-flex; text-decoration: none; font-size: .92rem; min-width: 0; }
.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: .5rem .8rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; transition: background-color .2s, color .2s; }
.nav__link:hover { background: var(--chip-bg); }
.nav__link.is-active { color: var(--primary-ink); background: var(--chip-bg); }
html[data-theme="dark"] .nav__link.is-active { color: var(--saffron-a); }
.site-header__actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }
.nav + .site-header__actions { margin-inline-start: .5rem; }
.burger { display: none; }

.lang { position: relative; }
.lang__btn { padding-inline: .7rem; }
.lang__cur { font-weight: 800; font-size: .8rem; }
.lang__menu { position: absolute; inset-inline-end: 0; top: calc(100% + .5rem); min-width: 11rem; margin: 0; padding: .4rem; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 70; }
.lang__menu a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; border-radius: .6rem; color: var(--text); text-decoration: none; font-weight: 700; }
.lang__menu a:hover { background: var(--chip-bg); }
.lang__menu a[aria-current] { color: var(--primary-ink); }
.lang__menu a[lang] { font-family: 'TB', sans-serif; }

.theme-toggle .theme-toggle__moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: block; }
.theme-toggle .ic { transition: transform .5s var(--ease); }
.theme-toggle:hover .ic { transform: rotate(40deg); }

@media (max-width: 1180px) {
	.nav { display: none; }
	.burger { display: inline-grid; }
}
@media (max-width: 640px) {
	.site-header__cta span { display: none; }
	.site-header__cta { padding-inline: .75rem; }
	.site-header__brand { font-size: .82rem; }
}
@media (max-width: 380px) {
	.site-header__cta { display: none; }
	.fchip .ic { display: none; }
	.fchip { font-size: .8rem; padding-inline: .6rem; }
	.site-header__in { gap: .5rem; }
	.site-header__actions { gap: .3rem; }
	.lang__cur { display: none; }
	.site-header__brand { font-size: .76rem; }
}

/* Drawer (mobile menu) */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6, 8, 30, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.drawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(23rem, 88vw); padding: 1.1rem; overflow-y: auto; background: var(--bg); border-inline-start: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 1.2rem; transform: translateX(100%); transition: transform .4s var(--ease); }
[dir="rtl"] .drawer__panel { transform: translateX(-100%); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; }
.drawer__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.drawer__nav a { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.drawer__nav a .ic { color: var(--primary-ink); width: 1.2rem; height: 1.2rem; }
html[data-theme="dark"] .drawer__nav a .ic { color: var(--saffron-a); }
.drawer__nav a:hover, .drawer__nav a[aria-current] { background: var(--chip-bg); }
.drawer__langs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.drawer__langs a { text-align: center; padding: .6rem .3rem; border-radius: .7rem; border: 1.5px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: .88rem; }
.drawer__langs a[aria-current] { border-color: var(--saffron-b); background: var(--chip-bg); }
.drawer .btn--wa { margin-top: auto; }

/* ───────────────────────── Sections ───────────────────────── */
.section { position: relative; padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3.5rem, 8vw, 6rem); }
.section--alt { background: var(--bg-2); }
.section--deep { background: radial-gradient(120% 120% at 0% 0%, #2B35A0 0%, #141A5C 45%, #0B0F35 100%); color: #FFF6E3; overflow: clip; }
html[data-theme="dark"] .section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head__title { font-size: clamp(1.65rem, 1rem + 2.2vw, 2.7rem); }
.sec-head__sub { color: var(--muted); font-size: 1.07rem; margin: 0; }
.section--deep .sec-head__sub { color: #C9CCEB; }
.section--deep .eyebrow { color: var(--saffron-a); }
.center-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin: 2.5rem 0 0; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.2rem, 3vw, 2rem); min-width: 0; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Pointer tilt */
.tilt { transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) translateZ(0); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; transform-style: preserve-3d; will-change: transform; }

/* Keyframes */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ───────────────────────── Hero ───────────────────────── */
.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero__glow--a { width: 42rem; height: 42rem; background: var(--hero-a); inset-inline-end: -12rem; top: -14rem; }
.hero__glow--b { width: 34rem; height: 34rem; background: var(--hero-b); inset-inline-start: -14rem; bottom: -16rem; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 3.5rem 3.5rem; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); opacity: .6; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.hero__title { font-size: clamp(2.05rem, 1rem + 3.6vw, 4.1rem); line-height: 1.12; margin-bottom: 1.2rem; }
html[data-lang="ar"] .hero__title { font-size: clamp(1.95rem, 1rem + 2.3vw, 3.05rem); line-height: 1.45; }
html[data-lang="fr"] .hero__title { font-size: clamp(1.8rem, .9rem + 2vw, 2.75rem); line-height: 1.15; }
html[data-lang="en"] .hero__title { font-size: clamp(1.9rem, 1rem + 2.2vw, 3rem); line-height: 1.12; }
.grad { padding-block: .12em .3em; background: linear-gradient(100deg, var(--saffron-b) 0%, var(--saffron-a) 45%, var(--saffron-b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html:not([data-theme="dark"]) .grad { background-image: linear-gradient(100deg, #2B35A0 0%, #5662E0 40%, #D58A0C 100%); }
.hero__sub { font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); color: var(--muted); max-width: 38rem; margin-bottom: 1.8rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.facts { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.facts li { display: inline-flex; align-items: center; gap: .5em; padding: .5rem .9rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); font-weight: 700; font-size: .86rem; backdrop-filter: blur(8px); }
.facts .ic { color: var(--saffron-b); }

/* Hero shot: one clear product scene — the client space in a browser, WhatsApp on the phone, one status chip.
   Everything is real HTML (sharp at any size, translated with the page) and scales with its own width (cqw). */
.hero__visual { position: relative; min-width: 0; }
.hshot { --win: var(--surface); --win-2: var(--surface-2); --ink-1: var(--text); --ink-2: var(--muted); --hair: var(--line);
	position: relative; container-type: inline-size; width: 100%; aspect-ratio: 1 / .98; }
html[data-theme="dark"] .hshot { --win: #121852; --win-2: #192062; }
.hshot__glow { position: absolute; inset: 8% 4% 2% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(61, 73, 201, .55), transparent), radial-gradient(closest-side at 30% 80%, rgba(247, 203, 77, .55), transparent); filter: blur(40px); opacity: .75; pointer-events: none; }
html[data-theme="dark"] .hshot__glow { opacity: .9; }

/* Browser window */
.hshot__win { position: absolute; top: 0; inset-inline-start: 0; width: 90cqw; font-size: 1.7cqw; line-height: 1.45; border-radius: 1.1em; background: var(--win); border: 1px solid var(--hair); box-shadow: 0 2.4em 5em -2em rgba(20, 24, 80, .35), 0 .4em 1em -.4em rgba(20, 24, 80, .18); overflow: hidden; color: var(--ink-1); transform: perspective(160em) rotateY(calc(var(--tilt, 1) * -5deg)) rotateX(2deg); transform-origin: 50% 50%; }
[dir="rtl"] .hshot__win { --tilt: -1; }
.hshot__bar { display: flex; align-items: center; gap: .45em; height: 2.6em; padding-inline: 1em; background: var(--win-2); border-bottom: 1px solid var(--hair); direction: ltr; }
.hshot__bar > i { width: .75em; height: .75em; border-radius: 50%; background: #FF5F57; }
.hshot__bar > i:nth-child(2) { background: #FEBC2E; }
.hshot__bar > i:nth-child(3) { background: #28C840; }
.hshot__url { display: inline-flex; align-items: center; gap: .45em; margin-inline: auto; padding: .3em 1.2em; border-radius: 99em; background: var(--win); border: 1px solid var(--hair); font-size: .82em; color: var(--ink-2); font-weight: 600; }
.hshot__url .ic { width: .85em; height: .85em; color: var(--ok); }
.hshot__app { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); }
.hshot__side { display: flex; flex-direction: column; align-items: center; gap: 1.2em; padding: 1.2em 0; background: linear-gradient(180deg, #2B35A0, #141A5C); --mark-a: #F7CB4D; --mark-b: #E39A12; }
.hshot__mark { width: 2em; height: auto; margin-bottom: .4em; }
.hshot__side > span { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: .7em; color: rgba(255, 246, 227, .55); }
.hshot__side > span.is-on { background: rgba(247, 203, 77, .18); color: #F7CB4D; }
.hshot__side .ic { width: 1em; height: 1em; }
.hshot__main { display: flex; flex-direction: column; gap: 1.1em; padding: 1.4em 1.6em 1.6em; min-width: 0; }
.hshot__head { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.hshot__head small { display: block; font-size: .85em; color: var(--ink-2); }
.hshot__head b { display: block; font-family: var(--f-head); font-size: 1.55em; font-weight: 800; line-height: 1.2; }
.hshot__id { display: inline-flex; align-items: center; gap: .45em; padding: .4em .8em; border-radius: 99em; background: var(--chip-bg); color: var(--primary-ink); font-weight: 700; font-size: .85em; }
html[data-theme="dark"] .hshot__id { color: var(--saffron-a); }
.hshot__id .ic { width: 1em; height: 1em; }
.hshot__card { padding: 1.1em 1.2em 1.2em; border-radius: .9em; background: var(--win-2); border: 1px solid var(--hair); }
.hshot__cardtop { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1em; font-size: .95em; }
.hshot__badge { display: inline-flex; align-items: center; gap: .45em; padding: .25em .75em; border-radius: 99em; background: rgba(227, 154, 18, .16); color: #A86A06; font-size: .85em; font-weight: 700; }
html[data-theme="dark"] .hshot__badge { color: #F7CB4D; }
.hshot__badge i { width: .5em; height: .5em; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
.hshot__steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.hshot__steps::before { content: ""; position: absolute; top: .8em; inset-inline: 12.5%; height: .22em; border-radius: 9em; background: linear-gradient(to var(--to, left), #17A05D 0 66%, var(--hair) 66%); }
[dir="ltr"] .hshot__steps::before { --to: right; }
.hshot__steps li { position: relative; display: grid; justify-items: center; gap: .45em; font-size: .8em; color: var(--ink-2); font-weight: 600; text-align: center; }
.hshot__steps li > i { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--win); border: .18em solid var(--hair); }
.hshot__steps li.is-done > i { background: #17A05D; border-color: #17A05D; color: #fff; }
.hshot__steps li.is-now > i { border-color: #E39A12; box-shadow: 0 0 0 .3em rgba(227, 154, 18, .2); }
.hshot__steps li.is-now > i::after { content: ""; width: .7em; height: .7em; border-radius: 50%; background: #E39A12; }
.hshot__steps li.is-now { color: var(--ink-1); font-weight: 700; }
.hshot__steps .ic { width: .9em; height: .9em; }
.hshot__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .65em; }
.hshot__row { --acc: #D98E0D; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: .9em; row-gap: .55em; padding: .8em 1em; border-radius: .9em; border: 1px solid var(--hair); background: var(--win); }
.hshot__row--ai { --acc: #4652D6; }
.hshot__row--academic { --acc: #17A05D; }
.hshot__ic { grid-row: span 2; display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: .75em; background: color-mix(in srgb, var(--acc) 15%, transparent); color: var(--acc); }
.hshot__ic .ic { width: 1.15em; height: 1.15em; }
.hshot__txt { display: flex; align-items: baseline; gap: .7em; min-width: 0; }
.hshot__txt b { font-weight: 700; font-size: .98em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hshot__txt small { color: var(--ink-2); font-size: .8em; white-space: nowrap; }
.hshot__pct { font-weight: 800; font-size: .85em; color: var(--acc); }
.hshot__pct .ic { width: 1.2em; height: 1.2em; }
.hshot__track { grid-column: 2 / -1; height: .38em; border-radius: 9em; background: var(--hair); overflow: hidden; }
.hshot__track i { display: block; width: calc(var(--v) * 100%); height: 100%; border-radius: inherit; background: var(--acc); }

/* Phone with the WhatsApp conversation */
.hshot__phone { position: absolute; bottom: 0; inset-inline-end: -2cqw; width: 29cqw; aspect-ratio: 9 / 18.6; padding: .9cqw; border-radius: 5.2cqw; background: #0B0E2A; box-shadow: 0 3cqw 6cqw -2.5cqw rgba(10, 12, 40, .6), inset 0 0 0 .25cqw #2A2F5A; z-index: 2; }
.hshot__screen { position: relative; height: 100%; border-radius: 4.4cqw; overflow: hidden; background: #ECE5DD; font-size: 1.55cqw; line-height: 1.45; display: flex; flex-direction: column; color: #111B21; }
html[data-theme="dark"] .hshot__screen { background: #0B141A; color: #E9EDEF; }
.hshot__island { position: absolute; top: 1.1em; left: 50%; width: 5.2em; height: 1.5em; margin-left: -2.6em; border-radius: 9em; background: #000; z-index: 2; }
.hshot__chathead { display: flex; align-items: center; gap: .6em; padding: 3.6em .9em .8em; background: #075E54; color: #fff; }
html[data-theme="dark"] .hshot__chathead { background: #1F2C34; }
.hshot__chathead > span:nth-child(2) { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.hshot__chathead b { font-family: 'Unbounded', var(--f-head); font-size: .82em; letter-spacing: .06em; }
.hshot__chathead small { display: inline-flex; align-items: center; gap: .35em; font-size: .78em; opacity: .85; }
.hshot__chathead small i { width: .45em; height: .45em; border-radius: 50%; background: #25D366; }
.hshot__av { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: #0B0F35; --mark-a: #F7CB4D; --mark-b: #E39A12; flex: none; }
.hshot__avmark { width: 60%; height: auto; }
.hshot__wa { width: 1.2em; height: 1.2em; opacity: .9; }
.hshot__chat { flex: 1; display: flex; flex-direction: column; gap: .6em; padding: .9em .7em; background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1.2px); background-size: 1.2em 1.2em; }
.hshot__msg { position: relative; max-width: 86%; margin: 0; padding: .55em .75em 1.3em; border-radius: .9em; border-start-start-radius: .2em; background: #fff; font-size: .95em; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); align-self: flex-start; }
html[data-theme="dark"] .hshot__msg { background: #202C33; }
.hshot__msg--me { align-self: flex-end; background: #D9FDD3; border-radius: .9em; border-start-end-radius: .2em; }
html[data-theme="dark"] .hshot__msg--me { background: #005C4B; }
.hshot__msg time { position: absolute; bottom: .3em; inset-inline-end: .7em; font-size: .7em; color: #667781; }
html[data-theme="dark"] .hshot__msg time { color: #8696A0; }
.hshot__msg--me time { color: #53BDEB; }
.hshot__file { display: flex; align-items: center; gap: .55em; margin-bottom: .45em; padding: .5em .6em; border-radius: .6em; background: rgba(0, 0, 0, .05); }
html[data-theme="dark"] .hshot__file { background: rgba(255, 255, 255, .06); }
.hshot__file .ic { width: 1.6em; height: 1.6em; color: #E5484D; }
.hshot__file > span { display: grid; line-height: 1.25; min-width: 0; font-weight: 700; font-size: .9em; }
.hshot__file small { font-weight: 400; color: #667781; font-size: .8em; }

.hshot__compose { display: flex; align-items: center; gap: .5em; padding: .55em .6em .9em; }
.hshot__compose span { flex: 1; padding: .55em .9em; border-radius: 9em; background: #fff; color: #8696A0; font-size: .9em; }
html[data-theme="dark"] .hshot__compose span { background: #202C33; }
.hshot__compose i { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: #00A884; color: #fff; }
.hshot__compose .ic { width: 1em; height: 1em; }

/* Status chip */
.hshot__chip { position: absolute; z-index: 3; top: 55cqw; inset-inline-start: 10cqw; display: flex; align-items: center; gap: .7em; padding: .75em 1.1em .75em .8em; font-size: 1.55cqw; line-height: 1.3; border-radius: 1em; background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: 0 1.6em 3em -1.2em rgba(20, 24, 80, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: floaty 6s ease-in-out infinite; }
[dir="rtl"] .hshot__chip { padding: .75em .8em .75em 1.1em; }
.hshot__chip > span:first-child { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #17A05D; color: #fff; box-shadow: 0 0 0 .35em rgba(23, 160, 93, .18); }
.hshot__chip .ic { width: 1em; height: 1em; }
.hshot__chip b { display: block; font-size: 1.05em; }
.hshot__chip small { color: var(--muted); font-size: .85em; }

@media (max-width: 960px) {
	.hero__in { grid-template-columns: minmax(0, 1fr); }
	.hero__visual { max-width: 44rem; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
	.hshot { aspect-ratio: auto; padding-bottom: 7cqw; }
	.hshot__win { position: relative; width: 100%; font-size: 2.55cqw; transform: none; }
	.hshot__side, .hshot__phone { display: none; }
	.hshot__app { grid-template-columns: minmax(0, 1fr); }
	.hshot__main { padding: 1.2em 1.2em 1.4em; }
	.hshot__chip { font-size: 3cqw; top: auto; bottom: 0; inset-inline-start: 5cqw; }
	.hero__btns .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .hshot__chip, .hshot__badge i { animation: none; } }

/* ───────────────────────── Services overview (one clear panel per section) ───────────────────────── */
.pillars__grid { display: grid; gap: clamp(1.2rem, 2.6vw, 2rem); }
.pillar { --acc: var(--majorelle-2); --acc-ink: var(--majorelle); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border-radius: calc(var(--radius-lg) * 1.15); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; min-width: 0; transition: box-shadow .3s var(--ease), border-color .3s; }
.pillar:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); }
.pillar:nth-child(even) .pillar__media { order: 2; }
.pillar--digital { --acc: #D98E0D; --acc-ink: #9A6206; }
.pillar--ai { --acc: #4652D6; --acc-ink: #2B35A0; }
.pillar--academic { --acc: #17A05D; --acc-ink: #0E7543; }
html[data-theme="dark"] .pillar--digital { --acc-ink: #F7CB4D; }
html[data-theme="dark"] .pillar--ai { --acc: #4C58DA; --acc-ink: #AEB5FF; }
html[data-theme="dark"] .pillar--academic { --acc: #1DB36A; --acc-ink: #6EE7A6; }
.pillar__media { position: relative; display: block; min-height: 100%; background: var(--surface-2); overflow: hidden; }
.pillar__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pillar:hover .pillar__media img { transform: scale(1.04); }
.pillar__body { display: flex; flex-direction: column; gap: 1.3rem; padding: clamp(1.4rem, 3vw, 2.4rem); min-width: 0; }
.pillar__head { display: flex; align-items: center; gap: 1rem; }
.pillar__name { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); line-height: 1.35; margin: 0; }
.pillar__name a { color: var(--text); text-decoration: none; }
.pillar__name a:hover { color: var(--acc-ink); }
.pillar__aud { margin: .2rem 0 0; color: var(--acc-ink); font-weight: 600; font-size: .92rem; }
.pillar__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.pillar__list a { display: flex; align-items: center; gap: .65rem; min-height: 3rem; height: 100%; padding: .55rem .8rem; border-radius: .85rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .94rem; line-height: 1.4; transition: border-color .2s, background-color .2s, color .2s; }
.pillar__list a > .ic { width: 1.05rem; height: 1.05rem; color: var(--acc-ink); }
.pillar__list a > span { min-width: 0; flex: 1; }
.pillar__list a:hover { border-color: color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 9%, var(--surface)); color: var(--acc-ink); }
.pillar__tag { flex: none; padding: .12rem .5rem; border-radius: 999px; font-style: normal; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--acc) 16%, transparent); color: var(--acc-ink); white-space: nowrap; }
.pillar__go { width: auto; display: inline-flex; align-self: flex-start; margin-top: auto; }
.pillar__go:hover { --b-bd: var(--acc); --b-fg: var(--acc-ink); }
.pillar__go .ic { transition: transform .3s var(--ease); }
.pillar__go:hover .ic { transform: translateX(4px); }
[dir="rtl"] .pillar__go:hover .ic { transform: translateX(-4px); }
@media (max-width: 860px) {
	.pillar { grid-template-columns: minmax(0, 1fr); }
	.pillar__media, .pillar:nth-child(even) .pillar__media { order: 0; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 520px) {
	.pillar__list { grid-template-columns: minmax(0, 1fr); }
	.pillar__go { width: 100%; }
}

/* Shared icon tile */
.pillar__icon, .svc__icon, .value__icon, .why-item__icon, .step__icon, .contact-card__icon, .post-cta__icon, .svc-group__icon {
	--acc: var(--majorelle-2);
	display: inline-grid; place-items: center; flex: none;
	width: 3.3rem; height: 3.3rem; border-radius: 1rem;
	color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--acc) 85%, #fff), var(--acc) 55%, color-mix(in srgb, var(--acc) 70%, #000));
	box-shadow: 0 .8rem 1.4rem -.6rem color-mix(in srgb, var(--acc) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.pillar__icon .ic, .svc__icon .ic, .value__icon .ic, .why-item__icon .ic, .step__icon .ic, .contact-card__icon .ic, .post-cta__icon .ic, .svc-group__icon .ic { width: 45%; height: 45%; }
.svc__icon--digital { --acc: #D98E0D; }
.svc__icon--academic { --acc: #17A05D; }
.svc__icon--ai { --acc: #4652D6; }
.pillar .pillar__icon { --acc: inherit; }

/* ───────────────────────── Service cards & filters ───────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: clamp(.8rem, 1.8vw, 1.2rem); }
.svc { display: flex; flex-direction: column; gap: .55rem; padding: 1.35rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.svc:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; margin-bottom: .3rem; }
.svc__icon { width: 2.9rem; height: 2.9rem; border-radius: .85rem; }
.chip--digital { color: #A86A06; background: rgba(227, 154, 18, .14); }
.chip--academic { color: #0E7543; background: rgba(23, 160, 93, .12); }
.chip--ai { color: #2B35A0; background: rgba(43, 53, 160, .1); }
html[data-theme="dark"] .chip--digital { color: #F7CB4D; }
html[data-theme="dark"] .chip--academic { color: #6EE7A6; background: rgba(29, 179, 106, .16); }
html[data-theme="dark"] .chip--ai { color: #AEB5FF; background: rgba(76, 88, 218, .2); }
.svc__name { font-size: 1.06rem; margin: 0; }
.svc__desc { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.svc__link { display: inline-flex; align-items: center; gap: .45em; margin-top: .5rem; font-weight: 800; font-size: .88rem; text-decoration: none; color: var(--primary-ink); }
html[data-theme="dark"] .svc__link { color: var(--saffron-a); }
.svc__link:hover { text-decoration: underline; }

.filters { position: sticky; top: calc(var(--header-h) + .5rem); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .7rem; margin-bottom: 1rem; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.filters__chips { display: flex; flex-wrap: wrap; gap: .45rem; flex: 1 1 auto; min-width: 0; }
.fchip { display: inline-flex; align-items: center; gap: .5em; padding: .5rem .85rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: .86rem; transition: all .2s; max-width: 100%; }
.fchip span { overflow-wrap: anywhere; text-align: start; }
.fchip b { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .35rem; border-radius: 999px; background: var(--chip-bg); font-size: .75rem; }
.fchip:hover { border-color: var(--primary-ink); }
.fchip.is-on { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
.fchip.is-on b { background: rgba(255, 255, 255, .2); }
.search { position: relative; display: flex; align-items: center; flex: 1 1 15rem; min-width: 0; }
.search .ic { position: absolute; inset-inline-start: .9rem; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 2.7rem; padding-block: .5rem; padding-inline: 2.6rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface-2); }
.search input:focus { outline: none; border-color: var(--focus); }
@media (max-width: 760px) { .filters { position: static; } }
.results { color: var(--muted); font-weight: 700; font-size: .9rem; margin: 0 0 1.5rem; min-height: 1.5em; }
.svc-group { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.svc-group__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.svc-group__head h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); margin: 0 0 .2rem; }
.svc-group__head p { margin: 0; color: var(--muted); font-size: .95rem; }
.svc-group__num { font-family: var(--f-head); font-weight: 800; font-size: 1rem; color: var(--saffron-b); }
.empty { display: grid; justify-items: center; gap: 1rem; text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty__ic { width: 3rem; height: 3rem; color: var(--saffron-b); }

/* ───────────────────────── Steps / why ───────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 2.3rem; inset-inline: 12%; border-top: 2px dashed var(--line-2); }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step__num { position: absolute; top: -.4rem; inset-inline-start: calc(50% + 1.2rem); display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: linear-gradient(135deg, var(--saffron-a), var(--saffron-b)); color: #1B1530; font-weight: 800; font-size: .85rem; z-index: 2; box-shadow: 0 .4rem .8rem -.3rem rgba(227, 154, 18, .8); }
.step__icon { width: 4.6rem; height: 4.6rem; border-radius: 1.4rem; margin-bottom: 1.1rem; position: relative; z-index: 1; }
.step__t { font-size: 1.08rem; margin-bottom: .4rem; }
.step__d { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) {
	.steps { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
	.steps::before { top: 1rem; bottom: 1rem; inset-inline: 2.3rem auto; border-top: 0; border-inline-start: 2px dashed var(--line-2); }
	.step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.1rem; text-align: start; padding: 0; }
	.step__icon { grid-row: span 2; margin: 0; }
	.step__num { inset-inline-start: 3.4rem; top: -.4rem; }
}

.why { overflow: clip; }
.why__grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 1000px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why__grid { grid-template-columns: minmax(0, 1fr); } }
.why-item { padding: 1.5rem; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 246, 227, .12); backdrop-filter: blur(6px); min-width: 0; }
.why-item__icon { --acc: #D98E0D; width: 3rem; height: 3rem; margin-bottom: 1rem; color: #1B1530; }
.why-item h3 { font-size: 1.08rem; margin-bottom: .4rem; color: #FFF6E3; }
.why-item p { margin: 0; color: #C9CCEB; font-size: .94rem; }

/* ───────────────────────── Posts ───────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.post-card:hover { box-shadow: var(--shadow-lg); }
.post-card__cover { display: block; }
.cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.cover--wide { aspect-ratio: 21 / 9; border-radius: var(--radius-lg); }
.cover__img { width: 100%; height: 100%; object-fit: cover; }
.cover__art { --acc: var(--majorelle-2); position: absolute; inset: 0; display: grid; place-items: center; perspective: 700px; background: radial-gradient(80% 90% at 20% 10%, color-mix(in srgb, var(--acc) 90%, #fff) 0%, var(--acc) 40%, #0B0F35 100%); overflow: hidden; }
.cover__art--academic { --acc: #17A05D; }
.cover__art--ai { --acc: #4652D6; }

.cover__grid { position: absolute; inset: -20%; background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 2rem 2rem; transform: rotateX(60deg) translateY(25%); transform-origin: bottom; }
.cover__icon { position: relative; display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 1.4rem; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #FFF6E3; backdrop-filter: blur(6px); box-shadow: 0 1.4rem 2rem -1rem rgba(0, 0, 0, .5); transform: rotateX(14deg) rotateY(-16deg); }
.cover--wide .cover__icon { width: 7rem; height: 7rem; }
.cover__icon .ic { width: 45%; height: 45%; }
.post-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; color: var(--muted); font-size: .8rem; font-weight: 700; }
.post-card__title { font-size: 1.12rem; margin: 0; }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card__title a:hover { color: var(--primary-ink); }
.post-card__excerpt { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; font-size: .88rem; color: var(--primary-ink); }
html[data-theme="dark"] .post-card__more { color: var(--saffron-a); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager__n { font-weight: 800; color: var(--muted); }

/* Article */
.article__head { padding-top: clamp(1.5rem, 4vw, 3rem); }
.article__title { font-size: clamp(1.8rem, 1rem + 2.6vw, 3.1rem); margin: .6rem 0 1rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); font-weight: 700; font-size: .9rem; }
.article__meta span { display: inline-flex; align-items: center; gap: .45em; }
.article__cover-wrap { margin-block: 1.5rem 2.5rem; }
.prose { font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.3rem, 1rem + .9vw, 1.65rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--saffron-b); font-weight: 800; }
.prose strong { color: var(--text); }
.prose a { color: var(--primary-ink); }
.lead-p { font-size: 1.12rem; color: var(--muted); }
.post-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin: 3rem 0 2rem; padding: 1.5rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--majorelle) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line-2); }
.post-cta__text { flex: 1 1 16rem; min-width: 0; }
.post-cta__text p { margin: 0; color: var(--muted); font-size: .94rem; }
.post-cta__t { font-family: var(--f-head); font-weight: 800; font-size: 1.12rem; color: var(--text) !important; margin-bottom: .2rem !important; }
.share { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 1rem; border-top: 1px solid var(--line); }
.share__t { margin: 0; font-weight: 800; }

/* Breadcrumbs + page hero */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary-ink); }
.crumbs span[aria-current] { color: var(--text); overflow-wrap: anywhere; }
.page-hero { position: relative; overflow: clip; padding-block: clamp(2.2rem, 6vw, 4.5rem); background: radial-gradient(70% 120% at 100% 0%, var(--hero-a), transparent 60%), radial-gradient(60% 120% at 0% 100%, var(--hero-b), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero__in { position: relative; max-width: 52rem; margin-inline: auto; text-align: center; }
.page-hero__in .crumbs ol { justify-content: center; }
.page-hero__icon { display: inline-grid; place-items: center; width: 3.6rem; height: 3.6rem; margin-bottom: 1rem; border-radius: 1.1rem; background: linear-gradient(145deg, var(--saffron-a), var(--saffron-b)); color: #1B1530; box-shadow: 0 1rem 1.6rem -.8rem rgba(227, 154, 18, .9); transform: rotate(-6deg); }
.page-hero__icon .ic { width: 45%; height: 45%; }
.page-hero__title { font-size: clamp(1.9rem, 1rem + 2.8vw, 3.2rem); margin-bottom: .6rem; }
.page-hero__sub { font-size: 1.08rem; color: var(--muted); margin: 0 auto; max-width: 42rem; }

/* ───────────────────────── FAQ ───────────────────────── */
.faq { display: grid; gap: .75rem; }
.faq__item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--saffron-b) 55%, transparent); box-shadow: var(--shadow); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ic { flex: none; width: 2rem; height: 2rem; padding: .5rem; border-radius: 50%; background: var(--chip-bg); color: var(--primary-ink); transition: transform .3s var(--ease); }
html[data-theme="dark"] .faq__ic { color: var(--saffron-a); }
.faq__item[open] .faq__ic { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq__a p { margin: 0; }
.faq-more { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }
.faq-more p { flex: 1 1 14rem; margin: 0; font-weight: 700; }
.faq-more__ic { width: 2.2rem; height: 2.2rem; color: var(--saffron-b); }

/* ───────────────────────── Contact ───────────────────────── */
.contact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); gap: clamp(.8rem, 1.8vw, 1.2rem); }
.contact-grid > li { display: flex; min-width: 0; }
.contact-card { --acc: var(--majorelle-2); flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.15rem 1.2rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); min-width: 0; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.contact-card__icon { width: 3rem; height: 3rem; border-radius: .95rem; }
.contact-card .contact-card__icon { --acc: inherit; }
.contact-card--wa { --acc: #128C4A; }
.contact-card--tel { --acc: #2B35A0; }
.contact-card--ig { --acc: #C13584; }
.contact-card--map { --acc: #D2603A; }
.contact-card__txt { display: grid; gap: .1rem; min-width: 0; }
.contact-card__label { font-weight: 700; font-size: .98rem; line-height: 1.4; }
.contact-card__value { color: var(--muted); font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; text-align: start; }
[dir="rtl"] bdi.contact-card__value { text-align: right; }
.contact-card__go { width: 1rem; height: 1rem; color: var(--muted); transition: color .2s, transform .25s var(--ease); }
[dir="rtl"] .contact-card:not(.contact-card--map) .contact-card__go { transform: scaleX(-1); }
.contact-card:hover .contact-card__go { color: var(--acc); }
html[data-theme="dark"] .contact-card--tel { --acc: #6F7BFF; }
.contact-follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.2rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; color: var(--muted); }
.contact-follow .socials { justify-content: center; }

/* Socials: each network lights up in its own colour (readable in light and dark). */
.socials { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.socials__a { --brand: var(--majorelle-2); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: inherit; text-decoration: none; transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s; }
.socials__a .ic { width: 1.15rem; height: 1.15rem; }
.socials__a--whatsapp { --brand: #128C4A; }
.socials__a--instagram { --brand: #D62976; }
.socials__a--facebook { --brand: #1877F2; }
.socials__a--tiktok { --brand: #111111; }
.socials__a--linkedin { --brand: #0A66C2; }
.socials__a--youtube { --brand: #E52D27; }
.socials__a:hover, .socials__a:focus-visible { transform: translateY(-2px); background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 .7rem 1.2rem -.6rem var(--brand); }
.socials__a--instagram:hover, .socials__a--instagram:focus-visible { background: radial-gradient(circle at 30% 107%, #FDD86A 0%, #F77737 30%, #D62976 60%, #962FBF 90%); border-color: transparent; }
.socials__a--tiktok:hover { box-shadow: -2px -2px 0 #25F4EE, 2px 2px 0 #FE2C55; }
html[data-theme="dark"] .socials__a--tiktok:hover, .site-footer .socials__a--tiktok:hover { background: #fff; color: #111; border-color: #fff; }
.socials--lg .socials__a { width: 3.2rem; height: 3.2rem; }

/* CTA band */
.cta-band { padding-block: clamp(2rem, 5vw, 4rem); }
.cta-band__box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; padding: clamp(1.8rem, 5vw, 3.5rem); border-radius: calc(var(--radius-lg) * 1.3); color: #FFF6E3; background: radial-gradient(90% 140% at 100% 0%, rgba(247, 203, 77, .28), transparent 50%), linear-gradient(130deg, #2B35A0, #141A5C 70%); box-shadow: var(--shadow-lg); isolation: isolate; perspective: 800px; }
.cta-band__box::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16; background: conic-gradient(from 45deg at 50% 50%, #F7CB4D 0 25%, transparent 0 50%, #F7CB4D 0 75%, transparent 0) 0 0 / 2.4rem 2.4rem; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
[dir="rtl"] .cta-band__box::before { mask-image: linear-gradient(-90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(-90deg, transparent, #000 60%); }
.cta-band__text { flex: 1 1 20rem; min-width: 0; position: relative; }
.cta-band__text h2 { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); margin-bottom: .4rem; }
.cta-band__text p { margin: 0; color: #D4D7F2; }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: .7rem; position: relative; }
@media (max-width: 600px) { .cta-band__btns .btn { flex: 1 1 100%; } }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer { --mark-a: #F7CB4D; --mark-b: #E39A12; --logo-word: #FFF6E3; background: #070A26; color: #C3C6E6; padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { color: #E9EAF7; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--saffron-a); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.8rem, 4vw, 3rem); padding-bottom: 2.5rem; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; } .site-footer__grid > :last-child { grid-column: 1 / -1; } }
@media (max-width: 340px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer__logo { display: inline-flex; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer__logo:hover .logo__word { color: var(--saffron-a); }
.site-footer__brand p { font-size: .94rem; line-height: 1.85; max-width: 26rem; margin-bottom: 1.2rem; }
.site-footer__h { font-family: var(--f-head); font-size: 1rem; font-weight: 700; color: #FFF6E3; margin-bottom: 1rem; }
.site-footer__links, .site-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .93rem; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: .65rem; }
.site-footer__contact .ic { color: var(--saffron-a); }
.site-footer .socials__a { border-color: rgba(255, 246, 227, .2); color: #E9EAF7; }
.site-footer .socials__a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 246, 227, .1); padding-block: 1.2rem 1.6rem; font-size: .84rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; margin: 0; padding: 0; }

.wa-float { position: fixed; inset-inline-end: 1.1rem; bottom: calc(1.1rem + env(safe-area-inset-bottom)); z-index: 50; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: #128C4A; color: #fff; box-shadow: 0 14px 30px -10px rgba(18, 140, 74, .9); transition: transform .3s var(--ease); }
.wa-float .ic { width: 1.7rem; height: 1.7rem; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #128C4A; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.page-portal .wa-float, .page-request .wa-float, .page-track .wa-float { display: none; }

.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); z-index: 120; transform: translateX(-50%); max-width: calc(100vw - 2rem); padding: .8rem 1.2rem; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: .92rem; box-shadow: var(--shadow-lg); text-align: center; }

/* ───────────────────────── About ───────────────────────── */
.about__story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .about__story { grid-template-columns: minmax(0, 1fr); } }
.mission { margin: 2rem 0 0; padding: 1.5rem 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--saffron-b); box-shadow: var(--shadow-sm); }
.mission p { margin: 0; font-family: var(--f-head); font-size: 1.15rem; font-weight: 700; }
.mission .mission__t { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron-b); margin-bottom: .4rem; }
html[data-lang="ar"] .mission .mission__t { letter-spacing: 0; font-size: .95rem; }
.about__frame { position: relative; border-radius: calc(var(--radius-lg) * 1.3); overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: var(--shadow-lg); }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.4vw, 1rem); aspect-ratio: 1; width: 100%; }
.collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 1.1rem; box-shadow: var(--shadow); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .values { grid-template-columns: minmax(0, 1fr); } }
.value { padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.value__icon { margin-bottom: 1rem; }
.value:nth-child(2) .value__icon { --acc: #D98E0D; }
.value:nth-child(3) .value__icon { --acc: var(--teal); }
.value:nth-child(4) .value__icon { --acc: var(--terra); }
.value h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.value p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Legal pages */
.legal { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.2rem; }
.legal__toc ol { margin: 0; padding-inline-start: 1.2rem; display: grid; gap: .45rem; font-size: .9rem; }
.legal__toc a { color: var(--text); text-decoration: none; }
.legal__toc a:hover { color: var(--primary-ink); }
.legal__body h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; margin-top: 2rem; }
.legal__n { display: inline-grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: .6rem; background: var(--chip-bg); color: var(--primary-ink); font-size: .9rem; }
html[data-theme="dark"] .legal__n { color: var(--saffron-a); }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal__toc { position: static; } }

/* 404 */
.nf__in { display: grid; justify-items: center; text-align: center; gap: .5rem; }
.nf__art { display: flex; align-items: center; gap: 2rem; margin-bottom: 2rem; perspective: 900px; }
.nf__digit { font-family: var(--f-head); font-weight: 800; font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: 1; background: linear-gradient(160deg, var(--saffron-a), var(--saffron-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf__zero { display: grid; place-items: center; width: clamp(4.5rem, 3rem + 6vw, 7rem); aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, var(--majorelle-2), var(--majorelle)); color: var(--saffron-a); box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.nf__zero .ic { width: 42%; height: 42%; }
.nf h1 { font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); }
.nf p { color: var(--muted); max-width: 34rem; }

/* ───────────────────────── Forms ───────────────────────── */
.tabs { display: inline-flex; gap: .3rem; padding: .35rem; margin-bottom: 1.5rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); max-width: 100%; flex-wrap: wrap; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; padding: .65rem 1.2rem; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font-weight: 800; font-size: .95rem; text-decoration: none; transition: all .25s var(--ease); }
.tab:hover { color: var(--text); }
.tab.is-on { background: var(--btn-primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(43, 53, 160, .9); }
.tabs--sm { margin: 0; }
.tabs--sm .tab { padding: .5rem .95rem; font-size: .88rem; }

.req-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .req-layout { grid-template-columns: minmax(0, 1fr); } }
.req-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 1rem); }
@media (max-width: 1000px) { .req-aside { position: static; } }
.aside-card { padding: 1.4rem; }
.aside-card__t { font-size: 1.05rem; }
.aside-card--wa { display: grid; justify-items: start; gap: .7rem; background: linear-gradient(160deg, color-mix(in srgb, #128C4A 12%, var(--surface)), var(--surface)); }
.aside-card--wa p { margin: 0; font-weight: 700; }
.aside-card__big { width: 2.4rem; height: 2.4rem; color: #128C4A; }
.aside-card__row { display: flex; gap: .7rem; font-size: .9rem; color: var(--muted); }
.aside-card__row .ic { color: var(--saffron-b); margin-top: .35em; }
.aside-card__row strong { color: var(--text); }
.aside-card__row:last-child { margin: 0; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.mini-steps li { display: flex; gap: .8rem; }
.mini-steps b { display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--chip-bg); color: var(--primary-ink); font-size: .85rem; }
html[data-theme="dark"] .mini-steps b { color: var(--saffron-a); }
.mini-steps strong { display: block; font-size: .93rem; }
.mini-steps span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.55; }

.form { display: grid; gap: 1.35rem; }
.form__row { display: grid; gap: 1.2rem; }
.form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .form__row--2, .form__row--3 { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; align-content: start; gap: .5rem; min-width: 0; }
.field > label, .field .label { font-weight: 700; font-size: .95rem; line-height: 1.45; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 600; font-size: .85em; }
.field input[type="text"], .field input[type="tel"], .field input[type="password"], .field input[type="search"], .field input[type="date"], .field input[type="number"], .field input[type="url"], .field select, .field textarea {
	width: 100%; height: 3.25rem; padding: 0 1rem; line-height: 1.4; border-radius: .9rem; border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--text); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { height: auto; min-height: 8.5rem; padding: .85rem 1rem; resize: vertical; line-height: 1.75; }
.field select { padding-inline-end: 2.4rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field.has-err input, .field.has-err textarea, .field.has-err .ms__trigger, .field.has-err .slider { border-color: var(--danger); }
.field__hint { margin: 0; font-size: .84rem; line-height: 1.6; color: var(--muted); }
.field__err { margin: 0; font-size: .85rem; color: var(--danger); font-weight: 700; }
.field__err:empty { display: none; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .ic { position: absolute; inset-inline-start: 1rem; color: var(--muted); pointer-events: none; z-index: 1; }
.input-icon:focus-within > .ic { color: var(--text); }
[data-field="whatsapp"] .input-icon > .ic { color: #128C4A; }
.field .input-icon input, .link-row .input-icon input { padding-inline-start: 2.8rem; }
/* LTR values (phone numbers, links, codes) keep their own direction, but in Arabic they sit on the right like every other field. */
[dir="rtl"] .field input[dir="ltr"], [dir="rtl"] .link-row input[dir="ltr"] { text-align: right; }
[dir="rtl"] .input-icon input[dir="ltr"] { padding-left: 1rem; padding-right: 2.8rem; }
/* Empty "auto" fields follow the page direction so their hint reads naturally. */
[dir="rtl"] .field input[dir="auto"]:placeholder-shown, [dir="rtl"] .field textarea[dir="auto"]:placeholder-shown { direction: rtl; text-align: right; }
[dir="ltr"] .field input[dir="auto"]:placeholder-shown, [dir="ltr"] .field textarea[dir="auto"]:placeholder-shown { direction: ltr; text-align: left; }
[dir="rtl"] input::placeholder, [dir="rtl"] textarea::placeholder { text-align: right; }
[dir="ltr"] input::placeholder, [dir="ltr"] textarea::placeholder { text-align: left; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__alert { padding: .9rem 1.1rem; border-radius: .9rem; background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); font-weight: 700; font-size: .92rem; }
.form__alert.is-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); }

/* Multi-select */
.ms { position: relative; }
.ms__trigger { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-height: 3.25rem; padding: .45rem .8rem .45rem .5rem; border-radius: .9rem; border: 1.5px solid var(--line-2); background: var(--surface-2); text-align: start; }
[dir="rtl"] .ms__trigger { padding: .45rem .5rem .45rem .8rem; }
.ms__trigger[aria-expanded="true"] { border-color: var(--focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent); }
.ms__value { display: flex; flex-wrap: wrap; gap: .35rem; min-width: 0; flex: 1; }
.ms__ph { color: var(--muted); padding-inline: .5rem; }
.ms__tag { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .3rem .4rem .3rem .7rem; border-radius: 999px; background: var(--btn-primary); color: #fff; font-size: .82rem; font-weight: 700; }
[dir="rtl"] .ms__tag { padding: .3rem .7rem .3rem .4rem; }
.ms__tag span { overflow-wrap: anywhere; }
.ms__tag button { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .2); color: #fff; padding: 0; }
.ms__tag button .ic { width: .7rem; height: .7rem; }
.ms__chev { transition: transform .25s; color: var(--muted); }
.ms__trigger[aria-expanded="true"] .ms__chev { transform: rotate(180deg); }
.ms__panel { position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + .4rem); display: flex; flex-direction: column; max-height: min(26rem, 70vh); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.ms__search { position: relative; display: flex; align-items: center; padding: .6rem; border-bottom: 1px solid var(--line); }
.ms__search .ic { position: absolute; inset-inline-start: 1.3rem; color: var(--muted); }
.ms__search input { width: 100%; height: 2.75rem; padding-inline: 2.4rem .8rem; border-radius: .7rem; border: 1.5px solid var(--line); background: var(--surface-2); }
.ms__search input:focus { outline: none; border-color: var(--focus); }
.ms__list { overflow-y: auto; padding: .4rem; overscroll-behavior: contain; }
.ms__gt { display: flex; align-items: center; gap: .5rem; margin: .6rem .5rem .3rem; font-size: .78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
html[data-lang="ar"] .ms__gt { letter-spacing: 0; font-size: .85rem; }
.ms__opt { display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: .7rem; cursor: pointer; }
.ms__opt:hover, .ms__opt.is-focus { background: var(--chip-bg); }
.ms__opt input { position: absolute; opacity: 0; pointer-events: none; }
.ms__box { display: grid; place-items: center; flex: none; width: 1.35rem; height: 1.35rem; border-radius: .4rem; border: 2px solid var(--line-2); color: transparent; transition: all .15s; }
.ms__box .ic { width: .8rem; height: .8rem; }
.ms__opt input:checked ~ .ms__box { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
.ms__opt input:focus-visible ~ .ms__box { outline: 3px solid var(--focus); outline-offset: 2px; }
.ms__ic { --acc: var(--majorelle-2); display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: .6rem; color: #fff; background: var(--acc); }
.ms__ic .ic { width: 50%; height: 50%; }
.ms__name { font-size: .92rem; font-weight: 600; min-width: 0; }
.ms__foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .8rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); font-weight: 700; }

/* Voice recorder */
.voice { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .8rem; border-radius: 1rem; border: 1.5px dashed var(--line-2); background: var(--surface-2); min-height: 4.2rem; }
.voice__btn { display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), background-color .2s; }
.voice__btn:hover { transform: scale(1.06); }
.voice__btn .ic { width: 1.05rem; height: 1.05rem; }
.voice__btn--rec { width: 3.4rem; height: 3.4rem; background: linear-gradient(135deg, #E0483B, #B3261E); color: #fff; box-shadow: 0 10px 22px -10px rgba(179, 38, 30, .9); }
.voice__btn--main { background: var(--btn-primary); color: #fff; }
.voice__btn--danger { color: var(--danger); }
.voice__label { font-weight: 700; font-size: .92rem; }
.voice__status { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .88rem; min-width: 0; }
.voice__dot { width: .7rem; height: .7rem; border-radius: 50%; background: #E0483B; animation: blink 1s ease-in-out infinite; }
.voice.is-paused .voice__dot { animation: none; background: var(--saffron-b); }
@keyframes blink { 50% { opacity: .25; } }
.voice__time { font-variant-numeric: tabular-nums; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.voice__wave { flex: 1 1 8rem; min-width: 6rem; height: 2.6rem; display: block; }
.voice__actions { display: flex; gap: .45rem; margin-inline-start: auto; flex-wrap: wrap; }
.voice__msg { flex: 1 1 100%; margin: 0; font-size: .85rem; color: var(--muted); }
.voice__msg.is-err { color: var(--danger); font-weight: 700; }
.voice__msg.is-ok { color: var(--ok); font-weight: 700; }
.voice__bar { flex: 1 1 100%; height: .3rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.voice__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron-a), var(--saffron-b)); transition: width .2s; }

/* Uploader */
.up__zone { position: relative; display: grid; justify-items: center; gap: .5rem; padding: 1.6rem 1rem; border-radius: 1rem; border: 2px dashed var(--line-2); background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.up__zone:hover, .up__zone.is-over { border-color: var(--focus); background: color-mix(in srgb, var(--saffron-a) 8%, var(--surface-2)); }
.up__zone.is-over { transform: scale(1.01); }
.up__zone:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.up__icon { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 1rem; background: linear-gradient(145deg, var(--saffron-a), var(--saffron-b)); color: #1B1530; box-shadow: 0 .8rem 1.4rem -.7rem rgba(227, 154, 18, .9); }
.up__icon .ic { width: 1.4rem; height: 1.4rem; }
.up__t { font-weight: 800; }
.up__hint { font-size: .8rem; color: var(--muted); max-width: 30rem; }
.up__list { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .5rem; }
.up__list:empty { display: none; }
.upf { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem .8rem; padding: .65rem .8rem; border-radius: .9rem; background: var(--surface); border: 1px solid var(--line); }
.upf__ic { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .7rem; background: var(--chip-bg); color: var(--primary-ink); grid-row: span 2; }
html[data-theme="dark"] .upf__ic { color: var(--saffron-a); }
.upf__name { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.upf__meta { grid-column: 2; display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--muted); min-width: 0; }
.upf__bar { flex: 1; height: .32rem; border-radius: 999px; background: var(--line); overflow: hidden; min-width: 3rem; }
.upf__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--majorelle-2), var(--saffron-b)); transition: width .25s; }
.upf.is-done .upf__bar i { background: var(--ok); }
.upf.is-err .upf__meta { color: var(--danger); font-weight: 700; }
.upf__btns { display: flex; gap: .3rem; grid-row: span 2; }
.upf__btns button { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); }
.upf__btns button:hover { color: var(--danger); border-color: var(--danger); }
.upf__btns button.is-retry:hover { color: var(--primary-ink); border-color: var(--primary-ink); }
.upf__btns .ic { width: .85rem; height: .85rem; }

/* Links list */
.links { display: grid; gap: .5rem; }
.link-row { display: flex; align-items: center; gap: .5rem; }
.link-row .icon-btn { height: 3.25rem; min-width: 3.25rem; flex: none; }
.link-row .input-icon { flex: 1; min-width: 0; }
.link-row input { width: 100%; height: 3.25rem; padding: 0 1rem; border-radius: .9rem; border: 1.5px solid var(--line-2); background: var(--surface-2); }
.link-row input:focus { outline: none; border-color: var(--focus); }
.link-row input.is-bad { border-color: var(--danger); }
.links__add { justify-self: start; }

/* Slide to verify */
.slider { --p: 0; position: relative; height: 3.4rem; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line-2); overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none; }
.slider__fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p) * (100% - 3.1rem) + 3.1rem); background: linear-gradient(90deg, color-mix(in srgb, var(--saffron-a) 55%, transparent), color-mix(in srgb, var(--saffron-b) 70%, transparent)); border-radius: 999px; }
[dir="rtl"] .slider__fill { background: linear-gradient(-90deg, color-mix(in srgb, var(--saffron-a) 55%, transparent), color-mix(in srgb, var(--saffron-b) 70%, transparent)); }
.slider__label { position: absolute; inset: 0; display: grid; place-items: center; padding-inline: 3.6rem; font-weight: 800; font-size: .9rem; color: var(--muted); pointer-events: none; text-align: center; line-height: 1.2; }
.slider__label::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .5) 50%, transparent 100%); background-size: 40% 100%; background-repeat: no-repeat; animation: shine 2.4s linear infinite; mix-blend-mode: overlay; }
@keyframes shine { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.slider__knob { position: absolute; top: .2rem; inset-inline-start: .2rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--btn-primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(43, 53, 160, .9); cursor: grab; transform: translateX(calc(var(--p) * var(--max, 0px))); touch-action: none; }
[dir="rtl"] .slider__knob { transform: translateX(calc(var(--p) * var(--max, 0px) * -1)); }
.slider__knob:active { cursor: grabbing; }
.slider.is-anim .slider__knob, .slider.is-anim .slider__fill { transition: transform .35s var(--ease), width .35s var(--ease); }
.slider.is-done { border-color: var(--ok); }
.slider.is-done .slider__fill { background: color-mix(in srgb, var(--ok) 22%, transparent); }
.slider.is-done .slider__knob { background: var(--ok); }
.slider.is-done .slider__label { color: var(--ok); }
.slider.is-done .slider__label::after { display: none; }

/* Success */
.success { display: grid; justify-items: center; text-align: center; gap: .6rem; padding-block: 2.5rem; outline: none; }
.success__check svg { width: 5.5rem; height: 5.5rem; }
.success__check circle { fill: color-mix(in srgb, var(--ok) 14%, transparent); stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s var(--ease) forwards; }
.success__check path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__t { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); margin: .5rem 0 0; }
.success > p { color: var(--muted); margin: 0; max-width: 32rem; }
.success__user { display: grid; gap: .5rem; justify-items: center; margin-top: 1rem; padding: 1.2rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface-2); border: 1.5px dashed var(--saffron-b); }
.success__user > span { font-weight: 800; font-size: .9rem; }
.success__code { display: flex; align-items: center; gap: .6rem; }
.success__code code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); font-weight: 800; letter-spacing: .08em; color: var(--primary-ink); }
html[data-theme="dark"] .success__code code { color: var(--saffron-a); }
.success__hint { display: flex; gap: .5rem; align-items: flex-start; max-width: 32rem; margin: .6rem 0 0; font-size: .88rem; color: var(--muted); text-align: start; }
.success__hint .ic { color: var(--saffron-b); margin-top: .3em; }
.success__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1rem; }

/* Track */
.track-login { max-width: 40rem; }
.track-login__head { display: flex; gap: 1rem; align-items: flex-start; }
.track-login__head h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.track-login__head p { margin: 0; color: var(--muted); font-size: .92rem; }
.track-login__icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 1rem; background: var(--chip-bg); color: var(--primary-ink); }
html[data-theme="dark"] .track-login__icon { color: var(--saffron-a); }
.track-login__icon .ic { width: 1.4rem; height: 1.4rem; }
.tv { display: grid; gap: 1.2rem; }
.tv__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tv__user { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.tv__user code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 1.2rem; color: var(--primary-ink); }
html[data-theme="dark"] .tv__user code { color: var(--saffron-a); }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; counter-reset: t; }
.timeline li { position: relative; display: grid; justify-items: center; gap: .45rem; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 0 .2rem; }
.timeline li::before { content: ""; position: absolute; top: 1.05rem; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.timeline li:first-child::before { display: none; }
.timeline b { position: relative; z-index: 1; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); color: var(--muted); }
.timeline b .ic { width: .95rem; height: .95rem; }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done::before, .timeline li.is-cur::before { background: var(--ok); }
.timeline li.is-done b { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.is-cur { color: var(--text); }
.timeline li.is-cur b { background: linear-gradient(135deg, var(--saffron-a), var(--saffron-b)); border-color: var(--saffron-b); color: #1B1530; box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--saffron-a) 30%, transparent); }
@media (max-width: 560px) {
	.timeline { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
	.timeline li { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; text-align: start; font-size: .88rem; }
	.timeline li::before { top: -.9rem; inset-inline-start: 1.05rem; width: 3px; height: 1rem; }
}
.status-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; font-weight: 800; font-size: .8rem; background: var(--chip-bg); color: var(--primary-ink); white-space: nowrap; }
html[data-theme="dark"] .status-badge { color: var(--saffron-a); }
.status-badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-badge--received { color: #3D49C9; background: rgba(61, 73, 201, .12); }
.status-badge--review { color: #B9760A; background: rgba(227, 154, 18, .14); }
.status-badge--accepted { color: #0B7C7C; background: rgba(14, 156, 156, .13); }
.status-badge--progress { color: #7A4CD9; background: rgba(122, 76, 217, .12); }
.status-badge--delivered { color: #13804B; background: rgba(19, 128, 75, .13); }
.status-badge--rejected { color: #C0362C; background: rgba(192, 54, 44, .12); }
html[data-theme="dark"] .status-badge--received { color: #9AA2FF; }
html[data-theme="dark"] .status-badge--review { color: #F7CB4D; }
html[data-theme="dark"] .status-badge--accepted { color: #5EE0E0; }
html[data-theme="dark"] .status-badge--progress { color: #C4A8FF; }
html[data-theme="dark"] .status-badge--delivered { color: #4ADE9A; }
html[data-theme="dark"] .status-badge--rejected { color: #FF8A80; }
.kv { display: grid; gap: .9rem; margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(8rem, .35fr) minmax(0, 1fr); gap: .3rem 1rem; }
.kv dt { font-weight: 800; font-size: .88rem; color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
@media (max-width: 560px) { .kv > div { grid-template-columns: minmax(0, 1fr); } }
.tag-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem .8rem; padding: .6rem .8rem; border-radius: .9rem; background: var(--surface-2); border: 1px solid var(--line); }
.file__ic { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .7rem; background: var(--chip-bg); color: var(--primary-ink); }
html[data-theme="dark"] .file__ic { color: var(--saffron-a); }
.file__name { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file__meta { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; }
.file__btns { display: flex; gap: .3rem; }
.file__btns a, .file__btns button { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.file__btns a:hover, .file__btns button:hover { border-color: var(--primary-ink); color: var(--primary-ink); }
.file__btns button.is-del:hover { border-color: var(--danger); color: var(--danger); }
.file.is-removed { opacity: .45; text-decoration: line-through; }
.file audio { grid-column: 1 / -1; width: 100%; height: 2.4rem; }
.links-out { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.links-out a { overflow-wrap: anywhere; }
.subhead { display: flex; align-items: center; gap: .5rem; font-size: 1.02rem; margin: 0 0 .8rem; }
.subhead .ic { color: var(--saffron-b); }
.notice { display: flex; align-items: flex-start; gap: .6rem; padding: .9rem 1.1rem; border-radius: .9rem; font-size: .9rem; font-weight: 700; }
.notice .ic { margin-top: .3em; }
.notice--warn { background: color-mix(in srgb, var(--saffron-a) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--saffron-b) 45%, transparent); color: var(--text); }
.notice--info { background: var(--chip-bg); border: 1px solid var(--line-2); }

/* ───────────────────────── Portal ───────────────────────── */
.portal-login { max-width: 28rem; margin: clamp(1rem, 4vw, 3rem) auto; text-align: center; justify-items: center; }
.portal-login .field { width: 100%; text-align: start; }
.portal-login h1 { font-size: 1.6rem; margin: 0; }
.portal-login > p { margin: 0; color: var(--muted); }
.portal-login__mark { width: 5rem; }
.portal-login__svg { width: 100%; height: auto; aspect-ratio: 300 / 267; }
.portal__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.portal__title { display: flex; align-items: center; gap: .8rem; }
.portal__title h1 { font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); margin: 0; }
.portal__badge { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: .9rem; background: linear-gradient(145deg, var(--saffron-a), var(--saffron-b)); color: #1B1530; }
.portal__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.portal .notice { margin-bottom: 1.2rem; }
.portal__tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.portal__tools .filters__chips { flex: 1 1 30rem; }
.plist { display: grid; gap: .7rem; }
.prow { display: grid; grid-template-columns: minmax(9rem, 1fr) minmax(0, 1.6fr) minmax(0, 2fr) auto auto; align-items: center; gap: .5rem 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; text-align: start; width: 100%; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.prow:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.prow__user { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; color: var(--primary-ink); font-size: .92rem; }
html[data-theme="dark"] .prow__user { color: var(--saffron-a); }
.prow__name { font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.prow__name small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.prow__svc { color: var(--muted); font-size: .86rem; min-width: 0; overflow-wrap: anywhere; }
.prow__date { color: var(--muted); font-size: .8rem; white-space: nowrap; }
@media (max-width: 900px) {
	.prow { grid-template-columns: minmax(0, 1fr) auto; }
	.prow__svc { grid-column: 1 / -1; }
	.prow__date { grid-column: 1; }
}
.pdrawer { position: fixed; inset: 0; z-index: 95; }
.pdrawer__backdrop { position: absolute; inset: 0; background: rgba(6, 8, 30, .55); backdrop-filter: blur(3px); }
.pdrawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(48rem, 100vw); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); box-shadow: var(--shadow-lg); padding: clamp(1rem, 3vw, 2rem); outline: none; animation: slideIn .35s var(--ease); }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.pdrawer__x { position: sticky; top: 0; float: inline-end; z-index: 2; }
.pdrawer__body { display: grid; gap: 1.2rem; }
.pd__head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding-inline-end: 3rem; }
.pd__head h2 { margin: 0; font-size: 1.35rem; }
.pd__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.pd__sec { display: grid; gap: .9rem; }
.clauses { display: grid; gap: .6rem; counter-reset: cl; }
.clause { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem; align-items: start; }
.clause::before { counter-increment: cl; content: counter(cl); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-top: .6rem; border-radius: .6rem; background: var(--chip-bg); color: var(--primary-ink); font-weight: 800; font-size: .85rem; }
html[data-theme="dark"] .clause::before { color: var(--saffron-a); }
.clause textarea { min-height: 4.6rem !important; }
.clause button { margin-top: .5rem; }
.crow { grid-template-columns: minmax(9rem, 1fr) minmax(0, 2fr) minmax(0, 1.4fr) auto; }
@media (max-width: 900px) { .crow { grid-template-columns: minmax(0, 1fr) auto; } }

/* ── Small-screen refinements ── */
.fchip__s { display: none; }
@media (max-width: 760px) {
	.filters__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 100%; }
	.filters__chips .fchip:first-child { grid-column: 1 / -1; }
	.fchip { justify-content: center; }
	.fchip__l { display: none; }
	.fchip__s { display: inline; }
	.filters { padding: .6rem; }
	.svc-group__head { flex-wrap: wrap; gap: .7rem; }
	.svc-group__head > div { flex: 1 1 100%; }
}
@media (max-width: 560px) {
	.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 1.2rem; }
	.tabs .tab { justify-content: center; border-radius: .9rem; padding: .6rem .45rem; gap: .4rem; font-size: .84rem; text-align: center; white-space: normal; line-height: 1.3; }
	.tabs--sm { width: auto; }
	.cube3d { --s: 3.6rem; }
	.wa-float { width: 3.1rem; height: 3.1rem; inset-inline-end: .8rem; bottom: calc(.8rem + env(safe-area-inset-bottom)); }
}

/* ───────────────────────── Motion & print ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
@media print {
	.site-header, .site-footer, .cta-band, .wa-float, .drawer, .toast, .hero__visual { display: none !important; }
	body { background: #fff; color: #000; }
}



/* ───────────────────────── v1.1: photos, reels, Instagram posts ───────────────────────── */
html[data-lang="ar"] h1, html[data-lang="ar"] h2 { font-weight: 800; }
.svc { padding-top: 0; overflow: hidden; }
.svc__media { position: relative; display: block; margin: 0 -1.35rem .55rem; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2, #EEE); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.05); }
.svc__badge { position: absolute; top: .7rem; inset-inline-start: .7rem; padding: .28rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(11, 15, 53, .78); backdrop-filter: blur(6px); }
.svc__badge--gold { color: #0B0F35; background: var(--saffron-a); }
.svc:not(:has(.svc__media)) { padding-top: 1.35rem; }

/* Reels + the site's own video player (no browser controls). */
.reels .sec-head__title, .reels .eyebrow { color: #FFF6E3; }
.reels__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); max-width: 62rem; margin-inline: auto; }
@media (max-width: 760px) { .reels__grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(74%, 18rem); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .2rem var(--gutter) .8rem; margin-inline: calc(var(--gutter) * -1); } .reels__grid::-webkit-scrollbar { display: none; } .reels__grid > * { scroll-snap-align: center; } }
.reel { margin: 0; display: grid; gap: .85rem; min-width: 0; }
.reel__cap { text-align: center; font-family: var(--f-head); font-weight: 600; font-size: .98rem; line-height: 1.5; color: var(--text); }
.reels .reel__cap { color: #FFF6E3; }

.player { position: relative; aspect-ratio: 9 / 16; border-radius: 1.5rem; overflow: hidden; background: #0B0F35; box-shadow: 0 2rem 3rem -1.6rem rgba(5, 8, 30, .8), 0 0 0 1px rgba(255, 246, 227, .12); isolation: isolate; }
.player__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0B0F35; cursor: pointer; }
.player.is-full { border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.player.is-full .player__video { object-fit: contain; background: #000; }
.player button { -webkit-tap-highlight-color: transparent; }

/* Start button: sits low so it never covers the title in the cover image; once the video starts, the bar takes over. */
.player__big { position: absolute; z-index: 2; left: 50%; bottom: 1.4rem; width: 3.8rem; height: 3.8rem; margin-left: -1.9rem; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--saffron-a); color: #0B0F35; box-shadow: 0 0 0 .45rem rgba(247, 203, 77, .28), 0 1rem 2rem -.6rem rgba(0, 0, 0, .6); transition: transform .25s var(--ease), opacity .25s; }
.player__big .ic { width: 1.2rem; height: 1.2rem; margin-left: .18rem; }
.player__big:hover { transform: scale(1.07); }
.player.is-started .player__big { opacity: 0; transform: scale(.85); pointer-events: none; }

/* Control bar: appears once the video has started; hides itself while playing and idle. */
.player__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .2rem; padding: 2.4rem .5rem .5rem; background: linear-gradient(to top, rgba(5, 8, 30, .9), rgba(5, 8, 30, .55) 55%, transparent); color: #fff; direction: ltr; opacity: 0; visibility: hidden; transform: translateY(.5rem); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.player.is-started .player__bar { opacity: 1; visibility: visible; transform: none; }
.player.is-started.is-playing:not(.is-awake) .player__bar { opacity: 0; visibility: hidden; transform: translateY(.5rem); }
.player.is-started.is-playing:not(.is-awake) { cursor: none; }
.player__btn { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; transition: background-color .2s, color .2s; }
.player__btn:hover { background: rgba(255, 255, 255, .16); color: var(--saffron-a); }
.player__btn .ic { width: 1rem; height: 1rem; }
.player__ic-pause, .player__ic-muted, .player__ic-exit { display: none; }
.player.is-playing .player__btn .player__ic-play { display: none; }
.player.is-playing .player__btn .player__ic-pause { display: block; }
.player.is-muted .player__ic-vol { display: none; }
.player.is-muted .player__ic-muted { display: block; }
.player.is-full .player__ic-full { display: none; }
.player.is-full .player__ic-exit { display: block; }
.player__time { flex: none; min-width: 4.6em; font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; font-family: 'TB', system-ui, sans-serif; letter-spacing: .01em; opacity: .92; }
.player__seek { --p: 0%; flex: 1 1 auto; min-width: 2.5rem; height: 1.6rem; margin: 0 .25rem; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.player__seek::-webkit-slider-runnable-track { height: .3rem; border-radius: 999px; background: linear-gradient(to right, var(--saffron-a) var(--p), rgba(255, 255, 255, .3) var(--p)); }
.player__seek::-moz-range-track { height: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .3); }
.player__seek::-moz-range-progress { height: .3rem; border-radius: 999px; background: var(--saffron-a); }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: .9rem; height: .9rem; margin-top: -.3rem; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .2rem rgba(247, 203, 77, .45); }
.player__seek::-moz-range-thumb { width: .9rem; height: .9rem; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .2rem rgba(247, 203, 77, .45); }
.player__seek:focus-visible { outline: 2px solid var(--saffron-a); outline-offset: 2px; }
@media (max-width: 380px) { .player__time { display: none; } }
@media (hover: none) { .player.is-started .player__bar { transition-duration: .2s; } }

.svc-group__body { display: grid; grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); align-items: start; }
.svc-group__body > .reel { position: sticky; top: calc(var(--header-h) + 1rem); }
.svc-group__body > .reel .reel__cap { display: none; }
@media (max-width: 860px) { .svc-group__body { grid-template-columns: minmax(0, 1fr); } .svc-group__body > .reel { position: static; max-width: 15rem; margin-inline: auto; } }

.igposts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.8rem); }
@media (max-width: 860px) { .igposts { grid-template-columns: minmax(0, 26rem); justify-content: center; } }
.igpost { border-radius: 1.4rem; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.igpost__head { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; }
.igpost__avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: #0B0F35; box-shadow: 0 0 0 2px var(--saffron-a); }
.igpost__mark { width: 58%; height: auto; }
.igpost__user { font-family: 'TB', sans-serif; font-weight: 600; font-size: .9rem; direction: ltr; }
.igpost__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 5; direction: rtl; }
[dir="ltr"] .igpost__track { direction: rtl; }
.igpost__track::-webkit-scrollbar { display: none; }
.igpost__slide { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.igpost__foot { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .75rem 1rem 1rem; }
.igpost__dots { display: flex; gap: .3rem; }
.igpost__dots i { width: .42rem; height: .42rem; border-radius: 50%; background: var(--line-2); transition: background .3s, transform .3s; }
.igpost__dots i.is-on { background: var(--majorelle-2); transform: scale(1.2); }
.igpost__cap { font-weight: 700; font-size: .9rem; text-align: center; line-height: 1.5; }

/* ───────────────────────── v1.2: rhythm, comfort and device fit ───────────────────────── */
/* More air between sections and inside cards. */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 6.5rem); }
.sec-head { margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.sec-head__sub { line-height: 1.8; max-width: 40rem; margin-inline: auto; }
.svc-grid { gap: clamp(1rem, 2.2vw, 1.6rem); }
.svc { padding-inline: 1.5rem; padding-bottom: 1.5rem; gap: .65rem; }
.svc__media { margin-inline: -1.5rem; margin-bottom: .75rem; }
.svc__name { font-size: 1.1rem; line-height: 1.5; }
.svc__name a { color: inherit; text-decoration: none; }
.svc__name a:hover { color: var(--primary-ink); }
.svc__desc { font-size: .95rem; line-height: 1.8; }
.svc__link { min-height: 2.75rem; margin-top: .2rem; }
.post-card__excerpt, .why-item p, .step__d { line-height: 1.8; }

/* Hero on phones and tablets: message first, showcase after. */
@media (max-width: 960px) {
	.hero { padding-block: 1.5rem 3.5rem; }
	.hero__copy { text-align: start; }
}
@media (max-width: 600px) {
	.hero__title { font-size: clamp(1.75rem, 1.15rem + 3.2vw, 2.2rem); line-height: 1.4; }
	.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
	.facts li { border-radius: .9rem; padding: .6rem .7rem; font-size: .82rem; line-height: 1.45; }
	.hero__btns { margin-bottom: 1.5rem; }
}

/* Sets of three (blog, Instagram posts) swipe on tablets and phones instead of leaving an orphan. */
@media (max-width: 1000px) {
	.post-grid--row, .igposts { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78%, 22rem); justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .4rem var(--gutter) 1.2rem; margin-inline: calc(var(--gutter) * -1); gap: 1rem; }
	.post-grid--row::-webkit-scrollbar, .igposts::-webkit-scrollbar { display: none; }
	.post-grid--row > *, .igposts > * { scroll-snap-align: center; }
}

/* Services page: on narrow screens the section video comes after its cards. */
@media (max-width: 860px) {
	.svc-group__body > .reel { order: 2; max-width: 13rem; }
	.svc-group__head { align-items: flex-start; }
}

/* Comfortable tap targets on touch screens. */
@media (pointer: coarse), (max-width: 900px) {
	.site-footer__links a, .site-footer__contact a { display: inline-flex; align-items: center; min-height: 2.5rem; }
	.site-footer__links, .site-footer__contact { gap: .15rem; }
	.site-footer__bottom a, .breadcrumbs a { display: inline-flex; align-items: center; min-height: 2.5rem; }
}

/* Large screens and TVs: wider canvas, same proportions. */
@media (min-width: 1800px) { :root { --maxw: 86rem; } }

/* Article photos. */
.article__figure { margin: 2.2rem 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.article__figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cover img.cover__img { width: 100%; height: 100%; object-fit: cover; }

/* ── Service detail page ── */
.svc-hero { position: relative; overflow: clip; padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3rem, 7vw, 5.5rem); background: radial-gradient(70% 70% at 100% 0%, color-mix(in srgb, var(--acc, var(--majorelle-2)) 16%, transparent), transparent 70%), var(--bg); }
.svc-hero--digital { --acc: var(--saffron-b); }
.svc-hero--ai { --acc: #4652D6; }
.svc-hero--academic { --acc: #17A05D; }
.svc-hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.svc-hero__copy .breadcrumbs { margin-bottom: 1.4rem; }
.svc-hero__title { font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); line-height: 1.3; margin: .9rem 0 1rem; }
.svc-hero__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: var(--muted); line-height: 1.9; max-width: 36rem; }
.svc-hero__aud { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.2rem; padding: .45rem .95rem; border-radius: 999px; font-weight: 700; font-size: .9rem; background: rgba(247, 203, 77, .22); color: var(--text); }
.svc-hero__aud .ic { width: 1em; height: 1em; color: var(--saffron-b); }
.svc-hero__btns { display: flex; flex-wrap: wrap; gap: .8rem; margin: .4rem 0 1.6rem; }
.svc-hero__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--muted); font-size: .9rem; }
.svc-hero__trust li { display: inline-flex; align-items: center; gap: .45rem; }
.svc-hero__trust .ic { width: 1em; height: 1em; color: var(--saffron-b); }
.svc-hero__media { margin: 0; border-radius: 1.8rem; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: 0 2.4rem 4rem -2rem rgba(11, 15, 53, .55); transform: rotate(-1.2deg); }
[dir="rtl"] .svc-hero__media { transform: rotate(1.2deg); }
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
	.svc-hero__in { grid-template-columns: minmax(0, 1fr); }
	.svc-hero__media { order: -1; transform: none !important; aspect-ratio: 16 / 10; }
	.svc-hero__btns .btn { flex: 1 1 14rem; }
}
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 17rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.svc-detail h2 { font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); line-height: 1.45; }
.svc-detail__p { color: var(--muted); line-height: 1.9; font-size: 1.04rem; max-width: 40rem; }
.svc-detail__h { font-size: 1.15rem; margin: 2.2rem 0 1.2rem; }
.svc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.svc-steps li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; border-radius: 1.1rem; background: var(--surface); border: 1px solid var(--line); }
.svc-steps__n { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: 1rem; color: #0B0F35; background: var(--saffron-a); }
.svc-steps b { display: block; font-family: var(--f-head); font-size: 1.02rem; margin-bottom: .25rem; }
.svc-steps p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.8; }
.svc-detail__reel { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 860px) { .svc-detail { grid-template-columns: minmax(0, 1fr); } .svc-detail__reel { position: static; max-width: 15rem; margin-inline: auto; } }



