/* Rankrix site layer. Sits on top of the locked theme (header, footer, galactic background) and never paints
   over the background: every section is built from glass panels. Tokens are CSS custom properties so Rankrix
   Settings can override them (inc/dynamic-css.php prints a :root block with the owner's values). */

/* ===================================================================== tokens */
:root {
  --rx-graphite: #15161A;
  --rx-chalk: #F3EFE6;
  --rx-chalk-2: rgba(243, 239, 230, 0.84);
  --rx-chalk-3: rgba(243, 239, 230, 0.66);
  --rx-chalk-4: rgba(243, 239, 230, 0.44);
  --rx-line: rgba(243, 239, 230, 0.10);
  --rx-line-2: rgba(243, 239, 230, 0.16);
  --rx-blue: #1F39C2;
  --rx-blue-h: #2C48DD;
  --rx-light: #4453FF;
  --rx-accent: #7B8BFF;

  --rx-glass-fill: rgba(21, 22, 26, 0.58);
  --rx-glass-blur: 22px;
  --rx-glass-sat: 1.5;
  --rx-glass-line: rgba(243, 239, 230, 0.10);
  --rx-radius: 2px;
  --rx-overlap: 48px;

  --rx-display: 'Saira', 'Inter', system-ui, sans-serif;
  --rx-text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rx-big: var(--rkx-scale, 1);
  --rx-w: calc(100vw - 32px);
  --rx-gap: 16px;
  --rx-top: 96px;            /* clearance under the fixed header pill */
  --rx-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 640px)  { :root { --rx-w: calc(100vw - 48px); --rx-gap: 18px; --rx-top: 104px; } }
@media (min-width: 768px)  { :root { --rx-w: calc(100vw - 64px); --rx-gap: 20px; --rx-top: 108px; } }
@media (min-width: 1024px) { :root { --rx-w: 92vw; --rx-gap: 22px; --rx-top: 112px; } }
@media (min-width: 1280px) { :root { --rx-w: 1200px; --rx-gap: 24px; } }
@media (min-width: 1536px) { :root { --rx-w: 1320px; --rx-top: 118px; } }
@media (min-width: 1920px) { :root { --rx-w: 1480px; --rx-top: 124px; } }
@media (min-width: 2560px) { :root { --rx-w: 1680px; --rx-top: 140px; } }
@media (min-width: 3840px) { :root { --rx-w: 2200px; --rx-top: 170px; } }
@media (min-width: 5120px) { :root { --rx-w: 2800px; --rx-top: 210px; } }
@media (min-width: 7680px) { :root { --rx-w: 3732px; --rx-top: 280px; } }
@media (min-width: 1441px) { :root { --rx-gap: calc(24px * var(--rkx-scale, 1)); } }

