/* ==========================================================================
   Maher · site styles
   Black and white, like the MA logo. Never pure #000 or #fff.
   One soft, dark gold, used only for the descriptive lists and their icons,
   and for the light that moves over the logo.
   ========================================================================== */

:root {
  --canvas: #0d0d0d;
  --panel: #161616;
  --panel-2: #1e1e1e;
  --panel-3: #292929;
  --border: #262626;          /* solid hairline for card edges */
  --text: #f2f2f2;
  --text-2: #b3b3b3;
  --text-3: #8a8a8a;
  --accent: #f2f2f2;          /* primary actions are white on black */
  --accent-hover: #d9d9d9;
  --accent-ink: #0d0d0d;
  --accent-muted: rgba(242, 242, 242, .1);
  --gold: #a88c5c;            /* dark, soft gold: lists and icons only */
  --gold-soft: rgba(168, 140, 92, .16);
  --line: rgba(242, 242, 242, .09);
  --line-2: rgba(242, 242, 242, .16);
  --line-strong: rgba(242, 242, 242, .42);
  --light: 255, 255, 255;     /* light through blinds, as an rgb triplet */

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease: ease;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --stretch: 116%;
  --track-tight: -.025em;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;
  --r-sm: 8px;
  --r-btn: 10px;
  --r-card: 16px;
  --r-lg: 20px;
  --tshadow: 0 1px 2px rgba(6, 5, 4, .9), 0 3px 12px rgba(6, 5, 4, .7), 0 10px 44px rgba(6, 5, 4, .75);
}

/* Arabic: its own faces, no tracking (tracking breaks the joins), taller lines. */
html[lang="ar"] {
  --f-display: "Alexandria", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --f-body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --stretch: 100%;
  --track-tight: 0;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--canvas);
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
html[lang="ar"] body { line-height: 1.85; }
.js body { opacity: 0; animation: failsafe 0s 2.5s forwards; }
.js body.ready { opacity: 1; animation: none; transition: opacity .7s var(--ease-out); }
@keyframes failsafe { to { opacity: 1; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; inset-inline-start: 12px; z-index: 200;
  padding: 10px 16px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sec { position: relative; padding-block: clamp(96px, 15vh, 168px); scroll-margin-top: 0; }

/* ---------- the environment: blinds light on a warm wall ---------- */
.env { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.env-glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(55% 45% at 82% 8%, rgba(242, 242, 242, 0.061), transparent 70%),
    radial-gradient(45% 40% at 8% 92%, rgba(111, 111, 111, .09), transparent 70%);
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .env-glow { animation: glowDrift 80s var(--ease-in-out) infinite alternate; animation-delay: -12s; }
}
@media (max-width: 767px) { .env-grain { display: none; } }
/* The patch of blinds light: slats move with scroll; a soft vignette on top fades the
   patch edges. No masks, so moving the slats never forces the patch to be re-rendered. */
.env-patch {
  position: absolute; width: 110vmax; height: 80vmax; top: -34vmax; inset-inline-end: -36vmax;
  overflow: hidden; transform: rotate(-14deg);
}
[dir="rtl"] .env-patch { transform: rotate(14deg); }
.env-slats {
  position: absolute; inset: -132px 0;
  background: repeating-linear-gradient(to bottom,
    rgba(var(--light), 0) 0px, rgba(var(--light), .075) 10px, rgba(var(--light), .075) 36px,
    rgba(var(--light), 0) 46px, rgba(var(--light), 0) 66px);
  will-change: transform;
}
.env-patch::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(closest-side, rgba(16, 16, 16, 0) 0%, rgba(16, 16, 16, .45) 50%, var(--canvas) 100%);
}
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .env-patch { animation: patchDrift 64s var(--ease-in-out) infinite alternate; animation-delay: -20s; }
}
.env-grain {
  position: absolute; inset: 0; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes glowDrift { to { transform: translate3d(-4%, 3%, 0) scale(1.06); } }
@keyframes patchDrift { to { translate: -6vmax 5vmax; } }

/* ---------- cursor (mouse devices only) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 1000; display: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--text); border: 1px solid transparent;
  box-shadow: 0 0 0 1px rgba(16, 16, 16, .45);
  opacity: 0; pointer-events: none; will-change: transform;
  transition: opacity .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .js .cursor { display: block; } }
.cursor.is-on { opacity: .9; }
.cursor.is-wrap {
  background: rgba(234, 234, 234, .06); border-color: rgba(234, 234, 234, .5); box-shadow: none;
  transition: opacity .2s var(--ease), transform .3s var(--ease-out), width .3s var(--ease-out),
    height .3s var(--ease-out), border-radius .3s var(--ease-out), background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.cursor.is-detach {
  transition: opacity .2s var(--ease), width .35s var(--ease-out), height .35s var(--ease-out),
    border-radius .35s var(--ease-out), background-color .35s var(--ease-out), border-color .35s var(--ease-out);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), -webkit-backdrop-filter .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav.is-solid { background: rgba(16, 16, 16, .94); border-color: var(--line); }
/* The frosted bar only where it is cheap: desktop. Phones get a solid bar. */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .nav.is-solid {
    background: rgba(16, 16, 16, .74);
    -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  }
}
.nav-inner {
  max-width: calc(var(--wrap) + var(--gutter) * 2); height: 100%; margin-inline: auto;
  padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { height: 21px; width: auto; fill: currentColor; overflow: visible; }
.brand-word {
  font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800;
  font-size: .8rem; letter-spacing: .18em; line-height: 1;
}
.mark-path {
  stroke: currentColor; stroke-width: 1.1px; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: markDraw 1.5s var(--ease-in-out) .35s forwards, markFill .6s var(--ease-out) 1.45s forwards;
}
@keyframes markDraw { to { stroke-dashoffset: 0; } }
@keyframes markFill { to { fill-opacity: 1; } }

.nav-links { display: flex; gap: 30px; margin-inline-start: auto; }
.nav-links a {
  position: relative; color: var(--text-2); text-decoration: none; font-size: .92rem; padding-block: 6px;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: var(--origin-end, right); transition: transform .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--text); }
  .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
  [dir="rtl"] .nav-links a:hover::after { transform-origin: right; }
}
.nav-tools { display: flex; align-items: center; gap: 14px; margin-inline-start: 26px; }

.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-btn); }
.lang button {
  min-width: 34px; padding: 6px 8px; border: 0; border-radius: 7px; background: none; cursor: pointer;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; color: var(--text-3);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.lang button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: .78rem; letter-spacing: 0; }
.lang button[aria-pressed="true"] { background: var(--panel-3); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .lang button:hover { color: var(--text); } }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: var(--r-btn);
  font-family: var(--f-body); font-weight: 600; font-size: .95rem; line-height: 1.1;
  color: var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 0; background: transparent;
  transition: transform 160ms var(--ease-out), color .2s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--accent); color: var(--accent-ink); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:hover { background: var(--accent-hover); }
  .btn-line:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--text-2); }
  .btn:hover .arrow { transform: translate(2px, -2px); }
  [dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translate(2px, -2px); }
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .85rem; border-radius: var(--r-sm); }
.btn-xl { min-height: 66px; padding: 0 36px; font-size: 1.1rem; border-radius: 12px; }
.btn-block { width: 100%; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow { transition: transform .25s var(--ease-out); }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ---------- type ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-family: var(--f-mono); font-weight: 500; font-size: .72rem; line-height: 1.2;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}
html[lang="ar"] .kicker { font-family: var(--f-body); font-size: .92rem; letter-spacing: 0; }
.kline {
  flex: none; width: 17px; height: 11px; background: var(--gold);
  clip-path: polygon(0 100%, 50% 0, 100% 100%, 76% 100%, 50% 46%, 24% 100%);
}
.h2 {
  margin: 0; max-width: 15ch;
  font-family: var(--f-display); font-stretch: var(--stretch); font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 4.2rem); line-height: 1.02; letter-spacing: var(--track-tight);
  text-wrap: balance;
}
html[lang="ar"] .h2 { line-height: 1.32; }
.lede { margin: 0; max-width: 44ch; color: var(--text-2); font-size: clamp(1rem, 1.2vw, 1.14rem); }

