/* ===== RankBiz home page =====
   Home page redesign (owner approved, 13 Nov 2026; prototype and brief in qa/review/home-redesign-20261113/): the page
   is built around "Be found. Be understood. Be chosen." Same palette and fonts as before. Loaded by index.html only,
   and every rule is scoped to body.rb-home so service and admin pages are unaffected. Motion is CSS transforms and
   opacity plus js/home.js; none of it runs with reduced motion, and the looping hero card has a Pause button. */

/* Self-hosted fonts (SIL OFL 1.1): official google/fonts files packed losslessly to WOFF by scripts/build-fonts.mjs.
   Provenance, commit and hashes: assets/fonts/PROVENANCE.md. */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope/Manrope-variable.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dmmono/DMMono-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/assets/fonts/dmmono/DMMono-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

.rb-home {
  --ink: #090a07;
  --ink-soft: #11120e;
  --ink-raised: #1a1c16;
  --cream: #f2f1e9;
  --cream-dark: #d8d8ce;
  --paper: #e8e7dd;
  --lime: #caff35;
  --muted: #a6a89f;
  --line: rgba(242, 241, 233, 0.13);
  --line-strong: rgba(242, 241, 233, 0.26);
  --line-dark: rgba(9, 10, 7, 0.22);
  --page: clamp(24px, 4.4vw, 76px);
  --max: 1680px; /* content lines up with the menu edges on laptops; centred only on monitors over about 1830px */
  --section: clamp(88px, 10vw, 150px);
  --ease: cubic-bezier(.16, .8, .27, 1);
  --header-h: 84px;
  --sans: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
}

/* Reset */
.rb-home *, .rb-home *::before, .rb-home *::after { box-sizing: border-box; margin: 0; padding: 0; }
html:has(body.rb-home) { scroll-behavior: smooth; background: #090a07; }
body.rb-home {
  margin: 0; background: var(--ink); color: var(--cream); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
.rb-home button, .rb-home input, .rb-home textarea, .rb-home select { font: inherit; color: inherit; }
.rb-home img, .rb-home svg { display: block; }
.rb-home a { color: inherit; text-decoration: none; }
.rb-home button, .rb-home a, .rb-home input, .rb-home textarea { -webkit-tap-highlight-color: transparent; }
.rb-home h1, .rb-home h2, .rb-home h3, .rb-home h5 { font-size: inherit; font-weight: inherit; }
.rb-home ol, .rb-home ul { list-style: none; }
.rb-home em { font-style: normal; }
.rb-home [hidden] { display: none !important; }
.rb-home :is(button, a, input, textarea, select):focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.rb-home ::selection { color: var(--ink); background: var(--lime); }
.rb-home section[id] { scroll-margin-top: var(--header-h); }
.rb-home #process { scroll-margin-top: calc(var(--header-h) + 24px); }
.rb-home .visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.rb-home .skip-link {
  position: fixed; z-index: 100; left: 16px; top: 12px; padding: 12px 16px;
  background: var(--lime); color: var(--ink); font-weight: 700; transform: translateY(-150%);
}
.rb-home .skip-link:focus { transform: none; }

/* ===== Header ===== */
.rb-home .site-header {
  position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header-h); padding: 0 var(--page);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  background: rgba(9, 10, 7, .78); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.rb-home .logo-lockup { width: max-content; display: flex; align-items: center; gap: 13px; }
.rb-home .brand-symbol { width: 44px; height: 44px; flex: none; }
.rb-home .logo-copy { display: flex; flex-direction: column; align-items: flex-start; }
.rb-home .logo-copy strong { font-size: 24px; font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.rb-home .logo-copy > span { margin-top: 7px; color: var(--cream-dark); font-size: 11px; line-height: 1; }
.rb-home .desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.rb-home .desktop-nav a, .rb-home .nav-group-toggle { position: relative; padding: 12px 0; color: var(--cream-dark); font-size: 14px; }
.rb-home .desktop-nav > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--lime); transition: right 220ms var(--ease);
}
.rb-home .desktop-nav a:hover, .rb-home .desktop-nav a.is-active, .rb-home .nav-group-toggle:hover, .rb-home .nav-group-toggle[aria-expanded="true"] { color: var(--cream); }
.rb-home .desktop-nav > a:hover::after, .rb-home .desktop-nav > a.is-active::after { right: 0; }
/* Header drop-down (Navigation: header links sharing a Group). js/main.js opens it; without JS, hover and focus do. */
.rb-home .nav-group { position: relative; }
.rb-home .nav-group-toggle { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; }
.rb-home .nav-group-toggle::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg); transition: transform 220ms var(--ease), margin 220ms var(--ease);
}
.rb-home .nav-group-toggle[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(225deg); }
.rb-home .nav-group-menu {
  position: absolute; z-index: 60; top: calc(100% + 14px); left: -20px; min-width: 250px; padding: 10px;
  display: none; flex-direction: column; background: var(--ink-soft); border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.rb-home .nav-group-menu a { padding: 11px 14px; border-radius: 10px; color: var(--cream); transition: background 180ms ease, color 180ms ease; }
.rb-home .nav-group-menu a:hover { background: var(--ink-raised); color: var(--lime); }
html:not(.nav-groups-js) .rb-home .nav-group:hover .nav-group-menu, html:not(.nav-groups-js) .rb-home .nav-group:focus-within .nav-group-menu,
.rb-home .nav-group.is-open .nav-group-menu { display: flex; animation: rb-drop 220ms var(--ease) both; }
.rb-home .header-cta, .rb-home .primary-button, .rb-home .submit-button {
  min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 0; border-radius: 12px; background: var(--lime); color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, background 180ms ease, gap 220ms var(--ease);
}
.rb-home .header-cta { justify-self: end; min-height: 44px; padding: 0 18px; }
.rb-home .header-cta:hover, .rb-home .primary-button:hover { transform: translateY(-2px); gap: 24px; box-shadow: 0 12px 40px rgba(202, 255, 53, .25); }
.rb-home .arrow { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform 220ms var(--ease); }
.rb-home .menu-toggle, .rb-home .mobile-tagline { display: none; }

/* ===== Hero: headline left, journey card right ===== */
.rb-home .hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 8vw, 120px)) var(--page) clamp(80px, 9vw, 130px); overflow: hidden; }
.rb-home .hero-grid {
  position: absolute; inset: var(--header-h) 0 0; pointer-events: none;
  background-image: radial-gradient(rgba(242, 241, 233, .2) 1px, transparent 1.5px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 38%, #000 0%, transparent 64%); mask-image: radial-gradient(ellipse at 72% 38%, #000 0%, transparent 64%);
}
.rb-home .hero-layout {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: clamp(32px, 5vw, 80px);
}
.rb-home .hero-overline {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--muted);
  font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.rb-home .hero-overline::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none; }
