/* ==================================================================================================
   RITEXA — the homepage below the walkthrough.

   Behind every section is one open 3D space (assets/js/flow/scene.js): faceted shards, motes and
   depth washes the camera travels through as the page scrolls, plus the About orbit, the Why lattice
   and the closing ring. Services, Portfolio and Testimonials are interactive 3D decks built here, in
   the page, so their text stays sharp and they can be hovered, dragged and read.

   Every section is one composition inside one screen (--rx-view). Sections are separated by space and
   a soft shadow, never by rules. The Ritexa gradient is an accent only.
   ================================================================================================== */

/* ---------- the canvas the space is drawn on (under the hero canvas: see ritexa.css .rx-world) ---- */
.rx-flow { position: fixed; inset: var(--rx-header-h) 0 auto 0; width: 100%; height: calc(100vh - var(--rx-header-h)); height: calc(100lvh - var(--rx-header-h));
  display: block; z-index: 0; opacity: 0; transition: opacity .5s var(--rx-ease); pointer-events: none; }   /* no mask-image: see .rx-world in ritexa.css */
.no-js .rx-flow, .no-webgl .rx-flow { display: none; }
.rx-flow-on .rx-vignette { opacity: 0; transition: opacity .8s var(--rx-ease); }

/* the section shell, shared type, .rx-round and the arrival rules moved to ritexa.css: the About page uses them too */

/* ==================================================================================================
   ABOUT — the copy on the left; the right half is the window onto the Ritexa capability orbit, built in
   3D from the ritexa.co.uk About graphic.
   ================================================================================================== */
.rx-about__grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: var(--rx-gap); align-items: center; }
.rx-about__copy { max-width: 560px; }
.rx-about__points { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rx-about__points li { position: relative; padding: 13px 16px 13px 38px; border-radius: 14px;
  /* THE EDGE (Home About): a hairline that is lit at its top-left corner and falls away to almost nothing — rose
     gold where the light is, never a flat rule all the way round. The fill sits on the padding box, the edge on
     the border box. */
  border: 1px solid transparent;
  background: linear-gradient(90deg, rgba(22,20,22,.92), rgba(12,11,13,.9)) padding-box,
              linear-gradient(135deg, rgba(251,232,229,.55) 0%, rgba(218,168,169,.26) 16%, rgba(255,255,255,.05) 42%, rgba(255,255,255,.03) 70%, rgba(218,168,169,.2) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 18px 34px -30px rgba(0,0,0,.9); }
/* on hover the card keeps its lit edge (no flat rule drawn over it); the light simply grows a little */
.rx-about .rx-about__points li:hover { border-color: transparent;
  background: linear-gradient(90deg, rgba(26,23,25,.94), rgba(13,12,14,.92)) padding-box,
              linear-gradient(135deg, rgba(251,232,229,.8) 0%, rgba(218,168,169,.4) 20%, rgba(255,255,255,.06) 48%, rgba(255,255,255,.04) 70%, rgba(218,168,169,.32) 100%) border-box; }
.rx-about__points li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--rx-ramp); }
.rx-about__points b { display: block; font: 500 15px/1.4 var(--rx-sans); }
.rx-about__points span { display: block; margin-top: 2px; font: 400 14px/1.5 var(--rx-sans); color: var(--rx-dim); }
.rx-about .rx-btn { margin-top: 28px; }
.rx-about__art { min-height: clamp(400px, 66vh, 700px); }   /* the identity orbit is sized to fill this box (flow/scene.js) */

/* ==================================================================================================
   SERVICES — told in type and depth. A four-sided prism turns to the service being read (JS sets --rot
   in quarter turns, --w to the stage width, --tx/--ty and --px/--py from the pointer). Each face: an
   extruded numeral, the name set large, what it includes, and an abstract shape of its own. No screens:
   the hero walkthrough already shows the work.
   ================================================================================================== */
.rx-serv__inner { display: grid; gap: clamp(20px, 3.2vh, 38px); }
.rx-serv__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap; }
.rx-serv__aside { max-width: 340px; display: grid; gap: 16px; justify-items: start; }
.rx-serv__aside p { margin: 0; font: 400 15px/1.6 var(--rx-sans); color: var(--rx-dim); }
.rx-serv__body { display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1.7fr); gap: clamp(22px, 3vw, 56px); align-items: stretch; }

/* the index: the four names, large, as the way in */
.rx-serv__list { margin: 0; padding: 0; list-style: none; display: grid; align-content: center; gap: 6px; }
.rx-serv__list button { position: relative; width: 100%; display: grid; grid-template-columns: 1fr; align-items: baseline; gap: 4px;
  padding: 16px 18px 16px 14px; border: 0; border-radius: 16px; background: none; cursor: pointer; text-align: left; color: rgba(245,239,238,.42);
  font: 500 clamp(18px, 1.55vw, 24px)/1.2 var(--rx-sans); letter-spacing: -.02em;
  transition: color .45s var(--rx-ease), background .45s var(--rx-ease), transform .6s var(--rx-ease-out); }
.rx-serv__list b { font: 500 12px/1 var(--rx-sans); letter-spacing: .18em; color: rgba(245,239,238,.3); font-variant-numeric: tabular-nums; transition: color .45s var(--rx-ease); }
.rx-serv__list i { position: absolute; left: 14px; right: 18px; bottom: 9px; height: 2px; border-radius: 2px; background: var(--rx-ramp);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--rx-ease-out); }
.rx-serv__list button:hover { color: rgba(245,239,238,.78); transform: translateX(4px); }
.rx-serv__list button.is-on { color: var(--rx-ink); background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,0)); transform: translateX(8px); }
.rx-serv__list button.is-on b { color: var(--rx-c1); }
.rx-serv__list button.is-on i { transform: scaleX(1); }
.rx-serv__list button:focus-visible { outline: 2px solid var(--rx-c1); outline-offset: 2px; }

