/* ==========================================================================
   Services — /services
   Paper artboard "02 Services" (176-0). Everything shared comes from site.css;
   this file holds only what is particular to this page. Tokens only, logical
   properties only, every rule under .page-services.
   ========================================================================== */

.page-services {
  /* Row titles on this page are 22/30 (the H5 token is 22/28). Arabic keeps its own taller value. */
  --row-lh: calc(30 / 22);
  /* 20/28 titles of the redesign scope list */
  --scope-fs: clamp(1.125rem, 1.0833rem + 0.1852vw, 1.25rem);
  --scope-lh: calc(28 / 20);
  /* 48/52 titles of the two starting points */
  --audience-lh: calc(52 / 48);
}

.page-services:lang(ar) {
  --row-lh: var(--lh-h5);
  --scope-lh: var(--lh-h5);
  --audience-lh: var(--lh-h3);
}

/* Text links on this page stand alone in rows and under tables: a 44px touch target around the 20px line. */
.page-services main .link { position: relative; }

.page-services main .link::after {
  content: "";
  position: absolute;
  inset: -0.75rem 0;
}

/* ---- Ghost numerals (decoration, aria-hidden): large pale numbers behind a headline ----
   Each sits in its section's container, behind the content, and is sized from the headline's
   own size token, so it scales with the headline. Offsets are Paper's, in em of the numeral. */
.page-services :is(.services-hero, .services-design, .services-redesign) {
  overflow: hidden;
  overflow: clip;
}

.page-services .services-layer {
  position: relative;
  isolation: isolate;
}

.page-services .ghost-num {
  position: absolute;
  z-index: -1;
  inset-block-start: var(--ghost-top);
  inset-inline-end: var(--ghost-end);
  font-size: var(--ghost-size);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ghost);
  white-space: nowrap;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 300px numerals beside a 120px headline */
.page-services .ghost-num--hero-1 { --ghost-size: calc(var(--fs-display) * 2.5); --ghost-top: -0.1067em; --ghost-end: 1.1467em; }
.page-services .ghost-num--hero-2 { --ghost-size: calc(var(--fs-display) * 2.5); --ghost-top: 0.6667em; --ghost-end: -0.0533em; }
/* 420px beside an 88px headline */
.page-services .ghost-num--design { --ghost-size: calc(var(--fs-h1) * 4.7727); --ghost-top: -0.2095em; --ghost-end: -0.0571em; }
/* 480px beside a 120px headline, 5% white, cut by the top of the section */
.page-services .ghost-num--redesign {
  --ghost-size: calc(var(--fs-display) * 4);
  --ghost-top: -0.4083em;
  --ghost-end: -0.0667em;
  color: color-mix(in srgb, var(--color-on-dark) 5%, transparent);
}

/* ---- 01 Page hero (1DS-0) ---- */
.page-services .services-hero { padding-block-start: calc(var(--header-offset) + var(--space-14)); }

.page-services .services-hero .hero__copy {
  --hero-top: clamp(2rem, 3.8889vw, 3.5rem);       /* 56 */
  --hero-gap: clamp(1.25rem, 2.2222vw, 2rem);      /* 32 */
  --hero-bottom: 0px;
}

/* Paper sets this headline at -4% (the Display specimen is -4.5%). */
.page-services .services-hero__title { letter-spacing: var(--tracking-tight); }

/* The closing phrase stays whole when the headline wraps on a phone ("a stronger / digital presence.").
   The wrap then falls where the desktop break is, which also keeps the headline the same height while its
   entrance plays: the text module starts a new line at every <br>, the hidden desktop one included. */
.page-services .services-hero__title em:last-child { white-space: nowrap; }

/* Lead (5 columns) at the start, the two services (6 columns) at the end: 80 above, 96 below. */
.page-services .services-hero__row {
  padding-block: clamp(2.5rem, 5.5556vw, 5rem) clamp(3.5rem, 6.6667vw, 6rem);
}

.page-services .service-index { border-block-end: 1px solid var(--c-rule); }
.page-services .service-index__item { border-block-start: 1px solid var(--c-rule); }

.page-services .service-index__link {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: 1.375rem;                         /* 22 */
  color: var(--c-ink);
}