.rb-home.motion-on .hero-overline::before { animation: rb-ping 2.2s infinite; }
.rb-home .hero h1 { font-size: clamp(46px, 6vw, 98px); line-height: .95; letter-spacing: -.055em; font-weight: 700; }
.rb-home .hero h1 > span { display: block; white-space: nowrap; }
.rb-home .hero h1 em { position: relative; color: var(--lime); }
.rb-home .hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .07em; background: var(--lime); transform-origin: left;
}
.rb-home .hero-actions { margin-top: 28px; }
.rb-home .hero-actions > p { max-width: 560px; color: var(--cream-dark); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; }
.rb-home .hero-buttons { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.rb-home .secondary-link, .rb-home .text-link {
  padding: 12px 0 8px; display: inline-flex; align-items: center; gap: 14px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 700;
}
.rb-home .secondary-link:hover .arrow, .rb-home .text-link:hover .arrow, .rb-home .primary-button:hover .arrow { transform: translateX(4px); }

/* Journey card: an illustration of search -> AI answer -> enquiry */
.rb-home .journey-card {
  display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line-strong); border-radius: 24px;
  background: linear-gradient(160deg, var(--ink-raised), var(--ink-soft)); box-shadow: 0 40px 100px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.rb-home .journey-label { justify-self: end; color: var(--muted); font: 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.rb-home .journey-step {
  display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9, 10, 7, .55);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), border-color 500ms ease, box-shadow 500ms ease;
}
.rb-home.motion-on .journey-step { opacity: .42; transform: scale(.98); }
.rb-home.motion-on .journey-step.is-on { opacity: 1; transform: none; border-color: rgba(202, 255, 53, .55); box-shadow: 0 0 0 4px rgba(202, 255, 53, .06); }
.rb-home .journey-tag { color: var(--lime); font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.rb-home .journey-search { min-height: 42px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; border-radius: 99px; background: var(--cream); color: var(--ink); font-size: 14.5px; }
.rb-home .journey-icon { font-size: 18px; line-height: 1; opacity: .6; }
.rb-home .journey-caret { display: none; width: 1.5px; height: 18px; background: var(--ink); }
.rb-home.motion-on .journey-caret { display: block; animation: rb-blink 1s steps(1) infinite; }
.rb-home .journey-result { display: grid; padding: 10px 14px; border-left: 3px solid var(--lime); border-radius: 0 10px 10px 0; background: rgba(202, 255, 53, .06); }
.rb-home .journey-result b { font-size: 16px; }
.rb-home .journey-result span, .rb-home .journey-note span { color: var(--muted); font-size: 13px; }
.rb-home .journey-question { color: var(--cream-dark); font-size: 14.5px; }
.rb-home .journey-answer { font-size: 14.5px; line-height: 1.5; }
.rb-home .journey-ai { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; border-radius: 6px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 700; vertical-align: 1px; }
.rb-home .journey-cite { display: inline-block; margin-top: 4px; padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 99px; color: var(--muted); font: 10.5px var(--mono); }
.rb-home .journey-note { display: flex; align-items: center; gap: 12px; }
.rb-home .journey-note > div { display: grid; }
.rb-home .journey-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--lime); }
.rb-home.motion-on .journey-dot { animation: rb-ping 1.8s infinite; }
/* Pause control for the looping card (WCAG 2.2.2): shown by js/home.js only when the motion runs. */
.rb-home .motion-toggle {
  position: absolute; z-index: 5; right: 0; bottom: calc(-1 * clamp(56px, 6vw, 80px)); min-height: 40px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--ink); color: var(--cream-dark);
  font: 500 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: color 180ms ease, border-color 180ms ease;
}
.rb-home .motion-toggle:hover { color: var(--cream); border-color: rgba(202, 255, 53, .42); }
.rb-home .motion-toggle-icon { color: var(--lime); font-size: 12px; }
.rb-home.motion-paused *, .rb-home.motion-paused *::before, .rb-home.motion-paused *::after { animation-play-state: paused !important; }

