/*
 * "Made to stop the scroll." round 4 (owner correction pass, 30 Nov 2026): three-tab showcase on Home
 * (includes/sections/hx-show.php). No captions; the Ads run spans the full viewport edge to edge.
 * Default (no JS, reduced motion): the run is a plain horizontal scroller, long pieces scroll natively inside
 * their frames. r3-show.js adds .is-js (tabs) and .is-moving (marquee, auto page scroll, hover scroll).
 */
.r3s { --pw: clamp(156px, 16vw, 272px); --g: clamp(14px, 1.39vw, 24px);
  --bz: calc(var(--pw) * .026); --rad: calc(var(--pw) * .158); --edge: 40px;
  position: relative; padding: 150px 0 24px; overflow: hidden; }
.r3s-tabs { margin-top: 46px; }
.r3s-tabs .hx-tab:focus-visible, .r3s-view:focus-visible, .r3s-long:focus-visible, .r3s-google a:focus-visible { outline: 2px solid var(--x-acc); outline-offset: 4px; }

.r3s-stage { position: relative; margin-top: 44px; padding: 30px 0 34px; }
.r3s-pan { display: none; outline: none; }
.r3s-pan.is-on { display: block; }
.r3s-pan.is-in { animation: r3s-in .6s var(--x-ease) both; }
@keyframes r3s-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html.no-js .r3s-pan { display: block; }
html.no-js .r3s-tabs { display: none; }
html.no-js .r3s-pan + .r3s-pan { margin-top: 56px; }

/* ---------- the Ads run: full viewport width, edge to edge ---------- */
.r3s-view { position: relative; width: 100%; padding: 10px var(--x-pad) 30px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; outline: none; }
.r3s-view::-webkit-scrollbar { display: none; }
.r3s-track { display: flex; width: max-content; margin: 0 auto; }
.r3s-set { display: flex; gap: var(--g); margin: 0; padding: 0; list-style: none; }
.r3s-item { flex: none; width: var(--pw); scroll-snap-align: center; }

.r3s.is-moving .r3s-view { padding-inline: 0; overflow: hidden; scroll-snap-type: none; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge), #000 calc(100% - var(--edge)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--edge), #000 calc(100% - var(--edge)), transparent 100%); }
.r3s.is-moving .r3s-view.is-drag { cursor: grabbing; }
.r3s.is-moving .r3s-view:focus-visible { -webkit-mask-image: none; mask-image: none; outline-offset: -3px; }   /* a mask would clip the focus ring */
.r3s.is-moving .r3s-track { margin: 0; will-change: transform; }
.r3s.is-moving .r3s-set { padding-right: var(--g); }
.r3s-set--copy { display: none; }
.r3s.is-moving .r3s-set--copy { display: flex; }

