/* ==========================================================================
   Case study · Riyadh Heights — /work/riyadh-heights
   Paper artboard "13 Case Study · Riyadh Heights" (2GM-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-work-riyadh-heights.
   The few physical properties are marked: they place something on a screenshot
   or a photograph, which is never mirrored.
   ========================================================================== */

/* ---- 01 Hero (4O4-0): 1020px tall, the header laid over the skyline ---- */
.page-work-riyadh-heights .rh-hero {
  display: flex;
  flex-direction: column;
  min-block-size: clamp(38rem, 70.8333vw, 63.75rem);                 /* 1020 at 1440 */
  padding-block: calc(var(--header-offset) + var(--space-8)) clamp(2.5rem, 5.5556vw, 5rem);   /* 32 under the header · 80 */
  overflow: hidden;
  isolation: isolate;
  background-image: none;                                            /* the photograph takes the place of the glow */
}

.page-work-riyadh-heights .rh-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-work-riyadh-heights .rh-hero__media > picture,
.page-work-riyadh-heights .rh-hero__media img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.page-work-riyadh-heights .rh-hero__media img {
  object-fit: cover;
  object-position: 77% 50%;                /* Paper's crop: Al Faisaliah tower toward the end of the frame */
}

/* Two scrims over the photograph, as drawn: one down the frame, one from the side the text sits on. */
.page-work-riyadh-heights .rh-hero__media::before,
.page-work-riyadh-heights .rh-hero__media::after {
  content: "";
  position: absolute;
  inset-block: 0;
}

.page-work-riyadh-heights .rh-hero__media::before {
  inset-inline: 0;
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-near-black) 85%, transparent) 0%,
    color-mix(in srgb, var(--color-near-black) 35%, transparent) 18%,
    color-mix(in srgb, var(--color-near-black) 10%, transparent) 40%,
    color-mix(in srgb, var(--color-near-black) 80%, transparent) 66%,
    var(--color-near-black) 90%
  );
}

.page-work-riyadh-heights .rh-hero__media::after {
  inset-inline-start: 0;
  inline-size: 69.4444%;                   /* 1000 of 1440 */
  background-image: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-midnight) 94%, transparent) 0%,
    color-mix(in srgb, var(--color-midnight) 65%, transparent) 45%,
    transparent 100%
  );
}

/* Arabic: the scrim follows the text to the other side. The photograph itself is never flipped. */
[dir="rtl"] .page-work-riyadh-heights .rh-hero__media::after {
  background-image: linear-gradient(
    270deg,
    color-mix(in srgb, var(--color-midnight) 94%, transparent) 0%,
    color-mix(in srgb, var(--color-midnight) 65%, transparent) 45%,
    transparent 100%
  );
}

.page-work-riyadh-heights .rh-hero__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-16);
}

.page-work-riyadh-heights .rh-hero__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Paper sets this headline at -4% (the H1 specimen is -4.5%) in a 1100px measure. */
.page-work-riyadh-heights .rh-hero__title {
  max-inline-size: 68.75rem;
  letter-spacing: var(--tracking-tight);
}

/* Arabic: the Latin name is set in Inter with this headline's own tracking (the shared rule would give it the
   H1 token), and the two words of the emphasis stay together, so "جديدة." is never left alone on a line when
   the headline reflows on a tablet. */
.page-work-riyadh-heights .rh-hero__title [lang="en"] { letter-spacing: var(--tracking-tight); }
.page-work-riyadh-heights:lang(ar) .rh-hero__title em { white-space: nowrap; }

.page-work-riyadh-heights .rh-hero__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5) var(--grid-gap);
  padding-block-start: var(--space-8);
  border-block-start: 1px solid var(--c-rule);
}

.page-work-riyadh-heights .rh-hero__lead { color: var(--c-text); }   /* full white here, as drawn */

.page-work-riyadh-heights .rh-hero__tags {
  flex: none;
  color: var(--c-muted);
  white-space: nowrap;
}