/* ===== Sections ===== */
.rb-home .section-pad { padding: var(--section) var(--page); }
.rb-home .section-pad > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.rb-home .section-heading {
  margin-bottom: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); align-items: end; gap: 6vw;
}
.rb-home .kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--lime);
  font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.rb-home .kicker::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.rb-home .section-heading h2, .rb-home .contact h2, .rb-home .footer-statement h2 {
  font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.05em; font-weight: 700;
}
.rb-home .h2-soft { color: var(--muted); }
.rb-home .section-heading > p, .rb-home .contact-copy > p { max-width: 560px; color: var(--cream-dark); font-size: 17px; line-height: 1.7; }

/* ===== What we do: three moments ===== */
.rb-home .moment-list { border-top: 1px solid var(--line); }
.rb-home .moment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); }
.rb-home .moment-head { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-content: start; }
.rb-home .moment-number { grid-row: span 2; padding-top: 14px; color: var(--muted); font: 13px var(--mono); }
.rb-home .moment h3 { font-size: clamp(32px, 4vw, 54px); line-height: 1; letter-spacing: -.045em; font-weight: 700; transition: color 300ms ease; }
.rb-home .moment:hover h3 { color: var(--lime); }
.rb-home .moment-head p { max-width: 380px; margin-top: 14px; color: var(--cream-dark); font-size: 16.5px; }
.rb-home .moment-services { display: grid; gap: 10px; align-content: start; }
.rb-home .moment-service, .rb-home .moment-review {
  position: relative; display: grid; gap: 4px; padding: 20px 56px 20px 22px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 16px; background: var(--ink-soft);
  transition: border-color 300ms ease, transform 400ms var(--ease);
}
.rb-home a.moment-service::before, .rb-home .moment-review::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(202, 255, 53, .1), transparent 60%);
  transform: translateX(-100%); transition: transform 600ms var(--ease);
}
.rb-home a.moment-service:hover, .rb-home .moment-review:hover { border-color: rgba(202, 255, 53, .5); transform: translateX(6px); }
.rb-home a.moment-service:hover::before, .rb-home .moment-review:hover::before { transform: none; }
.rb-home .moment-service strong, .rb-home .moment-review strong { position: relative; font-size: 18px; letter-spacing: -.02em; }
.rb-home .moment-service span, .rb-home .moment-review span { position: relative; color: var(--cream-dark); font-size: 15px; line-height: 1.55; }
.rb-home .moment-service i { position: absolute; right: 22px; top: 50%; translate: 0 -50%; color: var(--lime); font-size: 18px; font-style: normal; transition: transform 300ms var(--ease); }
.rb-home a.moment-service:hover i { transform: translate(3px, -3px); }
.rb-home .moment-review { margin-top: 28px; padding-right: 22px; border-style: dashed; border-color: rgba(202, 255, 53, .45); }
.rb-home .moment-review strong { color: var(--lime); }

