/* COLOUR — Template 5: Rose Gold on black.
   One accent, taken from the supplied reference: a rose gold that runs from copper through rose gold to
   champagne. No pink, no violet, no blue. Highlighted words and primary buttons carry the gradient;
   rules, numbers, icons and borders carry the metal as a solid.
   Foundation: a near-black world. Identity: Rose Gold. */
/* ============================================================================
   RITEXA — website styles
   Foundation: a near-black world. Identity: Rose Gold.
   EVERY colour and type decision below is a token: change the identity here, not page by page.
   (The previous blue → violet styling is in application/backups/style-v1/ and the git tag backup/style-v1.)
   ========================================================================= */
:root {
  /* ---- colour ---------------------------------------------------------------------------- */
  --rx-bg: #030407;                       /* the page: one black, everywhere */
  --rx-bg-2: #05070d;                     /* a surface lifted off it */
  /* text: warm off-white and its muted steps (never pure white, never a cool grey) */
  --rx-ink: #f5efee;
  --rx-dim: rgba(245, 239, 238, .62);
  --rx-faint: rgba(245, 239, 238, .14);
  --rx-line: rgba(245, 239, 238, .09);
  /* THE IDENTITY (template 5, final): ONE ROSE GOLD BRAND, for the site and the 3D walkthrough alike.
     THE SOLIDS — used for graphics, borders, icons, rules, numbers, the metal of the 3D objects:
       rose gold–pink #DAA8A9 (the brand colour) · its shade #C28B8C · its tint #ECC8C3
     THE GRADIENT (--rx-gold) — used ONLY for the highlighted phrase of a heading and for primary buttons, and
     always the same one: a band of light crossing rose gold, as it crosses polished metal. It runs from the
     shade, through the brand colour, up to a soft blush at its centre, and back.
     Text is white. No yellow, no copper, no gold, no hot pink, no glow.
     (--rx-ramp, --rx-blush and --rx-pink keep their old names so nothing that reads them had to change; --rx-ramp
     is now a solid, because rules, dots and bars are not places for a gradient.) */
  --rx-rose: #DAA8A9;                     /* rose gold–pink: the brand colour */
  --rx-rose-hi: #ECC8C3;                  /* its tint */
  --rx-rose-lo: #C28B8C;                  /* its shade */
  --rx-blush: #E4B8B5;
  --rx-pink: #ECC8C3;
  --rx-pink-lo: #C28B8C;
  --rx-c1: #C28B8C; --rx-c2: #CF9B9C; --rx-c3: #DAA8A9; --rx-c4: #E4B8B5; --rx-c5: #ECC8C3;
  --rx-dot1: var(--rx-rose); --rx-dot2: var(--rx-blush);
  --rx-gold: linear-gradient(100deg, #C28B8C 0%, #DAA8A9 24%, #F7E6E1 50%, #DAA8A9 76%, #C28B8C 100%);
  --rx-ramp: linear-gradient(#DAA8A9, #DAA8A9);
  --rx-ramp-soft: linear-gradient(rgba(218, 168, 169, .1), rgba(218, 168, 169, .1));
  /* ---- surfaces, strokes, shadow --------------------------------------------------------- */
  --rx-surface: rgba(255, 255, 255, .028);
  --rx-surface-2: rgba(255, 255, 255, .055);
  --rx-stroke: rgba(255, 255, 255, .085);
  --rx-stroke-2: rgba(255, 255, 255, .16);
  --rx-shadow: 0 26px 70px -34px rgba(0, 0, 0, .95);
  --rx-shadow-lift: 0 50px 120px -60px rgba(0, 0, 0, .9);   /* depth is shadow, not a coloured halo */
  --rx-r-sm: 12px; --rx-r: 18px; --rx-r-lg: 28px;
  /* ---- type ------------------------------------------------------------------------------- */
  --rx-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --rx-mono: "Inter", "Segoe UI", system-ui, sans-serif;
  /* ONE family, Inter, everywhere: headings, body, labels, buttons, navigation. Headings are set in
     Inter 500 with a slight negative track — confident, not heavy. No serif, script or italic faces. */
  --rx-display: var(--rx-sans);
  --rx-w-head: 500;                       /* heading weight */
  --rx-track-head: -.02em;                /* heading letter-spacing */
  /* primary buttons: the rose gold gradient, champagne into rose gold, with dark ink on it (white on rose gold is too faint) */
  --rx-btn-ramp: var(--rx-gold);   /* the same gradient as the highlighted phrase; the hover slides the light across it */
  --rx-btn-ink: #1a1211;
  --rx-h1: clamp(34px, 4.4vw, 72px);
  --rx-h2: clamp(28px, 3vw, 46px);
  --rx-h3: clamp(19px, 1.5vw, 24px);
  --rx-close: clamp(28px, 3.2vw, 48px);   /* the line that closes a page, on every page */
  --rx-lead: clamp(15px, 1.15vw, 18px);
  --rx-body: 15px;
  --rx-eyebrow: 11px;
  /* ---- rhythm ----------------------------------------------------------------------------- */
  --rx-pad: clamp(20px, 4vw, 64px);
  --rx-max: 1480px;
  --rx-sec-pad: clamp(78px, 9.6vh, 136px);   /* the air a section keeps inside its own edges */
  --rx-gap: clamp(28px, 3.4vw, 64px);
  --rx-ease: cubic-bezier(.22, .61, .36, 1);
  --rx-ease-out: cubic-bezier(.16, 1, .3, 1);
  --rx-header-h: 104px;
  --rx-view: calc(100svh - var(--rx-header-h));   /* the screen a section actually gets */
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--rx-bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--rx-bg); color: var(--rx-ink); font: 300 16px/1.6 var(--rx-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { display: block; max-width: 100%; }
i, em, cite, dfn, var, address { font-style: normal; }   /* no italic anywhere: emphasis is weight or colour */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--rx-c1); outline-offset: 4px; border-radius: 4px; }
.rx-skip { position: fixed; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; border-radius: 8px; background: #000; border: 1px solid var(--rx-faint); font-size: 13px; }
.rx-skip:focus { top: 16px; }
.rx-grad { background: var(--rx-gold); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* each line of a wrapped highlight carries the whole gradient */
html.rx-booting, html.rx-booting body { overflow: hidden; }

/* ---------- the world ---------- */
/* the 3D world lives below the header, never behind it */
/* No mask-image on the canvas: a CSS mask on a full-screen WebGL canvas costs an extra offscreen compositing pass
   every frame (it halved the smooth frames of the hand-off into About). The soft edge under the header is the
   first layer of .rx-vignette instead, which sits over the canvas. */
.rx-world { 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: 1; }   /* above .rx-flow: see app.js release */
/* the world behind the page (flow/pageworld.js): the field and the one continuous ring */
/* ---------- the page before the 3D arrives ----------
   The inner pages opened on flat black and then grew a background a few hundred milliseconds later, and
   that arrival is what reads as 'it pops in' — not the delay itself, which is short, but the fact that
   there is visibly a before and an after. This is the same environment flow/pageworld.js draws, in CSS:
   the soft depth of the field, the two veils it hangs in the frame, and the faint floor under them. It
   costs nothing, it is there in the first paint, and the canvas cross-fades over it. Home has had exactly
   this since the beginning (.rx-walk::before) — the inner pages simply never got one. */
.rx-standin { position: fixed; inset: var(--rx-header-h) 0 auto 0; width: 100%;
  height: calc(100lvh - var(--rx-header-h)); z-index: 0; pointer-events: none;
  background:   /* no soft circles: the background is still and plain (the moving field is retired, ui/background.js) */
    radial-gradient(120% 90% at 50% 40%, rgba(9,14,30,.5), transparent 78%),
    linear-gradient(180deg, #04060b 0%, #05080f 56%, #04060a 100%);
  transition: opacity .55s var(--rx-ease); }
.rx-standin::after { content: \; position: absolute; inset: auto 0 0 0; height: 42%;
  background-image: linear-gradient(transparent 0 1px, rgba(255,255,255,.022) 1px 2px), linear-gradient(90deg, transparent 0 1px, rgba(255,255,255,.022) 1px 2px);
  background-size: 100% 46px, 46px 100%;
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,.75), transparent 72%); mask-image: linear-gradient(0deg, rgba(0,0,0,.75), transparent 72%);
  transform: perspective(520px) rotateX(64deg); transform-origin: bottom center; }
/* once the real thing is drawing, the stand-in goes — flow/pageworld.js sets this on the same line it
   turns the canvas on, so the two cross-fade at the same rate and nothing flickers between them */
.rx-standin.is-off { opacity: 0; }
.no-js .rx-standin, .no-webgl .rx-standin { opacity: 1; }

/* The fade begins the moment the first frame is drawn, so its length is added to however long the
   background took to arrive. At 1.4s it was the largest remaining part of "the background turns up late":
   the canvas could be rendering a fifth of a second after the words and still not be fully there for
   another second and a half. Half a second still arrives softly rather than switching on. */
.rx-pageworld { position: fixed; inset: var(--rx-header-h) 0 0 0; width: 100%; height: calc(100lvh - var(--rx-header-h)); z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity .55s var(--rx-ease); }
.rx-pageworld.is-on { opacity: 1; }
/* Softened right down. It exists to hide the hard top edge of the canvas under the header and to keep the
   left column readable during the hero; it is not there to dim the world. */
.rx-vignette { position: fixed; inset: var(--rx-header-h) 0 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--rx-bg) 0, rgba(3,4,7,0) 48px),
              radial-gradient(130% 100% at 60% 45%, transparent 68%, rgba(3,4,7,.3) 100%),
              linear-gradient(90deg, rgba(3,4,7,.5) 0%, rgba(3,4,7,.12) 34%, transparent 54%); }
