/* stylelint-disable no-duplicate-selectors -- generated by theme-library/meridian/build.mjs: Atlas's theme.css, then the files of css/ in name order, each checked on its own. */

/*
 * "Positive Sans" and "Positive Mono": the fonts of Positive ERP (BR8, BR11). SAP 72 and 72 Mono - Apache-2.0,
 * @sap-theming/theming-base-content 11.36.5; Tajawal - SIL OFL-1.1, @fontsource/tajawal 5.3.0.
 */
@font-face {
  font-family: "Positive Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("positive-72-300.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193,
    U+2212;
}

@font-face {
  font-family: "Positive Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("positive-tajawal-300.woff2") format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "Positive Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("positive-72-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193,
    U+2212;
}

@font-face {
  font-family: "Positive Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("positive-tajawal-400.woff2") format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "Positive Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("positive-72-600.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193,
    U+2212;
}

@font-face {
  font-family: "Positive Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("positive-tajawal-600.woff2") format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "Positive Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("positive-72-700.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193,
    U+2212;
}

@font-face {
  font-family: "Positive Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("positive-tajawal-700.woff2") format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
  font-family: "Positive Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("positive-72-mono-400.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193,
    U+2212;
}

/*
 * Atlas — stylesheet.
 * Every colour, font and size comes from the design tokens the platform compiles from the theme settings
 * (theme.json → "token"). Logical properties only, so the same rules serve Arabic (right to left) and English.
 */

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

img,
svg {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

h1,
h2,
h3,
h4 {
  margin-block: 0 0.5em;
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: 1.25;
  text-transform: var(--heading-case);
}

p {
  margin-block: 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.main-content:focus {
  outline: none;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-block-start: -10rem;
  inset-inline-start: 1rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: var(--button-radius);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.skip-link:focus {
  inset-block-start: 1rem;
}

.icon {
  flex: none;
  inline-size: 1.375rem;
  block-size: 1.375rem;
}

.icon-large {
  inline-size: 3rem;
  block-size: 3rem;
}

[dir="rtl"] .icon-flip {
  transform: scaleX(-1);
}

.placeholder {
  inline-size: 100%;
  block-size: 100%;
  color: var(--color-text-muted);
}

/* ---------- Layout ---------- */

.container {
  inline-size: min(100% - 2rem, var(--page-width));
  margin-inline: auto;
}

.container-narrow {
  max-inline-size: 42rem;
}

.container-medium {
  max-inline-size: 56rem;
}

.section-pad {
  padding-block: var(--section-spacing);
}

.section-pad-small {
  padding-block: calc(var(--section-spacing) / 2) var(--section-spacing);
}

.section-bg-surface {
  background: var(--color-surface);
}

.section-bg-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.section-bg-primary :focus-visible {
  outline-color: currentcolor;
}

.text-center {
  text-align: center;
}

.text-start {
  text-align: start;
}

.grid {
  --grid-columns: 2;

  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: calc(var(--grid-gap) * 1.5) var(--grid-gap);
}

.grid-articles,
.grid-columns {
  --grid-columns: 1;
}

.ratio-square {
  aspect-ratio: 1;
}

.ratio-portrait {
  aspect-ratio: 3 / 4;
}

.ratio-landscape {
  aspect-ratio: 4 / 3;
}

.ratio-square > img,
.ratio-portrait > img,
.ratio-landscape > img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-block-end: 1.75rem;
}

.section-heading-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  margin: 0;
  font-size: calc(1.75rem * var(--heading-scale));
}

.section-title a {
  text-decoration: none;
}

.section-subtitle {
  margin-block: 0.5rem 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.section-bg-primary .section-subtitle {
  color: inherit;
}

.eyebrow {
  margin-block-end: 0.5rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rte > :last-child {
  margin-block-end: 0;
}

.rte ul,
.rte ol {
  margin-block-end: 1em;
  padding-inline-start: 1.5em;
  list-style: revert;
}

.rte a {
  color: var(--color-primary);
}

.rte img {
  border-radius: var(--radius);
}

.rte table {
  inline-size: 100%;
  border-collapse: collapse;
}

.rte th,
.rte td {
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  text-align: start;
}

/* ---------- Buttons and fields ---------- */

.button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-block-size: 2.75rem;
  padding: 0.625rem 1.375rem;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--button-radius);
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: var(--button-case);
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.button-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.button-primary:hover {
  background: color-mix(in srgb, var(--color-primary) 86%, var(--color-text));
}

.button-secondary:hover {
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.button-inverse {
  border-color: currentcolor;
  background: var(--color-background);
  color: var(--color-text);
}

.button-small {
  min-block-size: 2.5rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.9375rem;
}

.button-large {
  min-block-size: 3.25rem;
  padding-inline: 2rem;
  font-size: 1.0625rem;
}

.button-block {
  inline-size: 100%;
}

.button:disabled,
.button-disabled,
.button[aria-busy="true"] {
  cursor: default;
  opacity: 0.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.icon-button:hover {
  background: color-mix(in srgb, currentcolor 10%, transparent);
}

.icon-button-solid {
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 1px 4px color-mix(in srgb, var(--color-text) 25%, transparent);
}

.icon-button-solid:hover {
  background: var(--color-surface);
}

.icon-button-outline {
  border: 1.5px solid var(--color-border);
}

.icon-button-large {
  inline-size: 3.25rem;
  block-size: 3.25rem;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.link-button {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  min-block-size: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.link-arrow {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.section-bg-primary .link-arrow {
  color: inherit;
}

.input,
.select {
  inline-size: 100%;
  min-block-size: 2.75rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
  color: var(--color-text);
}

.input-small,
.select-small {
  inline-size: auto;
  min-block-size: 2.5rem;
  padding-block: 0.25rem;
}

textarea.input {
  resize: block;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.375rem;
}

.field label {
  font-weight: 600;
}

.check {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-block-size: 2.75rem;
  cursor: pointer;
}

.check input {
  inline-size: 1.125rem;
  block-size: 1.125rem;
  accent-color: var(--color-primary);
}

.form-status {
  margin-block: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid currentcolor;
  border-radius: var(--radius);
  color: var(--color-success);
}

.form-status[data-state="error"],
.form-error {
  color: var(--color-danger);
}

.form-error {
  margin-block: 0.5rem 0;
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.6;
}

.badge-sale {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

.badge-muted {
  background: var(--color-text);
  color: var(--color-background);
}

.count-bubble {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  min-inline-size: 1.25rem;
  padding-inline: 0.25rem;
  border-radius: 1rem;
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.625rem;
  align-items: baseline;
  font-weight: 700;
}

.price-on-sale .price-current {
  color: var(--color-accent);
}

.price-compare {
  color: var(--color-text-muted);
  font-size: 0.9em;
  font-weight: 400;
}

.empty-state {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding-block: 3rem;
  color: var(--color-text-muted);
  text-align: center;
}

.empty-state p {
  margin: 0;
}

.empty-state-large {
  color: inherit;
}

.error-code {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 18vw, 8rem);
  font-weight: 800;
  line-height: 1;
}

.chip-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-end: 1.5rem;
}

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.25rem;
  padding: 0.25rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  background: var(--color-surface);
  font-size: 0.9375rem;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.breadcrumbs {
  margin-block-end: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.breadcrumbs li + li::before {
  margin-inline-end: 0.5rem;
  content: "/";
}

/* ---------- Announcement and header ---------- */

.announcement {
  font-size: 0.9375rem;
}

.announcement-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.announcement-text {
  margin: 0;
}

.announcement-dark {
  background: var(--color-text);
  color: var(--color-background);
}

.announcement-surface {
  background: var(--color-surface);
}

.announcement :focus-visible {
  outline-color: currentcolor;
}

.announcement-inner {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-block-size: 2.5rem;
  padding-block: 0.25rem;
  text-align: center;
}

.announcement-close {
  flex: none;
  inline-size: 2.25rem;
  block-size: 2.25rem;
}

.site-header {
  z-index: 20;
  border-block-end: 1px solid var(--color-border);
  background: var(--color-header-background);
  color: var(--color-header-text);
}

.sf-section:has(> .site-header-sticky) {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px color-mix(in srgb, var(--color-text) 12%, transparent);
}

.site-header-inner {
  display: flex;
  gap: 0.5rem 1.5rem;
  align-items: center;
  min-block-size: 4.25rem;
  padding-block: 0.5rem;
}

.site-logo {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  min-inline-size: 0;
  margin-inline-end: auto;
  text-decoration: none;
}

.site-logo-image {
  inline-size: var(--logo-width);
  max-block-size: 3.5rem;
  object-fit: contain;
  object-position: center;
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.2;
}

.site-nav {
  display: none;
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.site-nav-item {
  position: relative;
}

.site-nav-link,
.site-nav-sublink {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  min-block-size: 2.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.site-nav-link .icon {
  inline-size: 1rem;
  block-size: 1rem;
}

.site-nav-link:hover,
.site-nav-sublink:hover,
.site-nav-link[aria-current="page"],
.site-nav-sublink[aria-current="page"] {
  color: var(--color-primary);
}

.site-nav-dropdown {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  z-index: 30;
  min-inline-size: 14rem;
  padding: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
  color: var(--color-text);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-text) 16%, transparent);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s,
    visibility 0.15s;
}

.site-nav-item-parent:hover .site-nav-dropdown,
.site-nav-item-parent:focus-within .site-nav-dropdown {
  opacity: 1;
  visibility: visible;
}

.site-nav-sublink {
  font-weight: 400;
}

.site-header-actions {
  display: flex;
  flex: none;
  gap: 0.125rem;
  align-items: center;
}

.locale-switcher {
  display: none;
}

.locale-link {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  min-block-size: 2.75rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.site-header-wishlist {
  display: none;
}

/* ---------- Dialogs: drawers, modals, search ---------- */

dialog {
  color: var(--color-text);
}

dialog::backdrop {
  background: color-mix(in srgb, var(--color-text) 55%, transparent);
}

.drawer {
  inset-block: 0;
  inset-inline: auto;
  inline-size: min(26rem, 100% - 2.5rem);
  max-inline-size: none;
  block-size: 100%;
  max-block-size: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--color-background);
}

.drawer[open] {
  display: flex;
  flex-direction: column;
}

.drawer-start {
  inset-inline-start: 0;
}

.drawer-end {
  inset-inline-end: 0;
}

.drawer-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-block-end: 1px solid var(--color-border);
}

.drawer-title {
  margin: 0;
  font-size: 1.25rem;
}

.drawer-count {
  color: var(--color-text-muted);
  font-weight: 400;
}

.drawer-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.drawer-empty {
  display: grid;
  gap: 1rem;
  align-content: center;
  justify-items: center;
  color: var(--color-text-muted);
  text-align: center;
}

.drawer-footer {
  display: grid;
  gap: 0.625rem;
  padding: 1rem;
  border-block-start: 1px solid var(--color-border);
  background: var(--color-surface);
}

.mobile-nav + .mobile-nav {
  margin-block-start: 1rem;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--color-border);
}

.mobile-nav-link,
.mobile-nav-sublink {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  min-block-size: 3rem;
  padding-block: 0.375rem;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-link[aria-current="page"],
.mobile-nav-sublink[aria-current="page"] {
  color: var(--color-primary);
}

.mobile-nav-group > summary {
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.mobile-nav-group > summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-group[open] > summary .icon {
  transform: rotate(180deg);
}

.mobile-nav-sublink {
  padding-inline-start: 1rem;
  font-weight: 400;
}

.modal {
  inline-size: min(36rem, 100% - 2rem);
  max-block-size: calc(100% - 2rem);
  padding: 1.5rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-background);
}

.modal-wide {
  inline-size: min(60rem, 100% - 2rem);
}

.modal-close {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  z-index: 2;
  background: var(--color-background);
}

.quick-view-content {
  min-block-size: 8rem;
}

.quick-view-content .section-pad {
  padding-block: 0.5rem;
}

.quick-view-content .container {
  inline-size: 100%;
}

.quick-view-content .breadcrumbs,
.quick-view-content .product-description,
.quick-view-content .product-accordion {
  display: none;
}

.search-dialog {
  inset-block-start: 0;
  inline-size: 100%;
  max-inline-size: none;
  max-block-size: 100%;
  margin: 0;
  padding: 1rem;
  border: 0;
  background: var(--color-background);
}

.search-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  inline-size: min(100%, 44rem);
  margin-inline: auto;
}

.search-form-page {
  margin-block-start: 1rem;
  margin-inline: 0;
}

.empty-state .search-form-page {
  margin-inline: auto;
}

.search-input {
  flex: 1;
  min-inline-size: 0;
}

.predictive-results {
  inline-size: min(100%, 44rem);
  margin-block-start: 0.75rem;
  margin-inline: auto;
}

.predictive-item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: var(--radius);
  text-decoration: none;
}

.predictive-item:hover,
.predictive-item:focus-visible {
  background: var(--color-surface);
}

.predictive-image {
  flex: none;
  inline-size: 3.5rem;
  block-size: 3.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.predictive-image img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.predictive-text {
  display: grid;
  gap: 0.125rem;
  min-inline-size: 0;
}

.predictive-title mark {
  background: color-mix(in srgb, var(--color-primary) 22%, transparent);
  color: inherit;
}

.predictive-price {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.predictive-all {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  min-block-size: 2.75rem;
  margin-block-start: 0.5rem;
  padding-inline: 0.5rem;
  color: var(--color-primary);
  font-weight: 600;
}

.predictive-empty {
  margin: 0;
  padding: 0.75rem 0.5rem;
  color: var(--color-text-muted);
}

/* ---------- Hero and sliders ---------- */

.hero {
  position: relative;
}

.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  display: grid;
  flex: 0 0 100%;
  min-block-size: clamp(16rem, 52vw, var(--hero-height, 30rem));
  scroll-snap-align: start;
}

.hero-small {
  --hero-height: 22rem;
}

.hero-medium {
  --hero-height: 32rem;
}

.hero-large {
  --hero-height: 42rem;
}

.hero-media {
  display: block;
  grid-area: 1 / 1;
  min-block-size: 100%;
  overflow: hidden;
  background: var(--color-surface);
}

.hero-image {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.hero-image-narrow {
  display: none;
}

.hero-content {
  z-index: 1;
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  padding-block: 2rem 4.5rem;
}

.hero-align-center .hero-content {
  justify-content: center;
  text-align: center;
}

.hero-box {
  max-inline-size: 36rem;
  color: var(--color-text);
}

.hero-box-solid {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-background) 92%, transparent);
}

.hero-title {
  font-size: calc(clamp(1.75rem, 5vw, 3rem) * var(--heading-scale));
}

.hero-text {
  font-size: 1.125rem;
}

.hero-controls {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline: 0;
  z-index: 2;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.slider-dots {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.sf-slider-dot {
  inline-size: 1.75rem;
  block-size: 1.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.sf-slider-dot::before {
  display: block;
  inline-size: 0.75rem;
  block-size: 0.75rem;
  margin: auto;
  border: 2px solid var(--color-background);
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text) 45%, transparent);
  content: "";
}

.sf-slider-dot[aria-current="true"]::before {
  background: var(--color-primary);
}

.carousel {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-columns: calc((100% - var(--grid-gap)) / 1.6);
  grid-auto-flow: column;
  gap: var(--grid-gap);
  padding-block-end: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.carousel-item {
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-block-start: 1rem;
}

/* ---------- Cards ---------- */

.product-card {
  display: flex;
  flex-direction: column;
  block-size: 100%;
}

.product-card-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.product-card-image {
  position: relative;
  display: block;
}

.product-card-img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}

.product-card-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-card-img-hover {
  opacity: 1;
}

.product-card-badges {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.product-card-actions {
  position: absolute;
  inset-block-start: 0.5rem;
  inset-inline-end: 0.5rem;
  display: grid;
  gap: 0.375rem;
}

sf-wishlist-button.is-active .icon {
  fill: var(--color-accent);
  stroke: var(--color-accent);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  padding-block-start: 0.75rem;
}

.product-card-vendor {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
}

.product-card-title a {
  text-decoration: none;
}

.product-card-title a:hover {
  text-decoration: underline;
}

.product-card-add {
  margin-block-start: auto;
  padding-block-start: 0.625rem;
}

.product-card-add .button {
  inline-size: 100%;
}

.card-style-bordered .product-card,
.card-style-raised .product-card {
  padding: 0.625rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
}

.card-style-raised .product-card {
  border-color: transparent;
  box-shadow: 0 2px 14px color-mix(in srgb, var(--color-text) 12%, transparent);
}

.card-align-center .product-card-body {
  align-items: center;
  text-align: center;
}

.card-align-center .price {
  justify-content: center;
}

.collection-card {
  display: grid;
  gap: 0.625rem;
  text-decoration: none;
}

.collection-card-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.collection-card-image img {
  transition: transform 0.3s;
}

.collection-card:hover .collection-card-image img {
  transform: scale(1.04);
}

.collection-card-title {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: var(--heading-weight);
}

.collection-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.875rem;
  margin-block-start: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.article-card {
  display: grid;
  gap: 0.875rem;
}

.article-card-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.article-card-meta,
.article-meta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.article-card-title {
  margin-block: 0.25rem 0.5rem;
  font-size: 1.25rem;
}

.article-card-title a {
  text-decoration: none;
}

.article-card-excerpt {
  color: var(--color-text-muted);
}

.column-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.column-card-image {
  overflow: hidden;
  border-radius: var(--radius);
}

.column-card-title {
  margin: 0;
  font-size: 1.25rem;
}

/* ---------- Content sections ---------- */

.features {
  --grid-columns: 1;

  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.features-stacked .feature {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
}

.section-bg-primary .feature-icon {
  background: color-mix(in srgb, currentcolor 18%, transparent);
  color: inherit;
}

.feature-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: none;
}

.feature-text {
  margin: 0.125rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.section-bg-primary .feature-text {
  color: inherit;
}

.rich-text-action {
  margin-block: 1.5rem 0;
}

.media-text {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
}

.media-text-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.media-text-body {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.media-text-body > * {
  margin-block: 0;
}

.check-list {
  display: grid;
  gap: 0.5rem;
}

.check-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.check-list .icon {
  margin-block-start: 0.125rem;
  color: var(--color-success);
}

.banner {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--radius);
}

.banner-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.banner-dark {
  background: var(--color-text);
  color: var(--color-background);
}

.banner-accent {
  background: var(--color-accent);
  color: var(--color-accent-contrast);
}

.banner :focus-visible {
  outline-color: currentcolor;
}

.banner-image {
  grid-area: 1 / 1;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.banner-body {
  z-index: 1;
  display: grid;
  grid-area: 1 / 1;
  gap: 1rem;
  justify-items: start;
  padding: clamp(1.75rem, 6vw, 4rem);
}

.banner.text-center .banner-body {
  justify-items: center;
}

.banner-title {
  margin: 0;
  font-size: calc(clamp(1.5rem, 4vw, 2.5rem) * var(--heading-scale));
}

.banner-text {
  max-inline-size: 40rem;
  margin: 0;
  font-size: 1.125rem;
}

.testimonial {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
  color: var(--color-text);
}

.testimonial-stars {
  display: flex;
  gap: 0.125rem;
  margin: 0;
  color: var(--color-border);
}

.star .icon {
  inline-size: 1.125rem;
  block-size: 1.125rem;
}

.star-on {
  color: var(--color-accent);
}

.star-on .icon {
  fill: currentcolor;
}

.testimonial-quote {
  margin: 0;
  font-size: 1.0625rem;
}

.testimonial-author {
  margin: 0;
  color: var(--color-text-muted);
  font-weight: 600;
}

.accordion-item {
  border-block-end: 1px solid var(--color-border);
}

.accordion-item:first-child {
  border-block-start: 1px solid var(--color-border);
}

.accordion-summary {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-block-size: 3.25rem;
  padding-block: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-summary > .icon:last-child {
  margin-inline-start: auto;
  transition: transform 0.2s;
}

.accordion-item[open] > .accordion-summary > .icon:last-child {
  transform: rotate(180deg);
}

.accordion-body {
  padding-block-end: 1rem;
  color: var(--color-text-muted);
}

.logo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: center;
}

.logo-list-item img {
  max-inline-size: 9rem;
  max-block-size: 4rem;
  object-fit: contain;
}

.logo-list-name {
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.tabs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-block-end: 1.75rem;
}

.tab {
  min-block-size: 2.75rem;
  padding: 0.375rem 1.125rem;
  border: 1.5px solid var(--color-border);
  border-radius: 2rem;
  background: transparent;
  font-weight: 600;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.tab-panel-more {
  margin-block: 1.75rem 0;
  text-align: center;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 1.5rem;
}

.newsletter-form .input {
  flex: 1 1 14rem;
}

.contact-layout {
  display: grid;
  gap: 2rem 3rem;
}

.contact-details {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.contact-details-title {
  font-size: 1.25rem;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin-block-end: 1rem;
}

.contact-list li,
.footer-contact li {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* ---------- Product page ---------- */

.product {
  display: grid;
  gap: 2rem 3rem;
  align-items: start;
}

.gallery {
  position: relative;
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  border-radius: var(--radius);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  background: var(--color-surface);
  scroll-snap-align: start;
}

.gallery-controls {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  display: flex;
  gap: 0.375rem;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.75rem;
}

.gallery-thumb {
  inline-size: 4.5rem;
  block-size: 4.5rem;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.gallery-thumb img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.gallery-thumb[aria-current="true"] {
  border-color: var(--color-primary);
}

.product-info {
  display: grid;
  gap: 1rem;
}

.product-info > * {
  margin-block: 0;
}

.product-vendor {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-title {
  font-size: calc(clamp(1.5rem, 4vw, 2.25rem) * var(--heading-scale));
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  font-size: 1.5rem;
}

.stock {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  font-weight: 600;
}

.stock-in {
  color: var(--color-success);
}

.stock-low,
.stock-out {
  color: var(--color-danger);
}

.variant-picker {
  display: grid;
  gap: 1rem;
}

.variant-legend {
  margin-block-end: 0.5rem;
  font-weight: 700;
}

.variant-selected {
  font-weight: 400;
}

.variant-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.variant-value > span:not(.visually-hidden) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 3rem;
  min-block-size: 2.75rem;
  padding: 0.375rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--button-radius);
  cursor: pointer;
}

.variant-value input:checked + span {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}

.variant-value input:focus-visible + span {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.variant-value-unavailable > span:not(.visually-hidden) {
  border-style: dashed;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-modifiers {
  display: grid;
  gap: 1.25rem;
  margin-block-end: 1.25rem;
}

.modifier-hint {
  margin-block: -0.25rem 0.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.modifier-options {
  display: grid;
}

.modifier-option {
  display: flex;
}

.modifier-price {
  margin-inline-start: auto;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.product-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.product-add {
  flex: 1 1 12rem;
}

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--button-radius);
}

.quantity-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.quantity-button .icon {
  inline-size: 1rem;
  block-size: 1rem;
}

.quantity-input {
  inline-size: 3rem;
  block-size: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.product-sku {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.product-description {
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--color-border);
}

/* ---------- Collection, search, pages ---------- */

.page-banner {
  position: relative;
  display: grid;
  background: var(--color-surface);
}

.page-banner-media {
  grid-area: 1 / 1;
  inline-size: 100%;
  block-size: 100%;
  max-block-size: 20rem;
  object-fit: cover;
  opacity: 0.3;
}

.page-banner-body {
  z-index: 1;
  grid-area: 1 / 1;
  align-self: center;
  padding-block: clamp(1.5rem, 5vw, 3rem);
}

.page-title {
  margin: 0;
  font-size: calc(clamp(1.625rem, 5vw, 2.5rem) * var(--heading-scale));
}

.section-pad > .page-title {
  margin-block-end: 1.5rem;
}

.page-lead {
  max-inline-size: 44rem;
  margin-block: 0.75rem 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-block-end: 1.5rem;
}

.collection-count {
  flex: 1 1 100%;
  margin: 0;
  color: var(--color-text-muted);
}

.filter-panel > summary {
  list-style: none;
}

.filter-panel > summary::-webkit-details-marker {
  display: none;
}

.filter-panel-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  margin-block-start: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.filter-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-price legend {
  float: inline-start;
  margin-inline-end: 0.5rem;
  font-weight: 600;
}

.filter-price .input {
  inline-size: 6.5rem;
}

.collection-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-inline-start: auto;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  margin-block-start: 2.5rem;
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.pagination-link {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: center;
  min-inline-size: 2.75rem;
  min-block-size: 2.75rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
}

.pagination-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination-current {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-primary-contrast);
  font-weight: 700;
}

.pagination-current:hover {
  color: var(--color-primary-contrast);
}

.pagination-gap {
  padding-inline: 0.25rem;
}

.article-image {
  margin-block-end: 2rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.article .tag-list {
  margin-block: 2rem 1.5rem;
}

/* ---------- Cart ---------- */

.cart-lines {
  display: grid;
}

.cart-line {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  gap: 0.25rem 0.875rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--color-border);
}

.cart-line[aria-busy="true"] {
  opacity: 0.55;
}

.cart-line-image {
  inline-size: 5rem;
  block-size: 5rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.cart-line-image img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}

.cart-line-details {
  display: grid;
  gap: 0.125rem;
  align-content: start;
  min-inline-size: 0;
}

.cart-line-details p {
  margin: 0;
}

.cart-line-title {
  font-weight: 700;
  text-decoration: none;
}

.cart-line-variant,
.cart-line-price {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.cart-line-warning {
  color: var(--color-danger);
  font-size: 0.9375rem;
}

.cart-line-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  align-items: center;
  margin-block-start: 0.5rem;
}

.cart-line-total {
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}

.shipping-bar {
  margin-block-end: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.shipping-bar p {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.shipping-bar-done {
  color: var(--color-success);
  font-weight: 600;
}

.shipping-bar-track {
  block-size: 0.375rem;
  overflow: hidden;
  border-radius: 1rem;
  background: var(--color-border);
}

.shipping-bar-fill {
  display: block;
  block-size: 100%;
  border-radius: 1rem;
  background: var(--color-success);
}

.cart-totals {
  margin: 0;
}

.cart-totals > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: space-between;
  padding-block: 0.25rem;
}

.cart-totals dd {
  margin: 0;
  font-weight: 600;
}

.cart-totals-discount {
  color: var(--color-success);
}

.cart-totals-total {
  font-size: 1.1875rem;
  font-weight: 700;
}

.cart-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.cart-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.cart-main {
  display: grid;
  gap: 1rem;
  min-inline-size: 0;
}

.cart-summary {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--color-surface);
}

.cart-summary-title {
  margin: 0;
  font-size: 1.25rem;
}

.cart-discount-form {
  display: flex;
  gap: 0.5rem;
}

.cart-discount-form .input {
  flex: 1;
  min-inline-size: 0;
}

.cart-discount-applied {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.75rem;
  align-items: center;
  margin: 0;
  color: var(--color-success);
  font-weight: 600;
}

/* ---------- Footer and floating button ---------- */

.site-footer {
  background: var(--color-footer-background);
  color: var(--color-footer-text);
}

.site-footer :focus-visible {
  outline-color: currentcolor;
}

.site-footer-grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem 2rem;
}

.footer-heading {
  margin-block-end: 0.875rem;
  font-size: 1.0625rem;
}

.footer-links {
  display: grid;
  gap: 0.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.25rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-contact li {
  align-items: center;
}

.footer-column .social-links {
  margin-block-start: 0.75rem;
  margin-inline-start: -0.625rem;
}

.site-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  border-block-start: 1px solid color-mix(in srgb, currentcolor 20%, transparent);
  font-size: 0.9375rem;
}

.footer-copyright {
  margin: 0;
}

.payment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.payment-badge {
  padding: 0.125rem 0.625rem;
  border: 1px solid color-mix(in srgb, currentcolor 35%, transparent);
  border-radius: var(--radius);
  font-size: 0.8125rem;
}

.whatsapp-float {
  position: fixed;
  inset-block-end: 1.25rem;
  z-index: 15;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-inline-size: 3.25rem;
  min-block-size: 3.25rem;
  padding: 0.5rem 0.875rem;
  border-radius: 2rem;
  background: var(--color-success);
  color: var(--color-success-contrast);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--color-text) 30%, transparent);
}

.whatsapp-float-end {
  inset-inline-end: 1.25rem;
}

.whatsapp-float-start {
  inset-inline-start: 1.25rem;
}

/* ---------- Wider screens ---------- */

@media (width >= 36rem) {
  .grid-articles,
  .grid-columns,
  .features {
    --grid-columns: 2;
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .carousel-track {
    grid-auto-columns: calc((100% - var(--grid-gap) * 2) / 2.5);
  }
}

@media (width >= 48rem) {
  .grid {
    --grid-columns: min(var(--columns, 4), 3);
  }

  .features {
    --grid-columns: min(var(--columns, 4), 3);
  }

  .media-text,
  .product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-text-end .media-text-image {
    order: 2;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  }

  .cart-summary {
    position: sticky;
    inset-block-start: 6rem;
  }

  .site-footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }

  .footer-column-wide {
    grid-column: span 2;
  }

  .collection-count {
    flex: 0 1 auto;
    align-self: center;
  }

  .locale-switcher,
  .site-header-wishlist {
    display: inline-flex;
  }

  .product-gallery {
    position: sticky;
    inset-block-start: 6rem;
  }

  .modal .product-gallery {
    position: static;
  }
}

@media (width >= 62rem) {
  .grid,
  .features {
    --grid-columns: var(--columns, 4);
  }

  .carousel-track {
    grid-auto-columns: calc((100% - var(--grid-gap) * (var(--columns, 4) - 1)) / var(--columns, 4));
  }

  .site-nav {
    display: block;
    flex: 1;
  }

  .site-logo {
    margin-inline-end: 0;
  }

  .site-header-menu-button {
    display: none;
  }

  .header-stacked .site-header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .header-stacked .site-logo {
    order: 1;
    margin-inline-end: auto;
  }

  .header-stacked .site-header-actions {
    order: 2;
  }

  .header-stacked .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .header-stacked .site-nav-list {
    justify-content: center;
  }
}

@media (width < 36rem) {
  .hero-image-narrow {
    display: block;
  }

  .hero-image-wide:has(+ .hero-image-narrow) {
    display: none;
  }

  .cart-line {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .cart-line-image {
    inline-size: 4rem;
    block-size: 4rem;
  }

  .cart-line-total {
    grid-column: 2;
  }

  .search-form .button span:not(.visually-hidden) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* App blocks (blocks of the store's add-ons, rendered by the platform) */
.apps-list {
  display: grid;
  gap: 1.5rem;
}

.product-app {
  margin-block-start: 1.25rem;
}

/*
 * Meridian 2 - the services theme (docs/contracts/corporate-site.md §8).
 * 10 Foundation: derived colours, type, the grid, fields, the section head, buttons, links, product pictures.
 *
 * The look is the product's own (BR6-BR9, BR11): Horizon blue, SAP 72 with Tajawal, flat fields - paper,
 * mist, ink, primary - hairlines, figures in 72 Mono, and real fragments of the product instead of illustration.
 * Colours come from the design tokens only; everything else is derived from them with color-mix().
 */

.meridian {
  /* Fields and lines */
  --m-paper: var(--color-background);
  --m-mist: var(--color-surface);
  --m-ink: var(--color-footer-background);
  --m-on-ink: var(--color-footer-text);
  --m-text: var(--color-text);
  --m-muted: var(--color-text-muted);
  --m-line: var(--color-border);
  --m-line-strong: color-mix(in srgb, var(--color-text) 26%, var(--color-background));
  --m-primary: var(--color-primary);
  --m-on-primary: var(--color-primary-contrast);
  --m-primary-deep: color-mix(in srgb, var(--color-primary) 80%, var(--color-text));
  --m-primary-tint: color-mix(in srgb, var(--color-primary) 6%, var(--color-background));
  --m-primary-wash: color-mix(in srgb, var(--color-primary) 13%, var(--color-background));
  --m-ink-raised: color-mix(in srgb, var(--color-footer-text) 7%, var(--color-footer-background));
  --m-on-ink-muted: color-mix(in srgb, var(--color-footer-text) 68%, var(--color-footer-background));
  --m-on-ink-line: color-mix(in srgb, var(--color-footer-text) 17%, var(--color-footer-background));
  --m-primary-on-ink: color-mix(in srgb, var(--color-primary) 58%, var(--color-footer-text));
  --m-shadow: color-mix(in srgb, var(--color-text) 16%, transparent);

  /* The field an element sits on (the .m-f-* classes change these). */
  --f-bg: var(--m-paper);
  --f-text: var(--m-text);
  --f-muted: var(--m-muted);
  --f-line: var(--m-line);
  --f-line-strong: var(--m-line-strong);
  --f-accent: var(--m-primary-deep);
  --f-mark: var(--m-primary);
  --f-raised: var(--m-mist);

  /* Motion: the brand's easings and four durations (positive-motion: professional profile). */
  --m-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --m-ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --m-ease-in: cubic-bezier(0.4, 0, 1, 1);
  --m-fast: 100ms;
  --m-quick: 200ms;
  --m-base: 320ms;
  --m-slow: 560ms;
  --m-dir: 1;
  --sf-reveal-duration: var(--m-slow);
  --sf-reveal-ease: var(--m-ease-out);
  --sf-reveal-stagger: 70ms;
  --sf-reveal-from: translateY(1.25rem);

  /* Layout */
  --m-gutter: clamp(1.25rem, 4.2vw, 3rem);
  --m-gap: clamp(1rem, 2.2vw, 2rem);
  --m-sec: clamp(4.5rem, 8.5vw, 8rem);
  --m-r: min(var(--radius), 0.875rem);
  --m-r-sm: min(var(--radius), 0.5rem);
  --m-header-h: 4.25rem;
  --m-bar-h: 3.5rem;

  /* 72 Mono has Latin only: Arabic in a mono place takes Positive Sans's Tajawal at the same weight (BR11). */
  --m-mono: "Positive Mono", "Positive Sans", ui-monospace, "SF Mono", "Cascadia Mono", menlo, consolas, monospace;

  overflow-wrap: break-word;
  color: var(--m-text);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;
  -webkit-tap-highlight-color: transparent;
}

/* Right-to-left pages move the other way: entrances come from the right, arrows point left. */
[dir="rtl"] .meridian {
  --m-dir: -1;
}

.meridian .main-content {
  /* Sections number themselves (the marker of a section head). */
  counter-reset: m-section;
}

.meridian :where(h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote) {
  margin: 0;
}

.meridian :where(ul, ol)[class] {
  padding: 0;
  list-style: none;
}

.meridian :where(h1, h2, h3, h4) {
  text-wrap: balance;
}

.meridian :where(p, li, dd) {
  text-wrap: pretty;
}

.meridian :where(a) {
  color: inherit;
}

/* Code in a page or an article (rich text from the ERP): 72 Mono, its Arabic in Tajawal - not the browser's monospace. */
.meridian :where(code, kbd, samp, pre) {
  font-family: var(--m-mono);
}

.meridian :focus-visible {
  outline: 2px solid var(--f-mark);
  outline-offset: 3px;
  border-radius: 2px;
}

.meridian ::selection {
  background: var(--m-primary-wash);
}

/* ---------- Type ---------- */

/* Statements are set light with one part in semibold: the weight carries the emphasis, not colour. */
.m-display {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.6vw + 0.9rem, 4.75rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.024em;
}

.m-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 2.7vw + 0.85rem, 3.125rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.m-display strong,
.m-h2 strong,
.m-strong {
  font-weight: 600;
}

.m-h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 0.8vw + 1.05rem, 1.625rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.m-h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
}

.m-lead {
  color: var(--f-muted);
  font-size: clamp(1.0625rem, 0.42vw + 0.98rem, 1.25rem);
  line-height: 1.6;
}

.m-text {
  color: var(--f-muted);
  line-height: 1.65;
}

.m-small {
  font-size: 0.875rem;
  line-height: 1.55;
}

.m-figure {
  font-family: var(--m-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Arabic: no tracking, taller lines (the script needs the room), one size down - Plex Arabic runs large. */
.meridian:lang(ar) .m-display {
  font-size: clamp(2.25rem, 4vw + 0.85rem, 4.125rem);
  line-height: 1.3;
  letter-spacing: 0;
}

.meridian:lang(ar) .m-h2 {
  font-size: clamp(1.75rem, 2.4vw + 0.8rem, 2.75rem);
  line-height: 1.38;
  letter-spacing: 0;
}

.meridian:lang(ar) .m-h3 {
  line-height: 1.5;
  letter-spacing: 0;
}

.meridian:lang(ar) :where(.m-lead, .m-text) {
  line-height: 1.85;
}

/* The marker above a statement: the brand's square module, a running number in 72 Mono, a short label. */
.m-marker {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  color: var(--f-muted);
  font-family: var(--m-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.m-marker::before {
  flex: none;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  background: var(--f-mark);
  content: "";
}

.m-marker-count {
  counter-increment: m-section;
}

.m-marker-count::after {
  order: -1;
  color: var(--f-text);
  content: counter(m-section, decimal-leading-zero);
}

.m-marker-count::before {
  order: -2;
}

/* Arabic has no capitals to borrow: the label keeps its own face and size. */
.meridian:lang(ar) .m-marker {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0;
}

.meridian:lang(ar) .m-marker-count::after {
  font-family: var(--m-mono);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* ---------- Layout ---------- */

.m-wrap {
  inline-size: min(100% - 2 * var(--m-gutter), var(--page-width));
  margin-inline: auto;
}

.m-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--m-gap);
}

.m-sec {
  position: relative;
  padding-block: var(--m-sec);
  background: var(--f-bg);
  color: var(--f-text);
}

.m-sec-tight {
  padding-block: calc(var(--m-sec) * 0.6);
}

/* Fields */
.m-f-mist {
  --f-bg: var(--m-mist);
  --f-raised: var(--m-paper);
}

.m-f-tint {
  --f-bg: var(--m-primary-tint);
  --f-raised: var(--m-paper);
}

.m-f-ink {
  --f-bg: var(--m-ink);
  --f-text: var(--m-on-ink);
  --f-muted: var(--m-on-ink-muted);
  --f-line: var(--m-on-ink-line);
  --f-line-strong: color-mix(in srgb, var(--m-on-ink) 42%, var(--m-ink));
  --f-accent: var(--m-primary-on-ink);
  --f-mark: var(--m-primary-on-ink);
  --f-raised: var(--m-ink-raised);
}

.m-f-primary {
  --f-bg: var(--m-primary);
  --f-text: var(--m-on-primary);
  --f-muted: color-mix(in srgb, var(--m-on-primary) 86%, var(--m-primary));
  --f-line: color-mix(in srgb, var(--m-on-primary) 28%, var(--m-primary));
  --f-line-strong: color-mix(in srgb, var(--m-on-primary) 60%, var(--m-primary));
  --f-accent: var(--m-on-primary);
  --f-mark: var(--m-on-primary);
  --f-raised: color-mix(in srgb, var(--m-on-primary) 10%, var(--m-primary));
}

/* The head of a section: a hairline that draws in, the marker and statement at the start, the deck at the end. */
.m-head {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem var(--m-gap);
  align-items: end;
  margin-block-end: clamp(2.5rem, 5vw, 4.5rem);
  padding-block-start: clamp(1.25rem, 2vw, 1.75rem);
}

.m-rule {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  block-size: 1px;
  background: var(--f-line-strong);
  transform-origin: 0 50%;

  --sf-reveal-from: scaleX(0);
  --sf-reveal-duration: 0.9s;
}

[dir="rtl"] .m-rule {
  transform-origin: 100% 50%;
}

.m-head-main {
  display: grid;
  grid-column: 1 / -1;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.m-head-side {
  grid-column: 1 / -1;
  max-inline-size: 38rem;
}

@media (width >= 900px) {
  .m-head-main {
    grid-column: 1 / span 7;
  }

  .m-head-side {
    grid-column: 9 / span 4;
    padding-block-end: 0.375rem;
  }

  .m-head-wide .m-head-main {
    grid-column: 1 / span 9;
  }
}

/* ---------- Buttons and links ---------- */

.meridian .button {
  position: relative;
  gap: 0.5rem;
  min-block-size: 2.75rem;
  padding: 0.5625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--button-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  transition:
    background-color var(--m-fast) var(--m-ease-out),
    border-color var(--m-fast) var(--m-ease-out),
    color var(--m-fast) var(--m-ease-out),
    transform var(--m-fast) var(--m-ease-out);
}

.meridian .button:active {
  transform: scale(0.98);
}

.meridian .button-primary {
  border-color: var(--m-primary);
  background: var(--m-primary);
  color: var(--m-on-primary);
}

.meridian .button-secondary {
  border-color: var(--f-line-strong);
  background: transparent;
  color: var(--f-text);
}

.meridian .button-large {
  min-block-size: 3.25rem;
  padding-inline: 1.625rem;
  font-size: 1rem;
}

.meridian .button .m-icon {
  flex: none;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  transition: translate var(--m-quick) var(--m-ease-out);
}

@media (hover: hover) {
  .meridian .button-primary:hover {
    border-color: var(--m-primary-deep);
    background: var(--m-primary-deep);
  }

  .meridian .button-secondary:hover {
    border-color: var(--f-text);
    background: color-mix(in srgb, var(--f-text) 6%, transparent);
  }

  .meridian .button:hover .m-icon-arrow {
    translate: calc(var(--m-dir) * 0.1875rem) 0;
  }
}

/* On the primary field the main action turns white. */
.m-f-primary .button-primary {
  border-color: var(--m-on-primary);
  background: var(--m-on-primary);
  color: var(--m-primary-deep);
}

@media (hover: hover) {
  .meridian .m-f-primary .button-primary:hover {
    border-color: var(--m-on-primary);
    background: color-mix(in srgb, var(--m-on-primary) 90%, var(--m-primary));
  }
}

.m-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* A named link with an arrow: the line grows from the reading side, the arrow moves on. */
.m-more {
  position: relative;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding-block: 0.25rem;
  color: var(--f-accent);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.m-more::after {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  block-size: 1px;
  background: currentcolor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--m-base) var(--m-ease-out);
  content: "";
}

[dir="rtl"] .m-more::after {
  transform-origin: 100% 50%;
}

.m-more .m-icon {
  flex: none;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  transition: translate var(--m-quick) var(--m-ease-out);
}

@media (hover: hover) {
  .m-more:hover::after {
    transform: scaleX(1);
  }

  .m-more:hover .m-icon {
    translate: calc(var(--m-dir) * 0.25rem) 0;
  }
}

.m-more:active {
  opacity: 0.7;
}

/* Arrows point the way the page reads. */
[dir="rtl"] .m-icon-arrow {
  scale: -1 1;
}

.m-icon {
  inline-size: 1.5rem;
  block-size: 1.5rem;
}

/* ---------- Pictures of the product ---------- */

/*
 * A fragment of the product: the capture itself (a white rectangle), framed by the page - one hairline and one
 * radius at every size, so fragments of different scale sit together.
 */
.m-shot {
  overflow: clip;
  border: 1px solid var(--f-line);
  border-radius: var(--m-r);
  background: var(--color-background);
}

.m-shot-img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.m-shot-lift {
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--color-text) 8%, transparent),
    0 18px 40px -18px var(--m-shadow),
    0 40px 80px -40px var(--m-shadow);
}

.m-f-ink .m-shot {
  border-color: transparent;
}

/* A caption under a picture, in the ledger's small mono. */
.m-caption {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-block-start: 0.75rem;
  color: var(--f-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* ---------- Small parts ---------- */

.m-chip {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--f-line);
  border-radius: 999px;
  color: var(--f-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
}

.m-visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The brand's module pattern as a quiet field texture: never behind text (it is masked away from the copy side). */
.m-pattern {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.m-pattern::after {
  position: absolute;
  inset-block: -10%;
  inset-inline-end: -6%;
  inline-size: min(62%, 52rem);
  background: url("positive-pattern.svg") center / cover no-repeat;
  opacity: 0.5;
  content: "";
  mask-image: linear-gradient(to right, transparent, var(--color-text) 55%);
}

[dir="rtl"] .m-pattern::after {
  mask-image: linear-gradient(to left, transparent, var(--color-text) 55%);
}

@media (width < 700px) {
  .m-pattern::after {
    inset-block: auto -12%;
    inline-size: 120%;
    block-size: 46%;
    opacity: 0.35;
    mask-image: linear-gradient(to bottom, transparent, var(--color-text) 70%);
  }

  [dir="rtl"] .m-pattern::after {
    mask-image: linear-gradient(to bottom, transparent, var(--color-text) 70%);
  }
}

/* ==== 15 Colour: the house green, the brand's other accents for the product's range, fields that move ==== */

.meridian {
  /* The accent is bright: text and links on light fields use it darkened towards the text colour. */
  --m-primary-deep: color-mix(in srgb, var(--color-primary) 48%, var(--color-text));
  --m-primary-tint: color-mix(in srgb, var(--color-primary) 9%, var(--color-background));
  --m-primary-wash: color-mix(in srgb, var(--color-primary) 20%, var(--color-background));
  --m-primary-hover: color-mix(in srgb, var(--color-primary) 84%, var(--color-text));
  --hue: var(--color-primary);
}

@media (hover: hover) {
  .meridian .button-primary:hover {
    border-color: var(--m-primary-hover);
    background: var(--m-primary-hover);
    color: var(--m-on-primary);
  }

  .m-news-link:hover .m-news-go-mark {
    color: var(--m-on-primary);
  }
}

/*
 * A list about the range of the product (areas, industries, facts) gives each item one of the brand's accents, in a
 * fixed order; the item's marks - its number, icon, progress line - take it.
 */
.m-hues > :nth-child(10n + 1) {
  --hue: var(--color-primary);
}

.m-hues > :nth-child(10n + 2) {
  --hue: var(--color-hue-blue);
}

.m-hues > :nth-child(10n + 3) {
  --hue: var(--color-hue-violet);
}

.m-hues > :nth-child(10n + 4) {
  --hue: var(--color-hue-rose);
}

.m-hues > :nth-child(10n + 5) {
  --hue: var(--color-hue-orange);
}

.m-hues > :nth-child(10n + 6) {
  --hue: var(--color-hue-teal);
}

.m-hues > :nth-child(10n + 7) {
  --hue: var(--color-hue-indigo);
}

.m-hues > :nth-child(10n + 8) {
  --hue: var(--color-hue-red);
}

.m-hues > :nth-child(10n + 9) {
  --hue: var(--color-hue-gold);
}

.m-hues > :nth-child(10n + 10) {
  --hue: var(--color-hue-sky);
}

.m-hues > * {
  --f-mark: var(--hue);
}

.m-hues .m-tour-tab-no,
.m-hues .m-show-no,
.m-hues .m-row-no {
  color: var(--hue);
  opacity: 1;
}

.m-hues .m-mega-link-icon {
  border-color: color-mix(in srgb, var(--hue) 30%, transparent);
  background: color-mix(in srgb, var(--hue) 10%, transparent);
  color: color-mix(in srgb, var(--hue) 72%, var(--color-text));
}

@media (hover: hover) {
  .m-hues .m-mega-link:hover .m-mega-link-icon {
    border-color: var(--hue);
    background: var(--hue);
    color: var(--color-background);
  }

  .m-hues .m-row-link:hover .m-row-go {
    color: var(--hue);
  }
}

/* A fact wears its accent as a bar above its figure. */
.m-hues > .m-fact::before {
  inline-size: 2.5rem;
  block-size: 0.25rem;
  margin-block-end: 0.75rem;
  background: var(--hue);
  content: "";
}

.m-hues .m-row-name::before {
  display: inline-block;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  margin-inline-end: 0.75rem;
  background: var(--hue);
  vertical-align: 0.15em;
  content: "";
}

/*
 * Fields that move: two large soft lights in the brand's accents drift slowly behind a section's content (the
 * opening, dark and tinted sections, the close). Transform only; still for visitors who asked for less motion.
 */
.m-hero,
.m-page-head,
.m-sec.m-f-ink,
.m-sec.m-f-mist,
.m-sec.m-f-tint {
  --aura-a: var(--color-primary);
  --aura-b: var(--color-hue-blue);
  --aura-strength: 15%;

  position: relative;
  overflow: clip;
  isolation: isolate;
}

.m-f-ink {
  --aura-strength: 30%;
}

.m-hero::before,
.m-hero::after,
.m-page-head::before,
.m-page-head::after,
.m-sec.m-f-ink::before,
.m-sec.m-f-ink::after,
.m-sec.m-f-mist::before,
.m-sec.m-f-mist::after,
.m-sec.m-f-tint::before,
.m-sec.m-f-tint::after {
  position: absolute;
  z-index: -1;
  inline-size: min(60rem, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--aura-a) var(--aura-strength), transparent),
    transparent
  );
  pointer-events: none;
  content: "";
}

.m-hero::before,
.m-page-head::before,
.m-sec.m-f-ink::before,
.m-sec.m-f-mist::before,
.m-sec.m-f-tint::before {
  inset-block-start: -22rem;
  inset-inline-end: -14rem;
}

.m-hero::after,
.m-page-head::after,
.m-sec.m-f-ink::after,
.m-sec.m-f-mist::after,
.m-sec.m-f-tint::after {
  inset-block-end: -26rem;
  inset-inline-start: -16rem;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--aura-b) var(--aura-strength), transparent),
    transparent
  );
}

/* Each section down the page takes another pair of accents. */
.main-content > .sf-section:nth-child(4n + 2) > * {
  --aura-a: var(--color-hue-violet);
  --aura-b: var(--color-hue-sky);
}

.main-content > .sf-section:nth-child(4n + 3) > * {
  --aura-a: var(--color-hue-teal);
  --aura-b: var(--color-hue-indigo);
}

.main-content > .sf-section:nth-child(4n + 4) > * {
  --aura-a: var(--color-hue-rose);
  --aura-b: var(--color-hue-orange);
}

.m-close {
  --aura-a: var(--color-primary);
  --aura-b: var(--color-hue-teal);
}

@media (prefers-reduced-motion: no-preference) {
  .m-hero::before,
  .m-page-head::before,
  .m-sec.m-f-ink::before,
  .m-sec.m-f-mist::before,
  .m-sec.m-f-tint::before {
    animation: m-drift-a 24s var(--m-ease-std) infinite alternate;
  }

  .m-hero::after,
  .m-page-head::after,
  .m-sec.m-f-ink::after,
  .m-sec.m-f-mist::after,
  .m-sec.m-f-tint::after {
    animation: m-drift-b 30s var(--m-ease-std) infinite alternate;
  }
}

@keyframes m-drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(calc(var(--m-dir) * -18rem), 12rem, 0) scale(1.2);
  }
}

@keyframes m-drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1.1);
  }

  to {
    transform: translate3d(calc(var(--m-dir) * 22rem), -10rem, 0) scale(0.9);
  }
}

/* ==== 20 Header: announcement line, header, menu panels, drawer, the in-page bar ==== */

/* The engine wraps every section; sticky parts stick through their wrapper (the wrapper is main's or body's child). */
.meridian .sf-section:has(> .m-header-sticky) {
  position: sticky;
  inset-block-start: 0;
  z-index: 40;
}

/* On a page with the in-page bar the header scrolls away and the bar stays. */

/* Not stuck, but still above the page: its menus open over the section that follows. */
.meridian:has(.m-bar) .sf-section:has(> .m-header-sticky) {
  position: relative;
}

.meridian .sf-section[data-section-type="anchor-nav"] {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
}

.meridian .sf-section {
  scroll-margin-block-start: calc(var(--m-header-h) + 1rem);
}

.meridian:has(.m-bar) .sf-section {
  scroll-margin-block-start: calc(var(--m-bar-h) + 0.5rem);
}

/* ---------- Announcement ---------- */

.m-announce {
  display: block;
  background: var(--m-ink);
  color: var(--m-on-ink);
  font-size: 0.875rem;
}

.m-announce-inner {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  min-block-size: 2.5rem;
  padding-block: 0.375rem;
}

.m-announce-text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
}

.m-announce-tag {
  padding: 0.0625rem 0.5rem;
  border: 1px solid var(--m-on-ink-line);
  border-radius: 999px;
  color: var(--m-primary-on-ink);
  font-family: var(--m-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meridian:lang(ar) .m-announce-tag {
  font-family: var(--font-body);
  letter-spacing: 0;
}

.m-announce-link {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  text-decoration: none;
}

.m-announce-link .m-icon {
  inline-size: 1rem;
  block-size: 1rem;
  transition: translate var(--m-quick) var(--m-ease-out);
}

@media (hover: hover) {
  .m-announce-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .m-announce-link:hover .m-icon {
    translate: calc(var(--m-dir) * 0.1875rem) 0;
  }
}

.meridian .m-announce-close {
  inline-size: 2rem;
  block-size: 2rem;
  margin-inline-end: -0.5rem;
  color: var(--m-on-ink-muted);
}

.meridian .m-announce-close .icon {
  inline-size: 1rem;
  block-size: 1rem;
}

/* ---------- Header ---------- */

.m-header {
  position: relative;
  display: block;
  background: var(--color-header-background);
  color: var(--color-header-text);
  transition: transform var(--m-base) var(--m-ease-out);
}

/* A hairline appears once the page has moved under the header. */
.m-header::after {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  block-size: 1px;
  background: var(--m-line);
  opacity: 0;
  transition: opacity var(--m-quick) var(--m-ease-out);
  content: "";
}

.m-header.is-scrolled::after,
.m-header:has(.m-mega[open])::after {
  opacity: 1;
}

.m-header-inner {
  display: flex;
  gap: clamp(0.75rem, 2vw, 2rem);
  align-items: center;
  min-block-size: var(--m-header-h);
}

.m-brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.m-brand-lockup,
.m-brand-image {
  display: block;
  inline-size: auto;
  max-inline-size: var(--logo-width);
  block-size: 2.25rem;
}

/*
 * The Positive lockup keeps its own proportions (787 x 192): capped at the logo width it was squeezed by a few percent,
 * which put the mark's squares between pixels and blurred it. At 36 px tall one square is exactly 9 px (8 px on phones).
 */
.m-brand-picture {
  display: block;
}

.m-brand .m-brand-lockup {
  /* A whole number of pixels wide (36 x 4.1 = 147.6 would not be): right-aligned in Arabic, a fractional width put the
     left edge between pixels and blurred the word on 1x screens. The picture sits at the box's left, on a whole pixel. */
  inline-size: 9.25rem;
  max-inline-size: none;
  object-fit: contain;
  object-position: left center;
}

.m-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.meridian .m-header-burger {
  display: none;
  margin-inline-start: -0.625rem;
  border-radius: var(--m-r-sm);
}

.m-nav {
  flex: 1;
  min-inline-size: 0;
}

.m-nav-menu {
  display: block;
}

.m-nav-list {
  display: flex;
  gap: 0.125rem;
  align-items: center;
}

.m-nav-link {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  min-block-size: 2.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--m-r-sm);
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
  transition:
    background-color var(--m-fast) var(--m-ease-out),
    color var(--m-fast) var(--m-ease-out);
}

.m-nav-link::-webkit-details-marker {
  display: none;
}

.m-nav-link .icon {
  inline-size: 1rem;
  block-size: 1rem;
  color: var(--m-muted);
  transition: rotate var(--m-quick) var(--m-ease-out);
}

.m-mega[open] > .m-nav-link .icon {
  rotate: 180deg;
}

.m-nav-link[aria-current="page"],
.m-nav-link.is-active {
  color: var(--m-primary-deep);
}

.m-mega[open] > .m-nav-link {
  background: var(--m-mist);
}

@media (hover: hover) {
  .m-nav-link:hover {
    background: var(--m-mist);
  }
}

/* The panel: full width under the header for a long list, a small sheet for a short one. */
.m-mega-panel {
  position: absolute;
  inset-block-start: 100%;
  inset-inline: 0;
  z-index: 5;
  border-block-end: 1px solid var(--m-line);
  background: var(--color-header-background);
  box-shadow: 0 24px 48px -24px var(--m-shadow);
}

.m-mega-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: var(--m-gap);
  padding-block: 2rem 2.5rem;
}

.m-mega-intro {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  justify-items: start;
  padding-inline-end: 1rem;
}

.m-mega-title {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.meridian:lang(ar) .m-mega-title {
  letter-spacing: 0;
}

.m-mega-text {
  color: var(--m-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.m-mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 1rem;
  align-content: start;
}

.m-mega-intro + .m-mega-links {
  padding-inline-start: var(--m-gap);
  border-inline-start: 1px solid var(--m-line);
}

.m-mega-link {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.625rem 0.75rem;
  border-radius: var(--m-r-sm);
  text-decoration: none;
  transition: background-color var(--m-fast) var(--m-ease-out);
}

.m-mega-link-icon {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-sm);
  color: var(--m-primary-deep);
  transition:
    background-color var(--m-fast) var(--m-ease-out),
    border-color var(--m-fast) var(--m-ease-out),
    color var(--m-fast) var(--m-ease-out);
}

.m-mega-link-icon .m-icon {
  inline-size: 1.25rem;
  block-size: 1.25rem;
}

.m-mega-link-body {
  display: grid;
  gap: 0.125rem;
  min-inline-size: 0;
}

.m-mega-link-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.m-mega-link-text {
  color: var(--m-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.m-mega-link[aria-current="page"] .m-mega-link-title {
  color: var(--m-primary-deep);
}

@media (hover: hover) {
  .m-mega-link:hover {
    background: var(--m-mist);
  }

  .m-mega-link:hover .m-mega-link-icon {
    border-color: var(--m-primary);
    background: var(--m-primary);
    color: var(--m-on-primary);
  }
}

.m-mega-link:active {
  background: var(--m-primary-tint);
}

.m-mega-feature {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border-radius: var(--m-r);
  background: var(--m-mist);
  text-decoration: none;
  transition: background-color var(--m-fast) var(--m-ease-out);
}

.m-mega-feature-shot {
  display: block;
}

.m-mega-feature-title {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 600;
}

.m-mega-feature-title .m-icon {
  inline-size: 1rem;
  block-size: 1rem;
  transition: translate var(--m-quick) var(--m-ease-out);
}

.m-mega-feature-text {
  color: var(--m-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (hover: hover) {
  .m-mega-feature:hover {
    background: var(--m-primary-tint);
  }

  .m-mega-feature:hover .m-icon {
    translate: calc(var(--m-dir) * 0.1875rem) 0;
  }
}

/* A short list opens as a sheet under its own item. */
.m-mega-compact {
  position: relative;
}

.m-mega-compact > .m-mega-panel {
  inset-block-start: calc(100% + 0.875rem);
  inset-inline: 0 auto;
  inline-size: max-content;
  min-inline-size: 16rem;
  max-inline-size: 22rem;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
}

.m-mega-compact .m-mega-inner {
  display: block;
  inline-size: auto;
  margin: 0;
  padding: 0.5rem;
}

.m-mega-compact .m-mega-intro,
.m-mega-compact .m-mega-feature {
  display: none;
}

.m-mega-compact .m-mega-links {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  border: 0;
}

/* Opening: the panel comes down a short way and the links follow from the reading side (enter fast). */
@media (prefers-reduced-motion: no-preference) {
  .m-mega[open] > .m-mega-panel {
    animation: m-panel-in var(--m-quick) var(--m-ease-std) both;
  }

  .m-mega[open] .m-mega-intro,
  .m-mega[open] .m-mega-links > li,
  .m-mega[open] .m-mega-feature {
    animation: m-item-in var(--m-base) var(--m-ease-out) both;
    animation-delay: calc(40ms + var(--i, 0) * 24ms);
  }

  .m-mega-links > li:nth-child(2) {
    --i: 1;
  }

  .m-mega-links > li:nth-child(3) {
    --i: 2;
  }

  .m-mega-links > li:nth-child(4) {
    --i: 3;
  }

  .m-mega-links > li:nth-child(5) {
    --i: 4;
  }

  .m-mega-links > li:nth-child(6) {
    --i: 5;
  }

  .m-mega-links > li:nth-child(7) {
    --i: 6;
  }

  .m-mega-links > li:nth-child(n + 8) {
    --i: 7;
  }

  .m-mega-feature {
    --i: 5;
  }
}

@keyframes m-panel-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
}

@keyframes m-item-in {
  from {
    opacity: 0;
    transform: translateX(calc(var(--m-dir) * -0.75rem));
  }
}

.m-header-actions {
  display: flex;
  flex: none;
  gap: 0.25rem;
  align-items: center;
  margin-inline-start: auto;
}

.m-header-quiet {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  min-block-size: 2.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--m-r-sm);
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--m-fast) var(--m-ease-out);
}

.m-header-quiet .icon {
  inline-size: 1.125rem;
  block-size: 1.125rem;
  color: var(--m-muted);
}

@media (hover: hover) {
  .m-header-quiet:hover {
    background: var(--m-mist);
  }
}

.meridian .m-header-cta {
  margin-inline-start: 0.5rem;
}

@media (width < 1180px) {
  .m-header-wide {
    display: none;
  }
}

@media (width < 1000px) {
  .meridian {
    --m-header-h: 3.75rem;
  }

  .m-nav {
    display: none;
  }

  .meridian .m-header-burger {
    display: inline-flex;
  }

  .m-brand-lockup,
  .m-brand-image {
    block-size: 2rem;
  }

  .m-brand .m-brand-lockup {
    inline-size: 8.25rem;
  }

  /* Out of the way while reading down, back on the first scroll up. */
  .m-header.is-hidden {
    transform: translateY(-101%);
  }

  .meridian .sf-section:has(> .m-header.is-hidden) {
    pointer-events: none;
  }
}

@media (width < 560px) {
  .m-header-locale span {
    display: none;
  }

  .meridian .m-header-cta {
    min-block-size: 2.5rem;
    margin-inline-start: 0.125rem;
    padding-inline: 0.875rem;
    font-size: 0.875rem;
  }
}

/* ---------- Drawer (phones) ---------- */

.meridian .m-drawer {
  display: flex;
  flex-direction: column;
  inline-size: min(24rem, 100% - 2.5rem);
}

.meridian .m-drawer:not([open]) {
  display: none;
}

.m-drawer-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-block-size: var(--m-header-h);
  padding-inline: 1.25rem 0.75rem;
  border-block-end: 1px solid var(--m-line);
}

.m-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.25rem 1.5rem;
  overscroll-behavior: contain;
}

.m-drawer-link {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  min-block-size: 3.25rem;
  border-block-end: 1px solid var(--m-line);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.m-drawer-link::-webkit-details-marker {
  display: none;
}

.m-drawer-link .icon {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  color: var(--m-muted);
  transition: rotate var(--m-quick) var(--m-ease-out);
}

.m-drawer-group[open] > .m-drawer-link .icon {
  rotate: 180deg;
}

.m-drawer-link[aria-current="page"] {
  color: var(--m-primary-deep);
}

.m-drawer-sub {
  display: grid;
  padding-block: 0.375rem 0.75rem;
  border-block-end: 1px solid var(--m-line);
}

.m-drawer-sublink {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-block-size: 2.75rem;
  padding-inline: 0.25rem;
  border-radius: var(--m-r-sm);
  color: var(--m-text);
  text-decoration: none;
}

.m-drawer-sublink .m-icon {
  flex: none;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  color: var(--m-primary-deep);
}

.m-drawer-sublink[aria-current="page"] {
  color: var(--m-primary-deep);
  font-weight: 600;
}

.m-drawer-sublink:active,
.m-drawer-link:active {
  background: var(--m-mist);
}

.m-drawer-foot {
  display: grid;
  flex: none;
  gap: 0.875rem;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--m-line);
  background: var(--m-paper);
}

.m-drawer-actions {
  display: grid;
  gap: 0.5rem;
}

.m-drawer-quiet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--m-muted);
  font-size: 0.9375rem;
}

.m-drawer-quiet a {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  min-block-size: 2.5rem;
  text-decoration: none;
}

.m-drawer-quiet .icon {
  inline-size: 1.125rem;
  block-size: 1.125rem;
}

/* The drawer slides in from the reading side over a scrim that fades (CSS only: the dialog is the platform's). */
@media (prefers-reduced-motion: no-preference) {
  .meridian .m-drawer[open] {
    animation: m-drawer-in var(--m-base) var(--m-ease-out) both;
  }

  .meridian .m-drawer[open]::backdrop {
    animation: m-fade-in var(--m-base) var(--m-ease-out) both;
  }

  .m-drawer[open] .m-drawer-list > li {
    animation: m-item-in var(--m-base) var(--m-ease-out) both;
    animation-delay: calc(80ms + var(--i, 0) * 30ms);
  }

  .m-drawer-list > li:nth-child(2) {
    --i: 1;
  }

  .m-drawer-list > li:nth-child(3) {
    --i: 2;
  }

  .m-drawer-list > li:nth-child(4) {
    --i: 3;
  }

  .m-drawer-list > li:nth-child(n + 5) {
    --i: 4;
  }
}

@keyframes m-drawer-in {
  from {
    transform: translateX(calc(var(--m-dir) * -100%));
  }
}

@keyframes m-fade-in {
  from {
    opacity: 0;
  }
}

/* ---------- The in-page bar ---------- */

.m-bar {
  position: relative;
  border-block-end: 1px solid var(--m-line);
  background: color-mix(in srgb, var(--m-paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
}

.m-bar-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-block-size: var(--m-bar-h);
}

.m-bar-spy {
  flex: 1;
  min-inline-size: 0;
}

.m-bar-list {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  overflow-x: auto;
  margin-inline: -0.75rem;
  padding-inline: 0.75rem;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent, var(--color-text) 0.75rem calc(100% - 1.75rem), transparent);
}

.m-bar-list::-webkit-scrollbar {
  display: none;
}

.m-bar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-block-size: 2.25rem;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  color: var(--m-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  scroll-snap-align: center;
  transition:
    background-color var(--m-quick) var(--m-ease-out),
    color var(--m-quick) var(--m-ease-out);
}

.m-bar-link[aria-current="true"] {
  background: var(--m-ink);
  color: var(--m-on-ink);
}

@media (hover: hover) {
  .m-bar-link:not([aria-current="true"]):hover {
    background: var(--m-mist);
    color: var(--m-text);
  }
}

.m-bar-actions {
  flex: none;
}

.meridian .m-bar-actions .button {
  min-block-size: 2.25rem;
  padding: 0.3125rem 1rem;
  font-size: 0.875rem;
}

/* The bar's action shows once the hero's own actions have left the screen (scroll-driven where supported). */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .m-bar-actions {
      animation: m-bar-action linear both;
      animation-timeline: scroll(root block);
      animation-range: 22rem 30rem;
    }
  }
}

@keyframes m-bar-action {
  from {
    opacity: 0;
    transform: translateY(0.375rem);
    visibility: hidden;
  }

  to {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
}

@media (width < 700px) {
  .meridian {
    --m-bar-h: 3.25rem;
  }

  .m-bar-inner {
    gap: 0.5rem;
  }
}

/* Short screens (a phone on its side) keep nothing stuck. */
@media (height < 30rem) {
  .meridian .sf-section:has(> .m-header-sticky),
  .meridian .sf-section[data-section-type="anchor-nav"] {
    position: relative;
  }
}

/* ==== 30 Home: the opening, facts, the story, the tour, the facing pages, ledger rows ==== */

/* ---------- The opening ---------- */

.m-hero {
  position: relative;
  overflow: clip;
  background: var(--f-bg);
  color: var(--f-text);
}

.m-hero-inner {
  position: relative;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 5.5rem) 0;
}

.m-hero-copy {
  display: grid;
  gap: clamp(1.125rem, 1.8vw, 1.625rem);
  align-content: start;
  justify-items: start;
  max-inline-size: 40rem;
}

.m-hero-title {
  /* The first part reads as the premise, the semibold part as the conclusion - on its own line where there is room. */
  max-inline-size: 13em;
}

.m-hero-title strong {
  display: block;
}

.m-hero-lead {
  max-inline-size: 34rem;
}

.m-hero-actions {
  margin-block-start: 0.375rem;
}

.m-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  color: var(--f-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.m-hero-proof li {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
}

.m-hero-proof .m-icon {
  inline-size: 1rem;
  block-size: 1rem;
  color: var(--color-success);
}

/*
 * The stage: a mosaic of fragments on the product's own twelve-column grid, at reading size (--k is the scale of
 * the captures; 1 = one CSS pixel per pixel of the interface). It runs past the far edge of the page and under the
 * bottom of the section - the product goes on beyond the frame.
 */
.m-stage {
  --k: 0.9;

  position: relative;
  block-size: clamp(19rem, 62vw, 24rem);
  margin-inline-end: calc(var(--m-gutter) * -1);
  mask-image: linear-gradient(to bottom, var(--color-text) 62%, transparent);
}

.m-stage-canvas {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: calc(12px * var(--k));
  inline-size: calc(1281px * var(--k));
}

.m-stage-tile {
  border-radius: calc(var(--m-r) * var(--k));
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--color-text) 6%, transparent),
    0 12px 32px -16px var(--m-shadow);
}

/* Tile sizes are the widget sizes of a dashboard: 3, 4, 6 or 8 of its 12 columns. */
.m-stage-kpi {
  grid-column: span 3;
}

.m-stage-third {
  grid-column: span 4;
}

.m-stage-half {
  grid-column: span 6;
}

.m-stage-wide {
  grid-column: span 8;
}

@media (width >= 700px) {
  .m-stage {
    --k: 0.84;

    block-size: clamp(22rem, 46vw, 30rem);
  }
}

@media (width >= 1000px) {
  .m-hero-inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--m-gap);
    align-items: start;
    padding-block-start: clamp(4rem, 6vw, 6.5rem);
  }

  .m-hero-copy {
    grid-column: 1 / span 6;
    padding-block-end: clamp(4rem, 7vw, 7rem);
  }

  .m-stage {
    grid-column: 7 / -1;
    align-self: stretch;
    block-size: auto;
    min-block-size: 34rem;

    /* To the edge of the window, whatever the page width. */
    margin-inline-end: calc((100vw - 100%) / -2 - 50vw + 50%);
    margin-inline-end: calc(var(--m-gutter) * -1 - max(0px, (100vw - var(--page-width)) / 2 - var(--m-gutter)));
    margin-inline-start: 1rem;
    mask-image: linear-gradient(to bottom, var(--color-text) 78%, transparent);
  }
}

@media (width >= 1500px) {
  .m-stage {
    --k: 0.92;
  }
}

/* Entrance of the opening: the copy rises line by line; the tiles click into place from the far side. */
@media (prefers-reduced-motion: no-preference) {
  .m-enter {
    animation: m-rise var(--m-slow) var(--m-ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  .m-stage-tile {
    animation: m-tile-in 0.7s var(--m-ease-out) both;
    animation-delay: calc(180ms + var(--i, 0) * 60ms);
  }
}

@keyframes m-rise {
  from {
    opacity: 0;
    transform: translateY(0.875rem);
  }
}

@keyframes m-tile-in {
  from {
    opacity: 0;
    transform: translate(calc(var(--m-dir) * 1.5rem), 1rem) scale(0.985);
  }
}

/* ---------- Facts ---------- */

.m-facts {
  background: var(--f-bg);
  color: var(--f-text);
}

.m-facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 1px solid var(--f-line-strong);
}

.m-fact {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  justify-items: start;
  padding: clamp(1.25rem, 2.4vw, 2rem) clamp(1rem, 2vw, 1.75rem);
  border-inline-start: 1px solid var(--f-line);
}

.m-fact:nth-child(odd) {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.m-fact:nth-child(n + 3) {
  border-block-start: 1px solid var(--f-line);
}

.m-fact-value {
  font-size: clamp(2rem, 2.6vw + 1rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.m-fact-label {
  color: var(--f-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.m-fact-link {
  margin-block-start: 0.25rem;
  font-size: 0.875rem;
}

@media (width >= 900px) {
  .m-facts-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .m-fact:nth-child(n) {
    padding-inline-start: clamp(1rem, 2vw, 1.75rem);
    border-block-start: 0;
    border-inline-start: 1px solid var(--f-line);
  }

  .m-fact:first-child {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

/* ---------- The story: steps with a fragment that stays in view ---------- */

.m-story-steps {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.m-step {
  display: grid;
  gap: 1.5rem;
}

.m-step-copy {
  display: grid;
  gap: 0.875rem;
  align-content: start;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--f-line);
}

.m-step-count {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  color: var(--f-text);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.m-step-total {
  color: var(--f-muted);
}

.m-step-label {
  margin-inline-start: 0.5rem;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--f-line);
  border-radius: 999px;
  color: var(--f-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0;
}

.m-step-text {
  max-inline-size: 30rem;
}

/* What the step wrote, as ledger lines: a name, a figure, a hairline between. */
.m-step-entries {
  display: grid;
  max-inline-size: 30rem;
  margin-block-start: 0.5rem;
  border-block-start: 1px solid var(--f-line-strong);
  font-size: 0.875rem;
}

.m-step-entries li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 0.5rem;
  border-block-end: 1px solid var(--f-line);
}

.m-step-entries .m-figure {
  color: var(--f-muted);
  white-space: nowrap;
}

.m-step-shot {
  align-self: start;
}

@media (width >= 1000px) {
  /* One grid for all steps: copy in the reading column, each fragment from its step's row to the end, stuck in
     view - the next fragment (later in the page) slides over the one before it. */
  .m-story-steps {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--m-gap);
  }

  .m-step {
    display: contents;
  }

  .m-step-copy {
    grid-row: var(--n);
    grid-column: 1 / span 4;
    min-block-size: min(64vh, 34rem);
    padding-block-end: 4rem;
  }

  .m-step-shot {
    position: sticky;
    inset-block-start: calc(var(--m-bar-h) + max(2rem, 50vh - 16rem));
    grid-row: var(--n) / calc(var(--steps) + 1);
    grid-column: 6 / -1;
    margin-block-end: 4rem;
  }

  .m-step:last-child .m-step-copy {
    min-block-size: 24rem;
  }
}

/* While a step is being read its copy is at full strength; the others step back (where scroll timelines exist). */
@supports (animation-timeline: view()) {
  @media (width >= 1000px) and (prefers-reduced-motion: no-preference) {
    .m-step-copy {
      animation: m-step-focus linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes m-step-focus {
  0%,
  100% {
    opacity: 0.35;
  }

  35%,
  60% {
    opacity: 1;
  }
}

/* ---------- The tour ---------- */

.m-tour-tabs {
  display: block;
}

.m-tour-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-block-end: 1px solid var(--f-line);
}

.m-tour-list {
  display: flex;
  flex: 1;
  gap: 0.25rem;
  overflow-x: auto;
  min-inline-size: 0;
  margin-inline: calc(var(--m-gutter) * -1);
  padding-inline: var(--m-gutter);
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}

.m-tour-list::-webkit-scrollbar {
  display: none;
}

.m-tour-tab {
  position: relative;
  display: inline-flex;
  flex: none;
  gap: 0.5rem;
  align-items: baseline;
  min-block-size: 3.25rem;
  padding: 0.75rem 0.875rem;
  border: 0;
  background: none;
  color: var(--f-muted);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color var(--m-quick) var(--m-ease-out);
}

.m-tour-tab-no {
  font-size: 0.75rem;
  opacity: 0.7;
}

.m-tour-tab[aria-selected="true"] {
  color: var(--f-text);
}

@media (hover: hover) {
  .m-tour-tab:hover {
    color: var(--f-text);
  }
}

/* The line under the current tab; while the tour plays it fills over the time a panel is shown. */
.m-tour-progress {
  position: absolute;
  inset-block-end: -1px;
  inset-inline: 0.875rem;
  block-size: 2px;
  background: var(--f-mark);
  opacity: 0;
  transform-origin: 0 50%;
}

[dir="rtl"] .m-tour-progress {
  transform-origin: 100% 50%;
}

.m-tour-tab[aria-selected="true"] .m-tour-progress {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .m-tour-tabs[data-autoplay=""][data-inview] .m-tour-tab[aria-selected="true"] .m-tour-progress {
    animation: m-progress 9s linear both;
  }

  .m-tour-tabs:hover .m-tour-progress,
  .m-tour-tabs:focus-within .m-tour-progress {
    animation-play-state: paused;
  }
}

@keyframes m-progress {
  from {
    transform: scaleX(0);
  }
}

.m-tour-toggle {
  display: grid;
  flex: none;
  place-items: center;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border: 1px solid var(--f-line);
  border-radius: 50%;
  background: none;
  color: var(--f-muted);
  cursor: pointer;
  transition:
    border-color var(--m-fast) var(--m-ease-out),
    color var(--m-fast) var(--m-ease-out);
}

.m-tour-toggle .m-icon {
  inline-size: 1rem;
  block-size: 1rem;
}

.m-tour-toggle-play,
.m-tour-toggle[aria-pressed="true"] .m-tour-toggle-pause {
  display: none;
}

.m-tour-toggle[aria-pressed="true"] .m-tour-toggle-play {
  display: block;
}

@media (hover: hover) {
  .m-tour-toggle:hover {
    border-color: var(--f-text);
    color: var(--f-text);
  }
}

/* Without the script there is no tour to pause. */
html:not(.sf-runtime) .m-tour-toggle {
  display: none;
}

.m-tour-panel {
  padding-block-start: clamp(2rem, 4vw, 3.5rem);
}

.m-tour-copy {
  display: grid;
  gap: 1rem var(--m-gap);
  margin-block-end: clamp(1.75rem, 3.5vw, 3rem);
}

.m-tour-title {
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.375rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

.meridian:lang(ar) .m-tour-title {
  line-height: 1.45;
  letter-spacing: 0;
}

.m-tour-side {
  display: grid;
  gap: 0.875rem;
  justify-items: start;
}

.m-tour-text {
  max-inline-size: 34rem;
  color: var(--f-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

@media (width >= 900px) {
  .m-tour-copy {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
  }

  .m-tour-title {
    grid-column: 1 / span 6;
  }

  .m-tour-side {
    grid-column: 8 / -1;
  }
}

/*
 * A band of fragments at reading size: a wide one (8 of the product's 12 columns) and a narrow one (4). Wider than
 * the page on small screens - it scrolls sideways there, the next fragment showing at the edge.
 */
.m-band {
  --k: 0.9;

  overflow-x: auto;
  margin-inline: calc(var(--m-gutter) * -1);
  padding-inline: var(--m-gutter);
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}

.m-band::-webkit-scrollbar {
  display: none;
}

.m-band-track {
  display: grid;
  grid-template-columns: minmax(0, 850fr) minmax(0, 419fr);
  gap: calc(12px * var(--k));
  align-items: start;
  inline-size: calc(1281px * var(--k));
}

.m-band .m-shot {
  scroll-snap-align: start;
}

@media (width >= 1000px) {
  .m-band {
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .m-band-track {
    inline-size: 100%;
  }
}

/* A panel that is shown arrives: the copy from the reading side, the band from below (a short way, once). */
@media (prefers-reduced-motion: no-preference) {
  .m-tour-panel:not([hidden]) .m-tour-copy {
    animation: m-item-in var(--m-slow) var(--m-ease-out) both;
  }

  .m-tour-panel:not([hidden]) .m-band .m-shot {
    animation: m-rise var(--m-slow) var(--m-ease-out) both;
  }

  .m-tour-panel:not([hidden]) .m-band .m-shot:nth-child(2) {
    animation-delay: 70ms;
  }
}

/* ---------- The facing pages ---------- */

.m-book-pages {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.m-book-page {
  display: grid;
  gap: 0.75rem;
  inline-size: 100%;
}

.m-book-large {
  display: none;
}

.m-book-small {
  justify-self: center;
  max-inline-size: 20rem;
}

.m-book-caption {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
  justify-content: center;
  color: var(--f-muted);
  font-size: 0.875rem;
}

.m-book-caption .m-figure {
  color: var(--f-text);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.m-book-seam {
  display: none;
}

.m-book-points {
  display: grid;
  gap: 1.5rem var(--m-gap);
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
}

.m-book-point {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--f-line);
}

@media (width >= 760px) {
  /* Always English on the left and Arabic on the right, as the two pages of an open book. */
  .m-book-pages {
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    gap: 0;
    align-items: start;
    direction: ltr;
  }

  .m-book-large {
    display: block;
  }

  .m-book-small {
    display: none;
  }

  .m-book-en .m-book-shot {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
  }

  .m-book-ar .m-book-shot {
    border-start-end-radius: 0;
    border-end-end-radius: 0;
  }

  .m-book-en {
    --sf-reveal-from: translateX(1.25rem);
  }

  .m-book-ar {
    --sf-reveal-from: translateX(-1.25rem);
  }

  .m-book-seam {
    display: block;
    align-self: stretch;
    background: var(--f-line-strong);
    transform-origin: 50% 0;

    --sf-reveal-from: scaleY(0);
    --sf-reveal-duration: 0.9s;
  }

  .m-book-caption {
    padding-inline: 1rem;
  }

  .m-book-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Ledger rows ---------- */

.m-rows-list {
  border-block-start: 1px solid var(--f-line-strong);
}

.m-row {
  border-block-end: 1px solid var(--f-line);
}

.m-row-link {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  gap: 0.125rem 0.75rem;
  align-items: baseline;
  padding-block: 1.125rem;
  text-decoration: none;
  transition: background-color var(--m-quick) var(--m-ease-out);
}

.m-row-no {
  color: var(--f-muted);
  font-size: 0.8125rem;
}

.m-row-name {
  font-size: clamp(1.125rem, 1.3vw + 0.85rem, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.meridian:lang(ar) .m-row-name {
  line-height: 1.5;
  letter-spacing: 0;
}

.m-row-text {
  grid-column: 2;
  color: var(--f-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.m-row-go {
  grid-row: 1 / span 2;
  grid-column: 3;
  align-self: center;
  color: var(--f-muted);
  transition:
    color var(--m-quick) var(--m-ease-out),
    translate var(--m-base) var(--m-ease-out);
}

.m-row-go .m-icon {
  display: block;
  inline-size: 1.25rem;
  block-size: 1.25rem;
}

.m-row-shot {
  display: none;
}

.m-row-link:active {
  background: var(--f-raised);
}

.m-rows-more {
  margin-block-start: 1.75rem;
}

@media (width >= 900px) {
  .m-row-link {
    grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr) 3rem;
    gap: var(--m-gap);
    align-items: center;
    padding-block: clamp(1.25rem, 2vw, 1.875rem);
  }

  .m-row-text {
    grid-column: 3;
    max-inline-size: 30rem;
    font-size: 1rem;
  }

  .m-row-go {
    grid-row: auto;
    grid-column: 4;
    justify-self: end;
  }

  /* The row's fragment: shown beside the row on hover and focus, above the rows below it. */
  .m-row-shot {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 5rem;
    z-index: 2;
    display: block;
    inline-size: min(19.5rem, 24vw);
    opacity: 0;
    transform: translateY(-42%) scale(0.96);
    pointer-events: none;
    transition:
      opacity var(--m-quick) var(--m-ease-in),
      transform var(--m-quick) var(--m-ease-in);
  }
}

@media (hover: hover) and (width >= 900px) {
  .m-row-link:hover .m-row-go,
  .m-row-link:focus-visible .m-row-go {
    color: var(--f-accent);
    translate: calc(var(--m-dir) * 0.5rem) 0;
  }

  .m-row-link:hover .m-row-shot,
  .m-row-link:focus-visible .m-row-shot {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    transition:
      opacity var(--m-base) var(--m-ease-out),
      transform var(--m-base) var(--m-ease-out);
  }

  .m-rows-list:has(.m-row-link:hover) .m-row-link:not(:hover) {
    opacity: 0.55;
  }

  .m-row-link {
    transition: opacity var(--m-quick) var(--m-ease-out);
  }
}

/* Phones: no mosaic running off the screen - one figure and one chart, whole, at the width of the page. */
@media (width < 700px) {
  .m-stage {
    block-size: auto;
    margin-inline-end: 0;
    padding-block-end: 2.5rem;
    mask-image: none;
  }

  .m-stage-canvas {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    inline-size: 100%;
  }

  .m-stage-tile {
    grid-column: auto;
    border-radius: var(--m-r);
  }

  .m-stage-tile:nth-child(n + 2):not(.m-stage-wide),
  .m-stage-wide ~ .m-stage-tile {
    display: none;
  }

  .m-hero-actions {
    display: grid;
    inline-size: 100%;
  }
}

/*
 * The opening as one operation followed through the system (no picture): the statement across the page on the dark
 * field, and under it a chain - a line that draws from the first step to the last, each step lighting as the line
 * reaches it. It is type and rules only, so it is the same at every width; steps stack on a narrow screen.
 */
@media (width >= 1000px) {
  .m-hero-chain .m-hero-inner {
    display: block;
    padding-block-start: clamp(3.5rem, 5vw, 5.5rem);
  }

  /* The statement at the reading side over three rows; the deck, the action and the proof beside it, at its foot. */
  .m-hero-chain .m-hero-copy {
    grid-template-rows: auto 1fr auto auto;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem var(--m-gap);
    max-inline-size: none;
    padding-block-end: 0;
  }

  .m-hero-chain .m-hero-copy > .m-marker {
    grid-column: 1 / -1;
  }

  .m-hero-chain .m-hero-lead {
    grid-row: 2;
    grid-column: 9 / -1;
    align-self: end;
    font-size: 1.0625rem;
  }

  .m-hero-chain .m-hero-actions {
    grid-row: 3;
    grid-column: 9 / -1;
  }

  .m-hero-chain .m-hero-proof {
    grid-row: 4;
    grid-column: 9 / -1;
  }

  .m-hero-chain .m-hero-title {
    grid-row: 2 / span 3;
    grid-column: 1 / span 8;
    max-inline-size: none;
    font-size: clamp(3.25rem, 5.4vw + 0.75rem, 6rem);
  }

  .meridian:lang(ar) .m-hero-chain .m-hero-title {
    font-size: clamp(2.75rem, 4.6vw + 0.75rem, 5rem);
  }
}

.m-chain {
  position: relative;
  display: grid;
  gap: 0;
  margin-block: clamp(2.5rem, 6vw, 5rem) 0;
  padding-block-end: clamp(2.5rem, 6vw, 5rem);
}

/* The line: a hairline that is always there, and the primary line that draws along it. */
.m-chain::before,
.m-chain::after {
  position: absolute;
  inset-block: 0 clamp(2.5rem, 6vw, 5rem);
  inset-inline-start: 0;
  inline-size: 2px;
  background: var(--f-line);
  content: "";
}

.m-chain::after {
  background: var(--f-mark);
  transform-origin: 50% 0;
}

.m-node {
  position: relative;
  display: grid;
  gap: 0.375rem;
  align-content: start;
  padding: 0 0 1.75rem 1.5rem;
}

[dir="rtl"] .m-node {
  padding: 0 1.5rem 1.75rem 0;
}

/* The step's mark: the brand's square module, on the line. */
.m-node::before {
  position: absolute;
  inset-block-start: 0.25rem;
  inset-inline-start: -0.25rem;
  inline-size: 0.625rem;
  block-size: 0.625rem;
  background: var(--f-mark);
  content: "";
}

.m-node-label {
  display: flex;
  gap: 0.625rem;
  align-items: baseline;
  color: var(--f-muted);
  font-size: 0.875rem;
}

.m-node-label .m-figure {
  font-size: 0.75rem;
}

.m-node-value {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: clamp(2.25rem, 3.4vw + 1rem, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.m-node-unit {
  color: var(--f-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0;
}

.m-node-title {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.m-node-note {
  color: var(--f-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@media (width >= 700px) {
  .m-chain {
    grid-template-columns: repeat(var(--steps), minmax(0, 1fr));
    column-gap: var(--m-gap);
    padding-block: 2rem clamp(3rem, 5vw, 4.5rem);
  }

  .m-chain::before,
  .m-chain::after {
    inset-block: 0 auto;
    inset-inline: 0;
    inline-size: auto;
    block-size: 2px;
  }

  .m-chain::after {
    transform-origin: 0 50%;
  }

  [dir="rtl"] .m-chain::after {
    transform-origin: 100% 50%;
  }

  .m-node,
  [dir="rtl"] .m-node {
    padding: 0;
  }

  .m-node::before {
    inset-block-start: calc(-2rem - 0.25rem);
    inset-inline-start: 0;
  }
}

/* The line takes 2.4 s to cross; each step arrives as the line reaches it. */
@media (prefers-reduced-motion: no-preference) {
  .m-chain::after {
    animation: m-chain-draw 2.4s var(--m-ease-std) 0.5s both;
  }

  .m-node {
    animation: m-rise var(--m-slow) var(--m-ease-out) both;
    animation-delay: calc(0.5s + var(--i) * 0.6s);
  }

  .m-node::before {
    animation: m-node-mark 0.4s var(--m-ease-out) both;
    animation-delay: calc(0.5s + var(--i) * 0.6s);
  }
}

@keyframes m-chain-draw {
  from {
    transform: scale(0);
  }
}

@keyframes m-node-mark {
  from {
    opacity: 0;
    transform: scale(2.2);
  }
}

/* ---------- Customers' logos ---------- */

.m-logos .m-head {
  margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
}

.m-logos-row {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--f-line);
  mask-image: linear-gradient(to right, transparent, var(--color-text) 8% 92%, transparent);
}

.m-logos-track {
  display: flex;
  flex: none;
  align-items: stretch;
  min-inline-size: 100%;
}

.m-logos-row:not(.m-logos-moving) .m-logos-track {
  flex-wrap: wrap;
  justify-content: center;
}

.m-logo {
  display: grid;
  flex: none;
  overflow: hidden;
  inline-size: clamp(9rem, 16vw, 13rem);
  block-size: clamp(5.5rem, 9vw, 7.5rem);
  padding: 1rem 1.5rem;
  border-inline-end: 1px solid var(--f-line);
}

.m-logo a {
  display: block;
  min-block-size: 0;
}

.m-logo img {
  /* The cell gives the size: a logo of any shape is fitted inside it, never cut. */
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  object-fit: contain;
  transition: scale var(--m-base) var(--m-ease-out);
}

@media (hover: hover) {
  .m-logo:hover img {
    scale: 1.06;
  }
}

/* The row moves the way the page reads, slowly; it stops under the pointer and on focus. */
@media (prefers-reduced-motion: no-preference) {
  .m-logos-moving .m-logos-track {
    animation: m-logos-run 48s linear infinite;
  }

  [dir="rtl"] .m-logos-moving .m-logos-track {
    animation-name: m-logos-run-rtl;
  }

  .m-logos-row:hover .m-logos-track,
  .m-logos-row:focus-within .m-logos-track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .m-logos-moving {
    overflow-x: auto;
  }

  .m-logos-moving .m-logos-track[aria-hidden] {
    display: none;
  }
}

@keyframes m-logos-run {
  to {
    transform: translateX(-100%);
  }
}

@keyframes m-logos-run-rtl {
  to {
    transform: translateX(100%);
  }
}

/* ---------- Steps beside one large screen ---------- */

.m-show-tabs {
  display: grid;
  gap: 2rem var(--m-gap);
}

.m-show-side {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  justify-items: start;
}

.m-show-list {
  display: grid;
  inline-size: 100%;
  border-block-start: 1px solid var(--f-line);
}

.m-show-tab {
  position: relative;
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 1.375rem 0 1.5rem;
  border: 0;
  border-block-end: 1px solid var(--f-line);
  background: none;
  color: var(--f-muted);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: color var(--m-quick) var(--m-ease-out);
}

.m-show-no {
  padding-block-start: 0.3125rem;
  font-size: 0.8125rem;
}

.m-show-body {
  display: grid;
}

.m-show-title {
  font-size: clamp(1.1875rem, 0.7vw + 1.05rem, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}

.meridian:lang(ar) .m-show-title {
  line-height: 1.6;
}

/* The text of a step opens with it: its row grows from nothing (no jump of the rows under it). */
.m-show-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows var(--m-base) var(--m-ease-out),
    opacity var(--m-base) var(--m-ease-out);
}

.m-show-text {
  overflow: hidden;
  min-block-size: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.m-show-tab[aria-selected="true"] {
  color: var(--f-text);
}

.m-show-tab[aria-selected="true"] .m-show-more {
  grid-template-rows: 1fr;
  padding-block-start: 0.625rem;
  opacity: 1;
}

.m-show-tab[aria-selected="true"] .m-show-text {
  color: var(--f-muted);
}

@media (hover: hover) {
  .m-show-tab:hover {
    color: var(--f-text);
  }
}

.m-show-progress {
  position: absolute;
  inset-block-end: -1px;
  inset-inline: 0;
  block-size: 2px;
  background: var(--f-mark);
  opacity: 0;
  transform-origin: 0 50%;
}

[dir="rtl"] .m-show-progress {
  transform-origin: 100% 50%;
}

.m-show-tab[aria-selected="true"] .m-show-progress {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .m-show-tabs[data-autoplay=""][data-inview] .m-show-tab[aria-selected="true"] .m-show-progress {
    animation: m-progress 8s linear both;
  }

  .m-show-tabs:hover .m-show-progress,
  .m-show-tabs:focus-within .m-show-progress {
    animation-play-state: paused;
  }
}

/* The screens share one place: the shown one fades in over the one that leaves. */
.m-show-stage {
  display: grid;
  align-items: start;
  order: -1;
}

.meridian .m-show-panel {
  grid-area: 1 / 1;
  transition:
    opacity var(--m-slow) var(--m-ease-out),
    transform var(--m-slow) var(--m-ease-out),
    visibility 0s;
}

.meridian .m-show-panel[hidden] {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.75rem) scale(0.99);
  transition:
    opacity var(--m-quick) var(--m-ease-in),
    transform var(--m-quick) var(--m-ease-in),
    visibility 0s var(--m-quick);
}

.m-show-screen {
  border-radius: var(--m-r);
}

@media (width >= 1000px) {
  .m-show-tabs {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .m-show-stage {
    order: 0;
  }
}

@media (scripting: none) {
  .meridian .m-show-panel[hidden] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .m-show-stage {
    gap: 1rem;
  }

  .meridian .m-show-panel {
    grid-area: auto;
  }

  .m-show-more {
    grid-template-rows: 1fr;
    opacity: 1;
  }
}

/* A band of one picture is a whole screen of the product: as wide as the page, scrolled sideways on a phone. */
.m-band-track:has(> :only-child) {
  grid-template-columns: minmax(0, 1fr);
  inline-size: 52rem;
}

@media (width >= 1000px) {
  .m-band-track:has(> :only-child) {
    inline-size: 100%;
  }
}

/* ==== 40 Pages: the page head, specification rows, facts, prose, articles, the lost page ==== */

.m-page-head {
  overflow: clip;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--f-bg);
  color: var(--f-text);
}

.m-page-head:has(.m-page-band) {
  padding-block-end: 0;
}

.m-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--f-muted);
  font-size: 0.875rem;
}

.m-crumbs a {
  text-decoration: none;
}

.m-crumbs [aria-current] {
  color: var(--f-text);
}

@media (hover: hover) {
  .m-crumbs a:hover {
    color: var(--f-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

.m-page-head-grid {
  display: grid;
  gap: 1.5rem var(--m-gap);
}

.m-page-title {
  max-inline-size: 18em;
  font-size: clamp(2.125rem, 3.3vw + 0.9rem, 3.75rem);
}

.meridian:lang(ar) .m-page-title {
  font-size: clamp(1.875rem, 2.8vw + 0.85rem, 3.125rem);
}

.m-page-head-side {
  display: grid;
  gap: 1.5rem;
  align-content: end;
  justify-items: start;
  max-inline-size: 36rem;
}

.m-page-note {
  margin-block-start: 0.75rem;
  color: var(--f-muted);
  font-size: 0.9375rem;
}

.m-page-band {
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
  mask-image: linear-gradient(to bottom, var(--color-text) 70%, transparent);
}

@media (width >= 1000px) {
  .m-page-head-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
  }

  .m-page-title {
    grid-column: 1 / span 7;
  }

  .m-page-head-side {
    grid-column: 9 / -1;
  }

  .m-page-head-grid > .m-page-title:only-child {
    grid-column: 1 / span 10;
  }
}

/* ---------- What it does: groups of numbered rows ---------- */

.m-spec-marker {
  margin-block-end: clamp(1.5rem, 3vw, 2.5rem);
}

.m-spec-group {
  position: relative;
  display: grid;
  gap: 1rem var(--m-gap);
  padding-block: clamp(1.25rem, 2vw, 1.75rem) clamp(2rem, 4vw, 3.5rem);
}

.m-spec-rows {
  display: grid;
}

.m-spec-row {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.25rem 0.75rem;
  padding-block: 1.125rem;
  border-block-end: 1px solid var(--f-line);
}

.m-spec-row:first-child {
  padding-block-start: 0;
}

.m-spec-no {
  grid-row: span 2;
  padding-block-start: 0.1875rem;
  color: var(--f-muted);
  font-size: 0.8125rem;
}

.m-spec-text {
  grid-column: 2;
}

@media (width >= 900px) {
  .m-spec-group {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .m-spec-title {
    position: sticky;
    inset-block-start: calc(var(--m-header-h) + 1.5rem);
    grid-column: 1 / span 4;
    align-self: start;
  }

  .m-spec-rows {
    grid-column: 6 / -1;
  }

  .m-spec-row {
    grid-template-columns: 3rem minmax(0, 4fr) minmax(0, 6fr);
    gap: var(--m-gap);
    align-items: baseline;
  }

  .m-spec-no {
    grid-row: auto;
  }

  .m-spec-text {
    grid-column: 3;
  }
}

/* ---------- At a glance (dark): the tie-in statement and facts ---------- */

.m-glance-statement {
  max-inline-size: 32em;
  font-size: clamp(1.375rem, 1.2vw + 1rem, 2rem);
  line-height: 1.4;
  margin-block: 1.5rem clamp(2.5rem, 5vw, 4rem);
}

.m-glance-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  border-block-start: 1px solid var(--f-line-strong);
}

.m-glance-fact {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.25rem 1.5rem 1.5rem 0;
  border-block-end: 1px solid var(--f-line);
}

.m-glance-fact dt {
  color: var(--f-muted);
  font-family: var(--m-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meridian:lang(ar) .m-glance-fact dt {
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0;
}

.m-glance-fact dd {
  font-size: 1.0625rem;
  line-height: 1.55;
}

.m-glance-shot {
  max-inline-size: 52rem;
  margin-block-start: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Specification sheet ---------- */

.m-sheet-group {
  position: relative;
  display: grid;
  gap: 1rem var(--m-gap);
  padding-block: clamp(1.25rem, 2vw, 1.75rem) clamp(1.5rem, 3vw, 3rem);
}

.m-sheet-row {
  display: grid;
  gap: 0.25rem var(--m-gap);
  padding-block: 1rem;
  border-block-end: 1px solid var(--f-line);
}

.m-sheet-row:first-child {
  padding-block-start: 0;
}

.m-sheet-label {
  font-weight: 600;
  line-height: 1.5;
}

.m-sheet-fact {
  color: var(--f-muted);
  line-height: 1.65;
}

.m-sheet-note {
  margin-inline-start: 0.5rem;
  vertical-align: 0.05em;
}

@media (width >= 900px) {
  .m-sheet-group {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .m-sheet-title {
    position: sticky;
    inset-block-start: calc(var(--m-header-h) + 1.5rem);
    grid-column: 1 / span 3;
    align-self: start;
  }

  .m-sheet-rows {
    grid-column: 5 / -1;
  }

  .m-sheet-group:not(:has(.m-sheet-title)) .m-sheet-rows {
    grid-column: 1 / -1;
  }

  .m-sheet-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    align-items: baseline;
  }
}

/* ---------- Prose (page bodies, articles, answers) ---------- */

.m-prose {
  color: var(--m-text);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.meridian:lang(ar) .m-prose {
  line-height: 1.95;
}

.m-prose-narrow {
  max-inline-size: 44rem;
}

.m-prose-wide {
  max-inline-size: 52rem;
}

.m-prose > * + * {
  margin-block-start: 1.125em;
}

.m-prose h2 {
  margin-block-start: 2.25em;
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--m-line);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.m-prose h3 {
  margin-block-start: 1.75em;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
}

.m-prose a {
  color: var(--m-primary-deep);
  text-underline-offset: 0.2em;
}

.m-prose ul,
.m-prose ol {
  padding-inline-start: 1.375rem;
}

.m-prose li + li {
  margin-block-start: 0.375em;
}

.m-prose table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.m-prose th,
.m-prose td {
  padding: 0.625rem 0.75rem 0.625rem 0;
  border-block-end: 1px solid var(--m-line);
  text-align: start;
  vertical-align: top;
}

.m-prose th {
  font-weight: 600;
}

/* A legal text numbers its sections, as a contract does. */
.m-prose-numbered {
  counter-reset: m-clause;
}

.m-prose-numbered h2 {
  counter-increment: m-clause;
}

.m-prose-numbered h2::before {
  margin-inline-end: 0.75rem;
  color: var(--m-muted);
  font-family: var(--m-mono);
  font-size: 0.875rem;
  font-weight: 400;
  content: counter(m-clause, decimal-leading-zero);
}

.m-article-deck {
  max-inline-size: 44rem;
  margin-block-start: 1rem;
}

.m-article-title {
  max-inline-size: 20em;
}

.m-article-back {
  margin-block-start: 3rem;
}

.m-more-back .m-icon {
  scale: -1 1;
}

[dir="rtl"] .m-more-back .m-icon {
  scale: 1 1;
}

/* ---------- Articles as rows ---------- */

.m-posts {
  border-block-start: 1px solid var(--f-line-strong);
}

.m-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.375rem 1rem;
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--f-line);
  text-decoration: none;
}

.m-post-date {
  grid-column: 1 / -1;
  color: var(--f-muted);
  font-size: 0.8125rem;
}

.m-post-body {
  display: grid;
  gap: 0.375rem;
}

.m-post-title {
  font-size: clamp(1.125rem, 1vw + 0.9rem, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}

.m-post-excerpt {
  max-inline-size: 44rem;
  color: var(--f-muted);
  line-height: 1.6;
}

.m-post-go {
  align-self: center;
  color: var(--f-muted);
  transition:
    color var(--m-quick) var(--m-ease-out),
    translate var(--m-base) var(--m-ease-out);
}

.m-post-go .m-icon {
  display: block;
  inline-size: 1.25rem;
  block-size: 1.25rem;
}

@media (width >= 900px) {
  .m-post {
    grid-template-columns: 9rem minmax(0, 1fr) 3rem;
    gap: var(--m-gap);
    align-items: baseline;
    padding-block: 1.75rem;
  }

  .m-post-date {
    grid-column: auto;
  }

  .m-post-go {
    justify-self: end;
  }
}

@media (hover: hover) {
  .m-post:hover .m-post-go {
    color: var(--f-accent);
    translate: calc(var(--m-dir) * 0.5rem) 0;
  }

  .m-post:hover .m-post-title {
    color: var(--f-accent);
  }
}

/* ---------- The lost page ---------- */

.m-lost-inner {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  max-inline-size: 44rem;
  margin-inline: auto 0;
  margin-inline-start: max(var(--m-gutter), (100% - var(--page-width)) / 2);
}

.m-lost-code {
  color: var(--m-primary-deep);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.m-lost-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-block-start: 1.5rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--m-line);
}

/* ---------- What is new: white cards in a row that slides ---------- */

.m-news {
  overflow-x: clip;
}

.m-news-slider {
  display: block;
}

/*
 * The row slides sideways only (overflow-x alone made the browser scroll it up and down too, clipping the cards' tops).
 * It starts with the page and runs to the window's edge, where the next card shows its side and fades out: the sign
 * that the row goes on. Three cards and a part of the fourth fit the page on wide screens; most of one and the edge of
 * the next on phones.
 */

/* Two classes: the list reset (.meridian :where(ul, ol)[class]) would take its padding otherwise. */
.m-news-slider .m-news-track {
  --m-news-gap: clamp(0.875rem, 1.6vw, 1.5rem);
  --m-news-out: max(var(--m-gutter), min((100vw - var(--page-width)) / 2, 6rem));

  display: grid;
  grid-auto-columns: min(82%, 24rem);
  grid-auto-flow: column;
  gap: var(--m-news-gap);
  overflow: auto hidden;
  margin-inline: calc(var(--m-gutter) * -1) calc(var(--m-news-out) * -1);

  /* Room for the cards' shadow and their lift under the pointer inside the row. */
  margin-block: -1.75rem -2rem;
  padding: 1.75rem var(--m-news-out) 3rem var(--m-gutter);
  scroll-padding-inline: var(--m-gutter);
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, var(--color-text) calc(100% - var(--m-news-out)), transparent);
}

[dir="rtl"] .m-news-slider .m-news-track {
  padding: 1.75rem var(--m-gutter) 3rem var(--m-news-out);
  mask-image: linear-gradient(to left, var(--color-text) calc(100% - var(--m-news-out)), transparent);
}

@media (width >= 900px) {
  .m-news-slider .m-news-track {
    grid-auto-columns: calc((min(100vw - 2 * var(--m-gutter), var(--page-width)) - 2 * var(--m-news-gap)) / 3.2);
  }
}

.m-news-track::-webkit-scrollbar {
  display: none;
}

.m-news-card {
  display: flex;
  scroll-snap-align: start;
}

/* The card: white, generously rounded, the picture inset at its top, the way in at its foot. */
.m-news-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0.5rem 0.5rem 1.75rem;
  border-radius: 1.5rem;
  background: var(--color-background);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--color-text) 6%, transparent),
    0 12px 32px -12px color-mix(in srgb, var(--color-text) 14%, transparent);
  color: var(--m-text);
  text-decoration: none;
  transition:
    box-shadow var(--m-base) var(--m-ease-out),
    transform var(--m-base) var(--m-ease-out);
}

.m-news-media {
  position: relative;
  display: block;
  overflow: clip;
  aspect-ratio: 7 / 3;
  border-radius: 1.125rem;
  background: var(--m-primary-tint);
}

.m-news-media img {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  transition: scale var(--m-slow) var(--m-ease-out);
}

.m-news-date {
  display: none;
}

.m-news-title {
  margin-block-start: 1.75rem;
  padding-inline: 1.25rem;
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem);
  font-weight: 600;
  line-height: 1.4;
}

.meridian:lang(ar) .m-news-title {
  line-height: 1.6;
}

.m-news-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-block-start: 0.875rem;
  padding-inline: 1.25rem;
  color: var(--m-text);
  font-size: 0.9375rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.m-news-go {
  display: inline-flex;
  gap: 0.625rem;
  align-items: center;
  margin-block-start: auto;
  padding: 1.5rem 1.25rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.m-news-go-mark {
  display: grid;
  place-items: center;
  inline-size: 2.125rem;
  block-size: 2.125rem;
  border-radius: 0.5rem;
  background: var(--m-ink);
  color: var(--m-on-ink);
  transition:
    background-color var(--m-fast) var(--m-ease-out),
    translate var(--m-base) var(--m-ease-out);
}

.m-news-go-mark .icon {
  inline-size: 1.125rem;
  block-size: 1.125rem;
}

@media (hover: hover) {
  .m-news-link:hover {
    box-shadow:
      0 1px 2px color-mix(in srgb, var(--color-text) 8%, transparent),
      0 24px 48px -16px color-mix(in srgb, var(--color-text) 22%, transparent);
    transform: translateY(-2px);
  }

  .m-news-link:hover .m-news-media img {
    scale: 1.04;
  }

  .m-news-link:hover .m-news-go-mark {
    background: var(--m-primary);
    translate: calc(var(--m-dir) * 0.25rem) 0;
  }
}

.m-news-link:active {
  transform: scale(0.99);
}

.m-news-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
}

.m-news-controls .m-more {
  margin-inline-start: auto;
}

.m-news-arrow {
  display: grid;
  place-items: center;
  inline-size: 3.5rem;
  block-size: 3.5rem;
  border: 1.5px solid var(--m-ink);
  border-radius: 50%;
  background: none;
  color: var(--m-ink);
  cursor: pointer;
  transition:
    background-color var(--m-fast) var(--m-ease-out),
    color var(--m-fast) var(--m-ease-out),
    opacity var(--m-fast) var(--m-ease-out),
    transform var(--m-fast) var(--m-ease-out);
}

.m-news-arrow .m-icon {
  inline-size: 1.375rem;
  block-size: 1.375rem;
}

.m-news-arrow-back {
  rotate: 180deg;
}

.m-news-arrow:active {
  transform: scale(0.96);
}

.m-news-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

@media (hover: hover) {
  .m-news-arrow:not(:disabled):hover {
    background: var(--m-ink);
    color: var(--m-on-ink);
  }
}

@media (width >= 900px) {
  /* Card by card under the arrows (the sizes are set above: three and the side of the next). */
  .m-news-track {
    scroll-snap-type: inline mandatory;
  }

  /* Three cards or fewer fill the row: nothing slides, so no arrows. */
  .m-news-few .m-news-arrow {
    display: none;
  }

  .m-news-few .m-news-track {
    overflow: visible;
    grid-auto-columns: calc((100% - 2 * var(--m-news-gap)) / 3);
    margin-inline: 0;
    padding-inline: 0;
    mask-image: none;
  }
}

/* Without the script the row still scrolls; the arrows have nothing to drive. */
html:not(.sf-runtime) .m-news-arrow {
  display: none;
}

/* ==== 50 Pricing: switches, plans as ledger columns, the configurator, the comparison table, add-ons, questions ==== */

.m-switches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block-end: 2rem;
}

.m-switch {
  display: inline-flex;
  padding: 0.1875rem;
  border: 1px solid var(--f-line);
  border-radius: 999px;
  background: var(--f-raised);
}

.m-switch-option {
  min-block-size: 2.25rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  color: var(--f-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition:
    background-color var(--m-quick) var(--m-ease-out),
    color var(--m-quick) var(--m-ease-out);
}

.m-switch-option[aria-current="true"] {
  background: var(--m-ink);
  color: var(--m-on-ink);
}

.m-plans-quote {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  max-inline-size: 44rem;
  margin-block-end: clamp(2rem, 4vw, 3rem);
}

.m-plans {
  display: grid;
  grid-auto-columns: min(86%, 22rem);
  grid-auto-flow: column;
  gap: 0;
  overflow-x: auto;
  margin-inline: calc(var(--m-gutter) * -1);
  padding-inline: var(--m-gutter);
  border-block: 1px solid var(--f-line-strong);
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.m-plans::-webkit-scrollbar {
  display: none;
}

.m-plan {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.75rem 1.5rem 2rem;
  border-inline-start: 1px solid var(--f-line);
  scroll-snap-align: center;
}

.m-plan:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.m-plan-featured {
  background: var(--m-primary-tint);
}

.m-plan-featured:first-child {
  padding-inline-start: 1.5rem;
}

.m-plan-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.m-plan-name {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
}

.m-plan-badge {
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--m-primary);
  color: var(--m-on-primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.m-plan-for {
  color: var(--f-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.m-plan-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.5rem;
  align-items: baseline;
  color: var(--f-muted);
  font-size: 0.9375rem;
}

.m-plan-price bdi {
  color: var(--f-text);
  font-size: clamp(2rem, 2vw + 1.25rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.m-plan-price-quiet {
  color: var(--f-text);
  font-size: 1.125rem;
  font-weight: 600;
}

.m-plan-saving {
  color: var(--color-success);
  font-size: 0.875rem;
  font-weight: 600;
}

.m-plan-actions {
  display: grid;
  gap: 0.625rem;
  justify-items: start;
}

.meridian .m-plan-actions .button {
  inline-size: 100%;
}

.m-plan-configure {
  font-size: 0.9375rem;
}

.m-plan-limits {
  display: grid;
  border-block-start: 1px solid var(--f-line);
  font-size: 0.9375rem;
}

.m-plan-limits div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 0.5rem;
  border-block-end: 1px solid var(--f-line);
}

.m-plan-limits dt {
  color: var(--f-muted);
}

.m-plan-includes {
  font-size: 0.875rem;
  font-weight: 600;
}

.m-plan-modules {
  display: grid;
  gap: 0.375rem;
  font-size: 0.9375rem;
}

.m-plan-modules li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.m-plan-modules .m-icon {
  flex: none;
  inline-size: 1rem;
  block-size: 1rem;
  margin-block-start: 0.25rem;
  color: var(--color-success);
}

.m-note {
  margin-block-start: 1rem;
  color: var(--f-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.m-note a {
  color: var(--f-accent);
}

@media (width >= 900px) {
  .m-plans {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: row;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
}

/* ---------- Configurator ---------- */

.m-configurator-shell {
  display: block;
}

.m-configurator {
  display: grid;
  gap: 2rem var(--m-gap);
}

.m-configurator-options {
  display: grid;
  gap: 2rem;
  align-content: start;
  justify-items: start;
}

.m-fieldset {
  inline-size: 100%;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.m-fieldset legend {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-block-end: 0.875rem;
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.m-fieldset legend .m-figure {
  color: var(--f-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

.m-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.5rem;
}

.m-choice {
  position: relative;
  display: grid;
  gap: 0.125rem;
  min-block-size: 3.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--f-line);
  border-radius: var(--m-r-sm);
  background: var(--m-paper);
  cursor: pointer;
  transition:
    border-color var(--m-fast) var(--m-ease-out),
    background-color var(--m-fast) var(--m-ease-out);
}

.m-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.m-choice-name {
  font-weight: 600;
  line-height: 1.4;
}

.m-choice-price {
  color: var(--f-muted);
  font-size: 0.875rem;
}

.m-choice:has(input:checked) {
  border-color: var(--m-primary);
  background: var(--m-primary-tint);
  box-shadow: inset 0 0 0 1px var(--m-primary);
}

.m-choice:has(input:focus-visible) {
  outline: 2px solid var(--m-primary);
  outline-offset: 2px;
}

.m-choice:active {
  background: var(--m-primary-wash);
}

@media (hover: hover) {
  .m-choice:hover {
    border-color: var(--m-line-strong);
  }
}

.m-number .input {
  max-inline-size: 9rem;
}

/* The quote reads as a pro-forma: lines, a double rule, the total. */
.m-quote {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.5rem;
  border: 1px solid var(--f-line-strong);
  border-radius: var(--m-r);
  background: var(--m-paper);
  scroll-margin-block-start: calc(var(--m-header-h) + 1rem);
}

.m-quote-title {
  font-family: var(--m-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meridian:lang(ar) .m-quote-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}

.m-quote-lines {
  display: grid;
  font-size: 0.9375rem;
}

.m-quote-lines li,
.m-quote-total {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 0.5rem;
  border-block-end: 1px solid var(--f-line);
}

.m-quote-total {
  border-block: 3px double var(--f-line-strong);
  border-block-end-style: solid;
  border-block-end-width: 1px;
  font-weight: 600;
}

.m-quote-total bdi {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.m-quote-total small {
  color: var(--f-muted);
  font-weight: 400;
}

.m-quote-error {
  color: var(--color-danger);
}

.meridian .m-quote .button {
  inline-size: 100%;
}

@media (width >= 1000px) {
  .m-configurator {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .m-quote {
    position: sticky;
    inset-block-start: calc(var(--m-header-h) + 1.5rem);
  }
}

/* ---------- Comparison table ---------- */

.m-table-wrap {
  overflow-x: auto;
  border-block: 1px solid var(--f-line-strong);
}

.m-table {
  inline-size: 100%;
  min-inline-size: 38rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.m-table th,
.m-table td {
  padding: 0.75rem 1rem;
  border-block-end: 1px solid var(--f-line);
  overflow-wrap: normal;
  text-align: start;
  vertical-align: middle;
}

.m-table thead th {
  font-size: 1rem;
  font-weight: 600;
}

.m-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  padding-inline-start: 0;
  background: var(--f-bg);
  font-weight: 500;
}

.m-table tr:last-child > * {
  border-block-end: 0;
}

.m-table small {
  color: var(--f-muted);
}

.m-yes .m-icon {
  inline-size: 1.125rem;
  block-size: 1.125rem;
  color: var(--color-success);
}

.m-no .m-icon {
  inline-size: 1.125rem;
  block-size: 1.125rem;
  color: var(--f-line-strong);
}

/* ---------- Add-ons ---------- */

.m-extras {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0 var(--m-gap);
  border-block-start: 1px solid var(--f-line-strong);
}

.m-extra {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  padding-block: 1.25rem;
  border-block-end: 1px solid var(--f-line);
}

.m-extra-price {
  color: var(--f-muted);
  font-size: 0.875rem;
}

.m-extra-price bdi {
  color: var(--f-text);
  font-size: 1rem;
}

/* ---------- Questions ---------- */

.m-faq-list {
  display: block;
  border-block-start: 1px solid var(--f-line-strong);
}

@media (width >= 900px) {
  .m-faq-list {
    max-inline-size: 58.333%;
    margin-inline-start: auto;
  }
}

.m-faq-item {
  border-block-end: 1px solid var(--f-line);
}

.m-faq-question {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-block-size: 3.75rem;
  padding-block: 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.m-faq-question::-webkit-details-marker {
  display: none;
}

.m-faq-question .m-icon {
  flex: none;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  color: var(--f-muted);
  transition: rotate var(--m-base) var(--m-ease-out);
}

.m-faq-item[open] .m-faq-question .m-icon {
  rotate: 45deg;
}

.m-faq-answer {
  padding-block-end: 1.5rem;
  color: var(--f-muted);
  font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .m-faq-item[open] .m-faq-answer {
    animation: m-rise var(--m-base) var(--m-ease-out) both;
  }
}

/* ==== 60 Forms and channels ==== */

.m-demo {
  display: grid;
  gap: 2.5rem var(--m-gap);
}

.m-demo-copy {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  justify-items: start;
}

.m-next {
  inline-size: 100%;
  max-inline-size: 30rem;
  margin-block-start: 1rem;
}

.m-next-title {
  margin-block-end: 0.75rem;
  color: var(--f-muted);
  font-size: 0.875rem;
}

.m-next-list {
  display: grid;
  border-block-start: 1px solid var(--f-line-strong);
}

.m-next-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding-block: 0.75rem;
  border-block-end: 1px solid var(--f-line);
}

.m-next-list .m-figure {
  color: var(--f-muted);
  font-size: 0.8125rem;
}

/* The page's opening line, as on the home page: a green tag. */
.m-demo-copy .m-marker {
  padding: 0.375rem 0.875rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--color-primary) 70%, var(--color-text));
  background: color-mix(in srgb, var(--color-background) 70%, transparent);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

.m-demo-copy .m-marker::before {
  content: none;
}

/* The film under the steps: what the call will show, before the form is filled. */
.m-demo-film {
  inline-size: 100%;
  max-inline-size: 30rem;
  margin-block-start: 1rem;
}

.m-demo-film .m-hero-video-play {
  inline-size: 3.5rem;
  block-size: 3.5rem;
}

.m-demo-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.m-demo-form {
  display: block;
}

.m-form {
  display: grid;
  gap: 1.125rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--f-line);
  border-radius: var(--m-r);
  background: var(--m-paper);
}

.m-form-row {
  display: grid;
  gap: 1.125rem;
}

.m-field {
  display: grid;
  gap: 0.375rem;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.m-field label,
.m-field legend {
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.m-optional {
  color: var(--m-muted);
  font-weight: 400;
}

.meridian .m-form .input {
  min-block-size: 3rem;
  border-color: var(--m-line-strong);
  border-radius: var(--m-r-sm);
  font: inherit;
  transition:
    border-color var(--m-fast) var(--m-ease-out),
    box-shadow var(--m-fast) var(--m-ease-out);
}

.meridian .m-form .input::placeholder {
  color: var(--m-muted);
  opacity: 0.6;
}

.meridian .m-form .input:focus-visible {
  outline: 0;
  border-color: var(--m-primary);
  box-shadow: 0 0 0 3px var(--m-primary-wash);
}

[dir="rtl"] .m-form .input[dir="ltr"] {
  text-align: end;
}

.m-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.375rem;
}

/* Two classes: .m-field label (a field's own label) would take the chips' padding otherwise. */
.m-chips .m-pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  padding: 0.375rem 1rem;
  border: 1px solid var(--m-line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  cursor: pointer;
  transition:
    background-color var(--m-fast) var(--m-ease-out),
    border-color var(--m-fast) var(--m-ease-out),
    color var(--m-fast) var(--m-ease-out);
}

.m-pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.m-pick:has(input:checked) {
  border-color: var(--m-ink);
  background: var(--m-ink);
  color: var(--m-on-ink);
}

.m-pick:has(input:focus-visible) {
  outline: 2px solid var(--m-primary);
  outline-offset: 2px;
}

.m-pick:active {
  background: var(--m-mist);
}

.meridian .m-form-submit {
  justify-self: start;
}

.m-form-success {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--f-line);
  border-radius: var(--m-r);
  background: var(--m-paper);
}

.m-form-success[hidden] {
  display: none;
}

.m-form-success-mark {
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border-radius: 50%;
  background: var(--color-success);
  color: var(--color-success-contrast);
}

@media (prefers-reduced-motion: no-preference) {
  .m-form-success:not([hidden]) {
    animation: m-rise var(--m-slow) var(--m-ease-out) both;
  }
}

@media (width >= 640px) {
  .m-form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width >= 1000px) {
  .m-demo {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }

  .m-demo-form {
    grid-column: 2;
  }
}

@media (width < 640px) {
  .meridian .m-form-submit {
    inline-size: 100%;
  }
}

/* ---------- Channels ---------- */

.m-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  border-block-start: 1px solid var(--f-line-strong);
}

.m-channel-link {
  display: grid;
  gap: 0.375rem;
  align-content: start;
  justify-items: start;
  block-size: 100%;
  padding: 1.5rem 1.5rem 1.75rem 0;
  border-block-end: 1px solid var(--f-line);
  text-decoration: none;
}

.m-channel-icon {
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  margin-block-end: 0.5rem;
  border: 1px solid var(--f-line);
  border-radius: var(--m-r-sm);
  color: var(--f-accent);
  transition:
    background-color var(--m-fast) var(--m-ease-out),
    color var(--m-fast) var(--m-ease-out);
}

.m-channel-icon .m-icon {
  inline-size: 1.25rem;
  block-size: 1.25rem;
}

.m-channel-label {
  color: var(--f-muted);
  font-size: 0.875rem;
}

.m-channel-value {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (hover: hover) {
  a.m-channel-link:hover .m-channel-icon {
    background: var(--m-primary);
    color: var(--m-on-primary);
  }
}

/* ==== 70 The close and the footer ==== */

.m-close {
  overflow: clip;
}

.m-close-inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.m-close-title {
  max-inline-size: 14em;
}

.m-close-text {
  max-inline-size: 34rem;
}

.m-close-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  inline-size: 100%;
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--f-line);
}

.m-close-channels a {
  display: grid;
  gap: 0.25rem;
  font-size: 1.125rem;
  text-decoration: none;
}

.m-close-channel-label {
  color: var(--f-muted);
  font-size: 0.8125rem;
}

@media (hover: hover) {
  .m-close-channels a:hover bdi {
    color: var(--f-accent);
  }
}

.m-footer {
  padding-block: clamp(3rem, 5vw, 4.5rem) 1.5rem;
  border-block-start: 1px solid var(--m-on-ink-line);
  background: var(--m-ink);
  color: var(--m-on-ink);
  font-size: 0.9375rem;
}

.m-footer-top {
  display: grid;
  gap: 2.5rem var(--m-gap);
}

.m-footer-brand {
  display: grid;
  gap: 1rem;
  align-content: start;
  justify-items: start;
  max-inline-size: 22rem;
}

.m-footer-text,
.m-footer-office {
  color: var(--m-on-ink-muted);
  line-height: 1.65;
}

.m-footer-office {
  display: grid;
  gap: 0.5rem;
}

.m-footer-office li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.m-footer-office .m-icon {
  flex: none;
  inline-size: 1.125rem;
  block-size: 1.125rem;
  margin-block-start: 0.1875rem;
}

.m-footer-columns {
  display: grid;
}

.m-footer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 3rem;
  border-block-end: 1px solid var(--m-on-ink-line);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.m-footer-heading::-webkit-details-marker {
  display: none;
}

.m-footer-heading .icon {
  inline-size: 1.125rem;
  block-size: 1.125rem;
  transition: rotate var(--m-quick) var(--m-ease-out);
}

.m-footer-column[open] .m-footer-heading .icon {
  rotate: 180deg;
}

.m-footer-column ul {
  display: grid;
  gap: 0.125rem;
  padding-block: 0.5rem 1rem;
}

.m-footer-column a {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.25rem;
  color: var(--m-on-ink-muted);
  text-decoration: none;
  transition: color var(--m-fast) var(--m-ease-out);
}

@media (hover: hover) {
  .m-footer-column a:hover,
  .m-footer-locales a:hover {
    color: var(--m-on-ink);
  }
}

.m-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  margin-block-start: clamp(2rem, 4vw, 3.5rem);
  padding-block-start: 1.25rem;
  border-block-start: 1px solid var(--m-on-ink-line);
  color: var(--m-on-ink-muted);
  font-size: 0.875rem;
}

.m-footer-locales {
  display: flex;
  gap: 1.25rem;
}

.m-footer-locales a {
  text-decoration: none;
}

.m-footer-locales [aria-current="true"] {
  color: var(--m-on-ink);
}

@media (width >= 900px) {
  .m-footer-top {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

  .m-footer-columns {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: var(--m-gap);
  }

  /* On wide screens the columns are plain lists: the summary is a title, not a control. */
  .m-footer-heading {
    min-block-size: 0;
    border: 0;
    pointer-events: none;
  }

  .m-footer-heading .icon {
    display: none;
  }

  .m-footer-column ul {
    padding-block: 0.75rem 0;
  }
}

/* ==== 80 Motion between pages, without the script, with less motion, in print ==== */

/* Same-origin navigation cross-fades; the header stays where it is. */
@view-transition {
  navigation: auto;
}

.m-header {
  view-transition-name: m-header;
}

::view-transition-old(root) {
  animation: m-page-out 100ms cubic-bezier(0.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: m-page-in 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes m-page-out {
  to {
    opacity: 0;
  }
}

@keyframes m-page-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
}

/* A reading-progress hairline under the in-page bar (where scroll timelines exist). */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .m-bar::after {
      position: absolute;
      inset-block-end: -1px;
      inset-inline: 0;
      block-size: 2px;
      background: var(--m-primary);
      transform-origin: 0 50%;
      animation: m-progress linear both;
      animation-timeline: scroll(root block);
      content: "";
    }

    [dir="rtl"] .m-bar::after {
      transform-origin: 100% 50%;
    }
  }
}

/* Without the script: every panel of the tour is shown, one under the other, and the tabs are not controls. */
@media (scripting: none) {
  .m-tour-list,
  .m-tour-toggle {
    display: none;
  }

  .m-tour-panel[hidden] {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .meridian *,
  .meridian *::before,
  .meridian *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

@media print {
  .m-header,
  .m-bar,
  .m-close,
  .m-announce {
    display: none;
  }
}

/* ==== 90 Tighter sections, screens under glass, the light opening ==== */

.meridian {
  --m-sec: clamp(3rem, 5.2vw, 5rem);
}

.m-display {
  font-size: clamp(2.25rem, 3.4vw + 0.9rem, 3.75rem);
}

.m-h2 {
  font-size: clamp(1.625rem, 1.8vw + 0.85rem, 2.5rem);
}

.meridian:lang(ar) .m-display {
  font-size: clamp(2rem, 3vw + 0.85rem, 3.25rem);
}

.meridian:lang(ar) .m-h2 {
  font-size: clamp(1.5rem, 1.6vw + 0.8rem, 2.25rem);
}

.m-head {
  margin-block-end: clamp(1.75rem, 3vw, 2.75rem);
}

.m-tour-panel {
  padding-block-start: clamp(1.5rem, 3vw, 2.5rem);
}

.m-tour-title {
  font-size: clamp(1.25rem, 1vw + 1rem, 1.75rem);
}

@media (width >= 1000px) {
  /* The tour's copy stands beside its screen, as the steps do: one glance, not a screen-high block. */
  .m-tour-panel:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--m-gap);
    align-items: start;
  }

  .m-tour-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-block-end: 0;
  }

  .m-tour-title,
  .m-tour-side {
    grid-column: auto;
  }
}

/*
 * A whole screen of the product is shown as a display: a dark bezel, and a band of light across the glass that
 * passes once when the screen comes into view and again under the pointer.
 */
.m-show-screen,
.m-hero-screen,
.m-band-track > .m-shot:only-child {
  position: relative;
  overflow: clip;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
  border-radius: clamp(0.625rem, 1vw, 0.875rem);
  background: var(--m-paper);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--color-text) 8%, transparent),
    0 20px 40px -24px color-mix(in srgb, var(--color-text) 28%, transparent);
}

.m-show-screen .m-shot-img,
.m-hero-screen .m-shot-img,
.m-band-track > .m-shot:only-child .m-shot-img {
  border-radius: inherit;
}

.m-show-screen::after,
.m-hero-screen::after,
.m-band-track > .m-shot:only-child::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 38%,
    color-mix(in srgb, var(--color-background) 26%, transparent) 47%,
    color-mix(in srgb, var(--color-background) 6%, transparent) 53%,
    transparent 62%
  );
  transform: translateX(-70%);
  pointer-events: none;
  content: "";
}

/* A still reflection in the top corner of the glass. */
.m-show-screen::before,
.m-hero-screen::before,
.m-band-track > .m-shot:only-child::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(140deg, color-mix(in srgb, var(--color-background) 14%, transparent), transparent 28%);
  pointer-events: none;
  content: "";
}

@media (prefers-reduced-motion: no-preference) {
  .m-show-panel:not([hidden]) .m-show-screen::after,
  .m-tour-panel:not([hidden]) .m-band-track > .m-shot:only-child::after,
  .m-hero-screen::after,
  .m-page-band .m-shot:only-child::after {
    animation: m-sheen 1.6s var(--m-ease-std) 0.5s both;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .m-show-screen:hover::after,
  .m-hero-screen:hover::after,
  .m-band-track > .m-shot:only-child:hover::after {
    animation: m-sheen-again 1.4s var(--m-ease-std) both;
  }
}

@keyframes m-sheen {
  from {
    transform: translateX(-70%);
  }

  to {
    transform: translateX(70%);
  }
}

@keyframes m-sheen-again {
  from {
    transform: translateX(-70%);
  }

  to {
    transform: translateX(70%);
  }
}

/*
 * The light opening: a few words and one action over the brand's own artwork, and under them one screen of the
 * product that rises out of the section's foot.
 */
.m-hero-art {
  background:
    linear-gradient(to bottom, transparent 92%, var(--m-paper)),
    url("hero-art.webp") center / 115% 115% no-repeat,
    var(--m-paper);
}

.m-hero-art .m-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}

.m-hero-art .m-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-inline-size: 40rem;
  padding-block-end: 0;
}

.m-hero-art .m-hero-title {
  grid-row: auto;
  grid-column: auto;
  max-inline-size: 12em;
  font-size: clamp(2.5rem, 3.4vw + 1rem, 4.25rem);
}

.meridian:lang(ar) .m-hero-art .m-hero-title {
  font-size: clamp(2.25rem, 3.2vw + 0.9rem, 4rem);
  font-weight: 400;
  line-height: 1.25;
}

.m-hero-art .m-hero-lead,
.m-hero-art .m-hero-actions {
  grid-row: auto;
  grid-column: auto;
}

/* The screen stands whole beside the words, on a pane of frosted glass. */
.m-hero-screen {
  inline-size: 100%;
  outline: 0.75rem solid color-mix(in srgb, var(--m-paper) 35%, transparent);
}

@media (width >= 64rem) {
  .m-hero-art .m-hero-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .m-hero-art .m-hero-copy {
    grid-row: 1;
    grid-column: 1;
  }

  .m-hero-art .m-hero-screen {
    grid-row: 1;
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .m-hero-screen {
    animation: m-screen-rise 1s var(--m-ease-out) 0.25s both;
  }

  /* The artwork breathes: a slow drift of the picture itself (transform only would move the text, so position). */
  .m-hero-art {
    animation: m-art-drift 18s var(--m-ease-std) infinite alternate;
  }
}

@keyframes m-screen-rise {
  from {
    transform: translateY(3rem);
  }
}

@keyframes m-art-drift {
  from {
    background-position:
      0 0,
      20% 30%,
      0 0;
  }

  to {
    background-position:
      0 0,
      80% 70%,
      0 0;
  }
}

/* The opening's first line: no marker square, and a size that reads. */
.m-hero-art .m-marker {
  justify-self: start;
  padding: 0.375rem 0.875rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 30%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--color-primary) 70%, var(--color-text));
  background: color-mix(in srgb, var(--color-background) 70%, transparent);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
}

.m-hero-art .m-marker::before {
  content: none;
}

/* A link under the screen of a step. */
.m-show-link {
  margin-block-start: 1.25rem;
  text-align: end;
}

/* Two languages, one screen: the switch above, the whole screen under it. */
.meridian .m-book-tabs {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.75rem;
}

.m-book-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--f-line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--m-paper) 70%, transparent);
}

.m-book-tab {
  display: inline-flex;
  position: relative;
  gap: 0.5rem;
  align-items: center;
  overflow: hidden;
  padding: 0.5rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--f-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    color var(--m-quick) var(--m-ease-out),
    background-color var(--m-quick) var(--m-ease-out);
}

.m-book-tab .m-figure {
  font-size: 0.75rem;
  opacity: 0.7;
}

.m-book-tab[aria-selected="true"] {
  background: var(--m-ink);
  color: var(--m-paper);
}

.m-book-tab .m-show-progress {
  inset-block-end: 0;
}

.m-book-tab[aria-selected="true"] .m-show-progress {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .m-book-tabs[data-autoplay=""][data-inview] .m-book-tab[aria-selected="true"] .m-show-progress {
    animation: m-progress 6s linear both;
  }
}

.m-book-stage {
  inline-size: min(100%, 55rem);
}

.m-book-label {
  display: none;
}

/*
 * Wide screens: the two languages side by side, the same screen at the same size (about 620 px each, from the 1120 px
 * or 2240 px file, so both stay sharp), each under its language; the switch has nothing left to switch.
 */
@media (width >= 1000px) {
  .m-book-tabs .m-book-switch {
    display: none;
  }

  .m-book-tabs .m-book-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    inline-size: 100%;
  }

  /* Both panels in their own columns, both shown (the tabs' cross-fade stacks them and hides the other one). */
  .meridian .m-book-stage > .m-show-panel {
    grid-area: auto;
  }

  .meridian .m-book-stage > .m-show-panel[hidden] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .m-book-label {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    justify-content: center;
    margin-block-end: 0.875rem;
    color: var(--f-text);
    font-weight: 600;
  }

  .m-book-label .m-figure {
    color: var(--f-muted);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
  }
}

/*
 * The film in place of the screen: its picture on the same pane of frosted glass, a round play button in the middle;
 * the click plays it in a large dialog in the middle of the page (sf-dialog, the runtime starts and stops it).
 */
.m-hero-video {
  padding: 3px;
  overflow: visible;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    color-mix(in srgb, var(--color-primary) 40%, var(--m-paper)) 45%,
    color-mix(in srgb, var(--m-blue, var(--color-primary)) 70%, var(--m-paper))
  );
  outline: 0.625rem solid color-mix(in srgb, var(--m-paper) 45%, transparent);
  box-shadow:
    0 30px 70px -30px color-mix(in srgb, var(--color-primary) 55%, transparent),
    0 18px 40px -24px color-mix(in srgb, var(--color-text) 40%, transparent);
}

.m-hero-video::after {
  display: none;
}

.m-hero-video-open {
  position: relative;
  display: block;
  inline-size: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: calc(clamp(0.75rem, 1.2vw, 1.125rem) - 3px);
  font: inherit;
  background: var(--m-paper);
  cursor: pointer;
}

.m-hero-video-poster {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--m-ease-std);
}

.m-hero-video-play {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  inline-size: clamp(3.25rem, 7vw, 6.25rem);
  block-size: clamp(3.25rem, 7vw, 6.25rem);
  border-radius: 50%;
  color: var(--color-background);
  background: radial-gradient(
    circle at 30% 25%,
    color-mix(in srgb, var(--color-primary) 70%, var(--color-background)),
    var(--color-primary) 55%,
    color-mix(in srgb, var(--color-primary) 75%, var(--color-text))
  );
  box-shadow:
    0 0 0 0.5rem color-mix(in srgb, var(--color-background) 70%, transparent),
    0 20px 40px -12px color-mix(in srgb, var(--color-primary) 65%, transparent);
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--m-ease-std);
}

[dir="rtl"] .m-hero-video-play {
  transform: translate(50%, -50%);
}

.m-hero-video-play svg {
  position: relative;
  inline-size: 42%;
  block-size: 42%;
  fill: currentcolor;
  translate: 8% 0;
}

/* Two rings that keep widening from the button, the film's invitation. */
.m-hero-video-ring {
  position: absolute;
  inset: 0;
  border: 2px solid color-mix(in srgb, var(--color-primary) 60%, transparent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .m-hero-video-ring {
    animation: m-ring 2.4s var(--m-ease-std) infinite;
  }

  .m-hero-video-ring + .m-hero-video-ring {
    animation-delay: 1.2s;
  }
}

@keyframes m-ring {
  from {
    opacity: 0.9;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.9);
  }
}

.m-hero-video-label {
  position: absolute;
  inset-block-end: clamp(0.75rem, 2.5vw, 1.5rem);
  inset-inline-start: 50%;
  z-index: 2;
  padding: clamp(0.3rem, 0.6vw, 0.5rem) clamp(0.75rem, 1.4vw, 1.125rem);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  border-radius: 999px;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-background) 85%, transparent);
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--color-text) 35%, transparent);
  font-weight: 600;
  font-size: clamp(0.75rem, 1vw, 0.9375rem);
  white-space: nowrap;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

[dir="rtl"] .m-hero-video-label {
  transform: translateX(50%);
}

.m-hero-video-open:hover .m-hero-video-poster {
  transform: scale(1.03);
}

.m-hero-video-open:hover .m-hero-video-play,
.m-hero-video-open:focus-visible .m-hero-video-play {
  transform: translate(-50%, -50%) scale(1.1);
}

[dir="rtl"] .m-hero-video-open:hover .m-hero-video-play,
[dir="rtl"] .m-hero-video-open:focus-visible .m-hero-video-play {
  transform: translate(50%, -50%) scale(1.1);
}

.m-hero-video-open:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.m-video-dialog {
  inline-size: min(92vw, 80rem, calc(86vh * 16 / 9));
  max-inline-size: none;
  max-block-size: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 1rem;
  background: var(--m-ink);
  box-shadow: 0 40px 120px -20px color-mix(in srgb, var(--m-ink) 60%, transparent);
}

.m-video-dialog::backdrop {
  background: color-mix(in srgb, var(--m-ink) 82%, transparent);
  backdrop-filter: blur(6px);
}

.m-video {
  display: block;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  border-radius: inherit;
  background: var(--m-ink);
}

.m-video-close {
  position: absolute;
  inset-block-start: -3rem;
  inset-inline-end: 0;
  display: grid;
  place-items: center;
  inline-size: 2.5rem;
  block-size: 2.5rem;
  border: 0;
  border-radius: 50%;
  color: var(--color-background);
  background: color-mix(in srgb, var(--color-background) 16%, transparent);
  cursor: pointer;
}

.m-video-close:hover,
.m-video-close:focus-visible {
  background: color-mix(in srgb, var(--color-background) 30%, transparent);
}

@media (width < 40rem) {
  .m-video-dialog {
    inline-size: 100vw;
    border-radius: 0;
  }

  .m-video-close {
    inset-block-start: -2.75rem;
    inset-inline-end: 0.5rem;
  }
}

/*
 * The light opening's words, made to read: the marker as a green tag, a statement in regular and bold in Arabic (Tajawal
 * Light is faint at this size on the artwork), a darker deck, and less empty room under the screen.
 */
.meridian:lang(ar) .m-hero-art .m-hero-title strong {
  font-weight: 700;
}

.m-hero-art .m-hero-title strong {
  font-weight: 700;
}

.m-hero-art .m-hero-lead {
  color: color-mix(in srgb, var(--color-text) 82%, transparent);
}

/*
 * Screens as evidence, not as the page: beside its words a screen takes seven twelfths of the page and at most 720 px
 * (about 450 px tall, under half a window's height), whole and in a light frame. The words lead; the screen proves
 * them. A section stays within one window.
 */
@media (width >= 1000px) {
  .m-show-tabs:not(.m-book-tabs) .m-show-stage,
  .m-tour-panel:not([hidden]) > .m-band {
    justify-self: end;
    inline-size: min(100%, 45rem);
  }

  /* Beside a long list (the trades) the screen stays in view while the list is read. */
  .m-show-tabs:not(.m-book-tabs) .m-show-stage {
    position: sticky;
    inset-block-start: calc(var(--m-header-h, 4.5rem) + 2rem);
  }
}
