/* Ritaj Simsim: home page sections. */

.rs-section {
  position: relative;
  padding-block: 56px;
}

.rs-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-block-end: 28px;

  .rs-eyebrow {
    margin-block-end: 8px;
  }
}

.rs-section__head--stack {
  display: block;
}

.rs-section__head--center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rs-section__lead {
  max-width: 560px;
  margin-block-start: 8px;
  font-size: 17px;
  color: var(--rs-muted);
}

/* Onion-arch frame */
.rs-arch {
  overflow: hidden;
  -webkit-mask: var(--rs-arch) center / 100% 100% no-repeat;
  mask: var(--rs-arch) center / 100% 100% no-repeat;

  img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Video intro (sections/rs-intro.liquid): the owner's film over the page; it ends on the cream of the site,
   so the fade-out reveals the page without a break. */
.rs-intro {
  display: none;
}

html.rs-intro-on .rs-intro {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: block;
  overflow: hidden;
  background-color: #2a170b;
  /* Safety net: never stay on screen, even if the script fails (later when the visitor has to click). */
  animation: rs-intro-out 0.6s 12s forwards;

  &.rs-intro--click {
    animation-delay: 40s;
  }

  &.is-done {
    animation: rs-intro-out 0.7s ease-in forwards;
  }
}

@keyframes rs-intro-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.rs-intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-intro__bar {
  position: absolute;
  inset-block-end: calc(18px + env(safe-area-inset-bottom));
  inset-inline-end: 18px;
  display: flex;
  gap: 10px;
}

.rs-intro__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgb(255 243 214 / 0.55);
  font: 600 15px/1 var(--font-family);
  color: #fff3d6;
  background-color: rgb(32 18 8 / 0.62);
  cursor: pointer;

  &:focus-visible {
    outline: 2px solid var(--rs-accent);
    outline-offset: 2px;
  }
}

.rs-intro__icon-on,
.rs-intro.is-sound .rs-intro__icon-off {
  display: none;
}

.rs-intro.is-sound .rs-intro__icon-on {
  display: block;
}

/* "Open the door": waits on the first image of the film, plays it with sound */
.rs-intro__open {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 20vh;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 56px;
  margin-inline: auto;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  font: 700 18px/1 var(--font-family);
  color: var(--rs-bg);
  background-color: var(--rs-primary);
  box-shadow: 0 12px 30px rgb(20 10 4 / 0.35);
  cursor: pointer;
  animation: rs-intro-call 2.4s ease-in-out infinite;
  transition: opacity 0.4s, visibility 0.4s;

  .rs-icon {
    color: var(--rs-accent);
  }

  &:focus-visible {
    outline: 2px solid var(--rs-accent);
    outline-offset: 3px;
  }
}

.rs-intro.is-opened .rs-intro__open {
  opacity: 0;
  visibility: hidden;
}

@keyframes rs-intro-call {
  50% {
    transform: scale(1.05);
  }
}

