/* ==========================================================================
 * The redesign's stylesheet, for the homepage and for the pages that carry
 * its chrome.
 *
 * THE HOMEPAGE IS STANDALONE. It does not load the theme or Elementor, which
 * is deliberate: the concept redesigns the header as well as the body, and
 * every rule in this file would otherwise be fighting a page builder that
 * outranks it. See tools/build_home_redesign.py.
 *
 * TYPE. Inter, at one weight axis and a scale with seven steps. Nunito plus
 * 0.14em of tracking makes a short uppercase label come out "wide but short":
 * BRAINTOY PRODUCTS at 12px is 152px wide and 12px tall. Inter is a
 * neo-grotesque with narrower letterforms and a large x-height, which is why
 * it is on Linear, Vercel, GitHub and most of the training sites worth
 * looking at; BrainStation runs a custom grotesque of the same family of
 * shapes.
 *
 * The rules that make type look expensive rather than default:
 *   - tracking goes NEGATIVE as size goes up, never positive on a headline
 *   - leading goes TIGHT as size goes up: 1.02 on display, 1.6 on body
 *   - labels get 0.06em, not 0.14em, so a two-word label stays a label
 *   - one weight per role, and no role uses 400 for a heading
 * ========================================================================== */

:root {
  /* BRAINTOY'S COLOURS, NOT THE CONCEPT'S BLUE. The concept is drawn in blue;
     the site is not.

     --rd-key is what the concept uses blue for: the primary button, the
     accented word in the headline, the eyebrows, the icon chips. On this
     site that job belongs to the red. */
  --rd-key: #c93a28;
  /* WHITE IN THE LIGHT THEME, DARK IN THE DARK ONE, because the orange is not
     the same orange in the two. Light runs #c93a28, a deep brick, where white
     reads at 5.1:1 and black only manages 4.1:1; dark runs #ff6b4f, which is
     bright enough that dark ink reads at 7.5:1 and white would not. */
  --rd-on-key: #ffffff;
  --rd-key-deep: #a72e1e;
  --rd-key-soft: #fdf2ef;
  --rd-plum: #492b70;
  --rd-plum-deep: #2c1750;
  --rd-plum-soft: #f6f3fa;

  /* THE DRAWN WALLPAPER (design 2b). The module reads these at paint time and
     again whenever the theme changes, so the ribbons are the brand's colours
     rather than an approximation of them. */
  --rd-wall-back: #140a26;
  --rd-wall-deep: #2a1150;
  --rd-wall-lilac: #a97fe8;
  --rd-green: #0f7b4f;
  --rd-amber: #d97a06;
  --rd-accent: #ff9d4d;

  --rd-ink: #1b1030;
  --rd-body: #4a4159;
  --rd-muted: #6f6879;
  --rd-line: #e2dced;
  --rd-line-soft: #f0ecf6;
  --rd-page: #ffffff;
  --rd-soft: #f6f3fa;
  --rd-cream: #fbf6f0;
  /* THE SURFACE A CARD IS MADE OF. A rule that says #fff outright is a page
     that can only ever be light. One name, and the dark block below is the
     only other place it is decided. */
  --rd-card: #ffffff;
  --rd-card-line: #e7ddf1;
  /* THE ONE BAND THAT IS ON SCREEN THE WHOLE TIME. Said as white outright,
     the header would stay a white bar over a dark page. */
  --rd-top: rgba(255, 255, 255, 0.92);
  /* the logo tiles, which stay light in both themes: half of Braintoy's
     partners ship a wordmark with a white background baked into the file, so a
     dark tile under them draws a white rectangle around every other logo */
  --rd-tile: #ffffff;

  --rd-shadow: 0 10px 30px rgba(43, 23, 67, 0.08);
  --rd-shadow-lift: 0 22px 54px rgba(43, 23, 67, 0.15);
  --rd-radius: 16px;
  --rd-radius-lg: 22px;

  /* THE SCALE. Seven steps, whole pixels at the small end, fluid at the top. */
  --rd-display: clamp(40px, 5.1vw, 62px);
  --rd-h2: clamp(26px, 2.9vw, 38px);
  --rd-h3: 20px;
  --rd-lead: 18px;
  --rd-base: 16px;
  --rd-small: 14px;
  --rd-micro: 12px;

  --rd-wrap: 1200px;
}

.rd *,
.rd *::before,
.rd *::after { box-sizing: border-box; }