/* ---------- the iPhone: titanium rail, thin black bezel, 19.5:9 screen, Dynamic Island, faint glass ---------- */
.r3s-phone { position: relative; width: var(--pw); padding: 1.6px; border-radius: var(--rad);
  background: linear-gradient(145deg, #C9C7CC 0%, #6E6C72 9%, #3A393E 30%, #2B2A2E 55%, #5D5C62 82%, #B8B6BC 100%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22), 0 0 0 .5px rgba(0, 0, 0, .6),
    0 28px 40px -24px rgba(0, 0, 0, .9), 0 10px 18px -12px rgba(0, 0, 0, .7); }
.r3s-phone::before { content: ''; position: absolute; inset: .8px; border-radius: calc(var(--rad) - .8px); pointer-events: none;
  box-shadow: inset 0 0 0 .6px rgba(0, 0, 0, .55); }
.r3s-phone::after { content: ''; position: absolute; left: 14%; right: 14%; bottom: -14px; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); filter: blur(5px); z-index: -1; }
.r3s-btn { position: absolute; width: 2px; border-radius: 2px; background: linear-gradient(90deg, #8A888E, #3E3D43); }
.r3s-btn--a { left: -1.4px; top: 17.5%; height: 4.2%; }
.r3s-btn--b { left: -1.4px; top: 24.5%; height: 8%; }
.r3s-btn--c { right: -1.4px; top: 26.5%; height: 11.5%; }
.r3s-scr { position: relative; box-sizing: content-box; width: calc(var(--pw) - 3.2px - 2 * var(--bz)); aspect-ratio: 9 / 19.5; border: var(--bz) solid #040404; border-radius: calc(var(--rad) - 1.6px); overflow: hidden; background: #000; isolation: isolate; }
.r3s-scr__img, .r3s-scr__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; border-radius: calc(var(--rad) - 1.6px - var(--bz)); }
.r3s-scr--wide .r3s-scr__img, .r3s-scr--wide .r3s-scr__vid { object-position: 6% 50%; }   /* 9:16 pieces: their type sits on the left */
.r3s-scr--tall .r3s-scr__img, .r3s-scr--tall .r3s-scr__vid { object-position: 50% 0; }
.r3s-scr__vid { opacity: 0; transition: opacity .5s; }
.r3s-scr__vid.is-play { opacity: 1; }
.r3s-isl { position: absolute; z-index: 4; top: 1.55%; left: 50%; width: 31.5%; aspect-ratio: 126 / 37; transform: translateX(-50%); border-radius: 999px; background: #000; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .04); pointer-events: none; }
.r3s-isl::after { content: ''; position: absolute; top: 50%; right: 11%; height: 44%; aspect-ratio: 1; border-radius: 50%; transform: translateY(-50%); background: radial-gradient(circle at 38% 38%, #2A3350 0%, #0B0D16 62%); }
.r3s-glass { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 24%, rgba(255, 255, 255, 0) 40%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }

/* ---------- rows (Emails, Landing Pages): centred when they fit, swipeable when they do not ---------- */
.r3s-strip { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 10px var(--x-pad) 30px; scroll-snap-type: x proximity; }
.r3s-strip::-webkit-scrollbar { display: none; }
.r3s-row { display: flex; gap: var(--g); width: max-content; margin: 0 auto; padding: 0; list-style: none; }
.r3s-row > li { flex: none; scroll-snap-align: center; }

/* long pieces: scroll inside their own frame */
.r3s-long { position: relative; display: block; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; outline: none; background: #fff; }
.r3s-long::-webkit-scrollbar { display: none; }
.r3s-long__img { display: block; width: 100%; height: auto; }
.r3s.is-moving .r3s-long { overflow: hidden; }

/* emails */
.r3s-mail { width: clamp(232px, 20.8vw, 320px); }
.r3s-long--mail { aspect-ratio: 300 / 470; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 46px -28px rgba(0, 0, 0, .95); }
.r3s.is-moving .r3s-long--mail .r3s-long__img { transform: translate3d(0, 0, 0); transition: transform .9s var(--x-ease); will-change: transform; }
.r3s.is-moving .r3s-long--mail.is-run .r3s-long__img { transform: translate3d(0, calc(-1 * var(--dist, 0px)), 0); transition: transform var(--dur, 4s) cubic-bezier(.42, 0, .3, 1); }

/* landing pages: a real mobile capture inside the same phone, drifting slowly down and back up */
.r3s-scr--page { background: #fff; }
.r3s-scr--page .r3s-long { background: var(--sb, #fff); }
.r3s-scr--page .r3s-long { position: absolute; inset: 0; border-radius: inherit; }
.r3s-long--page { padding-top: calc(var(--pw) * .128); }   /* the status bar: the page starts below the Dynamic Island, as in Safari */
.r3s.is-moving .r3s-long--page .r3s-long__img { will-change: transform; }

/* ---------- Google line + collective note ---------- */
.r3s-google { margin-top: 18px; text-align: center; }
.r3s-google a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: #0D0D0E; color: var(--x-white); font: 600 14px/1 var(--x-d); letter-spacing: -.005em; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--x-line-2); transition: background-color .3s, box-shadow .3s; }
.r3s-google a:hover { background: #161617; box-shadow: inset 0 0 0 1px rgba(241, 240, 236, .3); }
.r3s-google__g { width: 18px; height: 18px; flex: none; }
.r3s-google__a { width: 14px; height: 14px; color: var(--x-grey); transition: transform .4s var(--x-ease), color .3s; }
.r3s-google a:hover .r3s-google__a { transform: translate(2px, -2px); color: var(--x-white); }
.r3s-note { margin-top: 14px; text-align: center; font-size: 12.5px; line-height: 1.5; color: #6E6D69; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .r3s { padding-top: 110px; }
}
@media (max-width: 767px) {
  .r3s { padding-top: 88px; --pw: clamp(148px, 42vw, 196px); --g: 14px; --edge: 18px; }
  .r3s-tabs { margin-top: 30px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .r3s-tabs::-webkit-scrollbar { display: none; }
  .r3s-tabs { gap: 3px; padding: 4px; }
  .r3s-tabs .hx-tab { flex: none; height: 40px; padding: 0 13px; font-size: 13.5px; }
  .r3s-stage { margin-top: 26px; padding: 22px 0 22px; }
  .r3s-mail { width: min(66vw, 270px); }
}
@media (max-width: 400px) {
  .r3s-tabs .hx-tab { height: 38px; padding: 0 11px; font-size: 13px; letter-spacing: -.01em; }
}
@media (max-width: 340px) {
  .r3s-tabs .hx-tab { padding: 0 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .r3s-pan.is-in { animation: none; }
  .r3s-long__img { animation: none !important; transform: none !important; }
}
