/*
 * Site components and sections. On a client build this file is where the
 * approved design is implemented; every value should come from a token.
 */

/* ---------- Header ---------- */
.sx-announce { background: var(--c-dark); color: var(--c-on-dark); font-size: var(--fs-small); text-align: center; }
.sx-announce p { margin: 0; padding: 0.5rem 0; }
.sx-header { position: sticky; inset-block-start: 0; z-index: 50; background: var(--c-bg); border-bottom: 1px solid var(--c-line); }
.sx-header__inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.sx-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--c-ink); flex: 0 1 auto; min-width: 0; }
.sx-logo__img { height: auto; max-height: 2.5rem; width: auto; max-width: min(12rem, 100%); object-fit: contain; object-position: left center; }
[dir="rtl"] .sx-logo__img { object-position: right center; }
.sx-header__actions { flex: 0 0 auto; }
@media (min-width: 640px) { .sx-header__inner { gap: var(--space-5); } }
.sx-logo__text { font-family: var(--font-display); font-weight: var(--fw-display); font-size: 1.25rem; line-height: 1.1; }
.sx-header__actions { display: flex; align-items: center; gap: var(--space-4); margin-inline-start: auto; }
.sx-header__phone { display: none; align-items: center; gap: 0.4rem; font-weight: var(--fw-strong); color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.sx-header__phone:hover { color: var(--c-brand); }
.sx-header__cta { display: none; white-space: nowrap; }
.sx-burger { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.5rem 0.85rem; background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-ink-soft); border-radius: var(--radius-pill); font-weight: var(--fw-strong); }
.sx-burger:hover { background: var(--c-surface); }

/* Navigation (shared list markup; layout differs per context) */
.sx-nav--desktop { display: none; }
/* base.css gives a classed list a block margin, which left the <ul> 17px
 * taller than its own links. The header centres its children, so that margin
 * pushed every nav label up by half of it and the row read as misaligned
 * against the logo. Zero it here and centre explicitly rather than relying on
 * every child happening to be the same height. */
.sx-nav__list { display: flex; align-items: center; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.sx-header__inner > * { align-self: center; }
.sx-nav__item { position: relative; display: flex; align-items: center; }
.sx-nav__link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.7rem; color: var(--c-ink); font-weight: var(--fw-strong); font-size: 1rem; text-decoration: none; border-radius: var(--radius-s); }
.sx-nav__link:hover { color: var(--c-brand); background: var(--c-surface); }
.sx-nav__link[aria-current="page"] { color: var(--c-brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.sx-nav__toggle { display: inline-grid; place-items: center; width: 2rem; height: 2.75rem; margin-inline-start: -0.4rem; background: transparent; border: 0; border-radius: var(--radius-s); color: var(--c-ink); }
.sx-nav__toggle:hover { background: var(--c-surface); }
.sx-nav__toggle .sx-icon { width: 1.1rem; height: 1.1rem; transition: transform 0.2s ease; }
.sx-nav__toggle[aria-expanded="true"] .sx-icon { transform: rotate(180deg); }
.sx-nav--desktop .sx-nav__sub { position: absolute; inset-block-start: calc(100% + 0.25rem); inset-inline-start: 0; min-width: 15rem; padding: var(--space-2); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-m); box-shadow: var(--shadow-2); z-index: 60; }
.sx-nav__sublink { display: block; padding: 0.6rem 0.8rem; color: var(--c-ink); text-decoration: none; border-radius: var(--radius-s); }
.sx-nav__sublink:hover { background: var(--c-surface); color: var(--c-brand); }
.sx-nav__sublink[aria-current="page"] { color: var(--c-brand); font-weight: var(--fw-strong); }

/* Language switcher */
.sx-lang-switch ul { display: flex; flex-wrap: wrap; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.sx-lang-switch a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: var(--fw-strong); color: var(--c-ink); text-decoration: none; }
.sx-lang-switch a:hover { background: var(--c-surface); }
.sx-lang-switch a[aria-current="true"] { background: var(--c-ink); color: var(--c-bg); }
.sx-lang-switch--header { display: none; position: relative; }
.sx-lang-dd summary { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0.4rem 0.8rem; border: 1.5px solid var(--c-line); border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: var(--fw-strong); cursor: pointer; list-style: none; white-space: nowrap; }
.sx-lang-dd summary::-webkit-details-marker { display: none; }
.sx-lang-dd summary::after { content: ""; width: 0.45rem; height: 0.45rem; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg) translateY(-0.12rem); }
.sx-lang-dd summary:hover { background: var(--c-surface); }
.sx-lang-dd ul { position: absolute; inset-block-start: calc(100% + 0.35rem); inset-inline-end: 0; flex-direction: column; min-width: 10rem; padding: var(--space-2); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-m); box-shadow: var(--shadow-2); z-index: 60; }
.sx-lang-dd ul a { width: 100%; border-radius: var(--radius-s); }
.sx-footer .sx-lang-switch a { color: var(--c-on-dark); }
.sx-footer .sx-lang-switch a:hover { background: rgb(255 255 255 / 0.12); }
.sx-footer .sx-lang-switch a[aria-current="true"] { background: var(--c-on-dark); color: var(--c-dark); }

@media (min-width: 1100px) {
  .sx-nav--desktop { display: flex; align-items: center; }
  .sx-burger { display: none; }
  .sx-header__cta { display: inline-flex; }
  .sx-lang-switch--header { display: block; }
}
@media (min-width: 1280px) { .sx-header__phone { display: inline-flex; } }

/* ---------- Off-canvas menu ---------- */
.sx-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s linear 0.32s; }
.sx-drawer.is-open { visibility: visible; transition-delay: 0s; }
.sx-drawer__backdrop { position: absolute; inset: 0; background: rgb(10 16 13 / 0.55); opacity: 0; transition: opacity 0.32s ease; }
.sx-drawer.is-open .sx-drawer__backdrop { opacity: 1; }
.sx-drawer__panel { position: absolute; inset-block: 0; inset-inline-end: 0; display: flex; flex-direction: column; width: min(24rem, 88vw); background: var(--c-bg); box-shadow: var(--shadow-2); transform: translateX(100%); transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1); overflow-y: auto; overscroll-behavior: contain; }
[dir="rtl"] .sx-drawer__panel { transform: translateX(-100%); }
.sx-drawer.is-open .sx-drawer__panel { transform: none; }
.sx-drawer__top { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--c-line); position: sticky; inset-block-start: 0; background: var(--c-bg); z-index: 1; }
.sx-drawer__title { font-family: var(--font-display); font-weight: var(--fw-heading); font-size: 1.25rem; }
.sx-drawer__close { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; background: transparent; border: 1.5px solid var(--c-ink-soft); border-radius: 50%; color: var(--c-ink); }
.sx-drawer__close:hover { background: var(--c-surface); }
.sx-nav--drawer { padding: var(--space-3) var(--space-5); }
.sx-nav--drawer .sx-nav__list { flex-direction: column; gap: 0; }
.sx-nav--drawer .sx-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
.sx-nav--drawer .sx-nav__link { flex: 1 1 auto; min-height: 3.25rem; padding-inline: 0; font-size: 1.125rem; border-radius: 0; }
.sx-nav--drawer .sx-nav__link:hover { background: transparent; }
.sx-nav--drawer .sx-nav__toggle { width: 3rem; height: 3rem; margin: 0; }
.sx-nav--drawer .sx-nav__sub { flex: 1 0 100%; padding: 0 0 var(--space-3) var(--space-4); }
.sx-nav--drawer .sx-nav__sublink { padding: 0.7rem 0.5rem; }
.sx-drawer__bottom { display: grid; gap: var(--space-4); margin-top: auto; padding: var(--space-5); }
.sx-drawer__phone { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; font-weight: var(--fw-strong); color: var(--c-ink); text-decoration: none; }
body.sx-drawer-open { overflow: hidden; }

/* ---------- Sections ---------- */
.sx-main { display: block; min-height: 40vh; }
.sx-section { padding-block: var(--section-y); }
.sx-section + .sx-section { border-top: 0; }
/* Grounds. A section declares one; the rhythm rule is that no two neighbours
 * share it. v1.0 coloured sections by subject, which put five pastel grounds on
 * one page; v2.0 has three, and the colour lives in the type and the marks. */
.sx-on-surface { background: var(--c-surface); }
.sx-on-dark { background: var(--c-dark); color: var(--c-on-dark); }
.sx-on-dark :is(h2, h3, h4, dt, b, strong, .sx-heading__title) { color: var(--c-on-dark); }
.sx-on-dark :is(p, li, dd, .sx-heading__intro, .sx-lead, .sx-eyebrow, figcaption) { color: var(--c-on-dark-soft); }
.sx-on-dark a:not(.sx-btn) { color: var(--c-mint); }
.sx-on-accent { background: var(--c-accent-tint); }
.sx-on-accent :is(p, li, dd, .sx-heading__intro, .sx-lead) { color: var(--c-on-accent-tint); }
.sx-on-accent .sx-eyebrow { color: var(--c-on-accent-tint); }
.sx-heading { margin-bottom: var(--space-7); max-width: 44rem; }
.sx-heading--center { margin-inline: auto; text-align: center; }
.sx-heading--center .sx-heading__title { margin-inline: auto; }
.sx-heading__title { margin: 0; }
.sx-heading__intro { margin: var(--space-4) 0 0; font-size: var(--fs-lead); color: var(--c-ink-soft); }
.sx-heading--center .sx-heading__intro { margin-inline: auto; }