/* HIDDEN HAS TO HIDE. [hidden] { display: none } comes from the user agent, and
   an AUTHOR declaration beats the user agent's whatever the specificity is, so
   every display in this file silently outranks it: .rd-trust__row has
   display: grid, so setting hidden on the logo row would leave it on screen
   and the globe would open underneath the row it is supposed to replace.

   One rule for every element, rather than a patch for each. */
[hidden] { display: none !important; }

/* THE PAGE'S TYPE, on .rd and on the chrome. The header, the news bar, the
   footer, the chat, the search and the dialogs sit outside .rd on the exported
   pages, so they are named here as well; otherwise they take the host page's
   face, size, leading and colour. A component's own rules further down still
   set its own. */
.rd,
.rd-newsbar,
.rd-top,
.rd-foot,
.rd-phone,
.rd-find,
.rd-ask {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: var(--rd-base);
  line-height: 1.6;
  color: var(--rd-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Inter's tabular and contextual alternates, which stop the 1 and the l
     reading as the same mark in a date. */
  font-feature-settings: "cv05" 1, "cv08" 1, "ss01" 1;
}

.rd {
  margin: 0;
  background: var(--rd-page);
}

/* THE RESET WEIGHS NOTHING, which is the whole job of :where().
 *
 * Written as `.rd p { margin: 0 }` this is (0,0,1,1) and beats every (0,0,1,0)
 * class rule in the file however far below it they sit, so .rd-eyebrow's
 * 14px and .rd-hero__sub's 28px would both be discarded and the lede would
 * sit straight on the buttons. The same shape would take the button colours
 * and the link colours. */
:where(:is(.rd, .rd-newsbar, .rd-top, .rd-foot, .rd-phone, .rd-find, .rd-ask) :is(h1, h2, h3, h4)) {
  margin: 0;
  color: var(--rd-ink);
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

/* On a page that carries the theme's Elementor kit, the kit styles h1 to h6
   directly and outranks the reset above, so .rd headings there would come out
   in the theme's face at its weight. This holds them to the redesign's, in .rd
   content and in the .rd-ask dialogs, which sit on <body> outside .rd, and
   only where the kit is: the homepage has no kit and never reaches this
   rule. */
[class*="elementor-kit-"] :is(.rd, .rd-ask, .rd-voices) :is(h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  text-decoration: none;
}

/* the kit sets a family and a weight on every link as well */
[class*="elementor-kit-"] :is(.rd, .rd-ask, .rd-voices) :is(a, button) { font-family: inherit; }
[class*="elementor-kit-"] :is(.rd, .rd-ask) .rd-btn { font-weight: 700; }

/* The theme also pads paragraphs (p), marks list items (ul li, ol li) and draws
   a bar beside quotes (blockquote::before). These match each of those exactly
   in weight, so they win by coming later and any class rule still wins over
   them. The chrome is named with .rd because it sits outside it on these
   pages. */
:where([class*="elementor-kit-"] :is(.rd, .rd-ask, .rd-voices, .rd-newsbar, .rd-top, .rd-foot, .rd-phone, .rd-find)) :is(p, ul, ol, figure, figcaption, blockquote) {
  margin: 0;
  padding: 0;
}
:where([class*="elementor-kit-"] .rd) :is(ul, ol) li { padding: 0; list-style: none; }
:where([class*="elementor-kit-"] :is(.rd, .rd-voices)) blockquote::before { content: none; }

:where(.rd p) { margin: 0; }
:where(:is(.rd, .rd-newsbar, .rd-top, .rd-foot, .rd-phone, .rd-find, .rd-ask) img) { max-width: 100%; display: block; }

/* THE CHROME'S LINKS AND CONTROLS. The chrome takes Inter from the type rule at
   the top of this file, but the exported theme sets a family on
   `.elementor-kit-782 a`, a class and an element, which beats inheritance.
   These match it at one class and one element and win on coming later: this
   stylesheet is linked last. */
.rd-newsbar a, .rd-newsbar span, .rd-newsbar button,
.rd-top a, .rd-top button,
.rd-foot a, .rd-foot p, .rd-foot h4,
.rd-phone a, .rd-phone p, .rd-phone button, .rd-phone input,
.rd-find a, .rd-find button {
  font-family: inherit;
}

/* The theme colours every link (`body a`) and eases the colour over 0.3s. The
   chrome's links take their colour from their own rules or from the text around
   them and change at once, as they do on the homepage. `html` gives this the
   weight of `body a` and no more, so a rule with a class still wins. */
html :where(.rd-newsbar, .rd-top, .rd-foot, .rd-phone, .rd-find, .rd-ask) a {
  color: inherit;
  transition: initial;
}

/* WEIGHTLESS, SO IT CANNOT OUTRANK A BUTTON. Written as a bare `.rd a` this is
   (0,0,1,1), which beats every single-class button rule below it however far
   down the file they are, and a solid button would come out with dark text
   on its ground, which is the one thing a call to action cannot do. */
:where(.rd a) { text-decoration: none; color: inherit; }

.rd__wrap {
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------- the pieces */

.rd-eyebrow {
  margin: 0 0 14px;
  color: var(--rd-key);
  font-size: var(--rd-micro);
  font-weight: 700;
  line-height: 1.4;
  /* 0.06em. At 0.14em a two-word label runs wider than the heading under it
     and reads as wide but short. */
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rd-eyebrow--light { color: rgba(255, 255, 255, 0.72); }
.rd-eyebrow--ink { color: var(--rd-muted); }

/* The mark before every small heading on the site: the dot grid of Braintoy's
   logo, drawn as a mask so it takes the heading's own colour in either theme.
   Pages with their own small headings (Training, mlOS, the chat) use it too. */
:root {
  --rd-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23000'%3E%3Ccircle cx='2' cy='2' r='1.25'/%3E%3Ccircle cx='6' cy='2' r='1.25'/%3E%3Ccircle cx='10' cy='2' r='1.25'/%3E%3Ccircle cx='2' cy='6' r='1.25'/%3E%3Ccircle cx='6' cy='6' r='1.85'/%3E%3Ccircle cx='10' cy='6' r='1.25'/%3E%3Ccircle cx='2' cy='10' r='1.25'/%3E%3Ccircle cx='6' cy='10' r='1.25'/%3E%3Ccircle cx='10' cy='10' r='1.25'/%3E%3C/g%3E%3C/svg%3E");
}

.rd-eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-right: 0.7em;
  vertical-align: -0.1em;
  background: currentColor;
  -webkit-mask: var(--rd-mark) center / contain no-repeat;
  mask: var(--rd-mark) center / contain no-repeat;
}

.rd-h2 {
  font-size: var(--rd-h2);
  line-height: 1.14;
  letter-spacing: -0.024em;
}

.rd-lead {
  font-size: var(--rd-lead);
  line-height: 1.55;
  color: var(--rd-body);
  letter-spacing: -0.004em;
}

.rd-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  /* named rather than inherited: a <button> takes the browser's face, and on
     an exported page the face around it is the theme's */
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease,
              background-color 140ms ease, border-color 140ms ease;
}

.rd-btn:focus-visible { outline: 2px solid var(--rd-key); outline-offset: 3px; }

.rd-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

.rd-btn--solid {
  background: var(--rd-key);
  border-color: var(--rd-key);
  color: var(--rd-on-key);
  box-shadow: 0 6px 18px rgba(201, 58, 40, 0.26);
}

.rd-btn--solid:hover {
  background: var(--rd-key-deep);
  border-color: var(--rd-key-deep);
  transform: translateY(-1px);
}

/* THE SAME BUTTON, ON A PAGE THAT HAS ITS OWN OPINION ABOUT LINKS.
   The chrome is placed outside .rd on the exported pages, where the Elementor
   Kit carries `.elementor-kit-782 a { font-weight: var(...) }`. That is one
   class and one element, which outspecifies a bare `.rd-btn`, so without this
   the enquiry button would take the kit's weight on those pages and its own
   on the homepage: same markup, same stylesheet, different weight.
   Two classes beat a class and an element, so these win without !important. */
.rd-ask .rd-btn {
  font-weight: 700;
}

/* and the theme's `button[type="submit"] { color: #fff }`, a class's weight
   and an element's, which would put white on the key colour in dark */
.rd .rd-btn--solid,
.rd-ask .rd-btn--solid {
  color: var(--rd-on-key);
}

.rd-btn--line {
  background: var(--rd-card);
  border-color: #e8c9c2;
  color: var(--rd-key);
}

.rd-btn--line:hover { border-color: var(--rd-key); transform: translateY(-1px); }

.rd-btn--plain {
  background: var(--rd-card);
  border-color: var(--rd-line);
  color: var(--rd-ink);
  box-shadow: var(--rd-shadow);
}

.rd-btn--plain:hover { transform: translateY(-1px); box-shadow: var(--rd-shadow-lift); }

.rd-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.rd-btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ------------------------------------------------ photographs that arrive
 *
 * RESTRAINED ON PURPOSE. The pictures are presented well without being
 * distracting, and the way a reveal becomes distracting is by being long, by
 * moving far, or by happening to twelve things at once. This is 620ms, six
 * pixels and a 3% scale, once, the first time a picture is seen.
 *
 * NO TRANSFORM UNTIL IT IS NEEDED. A transform on a hundred images makes a
 * layer for each; .rd-rise only gets one while it is still waiting, and the
 * class comes off when it lands.
 */
.rd-js .rd-rise {
  opacity: 0;
  transform: translateY(6px) scale(1.03);
  transition: opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rd-js .rd-rise.is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================================
 * NARROW SCREENS LAST AND WIDEST FIRST. A media query adds nothing to
 * specificity, so one written above the rule it means to beat loses in
 * silence.
 * ========================================================================= */

/* ==========================================================================
 * THE ACTS, and the rail beside them.
 *
 * EVERY CLOSED STATE IS SCOPED TO .rd-js, which is set by one line in the head
 * that cannot be deferred. A page whose script never runs is a page with all of
 * it on screen.
 * ========================================================================== */

.rd-act { transition: opacity 560ms ease, transform 560ms cubic-bezier(.22,.8,.3,1); }

/* AHEAD. Held back, and not drawn: content-visibility lets the browser skip the
   whole of an act's layout, style and paint until it is near. The height it
   would have had is handed over with it, measured off the real thing at load,
   or the page shrinks the moment the first one is skipped and the scrollbar
   jumps under the reader. */
.rd-js .rd-act.is-ahead {
  opacity: 0;
  transform: translateY(34px);
  content-visibility: auto;
  contain-intrinsic-size: auto var(--rd-act-tall, 600px);
}

.rd-js .rd-act.is-open { opacity: 1; transform: none; }

/* PAST. Still legible, because a reader scrolling back up is reading it, but it
   gives way to whatever is on screen now. */
.rd-js .rd-act.is-past { opacity: 0.55; transform: translateY(-14px) scale(0.988); }

/* The things inside an act arrive after it, in order, so a band assembles
   rather than appearing. Only the three bands built out of a row of cards: the
   rest arrive whole, because staggering a heading against its own paragraph is
   the kind of motion that reads as a page struggling to load. */
.rd-js .rd-act .rd-ways > *,
.rd-js .rd-act .rd-prods > *,
.rd-js .rd-act .rd-trust__row > * {
  transition: opacity 460ms ease, transform 460ms cubic-bezier(.22,.8,.3,1);
}

.rd-js .rd-act.is-ahead .rd-ways > *,
.rd-js .rd-act.is-ahead .rd-prods > *,
.rd-js .rd-act.is-ahead .rd-trust__row > * { opacity: 0; transform: translateY(22px); }

.rd-js .rd-act.is-open .rd-ways > *,
.rd-js .rd-act.is-open .rd-prods > *,
.rd-js .rd-act.is-open .rd-trust__row > * { opacity: 1; transform: none; }

.rd-js .rd-act.is-open .rd-ways > :nth-child(2),
.rd-js .rd-act.is-open .rd-prods > :nth-child(2) { transition-delay: 70ms; }
.rd-js .rd-act.is-open .rd-ways > :nth-child(3),
.rd-js .rd-act.is-open .rd-prods > :nth-child(3) { transition-delay: 140ms; }
.rd-js .rd-act.is-open .rd-prods > :nth-child(4) { transition-delay: 210ms; }

/* the lines of an offer that branches are drawn out from where they start,
   and their dots and ends follow */
.rd-js .rd-act .rd-branches path {
  transition: stroke-dashoffset 900ms cubic-bezier(.22,.8,.3,1) 160ms;
}

.rd-js .rd-act .rd-branches :is(circle, rect) { transition: opacity 320ms ease 760ms; }
.rd-js .rd-act.is-ahead .rd-branches path { stroke-dashoffset: 100; }
.rd-js .rd-act.is-ahead .rd-branches :is(circle, rect) { opacity: 0; }

/* the logos come in as a wave rather than seventeen at once */
.rd-js .rd-act.is-open .rd-trust__row > :nth-child(n+4) { transition-delay: 60ms; }
.rd-js .rd-act.is-open .rd-trust__row > :nth-child(n+8) { transition-delay: 120ms; }
.rd-js .rd-act.is-open .rd-trust__row > :nth-child(n+12) { transition-delay: 180ms; }

/* --------------------------------------------------------------- the rail */

/* NO BOX. It floats over whatever band is under it and some are dark, so it
   changes colour rather than carrying a panel: .is-on-dark is set by the
   component from a measured flag per band plus the theme. A permanent 170
   pixel surface is too much for the sake of six words. */
.rd-acts {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  pointer-events: none;

  --rd-acts-ink: var(--rd-ink);
  --rd-acts-dim: var(--rd-muted);
  --rd-acts-line: var(--rd-line);
  --rd-acts-hole: var(--rd-page);
}

.rd-acts.is-on-dark {
  --rd-acts-ink: #ffffff;
  --rd-acts-dim: rgba(255, 255, 255, 0.72);
  --rd-acts-line: rgba(255, 255, 255, 0.3);
  --rd-acts-hole: rgba(255, 255, 255, 0.14);
}

.rd-acts__line {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--rd-acts-line);
  overflow: hidden;
  transition: background 260ms ease;
}

.rd-acts__line i {
  display: block;
  height: 100%;
  background: var(--rd-key);
  transform-origin: top;
  transform: scaleY(0);
}

.rd-acts__dot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}

.rd-acts__dot::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rd-acts-hole);
  border: 2px solid var(--rd-acts-line);
  position: relative;
  z-index: 1;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