/* ---- 02 Project metadata (4T3-0) ---- */
.page-work-riyadh-heights .rh-meta {
  padding-block-start: clamp(3rem, 5vw, 4.5rem);                     /* 72 */
  background-color: var(--c-ground);
}

/* The disclosure row: a label in the three-column label lane, the line beside it, no hairline. */
.page-work-riyadh-heights .rh-meta__about {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: center;
  padding-block-start: var(--space-4);     /* with the row gap: 40 under the four facts */
  border-block-start: 0;
}

.page-work-riyadh-heights .rh-meta__about dt {
  grid-column: 1 / span 3;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--c-text);
}

.page-work-riyadh-heights .rh-meta__about dt::before {
  content: "";
  flex: none;
  inline-size: 6px;
  block-size: 6px;
  background-color: var(--color-emerald);
}

.page-work-riyadh-heights .rh-meta__about dd {
  grid-column: 4 / span 6;
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

/* ---- 03 Context (523-0) ---- */
.page-work-riyadh-heights .rh-context__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-10);
}

.page-work-riyadh-heights .rh-context__title { max-inline-size: 37.5rem; }   /* 600 */

.page-work-riyadh-heights .rh-context__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
  padding-block-start: var(--space-14);    /* the lead starts on the headline's first line */
}

/* ---- 04 The design challenge (5FO-0) ---- */
.page-work-riyadh-heights .rh-challenge__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-10);
}

.page-work-riyadh-heights .rh-challenge__statement { letter-spacing: var(--tracking-tight); }

.page-work-riyadh-heights .rh-challenge__body { margin-block-start: clamp(3rem, 6.6667vw, 6rem); }   /* 96 */

.page-work-riyadh-heights .rh-before__frame { --media-ground: var(--color-background); }

/* Numbered marker: on the screenshot and beside each note. */
.page-work-riyadh-heights .rh-pin {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: 1.875rem;                   /* 30 */
  block-size: 1.875rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-ink);
  color: var(--color-on-dark);
  font-size: var(--fs-caption);
  font-weight: var(--weight-medium);
  line-height: var(--lh-label);
}

/* Physical left / top on purpose: each pin marks a point on a screenshot, which is not mirrored in Arabic. */
.page-work-riyadh-heights .rh-before__pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  border: 2px solid var(--color-on-dark);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-near-black) 35%, transparent);
}

.page-work-riyadh-heights .rh-before__tag {
  position: absolute;
  inset-block-end: var(--space-5);
  inset-inline-start: var(--space-5);
  padding: 6px 12px 7px;
}

.page-work-riyadh-heights .rh-before__caption { margin-block-start: var(--space-5); }

.page-work-riyadh-heights .rh-notes { border-block-end: 1px solid var(--c-rule); }

.page-work-riyadh-heights .rh-notes__row {
  display: flex;
  gap: var(--space-5);
  padding-block: var(--space-6) var(--space-7);
  border-block-start: 1px solid var(--c-rule);
}

.page-work-riyadh-heights .rh-notes__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-inline-size: 0;
}

/* Paper sets these row titles 22 / 30. Arabic keeps its own taller line. */
.page-work-riyadh-heights:lang(en) .rh-notes__body .h5 { line-height: calc(30 / 22); }

/* ---- 05 Design goals and approach (5TX-0): 160 above, 120 below ---- */
.page-work-riyadh-heights .rh-goals { padding-block-end: var(--section-pad-tight); }

/* Numeral (3 columns) · goal (5) · explanation (4), under a hairline. No hairline closes the list. */
.page-work-riyadh-heights .rh-goals__row {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  align-items: start;
  padding-block: var(--space-10) var(--space-14);
  border-block-start: 1px solid var(--c-rule);
}