/* Hero */
.rs-hero {
  position: relative;
  overflow: hidden;
  padding-block: 20px 36px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, #fffaf0 0%, transparent 70%),
    var(--rs-bg);

  .rs-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: var(--rs-star);
    background-size: 56px;
    opacity: 0.55;
    -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 70%);
    mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 70%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    pointer-events: none;
  }

  .rs-hero__inner {
    position: relative;
    display: grid;
    gap: 24px;
  }

  .rs-hero__media {
    position: relative;
    order: -1;
    width: min(88vw, 430px);
    margin-block-start: 10px;
    justify-self: center;

    &::before {
      content: "";
      position: absolute;
      inset: -9px;
      -webkit-mask: var(--rs-arch) center / 100% 100% no-repeat;
      mask: var(--rs-arch) center / 100% 100% no-repeat;
      background: linear-gradient(180deg, var(--rs-accent), color-mix(in srgb, var(--rs-accent) 10%, transparent));
    }
  }

  .rs-hero__arch {
    position: relative;
    aspect-ratio: 5 / 5.6;
    background-color: var(--rs-sand-100);

    img {
      object-position: 50% 45%;
    }
  }

  /* Photo of the gate (2026-10-28): the frame follows the gate's own pointed arch, 40 px wider all round, on a photo
     cut to that frame (tools/make_hero_gate.py), so the whole gate shows. Used with the theme's photo only. */
  .rs-hero__media--gate {
    --rs-gate-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 680 950' preserveAspectRatio='none'%3E%3Cpath d='M340 1L372.6 22.5 392.6 35.4 423.7 55.7 453.7 75.7 483.7 95.7 516.6 118.5 544.7 138.9 571.8 160.3 595.9 180.8 621.6 207.2 639.1 231.4 652.3 257.4 660.9 277.5 669.1 303.5 673.6 330 676.1 350.6 677.4 374 677.9 394.1 678 417V950H2V417L2.1 394.1 2.6 374 3.9 350.6 6.4 330 10.9 303.5 19.1 277.5 27.7 257.4 40.9 231.4 58.4 207.2 84.1 180.8 108.2 160.3 135.3 138.9 163.4 118.5 196.3 95.7 226.3 75.7 256.3 55.7 287.4 35.4 307.4 22.5z'/%3E%3C/svg%3E");

    width: min(62vw, 245px);

    &::before {
      -webkit-mask-image: var(--rs-gate-arch);
      mask-image: var(--rs-gate-arch);
    }

    .rs-hero__arch {
      aspect-ratio: 680 / 950;
      -webkit-mask-image: var(--rs-gate-arch);
      mask-image: var(--rs-gate-arch);

      img {
        object-position: 50% 50%;
      }
    }
  }

  /* Phones and tablets: the card and the seal sit on the edges of the gate frame, in the margin beside it, so they
     never cover the passage through the gate. The card goes beside the point, the seal astride the side post. */
  @media (max-width: 1024px) {
    .rs-hero__media--gate {
      .rs-hero__chip {
        inset-block: -6px auto;
        inset-inline-end: -50px;
        gap: 8px;
        padding-block: 5px;
        padding-inline: 5px 12px;
      }

      .rs-hero__chip-icon {
        width: 30px;
        height: 30px;
      }

      .rs-hero__chip-text {
        strong {
          font-size: 13px;
        }

        span {
          font-size: 11.5px;
        }
      }

      .rs-hero__seal {
        inset-block-end: 8%;
        inset-inline-start: -34px;
        width: 64px;
        height: 64px;

        img {
          width: 40px;
        }
      }
    }
  }

  /* A warm light crosses the arch now and then, like the sun through the gate. */
  .rs-hero__light {
    position: absolute;
    inset-block: 0;
    inset-inline-start: -60%;
    width: 50%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgb(255 236 196 / 0.55) 45%, rgb(255 248 230 / 0.75) 50%, rgb(255 236 196 / 0.55) 55%, transparent);
    mix-blend-mode: soft-light;
    transform: skewX(-14deg) translateX(0);
    animation: rs-hero-light 7s 2.2s var(--rs-ease) infinite;
  }

  /* Gold dust rising around the gate */
  .rs-hero__dust {
    position: absolute;
    inset: -4% -6%;
    pointer-events: none;

    span {
      position: absolute;
      inset-inline-start: var(--x);
      inset-block-start: var(--y);
      width: var(--s);
      height: var(--s);
      border-radius: 50%;
      background: radial-gradient(circle, #fff6dc, var(--rs-accent) 60%, transparent 72%);
      opacity: 0;
      animation: rs-dust 7s var(--d) ease-in-out infinite;
    }
  }

  /* The RS seal floats beside the gate */
  .rs-hero__seal {
    position: absolute;
    inset-block-end: 22px;
    inset-inline-start: -4px;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background-color: var(--rs-bg);
    box-shadow:
      0 0 0 2px var(--rs-accent),
      0 0 0 7px color-mix(in srgb, var(--rs-bg) 70%, transparent),
      var(--rs-shadow);
    animation: rs-float 5s 1.4s ease-in-out infinite;

    img {
      display: block;
      width: 48px;
      height: auto;
    }
  }

  /* Free-delivery card, floating on the outer side of the gate (opposite the seal) */
  /* On a phone it sits on the paving, level with the seal, clear of the names on the gate. */
  .rs-hero__chip {
    position: absolute;
    inset-block-end: 34px;
    inset-inline-end: -8px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 7px;
    padding-inline: 7px 16px;
    border-radius: 999px;
    background-color: var(--rs-surface);
    box-shadow: 0 10px 28px rgb(60 36 20 / 18%);
    animation: rs-float 5.6s 3.2s ease-in-out infinite;
  }

  .rs-hero__chip-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--rs-bg);
    background-color: var(--rs-primary);
  }

  .rs-hero__chip-text {
    display: grid;
    line-height: 1.35;

    strong {
      font-size: 14px;
      font-weight: 700;
      color: var(--rs-text);
    }

    span {
      font-size: 12.5px;
      color: var(--rs-muted);
    }
  }

  .rs-hero__content {
    text-align: center;
  }

  /* "Open sesame", signed with the gold key and a short gold line */
  .rs-hero__eyebrow {
    margin-block-end: 4px;
    font-size: 16px;

    &::after {
      content: "";
      width: 36px;
      height: 1px;
      background: linear-gradient(90deg, var(--rs-accent), transparent);
    }
  }

  [dir="rtl"] & .rs-hero__eyebrow::after {
    background: linear-gradient(270deg, var(--rs-accent), transparent);
  }

  .rs-hero__title {
    margin-block: 6px 6px;
    font-weight: 700;
    font-size: clamp(34px, 1.2rem + 3.2vw, 60px);
    line-height: 1.3;
    color: var(--rs-text);
    text-wrap: balance;
  }

  .rs-hero__lead {
    display: block;
  }

  /* The last words take turns: the track slides up one line at a time (the 4th line repeats the 1st). */
  .rs-hero__rotator {
    --rs-line: 1.32em;
    position: relative;
    display: block;
    height: var(--rs-line);
    overflow: hidden;
    color: var(--rs-primary);
  }

  .rs-hero__rotator-track {
    display: grid;
    animation: rs-rotate 9s 1.6s var(--rs-ease) infinite;

    span {
      display: block;
      height: var(--rs-line);
      white-space: nowrap;
    }
  }

  .rs-hero__divider {
    margin-inline: auto;
  }

  .rs-hero__text {
    max-width: 520px;
    margin-inline: auto;
    font-size: 17px;
    line-height: 1.85;
    color: var(--rs-muted);
  }

  .rs-hero__actions {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-block-start: 24px;

    .rs-btn {
      width: 100%;
      max-width: 420px;
    }
  }
}

@keyframes rs-float {
  50% {
    transform: translateY(-8px);
  }
}

@keyframes rs-hero-light {
  0%,
  55% {
    transform: skewX(-14deg) translateX(0);
  }
  100% {
    transform: skewX(-14deg) translateX(420%);
  }
}

[dir="rtl"] .rs-hero .rs-hero__light {
  animation-name: rs-hero-light-rtl;
}

@keyframes rs-hero-light-rtl {
  0%,
  55% {
    transform: skewX(14deg) translateX(0);
  }
  100% {
    transform: skewX(14deg) translateX(-420%);
  }
}

@keyframes rs-dust {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.6);
  }
  25% {
    opacity: 0.95;
  }
  75% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-70px) scale(1);
  }
}

@keyframes rs-rotate {
  0%,
  28% {
    transform: translateY(0);
  }
  33%,
  61% {
    transform: translateY(calc(-1 * var(--rs-line)));
  }
  66%,
  94% {
    transform: translateY(calc(-2 * var(--rs-line)));
  }
  100% {
    transform: translateY(calc(-3 * var(--rs-line)));
  }
}

/* The gate drifts a little slower than the page as it scrolls (browsers with scroll timelines). */
@supports (animation-timeline: scroll()) {
  .rs-hero .rs-hero__media {
    animation: rs-parallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0 700px;
  }
}

@keyframes rs-parallax {
  to {
    translate: 0 var(--rs-hero-drift, 70px);
  }
}

/* Phones and tablets: the text starts right under the gate, so the drift stays inside the gap between them
   (2026-11-10: at 70 px the gate slid over the "open sesame" line while scrolling). */
@media (max-width: 1024px) {
  .rs-hero .rs-hero__media {
    --rs-hero-drift: 12px;
  }
}

