/*
 * 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; }
.sx-nav__list { display: flex; gap: var(--space-2); }
.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: block; }
  .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; }
.sx-section--cards, .sx-section--faq, .sx-section--stats, .sx-section--pricing, .sx-section--logos { background: var(--c-surface); }
.sx-heading { margin-bottom: var(--space-7); max-width: 44rem; }
.sx-heading--center { margin-inline: auto; text-align: center; }
.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(2.5rem, 1.5rem + 4vw, 5.5rem); background: var(--c-surface); }
.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 */
.sx-section--page-header { position: relative; padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); background: var(--c-surface); }
.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.has-image { background: var(--c-dark); color: var(--c-on-dark); }
.sx-section--page-header.has-image h1, .sx-section--page-header.has-image .sx-lead, .sx-section--page-header.has-image .sx-eyebrow, .sx-section--page-header.has-image .sx-breadcrumbs a, .sx-section--page-header.has-image .sx-breadcrumbs span { color: var(--c-on-dark); }
.sx-pagehead__bg { position: absolute; inset: 0; }
.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-section--page-header.has-image .sx-breadcrumbs li + li::before { color: var(--c-on-dark-soft); }
.sx-breadcrumbs a { color: var(--c-ink-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(--space-8); background: var(--c-bg); }
.sx-cta { display: grid; gap: var(--space-5); align-items: center; padding: clamp(1.75rem, 1rem + 3.4vw, 3.5rem); background: var(--c-dark); color: var(--c-on-dark); border-radius: var(--radius-l); }
.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); text-decoration: underline; }
.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); }

/* ==========================================================================
   Rationale Services — the approved design.
   Everything above this line is the kit's baseline. Everything below applies
   the art direction in design/ART-DIRECTION.md: ruled columns, one arc, a
   full-bleed banner on every page, and a calm motion layer.
   ========================================================================== */

/* ---------- The ruled columns ----------
   The grid is drawn, not implied: hairlines at the container edges and the two
   inner column positions, the way a ledger page is ruled before anything is
   written on it. Decorative, so they never carry meaning. */
.sx-rules { position: absolute; inset: 0; display: none; pointer-events: none; }
.sx-rules i { border-inline-start: 1px solid var(--c-line); }
@media (min-width: 900px) {
  .sx-rules { display: grid; grid-template-columns: repeat(4, 1fr); width: min(var(--container), 100%); margin-inline: auto; inset-inline: 0; }
}
.sx-ruled { position: relative; }
.sx-banner .sx-rules i { border-inline-start-color: rgb(255 255 255 / 0.22); }

/* ---------- The banner: hero and every page header ---------- */
.sx-section--hero, .sx-section--page-header { position: relative; overflow: hidden; background: var(--c-dark); color: var(--c-on-dark); }
.sx-section--hero { padding-block: clamp(3.25rem, 2rem + 5vw, 7rem); }
.sx-section--page-header { padding-block: clamp(2.75rem, 1.8rem + 3.6vw, 5rem); }
.sx-banner__bg { position: absolute; inset: 0; }
.sx-banner__bg .sx-img, .sx-banner__bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sx-banner__bg .sx-ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto !important;
  border-radius: 0; background: var(--c-dark); border: 0; display: block; }
/* With no photograph yet, the band still has to read as a banner: the label
   sits as a caption in the corner rather than floating in the middle of the
   headline, and names the shot that belongs there. */
.sx-banner__bg .sx-ph__text { position: absolute; inset-inline-end: var(--space-4); inset-block-end: var(--space-4);
  max-width: 30ch; padding: 0.5rem 0.75rem; background: rgb(1 51 95 / 0.72); border: 1px solid var(--c-focus-on-dark);
  border-radius: var(--radius-s); color: var(--c-on-dark); font-size: var(--fs-eyebrow); line-height: 1.45; text-align: start; }
.sx-banner__bg .sx-ph__text small { display: block; margin-top: 0.2rem; color: var(--c-on-dark-soft); max-width: none; }
@media (max-width: 899px) {
  .sx-banner__bg .sx-ph__text { position: static; display: block; margin: 0; max-width: none; }
  .sx-banner__bg .sx-ph { display: grid; align-content: end; padding: var(--space-4); }
}
.sx-banner__scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(1 51 95 / 0.80) 0%, rgb(1 51 95 / 0.94) 72%); }
@media (min-width: 900px) {
  .sx-banner__scrim { background: linear-gradient(to right, rgb(1 51 95 / 0.94) 0%, rgb(1 51 95 / 0.88) 46%, rgb(1 51 95 / 0.42) 100%); }
}
.sx-banner__inner { position: relative; }
.sx-banner__inner > :last-child { margin-bottom: 0; }
.sx-section--hero .sx-hero__title { max-width: 18ch; color: var(--c-on-dark); }
.sx-section--hero .sx-lead, .sx-section--page-header .sx-lead { color: var(--c-on-dark-soft); max-width: 36rem; }
.sx-section--hero .sx-eyebrow, .sx-section--page-header .sx-eyebrow { color: var(--c-focus-on-dark); }
.sx-section--page-header .sx-heading__title { max-width: 20ch; color: var(--c-on-dark); }
.sx-banner .sx-points { margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--c-focus-on-dark); }
.sx-banner .sx-points li { color: var(--c-on-dark); font-weight: var(--fw-body); }
.sx-banner .sx-points .sx-icon { color: var(--c-focus-on-dark); }
.sx-points--banner { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .sx-points--banner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); } }
/* The old split hero is gone; neutralise its grid so nothing half-applies. */
.sx-hero__grid { display: block; }