/* Blur reveal: characters (words in Arabic) arrive out of a 12px blur. */
.rv-w { display: inline-block; white-space: nowrap; }
.rv-c {
  display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(10px);
  transition: opacity .6s var(--ease-out), filter .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * var(--rv-step, 20ms) + var(--rv-delay, 0ms));
}
html[lang="ar"] [data-reveal] { --rv-step: 70ms; }
.rv-in .rv-c { opacity: 1; filter: blur(0); transform: none; }

/* ==========================================================================
   HERO: a framed photo, three words, one panel (after the fashion reference).
   The frame holds the active photo; behind it the next photo spills out large and dark.
   The active word is white and its line is the timer; clicking it opens the white panel.
   Arabic mirrors the whole composition; the photos themselves are never flipped.
   ========================================================================== */
.hero { position: relative; height: 100vh; height: 100svh; }
/* clip, not hidden: a clipped box is not a scroll container, so focusing or tapping something
   inside can never scroll its content (which would pull the hidden panel into view) */
.hero-stage { position: relative; height: 100%; overflow: hidden; overflow: clip; --frame: #141414; }

/* behind the frame: the next photo, large and dark */
.fh-bg { position: absolute; inset: -8% 0 0; z-index: 0; opacity: 0; transition: opacity 1.4s var(--ease-out); will-change: transform; }
.fh-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, rgba(13, 13, 13, .25), rgba(13, 13, 13, .85));
}
.fh-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos);
  filter: brightness(.42) contrast(1.06); opacity: 0; transform: scale(1.06);
  transition: opacity 1.2s ease, transform 2.4s var(--ease-out);
}
.fh-bg-img.is-on { opacity: 1; transform: none; }

/* the frame */
.fh-frame {
  position: absolute; z-index: 1;
  top: calc(var(--nav-h) + clamp(12px, 3vh, 36px)); bottom: clamp(24px, 6.5vh, 64px);
  inset-inline: clamp(16px, 5.5vw, 96px);
  overflow: hidden; overflow: clip; border-radius: var(--r-lg); background: var(--frame);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(242, 242, 242, .08);
  opacity: 0; clip-path: inset(4% 3% round var(--r-lg));
  transition: opacity .7s var(--ease-out), clip-path 1.2s var(--ease-out);
  touch-action: pan-y;
}
.fh-frame > * { z-index: 2; }

/* the photo side of the frame */
.fh-photos { position: absolute; z-index: 1; top: 0; bottom: 0; inset-inline-end: 0; width: 60%; overflow: hidden; overflow: clip; }
.fh-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos);
  opacity: 0; transform: scale(1.07);
  transition: opacity .8s var(--ease-out), transform 1.6s var(--ease-out);
}
.fh-photo.is-on { opacity: 1; transform: none; }
.fh-photos::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--frame) 0%, rgba(20, 20, 20, .88) 16%, rgba(20, 20, 20, .45) 33%, rgba(20, 20, 20, 0) 56%),
    linear-gradient(0deg, rgba(20, 20, 20, .9) 0%, rgba(20, 20, 20, 0) 40%);
}
[dir="rtl"] .fh-photos::after {
  background:
    linear-gradient(-90deg, var(--frame) 0%, rgba(20, 20, 20, .88) 16%, rgba(20, 20, 20, .45) 33%, rgba(20, 20, 20, 0) 56%),
    linear-gradient(0deg, rgba(20, 20, 20, .9) 0%, rgba(20, 20, 20, 0) 40%);
}

/* small type around the edges */
.fh-vert {
  position: absolute; inset-inline-start: 22px; bottom: 36%; margin: 0;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}
html[lang="ar"] .fh-vert { font-family: var(--f-body); font-size: .8rem; letter-spacing: 0; transform: none; }

.fh-info { position: absolute; inset-inline-start: clamp(48px, 6vw, 104px); top: clamp(32px, 9%, 84px); width: min(40%, 470px); }
.fh-kicker { margin: 0 0 18px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
html[lang="ar"] .fh-kicker { font-family: var(--f-body); font-size: .9rem; letter-spacing: 0; }
.fh-title {
  margin: 0 0 22px; max-width: 13ch;
  font-family: var(--f-display); font-stretch: var(--stretch); font-weight: 700;
  font-size: clamp(1.7rem, 2.9vw, 3.1rem); line-height: 1.04; letter-spacing: -.025em; text-wrap: balance;
}
html[lang="ar"] .fh-title { line-height: 1.3; letter-spacing: 0; }
.fh-lines { display: grid; }
.fh-line {
  grid-area: 1 / 1; margin: 0; max-width: 34ch; color: var(--text-2); font-size: .98rem; line-height: 1.5;
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.fh-line.is-on { opacity: 1; transform: none; transition-delay: .18s; }
/* "02 / 03" keeps its order in Arabic too; as a table it still sits at the start of the line */
.fh-num { display: table; direction: ltr; margin-bottom: 6px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; color: var(--text-3); }
.fh-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* the name, spaced out across the frame */
.fh-name {
  position: absolute; inset-inline: 0; top: 66%; margin: 0;
  display: flex; justify-content: center; gap: clamp(1.4rem, 4.2vw, 4.6rem);
  font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800;
  font-size: clamp(1.05rem, 1.8vw, 1.8rem); line-height: 1; color: var(--text);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6); pointer-events: none;
}
/* the MA slide carries its own name under the mark, so the spaced one steps aside */
.fh-name { transition: opacity .5s var(--ease-out); }
.hero.on-mark .fh-name { opacity: 0; }
.fh-name span { display: inline-block; opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }

/* arrow and plus on the side, socials above the words */
.fh-side { position: absolute; inset-inline-end: clamp(14px, 2vw, 30px); top: 36%; display: flex; flex-direction: column; gap: 14px; }
.fh-down, .fh-plus {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  color: var(--text); background: transparent; cursor: pointer; transition: background-color .25s var(--ease), transform .3s var(--ease-out);
}
.fh-down svg, .fh-plus svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fh-plus svg { transition: transform .4s var(--ease-out); }
.hero.is-panel .fh-plus svg { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) {
  .fh-down:hover, .fh-plus:hover { background: rgba(242, 242, 242, .1); }
}
.fh-social {
  position: absolute; inset-inline-end: clamp(22px, 2.4vw, 38px); top: 26px;
  display: flex; gap: 20px; margin: 0; padding: 0; list-style: none;
}
.fh-social a { font-size: .72rem; color: var(--text-2); text-decoration: none; text-shadow: 0 1px 10px rgba(0, 0, 0, .8); transition: color .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .fh-social a:hover { color: var(--text); } }

/* the three words */
.fh-words {
  position: absolute; inset-inline-start: clamp(26px, 3.4vw, 56px); bottom: clamp(14px, 2.6vh, 30px);
  display: flex; gap: .3em; white-space: nowrap;
  font-size: clamp(3.2rem, 8.4vw, 8.6rem);
}
.fh-word {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: "Archivo", sans-serif; font-stretch: 62.5%; font-weight: 900; font-size: 1em; line-height: .82; letter-spacing: 0;
  color: rgba(242, 242, 242, .16);
  opacity: 0; transform: translateY(36%);
  transition: color .55s var(--ease-out), opacity .9s var(--ease-out), transform 1s var(--ease-out);
}
.fh-word.is-on { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .fh-word:not(.is-on):hover { color: rgba(242, 242, 242, .42); } }
.fh-word:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
/* the line under the active word is the timer: when it fills, the next word takes over */
.fh-word::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -12px; height: 2px;
  background: rgba(242, 242, 242, .8); transform: scaleX(0); transform-origin: left center;
}
[dir="rtl"] .fh-word::after { transform-origin: right center; }
.fh-word.is-on::after { animation: fhTimer var(--fh-dur, 6s) linear forwards; }
.hero.is-paused .fh-word.is-on::after { animation-play-state: paused; }
@keyframes fhTimer { to { transform: scaleX(1); } }