/* Trust: the promises scroll by on a night band (the list is written twice for a seamless loop). */
.rs-trust {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 16px;
  color: var(--rs-bg);
  background:
    radial-gradient(ellipse 50% 120% at 50% 50%, color-mix(in srgb, var(--rs-accent) 22%, var(--rs-dark)), transparent 75%),
    var(--rs-dark);

  .rs-trust__pattern {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: var(--rs-star);
    background-size: 48px;
    opacity: 0.3;
    pointer-events: none;
  }

  .rs-trust__track {
    display: flex;
    width: max-content;
    animation: rs-ticker 38s linear infinite;
  }

  &:hover .rs-trust__track {
    animation-play-state: paused;
  }

  .rs-trust__list {
    display: flex;
    flex-shrink: 0;
    padding: 0;
    list-style: none;
  }

  .rs-trust__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline: 28px;
    white-space: nowrap;
    font-size: 15px;

    /* An eight-pointed star between two promises */
    &::after {
      content: "";
      width: 18px;
      height: 18px;
      margin-inline-start: 28px;
      background-image: var(--rs-star);
      background-size: 32px;
      background-position: center;
      opacity: 0.9;
    }

    .rs-icon {
      color: var(--rs-accent);
    }

    strong {
      font-weight: 700;
    }

    span {
      color: color-mix(in srgb, var(--rs-bg) 86%, var(--rs-dark));
    }
  }
}

@keyframes rs-ticker {
  to {
    transform: translateX(-50%);
  }
}

[dir="rtl"] .rs-trust .rs-trust__track {
  animation-name: rs-ticker-rtl;
}

@keyframes rs-ticker-rtl {
  to {
    transform: translateX(50%);
  }
}

/* Products */
.rs-products .rs-products__all {
  margin-inline-start: -14px;
}

/* As many columns as cards, up to 2, 3 or 4 by screen width, the last row centred: never an empty cell. data-count
   and data-odd come from rs-products and rs-related. */
.rs-grid {
  --rs-cols: 2;
  --rs-gap: 12px;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--rs-gap);

  > .rs-card {
    flex: 0 0 calc((100% - (var(--rs-cols) - 1) * var(--rs-gap)) / var(--rs-cols));
    min-inline-size: 0;
  }

  &[data-count="1"] {
    --rs-cols: 1;
  }
}

/* Phones: an odd last card takes the whole row, its photo (whole, square) beside its text. The zone badge keeps
   to one line: its "Delivery:" label is left to screen readers. */
@media (max-width: 767px) {
  .rs-card .rs-card__zone .rs-zone-badge__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .rs-grid[data-odd] > .rs-card:last-child {
    flex-basis: 100%;

    .rs-card__link {
      flex-direction: row;
      align-items: center;
    }

    .rs-card__media {
      flex: 0 0 46%;
      align-self: start;
    }

    .rs-card__body {
      align-self: stretch;
    }
  }
}

.rs-card {
  .rs-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--rs-radius);
    border: 1px solid var(--rs-line);
    background-color: var(--rs-surface);
    text-decoration: none;
    transition:
      transform 0.35s var(--rs-ease),
      box-shadow 0.35s var(--rs-ease),
      border-color 0.35s;

    /* Light that follows the cursor while the card tilts (no photo zoom: photos are never cropped). */
    position: relative;

    &::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      border-radius: inherit;
      background: radial-gradient(260px circle at var(--rs-mx, 50%) var(--rs-my, 30%), rgb(255 246 225 / 0.45), transparent 60%);
      mix-blend-mode: soft-light;
      opacity: 0;
      transition: opacity 0.3s;
    }

    &:hover {
      transform: translateY(-4px);
      border-color: var(--rs-accent);
      box-shadow: var(--rs-shadow);

      .rs-card__cta {
        color: var(--rs-bg);
        background-color: var(--rs-primary);
      }
    }
  }

  .rs-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--product-image-box-ratio, 1 / 1);
    background:
      radial-gradient(circle at 50% 35%, #fffaf1, transparent 70%),
      var(--rs-sand-100);

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: var(--product-image-fit, cover);
      transition: transform 0.6s var(--rs-ease);
    }
  }

  .rs-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--rs-accent);
    background-image: var(--rs-star);
    background-size: 42px;
  }

  /* Discreet saving tag: brown text on a light pill, lifted off the photo by a soft shadow */
  .rs-card__badge {
    position: absolute;
    inset-block-start: 10px;
    inset-inline-start: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    color: var(--rs-primary);
    background-color: var(--rs-surface);
    box-shadow: 0 1px 4px rgb(60 36 20 / 16%);
  }

  .rs-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 12px 12px 14px;
  }

  .rs-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    color: var(--rs-text);
  }

  /* With an English name under the Arabic one, the pair keeps the room of two title lines plus the subtitle, so
     the prices stay level from card to card. */
  .rs-card__names.has-alt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-block-size: 67px;

    .rs-card__title {
      min-height: 0;
    }
  }

  .rs-card__alt {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    line-height: 1.5;
    color: var(--rs-muted);
  }

  /* Delivery zone of the product (rs-zone-badge), on the photo's bottom corner */
  .rs-card__zone {
    position: absolute;
    inset-block-end: 10px;
    inset-inline-start: 10px;
    max-inline-size: calc(100% - 20px);
    padding: 6px 10px;
    border-radius: 999px;
    background-color: var(--rs-surface);
    box-shadow: 0 1px 4px rgb(60 36 20 / 16%);
  }

  .rs-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
  }

  .rs-card__now {
    font-weight: 700;
    font-size: 18px;
    color: var(--rs-primary);
  }

  .rs-card__was {
    font-size: 14px;
    color: var(--rs-muted);
  }

  /* Lighter button: outlined, it fills when the card is hovered */
  .rs-card__cta {
    display: grid;
    place-items: center;
    min-height: 44px;
    margin-block-start: auto;
    border-radius: 999px;
    border: 1.5px solid var(--rs-primary);
    font-weight: 600;
    font-size: 15px;
    color: var(--rs-primary);
    background-color: transparent;
    transition:
      background-color 0.25s,
      color 0.25s;
  }
}

/* Categories ("shop by need"): the square thumbnails, whole, with the name and an arrow under each; two side by
   side on phones, centred rows of up to 440px tiles above. The product grid follows closely. */
.rs-cats.rs-section {
  padding-block-end: 8px;
}