/* ---------- The one arc ----------
   Lifted from the orbit in the mark. Twice a page: the hero and the closing
   band. A third appearance would make it wallpaper. */
.sx-arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sx-arc path { fill: none; stroke-linecap: round; }
.sx-arc__a { stroke: var(--c-on-dark); stroke-width: var(--arc-stroke); opacity: 0.5; }
.sx-arc__b { stroke: var(--c-focus-on-dark); stroke-width: 2.5; }

/* ---------- Buttons ---------- */
.sx-btn { border-radius: var(--radius-m); }
.sx-btn--invert { background: var(--c-on-dark); color: var(--c-dark); border-color: transparent; }
.sx-btn--invert:hover { background: var(--c-focus-on-dark); color: var(--c-dark); }
.sx-btn--on-dark { background: transparent; color: var(--c-on-dark); border: 1.5px solid var(--c-on-dark-soft); }
.sx-btn--on-dark:hover { background: rgb(255 255 255 / 0.10); color: var(--c-on-dark); }
.sx-btn .sx-icon { transition: transform var(--duration-fast) var(--ease-out); }
.sx-btn:hover .sx-icon { transform: translateX(2px); }
[dir="rtl"] .sx-btn:hover .sx-icon { transform: translateX(-2px); }

/* ---------- Section rhythm ----------
   No two neighbouring sections share both a layout and a background. */
.sx-section--cards, .sx-section--faq, .sx-section--stats, .sx-section--logos { background: var(--c-surface); border-block: 1px solid var(--c-line); }
.sx-section--pricing { background: var(--c-surface); }

/* ---------- Images: the ruled frame ----------
   Hard-edged, no radius, a 2px brand rule on the leading edge. The frame is
   the ruled-column idea applied to a picture. */
.sx-split__media .sx-img, .sx-split__media .sx-ph,
.sx-gallery .sx-img, .sx-gallery .sx-ph {
  border-radius: 0; border-inline-start: 2px solid var(--c-brand);
}
.is-reversed .sx-split__media .sx-img, .is-reversed .sx-split__media .sx-ph {
  border-inline-start: 0; border-inline-end: 2px solid var(--c-brand);
}
.sx-ph { background: var(--c-surface-alt); border: 0; }
.sx-ph__text { color: var(--c-ink-soft); font-size: var(--fs-small); }
.sx-ph__text small { display: block; margin-top: 0.4rem; max-width: 34ch; }

/* ---------- Cards: on the rules, not floating above them ---------- */
.sx-card { border-radius: var(--radius-m); box-shadow: none; transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out); position: relative; }
.sx-card::before { content: ""; position: absolute; inset-inline: -1px; inset-block-start: -1px; height: 2px; background: var(--c-brand); opacity: 0; transition: opacity var(--duration-fast) var(--ease-out); }
.sx-card:hover { transform: translateY(-2px); border-color: var(--c-brand); }
.sx-card:hover::before { opacity: 1; }
.sx-card__icon { width: auto; height: auto; background: none; border-radius: 0; color: var(--c-accent); }
.sx-card__icon .sx-icon { width: 1.65rem; height: 1.65rem; }
.sx-card__title a:hover { color: var(--c-brand-strong); }

/* ---------- The industries hub: a ruled table, not a second card grid ----------
   The home page already carries a card grid; two grids in a row is the single
   most generic thing this site could do. */
@media (min-width: 760px) {
  #sectors .sx-grid { display: block; border-top: 1px solid var(--c-line); }
  #sectors .sx-card { display: grid; grid-template-columns: 16rem 1fr auto; align-items: center; gap: var(--space-5);
    border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; padding: 0; background: transparent; }
  #sectors .sx-card::before { content: none; }
  #sectors .sx-card:hover { transform: none; background: var(--c-surface-alt); }
  #sectors .sx-card__body { display: contents; }
  #sectors .sx-card__icon { display: none; }
  #sectors .sx-card__title { padding-block: var(--space-4); padding-inline-start: var(--space-4); font-family: var(--font-body); font-size: var(--fs-body); }
  #sectors .sx-card__title a { color: var(--c-brand); font-weight: var(--fw-strong); }
  #sectors .sx-card p { color: var(--c-ink); }
  #sectors .sx-card__more { margin: 0 !important; padding-inline-end: var(--space-4); }
}

/* ---------- Steps: a ruled band, not a row of circles ---------- */
.sx-step { padding-inline-start: 0; padding-block-start: var(--space-5); border-top: 1px solid var(--c-line); }
.sx-step:first-child { border-top: 2px solid var(--c-brand); }
.sx-step__num { position: static; width: auto; height: auto; background: none; border-radius: 0; color: var(--c-accent); font-size: var(--fs-small); letter-spacing: var(--ls-eyebrow); margin-bottom: var(--space-3); display: block; }
@media (min-width: 900px) { .sx-step { padding-block-start: var(--space-5); } }