.no-js .rx-world { display: none; }

/* ---------- the identity: one supplied file (images/new-logo.jpeg?v=20261113), never redrawn ----------
   Crops measured from the artwork; 'screen' drops its black so the original pixels sit on our own black. */
.rx-logo { background-image: url(../../images/new-logo.jpeg?v=20261114b); background-repeat: no-repeat; mix-blend-mode: screen; }
.rx-logo--mark { aspect-ratio: 649.8 / 573.1; background-size: 236.4% auto; background-position: 48.67% 10.76%; }   /* the R in ritexa-logo-transparent (2026-11-14), as it sits in images/new-logo.jpeg */
.rx-logo--word { aspect-ratio: 1442.7 / 145.3; background-size: 106.47% auto; background-position: 50.7% 81.83%; }
.rx-logo--lockup { aspect-ratio: 1442.7 / 922.2; background-size: 106.47% auto; background-position: 50.7% 47.6%; }

/* ---------- loader: the world initialising ---------- */
.rx-loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--rx-bg); }
.rx-loader__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.rx-loader__core { position: relative; display: grid; justify-items: center; gap: 26px; transition: transform 1.1s var(--rx-ease-out), opacity .8s var(--rx-ease); }
.rx-loader__emblem { position: relative; width: clamp(128px, 15vw, 172px); aspect-ratio: 1; display: grid; place-items: center; }
.rx-loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rx-loader__track { fill: none; stroke: rgba(245,239,238,.07); stroke-width: 1; }
.rx-loader__arc { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 352; stroke-dashoffset: 352; transition: stroke-dashoffset .5s var(--rx-ease); filter: drop-shadow(0 0 4px rgba(202,148,148,.55)); }
/* A sweep that the browser animates by itself (transform only, off the main thread). Building the 3D world
   blocks the main thread in places — the shader work in particular — and everything drawn from script stops
   with it, which is what made the loader read as stuck, then jump, then stuck again. This never stops. */
.rx-loader__spin { position: absolute; inset: -3%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(206, 152, 153,0) 0deg, rgba(206, 152, 153,.5) 42deg, rgba(206,152,153,.42) 84deg, rgba(206,152,153,0) 130deg, rgba(206, 152, 153,0) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 3px), #000 calc(50% - 2px) calc(50% - 0.5px), transparent 50%);
  mask: radial-gradient(circle, transparent 0 calc(50% - 3px), #000 calc(50% - 2px) calc(50% - 0.5px), transparent 50%);
  animation: rx-spin 1.9s linear infinite; }
@keyframes rx-spin { to { transform: rotate(360deg); } }
.rx-loader.is-leaving .rx-loader__spin { opacity: 0; transition: opacity .4s var(--rx-ease); }
@media (prefers-reduced-motion: reduce) { .rx-loader__spin { animation-duration: 6s; } }
.rx-loader__mark { position: relative; width: 56%; aspect-ratio: 649.8 / 573.1; }
.rx-loader__mark .rx-logo { display: block; width: 100%; height: 100%; clip-path: polygon(0 0, 0 0, 0 0, 0 0); animation: rx-draw 1.4s .25s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes rx-draw { to { clip-path: polygon(0 0, 260% 0, 0 260%, 0 0); } }
.rx-loader__word { display: block; width: clamp(150px, 16vw, 210px); opacity: 0; transform: translateY(8px); animation: rx-in 1s .9s var(--rx-ease) forwards; }
.rx-loader__status { margin: 0; display: flex; gap: 14px; font: 500 10px/1 var(--rx-mono); letter-spacing: .28em; text-transform: uppercase; color: var(--rx-dim); opacity: 0; animation: rx-in .8s 1.1s var(--rx-ease) forwards; }
.rx-loader__pct { color: var(--rx-ink); min-width: 3ch; }
@keyframes rx-in { to { opacity: 1; transform: none; } }
/* exit: the emblem is absorbed into the world; the black lifts off the scene that was already rendering behind it */
.rx-loader.is-leaving { background: transparent; transition: background 1.2s var(--rx-ease) .25s; }
.rx-loader.is-leaving .rx-loader__core { transform: scale(.82); opacity: 0; }
.rx-loader.is-gone { display: none; }
/* short intro on later page views in the same session */
.rx-quick .rx-loader__word, .rx-quick .rx-loader__status, .rx-quick .rx-loader__ring { display: none; }
.rx-quick .rx-loader__spin { inset: 8%; }
.rx-quick .rx-loader__mark .rx-logo { animation-duration: .5s; animation-delay: 0s; }
.no-js .rx-loader { display: none; }

/* ---------- entrance states (GSAP brings these in; without JS everything is visible) ---------- */
.js [data-reveal] { opacity: 0; }
.rx-line { display: block; overflow: hidden; padding-bottom: .04em; }
.rx-line > span { display: inline-block; }

/* ---------- header ---------- */
.rx-header { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--rx-header-h); background: var(--rx-bg); display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); padding: 0 var(--rx-pad);
  transition: background .5s var(--rx-ease), height .5s var(--rx-ease), border-color .5s var(--rx-ease); border-bottom: 1px solid transparent; }
/* no line under the header: a soft rose shadow falls just below it (the element itself is transparent) */
.rx-header::after { content: ""; position: absolute; left: calc(var(--rx-pad) + 4%); right: calc(var(--rx-pad) + 4%); bottom: 0; height: 1px; background: transparent; border-radius: 50%; pointer-events: none;
  box-shadow: 0 8px 24px 2px rgba(214, 163, 163, .16), 0 3px 10px 0 rgba(213, 160, 161, .1); opacity: .8; transform: none; transition: opacity .6s var(--rx-ease), transform .9s var(--rx-ease-out); }

.rx-header.is-scrolled::after { opacity: 1; transform: none; }
.rx-header__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
/* The supplied logo file itself. The artwork sits inside a wide black margin (the lockup is 914x592 of a
   1536x1024 file), so the window below shows the logo at full size and simply leaves the empty margin out —
   nothing of the logo is cropped, its proportions are untouched, and screen blending drops the black. */
.rx-header__logo { display: block; width: 113px; height: 75.4px; overflow: hidden; mix-blend-mode: screen; transition: transform .6s var(--rx-ease-out); }
.rx-header__logo img { display: block; max-width: none; width: 190px; height: 127px; margin: -25px 0 0 -40.7px; }   /* max-width:none — the global img rule would squeeze the crop */
.rx-header__brand:hover .rx-header__logo { transform: scale(1.04); }
.rx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.4vw, 40px); }
.rx-nav a { position: relative; display: block; padding: 8px 0; font: 400 14px/1 var(--rx-sans); letter-spacing: .02em; color: var(--rx-dim); transition: color .35s var(--rx-ease); }
.rx-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rx-ramp); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--rx-ease-out); }
.rx-nav a:hover, .rx-nav a[aria-current] { color: var(--rx-ink); }
.rx-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.rx-nav a[aria-current]::before { content: ""; position: absolute; left: 50%; top: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--rx-c2); box-shadow: 0 0 10px var(--rx-c2); }
.rx-header__cta { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; font: 500 14px/1 var(--rx-sans); letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); overflow: hidden; isolation: isolate; transition: color .4s var(--rx-ease), border-color .4s var(--rx-ease), background .4s var(--rx-ease); }
.rx-header__cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rx-btn-ramp); opacity: 0; transition: opacity .45s var(--rx-ease); }
.rx-header__cta:hover { border-color: transparent; color: var(--rx-btn-ink); }
.rx-header__cta i { font-style: normal; transition: transform .45s var(--rx-ease-out); }
.rx-header__cta:hover::before { opacity: 1; }
.rx-header__cta:hover i { transform: translateX(4px); }
.rx-burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; position: relative; cursor: pointer; }
.rx-burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 1px; background: var(--rx-ink); transition: transform .5s var(--rx-ease-out), top .5s var(--rx-ease-out); }
.rx-burger i:first-child { top: 17px; } .rx-burger i:last-child { top: 25px; right: 17px; }
.menu-open .rx-burger i:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .rx-burger i:last-child { top: 21px; right: 11px; transform: rotate(-45deg); }
.rx-menu { position: fixed; inset: 0; z-index: 35; display: none; flex-direction: column; justify-content: flex-start;
  gap: clamp(20px, 3.4vh, 36px);
  padding: calc(var(--rx-header-h) + clamp(18px, 4vh, 44px)) var(--rx-pad) calc(env(safe-area-inset-bottom, 0px) + clamp(24px, 4vh, 40px));
  background: rgba(3,4,7,.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .5s var(--rx-ease), visibility .5s; }
.rx-menu nav { display: grid; gap: 0; flex: 1; align-content: center; border-top: 1px solid rgba(245,239,238,.1); }
.rx-menu nav a { display: grid; grid-template-columns: minmax(0, 1fr) auto;   /* (no index numbers: the label leads) */
  align-items: center; gap: clamp(10px, 3vw, 18px);
  padding: clamp(15px, 2.9vh, 28px) 0; border-bottom: 1px solid rgba(245,239,238,.1);
  font: 400 clamp(26px, 7.4vw, 38px)/1.15 var(--rx-sans); letter-spacing: -.025em; opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--rx-ease) calc(var(--i) * 60ms), transform .8s var(--rx-ease-out) calc(var(--i) * 60ms); }