.rs-cats {
  .rs-cats__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .rs-cats__item {
    flex: 1 1 140px;
    max-inline-size: 440px;
  }

  .rs-cats__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--rs-line);
    color: var(--rs-text);
    background-color: var(--rs-surface);
    text-decoration: none;
    transition:
      transform 0.35s var(--rs-ease),
      box-shadow 0.35s var(--rs-ease),
      border-color 0.35s;

    &:hover {
      transform: translateY(-4px);
      border-color: var(--rs-accent);
      box-shadow: var(--rs-shadow);

      .rs-cats__go {
        gap: 10px;
      }
    }

    &:focus-visible {
      outline: 2px solid var(--rs-primary);
      outline-offset: 3px;
    }
  }

  .rs-cats__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    background-color: var(--rs-sand-100);

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .rs-cats__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--rs-accent);
  }

  .rs-cats__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
  }

  .rs-cats__name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
  }

  .rs-cats__go {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: var(--rs-primary);
    transition: gap 0.3s var(--rs-ease);
  }

  /* Phones: two tiles side by side leave room for the arrow only */
  .rs-cats__go-label {
    display: none;
  }
}

@media (min-width: 768px) {
  .rs-cats {
    .rs-cats__list {
      gap: 24px;
    }

    .rs-cats__item {
      flex-basis: 240px;
    }

    .rs-cats__caption {
      padding: 16px 20px;
    }

    .rs-cats__name {
      font-size: 18px;
    }

    .rs-cats__go-label {
      display: inline;
    }
  }
}

/* Featured product: the product photo, whole, stands in front of a gold gate; price, guarantees and order button */
.rs-spotlight {
  overflow: hidden;
  background-color: var(--rs-sand-100);

  .rs-spotlight__pattern {
    position: absolute;
    inset: 0;
    background-image: var(--rs-star);
    background-size: 56px;
    opacity: 0.4;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 40%, black, transparent 72%);
    pointer-events: none;
  }

  .rs-spotlight__inner {
    position: relative;
    display: grid;
    align-items: center;
    gap: 32px;
  }

  .rs-spotlight__stage {
    position: relative;
    justify-self: center;
    width: min(100%, 420px);
    padding-block-start: 30%;
    padding-inline: 9%;

    /* The gate behind the product (decoration only: the photo itself is never masked) */
    &::before {
      content: "";
      position: absolute;
      inset: 0 0 12%;
      -webkit-mask: var(--rs-arch) center / 100% 100% no-repeat;
      mask: var(--rs-arch) center / 100% 100% no-repeat;
      background: linear-gradient(180deg, color-mix(in srgb, var(--rs-accent) 55%, var(--rs-bg)), color-mix(in srgb, var(--rs-accent) 18%, var(--rs-bg)));
    }
  }

  .rs-spotlight__media {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--rs-surface);
    box-shadow: 0 22px 44px rgb(60 36 20 / 20%);

    img,
    video {
      display: block;
      width: 100%;
      height: auto;
    }

    video {
      aspect-ratio: 4 / 5;
      object-fit: contain;
      background-color: var(--rs-dark);
    }
  }

  .rs-spotlight__badge {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    color: var(--rs-bg);
    background-color: var(--rs-primary);
  }

  .rs-spotlight__body {
    text-align: center;
  }

  /* A shade darker than the brand brown: it sits on the sand band */
  .rs-spotlight__eyebrow {
    color: color-mix(in srgb, var(--rs-primary) 75%, var(--rs-text));
  }

  .rs-spotlight__title {
    margin-block: 4px 12px;
    font-size: clamp(28px, 1.1rem + 2vw, 44px);
  }

  /* The YouCan (English) name, under the Arabic one */
  .rs-spotlight__alt {
    display: block;
    margin-block-start: 6px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--rs-muted);
  }

  /* Delivery zone (rs-zone-badge): a light pill between the price and the order button */
  .rs-spotlight__zone {
    margin-block: 0 26px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--rs-line);
    font-size: 14px;
    background-color: var(--rs-surface);
  }

  .rs-spotlight__text {
    max-width: 520px;
    margin-inline: auto;
    font-size: 17px;
    line-height: 1.85;
    color: var(--rs-text);
  }

  .rs-spotlight__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 6px 14px;
    margin-block: 18px;
  }

  .rs-spotlight__now {
    font-weight: 700;
    font-size: 30px;
    color: var(--rs-primary);
  }

  .rs-spotlight__was {
    font-size: 18px;
    color: var(--rs-muted);
  }

  .rs-spotlight__points {
    display: grid;
    gap: 12px;
    width: fit-content;
    margin-block: 0 26px;
    margin-inline: auto;
    padding: 0;
    list-style: none;
    text-align: start;

    li {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 600;
      font-size: 16px;
      color: var(--rs-text);
    }

    .rs-icon {
      color: var(--rs-gold);
    }
  }

  .rs-spotlight__actions {
    display: grid;
    justify-items: center;
    gap: 12px;

    .rs-btn {
      width: 100%;
      max-width: 420px;
    }
  }
}