.page-work-riyadh-heights .rh-goals__num,
.page-work-riyadh-heights .rh-outcomes__num {
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

.page-work-riyadh-heights .rh-goals__num {
  grid-column: 1 / span 3;
  line-height: calc(var(--fs-h3) * var(--lh-h3));   /* sits on the goal's first line */
}

.page-work-riyadh-heights .rh-goals__title { grid-column: 4 / span 5; }

.page-work-riyadh-heights .rh-goals__text {
  grid-column: 9 / span 4;
  padding-block-start: var(--space-2);
}

/* ---- 06 Final website visual (6GC-0): brand rule, a title row, the photograph edge to edge ---- */
.page-work-riyadh-heights .rh-final { background-color: var(--c-ground); }

/* On this artboard the brand rule and the title row start 120px from the page edge: 40px inside the content. */
.page-work-riyadh-heights .rh-final .rule--brand,
.page-work-riyadh-heights .rh-outcomes .rule--brand { --brand-rule-inset: var(--space-10); }

.page-work-riyadh-heights .rh-final__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--grid-gap);
  min-block-size: 7.25rem;                 /* 116: the row keeps the height it has with the 44px action in it */
  padding-block: var(--space-8) var(--space-10);
  padding-inline-start: var(--space-10);
}

.page-work-riyadh-heights .rh-final__figure > picture,
.page-work-riyadh-heights .rh-final__figure img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

/* ---- 07 Before and after (6GM-0) ---- */
.page-work-riyadh-heights .rh-compare__slider,
.page-work-riyadh-heights .rh-changes,
.page-work-riyadh-heights .rh-stage,
.page-work-riyadh-heights .rh-live__frame,
.page-work-riyadh-heights .rh-live__foot { margin-block-start: clamp(2.5rem, 5vw, 4.5rem); }   /* 72 */

/* The comparison is the shared slider in its large size (interactive.css): frame shadow, glow, 56px handle,
   tags and the look of the hint come from there. The hint sits above the comparison, 24px from it. */
.page-work-riyadh-heights .rh-compare__hint { margin-block-end: var(--space-6); }

/* Four changes under the comparison */
.page-work-riyadh-heights .rh-changes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-10) var(--grid-gap);
}

.page-work-riyadh-heights .rh-changes__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--c-rule);
}

.page-work-riyadh-heights .rh-changes__label { color: var(--c-marker); }
.page-work-riyadh-heights .rh-changes__text { color: var(--c-text); }

/* ---- 08 Interface details (7SS-0) ---- */

/* The paragraph under these headings is body-sized (17 / 27), six columns wide. */
.page-work-riyadh-heights .rh-interface__intro,
.page-work-riyadh-heights .rh-live__intro {
  max-inline-size: 39.25rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-normal);
}

.page-work-riyadh-heights .rh-live__intro { max-inline-size: 32.4375rem; }   /* 519 */

.page-work-riyadh-heights .rh-stage {
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
}

.page-work-riyadh-heights .rh-fragment,
.page-work-riyadh-heights .rh-collage figure {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-inline-size: 0;
}

/* Caption: an uppercase label and, beside or under it, one line about the decision. */
.page-work-riyadh-heights .rh-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  font-size: var(--fs-caption);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  color: var(--c-muted);
}

.page-work-riyadh-heights .rh-caption--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
}

.page-work-riyadh-heights .rh-caption__label {
  font-size: var(--fs-label);
  font-weight: var(--weight-light);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
  text-transform: uppercase;
  color: var(--c-ink);
}

/* The four fragments are pictures of the sample's interface. A wide one keeps a readable size on a narrow
   screen and scrolls sideways inside its own box; it reads left to right in Arabic too. */
.page-work-riyadh-heights .rh-fragment__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  direction: ltr;
  scrollbar-width: thin;
}

.page-work-riyadh-heights .rh-fragment__scroll > picture,
.page-work-riyadh-heights .rh-fragment__scroll img,
.page-work-riyadh-heights .rh-fragment__image > picture,
.page-work-riyadh-heights .rh-fragment__image img {
  display: block;
  inline-size: 100%;
  block-size: auto;
}