.rx-menu nav a small { align-self: center; font: 500 11px/1 var(--rx-mono); letter-spacing: .18em;
  color: rgba(245,239,238,.36); font-variant-numeric: tabular-nums; }
.rx-menu nav a[aria-current] small { color: var(--rx-c1); }
/* an arrow on every row, so a row reads as a destination rather than as a heading */
.rx-menu nav a::after { content: "→"; justify-self: end; font-size: .46em; color: rgba(245,239,238,.28); }
.rx-menu nav a[aria-current]::after { color: var(--rx-c1); }
.rx-menu nav a[aria-current] { color: transparent; background: var(--rx-gold); -webkit-background-clip: text; background-clip: text; }
.rx-menu__cta { margin-top: auto; align-self: stretch; justify-content: center; padding-block: 19px;
  opacity: 0; transition: opacity .6s .35s; }
.menu-open .rx-menu { opacity: 1; visibility: visible; }
.menu-open .rx-menu nav a { opacity: 1; transform: none; }
.menu-open .rx-menu__cta { opacity: 1; }
.menu-open body, html.menu-open { overflow: hidden; }

/* ---------- buttons ----------
   Primary = the new logo's gradient (cyan #CE9899 → blue #CA9494 → #D29E9F → violet #C79192 → #C79192),
   laid out wider than the button so hover can slide it. Secondary = dark glass with a gradient edge. */
.rx-btn { display: inline-flex; align-items: center; gap: 12px; padding: 17px 28px; border-radius: 18px; font: 500 15px/1 var(--rx-sans); letter-spacing: .01em; position: relative; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .6s var(--rx-ease-out), box-shadow .6s var(--rx-ease), background-position .9s var(--rx-ease), color .4s; }
.rx-btn i { font-style: normal; transition: transform .6s var(--rx-ease-out); }
/* 170% of the ramp in the box meant only its first three-fifths — the blues — were ever on screen at
   rest, and the purple the logo is half made of only appeared on hover. At 132% the resting button
   carries blue through indigo into violet, and the hover slides it to the warm end. */
.rx-btn--primary { color: var(--rx-btn-ink); background-image: var(--rx-btn-ramp); background-size: 132% 100%; background-position: 0% 0;
  box-shadow: 0 10px 26px -16px rgba(202,148,148,.5), inset 0 1px 0 rgba(255,255,255,.16); }
.rx-btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1s var(--rx-ease); }
.rx-btn--primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(201,147,148,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.rx-btn--primary:hover::after { transform: translateX(120%); }
.rx-btn--primary:hover i { transform: translateX(5px); }
/* secondary: dark glass with a thin blue → violet outline; it sits beside the gradient button, never competes */
.rx-btn--ghost { color: rgba(245,239,238,.9); font-weight: 450; letter-spacing: .015em; padding: 16px 26px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.045); }
.rx-btn--ghost i { opacity: .8; }
.rx-btn--ghost { transition: transform .6s var(--rx-ease-out), background .5s var(--rx-ease), border-color .5s var(--rx-ease), color .4s, box-shadow .6s var(--rx-ease); }
.rx-btn--ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); border-color: rgba(216,164,165,.45); color: var(--rx-ink); box-shadow: 0 12px 28px -20px rgba(210,158,159,.45); }   /* a quiet rose-pink edge, never a fill */
.rx-btn--ghost:hover i { transform: translateY(3px); }

/* ---------- hero ---------- */
main { position: relative; z-index: 2; }
/* ---------- the walkthrough: one pinned stage, scrubbed by scroll ---------- */
.rx-walk { position: relative; padding-top: var(--rx-header-h); }
.rx-stage { position: sticky; top: var(--rx-header-h); height: calc(100vh - var(--rx-header-h)); height: calc(100dvh - var(--rx-header-h)); overflow: hidden; }   /* held by the compositor: see app.js bindJourney */
/* 780, not 680: the headline is now a sentence rather than two words, and the longest line of it needs
   about 8 pixels of width for every pixel of type. At 680 the line filled its box exactly at 1456 and ran
   over it on a 1920 display, where a line box clipped to one line simply loses the second half. */
.rx-hero__content { position: absolute; left: var(--rx-pad); top: 0; bottom: 0; margin: auto 0; height: fit-content; max-width: min(780px, 54vw); z-index: 3; }
.rx-hero__content::before { content: ""; position: absolute; inset: -16vh -26% -16vh -14vw; z-index: -1; pointer-events: none;
  background: radial-gradient(74% 60% at 26% 50%, rgba(4,6,12,.74) 0%, rgba(4,6,12,.52) 44%, rgba(4,6,12,0) 76%); }