/* Short clips of the products in use: a strip of vertical videos that scrolls sideways */
.rs-reels {
  position: relative;
  margin-block-start: 56px;

  .rs-reels__title {
    margin-block-end: 18px;
    font-weight: 700;
    font-size: 22px;
    text-align: center;
  }

  .rs-reels__list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 220px);
    justify-content: safe center;
    gap: 16px;
    margin: 0;
    padding-block-end: 10px;
    padding-inline: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    list-style: none;
  }

  .rs-reel {
    scroll-snap-align: start;
  }

  .rs-reel__frame {
    position: relative;
    margin: 0;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    background-color: var(--rs-dark);

    video {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .rs-reel__caption {
    margin-block-start: 10px;
    font-weight: 600;
    font-size: 15px;
  }

  .rs-reel__link {
    min-height: 32px;
    font-size: 14px;
  }
}

/* Play / pause over a video */
.rs-video-toggle {
  position: absolute;
  inset-block-end: 10px;
  inset-inline-end: 10px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background-color: rgb(32 18 8 / 62%);
  cursor: pointer;

  .rs-video-toggle__pause {
    display: none;
  }

  &.is-playing {
    .rs-video-toggle__play {
      display: none;
    }

    .rs-video-toggle__pause {
      display: block;
    }
  }

  &:focus-visible {
    outline: 2px solid var(--rs-accent);
    outline-offset: 2px;
  }
}

/* Story: photo band fading into the text */
.rs-story {
  position: relative;
  overflow: hidden;
  padding-block: 0 56px;
  background:
    linear-gradient(180deg, transparent, var(--rs-sand-100) 22%, var(--rs-sand-100) 78%, transparent),
    var(--rs-bg);

  .rs-story__band {
    position: relative;
  }

  .rs-story__photo {
    display: block;
    width: 100%;
    height: auto;
    /* Mobile/tablet image = photo (top 69 %) + generated prolongation that fades out. */
    --rs-fade: linear-gradient(
      180deg,
      #000 0,
      #000 68%,
      rgb(0 0 0 / 0.86) 74%,
      rgb(0 0 0 / 0.62) 81%,
      rgb(0 0 0 / 0.36) 88%,
      rgb(0 0 0 / 0.13) 95%,
      transparent 100%
    );
    -webkit-mask-image: var(--rs-fade);
    mask-image: var(--rs-fade);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    &.is-custom {
      -webkit-mask-image: none;
      mask-image: none;
    }
  }

  .rs-story__sheen {
    position: absolute;
    inset: 0 0 31%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgb(255 240 210 / 0.55) 48%, transparent 60%);
    background-size: 250% 100%;
    background-position: 120% 0;
    mix-blend-mode: soft-light;
    opacity: 0;
  }

  /* Once in view: the light sweeps the photo every few seconds, and the RS seal turns into place. */
  .rs-story__band.is-in .rs-story__sheen {
    animation: rs-sheen-loop 8s 0.4s var(--rs-ease) infinite;
  }

  .rs-story__band.is-in .rs-story__seal {
    animation: rs-seal-in 1.2s 0.5s var(--rs-ease) both;
  }

  .rs-story__seal {
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: calc(69% - 46px);
    translate: -50% 0;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background-color: var(--rs-bg);
    box-shadow:
      0 0 0 2px var(--rs-accent),
      0 0 0 7px color-mix(in srgb, var(--rs-bg) 70%, transparent),
      var(--rs-shadow);

    img {
      display: block;
      width: 58px;
      height: auto;
    }
  }

  .rs-story__inner {
    position: relative;
    margin-block-start: -14vw;
  }

  .rs-story__content {
    max-width: 640px;
    margin-inline: auto;
    padding-block-start: 64px;
  }

  .rs-story__title {
    font-size: clamp(28px, 1.1rem + 2vw, 44px);
  }

  /* Full text colour: part of the paragraph runs over the faded photo. */
  .rs-story__text {
    margin-block-end: 24px;
    font-size: 17px;
    line-height: 1.9;
    color: var(--rs-text);
  }

  /* Over the faded photo, the button sits on a light base so it stays readable. */
  .rs-story__content .rs-btn--outline:not(:hover) {
    background-color: var(--rs-bg);
  }
}

[dir="rtl"] .rs-story .rs-story__seal {
  translate: 50% 0;
}

@keyframes rs-sheen-loop {
  0% {
    opacity: 0;
    background-position: 120% 0;
  }
  8% {
    opacity: 1;
  }
  26% {
    opacity: 0;
    background-position: -40% 0;
  }
  100% {
    opacity: 0;
    background-position: -40% 0;
  }
}

@keyframes rs-seal-in {
  from {
    opacity: 0;
    transform: rotate(-120deg) scale(0.4);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1025px) {
  .rs-story {
    display: flex;
    align-items: center;
    min-height: calc(min(72vw, 1500px) * 0.4346 + 120px);
    padding-block: 60px;

    .rs-story__band {
      position: absolute;
      inset-block-start: 50%;
      inset-inline-start: 0;
      width: min(72vw, 1500px);
      translate: 0 -50%;
    }

    .rs-story__photo {
      /* Desktop image = generated prolongation (left 35 %) + whole photo (right 65 %). */
      /* Eased fade: it only starts where the generated prolongation begins (left 35 %). */
      --rs-fade: linear-gradient(
        to left,
        #000 0,
        #000 64.5%,
        rgb(0 0 0 / 0.88) 69%,
        rgb(0 0 0 / 0.66) 76%,
        rgb(0 0 0 / 0.4) 84%,
        rgb(0 0 0 / 0.16) 92%,
        transparent 100%
      );
      /* Behind the text the prolongation also melts at its top and bottom edges:
         fade ∩ (photo columns ∪ soft edges). tools/make_story_band.py draws the same masks on its check sheet. */
      --rs-fade-edges:
        linear-gradient(to left, #000 0, #000 60%, transparent 72%),
        linear-gradient(
          180deg,
          transparent 0,
          rgb(0 0 0 / 0.35) 6%,
          rgb(0 0 0 / 0.75) 11%,
          #000 17%,
          #000 83%,
          rgb(0 0 0 / 0.75) 89%,
          rgb(0 0 0 / 0.35) 94%,
          transparent 100%
        );
      -webkit-mask-image: var(--rs-fade), var(--rs-fade-edges);
      mask-image: var(--rs-fade), var(--rs-fade-edges);
      -webkit-mask-repeat: no-repeat;
      mask-repeat: no-repeat;
      -webkit-mask-composite: source-in, source-over;
      mask-composite: intersect, add;
    }

    .rs-story__sheen {
      inset-block: 0;
      inset-inline: 0 35%;
    }

    .rs-story__seal {
      inset-block: auto -46px;
      inset-inline-start: 32.6%;
    }

    .rs-story__inner {
      margin-block-start: 0;
    }

    .rs-story__content {
      width: 46%;
      max-width: 560px;
      margin-inline: auto 0;
      padding-block: 0;
    }
  }

  /* English: the band sits on the left, so the photo is mirrored to keep the fade towards the text. */
  [dir="ltr"] .rs-story .rs-story__photo:not(.is-custom),
  [dir="ltr"] .rs-story .rs-story__sheen {
    transform: scaleX(-1);
  }
}


/* Steps, on a night band: gold numbers joined by a thread that draws itself on scroll */
.rs-steps {
  isolation: isolate;
  overflow: hidden;
  color: var(--rs-bg);
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, color-mix(in srgb, var(--rs-accent) 24%, var(--rs-dark)), transparent 72%),
    var(--rs-dark);

  .rs-steps__pattern {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image: var(--rs-star);
    background-size: 64px;
    opacity: 0.35;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 75%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    pointer-events: none;
  }

  .rs-h2 {
    color: var(--rs-bg);
  }

  .rs-steps__inner {
    display: grid;
    gap: 32px;
    align-items: center;
  }

  .rs-steps__list {
    position: relative;
    display: grid;
    gap: 6px;

    &::before {
      content: "";
      position: absolute;
      inset-block: 30px;
      inset-inline-start: 23px;
      border-inline-start: 2px solid var(--rs-accent);
    }
  }

  .rs-step {
    position: relative;
    display: grid;
    grid-template-columns: 48px auto 1fr;
    align-items: center;
    gap: 14px;
    padding-block: 14px;

    h3 {
      font-size: 18px;
      font-weight: 700;
      color: var(--rs-bg);
    }

    p {
      font-size: 15.5px;
      line-height: 1.7;
      color: color-mix(in srgb, var(--rs-bg) 76%, var(--rs-dark));
    }
  }

  .rs-step__num {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 19px;
    color: var(--rs-dark);
    background-color: var(--rs-accent);
    box-shadow: 0 0 0 6px var(--rs-dark);
  }

  .rs-step__icon {
    color: var(--rs-accent);
  }

  .rs-steps__media {
    position: relative;

    img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 14px;
      box-shadow: 0 24px 48px -28px rgb(0 0 0 / 0.7);
    }
  }

  .rs-steps__note {
    position: absolute;
    inset-block-end: 14px;
    inset-inline: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    color: var(--rs-text);
    background-color: color-mix(in srgb, var(--rs-surface) 92%, transparent);
    backdrop-filter: blur(6px);

    .rs-icon {
      color: var(--rs-primary);
    }
  }
}