/* ===================================================================== base */
.rx { color: var(--rx-chalk); font: 400 calc(17px * var(--rx-big)) / 1.62 var(--rx-text); -webkit-font-smoothing: antialiased; }
.rx *, .rx *::before, .rx *::after { box-sizing: border-box; }
.rx a { color: inherit; }
.rx :focus-visible { outline: 2px solid var(--rx-accent); outline-offset: 3px; }
.rx-wrap { width: var(--rx-w); margin-inline: auto; position: relative; }
.rx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--rx-gap); }
.rx-sec { position: relative; padding-block: calc(clamp(56px, 9vh, 128px) * var(--rx-big)); }
.rx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===================================================================== glass panels */
.rx-panel {
  position: relative;
  background: var(--rx-glass-fill);
  -webkit-backdrop-filter: blur(var(--rx-glass-blur)) saturate(var(--rx-glass-sat));
  backdrop-filter: blur(var(--rx-glass-blur)) saturate(var(--rx-glass-sat));
  border: 1px solid var(--rx-glass-line);
  border-radius: var(--rx-radius);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(243, 239, 230, 0.06);
  padding: calc(clamp(22px, 2.6vw, 44px) * var(--rx-big));
}
.rx-panel--tight { padding: calc(clamp(16px, 1.6vw, 26px) * var(--rx-big)); }
.rx-panel--flush { padding: 0; overflow: hidden; }
/* thin L brackets in the panel corners, the theme's light colour */
.rx-panel--brackets::before, .rx-panel--brackets::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none;
  border: 1px solid var(--rx-light); opacity: 0.85;
}
.rx-panel--brackets::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.rx-panel--brackets::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
/* a framed 3D or film viewport inside a panel */
.rx-frame { position: relative; overflow: hidden; border-radius: 1px; background: rgba(11, 12, 16, 0.55); border: 1px solid var(--rx-line); }
.rx-frame canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; max-width: none; }
.rx-frame img.rx-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===================================================================== type */
.rx-h1, .rx-h2, .rx-h3 { margin: 0; font-family: var(--rx-display); font-weight: 700; color: var(--rx-chalk); text-wrap: balance; letter-spacing: -0.018em; }
.rx-h1 { font-size: calc(clamp(38px, 5vw, 86px) * var(--rx-big)); line-height: 1.02; }
.rx-h2 { font-size: calc(clamp(30px, 3.5vw, 62px) * var(--rx-big)); line-height: 1.05; }
.rx-h3 { font-size: calc(clamp(19px, 1.5vw, 26px) * var(--rx-big)); line-height: 1.2; font-weight: 600; letter-spacing: -0.005em; }
.rx-acc { color: var(--rx-accent); }
.rx-lead { margin: calc(18px * var(--rx-big)) 0 0; font-size: calc(clamp(17px, 1.25vw, 21px) * var(--rx-big)); color: var(--rx-chalk-2); max-width: 40em; text-wrap: pretty; }
.rx-p { margin: 0; color: var(--rx-chalk-2); }
.rx-small { font-size: calc(13.5px * var(--rx-big)); color: var(--rx-chalk-3); }
.rx-label { font: 600 calc(11.5px * var(--rx-big)) / 1.2 var(--rx-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rx-chalk-3); }
.rx-w { display: inline-block; }
.rx-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ===================================================================== buttons, chips, links */
/* Buttons, ghost links, chips as tabs, accordions: rankrix-theme/assets/rkx-buttons.css (owner's Rankrix Buttons file). */
.rx-btns { display: flex; flex-wrap: wrap; margin-top: calc(28px * var(--rx-big)); }
.rx-btn { display: inline-flex; align-items: center; justify-content: center; }
.rx-chip { display: inline-flex; align-items: center; }

/* ===================================================================== reveal states (JS adds .rx-js) */
html.rx-js [data-rx-fade] { opacity: 0; transform: translateY(24px); }
html.rx-js [data-rx-fade].is-in, html.rx-reduced [data-rx-fade] { opacity: 1; transform: none; }
html.rx-reduced * { scroll-behavior: auto !important; }