/* The rail takes the pointer at its dots, and all of it while it is pointed
   at. The room the hidden names keep beside the dots lies over the start of
   the page's own words, and otherwise the pointer goes through to them. */
.rd-acts__dot::before,
.rd-acts:hover { pointer-events: auto; }

.rd-acts__dot.is-done::before { border-color: var(--rd-key); background: var(--rd-key); }
.rd-acts__dot[aria-current="true"]::before {
  border-color: var(--rd-key);
  background: var(--rd-acts-hole);
  transform: scale(1.34);
}

/* The name is there for a pointer and a keyboard and is not in the way of
   either until it is wanted. The current one is always shown, because knowing
   where you are should not need a mouse. */
.rd-acts__dot span {
  font-size: var(--rd-micro);
  font-weight: 600;
  letter-spacing: -0.004em;
  color: var(--rd-acts-dim);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 180ms ease, transform 180ms ease, color 260ms ease;
  pointer-events: none;
  /* a hairline of the opposite tone, which is what keeps a word legible where
     a band is not flat: a photograph under the rail is neither dark nor light */
  text-shadow: 0 1px 2px var(--rd-acts-shade, rgba(255, 255, 255, 0.55));
}

.rd-acts.is-on-dark .rd-acts__dot span { --rd-acts-shade: rgba(0, 0, 0, 0.55); }