/* ---------- Questions: a ruled list ---------- */
.sx-faq { gap: 0; border-top: 1px solid var(--c-line); }
.sx-faq__item { background: transparent; border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0; }
.sx-faq__item summary { padding-inline: 0; min-height: 2.75rem; }
.sx-faq__item summary:hover .sx-faq__q { color: var(--c-brand); }
.sx-faq__q { font-size: var(--fs-h4); }
.sx-faq__a { padding-inline: 0; padding-bottom: var(--space-5); color: var(--c-ink); max-width: var(--container-narrow); }

/* ---------- Running text keeps its measure ---------- */
.sx-section--richtext .sx-prose, .sx-section--legal .sx-prose { max-width: var(--container-narrow); }
.sx-prose h3 { margin-top: var(--space-6); }

/* ---------- Call to action: the mirrored arc ---------- */
.sx-cta { border-radius: var(--radius-m); position: relative; overflow: hidden; }
.sx-section--cta { background: var(--c-bg); }

/* ---------- Focus: two rings, so one indicator works on every ground ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--c-focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--c-bg);
}
.sx-banner :where(a, button, summary):focus-visible,
.sx-footer :where(a, button, summary):focus-visible,
.sx-cta :where(a, button):focus-visible {
  outline-color: var(--c-focus-on-dark); box-shadow: 0 0 0 2px var(--c-dark);
}
/* Nothing is ever hidden behind the sticky header when it takes focus (2.4.11). */
:target, [id] { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }

/* ---------- Form controls: a control boundary needs 3:1, the hairline does not reach it ---------- */
.sx-field input, .sx-field select, .sx-field textarea, .sx-input { border-color: var(--c-ink-soft); border-radius: var(--radius-s); }
.sx-field input:hover, .sx-field select:hover, .sx-field textarea:hover { border-color: var(--c-brand); }

/* ---------- Motion ----------
   Every starting state is scoped to .sx-motion, which site.js adds to <html>
   only when reduced motion is not requested. With scripts off, or reduced
   motion on, the page renders settled with nothing hidden. */
.sx-motion .sx-reveal { opacity: 0; transform: translateY(var(--reveal-distance)); }
.sx-motion .sx-reveal.is-in { opacity: 1; transform: none; transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out); }
.sx-motion .sx-reveal > * { transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out); }
.sx-motion .sx-reveal--stagger > * { opacity: 0; transform: translateY(var(--reveal-distance)); }
.sx-motion .sx-reveal--stagger.is-in > * { opacity: 1; transform: none; }
.sx-motion .sx-reveal--stagger.is-in > :nth-child(2) { transition-delay: var(--stagger); }
.sx-motion .sx-reveal--stagger.is-in > :nth-child(3) { transition-delay: calc(var(--stagger) * 2); }
.sx-motion .sx-reveal--stagger.is-in > :nth-child(4) { transition-delay: calc(var(--stagger) * 3); }
.sx-motion .sx-reveal--stagger.is-in > :nth-child(5) { transition-delay: calc(var(--stagger) * 4); }
.sx-motion .sx-reveal--stagger.is-in > :nth-child(6) { transition-delay: calc(var(--stagger) * 5); }
.sx-motion .sx-reveal--stagger.is-in > :nth-child(7) { transition-delay: calc(var(--stagger) * 6); }
.sx-motion .sx-reveal--stagger.is-in > :nth-child(8) { transition-delay: calc(var(--stagger) * 7); }

/* The hero's orchestrated entrance: under 900ms, headline in place at 240ms. */
.sx-motion .sx-banner .sx-arc path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: sx-draw var(--duration-slow) var(--ease-emphasis) 80ms forwards; }
.sx-motion .sx-banner .sx-rules i { transform: scaleY(0); transform-origin: top; animation: sx-rule var(--duration-slow) var(--ease-out) forwards; }
.sx-motion .sx-banner__inner > * { opacity: 0; transform: translateY(20px); animation: sx-rise var(--duration-base) var(--ease-emphasis) forwards; }
.sx-motion .sx-banner__inner > :nth-child(1) { animation-delay: 60ms; }
.sx-motion .sx-banner__inner > :nth-child(2) { animation-delay: 120ms; }
.sx-motion .sx-banner__inner > :nth-child(3) { animation-delay: 180ms; }
.sx-motion .sx-banner__inner > :nth-child(4) { animation-delay: 240ms; }
.sx-motion .sx-banner__inner > :nth-child(5) { animation-delay: 300ms; }
@keyframes sx-draw { to { stroke-dashoffset: 0; } }
@keyframes sx-rule { to { transform: scaleY(1); } }
@keyframes sx-rise { to { opacity: 1; transform: none; } }

/* A revealing element that takes keyboard focus shows at once. */
.sx-motion .sx-reveal:focus-within { opacity: 1; transform: none; }
.sx-motion .sx-reveal--stagger:focus-within > * { opacity: 1; transform: none; }

/* The header condenses past 80px rather than jumping. */
.sx-header { transition: box-shadow var(--duration-base) var(--ease-out), min-height var(--duration-base) var(--ease-out); }
.sx-header.is-stuck { box-shadow: var(--shadow-1); }
.sx-header.is-stuck .sx-header__inner { min-height: calc(var(--header-h) - 0.75rem); }