.rx-hero__eyebrow span { white-space: nowrap; }
.rx-hero__eyebrow { display: flex; align-items: center; flex-wrap: wrap; row-gap: 6px; margin: 0 0 28px; font: 500 11px/1 var(--rx-mono); letter-spacing: .34em; text-transform: uppercase; color: var(--rx-dim); }
.rx-hero__eyebrow i { width: 4px; height: 4px; border-radius: 50%; margin: 0 1.1em 0 .8em; } .rx-hero__eyebrow .d1 { background: var(--rx-dot1); } .rx-hero__eyebrow .d2 { background: var(--rx-dot2); }
.rx-hero__title { margin: 0; font: 500 clamp(42px, 5.4vw, 92px)/1.02 var(--rx-sans); letter-spacing: -.035em; color: #f9f5f4; }
.rx-hero__sub { margin: 26px 0 0; max-width: 36ch; font: 300 clamp(15px, 1.1vw, 17px)/1.65 var(--rx-sans); color: var(--rx-dim); }
/* THE DISCIPLINE ICONS, narrow-first. On a phone they are a wrapped row under the heading; the ring that
   surrounds the web lives inside its own min-width query so none of its placement can leak downwards. */
.rx-ico__defs { position: absolute; width: 0; height: 0; }
.rx-hero__orbit { display: flex; flex-wrap: wrap; gap: 16px 0; margin: 22px 0 0; max-width: 480px; }
.rx-ico { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 25%; }
.rx-ico svg { width: 30px; height: 30px; fill: none; stroke: url(#rxIcoG); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; color: var(--rx-dot1); overflow: visible; }
.rx-ico b { font: 500 10.5px/1 var(--rx-mono); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(227,219,219,.92); white-space: nowrap; }

@media (min-width: 1100px) {
  /* --rx-gx / --rx-gdy / --rx-gr are the web's painted circle, written by world.js. The layer is a child
     of the copy column, and the copy column is vertically centred in the stage — so 50% of it IS the
     stage's middle, which is what --rx-gdy is measured from. */
  .rx-hero__orbit { position: absolute; display: block; margin: 0; max-width: none; perspective: 1000px;
    pointer-events: none; left: calc(var(--rx-gx, 70vw) - var(--rx-pad));
    top: calc(50% + var(--rx-gdy, 0px)); width: 0; height: 0; }
  .rx-ico { position: absolute; left: 0; top: 0; width: auto; gap: 9px;
    translate: calc(cos(var(--a)) * var(--r) * var(--rx-gr, 300px)) calc(sin(var(--a)) * var(--r) * var(--rx-gr, 300px) * -1);
    /* the ring leans toward the eye on the right and away on the left — set once, never animated */
    transform: translate(-50%, -50%) translateZ(var(--z, 0px)); }
  .rx-ico svg { width: 42px; height: 42px; stroke-width: 1.7;
    filter: drop-shadow(0 3px 10px rgba(4,7,16,.85)); }
  .rx-ico b { font-size: 11px; text-shadow: 0 1px 9px rgba(3,5,11,.92); }
}

/* ONE ENTRANCE, THEN STILL. `backwards` holds the from-state through the stagger delay, and when the
   animation ends the icon falls back to its own computed style — which is the fixed pose above. There is
   no steady-state animation on this screen at all: the previous version drifted, and eleven live layers
   over a canvas that already repaints every frame measured as a worse frame tail. */
.rx-ico { opacity: 1; }
html.rx-booting .rx-ico { opacity: 0; }
html:not(.rx-booting) .rx-ico { animation: rx-icoin .86s cubic-bezier(.2,.86,.3,1) backwards;
  animation-delay: calc(var(--i) * 80ms + 220ms); }
@keyframes rx-icoin {
  from { opacity: 0; transform: translate(-50%, -50%) translateZ(-150px) scale(.86); }
  to   { opacity: 1; transform: translate(-50%, -50%) translateZ(var(--z, 0px)) scale(1); }
}
@media (max-width: 1099px) {
  @keyframes rx-icoin {
    from { opacity: 0; transform: translateY(14px) scale(.9); }
    to   { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) { html:not(.rx-booting) .rx-ico { animation: none; } }
.rx-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
/* In the column, under the buttons, left-aligned with them — it used to float at the centre of the
   screen, which read as a separate piece of furniture rather than part of the opening. */
.rx-hero__scroll { display: inline-flex; flex-direction: column; align-items: center; margin-top: 26px; gap: 14px; font: 500 10px/1 var(--rx-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--rx-dim); white-space: nowrap; }
@keyframes rx-drip { to { top: 100%; } }
.rx-hero__scroll:hover { color: var(--rx-ink); }
/* THE PROGRESS RAIL. A hairline across the top of the stage that fills as the journey runs, with the
   scene number beside it. The tester did not know whether to scroll, swipe sideways or do something
   else, and had no way of telling how long it went on for; this answers all three without adding
   anything to the composition — it sits in the band between the header rule and the stage, where
   nothing is ever drawn. Driven from app.js paint(), which already runs on every frame of the scrub. */
.rx-prog { position: absolute; left: var(--rx-pad); right: var(--rx-pad); top: 0; z-index: 4;
  display: flex; align-items: center; gap: 14px; pointer-events: none;
  opacity: 0; transition: opacity .45s ease; }
.rx-prog.is-on { opacity: 1; }
.rx-prog__bar { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(209,156,157,.16); overflow: hidden; }
.rx-prog__bar i { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--rx-dot1), var(--rx-dot2));
  transform: scaleX(var(--rx-prog, 0)); transform-origin: 0 50%; }
.rx-prog__n { font: 500 10px/1 var(--rx-mono); letter-spacing: .22em; color: rgba(209,156,157,.7); white-space: nowrap; }
.rx-prog__n b { color: #f7f4f4; font-weight: 600; }
.rx-prog__n em { font-style: normal; margin-left: .5em; }
@media (max-width: 760px) { .rx-prog { gap: 10px; } .rx-prog__n { font-size: 9px; letter-spacing: .18em; } }
/* chapter copy: one system for every stage — label, heading, one supporting line — in the left third, vertically
   centred, while the camera frames the 3D subject to the right. A soft scrim keeps it legible over any scene. */
.rx-chapter { position: absolute; left: var(--rx-pad); top: 0; bottom: 0; margin: auto 0; height: fit-content; z-index: 3; width: min(470px, 31vw); opacity: 0; visibility: hidden; }
.rx-chapter::before { content: ""; position: absolute; z-index: -1; inset: -90px -120px -90px calc(-1 * var(--rx-pad)); background: radial-gradient(closest-side, rgba(3,4,7,.66), rgba(3,4,7,0)); pointer-events: none; }
.rx-chapter__kicker { display: flex; align-items: center; margin: 0 0 24px; font: 500 12px/1 var(--rx-mono); letter-spacing: .32em; text-transform: uppercase; color: var(--rx-dim); }
.rx-chapter__kicker span { color: var(--rx-ink); font-weight: 600; }
.rx-chapter__kicker span::after { content: ""; display: inline-block; width: 42px; height: 1px; margin: 0 16px; vertical-align: middle; background: var(--rx-ramp); }
.rx-chapter__title { margin: 0; font: 500 clamp(32px, 2.95vw, 54px)/1.06 var(--rx-sans); letter-spacing: -.035em; color: #f9f5f4; }
.rx-chapter__title .rx-grad { background: var(--rx-gold); -webkit-background-clip: text; background-clip: text; }
.rx-chapter__sub { margin: 22px 0 0; max-width: 34ch; font: 300 clamp(15px, 1.15vw, 18px)/1.55 var(--rx-sans); color: rgba(245,239,238,.72); }
.rx-chapter__tags { position: relative; height: 1.4em; margin: 26px 0 0; font: 400 13px/1.4 var(--rx-sans); color: var(--rx-dim); }
.rx-chapter__tags span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.rx-chapter__tags span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--rx-ramp); }
/* ---------- when the walkthrough cannot run ----------
   No WebGL, a blocked CDN, an asset that never reached the server: JS adds .rx-no-walk and the pinned
   stage becomes a plain section — the hero, then every chapter as an ordinary column. Nothing is
   hidden behind a scroll position and nothing sits on top of anything else. */
.rx-no-walk .rx-world, .rx-no-walk .rx-vignette, .rx-no-walk .rx-hero__scroll { display: none; }
.rx-no-walk .rx-stage { height: auto; overflow: visible; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(34px, 4vw, 64px); padding: 0 var(--rx-pad) clamp(64px, 9vh, 120px); }
.rx-no-walk .rx-hero__content { position: relative; inset: auto; height: auto; max-width: min(820px, 100%); grid-column: 1 / -1;
  margin: clamp(40px, 8vh, 96px) 0 clamp(30px, 5vh, 64px); }
.rx-no-walk .rx-chapter { position: relative; inset: auto; height: auto; width: auto; max-width: 36ch; margin: 0; opacity: 1; visibility: visible; }
.rx-no-walk .rx-chapter::before { display: none; }
.rx-no-walk .rx-chapter__title { font-size: clamp(25px, 2.3vw, 36px); }
.rx-no-walk .rx-chapter__kicker { margin-bottom: 16px; font-size: 11px; }
.rx-no-walk .rx-chapter__sub { margin-top: 14px; font-size: 15px; }
.rx-no-walk .rx-chapter__tags { position: relative; height: auto; margin-top: 16px; }
.rx-no-walk .rx-chapter__tags span { position: relative; display: block; margin-top: 6px; white-space: normal; }
.rx-no-walk .rx-reveal { grid-column: 1 / -1; width: auto; max-width: none; align-items: flex-start; text-align: left;
  margin: clamp(20px, 4vh, 48px) 0 0; padding-top: clamp(26px, 4vh, 44px); border-top: 1px solid var(--rx-line); }
.rx-no-walk .rx-reveal::before { display: none; }
.rx-no-walk .rx-reveal__line { margin: 0 0 22px; }

/* the reveal: the identity sits centred beneath the 3D R */
.rx-reveal { left: 0; right: 0; top: auto; bottom: clamp(36px, 7vh, 84px); margin: 0 auto; width: min(92vw, 760px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.rx-reveal::before { inset: -70px -140px -60px -140px; }
.rx-reveal__word { margin: 0; } .rx-reveal__word img { width: clamp(240px, 26vw, 440px); height: auto; }
.rx-reveal__line { margin: 20px 0 28px; font: 500 clamp(15px, 1.5vw, 21px)/1.3 var(--rx-sans); letter-spacing: .16em; text-transform: uppercase; color: #f9f5f4; }
.rx-after { position: relative; min-height: 70vh; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 120px var(--rx-pad); text-align: center; background: linear-gradient(transparent, rgba(3,4,7,.85) 30%, var(--rx-bg)); }
.rx-after__line { margin: 0; color: var(--rx-dim); font-size: 15px; }

/* ---------- inner pages (placeholders) ---------- */
.rx-page__hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--rx-header-h) + 20px) var(--rx-pad) 80px; }
.rx-page__else { padding: 0 var(--rx-pad) clamp(60px, 9vh, 120px); }
.rx-page__else-h { margin: 0 0 22px; font: 500 var(--rx-h3)/1.15 var(--rx-sans); letter-spacing: -.02em; color: var(--rx-dim); }
.rx-page__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.rx-page__links a { font: 400 15px/1 var(--rx-sans); color: rgba(245,239,238,.76); border-bottom: 1px solid var(--rx-line); padding-bottom: 4px;
  transition: color .35s var(--rx-ease), border-color .35s var(--rx-ease); }
.rx-page__links a:hover { color: var(--rx-ink); border-color: var(--rx-c2); }
.rx-page__title { margin: 0; font: 600 clamp(48px, 7vw, 110px)/.95 var(--rx-sans); letter-spacing: -.045em; text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .rx-nav, .rx-header__cta { display: none; }
  .rx-burger { display: block; }
  .rx-menu { display: flex; }
  .rx-header__logo { width: 99px; height: 66.1px; }
  .rx-header__logo img { width: 166px; height: 111px; margin: -21.9px 0 0 -35.6px; }
}
@media (max-width: 760px) {
  :root { --rx-header-h: 84px; }
  .rx-header__logo { width: 87px; height: 58.1px; }
  .rx-header__logo img { width: 146px; height: 97px; margin: -19.2px 0 0 -31.3px; }
  .rx-vignette { background: linear-gradient(180deg, var(--rx-bg) 0, rgba(3,4,7,0) 48px), radial-gradient(140% 80% at 50% 30%, transparent 45%, rgba(3,4,7,.6) 100%), linear-gradient(0deg, rgba(3,4,7,.9) 0%, rgba(3,4,7,.45) 26%, transparent 48%); }
  .rx-hero__content { top: auto; bottom: 54px; right: var(--rx-pad); margin: 0; padding-top: 0; max-width: none; }
  .rx-hero__content::before { inset: -9vh -9vw -34vh -9vw;
    background: linear-gradient(180deg, rgba(4,6,12,0) 0%, rgba(4,6,12,.55) 20%, rgba(4,6,12,.85) 52%, rgba(4,6,12,.93) 100%); }
  /* the copy takes the least of the frame it can and still read: every pixel it gives back is a pixel
      the device above it grows into, and on a phone that is the difference between a preview and a screen */
  .rx-chapter { top: auto; bottom: 30px; right: var(--rx-pad); margin: 0; width: auto; }
  .rx-chapter::before { inset: -60px calc(-1 * var(--rx-pad)) -44px; background: linear-gradient(0deg, rgba(3,4,7,.8), rgba(3,4,7,0)); }
  .rx-chapter__title { font-size: clamp(26px, 8vw, 34px); }
  .rx-chapter__kicker { margin-bottom: 10px; font-size: 11px; }
  .rx-chapter__sub { margin-top: 9px; font-size: 14px; }
  .rx-chapter__tags { margin-top: 9px; font-size: 12px; }
  .rx-reveal { bottom: 36px; }
  .rx-reveal__line { margin: 14px 0 20px; }
  /* The eyebrow is decorative and the service blocks need the band it occupies: hiding it on a phone
     frees about 30px above the headline, which is the difference between six readable blocks and six
     cramped ones. The sub-heading already names the disciplines. */
  .rx-hero__eyebrow { display: none; }
  .rx-hero__eyebrow .d2, .rx-hero__eyebrow span:last-child { display: none; }
  /* The phone's own headline size, and the only rule that sets it (the display-face block at the end of
     this file is scoped to 761px and up). Measured: the longest line, "Under one roof.", needs 7.5px of
     width for every pixel of type — so a 320px screen can carry about 37px and this keeps inside that at
     every width rather than wrapping into a line box that is clipped to one line. */
  html .rx-hero__title { font-size: clamp(34px, 11.2vw, 44px); }
  .rx-hero__sub { display: none; }                 /* the panels below say this, and say it better */
  .rx-kw { font-size: 14px; }
  .rx-hero__ctas { margin-top: 28px; gap: 10px; }
  .rx-btn { padding: 15px 22px; font-size: 14px; }


}
/* SHORT SCREENS. The opening column grew by an eyebrow and a line of disciplines; on a 640-tall phone that
   pushed it up past the top of the stage and under the header. The disciplines are the first thing to go —
   the sub-heading already names them — and the rhythm closes up behind it. */
@media (max-width: 760px) and (max-height: 740px) {
  /* A SHORT PHONE CANNOT CARRY BOTH. Six two-line service blocks need about 300px above the headline and
     a 640-tall screen leaves 212 once the full opening copy is in. The sub-heading is the thing to give
     up: the blocks say the same thing — websites, apps, branding, content, security — and say it per
     service, with the capabilities under each. The headline and both buttons stay. */
  .rx-hero__eyebrow { margin-bottom: 14px; }
  .rx-hero__orbit { margin-top: 14px; gap: 7px 0; }
  .rx-kw { font-size: 13px; }
  .rx-hero__ctas { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- the hero before the 3D arrives ----------
   The page opens on time, so for a moment there is no canvas yet. This is the same environment the
   world draws, in CSS: a dark floor plane in perspective, a faint horizon and the room's own shading.
   The canvas fades over it once the world is ready (html.rx-world-in), so nothing ever pops. */
.rx-walk::before { content: ""; position: fixed; inset: var(--rx-header-h) 0 auto 0; height: calc(100dvh - var(--rx-header-h)); z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, #05070d 0%, #070a12 52%, #0a0e18 66%, #05070c 100%),
    radial-gradient(120% 80% at 62% 42%, rgba(68,58,52,.5), transparent 62%);
  opacity: 1; transition: opacity 1.1s var(--rx-ease); }
.rx-walk::after { content: ""; position: fixed; inset: auto 0 0 0; height: 46%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(transparent 0 1px, rgba(255,255,255,.028) 1px 2px), linear-gradient(90deg, transparent 0 1px, rgba(255,255,255,.028) 1px 2px);
  background-size: 100% 46px, 46px 100%;
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,.8), transparent 70%); mask-image: linear-gradient(0deg, rgba(0,0,0,.8), transparent 70%);
  transform: perspective(520px) rotateX(64deg); transform-origin: bottom center; opacity: .8; transition: opacity 1.1s var(--rx-ease); }
.rx-world-in .rx-walk::before, .rx-world-in .rx-walk::after { opacity: 0; }
.rx-world { opacity: 0; transition: opacity .35s var(--rx-ease); }   /* if it arrives after the curtain: quickly, not a slow fade */
.rx-world-in .rx-world { opacity: 1; }
.no-webgl .rx-walk::before, .no-webgl .rx-walk::after { opacity: 1; }

.rx-no-walk .rx-walk__spacer { display: none; }
.rx-no-walk .rx-stage { position: relative; top: auto; }

/* ==================================================================================================
   SHARED BY EVERY PAGE — section shell, type, round buttons, arrival (from home.css)
   ================================================================================================== */
/* ---------- section shell ----------
   Sections stand apart by space and by the shadow each one casts below itself — no dividing lines.
   The very faint lift toward the bottom of each section is what the shadow reads against. */
/* A section used to paint a dark gradient and two heavy shadows over the whole width, which is the
   reason the space behind the page could not be seen through it. It carries no background of its own now
   — the world behind is the background — and the only thing left is a hairline to separate one from the
   next. Anything that genuinely needs a darker ground under type asks for .rx-scrim. */
.rx-sec { position: relative; z-index: 2; overflow-x: clip; min-height: var(--rx-view); display: grid; grid-template-columns: minmax(0, 1fr); align-content: center;
  padding: var(--rx-sec-pad) 0; }
.rx-sec + .rx-sec { border-top: 1px solid rgba(245,239,238,.05); }
.rx-sec, .sv-open, .sv-set, .sd-sec, .pf-cat, .pf-tail, .ct-tail {
  box-shadow: 0 44px 60px -36px rgba(0, 0, 0, .82); }
/* Reduced motion changes nothing here — it is a static paint, not an animation — but a very small screen
   gets a shorter one, because 38px of shade under a 650px section is a different proportion to 38px
   under a 1400px one. */
@media (max-width: 560px) {
  .rx-sec, .sv-open, .sv-set, .sd-sec, .pf-cat, .pf-tail, .ct-tail {
    box-shadow: 0 30px 42px -26px rgba(0, 0, 0, .82); }
}
.rx-sec + .rx-sec { margin-top: clamp(56px, 7.2vh, 104px); }
/* read, not seen: for the part of a link that only matters if you cannot see the icon next to it */
.rx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0; }
.rx-wrap { width: 100%; max-width: var(--rx-max); margin: 0 auto; padding: 0 var(--rx-pad); }
/* the only background under type: a neutral scrim, so the space behind stays readable */
.rx-scrim { position: relative; }
.rx-scrim::before { content: ""; position: absolute; inset: -12% -34px -12% -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 62% at 32% 50%, rgba(3,4,7,.88), rgba(3,4,7,.6) 55%, rgba(3,4,7,0) 82%); }

/* ---------- shared type ---------- */
.rx-eyebrow { margin: 0 0 18px; display: inline-flex; align-items: center; gap: 13px; font: 500 var(--rx-eyebrow)/1 var(--rx-sans);
  letter-spacing: .26em; text-transform: uppercase; color: var(--rx-dim); }
.rx-eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--rx-ramp); }
.rx-eyebrow span { color: var(--rx-ink); }
.rx-h2 { margin: 0; font: 500 var(--rx-h2)/1.08 var(--rx-sans); letter-spacing: -.035em; }
.rx-lead { margin: 22px 0 0; max-width: 46ch; font: 400 var(--rx-lead)/1.65 var(--rx-sans); color: rgba(245,239,238,.76); }