.sx-grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 640px) { .sx-grid--2, .sx-grid--3, .sx-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sx-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Hero */
.sx-section--hero { padding-block: clamp(3rem, 1.5rem + 5vw, 6.5rem); background: var(--c-dark); color: var(--c-on-dark); }
.sx-section--hero :is(h1, .sx-hero__title) { color: var(--c-on-dark); }
.sx-section--hero :is(.sx-lead, p) { color: var(--c-on-dark-soft); }
.sx-section--hero .sx-eyebrow { color: var(--c-on-dark-soft); }
.sx-hero__grid { display: grid; gap: var(--space-7); align-items: center; }
.sx-hero__title { font-size: var(--fs-display); font-weight: var(--fw-display); line-height: var(--lh-tight); margin: 0 0 var(--space-5); }
.sx-hero__media .sx-img, .sx-hero__media .sx-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); }
.sx-points { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); }
.sx-points li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--fs-small); font-weight: var(--fw-strong); }
.sx-points .sx-icon { color: var(--c-brand); margin-top: 0.15em; }
.sx-points--stack { flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.sx-points--stack li { font-size: var(--fs-body); font-weight: var(--fw-body); }
@media (min-width: 1000px) { .sx-hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); } }

/* Page banner */
/* Every page banner is dark, with or without a photograph. It is the one
 * inverted band at the top of an inner page and it makes the whole site read
 * as one piece rather than as a home page with attachments. */
.sx-section--page-header { position: relative; padding-block: clamp(2.75rem, 1.8rem + 3.4vw, 5rem); background: var(--c-dark); color: var(--c-on-dark); }
.sx-section--page-header .sx-heading__title { font-size: var(--fs-h1); }
.sx-section--page-header .sx-lead { margin-top: var(--space-4); margin-bottom: 0; }
.sx-section--page-header :is(h1, .sx-heading__title) { color: var(--c-on-dark); }
.sx-section--page-header :is(.sx-lead, p) { color: var(--c-on-dark-soft); }
.sx-section--page-header .sx-eyebrow { color: var(--c-on-dark-soft); }
/* The banner image is decoration (the template marks it aria-hidden), but an
 * absolutely positioned box still takes the clicks. Without this it covers the
 * whole banner and nothing in it can be pressed — on the home page that was
 * both hero buttons, and on every inner page the banner's own links. */
.sx-pagehead__bg { position: absolute; inset: 0; pointer-events: none; }
.sx-pagehead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.sx-pagehead__inner { position: relative; }
.sx-breadcrumbs { margin-bottom: var(--space-4); font-size: var(--fs-small); }
.sx-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.sx-breadcrumbs li + li::before { content: "/"; margin-inline-end: 0.4rem; color: var(--c-ink-soft); }
.sx-breadcrumbs a { color: var(--c-on-dark-soft); }
.sx-section--page-header .sx-breadcrumbs [aria-current] { color: var(--c-on-dark); }
.sx-section--page-header .sx-breadcrumbs li + li::before { color: var(--c-on-dark-soft); }
.sx-breadcrumbs [aria-current] { color: var(--c-ink); font-weight: var(--fw-strong); }

/* Text with image */
.sx-split { display: grid; gap: var(--space-7); align-items: center; }
.sx-split__media .sx-img, .sx-split__media .sx-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-l); }
.sx-split .sx-heading { margin-bottom: var(--space-5); }
@media (min-width: 900px) {
  .sx-split { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .is-reversed .sx-split__media { order: -1; }
}

/* Cards */
.sx-card { display: flex; flex-direction: column; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-m); overflow: hidden; }
.sx-card__media .sx-img, .sx-card__media img, .sx-card__media .sx-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; border-inline: 0; border-top: 0; }
.sx-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1 1 auto; }
.sx-card__body > * { margin: 0; }
.sx-card__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-brand) 12%, var(--c-bg)); color: var(--c-brand); }
.sx-card__icon .sx-icon { width: 1.5rem; height: 1.5rem; }
.sx-card__title { font-size: var(--fs-h3); }
.sx-card__title a { color: inherit; text-decoration: none; }
.sx-card__title a:hover { color: var(--c-brand); text-decoration: underline; }
.sx-card__meta { font-size: var(--fs-small); color: var(--c-ink-soft); }
.sx-card__more { margin-top: auto !important; padding-top: var(--space-2); }

/* Steps */
.sx-steps { display: grid; gap: var(--space-6); counter-reset: step; }
.sx-step { position: relative; padding-inline-start: 4rem; }
.sx-step__num { position: absolute; inset-inline-start: 0; inset-block-start: 0; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); font-family: var(--font-display); font-weight: var(--fw-heading); font-size: 1.125rem; }
.sx-step__title { font-size: var(--fs-h3); margin-bottom: 0.35em; }
.sx-step p { margin: 0; color: var(--c-ink-soft); }
@media (min-width: 900px) { .sx-steps { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } .sx-step { padding-inline-start: 0; padding-block-start: 3.75rem; } }

/* Figures */
.sx-stats { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin: 0; }
.sx-stat { display: flex; flex-direction: column-reverse; padding: var(--space-5); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-m); text-align: center; }
.sx-stat dd { margin: 0; font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--fw-display); line-height: 1.1; color: var(--c-brand); }
.sx-stat dt { margin-top: 0.4rem; color: var(--c-ink-soft); font-size: var(--fs-small); }

/* Testimonials */
.sx-quote { position: relative; padding: var(--space-5); background: var(--c-surface); border-radius: var(--radius-m); }
.sx-quote figure { margin: 0; display: grid; gap: var(--space-4); }
.sx-quote blockquote { margin: 0; font-size: var(--fs-lead); }
.sx-quote blockquote p { margin: 0; }
.sx-quote figcaption { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-small); }
.sx-quote__photo { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; }
.sx-quote__role { color: var(--c-ink-soft); }
.sx-quote__sample { display: inline-block; margin: 0 0 var(--space-3); padding: 0.2rem 0.6rem; background: var(--c-bg); border: 1.5px dashed var(--c-ink-soft); border-radius: var(--radius-s); font-size: var(--fs-eyebrow); font-weight: var(--fw-strong); }

/* FAQ */
.sx-faq { display: grid; gap: var(--space-3); }
.sx-faq__item { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-m); }
.sx-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); cursor: pointer; list-style: none; border-radius: var(--radius-m); }
.sx-faq__item summary::-webkit-details-marker { display: none; }
.sx-faq__q { margin: 0; font-family: var(--font-body); font-size: var(--fs-body); font-weight: var(--fw-strong); line-height: 1.4; }
.sx-faq__item summary .sx-icon { color: var(--c-brand); transition: transform 0.2s ease; }
.sx-faq__item[open] summary .sx-icon { transform: rotate(45deg); }
.sx-faq__a { padding: 0 var(--space-5) var(--space-5); color: var(--c-ink-soft); }
.sx-faq__a p { margin: 0; }

/* Call to action */
.sx-section--cta { padding-block: var(--section-y); background: var(--c-dark); color: var(--c-on-dark); }
.sx-cta { display: grid; gap: var(--space-5); align-items: center; }
.sx-cta__title { margin: 0 0 0.35em; color: var(--c-on-dark); }
.sx-cta p { margin: 0; color: var(--c-on-dark-soft); font-size: var(--fs-lead); }
.sx-cta .sx-actions { margin-top: 0; }
@media (min-width: 900px) { .sx-cta { grid-template-columns: 1fr auto; } }

/* Contact */
.sx-contact { display: grid; gap: var(--space-7); }
.sx-contact .sx-heading { margin-bottom: var(--space-5); }
.sx-contact__details { display: grid; gap: var(--space-5); align-content: start; padding: var(--space-5); background: var(--c-surface); border-radius: var(--radius-l); }
.sx-contact-list { display: grid; gap: var(--space-3); }
.sx-contact-list li { display: flex; gap: 0.7rem; align-items: flex-start; }
.sx-contact-list .sx-icon { margin-top: 0.2em; color: var(--c-brand); }
.sx-contact-list--lg { gap: var(--space-5); }
.sx-contact-list address { margin: 0; }
.sx-hours { display: flex; justify-content: space-between; gap: var(--space-4); }
@media (min-width: 900px) { .sx-contact { grid-template-columns: 1.15fr 0.85fr; gap: var(--space-8); } }