/* the prism */
.rx-serv__stage { --w: 800px; --rot: 0deg; --tx: 0deg; --ty: 0deg; --px: 0; --py: 0;
  position: relative; height: clamp(360px, calc(var(--rx-view) - var(--rx-sec-pad) * 2 - 170px), 500px);
  perspective: 2400px; perspective-origin: 50% 46%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
/* No shared preserve-3d space: Safari flattens it and draws faces edge-on or mirrored. Each face instead
   carries its whole transform — turned about the prism's centre by its own angle (--fa, set by JS) — in
   the stage's perspective, which renders identically in every browser. */
.rx-serv__prism { position: absolute; inset: 0; }
.rx-serv__stage { cursor: grab; } .rx-serv__stage.is-dragging { cursor: grabbing; }
.rx-face { --i: 0; position: absolute; inset: 0; overflow: hidden; border-radius: 26px; isolation: isolate;
  --fa: calc(var(--i) * 90deg);
  transform: rotateX(var(--tx)) rotateY(var(--ty)) translateZ(calc(var(--w) * -.5)) rotateY(var(--fa)) translateZ(calc(var(--w) * .5));
  transition: transform 1.7s cubic-bezier(.45, 0, .15, 1);                      /* a slow, even turn: never a snap */
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  /* translucent, so the space behind the page is still there behind the panel */
  background: radial-gradient(120% 90% at 85% 10%, rgba(60,51,46,.3) 0%, rgba(15,21,34,.2) 46%, rgba(9,13,21,.24) 100%);
  box-shadow: 0 34px 54px -32px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform 1.7s cubic-bezier(.45, 0, .15, 1), box-shadow .6s var(--rx-ease); }

/* the three you cannot see stop paying for what you cannot see */
.rx-face[aria-hidden="true"] { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.rx-face[aria-hidden="true"]::before { display: none; }
.rx-face[aria-hidden="true"] .rx-face__shape i { animation-play-state: paused; box-shadow: none; }
/* and nothing animates at all while the section is not on screen (ui/home.js sets is-seen) */
.js .rx-serv__stage:not(.is-seen) .rx-face__shape i { animation-play-state: paused; }
.rx-serv__stage.is-dragging .rx-face { transition: none; }             /* under a finger it follows the finger */
.rx-face[data-face="1"] { --i: 1; } .rx-face[data-face="2"] { --i: 2; } .rx-face[data-face="3"] { --i: 3; }
/* the surface catching the key light, and a fine grid milled into it */
.rx-face::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(80% 90% at 80% 30%, #000, transparent 75%); mask-image: radial-gradient(80% 90% at 80% 30%, #000, transparent 75%); }

/* the numeral, extruded: eight copies stepped back and darkened, the front one in the ramp */
.rx-face__num { position: absolute; right: 6%; top: 5%; font: 600 clamp(110px, 12.5vw, 200px)/.9 var(--rx-sans); letter-spacing: -.06em;
  transform: translate(calc(var(--px) * -18px), calc(var(--py) * -12px)); transition: transform .6s var(--rx-ease-out); }
.rx-face__num span { position: absolute; right: 0; top: 0; white-space: nowrap;
  transform: translate(calc(var(--k) * 2.6px), calc(var(--k) * 2.6px));
  color: rgb(calc(52 - var(--k) * 4) calc(46 - var(--k) * 4) calc(46 - var(--k) * 4)); }   /* warm graphite (was slate blue) */
.rx-face__num span:last-child { position: relative; color: transparent; background: var(--rx-gold); -webkit-background-clip: text; background-clip: text; }

/* the shape that belongs to each service, drawn in outline and light */
.rx-face__shape { position: absolute; right: 8%; top: 50%; bottom: auto; translate: 0 -62%; width: 36%; aspect-ratio: 1.25; pointer-events: none;   /* with no numeral above it, the mark takes the right-hand side, centred */
  transform: translate(calc(var(--px) * 26px), calc(var(--py) * 18px)); transition: transform .6s var(--rx-ease-out); }
.rx-face__shape i { position: absolute; border-radius: 14px; border: 1.5px solid transparent;
  background: linear-gradient(150deg, rgba(24,34,54,.4), rgba(10,14,22,.3)) padding-box, var(--rx-ramp) border-box;
  box-shadow: 0 24px 40px -20px rgba(0,0,0,.95); animation: rx-float 7s var(--rx-ease) infinite alternate; }
.rx-face__shape i:nth-child(2) { animation-delay: -2s; } .rx-face__shape i:nth-child(3) { animation-delay: -4s; } .rx-face__shape i:nth-child(4) { animation-delay: -6s; }
@keyframes rx-float { from { translate: 0 0; } to { translate: 0 -10px; } }
/* websites: layout blocks stacked in depth */
.rx-face--web .rx-face__shape i:nth-child(1) { inset: 0 18% 38% 0; }
.rx-face--web .rx-face__shape i:nth-child(2) { inset: 26% 6% 14% 22%; opacity: .92; }
.rx-face--web .rx-face__shape i:nth-child(3) { inset: 56% 38% 0 8%; }
.rx-face--web .rx-face__shape i:nth-child(4) { inset: 8% 0 70% 64%; border-radius: 99px; }
/* web apps: a system of bars rising */
.rx-face--app .rx-face__shape i { bottom: 0; width: 17%; border-radius: 10px; }
.rx-face--app .rx-face__shape i:nth-child(1) { left: 0; height: 38%; } .rx-face--app .rx-face__shape i:nth-child(2) { left: 26%; height: 62%; }
.rx-face--app .rx-face__shape i:nth-child(3) { left: 52%; height: 48%; } .rx-face--app .rx-face__shape i:nth-child(4) { left: 78%; height: 92%; }
/* android: concentric rings */
.rx-face--android .rx-face__shape i { border-radius: 50%; left: 50%; top: 50%; translate: -50% -50%; animation: none; background: transparent; border: 1.5px solid rgba(214,164,164,.5); box-shadow: none; }
.rx-face--android .rx-face__shape i:nth-child(1) { width: 92%; aspect-ratio: 1; border-color: rgba(206, 152, 153,.55); }
.rx-face--android .rx-face__shape i:nth-child(2) { width: 68%; aspect-ratio: 1; }
.rx-face--android .rx-face__shape i:nth-child(3) { width: 44%; aspect-ratio: 1; border-color: rgba(196,141,142,.6); }
.rx-face--android .rx-face__shape i:nth-child(4) { width: 18%; aspect-ratio: 1; background: var(--rx-ramp); border: 0; }
/* iOS: rounded squares, stepped back */
/* security — four shells closing around a centre */
.rx-face--security .rx-face__shape i { left: 50%; top: 50%; translate: -50% -50%; border-radius: 22%;
  background: transparent; border: 1.5px solid rgba(214,164,164,.5); box-shadow: none; animation: none; }
.rx-face--security .rx-face__shape i:nth-child(1) { width: 96%; aspect-ratio: 1; border-color: rgba(206, 152, 153,.55); }
.rx-face--security .rx-face__shape i:nth-child(2) { width: 70%; aspect-ratio: 1; border-radius: 26%; }
.rx-face--security .rx-face__shape i:nth-child(3) { width: 44%; aspect-ratio: 1; border-radius: 32%; border-color: rgba(196,141,142,.6); }
.rx-face--security .rx-face__shape i:nth-child(4) { width: 15%; aspect-ratio: 1; border-radius: 50%; background: var(--rx-ramp); border: 0; }
/* branding — a mark, and the system built around it */
.rx-face--brand .rx-face__shape i:nth-child(1) { inset: 6% 46% 42% 6%; border-radius: 50%; }
.rx-face--brand .rx-face__shape i:nth-child(2) { inset: 8% 6% 54% 60%; border-radius: 12px; opacity: .92; }
.rx-face--brand .rx-face__shape i:nth-child(3) { inset: 58% 30% 6% 6%; border-radius: 99px; }
.rx-face--brand .rx-face__shape i:nth-child(4) { inset: 52% 6% 14% 74%; border-radius: 10px; }
/* film — a frame, and the strip it is cut from */
.rx-face--film .rx-face__shape i:nth-child(1) { inset: 4% 4% 40% 4%; border-radius: 12px; }
.rx-face--film .rx-face__shape i:nth-child(2) { inset: 68% 72% 4% 4%; border-radius: 6px; }
.rx-face--film .rx-face__shape i:nth-child(3) { inset: 68% 40% 4% 36%; border-radius: 6px; opacity: .92; }
.rx-face--film .rx-face__shape i:nth-child(4) { inset: 68% 4% 4% 68%; border-radius: 6px; }

.rx-face--ios .rx-face__shape i { border-radius: 28%; aspect-ratio: 1; width: 44%; }
.rx-face--ios .rx-face__shape i:nth-child(1) { left: 0; top: 0; } .rx-face--ios .rx-face__shape i:nth-child(2) { left: 18%; top: 12%; }
.rx-face--ios .rx-face__shape i:nth-child(3) { left: 36%; top: 24%; } .rx-face--ios .rx-face__shape i:nth-child(4) { left: 54%; top: 36%; }

.rx-face__copy { position: absolute; left: 0; bottom: 0; width: min(560px, 62%); padding: 0 0 clamp(26px, 3.4vh, 40px) clamp(26px, 3vw, 44px); }
.rx-face__kicker { margin: 0; font: 500 11px/1 var(--rx-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--rx-c1); }
.rx-face__kicker span { color: rgba(245,239,238,.35); }
.rx-face h3 { margin: 14px 0 0; font: 500 clamp(28px, 2.9vw, 46px)/1.04 var(--rx-sans); letter-spacing: -.035em; }
.rx-face__desc { margin: 12px 0 0; max-width: 44ch; font: 400 15px/1.6 var(--rx-sans); color: var(--rx-dim); }
/* each face names its own page: the homepage is a way into the services, not a dead end */
.rx-face__copy h3 a { color: inherit; transition: color .35s var(--rx-ease); }
/* THE WHOLE CARD IS THE LINK. The "Explore ..." line is gone; this is the anchor that replaces it, laid
   over the card so a click or a tap anywhere on it opens the service. .rx-face is positioned, so inset: 0
   is the card exactly. It sits above the copy but under nothing that needs pointing at — the chips and the
   description are not interactive — and the heading keeps its own anchor underneath for the keyboard. */
.rx-face__hit { position: absolute; inset: 0; z-index: 4; border-radius: inherit;
  -webkit-tap-highlight-color: transparent; }
/* Only the face in front can be clicked. Two faces are on screen during the 1.7s turn, and without this a
   click landing in the last moments of one would open the service that is leaving rather than the one that
   has arrived. */
.rx-face[aria-hidden="true"] .rx-face__hit { pointer-events: none; }
.rx-face { cursor: pointer; }
/* the title still answers a pointer, but now to the card being hovered rather than to the three words */
.rx-face:hover .rx-face__copy h3 a, .rx-face__copy h3 a:hover { color: var(--rx-c1); }
.rx-face ul { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rx-face li { padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  font: 500 12.5px/1 var(--rx-sans); color: rgba(245,239,238,.82); }
@keyframes rx-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { }
.rx-proj__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: linear-gradient(180deg, #1a2130, #121824); }
.rx-proj__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.14); }
.rx-proj__bar i:nth-child(1) { background: #d18788; } .rx-proj__bar i:nth-child(2) { background: #f6bd4f; } .rx-proj__bar i:nth-child(3) { background: #4ec04e; }
.rx-proj__bar span { flex: 1; margin: 0 40px 0 18px; padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,.06);
  font: 500 11.5px/1 var(--rx-sans); letter-spacing: .02em; color: rgba(245,239,238,.62); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==================================================================================================
   TESTIMONIALS — a spotlight and a rail of coins. One review at a time, set large in the middle; its words
   rise out of depth into place when it changes (JS splits them into spans with --i). Below it each client is
   a machined coin with thickness (a face and a back one level of 3D apart); JS sets --x / --z / --a / --s.
   ================================================================================================== */
.rx-voices__inner { display: grid; gap: clamp(18px, 3.4vh, 40px); justify-items: center; text-align: center; }
.rx-voices__head { display: grid; justify-items: center; }
.rx-voices__stage { position: relative; width: min(100%, 1120px); display: grid; gap: clamp(20px, 3.2vh, 36px); justify-items: center;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rx-voices__quote { position: relative; width: 100%; min-height: clamp(170px, 24vh, 230px); display: grid; perspective: 900px; }
.rx-voices__mark { position: absolute; left: 50%; top: -.26em; transform: translateX(-50%); font: 300 clamp(66px, 6.6vw, 104px)/1 var(--rx-sans);
  background: var(--rx-gold); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .13; pointer-events: none; }
.rx-voice { grid-area: 1 / 1; margin: 0; display: grid; align-content: center; justify-items: center; gap: clamp(18px, 3vh, 30px);
  opacity: 0; visibility: hidden; transition: opacity .5s var(--rx-ease), visibility 0s .5s; }
.rx-voice.is-on { opacity: 1; visibility: visible; transition: opacity .3s var(--rx-ease), visibility 0s; }
.rx-voice blockquote { position: relative; margin: 0; max-width: 50ch; font: 300 clamp(16.5px, 1.3vw, 21px)/1.6 var(--rx-sans); letter-spacing: -.014em;
  color: var(--rx-ink); text-wrap: balance; transform-style: preserve-3d; }
.rx-voice blockquote .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotateX(55deg); transform-origin: 50% 100%;
  transition: opacity .7s var(--rx-ease), transform .9s var(--rx-ease-out); transition-delay: calc(var(--i) * 22ms); }
.rx-voice.is-on blockquote .w { opacity: 1; transform: none; }
.rx-voice figcaption { display: grid; gap: 6px; opacity: 0; transform: translateY(8px); transition: opacity .7s var(--rx-ease) .35s, transform .9s var(--rx-ease-out) .35s; }
.rx-voice.is-on figcaption { opacity: 1; transform: none; }
.rx-voice figcaption b { font: 500 15px/1.2 var(--rx-sans); }
.rx-voice figcaption i { font: 400 11.5px/1.4 var(--rx-sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--rx-dim); }

.rx-voices__rail { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.rx-voices__coins { position: relative; width: clamp(300px, 44vw, 560px); height: 108px; perspective: 700px; perspective-origin: 50% 40%; cursor: grab; }
.rx-voices__stage.is-dragging .rx-voices__coins { cursor: grabbing; }
.rx-coin { --x: 0px; --z: 0px; --a: 0deg; --s: 1; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0; border: 0;
  background: none; cursor: pointer; transform-style: preserve-3d; transform: translate3d(var(--x), 0, var(--z)) rotateY(var(--a)) scale(var(--s)); will-change: transform, opacity; }
.rx-coin__face, .rx-coin__back { position: absolute; inset: 0; border-radius: 50%; }
.rx-coin__back { transform: translateZ(-9px); background: linear-gradient(135deg, #52413b, #11141b 60%); box-shadow: 0 16px 26px -12px rgba(0,0,0,.9); }
.rx-coin__face { display: grid; place-items: center; transform: translateZ(0); padding: 2px; background: var(--rx-ramp);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.rx-coin__face span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(80% 80% at 30% 25%, #463c36, #0d121c 70%); font: 600 18px/1 var(--rx-sans); letter-spacing: .06em; color: rgba(245,239,238,.75);
  transition: color .5s var(--rx-ease); }
.rx-coin.is-on .rx-coin__face span { color: #fff; }
.rx-coin.is-on .rx-coin__face { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 0 34px -6px rgba(213,161,162,.55); }
.rx-coin:focus-visible { outline: none; } .rx-coin:focus-visible .rx-coin__face { box-shadow: 0 0 0 3px var(--rx-c1); }
/* a hairline that fills while the reviews move on by themselves */
.rx-voices__time { display: block; width: clamp(120px, 16vw, 200px); height: 2px; border-radius: 2px; background: rgba(245,239,238,.1); overflow: hidden; }
.rx-voices__time i { display: block; height: 100%; width: 100%; background: var(--rx-ramp); transform-origin: 0 50%; transform: scaleX(0); }
.rx-voices__time.is-running i { transform: scaleX(1); transition: transform var(--dwell, 7s) linear; }
.rx-why { --why-num: clamp(52px, 5.4vw, 84px); --why-gap: clamp(14px, 2vw, 34px);
  --why-name: minmax(0, .82fr); --why-say: minmax(0, 1.28fr); }
.rx-why__head { max-width: none; display: grid;
  grid-template-columns: var(--why-num) var(--why-name) var(--why-say);
  column-gap: var(--why-gap); align-items: end; }
.rx-why__head .rx-eyebrow { grid-column: 1 / 3; }
.rx-why__head .rx-h2 { grid-column: 1 / 3; }
.rx-why__head .rx-lead { grid-column: 3; grid-row: 2; margin: 0; max-width: 42ch; align-self: end; }
.rx-cta__say { grid-column: 1; display: grid; justify-items: center; gap: clamp(12px, 1.8vh, 22px); }
.rx-cta__h { margin: 0; font: 500 var(--rx-close)/1.05 var(--rx-sans); letter-spacing: -.04em; text-wrap: balance; }
.rx-cta .rx-lead { text-align: center; max-width: 54ch; margin-inline: auto; }
.rx-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: clamp(18px, 2.4vh, 28px); }

/* ==================================================================================================
   FOOTER
   ================================================================================================== */

/* ==================================================================================================
   Narrower screens
   ================================================================================================== */
@media (max-width: 1180px) {
  .rx-about__grid, .rx-why__grid { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4vh, 48px); }
  .rx-why__head { grid-template-columns: minmax(0, 1fr); }
  .rx-why__head .rx-eyebrow, .rx-why__head .rx-h2 { grid-column: 1; }
  .rx-why__head .rx-lead { grid-column: 1; grid-row: auto; max-width: none; margin-top: clamp(12px, 2vh, 20px); }
  .rx-why__list li > div { grid-template-columns: minmax(0, 1fr); row-gap: 7px; }
  .rx-why__list li::after { display: none; }
  .rx-why__head { max-width: none; }
  .rx-about__art { min-height: clamp(360px, 50vh, 540px); }
}
@media (max-width: 860px) {
  .rx-sec { min-height: 0; }
  /* the orbit takes the band above the copy, where the words are not */
  .rx-about__art { order: -1; min-height: clamp(320px, 46vh, 440px); margin: 0 calc(-1 * var(--rx-pad)); }
  .rx-about__grid { gap: 8px; }
  .rx-about .rx-lead { margin-top: 14px; }
  .rx-about__points { margin-top: 18px; gap: 8px; }
  .rx-about__points li { padding: 10px 14px 10px 34px; }
  .rx-about__points li::before { left: 14px; top: 16px; }
  .rx-about__points span { font-size: 13px; }
  .rx-about .rx-btn { margin-top: 18px; }
  .rx-about__copy { order: 0; }

  /* services: the list becomes a row of chips above the prism */
  .rx-serv__body { grid-template-columns: 1fr; gap: 14px; }
  .rx-serv__list { grid-auto-flow: column; grid-auto-columns: max-content; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--rx-pad)); padding: 2px var(--rx-pad); }
  .rx-serv__list::-webkit-scrollbar { display: none; }
  .rx-serv__list button, .rx-serv__list button.is-on { transform: none; grid-template-columns: auto auto; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.04); }
  .rx-serv__list button.is-on { background: rgba(255,255,255,.1); }
  .rx-serv__list i { display: none; }
  /* --fit is the deepest face's own content height, measured in ui/home.js and re-measured on resize and
     after the fonts load. It has to be measured rather than written down: all four faces share one height,
     and how deep the deepest one is depends on how its description and tags wrap, which depends on the
     width — 344px at 320px wide, 241px at 860px. Every fixed value is wrong everywhere but the width it was
     taken at, which is how a flat 340px came to leave 66-99px of blank card under the tags above 430px.
     The literal below is the no-JS fallback only. */
  .rx-serv__stage { height: var(--fit, 340px); }
  /* ONE HEADER LINE ON A PHONE: the title, the 3D mark and the number share a row.
     The title lives inside .rx-face__copy, which is the block pinned to the bottom of the card, so on a
     phone it was stranded three hundred pixels below the mark and the number it belongs with. It is lifted
     out of that flow and hung from the card itself — which needs .rx-face__copy to stop being positioned,
     or the title would resolve against the copy block instead of the card, and the card to become a column
     that keeps the copy at the bottom where it was.
     All three are centred on ONE line: a band --band-h tall, --band-top down from the top of the card.
     The mark and the number are placed by `top` alone and never by `transform`, because both already carry
     a transform that leans them towards the pointer — writing over it would take that away.
     The right-hand reservation on the title is the mark, the number and the two gaps between them, so the
     title wraps before it can reach them rather than running underneath. */
  .rx-face { --face-pad: clamp(20px, 5.6vw, 26px);
    --band-top: clamp(18px, 3vh, 26px); --band-h: 52px;   /* the row holds the title and the mark only (no numeral) */
    --mark-w: 56px; --mark-h: calc(var(--mark-w) / 1.25);
    --num-size: 44px; --num-w: 48px; --band-gap: 11px; --band-after: clamp(14px, 2.2vh, 22px);
    /* The copy starts directly under the header row instead of being pinned to the bottom of the card.
       Pinned, it left 160-227px of dead card between the two — and it varied per service, because a
       bottom-anchored block of different height starts at a different place. Top-aligned, every service
       begins at the same line. The padding is the header row's own height, so the two can never meet. */
    display: flex; flex-direction: column; justify-content: flex-start;
    padding-top: calc(var(--band-top) + var(--band-h) + var(--band-after)); }
  /* the number at the right end of the row, its own box centred in the band (line-height is .9) */
  .rx-face__num { font-size: var(--num-size); right: var(--face-pad);
    top: calc(var(--band-top) + (var(--band-h) - var(--num-size) * .9) / 2); }
  /* the mark beside it, the same centre line */
  .rx-face__shape { width: var(--mark-w); right: var(--face-pad); translate: none;
    top: calc(var(--band-top) + (var(--band-h) - var(--mark-h)) / 2); bottom: auto; opacity: .62; }
  /* The copy simply flows under the header row and stops. It used to be a column with the Explore link
     pushed to the bottom of it; with that link gone there is nothing left to pin, and the card is sized to
     the content instead — which is what closes the space that used to sit under the tags. */
  .rx-face__copy { position: static; width: 100%;
    padding: 0 var(--face-pad) clamp(18px, 3vh, 26px); }
  /* `.rx-serv` is carried here only for specificity. There is a later block in this file ("Services: one
     step down in type") holding `.rx-face__copy h3 { font-size: clamp(23px, 2.5vw, 40px) }`, which is the
     same weight as this selector and declared below it, so it would win — a media query adds nothing. One
     more class settles it and the size below is the one that applies. */
  .rx-serv .rx-face__copy h3 { position: absolute; margin: 0; z-index: 2;
    top: var(--band-top); left: var(--face-pad);
    right: calc(var(--face-pad) + var(--mark-w) + var(--band-gap));
    min-height: var(--band-h); display: flex; align-items: center;
    font-size: 19px; line-height: 1.14; }
  .rx-face__desc { font-size: 14px; }
  .rx-face ul { margin-top: 14px; gap: 6px; }
  .rx-face li { font-size: 12px; padding: 7px 11px; }

  /* the narrowest phones still in use: the longest of the four services wraps to one more line here than
     on a 390, which is enough to push its first line up into the shapes. The type comes down a step so
     all four services start at the same place. */
  @media (max-width: 375px) {
    /* the row gets proportionally less width here, so the mark and the number give some of it back */
    .rx-face { --mark-w: 50px; --num-size: 39px; --num-w: 43px; --band-gap: 9px; --band-h: 56px; }
    .rx-serv__stage { height: var(--fit, 356px); }      /* no-JS fallback: the words wrap further here */
    .rx-serv .rx-face__copy h3 { font-size: 17.5px; }
    .rx-face__desc { font-size: 13px; line-height: 1.55; }
    .rx-face li { font-size: 11px; padding: 6px 9px; }
    .rx-face ul { margin-top: 12px; gap: 5px; }
  }
  .rx-proj__bar { height: 24px; gap: 5px; padding: 0 10px; } .rx-proj__bar i { width: 6px; height: 6px; } .rx-proj__bar span { font-size: 9.5px; margin: 0 6px 0 8px; padding: 3px 8px; }

  /* testimonials: the quote sized for a phone, the rail shortened, the arrows kept */
  .rx-voices__quote { min-height: 210px; }
  .rx-voice blockquote { font-size: 16.5px; max-width: 32ch; }
  .rx-voices__coins { width: 58vw; height: 92px; }
  .rx-coin { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .rx-coin__face span { font-size: 15px; }
  .rx-voices__arrow { width: 40px; height: 40px; }

  /* the CTA stops being two halves: the words, then the three steps under them, both full width. These
     lines were written for the CTA that stood here before this one and were still shaping a grid of cards,
     which left the new list squeezed into half the width with its numbers sitting on top of its words. */
  .rx-cta .rx-lead { max-width: none; }
  .rx-cta__actions { width: 100%; flex-direction: column; }
  .rx-cta__actions .rx-btn { justify-content: center; }
}
@media (max-width: 560px) {
  .rx-why .rx-lead { margin-top: 12px; }
  .rx-serv__aside { display: none; }
  .rx-about__art { min-height: clamp(330px, 47vh, 420px); }
  .rx-about__points { display: none; }            /* the orbit gets the room: the three points are on the About page */
  .rx-about__points span { display: none; }
  .rx-about__points li { padding: 9px 14px 9px 34px; }
  .rx-about__points li::before { top: 15px; }
  .rx-cta__actions { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-in] { opacity: 1; transform: none; transition: none; }
  .rx-face__shape i { animation: none; }
}

/* ---------- no JS: every deck lays itself out flat and complete ---------- */
.no-js .rx-serv__stage { height: auto; perspective: none; }
.no-js .rx-serv__prism { position: static; transform: none; display: grid; gap: 16px; }
.no-js .rx-face { position: relative; transform: none; min-height: 380px; }
.no-js .rx-voice { opacity: 1; visibility: visible; grid-area: auto; }
.no-js .rx-voices__quote { gap: 40px; }
.no-js .rx-voices__rail, .no-js .rx-voices__time, .no-js .rx-voices__mark { display: none; }

/* ---------- softer everywhere: longer, gentler entrances and hand-offs ---------- */
/* (the old [data-in] entrances are replaced by THE SCROLL CINEMA: ritexa.css, ui/motion.js) */

/* ---------- Services: one step down in type ----------
   Asked for after the four services changed: the same composition, set slightly smaller, so the section
   sits with About above it rather than shouting over it. Heading, service names, the face's own heading
   and its body — nothing structural. */
.rx-serv, .rx-why, .rx-work, .rx-cta, .rx-voices { --rx-h2: clamp(27px, 3.1vw, 46px); }
.rx-serv__aside p { font-size: 14px; }
.rx-serv__list button { font-size: clamp(16px, 1.55vw, 23px); }
.rx-face__copy h3 { font-size: clamp(23px, 2.5vw, 40px); }
.rx-face__desc { font-size: 14.5px; }
.rx-face__copy ul li { font-size: 12.5px; }
/* the way through to the whole list: it was a quiet ghost button and it is now the one thing in this
   corner of the section with a lit edge on it */
.rx-serv__all { border-color: rgba(216,164,165,.34); }
.rx-serv__all:hover { border-color: var(--rx-c1); }

/* ---------- Services: saying "there is more" ---------- */
.rx-serv__nav { display: grid; align-content: center; gap: 18px; }
.rx-serv__cue { margin: 0 0 2px; display: flex; align-items: center; gap: 12px; font: 500 11px/1.2 var(--rx-sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(245,239,238,.5); }
.rx-serv__cue i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.06); flex: none; }
.rx-serv__cue i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--rx-c1);
  animation: rx-cue 2.6s var(--rx-ease) infinite; }
@keyframes rx-cue { 0%, 100% { transform: translateX(-5px); opacity: .5; } 50% { transform: translateX(5px); opacity: 1; } }
.rx-serv__cue--touch { display: none; }
.rx-serv__controls { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.rx-serv__count { margin: 0; min-width: 64px; text-align: center; font: 500 12px/1 var(--rx-sans); letter-spacing: .12em; color: rgba(245,239,238,.4); font-variant-numeric: tabular-nums; }
.rx-serv__count b { color: var(--rx-ink); font-weight: 500; font-size: 17px; margin-right: 5px; letter-spacing: .04em; }
.rx-serv__dots { display: none; margin: 0; padding: 0; list-style: none; gap: 8px; }
.rx-serv__dots button { width: 22px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgba(245,239,238,.18); cursor: pointer; transition: width .7s var(--rx-ease-out), background .7s var(--rx-ease); }
.rx-serv__dots button.is-on { width: 40px; background: var(--rx-ramp); }
/* while it is playing on its own, the active service's line fills over the time it will be shown */
.rx-serv__list.is-auto button.is-on i { transition: transform var(--svc-auto, 5.2s) linear; }
.rx-serv__list.is-auto button:not(.is-on) i { transition-duration: .5s; }
.rx-serv__list.is-auto button.is-on.is-restart i { transition: none; transform: scaleX(0); }
@media (max-width: 860px) {
  .rx-serv__nav { display: contents; }
  .rx-serv__cue { order: -1; margin: 0; }
  .rx-serv__cue--desk { display: none; } .rx-serv__cue--touch { display: inline; }
  .rx-serv__list { order: 0; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .rx-serv__stage { order: 1; }
  /* Centred, not packed to the left: the arrows and the progress bar sat in the left half of a full-width
     row with the other half empty, which reads as something that has slipped rather than as a control. */
  .rx-serv__controls { order: 2; justify-content: center; gap: 16px; margin-top: clamp(6px, 1.4vh, 14px); }
  .rx-serv__inner { gap: 16px; }
  .rx-serv__body { gap: 12px; }
  .rx-serv__count { display: none; }
  .rx-serv__dots { display: flex; }
  .rx-serv__controls .rx-round { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .rx-serv__cue i::after { animation: none; } }

/* ==================================================================================================
   THE SHORT SCREEN — the same Home, inside a laptop's 768 pixels.
   The shared tier in ritexa.css brings the type and the section padding down. These are the two blocks on
   this page it cannot size for itself: the four points beside the About art, and the project index beside
   the showreel, which is a list of six and so pays six times for every pixel of button padding. The stage
   already derives its own height from the section padding, so it follows on its own.
   ================================================================================================== */
@media (min-width: 901px) and (max-height: 1000px) {
  .rx-about__points { margin-top: clamp(14px, 2.4vh, 26px); gap: clamp(6px, 1vh, 10px); }
  .rx-about__points li { padding: clamp(9px, 1.5vh, 13px) 16px clamp(9px, 1.5vh, 13px) 38px; }
  .rx-about__points li::before { top: clamp(16px, 2.4vh, 20px); }
  .rx-about .rx-btn { margin-top: clamp(16px, 2.6vh, 28px); }
  .rx-work__index button { padding: clamp(5px, .9vh, 9px) 14px clamp(5px, .9vh, 9px) 12px; }
}

/* ==================================================================================================
   THE FIVE COMPOSITIONS
   Every section below the walkthrough used to be the same shape: words on the left, something on the
   right. Four of them in a row reads as one long template, however good each one is on its own. Each has
   its own axis now — and they share everything else, so the page still reads as one thing: the same type
   scale, the same rhythm tokens, the same ramp, the same arrival, the same 3D space behind them.

     About          the approved split: the words and their three points, then the identity orbit.
     What we build  the approved split: the service list, then the prism that turns to it.
     Why Ritexa     one machined column on the 3D canvas; the slab you are reading draws out of it.
     Selected work  the five sites themselves, standing in a room.
     Start here     a threshold, and the closing words standing in front of it.

   The last three are real geometry on the shared canvas (flow/scene.js) with the type in front of them,
   not CSS boxes with a gradient: the object has mass and the type stays sharp, instead of both being
   half of each.
   ================================================================================================== */

/* ---------- WHY and SELECTED WORK: the two sections that want the whole screen ---------- */
/* THE GAP BETWEEN THESE TWO WAS THEIR OWN LEFTOVER HEIGHT.
   .rx-sec is min-height one screen with its content centred, so whatever the content does not use is
   split above and below it — and between two sections in a row that doubles. These two already SIZE
   their content to the screen, so the floor is redundant: without it each section is exactly its content
   plus its own padding, and the space between them is that padding twice. One small, consistent gap
   instead of two large ones, and both still fit a screen because that is what their content is built to. */
.rx-sec.rx-why, .rx-sec.rx-work { --rx-sec-pad: clamp(20px, 2.6vh, 42px); min-height: 0; }

/* ---------- WHY — four drawers in a machined column ----------
   The column is geometry on the shared canvas; everything here is the type that sits on its fronts.
   Each drawer is placed by --x, --y and --w, which flow/scene.js writes every frame from the projected
   screen position of that slab's front face. So the words are ON the drawer at any viewport and at any
   angle the column leans to, and they are page pixels rather than canvas pixels — which is the whole
   reason for doing it this way round. */
.rx-why__hall { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center;
  text-align: center; row-gap: clamp(20px, 2.8vh, 40px); }
.rx-why__hall .rx-why__head { max-width: min(100%, 760px); display: grid; justify-items: center;
  grid-template-columns: minmax(0, 1fr); }
.rx-why__hall .rx-why__head .rx-eyebrow,
.rx-why__hall .rx-why__head .rx-h2 { grid-column: 1; }
.rx-why__hall .rx-why__head .rx-h2 { max-width: 18ch; }
.rx-why__hall .rx-why__head .rx-lead { grid-column: 1; grid-row: auto; max-width: 48ch;
  margin: clamp(5px, .9vh, 10px) 0 0; align-self: auto; text-align: center; }

/* the column's address, and the surface its words are written on */
/* The box follows the column's own proportions (about 2.9 : 1 in landscape), so the object fills it
   instead of fitting by whichever side runs out first and leaving the rest of the box empty. */
.rx-why__core { position: relative; min-height: 0;
  /* The grid is 12.94 wide by 5.7 tall — 2.27:1 — and the box matches it, so the four fronts fill the
     box in BOTH directions. At 3:1 the box was taller than the grid needed and the fronts were sized by
     the width alone, which is why they stayed small however much height the section was given. */
  /* up to 3.4 : 1 — on a short, wide screen the box takes the width it has, and the fronts are re-cut to its
     shape (flow/scene.js), rather than leaving it a narrow strip in the middle of the section */
  width: min(100%, calc(var(--why-h) * 3.4));
  /* 232px is the head above it plus the two row gaps around it. Measured, not guessed: see the fit
     check in dev-tools/_fitbudget.mjs, which reports every section against its own screen. */
  --why-h: clamp(230px, calc(var(--rx-view) - var(--rx-sec-pad) * 2 - 203px), 660px);
  height: var(--why-h); }
.rx-why__drawers { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.rx-why__drawers li { position: absolute; inset: 0; pointer-events: none; }

/* one drawer front. It is given no background and no border: the slab behind it IS the surface, and
   anything drawn here would be a second rectangle on top of the first. */
/* THE SCENE'S PLACEMENT IS AN OVERRIDE, NOT A REQUIREMENT.
   --px/--py/--pw are written by flow/scene.js from the projected front face of each slab. Until it has
   written them — and if it never does, because the section is not the camera's station yet, or WebGL is
   unavailable, or motion is reduced — these fall back to an even column down the box. Reading this with
   no 3D at all gives four stacked panels in order; keying the layout on the custom properties alone put
   all four of them on top of each other at the top-left corner. */
.rx-why__drawer { position: absolute; pointer-events: auto;
  left: var(--px, 50%);
  top: var(--py, calc((var(--i, 0) + .5) * 25%));
  width: var(--pw, min(100%, 820px));
  transform: translate(-50%, -50%);
  background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer;
  text-align: left; display: block; }
/* A drawer front 950px wide with the label in its left third is mostly empty drawer. The number, the
   title and the description each take a column, so the type is laid across the face the way a label on
   a real drawer front is — and the line that arrives when it opens has somewhere to arrive. */
/* A front 460px wide cannot hold number, title and description in three columns. The number sits over
   the title and the words run underneath, which is what a drawer label looks like anyway. */
.rx-why__front { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center;
  row-gap: 2px; padding: 0 clamp(16px, 1.8vw, 30px); }
.rx-why__drawer i { font-style: normal; grid-row: auto; grid-column: 1; margin-bottom: 1px;
  font: 500 clamp(10px, calc(var(--pw, 460px) * .024), 13px)/1.2 var(--rx-sans); letter-spacing: .2em;
  color: rgba(245,239,238,.34); font-variant-numeric: tabular-nums;
  transition: color .5s var(--rx-ease); }
.rx-why__drawer b { grid-column: 1; grid-row: auto;
  font: 500 clamp(15px, calc(var(--pw, 460px) * .046), 23px)/1.2 var(--rx-sans);
  letter-spacing: -.024em; color: rgba(245,239,238,.8); transition: color .5s var(--rx-ease); }
.rx-why__one { grid-column: 1; grid-row: auto; margin-top: 3px;
  font: 400 clamp(12px, calc(var(--pw, 460px) * .031), 15px)/1.45 var(--rx-sans);
  color: rgba(245,239,238,.5); transition: color .5s var(--rx-ease); }

/* THE DRAWER OPENING.
   A grid row from 0fr to 1fr is the one way to animate "to the height of its own content" without
   measuring anything in JavaScript, and it eases properly instead of snapping at the end the way a
   max-height guess does. */
.rx-why__more { grid-column: 1; grid-row: auto; display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .62s var(--sd-ease, cubic-bezier(.22,.61,.36,1)),
              opacity .4s var(--rx-ease); opacity: 0; }
.rx-why__more > span { overflow: hidden; display: block;
  font: 400 clamp(11.5px, calc(var(--pw, 460px) * .0295), 14.5px)/1.45 var(--rx-sans); color: rgba(245,239,238,.72); }
.rx-why__drawer.is-open .rx-why__more { grid-template-rows: 1fr; opacity: 1; }
.rx-why__drawer.is-open > .rx-why__front > .rx-why__more > span { padding-top: 6px; }
.rx-why__drawer.is-open i { color: var(--rx-c1); }
.rx-why__drawer.is-open b { color: var(--rx-ink); }
.rx-why__drawer.is-open .rx-why__one { color: rgba(245,239,238,.74); }
.rx-why__drawer:focus-visible { outline: 2px solid var(--rx-c1); outline-offset: 8px; border-radius: 10px; }
@media (hover: hover) {
  .rx-why__drawer:not(.is-open):hover b { color: var(--rx-ink); }
}

/* ---------- SELECTED WORK — a laptop, and the other four ----------
   The shell is geometry on the shared canvas, fitted so its screen opening lands exactly on
   .rx-work__lap. Everything in this file is what sits in that opening and beside it.
   The section fits one screen: the laptop takes the height that is left once the head and the four
   picks are paid for, and its width follows from 16:10. */
.rx-work__gallery { position: relative; display: grid; grid-template-columns: minmax(0, 1fr);
  justify-items: center; text-align: center; row-gap: clamp(28px, 4vh, 54px); }
.rx-work__gallery .rx-work__head { display: grid; justify-items: center; max-width: min(100%, 760px); }
/* one line, so the machine below gets the two lines' worth of height */
.rx-work__gallery .rx-work__head .rx-h2 { max-width: none; }
.rx-work__all { margin: 0; justify-self: start; white-space: nowrap; }

.rx-work__hall { position: relative; width: 100%; min-width: 0;
  /* the centred head (about 80px), the gap under it, and the link below the work (about 75px) are what
     the machine and the list divide the rest of the screen between them */
  --stage-h: clamp(250px, calc(var(--rx-view) - var(--rx-sec-pad) * 2 - 186px), 700px);
  display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  column-gap: clamp(26px, 3.2vw, 56px); align-items: start; text-align: left; }

/* the rig: the screen box, and the floor under it */
.rx-work__rig { position: relative; height: var(--stage-h); display: grid; align-content: start;
  justify-items: center; }
/* the screen opening. 16:10, capped so the shell's deck still has somewhere to lie in front of it. */
/* As large as the rig allows: the deck lies forward from the hinge and takes about 29% of the screen's
   own height below it, so the screen can be 0.775 of the rig and its width follows from 16:10. */
.rx-work__lap { position: relative; width: min(100%, calc(var(--stage-h) * 1.4));
  aspect-ratio: 16 / 10; }
.rx-work__screen { position: absolute; inset: 0; overflow: hidden auto; overscroll-behavior: contain;
  border-radius: 3px; background: #070a11;
  scrollbar-width: thin; scrollbar-color: rgba(216,164,165,.4) transparent; }
.rx-work__screen::-webkit-scrollbar { width: 7px; }
.rx-work__screen::-webkit-scrollbar-thumb { background: rgba(216,164,165,.3); border-radius: 7px; }
.rx-work__screen:focus-visible { outline: 2px solid var(--rx-c1); outline-offset: 3px; }
.rx-work__screen img { display: none; width: 100%; height: auto; }
.rx-work__screen img.is-on { display: block; }
/* THE BAR IS INSIDE THE SCROLLER, NOT OVER IT.
   Sticky to the bottom of the scrollport, so it rides along as the site scrolls behind it and a wheel
   over it still scrolls the preview — which is the whole reason it lives here rather than floating on
   top of the screen. The row takes no pointer events; only the link does. */
.rx-work__bar { position: sticky; bottom: 12px; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 10px; padding: 0 12px; pointer-events: none; }
.rx-work__hint { display: inline-block; padding: 7px 14px; border-radius: 99px;
  background: rgba(8,12,20,.76); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 500 11.5px/1 var(--rx-sans); color: rgba(245,239,238,.8); white-space: nowrap;
  transition: opacity .45s var(--rx-ease); }
.rx-work__hint i { font-style: normal; margin-left: 4px; }
.rx-work__screen.is-read .rx-work__hint { opacity: 0; }
/* the way into the site: always there, never in the way */
.rx-work__open { pointer-events: auto; margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 99px; text-decoration: none; white-space: nowrap;
  background: rgba(8,12,20,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px rgba(216,164,165,.22);
  font: 500 11.5px/1 var(--rx-sans); color: rgba(245,239,238,.92);
  transition: color .35s var(--rx-ease), box-shadow .35s var(--rx-ease); }
.rx-work__open i { font-style: normal; transition: transform .4s var(--rx-ease-out); }
.rx-work__host { margin-left: .32em; }
.rx-work__hostm { display: none; margin-left: .32em; }
.rx-work__open:hover { color: var(--rx-c1); box-shadow: inset 0 0 0 1px rgba(206, 152, 153,.5); }
.rx-work__open:hover i { transform: translate(2px, -2px); }
.rx-work__open[hidden] { display: none; }
.rx-work__open:focus-visible { outline: 2px solid var(--rx-c1); outline-offset: 2px; }
.rx-work__glare { position: absolute; inset: 0; border-radius: 3px; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,0) 42%, rgba(224,177,176,.055) 50%, rgba(255,255,255,0) 58%); }

/* THE FLOOR. One soft pool, and the top of the screen thrown back at it at a tenth of its strength and
   fading out within a fifth of its height. A reflection you notice is a reflection that is wrong. */
.rx-work__floor { position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(var(--stage-h) * 1.0);
  width: min(100%, calc(var(--stage-h) * 1.34)); height: calc(var(--stage-h) * .2);
  pointer-events: none; overflow: hidden; }
.rx-work__floor::before { content: ""; position: absolute; left: 0; right: 0; top: -10%; height: 70%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(214,163,163,.11), transparent 72%); }
.rx-work__floor img { position: absolute; left: 50%; top: 0; width: 76%; transform: translateX(-50%) scaleY(-1);
  transform-origin: 50% 0; opacity: .17; display: none;
  -webkit-mask-image: linear-gradient(0deg, #000, transparent 58%);
  mask-image: linear-gradient(0deg, #000, transparent 58%); }
.rx-work__floor img.is-on { display: block; }

/* the four that are not on the screen */
/* name, then the four others, then the way to all of them — three rows, the middle one taking the slack */
.rx-work__picks { display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  row-gap: clamp(12px, 1.8vh, 22px); min-width: 0; height: var(--stage-h); }
.rx-work__now { display: grid; justify-items: start; row-gap: 0; }
.rx-work__named { grid-area: 1 / 1; }
.rx-work__named[hidden] { display: none; }
.rx-work__num { margin: 0; font: 500 10.5px/1 var(--rx-sans); letter-spacing: .22em; color: var(--rx-c1);
  font-variant-numeric: tabular-nums; }
.rx-work__num span { color: rgba(245,239,238,.32); }
.rx-work__named h3 { margin: 7px 0 0; font: 500 clamp(20px, 1.95vw, 31px)/1.2 var(--rx-sans); letter-spacing: -.028em; }
/* the title IS the link — no button, and the mark beside it is what says it leaves the page */
.rx-work__named h3 a { color: inherit; text-decoration: none; transition: color .35s var(--rx-ease); }
.rx-work__named h3 a:hover { color: var(--rx-c1); }
.rx-work__named h3 a:focus-visible { outline: 2px solid var(--rx-c1); outline-offset: 4px; border-radius: 4px; }
.rx-work__ext { font-style: normal; display: inline-block; margin-left: .3em;
  font-size: .4em; vertical-align: .34em; color: var(--rx-c1); opacity: .8;
  transition: transform .4s var(--rx-ease-out), opacity .35s var(--rx-ease); }
.rx-work__named h3 a:hover .rx-work__ext { transform: translate(2px, -2px); opacity: 1; }
.rx-work__kind { margin: 3px 0 0; font: 400 13px/1.5 var(--rx-sans); color: rgba(245,239,238,.5); }

.rx-work__others { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr)); row-gap: clamp(9px, 1.3vh, 16px); min-width: 0; }
.rx-work__other.is-hid { display: none; }
.rx-work__other button { width: 100%; height: 100%; background: none; border: 0; cursor: pointer;
  padding: clamp(4px, .8vh, 9px) 9px; color: inherit; font: inherit; text-align: left; border-radius: 12px;
  /* An explicit thumbnail column, not an auto one: an auto track sized by a span whose height is a
     percentage of its own row gives a different width at every viewport height, and the titles beside
     it then start in a different place on every screen. */
  display: grid; grid-template-columns: clamp(92px, 8.6vw, 150px) minmax(0, 1fr);
  column-gap: clamp(14px, 1.5vw, 22px); align-items: center;
  transition: background .35s var(--rx-ease), transform .45s var(--rx-ease-out); }
/* sized from the row it sits in, so it is as large as the space allows and never sets the row's height */
.rx-work__thumb { display: block; overflow: hidden; border-radius: 7px;
  width: 100%; aspect-ratio: 1600 / 696; max-height: 100%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
.rx-work__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.rx-work__meta { display: grid; min-width: 0; }
.rx-work__meta i { font-style: normal; font: 500 9.5px/1 var(--rx-sans); letter-spacing: .2em;
  color: rgba(245,239,238,.32); font-variant-numeric: tabular-nums; }
.rx-work__meta b { margin-top: 0; font: 500 clamp(14px, 1.15vw, 17px)/1.25 var(--rx-sans);
  letter-spacing: -.014em; color: rgba(245,239,238,.78); }
.rx-work__meta em { font-style: normal; margin-top: 2px; font: 400 12.5px/1.4 var(--rx-sans);
  color: rgba(245,239,238,.4); }
@media (hover: hover) {
  .rx-work__other button:hover { background: rgba(255,255,255,.045); transform: translateX(4px); }
  .rx-work__other button:hover .rx-work__meta b { color: var(--rx-ink); }
}
.rx-work__other button:focus-visible { outline: 2px solid var(--rx-c1); outline-offset: 2px; }


/* ---------- START HERE — the threshold ----------
   The close of the page is one way through: a deep bevelled threshold standing in the space (real
   geometry, flow/scene.js) with the closing words in front of it, and one thing to do.
   The headline is genuinely extruded — see the markup — so this file's job is the perspective it is
   extruded under and the depth of each copy. */
.rx-cta__threshold { position: relative; display: grid; justify-items: center; text-align: center;
  padding-block: clamp(52px, 9vh, 116px);
  perspective: 1400px; perspective-origin: 50% 44%; }
/* ONE CONTAINER, AND IT IS THE WIDTH OF THE SCREEN.
   The threshold breaks out of the wrap to the full viewport, so the close of the page is one wide
   opening rather than a panel sitting inside a column. Nothing is painted inside it: the frame is the
   only thing drawn and the approved background shows straight through the middle of it. */
.rx-cta__room { position: absolute; top: -14%; bottom: -12%; left: 50%; width: 100vw;
  transform: translateX(-50%); pointer-events: none; z-index: 0; }

.rx-cta__say { position: relative; z-index: 1; display: grid; justify-items: center;
  max-width: min(100%, 880px); transform-style: preserve-3d; }

.rx-cta__h { margin: clamp(10px, 1.6vh, 20px) 0 0; display: grid; justify-items: center;
  transform-style: preserve-3d; }
.rx-cta__line { position: relative; display: block; transform-style: preserve-3d;
  font: 500 var(--rx-h1, clamp(34px, 5.2vw, 76px))/1.06 var(--rx-sans); letter-spacing: -.035em; }
/* the face the reader reads */
.rx-cta__line b { position: relative; display: block; font: inherit; color: var(--rx-ink);
  transform: translateZ(1px); }
.rx-cta__line--lit b { color: transparent; background: var(--rx-ramp);
  -webkit-background-clip: text; background-clip: text; }
/* and the body of the letter behind it: eight copies, each 7px further back and a shade darker */
.rx-cta__line i { position: absolute; left: 0; right: 0; top: 0; display: block; font: inherit;
  font-style: normal; white-space: nowrap; user-select: none; -webkit-user-select: none;
  /* AN EXTRUSION STRAIGHT BACK IS INVISIBLE FROM STRAIGHT ON.
     Dead centre of the screen there is no parallax between the face and the copies behind it, so eight
     of them hid exactly behind the first. They travel down and left as well as back now, which is the
     direction a real extrusion is lit from here (the key light is up and to the left), and the body of
     each letter is visible at any angle the section is read from. */
  transform: translate3d(calc(var(--k) * -1.4px), calc(var(--k) * 1.4px), calc(var(--k) * -7px));
  color: rgb(calc(70 - var(--k) * 6) calc(60 - var(--k) * 5) calc(60 - var(--k) * 5)); }   /* warm graphite (was slate blue) */
.rx-cta__line--lit i { color: rgb(calc(112 - var(--k) * 10) calc(64 - var(--k) * 6) calc(78 - var(--k) * 8)); }   /* the gradient line's body: a deep rose shade of its face */

.rx-cta__threshold .rx-eyebrow { margin-bottom: clamp(6px, 1.4vh, 16px); }
.rx-cta__threshold .rx-lead { margin: clamp(20px, 3vh, 34px) 0 0; max-width: 58ch; }
.rx-cta__actions { margin-top: clamp(26px, 4vh, 44px); display: flex; justify-content: center; }
/* one action, and it stands in front of the words rather than under them */
.rx-cta__go { transform: translateZ(70px); font-size: 16px; padding: 16px 30px; }
.rx-cta__aside { margin: clamp(16px, 2.2vh, 24px) 0 0;
  font: 400 14px/1.6 var(--rx-sans); color: rgba(245,239,238,.5); }
.rx-cta__aside a { color: rgba(245,239,238,.8); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.22);
  padding-bottom: 1px; transition: color .35s var(--rx-ease), border-color .35s var(--rx-ease); }
.rx-cta__aside a:hover { color: var(--rx-c1); border-color: var(--rx-c1); }

/* ---------- the five on a phone ----------
   Every one of these is a composition in depth, and a phone has about a third of the width to build one
   in. So the depth comes off and the ORDER stays: the axis becomes a column, the rank becomes a row you
   swipe, the stack becomes four plates you step through, the corridor flattens to its steps. Nothing is
   hidden and nothing changes meaning. */
@media (max-width: 900px) {

  /* a phone gets the flight too, just a shallower one: the steps are small enough that every tread
     still rasterises near 1:1 and stays sharp, and deep enough that it is visibly a flight. */
  /* the column keeps its mass on a phone — it is the thing worth the room. The fronts are narrower, so
     the number moves above the title rather than beside it and the type steps down a size. */
  .rx-why__core { width: 100%; aspect-ratio: 1 / 2.25; }
  /* One column on a phone — and the ROWS have to be released as well as the columns. The desktop
     layout pins the title to row 1 and the description to row 1 of a third column; overriding only the
     column left both of them in row 1 of column 1, printed over each other. */
  .rx-why__front { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .rx-why__drawer i { grid-row: auto; grid-column: 1; margin-bottom: 3px; font-size: 10.5px; }
  .rx-why__drawer b { grid-row: auto; grid-column: 1; font-size: 17px; line-height: 1.25; }
  .rx-why__one { grid-row: auto; grid-column: 1; }
  .rx-why__more { grid-row: auto; grid-column: 1; }
  .rx-why__one { font-size: 13px; margin-top: 5px; line-height: 1.5; }
  .rx-why__more > span { font-size: 13px; line-height: 1.5; padding-top: 7px; }
  .rx-why__front { padding: 0 18px; }

  .rx-rank { grid-template-columns: repeat(5, 46vw); perspective: none;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; padding-bottom: 6px;
    scrollbar-width: none; width: 100%; }
  .rx-rank::-webkit-scrollbar { display: none; }
  .rx-rank__one { scroll-snap-align: center; }
  .rx-rank__plate { transform: none; }
  .rx-rank__one.is-on .rx-rank__plate { transform: none; }

  /* the threshold keeps its depth on a phone — it is the last thing on the page and it is worth the
     room — but the extrusion is halved, because 56px of it behind a 34px headline is a smear */
  .rx-cta__line i { transform: translate3d(calc(var(--k) * -.7px), calc(var(--k) * .7px), calc(var(--k) * -3.5px)); }
  .rx-cta__go { transform: translateZ(30px); width: 100%; justify-content: center; }
  .rx-cta__actions { width: 100%; }
}

@media (max-width: 560px) {
  /* the wall becomes one column on a phone: five sites, full width, in order, each still one tap from
     its live site. The turn comes off — a 7deg rotation across 350px is a smudge, not a wall. */
  /* THE PHONE TAKES ITS HEIGHT FROM ITS CONTENT.
     Fitting a section into one screen is a desktop idea: on a phone the same content in a third of the
     width is three times as tall, and squeezing it to fit would leave a preview nobody could read. Both
     sections run to their natural height here and the page scrolls, which is what a phone is for. */
  /* same value as the wider phone tier above — two rules set this box and the later one wins, so a
     stale number here silently overrode the one that had been tuned */
  .rx-why__core { width: 100%; height: auto; aspect-ratio: 1 / 2.25; }

  /* THE PHONE: one column, and a display shaped for it.
     The frame is 10:9 in portrait (flow/scene.js re-cuts it), so this box is too — it IS the opening —
     and the site gets half as much height again as a 16:10 screen would give it at this width. */
  .rx-work__lap { width: 100%; aspect-ratio: 10 / 9; }
  /* the host name does not fit beside the hint at this width; it was being cut off mid-domain */
  .rx-work__host { display: none; }
  .rx-work__hostm { display: inline; }
  .rx-work__bar { padding: 0 8px; gap: 6px; }
  .rx-work__hint, .rx-work__open { padding: 6px 11px; font-size: 11px; }
  .rx-work__gallery { row-gap: 20px; }
  .rx-work__all { justify-self: center; }
  .rx-work__hall { grid-template-columns: minmax(0, 1fr); row-gap: 22px; --stage-h: auto; }
  .rx-work__rig { height: auto; }
  .rx-work__floor { position: relative; left: auto; transform: none; top: auto; width: 100%;
    height: clamp(40px, 7vh, 64px); margin-top: 6px; }
  .rx-work__picks { height: auto; grid-template-rows: auto auto; }
  .rx-work__others { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto;
    column-gap: 10px; row-gap: 14px; }
  .rx-work__other button { grid-template-columns: minmax(0, 1fr); row-gap: 7px; height: auto; }
  .rx-work__thumb { height: auto; width: 100%; }

}

/* nothing here moves for anyone who asked for less motion */
@media (prefers-reduced-motion: reduce) {
  .rx-why__more, .rx-work__screen, .rx-work__tab::after { transition: none; }
}

/* the About orbit (flow/aboutorbit.js): its own canvas, filling the art box */
.rx-about__art { position: relative; }
/* The canvas reaches past the art box into the section's own empty margin — never toward the copy — so the
   orbit can be large without the layout moving. Beside the copy: up, down and right. Stacked under the copy:
   down and sideways. Above the copy on a phone: up. */
.rx-about__orbit { position: absolute; display: block; pointer-events: none; opacity: 0; transition: opacity .8s var(--rx-ease);
  /* a canvas is a replaced element: pinning its edges does not stretch it, so its size is given outright */
  left: 0; top: calc(var(--rx-sec-pad) * -0.7);
  width: calc(100% + var(--rx-pad)); height: calc(100% + var(--rx-sec-pad) * 1.4); }
@media (max-width: 1180px) { .rx-about__orbit { left: calc(-1 * var(--rx-pad)); top: 0; width: calc(100% + 2 * var(--rx-pad)); height: calc(100% + var(--rx-sec-pad) * 0.6); } }
@media (max-width: 860px)  { .rx-about__orbit { left: 0; top: calc(var(--rx-sec-pad) * -0.6); width: 100%; height: calc(100% + var(--rx-sec-pad) * 0.6); } }
.rx-about__orbit.is-ready { opacity: 1; }

/* =====================================================================================================
   WHAT WE BUILD — from blueprint to built (flow/buildstage.js draws the stage; ui/home.js runs the list)
   The whole section is one screen on a desktop or laptop: the stage is sized from the view, not from its
   content, and the copy beside it is set to fit the same height.
   ===================================================================================================== */
.rx-build__inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: var(--rx-gap); align-items: center; }
.rx-build__copy { display: grid; align-content: center; }
.rx-build__copy .rx-eyebrow { margin: 0 0 clamp(12px, 1.8vh, 18px); }
.rx-build__lede { margin: var(--t-gap-lead, 16px) 0 0; max-width: 38ch; font: 400 var(--rx-lead)/1.6 var(--rx-sans); color: var(--rx-dim); }

/* the selector */
.rx-build__list { list-style: none; margin: clamp(18px, 3.2vh, 34px) 0 clamp(18px, 3vh, 30px); padding: 0; display: grid; }
.rx-build__list button { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: clamp(11px, 1.7vh, 16px) 4px clamp(11px, 1.7vh, 16px) 26px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  border-bottom: 1px solid rgba(245, 239, 238, .07); }
.rx-build__list li:first-child button { border-top: 1px solid rgba(245, 239, 238, .07); }
.rx-build__name { font: 500 clamp(17px, 1.35vw, 21px)/1.25 var(--rx-sans); letter-spacing: -.015em; color: rgba(245, 239, 238, .5); transition: color .5s var(--rx-ease); }
.rx-build__kind { font: 500 10.5px/1 var(--rx-sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 239, 238, .3); transition: color .5s var(--rx-ease); }
/* the marker: a short rose-gold line that draws in beside the chosen service */
.rx-build__list button::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--rx-ramp);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--rx-ease-out); }
/* the time line: how long until the stage moves on by itself */
.rx-build__time { position: absolute; left: 26px; right: 4px; bottom: -1px; height: 1px; background: var(--rx-ramp); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; }
.rx-build__list button.is-on .rx-build__name { color: var(--rx-ink); }
.rx-build__list button.is-on .rx-build__kind { color: rgba(227, 182, 180, .75); }
.rx-build__list button.is-on::before { transform: scaleX(1); }
.rx-build__list button.is-on .rx-build__time { opacity: .9; animation: rx-build-time var(--build-auto, 7s) linear forwards; }
.rx-build[data-held] .rx-build__list button.is-on .rx-build__time { animation-play-state: paused; }
@keyframes rx-build-time { to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .rx-build__list button:hover .rx-build__name { color: rgba(245, 239, 238, .86); } }
.rx-build__list button:focus-visible { outline: 1px solid rgba(219, 211, 209, .6); outline-offset: 2px; border-radius: 6px; }
.rx-build__all { justify-self: start; }

/* the stage */
.rx-build__stage { position: relative; height: clamp(440px, calc(var(--rx-view) - 2 * var(--rx-sec-pad) - 8px), 700px); border-radius: 26px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 62% 42%, rgba(207, 155, 156, .075), rgba(207, 155, 156, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .026), rgba(255, 255, 255, .008));
  border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05); }