.rd-acts:hover .rd-acts__dot span,
.rd-acts__dot:focus-visible span,
.rd-acts__dot[aria-current="true"] span { opacity: 1; transform: none; }

/* AND IT SAYS NOTHING OVER A FULL BLEED BAND. The two panels put their own text
   at the page edge rather than inside the wrap, which is the one place the rail
   has company: the label would land at the same x as the panel's eyebrow and
   twelve pixels above it, and the two read as one muddled block.

   :not(:hover), so the name is still there for anybody who goes looking for it.
   The dots stay either way: they sit left of where any text begins. */
.rd-acts.is-quiet:not(:hover) .rd-acts__dot[aria-current="true"] span {
  opacity: 0;
  transform: translateX(-6px);
}
.rd-acts__dot[aria-current="true"] span { color: var(--rd-acts-ink); font-weight: 700; }
.rd-acts__dot:focus-visible { outline: 3px solid var(--rd-key); outline-offset: 4px;
                              border-radius: 4px; }

/* Built only above 1240, where there is room beside the content, but a window
   resized under that afterwards should lose it too. */
@media (max-width: 1239px) { .rd-acts { display: none; } }

/* THE NAMES ONLY WHERE THEY FIT. The longest ends 171px from the window's left
   edge and the content starts (width - 1200) / 2 + 28 in, so below 1550 a name
   would sit on the page's own words. There the rail is its dots, and the names
   show only while it is pointed at or focused, each on a ground of its own so
   it reads over whatever is under it. */