/* Reviews (last section): an invitation to share a review, with the closed gate, then the reviews */
.rs-reviews {
  overflow: hidden;
  background: linear-gradient(180deg, var(--rs-bg), var(--rs-sand-100));

  .rs-reviews__pattern {
    position: absolute;
    inset: 0;
    background-image: var(--rs-star);
    background-size: 64px;
    opacity: 0.45;
    -webkit-mask-image: radial-gradient(ellipse at 50% 60%, black, transparent 70%);
    -webkit-mask-repeat: no-repeat;
    mask-image: radial-gradient(ellipse at 50% 60%, black, transparent 70%);
    mask-repeat: no-repeat;
    pointer-events: none;
  }

  .rs-container {
    position: relative;
    display: grid;
    gap: 56px;
  }

  .rs-section__lead {
    margin-inline: auto;
  }

  .rs-reviews__invite {
    display: grid;
    gap: 22px;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    padding: 12px 12px 30px;
    text-align: center;
    border-radius: var(--rs-radius-lg);
    background-color: color-mix(in srgb, var(--rs-surface) 92%, transparent);
    border: 1px solid var(--rs-line);
    box-shadow: var(--rs-shadow);
  }

  /* The photo is shown whole, inside a warm frame. */
  .rs-reviews__photo {
    margin: 0;
    padding: 8px;
    border-radius: 22px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--rs-accent) 60%, var(--rs-bg)), var(--rs-sand-100));

    img {
      display: block;
      width: 100%;
      height: auto;
      border-radius: 12px;
    }
  }

  .rs-reviews__invite-body {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding-inline: 10px;

    p:not(.rs-eyebrow) {
      max-width: 460px;
      line-height: 1.85;
      color: var(--rs-muted);
    }

    .rs-btn {
      margin-block-start: 8px;
    }
  }

  .rs-reviews__invite-title {
    font-weight: 700;
    font-size: clamp(23px, 1.1rem + 1vw, 30px);
    line-height: 1.45;
    text-wrap: balance;
  }

  .rs-reviews__wall {
    display: grid;
    gap: 8px;

    .rs-section__head {
      margin-block-end: 16px;
    }
  }
}

@media (min-width: 768px) {
  .rs-reviews .rs-reviews__invite {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px;
    padding: 14px;
    padding-inline-end: 44px;
    text-align: start;

    .rs-reviews__invite-body {
      justify-items: start;
      padding-inline: 0;
    }
  }
}

/* FAQ */
.rs-faq {
  .rs-faq__inner {
    display: grid;
    gap: 24px;
  }

  .rs-faq__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-block-start: 18px;
  }

  /* Questions on hairlines, like the FAQ page */
  .rs-faq__list {
    display: grid;
    border-block-start: 1px solid var(--rs-line);
  }

  .rs-faq__item {
    border-block-end: 1px solid var(--rs-line);

    &[open] summary {
      color: var(--rs-primary);

      .rs-icon {
        transform: rotate(180deg);
      }
    }

    summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      min-height: 60px;
      padding-block: 16px;
      font-weight: 700;
      font-size: 17px;
      cursor: pointer;
      list-style: none;
      transition: color 0.2s;

      &::-webkit-details-marker {
        display: none;
      }

      &:hover {
        color: var(--rs-primary);
      }

      .rs-icon {
        color: var(--rs-gold);
        transition: transform 0.3s var(--rs-ease);
      }
    }
  }

  .rs-faq__answer {
    padding-block-end: 18px;
    color: var(--rs-muted);
    line-height: 1.85;
  }
}

/* CTA band */
/* The reviews section follows with its own top padding. */
.rs-cta {
  padding-block: 24px;

  .rs-cta__box {
    position: relative;
    overflow: hidden;
    display: grid;
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-sand-100);
  }

  .rs-cta__bg {
    display: block;
    aspect-ratio: 1672 / 941;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 12% 60%;
    }
  }

  .rs-cta__content {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-block-start: -56px;
    padding: 0 20px 28px;
    text-align: center;
    background: linear-gradient(180deg, transparent, var(--rs-sand-100) 56px);

    p {
      max-width: 420px;
      font-size: 17px;
      color: var(--rs-text);
    }

    .rs-btn {
      margin-block-start: 6px;
    }
  }

  .rs-cta__mark {
    width: 56px;
    height: auto;
  }
}

/* Motion: hero words, drawn icons, steps line, warm light on the closing banner */
.rs-card.is-tilting .rs-card__link::after {
  opacity: 1;
}

.rs-hero__title .rs-word {
  display: inline-block;
  animation: rs-word 0.9s var(--rs-ease) both;
  animation-delay: calc(var(--w, 0) * 70ms + 150ms);
}

html.rs-intro-wait .rs-hero__title .rs-word {
  animation-play-state: paused;
}

@keyframes rs-word {
  from {
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

html.rs-draw-ready [data-rs-draw] svg :is(path, circle, rect):not([fill="currentColor"]) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--rs-ease);
}

html.rs-draw-ready [data-rs-draw].is-drawn svg :is(path, circle, rect) {
  stroke-dashoffset: 0;
}