.page-services .service-index__num {
  flex: none;
  inline-size: 2.25rem;                            /* 36 */
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

.page-services .service-index__name {
  flex: 1 1 0;
  min-inline-size: 0;
}

.page-services .service-index__for { flex: none; }

.page-services .service-index__link .icon { transition: translate var(--dur-base) var(--ease-out); }

@media (hover: hover) {
  .page-services .service-index__link:hover .icon { translate: calc(4px * var(--dir)) 0; }
}

/* ---- 02 Audience split (1K8-0): two columns, 64px either side of a hairline ---- */
.page-services .audience {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-services .audience__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding-inline-end: var(--space-16);
}

.page-services .audience__col + .audience__col {
  padding-inline: var(--space-16) 0;
  border-inline-start: 1px solid var(--c-rule);
}

/* 48/52: between the H2 and H3 tokens */
.page-services .audience__title {
  font-size: clamp(1.75rem, 1.3333rem + 1.8519vw, 3rem);
  line-height: var(--audience-lh);
  letter-spacing: var(--tracking-tight);
  color: var(--c-ink);
  text-wrap: balance;
}

.page-services .audience__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-10) var(--grid-gap);
}

.page-services .audience__fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--c-rule);
}

.page-services .audience__fact--wide { grid-column: 1 / -1; }

/* Pinned to the foot of the column, so the two service links stay level. */
.page-services .audience__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-block-start: auto;
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--c-rule);
}

.page-services .audience__foot .link { margin-block-start: var(--space-3); }

/* Where the two columns stand side by side they share their rows, so the hairlines of the facts and of
   the foot stay level when a text runs a line longer in one column (Arabic at desktop, English on a tablet).
   Without subgrid the columns keep the layout above. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 769px) {
    .page-services .audience { row-gap: var(--space-10); }

    .page-services .audience__col {
      display: grid;
      grid-row: span 5;                              /* label, title, the wide fact, the two short facts, foot */
      grid-template-rows: subgrid;
    }

    .page-services .audience__facts {
      grid-row: span 2;
      grid-template-rows: subgrid;
    }

    /* The foot fills its shared row from the hairline down, also when the other column's link has wrapped. */
    .page-services .audience__foot {
      align-content: start;
      margin-block-start: 0;
    }
  }

  /* On a tablet the three facts are one under another. */
  @media (min-width: 769px) and (max-width: 1024px) {
    .page-services .audience__col { grid-row: span 6; }
    .page-services .audience__facts { grid-row: span 3; }
  }
}

/* ---- 03 and 04: the head of each service showcase ---- */
.page-services .service-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 2.2222vw, 2rem);             /* 32 */
}

.page-services .service-head .eyebrow {
  flex-wrap: wrap;
  row-gap: var(--space-1);
}

.page-services .service-head__for { color: var(--c-muted); }

/* Paper sets both headlines at -4%. */
.page-services .service-head__title { letter-spacing: var(--tracking-tight); }

/* ---- 03 Web & App Design showcase (2VI-0) ---- */
.page-services .services-design { background-position: 50% 50%; }

.page-services .cover-label { padding-block-end: var(--space-5); }

.page-services .cover-list .rule-list__row {
  --rule-pad-top: var(--space-5);
  --rule-pad-bottom: var(--space-5);
  gap: var(--space-5);
}

.page-services .cover-list { --rule-body-gap: var(--space-1); }

.page-services .cover-list .rule-list__key {
  inline-size: 2rem;
  line-height: calc(var(--fs-h5) * var(--row-lh));
}

.page-services .cover-list .h5 { line-height: var(--row-lh); }

.page-services .cover-action {
  display: flex;
  padding-block-start: var(--space-12);
}

/* The stage: a monitor that stands on a hairline, an app screen in front of its right-hand side.
   Physical left/right on purpose: this is a composition of two sample-brand screens and is not mirrored
   in Arabic (mirrored, the app screen would cover the headline on the monitor instead of its photograph). */
.page-services .design-stage {
  position: relative;
  aspect-ratio: 737 / 560;
  border-block-end: 1px solid var(--c-rule);
}

.page-services .design-stage__monitor {
  position: absolute;
  bottom: 0;
  left: -4.342%;                                   /* -32 of 737 */
  inline-size: 103.121%;                           /* 760 of 737 */
}