.rx-build__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; opacity: 0; transition: opacity 1s var(--rx-ease); }
.rx-build__canvas.is-ready { opacity: 1; }
/* blueprint crop marks in the four corners */
.rx-build__marks i { position: absolute; width: 18px; height: 18px; z-index: 1; border: 1px solid rgba(213, 160, 161, .42); pointer-events: none; }
.rx-build__marks i:nth-child(1) { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.rx-build__marks i:nth-child(2) { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.rx-build__marks i:nth-child(3) { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.rx-build__marks i:nth-child(4) { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
/* where the build is: Blueprint → Building → Built */
.rx-build__state { position: absolute; top: 22px; left: 44px; z-index: 1; margin: 0; display: flex; align-items: center; gap: 9px;
  font: 500 10.5px/1 var(--rx-sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(227, 182, 180, .78); }
.rx-build__state i { width: 6px; height: 6px; border-radius: 50%; background: var(--rx-ramp); box-shadow: 0 0 10px rgba(214, 163, 163, .7); animation: rx-build-pulse 1.6s ease-in-out infinite; }
.rx-build[data-phase="built"] .rx-build__state i { animation: none; opacity: .65; }
@keyframes rx-build-pulse { 50% { opacity: .3; } }

/* the caption: one slim glass bar across the foot of the stage — the name and its link on the left, what it is
   and what it includes on the right — so the object has the whole stage above it */
.rx-build__panel { position: absolute; left: clamp(16px, 1.6vw, 22px); right: clamp(16px, 1.6vw, 22px); bottom: clamp(16px, 1.6vw, 22px); z-index: 2;
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); grid-template-areas: "h desc" "more tags"; column-gap: clamp(18px, 2vw, 32px); align-items: start;
  padding: clamp(14px, 1.9vh, 20px) clamp(18px, 1.6vw, 24px); border-radius: 18px;
  background: rgba(8, 10, 16, .6); border: 1px solid rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9); }
.rx-build__panel[hidden] { display: none; }
.rx-build__panel.is-in { animation: rx-build-in .7s var(--rx-ease-out) both; }
@keyframes rx-build-in { from { opacity: 0; transform: translateY(10px); } }
.rx-build__h { grid-area: h; margin: 0; font: 500 var(--t-card, clamp(21px, 2vw, 30px))/1.14 var(--rx-sans); letter-spacing: var(--rx-track-head, -.02em); }
.rx-build__h a { color: inherit; text-decoration: none; }
.rx-build__desc { grid-area: desc; margin: 0; font: 400 14px/1.55 var(--rx-sans); color: var(--rx-dim); }
.rx-build__tags { grid-area: tags; list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rx-build__tags li { padding: 5px 10px; border-radius: 999px; font: 400 11.5px/1.2 var(--rx-sans); color: rgba(245, 239, 238, .72);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .06); }
.rx-build__more { grid-area: more; align-self: end; display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; font: 500 12.5px/1 var(--rx-sans); color: rgba(227, 182, 180, .9); text-decoration: none; }
.rx-build__more i { font-style: normal; transition: transform .4s var(--rx-ease-out); }
.rx-build__more:hover i { transform: translateX(4px); }

/* a laptop: a little tighter, so the whole section still sits in one screen */
@media (max-height: 820px) and (min-width: 861px) {
  .rx-build__desc { font-size: 13.5px; }
  .rx-build__tags { margin-top: 10px; }
  .rx-build__more { margin-top: 10px; }
}
/* stacked: the copy, the selector as a row you can swipe, the stage, then its caption under it */
@media (max-width: 1180px) {
  .rx-build__inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rx-build__copy { display: contents; }
  .rx-build__copy .rx-eyebrow { order: 1; } .rx-build__copy .rx-h2 { order: 2; } .rx-build__lede { order: 3; }
  .rx-build__list { order: 4; } .rx-build__stage { order: 5; } .rx-build__all { order: 6; margin-top: 22px; }
  .rx-build__list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 22px calc(-1 * var(--rx-pad)) 14px; padding: 2px var(--rx-pad); scroll-snap-type: x mandatory; }
  .rx-build__list::-webkit-scrollbar { display: none; }
  .rx-build__list li { flex: none; scroll-snap-align: start; }
  .rx-build__list button, .rx-build__list li:first-child button { display: flex; gap: 10px; padding: 11px 16px; border: 1px solid rgba(245, 239, 238, .1); border-radius: 999px; overflow: hidden; }
  .rx-build__list button::before { display: none; }
  .rx-build__list button.is-on { border-color: rgba(219, 211, 209, .38); background: rgba(207, 155, 156, .08); }
  .rx-build__name { font-size: 15px; white-space: nowrap; }
  .rx-build__kind { display: none; }
  .rx-build__time { left: 16px; right: 16px; bottom: 0; }
  .rx-build__stage { height: auto; padding-top: clamp(330px, 62vw, 520px); }
  .rx-build__canvas { height: clamp(330px, 62vw, 520px); bottom: auto; }
  .rx-build__panel { position: relative; left: auto; right: auto; bottom: auto; margin: 0 14px 14px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "desc" "tags" "more"; }
  .rx-build__desc { margin-top: var(--t-gap-card, 12px); }
}
@media (max-width: 560px) {
  .rx-build__stage { padding-top: clamp(300px, 86vw, 380px); border-radius: 20px; }
  .rx-build__canvas { height: clamp(300px, 86vw, 380px); }
  .rx-build__state { left: 38px; }
}

/* =====================================================================================================
   START HERE — the close of the page as an editorial spread (see home.php). No box, no glow, no shadow
   behind the type: the composition, the space and one rose-gold rule carry it.
   ===================================================================================================== */
.rx-close__inner { display: grid; align-content: center; }
.rx-close__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: clamp(14px, 2vh, 20px); }
.rx-close__bar .rx-eyebrow { margin: 0; }
.rx-close__where { margin: 0; font: 500 11px/1 var(--rx-sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 239, 238, .42); }
.rx-close__rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(213, 160, 161, .7), rgba(214, 163, 163, .38) 46%, rgba(245, 239, 238, .07) 100%); }