@supports (animation-timeline: view()) {
  .rs-steps .rs-steps__list::before {
    transform-origin: top;
    animation: rs-line linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 55%;
  }
}

@keyframes rs-line {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.rs-cta .rs-cta__box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--rs-gx, 70%) var(--rs-gy, 40%), rgb(255 232 190 / 0.5), transparent 62%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.5s;
}

.rs-cta .rs-cta__box:hover::after {
  opacity: 1;
}

/* Big visuals open like the gate's two leaves when they come into view (no fill once played: the photo stays whole). */
.rs-reveal-ready [data-rs-door].is-in {
  animation: rs-door 1.3s var(--rs-ease) backwards;
}

@keyframes rs-door {
  from {
    clip-path: inset(0 46% round 18px);
  }
  to {
    clip-path: inset(0 0 round 18px);
  }
}

/* Cover layout of the hero (2026-11-12, theme setting rs_hero_layout = "couverture"): the owner's panorama of the gate,
   whole and full width under the header, then the headline centred below it. On phones a cut around the gate
   (rs-cover-m-910.webp) replaces the 3:1 panorama, which would only be 130 px tall there. The free delivery card
   sits astride the bottom edge on the start side, over the floor only (no one stands there in either picture). */
.rs-hero.rs-hero--cover {
  padding-block: 0 44px;
  background: var(--rs-bg);

  .rs-hero__cover {
    position: relative;
    margin: 0 0 56px;
  }

  .rs-hero__frame {
    position: relative;
    overflow: hidden;
    background-color: var(--rs-sand-100);
  }

  .rs-hero__cover-img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* The light of the pointer (rs-alive.js sets its place and lights it). */
  .rs-hero__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 300px at var(--rs-cx, 50%) var(--rs-cy, 50%), rgb(255 246 222 / 0.6), transparent 70%);
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity 0.6s var(--rs-ease);
  }

  .rs-hero__frame.is-lit .rs-hero__glow {
    opacity: 1;
    transition-duration: 0.25s;
  }

  /* Near the screen edge, mostly below the picture: the women of the panorama start 20 % from that edge, the
     pots of the phone cut sit just above its bottom edge. */
  .rs-hero__chip {
    inset-block: auto -40px;
    inset-inline: var(--rs-gutter) auto;
  }

  /* The star lattice sits behind the headline only (the picture covers the top). */
  .rs-hero__pattern {
    -webkit-mask-image: radial-gradient(ellipse 60% 40% at 50% 80%, black, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 40% at 50% 80%, black, transparent 75%);
  }

  .rs-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .rs-hero__content {
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
  }

  .rs-hero__divider,
  .rs-hero__text {
    margin-inline: auto;
  }

  .rs-hero__actions {
    justify-content: center;
    justify-items: center;
  }
}

/* Tablets and computers: the panorama is framed, centred, and as wide as the screen's height allows: whole (3:1,
   never cropped), it shrinks on short screens so the headline and the order button stay in the first screen.
   --rs-cover-rest = everything above and below the picture in that first screen (header, gaps, headline, sentence,
   buttons), measured with tools/cover_fit.cjs on 1280 x 720 up to 1920 x 1080. */
@media (min-width: 768px) {
  .rs-hero.rs-hero--cover {
    --rs-cover-rest: 476px;

    .rs-hero__cover {
      width: max(640px, min(100% - 48px, 1640px, (100vh - var(--rs-cover-rest)) * 3));
      width: max(640px, min(100% - 48px, 1640px, (100svh - var(--rs-cover-rest)) * 3));
      margin: 20px auto 48px;
    }

    .rs-hero__frame {
      border-radius: 24px;
      box-shadow: var(--rs-shadow);
    }

    /* On the end side here: the bottom of the panorama only holds flowers there (the women stand 20 to 28 % from the
       other edge, and a narrower picture would bring them under the card). */
    .rs-hero__chip {
      inset-block-end: -32px;
      inset-inline: auto 24px;
    }

    /* The headline on one line, tighter steps, the buttons side by side. */
    .rs-hero__cover {
      margin-block-end: 44px;
    }

    .rs-hero__content {
      max-width: 1000px;
    }

    .rs-hero__title {
      margin-block: 2px 0;
      font-size: clamp(40px, 1rem + 2.4vw, 56px);
    }

    .rs-hero__lead {
      display: inline;
    }

    .rs-hero__rotator {
      display: inline-block;
      vertical-align: bottom;
      text-align: start;
    }

    .rs-hero__divider {
      margin-block: 6px 10px;
    }

    .rs-hero__text {
      max-width: none;
    }

    .rs-hero__actions {
      grid-auto-flow: column;
      align-items: center;
      gap: 14px 24px;
      margin-block-start: 18px;
      justify-content: center;

      .rs-btn {
        width: auto;
      }
    }
  }
}

@media (min-width: 1025px) {
  .rs-hero.rs-hero--cover {
    padding-block: 0 72px;
  }
}