.page-services .design-stage__app {
  position: absolute;
  right: 0;
  bottom: 5%;                                      /* 28 of 560 */
  inline-size: 26.594%;                            /* 196 of 737 */
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--color-near-black) 20%, transparent);
}

.page-services .design-stage :is(picture, img) {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.page-services .design-visual__captions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  margin-block-start: var(--space-5);
}

/* Each caption stays under its own picture: the stage is not mirrored, so in Arabic the row runs the other way. */
[dir="rtl"] .page-services .design-visual__captions { flex-direction: row-reverse; }

.page-services .design-visual__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-6);
}

/* ---- 04 Web & App Redesign showcase (3VD-0) ---- */
.page-services .services-redesign .service-head .lead { margin-block-start: var(--space-2); }

/* One before/after element (the shared slider in its standard size, interactive.css): the comparison in
   8 columns and its panel in 4, the same height. .grid and .section__body on the same element lay it out;
   the glow, the handle, the tags and the hint line in the panel come from the slider. */
.page-services .redesign-compare__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-8);
}

.page-services .redesign-compare__head {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;                                   /* 14 */
}

.page-services .redesign-compare__kicker { color: var(--c-marker); }

/* What changed: 102px key, both columns at 15/23 */
.page-services .change-list .rule-list__row {
  --rule-pad-top: var(--space-4);
  --rule-pad-bottom: var(--space-4);
}

.page-services .change-list .rule-list__key {
  inline-size: 6.375rem;
  font-size: var(--fs-small);
  font-weight: var(--weight-regular);
  line-height: var(--lh-small);
  text-transform: none;
  color: var(--c-text);
}

.page-services .redesign-compare__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

/* What it covers: a label column, then seven rows in two columns with the button in the eighth cell. */
.page-services .redesign-scope { margin-block-start: var(--section-gap); }

.page-services .redesign-scope__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.page-services .redesign-scope__intro .small { max-inline-size: 15.625rem; }   /* 250 */

.page-services .scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  column-gap: var(--grid-gap);
}

/* The list shares the rows of the grid, so 01–04 and 05–07 stay level whatever their length. */
.page-services .scope-list {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: var(--grid-gap);
}

@supports (grid-template-rows: subgrid) {
  .page-services .scope-list {
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
  }
}

.page-services .scope-list__item {
  display: flex;
  gap: var(--space-5);
  min-block-size: 7.25rem;                         /* 116 */
  padding-block: var(--space-5) 1.0625rem;
  border-block-start: 1px solid var(--c-rule);
}

.page-services .scope-list__item:nth-child(4) { border-block-end: 1px solid var(--c-rule); }

.page-services .scope-list__num {
  flex: none;
  inline-size: 2rem;
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: calc(var(--scope-fs) * var(--scope-lh));
  letter-spacing: var(--tracking-normal);
  color: var(--c-marker);
}

.page-services .scope-list__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: var(--space-1);
  min-inline-size: 0;
}

.page-services .scope-list__title {
  font-size: var(--scope-fs);
  line-height: var(--scope-lh);
  letter-spacing: var(--tracking-normal);
  color: var(--c-ink);
}

.page-services .scope-grid__action {
  display: flex;
  grid-column: 2;
  grid-row: 4;
  align-items: center;
  min-block-size: 7.25rem;
  border-block: 1px solid var(--c-rule);
}

/* ---- 05 Who each service is for (4XR-0): a real table, 302 + 465 + 465 with 24px gaps ---- */
.page-services .compare {
  inline-size: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.page-services .compare :is(th, td) {
  padding: 0;
  font-weight: var(--weight-regular);
  text-align: start;
  vertical-align: top;
}

.page-services .compare thead > tr > :first-child { inline-size: 25.469%; }    /* 302 + 24 of 1280 */
.page-services .compare thead > tr > :nth-child(2) { inline-size: 38.203%; }   /* 465 + 24 of 1280 */

.page-services .compare thead :is(th, td) { padding-block-end: var(--space-7); }
.page-services .compare thead > tr > :not(:last-child) { padding-inline-end: var(--grid-gap); }

.page-services .compare .compare__note { vertical-align: bottom; }

.page-services .compare__service-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-block-start: var(--space-5);
  border-block-start: 2px solid var(--c-rule-strong);
}

.page-services .compare__kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--c-ink);
}