.rx-close__grid { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(0, .64fr); gap: clamp(32px, 6vw, 112px); align-items: end;
  margin-top: clamp(40px, 8vh, 96px); }

/* the invitation */
.rx-close__h { margin: 0; font: 500 clamp(40px, 5vw, 84px)/1.02 var(--rx-sans); letter-spacing: -.038em; color: var(--rx-ink); }   /* the last word of the page, so it is the largest type below the hero */
.rx-close__line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }   /* the mask each line rises out of; room for descenders */
.rx-close__line > span { display: block; text-wrap: balance; }
.rx-close__lead { margin: clamp(20px, 3vh, 30px) 0 0; max-width: 46ch; font: 400 var(--rx-lead)/1.65 var(--rx-sans); color: var(--rx-dim); }
.rx-close__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(26px, 4.4vh, 44px); }
/* the button: a soft band of light crosses it on hover, nothing more */
.rx-close__go { position: relative; overflow: hidden; isolation: isolate; }
.rx-close__go::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%) -120% 0 / 220% 100% no-repeat;
  transition: background-position .9s var(--rx-ease-out); }
@media (hover: hover) and (pointer: fine) { .rx-close__go:hover::after { background-position: 120% 0; } }
.rx-close__alt { position: relative; font: 400 14.5px/1 var(--rx-sans); color: rgba(245, 239, 238, .72); text-decoration: none; padding: 6px 0; transition: color .4s var(--rx-ease); }
.rx-close__alt::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(245, 239, 238, .22); transform-origin: 0 50%; transition: background .4s var(--rx-ease), transform .5s var(--rx-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .rx-close__alt:hover { color: var(--rx-ink); }
  .rx-close__alt:hover::after { background: var(--rx-ramp); }
}