/* ===================================================================== HOME 1-2: hero instrument + services orbit */
.rx-hx { position: relative; }
.rx-hx__stage { position: relative; width: var(--rx-w); margin-inline: auto; padding-top: var(--rx-top); }
.rx-hx__poster { display: flex; flex-direction: column; justify-content: flex-end; }
.rx-hx__poster .rx-hx__copy { position: relative; }
.rx-hx .rx-h1 { font-size: calc(clamp(36px, 4.05vw, 74px) * var(--rx-big)); }
.rx-hx__orbit .rx-h2 { font-size: calc(clamp(26px, 2.4vw, 44px) * var(--rx-big)); }
.rx-hx__orbit .rx-lead { font-size: calc(clamp(15px, 1vw, 17px) * var(--rx-big)); max-width: 30em; }
.rx-hx__dir { position: absolute; inset: calc(clamp(22px, 2.6vw, 44px) * var(--rx-big)); display: flex; flex-direction: column; opacity: 0; visibility: hidden; overflow: hidden; }
.rx-hx__inst { display: flex; flex-direction: column; gap: calc(16px * var(--rx-big)); }
.rx-hx__frame { flex: 0 0 auto; height: calc(clamp(170px, 24vh, 300px) * var(--rx-big)); }
.rx-hx__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-hx__approach { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-hx__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--rx-light); transform-origin: 0 50%; transform: scaleX(0); }
.rx-hx__goal { position: relative; overflow: hidden; }
.rx-hx__answer { min-height: calc(150px * var(--rx-big)); }
.rx-hx__answer h3 { font-size: calc(clamp(20px, 1.6vw, 28px) * var(--rx-big)); }
.rx-hx__moves { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rx-hx__moves li { position: relative; padding-left: 18px; color: var(--rx-chalk-2); font-size: calc(15px * var(--rx-big)); }
.rx-hx__moves li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--rx-light); }
.rx-hx__svc { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 14px; font-size: calc(14px * var(--rx-big)); }
.rx-hx__orbit { position: absolute; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; padding: inherit; display: flex; flex-direction: column; justify-content: space-between; z-index: 2; }
.rx-hx__orbit #services { max-width: 30em; padding: 4px 0; }
.rx-hx__orbit > * { pointer-events: auto; }
.rx-hx__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-dir__group { margin-top: calc(10px * var(--rx-big)); }
.rx-dir__group h3 { margin: 0 0 6px; font: 600 calc(11.5px * var(--rx-big)) / 1.2 var(--rx-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rx-chalk-4); }
.rx-dir__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rx-dir__list a { display: block; padding: 3px 8px; margin: 0 -8px; border-radius: 1px; text-decoration: none; color: var(--rx-chalk-3); font-size: calc(13.5px * var(--rx-big)); line-height: 1.35; transition: color 0.2s, background-color 0.2s; }
.rx-dir__list a:hover, .rx-dir__list a:focus-visible, .rx-dir__list a.is-front { color: #fff; background: rgba(255, 255, 255, 0.06); }
.rx-dir__list a.is-dim { opacity: 0.35; }
.rx-dir__help { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rx-line); font-size: calc(13.5px * var(--rx-big)); color: var(--rx-chalk-3); }

/* desktop: the two panels are placed by JS for both states (rest, orbit); CSS gives the rest state for no-JS */
@media (min-width: 1024px) {
  .rx-hx__stage { height: 100vh; height: 100svh; }
  .rx-hx__poster, .rx-hx__inst { position: absolute; }
  html:not(.rx-js) .rx-hx__poster { left: 0; top: var(--rx-top); width: calc(41.6% - var(--rx-gap)); height: 74vh; }
  html:not(.rx-js) .rx-hx__inst { left: calc(41.6% - var(--rx-overlap)); top: calc(var(--rx-top) + 64px); width: calc(58.4% + var(--rx-overlap)); }
  .rx-hx__inst { z-index: 2; }
}
@media (max-width: 1023px) {
  .rx-hx__stage { display: grid; gap: var(--rx-gap); padding-bottom: 40px; }
  .rx-hx__orbit-m { display: block; }
}
.rx-orbit-m { display: none; }
@media (max-width: 1023px) {
  .rx-orbit-m { display: block; }
  .rx-orbit-m .rx-frame { height: 46vh; margin-bottom: var(--rx-gap); }
}