@media (max-width: 1549px) {
  .rd-acts__dot[aria-current="true"] span { opacity: 0; transform: translateX(-6px); }

  .rd-acts:hover .rd-acts__dot span,
  .rd-acts__dot:focus-visible span {
    opacity: 1;
    transform: none;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--rd-card);
    color: var(--rd-ink);
    box-shadow: var(--rd-shadow);
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd-act, .rd-rail__dot::before, .rd-rail__dot span { transition: none; }
}

/* ==========================================================================
 * SEARCH.
 *
 * A sheet over the page rather than a dropdown under the button: the results
 * carry two lines each and a dropdown that size, hanging off a 44 pixel control
 * in the corner, is a menu pretending not to be a dialog.
 * ========================================================================== */

.rd-find {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 10vh 20px 20px;
  background: rgba(16, 8, 30, 0.52);
  backdrop-filter: blur(3px);
}


.rd-find__sheet {
  width: min(640px, 100%);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--rd-radius);
  background: var(--rd-card);
  border: 1px solid var(--rd-card-line);
  box-shadow: var(--rd-shadow-lift);
  overflow: hidden;
}

.rd-find__bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 14px 13px 17px;
  border-bottom: 1px solid var(--rd-line-soft);
}

.rd-find__bar > svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--rd-muted); }