.page-services .compare tbody tr { border-block-start: 1px solid var(--c-rule); }
.page-services .compare tbody tr:last-child { border-block-end: 1px solid var(--c-rule); }

.page-services .compare tbody :is(th, td) { padding-block: 1.625rem; }          /* 26 */

.page-services .compare .compare__key {
  padding-inline-end: var(--grid-gap);
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: calc(var(--fs-body) * var(--lh-body));    /* sits on the first line of the value */
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--c-text);
}

.page-services .compare tbody td {
  padding-inline-end: var(--space-10);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-normal);
  color: var(--c-ink);
  text-wrap: pretty;
}

.page-services .compare tbody td:nth-child(2) { padding-inline-end: var(--space-16); }   /* 24 + 40 */

/* The service name inside each value: shown only when the table is stacked on a phone. */
.page-services .compare__for { display: none; }

.page-services .compare tfoot td { padding-block-start: var(--space-10); }      /* 28 + 12 */

/* ---- 06 Selected examples (6WO-0) ---- */
.page-services .example-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
}

.page-services .example-group--next { margin-block-start: calc(var(--section-gap) + var(--space-6)); }

/* Group head on the page grid: label (3 columns), title, a note at the end, on one baseline. */
.page-services .example-group__head {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: baseline;
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--c-rule-strong);
}

.page-services .example-group__label { grid-column: 1 / span 3; }
.page-services .example-group__title { grid-column: 4 / span 5; }

.page-services .example-group__note {
  grid-column: 9 / -1;
  justify-self: end;
  text-align: end;
}

/* This artboard draws the cards a little tighter than the shared card: 20 / 4 / 20. */
.page-services .services-examples .project-card { gap: var(--space-5); }
.page-services .services-examples .project-card__body { gap: var(--space-1); }
.page-services .services-examples .project-card__actions { padding-block-start: var(--space-4); }

/* Two examples have no case study: no link, so no hover invitation. */
.page-services .example-static:hover .media img { transform: none; }

/* The standard phone image, cropped by a white card frame (340 x 681 at 35, -36 in 411 x 475). */
.page-services .phone-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 411 / 475;
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-lg);
  background-color: var(--color-background);
}

.page-services .phone-frame .phone {
  position: absolute;
  inset-block-start: -7.579%;
  inset-inline-start: 8.516%;
}

/* Beside the 8-column picture the frame takes that picture's height at any width: two of its own widths
   and one gutter, at the picture's 845:475. A fixed ratio drifts by up to 6px between 769 and 1280px,
   because the gutters do not scale with the columns, and the two titles under the pictures stop being level. */
@supports (block-size: 1cqi) {
  @media (min-width: 769px) {
    .page-services .example-static { container-type: inline-size; }

    .page-services .phone-frame {
      aspect-ratio: auto;
      block-size: calc((200cqi + var(--grid-gap)) * 475 / 845);
    }
  }
}

/* ---- 07 Delivery approach (8PP-0) ---- */
.page-services .approach-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
}

/* Paper's label box is 28px tall here and in the FAQ. */
.page-services :is(.approach-intro, .faq-intro, .redesign-scope__intro) .eyebrow { min-block-size: 1.75rem; }

.page-services .approach-intro__text { max-inline-size: 27.5rem; }               /* 440 */
.page-services .approach-intro__link { padding-block-start: var(--space-5); }    /* 8 + the link's own 12 */

.page-services .approach-label {
  padding-block-end: var(--space-3);
  line-height: 1.75rem;                            /* 28: level with the eyebrow beside it */
}

/* Stage rows: 44px numeral, 204px name, description. */
.page-services .stage-list .rule-list__row {
  --rule-pad-top: 1.375rem;
  --rule-pad-bottom: 1.375rem;
  gap: var(--space-5);
}

.page-services .stage-list { --rule-body-gap: 0px; }

.page-services .stage-list .rule-list__key {
  inline-size: 2.75rem;
  line-height: calc(var(--fs-h5) * var(--row-lh));
}

.page-services .stage-list .rule-list__body {
  display: flex;
  gap: var(--space-5);
}

.page-services .stage-list .h5 {
  flex: none;
  inline-size: 12.75rem;                           /* 204 */
  line-height: var(--row-lh);
}

