/* =====================================================================
   /services (EN + AR) — page layer on top of site.css
   hero: purple poster, 9-card ring orbiting the centred mega H1
   index: the 9 services as a giant numbered index (H3s straight under the H1,
          as live), numerals fill + orange wash on the active row, cursor-follow
          image on desktop, centre-row lights up on touch
   process: kit .proc (pinned sideways track ≥1024) · FAQ: ink band, big-type
   accordion beside a sticky heading · CTA: tapes over the seam + .final
   Shared helper: .sv-tab — a band's corner tag (the live section label, kept
   as text but not stacked above the heading)
   ===================================================================== */

/* ---------- band corner tag (live section label) ---------- */
.sv-tab { position: absolute; z-index: 4; top: clamp(16px, 2.2vw, 30px); inset-inline-end: var(--g); display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--fg); color: var(--bg); font: 700 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; transform: rotate(calc(2.5deg * var(--dir))); white-space: nowrap; }
.sv-tab::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--b2); flex: none; }
.band--hot .sv-tab::before { background: var(--b2); box-shadow: 0 0 0 2px var(--ink); }
:root:lang(ar) .sv-tab { letter-spacing: 0; font-size: 13px; font-weight: 600; }

/* =====================================================================
   HERO
   ===================================================================== */
.svx-hero .ph__in { padding-block-end: clamp(44px, 6vw, 92px); }
.svx-hero__copy { justify-items: center; text-align: center; gap: clamp(14px, 1.8vw, 22px); }
.svx-hero__copy > .pill { margin-block-start: clamp(4px, 1vw, 12px); }
.svx-hero__type { position: relative; width: 100%; display: grid; justify-items: center; padding-block: clamp(26px, 4vw, 58px); }
.svx-hero .ph__title { margin-inline: auto; text-wrap: balance; }
.svx-hero .ph__lead { max-width: 38em; margin-inline: auto; }
.svx-hero .cta-row { justify-content: center; }
/* 9-card ring around the title (the kit ring shows 6; this one runs 9) */
.svx-hero .ring { --n: 9; --ring-y: 52%; --R: clamp(140px, 40vw, 600px); --cw: clamp(54px, 7.4vw, 124px); --ch: calc(var(--cw) * 1.3); --persp: 2100px; --rx: -12deg; }
.svx-hero .rc:nth-child(n+7) { display: flex; }
.svx-hero .rc__img img { object-position: 0 0; }
.svx-hero .ring--back .rc::after { background: var(--b1); opacity: .45; }
/* jump links (live anchors) */
.svx-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-block-start: 6px; }
.svx-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--rule); color: var(--fg); font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .3s, color .3s, box-shadow .3s; }
.svx-jump a:hover { background: var(--b2); color: var(--ink); box-shadow: none; }
/* phones: the ring rides as a flat carousel above the title, so it never crosses the words */
@media (max-width: 767px) {
  .svx-hero__type { padding-block: clamp(118px, 34vw, 150px) 6px; }
  .svx-hero .ring { --ring-y: clamp(58px, 17vw, 74px); --R: 41vw; --rx: -7deg; --rz: 0deg; --cw: clamp(50px, 14vw, 62px); --persp: 1200px; }
}
@media (max-width: 560px) {
  .svx-jump a { min-height: 40px; padding: 0 13px; font-size: 13.5px; }
  .svx-jump { gap: 4px; }
}

/* =====================================================================
   GIANT INDEX (9 services)
   ===================================================================== */
.svx-ix { padding-block: clamp(44px, 6vw, 96px) clamp(56px, 7vw, 110px); }
.svx-ix__list { border-top: 3px solid var(--fg); }
.svx-row { --row-pad: clamp(18px, 2.2vw, 30px); position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num head" "body body" "side side"; column-gap: 14px; row-gap: 14px; padding-block: var(--row-pad); border-bottom: 1px solid var(--rule); scroll-margin-top: 110px; }
/* active wash: an orange band wipes in from the reading edge */
.svx-row::before { content: ""; position: absolute; z-index: -1; inset-block: -1px 0; inset-inline: calc(-1 * var(--g)); background: var(--b2); clip-path: inset(0 100% 0 0); transition: clip-path .75s var(--ease); }
[dir="rtl"] .svx-row::before { clip-path: inset(0 0 0 100%); }
.svx-row.is-on::before { clip-path: inset(0 0 0 0); }
.svx-row.is-on { --fg-2: var(--ink); --rule: color-mix(in oklab, var(--ink) 30%, transparent); }

.svx-row__num { grid-area: num; position: relative; align-self: start; font: 400 clamp(62px, 9.6vw, 156px)/.8 var(--f-num); color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--fg) 70%, transparent); direction: ltr; user-select: none; padding-block-start: 4px; }
.svx-row__num::after { content: attr(data-n); position: absolute; inset: 0; padding-block-start: inherit; color: var(--b1-solid); -webkit-text-stroke: 0; clip-path: inset(100% 0 0 0); transition: clip-path .8s var(--ease); }
.svx-row.is-on .svx-row__num::after { clip-path: inset(0 0 0 0); }
.svx-row.is-on .svx-row__num { -webkit-text-stroke-color: var(--ink); }