/* the direct line */
.rx-close__direct { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid rgba(245, 239, 238, .08); }
.rx-close__k { margin: 0 0 clamp(10px, 1.6vh, 16px); font: 500 var(--rx-h3, 20px)/1.22 var(--rx-sans); letter-spacing: var(--rx-track-head, -.02em); color: var(--rx-ink); }
.rx-close__reach { list-style: none; margin: 0; padding: 0; }
.rx-close__reach li { border-bottom: 1px solid rgba(245, 239, 238, .08); }
.rx-close__reach li:first-child { border-top: 1px solid rgba(245, 239, 238, .08); }
.rx-close__reach a, .rx-close__hours { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; align-items: baseline; gap: 12px;
  padding: clamp(13px, 1.9vh, 18px) 2px; color: inherit; text-decoration: none; }
.rx-close__rk { font: 500 10.5px/1 var(--rx-sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 239, 238, .4); }
.rx-close__rv { font: 400 16px/1.35 var(--rx-sans); color: rgba(245, 239, 238, .88); overflow-wrap: anywhere; transition: color .4s var(--rx-ease); }
.rx-close__hours { grid-template-columns: 74px minmax(0, 1fr); }
.rx-close__hours .rx-close__rv { font-size: 13.5px; color: rgba(245, 239, 238, .6); }
@media (min-width: 961px) { .rx-close__hours .rx-close__rv { white-space: nowrap; } .rx-close__reach a, .rx-close__hours { column-gap: 8px; } .rx-close__direct { min-width: 0; } }
.rx-close__reach a i { font-style: normal; font-size: 14px; color: rgba(227, 182, 180, .55); transform: translateX(-4px); transition: transform .45s var(--rx-ease-out), color .4s var(--rx-ease); }
.rx-close__reach a { position: relative; }
.rx-close__reach a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--rx-ramp); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--rx-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .rx-close__reach a:hover .rx-close__rv { color: var(--rx-ink); }
  .rx-close__reach a:hover i { transform: translateX(0); color: rgba(227, 182, 180, .95); }
  .rx-close__reach a:hover::after { transform: scaleX(1); }
}
.rx-close__reach a:focus-visible { outline: 1px solid rgba(219, 211, 209, .6); outline-offset: 2px; border-radius: 6px; }