.page-services .stage-list .small {
  flex: 1 1 0;
  min-inline-size: 0;
  padding-block-start: var(--space-1);
}

.page-services .approach-with { margin-block-start: var(--space-18); }

/* Two halves under one hairline. */
.page-services .stage-list--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-services .stage-list--pair .rule-list__row:first-child { padding-inline-end: var(--grid-gap); }

.page-services .stage-list__marker {
  display: flex;
  align-items: center;
  block-size: calc(var(--fs-h5) * var(--row-lh));
}

.page-services .stage-list__marker::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  background-color: var(--color-emerald);
}

/* ---- 08 FAQ (94S-0): the intro column is as tall as the list, the contact note at its foot ---- */
.page-services .faq-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-12);
}

.page-services .faq-intro__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
}

.page-services .faq-intro__contact {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-inline-size: var(--label-col);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--c-rule);
}

/* The address stands alone, as drawn; the underline arrives on hover. The padding keeps the touch target
   at 44px or more on a phone as well, where the body line is 25px. */
.page-services .faq-intro__mail {
  display: inline-block;
  margin-block: -0.625rem;
  padding-block: 0.625rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--dur-fast) var(--ease-standard);
}

@media (hover: hover) {
  .page-services .faq-intro__mail:hover { text-decoration-color: currentColor; }
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  /* 02: the two columns stay; the two short facts inside each stack */
  .page-services .audience__col { padding-inline-end: var(--space-8); }
  .page-services .audience__col + .audience__col { padding-inline: var(--space-8) 0; }
  .page-services .audience__facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }

  /* 03: the list, then the stage. The stage loses the empty band Paper keeps above the monitor
     (it only exists to line the monitor up with the list beside it). */
  .page-services .services-design .section__body { --grid-row-gap: var(--space-8); }
  .page-services .design-stage { aspect-ratio: 737 / 480; }

  /* 04: the comparison, then its panel as a row of three blocks */
  .page-services .redesign-compare { --grid-row-gap: var(--space-8); }
  .page-services .redesign-scope { --grid-row-gap: var(--space-8); }
  .page-services .redesign-scope__intro .small { max-inline-size: 30rem; }

  /* 05: narrower gutters inside the table */
  .page-services .compare tbody td,
  .page-services .compare tbody td:nth-child(2) { padding-inline-end: var(--grid-gap); }
  .page-services .compare tbody td:last-child { padding-inline-end: 0; }

  /* 06: label above, then title and note on one line */
  .page-services .example-group__head { row-gap: var(--space-3); }
  .page-services .example-group__label { grid-column: 1 / -1; }
  .page-services .example-group__title { grid-column: 1 / span 7; }
  .page-services .example-group__note { grid-column: 8 / -1; }
  .page-services .example-group { gap: var(--space-12); }

  /* 07: in the two halves the description goes under the name */
  .page-services .approach-with { margin-block-start: var(--space-14); }
  .page-services .stage-list--pair .rule-list__body { flex-direction: column; gap: var(--space-1); }
  .page-services .stage-list--pair .h5 { inline-size: auto; }
  .page-services .stage-list--pair .small { padding-block-start: 0; }

  /* 08: the note follows the heading */
  .page-services .faq-intro { gap: var(--space-8); }
}