.page-work-riyadh-heights .rh-fragment__scroll--bar > picture { min-inline-size: 50rem; }

/* Card (4 columns) beside the development header (8); the note (4) beside the form (8). */
.page-work-riyadh-heights .rh-stage__row {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--space-10);
}

.page-work-riyadh-heights .rh-fragment--card,
.page-work-riyadh-heights .rh-enquiry__text { grid-column: 1 / span 4; }

.page-work-riyadh-heights .rh-fragment--header,
.page-work-riyadh-heights .rh-fragment--form { grid-column: 5 / span 8; }

.page-work-riyadh-heights .rh-enquiry__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-8);
  padding-block-start: var(--space-8);
}

.page-work-riyadh-heights .rh-enquiry__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.page-work-riyadh-heights .rh-enquiry__intro .body { max-inline-size: 23.75rem; }   /* 380 */

.page-work-riyadh-heights .rh-facts { border-block-end: 1px solid var(--c-rule); }

.page-work-riyadh-heights .rh-facts__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 0.875rem;
  border-block-start: 1px solid var(--c-rule);
  font-size: var(--fs-caption);
  line-height: var(--lh-label);
  letter-spacing: var(--tracking-normal);
}

.page-work-riyadh-heights .rh-facts dt { color: var(--c-muted); }

.page-work-riyadh-heights .rh-facts dd {
  color: var(--c-ink);
  text-align: end;
}

/* ---- 09 Screens and responsive (9B1-0): 160 above, 120 below ---- */
.page-work-riyadh-heights .rh-screens { padding-block-end: var(--section-pad-tight); }

/* Three equal columns: the home screen across two, the phone down the third, the second screen and the list under the first. */
.page-work-riyadh-heights .rh-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "home home    phone"
    "dev  carries phone";
  gap: var(--space-12) var(--grid-gap);
}

.page-work-riyadh-heights .rh-collage__home { grid-area: home; }
.page-work-riyadh-heights .rh-collage__development { grid-area: dev; }
.page-work-riyadh-heights .rh-collage__carries { grid-area: carries; min-inline-size: 0; }
.page-work-riyadh-heights .rh-collage__phone { grid-area: phone; }

/* The phone stands on a midnight tile that runs the height of the two rows beside it. Paper draws the device
   image 455 × 910 at -22, -26 in the 411 × 855 tile; the same box, as shares of the tile, holds it at any size. */
.page-work-riyadh-heights .rh-phone-tile {
  position: relative;
  flex: 1 1 auto;
  min-block-size: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-midnight) url("/assets/images/brand/glow-midnight.webp") 50% 50% / cover no-repeat;
}

.page-work-riyadh-heights .rh-phone-tile > picture {
  position: absolute;
  /* physical on purpose: a symmetric overhang around a centred device */
  top: -3.04%;
  left: -5.35%;
  inline-size: 110.7%;
  max-inline-size: none;                   /* wider than the tile on purpose: the file carries a clear margin */
  block-size: 106.43%;
}

.page-work-riyadh-heights .rh-phone-tile img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: none;
  object-fit: contain;
}

.page-work-riyadh-heights .rh-carries__label {
  display: flex;
  padding-block-end: var(--space-5);
  --c-marker: var(--color-emerald);
}

.page-work-riyadh-heights .rh-carries { border-block-end: 1px solid var(--c-rule); }

.page-work-riyadh-heights .rh-carries li {
  padding-block: 1.125rem;
  border-block-start: 1px solid var(--c-rule);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--tracking-normal);
  color: var(--c-ink);
}

.page-work-riyadh-heights:lang(en) .rh-carries li { line-height: calc(25 / 17); }   /* as drawn */

/* ---- Explore the experience · live preview (B9D-0). Rendered only when the sample is live. ---- */
.page-work-riyadh-heights .rh-live__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--grid-gap);
}

.page-work-riyadh-heights .rh-live__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-4);
}