/* ===================================================================== HOME 3: promise (a panel that widens) */
.rx-promise .rx-panel { margin-inline: auto; text-align: center; width: 100%; }
html.rx-js .rx-promise .rx-panel { width: 34%; }
@media (max-width: 1023px) { html.rx-js .rx-promise .rx-panel { width: 100%; } }
.rx-promise__inner { max-width: 26em; margin-inline: auto; }
.rx-promise .rx-h2 { font-size: calc(clamp(34px, 4.6vw, 84px) * var(--rx-big)); }
.rx-sweep { background: linear-gradient(100deg, var(--rx-chalk) 0 40%, #c7cfff 46%, var(--rx-chalk) 52% 100%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.rx-sweep .rx-acc { -webkit-text-fill-color: currentColor; transition: color 0.5s var(--rx-ease); color: var(--rx-chalk); }
.rx-sweep.is-lit .rx-acc, html.rx-reduced .rx-sweep .rx-acc { color: var(--rx-accent); }

/* ===================================================================== HOME 4: film (off-centre, heading panel overlapping) */
.rx-filmsec { position: relative; }
.rx-filmsec__film { grid-column: 5 / span 8; }
.rx-filmsec__head { grid-column: 1 / span 5; grid-row: 1; align-self: start; margin-top: calc(-1 * var(--rx-overlap)); z-index: 2; position: relative; }
.rx-filmsec__grid { align-items: start; }
.rx-filmsec__film { grid-row: 1; margin-top: calc(var(--rx-overlap) * 1.6); }
@media (max-width: 1023px) {
  .rx-filmsec__film, .rx-filmsec__head { grid-column: 1 / -1; grid-row: auto; margin-top: 0; }
}
.rx-film { margin: 0; }
.rx-film__view { aspect-ratio: 16 / 9; }
@media (max-width: 767px) { .rx-film__view { aspect-ratio: 4 / 5; } }
.rx-film__view video, .rx-film__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rx-film__ctl { position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 1px; border: 1px solid var(--rx-line-2); background: rgba(21, 22, 26, 0.6); color: var(--rx-chalk); display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rx-film__ctl svg { width: 14px; height: 14px; }
.rx-film__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--rx-light); transform-origin: 0 50%; transform: scaleX(0); z-index: 3; }
.rx-film figcaption { margin-top: calc(18px * var(--rx-big)); color: var(--rx-chalk-3); font-size: calc(15px * var(--rx-big)); max-width: 46em; }

/* ===================================================================== HOME 5: one panel splits into two */
.rx-split__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: calc(26px * var(--rx-big)); }
.rx-split__pair .rx-panel { padding-top: calc(clamp(18px, 2vw, 32px) * var(--rx-big)); }
.rx-split__l { border-right-color: transparent; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.rx-split__r { border-left-color: transparent; border-top-left-radius: 0; border-bottom-left-radius: 0; background: linear-gradient(180deg, rgba(31, 57, 194, 0.16), rgba(31, 57, 194, 0.06)), var(--rx-glass-fill); }
.rx-split table { width: 100%; border-collapse: collapse; }
.rx-split caption { text-align: left; }
.rx-split th, .rx-split td { text-align: left; vertical-align: top; padding: calc(14px * var(--rx-big)) 0; border-top: 1px solid var(--rx-line); font-weight: 400; }
.rx-split thead th { border-top: 0; padding-top: 0; }
.rx-split .rx-row-k { font: 600 calc(11.5px * var(--rx-big)) / 1.3 var(--rx-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--rx-chalk-4); width: 34%; padding-right: 14px; }
.rx-split td { color: var(--rx-chalk-2); }
.rx-split__r td { color: var(--rx-chalk); }
.rx-line-in { display: block; }
html.rx-js .rx-split .rx-line-in { clip-path: inset(0 100% 0 0); }
html.rx-reduced .rx-split .rx-line-in { clip-path: none; }
@media (max-width: 767px) {
  .rx-split__pair { grid-template-columns: 1fr; gap: 12px; }
  .rx-split__l, .rx-split__r { border-color: var(--rx-glass-line); border-radius: var(--rx-radius); }
}

/* ===================================================================== HOME 6: horizontal process track */
.rx-track { position: relative; }
.rx-track__frame { overflow: hidden; }
.rx-track__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.rx-track__rail { position: relative; margin-top: calc(26px * var(--rx-big)); overflow: hidden; padding-bottom: 2px; }
.rx-track__line { position: absolute; left: 0; right: 0; top: calc(20px * var(--rx-big)); height: 1px; background: var(--rx-line-2); }
.rx-track__fill { position: absolute; left: 0; top: calc(20px * var(--rx-big)); height: 1px; width: 100%; background: var(--rx-light); transform-origin: 0 50%; transform: scaleX(0); }
.rx-track__row { display: flex; gap: var(--rx-gap); will-change: transform; }
.rx-stage { flex: 0 0 min(68vw, calc(var(--rx-w) * 0.62)); padding-top: calc(52px * var(--rx-big)); position: relative; }
.rx-stage::before { content: ""; position: absolute; top: calc(14px * var(--rx-big)); left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--rx-line-2); background: var(--rx-graphite); transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.rx-stage.is-lit::before { background: var(--rx-light); border-color: var(--rx-light); box-shadow: 0 0 0 6px rgba(68, 83, 255, 0.18); }
.rx-stage .rx-panel { min-height: calc(clamp(260px, 38vh, 420px) * var(--rx-big)); display: flex; flex-direction: column; }
.rx-stage__name { font: 700 calc(clamp(44px, 6vw, 108px) * var(--rx-big)) / 0.95 var(--rx-display); letter-spacing: -0.03em; margin: 0; }
.rx-stage__text { margin: 16px 0 0; color: var(--rx-chalk-2); max-width: 30em; }
.rx-stage__get { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--rx-line); font-size: calc(14.5px * var(--rx-big)); color: var(--rx-chalk-3); }
.rx-stage__get b { color: var(--rx-chalk); font-weight: 600; }
.rx-track__return { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
@media (max-width: 767px) {
  .rx-track__row { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .rx-stage { flex-basis: 84%; scroll-snap-align: start; }
  .rx-track__line, .rx-track__fill, .rx-track__return { display: none; }
}
html.rx-reduced .rx-track__row { flex-wrap: wrap; }
html.rx-reduced .rx-stage { flex-basis: 100%; }

/* ===================================================================== HOME 7: tools board */
.rx-tools__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: calc(22px * var(--rx-big)); }
.rx-tools__body { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 24%, 340px); gap: var(--rx-gap); margin-top: calc(22px * var(--rx-big)); }
.rx-tools__rows { display: grid; gap: 12px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rx-marquee { display: flex; gap: 10px; width: max-content; list-style: none; margin: 0; padding: 0; will-change: transform; }
.rx-pill { display: inline-flex; align-items: center; }
.rx-tools__read { min-height: 150px; }
.rx-tools__read .rx-h3 { margin-top: 6px; }
.rx-tools__read p { margin: 8px 0 0; font-size: calc(14.5px * var(--rx-big)); color: var(--rx-chalk-2); }
.rx-pause { display: inline-flex; align-items: center; gap: 8px; }
html.rx-reduced .rx-marquee, .rx-tools.is-static .rx-marquee { flex-wrap: wrap; width: auto; }
@media (max-width: 1023px) { .rx-tools__body { grid-template-columns: 1fr; } }

/* ===================================================================== HOME 8: build-on bento (three panels, different sizes) */
.rx-bento { grid-template-rows: auto auto; align-items: start; }
.rx-bento__a { grid-column: 1 / span 8; }
.rx-bento__b { grid-column: 9 / span 4; grid-row: 1 / span 2; margin-top: 32px; }
.rx-bento__c { grid-column: 2 / span 7; }
.rx-bento ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.rx-bento li { display: grid; grid-template-columns: minmax(110px, 0.8fr) 1.4fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--rx-line); font-size: calc(14.5px * var(--rx-big)); }
.rx-bento li b { font-weight: 600; color: var(--rx-chalk); }
.rx-bento li span { color: var(--rx-chalk-3); }
.rx-bento__b li { grid-template-columns: 1fr; gap: 2px; }
.rx-bento__links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: calc(14px * var(--rx-big)); }
.rx-tilt { transform-style: preserve-3d; transition: transform 0.6s var(--rx-ease); }
@media (max-width: 1023px) { .rx-bento__a, .rx-bento__b, .rx-bento__c { grid-column: 1 / -1; grid-row: auto; margin-top: 0; } }