/* ARRIVAL (ui/home.js adds .is-in once the section is a third on screen; without it nothing is hidden) */
html.js .rx-close:not(.is-in) .rx-close__rule { transform: scaleX(0); }
html.js .rx-close:not(.is-in) .rx-close__line > span { transform: translateY(108%); }
html.js .rx-close:not(.is-in) :is(.rx-close__lead, .rx-close__actions, .rx-close__k, .rx-close__reach li, .rx-close__where) { opacity: 0; transform: translateY(14px); }
html.js .rx-close .rx-close__rule { transition: transform 1.4s var(--rx-ease-out); }
html.js .rx-close .rx-close__line > span { transition: transform 1.1s var(--rx-ease-out); }
html.js .rx-close .rx-close__line:nth-child(2) > span { transition-delay: .12s; }
html.js .rx-close :is(.rx-close__lead, .rx-close__actions, .rx-close__k, .rx-close__reach li, .rx-close__where) { transition: opacity .9s var(--rx-ease), transform .9s var(--rx-ease-out); }
html.js .rx-close .rx-close__where { transition-delay: .3s; }
html.js .rx-close .rx-close__lead { transition-delay: .32s; }
html.js .rx-close .rx-close__actions { transition-delay: .44s; }
html.js .rx-close .rx-close__k { transition-delay: .5s; }
html.js .rx-close .rx-close__reach li:nth-child(1) { transition-delay: .58s; }
html.js .rx-close .rx-close__reach li:nth-child(2) { transition-delay: .66s; }
html.js .rx-close .rx-close__reach li:nth-child(3) { transition-delay: .74s; }
html.js .rx-close .rx-close__reach li:nth-child(4) { transition-delay: .82s; }
@media (prefers-reduced-motion: reduce) {
  html.js .rx-close :is(.rx-close__rule, .rx-close__line > span, .rx-close__lead, .rx-close__actions, .rx-close__k, .rx-close__reach li, .rx-close__where) { transition: none; }
}