/* Gallery, team, logos */
.sx-gallery figure { margin: 0; }
.sx-gallery .sx-img, .sx-gallery .sx-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.sx-gallery figcaption { margin-top: 0.5rem; font-size: var(--fs-small); color: var(--c-ink-soft); }
.sx-person .sx-img, .sx-person .sx-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-m); margin-bottom: var(--space-4); }
.sx-person__name { font-size: var(--fs-h4); margin: 0; }
.sx-person__role { margin: 0.15rem 0 0.6rem; color: var(--c-brand); font-weight: var(--fw-strong); font-size: var(--fs-small); }
.sx-person p:last-child { color: var(--c-ink-soft); font-size: var(--fs-small); margin: 0; }
.sx-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--space-6) var(--space-7); }
.sx-logos li { flex: 0 1 9rem; }
.sx-logos .sx-img { max-height: 3.5rem; width: auto; margin-inline: auto; object-fit: contain; }

/* Pricing */
.sx-plan { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-l); }
.sx-plan.is-featured { border: 2px solid var(--c-brand); box-shadow: var(--shadow-2); }
.sx-plan__name { margin: 0; font-size: var(--fs-h3); }
.sx-plan__price { margin: 0; }
.sx-plan__price span { font-family: var(--font-display); font-size: var(--fs-h1); font-weight: var(--fw-display); line-height: 1; }
.sx-plan__price small { color: var(--c-ink-soft); }
.sx-plan .sx-points { margin-top: 0; flex: 1 1 auto; }
.sx-plan p:last-child { margin: 0; }
.sx-pricing__note { margin: var(--space-5) auto 0; max-width: 44rem; text-align: center; font-size: var(--fs-small); color: var(--c-ink-soft); }

/* Legal, site map, blog */
.sx-section--legal { padding-block-start: var(--space-6); }
.sx-legal__date { color: var(--c-ink-soft); font-size: var(--fs-small); }
.sx-sitemap, .sx-sitemap ul, .sx-searchlist { list-style: disc; padding-inline-start: 1.4em; }
.sx-sitemap li, .sx-searchlist li { margin-bottom: 0.4em; }
.sx-postlist { margin-bottom: var(--space-6); }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.6rem; border: 1px solid var(--c-line); border-radius: var(--radius-s); text-decoration: none; }
.nav-links .current { background: var(--c-ink); color: var(--c-bg); }

/* ---------- Footer ---------- */
.sx-footer { background: var(--c-dark); color: var(--c-on-dark-soft); }
.sx-footer a { color: var(--c-on-dark); }
.sx-footer a:hover { color: var(--c-on-dark); }
.sx-footer__grid { display: grid; gap: var(--space-7); padding-block: var(--space-8); }
.sx-footer .sx-logo { color: var(--c-on-dark); margin-bottom: var(--space-4); }
.sx-footer__about { max-width: 26rem; }
.sx-footer__title { margin: 0 0 var(--space-4); font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: var(--fw-strong); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-on-dark); }
.sx-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.sx-footer__link { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; }
.sx-footer__link:hover { text-decoration: underline; }
.sx-footer .sx-contact-list .sx-icon { color: var(--c-on-dark); }
.sx-footer .sx-contact-list a { text-decoration: none; }
.sx-footer .sx-contact-list a:hover { text-decoration: underline; }
.sx-social { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.sx-social__link { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1.5px solid rgb(255 255 255 / 0.35); border-radius: 50%; }
.sx-social__link:hover { background: var(--c-on-dark); color: var(--c-dark) !important; }
.sx-social__link .sx-icon { width: 1.15rem; height: 1.15rem; }
.sx-footer__bar { border-top: 1px solid rgb(255 255 255 / 0.16); }
.sx-footer__bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); padding-block: var(--space-4); font-size: var(--fs-small); }
.sx-footer__copy { margin: 0; }
.sx-footer__legal { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); list-style: none; margin: 0; padding: 0; }
.sx-footer .sx-linkbtn { color: var(--c-on-dark); text-decoration: none; min-height: 2.25rem; }
.sx-footer .sx-linkbtn:hover { text-decoration: underline; }
@media (min-width: 700px) { .sx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sx-footer__grid { grid-template-columns: 1.4fr repeat(auto-fit, minmax(9rem, 1fr)); grid-auto-flow: column; } .sx-footer__bar-inner .sx-lang-switch { margin-inline-start: auto; } }

/* ---------- WooCommerce: inherit the site's type and buttons ---------- */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { min-height: 2.875rem; padding: 0.7rem 1.35rem; background: var(--c-brand); color: var(--c-on-brand); border-radius: var(--radius-pill); font-weight: var(--fw-strong); }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--c-brand-strong); color: var(--c-on-brand); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price { color: var(--c-ink); font-weight: var(--fw-strong); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 2.875rem; padding: 0.65rem 0.85rem; border: 1.5px solid var(--c-ink-soft); border-radius: var(--radius-s); }

/* ======================================================================
 * AleraHub v2.0 — the approved design
 *
 * The one decision everything follows from: the product's interface is
 * green, so the site is built from the same green. A screenshot then
 * belongs on the page instead of reading as another company's software.
 * White is the ground, one brand colour, one accent, and the dark band is
 * the punctuation.
 * ====================================================================== */

/* ---------- Typography: the two-tone heading ---------- */
/* The signature device. First clause in ink, second in the brand (or mint
 * on a dark ground). Written in the seed as <b> inside the heading, so an
 * editor can move the break without touching CSS. */
.sx-heading__title b,
.sx-hero__title b,
.sx-pagehead__title b { font-weight: inherit; color: var(--c-brand); }
/* On a dark band the second clause is mint, not brand: brand green on near-black
 * is about 2:1. The banner's own heading is .sx-pagehead__title, not
 * .sx-heading__title, so it needs naming here or it keeps the light-band colour. */
.sx-on-dark .sx-heading__title b,
.sx-on-dark .sx-pagehead__title b,
.sx-section--hero .sx-hero__title b,
.sx-section--page-header .sx-pagehead__title b,
.sx-section--page-header .sx-heading__title b,
.sx-section--cta .sx-cta__title b { color: var(--c-mint); }
.sx-on-accent .sx-heading__title b { color: var(--c-brand-strong); }

/* The heading block was capped at 42rem, which is a reading measure for body
 * text, not for a display-size heading. It made "One system. Six families.
 * Thirty-six modules." wrap onto three lines inside a 1320px section with half
 * the line left empty. The title now gets room to run; the intro underneath
 * keeps its own measure, which is the thing that actually needs one. */
.sx-heading { max-width: 58rem; }
.sx-heading__intro { max-width: 62ch; }
.sx-heading__title { text-wrap: balance; }
.sx-heading__intro { max-width: 62ch; }
.sx-eyebrow { color: var(--c-ink-soft); }
[lang="ar"] .sx-eyebrow { letter-spacing: normal; text-transform: none; }
[lang="ar"] .sx-footer__title { letter-spacing: normal; text-transform: none; }

/* ---------- Header ---------- */
.sx-header { background: color-mix(in srgb, var(--c-bg) 92%, transparent); backdrop-filter: blur(10px); transition: box-shadow var(--duration-base) var(--ease-out); }
.sx-header.is-stuck { box-shadow: var(--shadow-2); }
.sx-nav__link { font-weight: var(--fw-body); }
.sx-nav__link:hover { background: var(--c-brand-tint); color: var(--c-brand-strong); }
.sx-header__cta.sx-btn--primary { padding-block: 0.8rem; }

/* ---------- Buttons: every one is a pill ---------- */
.sx-btn { border-radius: var(--radius-pill); transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out); }
.sx-btn--primary:hover { background: var(--c-brand-strong); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.sx-btn--primary:active { transform: translateY(0); box-shadow: none; }
.sx-btn--outline:hover { border-color: var(--c-brand); background: var(--c-brand-tint); }
.sx-on-dark .sx-btn--outline, .sx-section--hero .sx-btn--outline,
.sx-section--page-header .sx-btn--outline, .sx-section--cta .sx-btn--outline {
  color: var(--c-on-dark); border-color: rgb(233 244 239 / 0.32); background: transparent;
}
.sx-on-dark .sx-btn--outline:hover, .sx-section--hero .sx-btn--outline:hover,
.sx-section--page-header .sx-btn--outline:hover, .sx-section--cta .sx-btn--outline:hover {
  border-color: var(--c-on-dark); background: rgb(233 244 239 / 0.1); color: var(--c-on-dark);
}
/* A link that behaves as a button draws its underline in rather than on. */
.sx-more, .sx-linkbtn { position: relative; text-decoration: none; }
.sx-more::after, .sx-linkbtn::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: 0.05em; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: inline-start;
  transition: transform var(--duration-fast) var(--ease-out);
}
.sx-more:hover::after, .sx-linkbtn:hover::after, .sx-more:focus-visible::after { transform: scaleX(1); }

/* ---------- Checkmark list: the site's primary content unit ---------- */
.sx-points li { align-items: flex-start; gap: var(--space-3); font-weight: var(--fw-body); }
.sx-points .sx-icon { flex: none; width: 1.6rem; height: 1.6rem; padding: 0.3rem; margin: 0.1rem 0 0; border-radius: var(--radius-pill); background: var(--c-success-tint); color: var(--c-brand); }
.sx-on-dark .sx-points .sx-icon, .sx-section--hero .sx-points .sx-icon { background: rgb(79 215 158 / 0.16); color: var(--c-mint); }
.sx-points--stack li { font-size: var(--fs-body); }
.sx-points b { display: block; font-weight: var(--fw-strong); }
.sx-points b + span { display: block; margin-top: 0.15rem; color: var(--c-ink-soft); font-size: var(--fs-small); }
.sx-on-dark .sx-points b + span { color: var(--c-on-dark-soft); }