@media (prefers-reduced-motion: reduce) {
  .sx-motion .sx-reveal, .sx-motion .sx-reveal--stagger > *,
  .sx-motion .sx-banner__inner > * { opacity: 1; transform: none; animation: none; }
  .sx-motion .sx-banner .sx-arc path { stroke-dashoffset: 0; animation: none; }
  .sx-motion .sx-banner .sx-rules i { transform: none; animation: none; }
}

/* Navigation labels never wrap: a two-line menu item reads as a bug. */
.sx-nav--desktop .sx-nav__link { white-space: nowrap; }
/* Keep the banner's content clear of the placeholder caption in the corner. */
@media (min-width: 900px) { .sx-section--hero .sx-banner__inner { padding-block-end: var(--space-7); } }

/* A grid or flex child that holds running text, a field or a table must be
   allowed to shrink, or it pushes the page sideways at 320px (WCAG 1.4.10). */
.sx-contact > *, .sx-contact__form, .sx-formwrap, .sx-form, .sx-form__row, .sx-field,
.sx-split > *, .sx-grid > *, .sx-steps > *, .sx-footer__grid > * { min-width: 0; }
.sx-field input, .sx-field select, .sx-field textarea, .sx-input { max-width: 100%; width: 100%; box-sizing: border-box; }

/* Breadcrumbs sit on the navy banner now, so they take the on-dark pair.
   (The baseline rule keyed off .has-image, which the banner template replaced.) */
.sx-banner .sx-breadcrumbs a { color: var(--c-on-dark-soft); }
.sx-banner .sx-breadcrumbs a:hover { color: var(--c-on-dark); }
.sx-banner .sx-breadcrumbs [aria-current] { color: var(--c-on-dark); }
.sx-banner .sx-breadcrumbs li + li::before { color: var(--c-on-dark-soft); }

/* ==========================================================================
   Revision 2 — the UI/UX pass.
   Fixes the header row, makes every banner the same height, turns the phone
   into a call button, gives the middle of each page a layout instead of a
   stack of centred blocks, and lets a card grid be swiped on a phone.
   ========================================================================== */

/* ---------- Header: one row, one centre line ----------
   The nav <ul> still carried the browser's default block margin, so the nav
   box measured 61px against a 44px link and every label floated about 9px
   above the logo, the phone and the button. It also pushed the nav past the
   condensed header height on scroll, which clipped the whole row. */
.sx-nav__list { margin: 0; padding: 0; list-style: none; align-items: center; }
.sx-header__inner > * { align-self: center; }
.sx-header__inner { min-height: var(--header-h); }
@media (min-width: 1100px) { .sx-nav--desktop { display: flex; align-items: center; } }
.sx-nav__link { line-height: 1.2; }
.sx-logo { align-items: center; }
.sx-logo__img { display: block; max-height: 2.375rem; }
/* The current page is marked with a drawn rule under the label rather than a
   text underline, so the indicator sits on the row instead of in the line. */
.sx-nav--desktop .sx-nav__link[aria-current="page"] { text-decoration: none; position: relative; }
.sx-nav--desktop .sx-nav__link[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0.7rem; inset-block-end: 0.35rem;
  height: 2px; background: var(--c-brand);
}
/* The condensed header: the row shrinks by trimming the bar, never the content. */
.sx-header.is-stuck .sx-header__inner { min-height: calc(var(--header-h) - 0.625rem); }
.sx-header.is-stuck .sx-logo__img { max-height: 2.0625rem; transition: max-height var(--duration-base) var(--ease-out); }
.sx-logo__img { transition: max-height var(--duration-base) var(--ease-out); }
/* A reading-progress hairline along the bottom of the bar. Decorative. */
.sx-header::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-end: -1px; height: 2px;
  width: 100%; transform: scaleX(var(--sx-progress, 0)); transform-origin: inline-start;
  background: var(--c-brand); opacity: 0; transition: opacity var(--duration-base) var(--ease-out);
}
.sx-header.is-stuck::after { opacity: 1; }
.sx-header { position: sticky; }

/* ---------- The call button ----------
   Outside the footer the number is an action, not a line of text: one button,
   the same label everywhere, with the number itself in the accessible name so
   a screen reader still hears what it is about to dial. */
.sx-btn--call { background: transparent; color: var(--c-brand-strong); border: 1.5px solid var(--c-ink-soft); }
.sx-btn--call:hover { background: var(--c-brand); color: var(--c-on-brand); border-color: var(--c-brand); }
.sx-btn--call .sx-icon { width: 1.0625rem; height: 1.0625rem; }
.sx-btn--call:hover .sx-icon { transform: none; }
.sx-banner .sx-btn--call, .sx-cta .sx-btn--call, .sx-drawer__bottom .sx-btn--call { border-color: var(--c-on-dark-soft); color: var(--c-on-dark); }
.sx-drawer__bottom .sx-btn--call { border-color: var(--c-ink-soft); color: var(--c-brand-strong); }
.sx-header__phone { white-space: nowrap; }
.sx-contact-list__act { margin: var(--space-3) 0 0; }

/* ---------- Banners: one height, and ready for a photograph ----------
   Every inner page opens on the same band so moving between them does not
   feel like moving between templates. The home hero is taller on purpose. */