/* ---------- the short screen ----------
   A laptop is not a small desktop; it is a desktop with about 130 fewer pixels of height, and a section
   that fits a 900-tall window by four pixels misses a 768-tall one by a hundred. Everything that decides a
   section's height is a token, so one block moves all of them at once rather than each page inventing its
   own laptop. Nothing is removed and nothing reflows — the type comes down a step and the rhythm tightens.

   Width is in the query because a phone is allowed to be as tall as it likes: the viewport rule the client
   asked for is a desktop and laptop rule. Height rather than width because it is height that runs out —
   a 1920x800 window has the same problem as a 1366x768 one, and neither is a small screen. */
@media (min-width: 901px) and (max-height: 1000px) {
  :root {
    --rx-h1: clamp(38px, 4.4vw, 74px);
    --rx-h2: clamp(28px, 3vw, 46px);
    --rx-h3: clamp(19px, 1.5vw, 25px);
    --rx-close: clamp(28px, 3.3vw, 50px);
    --rx-lead: clamp(14.5px, 1.05vw, 16.5px);
    --rx-sec-pad: clamp(76px, 9.4vh, 120px);
  }
  .rx-sec + .rx-sec { margin-top: clamp(52px, 6.6vh, 92px); }
  .rx-eyebrow { margin-bottom: clamp(9px, 1.4vh, 16px); }
  .rx-lead { margin-top: clamp(13px, 2vh, 20px); }
}

/* ---------- the phone's own rhythm, shared by every page ---------- */
@media (max-width: 900px) {
  :root { --rx-sec-pad: clamp(64px, 8.4vh, 98px); }
  .rx-sec + .rx-sec { margin-top: clamp(44px, 5.8vh, 72px); }
}
@media (max-width: 560px) {
  :root { --rx-sec-pad: clamp(56px, 7.4vh, 82px); }
  .rx-sec + .rx-sec { margin-top: clamp(38px, 5vh, 60px); }
}