/* ---------- Cards ---------- */
.sx-card { border-radius: var(--radius-m); transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out); }
.sx-card:has(a:hover), .sx-card:has(a:focus-visible) { border-color: var(--c-brand); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.sx-card__icon { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-s); background: var(--c-brand-tint); }
.sx-card__icon .sx-icon { width: 1.3rem; height: 1.3rem; }
.sx-on-surface .sx-card { background: var(--c-bg); }
.sx-on-dark .sx-card { background: rgb(255 255 255 / 0.04); border-color: rgb(233 244 239 / 0.16); }
.sx-on-dark .sx-card__icon { background: rgb(79 215 158 / 0.14); color: var(--c-mint); }
/* The image inside a linked card zooms within its own frame, which never moves. */
.sx-card__media { overflow: hidden; }
.sx-card__media :is(.sx-img, img) { transition: transform var(--duration-slow) var(--ease-out); }
.sx-card:has(a:hover) .sx-card__media :is(.sx-img, img) { transform: scale(1.04); }

/* ---------- Stat band ---------- */
.sx-stats { gap: 0; padding: var(--space-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.sx-stat { padding: var(--space-4) var(--space-5); background: transparent; border: 0; text-align: start; }
.sx-stat dd { font-size: var(--stat-size); color: var(--c-ink); letter-spacing: -0.02em; }
.sx-stat dt { margin-top: var(--space-2); }
.sx-on-dark .sx-stats { background: rgb(255 255 255 / 0.04); border-color: rgb(233 244 239 / 0.16); }
.sx-on-dark .sx-stat dd { color: var(--c-on-dark); }
.sx-on-surface .sx-stats { background: var(--c-bg); }

/* ---------- Device frame around a product screenshot ---------- */
/* Load-bearing, not decorative: the product keeps its own green, and the
 * window bar is what separates "the application" from "the site". It is
 * also what a buyer actually sees in a demonstration. */
.sx-figure__frame, .sx-hero__media, .sx-split__media {
  position: relative; padding: 2rem var(--space-2) var(--space-2);
  background: var(--c-surface-alt); border: 1px solid var(--c-line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-3);
}
.sx-figure__frame::before, .sx-hero__media::before, .sx-split__media::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2rem;
  border-start-start-radius: var(--radius-l); border-start-end-radius: var(--radius-l);
  border-block-end: 1px solid var(--c-line);
  background:
    radial-gradient(circle at 1rem 50%, var(--c-line) 0 4px, transparent 4px),
    radial-gradient(circle at 1.9rem 50%, var(--c-line) 0 4px, transparent 4px),
    radial-gradient(circle at 2.8rem 50%, var(--c-line) 0 4px, transparent 4px),
    var(--c-surface);
}
[dir="rtl"] :is(.sx-figure__frame, .sx-hero__media, .sx-split__media)::before {
  background:
    radial-gradient(circle at calc(100% - 1rem) 50%, var(--c-line) 0 4px, transparent 4px),
    radial-gradient(circle at calc(100% - 1.9rem) 50%, var(--c-line) 0 4px, transparent 4px),
    radial-gradient(circle at calc(100% - 2.8rem) 50%, var(--c-line) 0 4px, transparent 4px),
    var(--c-surface);
}
:is(.sx-figure__frame, .sx-hero__media, .sx-split__media) > :is(img, .sx-img, .sx-ph) {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  object-position: top left; border-radius: var(--radius-m);
  border: 1px solid color-mix(in srgb, var(--c-line) 60%, transparent);
}
.sx-figure__caption { margin: var(--space-3) 0 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.sx-on-dark .sx-figure__caption { color: var(--c-on-dark-soft); }
/* A placeholder keeps the frame's shape so the page looks finished without it. */
:is(.sx-figure__frame, .sx-hero__media, .sx-split__media) > .sx-ph {
  background: var(--c-surface); border: 2px dashed color-mix(in srgb, var(--c-brand) 32%, var(--c-line));
  color: var(--c-ink-soft);
}

/* ---------- Comparison: today against with AleraHub ---------- */
/* The block that does the most selling on the site. Left is the reader's
 * current Tuesday, right is the same Tuesday with the product in it. */
.sx-compare { display: grid; border: 1px solid var(--c-line); border-radius: var(--radius-l); overflow: hidden; background: var(--c-bg); }
.sx-compare__head { margin: 0; padding: var(--space-4) var(--space-5); background: var(--c-surface-alt); font-size: var(--fs-small); font-weight: var(--fw-strong); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-ink-soft); }
[lang="ar"] .sx-compare__head { letter-spacing: normal; text-transform: none; }
.sx-compare__cell { margin: 0; display: flex; gap: var(--space-3); padding: var(--space-5); border-block-start: 1px solid var(--c-line); font-size: var(--fs-body); line-height: var(--lh-body); }
.sx-compare__cell--before { color: var(--c-ink-soft); }
.sx-compare__cell--after { color: var(--c-ink); }
/* The compare block is a white card whatever band it sits in, so the band's own
 * text colour must not follow its paragraphs inside. Same specificity as the
 * ground rule, and later, so it wins. */
.sx-on-accent .sx-compare__cell--before, .sx-on-dark .sx-compare__cell--before { color: var(--c-ink-soft); }
.sx-on-accent .sx-compare__cell--after, .sx-on-dark .sx-compare__cell--after { color: var(--c-ink); }
.sx-on-accent .sx-compare__head, .sx-on-dark .sx-compare__head { color: var(--c-ink-soft); }
.sx-compare__mark { flex: none; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; margin-top: 0.15rem; border-radius: var(--radius-pill); }
.sx-compare__cell--before .sx-compare__mark { background: var(--c-danger-tint); color: var(--c-danger); }
.sx-compare__cell--after .sx-compare__mark { background: var(--c-success-tint); color: var(--c-success); }
.sx-compare__mark .sx-icon { width: 0.9rem; height: 0.9rem; }
@media (min-width: 900px) {
  .sx-compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sx-compare__head + .sx-compare__head,
  .sx-compare__cell--after { border-inline-start: 1px solid var(--c-line); }
}

/* ---------- The proof rail beside a banner heading ---------- */
.sx-pagehead__inner.has-rail, .sx-hero__grid.has-rail { display: grid; gap: var(--space-7); }
.sx-facts { margin: var(--space-6) 0 0; display: grid; gap: var(--space-5); }
.sx-facts__row { display: grid; gap: 0.15rem; }
.sx-facts dt { font-size: var(--fs-eyebrow); font-weight: var(--fw-strong); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-mint); }
[lang="ar"] .sx-facts dt { letter-spacing: normal; text-transform: none; }
.sx-facts dd { margin: 0; color: var(--c-on-dark); font-size: var(--fs-small); line-height: var(--lh-body); }
@media (min-width: 560px) { .sx-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); } }
@media (min-width: 1100px) {
  .sx-pagehead__inner.has-rail { grid-template-columns: minmax(0, 1fr) minmax(14rem, 17rem); align-items: start; }
  .sx-pagehead__inner.has-rail .sx-facts {
    grid-template-columns: minmax(0, 1fr); margin: 0;
    padding-inline-start: var(--space-5); border-inline-start: 1px solid rgb(233 244 239 / 0.22);
  }
}

/* ---------- Index lists and glossary ----------
 * Used on 58 pages for "who this is for" and "what it connects to". A row, not
 * a card: these are navigation, and a grid of cards would compete with the
 * cards above them. The link is the loud part, the gloss is quiet beside it. */