/* ---- 10 Design outcomes (9XT-0): brand rule, then 120 above and 160 below ---- */
.page-work-riyadh-heights .rh-outcomes { padding-block-start: 0; }

.page-work-riyadh-heights .rh-outcomes__inner { padding-block-start: var(--section-pad-tight); }

.page-work-riyadh-heights .rh-outcomes__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-10);
}

/* Paper tightens this headline to -5% so "What the design" holds one line in four columns. */
.page-work-riyadh-heights:lang(en) .rh-outcomes__title { letter-spacing: -0.05em; }

.page-work-riyadh-heights .rh-outcomes__note { max-inline-size: 22.5rem; }   /* 360 */

.page-work-riyadh-heights .rh-outcomes__list { border-block-end: 1px solid var(--c-rule); }

/* Numeral (60) · outcome · the short proof (280) */
.page-work-riyadh-heights .rh-outcomes__row {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) 17.5rem;
  column-gap: var(--grid-gap);
  align-items: start;
  padding-block: var(--space-7) var(--space-8);
  border-block-start: 1px solid var(--c-rule);
}

.page-work-riyadh-heights .rh-outcomes__num { line-height: calc(var(--fs-h4) * var(--lh-h4)); }

.page-work-riyadh-heights .rh-outcomes__row .small { padding-block-start: 0.375rem; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .page-work-riyadh-heights .rh-hero__inner { gap: var(--space-12); }

  .page-work-riyadh-heights .rh-context__head { gap: var(--space-6); }
  .page-work-riyadh-heights .rh-context__copy { padding-block-start: 0; }

  .page-work-riyadh-heights .rh-challenge__head { gap: var(--space-6); }

  /* Goals: the numeral in a narrow lane, goal and explanation stacked beside it */
  .page-work-riyadh-heights .rh-goals__row {
    grid-template-columns: 3.75rem minmax(0, 1fr);
    row-gap: var(--space-4);
    padding-block: var(--space-8) var(--space-10);
  }

  .page-work-riyadh-heights .rh-goals__num { grid-column: 1; }

  .page-work-riyadh-heights .rh-goals__title,
  .page-work-riyadh-heights .rh-goals__text { grid-column: 2; }

  .page-work-riyadh-heights .rh-goals__text {
    max-inline-size: 39.25rem;
    padding-block-start: 0;
  }

  /* Before and after: the four changes two by two */
  .page-work-riyadh-heights .rh-changes { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Interface details: each fragment on its own row. The card keeps its own width. */
  .page-work-riyadh-heights .rh-fragment--card,
  .page-work-riyadh-heights .rh-fragment--header,
  .page-work-riyadh-heights .rh-fragment--form,
  .page-work-riyadh-heights .rh-enquiry__text { grid-column: 1 / -1; }

  .page-work-riyadh-heights .rh-fragment--card { max-inline-size: 25.6875rem; }   /* 411 */

  .page-work-riyadh-heights .rh-enquiry__text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: end;
    padding-block-start: 0;
  }

  /* Screens: the home screen across the top; the phone beside the second screen and the list */
  .page-work-riyadh-heights .rh-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "home    home"
      "dev     phone"
      "carries phone";
    grid-template-rows: auto auto 1fr;
    row-gap: var(--space-10);
  }

  .page-work-riyadh-heights .rh-phone-tile { min-block-size: 26rem; }

  .page-work-riyadh-heights .rh-outcomes__head { gap: var(--space-6); }
}

/* ==========================================================================
   Phone
   ========================================================================== */