.rx-round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--rx-ink);
  box-shadow: 0 12px 24px -14px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08);
  display: grid; place-items: center; cursor: pointer; transition: background .4s var(--rx-ease), transform .4s var(--rx-ease-out); }
.rx-round i { font-style: normal; font-size: 16px; }
.rx-round:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.rx-round:focus-visible { outline: 2px solid var(--rx-c1); outline-offset: 3px; }

/* ---------- arrival ---------- */
/* (the old one-shot [data-in] fade-and-rise is replaced by THE SCROLL CINEMA, at the end of this file) */


/* ==================================================================================================
   FOOTER — shared by every page (views/ritexa/partials/footer.php). Content from ritexa.co.uk.
   ================================================================================================== */
.rx-footer { position: relative; z-index: 2; margin-top: clamp(26px, 4.4vh, 60px); padding: clamp(56px, 8vh, 96px) 0 28px;
  background: radial-gradient(60% 120% at 12% 0%, rgba(193,137,138,.10), transparent 60%), linear-gradient(180deg, transparent, var(--rx-bg) 38%); }
.rx-footer::before { content: ""; position: absolute; left: var(--rx-pad); right: var(--rx-pad); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216,164,165,.28) 30%, rgba(216,164,165,.22) 70%, transparent); }
.rx-footer__top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2fr); gap: clamp(36px, 5vw, 90px); align-items: start; }
.rx-footer__logo { display: block; width: 168px; }
.rx-footer__logo img { display: block; width: 100%; height: auto; }
.rx-footer__brand p { margin: 22px 0 0; max-width: 36ch; font: 400 14.5px/1.7 var(--rx-sans); color: var(--rx-dim); }
.rx-footer__talk { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 12px 18px; border-radius: 999px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font: 500 14px/1 var(--rx-sans); color: var(--rx-ink);
  transition: background .4s var(--rx-ease), transform .4s var(--rx-ease-out); }