.sx-index + .sx-index { margin-top: var(--space-6); }
.sx-index__group {
  margin: 0 0 var(--space-4); font-size: var(--fs-eyebrow); font-weight: var(--fw-strong);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-ink-soft);
}
[lang="ar"] .sx-index__group { letter-spacing: normal; text-transform: none; font-size: var(--fs-small); }
ul.sx-index__list, ol.sx-index__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid var(--c-line);
}
@media (min-width: 900px) {
  ul.sx-index__list, ol.sx-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-7); }
}
.sx-index__item {
  position: relative; margin: 0;
  display: grid; gap: 0.2rem var(--space-4); align-items: baseline;
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--c-line);
  transition: background-color var(--duration-fast) var(--ease-out);
}
@media (min-width: 560px) {
  .sx-index__item { grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr); }
}
.sx-index__item::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  width: 2px; background: var(--c-brand); transform: scaleY(0);
  transition: transform var(--duration-fast) var(--ease-out);
}
.sx-index__link { font-weight: var(--fw-strong); color: var(--c-ink); text-decoration: none; }
.sx-index__link:hover { color: var(--c-brand); text-decoration: underline; text-underline-offset: 0.2em; }
.sx-index__text { color: var(--c-ink-soft); font-size: var(--fs-small); line-height: var(--lh-body); }
.sx-index__who {
  grid-column: -2 / -1; font-size: var(--fs-eyebrow); font-weight: var(--fw-strong);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-brand);
}
[lang="ar"] .sx-index__who { letter-spacing: normal; text-transform: none; }
.sx-index__item:hover, .sx-index__item:has(a:focus-visible) { background: var(--c-surface); }
.sx-index__item:hover::before, .sx-index__item:has(a:focus-visible)::before { transform: scaleY(1); }
.sx-on-surface .sx-index__item:hover, .sx-on-surface .sx-index__item:has(a:focus-visible) { background: var(--c-bg); }
.sx-on-dark .sx-index__list { border-top-color: rgb(233 244 239 / 0.18); }
.sx-on-dark .sx-index__item { border-bottom-color: rgb(233 244 239 / 0.18); }
.sx-on-dark .sx-index__link { color: var(--c-on-dark); }
.sx-on-dark .sx-index__link:hover { color: var(--c-mint); }
.sx-on-dark .sx-index__text { color: var(--c-on-dark-soft); }
.sx-on-dark .sx-index__who { color: var(--c-mint); }
.sx-on-dark .sx-index__item:hover, .sx-on-dark .sx-index__item:has(a:focus-visible) { background: rgb(255 255 255 / 0.05); }
.sx-on-dark .sx-index__item::before { background: var(--c-mint); }

/* ---------- Questions ---------- */
.sx-faq__item { transition: border-color var(--duration-fast) var(--ease-out); }
.sx-faq__item:hover { border-color: var(--c-brand); }
.sx-faq__item[open] { border-color: var(--c-brand); }
.sx-on-surface .sx-faq__item { background: var(--c-bg); }
.sx-on-dark .sx-faq__item { background: rgb(255 255 255 / 0.04); border-color: rgb(233 244 239 / 0.18); }

/* ---------- Forms ---------- */
.sx-input { border-radius: var(--radius-s); transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
.sx-input:focus { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-tint); }
.sx-field { transition: none; }
.sx-alert { border-radius: var(--radius-s); }

/* ---------- Footer: two tiers rather than one long row ---------- */
.sx-footer__title { padding-block-end: var(--space-2); border-block-end: 1px solid rgb(255 255 255 / 0.18); }
.sx-footer__about { max-width: 30rem; font-size: var(--fs-small); }
/* The brand block used to span two grid rows while its text is four lines
 * long, which left a column-high hole under it and pushed the footer to twice
 * the height it needs. It sits across the top instead, and the six link blocks
 * fall into two tidy rows beneath. */
@media (min-width: 760px) {
  .sx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .sx-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    align-items: start;
    gap: var(--space-7) var(--space-6);
  }
  .sx-footer__brand { grid-column: 1 / -1; grid-row: auto; max-width: 44rem; }
}
@media (min-width: 1280px) {
  .sx-footer__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sx-footer__brand { grid-column: 1 / -1; }
}
.sx-footer__bar-inner { flex-direction: column; align-items: flex-start; gap: var(--space-3); padding-block: var(--space-5); }
.sx-footer__copy { max-width: 60ch; }
@media (min-width: 1000px) {
  .sx-footer__bar-inner { flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-7); }
  .sx-footer__copy { margin-inline-end: auto; }
}

/* ======================================================================
 * Motion
 *
 * Four fixed rules, and they are why this layer is short:
 *  1. Only transform, opacity, colour and shadow move. Never padding,
 *     width, height or margin — animating layout re-wraps text and makes
 *     neighbouring cards jump, which is how a polished page starts to
 *     feel cheap.
 *  2. Every hidden starting state is scoped to .sx-motion, which a script
 *     puts on <html> only when reduced motion is not requested. A page
 *     with no JavaScript, or with "Stop animations" on in the widget,
 *     shows everything at once.
 *  3. An element still waiting to reveal shows immediately if it receives
 *     keyboard focus (.is-in is added on focusin).
 *  4. Nothing moves for longer than five seconds and nothing autoplays.
 * ====================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* ---- the hero entrance: one orchestration, 820ms end to end ---- */
  html.sx-motion .sx-section--hero :is(.sx-eyebrow, .sx-hero__title, .sx-lead, .sx-actions, .sx-points, .sx-hero__media),
  html.sx-motion .sx-section--page-header :is(.sx-breadcrumbs, .sx-eyebrow, .sx-heading__title, .sx-lead, .sx-actions, .sx-facts) {
    opacity: 0; transform: translateY(var(--reveal-y));
  }
  html.sx-motion .sx-section--hero.is-in :is(.sx-eyebrow, .sx-hero__title, .sx-lead, .sx-actions, .sx-points, .sx-hero__media),
  html.sx-motion .sx-section--page-header.is-in :is(.sx-breadcrumbs, .sx-eyebrow, .sx-heading__title, .sx-lead, .sx-actions, .sx-facts) {
    opacity: 1; transform: none;
    transition: opacity var(--duration-slow) var(--ease-emphasis), transform var(--duration-slow) var(--ease-emphasis);
  }
  html.sx-motion .sx-section--hero.is-in .sx-eyebrow,
  html.sx-motion .sx-section--page-header.is-in .sx-breadcrumbs { transition-delay: 0ms; }
  html.sx-motion .sx-section--hero.is-in .sx-hero__title,
  html.sx-motion .sx-section--page-header.is-in .sx-eyebrow { transition-delay: var(--stagger); }
  html.sx-motion .sx-section--hero.is-in .sx-lead,
  html.sx-motion .sx-section--page-header.is-in .sx-heading__title { transition-delay: calc(var(--stagger) * 2); }
  html.sx-motion .sx-section--hero.is-in .sx-actions,
  html.sx-motion .sx-section--page-header.is-in .sx-lead { transition-delay: calc(var(--stagger) * 3); }
  html.sx-motion .sx-section--hero.is-in .sx-points,
  html.sx-motion .sx-section--page-header.is-in .sx-actions { transition-delay: calc(var(--stagger) * 4); }
  html.sx-motion .sx-section--hero.is-in .sx-hero__media,
  html.sx-motion .sx-section--page-header.is-in .sx-facts { transition-delay: calc(var(--stagger) * 2); }

  /* ---- group reveals: card grids, steps, figures, stats, questions ---- */
  html.sx-motion :is(.sx-grid, .sx-steps, .sx-stats, .sx-faq, .sx-compare, .sx-points--stack, .sx-logos) > * {
    opacity: 0; transform: translateY(var(--reveal-y));
  }
  html.sx-motion :is(.sx-grid, .sx-steps, .sx-stats, .sx-faq, .sx-compare, .sx-points--stack, .sx-logos).is-in > * {
    opacity: 1; transform: none;
    transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  }
  html.sx-motion :is(.sx-grid, .sx-steps, .sx-stats, .sx-faq, .sx-compare, .sx-points--stack, .sx-logos).is-in > :nth-child(1) { transition-delay: 0ms; }
  html.sx-motion :is(.sx-grid, .sx-steps, .sx-stats, .sx-faq, .sx-compare, .sx-points--stack, .sx-logos).is-in > :nth-child(2) { transition-delay: var(--stagger); }
  html.sx-motion :is(.sx-grid, .sx-steps, .sx-stats, .sx-faq, .sx-compare, .sx-points--stack, .sx-logos).is-in > :nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
  html.sx-motion :is(.sx-grid, .sx-steps, .sx-stats, .sx-faq, .sx-compare, .sx-points--stack, .sx-logos).is-in > :nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
  html.sx-motion :is(.sx-grid, .sx-steps, .sx-stats, .sx-faq, .sx-compare, .sx-points--stack, .sx-logos).is-in > :nth-child(n + 5) { transition-delay: calc(var(--stagger) * 4); }

  /* ---- a single block arriving: the split, the comparison, a figure ---- */
  html.sx-motion :is(.sx-split__media, .sx-figure__frame, .sx-quote) { opacity: 0; transform: translateY(var(--reveal-y)); }
  html.sx-motion .is-in :is(.sx-split__media, .sx-figure__frame, .sx-quote),
  html.sx-motion :is(.sx-split__media, .sx-figure__frame, .sx-quote).is-in {
    opacity: 1; transform: none;
    transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  }

  /* ---- the off-canvas menu: items arrive in a short stagger ---- */
  html.sx-motion .sx-drawer .sx-nav__item { opacity: 0; transform: translateX(0.75rem); }
  [dir="rtl"] html.sx-motion .sx-drawer .sx-nav__item { transform: translateX(-0.75rem); }
  html.sx-motion .sx-drawer.is-open .sx-nav__item {
    opacity: 1; transform: none;
    transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  }
  html.sx-motion .sx-drawer.is-open .sx-nav__item:nth-child(1) { transition-delay: 60ms; }
  html.sx-motion .sx-drawer.is-open .sx-nav__item:nth-child(2) { transition-delay: 100ms; }
  html.sx-motion .sx-drawer.is-open .sx-nav__item:nth-child(3) { transition-delay: 140ms; }
  html.sx-motion .sx-drawer.is-open .sx-nav__item:nth-child(4) { transition-delay: 180ms; }
  html.sx-motion .sx-drawer.is-open .sx-nav__item:nth-child(n + 5) { transition-delay: 220ms; }
}