/* ===== The difference: comparison ===== */
.rb-home .compare { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.rb-home .compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.rb-home .compare-row + .compare-row { border-top: 1px solid var(--line); }
.rb-home .compare-row > span { padding: 22px clamp(18px, 2.4vw, 32px); font-size: 16.5px; line-height: 1.5; }
.rb-home .compare-row > span:first-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(166, 168, 159, .5); }
.rb-home .compare-row > span:last-child {
  position: relative; padding-left: calc(clamp(18px, 2.4vw, 32px) + 26px); border-left: 1px solid var(--line); background: rgba(202, 255, 53, .05);
}
.rb-home .compare-row > span:last-child::before { content: "✓"; position: absolute; left: clamp(18px, 2.4vw, 32px); color: var(--lime); font-weight: 700; }
.rb-home .compare-head > span { padding-block: 16px; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none !important; }
.rb-home .compare-head > span:last-child { padding-left: clamp(18px, 2.4vw, 32px); color: var(--lime); }
.rb-home .compare-head > span:last-child::before { content: none; }

/* ===== How it works: stages on a line that fills with scroll ===== */
.rb-home .process { background: var(--ink-soft); }
.rb-home .process-track { position: relative; --fill: 1; }
.rb-home .process-line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.rb-home .process-line i { position: absolute; inset: 0; background: var(--lime); transform-origin: left; transform: scaleX(var(--fill)); box-shadow: 0 0 18px rgba(202, 255, 53, .55); }
.rb-home .process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.rb-home .process-number { display: flex; align-items: center; gap: 14px; }
.rb-home .process-number span { order: 2; color: var(--muted); font: 11px var(--mono); letter-spacing: .12em; }
.rb-home .process-number i {
  order: 1; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--lime); border: 2px solid var(--lime);
  box-shadow: 0 0 0 6px rgba(202, 255, 53, .15); transition: background 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}