.sx-section--hero, .sx-section--page-header { display: grid; align-content: center; }
.sx-section--hero { min-height: clamp(28rem, 22rem + 22vw, 46rem); }
/* The band is sized for its worst case — a three-line title over a three-line
   standfirst — and the measures below hold every page inside that, so each
   inner page opens on a band of exactly the same height. */
.sx-section--page-header { min-height: clamp(23rem, 22rem + 10.4vw, 33rem); }
.sx-section--page-header .sx-heading__title { max-width: 23ch; }
.sx-section--page-header .sx-lead { max-width: 54rem; }
/* The scrim is strong where the words are and weak where the photograph can
   be seen. Measured against the band: white over the strong end 11.4:1. */
@media (min-width: 900px) {
  .sx-banner__scrim { background:
    linear-gradient(to right, rgb(1 51 95 / 0.93) 0%, rgb(1 51 95 / 0.86) 42%, rgb(1 51 95 / 0.38) 100%),
    linear-gradient(to top, rgb(1 51 95 / 0.35) 0%, rgb(1 51 95 / 0) 45%); }
}
/* A supplied photograph drifts a few pixels as the page scrolls. Scoped to
   .sx-motion, so it is still with reduced motion or scripts off. */
.sx-motion .sx-banner__bg { will-change: transform; transform: translate3d(0, var(--sx-parallax, 0px), 0) scale(1.06); }

/* ---------- Section rhythm ----------
   The band was padded 104px top and bottom, so two neighbours left a 208px
   void. Tighter, and the middle of the page now fills the width. */
.sx-section { padding-block: clamp(3rem, 2.2rem + 2.4vw, 4.5rem); }
.sx-section--cta { padding-block: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); }
.sx-section--hero { padding-block: clamp(3.25rem, 2rem + 5vw, 7rem); }
.sx-section--page-header { padding-block: clamp(2.75rem, 1.8rem + 3.6vw, 5rem); }
/* Two white bands in a row get a hairline so the gap reads as a break. */
.sx-section + .sx-section:not([class*="--cards"]):not([class*="--faq"]):not([class*="--stats"]):not([class*="--logos"]):not([class*="--cta"]):not([class*="--hero"]):not([class*="--page-header"]) { border-top: 1px solid var(--c-line); }
.sx-section--cards + .sx-section, .sx-section--faq + .sx-section, .sx-section--stats + .sx-section { border-top: 0; }

/* ---------- Running text: an editorial two-column ----------
   A 44rem column centred in a 75rem page is what made these sections read as
   a narrow ribbon with nothing either side. The heading moves out to its own
   rail and stays with you as you read. */
.sx-section--richtext .sx-heading__title { margin-block: 0 var(--space-5); }
@media (min-width: 1000px) {
  .sx-section--richtext > .sx-container--narrow {
    max-width: calc(var(--container) + 2 * var(--gutter));
    display: grid; grid-template-columns: minmax(13rem, 19rem) minmax(0, 40rem);
    gap: var(--space-7) clamp(2.5rem, 5vw, 5.5rem); align-items: start;
  }
  .sx-section--richtext .sx-heading__title {
    position: sticky; inset-block-start: calc(var(--header-h) + var(--space-6));
    margin: 0; padding-inline-start: var(--space-5);
    border-inline-start: 2px solid var(--c-brand); font-size: var(--fs-h2);
  }
  .sx-section--richtext .sx-prose { max-width: none; }
  .sx-section--richtext .sx-prose:only-child { grid-column: 1 / -1; max-width: 44rem; }
}

/* ---------- Questions: the same rail ---------- */
@media (min-width: 1000px) {
  .sx-section--faq > .sx-container--narrow {
    max-width: calc(var(--container) + 2 * var(--gutter));
    display: grid; grid-template-columns: minmax(13rem, 19rem) minmax(0, 42rem);
    gap: var(--space-7) clamp(2.5rem, 5vw, 5.5rem); align-items: start;
  }
  .sx-section--faq .sx-heading {
    position: sticky; inset-block-start: calc(var(--header-h) + var(--space-6));
    margin: 0; text-align: start; margin-inline: 0;
    padding-inline-start: var(--space-5); border-inline-start: 2px solid var(--c-brand);
  }
  .sx-section--faq .sx-heading__intro { margin-inline: 0; }
}
.sx-faq__item summary { padding-block: var(--space-5); transition: background-color var(--duration-fast) var(--ease-out); }
.sx-faq__item summary:hover { background: color-mix(in srgb, var(--c-brand) 5%, transparent); }
.sx-faq__item[open] .sx-faq__q { color: var(--c-brand-strong); }

/* ---------- Section headings: a measure, not a centred paragraph ----------
   The centred heading-over-centred-intro repeated down every page is what
   made the middle of the site feel like one block eight times. It becomes a
   two-part head: the title on the left, the standfirst beside it. */
@media (min-width: 1000px) {
  .sx-section--cards .sx-heading--center, .sx-section--steps .sx-heading--center {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-4) clamp(2.5rem, 5vw, 5rem); align-items: end;
    max-width: none; margin-inline: 0; text-align: start;
  }
  .sx-section--cards .sx-heading--center .sx-eyebrow,
  .sx-section--steps .sx-heading--center .sx-eyebrow { grid-column: 1; margin-bottom: 0; }
  .sx-section--cards .sx-heading--center .sx-heading__title,
  .sx-section--steps .sx-heading--center .sx-heading__title { grid-column: 1; margin: 0; }
  .sx-section--cards .sx-heading--center .sx-heading__intro,
  .sx-section--steps .sx-heading--center .sx-heading__intro {
    grid-column: 2; grid-row: 1 / span 3; margin: 0; margin-inline: 0;
    padding-inline-start: clamp(1.5rem, 3vw, 2.5rem); border-inline-start: 1px solid var(--c-line);
  }
}