.rx-footer__talk i { font-style: normal; transition: transform .4s var(--rx-ease-out); }
.rx-footer__talk:hover { background: rgba(255,255,255,.09); } .rx-footer__talk:hover i { transform: translateX(4px); }
.rx-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 28px; }
.rx-footer__nav h3 { margin: 0 0 18px; font: 500 10.5px/1 var(--rx-sans); letter-spacing: .24em; text-transform: uppercase; color: rgba(245,239,238,.45); }
.rx-footer__nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.rx-footer__nav a { font: 400 14px/1.4 var(--rx-sans); color: var(--rx-dim); transition: color .35s var(--rx-ease); }
.rx-footer__nav a:hover, .rx-footer__nav a:focus-visible { color: var(--rx-ink); }
.rx-footer__contact ul a { color: rgba(245,239,238,.82); }
.rx-footer__places { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.rx-footer__places span { padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.045); font: 500 11.5px/1 var(--rx-sans); letter-spacing: .04em; color: rgba(245,239,238,.7); }
.rx-footer__bar { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: clamp(44px, 7vh, 80px); padding-top: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.rx-footer__bar p { margin: 0; font: 400 12px/1 var(--rx-sans); color: rgba(245,239,238,.42); }
.rx-footer__tag { letter-spacing: .24em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.rx-footer__tag i { width: 4px; height: 4px; border-radius: 50%; background: var(--rx-dot1, #cc9697); }
.rx-footer__tag i:last-of-type { background: var(--rx-dot2, #ca9494); }
@media (max-width: 980px) {
  .rx-footer__top { grid-template-columns: 1fr; }
  .rx-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}
@media (max-width: 420px) { .rx-footer__nav { grid-template-columns: 1fr 1fr; } .rx-footer__contact { grid-column: 1 / -1; } }


/* ---------- type: every heading, in the one family (Inter) ----------
   html + :is() so this wins over the page stylesheets' own 'font:' shorthands (the page stylesheets load later).

   EVERY heading on the site belongs here. The list started as the Home and About selectors and the pages
   built after them kept their own headings in the body face, which is why Services, Portfolio, Contact and
   the service details used to read as a different site from the front door. Small labels and eyebrows are
   deliberately NOT in it: they are set in the mono and the sans on purpose. */
html :is(.rx-hero__title, .rx-chapter__title, .rx-h2, .rx-cta__h, .rx-ab-hero__h, .rx-ab-cta__h, .rx-face h3, .rx-work__card h3,
  .rx-ab-steps b, .rx-ab-stats b, .rx-ab-stats i, .rx-stack__layer b, .rx-person figcaption b, .rx-page__title,
  .sx-h, .sx-row__name, .sv-cta__h, .sv-card__h, .sv-open__h,
  .pf-said__name, .pf-tail__h,
  .ct-head__h, .ct-tail__h,
  .sd-hero__h, .sd-head__h, .sd-act__h) {
  font-family: var(--rx-display); font-weight: var(--rx-w-head); letter-spacing: var(--rx-track-head); word-spacing: normal; font-kerning: normal; }
html :is(.rx-hero__title, .rx-chapter__title) { font-weight: var(--rx-w-head); letter-spacing: var(--rx-track-head); word-spacing: normal; line-height: 1.06; }
/* Scoped to desktop widths on purpose. Unscoped, this line governed EVERY width: it is written at the end
   of the stylesheet and `html .rx-hero__title` outweighs a plain class inside a media query, so the two
   mobile clamps further up had never applied and the headline was 44px on a 430px phone and on a 320px one
   alike. One owner per range instead of a specificity contest — the phone's size lives in the 760 block. */
@media (min-width: 761px) { html .rx-hero__title { font-size: clamp(40px, 4.6vw, 76px); } }
/* the scroll cue: a glass pill with a mouse whose wheel rolls down, a label and a falling chevron — it has to be
   the first thing that says "this moves". It fades as the walkthrough begins (app.js). */
html .rx-hero__scroll { flex-direction: row; gap: 14px; padding: 11px 20px 11px 12px; border-radius: 999px;
  background: rgba(10,13,22,.62); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 18px 40px -16px rgba(0,0,0,.9), 0 0 0 6px rgba(211,159,160,.06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 12.5px/1 var(--rx-sans); letter-spacing: .22em; text-transform: uppercase; color: #fff;
  transition: box-shadow .4s var(--rx-ease), transform .4s var(--rx-ease-out); }
html .rx-hero__scroll:hover { box-shadow: inset 0 0 0 1px rgba(216,164,165,.5), 0 18px 40px -16px rgba(0,0,0,.9), 0 0 0 8px rgba(211,159,160,.1); color: #fff; }
.rx-hero__mouse { position: relative; width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); flex: none; }
.rx-hero__mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: linear-gradient(#fff, var(--rx-c1));
  animation: rx-wheel 1.8s var(--rx-ease) infinite; }
@keyframes rx-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 71%, 100% { transform: translateY(0); opacity: 0; } }
.rx-hero__chev { width: 9px; height: 9px; border-right: 2px solid var(--rx-c1); border-bottom: 2px solid var(--rx-c1); transform: rotate(45deg); margin: -4px 2px 0 0;
  animation: rx-chev 1.8s var(--rx-ease) infinite; }
@keyframes rx-chev { 0%, 100% { transform: translateY(-2px) rotate(45deg); opacity: .5; } 50% { transform: translateY(3px) rotate(45deg); opacity: 1; } }
@media (max-width: 760px) { html .rx-hero__scroll { font-size: 11px; letter-spacing: .18em; padding: 9px 16px 9px 10px; gap: 11px; } .rx-hero__mouse { width: 19px; height: 30px; } }
@media (prefers-reduced-motion: reduce) { .rx-hero__mouse i, .rx-hero__chev { animation: none; } }

/* =====================================================================================================
   THE SCROLL CINEMA (assets/js/ui/motion.js). Every element below the walkthrough arrives by a treatment
   that suits it, driven by one number, --m: 0 still in depth below, 1 arrived. Without JavaScript (or with
   reduced motion) --m is never set, so everything is simply there.
   The specificity (html.js body …) is deliberate: it outranks the older one-shot reveals on these elements.
   ===================================================================================================== */
.rx-m { --q: calc(1 - var(--m, 1)); --mk: 1; --s: 1; }
@media (max-width: 820px) { .rx-m { --mk: .62; } }                   /* a phone: the same moves, smaller */
html.js body .rx-m.rx-m:not(.m-rest) { will-change: transform, opacity; }
/* the parallax some of these elements already carry (depth.js) is kept inside every transform */
html.js body .rx-m.rx-m:is([data-m="focus"], [data-m="tilt3d"], [data-m="deal"], [data-m="door"], [data-m="swing"], [data-m="board"], [data-m="unfold"], [data-m="settle"]) {
  transition-property: color, background, background-color, border-color, box-shadow; }   /* scrubbed: never eased on top of the scroll */

/* focus: a heading tilts up out of depth and comes sharp, as a lens pulls focus */
html.js body .rx-m.rx-m[data-m="focus"] { transform-origin: 50% 100%;
  transform: perspective(1100px) translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0)
             translate3d(0, calc(var(--q) * 40px * var(--mk)), calc(var(--q) * -130px * var(--mk))) rotateX(calc(var(--q) * 34deg * var(--mk)));
  opacity: calc(var(--m, 1) * 1.7 - .35); }
html.js body .rx-m.rx-m[data-m="focus"]:not(.m-rest) { filter: blur(calc(var(--q) * 6px)); }

/* tilt3d: the closing headline leans forward, and its extruded letters (home.js) show their sides as it does */
html.js body .rx-m.rx-m[data-m="tilt3d"] { transform-origin: 50% 90%;
  transform: perspective(900px) translate3d(0, calc(var(--q) * 50px * var(--mk)), calc(var(--q) * -160px * var(--mk))) rotateX(calc(var(--q) * 46deg * var(--mk)));
  opacity: calc(var(--m, 1) * 1.6 - .3); }

/* rule: an eyebrow's hairline draws, and the label slides in beside it */
html.js body .rx-m.rx-m[data-m="rule"] { opacity: calc(var(--m, 1) * 1.4 - .1); translate: calc(var(--q) * -22px * var(--mk)) 0; }
html.js body .rx-m.rx-m[data-m="rule"]::before { transform: scaleX(var(--m, 1)); transform-origin: 0 50%; }

/* lift: a short rise out of depth — individual properties, so the element's own transform (and hover) stays its own */
html.js body .rx-m.rx-m[data-m="lift"] { opacity: calc(var(--m, 1) * 1.5 - .25);
  translate: 0 calc(var(--q) * 30px * var(--mk)); scale: calc(1 - var(--q) * .04); }

/* deal: dealt in from alternating sides, turning to face the reader */
html.js body .rx-m.rx-m[data-m="deal"] { transform-origin: calc(50% - var(--s) * 50%) 50%;
  transform: perspective(900px) translate3d(calc(var(--q) * var(--s) * -60px * var(--mk)), calc(var(--q) * 18px), calc(var(--q) * -150px * var(--mk)))
             rotateY(calc(var(--q) * var(--s) * 28deg * var(--mk)));
  opacity: calc(var(--m, 1) * 1.6 - .3); }

/* door: a panel swings open from its outer edge */
html.js body .rx-m.rx-m[data-m="door"] { transform-origin: calc(50% - var(--s) * 50%) 50%;
  transform: perspective(1300px) translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0)
             translate3d(0, calc(var(--q) * 26px * var(--mk)), calc(var(--q) * -120px * var(--mk))) rotateY(calc(var(--q) * var(--s) * 38deg * var(--mk)));
  opacity: calc(var(--m, 1) * 1.6 - .3); }

/* swing: a whole stage swings round toward the reader out of depth */
html.js body .rx-m.rx-m[data-m="swing"] { transform-origin: 30% 50%;
  transform: perspective(1800px) translate3d(0, calc(var(--q) * 30px * var(--mk)), calc(var(--q) * -260px * var(--mk)))
             rotateY(calc(var(--q) * -26deg * var(--mk))) rotateX(calc(var(--q) * 8deg * var(--mk)));
  opacity: calc(var(--m, 1) * 1.5 - .2); }

/* board: tiles flip down from their top edge, one after another, like a departure board */
html.js body .rx-m.rx-m[data-m="board"] { transform-origin: 50% 0%;
  transform: perspective(900px) translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0) rotateX(calc(var(--q) * -78deg * var(--mk)));
  opacity: calc(var(--m, 1) * 2 - .35); }

/* unfold: a panel unfolds from its top edge */
html.js body .rx-m.rx-m[data-m="unfold"] { transform-origin: 50% 0%;
  transform: perspective(1400px) translate3d(0, calc(var(--q) * 20px), calc(var(--q) * -90px * var(--mk))) rotateX(calc(var(--q) * -22deg * var(--mk)));
  opacity: calc(var(--m, 1) * 1.6 - .3); }

/* dolly: a frame the camera moves into (scale only: the frame keeps its own transform) */
html.js body .rx-m.rx-m[data-m="dolly"] { scale: calc(1 - var(--q) * .16 * var(--mk)); opacity: calc(var(--m, 1) * 1.4); }

/* settle: the footer's columns settle in from a little depth */
html.js body .rx-m.rx-m[data-m="settle"] { transform-origin: 50% 100%;
  transform: perspective(900px) translate3d(0, calc(var(--q) * 24px * var(--mk)), calc(var(--q) * -60px)) rotateX(calc(var(--q) * 16deg * var(--mk)));
  opacity: calc(var(--m, 1) * 1.5 - .2); }

/* =====================================================================================================
   HIGHLIGHTED WORDS IN THE WALKTHROUGH'S GRADIENT. Headings keep their own colour; only the highlighted
   words (.rx-grad spans, and the closing headline's lit line) take the walkthrough chapter titles'
   gradient (hero.css, .hx-ch__h), top to bottom, pearl → champagne → light rose gold → rose gold.
   Decorative lines, dots and buttons keep the site ramp.
   ===================================================================================================== */
:root { --rx-walk-grad: var(--rx-gold); }
html body .rx-grad,
html body .rx-chapter__title .rx-grad,
html body .rx-cta__line--lit b { background: var(--rx-walk-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* =====================================================================================================
   NO FLAT ROSE GOLD. Solid #CF9B9C on black reads as a muted orange beside the site's luminous gradients,
   so each place that used it now gets the treatment that suits what it is:
     · small uppercase labels   a short champagne → rose → blush sheen, like light along engraved metal
     · drawn marks and icons    the brand gradient in the drawing itself (SVG defs in partials/footer.php)
     · hovers on titles         the walkthrough's gradient, the same as the highlighted words
     · hovers on small links    a lift to champagne, not a drop to orange
   Focus outlines stay solid: they are there to be seen, not admired.
   ===================================================================================================== */
:root {
  --rx-label-grad: linear-gradient(#DAA8A9, #DAA8A9);
  --rx-champ-hover: #E7BEBA;
}
html body :is(.rx-face__kicker, .rx-work__num, .rx-ab-steps i, .rx-person figcaption i, .rx-leaf__k, .sd-n, .sd-gate__n,
  .rx-menu nav a[aria-current] small) {
  background: var(--rx-label-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html body :is(.rx-person figcaption i, .rx-ab-steps i) { width: fit-content; }
html body .rx-work__ext { color: var(--rx-champ-hover); }

/* icons: the stroke is the gradient */
html body :is(.bd-block__ic, .bd-key__ic, .sd-niche.is-at .sd-niche__ic) .cic { stroke: url(#rx-g-line); }
/* the service marks: the button, the bar that matters and the accents carry the gradient, as the class always meant */
html body .ic :is(.ic-grad, .ic-dot-f) { fill: url(#rx-g-fill); }
html body .ic .ic-stroke { stroke: url(#rx-g-mark); }
html body .ic .ic-sw1 { fill: url(#rx-g-fill); }

/* hovers */
html body :is(.sv-cell:hover .sv-card__h, .rx-face:hover .rx-face__copy h3 a, .rx-face__copy h3 a:hover, .rx-work__named h3 a:hover) {
  background: var(--rx-walk-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html body .rx-work__named h3 a:hover .rx-work__ext { -webkit-text-fill-color: currentColor; }
html body .rx-cta__aside a:hover { color: var(--rx-champ-hover); border-color: rgba(231, 190, 186, .55); }
html body .rx-work__open:hover { color: var(--rx-champ-hover); box-shadow: inset 0 0 0 1px rgba(231, 190, 186, .45); }
html body .rx-serv__all:hover { border-color: rgba(231, 190, 186, .5); }

/* the footer's first dot: a bead of metal, not a flat disc */
html body .rx-footer__tag i:first-of-type { background: linear-gradient(135deg, #E9C0BC, #CF9B9C 60%, #AF7475); }

/* =====================================================================================================
   ONE TYPE SYSTEM. Six heading tiers, each used for the same job on every page. All Inter 500, white,
   with the walkthrough gradient only on highlighted words. Sizes reuse the site's own tokens.
     page     the page's own title (h1)                   clamp(30 → 52)   1.06
     section  a section's heading                         --rx-h2 (28 → 46) 1.08
     close    the line that closes a page                 --rx-close (28 → 48) 1.06
     card     a card or project title                     clamp(21 → 30)   1.14
     item     a heading inside a card, panel or tile      --rx-h3 (19 → 24) 1.22
     small    a short label-heading over one line of text 15px             1.34
   The Home walkthrough (.hx-walk) and the Home service stage's own animated title are outside this.
   ===================================================================================================== */
:root {
  --t-page: clamp(30px, 3.4vw, 52px);
  --t-section: clamp(28px, 3vw, 46px);   /* = the site's --rx-h2, held here so no section can redefine it */
  --t-card: clamp(21px, 2vw, 30px);
  --t-gap-lead: 18px;    /* a page or section heading to its paragraph */
  --t-gap-card: 12px;    /* a card title to its description */
  --t-gap-item: 8px;     /* an item heading to its line */
}
html body :is(.rx-ab-hero__h, .sv-open__h, .sd-hero__h, .ct-head__h) {
  font-size: var(--t-page); line-height: 1.06; letter-spacing: var(--rx-track-head); }
html body :is(.rx-h2, .sd-head__h, .sd-also__h) {
  font-size: var(--t-section); line-height: 1.08; letter-spacing: var(--rx-track-head); }
html body :is(.sv-cta__h, .rx-ab-cta__h, .pf-tail__h, .sd-act__h, .ct-tail__h) {
  font-size: var(--rx-close); line-height: 1.06; letter-spacing: var(--rx-track-head); }
html body :is(.sv-card__h, .pf-said__name, .rx-work__named h3) {
  font-size: var(--t-card); line-height: 1.14; letter-spacing: var(--rx-track-head); }
html body :is(.rx-why__front > b, .rx-why__drawer b, .rx-ab-steps b, .sd-niche__h, .rx-person figcaption b) {
  font-size: var(--rx-h3); line-height: 1.22; letter-spacing: var(--rx-track-head); }
html body :is(.bd-block__h, .sd-gate__h, .rx-about__points b) {
  font-size: 15px; line-height: 1.34; letter-spacing: -.012em; }

/* the rhythm under each tier. Where a heading's parent spaces its children with a grid gap, the heading's
   own bottom margin makes up the difference, so the gap above and below everything else is untouched. */
:root {
  --t-gap-lead: clamp(14px, 1.25vw, 18px);   /* page / section / closing heading → its paragraph */
  --t-gap-act: clamp(22px, 2vw, 28px);       /* closing heading → its buttons */
}
html body :is(.rx-h2 + .rx-lead, .sd-head__h + .sd-head__intro, .sd-hero__h + .sd-hero__lede, .rx-ab-hero__h + .rx-lead, .sv-cta__h + p) { margin-top: var(--t-gap-lead); }
html body .sv-open__h { margin-bottom: calc(var(--t-gap-lead) - clamp(16px, 2.2vh, 26px)); }
html body .ct-head__h { margin-bottom: calc(var(--t-gap-lead) - clamp(10px, 1.6vh, 18px)); }
html body .sd-act__h + .sd-act__p { margin-top: calc(var(--t-gap-lead) - clamp(14px, 1.8vh, 22px)); }
html body .rx-ab-cta__h + .rx-ab-cta__actions { margin-top: var(--t-gap-act); }
html body .pf-tail__h { margin-bottom: calc(var(--t-gap-act) - clamp(18px, 2.6vh, 30px)); }
html body .ct-tail__h { margin-bottom: calc(var(--t-gap-act) - clamp(16px, 2.4vh, 26px)); }
html body .sv-card__h + .sv-card__lede { margin-top: var(--t-gap-card); }
html body .rx-work__named h3 + .rx-work__kind { margin-top: 6px; }
html body .rx-why__front > b + .rx-why__one { margin-top: 6px; }      /* + the panel's 2px gap = 8 */
html body :is(.sd-niche__h + .sd-niche__line, .rx-ab-steps b + span) { margin-top: var(--t-gap-item); }
html body .rx-about__points b + span { margin-top: 6px; }
html body .rx-why__hall .rx-why__head .rx-h2 + .rx-lead { margin-top: var(--t-gap-lead); }
html body .rx-about__points b + span { margin-top: 6px; }

/* glint: the Home About points. A short rise and fade, a rose-gold hairline drawn along the top edge, and one
   soft band of light passing across the glass as it arrives — gone once it has (motion.js sets --m 0 → 1). */
html.js body .rx-m.rx-m[data-m="glint"] { opacity: calc(var(--m, 1) * 1.35 - .2); translate: 0 calc(var(--q) * 14px * var(--mk)); }
.rx-about__points li { isolation: isolate; overflow: hidden;
  transition: border-color .5s var(--rx-ease), background .5s var(--rx-ease), box-shadow .6s var(--rx-ease); }
.rx-about__points li::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    linear-gradient(90deg, rgba(231, 190, 186, 0), rgba(213, 160, 161, .62) 22%, rgba(214, 163, 163, .5) 62%, rgba(209, 156, 157, 0)) 0 0 / calc(var(--m, 1) * 100%) 1px no-repeat,
    linear-gradient(105deg, transparent 42%, rgba(231, 190, 186, .075) 50%, transparent 58%) calc((1 - var(--m, 1)) * 100%) 0 / 300% 100% no-repeat; }
.rx-about__points li::before { transition: box-shadow .6s var(--rx-ease); }
@media (hover: hover) and (pointer: fine) {
  .rx-about__points li:hover { border-color: rgba(231, 190, 186, .16);
    background: linear-gradient(90deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
    box-shadow: 0 18px 40px -26px rgba(207, 155, 156, .45); }
  .rx-about__points li:hover::before { box-shadow: 0 0 0 4px rgba(213, 160, 161, .12), 0 0 14px rgba(214, 163, 163, .55); }
}

/* ---------------- THE LIT EDGE (site-wide) ----------------
   Every card, panel and outlined button has the same edge: a hairline that is lit in rose gold at its top-left
   corner, falls away to almost nothing along its sides, and catches a little light again at the far corner —
   turned metal, never a flat rule drawn all the way round. (First made for the Home About section.)
   The element's own border is kept for its size but made clear; the edge is a 1px ring drawn over it, so each
   element keeps its own fill, glass and motion. Hover / selected simply brings more light to the same edge. */
:root {
  --rx-edge: 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%);
  --rx-edge-on: linear-gradient(135deg, rgba(251,232,229,.85) 0%, rgba(218,168,169,.45) 20%, rgba(255,255,255,.07) 48%, rgba(255,255,255,.04) 70%, rgba(218,168,169,.34) 100%);
}
html body :is(.ct-panel, .sx-tab, .sx-fcard, .rx-header__cta, .rx-build__stage, .rx-build__panel, .bd-plinth, .bd-block__front, .bd-key, .sd-act__body, .bp),
html body .sd-gate__pick::before { border-color: transparent !important; }
html body :is(.ct-panel, .sx-tab, .sx-fcard, .rx-header__cta, .rx-build__stage, .rx-build__panel, .bd-plinth, .bd-block__front, .bd-key, .sd-act__body, .sd-gate__pick, .rx-ab-steps li, .rx-ab-stats li, .rx-leaf)::after,
html body .bp::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--rx-edge);
  -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);
  transition: opacity .5s var(--rx-ease); }
html body .sd-gate__pick::after { border-radius: 16px; }
html body .sx-tab[aria-selected="true"]::after { background: var(--rx-edge-on); }
html body .rx-header__cta:hover::after { opacity: 0; }            /* it fills with the gradient on hover: no edge over that */
@media (hover: hover) and (pointer: fine) {
  html body :is(.sx-tab, .sx-fcard, .bd-key, .sd-gate__pick):hover::after,
  html body .bd-block__pick:hover .bd-block__front::after { background: var(--rx-edge-on); }
}
/* the outlined button, everywhere: the same edge, with a soft light inside its top; on hover the light travels to the far corner */
html body .rx-btn--ghost { border: 1px solid transparent; color: var(--rx-ink);
  background: linear-gradient(180deg, rgba(30,27,29,.96), rgba(13,12,14,.96)) padding-box,
              linear-gradient(120deg, rgba(251,232,229,.85) 0%, rgba(218,168,169,.5) 22%, rgba(255,255,255,.07) 52%, rgba(218,168,169,.34) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 30px -24px rgba(0,0,0,.95); }
html body .rx-btn--ghost:hover { border-color: transparent;
  background: linear-gradient(180deg, rgba(36,32,34,.98), rgba(16,14,16,.98)) padding-box,
              linear-gradient(120deg, rgba(218,168,169,.4) 0%, rgba(255,255,255,.08) 40%, rgba(218,168,169,.55) 76%, rgba(251,232,229,.9) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 18px 34px -22px rgba(0,0,0,.95); }
/* the founder's portrait frame (About): the same light, on its 1.5px rim */
html body .rx-person__frame { background: linear-gradient(150deg, rgba(251,232,229,.85) 0%, rgba(218,168,169,.42) 20%, rgba(255,255,255,.08) 55%, rgba(218,168,169,.45) 100%); }
/* the Services page cards (.rx-glass): the same edge, but drawn as one more background (an SVG rim stretched over
   the border box) — no pseudo-element, so no extra layer on a page where every layer under 3D costs frames.
   Its rx is --rx-r-lg (28px); the 2px stroke is cut to 1px by the picture's own bounds. */
:root { --rx-edge-rim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23F6DAD4' stop-opacity='.8'/%3E%3Cstop offset='.16' stop-color='%23DD9E94' stop-opacity='.4'/%3E%3Cstop offset='.42' stop-color='%23fff' stop-opacity='.06'/%3E%3Cstop offset='.7' stop-color='%23fff' stop-opacity='.04'/%3E%3Cstop offset='1' stop-color='%23DD9E94' stop-opacity='.24'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' rx='28' fill='none' stroke='url(%23g)' stroke-width='2'/%3E%3C/svg%3E"); }
html body .rx-glass { border-color: transparent !important;
  background:
    var(--rx-edge-rim) border-box 0 0 / 100% 100% no-repeat,
    linear-gradient(var(--s-angle, 158deg), rgba(70,60,54,.3), rgba(10,14,24,.22)); }
html body .is-at > .rx-glass {
  background:
    var(--rx-edge-rim) border-box 0 0 / 100% 100% no-repeat,
    linear-gradient(var(--s-angle, 158deg), rgba(68,58,52,.5), rgba(8,11,20,.4)); }