.svx-row__head { grid-area: head; display: grid; gap: 6px; align-content: start; min-width: 0; }
.svx-row__tag { font: 700 12.5px/1.2 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.svx-row--new .svx-row__tag { color: var(--b1-accent); }
.svx-row.is-on .svx-row__tag { color: var(--ink); }
.svx-row__name { font: 400 clamp(38px, 6.1vw, 96px)/.9 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); color: var(--fg); overflow-wrap: break-word; transition: translate .7s var(--ease), color .3s; }
.svx-row.is-on .svx-row__name { color: var(--ink); translate: calc(12px * var(--dir)) 0; }

.svx-row__body { grid-area: body; display: grid; gap: 14px; }
.svx-row__desc { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: var(--fg); max-width: 46ch; }
.svx-row__ticks { display: grid; gap: 6px; font-size: 15px; color: var(--fg-2); }
.svx-row__ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; }
.svx-row__ticks i { color: var(--b1-accent); font-size: 17px; line-height: 1.2; }
.svx-row.is-on .svx-row__ticks i { color: var(--deep); }

.svx-row__side { grid-area: side; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 22px; }
.svx-row__price { display: grid; gap: 3px; justify-items: start; }
.svx-row__from { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
:root:lang(ar) .svx-row__from { letter-spacing: 0; font-size: 12.5px; }
.svx-row__amt { font: 400 clamp(28px, 2.6vw, 40px)/1 var(--f-num); color: var(--fg); }
.svx-row__ref { font-size: 12.5px; color: var(--fg-2); }
.svx-row__go { font-size: 15px; }
.svx-row__thumb { position: absolute; top: var(--row-pad); inset-inline-end: 0; width: clamp(76px, 18vw, 150px); aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--cream-2); box-shadow: 0 14px 26px -16px color-mix(in oklab, var(--ink) 70%, transparent); transform: rotate(calc(3deg * var(--dir))) scale(.86); transition: transform .6s var(--ease); pointer-events: none; }
.svx-row__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; filter: saturate(.2); transition: filter .5s; }
.svx-row.is-on .svx-row__thumb { transform: rotate(calc(-2deg * var(--dir))) scale(1); }
.svx-row.is-on .svx-row__thumb img { filter: none; }
@media (max-width: 1023px) { .svx-row__head { padding-inline-end: clamp(84px, 19vw, 160px); } }

.svx-ix__note { margin-top: 22px; font-size: 14.5px; color: var(--fg-2); max-width: 70ch; }
.svx-ix__note a { color: var(--acc); font-weight: 650; }

@media (min-width: 640px) and (max-width: 1023px) {
  .svx-row__body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .svx-row { grid-template-columns: clamp(150px, 12.5vw, 200px) minmax(0, 1fr) minmax(250px, 300px); grid-template-areas: "num head side" "num body side"; column-gap: clamp(22px, 3vw, 48px); row-gap: 14px; align-items: start; }
  .svx-row__body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 40px); }
  .svx-row__side { flex-direction: column; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; align-self: stretch; text-align: end; }
  .svx-row__price { justify-items: end; }
}
/* desktop + mouse: the image follows the cursor instead of the inline thumbnail */
.svx-peek { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(250px, 21vw, 340px); aspect-ratio: 16 / 10; pointer-events: none; display: none; }
.svx-peek__in { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: var(--cream-2); transform: scale(.82) rotate(calc(-5deg * var(--dir))); opacity: 0; transition: transform .6s var(--ease), opacity .3s; box-shadow: 0 34px 60px -26px color-mix(in oklab, var(--ink) 70%, transparent), 0 0 0 4px var(--paper); }
.svx-peek.is-on .svx-peek__in { transform: none; opacity: 1; }
.svx-peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0; opacity: 0; transition: opacity .35s; }
.svx-peek img.is-on { opacity: 1; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .svx-peek { display: block; }
  .svx-row__thumb { display: none; }
  .svx-ix__list:hover .svx-row:not(.is-on) { opacity: .5; }
  .svx-row { transition: opacity .35s; }
}