@media (max-width: 768px) {
  .page-work-riyadh-heights .rh-hero__row {
    flex-direction: column;
    align-items: flex-start;
    padding-block-start: var(--space-6);
  }

  .page-work-riyadh-heights .rh-hero__tags { white-space: normal; }

  /* Arabic below the tablet layout: the lines run most of the width, so their far ends leave the side scrim and sit on the
     bright haze at the horizon (measured: up to a tenth of the headline's letters under 3:1 at 360px, some still at 520px).
     The scrim down the frame darkens earlier here, from a quarter of the height instead of two fifths; the sky
     and the top of the tower above the headline stay as light as before. */
  [dir="rtl"] .page-work-riyadh-heights .rh-hero__media::before {
    background-image: linear-gradient(
      180deg,
      color-mix(in srgb, var(--color-near-black) 85%, transparent) 0%,
      color-mix(in srgb, var(--color-near-black) 35%, transparent) 16%,
      color-mix(in srgb, var(--color-near-black) 36%, transparent) 25%,
      color-mix(in srgb, var(--color-near-black) 58%, transparent) 42%,
      color-mix(in srgb, var(--color-near-black) 84%, transparent) 66%,
      var(--color-near-black) 90%
    );
  }

  /* The disclosure row: label above the line */
  .page-work-riyadh-heights .rh-meta__about { row-gap: var(--space-2); }

  .page-work-riyadh-heights .rh-meta__about dt,
  .page-work-riyadh-heights .rh-meta__about dd { grid-column: 1 / -1; }

  /* Smaller pins on a smaller screenshot */
  .page-work-riyadh-heights .rh-before__pin {
    inline-size: 1.5rem;
    block-size: 1.5rem;
    border-width: 1.5px;
  }

  .page-work-riyadh-heights .rh-before__tag {
    inset-block-end: var(--space-3);
    inset-inline-start: var(--space-3);
  }

  .page-work-riyadh-heights .rh-notes__row { gap: var(--space-4); }

  .page-work-riyadh-heights .rh-goals__row { grid-template-columns: 2rem minmax(0, 1fr); column-gap: var(--space-4); }

  /* The brand rule and the title row come back to the content edge */
  .page-work-riyadh-heights .rh-final .rule--brand,
  .page-work-riyadh-heights .rh-outcomes .rule--brand { --brand-rule-inset: 0px; }

  .page-work-riyadh-heights .rh-final__head {
    min-block-size: 0;
    padding-block: var(--space-6) var(--space-7);
    padding-inline-start: 0;
  }

  .page-work-riyadh-heights .rh-compare__hint { margin-block-end: var(--space-4); }

  .page-work-riyadh-heights .rh-stage { gap: var(--space-12); }

  /* Wide fragments stay readable and scroll sideways */
  .page-work-riyadh-heights .rh-fragment__scroll > picture { min-inline-size: 36rem; }
  .page-work-riyadh-heights .rh-fragment__scroll--bar > picture { min-inline-size: 50rem; }

  .page-work-riyadh-heights .rh-enquiry__text {
    display: flex;
    align-items: stretch;
  }

  /* Outcomes: the numeral beside the outcome, the proof under it */
  .page-work-riyadh-heights .rh-outcomes__row {
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: var(--space-4);
    row-gap: var(--space-2);
    padding-block: var(--space-6) var(--space-7);
  }

  .page-work-riyadh-heights .rh-outcomes__row .small {
    grid-column: 2;
    padding-block-start: 0;
  }
}

@media (max-width: 480px) {
  .page-work-riyadh-heights .rh-hero { min-block-size: 36rem; }

  .page-work-riyadh-heights .rh-before__pin {
    inline-size: 1.25rem;
    block-size: 1.25rem;
    font-size: var(--fs-micro);
  }

  .page-work-riyadh-heights .rh-changes { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-8); }

  /* Screens: one column; the phone tile keeps the proportions it has in Paper */
  .page-work-riyadh-heights .rh-collage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "home"
      "dev"
      "carries"
      "phone";
    grid-template-rows: none;
  }

  .page-work-riyadh-heights .rh-phone-tile {
    flex: none;
    min-block-size: 0;
    aspect-ratio: 411 / 855;
  }

  .page-work-riyadh-heights .rh-facts__row { flex-direction: column; gap: var(--space-1); }
  .page-work-riyadh-heights .rh-facts dd { text-align: start; }
}