/* Rule 3: focus wins over the waiting state, in every case above. */
html.sx-motion :is(.sx-grid, .sx-steps, .sx-stats, .sx-faq, .sx-compare, .sx-points--stack, .sx-logos) > :focus-within,
html.sx-motion :is(.sx-split__media, .sx-figure__frame, .sx-quote):focus-within { opacity: 1; transform: none; }

/* Rule 2 restated for the widget: "Stop animations" removes .sx-motion. */
html:not(.sx-motion) :is(.sx-grid, .sx-steps, .sx-stats, .sx-faq, .sx-compare, .sx-points--stack, .sx-logos) > *,
html:not(.sx-motion) :is(.sx-split__media, .sx-figure__frame, .sx-quote),
html:not(.sx-motion) .sx-section--hero :is(.sx-eyebrow, .sx-hero__title, .sx-lead, .sx-actions, .sx-points, .sx-hero__media),
html:not(.sx-motion) .sx-section--page-header :is(.sx-breadcrumbs, .sx-eyebrow, .sx-heading__title, .sx-lead, .sx-actions, .sx-facts) {
  opacity: 1; transform: none;
}

/* ---------- Tabbed showcase ---------- */
/* Without JavaScript every panel is on the page in sequence and the strip is
 * a set of in-page links, so nothing is hidden from a reader, a crawler or a
 * printer. site.js upgrades it to one panel at a time. */
.sx-showcase__tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0 0 var(--space-6); padding: 0; }
.sx-showcase__tab { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.6rem 1.15rem; border: 1.5px solid var(--c-line); border-radius: var(--radius-pill); background: var(--c-bg); color: var(--c-ink); font-weight: var(--fw-strong); font-size: var(--fs-small); text-decoration: none; transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.sx-showcase__tab:hover { border-color: var(--c-brand); background: var(--c-brand-tint); color: var(--c-brand-strong); }
.sx-showcase__tab.is-current { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.sx-showcase__panel { display: grid; gap: var(--space-6); padding: var(--space-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-l); }
.sx-showcase__panel + .sx-showcase__panel { margin-top: var(--space-5); }
.sx-showcase__title { margin: 0 0 var(--space-5); font-size: var(--fs-h3); }
.sx-showcase__more { margin: var(--space-6) 0 0; }
.sx-on-surface .sx-showcase__panel, .sx-on-surface .sx-showcase__tab,
.sx-on-accent .sx-showcase__panel, .sx-on-accent .sx-showcase__tab { background: var(--c-bg); }
.sx-on-accent .sx-showcase__panel { border-color: color-mix(in srgb, var(--c-accent) 32%, var(--c-line)); }
.sx-on-accent .sx-showcase__panel :is(p, li, dd) { color: var(--c-ink-soft); }
/* The selected tab wins over the ground override, which sits at the same
 * specificity and would otherwise leave white text on a white pill. */
.sx-showcase__tab.is-current,
.sx-on-surface .sx-showcase__tab.is-current,
.sx-on-accent .sx-showcase__tab.is-current { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
@media (min-width: 1000px) {
  .sx-showcase__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: var(--space-8); align-items: center; padding: var(--space-7); }
}
/* Once the script has run, one panel at a time. */
.sx-showcase.is-enhanced .sx-showcase__panel { display: none; }
.sx-showcase.is-enhanced .sx-showcase__panel.is-current { display: grid; }
.sx-showcase.is-enhanced .sx-showcase__panel + .sx-showcase__panel { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  html.sx-motion .sx-showcase.is-enhanced .sx-showcase__panel.is-current { animation: sx-panel-in var(--duration-base) var(--ease-out) both; }
  @keyframes sx-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- Narrow widths: nothing scrolls sideways at 320px ---------- */
/* Long unbroken strings — a sub-processor's domain, a policy URL, an email —
 * are what push a 320px page sideways. Break them rather than letting the
 * page scroll, and give a real table its own scroll box so only the table
 * moves. */
.sx-prose, .sx-legal, .sx-compare__cell, .sx-card, .sx-index__item, .sx-points li, .sx-contact-list li {
  overflow-wrap: break-word;
}
.sx-prose :is(a, code, td, th), .sx-legal :is(a, code, td, th) { overflow-wrap: anywhere; }
/* The wrapper is what scrolls, never the page. The table keeps a minimum
 * width so its columns stay readable, and the wrapper is already focusable
 * with a region role in the template, so a keyboard can reach the scroll. */
.sx-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.sx-table-wrap:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.sx-table { width: 100%; min-width: 34rem; }
.sx-prose table, .sx-legal table { display: block; max-width: 100%; overflow-x: auto; }

/* ============================================================================
 * The drawn layer
 *
 * Ten section types shipped with markup and no layout, because the v2.0
 * rewrite replaced the stylesheet and these never got carried across. They
 * rendered as raw text — a label and its value running together on one line,
 * a table wider than the prose above it, a reading measure that did not exist.
 * That is what "alignment issues" looked like from outside.
 *
 * These are drawn rather than photographed on purpose: a screenshot of the
 * parent portal or of access arrangements would be a picture of a child's
 * record. Drawn, they reflow at 400% zoom, translate with the page, and read
 * as the list they are.
 * ========================================================================= */

/* ---------- answer: the direct answer under a module heading (61 pages) ---- */
.sx-answer {
  max-width: 54ch;            /* the measure the template's own comment relies on */
  margin: 0;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--c-ink);
  padding-inline-start: var(--space-4);
  border-inline-start: 3px solid var(--c-brand);
}
.sx-on-dark .sx-answer { color: var(--c-on-dark); border-inline-start-color: var(--c-mint); }
.sx-on-accent .sx-answer { border-inline-start-color: var(--c-brand-strong); }

/* ---------- illustration: the drawn panel ---------------------------------- */
.sx-panel {
  margin: var(--space-6) 0 0;
  padding: var(--space-6);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
}
.sx-on-surface .sx-panel { background: var(--c-bg); }
.sx-on-accent .sx-panel { background: var(--c-bg); border-color: color-mix(in srgb, var(--c-accent) 30%, var(--c-line)); }
.sx-on-dark .sx-panel { background: rgb(255 255 255 / 0.04); border-color: rgb(233 244 239 / 0.18); }
.sx-panel__lead {
  margin: 0 0 var(--space-5); max-width: 60ch;
  font-weight: var(--fw-strong); color: var(--c-ink);
}
.sx-on-dark .sx-panel__lead { color: var(--c-on-dark); }
ul.sx-panel__list, ol.sx-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.sx-panel--tiles .sx-panel__list { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.sx-panel--rows .sx-panel__list,
.sx-panel--refusal .sx-panel__list { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
.sx-panel__item {
  margin: 0; display: grid; gap: 0.15rem;
  align-content: start;
  padding: var(--space-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
}
.sx-panel--rows .sx-panel__item,
.sx-panel--refusal .sx-panel__item {
  grid-template-columns: auto minmax(7rem, 14rem) minmax(0, 1fr);
  align-items: baseline; gap: 0 var(--space-4);
}
@media (max-width: 620px) {
  .sx-panel--rows .sx-panel__item, .sx-panel--refusal .sx-panel__item { grid-template-columns: auto minmax(0, 1fr); }
  .sx-panel--rows .sx-panel__meta, .sx-panel--refusal .sx-panel__meta { grid-column: 2 / -1; }
}
.sx-on-dark .sx-panel__item { background: rgb(255 255 255 / 0.05); border-color: rgb(233 244 239 / 0.16); }
.sx-panel__label { font-weight: var(--fw-strong); color: var(--c-ink); }
.sx-panel__meta { color: var(--c-ink-soft); font-size: var(--fs-small); line-height: var(--lh-body); }
.sx-on-dark .sx-panel__label { color: var(--c-on-dark); }
.sx-on-dark .sx-panel__meta { color: var(--c-on-dark-soft); }
/* The state is carried by the word in .sx-sr as well as by this mark, so it
 * survives a screen reader and a monochrome print. */
.sx-panel__state {
  inline-size: 1.15rem; block-size: 1.15rem; border-radius: 50%;
  display: inline-grid; place-items: center; align-self: center;
  border: 2px solid var(--c-line); background: var(--c-bg);
}
.sx-panel__state::before { content: ""; inline-size: 0.4rem; block-size: 0.4rem; border-radius: 50%; background: var(--c-line); }
.is-ok .sx-panel__state { border-color: var(--c-success); background: var(--c-bg); }
.is-ok .sx-panel__state::before { background: var(--c-success); }
.is-blocked .sx-panel__state { border-color: var(--c-danger); }
.is-blocked .sx-panel__state::before { background: var(--c-danger); }
.is-blocked .sx-panel__label { color: var(--c-danger); }
/* "Not shown" is carried by the dashed edge, the hollow mark and the word in
 * .sx-sr — never by fading the text. Opacity here took the meta line from
 * 6.5:1 to about 3:1, which is a contrast failure dressed up as a design
 * choice, and it fails for exactly the readers who most need the state. */
.is-muted.sx-panel__item { border-style: dashed; background: transparent; }
.is-muted .sx-panel__label { color: var(--c-ink-soft); font-weight: var(--fw-body); }
.is-muted .sx-panel__state { border-style: dashed; }
.is-muted .sx-panel__state::before { background: transparent; }
.sx-panel__note {
  margin: var(--space-5) 0 0; max-width: 62ch;
  font-size: var(--fs-small); color: var(--c-ink-soft);
}
.sx-on-dark .sx-panel__note { color: var(--c-on-dark-soft); }

/* ---------- diagram -------------------------------------------------------- */
.sx-diagram { margin: var(--space-6) 0 0; }
.sx-dg__pair { display: grid; gap: var(--space-5); align-items: start; }
@media (min-width: 860px) { .sx-dg__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); } }
.sx-dg__side { padding: var(--space-5); border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-bg); }
.sx-dg__side--ours { border-color: color-mix(in srgb, var(--c-brand) 36%, var(--c-line)); }
.sx-dg__side-title {
  margin: 0 0 var(--space-4); font-size: var(--fs-eyebrow); font-weight: var(--fw-strong);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-ink-soft);
}
[lang="ar"] .sx-dg__side-title { letter-spacing: normal; text-transform: none; font-size: var(--fs-small); }
.sx-dg__side--ours .sx-dg__side-title { color: var(--c-brand-strong); }
ul.sx-dg__stack { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.sx-dg__box {
  margin: 0; display: grid; gap: 0.1rem; padding: var(--space-4);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-m);
}
.sx-dg__side--ours .sx-dg__box { background: var(--c-brand-tint); border-color: color-mix(in srgb, var(--c-brand) 24%, var(--c-line)); }
.sx-dg__name { font-weight: var(--fw-strong); color: var(--c-ink); }
.sx-dg__sub { font-size: var(--fs-small); color: var(--c-ink-soft); }
.sx-dg__box--shared { display: block; }
.sx-dg__table { width: 100%; margin-top: var(--space-3); border-collapse: collapse; font-size: var(--fs-small); }
.sx-dg__table th, .sx-dg__table td { padding: 0.4rem 0.6rem; text-align: start; border-bottom: 1px solid var(--c-line); }
.sx-dg__table th { font-weight: var(--fw-strong); color: var(--c-ink-soft); }
.sx-dg__table tbody tr:last-child td { border-bottom: 0; }
.sx-dg__note { margin: var(--space-4) 0 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.sx-dg__lead { margin: 0 0 var(--space-4); max-width: 60ch; font-weight: var(--fw-strong); }
ul.sx-dg__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.sx-dg__region {
  margin: 0; padding: var(--space-3) var(--space-4);
  background: var(--c-brand-tint); border: 1px solid color-mix(in srgb, var(--c-brand) 24%, var(--c-line));
  border-radius: var(--radius-pill);
}
.sx-dg__region--more { background: var(--c-surface); border-style: dashed; }
.sx-dg__arms { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-4) 0 0; }
.sx-dg__arm {
  flex: 1 1 12rem; padding: var(--space-4);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-m);
}
.sx-dg__centre {
  padding: var(--space-5); text-align: center;
  background: var(--c-brand); color: var(--c-on-brand); border-radius: var(--radius-l);
}
.sx-dg__centre .sx-dg__name { color: var(--c-on-brand); }