/* stacked: the invitation, then the direct line under it */
@media (max-width: 960px) {
  .rx-close__grid { grid-template-columns: minmax(0, 1fr); align-items: start; gap: clamp(36px, 6vh, 56px); margin-top: clamp(32px, 6vh, 56px); }
  .rx-close__direct { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .rx-close__where { display: none; }
  .rx-close__actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .rx-close__reach a { grid-template-columns: 62px minmax(0, 1fr) auto; }
  .rx-close__hours { grid-template-columns: 62px minmax(0, 1fr); }
  .rx-close__rv { font-size: 15px; }
}

/* ---------------- SERVICES — simple cards (.rx-svx, .rx-svc) ----------------
   One small card per service: its mark, its name, an arrow. Nothing else. The cards have the site's
   lit edge (bright at the top-left corner, almost nothing along the sides); the eighth card leads to the
   Services page and is the same dark card, without a mark. */
.rx-sec.rx-svx { min-height: 0; --rx-sec-pad: clamp(48px, 7vh, 96px); }
.rx-svx__top .rx-eyebrow { margin: 0 0 clamp(12px, 1.8vh, 18px); }
.rx-svc { list-style: none; margin: clamp(28px, 4.6vh, 48px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 18px); }
.rx-svc__card { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: start;
  min-height: clamp(150px, 20vh, 184px); padding: clamp(18px, 1.6vw, 24px); border-radius: 20px; text-decoration: none; color: var(--rx-ink);
  border: 1px solid transparent;
  background: linear-gradient(160deg, rgba(27,24,26,.96), rgba(12,11,13,.96)) padding-box,
              linear-gradient(135deg, rgba(251,232,229,.6) 0%, rgba(218,168,169,.28) 16%, rgba(255,255,255,.06) 42%, rgba(255,255,255,.035) 70%, rgba(218,168,169,.22) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 40px -32px rgba(0,0,0,.95);
  transition: transform .55s var(--rx-ease-out), box-shadow .55s var(--rx-ease); }
.rx-svc__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--rx-tint, #ECC8C3);
  background: rgba(218,168,169,.09); box-shadow: inset 0 0 0 1px rgba(218,168,169,.16); transition: background .5s var(--rx-ease), color .4s; }
.rx-svc__ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rx-svc__n { grid-column: 1; align-self: end; font: 500 clamp(17px, 1.45vw, 21px)/1.22 var(--rx-sans); letter-spacing: -.02em; max-width: 11ch; }
.rx-svc__go { grid-column: 2; align-self: end; font-style: normal; font-size: 17px; line-height: 1.3; color: var(--rx-rose);
  opacity: .55; transition: transform .5s var(--rx-ease-out), opacity .4s; }
/* the eighth: all services */
/* the eighth is not a service, so it is not a filled card: an open frame (the lit edge only, nothing inside it)
   with a round arrow in its middle and a small label under it */
.rx-svc__card--all { grid-template-columns: 1fr; grid-template-rows: auto auto; place-content: center; justify-items: center; gap: 14px; text-align: center;
  background: linear-gradient(#050507, #050507) padding-box,
              linear-gradient(135deg, rgba(251,232,229,.6) 0%, rgba(218,168,169,.28) 16%, rgba(255,255,255,.06) 42%, rgba(255,255,255,.035) 70%, rgba(218,168,169,.22) 100%) border-box;
  box-shadow: none; }
.rx-svc__card--all .rx-svc__go { grid-column: 1; grid-row: 1; align-self: center; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-size: 18px; line-height: 1; color: var(--rx-tint, #ECC8C3); opacity: 1; border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(30,27,29,.96), rgba(13,12,14,.96)) padding-box,
              linear-gradient(135deg, rgba(251,232,229,.9), rgba(218,168,169,.45) 30%, rgba(255,255,255,.08) 60%, rgba(218,168,169,.4)) border-box; }
.rx-svc__card--all .rx-svc__n { grid-row: 2; max-width: none; align-self: start; font: 500 11.5px/1.5 var(--rx-sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(245,239,238,.74); }
.rx-svc__card--all .rx-svc__n br { display: none; }
.rx-svc__card:focus-visible { outline: 1px solid rgba(251,232,229,.8); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .rx-svc__card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 46px -30px rgba(0,0,0,.98); }
  .rx-svc__card:not(.rx-svc__card--all):hover { background: linear-gradient(160deg, rgba(33,29,31,.98), rgba(14,13,15,.98)) padding-box,
              linear-gradient(135deg, rgba(251,232,229,.9) 0%, rgba(218,168,169,.5) 20%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.05) 70%, rgba(218,168,169,.4) 100%) border-box; }
  .rx-svc__card:hover .rx-svc__ic { background: rgba(218,168,169,.18); color: #FBE8E5; }
  .rx-svc__card:hover .rx-svc__go { transform: translateX(4px); opacity: 1; }
  .rx-svc__card--all:hover .rx-svc__go { transform: scale(1.08); color: #FBE8E5; }
  .rx-svc__card--all:hover .rx-svc__n { color: var(--rx-ink); }
}
@media (max-width: 1000px) { .rx-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .rx-sec.rx-svx { --rx-sec-pad: clamp(40px, 6vh, 64px); }
  .rx-svc { gap: 10px; margin-top: 24px; }
  .rx-svc__card { min-height: 132px; padding: 15px; border-radius: 17px; }
  .rx-svc__ic { width: 38px; height: 38px; border-radius: 11px; } .rx-svc__ic svg { width: 19px; height: 19px; }
  .rx-svc__n { font-size: 15.5px; }
  .rx-svc__go { font-size: 15px; }
  .rx-svc__card--all .rx-svc__go { width: 44px; height: 44px; font-size: 16px; } .rx-svc__card--all .rx-svc__n { font-size: 10.5px; letter-spacing: .16em; }
}

/* ---------------- THE CLOSE, SIMPLE ----------------
   One screen, one thought, set in the middle: a short rose gold hairline, the eyebrow, the line (smaller than it
   was), one sentence and the button. A very soft light behind it is the only decoration. */
.rx-close__inner--simple { justify-items: center; text-align: center; position: relative; }
.rx-close__inner--simple::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(820px, 92vw); aspect-ratio: 1.7; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(218,168,169,.085), rgba(218,168,169,.03) 45%, rgba(218,168,169,0) 72%); pointer-events: none; z-index: -1; }
.rx-close__mark { display: block; width: 1px; height: clamp(40px, 7vh, 72px); margin-bottom: clamp(18px, 3vh, 28px);
  background: linear-gradient(180deg, rgba(218,168,169,0), rgba(251,232,229,.85)); }
.rx-close__inner--simple .rx-eyebrow { margin: 0 0 clamp(16px, 2.4vh, 24px); }
.rx-close__inner--simple .rx-close__h { font-size: clamp(28px, 3.3vw, 50px); line-height: 1.1; letter-spacing: -.03em; }
.rx-close__inner--simple .rx-close__lead { margin-top: clamp(14px, 2.2vh, 22px); max-width: 44ch; font-size: clamp(14.5px, 1.05vw, 16px); }
.rx-close__inner--simple .rx-close__actions { justify-content: center; margin-top: clamp(24px, 4vh, 38px); }
html.js .rx-close:not(.is-in) .rx-close__mark { transform: scaleY(0); }
html.js .rx-close .rx-close__mark { transform-origin: 50% 0; transition: transform 1.2s var(--rx-ease-out); }
@media (max-width: 960px) { .rx-close__inner--simple .rx-close__actions { flex-direction: row; align-items: center; } }
/* only as tall as what it says, with even room above and below (it was a full screen, which left it floating
   in empty space between Why and the work) */
html body .rx-sec.rx-close { min-height: 0; --rx-sec-pad: clamp(40px, 6vh, 72px); }
.rx-close__mark { height: clamp(30px, 5vh, 52px); margin-bottom: clamp(14px, 2.2vh, 22px); }

/* ---------------- SELECTED WORK: the screen alone ----------------
   No monitor is drawn round the site any more (flow/scene.js), so the screen has its own finish: rounded corners,
   the site-wide lit edge, and a soft shadow under it so it still stands in the room. */
.rx-work__lap { border-radius: 16px; box-shadow: 0 40px 80px -46px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.03); }
.rx-work__screen { border-radius: 16px; }
.rx-work__glare { border-radius: 16px; }
.rx-work__lap::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(251,232,229,.75) 0%, rgba(218,168,169,.36) 14%, rgba(255,255,255,.08) 42%, rgba(255,255,255,.05) 70%, rgba(218,168,169,.3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* ---------------- SCROLL THROUGH OUR VISION (.rx-vis) ----------------
   Without script: four statements, one under another. With it (.is-live, ui/home.js): the stage holds still for
   the length of the track and the reader moves forward through it — the frames (.rx-vis__tunnel i) come toward
   the camera and pass, and each statement arrives out of depth, stands to be read, and goes by. Every transform
   and opacity on the frames and the statements is written by the script; this only sets them up. */
.rx-sec.rx-vis { min-height: 0; display: block; padding: 0; }
.rx-vis__stage { position: relative; padding: clamp(64px, 10vh, 120px) var(--rx-pad); text-align: center; }
.rx-vis__head .rx-eyebrow { margin: 0; }
.rx-vis__beats { list-style: none; margin: clamp(28px, 5vh, 48px) 0 0; padding: 0; display: grid; gap: clamp(40px, 7vh, 72px); }
.rx-vis__beats li { display: grid; justify-items: center; align-content: center; }
.rx-vis__no { font: 500 12px/1 var(--rx-sans); letter-spacing: .24em; color: var(--rx-rose); margin-bottom: clamp(14px, 2.4vh, 24px); }
.rx-vis__h { margin: 0; max-width: 17ch; font: 500 clamp(30px, 4.5vw, 70px)/1.06 var(--rx-sans); letter-spacing: -.038em; color: var(--rx-ink); text-wrap: balance; }
.rx-vis__p { margin: clamp(16px, 2.6vh, 26px) 0 0; max-width: 40ch; font: 400 clamp(15px, 1.2vw, 18px)/1.6 var(--rx-sans); color: var(--rx-dim); }
.rx-vis__tunnel, .rx-vis__prog { display: none; }

.rx-vis.is-live .rx-vis__track { height: calc(var(--n, 4) * 82vh + 100vh); }
.rx-vis.is-live .rx-vis__stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; perspective: 1000px; perspective-origin: 50% 50%; }
.rx-vis.is-live .rx-vis__head { position: absolute; left: 0; right: 0; top: clamp(104px, 17vh, 160px); z-index: 3; display: grid; justify-items: center; }
.rx-vis.is-live .rx-vis__beats { position: absolute; inset: 0; margin: 0; display: block; transform-style: preserve-3d; z-index: 2; }
.rx-vis.is-live .rx-vis__beats li { position: absolute; inset: 0; padding: 0 var(--rx-pad); opacity: 0; will-change: transform, opacity; backface-visibility: hidden; }
/* the frames: a viewfinder seen from inside. Each is only a lit hairline (bright at its top-left corner, as every
   edge on the site is) and four short corner marks */
.rx-vis.is-live .rx-vis__tunnel { display: block; position: absolute; inset: 0; transform-style: preserve-3d; z-index: 1; pointer-events: none; }
.rx-vis__tunnel i { position: absolute; left: 50%; top: 50%; width: min(80vw, 1240px); height: min(64vh, 640px); margin: calc(min(64vh, 640px) / -2) 0 0 calc(min(80vw, 1240px) / -2);
  border-radius: 30px; padding: 1px; opacity: 0; will-change: transform, opacity;
  background: linear-gradient(135deg, rgba(251,232,229,.95) 0%, rgba(218,168,169,.55) 12%, rgba(255,255,255,.1) 38%, rgba(255,255,255,.06) 66%, rgba(218,168,169,.5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
/* a soft light at the far end of the frames, so the depth has somewhere to go */
.rx-vis.is-live .rx-vis__stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(70vw, 900px); aspect-ratio: 1.6; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(218,168,169,.1), rgba(218,168,169,.03) 50%, rgba(218,168,169,0) 74%); pointer-events: none; }
/* where the reader is: the cue, a hairline that fills, and the count */
.rx-vis.is-live .rx-vis__prog { display: flex; position: absolute; left: 50%; bottom: clamp(26px, 5vh, 50px); transform: translateX(-50%); z-index: 3; align-items: center; gap: 16px;
  font: 500 11px/1 var(--rx-sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(245,239,238,.5); white-space: nowrap; }
.rx-vis__bar { position: relative; width: clamp(70px, 12vw, 180px); height: 1px; background: rgba(245,239,238,.14); overflow: hidden; }
.rx-vis__bar i { position: absolute; inset: 0; background: var(--rx-gold); transform: scaleX(0); transform-origin: 0 50%; }
.rx-vis__count b { font-weight: 500; color: var(--rx-rose); }
@media (max-width: 760px) {
  .rx-vis.is-live .rx-vis__track { height: calc(var(--n, 4) * 70vh + 100vh); }
  .rx-vis__h { font-size: clamp(28px, 8.4vw, 40px); max-width: 13ch; }
  .rx-vis__tunnel i { width: 86vw; height: 58vh; margin: -29vh 0 0 -43vw; border-radius: 22px; }
  .rx-vis.is-live .rx-vis__prog { gap: 10px; font-size: 9.5px; letter-spacing: .16em; }
  .rx-vis__bar { width: 44px; }
}

/* ---------------- THE CLOSE, AS ONE WIDE SPLIT PANEL (.rx-cta2) ----------------
   The full width of the page: a flat neutral panel (no gradient fill) with the site's lit hairline edge. Left, the
   invitation and its two buttons; right, past a fine divider, the three steps that follow. */
.rx-cta2 { position: relative; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); border-radius: 30px; border: 1px solid transparent; overflow: hidden;
  background: linear-gradient(#1f1e20, #1f1e20) padding-box,
              linear-gradient(135deg, rgba(251,232,229,.75) 0%, rgba(218,168,169,.32) 8%, rgba(255,255,255,.13) 32%, rgba(255,255,255,.08) 72%, rgba(218,168,169,.3) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 50px 90px -60px rgba(0,0,0,.95); }
.rx-cta2__main { padding: clamp(32px, 4.6vw, 76px); display: grid; align-content: center; justify-items: start; }
.rx-cta2__main .rx-eyebrow { margin: 0 0 clamp(16px, 2.4vh, 24px); }
.rx-cta2 .rx-close__h { font-size: clamp(30px, 3.7vw, 58px); line-height: 1.06; letter-spacing: -.034em; }
.rx-cta2 .rx-close__lead { margin-top: clamp(16px, 2.4vh, 24px); max-width: 40ch; font-size: clamp(15px, 1.12vw, 17px); }
.rx-cta2 .rx-close__actions { margin-top: clamp(26px, 4vh, 40px); gap: 12px; flex-direction: row; align-items: center; }
.rx-cta2__side { padding: clamp(32px, 4.6vw, 76px) clamp(28px, 4vw, 64px); display: grid; align-content: center; background: #19181a; border-left: 1px solid rgba(255,255,255,.08); }
.rx-cta2__k { margin: 0 0 clamp(14px, 2.2vh, 22px); font: 500 11px/1 var(--rx-sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(245,239,238,.5); }
.rx-cta2__steps { list-style: none; margin: 0; padding: 0; }
.rx-cta2__steps li { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); align-items: start; padding: clamp(16px, 2.4vh, 24px) 0; border-top: 1px solid rgba(255,255,255,.08); }
.rx-cta2__steps li:last-child { padding-bottom: 0; }
.rx-cta2__n { font: 500 12px/1.7 var(--rx-sans); letter-spacing: .18em; color: var(--rx-rose); }
.rx-cta2__steps b { display: block; font: 500 clamp(16px, 1.3vw, 19px)/1.3 var(--rx-sans); letter-spacing: -.012em; color: var(--rx-ink); }
.rx-cta2__steps div > span { display: block; margin-top: 5px; font: 400 14.5px/1.55 var(--rx-sans); color: var(--rx-dim); }
@media (max-width: 900px) {
  .rx-cta2 { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .rx-cta2__main, .rx-cta2__side { padding: 28px 22px; }
  .rx-cta2__side { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .rx-cta2 .rx-close__actions { flex-wrap: wrap; }
}