.rd-find__bar input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  font-size: var(--rd-lead);
  color: var(--rd-ink);
  outline: none;
  transition: none;
}

/* the exported theme shadows every search box it focuses; this one sits in
   its bar */
.rd-find__bar input:focus { box-shadow: none; }

.rd-find__bar input::placeholder { color: var(--rd-muted); }
/* the browser draws its own clear button on a search input, in its own colours */
.rd-find__bar input::-webkit-search-cancel-button { display: none; }

.rd-find__shut {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid var(--rd-line);
  background: none;
  font: inherit;
  font-size: var(--rd-micro);
  font-weight: 600;
  color: var(--rd-muted);
  cursor: pointer;
}

.rd-find__shut:hover { border-color: var(--rd-key); color: var(--rd-key); }

.rd-find__out { overflow-y: auto; padding: 8px; }

.rd-find__hit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rd-find__hit.is-on { background: var(--rd-plum-soft); }

.rd-find__kind {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rd-key-soft);
  color: var(--rd-key);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rd-find__say { min-width: 0; }
.rd-find__t {
  display: block;
  font-size: var(--rd-small);
  font-weight: 700;
  color: var(--rd-ink);
  letter-spacing: -0.01em;
}

.rd-find__b {
  display: block;
  margin-top: 2px;
  font-size: var(--rd-micro);
  line-height: 1.5;
  color: var(--rd-muted);
}

/* the matched run, in both lines. The weight is the browser's own, said here
   because the exported theme sets `body b` to 800. */
.rd-find__t b, .rd-find__b b {
  font-weight: bolder;
  color: var(--rd-key);
  background: var(--rd-key-soft);
  border-radius: 3px;
  padding: 0 1px;
}

.rd-find__none { padding: 26px 14px; text-align: center; color: var(--rd-muted);
                 font-size: var(--rd-small); }

.rd-find__foot {
  padding: 10px 17px 12px;
  border-top: 1px solid var(--rd-line-soft);
  font-size: var(--rd-micro);
  color: var(--rd-muted);
}

/* THE ANSWER SLOT. Drawn only when an answerer has been registered, so a page
   with no key configured shows nothing here at all. */
.rd-find__ask { padding: 8px 8px 0; }

.rd-find__askgo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 11px;
  border: 1px dashed var(--rd-plum);
  background: var(--rd-plum-soft);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rd-find__askgo:hover { border-style: solid; }