/* ===================================================================== HOME 9: estimator */
.rx-est { display: grid; grid-template-columns: 5fr 7fr; gap: var(--rx-gap); margin-top: calc(26px * var(--rx-big)); align-items: stretch; }
.rx-field { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--rx-line); }
.rx-field:first-of-type { border-top: 0; padding-top: 0; }
.rx-field__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rx-field label { font-weight: 600; font-size: calc(14.5px * var(--rx-big)); }
.rx-field input[type="number"] { width: 7.5em; background: rgba(11, 12, 16, 0.6); border: 1px solid var(--rx-line-2); color: var(--rx-chalk); border-radius: 1px; padding: 6px 8px; font: 500 calc(14px * var(--rx-big)) var(--rx-text); text-align: right; }
.rx-range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
.rx-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--rx-light) var(--p, 50%), var(--rx-line-2) var(--p, 50%)); }
.rx-range::-moz-range-track { height: 2px; background: var(--rx-line-2); }
.rx-range::-moz-range-progress { height: 2px; background: var(--rx-light); }
.rx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 1px; background: var(--rx-chalk); border: 3px solid var(--rx-blue); }
.rx-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 1px; background: var(--rx-chalk); border: 3px solid var(--rx-blue); }
.rx-switches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rx-est__out { display: flex; flex-direction: column; gap: 16px; }
.rx-est__figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rx-est__fig { border-top: 1px solid var(--rx-line); padding-top: 10px; }
.rx-est__fig b { display: block; font: 700 calc(clamp(26px, 2.6vw, 44px) * var(--rx-big)) / 1 var(--rx-display); margin-top: 6px; }
.rx-est__bars { position: relative; flex: 1; min-height: 190px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; padding-top: 10px; }
.rx-est__bar { background: linear-gradient(180deg, var(--rx-light), rgba(31, 57, 194, 0.45)); border-radius: 1px 1px 0 0; height: 4%; transition: height 0.4s var(--rx-ease); }
.rx-est__months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; font-size: 11px; color: var(--rx-chalk-4); text-align: center; }
.rx-est details { font-size: calc(13.5px * var(--rx-big)); color: var(--rx-chalk-3); }
.rx-tag { display: inline-block; padding: 3px 8px; border: 1px solid var(--rx-line-2); border-radius: 1px; font: 600 11px/1.3 var(--rx-text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rx-chalk-3); }
@media (max-width: 1023px) { .rx-est { grid-template-columns: 1fr; } }