/* ---------- stats ---------------------------------------------------------- */
.sx-stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}
.sx-stat { margin: 0; display: grid; gap: 0.25rem; align-content: start; }
.sx-stat__value {
  font-family: var(--font-display); font-size: var(--stat-size);
  font-weight: var(--fw-strong); line-height: 1; color: var(--c-brand);
  font-variant-numeric: tabular-nums;
}
.sx-on-dark .sx-stat__value { color: var(--c-mint); }
.sx-stat__label { color: var(--c-ink-soft); font-size: var(--fs-small); line-height: var(--lh-body); max-width: 22ch; }
.sx-on-dark .sx-stat__label { color: var(--c-on-dark-soft); }

/* ---------- glossary ------------------------------------------------------- */
.sx-glossary { margin: var(--space-6) 0 0; }
.sx-glossary__jump { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.sx-glossary__jump a {
  display: inline-block; min-inline-size: 2.25rem; padding: 0.3rem 0.55rem; text-align: center;
  border: 1px solid var(--c-line); border-radius: var(--radius-m);
  text-decoration: none; font-weight: var(--fw-strong); color: var(--c-ink);
}
.sx-glossary__jump a:hover { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-on-brand); }
.sx-glossary__entry { padding: var(--space-5) 0; border-bottom: 1px solid var(--c-line); }
.sx-glossary__term { margin: 0 0 var(--space-2); font-size: var(--fs-h4); font-weight: var(--fw-strong); color: var(--c-ink); }
.sx-glossary__def { margin: 0; max-width: 68ch; color: var(--c-ink-soft); }
.sx-glossary__def + .sx-glossary__def { margin-top: var(--space-3); }
.sx-glossary__more { margin: var(--space-3) 0 0; font-size: var(--fs-small); }

/* ---------- gallery, logos, video, booking --------------------------------- */
/* The template renders `.sx-grid .sx-grid--3 .sx-gallery` with bare <figure>
 * children — no per-item class — so selectors written against an assumed
 * `__item` matched nothing. Written against the markup that exists. */
.sx-gallery { margin-top: var(--space-6); }
.sx-gallery > figure { margin: 0; display: grid; gap: var(--space-3); align-content: start; }
.sx-gallery > figure img { width: 100%; height: auto; border-radius: var(--radius-m); }
.sx-gallery .sx-ph { aspect-ratio: 4 / 3; background: var(--c-surface); }
/* sx_image is given the caption as the placeholder's label, and the figcaption
 * prints it again underneath. One of them has to go, and the caption is the one
 * that survives once a real photograph replaces the placeholder. */
.sx-gallery .sx-ph__text small { display: none; }
.sx-ph__text { background: none; }
.sx-gallery figcaption { font-size: var(--fs-small); color: var(--c-ink-soft); line-height: var(--lh-body); }
.sx-on-dark .sx-gallery figcaption { color: var(--c-on-dark-soft); }
.sx-gallery > figure:hover .sx-ph { border-color: color-mix(in srgb, var(--c-brand) 55%, var(--c-line)); }
.sx-logos { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); }
.sx-logos__item { margin: 0; }
.sx-logos__item img { max-block-size: 2.5rem; width: auto; }
.sx-video { margin: var(--space-6) 0 0; }
.sx-video video, .sx-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-l); display: block; }
.sx-booking { margin: var(--space-6) 0 0; }

/* ============================================================================
 * The Product mega-menu
 *
 * Thirty-six modules in one dropdown is a list nobody reads. Grouped into the
 * six families, each item carrying the one line that says what it is, it
 * becomes something a visitor can scan — and the six headings do the work the
 * home page no longer has room for.
 * ========================================================================= */
/* The panel is far wider than the menu item it hangs off, so it is positioned
 * against the header's own container instead. Anchored to the item, a 68rem
 * panel runs off the side of the window. */