.rd-find__asklabel {
  flex: 0 0 auto;
  font-size: var(--rd-micro);
  font-weight: 700;
  color: var(--rd-plum);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rd-find__askq {
  min-width: 0;
  font-size: var(--rd-small);
  color: var(--rd-body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-find__asktop {
  padding: 12px 12px 4px;
  font-size: var(--rd-micro);
  font-weight: 700;
  color: var(--rd-plum);
}

.rd-find__asksaid {
  padding: 0 12px 14px;
  font-size: var(--rd-small);
  line-height: 1.6;
  color: var(--rd-body);
  min-height: 2.2em;
}

@media (max-width: 620px) {
  .rd-find { padding: 0; }
  .rd-find__sheet { width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: 0; }
  .rd-find__kind { display: none; }
}

@media (max-width: 620px) {
  :root { --rd-lead: 17px; --rd-h3: 19px; }
  .rd__wrap { padding-left: 18px; padding-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }

  /* the reveal has to END somewhere visible, not just end quickly */
  .rd-rise { opacity: 1; transform: none; }
}


/* ==========================================================================
 * DARK.
 *
 * Only the tokens are redefined. Nothing below this point names a colour,
 * which is the whole reason a theme can be a dozen lines rather than a second
 * stylesheet.
 *
 * THE PHOTOGRAPHS AND THE LOGOS DO NOT INVERT. A picture of a room is the same
 * picture at night, and a partner's wordmark is their property rather than our
 * palette; both keep their own light ground. What changes is everything the
 * page draws itself.
 *
 * A SECTION SET AT NIGHT IS DARK IN BOTH THEMES. The editor's Night in both
 * themes marks it data-night (looks.py), and the same tokens hold inside it in
 * the light theme as well, so a band laid on a dark film keeps its words light.
 * ========================================================================== */

[data-night],
:root[data-theme="dark"] {
  --rd-key: #ff6b4f;
  --rd-on-key: #1b0f0a;
  --rd-key-deep: #ff8468;
  --rd-key-soft: #35201d;
  --rd-plum: #b9a2e0;
  --rd-plum-deep: #190d2c;
  --rd-plum-soft: #211436;
  --rd-green: #45c78e;
  --rd-amber: #ffad4d;
  --rd-accent: #ffb877;

  --rd-ink: #f3eefb;
  --rd-body: #c4bbd4;
  --rd-muted: #948aa6;
  --rd-line: #342748;
  --rd-line-soft: #281c3c;
  --rd-page: #130a22;
  --rd-soft: #1b1030;
  --rd-cream: #1e1333;
  --rd-card: #1e1334;
  --rd-card-line: #342748;
  --rd-top: rgba(19, 10, 34, 0.9);

  --rd-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --rd-shadow-lift: 0 22px 54px rgba(0, 0, 0, 0.6);

  color-scheme: dark;
}

/* ==========================================================================
 * THE ENQUIRY FORM, which every "Book a Free Enquiry" on the page opens.
 *
 * A dialog element, so the backdrop, the focus trap, Escape and the return of
 * focus come from the browser rather than from three hundred lines here. What
 * is written is what it looks like.
 *
 * ::backdrop IS NOT A CHILD OF ANYTHING and does not inherit, so the custom
 * properties the rest of this file runs on are not available inside it. That is
 * why the wash below is a literal rather than a token, and why it is the same
 * literal in both themes: it is a darkening of whatever is behind it.
 * ========================================================================== */

.rd-ask {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  color: var(--rd-ink);
}

.rd-ask::backdrop {
  background: rgba(16, 9, 30, 0.58);
  backdrop-filter: blur(3px);
}

.rd-ask__card {
  position: relative;
  background: var(--rd-card);
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  box-shadow: 0 32px 90px rgba(21, 11, 41, 0.3);
  padding: 34px 36px 26px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.rd-ask[open] .rd-ask__card {
  animation: rd-ask-in 320ms cubic-bezier(.22, .8, .3, 1) both;
}

@keyframes rd-ask-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.rd-ask__shut {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rd-line);
  border-radius: 50%;
  background: var(--rd-page);
  color: var(--rd-muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.rd-ask__shut svg { width: 13px; height: 13px; }
.rd-ask__shut:hover { color: var(--rd-ink); border-color: var(--rd-ink); }

.rd-ask__title {
  font-size: clamp(22px, 3vw, 29px);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 6px 0 8px;
  color: var(--rd-ink);
}

.rd-ask__lede {
  color: var(--rd-body);
  font-size: var(--rd-small);
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 48ch;
}

/* ------------------------------------------------------------- the fields */

.rd-ask__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.rd-ask__field { margin: 0; display: grid; gap: 6px; }
.rd-ask__field--wide { grid-column: 1 / -1; }

.rd-ask__field label {
  font-size: var(--rd-micro);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--rd-ink);
}
/* "optional" is a word about the field, not part of its name */
.rd-ask__field label span {
  font-weight: 500;
  color: var(--rd-muted);
  letter-spacing: 0;
}

.rd-ask__field input,
.rd-ask__field select,
.rd-ask__field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--rd-small);
  color: var(--rd-ink);
  background: var(--rd-page);
  border: 1px solid var(--rd-line);
  border-radius: 11px;
  padding: 11px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.rd-ask__field textarea { resize: vertical; min-height: 92px; line-height: 1.55; }

.rd-ask__field input:focus,
.rd-ask__field select:focus,
.rd-ask__field textarea:focus {
  outline: 0;
  border-color: var(--rd-key);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rd-key) 18%, transparent);
}

.rd-ask__field input.is-wrong,
.rd-ask__field textarea.is-wrong { border-color: var(--rd-key); }

/* The line under a field it belongs to, which is where somebody is already
   looking when they get it wrong. Empty until there is something to say, and
   it takes no room until then. */
.rd-ask__say:empty { display: none; }
.rd-ask__say {
  font-size: var(--rd-micro);
  font-weight: 600;
  color: var(--rd-key);
}

/* Hidden from everybody who is not a robot. Not display:none: some of them
   check for that, and it costs nothing to put it somewhere instead. */
.rd-ask__pot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ------------------------------------------------------------- the footing */

.rd-ask__wrong {
  margin: 16px 0 0;
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--rd-key-soft);
  border: 1px solid color-mix(in srgb, var(--rd-key) 28%, transparent);
  color: var(--rd-key-deep);
  font-size: var(--rd-small);
  font-weight: 600;
}