/* Mobile sticky order button */
.rs-sticky-cta {
  position: fixed;
  z-index: 65;
  inset-inline: 0;
  inset-block-end: 0;
  padding: 10px var(--rs-gutter) calc(10px + env(safe-area-inset-bottom));
  background-color: color-mix(in srgb, var(--rs-bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-block-start: 1px solid var(--rs-line);
  transform: translateY(110%);
  /* Hidden for real while out of view: no keyboard focus on an invisible link. */
  visibility: hidden;
  transition:
    transform 0.35s var(--rs-ease),
    visibility 0s 0.35s;

  .rs-btn {
    width: 100%;
  }

  &.is-visible {
    transform: none;
    visibility: visible;
    transition: transform 0.35s var(--rs-ease);
  }
}

/* Tablet */
@media (min-width: 768px) {
  .rs-section {
    padding-block: 72px;
  }

  .rs-grid {
    --rs-cols: 3;
    --rs-gap: 18px;

    &[data-count="2"],
    &[data-count="4"] {
      --rs-cols: 2;
    }

    > .rs-card {
      max-inline-size: 400px;
    }
  }

  .rs-card .rs-card__body {
    padding: 14px 16px 16px;
  }

  .rs-card .rs-card__title {
    font-size: 16px;
  }

  .rs-card .rs-card__names.has-alt {
    min-block-size: 70px;
  }

  .rs-sticky-cta {
    display: none;
  }


  .rs-hero .rs-hero__media {
    width: min(70vw, 520px);
  }

  .rs-hero .rs-hero__media.rs-hero__media--gate {
    width: min(46vw, 360px);
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .rs-section {
    padding-block: 96px;
  }

  .rs-section__head {
    margin-block-end: 40px;
  }

  .rs-hero {
    padding-block: 56px 72px;

    .rs-hero__inner {
      grid-template-columns: 1fr 1.05fr;
      align-items: center;
      gap: 64px;
    }

    .rs-hero__media {
      order: 0;
      width: 100%;
      max-width: 600px;
    }

    .rs-hero__arch {
      aspect-ratio: 5 / 5.5;
    }

    /* At most the height of the screen under the header, so the whole gate shows on a laptop too (680:950). */
    .rs-hero__media.rs-hero__media--gate {
      width: min(100%, 440px, (100vh - 230px) * 0.716);
      width: min(100%, 440px, (100svh - 230px) * 0.716);
      justify-self: center;
    }

    .rs-hero__seal {
      inset-inline-start: -28px;
      inset-block-end: 40px;
    }

    /* From desktop up the gate is wide enough: the card goes up beside the top of the arch. */
    .rs-hero__chip {
      inset-block: 20% auto;
      inset-inline-end: -16px;
      padding-block: 9px;
      padding-inline: 9px 20px;
    }

    /* The gate frame is narrow at the top: the card sits beside its point, off the gate and its name. */
    .rs-hero__media--gate .rs-hero__chip {
      inset-block: 9% auto;
      inset-inline-end: -28px;
    }

    .rs-hero__chip-icon {
      width: 42px;
      height: 42px;
    }

    .rs-hero__chip-text strong {
      font-size: 15px;
    }

    .rs-hero__content {
      text-align: start;
    }

    .rs-hero__divider {
      margin-inline: 0;
    }

    .rs-hero__text {
      margin-inline: 0;
      font-size: 18px;
    }

    .rs-hero__actions {
      grid-auto-flow: column;
      justify-content: start;
      align-items: center;
      gap: 24px;

      .rs-btn {
        width: auto;
      }
    }
  }

  .rs-grid {
    --rs-cols: 4;
    --rs-gap: 24px;

    &[data-count="2"] {
      --rs-cols: 2;
    }

    &[data-count="3"] {
      --rs-cols: 3;
    }

    &[data-count="4"] {
      --rs-cols: 4;
    }
  }

  .rs-steps .rs-steps__inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .rs-spotlight {
    .rs-spotlight__inner {
      grid-template-columns: 1fr 1fr;
      gap: 72px;
    }

    .rs-spotlight__stage {
      width: min(100%, 470px);
    }

    .rs-spotlight__body {
      text-align: start;
    }

    .rs-spotlight__text,
    .rs-spotlight__points {
      margin-inline: 0;
    }

    .rs-spotlight__zone {
      margin-block-end: 30px;
    }

    .rs-spotlight__price {
      justify-content: start;
    }

    .rs-spotlight__actions {
      grid-auto-flow: column;
      justify-content: start;
      align-items: center;
      gap: 24px;

      .rs-btn {
        width: auto;
      }
    }
  }


  .rs-faq .rs-faq__inner {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 64px;
  }

  .rs-faq .rs-section__head {
    position: sticky;
    inset-block-start: 110px;
  }

  .rs-cta {
    padding-block: 32px;

    .rs-cta__box {
      aspect-ratio: 1672 / 941;
    }

    .rs-cta__bg {
      position: absolute;
      inset: 0;
      aspect-ratio: auto;

      img {
        object-position: 0% 50%;
      }
    }

    .rs-cta__content {
      align-self: center;
      width: min(48%, 520px);
      margin: 0;
      padding: 48px;
      background: none;
    }
  }

  /* The text panel always sits on the empty wall (physical right) of the podium photo. */
  [dir="ltr"] .rs-cta .rs-cta__content {
    justify-self: end;
  }

  [dir="rtl"] .rs-cta .rs-cta__content {
    justify-self: start;
  }
}

/* Wide screens: room in the margin for the card to stand out further from the gate. */
@media (min-width: 1360px) {
  .rs-hero .rs-hero__chip {
    inset-inline-end: -40px;
  }

  .rs-hero .rs-hero__media--gate .rs-hero__chip {
    inset-inline-end: -48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not([data-motion="on"]) {
    .rs-rise,
    .rs-hero .rs-hero__seal,
    .rs-hero .rs-hero__chip,
    .rs-hero .rs-hero__light,
    .rs-hero .rs-hero__media,
    .rs-hero__title .rs-word,
    .rs-hero__rotator-track,
    .rs-steps .rs-steps__list::before,
    .rs-story__sheen,
    .rs-story__seal,
    [data-rs-door],
    [data-rs-motion] {
      animation: none !important;
    }

    /* No dust, and the promises stand still, wrapped and centred. */
    .rs-hero .rs-hero__dust {
      display: none;
    }

    .rs-trust .rs-trust__track {
      width: auto;
      padding-inline: 16px;
      justify-content: center;
      animation: none;
    }

    .rs-trust .rs-trust__list {
      flex-wrap: wrap;
      flex-shrink: 1;
      min-width: 0;
      justify-content: center;
      gap: 10px 36px;
    }

    .rs-trust .rs-trust__item {
      padding-inline: 0;
      white-space: normal;

      &::after {
        display: none;
      }
    }

    .rs-trust .rs-trust__list--copy {
      display: none;
    }

    [data-rs-tilt] {
      transform: none !important;
    }
  }
}

/* Still promise band on a phone: the four titles on two columns, details left to the pages. */
@media (prefers-reduced-motion: reduce) and (max-width: 767px) {
  html:not([data-motion="on"]) {
    .rs-trust .rs-trust__list:not(.rs-trust__list--copy) {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px 16px;
      width: 100%;
    }

    .rs-trust .rs-trust__item {
      gap: 8px;
      font-size: 14px;

      span {
        display: none;
      }
    }
  }
}

/* « Coming soon » card (rs-soon, 2026-11-23): a quiet dashed label instead of the order button, never filled. */
.rs-card .rs-card__cta--soon,
.rs-card:hover .rs-card__cta--soon,
.rs-card__link:focus-visible .rs-card__cta--soon {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--rs-text) 35%, transparent);
  /* !important: the card's hover rule (nested, more specific) would fill it like an order button. */
  background-color: transparent !important;
  color: var(--rs-muted) !important;
}