/* the white panel */
.fh-panel {
  position: absolute; z-index: 6; inset-inline: 0; bottom: 0; height: 62%;
  display: flex; flex-direction: column; gap: clamp(16px, 3vh, 30px);
  padding: clamp(22px, 3.4vh, 38px) clamp(26px, 3.4vw, 56px);
  background: #efefef; color: #0d0d0d; overflow: auto;
  transform: translateY(101%); transition: transform .7s var(--ease-out);
}
.hero.is-panel .fh-panel { transform: none; }
.fh-panel-head { display: flex; align-items: center; gap: 18px; }
.fh-panel-word { margin: 0; margin-inline-end: auto; font-family: "Archivo", sans-serif; font-stretch: 62.5%; font-weight: 900; font-size: clamp(3rem, 6.6vw, 6.8rem); line-height: .82; }
.fh-panel-all {
  display: inline-flex; align-items: center; gap: 10px; color: #0d0d0d; text-decoration: none;
  font-family: "Archivo", sans-serif; font-stretch: 62.5%; font-weight: 800; font-size: clamp(1.2rem, 1.7vw, 1.7rem); letter-spacing: .02em; text-transform: uppercase;
}
html[lang="ar"] .fh-panel-all { font-family: var(--f-display); font-stretch: normal; font-size: 1.1rem; text-transform: none; }
.fh-panel-all svg, .fh-panel-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.fh-panel .promo-chip { background: #0d0d0d; color: #f2f2f2; }
.fh-panel-close { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(13, 13, 13, .06); color: #0d0d0d; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .fh-panel-all:hover { opacity: .7; }
  .fh-panel-close:hover { background: rgba(13, 13, 13, .12); }
}
.fh-group { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px clamp(24px, 4vw, 64px); }
.fh-group.is-on { display: grid; }
.fh-group > div { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.hero.is-panel .fh-group > div { opacity: 1; transform: none; }
.hero.is-panel .fh-group > div:nth-child(1) { transition-delay: .18s; }
.hero.is-panel .fh-group > div:nth-child(2) { transition-delay: .24s; }
.hero.is-panel .fh-group > div:nth-child(3) { transition-delay: .3s; }
.fh-col-h { margin: 0 0 10px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #6b6b6b; }
html[lang="ar"] .fh-col-h { font-family: var(--f-body); font-size: .85rem; letter-spacing: 0; }
.fh-group ul { margin: 0; padding: 0; list-style: none; }
.fh-group a { display: inline-block; padding-block: 4px; color: #0d0d0d; text-decoration: none; font-size: .96rem; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) { .fh-group a:hover { text-decoration: underline; text-underline-offset: 4px; } }

/* The photos are part of the layout, not pictures to grab: no dragging, no selecting,
   no long-press menu on phones. Clicks and swipes go to the frame underneath. */
.fh-photo, .fh-bg-img, .photo {
  pointer-events: none; -webkit-user-select: none; user-select: none;
  -webkit-user-drag: none; -webkit-touch-callout: none;
}
.fh-words, .fh-name, .fh-vert, .fh-num { -webkit-user-select: none; user-select: none; }
.fh-frame { -webkit-tap-highlight-color: transparent; }

/* MOTION: the MA mark on a dark stage. Its outline draws itself, the body fills in after,
   a soft gold light settles on the peak, and the name appears underneath. */
.fh-mark {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 3.4vh, 34px);
  padding-bottom: 12%;
  background: radial-gradient(85% 65% at 56% 40%, #232323 0%, #171717 55%, var(--frame) 100%);
}
.fh-mark-svg { display: block; width: min(60%, 460px); height: auto; overflow: visible; }
.fh-mark-body { fill: url(#fhMarkFill); fill-opacity: 0; transition: fill-opacity 1.1s ease .2s; }
.fh-mark-light { fill: url(#fhMarkLight); opacity: 0; transition: opacity 1s ease; }
.fh-mark-line {
  fill: none; stroke: rgba(242, 242, 242, .78); stroke-width: 2.6; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s ease;
}
.fh-mark-word {
  margin: 0; padding-inline-start: .42em;
  font-family: "Archivo", sans-serif; font-stretch: 125%; font-weight: 800;
  font-size: clamp(1rem, 1.5vw, 1.45rem); line-height: 1; letter-spacing: .42em; color: var(--text);
  opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s var(--ease-out);
}
/* on the way in the steps play in order; on the way out everything simply fades with the slide */
.fh-mark.is-on .fh-mark-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s var(--ease-in-out) .2s; }
.fh-mark.is-on .fh-mark-body { fill-opacity: 1; transition-delay: 1.4s; }
.fh-mark.is-on .fh-mark-light { opacity: 1; transition: opacity 1.4s ease 1.9s; }
.fh-mark.is-on .fh-mark-word { opacity: 1; transform: none; transition: opacity .9s ease 1.6s, transform 1s var(--ease-out) 1.6s; }

/* the way in: the frame opens, the photo settles, the words rise, the letters follow */
.hero.is-lit .fh-bg { opacity: 1; }
.hero.is-lit .fh-frame { opacity: 1; clip-path: inset(0 round var(--r-lg)); }
.hero.is-lit .fh-word { opacity: 1; transform: none; }
.hero.is-lit .fh-word:nth-child(1) { transition-delay: 0s, .35s, .35s; }
.hero.is-lit .fh-word:nth-child(2) { transition-delay: 0s, .43s, .43s; }
.hero.is-lit .fh-word:nth-child(3) { transition-delay: 0s, .51s, .51s; }
.hero.is-lit .fh-name span { opacity: 1; transform: none; }
.hero.is-lit .fh-name span:nth-child(1) { transition-delay: .6s; }
.hero.is-lit .fh-name span:nth-child(2) { transition-delay: .66s; }
.hero.is-lit .fh-name span:nth-child(3) { transition-delay: .72s; }
.hero.is-lit .fh-name span:nth-child(4) { transition-delay: .78s; }
.hero.is-lit .fh-name span:nth-child(5) { transition-delay: .84s; }
.fh-info, .fh-side, .fh-social, .fh-vert { opacity: 0; transition: opacity .8s var(--ease-out) .45s; }
.hero.is-lit .fh-info, .hero.is-lit .fh-side, .hero.is-lit .fh-social, .hero.is-lit .fh-vert { opacity: 1; }

/* ==========================================================================
   SERVICES: expanding cards, the active one picked by scroll
   ========================================================================== */
.services { padding-block: 0; }
.svc-pin { position: relative; height: 340vh; }
.svc-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4vh, 44px);
  padding-top: calc(var(--nav-h) + 8px); padding-bottom: 24px;
}
.svc-sticky > .wrap { width: 100%; }
.svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.svc-head .lede { max-width: 36ch; }

.xcards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; height: clamp(340px, 54vh, 540px);
  grid-template-columns: 5fr 1fr 1fr 1fr 1fr; grid-template-rows: 1fr;
  transition: grid-template-columns .5s var(--ease-out), grid-template-rows .5s var(--ease-out);
}
.xcard {
  position: relative; overflow: hidden; min-width: 0; min-height: 0; cursor: pointer;
  background: var(--panel); border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Only the open card runs its little loops. */
.xcard[data-active="false"] .xvis *, .xcard[data-active="false"] .xvis *::before, .xcard[data-active="false"] .xvis *::after { animation-play-state: paused !important; }
.xcard:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.xvis {
  position: absolute; inset: 0; container-type: size;
  opacity: .5; transform: scale(1.1);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.xcard[data-active="true"] .xvis { opacity: 1; transform: scale(1); }
.xshade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, .6) 40%, rgba(10, 10, 10, 0) 72%);
}
.xvert {
  position: absolute; inset-inline-start: 20px; bottom: 26px;
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2);
  transition: opacity .3s var(--ease-out);
}
html[lang="ar"] .xvert { font-family: var(--f-body); font-size: .95rem; letter-spacing: 0; transform: none; }
.xcard[data-active="true"] .xvert { opacity: 0; }
.xbody {
  position: absolute; inset-inline-start: 0; bottom: 0;
  width: min(460px, calc(100vw - var(--gutter) * 2));
  padding: 28px 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.xbody > * { opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.xcard[data-active="true"] .xbody > * { opacity: 1; transform: none; }
.xcard[data-active="true"] .xbody > :nth-child(1) { transition-delay: 75ms; }
.xcard[data-active="true"] .xbody > :nth-child(2) { transition-delay: 150ms; }
.xcard[data-active="true"] .xbody > :nth-child(3) { transition-delay: 225ms; }
.xicon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.xbody h3 {
  margin: 0; font-family: var(--f-display); font-stretch: var(--stretch); font-weight: 700;
  font-size: clamp(1.4rem, 2.1vw, 2rem); line-height: 1.08; letter-spacing: var(--track-tight);
}
.xbody p { margin: 0; max-width: 34ch; color: var(--text-2); font-size: .98rem; line-height: 1.55; }
.xticks { display: flex; gap: 8px; margin-top: 18px; }
.xticks i { width: 28px; height: 2px; background: var(--line-2); transition: background-color .3s var(--ease); }
.xticks i.on { background: var(--accent); }

/* accents show only on the active card: the "colour comes back" moment */
.xvis .acc, .xvis .acc-node, .xvis .acc-glyph, .xvis .acc-tag, .xvis .acc-bar, .xvis .acc-stroke { transition: opacity .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), background-color .35s var(--ease-out); }
.xvis .acc { opacity: .25; filter: saturate(0); }
.xcard[data-active="true"] .xvis .acc { opacity: 1; filter: none; }

/* visual 1: landing page scrolling inside a frame */
.vl-page {
  position: absolute; top: 26px; left: 50%; width: 250px; height: 290px; margin-left: -125px;
  overflow: hidden; border-radius: 10px; background: #131313; box-shadow: inset 0 0 0 1px var(--line-2);
}
.vl-strip { animation: vlStrip 13s var(--ease-in-out) infinite alternate; animation-delay: -3s; }
@keyframes vlStrip { to { transform: translateY(calc(-100% + 290px)); } }
.vl-hero { position: relative; height: 128px; margin: 10px; padding: 22px 18px; overflow: hidden; border-radius: 6px; background: #242424; }
.vl-hero b { position: relative; display: block; width: 72%; height: 9px; margin-bottom: 9px; border-radius: 2px; background: rgba(234, 234, 234, .78); }
.vl-hero b.s { width: 46%; height: 6px; background: rgba(234, 234, 234, .4); }
.vl-hero em { position: relative; display: block; width: 74px; height: 20px; margin-top: 16px; background: var(--accent); }
.vl-slats {
  position: absolute; inset: -40%; transform: rotate(-14deg);
  background: repeating-linear-gradient(to bottom, rgba(var(--light), 0) 0 8px, rgba(var(--light), .16) 12px 24px, rgba(var(--light), 0) 28px 38px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000000 80%); mask-image: linear-gradient(90deg, transparent 30%, #000000 80%);
}
.vl-lines { padding: 6px 16px; }
.vl-lines b { display: block; width: 86%; height: 6px; margin: 9px 0; border-radius: 2px; background: #353535; }
.vl-lines b.s { width: 54%; }
.vl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 16px; }
.vl-grid span { height: 56px; border-radius: 4px; background: #1e1e1e; box-shadow: inset 0 0 0 1px var(--line); }
.vl-cta { display: grid; place-items: center; height: 62px; margin: 14px 16px; border: 1px dashed var(--line-2); }
.vl-cta em { display: block; width: 92px; height: 20px; background: var(--accent); }

/* visual 2: sitemap */
.vis-map { display: flex; flex-direction: column; align-items: center; padding-top: 46px; }
.vis-map .vm-lines { display: none; }
.vm-node {
  position: relative; display: block; width: 100%; padding: 9px 6px; text-align: center;
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .04em; color: var(--text-2);
  background: #181818; box-shadow: inset 0 0 0 1px var(--line-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html[lang="ar"] .vm-node { font-family: var(--f-body); font-size: .8rem; letter-spacing: 0; }
.vm-root { width: 120px; }
.vm-root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 26px; background: var(--line-strong); }
.vm-kids {
  position: relative; display: grid; grid-template-columns: repeat(4, 100px); gap: 12px; margin-top: 52px;
}
.vm-kids::before {
  content: ""; position: absolute; top: -26px; left: 50px; right: 50px; height: 1px; background: var(--line-strong);
}
.vm-kids .vm-node::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 26px; background: var(--line-strong); }
.vm-kids .vm-node { overflow: visible; }
.xcard[data-active="true"] .acc-node { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(242, 242, 242, 0.121); }

/* visual 3: film strip + scrub */
.vf-reel { position: absolute; top: 40px; left: 0; display: flex; gap: 12px; padding-inline: 12px; animation: reel 26s linear infinite; }
.vf-reel span { flex: none; width: 150px; height: 100px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.vf-reel .f1 { background: radial-gradient(90% 90% at 80% 10%, #3a3a3a, #141414 70%); }
.vf-reel .f2 { background: repeating-linear-gradient(-14deg, rgba(var(--light), .14) 0 10px, transparent 10px 22px), #191919; }
.vf-reel .f3 { background: radial-gradient(70% 80% at 30% 70%, #2e2e2e, #131313 70%); }
.vf-reel .f4 { background: linear-gradient(160deg, #252525, #121212); }
@keyframes reel { to { transform: translateX(-50%); } }
.vf-scrub { position: absolute; top: 172px; left: 10%; right: 10%; height: 2px; background: var(--line-2); }
.vf-scrub i { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: scrubDot 6s var(--ease-in-out) infinite alternate; animation-delay: -2s; }
@keyframes scrubDot { to { transform: translateX(calc(80cqw - 12px)); } }

/* visual 4: three scripts */
.vg { position: absolute; line-height: 1; color: rgba(234, 234, 234, .14); transition: color .35s var(--ease-out); }
.vg-1 { top: 34px; left: 12%; font-family: "Archivo", sans-serif; font-stretch: 120%; font-weight: 700; font-size: 104px; }
.vg-2 { top: 54px; left: 50%; margin-left: -48px; font-family: "Alexandria", sans-serif; font-weight: 700; font-size: 128px; animation: floatY 6s ease-in-out infinite; animation-delay: -1.5s; }
.vg-3 { top: 26px; right: 12%; font-family: "Instrument Sans", sans-serif; font-weight: 600; font-size: 96px; }
.xcard[data-active="true"] .acc-glyph { color: var(--accent); }
.vg-tags { position: absolute; top: 210px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.vg-tags b { padding: 5px 10px; font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .1em; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.xcard[data-active="true"] .acc-tag { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@keyframes floatY { 50% { transform: translateY(-8px); } }

/* visual 5: speed + search result */
.vs-gauge { position: absolute; top: 28px; left: 50%; width: 210px; margin-left: -105px; overflow: visible; }
.vs-track, .vs-fill { fill: none; stroke-width: 10; stroke-linecap: round; }
.vs-track { stroke: var(--line-2); }
.vs-fill { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out) .1s; }
.xcard[data-active="true"] .vs-fill { stroke-dashoffset: .14; }
.vs-needle { transform-origin: 100px 110px; transform: rotate(-80deg); transition: transform 1s var(--ease-out) .1s; }
.xcard[data-active="true"] .vs-needle { transform: rotate(58deg); }
.vs-needle path { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.vs-needle circle { fill: var(--text); }
.vs-serp {
  position: absolute; top: 168px; left: 50%; width: 290px; margin-left: -145px; padding: 14px 16px;
  background: #181818; box-shadow: inset 0 0 0 1px var(--line);
}
.vs-url { display: block; font-family: var(--f-mono); font-size: .66rem; color: var(--text-3); }
.vs-serp b { display: block; height: 6px; margin-top: 9px; border-radius: 2px; background: #353535; }
.vs-serp b.s { width: 64%; }
.vs-serp .vs-title { width: 72%; height: 9px; background: rgba(234, 234, 234, .45); }
.xcard[data-active="true"] .acc-bar { background: var(--accent); }

/* ==========================================================================
   PROCESS: four steps on a peak line that draws itself
   ========================================================================== */
.sec-head { max-width: 900px; }
.steps { position: relative; margin-top: 72px; }
.steps-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.steps-line path { fill: none; stroke-linejoin: miter; }
.sl-track { stroke: var(--line-2); stroke-width: 1; }
.sl-draw { stroke: var(--accent); stroke-width: 1.5; }
.steps-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.step { position: relative; padding-top: 40px; }
.step:nth-child(even) { margin-top: 110px; }
.step-dot {
  position: absolute; top: 0; inset-inline-start: 0; width: 13px; height: 13px; z-index: 1;
  background: var(--canvas); box-shadow: inset 0 0 0 2px var(--line-strong); transform: rotate(45deg);
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.step.lit .step-dot { background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent), 0 0 18px rgba(242, 242, 242, 0.275); }
.step-num { position: absolute; top: -3px; inset-inline-start: 30px; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; color: var(--gold); }
.step h3 { margin: 0 0 8px; font-family: var(--f-display); font-stretch: var(--stretch); font-weight: 700; font-size: 1.36rem; line-height: 1.15; letter-spacing: var(--track-tight); }
.step > p { margin: 0; color: var(--text-2); font-size: .98rem; }
.step-vis {
  position: relative; height: 176px; margin: 0 0 24px; padding: 16px; overflow: hidden;
  background: var(--panel); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line);
}

/* chat */
.bubble { max-width: 86%; margin: 0 0 8px; padding: 8px 11px; font-size: .78rem; line-height: 1.4; border-radius: 12px; }
.bubble.in { background: #262626; color: var(--text-2); border-end-start-radius: 3px; }
.bubble.out { margin-inline-start: auto; background: var(--accent-muted); color: var(--text); border-end-end-radius: 3px; }
.typing { display: inline-flex; gap: 4px; padding: 9px 11px; border-radius: 12px; background: #262626; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); animation: typing 1.3s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* design */
.vd-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 104px; }
.vd-grid span { border-radius: 4px; background: #262626; }
.vd-grid .a { grid-row: span 2; position: relative; overflow: hidden; background: #242424; }
.vd-grid .a::before {
  content: ""; position: absolute; inset: -30px 0;
  background: repeating-linear-gradient(-14deg, rgba(var(--light), .16) 0 9px, transparent 9px 20px);
  animation: slatsDrift 9s linear infinite;
}
@keyframes slatsDrift { to { transform: translateY(-20.61px); } }
.vd-grid .d { grid-column: span 2; background: #1f1f1f; }
.vd-swatches { display: flex; gap: 8px; margin-top: 14px; }
.vd-swatches i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.vd-swatches i:nth-child(1) { background: var(--canvas); }
.vd-swatches i:nth-child(2) { background: var(--panel-3); }
.vd-swatches i:nth-child(3) { background: var(--text); }
.vd-swatches i.g { background: var(--accent); }

/* code */
/* code colours for the little editor in the process step */
.vis-code { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.t-com { color: #676767; font-style: italic; }
.t-tag { color: #dcdcdc; }
.t-att { color: #9a9a9a; }
.t-str { color: #c4c4c4; font-style: italic; }
.t-num { color: #a6a6a6; }
.t-sel { color: var(--text); }
.t-pun { color: #757575; }
.t-txt { color: var(--text); }
.caret {
  display: inline-block; width: .56em; height: 1.15em; margin-left: .15em; vertical-align: -.22em;
  background: var(--accent); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
/* The code font has no Arabic letters; Arabic strings inside code get a proper Arabic face. */
html[lang="ar"] .vlb-bar bdi, html[lang="ar"] .vs-url { font-family: "IBM Plex Sans Arabic", var(--f-mono); }
.vis-code { font-family: var(--f-mono); font-size: .78rem; line-height: 1.75; color: var(--text-2); }
.vis-code p { margin: 0; white-space: pre; }

/* launch: the one interactive moment */
.vis-launch { display: flex; flex-direction: column; gap: 12px; }
.vl-browser { flex: 1; background: #131313; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.vlb-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding-inline: 10px; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .62rem; color: var(--text-3); }
.vlb-bar > i { width: 6px; height: 6px; border-radius: 50%; background: #353535; }
.vlb-bar bdi { margin-left: 8px; }
.vlb-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--accent); opacity: 0; transition: opacity .4s var(--ease-out); font-family: var(--f-body); font-weight: 600; font-size: .66rem; }
.vlb-live i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.vlb-live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--accent); opacity: 0; animation: livePulse 2.4s ease-out infinite; }
@keyframes livePulse { 0% { opacity: .5; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }
.vlb-checks { list-style: none; margin: 0; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.vlb-checks li { display: flex; align-items: center; gap: 6px; font-size: .72rem; line-height: 1.3; color: var(--text-3); opacity: .45; transition: opacity .35s var(--ease-out), color .35s var(--ease-out); }
.vlb-checks svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step-launch.launched .vlb-live { opacity: 1; }
.step-launch.launched .vlb-checks li { opacity: 1; color: var(--text); }
.step-launch.launched .vlb-checks svg { stroke: var(--gold); }
.step-launch.launched .vlb-checks li:nth-child(2) { transition-delay: .12s; }
.step-launch.launched .vlb-checks li:nth-child(3) { transition-delay: .24s; }
.step-launch.launched .vlb-checks li:nth-child(4) { transition-delay: .36s; }

.hold {
  position: relative; display: grid; place-items: center; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; background: none; cursor: pointer; color: var(--text);
  font-family: var(--f-body); font-weight: 600; font-size: .8rem; line-height: 1.2;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
  border-radius: var(--r-btn); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform 160ms var(--ease-out);
}
.hold:active { transform: scale(.97); }
.hold > span { grid-area: 1 / 1; }
.hold-fill {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 12px;
  background: var(--accent); color: var(--accent-ink);
  clip-path: inset(0 100% 0 0); transition: clip-path 200ms var(--ease-out);
}
[dir="rtl"] .hold-fill { clip-path: inset(0 0 0 100%); }
.hold.pressing .hold-fill { clip-path: inset(0 0 0 0); transition: clip-path 1.4s linear; }
.hold-done { display: none; align-items: center; gap: 6px; }
.hold-done svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hold.done { background: var(--accent); color: var(--accent-ink); box-shadow: none; cursor: default; }
.hold.done .hold-label, .hold.done .hold-fill { display: none; }
.hold.done .hold-done { display: inline-flex; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.sec-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; max-width: none; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 60px; align-items: stretch; }
.plan {
  position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden;
  padding: 36px 30px 30px; border-radius: var(--r-lg);
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--border);
}
.plan.is-featured {
  background: linear-gradient(180deg, #1f1f1f, var(--panel) 46%);
  box-shadow: inset 0 0 0 1px rgba(242, 242, 242, 0.303), 0 24px 60px -30px rgba(242, 242, 242, 0.193);
  transform: translateY(-14px);
}
.plan.is-featured::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(var(--light), .07) 50%, transparent 62%);
  transform: translateX(-110%); animation: sheen 8s var(--ease-in-out) infinite; animation-delay: -2s;
}
@keyframes sheen { 55%, 100% { transform: translateX(110%); } }
.plan > *:not(.plan-badge) { position: relative; z-index: 1; }
.plan-badge { z-index: 1; }
.plan.is-featured { padding-top: 66px; }
.plan-badge {
  position: absolute; top: 26px; inset-inline-start: 30px;
  padding: 6px 10px; font-family: var(--f-mono); font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent); border-radius: 6px;
}
html[lang="ar"] .plan-badge { font-family: var(--f-body); font-size: .78rem; letter-spacing: 0; }
.plan-top { display: flex; align-items: center; gap: 12px; }
.plan-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.plan h3 { margin: 0; font-family: var(--f-display); font-stretch: var(--stretch); font-weight: 700; font-size: 1.36rem; line-height: 1.15; letter-spacing: var(--track-tight); }
.plan-desc { margin: 14px 0 26px; color: var(--text-2); font-size: .98rem; min-height: 3.2em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin: 0 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.price-from { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
html[lang="ar"] .price-from { font-family: var(--f-body); font-size: 1rem; letter-spacing: 0; }
.price-num {
  font-family: var(--f-display); font-stretch: var(--stretch); font-weight: 800;
  font-size: clamp(2.6rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
html[lang="ar"] .price-num { letter-spacing: 0; }
.feats { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.feats li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: .98rem; line-height: 1.45; }
.feats svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan .btn { margin-top: auto; }
.plans-note { margin: 26px 0 0; color: var(--text-3); font-size: .9rem; }

/* Launch offer: a banner over the plans, the old price struck above the new one, and small "-70 %" chips */
.promo {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: clamp(20px, 4vw, 44px);
  margin-top: 48px; padding: 22px clamp(22px, 3vw, 36px); border-radius: var(--r-lg);
  background: linear-gradient(100deg, #202020, var(--panel) 60%);
  box-shadow: inset 0 0 0 1px rgba(242, 242, 242, 0.22);
}
.promo::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(var(--light), .08) 50%, transparent 62%);
  transform: translateX(-110%); animation: sheen 7s var(--ease-in-out) infinite;
}
.promo > * { position: relative; z-index: 1; }
.promo + .plans { margin-top: 44px; }
.promo-num {
  flex: none; margin: 0; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-stretch: var(--stretch); font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.promo-num span { font-size: .5em; margin-inline-start: .06em; vertical-align: .62em; }
.promo-title { margin: 0 0 6px; font-family: var(--f-display); font-stretch: var(--stretch); font-weight: 700; font-size: clamp(1.1rem, 1.8vw, 1.36rem); line-height: 1.25; }
.promo-text { margin: 0; color: var(--text-2); font-size: .98rem; }
.price-was { margin: 0 0 8px; color: var(--text-3); font-size: .92rem; }
.price-was s { color: var(--text-2); text-decoration-thickness: 1.5px; }
.price-tag, .promo-chip {
  font-family: var(--f-mono); font-weight: 600; white-space: nowrap;
  color: var(--accent-ink); background: var(--accent);
}
.price-tag { align-self: center; margin-inline-start: auto; padding: 5px 9px; font-size: .74rem; letter-spacing: .04em; border-radius: 6px; }
.promo-chip { display: inline-block; margin-inline-start: 7px; padding: 1px 6px; font-size: .64rem; line-height: 1.5; letter-spacing: .02em; border-radius: 5px; vertical-align: 1px; }
html[lang="ar"] .price-tag, html[lang="ar"] .promo-chip { font-family: var(--f-body); letter-spacing: 0; }
@media (max-width: 767px) {
  .promo { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 36px; }
  .promo + .plans { margin-top: 32px; }
}
/* short phones (iPhone SE): the MA mark a little smaller, so it keeps clear of the title */
@media (max-width: 767px) and (max-height: 720px) {
  .fh-mark { padding-top: 12%; gap: 14px; }
  .fh-mark-svg { width: 50%; }
}
/* Small phones: keep "1.245 €" and its tag on one line */
@media (max-width: 400px) { .price-num { font-size: 2.1rem; } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.about-photo { position: relative; margin: 0; }
.photo-frame {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--panel); border-radius: var(--r-lg);
  transform: translateZ(0); /* keeps the rounded clip on its own layer while the photo moves */
}
.photo { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; object-position: 50% 30%; will-change: transform;
  filter: grayscale(1) contrast(1.06); transition: filter .8s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .about-photo:hover .photo { filter: grayscale(.15) contrast(1.02); } }
/* Warm light sliding across the photo. Plain transparency, no blend mode, so it stays cheap on phones. */
.photo-slats {
  position: absolute; inset: -40%; pointer-events: none;
  background: repeating-linear-gradient(166deg, rgba(var(--light), 0) 0 16px, rgba(var(--light), .1) 22px 46px, rgba(var(--light), 0) 52px 74px);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 70% 35%, #000000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 50% at 70% 35%, #000000, transparent 75%);
  will-change: transform;
}
.photo-tag {
  position: absolute; bottom: -12px; inset-inline-start: 26px; padding: 4px 10px; border-radius: 6px;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .22em; color: var(--text-3); background: var(--canvas);
}
.about-role { margin: 10px 0 0; font-family: var(--f-display); font-stretch: var(--stretch); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.2; color: var(--text-2); }
html[lang="ar"] .about-role { line-height: 1.5; }
.about-p { margin: 22px 0 0; max-width: 52ch; color: var(--text-2); font-size: 1.08rem; }
.about-facts { list-style: none; margin: 36px 0 0; padding: 28px 0 0; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.about-facts li { display: flex; align-items: center; gap: 12px; }
.about-facts svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 36px); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa:first-child { border-top: 1px solid var(--line-2); }
.qa h3 { margin: 0; }
.qa button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; border: 0; background: none; cursor: pointer; text-align: start;
  font-family: var(--f-body); font-weight: 600; font-size: clamp(1.04rem, 1.4vw, 1.2rem); line-height: 1.35; color: var(--text);
}
.pm { position: relative; flex: none; width: 16px; height: 16px; }
.pm::before, .pm::after { content: ""; position: absolute; top: 7px; left: 0; width: 16px; height: 1.6px; background: var(--gold); transition: transform .25s var(--ease-out); }
.pm::after { transform: rotate(90deg); }
.qa.open .pm::after { transform: rotate(0); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.qa-a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .3s; }
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa.open .qa-a > div { visibility: visible; transition-delay: 0s; }
.qa-a p { margin: 0 0 24px; max-width: 56ch; color: var(--text-2); }

/* ==========================================================================
   CONTACT: the single call to action
   ========================================================================== */
.contact { overflow: hidden; text-align: center; padding-block: clamp(120px, 18vh, 210px); }
.contact-slats { position: absolute; inset: -30% -10%; pointer-events: none; transform: rotate(-14deg); }
[dir="rtl"] .contact-slats { transform: rotate(14deg); }
/* The mask rides on the moving layer itself, so scrolling only moves a finished layer. */
.contact-slats-inner {
  position: absolute; inset: -152px 0 0; will-change: transform;
  background: repeating-linear-gradient(to bottom,
    rgba(var(--light), 0) 0, rgba(var(--light), .08) 12px, rgba(var(--light), .08) 40px, rgba(var(--light), 0) 52px, rgba(var(--light), 0) 76px);
  -webkit-mask-image: radial-gradient(ellipse 46% 40% at 50% 50%, #000000, transparent 80%);
  mask-image: radial-gradient(ellipse 46% 40% at 50% 50%, #000000, transparent 80%);
}
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.contact .kicker { justify-content: center; }
.contact-title { max-width: 12ch; margin-inline: auto; font-size: clamp(2.6rem, 7vw, 6.6rem); text-align: center; }
.contact .lede { margin: 26px auto 0; text-align: center; }
.wa-big { margin-top: 46px; }
.wa-big .ico { width: 22px; height: 22px; }
.wa-big::after {
  content: ""; position: absolute; inset: -18px -26px; z-index: -2; pointer-events: none;
  background: radial-gradient(closest-side, rgba(242, 242, 242, 0.22), transparent);
  opacity: .35; animation: glowPulse 4.6s ease-in-out infinite; animation-delay: -1.2s;
}
@keyframes glowPulse { 50% { opacity: .75; } }
.wa-number { margin: 16px 0 0; font-family: var(--f-mono); font-size: .9rem; letter-spacing: .06em; color: var(--text-3); }
.socials { margin-top: 72px; }
.socials-cap {
  position: relative; height: 1.5em; margin: 0 0 22px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}
html[lang="ar"] .socials-cap .cap-default { font-family: var(--f-body); font-size: .92rem; letter-spacing: 0; }
.socials-cap > span { position: absolute; inset: 0; transition: opacity .25s var(--ease); }
.cap-hover { opacity: 0; color: var(--text); text-transform: none; letter-spacing: .06em; }
.socials.has-hover .cap-default { opacity: 0; }
.socials.has-hover .cap-hover { opacity: 1; }
.socials-row { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(14px, 4vw, 40px); }
.soc {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: filter .5s var(--ease-out), opacity .5s var(--ease-out), color .25s var(--ease), box-shadow .25s var(--ease);
}
.soc svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .socials-row:hover .soc:not(:hover) { filter: blur(3px); opacity: .45; }
  .soc:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
}
.socials-row:focus-within .soc:not(:focus-visible) { opacity: .6; }
.noscript-mail { margin-top: 18px; color: var(--text-2); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 34px calc(34px + env(safe-area-inset-bottom)); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px; }
.foot-rights { margin: 0; color: var(--text-3); font-size: .88rem; }
.foot-tools { display: flex; align-items: center; gap: 22px; }
.foot-top { color: var(--text-2); font-size: .88rem; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-top:hover { color: var(--text); } }

/* ---------- living elements pause off-screen and on hidden tabs ---------- */
.sec:not(.on) *, .sec:not(.on) *::before, .sec:not(.on) *::after { animation-play-state: paused !important; }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
  .step:nth-child(even) { margin-top: 80px; }
  .step:nth-child(3) { margin-top: -40px; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan.is-featured { transform: none; }
}
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-tools { margin-inline-start: auto; }
  .about-grid, .faq-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .faq-head { position: static; }
  .svc-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  /* Phones: the cards are a plain list that scrolls like the rest of the page. Each card
     opens as it comes into view (site.js), so nothing holds the page while the finger moves. */
  .svc-pin, html.rm .svc-pin { height: auto; }
  .svc-sticky { position: relative; height: auto; justify-content: flex-start; padding: 96px 0 8px; gap: 26px; }
  .xcards { display: flex; flex-direction: column; gap: 12px; height: auto; }
  .xcard { flex: none; height: 340px; }
  .xvert, .xticks { display: none; }
  .xbody { padding: 20px 20px 22px; }
  .xbody p { font-size: .94rem; }
  .vl-page { top: 16px; }
  .vm-kids { grid-template-columns: repeat(4, 76px); gap: 8px; }
  .vm-kids::before { left: 38px; right: 38px; }
  .vis-map { padding-top: 22px; }
  .steps-list { grid-template-columns: 1fr; gap: 56px; }
  .step, .step:nth-child(even), .step:nth-child(3) { margin-top: 0; }
  .step { padding-top: 0; padding-inline-start: 40px; }
  .step-dot { top: 4px; }
  .step-num { position: static; display: block; margin: 0 0 14px; }
  .nav-wa-label { display: none; }
  .nav-wa { padding: 0 11px; }
  .lang button { min-width: 30px; padding-inline: 6px; }
  .vf-scrub { display: none; }
  /* hero: the photo fills the frame; the text sits low, under the face */
  .fh-frame { top: calc(var(--nav-h) + 6px); bottom: 12px; inset-inline: 12px; border-radius: var(--r-card); }
  .fh-photos { width: 100%; }
  .fh-photos::after, [dir="rtl"] .fh-photos::after {
    background: linear-gradient(180deg, rgba(20, 20, 20, .5) 0%, rgba(20, 20, 20, 0) 20%, rgba(20, 20, 20, 0) 36%, rgba(20, 20, 20, .8) 60%, rgba(20, 20, 20, .97) 100%);
  }
  .fh-vert, .fh-social, .fh-down, .fh-kicker { display: none; }
  .fh-info { inset-inline: 20px; top: auto; bottom: 124px; width: auto; }
  .fh-title { max-width: 16ch; margin-bottom: 14px; font-size: clamp(1.5rem, 7vw, 2rem); }
  .fh-line { font-size: .92rem; }
  .fh-ctas { margin-top: 16px; }
  .fh-name { top: auto; bottom: 84px; gap: 1.1rem; font-size: 1rem; }
  .fh-side { top: 12px; inset-inline-end: 12px; }
  .fh-plus { background: rgba(13, 13, 13, .55); }
  .fh-words { inset-inline-start: 20px; bottom: 22px; font-size: 10.4vw; }
  .fh-word::after { bottom: -8px; }
  .fh-panel { height: auto; max-height: 88%; }
  .fh-mark { justify-content: flex-start; padding-top: 18%; }
  .fh-mark-svg { width: 62%; }
  .fh-panel-head { flex-wrap: wrap; row-gap: 12px; }
  .fh-panel-all { order: 3; width: 100%; white-space: nowrap; }
  .hero.is-panel .fh-side { opacity: 0; pointer-events: none; }
  .fh-ctas { gap: 8px; }
  .fh-ctas .btn { padding-inline: 14px; font-size: .88rem; }
  .fh-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the chat button would sit on the words: it waits until the page scrolls on */
  html.hero-top .chat:not(.is-open) { pointer-events: none; }
  html.hero-top .chat:not(.is-open) .chat-fab { opacity: 0; pointer-events: none; transform: translateY(12px); }
  .wa-big { width: 100%; max-width: 380px; padding-inline: 20px; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .brand-word { display: none; }
}
@media (pointer: coarse) {
  .lang button { min-height: 40px; }
  .btn { min-height: 48px; }
  .btn-sm { min-height: 44px; }
  .qa button { min-height: 56px; }
}
@media (max-height: 560px) and (min-width: 768px) {
  .xcards { height: 52vh; }
}

/* ---------- reduced motion: gentle, never frozen ----------
   Windows "Animation effects: off" and iPhone "Reduce Motion" land here. The page still
   answers every hover, tap and scroll with fades and colour; only travel, zoom and tilt stop. */
html.rm .svc-pin { height: 260vh; }
html.rm .rv-c {
  filter: none; transform: none;
  transition: opacity .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 12ms + var(--rv-delay, 0ms));
}
html.rm .xvis, html.rm .xbody > * { transform: none; }
html.rm .fh-frame { clip-path: none; }
html.rm .fh-word, html.rm .fh-name span, html.rm .fh-line, html.rm .fh-group > div, html.rm .fh-photo, html.rm .fh-bg-img, html.rm .fh-mark-word, html.rm .fh-mark-svg { transform: none !important; }
html.rm .fh-panel { transform: none; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
html.rm .hero.is-panel .fh-panel { opacity: 1; visibility: visible; }
html.rm .env-patch, html.rm .env-glow, html.rm .vl-strip, html.rm .vf-reel,
html.rm .vf-scrub i, html.rm .vg-2, html.rm .vd-grid .a::before, html.rm .plan.is-featured::after, html.rm .promo::after,
html.rm .typing i, html.rm .vlb-live i::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- phones: lighter effects, shorter scenes ---------- */
@media (max-width: 767px) {
  .rv-c { filter: none; }
}

/* ---------- without JavaScript the page is still complete ---------- */
.no-js .fh-bg, .no-js .fh-frame, .no-js .fh-word, .no-js .fh-name span, .no-js .fh-info, .no-js .fh-side, .no-js .fh-social, .no-js .fh-vert { opacity: 1; transform: none; clip-path: none; }
.no-js .fh-bg-img[data-photo="cafe"] { opacity: 1; transform: none; }
.no-js .fh-word::after { display: none; }
.no-js .svc-pin { height: auto; }
.no-js .svc-sticky { position: relative; height: auto; padding-block: 120px; }
.no-js .xcard .xvis, .no-js .xcard .xbody > * { opacity: 1; transform: none; }
.no-js .xcards { grid-template-columns: repeat(5, 1fr); }

/* ==========================================================================
   Website assistant (chat)
   ========================================================================== */
.chat { position: fixed; z-index: 70; bottom: max(20px, env(safe-area-inset-bottom)); inset-inline-end: 20px; }
.chat-fab {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 16px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--text); color: var(--accent-ink);
  font-family: var(--f-body); font-weight: 600; font-size: .92rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform 160ms var(--ease-out), background-color .2s var(--ease);
}
.chat-fab:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .chat-fab:hover { background: var(--accent-hover); } }
.chat-fab-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat.is-open .chat-fab { opacity: 0; pointer-events: none; transform: scale(.9); transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); }

.chat-panel {
  position: absolute; bottom: 0; inset-inline-end: 0;
  display: flex; flex-direction: column;
  width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100svh - 110px));
  background: var(--panel); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85), inset 0 0 0 1px var(--border);
  transform-origin: 100% 100%;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97);
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s linear .2s;
}
[dir="rtl"] .chat-panel { transform-origin: 0% 100%; }
.chat.is-open .chat-panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s;
}

.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.chat-avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--panel-3); }
.chat-avatar svg { width: 20px; height: auto; fill: var(--text); }
.chat-who { min-width: 0; flex: 1; }
.chat-title { margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.2; }
.chat-status { display: flex; align-items: center; gap: 6px; margin: 3px 0 0; font-size: .76rem; color: var(--text-3); }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.chat-close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--text-2); cursor: pointer; }
.chat-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .chat-close:hover { background: var(--panel-2); color: var(--text); } }

.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; }
.msg p { margin: 0; padding: 10px 13px; font-size: .92rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 14px; }
.msg-bot p { background: var(--panel-2); color: var(--text); border-end-start-radius: 4px; }
.msg-user { align-self: flex-end; }
.msg-user p { background: var(--text); color: var(--accent-ink); border-end-end-radius: 4px; }
.msg .chat-wa { margin-top: 8px; gap: 8px; }
.msg .chat-wa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msg-typing { display: inline-flex; gap: 4px; padding: 13px 14px; background: var(--panel-2); border-radius: 14px; border-end-start-radius: 4px; align-self: flex-start; }
.msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: typing 1.3s ease-in-out infinite; }
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.chat-chips[hidden] { display: none; }
.chat-chip {
  padding: 8px 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: none; color: var(--text-2); font-size: .82rem; line-height: 1.2;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .chat-chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); } }

.chat-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 12px; padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
[dir="rtl"] .chat-form { padding: 8px 14px 8px 8px; }
.chat-form:focus-within { box-shadow: inset 0 0 0 1px var(--line-strong); }
.chat-input {
  flex: 1; min-height: 24px; max-height: 120px; padding: 6px 0; resize: none; border: 0; outline: none; background: none;
  color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.45;
}
.chat-input::placeholder { color: var(--text-3); }
.chat-send { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 10px; cursor: pointer; background: var(--text); color: var(--accent-ink); transition: opacity .2s var(--ease), transform 160ms var(--ease-out); }
.chat-send:active { transform: scale(.94); }
.chat-send:disabled { opacity: .4; cursor: default; }
.chat-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .chat-send svg { transform: scaleX(-1); }
.chat-note { margin: 8px 16px 12px; font-size: .7rem; line-height: 1.45; color: var(--text-3); }

@media (max-width: 767px) {
  .chat { inset-inline-end: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .chat-fab { height: 48px; padding: 0 14px; }
  .chat-panel { position: fixed; inset: auto 8px max(8px, env(safe-area-inset-bottom)); width: auto; height: min(76svh, 640px); }
}
html.rm .msg-typing span { animation: none; opacity: .7; }