.rd-ask__feet {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.rd-ask__feet .rd-btn { flex: 0 0 auto; }

/* Cancel, in the dialog's own colours rather than .rd-btn--ghost, which is
   white on a dark band and would be invisible on a card. */
.rd-ask__feet button[data-enquiry-close],
.rd-ask__feet button[data-close] {
  background: none;
  border: 1px solid var(--rd-line);
  color: var(--rd-body);
}
.rd-ask__feet button[data-enquiry-close]:hover,
.rd-ask__feet button[data-close]:hover {
  border-color: var(--rd-ink);
  color: var(--rd-ink);
  background: none;
  box-shadow: none;
}

.rd-btn.is-sending { opacity: 0.62; cursor: progress; }

.rd-ask__note {
  margin: 14px 0 0;
  font-size: var(--rd-micro);
  color: var(--rd-muted);
  text-align: right;
}

/* ---------------------------------------------------------- the thank you */

.rd-ask__done { text-align: center; padding: 48px 40px 42px; }
.rd-ask__done .rd-ask__lede { margin: 0 auto 26px; }
.rd-ask__done .rd-ask__title { margin-top: 18px; }

.rd-ask__tick { display: inline-block; width: 56px; height: 56px; color: var(--rd-green); }
.rd-ask__tick svg { width: 100%; height: 100%; }

/* drawn rather than appearing, which is the one place on this page where a
   half second of animation is the message */
.rd-ask__ring { stroke-dasharray: 133; stroke-dashoffset: 133;
                animation: rd-ask-draw 520ms ease-out 60ms forwards; }
.rd-ask__check { stroke-dasharray: 32; stroke-dashoffset: 32;
                 animation: rd-ask-draw 300ms ease-out 420ms forwards; }

@keyframes rd-ask-draw { to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------------ narrow */

@media (max-width: 599px) {
  .rd-ask { width: calc(100vw - 20px); }
  .rd-ask__card { padding: 28px 22px 22px; border-radius: var(--rd-radius); }
  .rd-ask__grid { grid-template-columns: 1fr; }
  .rd-ask__feet { flex-direction: column-reverse; align-items: stretch; }
  .rd-ask__feet .rd-btn { justify-content: center; }
  .rd-ask__note { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-ask[open] .rd-ask__card { animation: none; }
  .rd-ask__ring, .rd-ask__check { animation: none; stroke-dashoffset: 0; }
}

/* ------------------------------------------------- the stand in for a form

   IN PLACE OF A FORM THAT CANNOT POST. An Elementor form posts over AJAX to
   /wp-admin/admin-ajax.php, which does not exist behind this site, so every
   field filled in would be dropped. tools/patch_enquiry.py puts this where an
   exported page carries one, and it opens the dialog the rest of the site
   uses. */
.rd-askhere {
  max-width: 640px;
  margin: 0 auto;
  padding: 34px 30px;
  text-align: center;
  background: var(--rd-plum-soft);
  border: 1px solid var(--rd-card-line);
  border-radius: 18px;
  font-family: Inter, system-ui, sans-serif;
}

.rd-askhere__t {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rd-ink);
  margin: 0 0 8px;
}

.rd-askhere__s {
  font-size: var(--rd-small);
  line-height: 1.6;
  color: var(--rd-body);
  margin: 0 0 20px;
}