.rb-home .process-track.is-filling article:not(.is-lit) .process-number i { background: var(--ink-soft); border-color: var(--line-strong); box-shadow: none; }
.rb-home .process-grid h3 { margin: 24px 0 10px; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -.04em; font-weight: 700; }
.rb-home .process-grid article > p { color: var(--cream-dark); font-size: 15.5px; line-height: 1.6; }
.rb-home .process-grid dl { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.rb-home dt { margin-bottom: 4px; color: var(--lime); font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.rb-home dd { margin: 0; color: var(--cream-dark); font-size: 14px; line-height: 1.5; }

/* ===== Contact: closing invitation and the one enquiry form (js/enquiry.js keeps every field, rule and wiring) ===== */
.rb-home .contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); gap: 7vw; align-items: start; }
.rb-home .contact > * { margin: 0; max-width: none; }
.rb-home .contact {
  max-width: calc(var(--max) + 2 * var(--page)); margin: 0 auto;
  background: radial-gradient(700px circle at 0% 0%, rgba(202, 255, 53, .12), transparent 60%);
}
.rb-home .contact-copy { position: sticky; top: calc(var(--header-h) + 40px); }
.rb-home .contact h2 { font-size: clamp(40px, 5.2vw, 78px); line-height: 1; }
.rb-home .contact-copy > p { margin-top: 26px; max-width: 34em; }
.rb-home .contact-forms { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-strong); border-radius: 24px; background: var(--ink-soft); }
.rb-home .cta-note { margin-top: 6px; color: var(--cream-dark); font-size: 12px; }
.rb-home .cta-note a { text-decoration: underline; }
.rb-home .form-note { margin: 0 0 12px; padding-bottom: 14px; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.rb-home .contact-form-title { font-size: 12px; font-weight: 700; color: var(--lime); font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.rb-home .enquiry-status { min-height: 1.5em; margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.rb-home .enquiry-status--error { color: #ff9b8a; }
.rb-home .enquiry-status--ok { color: var(--lime); }
.rb-home .cta-form--enquiry { display: grid; grid-template-columns: 1fr; gap: 25px; }
.rb-home .enquiry-purpose, .rb-home .enquiry-required { color: var(--cream-dark); font-size: 13px; }
.rb-home .enquiry-required { margin-top: -18px; }
.rb-home .enquiry-grid, .rb-home .optional-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 22px; }
.rb-home .contact .field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rb-home .contact .field-label { font-size: 13px; font-weight: 600; }
.rb-home .contact .field-label em { margin-left: 5px; font-weight: 400; color: var(--muted); }
.rb-home .contact .field-label .req { margin-left: 2px; color: var(--lime); }
.rb-home .contact input:not([type="checkbox"]), .rb-home .contact textarea {
  width: 100%; min-height: 46px; padding: 10px 0; color: var(--cream); background: transparent;
  border: 0; border-bottom: 2px solid rgba(242, 241, 233, .4); border-radius: 0; outline: 0; font-size: 15px; resize: none;
}
.rb-home .contact textarea { min-height: 100px; }
.rb-home .contact input:not([type="checkbox"]):focus, .rb-home .contact textarea:focus { border-bottom-color: var(--lime); box-shadow: 0 3px 0 var(--lime); }
.rb-home .contact [aria-invalid="true"]:not([type="checkbox"]) { border-bottom-color: #ff9b8a; }
.rb-home .enquiry-hint { color: var(--muted); font-size: 12px; }
.rb-home .enquiry-error { color: #ff9b8a; font-size: 13px; font-weight: 700; }
.rb-home .enquiry-error:empty { display: none; }
.rb-home .enquiry-services { min-width: 0; display: flex; flex-direction: column; gap: 8px; border: 0; }
.rb-home .enquiry-services:has([aria-invalid="true"]) { padding: 12px; border: 2px solid #ff9b8a; border-radius: 12px; }
.rb-home .enquiry-services legend { margin-bottom: 12px; }
.rb-home .enquiry-options { display: flex; flex-wrap: wrap; gap: 8px; }
.rb-home .enquiry-option { position: relative; display: block; cursor: pointer; }
/* The invisible box covers its chip, so a click or tap lands on the real checkbox itself. */
.rb-home .enquiry-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rb-home .enquiry-option span {
  min-height: 40px; padding: 0 14px; display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 99px;
  font-size: 12.5px; font-weight: 600; transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.rb-home .enquiry-option:hover span { border-color: var(--cream); }
.rb-home .enquiry-option input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.rb-home .enquiry-option input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 3px; }
.rb-home .details-toggle {
  min-height: 48px; padding: 0; display: flex; align-items: center; justify-content: space-between;
  border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--cream); font-weight: 600; cursor: pointer;
}
.rb-home .details-toggle-sign { color: var(--lime); font-size: 23px; font-weight: 400; }
.rb-home .optional-fields.is-revealed { animation: rb-reveal 250ms var(--ease) both; }
.rb-home .submit-button { width: 100%; min-height: 58px; }
.rb-home .submit-button:hover { gap: 30px; box-shadow: 0 12px 40px rgba(202, 255, 53, .25); }
.rb-home .submit-button:disabled { cursor: wait; opacity: .78; }

/* ===== Footer ===== */
.rb-home .site-footer { padding: 0 var(--page) 28px; }
.rb-home .site-footer > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.rb-home .footer-statement { padding: clamp(70px, 9vw, 130px) 0 clamp(40px, 5vw, 70px); border-bottom: 1px solid var(--line); }
.rb-home .footer-statement > span { color: var(--muted); font: 11px var(--mono); letter-spacing: .1em; }
.rb-home .footer-statement h2 { margin-top: 22px; max-width: 1200px; color: rgba(242, 241, 233, .16); font-size: clamp(40px, 6.6vw, 104px); line-height: 1; letter-spacing: -.055em; }
.rb-home .footer-statement h2 em { color: var(--lime); }
.rb-home .footer-main { padding: 54px 0 70px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
.rb-home .footer-brand { display: flex; flex-direction: column; gap: 25px; }
.rb-home .footer-brand .brand-symbol { width: 54px; height: 54px; }
.rb-home .footer-brand .logo-copy strong { font-size: 30px; }
.rb-home .footer-brand .logo-copy > span { font-size: 13px; }
.rb-home .footer-brand > p { max-width: 400px; color: var(--cream-dark); line-height: 1.65; }
.rb-home .footer-contact { font-size: 14px; }
.rb-home .footer-contact a:hover { color: var(--lime); }
.rb-home .footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 28px; }
.rb-home .footer-col { display: flex; flex-direction: column; gap: 12px; }
.rb-home .footer-col h2 { margin-bottom: 5px; color: var(--muted); font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.rb-home .footer-col a, .rb-home .footer-col span { width: fit-content; max-width: 100%; color: var(--cream-dark); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.rb-home .footer-col a:hover { color: var(--lime); }
.rb-home .footer-meta { padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.rb-home .footer-meta a:hover { color: var(--lime); }
.rb-home .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.rb-home .footer-legal a { color: var(--cream-dark); padding: 4px 0; }

/* ===== Key figures (CMS counters) as one editorial line, and client feedback (functions/_lib/site-render.js) =====
   Rendered only when the owner publishes confirmed, genuine entries and switches the section on. */
.rb-home .metrics { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.rb-home .metrics-title { margin-bottom: 26px; }
.rb-home .metric-grid { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 0; }
.rb-home .metric { display: inline-flex; align-items: baseline; gap: 14px; font-size: clamp(26px, 3.6vw, 52px); line-height: 1.2; letter-spacing: -.04em; font-weight: 600; }
.rb-home .metric + .metric::before { content: "/"; margin: 0 .5em; color: var(--line-strong); font-weight: 400; }
.rb-home .metric-value { display: inline-block; padding: 0 .2em; border-radius: .18em; background: var(--lime); color: var(--ink); font-weight: 700; }
/* Tabular figures and no wrapping: js/home.js fixes the width to the final number before counting, so nothing moves. */
.rb-home .metric-count { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-home .metric-label { color: var(--cream); }
.rb-home .feedback { background: var(--cream); color: var(--ink); }
.rb-home .feedback .kicker { color: #3b4e08; }
.rb-home .feedback .h2-soft { color: #5c5e55; }
.rb-home .feedback .section-heading { margin-bottom: 60px; }
.rb-home .feedback-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.rb-home .feedback-card { display: flex; flex-direction: column; gap: 22px; padding: 34px; border: 1px solid rgba(9, 10, 7, .22); border-radius: 20px; background: var(--cream); }
.rb-home .feedback-stars { margin: 0; font-size: 20px; letter-spacing: .12em; line-height: 1; }
.rb-home .feedback-star { color: rgba(9, 10, 7, .3); }
.rb-home .feedback-star.is-on { color: var(--ink); }
.rb-home .feedback-card blockquote p { margin: 0; font-size: 20px; line-height: 1.55; letter-spacing: -.02em; overflow-wrap: anywhere; }
.rb-home .feedback-card figcaption { margin-top: auto; color: #42443d; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
/* Private preview only: the renderer adds this label to samples and unconfirmed entries, which are never published. */
.rb-home .preview-flag { display: inline-block; padding: 2px 8px; background: #ffd24d; color: #090a07; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0; }

/* ===== Scroll reveal (js/home.js adds .reveal-on only when motion runs; content is visible without it) ===== */
.rb-home.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.rb-home.reveal-on .reveal.is-in { opacity: 1; transform: none; }
.rb-home.reveal-on .hero h1 > span { transform: translateY(40%); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); }
.rb-home.reveal-on .hero h1 > span:nth-child(2) { transition-delay: 120ms; }
.rb-home.reveal-on .hero h1 > span:nth-child(3) { transition-delay: 240ms; }
.rb-home.reveal-on.is-ready .hero h1 > span { transform: none; opacity: 1; }
.rb-home.reveal-on .hero h1 em::after { transform: scaleX(0); transition: transform 1s 900ms var(--ease); }
.rb-home.reveal-on.is-ready .hero h1 em::after { transform: scaleX(1); }

@keyframes rb-ping { 0% { box-shadow: 0 0 0 0 rgba(202, 255, 53, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(202, 255, 53, 0); } }
@keyframes rb-blink { 50% { opacity: 0; } }
@keyframes rb-drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rb-reveal { from { opacity: 0; transform: translateY(-10px); } }

/* ===== Up to 1100 px: menu button, stacked hero and contact, two-column stages ===== */
@media (max-width: 1100px) {
  .rb-home .site-header { grid-template-columns: 1fr auto auto; gap: 18px; }
  .rb-home .menu-toggle {
    position: relative; z-index: 2; width: 46px; height: 46px; padding: 0; display: block;
    border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer;
  }
  .rb-home .menu-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--cream); transition: 180ms ease; }
  .rb-home .menu-toggle span:first-child { top: 17px; }
  .rb-home .menu-toggle span:last-child { top: 26px; }
  .rb-home .menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
  .rb-home .menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
  /* The one nav element (editable in Navigation) becomes the phone menu: js/main.js toggles .open. */
  .rb-home .desktop-nav {
    position: fixed; inset: var(--header-h) 0 auto; max-height: calc(100svh - var(--header-h)); overflow-y: auto; padding: 16px var(--page) 28px;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); visibility: hidden; opacity: 0; transition: 250ms ease;
  }
  .rb-home .desktop-nav.open { transform: translateY(0); visibility: visible; opacity: 1; transition: transform 250ms ease, opacity 250ms ease; }
  .rb-home .desktop-nav a { padding: 16px 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); color: var(--cream); font-size: 19px; }
  .rb-home .desktop-nav > a::after { position: static; width: 8px; height: 8px; background: none; border: solid var(--lime); border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); transition: none; }
  /* In the phone menu a drop-down's links are always listed under its name. */
  .rb-home .nav-group { border-bottom: 1px solid var(--line); padding: 14px 0 6px; }
  .rb-home .nav-group-toggle { padding: 0; pointer-events: none; color: var(--muted); font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
  .rb-home .nav-group-toggle::after { display: none; }
  .rb-home .nav-group-menu, html:not(.nav-groups-js) .rb-home .nav-group:hover .nav-group-menu, .rb-home .nav-group.is-open .nav-group-menu {
    position: static; display: flex; min-width: 0; padding: 4px 0 0; border: 0; border-radius: 0; background: none; box-shadow: none; animation: none;
  }
  .rb-home .nav-group-menu a { padding: 11px 0; border: 0; border-radius: 0; font-size: 17px; }
  .rb-home .hero-layout { grid-template-columns: 1fr; }
  .rb-home .journey-card { max-width: 540px; }
  .rb-home .motion-toggle { position: static; justify-self: start; margin-top: -10px; }
  .rb-home .hero h1 { font-size: clamp(44px, 9vw, 92px); }
  .rb-home .moment { grid-template-columns: 1fr; }
  .rb-home .process-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .rb-home .process-line { display: none; }
  .rb-home .contact { grid-template-columns: 1fr; gap: 48px; }
  .rb-home .contact-copy { position: static; }
}

/* ===== Up to 780 px ===== */
@media (max-width: 780px) {
  .rb-home .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .rb-home .compare-row { grid-template-columns: 1fr; }
  .rb-home .compare-row > span:first-child { padding-bottom: 6px; }
  .rb-home .compare-row > span:last-child { border-left: 0; }
  .rb-home .compare-head > span:first-child { display: none; }
  .rb-home .footer-main { grid-template-columns: 1fr; }
}

/* ===== Up to 560 px: phone ===== */
@media (max-width: 560px) {
  .rb-home { --page: 20px; --section: 80px; --header-h: 72px; }
  .rb-home section[id] { scroll-margin-top: calc(var(--header-h) + 34px); }
  .rb-home .site-header { gap: 8px; }
  .rb-home .site-header .brand-symbol { width: 38px; height: 38px; }
  .rb-home .site-header .logo-copy strong { font-size: 22px; }
  .rb-home .site-header .logo-copy > span { display: none; }
  .rb-home .header-cta { min-height: 42px; padding: 0 12px; font-size: 12px; }
  .rb-home .header-cta .arrow-wrap { display: none; }
  .rb-home .menu-toggle { width: 42px; height: 42px; }
  .rb-home .menu-toggle span { left: 9px; }
  .rb-home .menu-toggle span:first-child { top: 15px; }
  .rb-home .menu-toggle span:last-child { top: 24px; }
  .rb-home .menu-toggle[aria-expanded="true"] span:first-child, .rb-home .menu-toggle[aria-expanded="true"] span:last-child { top: 19px; }
  .rb-home .mobile-tagline {
    position: fixed; z-index: 40; top: 72px; left: 0; width: 100%; height: 32px; display: flex; align-items: center; justify-content: center;
    background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 600;
  }
  .rb-home .hero { padding-top: calc(var(--header-h) + 80px); }
  .rb-home .hero-overline { font-size: 11px; }
  /* Container units: the longest line ("Be understood.") always fits the column. */
  .rb-home .hero-copy { container-type: inline-size; }
  .rb-home .hero h1 { font-size: min(clamp(40px, 12.4vw, 64px), 100cqi / 7.2); }
  .rb-home .hero-buttons { flex-direction: column; align-items: stretch; }
  .rb-home .primary-button { width: 100%; }
  .rb-home .secondary-link { width: max-content; }
  .rb-home .journey-card { padding: 14px; }
  .rb-home .section-heading { margin-bottom: 42px; }
  .rb-home .section-heading h2, .rb-home .contact h2 { font-size: clamp(34px, 10.6vw, 48px); }
  .rb-home .footer-statement h2 { font-size: clamp(34px, 11vw, 52px); }
  .rb-home .section-heading > p, .rb-home .contact-copy > p { font-size: 15px; }
  .rb-home .moment-service, .rb-home .moment-review { padding: 18px 46px 18px 18px; }
  .rb-home .moment-review { padding-right: 18px; }
  .rb-home .process-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .rb-home .metric { flex-wrap: wrap; gap: 8px 12px; }
  .rb-home .metric-grid { flex-direction: column; align-items: flex-start; }
  .rb-home .metric + .metric::before { content: none; }
  .rb-home .contact-forms { padding: 22px 18px; }
  .rb-home .enquiry-grid, .rb-home .optional-fields { grid-template-columns: 1fr; }
  .rb-home .enquiry-option span { min-height: 42px; }
  .rb-home .footer-links { grid-template-columns: 1fr 1fr; }
  .rb-home .footer-links > div:last-child { grid-column: 1 / -1; }
  .rb-home .footer-meta { flex-wrap: wrap; gap: 14px; }
  .rb-home .feedback-grid { grid-template-columns: 1fr; }
  .rb-home .feedback-card { padding: 26px 22px; }
  .rb-home .feedback-card blockquote p { font-size: 18px; }
}

/* ===== Up to 350 px ===== */
@media (max-width: 350px) {
  .rb-home { --page: 16px; }
  .rb-home .header-cta { display: none; }
  .rb-home .site-header { grid-template-columns: 1fr auto; }
}

/* ===== Reduced motion: nothing moves; the journey card is shown whole and the Pause button is not needed ===== */
@media (prefers-reduced-motion: reduce) {
  html:has(body.rb-home) { scroll-behavior: auto; }
  .rb-home *, .rb-home *::before, .rb-home *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}

/* Drop-down items (13 Nov 2026): icon, bold label and a grey line (same markup on every page; css/site.css styles them there) */
.rb-home .nav-group-menu { left: 50%; transform: translateX(-50%); min-width: 360px; gap: 2px; }
.rb-home .desktop-nav a.nav-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 12px; color: var(--cream); transition: background 160ms ease; }
.rb-home .desktop-nav a.nav-item::after { display: none; }
.rb-home .desktop-nav a.nav-item:hover, .rb-home .desktop-nav a.nav-item:focus-visible { background: var(--ink-raised); }
.rb-home .nav-icon { width: 36px; height: 36px; flex: none; padding: 8px; border: 1px solid var(--line-strong); border-radius: 10px; fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; background: rgba(202, 255, 53, .06); }
.rb-home .nav-item-text { display: grid; gap: 3px; }
.rb-home .nav-item-text strong { font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.rb-home .nav-item-text small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.rb-home .nav-item:hover .nav-item-text strong { color: var(--lime); }
@media (max-width: 1100px) {
  .rb-home .nav-group-menu { transform: none; min-width: 0; }
  .rb-home .desktop-nav a.nav-item { justify-content: flex-start; padding: 10px 0; border-bottom: 0; font-size: 16px; }
  .rb-home .nav-icon { width: 32px; height: 32px; padding: 7px; }
}

/* Phone menu: the drop-down items drop their grey line and tighten up, so every link fits on one small screen. */
@media (max-width: 720px) {
  .rb-home .desktop-nav .nav-item-text small { display: none; }
  .rb-home .desktop-nav a.nav-item { align-items: center; gap: 12px; padding: 7px 0; font-size: 16px; }
  .rb-home .nav-icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; }
  .rb-home .desktop-nav > a { padding: 12px 0; font-size: 17px; }
  .rb-home .nav-group { padding: 10px 0 4px; }
}

/* Footer newsletter box and social icons: the same rules as css/site.css (the home page loads only this file) */
/* Newsletter sign-up box (footer): a plain form; the honeypot row is never shown */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.footer-newsletter { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--ink-soft); max-width: 460px; }
.footer-newsletter h2 { margin: 0 0 6px; color: var(--lime); font: 500 11px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-newsletter > p { margin: 0 0 14px; color: var(--cream-dark); font-size: 14px; line-height: 1.55; }
.footer-newsletter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-newsletter-row input { flex: 1 1 200px; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); color: var(--cream); font: inherit; font-size: 15px; }
.footer-newsletter-row input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.footer-newsletter-btn { min-height: 46px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--lime); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.footer-newsletter-btn:hover { background: var(--cream); }
.footer-newsletter-btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.footer-newsletter-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--cream-dark); font-size: 13px; line-height: 1.5; cursor: pointer; }
.footer-newsletter-consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--lime); }
.footer-newsletter-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.footer-newsletter-note a { color: var(--cream-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-newsletter-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Subscribe: black bold text on lime on every page (the home page's own button rule must not turn it pale). The
   consent checkbox is a dark box with a lime border and a lime tick, so it sits in the dark design and stays visible. */
.footer-newsletter .footer-newsletter-btn { color: var(--ink); font-weight: 700; font-size: 15px; }
.footer-newsletter .footer-newsletter-btn:hover { color: var(--ink); }
.footer-newsletter .footer-newsletter-consent input { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 20px; height: 20px; margin: 0; border: 2px solid var(--lime); border-radius: 5px; background: var(--ink); cursor: pointer; }
.footer-newsletter .footer-newsletter-consent input::before { content: ""; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.footer-newsletter .footer-newsletter-consent input:checked { background: var(--lime); }
.footer-newsletter .footer-newsletter-consent input:checked::before { opacity: 1; }
.footer-newsletter .footer-newsletter-consent input:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.footer-newsletter .footer-newsletter-note { font-size: 12px; }
/* Social profiles: icon links, shown only when their address is set in Admin */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--cream-dark); background: var(--ink-soft); transition: color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.footer-social a:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); transform: translateY(-2px); }
.footer-social a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