/* ---------- Cards: an anchor, a rule that draws, and somewhere to go ---------- */
.sx-card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-m);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-fast) var(--ease-out); }
.sx-card::before { opacity: 1; height: 3px; transform: scaleX(0); transform-origin: inline-start;
  transition: transform var(--duration-base) var(--ease-out); }
.sx-card:hover, .sx-card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--c-line); }
.sx-card:hover::before, .sx-card:focus-within::before { transform: scaleX(1); }
.sx-card__icon { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--c-brand) 9%, var(--c-bg)); color: var(--c-brand);
  border-inline-start: 2px solid var(--c-brand);
  transition: background-color var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out); }
.sx-card:hover .sx-card__icon { background: var(--c-brand); color: var(--c-on-brand); }
.sx-card__body { gap: var(--space-4); padding: var(--space-6) var(--space-5) var(--space-5); }
.sx-card__title { line-height: var(--lh-tight); }
.sx-card__more { padding-top: var(--space-4); border-top: 1px solid var(--c-line); }
.sx-card__more .sx-icon { transition: transform var(--duration-base) var(--ease-out); }
.sx-card:hover .sx-card__more .sx-icon { transform: translateX(4px); }
[dir="rtl"] .sx-card:hover .sx-card__more .sx-icon { transform: translateX(-4px); }

/* ---------- The picture well ----------
   An image slot is composed even while it is still a placeholder: a tinted
   panel set behind and below, the brand rule on the leading edge, and a
   bracket at the head of the frame. */
.sx-split__media { position: relative; }
.sx-split__media > * { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .sx-split__media::before { content: ""; position: absolute; z-index: 0;
    inset-block: var(--space-6) calc(var(--space-6) * -1);
    inset-inline: var(--space-6) calc(var(--space-6) * -1); background: var(--c-surface); }
  .is-reversed .sx-split__media::before { inset-inline: calc(var(--space-6) * -1) var(--space-6); }
  .sx-split__media::after { content: ""; position: absolute; z-index: 2; inset-block-start: calc(var(--space-4) * -1);
    inset-inline-start: calc(var(--space-4) * -1); width: var(--space-7); height: var(--space-7);
    border-block-start: 2px solid var(--c-accent); border-inline-start: 2px solid var(--c-accent); }
  .is-reversed .sx-split__media::after { inset-inline: auto calc(var(--space-4) * -1);
    border-inline-start: 0; border-inline-end: 2px solid var(--c-accent); }
}
.sx-split__text .sx-heading__title { max-width: 18ch; }
.sx-split .sx-prose { max-width: 36rem; }

/* ---------- Steps: a ruled band with the count written large ---------- */
.sx-step { padding-block-start: var(--space-6); border-top: 1px solid var(--c-line); position: relative; }
.sx-step:first-child { border-top: 1px solid var(--c-line); }
.sx-step::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline: 0; height: 2px;
  background: var(--c-brand); transform: scaleX(0); transform-origin: inline-start; }
.sx-motion .sx-steps.is-in .sx-step::before { transform: scaleX(1); transition: transform var(--duration-slow) var(--ease-out); }
.sx-steps:not(.is-in) .sx-step::before { transform: scaleX(1); }
.sx-motion .sx-steps .sx-step::before { transform: scaleX(0); }
.sx-motion .sx-steps.is-in .sx-step:nth-child(2)::before { transition-delay: var(--stagger); }
.sx-motion .sx-steps.is-in .sx-step:nth-child(3)::before { transition-delay: calc(var(--stagger) * 2); }
.sx-motion .sx-steps.is-in .sx-step:nth-child(4)::before { transition-delay: calc(var(--stagger) * 3); }
.sx-motion .sx-steps.is-in .sx-step:nth-child(5)::before { transition-delay: calc(var(--stagger) * 4); }
.sx-motion .sx-steps.is-in .sx-step:nth-child(6)::before { transition-delay: calc(var(--stagger) * 5); }
.sx-step__num { font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); line-height: 0.9; letter-spacing: 0;
  color: color-mix(in srgb, var(--c-brand) 26%, var(--c-bg)); margin-bottom: var(--space-4);
  transition: color var(--duration-base) var(--ease-out); }
.sx-step:hover .sx-step__num { color: var(--c-brand); }
.sx-step__title { max-width: 18ch; }
.sx-step p { max-width: 34ch; }

/* ---------- The closing band ---------- */
.sx-cta { position: relative; overflow: hidden; background: var(--c-dark); }
.sx-cta > * { position: relative; z-index: 2; }
.sx-cta .sx-rules { display: none; }
@media (min-width: 900px) {
  .sx-cta .sx-rules { display: grid; grid-template-columns: repeat(4, 1fr); inset: 0; width: 100%; margin: 0; z-index: 0; }
}
.sx-cta .sx-rules i { border-inline-start-color: rgb(255 255 255 / 0.16); }
.sx-cta .sx-arc { z-index: 1; opacity: 0.85; }
.sx-cta__title { max-width: 20ch; }