/* ---- Phone ---- */
@media (max-width: 768px) {
  /* 01: the audience note sits under the service name */
  .page-services .service-index__link {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    column-gap: var(--space-3);
    row-gap: var(--space-1);
    padding-block: var(--space-5);
  }

  /* The numeral stays on the first line of the name when the name takes two (the Arabic redesign title). */
  .page-services .service-index__num {
    inline-size: auto;
    align-self: start;
    line-height: calc(var(--fs-h4) * var(--lh-h4));
  }
  .page-services .service-index__for { grid-column: 2; grid-row: 2; }
  .page-services .service-index__link .icon { grid-column: 3; grid-row: 1 / span 2; }

  /* 02: one column; the short facts go back to two */
  .page-services .audience { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-16); }
  .page-services .audience__col,
  .page-services .audience__col + .audience__col { gap: var(--space-8); padding-inline: 0; border-inline-start: 0; }
  .page-services .audience__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--grid-gap); }
  .page-services .audience__foot { margin-block-start: 0; }

  /* 03: captions in one column, in reading order; the letter stays beside its row */
  .page-services .design-visual__captions,
  [dir="rtl"] .page-services .design-visual__captions {
    flex-direction: column;
    align-items: flex-start;
    row-gap: var(--space-4);
  }

  .page-services .cover-list .rule-list__row { flex-direction: row; gap: var(--space-3); }
  .page-services .cover-list .rule-list__key { inline-size: 1.5rem; }
  .page-services .cover-action { padding-block-start: var(--space-10); }

  /* 04: one list, then the button */
  .page-services .scope-grid,
  .page-services .scope-list { display: block; }
  .page-services .scope-list__item { gap: var(--space-3); min-block-size: 0; padding-block: var(--space-5); }
  .page-services .scope-list__item:nth-child(4) { border-block-end: 0; }
  .page-services .scope-grid__action { min-block-size: 0; padding-block: var(--space-8) 0; border-block-end: 0; }

  /* 05: the table becomes one block per question, each value under its service name */
  .page-services .compare,
  .page-services .compare :is(thead, tbody, tfoot, tr, th, td) { display: block; }

  .page-services .compare thead > tr > :is(:first-child, :nth-child(2), :last-child) { inline-size: auto; padding: 0; }

  .page-services .compare thead tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6) var(--grid-gap);
    padding-block-end: var(--space-8);
  }

  .page-services .compare .compare__note { grid-column: 1 / -1; }

  .page-services .compare tbody tr { padding-block: var(--space-6); }
  .page-services .compare tbody :is(th, td) { padding: 0; }
  .page-services .compare .compare__key { line-height: var(--lh-label); }
  .page-services .compare tbody td,
  .page-services .compare tbody td:nth-child(2),
  .page-services .compare tbody td:last-child { padding-block-start: var(--space-4); padding-inline-end: 0; }

  .page-services .compare__for {
    display: block;
    margin-block-end: 0.125rem;
    font-size: var(--fs-caption);
    line-height: var(--lh-caption);
    color: var(--c-muted);
  }

  /* Two text links, one under the other: 24px apart, so their 44px touch targets meet and do not overlap. */
  .page-services .compare tfoot tr {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding-block-start: var(--space-8);
  }

  .page-services .compare tfoot td { padding: 0; }
  .page-services .compare .compare__spacer { display: none; }

  /* 06: head in one column */
  .page-services .example-group__title,
  .page-services .example-group__note { grid-column: 1 / -1; justify-self: start; text-align: start; }
  .page-services .example-group { gap: var(--space-10); }
  .page-services .example-row { --grid-row-gap: var(--space-10); }

  /* 07: numeral beside the name, the description under it */
  .page-services .stage-list .rule-list__row { flex-direction: row; gap: var(--space-3); }
  .page-services .stage-list .rule-list__key { inline-size: 2rem; }
  .page-services .stage-list .rule-list__body { flex-direction: column; gap: var(--space-1); }
  .page-services .stage-list .h5 { inline-size: auto; }
  .page-services .stage-list .small { padding-block-start: 0; }
  .page-services .stage-list--pair { grid-template-columns: minmax(0, 1fr); }
  .page-services .stage-list--pair .rule-list__row:first-child { padding-inline-end: 0; }
  .page-services .approach-intro { gap: var(--space-6); }
  .page-services .approach-intro__link { padding-block-start: var(--space-2); }

  /* 08 */
  .page-services .faq-intro__head { gap: var(--space-6); }
}

/* Between phone and tablet the cards are one wide column: the phone card becomes a landscape frame
   with the same share of the phone in view, so it is not taller than the screen. */
@media (min-width: 481px) and (max-width: 768px) {
  .page-services .phone-frame { aspect-ratio: 16 / 11; }

  .page-services .phone-frame .phone {
    inset-inline-start: 25.5%;
    inline-size: 49%;
  }
}

@media (max-width: 480px) {
  .page-services .audience__facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .page-services .compare thead tr { grid-template-columns: minmax(0, 1fr); }
  /* The two long "explore" buttons fill the width and may take two lines (the Arabic labels are longer). */
  .page-services .cover-action .btn,
  .page-services .scope-grid__action .btn {
    inline-size: 100%;
    padding-block: var(--space-3);
    white-space: normal;
  }
}