/* ===================================================================== HOME 10: questions (sticky heading panel + accordion panel) */
.rx-faq { align-items: start; }
.rx-faq__head { grid-column: 1 / span 4; position: sticky; top: var(--rx-top); }
.rx-faq__list { grid-column: 6 / span 7; }
@media (max-width: 1023px) { .rx-faq__head, .rx-faq__list { grid-column: 1 / -1; position: static; } }

/* ===================================================================== HOME 11: enquiry builder + letter */
.rx-enq { align-items: start; }
.rx-enq__build { grid-column: 1 / span 7; }
.rx-enq__letter { grid-column: 8 / span 5; margin-left: calc(-1 * var(--rx-overlap)); margin-top: calc(var(--rx-overlap) * 1.5); z-index: 2; position: sticky; top: var(--rx-top); }
.rx-enq__step { padding: 16px 0; border-top: 1px solid var(--rx-line); }
.rx-enq__step:first-of-type { border-top: 0; }
.rx-enq__step > p { margin: 0 0 10px; font-weight: 600; }
.rx-enq__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rx-enq textarea { width: 100%; min-height: 110px; resize: vertical; background: rgba(11, 12, 16, 0.6); border: 1px solid var(--rx-line-2); border-radius: 1px; color: var(--rx-chalk); padding: 12px; font: 400 calc(15px * var(--rx-big)) / 1.5 var(--rx-text); }
.rx-letter { font: 400 calc(15px * var(--rx-big)) / 1.65 var(--rx-text); color: var(--rx-chalk-2); white-space: pre-wrap; min-height: 240px; }
.rx-letter__caret { display: inline-block; width: 1px; height: 1.1em; background: var(--rx-accent); vertical-align: -0.2em; animation: rxBlink 1s steps(1) infinite; }
@keyframes rxBlink { 50% { opacity: 0; } }
.rx-enq__alt { margin-top: 14px; font-size: calc(14px * var(--rx-big)); color: var(--rx-chalk-3); }
@media (max-width: 1023px) { .rx-enq__build, .rx-enq__letter { grid-column: 1 / -1; margin: 0; position: static; } }