/* ---------- Numbers that count up where there are any ---------- */
.sx-stat dd { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Phones: a card grid is a rail, and the next card shows at the edge.
   Eight stacked cards is eight screens of scrolling; a rail is one.
   ========================================================================== */
@media (max-width: 759px) {
  .sx-rail {
    display: flex !important; grid-template-columns: none !important;
    gap: var(--space-4); overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding-inline-start: var(--gutter);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    padding-block-end: var(--space-2);
    scrollbar-width: none; -ms-overflow-style: none;
    overscroll-behavior-inline: contain;
  }
  .sx-rail::-webkit-scrollbar { display: none; }
  .sx-rail > * { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; }
  .sx-rail > :last-child { margin-inline-end: var(--gutter); }
  /* A step in a rail keeps its own rule and some air at the edge. */
  .sx-rail.sx-steps > .sx-step { padding-inline-end: var(--space-4); }
  .sx-rail:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 4px; }
  /* How far along the rail you are. Decorative; the cards are the content. */
  .sx-railbar { position: relative; height: 2px; margin-block-start: var(--space-5);
    background: var(--c-line); border-radius: 2px; overflow: hidden; }
  .sx-railbar i { position: absolute; inset-block: 0; inset-inline-start: 0; display: block;
    width: var(--sx-rail-w, 33%); background: var(--c-brand); border-radius: 2px;
    transform: translateX(var(--sx-rail-x, 0)); }
  .sx-railhint { margin: var(--space-3) 0 0; font-size: var(--fs-eyebrow); letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase; color: var(--c-ink-soft); }
}
@media (min-width: 760px) { .sx-railbar, .sx-railhint { display: none; } }

/* ---------- Reduced motion keeps every added effect still ---------- */
@media (prefers-reduced-motion: reduce) {
  .sx-motion .sx-banner__bg { transform: none; }
  .sx-motion .sx-steps .sx-step::before, .sx-motion .sx-steps.is-in .sx-step::before { transform: scaleX(1); transition: none; }
  .sx-card, .sx-card::before, .sx-card__icon, .sx-logo__img, .sx-header::after { transition: none; }
  .sx-card:hover, .sx-card:focus-within { transform: none; }
  .sx-card:hover::before, .sx-card:focus-within::before { transform: scaleX(1); }
  .sx-rail { scroll-behavior: auto; }
}

/* ---------- Revision 2, second pass ---------- */

/* The placeholder caption shared the bottom-right corner with the
   accessibility button. It moves to the head of the band. */
.sx-banner__bg .sx-ph__text { inset-block-end: auto; inset-block-start: var(--space-4); }

/* The heading rail needs room for a four-word title before it stacks. */
@media (min-width: 1000px) {
  .sx-section--richtext > .sx-container--narrow { grid-template-columns: minmax(15rem, 22rem) minmax(0, 40rem); }
  .sx-section--faq > .sx-container--narrow { grid-template-columns: minmax(15rem, 22rem) minmax(0, 42rem); }
  .sx-section--richtext .sx-heading__title, .sx-section--faq .sx-heading__title { text-wrap: balance; }
}

/* A centred standfirst is readable for two lines and hard work for nine. Every
   section head reads from the same left edge as the content under it. */
.sx-heading--center { margin-inline: 0; text-align: start; max-width: 46rem; }
.sx-heading--center .sx-heading__intro { margin-inline: 0; }
.sx-pricing__note { margin-inline: 0; text-align: start; }

/* The closing band's rules want to be seen. */
.sx-cta .sx-rules i { border-inline-start-color: rgb(255 255 255 / 0.20); }

/* ---------- Revision 2, third pass ---------- */

/* The parallax scale belongs to the photograph, not to the band: applied to
   the wrapper it also pushed the placeholder caption past the right edge. */
.sx-motion .sx-banner__bg { transform: none; will-change: auto; }
.sx-motion .sx-banner__bg .sx-img, .sx-motion .sx-banner__bg img {
  will-change: transform; transform: translate3d(0, var(--sx-parallax, 0px), 0) scale(1.08);
}

/* Five steps should sit on one line, not four and an orphan. */
@media (min-width: 900px) {
  .sx-steps { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-5); }
  .sx-steps:has(> :nth-child(5)) { grid-template-columns: repeat(auto-fit, minmax(10.25rem, 1fr)); }
  .sx-step p { max-width: 38ch; }
}

/* Contact details: the same hard-edged, ruled treatment as everything else,
   and the number stays readable beside the button that dials it. */
.sx-contact__details { border-radius: 0; border-inline-start: 2px solid var(--c-brand); padding: var(--space-6); }
.sx-contact-list__num { color: var(--c-ink); }
.sx-contact-list__act { margin: var(--space-3) 0 0; }

/* The form sits on the rules too. */
.sx-contact__form .sx-heading { margin-bottom: var(--space-5); }

@media (prefers-reduced-motion: reduce) {
  .sx-motion .sx-banner__bg .sx-img, .sx-motion .sx-banner__bg img { transform: none; }
}

/* ==========================================================================
   Revision 2, fourth pass — from the independent review.
   ========================================================================== */