/* =====================================================================
   PROCESS (kit .proc) — head spacing under the corner tag
   ===================================================================== */
.svx-proc .proc__head { padding-top: clamp(16px, 2vw, 28px); }
.svx-proc .proc__step h3 { max-width: 12ch; }

/* =====================================================================
   FAQ — sticky heading + big-type questions
   ===================================================================== */
.svx-faq { padding-bottom: calc(var(--sec) + clamp(40px, 6vw, 80px)); }
.svx-faq__grid { display: grid; gap: clamp(26px, 4vw, 44px); padding-top: clamp(14px, 2vw, 24px); }
.svx-faq__list .faq__q { font: 400 clamp(24px, 2.6vw, 40px)/1.02 var(--f-display); text-transform: var(--display-case); letter-spacing: var(--display-track); }
:root:lang(ar) .svx-faq__list .faq__q { font-weight: 700; font-size: clamp(21px, 2.1vw, 30px); line-height: 1.45; }
.svx-faq__list .faq__a { font-size: 17px; }
@media (min-width: 1024px) {
  .svx-faq__grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
  .svx-faq__head { position: sticky; top: 120px; }
}

/* =====================================================================
   CTA — tapes across the ink/orange seam, then the final poster
   ===================================================================== */
.svx-tapes { z-index: 5; margin-block: calc(-1 * clamp(64px, 7.4vw, 100px)); pointer-events: none; }
.svx-final { padding-top: clamp(110px, 13vw, 200px); }
.svx-final .final__title br { display: none; }
.svx-final .final__title .f1 { font-size: calc(var(--W) / 5.9); line-height: .86; }
.svx-final .final__title .f2 { font-size: calc(var(--W) / 9.2); line-height: .98; }
.svx-final .final__title .f2 em { color: var(--deep); font-size: 1.04em; line-height: .9; }
:root:lang(ar) .svx-final .final__title .f1 { font-size: clamp(54px, 12.5vw, 190px); }
:root:lang(ar) .svx-final .final__title .f2 { font-size: clamp(42px, 9.6vw, 150px); line-height: 1.25; }

/* price values hug the row's start edge until the price column moves to the end (≥1024) */
@media (max-width: 1023px) {
  .svx-row__price [data-w].px--end > .px__v { left: 0; right: auto; }
  [dir="rtl"] .svx-row__price [data-w].px--end > .px__v { left: auto; right: 0; }
}
:root:lang(ar) .svx-row__name { font-weight: 800; font-size: clamp(30px, 5.2vw, 82px); line-height: 1.22; }
:root:lang(ar) .svx-row__tag { letter-spacing: 0; font-size: 13px; }
/* the warm ink wash stays a glow behind the cream title, never a block over it */
.svx-hero .ink.is-on { opacity: .6; }
:root:lang(ar) .svx-hero .ph__title { font-size: clamp(40px, 10.5vw, 112px); }

/* phones: the corner tag joins the flow (end side) so it never sits on the heading */
@media (max-width: 767px) {
  .sv-tab { position: relative; top: auto; inset-inline-end: auto; display: flex; width: fit-content; margin-block: calc(-1 * clamp(14px, 3vw, 22px)) 14px; margin-inline: auto var(--g); }
}
/* kit gap: in the pinned track the grid column grows to the steps' max-content width, which pushes the
   centred .wrap head ~545px sideways at 1440. Pin the column to the viewport. (reported to the kit) */
.svx-proc.is-track .proc__pin { grid-template-columns: minmax(0, 1fr); }

/* phones: no reflow when the web fonts swap in (CLS) —
   the jump links become one swipeable row, and the Arabic title is sized so the
   metric fallback and Alexandria both break on the same two lines */
@media (max-width: 767px) {
  .svx-jump { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; max-width: calc(100% + 2 * var(--g)); margin-inline: calc(-1 * var(--g)); padding-inline: var(--g); padding-block: 2px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--g), #000 calc(100% - var(--g)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--g), #000 calc(100% - var(--g)), transparent); }
  .svx-jump::-webkit-scrollbar { display: none; }
  .svx-jump a { flex: none; white-space: nowrap; }
  :root:lang(ar) .svx-hero .ph__title { font-size: 9vw; }
}