/* ===================================================================== section heads */
.rx-head { max-width: 42em; }
.rx-head .rx-lead { margin-top: 14px; }
/* owner rule: nothing sits on the bare background. A section head outside a panel gets its own glass slab, sized to its text. */
.rx-wrap > .rx-head, .rx-sec > .rx-head, .rx-slab {
  width: fit-content; max-width: min(100%, 46em); margin-bottom: var(--rx-gap);
  padding: calc(clamp(18px, 1.8vw, 30px) * var(--rx-big)) calc(clamp(20px, 2.2vw, 36px) * var(--rx-big));
  background: var(--rx-glass-fill); -webkit-backdrop-filter: blur(var(--rx-glass-blur)) saturate(var(--rx-glass-sat)); backdrop-filter: blur(var(--rx-glass-blur)) saturate(var(--rx-glass-sat));
  border: 1px solid var(--rx-glass-line); border-radius: var(--rx-radius);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(243, 239, 230, 0.06);
}

/* ===================================================================== shared: breadcrumbs and page index */
.rx-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 18px; font-size: calc(13.5px * var(--rx-big)); }
.rx-index a { color: var(--rx-chalk-3); text-decoration: none; border-bottom: 1px solid var(--rx-line-2); }
.rx-index a:hover { color: var(--rx-chalk); }
.rx-crumbs { font-size: calc(12.5px * var(--rx-big)); color: var(--rx-chalk-4); margin: 0 0 14px; }
.rx-crumbs a { color: var(--rx-chalk-3); text-decoration: none; }
.rx-crumbs a:hover { color: var(--rx-chalk); }
.rx-crumbs span[aria-hidden] { margin: 0 8px; }

/* HOME 1 (owner 2026-10-19): a full-width hero with no glass panel (the owner's exception for this section);
   words on the left straight on the background, the particle symbol large on the right */
.rx-hs { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: var(--rx-hs-pad) 0; box-sizing: border-box; --rx-hs-pad: clamp(88px, 11vh, 140px); margin-top: calc(-1 * clamp(70px, 10vh, 130px)); }   /* cancels the theme main's header offset, so the hero fills the viewport from the very top */   /* equal padding top and bottom, so the content sits in the vertical centre of the viewport */
.rx-hs__grid { width: min(100% - 2 * clamp(16px, 7.5vw, 160px), 1920px * var(--rx-big)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(16px, 3vw, 64px); }
.rx-hs__text { position: relative; z-index: 2; }
.rx-hs__text .rx-h1 { font-size: calc(clamp(40px, 4.3vw, 92px) * var(--rx-big)); max-width: 13em; text-shadow: 0 2px 30px rgba(11, 12, 16, 0.6); }
.rx-hs__text .rx-lead { max-width: 30em; margin-top: calc(20px * var(--rx-big)); }
.rx-hs__text .rx-btns { margin-top: calc(30px * var(--rx-big)); }
.rx-hs__mark { position: relative; z-index: 1; height: min(calc(100svh - 2 * var(--rx-hs-pad)), 58vw); }
.rx-hs__frame { position: absolute; inset: -6% -4%; }
.rx-hs__frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 1023px) {
  .rx-hs { display: block; min-height: 0; }
  .rx-hs__grid { grid-template-columns: 1fr; }
  .rx-hs__mark { height: min(92vw, 520px); order: 2; }
}

/* HOME 2: the services directory beside the crystal orbit */
.rx-orbsec__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--rx-gap); align-items: start; }
.rx-orbsec__scene { position: sticky; top: var(--rx-top); display: grid; gap: 16px; }
.rx-orbsec__frame { height: min(62vh, 620px); }
.rx-orbsec .rx-dir { margin-top: calc(22px * var(--rx-big)); }
@media (max-width: 1023px) {
  .rx-orbsec__grid { grid-template-columns: 1fr; }
  .rx-orbsec__scene { position: static; order: -1; }
  .rx-orbsec__frame { height: 46vh; }
}