.sx-header__inner { position: relative; }
.sx-nav--desktop .sx-nav__item:has(.sx-nav__sub--mega) { position: static; }
.sx-nav--desktop .sx-nav__sub--mega {
  inset-inline-start: 0;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 0.5rem);
  width: auto;
  max-width: 100%;
  padding: var(--space-5) var(--space-5) var(--space-4);
}
.sx-nav__cols { display: grid; gap: var(--space-4) var(--space-5); }
.sx-nav--desktop .sx-nav__sub--mega .sx-nav__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1200px) {
  .sx-nav--desktop .sx-nav__sub--mega .sx-nav__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.sx-nav__grouphead {
  margin: 0 0 var(--space-2);
  font-size: var(--fs-eyebrow); font-weight: var(--fw-strong);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--c-brand-strong);
}
[lang="ar"] .sx-nav__grouphead { letter-spacing: normal; text-transform: none; font-size: var(--fs-small); }
ul.sx-nav__group { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.sx-nav__group li { margin: 0; }
.sx-nav--desktop .sx-nav__sublink {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--space-3);
  align-items: start; padding: 0.55rem 0.6rem;
  transition: background-color var(--duration-fast) var(--ease-out);
}
.sx-nav__subicon {
  display: inline-grid; place-items: center;
  inline-size: 1.75rem; block-size: 1.75rem; border-radius: var(--radius-s);
  background: var(--c-brand-tint); color: var(--c-brand-strong);
}
.sx-nav__subicon svg { inline-size: 1rem; block-size: 1rem; }
.sx-nav__subtext { display: grid; gap: 0.05rem; min-width: 0; }
.sx-nav__sublabel { font-weight: var(--fw-strong); color: inherit; }
.sx-nav__subdesc {
  font-size: var(--fs-small); line-height: 1.35; color: var(--c-ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sx-nav__sublink:hover .sx-nav__subicon { background: var(--c-brand); color: var(--c-on-brand); }
.sx-nav__all {
  margin: var(--space-4) 0 0; padding-top: var(--space-3);
  border-top: 1px solid var(--c-line); font-size: var(--fs-small);
}
.sx-nav__all a { font-weight: var(--fw-strong); color: var(--c-brand-strong); text-underline-offset: 0.25em; }
/* In the drawer the mega-menu is one column, and the icons would only crowd it. */
.sx-nav--drawer .sx-nav__cols { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.sx-nav--drawer .sx-nav__subicon { display: none; }
.sx-nav--drawer .sx-nav__sublink { display: block; padding: 0.55rem 0.5rem; }
.sx-nav--drawer .sx-nav__subdesc { -webkit-line-clamp: 1; }
.sx-nav--drawer .sx-nav__grouphead { margin-top: var(--space-3); }

/* ============================================================================
 * Steps as cards, and as a swipeable row on a phone
 *
 * Six stacked steps is a very long scroll on a 390px screen, and a visitor who
 * cannot see that a sixth exists will not scroll for it. On a phone the row
 * scrolls sideways with the next card deliberately part-visible at the edge,
 * which is the only honest way to say "there is more to the right".
 *
 * Scroll-snap and overflow only — no script. It therefore still works with
 * JavaScript off, and the accessibility widget's "Stop animations" setting
 * cannot strand a card half-shown.
 * ========================================================================= */
/* The number badge used to be absolutely positioned, with the card reserving
 * room for it in padding. Two independent numbers that had to agree — and they
 * did not: the badge ran to 68px from the card top while the text began at
 * 56px, so every number sat on top of its own title. In flow as the first row
 * of a grid, there is no number to keep in step. */
.sx-step {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: var(--space-5);
  box-shadow: var(--shadow-1);
}
.sx-step__num {
  position: static;
  inset: auto;
  justify-self: start;
}
.sx-step__title { margin: 0; }
.sx-step > p { margin: 0; }
.sx-step__title { font-size: var(--fs-h4); }
.sx-on-surface .sx-step { background: var(--c-bg); }
.sx-on-accent .sx-step { background: var(--c-bg); border-color: color-mix(in srgb, var(--c-accent) 30%, var(--c-line)); }
.sx-on-accent .sx-step p { color: var(--c-ink-soft); }
.sx-on-dark .sx-step { background: rgb(255 255 255 / 0.05); border-color: rgb(233 244 239 / 0.18); }
.sx-on-dark .sx-step__title { color: var(--c-on-dark); }
.sx-on-dark .sx-step p { color: var(--c-on-dark-soft); }

@media (max-width: 899px) {
  .sx-steps {
    grid-auto-flow: column;
    grid-auto-columns: 78%;              /* the next card shows at the edge */
    gap: var(--space-4);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding-block-end: var(--space-4);
    scrollbar-width: thin;
  }
  .sx-steps > * { scroll-snap-align: start; }
  .sx-step { padding-block-start: 3.5rem; }
}
@media (max-width: 480px) {
  .sx-steps { grid-auto-columns: 84%; }
}

/* ============================================================================
 * Motion and hover for the sections added after the motion layer was written
 *
 * The reveal layer named .sx-grid, .sx-steps, .sx-faq and .sx-compare. Every
 * section type added since — the drawn panel, the index rows, the diagram, the
 * module switcher — therefore arrived with no entrance at all, which is why
 * whole screens looked static while others animated. Same rules, same stagger,
 * same reduced-motion behaviour: these are additions to the existing layer,
 * not a second one.
 * ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  html.sx-motion :is(.sx-panel__list, .sx-index__list, .sx-dg__pair, .sx-dg__row, .sx-nav__cols) > * {
    opacity: 0;
    transform: translateY(var(--reveal-y));
    transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
  }
  html.sx-motion :is(.sx-panel__list, .sx-index__list, .sx-dg__pair, .sx-dg__row, .sx-nav__cols).is-in > * {
    opacity: 1;
    transform: none;
  }
  html.sx-motion :is(.sx-panel__list, .sx-index__list, .sx-dg__pair, .sx-dg__row).is-in > :nth-child(1) { transition-delay: 0ms; }
  html.sx-motion :is(.sx-panel__list, .sx-index__list, .sx-dg__pair, .sx-dg__row).is-in > :nth-child(2) { transition-delay: var(--stagger); }
  html.sx-motion :is(.sx-panel__list, .sx-index__list, .sx-dg__pair, .sx-dg__row).is-in > :nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
  html.sx-motion :is(.sx-panel__list, .sx-index__list, .sx-dg__pair, .sx-dg__row).is-in > :nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
  html.sx-motion :is(.sx-panel__list, .sx-index__list, .sx-dg__pair, .sx-dg__row).is-in > :nth-child(5) { transition-delay: calc(var(--stagger) * 4); }
  html.sx-motion :is(.sx-panel__list, .sx-index__list, .sx-dg__pair, .sx-dg__row).is-in > :nth-child(n+6) { transition-delay: calc(var(--stagger) * 5); }

  /* The answer block draws its rule in rather than appearing with it. */
  html.sx-motion .sx-answer { border-inline-start-color: transparent; transition: border-color var(--duration-slow) var(--ease-out) var(--duration-fast); }
  html.sx-motion .sx-answer.is-in { border-inline-start-color: var(--c-brand); }
  html.sx-motion .sx-on-dark .sx-answer.is-in { border-inline-start-color: var(--c-mint); }
}

/* ---------- hover, on everything that is a surface people point at --------- */
.sx-step, .sx-panel__item, .sx-dg__box, .sx-showcase__panel {
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.sx-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--c-brand) 30%, var(--c-line)); }
.sx-panel__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: color-mix(in srgb, var(--c-brand) 34%, var(--c-line)); }
.sx-panel__item:hover .sx-panel__state { border-color: var(--c-brand); }
.sx-dg__box:hover { border-color: color-mix(in srgb, var(--c-brand) 34%, var(--c-line)); }

/* The step number fills on hover, so the card reads as one object. */
.sx-step__num { transition: transform var(--duration-fast) var(--ease-emphasis), background-color var(--duration-fast) var(--ease-out); }
.sx-step:hover .sx-step__num { transform: scale(1.08); background: var(--c-brand-strong); }

/* A link that leads somewhere nudges its arrow. */
.sx-card__more, .sx-index__link, .sx-nav__all a { transition: color var(--duration-fast) var(--ease-out); }
.sx-card__more svg, .sx-more svg { transition: transform var(--duration-fast) var(--ease-out); }
:is(.sx-card__more, .sx-more):hover svg { transform: translateX(0.2rem); }
[dir="rtl"] :is(.sx-card__more, .sx-more):hover svg { transform: translateX(-0.2rem); }

/* ============================================================================
 * Image placeholders, wherever they appear
 *
 * The placeholder was only styled inside a figure frame, a hero or a split, so
 * anywhere else it rendered as unstyled text. It needs to read as a reserved
 * photo slot in its own right: the page has to look finished with placeholders
 * in it, or nobody can judge the design until the photographs arrive.
 * ========================================================================= */
.sx-ph {
  display: grid;
  place-items: center;
  width: 100%;
  padding: var(--space-5);
  text-align: center;
  border-radius: var(--radius-m);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--c-brand) 7%, transparent) 0%, transparent 55%),
    var(--c-surface);
  border: 2px dashed color-mix(in srgb, var(--c-brand) 32%, var(--c-line));
  color: var(--c-ink-soft);
}
.sx-ph__text {
  display: grid;
  gap: 0.35rem;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-strong);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: color-mix(in srgb, var(--c-brand) 72%, var(--c-ink));
  max-width: 28ch;
}
[lang="ar"] .sx-ph__text { letter-spacing: normal; text-transform: none; }
.sx-ph__text small {
  font-size: var(--fs-small);
  font-weight: var(--fw-body);
  letter-spacing: normal;
  text-transform: none;
  color: var(--c-ink-soft);
  line-height: var(--lh-body);
}
.sx-on-dark .sx-ph { background: rgb(255 255 255 / 0.04); border-color: rgb(233 244 239 / 0.3); }
.sx-on-dark .sx-ph__text { color: var(--c-mint); }
.sx-on-dark .sx-ph__text small { color: var(--c-on-dark-soft); }

/* ---------- gallery: the department photographs --------------------------- */
.sx-gallery__item { display: grid; gap: var(--space-3); }
.sx-gallery__item .sx-ph { aspect-ratio: 4 / 3; background: var(--c-surface); }
/* The caption below already names the photograph, so the placeholder does not
 * repeat it — otherwise every slot says the same sentence twice. */
.sx-gallery__item .sx-ph__text small { display: none; }
.sx-ph__text { background: none; }
.sx-gallery__item figcaption,
.sx-gallery__caption {
  font-size: var(--fs-small);
  color: var(--c-ink-soft);
  line-height: var(--lh-body);
}
.sx-on-dark .sx-gallery__item figcaption,
.sx-on-dark .sx-gallery__caption { color: var(--c-on-dark-soft); }