/* The rules and the arc in the closing band had been caught by `.sx-cta > *`
   and turned into grid items, which opened a 122px dead row above the
   heading. They go back out of flow. */
.sx-cta > .sx-rules, .sx-cta > .sx-arc { position: absolute; z-index: 0; }
.sx-cta > .sx-arc { z-index: 1; }

/* The closing band sat as a navy box 48px above a navy footer, so it read as
   the footer's masthead. The band behind it is tinted, which separates the
   two and makes the card read as an object rather than a lid. */
.sx-section--cta { background: var(--c-surface); border-top: 1px solid var(--c-line); }
.sx-cta { padding-block: clamp(2.25rem, 1.5rem + 2.6vw, 3.25rem); }
.sx-cta__title { font-size: var(--fs-h1); }
.sx-cta p { max-width: 42ch; }

/* ---------- Bands, so a long page has a rhythm ----------
   `/services/bookkeeping/` ran 8,928px — 80% of the page — as one unbroken
   white field divided only by hairlines that disappear at scroll speed. Every
   second section is now tinted, which gives each page a measured stripe and
   stops two sections of the same kind running into one another. */
.sx-main > .sx-section:nth-of-type(even):not(.sx-banner):not(.sx-section--cta):not(.sx-section--legal):not(.sx-section--sitemap):not(.sx-section--contact):not(.sx-section--notfound):not(.sx-section--posts) {
  background: var(--c-surface); border-block: 1px solid var(--c-line);
}
.sx-main > .sx-section:nth-of-type(odd):not(.sx-banner):not(.sx-section--cta) {
  background: var(--c-bg); border-block: 0;
}
.sx-main > .sx-section:nth-of-type(odd) + .sx-section:nth-of-type(even) { border-block-start: 0; }

/* ---------- Typography: the ramp broke below H2 ----------
   An in-prose H3 was 19px — two pixels above the body text around it and one
   below the 20px standfirst, so a paragraph outranked a subheading inside a
   two-thousand-pixel wall of prose. */
.sx-prose h2 { font-size: var(--fs-h2); margin-top: 1.8em; }
.sx-prose h3 { font-size: var(--fs-h3); margin-top: 1.6em; line-height: var(--lh-tight); }
.sx-prose h4 { font-size: var(--fs-h4); margin-top: 1.4em; }
/* 24px headings keep one line-height wherever they appear. */
.sx-card__title, .sx-step__title, .sx-prose h3 { line-height: 1.22; }

/* The banner standfirst was running 85 characters a line. */
.sx-section--page-header .sx-lead { max-width: 48rem; }
.sx-section--page-header { min-height: clamp(24rem, 23rem + 11.4vw, 35rem); }

/* ---------- Eight services do not divide by three ---------- */
@media (min-width: 1200px) {
  .sx-grid--3:has(> :nth-child(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Footer: the brand column was running 19 characters a line ---------- */
@media (min-width: 700px) and (max-width: 1099px) {
  .sx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .sx-footer__grid { grid-auto-flow: row; grid-template-columns: minmax(17rem, 1.5fr) repeat(4, minmax(0, 1fr)); }
  .sx-footer__about { max-width: none; }
}
/* On a phone the four link lists stack into about 1,900px of footer. Two
   columns of links halve it without hiding anything. */
/* Two columns of links from 420px up; the brand block and the contact block
   always take the full width, because an address and an email cannot be
   broken into a 140px column without pushing the page sideways. */
@media (min-width: 360px) and (max-width: 699px) {
  .sx-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
  .sx-footer__grid > .sx-footer__brand, .sx-footer__contact { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .sx-footer__col ul { gap: 0; }
  .sx-footer__link { min-height: 2rem; font-size: var(--fs-small); }
}
/* A long address or email may break only when it would otherwise overflow —
   `anywhere` let the browser split "rationaleservices.com" and "appointment"
   while there was still room on the line. */
.sx-footer__contact, .sx-footer__contact * { min-width: 0; overflow-wrap: break-word; word-break: normal; }
.sx-footer .sx-contact-list { min-width: 0; }

/* The contact column carries an address, a number, an email and opening hours,
   and needs more room than a link list. At five equal-ish tracks it came out at
   240px, which split the email mid-word and stacked the hours into a column of
   broken fragments. The track gets a real minimum, the column gap comes down to
   pay for it, and the contact list sets at the footer's small size. */
@media (min-width: 1100px) {
  .sx-footer__grid {
    grid-template-columns: minmax(15rem, 1.25fr) repeat(3, minmax(7.5rem, 0.8fr)) minmax(17.5rem, 1.25fr);
    column-gap: var(--space-6);
  }
}
.sx-footer__contact .sx-contact-list { font-size: var(--fs-small); }
.sx-footer .sx-contact-list li { align-items: flex-start; }
/* Days and hours wrap as whole phrases; they are never broken mid-word. */
.sx-hours { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0 var(--space-4); }

/* At tablet widths two columns left the right half of the footer empty beside
   the brand block and again beside the contact block. Three link columns fill
   the row; the brand and the contact block take the full width above and
   below them. */
@media (min-width: 700px) and (max-width: 1099px) {
  .sx-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-6); }
  .sx-footer__grid > .sx-footer__brand, .sx-footer__contact { grid-column: 1 / -1; }
  .sx-footer__about { max-width: 46rem; }
}
