/* Written by tools/build_component_css.py from the stylesheet beside each
   component in braintoy/components/. Change those, then run it. */

/* ---- braintoy/components/fonts.css */
/* The families words can be set in (fonts.py): each face named once; words
   picked out in one; and a component on a section with fonts of its own,
   whose headings read the nearest heading font set and whose other words the
   nearest words' font, its own before its section's and its page's. A page
   asks Google for a family only once it uses it. */
:root {
  --rd-face-inter: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --rd-face-space-grotesk: "Space Grotesk", Inter, "Segoe UI", system-ui, sans-serif;
  --rd-face-sora: Sora, Inter, "Segoe UI", system-ui, sans-serif;
  --rd-face-source-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --rd-face-plex-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.rd .rd-font-inter { font-family: var(--rd-face-inter); }
.rd .rd-font-space-grotesk { font-family: var(--rd-face-space-grotesk); }
.rd .rd-font-sora { font-family: var(--rd-face-sora); }
.rd .rd-font-source-serif { font-family: var(--rd-face-source-serif); }
.rd .rd-font-plex-mono { font-family: var(--rd-face-plex-mono); }

main.rd [data-fonts] :is(h1, h2, h3, h4, h5, h6) { font-family: var(--rd-font-heading); }

/* ---- braintoy/components/looks.css */
/* The ground a look gives a section (looks.ground): the ribbons of
   braintoy-wallpaper.js, a scene from braintoy-heroes.js or a film, drawn in a
   wall behind the band's content, and the wash laid over it, in an element of
   its own after the wall, under whatever the band draws in its ::before. The
   page opening draws the same wall. */
.rd-pagehero__wall,
.rd-pagehero__wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
}

/* A scene from braintoy-heroes.js draws on a transparent canvas over this
   ground, a warm light at the upper right of the wall's plum, and fades in
   once its first frame is painted. */
.rd-pagehero__wall[data-hero] {
  background:
    radial-gradient(circle at 80% 22%,
                    color-mix(in srgb, var(--rd-accent) 9%, transparent), transparent 52%),
    linear-gradient(117deg, var(--rd-wall-back) 0%, var(--rd-plum-deep) 100%);
  opacity: 0;
  transition: opacity 900ms ease;
}

.rd-pagehero__wall.is-drawn { opacity: 1; }

/* a section with a wall holds it behind its content, clipped rather than
   hidden so what sticks inside it still sticks (hidden for a browser without
   clip) */
[data-c]:has(> .rd-pagehero__wall) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}
video.rd-pagehero__wall { object-fit: cover; }

/* In a band after the opening that is taller than the screen, a film covers
   the first screen and a little more, near its own size rather than blown up
   to cover the whole band, and fades out below into the band's own ground. A
   band the screen holds whole it covers entirely, the fade falling below its
   foot. */
[data-c] ~ [data-c] > video.rd-pagehero__wall {
  height: min(100%, 100vh + 200px);
  -webkit-mask-image: linear-gradient(#000 100vh, transparent calc(100vh + 200px));
  mask-image: linear-gradient(#000 100vh, transparent calc(100vh + 200px));
}

/* ---- braintoy/components/parts.css */
/* a band of an inner page, and the heading that opens it (parts.band and
   parts.head) */
.rd-sec { padding: 76px 0; background: var(--rd-page); }
.rd-sec--soft { background: var(--rd-soft); }

/* a band a link jumps to by its name stops clear of the floating header,
   whose height braintoy-header-offset.js measures */
.rd-sec[id] { scroll-margin-top: max(120px, calc(var(--bt-header-h, 105px) + 16px)); }

.rd-sec__head { max-width: 62ch; margin: 0 0 30px; }

.rd-sec__head h2,
.rd-type-section {
  margin: 0 0 12px;
  color: var(--rd-ink);
  font-size: var(--rd-h2);
  line-height: 1.14;
  letter-spacing: -0.024em;
}

.rd-sec__head p { margin: 0; color: var(--rd-body); }

@media (max-width: 640px) {
  .rd-sec { padding: 56px 0; }
}

/* a roomy band (parts.ROOMY): more room around it, and larger headings, which
   the Roomy heading style (rd-type-roomy) draws anywhere */
.rd-sec--roomy {
  --ab-gap: clamp(64px, 8vw, 112px);
  padding: var(--ab-gap) 0;
}

.rd-sec--roomy.rd-sec--close { padding: 8px 0 var(--ab-gap); }

.rd-sec--roomy .rd-sec__head { max-width: 46rem; margin: 0 0 44px; }

.rd-sec--roomy .rd-sec__head h2,
.rd-sec--roomy h2.ab-h2,
.rd-type-roomy {
  margin: 0 0 18px;
  color: var(--rd-ink);
  font-size: clamp(34px, 4.4vw, 60px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.042em;
}

/* the theme's kit holds every heading of a page carrying it at 700
   (braintoy-redesign.css), and the Roomy heading keeps 800 there as the
   band's own headings do */
[class*="elementor-kit-"] .rd .rd-type-roomy { font-weight: 800; }

.rd-sec--roomy .ab-h2 em { font-style: normal; color: var(--rd-key); }

.rd-sec--roomy .rd-sec__head p { font-size: 17px; line-height: 1.6; }

/* a small label in a roomy band */
.rd-sec--roomy .ab-label {
  margin: 0 0 14px;
  color: var(--rd-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* a link that reads as one, with an arrow that moves (parts.link) */
.rd-sec--roomy .ab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid color-mix(in srgb, var(--rd-key) 35%, transparent);
  color: var(--rd-key);
  font-weight: 700;
  transition: border-color 200ms ease;
}

.rd-sec--roomy .ab-link svg { width: 15px; height: 15px; transition: transform 200ms ease; }
.rd-sec--roomy .ab-link:hover { border-color: var(--rd-key); }
.rd-sec--roomy .ab-link:hover svg { transform: translateX(3px); }

@media (max-width: 640px) {
  .rd-sec--roomy .rd-sec__head { margin-bottom: 30px; }

  .rd-sec--roomy .rd-sec__head h2,
  .rd-sec--roomy h2.ab-h2,
  .rd-type-roomy { font-size: 36px; }
}

/* A section set in the exported theme's type (parts.EXPORTED). The main it
   sits in sets the redesign's face, size, leading and colour, and the
   redesign's reset takes the room from under a paragraph, balances headings
   and boxes every decoration by its border; this gives the section back what
   the theme gives a page: its body type and paper, a paragraph's room under
   it, pictures at the size their rules give them, headings that wrap as text
   does, and decorations boxed by their content. */
.rd-exported {
  background: var(--bt-paper, var(--rd-page));
  color: var(--bt-muted, #545454);
  font-family: "Nunito", sans-serif;
  font-size: 18px;
  line-height: 32.4px;
  font-feature-settings: normal;
  text-rendering: auto;
}

@media (max-width: 1300px) {
  .rd-exported { font-size: 17px; line-height: 29px; }
}

:where(.rd-exported) p { padding-bottom: 1.5em; }
:where(.rd-exported) img { max-width: none; }
:where(.rd-exported) :is(h1, h2, h3, h4) { text-wrap: wrap; }

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

/* a band of a product's own page (parts.plain_band), as the mlOS page draws
   them: its own colours, a white or tinted ground, a column narrower than
   the redesign's, an eyebrow under the brand's mark, a heading and a
   sentence, and the button that pauses a film (parts.hold) */
.ml { --ink:#241a30; --plum:#492b70; --red:#e64b38; --red-ink:#b83c2d; --line:#d9d0e4;
      --muted:#645b73; --paper:#ffffff; --sink:#f4f1f8; }
.ml * { box-sizing:border-box; }
.ml { margin:0; color:var(--ink); background:var(--paper);
      font:16px/1.65 Inter,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
.ml .ml-in { max-width:1120px; margin:0 auto; padding:0 40px; }
.ml h2, .ml h3, .ml p, .ml ul { margin:0; }
/* the theme sets its own face and an italic on headings */
.ml h2, .ml h3 { font-family:inherit; font-style:normal; }
.ml li { list-style:none; }
.ml .ml-eyebrow { display:flex; align-items:center; gap:10px; font-size:12px;
         letter-spacing:.06em; text-transform:uppercase; font-weight:700;
         color:var(--red-ink); margin:0 0 10px; }
.ml .ml-eyebrow::before { content:""; flex:0 0 auto; width:12px; height:12px;
         background:currentColor;
         -webkit-mask:var(--rd-mark) center/contain no-repeat;
         mask:var(--rd-mark) center/contain no-repeat; }
/* Colour is set on each heading rather than inherited from the band it sits in.
   The theme colours h1 to h4 outright, and a colour set on an element beats one
   handed down to it however dark the ground underneath happens to be. */
.ml .ml-h2 { font-size:clamp(24px,3vw,34px); line-height:1.15; font-weight:700;
         margin:0 0 12px; color:var(--ink); }
.ml .ml-lede { color:var(--muted); max-width:46em; }

/* Anything moving on its own for more than five seconds needs a way to stop it.
   The films show none of the browser's controls, so each has this hold in a
   corner of its own box. */
.ml .ml-hold { position:absolute; right:22px; bottom:22px; z-index:3;
         width:34px; height:34px; padding:0; border-radius:50%; cursor:pointer;
         border:1px solid rgba(255,255,255,.55); background:rgba(43,23,67,.55);
         color:#fff; display:flex; align-items:center; justify-content:center; }
.ml .ml-hold svg { width:13px; height:13px; fill:currentColor; }
.ml .ml-hold:hover { background:rgba(43,23,67,.85); border-color:#fff; }
.ml .ml-hold:focus-visible { outline:3px solid #ffb27a; outline-offset:3px; }

.ml-band { padding:64px 0; }
.ml-band--soft { background:var(--sink); }

.ml figure { margin:0; }
.ml video { width:100%; height:auto; display:block;
         border-radius:10px; border:1px solid var(--line); background:#000; }
.ml figcaption { font-size:13px; color:var(--muted); margin-top:9px; }

@media (max-width:900px) {
  .ml .ml-in { padding:0 24px; }
  .ml-band { padding:46px 0; }
}

:root[data-theme="dark"] .ml,
:root [data-night] .ml,
:root .ml[data-night] {
  --ink: #f0eaf7;
  --plum: #c8aef0;
  --red: #ff7a63;
  --red-ink: #ff9c88;
  --line: #332a47;
  --muted: #a79fb6;
  --paper: #1c1629;
  --sink: #171223;
}

:root[data-theme="dark"] .ml h1, :root[data-theme="dark"] .ml h2,
:root[data-theme="dark"] .ml h3, :root[data-theme="dark"] .ml h4,
:root [data-night] .ml h1,
:root .ml[data-night] h1,
:root [data-night] .ml h2,
:root .ml[data-night] h2,
:root [data-night] .ml h3,
:root .ml[data-night] h3,
:root [data-night] .ml h4,
:root .ml[data-night] h4 {
  color: inherit;
}

/* A band set as the Training page sets them (parts.training_band): its own
   colours, in two reds, the brand one a label's mark is drawn in and a deeper
   one for the label's words, which reads at 4.5 to one on white where the
   brand red does not; its type and a 1220px column; headings and paragraphs
   that take nothing from the theme; and a small label under the brand's
   mark. */
.tr { --ink:#1b1226; --soft:#574a68; --quiet:#766d7e; --rule:#ded5e9;
      --plum:#492b70; --accent:#e64b38; --accent-ink:#b83c2d; }
.tr, .tr * { box-sizing:border-box; }
/* set in the face of the page around it, where an exported section's own
   rule would hand it the exported theme's */
.tr { color:var(--ink); font-family:inherit; font-size:17px; line-height:1.65; }
.tr .inner { max-width:1220px; margin:0 auto; padding:0 40px; }
/* the theme gives every heading its own colour and slants the second level, so
   both are handed back to whatever the band around them is doing */
.tr h1, .tr h2 { margin:0; font-weight:700; line-height:1.14;
      color:inherit; font-style:normal; }
/* the site's weight and tracking for a heading, named with .rd so the
   exported theme's weight does not outrank it */
.rd .tr :is(h1, h2) { font-weight:800; letter-spacing:-.028em; }
.tr p { margin:0; }
.tr ul { margin:0; padding:0; }
.tr li { list-style:none; }

.tr .eyebrow { display:flex; align-items:center; gap:10px; font-size:12px;
      font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;
      letter-spacing:.06em; text-transform:uppercase; font-weight:700;
      color:var(--accent-ink); margin-bottom:10px; }
/* the site's mark, the dot grid of the logo (--rd-mark in braintoy-redesign.css) */
.tr .eyebrow:before { content:''; flex:0 0 auto; width:12px; height:12px;
      background:var(--accent);
      -webkit-mask:var(--rd-mark) center/contain no-repeat;
      mask:var(--rd-mark) center/contain no-repeat; }



@media (max-width:760px) {
  .tr .inner { padding:0 20px; }
}
@media (prefers-reduced-motion:reduce) {
  .tr, .tr * { transition:none !important; }
}

/* in the dark the palette is redefined and everything inside follows, and the
   headings take the colour of the band around them */
:root[data-theme="dark"] .tr,
:root [data-night] .tr,
:root .tr[data-night] {
  --ink: #f0eaf7;
  --soft: #a79fb6;
  --quiet: #8f869e;
  --rule: #332a47;
  --plum: #c8aef0;
  --accent: #ff7a63;
  --accent-ink: #ff9c88;
}

:root[data-theme="dark"] .tr h1, :root[data-theme="dark"] .tr h2,
:root[data-theme="dark"] .tr h3, :root[data-theme="dark"] .tr h4,
:root [data-night] .tr h1,
:root .tr[data-night] h1,
:root [data-night] .tr h2,
:root .tr[data-night] h2,
:root [data-night] .tr h3,
:root .tr[data-night] h3,
:root [data-night] .tr h4,
:root .tr[data-night] h4 {
  color: inherit;
}

/* The slow drift of a photograph on a Training band (parts.drift), in a frame
   carrying data-drift, which holds the photograph alone or with words laid
   over it, so what it clips is the picture and never a caption under it.
   braintoy-drift.js adds bt-drift-js to the root, and bt-drift-on to a frame
   while it is near the screen; without the script the photographs are still.
   Transform only, so nothing is laid out again, and every movement scales the
   picture enough that it never shows the frame's ground at a corner: a scale
   of 1.16 leaves 8 per cent of the picture outside the frame on each side, and
   every pair below keeps at least 2.5 per cent in hand. */

/* in, drifting up and to the left */
@keyframes bt-drift-1 {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.6%, -2%, 0); }
}

/* out, starting close and low */
@keyframes bt-drift-2 {
  from { transform: scale(1.17) translate3d(1.4%, 1.8%, 0); }
  to   { transform: scale(1.03) translate3d(0, 0, 0); }
}

/* a pan across at one size, which reads as a camera rather than a zoom */
@keyframes bt-drift-3 {
  from { transform: scale(1.12) translate3d(-2.4%, 0, 0); }
  to   { transform: scale(1.12) translate3d(2.4%, 0, 0); }
}

/* rising, and closing in a little */
@keyframes bt-drift-4 {
  from { transform: scale(1.09) translate3d(0, 1.8%, 0); }
  to   { transform: scale(1.17) translate3d(0, -1.8%, 0); }
}

/* a diagonal sweep, pulling back */
@keyframes bt-drift-5 {
  from { transform: scale(1.15) translate3d(-1.8%, 1.2%, 0); }
  to   { transform: scale(1.04) translate3d(1.8%, -1.2%, 0); }
}

html.bt-drift-js [data-drift] { overflow: hidden; }

html.bt-drift-js [data-drift] img {
  animation-duration: 26s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-play-state: paused;
  transform-origin: center;
}

/* will-change only while it runs, so a photograph off the screen holds no
   layer of its own */
html.bt-drift-js [data-drift].bt-drift-on img {
  animation-play-state: running;
  will-change: transform;
}

/* each its own length, so two frames on the screen at once never move as one */
html.bt-drift-js [data-drift="1"] img { animation-name: bt-drift-1; animation-duration: 24s; }
html.bt-drift-js [data-drift="2"] img { animation-name: bt-drift-2; animation-duration: 30s; }
html.bt-drift-js [data-drift="3"] img { animation-name: bt-drift-3; animation-duration: 27s; }
html.bt-drift-js [data-drift="4"] img { animation-name: bt-drift-4; animation-duration: 33s; }
html.bt-drift-js [data-drift="5"] img { animation-name: bt-drift-5; animation-duration: 21s; }

@media (prefers-reduced-motion: reduce) {
  html.bt-drift-js [data-drift] img { animation: none; }
}

/* A box that leans toward the pointer (parts.tilt, /js/braintoy-tilt.js).
   What is in it stands in its depth, a part marked raised a little above it,
   so the two part as it leans, and its sheen, its ::after and a raised
   part's, lies over it where the script says the pointer is, as strong as
   the script says it has risen, and not at all while it is flat. A box keeps
   its ::after for its sheen. */
[data-tilt] { transform-style: preserve-3d; }

:where([data-tilt]) { position: relative; }

[data-tilt] [data-tilt-raised] { translate: 0 0 var(--tilt-raise, 40px); }

[data-tilt]::after,
[data-tilt] [data-tilt-raised]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--tilt-x, 50%) var(--tilt-y, 50%),
                              rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 60%);
  opacity: var(--tilt-glow, 0);
  pointer-events: none;
}

:root[data-theme="dark"] [data-tilt]::after,
:root[data-theme="dark"] [data-tilt] [data-tilt-raised]::after,
:root [data-night] [data-tilt]::after,
:root [data-tilt][data-night]::after,
:root [data-night] [data-tilt] [data-tilt-raised]::after,
:root [data-tilt][data-night] [data-tilt-raised]::after {
  background: radial-gradient(circle at var(--tilt-x, 50%) var(--tilt-y, 50%),
                              rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%);
}

/* The four colours a product is shown in (parts.HUES), each for the light
   theme and the dark: its ground; its accent, which its button is filled
   with, and the words on that button; the ink of its small words; the line
   and the shadow of what is framed on it; and its glow, the colour it is
   shown by on a dark ground in either theme. */
.rd-hue--red {
  --hue-ground: #fdf3f1; --hue-accent: #c93a28; --hue-on: #ffffff; --hue-ink: #b8361f;
  --hue-line: #f1d6cf; --hue-shade: rgba(120, 40, 20, 0.16); --hue-glow: #ff7a63;
}

.rd-hue--blue {
  --hue-ground: #f0f4fd; --hue-accent: #2852b8; --hue-on: #ffffff; --hue-ink: #2852b8;
  --hue-line: #d6e0f6; --hue-shade: rgba(30, 60, 140, 0.16); --hue-glow: #7aa2ff;
}

.rd-hue--green {
  --hue-ground: #eff8f2; --hue-accent: #137044; --hue-on: #ffffff; --hue-ink: #137044;
  --hue-line: #cfe9d9; --hue-shade: rgba(20, 90, 50, 0.16); --hue-glow: #5fd39a;
}

.rd-hue--plum {
  --hue-ground: #f5f0fb; --hue-accent: #6b3fa8; --hue-on: #ffffff; --hue-ink: #6b3fa8;
  --hue-line: #e2d6f2; --hue-shade: rgba(70, 30, 120, 0.16); --hue-glow: #c3a3f0;
}

:root[data-theme="dark"] .rd-hue--red,
:root [data-night] .rd-hue--red,
:root .rd-hue--red[data-night] {
  --hue-ground: #2a1016; --hue-accent: #ff8a70; --hue-on: #1b1030; --hue-ink: #ff8a70;
  --hue-line: rgba(255, 138, 112, 0.26); --hue-shade: rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .rd-hue--blue,
:root [data-night] .rd-hue--blue,
:root .rd-hue--blue[data-night] {
  --hue-ground: #0e1830; --hue-accent: #8fb0ff; --hue-on: #1b1030; --hue-ink: #8fb0ff;
  --hue-line: rgba(143, 176, 255, 0.26); --hue-shade: rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .rd-hue--green,
:root [data-night] .rd-hue--green,
:root .rd-hue--green[data-night] {
  --hue-ground: #0b2017; --hue-accent: #5fd39a; --hue-on: #1b1030; --hue-ink: #5fd39a;
  --hue-line: rgba(95, 211, 154, 0.26); --hue-shade: rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .rd-hue--plum,
:root [data-night] .rd-hue--plum,
:root .rd-hue--plum[data-night] {
  --hue-ground: #1c1130; --hue-accent: #c3a3f0; --hue-on: #1b1030; --hue-ink: #c3a3f0;
  --hue-line: rgba(195, 163, 240, 0.26); --hue-shade: rgba(0, 0, 0, 0.55);
}

/* ---- braintoy/components/type.css */
/* Words given a style, a size or a colour (type_styles.py).

   Body and Small print: the site's own words, at its base size and its small
   one. The sizes: words from small to extra large, and headings from small to
   display, which grow with the screen so a phone keeps them in proportion.
   The colours: the site's palette, each the theme's own colour in either
   theme. A size or a colour outranks the style it is given over, and a
   highlight keeps its own colour. */
.rd-type-body {
  color: var(--rd-body);
  font-size: var(--rd-base);
  line-height: 1.6;
}

.rd-type-fine {
  color: var(--rd-muted);
  font-size: var(--rd-small);
  line-height: 1.6;
}

.rd .rd-size-s { font-size: var(--rd-small); }
.rd .rd-size-m { font-size: var(--rd-base); }
.rd .rd-size-l { font-size: var(--rd-lead); }
.rd .rd-size-xl { font-size: 22px; }

.rd .rd-size-hs { font-size: var(--rd-h3); }
.rd .rd-size-hm { font-size: var(--rd-h2); }
.rd .rd-size-hl { font-size: clamp(32px, 4vw, 56px); }
.rd .rd-size-hxl { font-size: var(--rd-display); }
.rd .rd-size-hd { font-size: clamp(44px, 6.6vw, 84px); }

.rd .rd-ink-key { color: var(--rd-key); }
.rd .rd-ink-accent { color: var(--rd-accent); }
.rd .rd-ink-amber { color: var(--rd-amber); }
.rd .rd-ink-green { color: var(--rd-green); }
.rd .rd-ink-plum { color: var(--rd-plum); }
.rd .rd-ink-ink { color: var(--rd-ink); }
.rd .rd-ink-body { color: var(--rd-body); }
.rd .rd-ink-muted { color: var(--rd-muted); }
.rd .rd-ink-page { color: var(--rd-page); }
.rd .rd-ink-soft { color: var(--rd-soft); }
.rd .rd-ink-cream { color: var(--rd-cream); }
.rd .rd-ink-key-soft { color: var(--rd-key-soft); }
.rd .rd-ink-plum-soft { color: var(--rd-plum-soft); }
.rd .rd-ink-wall-back { color: var(--rd-wall-back); }

/* ---- braintoy/components/blocks/button.css */
/* a button in a section, standing in the middle of its row, with the ones
   beside it 10px apart */
.rd-free__btn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  height: 100%;
}

/* on a phone, buttons that stand one under another across the whole width,
   their words in the middle */
@media (max-width: 620px) {
  .rd-free__btn--across { flex-direction: column; align-items: stretch; }
  .rd-free__btn--across .rd-btn { justify-content: center; width: 100%; }
}

/* ---- braintoy/components/blocks/card.css */
/* a card in a free layout band, filling its block: the picture takes the
   room the words leave, so a taller block shows more of it */
.rd-free__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
}

.rd-free__card-pic {
  position: relative;
  flex: 1 1 0;
  min-height: 120px;
  background: var(--rd-soft);
}

.rd-free__card-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-free__card-in { display: grid; gap: 8px; padding: 20px 22px 22px; }

.rd-free__card h3 {
  margin: 0;
  color: var(--rd-ink);
  font-size: var(--rd-h3);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.rd-free__card p { margin: 0; color: var(--rd-body); font-size: 15px; line-height: 1.55; }
.rd-free__card p em { font-style: normal; color: var(--rd-key); }

.rd-free__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  color: var(--rd-key);
  font-size: 15px;
  font-weight: 700;
}

.rd-free__more svg { width: 14px; height: 14px; transition: transform 200ms ease; }
.rd-free__more:hover svg { transform: translateX(3px); }

@media (max-width: 620px) {
  .rd-free__card-pic { flex: none; height: 200px; }
}

/* a card in one of the site's styles, drawn by its component's rules: the
   list its component draws it in holds it alone, as large as the block,
   whatever the list does with a row of cards, and the card fills it, as
   cards side by side in a row of the site's are as tall as each other */
.rd-free .rd-free__b--card .rd-free__set {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.rd-free__set > * { flex: 1 1 auto; }
.rd-free__b--card > :is(.rd-work, .rd-case) { height: 100%; }

/* ---- braintoy/components/blocks/column.css */
/* blocks one under another in a column, each keeping the room under it its
   style gives it, and what is in it at the top, in the middle or at the foot
   of the rows the column takes */
.rd-free__col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rd-free__col--center { justify-content: center; }
.rd-free__col--end { justify-content: flex-end; }
.rd-free__col > .rd-free__b { flex: none; }

/* in a column a picture stands at its own shape, a film at a film's, a 3D
   shape at four by three, a plain card's picture as it does on a phone and
   empty space as a row's least height, since a block in it has no rows of
   its own to fill */
.rd-free__col .rd-free__b--picture { aspect-ratio: auto; }
.rd-free__col .rd-free__b--picture > .rd-free__frame { position: relative; display: block; }
.rd-free__col .rd-free__b--picture .rd-free__pic { position: static; display: block; height: auto; }
.rd-free__col .rd-free__b--film { aspect-ratio: 16 / 9; }
.rd-free__col .rd-free__b--shape { aspect-ratio: 4 / 3; }
.rd-free__col .rd-free__card-pic { flex: none; height: 200px; }
.rd-free__col .rd-free__space { height: 48px; aspect-ratio: auto; }

/* ---- braintoy/components/blocks/film.css */
/* a film in a free layout band, filling its block without pushing the rows
   apart; on a phone it keeps the shape its block has on a wide screen */
.rd-free__b--film { position: relative; }

/* the frame it fills, which leans toward the pointer while its switch is on */
.rd-free__b--film > .rd-free__frame {
  position: absolute;
  inset: 0;
  border-radius: var(--rd-radius);
}

.rd-free__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--rd-plum-deep, #1d1030);
  object-fit: cover;
}

@media (max-width: 620px) {
  .rd-free__b--film { aspect-ratio: var(--ratio); }
}

/* A film opened large (film.py): a card of the film's own shape whatever its
   cell, its height following its width so the rows grow round it, in the
   middle of a cell taller than it, on a phone as well. */
.rd-free__b--film:has(> .rd-free__open),
.rd-free__b--film:has(> .rd-free__seen) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: auto;
}

/* the card, which leans toward the pointer while its switch is on, with a
   soft glow of the film's own neon round its edge, breathing slowly */
.rd-free__open {
  --reel-cool: var(--rd-wall-lilac, #a97fe8);
  --reel-warm: var(--rd-accent, #ff9d4d);
  --reel-glow: 0.5;
  position: relative;
  z-index: 0;
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--rd-radius-lg, 22px);
  background: var(--rd-wall-back, #140a26);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* A film played while it is seen (film.py): the film itself in the same
   frame as the card, of its own shape, with the same glow round its edge,
   and its bar under it. */
.rd-free__seen {
  --reel-cool: var(--rd-wall-lilac, #a97fe8);
  --reel-warm: var(--rd-accent, #ff9d4d);
  --reel-glow: 0.5;
  display: grid;
  flex: none;
  gap: 14px;
  width: 100%;
  margin: 0;
}

.rd-free__seen-frame {
  position: relative;
  z-index: 0;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--rd-radius-lg, 22px);
  background: var(--rd-wall-back, #140a26);
}

:root[data-theme="dark"] .rd-free__open,
:root[data-theme="dark"] .rd-free__seen,
:root [data-night] .rd-free__open,
:root .rd-free__open[data-night],
:root [data-night] .rd-free__seen,
:root .rd-free__seen[data-night] { --reel-glow: 0.62; }

.rd-free__open::before,
.rd-free__seen-frame::before {
  content: "";
  position: absolute;
  inset: 3% 1% -1.5%;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(115deg, var(--reel-cool), #d873c8 50%, var(--reel-warm));
  opacity: var(--reel-glow);
  filter: blur(24px);
  animation: rd-free-glow 7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes rd-free-glow {
  from { opacity: calc(var(--reel-glow) * 0.72); transform: translate3d(-1.5%, 1%, 0) scale(0.98); }
  to { opacity: var(--reel-glow); transform: translate3d(1.5%, -1%, 0) scale(1.02); }
}

/* its picture, the film's own, filling the card with nothing cut off, and a
   fine rim of its neon outside its edge, cool above and warm below, over
   the deep ground the card shows where there is no picture */
.rd-free__still,
.rd-free__seeing {
  --reel-rim: -1px -1px 0 0 color-mix(in srgb, var(--reel-cool) 80%, transparent),
              1px 1px 0 0 color-mix(in srgb, var(--reel-warm) 75%, transparent),
              0 0 0 1px rgba(255, 255, 255, 0.06);
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: inherit;
  box-shadow: var(--reel-rim), 0 22px 44px -28px rgba(43, 23, 67, 0.45);
  object-fit: cover;
  transition: filter 320ms ease;
}

:root[data-theme="dark"] .rd-free__still,
:root[data-theme="dark"] .rd-free__seeing,
:root [data-night] .rd-free__still,
:root .rd-free__still[data-night],
:root [data-night] .rd-free__seeing,
:root .rd-free__seeing[data-night] {
  box-shadow: var(--reel-rim), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.rd-free__open:hover .rd-free__still { filter: brightness(1.08) saturate(1.08); }

.rd-free__open:focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 4px;
}

/* the round play button in its middle, with a ring round it that opens out
   while the card is pointed at or reached by the keyboard, and stands a
   little above the card as it leans */
.rd-free__play {
  --tilt-raise: 28px;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: clamp(54px, 15%, 86px);
  height: auto;
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  background:
    radial-gradient(120% 120% at 30% 22%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1) 58%),
    rgba(20, 11, 38, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 14px 34px -12px rgba(8, 3, 20, 0.7);
  transition: scale 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rd-free__play::before {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  transition: inset 260ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 260ms ease;
}

.rd-free__play svg {
  width: 40%;
  height: 40%;
  translate: 6% 0;
  fill: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(8, 3, 20, 0.35));
}

.rd-free__open:hover .rd-free__play,
.rd-free__open:focus-visible .rd-free__play { scale: 1.06; }

.rd-free__open:hover .rd-free__play::before,
.rd-free__open:focus-visible .rd-free__play::before {
  inset: -17px;
  border-color: rgba(255, 255, 255, 0.7);
}

/* the label in its corner: that it has sound, and how long it runs */
.rd-free__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: rgba(12, 7, 24, 0.64);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.rd-free__tag svg { width: 14px; height: 14px; }

.rd-free__runs {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}

.rd-free__runs::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* the bar under a film played while it is seen, nothing of it over the
   film: a button pausing it and playing it again and one giving it its
   sound, each showing the drawing of what it does now, then how far it has
   run and how long is left of it */
.rd-free__seen-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.rd-free__seen-do {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--rd-ink) 22%, transparent);
  border-radius: 50%;
  background: var(--rd-card, #ffffff);
  color: var(--rd-ink);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease,
              scale 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rd-free__seen-do:hover {
  border-color: color-mix(in srgb, var(--rd-ink) 55%, transparent);
  scale: 1.06;
}

.rd-free__seen-do[aria-pressed="true"] {
  border-color: transparent;
  background: var(--rd-ink);
  color: var(--rd-page);
}

.rd-free__seen-do:focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 3px;
}

.rd-free__seen-do svg { width: 18px; height: 18px; fill: currentColor; }
.rd-free__seen-do .is-play { translate: 1px 0; }

.rd-free__seen-do .is-pause,
.rd-free__seen.is-playing .rd-free__seen-do .is-play,
.rd-free__seen-do[aria-pressed="true"] .is-silent,
.rd-free__seen-do .is-sounding { display: none; }

.rd-free__seen.is-playing .rd-free__seen-do .is-pause,
.rd-free__seen-do[aria-pressed="true"] .is-sounding { display: block; }

/* how far it has run, in its own neon */
.rd-free__ran {
  flex: 1 1 auto;
  height: 4px;
  margin: 0 4px;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in srgb, var(--rd-ink) 12%, transparent);
}

.rd-free__ran > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--reel-cool), #d873c8 55%, var(--reel-warm));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* how long is left of it */
.rd-free__seen-left {
  flex: none;
  min-width: 3.2em;
  color: var(--rd-body);
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* the dialog it opens in, over the whole page: the dark laid over the page,
   which holds still behind it, the film in its middle at its own shape, up
   to 1200px wide and never taller than the screen allows, and the button
   that closes it in the corner. The dialog covers the screen, so a click on
   the dark round the film is the dialog's own. */
.rd-free__large {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 76px 32px 40px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  color: #ffffff;
  overflow: hidden;
}

.rd-free__large[open] {
  display: grid;
  place-items: center;
  animation: rd-free-dim 220ms ease-out;
}

.rd-free__large::backdrop {
  background: rgba(9, 5, 19, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rd-free__large[open]::backdrop { animation: rd-free-dim 220ms ease-out; }

:root:has(.rd-free__large[open]) { overflow: hidden; }

.rd-free__playing {
  display: block;
  width: min(1200px, 100%, calc((100vh - 116px) * 16 / 9));
  width: min(1200px, 100%, calc((100dvh - 116px) * 16 / 9));
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px -40px rgba(0, 0, 0, 0.9),
              0 0 90px -30px color-mix(in srgb, var(--rd-wall-lilac, #a97fe8) 70%, transparent);
  object-fit: contain;
}

.rd-free__large[open] .rd-free__playing { animation: rd-free-rise 380ms cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes rd-free-dim {
  from { opacity: 0; }
}

@keyframes rd-free-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
}

.rd-free__shut {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.rd-free__shut:hover { background: rgba(255, 255, 255, 0.24); }

.rd-free__shut:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.rd-free__shut svg { width: 18px; height: 18px; }

/* on a phone the card has room round it for its glow, and the film opened
   fills the width of the screen */
@media (max-width: 620px) {
  .rd-free__b--film:has(> .rd-free__open) { padding-block: 10px; }
  .rd-free__tag { left: 10px; bottom: 10px; padding: 5px 9px 5px 8px; font-size: 12px; }
  .rd-free__seen { gap: 10px; }
  .rd-free__seen-do { width: 44px; height: 44px; }
  .rd-free__large { padding: 68px 0 28px; }
  .rd-free__playing { border-radius: 0; }
  .rd-free__shut { top: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-free__open::before,
  .rd-free__seen-frame::before,
  .rd-free__large[open],
  .rd-free__large[open]::backdrop,
  .rd-free__large[open] .rd-free__playing { animation: none; }

  .rd-free__still,
  .rd-free__play,
  .rd-free__play::before,
  .rd-free__seen-do { transition: none; }
}

/* ---- braintoy/components/blocks/free_layout.css */
/* a section's grid: twelve columns 24px apart, or as far apart as its
   --gutter says, rows at least 48px high that grow where
   what is in them needs more room, or as tall as they are where the
   components on it take every row or the section is as tall as what is on it
   (--least), and each block or component where it was placed, from the --at
   its style gives it (grid.py keeps these sizes) */
.rd-free {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(var(--least, 48px), auto));
  gap: 16px var(--gutter, 24px);
}

/* the grid is never a layer of its own, which the exported theme makes of
   every child of a band named hero, so what a band lays over itself, a wash
   or a curve drawn by the component leading it, stays the band's */
[data-c] > .rd-free {
  position: static;
  z-index: auto;
}

.rd-free__b { grid-area: var(--at); min-width: 0; }

/* a block or a component with a width takes that part of the columns it
   spans, at their start, in their middle or at their end (--part and
   --stands), or standing at their start or end reaches past them toward the
   room beside it, its cells its own all the same; without one it fills them */
.rd-free > .rd-free__b { width: var(--part, auto); justify-self: var(--stands, auto); }

/* a section as tall as what is on it, its rows standing right under each
   other, the words keeping the room under them their styles give them, as in
   a column of the site's own */
.rd-free.rd-free--fit { row-gap: 0; }

/* a section at least as tall as the screen, what is on it at its top, in its
   middle or at its foot */
[data-c]:has(.rd-free--screen) {
  display: grid;
  align-content: start;
  min-height: 100vh;
  min-height: 100svh;
}

[data-c]:has(.rd-free--sit-center) { align-content: center; }
[data-c]:has(.rd-free--sit-end) { align-content: end; }

/* what lines a block's words up, the same in every kind of block */
.rd-free--start { text-align: left; justify-content: flex-start; }
.rd-free--center { text-align: center; justify-content: center; }
.rd-free--end { text-align: right; justify-content: flex-end; }

/* on a phone the blocks stand one under another, full width, in reading
   order */
@media (max-width: 620px) {
  .rd-free {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 18px;
  }

  .rd-free__b { grid-area: auto; }
  .rd-free > .rd-free__b { width: auto; justify-self: auto; }

  /* stacked blocks keep the phone's gap in a section as tall as what is on it */
  .rd-free.rd-free--fit { row-gap: 18px; }
}

/* ---- braintoy/components/blocks/heading.css */
/* a heading in a free layout band, in three sizes of its own, with the words
   picked out in the accent colour */
.rd-free__h {
  margin: 0;
  color: var(--rd-ink);
  font-weight: 800;
  text-wrap: balance;
}

.rd-free__h--l {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.038em;
}

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

.rd-free__h--s {
  font-size: var(--rd-h3);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.rd-free__h em { font-style: normal; color: var(--rd-key); }

/* a heading in one of the site's styles keeps its highlight, in the colour
   its style gives it or else the brand's */
.rd-free__styled em { font-style: normal; color: var(--rd-key); }

/* ---- braintoy/components/blocks/icon_words.css */
/* an icon on a tinted disc, over a title and a line, in a free layout band */
.rd-free__iw { display: grid; align-content: start; gap: 8px; }

.rd-free__iw-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 16px;
  background: var(--rd-key-soft);
  color: var(--rd-key);
}

.rd-free__iw-ico svg { width: 26px; height: 26px; }

.rd-free__iw h3 {
  margin: 0;
  color: var(--rd-ink);
  font-size: var(--rd-h3);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.rd-free__iw p { margin: 0; color: var(--rd-body); font-size: 15px; line-height: 1.55; }
.rd-free__iw p em { font-style: normal; color: var(--rd-key); }

/* ---- braintoy/components/blocks/line.css */
/* a line across its block, in the middle of its height, or empty space,
   which holds the room its block has on a wide screen (--ratio) where its
   rows have no least height of their own */
.rd-free__b--line { display: flex; align-items: center; }

.rd-free__line {
  width: 100%;
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1.5px solid var(--rd-line);
}

.rd-free__space { width: 100%; height: 100%; aspect-ratio: var(--ratio); }

@media (max-width: 620px) {
  .rd-free__space { height: 24px; }
}

/* ---- braintoy/components/blocks/number.css */
/* a figure in a free layout band, and what it counts */
.rd-free__num p { margin: 0; }

.rd-free__n {
  color: var(--rd-key);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.rd-free__nl {
  margin-top: 10px;
  color: var(--rd-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---- braintoy/components/blocks/picture.css */
/* a picture in a free layout band, as large as its block and never larger,
   so a tall photograph cannot push the rows apart; on a phone it keeps the
   shape its block has on a wide screen */
.rd-free__b--picture { position: relative; }

/* the frame it fills, which leans toward the pointer while its switch is on */
.rd-free__b--picture > .rd-free__frame {
  position: absolute;
  inset: 0;
  border-radius: var(--rd-radius);
}

.rd-free__pic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.rd-free__pic--cover { object-fit: cover; }
.rd-free__pic--contain { object-fit: contain; }

@media (max-width: 620px) {
  .rd-free__b--picture { aspect-ratio: var(--ratio); }
}

/* ---- braintoy/components/blocks/quote.css */
/* somebody's words in a free layout band, the phrase that carries them in the
   brand's colour, and who said it under them */
.rd-free__q { margin: 0; }

.rd-free__q blockquote {
  margin: 0 0 18px;
  color: var(--rd-ink);
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.014em;
}

.rd-free__q mark { background: none; color: var(--rd-key); }

.rd-free__q figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rd-muted);
  font-size: var(--rd-small);
  line-height: 1.4;
}

.rd-free__q figcaption > span { display: grid; }
.rd-free__q figcaption b { color: var(--rd-ink); font-weight: 700; }

.rd-free__face {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rd-tint-bg, var(--rd-key-soft));
  color: var(--rd-tint-ink, var(--rd-key));
  font-size: 15px;
  font-weight: 800;
  object-fit: cover;
}

.rd-free__face[data-tint="plum"] { --rd-tint-ink: var(--rd-plum); --rd-tint-bg: var(--rd-plum-soft); }
.rd-free__face[data-tint="green"] { --rd-tint-ink: var(--rd-green);
  --rd-tint-bg: color-mix(in srgb, var(--rd-green) 11%, var(--rd-page)); }
.rd-free__face[data-tint="amber"] { --rd-tint-ink: var(--rd-amber);
  --rd-tint-bg: color-mix(in srgb, var(--rd-amber) 13%, var(--rd-page)); }

/* ---- braintoy/components/blocks/shape.css */
/* A 3D shape in a free layout band (shape.py): a cube, a prism, rings, an
   orb, a stack or a pyramid, its faces stood in depth by CSS alone, as glass
   in the colours of its hue (rd-hue in ../parts.css) over the concentric
   rings the site's own 3D pictures stand on, with a glow behind it and its
   shadow under it. It is as large as its block lets it be (--s, a share of
   the block's shorter side), and never larger, so it cannot push the rows
   apart; on a phone, and in a section as tall as what is on it, the block
   keeps the shape it has on a wide screen. A picture chosen for it fills the
   block in its place, as a Picture block's does. */
.rd-free__b--shape {
  position: relative;
  container-type: size;
}

.rd-free__b--shape > .rd-free__frame {
  position: absolute;
  inset: 0;
  border-radius: var(--rd-radius);
}

/* the frame, which leans toward the pointer while its switch is on, the
   shape leaning with it; its ::after is the sheen parts.css gives it */
.rd-shape {
  --s: min(62cqmin, 380px);
  --tip: -20deg;
  --ring: var(--hue-line);
  --glass: color-mix(in srgb, var(--hue-accent) 40%, transparent);
  --glass-deep: color-mix(in srgb, var(--hue-accent) 68%, transparent);
  --glass-lit: color-mix(in srgb, var(--hue-glow) 40%, #ffffff);
  --glint: color-mix(in srgb, var(--hue-glow) 46%, transparent);
  --edge: color-mix(in srgb, #ffffff 82%, var(--hue-glow));
  --halo: color-mix(in srgb, var(--hue-glow) 34%, transparent);
  --hoop: var(--hue-accent) var(--hue-glow) var(--hue-ink)
          color-mix(in srgb, var(--hue-accent) 50%, var(--hue-glow));
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--rd-radius);
  perspective: calc(var(--s) * 5);
}

:root[data-theme="dark"] .rd-shape,
:root [data-night] .rd-shape,
:root .rd-shape[data-night] {
  --ring: color-mix(in srgb, var(--hue-glow) 22%, transparent);
  --glass: color-mix(in srgb, var(--hue-glow) 16%, transparent);
  --glass-deep: color-mix(in srgb, var(--hue-glow) 34%, transparent);
  --glass-lit: color-mix(in srgb, var(--hue-glow) 46%, #ffffff);
  --glint: color-mix(in srgb, var(--hue-glow) 40%, transparent);
  --edge: color-mix(in srgb, var(--hue-glow) 72%, #ffffff);
  --halo: color-mix(in srgb, var(--hue-glow) 38%, transparent);
  --hoop: var(--hue-glow) #ffffff var(--hue-accent) var(--glass-lit);
}

/* the concentric rings it stands on, fading out from the middle */
.rd-shape::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0,
              transparent calc(var(--s) * 0.17 - 1px), var(--ring) calc(var(--s) * 0.17 - 1px),
              var(--ring) calc(var(--s) * 0.17));
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 calc(var(--s) * 0.42),
                                      transparent calc(var(--s) * 0.95));
  mask-image: radial-gradient(circle at 50% 50%, #000 calc(var(--s) * 0.42),
                              transparent calc(var(--s) * 0.95));
  pointer-events: none;
}

/* the glow behind it and the shadow under it, which stay as they are while
   it turns */
.rd-shape__glow,
.rd-shape__floor,
.rd-shape__core {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  pointer-events: none;
}

.rd-shape__glow {
  width: calc(var(--s) * 1.25);
  height: calc(var(--s) * 1.25);
  margin: calc(var(--s) * -0.625) 0 0 calc(var(--s) * -0.625);
  background: radial-gradient(closest-side, var(--halo), transparent);
}

.rd-shape__floor {
  width: calc(var(--s) * 0.78);
  height: calc(var(--s) * 0.14);
  margin: calc(var(--s) * 0.44) 0 0 calc(var(--s) * -0.39);
  background: radial-gradient(closest-side, var(--hue-shade), transparent);
}

/* the glowing core of the rings and of the orb */
.rd-shape__core {
  width: calc(var(--s) * 0.2);
  height: calc(var(--s) * 0.2);
  margin: calc(var(--s) * -0.1) 0 0 calc(var(--s) * -0.1);
  background: radial-gradient(circle at 34% 30%, #ffffff, var(--glass-lit) 26%,
                              var(--hue-accent) 70%, var(--glass-deep));
  box-shadow: 0 0 calc(var(--s) * 0.12) var(--halo);
}

/* what turns: every face of the shape, stood in depth round its middle */
.rd-shape__body,
.rd-shape__slab {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.rd-shape__body { transform: rotateX(var(--tip)) rotateY(-36deg); }

.rd-shape--turn .rd-shape__body { animation: rd-shape-turn 32s linear infinite; }
.rd-shape--sway .rd-shape__body { animation: rd-shape-sway 7s ease-in-out infinite alternate; }

@keyframes rd-shape-turn {
  from { transform: rotateX(var(--tip)) rotateY(-36deg); }
  to   { transform: rotateX(var(--tip)) rotateY(324deg); }
}

@keyframes rd-shape-sway {
  from { transform: rotateX(calc(var(--tip) + 6deg)) rotateY(-62deg); }
  to   { transform: rotateX(calc(var(--tip) - 4deg)) rotateY(-10deg); }
}

/* a face: glass in the hue, lit from the top left, with a bright edge and a
   glint of the hue's glow at its far corner */
.rd-shape__body i,
.rd-shape__slab i {
  --w: var(--s);
  --h: var(--s);
  position: absolute;
  left: calc(var(--w) / -2);
  top: calc(var(--h) / -2);
  width: var(--w);
  height: var(--h);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0) 40%),
    radial-gradient(120% 90% at 100% 100%, var(--glint), transparent 62%),
    linear-gradient(200deg, var(--glass), var(--glass-deep));
  box-shadow: inset 0 0 0 1.5px var(--edge),
              inset 0 0 calc(var(--s) * 0.12) color-mix(in srgb, var(--hue-glow) 50%, transparent),
              0 0 calc(var(--s) * 0.05) var(--halo);
  backface-visibility: visible;
}

/* the faces turned from the light, a little deeper */
.rd-shape__body i:nth-child(even),
.rd-shape__slab i:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%),
    radial-gradient(120% 90% at 0% 100%, var(--glint), transparent 62%),
    linear-gradient(200deg, var(--glass-deep), var(--glass));
}

/* ------------------------------------------------------------- a cube */

.rd-shape--cube i { --w: calc(var(--s) * 0.58); --h: var(--w); border-radius: 3px; }
.rd-shape--cube i:nth-child(1) { transform: translateZ(calc(var(--w) / 2)); }
.rd-shape--cube i:nth-child(2) { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.rd-shape--cube i:nth-child(3) { transform: rotateY(180deg) translateZ(calc(var(--w) / 2)); }
.rd-shape--cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.rd-shape--cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--w) / 2)); }
.rd-shape--cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--w) / 2)); }

/* ------------ a prism: three sides round a triangle, lying along its length,
   its ridge on top and an end toward the reader */

.rd-shape--prism { --tip: -22deg; }

.rd-shape--prism i { --w: calc(var(--s) * 0.74); --h: calc(var(--s) * 0.46); }
.rd-shape--prism i:nth-child(1) { transform: rotateX(30deg) translateZ(calc(var(--h) * 0.2887)); }
.rd-shape--prism i:nth-child(2) { transform: rotateX(150deg) translateZ(calc(var(--h) * 0.2887)); }
.rd-shape--prism i:nth-child(3) { transform: rotateX(-90deg) translateZ(calc(var(--h) * 0.2887)); }

/* its two ends, each a triangle standing up, its middle on the prism's */
.rd-shape--prism i:nth-child(4),
.rd-shape--prism i:nth-child(5) {
  --w: calc(var(--s) * 0.46);
  --h: calc(var(--s) * 0.3984);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: none;
}

.rd-shape--prism i:nth-child(4) {
  transform: translateY(calc(var(--s) * -0.0664)) rotateY(90deg) translateZ(calc(var(--s) * 0.37));
}

.rd-shape--prism i:nth-child(5) {
  transform: translateY(calc(var(--s) * -0.0664)) rotateY(-90deg) translateZ(calc(var(--s) * 0.37));
}

/* ---------------------------------- a pyramid: four sides on a square base */

.rd-shape--pyramid i {
  --w: calc(var(--s) * 0.64);
  --h: var(--w);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: none;
  transform-origin: 50% 100%;
}

.rd-shape--pyramid i:nth-child(1) {
  transform: translateY(calc(var(--w) * -0.067)) translateZ(calc(var(--w) / 2)) rotateX(30deg);
}

.rd-shape--pyramid i:nth-child(2) {
  transform: translateY(calc(var(--w) * -0.067)) rotateY(90deg) translateZ(calc(var(--w) / 2))
             rotateX(30deg);
}

.rd-shape--pyramid i:nth-child(3) {
  transform: translateY(calc(var(--w) * -0.067)) rotateY(180deg) translateZ(calc(var(--w) / 2))
             rotateX(30deg);
}

.rd-shape--pyramid i:nth-child(4) {
  transform: translateY(calc(var(--w) * -0.067)) rotateY(270deg) translateZ(calc(var(--w) / 2))
             rotateX(30deg);
}

.rd-shape--pyramid i:nth-child(5) {
  clip-path: none;
  box-shadow: inset 0 0 0 1px var(--edge);
  transform-origin: 50% 50%;
  transform: translateY(calc(var(--w) * 0.433)) rotateX(90deg);
}

/* ------------------------- rings: three round a glowing core, like a gyroscope */

.rd-shape--rings i {
  --w: calc(var(--s) * 0.78);
  --h: var(--w);
  border: calc(var(--s) * 0.032) solid;
  border-color: var(--hoop);
  border-radius: 50%;
  background: none;
  box-shadow: 0 0 calc(var(--s) * 0.05) var(--halo), inset 0 0 calc(var(--s) * 0.04) var(--halo);
}

.rd-shape--rings i:nth-child(even) { background: none; }
.rd-shape--rings i:nth-child(1) { transform: rotateX(74deg); }
.rd-shape--rings i:nth-child(2) { transform: rotateY(62deg) rotateX(18deg); }
.rd-shape--rings i:nth-child(3) { transform: rotateY(-62deg) rotateX(18deg); }

/* ---------------------- an orb: a sphere with its lines of latitude and longitude */

.rd-shape--orb .rd-shape__core {
  width: calc(var(--s) * 0.66);
  height: calc(var(--s) * 0.66);
  margin: calc(var(--s) * -0.33) 0 0 calc(var(--s) * -0.33);
  background: radial-gradient(circle at 34% 28%, #ffffff, var(--glass-lit) 18%,
                              var(--glass) 52%, var(--glass-deep) 78%,
                              color-mix(in srgb, var(--hue-accent) 92%, #000000));
}

.rd-shape--orb i {
  --w: calc(var(--s) * 0.68);
  --h: var(--w);
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: none;
  box-shadow: none;
}

.rd-shape--orb i:nth-child(even) { background: none; }
.rd-shape--orb i:nth-child(1) { transform: rotateY(0deg); }
.rd-shape--orb i:nth-child(2) { transform: rotateY(60deg); }
.rd-shape--orb i:nth-child(3) { transform: rotateY(120deg); }
.rd-shape--orb i:nth-child(4) { transform: rotateX(90deg); }

/* --------------------- a stack: three slabs, one over another, a little apart */

.rd-shape--stack .rd-shape__slab:nth-child(1) { transform: translateY(calc(var(--s) * -0.2)); }
.rd-shape--stack .rd-shape__slab:nth-child(3) { transform: translateY(calc(var(--s) * 0.2)); }

.rd-shape--stack i { --w: calc(var(--s) * 0.62); --h: calc(var(--s) * 0.1); }

.rd-shape--stack i:nth-child(1) {
  --h: var(--w);
  transform: translateY(calc(var(--s) * -0.05)) rotateX(90deg);
}

.rd-shape--stack i:nth-child(2) { transform: translateZ(calc(var(--w) / 2)); }
.rd-shape--stack i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.rd-shape--stack i:nth-child(4) { transform: rotateY(180deg) translateZ(calc(var(--w) / 2)); }
.rd-shape--stack i:nth-child(5) { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }

@media (max-width: 620px) {
  .rd-free__b--shape { aspect-ratio: var(--ratio); }
}

.rd-free--fit > .rd-free__b--shape { aspect-ratio: var(--ratio); }

@media (prefers-reduced-motion: reduce) {
  .rd-shape__body { animation: none !important; }
}

/* ---- braintoy/components/blocks/text.css */
/* words in a free layout band: paragraphs with room between them, lists,
   quotations, and links and highlights in the brand's colour. rd-free__text
   is the block's own style; one given a style of the site's is rd-free__words,
   which keeps all but the size and the colour. */
.rd-free__text {
  color: var(--rd-body);
  font-size: var(--rd-lead);
  line-height: 1.62;
}

:is(.rd-free__text, .rd-free__words) > :first-child { margin-top: 0; }
:is(.rd-free__text, .rd-free__words) > :last-child { margin-bottom: 0; }

:is(.rd-free__text, .rd-free__words) :is(p, ul, ol, blockquote) { margin: 0 0 0.8em; }
:is(.rd-free__text, .rd-free__words) :is(ul, ol) { padding-left: 1.3em; }
:is(.rd-free__text, .rd-free__words) li + li { margin-top: 0.3em; }

:is(.rd-free__text, .rd-free__words) :is(h2, h3) {
  margin: 1.1em 0 0.45em;
  color: var(--rd-ink);
  font-size: var(--rd-h3);
  line-height: 1.3;
}

:is(.rd-free__text, .rd-free__words) blockquote {
  padding-left: 1em;
  border-left: 3px solid var(--rd-key);
  color: var(--rd-ink);
}

:is(.rd-free__text, .rd-free__words) strong,
:is(.rd-free__text, .rd-free__words) b { color: var(--rd-ink); }

:is(.rd-free__text, .rd-free__words) em { font-style: normal; color: var(--rd-key); }

:is(.rd-free__text, .rd-free__words) a {
  color: var(--rd-key);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- braintoy/components/calls/ask_strip.css */
/* a short ask, close under the band before it */
.rd-sec:has(.ab-review) { padding-top: 0; }

/* a card on the key colour's tinted ground, its mark on the card colour */
.ab-review {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
  padding: 22px 24px;
  border-radius: var(--rd-radius-lg);
  background: var(--rd-key-soft);
}

.ab-review .ab-review__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--rd-card);
  color: var(--rd-key);
}

.ab-review .ab-review__mark svg { width: 24px; height: 24px; }

.ab-review .ab-review__ask {
  flex: 1 1 260px;
  margin: 0;
  color: var(--rd-ink);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 750;
  letter-spacing: -0.018em;
}

/* the link's arrow moves on when it is pointed at */
.ab-review .ab-review__go svg { width: 15px; height: 15px; transition: transform 200ms ease; }
.ab-review .ab-review__go:hover svg { transform: translateX(3px); }

/* ---- braintoy/components/calls/button_row.css */
/* a row of buttons, centred, wrapping on a narrow screen */
.sc-close { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---- braintoy/components/calls/closing_band.css */
/* The band a page closes on (closing_band.py): a small line, a heading, a
   sentence and its ways on, over the film the section's look draws behind
   them, or over the site's closing film when it has none. A closing section
   that holds the Closing band alone (cta_band.css) stands on the same ground
   and plays the same film. The band is deep under light words in the dark
   theme and at night, and pale under the page's ink in the light theme. Over
   a colour or a gradient its look gives it (looks.py) it shows that ground as
   chosen, under the words the look says read there. */

.rd-end,
.rd-sec--close:has(> .rd__wrap > .rd-free > .rd-free__b--cta_band:only-child) {
  /* the colours of its words, of the words picked out in its heading and of
     its small line, how strongly its film shows, what is done to the film's
     colours, and what is laid over the film under the words */
  --rd-end-ink: var(--rd-band-ink, #fff);
  --rd-end-body: var(--rd-band-body, rgba(255, 255, 255, 0.82));
  --rd-end-small: var(--rd-band-body, rgba(255, 255, 255, 0.72));
  --rd-end-accent: var(--rd-band-accent, var(--rd-accent));
  --rd-end-film: 0.26;
  --rd-end-turn: none;
  --rd-end-wash: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, var(--rd-plum-deep) 0%, #432765 48%, #5e3a8c 100%);
}

/* IN THE LIGHT THEME THE BAND IS PALE under the page's ink, its film shown
   with its colours turned over under a pale wash that thins out toward the
   film. A section set at night (looks.py) stays as it is in the dark. */
:root:not([data-theme="dark"]) .rd-end:not([data-night]),
:root:not([data-theme="dark"]) .rd-sec--close:has(> .rd__wrap > .rd-free > .rd-free__b--cta_band:only-child):not([data-night]) {
  --rd-end-ink: var(--rd-band-ink, var(--rd-ink));
  --rd-end-body: var(--rd-band-body, var(--rd-body));
  --rd-end-small: var(--rd-band-body, var(--rd-body));
  --rd-end-accent: var(--rd-band-accent, var(--rd-key));
  --rd-end-film: 0.5;
  --rd-end-turn: invert(1) hue-rotate(180deg) saturate(1.3);
  --rd-end-wash: linear-gradient(90deg, rgba(250, 247, 253, 0.92) 0%,
                                 rgba(250, 247, 253, 0.6) 40%, rgba(250, 247, 253, 0) 72%);
  background: linear-gradient(120deg, var(--rd-plum-soft) 0%, #efe8f8 48%, #e4d9f3 100%);
}

/* a film given another for the dark theme was made for the light one, and is
   shown as it was made */
:root:not([data-theme="dark"]) .rd-end:not([data-night]):has(> template[data-film-dark]) {
  --rd-end-turn: none;
}

/* the wash, left out over a ground the look shows as chosen (--rd-scrim) */
.rd-end::after,
.rd-sec--close:has(> .rd__wrap > .rd-free > .rd-free__b--cta_band:only-child)::after {
  content: var(--rd-scrim, "");
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--rd-end-wash);
}

.rd-end video,
.rd-sec--close:has(> .rd__wrap > .rd-free > .rd-free__b--cta_band:only-child):not(:has(> video)) video[data-closing] {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--rd-end-film);
  filter: var(--rd-end-turn);
  z-index: -1;
}

/* a Closing band block carries the closing film, which shows only where the
   block is the closing section's own and the section has no film of its own */
.cr-close > video[data-closing] { display: none; }

/* a still of the site's rings film, where the band's look gives it a picture
   or a scene; a colour or a gradient is shown as chosen, with no still */
.rd-end:not(:has(> video))::before {
  content: var(--rd-scrim, "");
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/wp-content/uploads/2026/11/ai-core-poster.webp") center / cover no-repeat;
  opacity: var(--rd-end-film);
  filter: var(--rd-end-turn);
}

.rd-end .rd-eyebrow--light { color: var(--rd-end-small); }

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

.rd-end h2 {
  color: var(--rd-end-ink);
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0 0 12px;
}

/* words picked out in the heading */
.rd-end h2 em { font-style: normal; color: var(--rd-end-accent); }

.rd-end p {
  color: var(--rd-end-body);
  font-size: var(--rd-lead);
  margin: 0 0 28px;
  max-width: 44ch;
}

@media (max-width: 620px) {
  .rd-end__in { padding-left: 18px; padding-right: 18px; }
}

/* in the dark theme the band is barely darker than the page, so a hairline
   marks where it starts */
[data-theme="dark"] .rd-end,
[data-night] .rd-end,
.rd-end[data-night] { border-top: 1px solid var(--rd-line); }

/* ==========================================================================
 * THE WAY THROUGH TO LINKEDIN, in the closing band.
 * ========================================================================== */

/* INLINE-FLEX, so the pair sits where the band's own text sits. A block flex
   row has to be told left or centre, and told centre under a heading that is
   left, the buttons drift into the middle of their own band. */
.rd-end__acts {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* a second way on, quieter than the button beside it */
.rd-end__also {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  color: var(--rd-end-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.rd-end__also svg { width: 15px; height: 15px; }
.rd-end__also:hover { text-decoration: underline; text-underline-offset: 4px; }
.rd-end__also:hover svg { transform: translateX(2px); }
.rd-end__also:focus-visible { outline: 2px solid var(--rd-end-ink); outline-offset: 4px; border-radius: 4px; }

/* A MARK, NOT A BUTTON WITH A WORD IN IT. Beside a call to action that says
   what it does, a second one competing for the same attention is how both get
   read as neither. */
.rd-in {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--rd-end-ink, #fff) 40%, transparent);
  background: color-mix(in srgb, var(--rd-end-ink, #fff) 12%, transparent);
  color: var(--rd-end-ink, #fff);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease,
              transform 180ms ease;
}

.rd-in svg { width: 19px; height: 19px; display: block; }
.rd-in:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; transform: translateY(-1px); }
.rd-in:focus-visible { outline: 3px solid var(--rd-key); outline-offset: 3px; }

/* ---- braintoy/components/calls/cta_band.css */
/* the closing band: a heading, a sentence and the way on; a Heading or a
   Text block given the Closing heading or Closing words style
   (type_styles.py) is drawn as they are */
.cr-close { text-align: var(--close-align, center); }
.cr-close h2,
.rd-type-close {
  margin: 0 0 10px;
  color: var(--close-ink, var(--rd-ink));
  font-size: var(--close-size, var(--rd-h2));
}
.cr-close p,
.rd-type-close-words {
  max-width: var(--close-measure, none);
  margin: 0 0 20px;
  color: var(--close-body, var(--rd-body));
}
.cr-close a:not(.rd-btn),
.rd-type-close-words a { color: var(--close-ink, var(--rd-key)); font-weight: 700; }
.rd-type-close-words a { text-decoration: none; }
.rd-sec--close { padding: 64px 0 84px; }

/* A closing section holding this band alone is the band every page closes
   on (closing_band.css): its words in that band's colours, to the left, at
   that band's size. */
.rd-sec--close:has(> .rd__wrap > .rd-free > .rd-free__b--cta_band:only-child) {
  --close-align: left;
  --close-ink: var(--rd-end-ink);
  --close-body: var(--rd-end-body);
  --close-size: clamp(28px, 3.1vw, 42px);
  --close-measure: 44ch;
  padding: 78px 0 84px;
}

/* on a phone it is padded like every other band */
@media (max-width: 640px) {
  .rd-sec--close { padding: 56px 0; }
}

/* ---- braintoy/components/cards/case_cards.css */
/* Case studies (case_cards.py): a card each, its picture standing on a ground
   in the case's own colour, what came of the work over the foot of it and the
   study's title at the bottom. The contact page's ways to get in touch are
   these cards as well, with ../contact/ways.css over them. */

/* ------------------------------------------------------- the case studies

   AFTER THE CLIENTS BAND, which answers "who have you worked with" with a
   globe and a row of marks and leaves "and what came of it" hanging. That is
   what a case study is, so it goes straight after it and before the close.

   THREE CARDS THAT SIT STILL, deliberately. The page already asks the reader
   to operate the hero slideshow, two stages, a globe and the voices band; a
   fifth interactive component is how a homepage starts to feel cluttered. The
   only thing to press here is the link to the study. */
.rd-cases {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
  background: var(--rd-page);
  border-top: 1px solid var(--rd-line);
}

.rd-cases__head { max-width: 62ch; margin: 0 0 36px; }
.rd-cases__head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em;
  margin: 6px 0 10px; }
.rd-cases__lede { color: var(--rd-body); font-size: var(--rd-small);
  line-height: 1.62; margin: 0; }

.rd-cases__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* The floor the cards stand on: a dotted band from halfway down the first
   pictures to the foot of the section, the full width of the page. */
.rd-cases__grid::before {
  content: "";
  position: absolute;
  top: 150px;
  bottom: -88px;
  left: -100vw;
  right: -100vw;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--rd-plum) 18%, transparent) 1px,
                    transparent 1.6px) 0 0 / 22px 22px,
    var(--rd-soft);
}

.rd-case {
  --tint: var(--case);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 260ms cubic-bezier(.22, .61, .36, 1),
              box-shadow 260ms ease, border-color 260ms ease;
}

[data-theme="dark"] .rd-case,
[data-night] .rd-case,
.rd-case[data-night] { --tint: var(--case-dark); }

.rd-case:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tint) 40%, var(--rd-card-line));
  box-shadow: var(--rd-shadow-lift);
}

.rd-case:focus-visible { outline: 3px solid var(--tint); outline-offset: 3px; }

/* The picture's ground: the case's colour, brightest behind the subject, with
   rings spreading out from it. The pictures are cut out and framed 6:5 by
   tools/build_case_shots.py, so all three fill it the same way. */
.rd-case__stage {
  position: relative;
  display: block;
  aspect-ratio: 6 / 5;
  overflow: hidden;
  background: radial-gradient(64% 58% at 50% 44%,
                              color-mix(in srgb, var(--tint) 24%, var(--rd-card)) 0%,
                              color-mix(in srgb, var(--tint) 7%, var(--rd-card)) 100%);
}

.rd-case__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 44%, transparent 0 21px,
              color-mix(in srgb, var(--tint) 26%, transparent) 21px 22px);
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 14%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 44%, #000 14%, transparent 70%);
  transition: transform 900ms cubic-bezier(.22, .61, .36, 1);
}

/* It arrives with .rd-rise, which also carries its transition. */
.rd-case__art {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 90%;
}

.rd-case:hover .rd-case__stage::before { transform: scale(1.1); }
.rd-case:hover .rd-case__art { transform: translateY(-6px) scale(1.035); }

.rd-case__in {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 20px;
}

/* What came of it, on a card of its own riding up over the foot of the picture. */
.rd-case__came {
  display: block;
  margin: -46px 0 8px;
  padding: 12px 14px 13px;
  border: 1px solid color-mix(in srgb, var(--tint) 22%, var(--rd-card-line));
  border-radius: 14px;
  background: var(--rd-card);
  box-shadow: 0 14px 30px -14px rgba(27, 16, 48, .3);
  transition: transform 260ms cubic-bezier(.22, .61, .36, 1);
}

.rd-case:hover .rd-case__came { transform: translateY(-3px); }

.rd-case__label,
.rd-case__sector {
  color: var(--tint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rd-case__label { display: block; margin-bottom: 3px; }

.rd-case__result {
  display: block;
  color: var(--rd-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.008em;
  text-wrap: pretty;
}

/* the words that carry it, in the case's colour */
.rd-case__result em { font-style: normal; font-weight: 700; color: var(--tint); }

/* the sector and the client sit on the title, at the foot of the card */
.rd-case__who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
  color: var(--rd-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.rd-case__sector::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px;
  border-radius: 50%;
  background: var(--rd-muted);
  vertical-align: middle;
}

.rd-case__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.rd-case__t {
  color: var(--rd-ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.024em;
  text-wrap: balance;
}

.rd-case__go {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid color-mix(in srgb, var(--tint) 38%, transparent);
  border-radius: 50%;
  color: var(--tint);
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.rd-case__go svg { width: 16px; height: 16px; transition: transform 220ms ease; }

.rd-case:hover .rd-case__go {
  border-color: var(--tint);
  background: var(--tint);
  color: var(--rd-card);
}

.rd-case:hover .rd-case__go svg { transform: translateX(2px); }

/* Below three across, each card lies on its side: the picture on the left, the
   words beside it. On a phone it stands up again. */
@media (max-width: 1023px) {
  .rd-cases__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rd-case { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }
  .rd-case__stage { height: 100%; min-height: 290px; aspect-ratio: auto; }
  .rd-case__in { justify-content: center; padding: 26px 28px; }
  .rd-case__came { margin: 0 0 6px; }
  .rd-case__who { margin-top: 0; }
}

@media (max-width: 620px) {
  .rd-case { display: flex; }
  .rd-case__stage { height: auto; min-height: 0; aspect-ratio: 6 / 5; }
  .rd-case__in { justify-content: flex-start; padding: 0 16px 18px; }
  .rd-case__came { margin: -40px 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-case:hover,
  .rd-case:hover .rd-case__art,
  .rd-case:hover .rd-case__came,
  .rd-case:hover .rd-case__stage::before,
  .rd-case:hover .rd-case__go svg { transform: none; }
}

/* ---- braintoy/components/cards/claims.css */
/* Short claims side by side (claims.py), in a plain band from ../parts.css:
   each a numbered card. Straight after an opening with a logo, and wide
   enough to sit three abreast, they are lifted over its foot. */
.ml .ml-claims { display:grid; grid-template-columns:repeat(3,1fr); gap:18px;
         counter-reset:claim; }
.ml .ml-claims div { background:var(--paper); border:1px solid var(--line);
         border-radius:18px; padding:26px 26px 28px;
         box-shadow:0 18px 40px rgba(27,16,48,.1); }
.ml .ml-claims div::before { counter-increment:claim; content:"0" counter(claim);
         display:block; margin-bottom:14px; font-size:13px; font-weight:800;
         line-height:1; letter-spacing:.06em; color:var(--red-ink); }
.ml .ml-claims h3 { font-size:20px; font-weight:800; letter-spacing:-.02em;
         margin:0 0 8px; color:var(--ink); }
.ml .ml-claims p { font-size:15.5px; line-height:1.55; color:var(--muted); }

@media (min-width:901px) {
  .ml-top + .ml-band:has(.ml-claims) { padding-top:0; }
  .ml-top + .ml-band .ml-claims { margin-top:-52px; position:relative; z-index:3; }
  /* the opening's button for its film, clear of the cards lifted over it */
  .ml-top:has(+ .ml-band .ml-claims) .ml-hold { bottom:74px; }
}

@media (max-width:900px) {
  .ml .ml-claims { grid-template-columns:1fr; }
  .ml .ml-claims div { box-shadow:none; }
}

/* ---- braintoy/components/cards/figures.css */
/* a row of figures riding up over the band before, and a percentage drawn as
   a ring that sweeps round to it (braintoy-figures.js) */
.sc-figures { position: relative; z-index: 2; padding: 0 0 8px;
  background: var(--rd-page); }
.sc-figures .rd__wrap { margin-top: -64px; }
.sc-figures .sc-figures__grid { display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sc-figures .sc-fig { padding: 26px 26px 24px; border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg); background: var(--rd-card);
  box-shadow: var(--rd-shadow-lift); }
.sc-figures .sc-fig__n { margin: 0; color: var(--rd-key); font-size: clamp(44px, 5.4vw, 64px);
  font-weight: 800; line-height: 1; letter-spacing: -0.045em; }
.sc-figures .sc-fig__t { margin: 12px 0 4px; color: var(--rd-ink); font-size: 16px;
  font-weight: 700; }
.sc-figures .sc-fig__s { margin: 0; color: var(--rd-muted); font-size: 14px;
  line-height: 1.5; }
.sc-figures .sc-fig--ring { display: flex; align-items: center; gap: 20px; }
.sc-figures .sc-ring { position: relative; flex: 0 0 auto; width: 100px; height: 100px; }
.sc-figures .sc-ring svg { width: 100px; height: 100px; transform: rotate(-90deg); }
.sc-figures .sc-ring circle { fill: none; stroke-width: 11; }
.sc-figures .sc-ring__back { stroke: var(--rd-line); }
.sc-figures .sc-ring__on { stroke: var(--rd-key); stroke-linecap: round;
  stroke-dasharray: 289.03; stroke-dashoffset: 289.03;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22, .8, .3, 1); }
.sc-figures .sc-ring.is-in .sc-ring__on { stroke-dashoffset: var(--left); }
.sc-figures .sc-ring__n { position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--rd-ink); font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  .sc-figures .sc-figures__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sc-figures .rd__wrap { margin-top: -48px; }
}

/* ---- braintoy/components/cards/glance_cards.css */
/* Short cards side by side under a heading (glance_cards.py), as many across
   as fit, each a picture framed across its top, darkening toward the words
   under it, which stand on the card's own ground, the whole card a link.
   Every rule names the cards as well as its own class, which outweighs the
   theme kit's headings and links on the page. */
.rd-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* two by two where four would be narrow, then one under another */
@media (max-width: 1020px) {
  .rd-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .rd-glance { grid-template-columns: minmax(0, 1fr); }
}

/* placed narrower than its section, the cards take the columns they would
   on a screen as wide as the cell, which is the screen less the band's
   padding and a scrollbar */
.rd-free__b--glance_cards { container-type: inline-size; }

@container (max-width: 947px) {
  .rd-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 487px) {
  .rd-glance { grid-template-columns: minmax(0, 1fr); }
}

.rd-glance .rd-glance__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius);
  background: var(--rd-card);
  color: var(--rd-body);
  text-decoration: none;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.rd-glance .rd-glance__card:hover {
  border-color: transparent;
  box-shadow: var(--rd-shadow-lift);
}

.rd-glance .rd-glance__card:focus-visible {
  outline: 2px solid var(--rd-accent);
  outline-offset: 3px;
}

/* the picture, inset from the card's edge, raised a little above the card
   as it leans, and drawing closer while the card is pointed at */
.rd-glance .rd-glance__art {
  --tilt-raise: 18px;
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 8px 8px 0;
  overflow: hidden;
  border-radius: calc(var(--rd-radius) - 4px);
  background: #140a26;
}

.rd-glance .rd-glance__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rd-glance .rd-glance__card:hover .rd-glance__art img { transform: scale(1.09); }

/* its foot darkened toward the words, and a fine light edge that keeps it
   apart from a dark card */
.rd-glance .rd-glance__art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(20, 10, 38, 0) 55%, rgba(20, 10, 38, 0.5));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.rd-glance .rd-glance__words {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.rd-glance .rd-glance__card h3 {
  margin: 0;
  color: var(--rd-ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.rd-glance .rd-glance__who {
  margin: 0;
  color: var(--rd-body);
  font-size: 15px;
  line-height: 1.5;
}

.rd-glance .rd-glance__what {
  margin: 0;
  color: var(--rd-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rd-glance .rd-glance__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--rd-ink);
  font-size: 15px;
  font-weight: 700;
}

.rd-glance .rd-glance__go svg {
  width: 15px;
  height: 15px;
  transition: transform 180ms ease;
}

.rd-glance .rd-glance__card:hover .rd-glance__go svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .rd-glance .rd-glance__art img,
  .rd-glance .rd-glance__card:hover .rd-glance__art img {
    transform: none;
    transition: none;
  }
}

/* ---- braintoy/components/cards/level_cards.css */
/* numbered cards in a row, five across on a wide screen, each with its level
   in a pill, and a note under them */
.sc-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: level; }
.sc-levels .sc-level { position: relative; padding: 52px 20px 22px;
  border-radius: var(--rd-radius); background: var(--rd-card);
  border: 1px solid var(--rd-card-line); counter-increment: level; }
.sc-levels .sc-level::before { content: counter(level, decimal-leading-zero);
  position: absolute; top: 18px; left: 20px; color: var(--rd-key);
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.sc-levels .sc-level h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.25; }
.sc-levels .sc-level__lv { display: inline-block; margin: 0 0 10px; padding: 3px 10px;
  border-radius: 999px; background: var(--rd-plum-soft); color: var(--rd-plum);
  font-size: 12px; font-weight: 700; }
.sc-levels .sc-level p { margin: 0; color: var(--rd-body); font-size: 14.5px; line-height: 1.55; }
.sc-note { margin: 18px 0 0; color: var(--rd-muted); font-size: 14px; }
.sc-note a { color: var(--rd-key); text-decoration: underline; text-underline-offset: 2px; }

/* placed narrower than its section, the cards take the columns they would
   on a screen as wide as the cell, which is the screen less the band's
   padding and a scrollbar: each breakpoint for the screen is followed by
   the same for the cell, the widest first, so the narrowest that holds
   comes last */
.rd-free__b--level_cards { container-type: inline-size; }

@media (max-width: 1080px) {
  .sc-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@container (max-width: 1007px) {
  .sc-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .sc-levels { grid-template-columns: 1fr; }
}

@container (max-width: 567px) {
  .sc-levels { grid-template-columns: 1fr; }
}

/* ---- braintoy/components/cards/link_cards.css */
/* cards that each open a page: a heading, a sentence and the way on */
.rd-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rd-work {
  display: block;
  padding: 28px 30px;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.rd-work:hover {
  transform: translateY(-2px);
  border-color: var(--rd-key);
  box-shadow: var(--rd-shadow-lift);
}

.rd-work h3,
.rd-type-card {
  margin: 0 0 8px;
  line-height: 1.25;
  color: var(--rd-ink);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.rd-work p { margin: 0 0 16px; color: var(--rd-body); }
.rd-work__go { color: var(--rd-key); font-weight: 700; }

@media (max-width: 640px) {
  .rd-works { grid-template-columns: 1fr; }
}

/* placed narrower than its section, the cards take the columns they would
   on a screen as wide as the cell, which is the screen less the band's
   padding and a scrollbar */
.rd-free__b--link_cards { container-type: inline-size; }

@container (max-width: 567px) {
  .rd-works { grid-template-columns: 1fr; }
}

/* ---- braintoy/components/cards/marked_cards.css */
/* What something does (marked_cards.py), in a plain band from ../parts.css:
   each a card under an icon in one of the site's colours (.rd-hue--*). */
.ml .ml-does { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:34px; }
.ml .ml-does li { background:var(--paper); border:1px solid var(--line);
         border-radius:18px; padding:24px 24px 26px; }
.ml .ml-does__ico { display:grid; place-items:center; width:46px; height:46px;
         margin-bottom:18px; border-radius:13px;
         background:var(--hue-ground); color:var(--hue-ink); }
.ml .ml-does__ico svg { width:23px; height:23px; }
.ml .ml-does h3 { font-size:18px; font-weight:700; letter-spacing:-.018em;
         margin:0 0 6px; color:var(--ink); }
.ml .ml-does p { font-size:15px; line-height:1.55; color:var(--muted); }

@media (max-width:900px) {
  .ml .ml-does { grid-template-columns:1fr; }
}

/* ---- braintoy/components/cards/more_cards.css */
/* Cards that each lead to a page, and the site's button under them
   (more_cards.py), in a plain band from ../parts.css. */
.ml .ml-also { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:32px; }
.ml .ml-also a { display:block; background:var(--paper); border:1px solid var(--line);
         border-radius:10px; padding:24px 26px; text-decoration:none; color:inherit;
         transition:transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease,
                    border-color .2s ease; }
.ml .ml-also a:hover, .ml .ml-also a:focus-visible { transform:translateY(-3px);
         border-color:var(--plum); box-shadow:0 12px 26px -14px rgba(73,43,112,.5); }
.ml .ml-also h3 { font-size:18px; font-weight:700; margin:0 0 7px; color:var(--plum); }
.ml .ml-also p { font-size:14.5px; color:var(--muted); }
.ml .ml-also .ml-go { display:inline-block; margin-top:12px; font-size:13.5px;
         font-weight:700; color:var(--red-ink); }
.ml .ml-ask { margin-top:34px; }

@media (prefers-reduced-motion:reduce) {
  .ml .ml-also a { transition:none; }
  .ml .ml-also a:hover { transform:none; }
}

@media (max-width:900px) {
  .ml .ml-also { grid-template-columns:1fr; }
}

/* ---- braintoy/components/cards/offer.css */
/* Cards that open a stage (offer.py): one or two columns, each a heading
   over a row of cards, and under the row the stage a card opens onto, a drawn
   scene or a film with what the card is about. With a name over them the
   columns branch from it, a line drawn to every card. On a phone a card is a
   row: a photograph's over its picture, a product's in its own colour. */

/* ------------------------------------------------------------ the columns */

/* The band runs the full width, so a background given to it reaches both
   edges, and its sides keep the columns inside it to the page's measure. */
.rd-offer {
  padding: 72px max(28px, calc((100% - var(--rd-wrap)) / 2 + 28px)) 66px;
}

/* one under the other, until the screen is wide enough for them side by side */
.rd-offer__in {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.rd-offer__side {
  position: relative;
  min-width: 0;
}

.rd-offer .rd-h2 {
  margin-bottom: 26px;
  font-size: clamp(24px, 2.35vw, 31px);
  line-height: 1.16;
}

.rd-offer__root { display: none; }

/* ------------------------------------------------------------ the cards */

.rd-ways,
.rd-prods {
  display: grid;
  gap: 14px;
}

.rd-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rd-prods { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rd-way,
.rd-prod {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  background: var(--rd-card);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

/* under the pointer, or with its stage open */
.rd-way:hover,
.rd-prod:hover,
.rd-way.is-on,
.rd-prod.is-on {
  border-color: var(--rd-key);
  box-shadow: var(--rd-shadow-lift);
  transform: translateY(-2px);
}

.rd-way__art,
.rd-prod__art {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3.1;
  overflow: hidden;
}

.rd-way__art { background: var(--rd-soft); }
.rd-prod__art { background: var(--rd-plum-deep); }

.rd-way__art img,
.rd-prod__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* the picture comes a little closer under the pointer */
.rd-way:hover .rd-way__art img,
.rd-prod:hover .rd-prod__art img { transform: scale(1.05); }

/* a wash over a photograph, deeper toward its foot, that the three share */
.rd-way__art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(168deg, rgba(27, 16, 48, 0.08) 0%,
                              rgba(27, 16, 48, 0.3) 58%, rgba(27, 16, 48, 0.52) 100%);
}

/* the icon stands on the words and half over the foot of the picture */
.rd-way__ico,
.rd-prod__ico {
  position: absolute;
  left: 12px;
  top: -20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
}

.rd-way__ico svg,
.rd-prod__ico svg { width: 20px; height: 20px; }

.rd-way__ico { color: var(--rd-key); }
.rd-way:nth-child(2) .rd-way__ico { color: var(--rd-green); }
.rd-way:nth-child(3) .rd-way__ico { color: var(--rd-amber); }

/* a product's icon is in the product's colour, which its card names */
.rd-prod__ico { color: var(--tint); }

.rd-way__body,
.rd-prod__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px 12px 16px;
}

/* a name has two lines of room whether it needs them or not, so the cards of
   a row end level */
.rd-way__t,
.rd-prod__t {
  display: block;
  min-height: 2.52em;
  margin: 0 0 4px;
  color: var(--rd-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.02em;
}

.rd-way__s,
.rd-prod__s {
  display: block;
  color: var(--rd-muted);
  font-size: var(--rd-micro);
  line-height: 1.45;
}

/* ------------------------------------------- what a card opens onto
 *
 * ONE STAGE PER ROW, under it, rather than a panel per card. At four cards
 * across, a card that pushed its own panel open would move the three beside it
 * and the reader would lose the one they were pointing at.
 *
 * Hover opens it and a click pins it, and it stays open until it is closed:
 * by the button on its corner, a second click on its card or Escape.
 *
 * THE FILM HAS TWO THIRDS OF IT and the words the rest, beside it, level
 * with its middle or, when they run longer than it, from its top. In a stage
 * too narrow for a film 520px across beside its words, the words go
 * underneath: the drawing labels its own parts (Week 1, Week 10, Capstone),
 * which run into each other on a film much narrower than that.
 */
.rd-stage {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 18px 28px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius);
  background: var(--rd-plum-soft);
}


/* THE DRAWING AND THE FILM SHARE ONE CELL, each at its own shape. The
   narration is the row underneath, never over the top: the scenes label their
   own parts, and a caption laid on them lands in the middle of the labels. */
.rd-stage__film {
  flex: 2 1 0;
  min-width: min(100%, 520px);
  display: grid;
  grid-template-rows: auto auto;
  border-radius: 12px;
  overflow: hidden;
  /* the ground under the narration, and beside a film that is not 16 by 9 */
  background: #492b70;
}

/* ASPECT ON THE PICTURE, NOT ON THE BOX. The box also holds the narration, so a
   ratio set there is shared out between the two and the drawing comes up short
   by whatever the caption happens to need. A canvas has to be told its height
   because its pixel buffer is the only thing that gives it one; an svg has a
   viewBox and sizes itself, so this is a ratio and not a measurement. */
.rd-stage__film > svg,
.rd-stage__film > video {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 620 / 380;
  display: block;
}

/* A film has the shape films are made in, so one fills its frame to every
   edge. One of another shape is contained in it rather than cropped: a film's
   labels can run to its edges, and cover is a crop that cuts them. */
.rd-stage__film > video {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* display: block above outranks the hidden attribute, which is a rule in the
   browser's own sheet. Without this the film plays underneath the drawing. */

.rd-stage__now {
  min-height: 3.4em;
  padding: 9px 14px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: -0.004em;
}

.rd-stage__say {
  flex: 1 1 0;
  align-self: center;
  min-width: min(100%, 300px);
}

.rd-stage__say h3 {
  font-size: var(--rd-h3);
  line-height: 1.22;
  letter-spacing: -0.022em;
  margin: 0 0 9px;
}

.rd-stage__say p { font-size: var(--rd-small); line-height: 1.6; }

.rd-stage__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }

.rd-stage__tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rd-card);
  border: 1px solid #e7ddf1;
  font-size: var(--rd-micro);
  font-weight: 600;
  color: var(--rd-plum);
  letter-spacing: -0.004em;
}
/* A note that can appear inside a stage, for a thing the page is still waiting
   on from Braintoy. It is set apart from the claim above it, because a reader
   who skims has to be able to tell a record from an offer. */
.rd-stage__ask {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: var(--rd-micro);
  line-height: 1.58;
}

.rd-stage__ask {
  background: var(--rd-key-soft);
  color: var(--rd-body);
}

.rd-stage__ask b { color: var(--rd-key); }

/* the card's buttons, after its tags, such as where to sign up */
.rd-stage__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rd-stage__acts:empty { display: none; }
.rd-stage__acts .rd-btn { padding: 9px 15px; font-size: 13.5px; }

.rd-stage__hint {
  margin-top: 13px;
  color: var(--rd-muted);
  font-size: var(--rd-micro);
  line-height: 1.45;
}

/* the button that closes it stands on its top edge, clear of the film */
.rd-stage__shut {
  position: absolute;
  top: -15px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--rd-card-line);
  border-radius: 50%;
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
  color: var(--rd-ink);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}

/* a finger has more of it to land on than is drawn */
.rd-stage__shut::before {
  content: "";
  position: absolute;
  inset: -8px;
}

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

.rd-stage__shut:focus-visible { outline: 3px solid var(--rd-key); outline-offset: 2px; }
.rd-stage__shut svg { width: 14px; height: 14px; }

/* ------------------------------------------------ side by side, and branching
 *
 * On a wide screen the columns stand side by side. With a name over them
 * they branch from it: braintoy-branches.js draws a line from the name to
 * every card, in the room left for it beside the headings and over the cards.
 */
.rd-branches { display: none; }

@media (min-width: 1081px) {
  /* The columns are the tracks of one grid, and a column's small line, its
     heading, its cards and its stage are rows of that grid. So the headings of
     both are one height, the cards of both end level, and a stage opens under
     the taller row of cards, clear of the column beside it. A column by itself
     keeps to half the band. */
  .rd-offer__in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 44px;
  }

  /* a column takes room by how many cards go across it, so every card in the
     band is one width */
  .rd-offer__in:has(> .rd-offer__side:first-of-type > .rd-ways):has(> .rd-offer__side:last-of-type > .rd-prods) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr);
  }

  .rd-offer__in:has(> .rd-offer__side:first-of-type > .rd-prods):has(> .rd-offer__side:last-of-type > .rd-ways) {
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr);
  }

  .rd-offer__side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    grid-row: span 4;
  }

  .rd-offer__side > .rd-eyebrow { grid-row: 1; }
  .rd-offer__side > .rd-h2 { grid-row: 2; }
  .rd-offer__side > .rd-ways,
  .rd-offer__side > .rd-prods { grid-row: 3; }
  .rd-offer__side > .rd-stage { grid-row: 4; }

  /* the rule between two columns */
  .rd-offer__side + .rd-offer__side::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -22px;
    border-left: 1px solid var(--rd-line-soft);
  }

  /* seven cards across: a name is small enough for the longest product's,
     which has nowhere to break, to stay on one line */
  .rd-way__t,
  .rd-prod__t { font-size: clamp(13px, 1.2vw, 14px); }

  /* the name takes a line of its own, the site's mark before it standing on
     the first column's rail */
  [data-branches] > .rd-offer__root {
    display: block;
    grid-column: 1 / -1;
    margin: 0 0 74px -22px;
  }

  .rd-offer__root span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 13px;
    border: 1px solid var(--rd-line);
    border-radius: 999px;
    background: var(--rd-card);
    box-shadow: var(--rd-shadow);
    color: var(--rd-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.008em;
  }

  .rd-offer__root span::before {
    content: "";
    width: 17px;
    height: 17px;
    background: var(--rd-key);
    -webkit-mask: var(--rd-mark) center / contain no-repeat;
    mask: var(--rd-mark) center / contain no-repeat;
  }

  /* the lines stand in for the rule, the headings clear of the rails */
  [data-branches] > .rd-offer__side { z-index: 1; }
  [data-branches] > .rd-offer__side + .rd-offer__side::before { content: none; }

  [data-branches] .rd-eyebrow,
  [data-branches] .rd-h2 { margin-left: 30px; }

  [data-branches] .rd-h2 { margin-bottom: 62px; }

  .rd-branches {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
  }

  /* a stage runs the width of the band, under both columns, its own column
     standing over the one beside it while it is open */
  .rd-offer__in { container-type: inline-size; }
  .rd-stage { width: 100cqw; }
  .rd-offer__side + .rd-offer__side > .rd-stage { margin-left: calc(100% - 100cqw); }
  .rd-offer__side:has(> .rd-stage:not([hidden])) { z-index: 2; }
}

.rd-branches {
  --branch: color-mix(in srgb, var(--rd-muted) 30%, var(--rd-line));
}

.rd-branches path {
  fill: none;
  stroke: var(--branch);
  stroke-width: 1.5;
  stroke-dasharray: 100;
}

/* the dot where lines part, and the square a line ends in on its card */
.rd-branches circle {
  fill: var(--rd-card);
  stroke: var(--rd-muted);
  stroke-width: 1.5;
}

.rd-branches rect { fill: var(--branch); }
.rd-branches .is-lit { fill: var(--rd-key); }
.rd-branches circle.is-lit { stroke: var(--rd-key); }

/* the line to a card whose stage is open reaches it from the name, and a
   light keeps running along it */
.rd-branches .rd-branches__lit {
  stroke: var(--rd-key);
  stroke-width: 2;
  animation: rd-branch-reach 420ms ease-out;
}

.rd-branches .rd-branches__light {
  stroke: var(--rd-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 2.5 100;
  stroke-dashoffset: 2.5;
  filter: drop-shadow(0 0 4px var(--rd-accent));
  animation: rd-branch-run 2600ms linear 300ms infinite;
}

@keyframes rd-branch-reach {
  from { stroke-dashoffset: 100; }
}

@keyframes rd-branch-run {
  60%, 100% { stroke-dashoffset: -100; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-branches .rd-branches__lit { animation: none; }
  .rd-branches .rd-branches__light { display: none; }
}

@media (max-width: 900px) {
  .rd-prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-stage { padding: 14px; }
}

/* ------------------------------------------------------------ on a phone
 *
 * A card is a row, its icon and words at the left and at the right a mark
 * that it opens. A photograph's row lies over its picture; a product's is in
 * the product's colour, its picture cut on a slant at the far end.
 */
@media (max-width: 620px) {
  .rd-offer { padding-left: 18px; padding-right: 18px; }

  .rd-ways,
  .rd-prods {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .rd-way,
  .rd-prod {
    isolation: isolate;
    flex-direction: row;
    min-height: 96px;
  }

  .rd-way__art,
  .rd-prod__art {
    position: absolute;
    z-index: -1;
    aspect-ratio: auto;
  }

  .rd-way__body,
  .rd-prod__body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3px 11px;
    align-content: center;
    min-width: 0;
    padding: 0;
  }

  .rd-way__ico,
  .rd-prod__ico {
    position: static;
    grid-row: 1 / span 2;
    align-self: start;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    box-shadow: none;
  }

  .rd-way__ico svg,
  .rd-prod__ico svg { width: 17px; height: 17px; }

  .rd-way__t,
  .rd-prod__t {
    min-height: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .rd-way__s,
  .rd-prod__s {
    grid-column: 2;
    font-size: 13.5px;
  }

  /* the mark that a row opens, turned over while its stage is open */
  .rd-way::after,
  .rd-prod::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%231b1030' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform 200ms ease;
  }

  .rd-way.is-on::after,
  .rd-prod.is-on::after { transform: rotate(180deg); }

  /* a photograph's row lies over its picture, darkened under the words */
  .rd-way {
    padding: 16px 48px 16px 16px;
    border-color: transparent;
    background: var(--rd-plum-deep);
  }

  .rd-way__art { inset: 0; }

  .rd-way__art::after {
    background: linear-gradient(90deg, rgba(20, 10, 38, 0.95) 0%,
                                rgba(20, 10, 38, 0.88) 55%, rgba(20, 10, 38, 0.3) 100%);
  }

  .rd-way__t { color: #fff; }
  .rd-way__s { color: rgba(255, 255, 255, 0.84); }
  .rd-way__ico { background: rgba(255, 255, 255, 0.94); }

  /* a product's row is in the product's colour, its picture cut on a slant
     at the far end */
  .rd-prod {
    padding: 16px 40% 16px 16px;
    border-color: color-mix(in srgb, var(--tint) 34%, var(--rd-card-line));
    background: linear-gradient(100deg, color-mix(in srgb, var(--tint) 15%, var(--rd-card)) 0%,
                                var(--rd-card) 62%);
  }

  .rd-prod__art {
    top: 0;
    right: 0;
    bottom: 0;
    width: 39%;
    clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  }

  .rd-prod__ico { background: color-mix(in srgb, var(--tint) 14%, var(--rd-card)); }
}

/* A photograph that was graded for white paper is too bright against this,
   so it comes down a little rather than being recoloured. */
[data-theme="dark"] .rd-way__art img,
[data-night] .rd-way__art img,
.rd-way__art[data-night] img { filter: brightness(0.9) contrast(1.02); }

/* a product's colour is lightened, as the deeper ones do not show on the dark */
[data-theme="dark"] .rd-prod__ico,
[data-night] .rd-prod__ico,
.rd-prod__ico[data-night] { color: color-mix(in srgb, var(--tint) 55%, #fff); }

/* ---- braintoy/components/cards/picture_cards.css */
/* numbered cards, each on its own colour (--tone, and --tone-dark in the dark
   theme), three to a row on a wide screen */
.ab-vals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-vals .ab-val {
  --tint: var(--tone);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 260ms ease, border-color 260ms ease;
}

[data-theme="dark"] .ab-vals .ab-val,
[data-night] .ab-vals .ab-val,
.ab-vals[data-night] .ab-val { --tint: var(--tone-dark); }

.ab-vals .ab-val:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tint) 40%, var(--rd-card-line));
  box-shadow: var(--rd-shadow-lift);
}

/* the picture's ground, as on a case study card: the colour, brightest behind
   the picture, with rings spreading out from it */
.ab-vals .ab-val__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  aspect-ratio: 6 / 5;
  min-height: 0;
  padding: 20px 22px 52px;
  background: radial-gradient(64% 58% at 50% 58%,
              color-mix(in srgb, var(--tint) 26%, var(--rd-card)) 0%,
              color-mix(in srgb, var(--tint) 7%, var(--rd-card)) 100%);
}

.ab-vals .ab-val__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 58%, transparent 0 21px,
              color-mix(in srgb, var(--tint) 26%, transparent) 21px 22px);
  -webkit-mask-image: radial-gradient(circle at 50% 58%, #000 14%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 58%, #000 14%, transparent 70%);
  transition: transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ab-vals .ab-val:hover .ab-val__stage::before { transform: scale(1.1); }

.ab-vals .ab-val__n {
  position: relative;
  z-index: 1;
  color: var(--tint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.ab-vals h3.ab-val__name {
  position: relative;
  z-index: 1;
  margin: 2px 0 0;
  color: var(--rd-ink);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ab-vals .ab-val__art {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  margin-top: 6px;
  /* never larger than the file, so a small picture stays sharp */
  object-fit: scale-down;
  filter: drop-shadow(0 20px 22px color-mix(in srgb, var(--tint) 32%, transparent));
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ab-vals .ab-val:hover .ab-val__art { transform: translateY(-6px) rotate(-4deg) scale(1.05); }

.ab-vals .ab-val__in {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 0 18px 22px;
}

/* the opening sentence, on a card of its own riding up over the picture */
.ab-vals .ab-val__say {
  margin: -38px 0 0;
  padding: 14px 16px 15px;
  border: 1px solid color-mix(in srgb, var(--tint) 22%, var(--rd-card-line));
  border-radius: 14px;
  background: var(--rd-card);
  box-shadow: 0 14px 30px -14px rgba(27, 16, 48, 0.3);
  color: var(--rd-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.008em;
  text-wrap: pretty;
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ab-vals .ab-val:hover .ab-val__say { transform: translateY(-3px); }

.ab-vals .ab-val__say em { font-style: normal; font-weight: 750; color: var(--tint); }

.ab-vals .ab-val__more {
  margin: 0 2px;
  color: var(--rd-body);
  font-size: 14.5px;
  line-height: 1.62;
}

/* a wide card lies on its side: the picture on one side, the words beside it */
.ab-vals .ab-val--wide {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
}

.ab-vals .ab-val--wide .ab-val__stage {
  aspect-ratio: auto;
  min-height: 380px;
  padding-bottom: 28px;
}

.ab-vals .ab-val--wide .ab-val__name { font-size: 32px; }

.ab-vals .ab-val--wide .ab-val__in {
  justify-content: center;
  padding: 32px 30px;
}

.ab-vals .ab-val--wide .ab-val__say { margin: 0; font-size: 17px; }

/* and a flipped one has its picture on the right */
.ab-vals .ab-val--flip .ab-val__stage { order: 2; }

@media (max-width: 1100px) {
  .ab-vals { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* two across, so the wide cards stand up like the rest */
  .ab-vals .ab-val--wide {
    display: flex;
    grid-column: auto;
  }

  .ab-vals .ab-val--wide .ab-val__stage {
    aspect-ratio: 6 / 5;
    min-height: 0;
    padding-bottom: 52px;
  }

  .ab-vals .ab-val--wide .ab-val__name { font-size: 23px; }

  .ab-vals .ab-val--wide .ab-val__in {
    justify-content: flex-start;
    padding: 0 18px 22px;
  }

  .ab-vals .ab-val--wide .ab-val__say { margin-top: -38px; font-size: 15px; }
  .ab-vals .ab-val--flip .ab-val__stage { order: 0; }
}

@media (max-width: 640px) {
  /* the cards become a row to swipe through */
  .ab-vals {
    grid-auto-columns: 84%;
    grid-auto-flow: column;
    grid-template-columns: none;
    margin: 0 -18px;
    padding: 4px 18px 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding: 0 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ab-vals::-webkit-scrollbar { display: none; }
  .ab-vals .ab-val { scroll-snap-align: start; }
  .ab-vals .ab-val:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-vals .ab-val,
  .ab-vals .ab-val__art,
  .ab-vals .ab-val__say { transition: none; }

  .ab-vals .ab-val:hover,
  .ab-vals .ab-val:hover .ab-val__art,
  .ab-vals .ab-val:hover .ab-val__say,
  .ab-vals .ab-val:hover .ab-val__stage::before { transform: none; }
}

/* ---- braintoy/components/cards/product_list.css */
/* Products one after another (product_list.py): a row each on its own colour
   (rd-hue in ../parts.css), its words and its film side by side, the two
   changing sides from one row to the next, and one under the other, the words
   first, on a narrow screen. The film plays in a framed box with the
   product's pictures floating over a corner of it; the enlarged view the
   pictures open is styled with the rest of braintoy-gallery.js in
   braintoy-ui.css. Every rule names the list as well as its own class, which
   outweighs the theme kit's headings and links on the page. */

.bt-products-list { background: var(--rd-page); }

.bt-products-list .bt-product {
  background: var(--hue-ground);
  color: var(--rd-body);
}

.bt-products-list .bt-product__in {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(40px, 5.6vw, 84px);
  align-items: center;
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: clamp(80px, 8vw, 112px) 28px;
}

.bt-products-list .bt-product:nth-child(even) .bt-product__in {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
}

.bt-products-list .bt-product:nth-child(even) .bt-product__media { order: -1; }

/* ------------------------------------------------------------ its words */

.bt-products-list .bt-product-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.bt-products-list .bt-product-kicker {
  margin: 0;
  color: var(--hue-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bt-products-list .bt-product-named {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.bt-products-list .bt-product .bt-product-name {
  margin: 0;
  color: var(--rd-ink);
  font-size: clamp(36px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

/* a word or two beside the name, such as a product that is still supported
   but not being sold into new work */
.bt-products-list .bt-product-note {
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hue-accent) 15%, var(--hue-ground));
  color: color-mix(in srgb, var(--hue-accent) 70%, var(--rd-ink));
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.bt-products-list .bt-product-tagline {
  max-width: 30ch;
  text-wrap: balance;
  margin: 0;
  color: var(--rd-ink);
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
}

.bt-products-list .bt-product-lead {
  max-width: 56ch;
  margin: 0;
  color: var(--rd-body);
  font-size: 17px;
  line-height: 1.65;
}

.bt-products-list .bt-product-who {
  margin: 0;
  color: var(--rd-muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
}

.bt-products-list .bt-product-cta {
  margin-top: 8px;
  padding: 13px 22px;
  border-color: var(--hue-accent);
  background: var(--hue-accent);
  color: var(--hue-on);
  box-shadow: 0 12px 26px -12px var(--hue-shade);
}

.bt-products-list .bt-product-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px var(--hue-shade);
}

.bt-products-list .bt-product-cta:focus-visible {
  outline: 2px solid var(--hue-accent);
  outline-offset: 3px;
}

.bt-products-list .bt-product-cta svg { transition: transform 180ms ease; }
.bt-products-list .bt-product-cta:hover svg { transform: translateX(3px); }

/* ------------------------------------------------------------- its film */

.bt-products-list .bt-product__media { min-width: 0; }

/* The framed box the film plays in, in the films' own shape. The pictures
   float over its upper corner nearest the words, a little outside it, clear
   of the name and the line each film carries along its foot, and stand above
   it into the room its top keeps for them, so they never reach into the row
   before: as tall as they stand above it, from their width, their shape
   (--shape, product_list.shape) and the line under them, less the part of
   the box they cover. Without pictures there is no shape and no room. */
.bt-products-list .bt-product__film {
  margin-top: calc((46% - 18px) * var(--shape) - 24.75% + 42px);
  padding: 10px;
  border: 1px solid var(--hue-line);
  border-radius: 24px;
  background: var(--rd-card);
  box-shadow: 0 40px 80px -36px var(--hue-shade), 0 14px 30px -18px var(--hue-shade);
}

.bt-products-list .bt-product__screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 15px;
  background: #140a26;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
 * The pictures: one at a time, swiped or paged, and pressed to enlarge, in a
 * card of their own, its words and its controls on one line under the
 * picture. The pictures are different shapes, 519x431 against 1265x1000 and
 * mlOS's wide screens, so each is fitted whole in a frame of one shape.
 * -------------------------------------------------------------------------- */

.bt-products-list .bt-gal {
  position: relative;
  padding: 8px 8px 0;
  border: 1px solid var(--hue-line);
  border-radius: 18px;
  background: var(--rd-card);
  box-shadow: 0 30px 60px -24px var(--hue-shade), 0 8px 18px -10px var(--hue-shade);
  outline: none;
  /* The browser keeps vertical scrolling and pinching to zoom, and the script
     takes the horizontal swipe; naming both keeps a visitor's zoom on a
     product screenshot. */
  touch-action: pan-y pinch-zoom;
}

.bt-products-list .bt-product__film .bt-gal {
  position: absolute;
  z-index: 2;
  bottom: 56%;
  left: -9%;
  width: 46%;
}

.bt-products-list .bt-product:nth-child(even) .bt-product__film .bt-gal {
  left: auto;
  right: -9%;
}

.bt-products-list .bt-gal:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue-accent) 55%, transparent);
}

.bt-products-list .bt-gal-viewport {
  overflow: hidden;
  border-radius: 11px;
}

.bt-products-list .bt-gal-track {
  display: flex;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Without the script the slides simply stack, so every picture stays
   reachable. */
.bt-products-list .bt-gal-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.bt-products-list .bt-gal-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: #ffffff;
  cursor: zoom-in;
}

.bt-products-list .bt-gal-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / var(--shape);
  object-fit: contain;
}

/* the words under a picture keep clear of the controls beside them, on a
   second line where they need it */
.bt-products-list .bt-gal-slide figcaption {
  padding: 9px 106px 11px 4px;
  color: var(--rd-muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* the arrows either side of the dots, in a bar on the line of the words
   under the picture */
.bt-products-list .bt-gal-bar {
  position: absolute;
  right: 5px;
  bottom: 3px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.bt-products-list .bt-gal-nav {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--hue-line);
  border-radius: 50%;
  background: var(--rd-card);
  color: var(--hue-ink);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.bt-products-list .bt-gal-nav svg { width: 13px; height: 13px; }

.bt-products-list .bt-gal-nav:hover:not(:disabled) {
  background: var(--hue-accent);
  border-color: var(--hue-accent);
  color: var(--hue-on);
}

.bt-products-list .bt-gal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.bt-products-list .bt-gal-dots { display: flex; }

/* The dot stays 8px to look at; the button around it is 19 by 28, which with
   the gap beside it is the 24 the AA measure wants. */
.bt-products-list .bt-gal-dot {
  position: relative;
  width: 19px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.bt-products-list .bt-gal-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rd-muted) 45%, transparent);
  transition: background-color 160ms ease, transform 160ms ease;
}

.bt-products-list .bt-gal-dot.is-current::before {
  background: var(--hue-accent);
  transform: scale(1.25);
}

/* ------------------------------------------------- narrower and on a phone */

@media (max-width: 960px) {
  .bt-products-list .bt-product__in,
  .bt-products-list .bt-product:nth-child(even) .bt-product__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    max-width: 720px;
    padding: 76px 28px;
  }

  .bt-products-list .bt-product:nth-child(even) .bt-product__media { order: 0; }

  .bt-products-list .bt-product__film .bt-gal,
  .bt-products-list .bt-product:nth-child(even) .bt-product__film .bt-gal {
    bottom: 60%;
    right: 4%;
    left: auto;
    width: 50%;
  }

  .bt-products-list .bt-product:nth-child(even) .bt-product__film .bt-gal {
    right: auto;
    left: 4%;
  }

  .bt-products-list .bt-product__film {
    margin-top: calc((50% - 18px) * var(--shape) - 22.5% + 42px);
  }
}

@media (max-width: 620px) {
  .bt-products-list .bt-product__in,
  .bt-products-list .bt-product:nth-child(even) .bt-product__in {
    gap: 36px;
    padding: 64px 20px 60px;
  }

  .bt-products-list .bt-product__film { padding: 7px; border-radius: 20px; }
  .bt-products-list .bt-product__screen { border-radius: 14px; }

  .bt-products-list .bt-product__film .bt-gal,
  .bt-products-list .bt-product:nth-child(even) .bt-product__film .bt-gal {
    width: 62%;
  }

  .bt-products-list .bt-product__film {
    margin-top: calc((62% - 18px) * var(--shape) - 22.5% + 43px);
  }

  /* a thumb swipes between the pictures and the dots say which is shown, so
     the words under them keep the line */
  .bt-products-list .bt-gal-nav { display: none; }

  .bt-products-list .bt-gal-slide figcaption { padding-right: 52px; }
  .bt-products-list .bt-gal-dot { height: 32px; }
}

/* ---- braintoy/components/cards/programme_cards.css */
/* A card for each kind of training (programme_cards.py), in a Training band
   from ../parts.css, each in its own colour, carried in --tone and
   --tone-dark and used through --ink, so light and dark are chosen once; and
   under them the calendar braintoy-course-dates.js draws into .cal, a month
   or a year at a time, with filters, each course's marks in its group's
   colour. */

/* == the calendar == */

/* its own colours, redefined in the dark, so it reads the same on a light
   page and a dark one */
.cal {
  --cal-ink: #1b1030;
  --cal-body: #4a4159;
  --cal-muted: #756c84;
  --cal-card: #ffffff;
  --cal-soft: #f6f3fa;
  --cal-line: #e2dced;
  --cal-line-strong: #cfc6df;
  --cal-shadow: 0 14px 34px rgba(43, 23, 67, 0.1);
}

:root[data-theme="dark"] .cal,
:root [data-night] .cal,
:root .cal[data-night] {
  --cal-ink: #f3eefb;
  --cal-body: #cdc4dd;
  --cal-muted: #a99fbd;
  --cal-card: #221636;
  --cal-soft: #1c1230;
  --cal-line: #34254e;
  --cal-line-strong: #46335f;
  --cal-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

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

.cal__widget {
  border: 1px solid var(--cal-line);
  border-radius: 14px;
  background: var(--cal-card);
  box-shadow: var(--cal-shadow);
  padding: 20px 22px 22px;
}

.cal__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.cal__nav { display: flex; align-items: center; gap: 6px; }

.cal__monthname {
  min-width: 11.5rem;
  margin: 0;
  color: var(--cal-ink);
  font-size: 19px;
  font-weight: 800;
  text-align: center;
}

.cal__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--cal-line-strong);
  border-radius: 9px;
  background: var(--cal-card);
  color: var(--cal-ink);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease,
              transform 140ms ease;
}

.cal__arrow:hover:not(:disabled) {
  border-color: var(--cal-ink);
  background: var(--cal-soft);
  transform: translateY(-1px);
}

/* disabled rather than hidden at the ends, so the row keeps its place */
.cal__arrow:disabled { opacity: 0.36; cursor: default; }

/* the arrows in the browser's own face for a button, where the redesign's
   main would hand them the face of the words around */
.cal button.cal__arrow { font-family: revert; }

/* the filters: programme, year and how it is taught as chips, the course as a
   choice from a list */
.cal__filters {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
  padding: 13px 14px;
  border: 1px solid var(--cal-line);
  border-radius: 11px;
  background: var(--cal-soft);
}

.cal__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.cal__rowlabel {
  flex: 0 0 5.4rem;
  color: var(--cal-muted);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cal__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 13px;
  border: 1px solid var(--cal-line-strong);
  border-radius: 999px;
  background: var(--cal-card);
  color: var(--cal-body);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease,
              background-color 140ms ease;
}

.cal__chip:hover { border-color: var(--cal-ink); color: var(--cal-ink); }

/* important on the colour, since the theme paints every button from a rule
   that carries its own */
.cal .cal__chip--on {
  border-color: var(--cal-ink);
  background: var(--cal-ink);
  color: var(--cal-card) !important;
}

/* important on the width, since the theme sets every select to fill its row */
.cal__select {
  flex: 0 1 auto;
  width: auto !important;
  min-width: 15rem;
  max-width: min(24rem, 100%);
  padding: 6px 11px;
  border: 1px solid var(--cal-line-strong);
  border-radius: 8px;
  background: var(--cal-card);
  color: var(--cal-body);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* there only once something is chosen */
.cal__clear {
  align-self: flex-start;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cal-body);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cal__clear:hover { color: var(--cal-ink); }

.cal__key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--cal-line-strong);
  border-radius: 999px;
  background: var(--cal-card);
  color: var(--cal-body);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease,
              background-color 140ms ease;
}

.cal__key:hover { border-color: var(--tone); color: var(--cal-ink); }

/* the one pressed takes its group's colour, the colour of its marks */
.cal__key--on {
  border-color: var(--tone);
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, transparent);
}

:root[data-theme="dark"] .cal__key--on,
:root [data-night] .cal__key--on,
:root .cal__key--on[data-night] { color: var(--tone-dark, var(--tone)); }

.cal__dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tone);
}

/* a month or a year; the pair the same width so it does not jump */
.cal__modes { display: flex; gap: 4px; margin-left: 8px; }

.cal__modes .cal__chip { min-width: 4.6rem; padding: 7px 12px; }

.cal__year {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.cal__ymonth {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 12px 12px;
  border: 1px solid var(--cal-line);
  border-radius: 10px;
  background: var(--cal-card);
  animation: cal-pop 320ms cubic-bezier(.22,.7,.3,1) both;
}

.cal__ymonth--none { background: none; border-style: dashed; opacity: 0.68; }

.cal__yname {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--cal-line);
  background: none;
  color: var(--cal-ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.cal__yname:disabled { cursor: default; }

.cal__yname b { font-size: 14px; font-weight: 800; }

.cal__yname span {
  flex: 0 0 auto;
  min-width: 20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--cal-soft);
  color: var(--cal-muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.cal__yname:hover:not(:disabled) span {
  background: var(--cal-ink);
  color: var(--cal-card);
}

.cal__yrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: var(--cal-body);
}

.cal__yrow::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
  align-self: center;
}

:root[data-theme="dark"] .cal__yrow,
:root [data-night] .cal__yrow,
:root .cal__yrow[data-night] {
  border-left-color: var(--tone-dark, var(--tone));
}

.cal__yrow b {
  flex: 0 0 auto;
  min-width: 1.3rem;
  color: var(--tone);
  font-size: 13px;
  font-weight: 800;
}

:root[data-theme="dark"] .cal__yrow b,
:root [data-night] .cal__yrow b,
:root .cal__yrow[data-night] b { color: var(--tone-dark, var(--tone)); }

/* the month's grid beside what is on in it */
.cal__panes {
  display: grid;
  grid-template-columns: minmax(266px, 330px) 1fr;
  gap: 26px;
  align-items: start;
}

.cal__dow,
.cal__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }

.cal__dow {
  margin-bottom: 6px;
  color: var(--cal-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.cal__d {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--cal-muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
}

.cal__d--out { visibility: hidden; }

/* a day with something on it is a button and looks like one; the rest are
   not in the tab order */
.cal__d--has {
  border-color: var(--cal-line);
  background: var(--cal-soft);
  color: var(--cal-ink);
  cursor: pointer;
  animation: cal-pop 320ms cubic-bezier(.22,.7,.3,1) both;
  transition: border-color 140ms ease, transform 140ms ease;
}

.cal__d--has b { font-size: 14.5px; font-weight: 800; }

.cal__d--has:hover {
  border-color: var(--cal-line-strong);
  transform: translateY(-2px);
}

.cal__d--on {
  border-color: var(--cal-ink);
  background: var(--cal-card);
  box-shadow: 0 0 0 2px var(--cal-ink) inset;
}

.cal__marks { display: flex; gap: 3px; }
.cal__marks .cal__dot { width: 6px; height: 6px; }

@keyframes cal-pop {
  from { opacity: 0; transform: translateY(7px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* a year is the whole width, with nothing beside it */
.cal__panes.cal__panes--year { grid-template-columns: 1fr; }

.cal__panes--year .cal__list:empty { display: none; }

/* what is on, beside the grid */
.cal__list { display: flex; flex-direction: column; gap: 10px; }

.cal__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--cal-line);
  border-radius: 12px;
  background: var(--cal-card);
  animation: cal-pop 300ms cubic-bezier(.22,.7,.3,1) both;
}

.cal__when {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 44px;
  padding: 6px 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--tone) 13%, transparent);
  /* the course's colour taken a little toward the page's ink, which its own
     tint behind it would otherwise leave under 4.5 to one for the month */
  color: color-mix(in srgb, var(--tone) 78%, #1b1030);
  line-height: 1.1;
}

:root[data-theme="dark"] .cal__when,
:root [data-night] .cal__when,
:root .cal__when[data-night] { color: var(--tone-dark, var(--tone)); }

.cal__when b { font-size: 18px; font-weight: 800; }

.cal__when span {
  font-size: 10px;
  font-weight: 800;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cal__itembody {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.cal__itembody b { color: var(--cal-ink); font-size: 14.5px; font-weight: 700; }
.cal__itembody span { color: var(--cal-body); font-size: 12.5px; }

.cal__itembody i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8410f;
}

:root[data-theme="dark"] .cal__itembody i,
:root [data-night] .cal__itembody i,
:root .cal__itembody[data-night] i { color: #ffab7a; }

.cal__go {
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid var(--tone);
  border-radius: 8px;
  color: var(--tone);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

:root[data-theme="dark"] .cal__go,
:root [data-night] .cal__go,
:root .cal__go[data-night] {
  border-color: var(--tone-dark, var(--tone));
  color: var(--tone-dark, var(--tone));
}

.cal__go:hover { background: var(--tone); color: #ffffff; }

:root[data-theme="dark"] .cal__go:hover,
:root [data-night] .cal__go:hover,
:root .cal__go:hover[data-night] {
  background: var(--tone-dark, var(--tone));
  color: #140c22;
}

.cal__nothing {
  margin: 0;
  padding: 22px 4px;
  color: var(--cal-muted);
  font-size: 14px;
}

.cal__d:focus-visible,
.cal__key:focus-visible,
.cal__chip:focus-visible,
.cal__select:focus-visible,
.cal__clear:focus-visible,
.cal__arrow:focus-visible,
.cal__go:focus-visible {
  outline: 3px solid #ffb066;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .cal__panes { grid-template-columns: 1fr; gap: 18px; }
  .cal__rowlabel { flex: 1 0 100%; }
  .cal__select { min-width: 0; width: 100%; }
  .cal__widget { padding: 16px 14px 18px; }
  .cal__monthname { min-width: 0; flex: 1 1 auto; }
  .cal__nav { width: 100%; }
  .cal__item { flex-wrap: wrap; }
  .cal__go { margin-left: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .cal__d--has,
  .cal__ymonth,
  .cal__item { animation: none; }
  .cal__arrow, .cal__key, .cal__chip, .cal__go { transition: none; }
  .cal__d--has:hover, .cal__arrow:hover:not(:disabled) { transform: none; }
}

/* == the cards == */

.tr.over { padding: 44px 0 8px; }

.tr .over__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

/* the colour as a ground fading down from the top of the card, and the dot
   grid of the brand's mark in its corner */
.tr .over__card {
  --ink: var(--tone);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 22px 20px 18px;
  border: 1px solid rgba(43, 23, 67, 0.13);
  border-radius: 13px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 9%, #ffffff), #ffffff 64%);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

:root[data-theme="dark"] .tr .over__card,
:root [data-night] .tr .over__card,
:root .tr[data-night] .over__card {
  --ink: var(--tone-dark, var(--tone));
  border-color: #34254e;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 14%, #221636), #221636 64%);
}

.tr .over__card::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 18px;
  height: 18px;
  background: var(--ink);
  opacity: 0.7;
  -webkit-mask: var(--rd-mark) center / contain no-repeat;
  mask: var(--rd-mark) center / contain no-repeat;
}

.tr .over__card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ink) 55%, transparent);
  box-shadow: 0 18px 40px rgba(43, 23, 67, 0.15);
}

.tr .over__letter {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ink) 15%, transparent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.tr .over__title {
  color: var(--bt-ink, #2b1743);
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.25;
}

.tr .over__lede {
  color: var(--bt-muted, #5c5470);
  font-size: 14px;
  line-height: 1.55;
}

.tr .over__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.tr .over__count {
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 13%, transparent);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
}

/* important on the size, since the theme sizes every picture from a rule
   that carries its own */
.tr .over__mark {
  height: 20px !important;
  width: auto !important;
  max-width: 96px !important;
  object-fit: contain;
  opacity: 0.72;
  mix-blend-mode: multiply;
}

/* in the dark a logo sits on a small white tile of its own, as it does beside
   a group of courses, since one drawn on white, as Manpower's is, would turn
   into a white box under a filter making it white */
:root[data-theme="dark"] .tr .over__mark,
:root [data-night] .tr .over__mark,
:root .tr[data-night] .over__mark {
  height: 28px !important;
  padding: 4px 7px;
  border-radius: 5px;
  background: #fff;
  mix-blend-mode: normal;
  opacity: 0.9;
}

@media (max-width: 700px) {
  .tr.over { padding: 30px 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .tr .over__card { transition: none; }
  .tr .over__card:hover { transform: none; }
}

/* a phone's thumb gets a target 44 high on the calendar's arrows, chips and
   list, which keep their drawn look */
@media (max-width: 860px) {
  .cal__arrow {
    width: 44px !important;
    height: 44px !important;
  }

  .cal__modes .cal__chip,
  .cal__row .cal__chip {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .cal__select { min-height: 44px; }

  .cal__d--has { min-height: 40px; }
}

/* ---- braintoy/components/cards/split_panels.css */
/* Two panels side by side (split_panels.py), each a picture or a film under
   a wash, with an eyebrow, a heading and a button at its foot. The wash is
   plum under light words. In the light theme it is pale under the page's ink
   and a film is shown with its colours turned over, unless the section is
   set at night (looks.py). */

/* ------------------------------------------------------------- two big panels */

.rd-split__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rd-panel {
  /* its wash's colour, as the three numbers of an rgb(), the colours of its
     heading and its small line, and what is done to its film's colours */
  --rd-panel-wash: 27, 16, 48;
  --rd-panel-ink: #fff;
  --rd-panel-small: rgba(255, 255, 255, 0.72);
  --rd-panel-film: none;
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 46px 44px;
  overflow: hidden;
  isolation: isolate;
}

.rd-panel img,
.rd-panel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.rd-panel video { filter: var(--rd-panel-film); }

:root:not([data-theme="dark"]) .rd-split:not([data-night]) .rd-panel {
  --rd-panel-wash: 250, 247, 253;
  --rd-panel-ink: var(--rd-ink);
  --rd-panel-small: var(--rd-body);
  --rd-panel-film: invert(1) hue-rotate(180deg) saturate(1.2);
}

.rd-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.rd-panel--train::before {
  background: linear-gradient(6deg, rgba(var(--rd-panel-wash), 0.93) 6%,
                              rgba(var(--rd-panel-wash), 0.62) 52%,
                              rgba(var(--rd-panel-wash), 0.4) 100%);
}

/* HEAVY WHERE THE WORDS ARE AND THIN WHERE THE NODES ARE. The heading sits
   bottom left, so the gradient is at its strongest there and nearly gone by
   the far corner, which is where the film's network is. */
.rd-panel--build::before {
  background: linear-gradient(6deg, rgba(var(--rd-panel-wash), 0.94) 6%,
                              rgba(var(--rd-panel-wash), 0.58) 50%,
                              rgba(var(--rd-panel-wash), 0.22) 100%);
}

/* how much the panel is softened (split_panels.py), laid evenly over its
   picture or film in the colour of its wash */
.rd-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, rgb(var(--rd-panel-wash)) var(--rd-panel-soften, 0%),
                        transparent);
}

.rd-panel__in { max-width: 27ch; }

.rd-panel h2 {
  color: var(--rd-panel-ink);
  font-size: clamp(27px, 2.6vw, 37px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 0 0 24px;
}

.rd-panel .rd-eyebrow--light { color: var(--rd-panel-small); }

@media (max-width: 900px) {
  .rd-split__in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .rd-panel { padding: 34px 24px; min-height: 340px; }

  /* THE PANEL IS 80px SHORTER HERE and the wash is lightest at the top, so the
     words land where the film still shows through: under the wash a wider
     screen gets, the pixels behind the products eyebrow are 3.7 to 1, where
     12px bold wants 4.5. The film is texture rather than content, so taking
     it down costs nothing. */
  .rd-panel--build::before {
    background: linear-gradient(6deg, rgba(var(--rd-panel-wash), 0.92) 6%,
                                rgba(var(--rd-panel-wash), 0.7) 50%,
                                rgba(var(--rd-panel-wash), 0.44) 100%);
  }

  .rd-panel--train::before {
    background: linear-gradient(6deg, rgba(var(--rd-panel-wash), 0.95) 6%,
                                rgba(var(--rd-panel-wash), 0.82) 52%,
                                rgba(var(--rd-panel-wash), 0.7) 100%);
  }
}

/* ---- braintoy/components/cards/story_cards.css */
/* cards that each open a story, three across on a wide screen, with the
   picture growing a little when one is pointed at */
.sc-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; }
.sc-stories .sc-story { display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--rd-card-line); border-radius: var(--rd-radius-lg);
  background: var(--rd-card); color: inherit; text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.sc-stories .sc-story:hover { transform: translateY(-3px); border-color: var(--rd-key);
  box-shadow: var(--rd-shadow-lift); }
.sc-stories .sc-story__shot { aspect-ratio: 600 / 403; overflow: hidden; background: var(--rd-soft); }
.sc-stories .sc-story__shot img { width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease; }
.sc-stories .sc-story:hover .sc-story__shot img { transform: scale(1.04); }
.sc-stories .sc-story__in { display: flex; flex: 1; flex-direction: column; gap: 8px;
  padding: 22px 24px 24px; }
.sc-stories .sc-story__kind { color: var(--rd-key); font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; }
.sc-stories .sc-story h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.sc-stories .sc-story p { margin: 0; color: var(--rd-body); font-size: 15px; line-height: 1.55; }
.sc-stories .sc-story__go { margin-top: auto; padding-top: 8px; color: var(--rd-key);
  font-weight: 700; }

@media (max-width: 900px) {
  .sc-stories { grid-template-columns: 1fr; }
}

/* placed narrower than its section, the cards take the columns they would
   on a screen as wide as the cell, which is the screen less the band's
   padding and a scrollbar */
.rd-free__b--story_cards { container-type: inline-size; }

@container (max-width: 827px) {
  .sc-stories { grid-template-columns: 1fr; }
}

/* ---- braintoy/components/cards/value_cards.css */
/* numbered cards, three to a row on a wide screen */
.rd-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd-value {
  padding: 24px 24px 26px;
  border-radius: var(--rd-radius);
  background: var(--rd-soft);
}

.rd-value__n {
  display: block;
  margin-bottom: 12px;
  color: var(--rd-key);
  font-size: var(--rd-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.rd-value h3 {
  margin: 0 0 8px;
  line-height: 1.25;
  color: var(--rd-ink);
  font-size: 18px;
  letter-spacing: -0.015em;
}

.rd-value p { margin: 0; color: var(--rd-body); font-size: 15px; line-height: 1.6; }

/* placed narrower than its section, the cards take the columns they would
   on a screen as wide as the cell, which is the screen less the band's
   padding and a scrollbar: each breakpoint for the screen is followed by
   the same for the cell, the widest first, so the narrowest that holds
   comes last */
.rd-free__b--value_cards { container-type: inline-size; }

@media (max-width: 900px) {
  .rd-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (max-width: 827px) {
  .rd-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .rd-values { grid-template-columns: 1fr; }
}

@container (max-width: 567px) {
  .rd-values { grid-template-columns: 1fr; }
}

/* ---- braintoy/components/chrome/chat.css */
/* The chat: the round button bottom right, the line of dialogue off it, and
   the panel with its home screen and the asking app, both on the panel's
   drawn wallpaper. braintoy-phone.js builds it into the root chat.py draws,
   from the words chat.py writes beside that root. */

/* The chat's own colours, each one of the site's to start with. The editor's
   colours for the chat set these, for the chat alone. */
.rd-phone {
  --rd-phone-launch: var(--rd-key);
  --rd-phone-launch-ink: var(--rd-on-key);
  --rd-phone-launch-hover: var(--rd-key-deep);
  --rd-phone-bar: var(--rd-plum-deep);
  --rd-phone-bar-ink: #fff;
  --rd-phone-me: var(--rd-key);
  --rd-phone-me-ink: var(--rd-on-key);
  --rd-phone-them: var(--rd-plum-soft);
  --rd-phone-them-ink: var(--rd-ink);
  --rd-phone-chip: var(--rd-key-soft);
  --rd-phone-chip-ink: var(--rd-key);
}

.rd-phone {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  /* the root's own box lets clicks through to the page under it; the
     launcher, the prompt and the panel take them */
  pointer-events: none;
}

.rd-phone > * { pointer-events: auto; }

.rd-phone__launch {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  order: 2;
  border: 0;
  border-radius: 50%;
  background: var(--rd-phone-launch);
  color: var(--rd-phone-launch-ink);
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(201, 58, 40, 0.38);
  transition: transform 200ms cubic-bezier(.22,.8,.3,1), background 200ms ease;
}

.rd-phone__launch:hover { transform: scale(1.06); background: var(--rd-phone-launch-hover); }
.rd-phone__launch:focus-visible { outline: 3px solid var(--rd-plum); outline-offset: 4px; }
.rd-phone__launch svg { width: 25px; height: 25px; }
.rd-phone__shutico { display: none; }
.rd-phone.is-open .rd-phone__launchico { display: none; }
.rd-phone.is-open .rd-phone__shutico { display: block; }
.rd-phone.is-open .rd-phone__shutico svg { width: 17px; height: 17px; }

/* THE PROMPT, shown once a visit for a few seconds by braintoy-phone.js: the
   line, and a cross on its corner that puts it away. Where the line would lie
   over the page's words, and on a phone, the script hides it and the launcher
   carries a dot instead. */
.rd-phone.is-prompting .rd-phone__nudge[hidden] + .rd-phone__launch::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rd-phone-launch-ink);
}

.rd-phone__nudge {
  order: 1;
  position: relative;
  animation: rd-phone-in 420ms cubic-bezier(.22,.8,.3,1) both;
}

.rd-phone__bubble {
  max-width: 250px;
  padding: 12px 15px;
  border: 1px solid var(--rd-card-line);
  border-radius: 16px 16px 4px 16px;
  background: var(--rd-card);
  box-shadow: var(--rd-shadow-lift);
  font: inherit;
  font-size: var(--rd-small);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.008em;
  color: var(--rd-ink);
  text-align: left;
  cursor: pointer;
}

.rd-phone__bubble:hover { border-color: var(--rd-key); }
.rd-phone__bubble:focus-visible { outline: 3px solid var(--rd-key); outline-offset: 3px; }

.rd-phone__nudgex {
  position: absolute;
  top: -10px;
  left: -10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--rd-card-line);
  border-radius: 50%;
  background: var(--rd-card);
  color: var(--rd-muted);
  box-shadow: var(--rd-shadow);
  cursor: pointer;
}

.rd-phone__nudgex:hover { color: var(--rd-ink); border-color: var(--rd-ink); }
.rd-phone__nudgex:focus-visible { outline: 3px solid var(--rd-key); outline-offset: 2px; }
.rd-phone__nudgex svg { width: 12px; height: 12px; }

/* the phone menu opens over the chat rather than under it */
:root:has(.rd-top.is-nav-open) .rd-phone { z-index: 30; }

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

/* --------------------------------------------------------------- the panel */

.rd-phone__panel {
  order: 0;
  display: flex;
  flex-direction: column;
  width: 360px;
  height: min(620px, calc(100vh - 130px));
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  /* the wallpaper's own ground, so the panel is never pale before it is drawn */
  background: var(--rd-wall-back, #140a26);
  border: 1px solid var(--rd-card-line);
  box-shadow: 0 30px 70px rgba(27, 16, 48, 0.3);
  animation: rd-phone-in 300ms cubic-bezier(.22,.8,.3,1) both;
}


.rd-phone__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 12px;
  /* its colour as glass, so the wallpaper runs on behind it */
  background: color-mix(in srgb, var(--rd-phone-bar) 46%, transparent);
  color: var(--rd-phone-bar-ink);
  flex: 0 0 auto;
}

.rd-phone__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--rd-small);
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-phone__back, .rd-phone__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--rd-phone-bar-ink);
  cursor: pointer;
}

/* THE CROSS LIVES IN THE TOP RIGHT CORNER, ALWAYS.
   It is the last child of a flex bar, so on its own it reaches the right hand
   edge only when something before it grows, and the only thing that grows is
   .rd-phone__title, which the home screen sets to display: none so the logo
   can have the space. margin-left: auto pins it to the corner on every
   screen, the home screen included. */
.rd-phone__close { margin-left: auto; }

.rd-phone__back:hover, .rd-phone__close:hover { background: rgba(255, 255, 255, 0.24); }
.rd-phone__back:focus-visible, .rd-phone__close:focus-visible { outline: 2px solid var(--rd-phone-bar-ink); outline-offset: 2px; }
.rd-phone__back svg, .rd-phone__close svg { width: 13px; height: 13px; }

.rd-phone__screen { flex: 1 1 auto; overflow-y: auto; }

/* ------------------------------------------------------------ the home screen */

.rd-phone__screen.is-home { padding: 24px 20px; }
.rd-phone__hi { font-size: 23px; font-weight: 700; color: var(--rd-ink);
                letter-spacing: -0.022em; }
.rd-phone__sub { font-size: var(--rd-small); color: var(--rd-muted); margin-bottom: 22px; }

.rd-phone__apps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.rd-phone__app {
  display: grid;
  justify-items: start;
  gap: 4px;
  padding: 16px 14px 15px;
  border: 1px solid var(--rd-card-line);
  border-radius: 18px;
  position: relative;
  background: var(--rd-card);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rd-phone__app:hover { transform: translateY(-3px); box-shadow: var(--rd-shadow);
                       border-color: var(--rd-key); }
.rd-phone__app:focus-visible { outline: 3px solid var(--rd-key); outline-offset: 2px; }

.rd-phone__appico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  border-radius: 13px;
}

.rd-phone__appico svg { width: 22px; height: 22px; }
/* ONE TINT EACH, from the four the page already owns. Four chips of the same
   colour is a grid; four of different ones is a set of things. */
.rd-phone__app--paper .rd-phone__appico { background: var(--rd-key-soft); color: var(--rd-key); }
.rd-phone__app--ask .rd-phone__appico { background: var(--rd-plum-soft); color: var(--rd-plum); }
.rd-phone__app--enquiry .rd-phone__appico {
  background: color-mix(in srgb, var(--rd-green) 12%, var(--rd-page));
  color: var(--rd-green);
}
.rd-phone__app--find .rd-phone__appico {
  background: color-mix(in srgb, var(--rd-amber) 14%, var(--rd-page));
  color: var(--rd-amber);
}

/* A LIGHT ON A TILE THAT IS WAITING ON SOMEBODY ELSE. The answering machine is
   built and has no key, and a tile that says so in small grey type says it to
   nobody. */
.rd-phone__app { position: relative; }
.rd-phone__wait {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rd-amber);
  animation: rd-wait 2200ms ease-in-out infinite;
}
@keyframes rd-wait {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.rd-phone__applabel { font-size: var(--rd-small); font-weight: 700; color: var(--rd-ink); }
.rd-phone__appunder { font-size: var(--rd-micro); color: var(--rd-muted); }

/* THE THREE ICONS, WHICH MOVE. A static mark on a thing whose whole job is
   "there is a conversation in here" is a missed opportunity. */
.rd-ico__dot { animation: rd-ico-bounce 1400ms ease-in-out infinite; }
.rd-ico__dot:nth-of-type(2) { animation-delay: 160ms; }
.rd-ico__dot:nth-of-type(3) { animation-delay: 320ms; }

@keyframes rd-ico-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-2.2px); }
}

/* Six rules of type that draw themselves in, hold long enough to read as
   type, and clear. transform-box: fill-box so "left" means the left of each
   rule rather than the left of the icon: there are two columns of them. */
.rd-ico__set path {
  transform-box: fill-box;
  transform-origin: left center;
  animation: rd-ico-set 4400ms ease-in-out infinite;
}
.rd-ico__set path:nth-child(2) { animation-delay: 110ms; }
.rd-ico__set path:nth-child(3) { animation-delay: 220ms; }
.rd-ico__set path:nth-child(4) { animation-delay: 80ms; }
.rd-ico__set path:nth-child(5) { animation-delay: 190ms; }
.rd-ico__set path:nth-child(6) { animation-delay: 300ms; }

@keyframes rd-ico-set {
  0%, 6% { transform: scaleX(0); opacity: 0; }
  24%, 74% { transform: none; opacity: 1; }
  92%, 100% { transform: scaleX(0); opacity: 0; }
}

.rd-ico__halo { transform-origin: center; animation: rd-ico-halo 2400ms ease-in-out infinite; }
.rd-ico__q { transform-origin: center; animation: rd-ico-lift 2400ms ease-in-out infinite; }

@keyframes rd-ico-halo {
  0%, 100% { opacity: 0; transform: scale(0.84); }
  50% { opacity: 0.45; transform: scale(1); }
}

@keyframes rd-ico-lift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.9px); }
}

/* The asking app sets is-chat as well, so this is not the one person
   screen's to take away with it. */
.rd-phone__screen.is-chat { display: flex; flex-direction: column; padding: 18px 16px; }

/* THE DRAWN WALLPAPER IS THE GROUND OF EVERY SCREEN of the panel. The home
   screen's tiles are frosted glass over it and its words light, and an app
   opened from it, as the asking app is, stands on the same ground. */
.rd-phone__wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rd-phone__panel .rd-phone__bar,
.rd-phone__panel .rd-phone__screen { position: relative; z-index: 1; }

/* the screen under the bar lies under a wash, so the ribbons run faint
   behind what is on it */
.rd-phone__panel .rd-phone__screen { background: rgba(16, 8, 30, 0.7); }

.rd-phone__panel.is-home :is(.rd-phone__app, .rd-phone__social) {
  background: rgba(16, 8, 30, 0.56);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
}

.rd-phone__panel.is-home :is(.rd-phone__applabel, .rd-phone__hi,
                             .rd-phone__outsay b) { color: #fff; }

.rd-phone__panel.is-home :is(.rd-phone__appunder, .rd-phone__sub,
                             .rd-phone__strap) { color: rgba(255, 255, 255, 0.68); }

/* restored on a new page rather than opened, so it does not fly in again */
.rd-phone__panel.is-steady { animation: none; }

/* --------------------------------------------------------- the asking app */

.rd-phone__thread { flex: 1 1 auto; overflow-y: auto; display: grid; gap: 10px;
                    align-content: start; }

.rd-phone__msg {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: var(--rd-small);
  line-height: 1.52;
}

.rd-phone__msg--them { border-bottom-left-radius: 4px; background: var(--rd-phone-them);
                       color: var(--rd-phone-them-ink); justify-self: start; }
.rd-phone__msg--me { border-bottom-right-radius: 4px; background: var(--rd-phone-me);
                     color: var(--rd-phone-me-ink); justify-self: end; }

/* the page the exchanges under it were asked on, as a line across the thread */
/* Which page an earlier answer came from: a small chip in the middle of the
   conversation, carrying the site's mark. */
.rd-phone__from {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 6px auto 0;
  padding: 4px 11px 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(16, 8, 30, 0.56);
  font-size: var(--rd-micro);
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

.rd-phone__from::before {
  content: "";
  flex: 0 0 auto;
  width: 0.9em;
  height: 0.9em;
  background: var(--rd-key);
  -webkit-mask: var(--rd-mark) center / contain no-repeat;
  mask: var(--rd-mark) center / contain no-repeat;
}

.rd-phone__from a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rd-phone__from a:hover { color: #fff; }
.rd-phone__from a:focus-visible { outline: 2px solid var(--rd-key); outline-offset: 2px; }
/* THE DOTS ARE AN ELEMENT, not a content: "...". Three full stops cannot
   animate, and the first word to arrive has to replace them, which means the
   waiting state has to be a thing in the bubble rather than a suffix on it. */
.rd-phone__msg.is-typing { padding-top: 13px; padding-bottom: 13px; }
.rd-phone__dots { display: inline-flex; gap: 4px; align-items: center; }
.rd-phone__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: rd-phone-dot 1.1s ease-in-out infinite;
}
.rd-phone__dots i:nth-child(2) { animation-delay: 0.16s; }
.rd-phone__dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes rd-phone-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 0.95; transform: translateY(-3px); }
}

/* WHERE THE ANSWERS COME FROM, SAID ONCE AND QUIETLY. As the opening sentence
   of every reply it would make most of a thread a disclaimer about the
   thread. */
.rd-phone__note {
  font-size: var(--rd-micro);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

/* SOMETHING TO PRESS IN AN EMPTY CHAT. A blinking field asks the visitor to
   guess what this knows about; three real questions show them. */
.rd-phone__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
                   flex: 0 0 auto; }
.rd-phone__chip {
  font: 500 var(--rd-micro)/1.3 inherit;
  color: var(--rd-phone-chip-ink);
  background: var(--rd-phone-chip);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  text-align: left;
}
.rd-phone__chip:hover { border-color: var(--rd-key); }
.rd-phone__chip:focus-visible { outline: 2px solid var(--rd-key); outline-offset: 2px; }

.rd-phone__ask { display: flex; gap: 8px; margin-top: 14px; flex: 0 0 auto; }

.rd-phone__ask input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(16, 8, 30, 0.56);
  font: inherit;
  font-size: var(--rd-small);
  color: #fff;
}

.rd-phone__ask input::placeholder { color: rgba(255, 255, 255, 0.62); }
.rd-phone__ask input:focus { outline: 2px solid #fff; outline-offset: 0; }

.rd-phone__send {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--rd-phone-me);
  /* the same ink as the other thing on this orange, so the send arrow and the
     enquiry button are not two different answers to one question */
  color: var(--rd-phone-me-ink);
  cursor: pointer;
}

.rd-phone__send:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rd-phone__send svg { width: 15px; height: 15px; }

/* NOT CONNECTED YET, said plainly. A canned reply typed at somebody who would
   reasonably think it was a model is worse than no reply. */
.rd-phone__off {
  margin: auto 0;
  padding: 18px;
  border-radius: 14px;
  background: rgba(16, 8, 30, 0.56);
  border: 1px dashed rgba(255, 255, 255, 0.24);
  font-size: var(--rd-small);
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.84);
}

.rd-phone__off p + p { margin-top: 9px; }
.rd-phone__offhead { font-weight: 700; color: #fff; }
.rd-phone__offnote { font-size: var(--rd-micro); color: rgba(255, 255, 255, 0.64); }

/* On a phone the panel IS the screen, because a 360 wide panel inside a 390
   wide window is a frame around a frame. */
@media (max-width: 560px) {
  .rd-phone { right: 14px; bottom: 14px; left: 14px; align-items: stretch; }
  .rd-phone__launch { align-self: flex-end; }
  .rd-phone__panel { width: auto; height: min(560px, calc(100vh - 120px)); }
  .rd-phone__apps { grid-template-columns: 1fr 1fr; }

  /* the prompt is a dot on the launcher here, not a line over the page */
  .rd-phone__nudge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-phone__nudge, .rd-phone__panel { animation: none; }
  .rd-phone__launch, .rd-phone__app { transition: none; }
  /* AN ICON THAT MOVES IS THE THING BEING ASKED ABOUT, so all three stop and
     sit at the frame that reads. */
  .rd-ico__dot, .rd-ico__halo, .rd-ico__q { animation: none; }
  .rd-ico__set path { animation: none; transform: none; opacity: 1; }
  .rd-ico__halo { opacity: 0.3; }
}

.rd-phone__outico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: rgba(10, 102, 194, 0.12);
  color: #0a66c2;
}
.rd-phone__outico svg { width: 20px; height: 20px; }

.rd-phone__outsay { display: grid; gap: 1px; min-width: 0; }
.rd-phone__outsay b { font-size: var(--rd-small); font-weight: 700; color: var(--rd-ink); }

/* The arrow that says this one leaves the page. */
.rd-phone__outgo { width: 15px; height: 15px; margin-left: auto; color: var(--rd-muted); }

/* Braintoy's own wordmark in the bar, on the home screen only. Inside an app
   the bar has to say WHICH app, and a logo cannot do that. */
.rd-phone__mark { display: none; height: 17px; width: auto; }
.rd-phone__panel.is-home .rd-phone__mark { display: block; }
.rd-phone__panel.is-home .rd-phone__title { display: none; }

/* --------------------------------------------------------------- the icons */

/* A calendar filling a day in, which is what booking one looks like. The
   squares come up in sequence and hold, rather than blinking together. */
.rd-ico__day rect { opacity: 0.25; animation: rd-ico-day 3600ms ease-in-out infinite; }
.rd-ico__day rect:nth-child(2) { animation-delay: 240ms; }
.rd-ico__day rect:nth-child(3) { animation-delay: 480ms; }
.rd-ico__day rect:nth-child(4) { animation-delay: 720ms; }
.rd-ico__day rect:nth-child(5) { animation-delay: 960ms; }

@keyframes rd-ico-day {
  0%, 10% { opacity: 0.25; }
  26%, 70% { opacity: 1; }
  86%, 100% { opacity: 0.25; }
}

/* A lens that sweeps, because that is what looking for something is. */
.rd-ico__lens { animation: rd-ico-sweep 3200ms ease-in-out infinite; }

@keyframes rd-ico-sweep {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(2.6px, -1.4px); }
  62% { transform: translate(-2.2px, 1.2px); }
}

/* Instagram: the ring opens a little and the flash blinks, which is the whole
   of what that mark is a picture of. */
.rd-ico__lensring { transform-origin: 12px 12px; animation: rd-ico-iris 3000ms ease-in-out infinite; }
.rd-ico__blink { animation: rd-ico-flash 3000ms ease-in-out infinite; }

@keyframes rd-ico-iris {
  0%, 100% { transform: scale(1); }
  46% { transform: scale(0.82); }
}
@keyframes rd-ico-flash {
  0%, 38%, 100% { opacity: 1; }
  48% { opacity: 0.25; }
}

/* LinkedIn is left alone. It is somebody else's mark and bending it is not
   ours to do; the chip behind it is what lights up. */
.rd-phone__social--linkedin:hover .rd-phone__outico { background: #0a66c2; color: #fff; }
.rd-phone__social--instagram:hover .rd-phone__outico { background: #c9377d; color: #fff; }
.rd-phone__social--instagram .rd-phone__outico {
  background: rgba(201, 55, 125, 0.12);
  color: #c9377d;
}

/* ------------------------------------------------------------ the two marks */

.rd-phone__strap {
  margin: 20px 0 8px;
  font-size: var(--rd-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

.rd-phone__socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.rd-phone__social {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid var(--rd-card-line);
  border-radius: 13px;
  background: var(--rd-card);
  text-decoration: none;
  min-width: 0;
  transition: border-color 180ms ease, background 180ms ease;
}
.rd-phone__social:hover { background: var(--rd-soft); }
.rd-phone__social--linkedin:hover { border-color: #0a66c2; }
.rd-phone__social--instagram:hover { border-color: #c9377d; }
.rd-phone__social:focus-visible { outline: 3px solid var(--rd-key); outline-offset: 2px; }

.rd-phone__social .rd-phone__outico { width: 32px; height: 32px; border-radius: 10px; }
.rd-phone__social .rd-phone__outico svg { width: 17px; height: 17px; }
.rd-phone__social .rd-phone__outsay b { font-size: var(--rd-micro); }
.rd-phone__social .rd-phone__outgo { width: 13px; height: 13px; }

@media (prefers-reduced-motion: reduce) {
  .rd-ico__day rect, .rd-ico__lens, .rd-ico__lensring, .rd-ico__blink,
  .rd-phone__wait { animation: none; }
  .rd-ico__day rect { opacity: 1; }
  .rd-phone__wait { opacity: 1; }
}

/* ---- braintoy/components/chrome/footer.css */
/* The footer: the white logo and the line under it, where Braintoy is, the
   columns of links, the copyright with the way to report a problem, the
   social links, and room at its foot for the chat's launcher where the
   launcher stands over its column. Drawn by footer.py beside this file. */

.rd-foot {
  background: #150c26;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--rd-small);
}

/* THE FOOTER'S OWN LINE HEIGHT, for the same reason the news bar has one.
   No other footer rule sets a line height. Without this, every line of it on
   the homepage inherits the unitless 1.6 from .rd and each element multiplies
   that by its own font size, while on the exported pages the footer sits
   outside .rd and inherits the theme's FIXED 32.4px, which every element
   takes literally whatever its size: a 12px copyright line in a 32px line
   box. Same markup, same stylesheet, and a footer of two heights.
   Unitless rather than a pixel value, so it stays the ratio the design is
   drawn at and a 12px heading does not get a 14px line. */
.rd-foot,
.rd-foot * { line-height: 1.6; }

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

/* Up to 1320px wide the chat's launcher, which reaches 80px in from the
   window's bottom right corner (chat.css), stands over the footer's own
   column, so the footer ends with room for it: at the foot of the page the
   copyright and the social links stand clear above the launcher rather than
   under it. */
@media (max-width: 1320px) {
  .rd-foot__in { padding-bottom: 92px; }
}

.rd-foot__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* the white lockup, because the footer is nearly black */
.rd-foot__mark {
  height: 28px;
  width: auto;
  display: block;
  margin: 0 0 14px;
}
.rd-foot__where { margin-top: 12px; }
.rd-foot__where a { color: rgba(255, 255, 255, 0.86); text-decoration: underline; }

/* the address at a tap's size on a phone: 4px above and below takes it to the
   24px a target needs, the same as braintoy-ui.css gives every mailto link on
   the exported pages */
@media (max-width: 860px) {
  .rd-foot__where a { display: inline-block; padding: 4px 0; }
}

.rd-foot__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

/* two classes, so the exported theme's `:root[data-theme="dark"] h4` cannot
   recolour the footer's headings in dark */
.rd-foot .rd-foot__cols h4 {
  color: #fff;
  font-size: var(--rd-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.rd-foot__cols a {
  display: block;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  letter-spacing: -0.006em;
}

.rd-foot__cols a:hover { color: #fff; }

.rd-foot__end {
  display: flex;
  justify-content: space-between;
  /* CENTRED RATHER THAN STRETCHED, which is the default and makes both
     children as tall as the taller one. */
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: var(--rd-micro);
  /* 6.6 to 1 on the footer's ground, the same as the links beside it */
  color: rgba(255, 255, 255, 0.58);
}

/* THE HOST PAGE'S PARAGRAPH SPACING STOPS AT THE CHROME.
   The exported theme gives every <p> 18px of padding-bottom, and inside .rd
   the redesign resets it; the footer sits outside .rd on the exported pages,
   so without this the copyright line is a 19px line of text in a 37px box
   and the footer is taller there than on the homepage, with byte for byte
   identical markup and the same stylesheet.
   The nowrap below is a separate matter: the row reads as one line and
   should stay one, and the row as a whole still wraps on a narrow screen,
   which is where wrapping belongs. */
.rd-foot p { margin: 0; padding: 0; }

/* and the one paragraph that does want a gap above it, re-asserted because
   the reset above is more specific than the rule that sets it */
.rd-foot .rd-foot__where { margin-top: 12px; }

.rd-foot__end p,
.rd-foot .rd-foot__social a { white-space: nowrap; }

/* The copyright and the report link each keep to one line, and the link goes
   under the copyright when the two do not fit side by side. */
.rd-foot__end p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

/* the way into the report dialog (braintoy-report.js), beside the copyright */
.rd-foot__end .rd-foot__report {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.rd-foot__end .rd-foot__report:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.rd-foot__social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rd-foot__social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 140ms ease;
}

.rd-foot__social a:hover { color: #fff; }
.rd-foot__social svg { width: 16px; height: 16px; flex: 0 0 auto; }

.rd-foot b { color: #fff; font-weight: 700; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  /* ONE COLUMN ON A NARROW SCREEN. Held side by side all the way down, the two
     columns squeeze the Braintoy mark into 79 pixels for a word that needs 87,
     and the page scrolls sideways at 320. */
  .rd-foot__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rd-foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}

@media (max-width: 620px) {
  .rd-foot__in { padding-left: 18px; padding-right: 18px; }
  .rd-foot__cols { gap: 18px 20px; }
}

/* in dark the footer is barely darker than the page, so a hairline marks
   where it starts */
[data-theme="dark"] .rd-foot,
[data-night] .rd-foot,
.rd-foot[data-night] { border-top: 1px solid var(--rd-line); }

/* ---- braintoy/components/chrome/header.css */
/* The header: the logo, the menu and its dropdowns, the light and dark
   switch, the search and the enquiry button, and on a phone the same menu
   as a sheet under the bar. Drawn by header.py beside this file. */

/* two classes, so the exported theme's weight on every link cannot thin the
   enquiry button, and its white on a submit button cannot reach it in dark */
.rd-top .rd-btn {
  font-weight: 700;
}

.rd-top .rd-btn--solid {
  color: var(--rd-on-key);
}

.rd-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--rd-top);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rd-line-soft);
}

.rd-top__in {
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 30px;
}

/* THE ACTUAL LOGO, not a wordmark set in Inter. Braintoy's mark is the node
   graph beside the name, and a page for somebody's brand carries their
   brand. */
.rd-mark {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
  --rd-mark-tall: 30px;
  --rd-mark-wide: calc(var(--rd-mark-tall) * 1000 / 181);
}

.rd-mark img {
  height: var(--rd-mark-tall);
  width: auto;
  display: block;
}

/* The moving logo (braintoy-logo.js) draws the mark 880 wide and 181 tall on
   a canvas of 1000 by 240, 60 in from either side and 29.5 down, the rest
   room for the light that sweeps across it. Its box is --rd-mark-wide across
   and pulled out by that room on every side, so the mark is the size and in
   the place the picture has. The pictures inside it show until it starts. */
.rd-mark braintoy-logo:defined {
  margin: calc(var(--rd-mark-tall) * -29.5 / 181) calc(var(--rd-mark-tall) * -60 / 181);
  vertical-align: top;
}

/* both classes named, to outrank the dark theme's rule below that shows the
   mark for a dark page */
.rd-mark braintoy-logo:defined img.rd-mark__on-light,
.rd-mark braintoy-logo:defined img.rd-mark__on-dark { display: none; }

.rd-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 12px;
}

.rd-nav a {
  position: relative;
  padding: 6px 0;
  font-size: var(--rd-small);
  font-weight: 500;
  color: var(--rd-body);
  letter-spacing: -0.006em;
}

.rd-nav a:hover { color: var(--rd-ink); }

/* the page you are on, and the dropdown it is listed in */
.rd-nav a[aria-current],
.rd-nav__has.is-current > a {
  color: var(--rd-ink);
  font-weight: 600;
}

.rd-nav a[aria-current]::after,
.rd-nav__has.is-current > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--rd-key);
}

.rd-nav svg { width: 10px; height: 10px; margin-left: 5px; opacity: 0.55; }

.rd-top__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* WHAT THE CARETS OPEN: a dropdown under each entry of the menu that has
   one.

   :focus-within AS WELL AS :hover, or this is a control a keyboard can never
   open. The parent keeps the padding so the pointer can cross the gap from the
   word to the list without falling out of the hover. */
.rd-nav__has { position: relative; display: flex; align-items: center; }

.rd-nav__sub {
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 60;
  min-width: 212px;
  margin: 0;
  padding: 7px;
  list-style: none;
  background: var(--rd-card);
  border: 1px solid var(--rd-card-line);
  border-radius: 13px;
  box-shadow: 0 18px 44px rgba(27, 16, 48, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
}

.rd-nav__has:hover .rd-nav__sub,
.rd-nav__has:focus-within .rd-nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* a class and an element, so the theme's `ul li { list-style: disc }` on the
   exported pages cannot put bullets beside the entries */
.rd-nav__sub li { list-style: none; }

.rd-nav__sub a {
  display: block;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: var(--rd-small);
  font-weight: 500;
  color: var(--rd-body);
  white-space: nowrap;
}

.rd-nav__sub a:hover { background: var(--rd-plum-soft); color: var(--rd-ink); }
.rd-nav__sub a:focus-visible { outline: 2px solid var(--rd-key); outline-offset: -2px; }

/* the caret turns over, so the control says which way it is going */
.rd-nav__has:hover > a svg,
.rd-nav__has:focus-within > a svg { transform: rotate(180deg); }
.rd-nav__has > a svg { transition: transform 160ms ease; }

/* A DROPDOWN IS A POINTER IDEA. On a touch screen the first tap would open it
   and the same tap follows the link, so the list flashes and vanishes. The
   children are all reachable from the page it goes to. */
@media (pointer: coarse) {
  .rd-nav__sub { display: none; }
}



.rd-search {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rd-body);
  cursor: pointer;
}

.rd-search:hover { background: var(--rd-soft); color: var(--rd-ink); }
.rd-search svg { width: 17px; height: 17px; }

/* THE HEADER STICKS ON EVERY PAGE, NOT JUST THE HOMEPAGE.
   .rd-top is position:sticky, and on its own that holds on the homepage and
   nowhere else: the exported theme puts overflow:hidden on <body>, and an
   ancestor that clips makes a scroll container that captures the sticky
   element.
   CLIP RATHER THAN VISIBLE on the across axis, so the theme still gets what it
   wants from overflow:hidden, which is no sideways scrollbar. overflow:clip
   does not make a scroll container, so sticky survives it.
   Scoped with :has so it only reaches pages carrying our header. A browser
   without :has drops the rule and gets a header that scrolls away with the
   page rather than a surprise. */
body:has(.rd-top--page) {
  overflow: visible;
  overflow-x: clip;
}

/* THE SWITCH. Two glyphs in one button, one of them hidden, so the control does
   not resize as it is used and the label says what pressing it will do rather
   than what the page currently is. */
.rd-theme {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--rd-line);
  border-radius: 11px;
  background: var(--rd-card);
  color: var(--rd-plum);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.rd-theme:hover { border-color: var(--rd-key); color: var(--rd-key); }
.rd-theme:focus-visible { outline: 3px solid var(--rd-plum); outline-offset: 2px; }
.rd-theme svg { width: 18px; height: 18px; }
.rd-theme .rd-theme__moon { display: none; }
[data-theme="dark"] .rd-theme .rd-theme__sun,
[data-night] .rd-theme .rd-theme__sun,
.rd-theme[data-night] .rd-theme__sun { display: none; }
[data-theme="dark"] .rd-theme .rd-theme__moon,
[data-night] .rd-theme .rd-theme__moon,
.rd-theme[data-night] .rd-theme__moon { display: block; }

/* The same switch as a row of the phone menu, shown only on a phone, where
   the header row keeps its room for the logo, the menu and the enquiry. */
.rd-theme--sheet { display: none; }

@media (max-width: 620px) {
  .rd-top__end .rd-theme { display: none; }

  .rd-nav .rd-theme--sheet {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 44px;
    margin-top: 8px;
    padding: 13px 14px;
    border: 0;
    border-radius: 11px;
    background: var(--rd-plum-soft);
    color: var(--rd-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
  }
}

/* TWO MARKS, BECAUSE BRAINTOY DREW TWO. Rev1 is the reversed one, already used
   on the rest of the site, and is what belongs on a dark header. */
/* img.CLASS, NOT .CLASS. `.rd-mark img { display: block }` is a class plus an
   element, which outranks a bare class however far below it this sits, so a
   bare `.rd-mark__on-dark { display: none }` never applies and the header
   shows BOTH marks, one under the other. */
.rd-mark img.rd-mark__on-dark { display: none; }
[data-theme="dark"] .rd-mark img.rd-mark__on-light,
[data-night] .rd-mark img.rd-mark__on-light,
.rd-mark[data-night] img.rd-mark__on-light { display: none; }
[data-theme="dark"] .rd-mark img.rd-mark__on-dark,
[data-night] .rd-mark img.rd-mark__on-dark,
.rd-mark[data-night] img.rd-mark__on-dark { display: block; }

@media (max-width: 1080px) {
  .rd-nav { display: none; }
}

@media (max-width: 620px) {
  .rd-top__in { padding-left: 18px; padding-right: 18px; }

  /* THE HEADER AT PHONE WIDTH. The logo is a fixed-width image, and at 320 the
     mark, the search and the button want 349px of a 284px row. The search
     goes, and the mark and the button both come down a size. */
  .rd-top__in { gap: 12px; padding-left: 18px; padding-right: 18px; }
  .rd-search { display: none; }
  .rd-mark { --rd-mark-tall: 25px; }

  /* ONE LINE. The theme switch is in the menu at this width, which leaves the
     row the logo, the menu and this; the steps below keep the three inside
     320. */
  .rd-top__end .rd-btn {
    padding: 10px 12px;
    font-size: 13.5px;
    gap: 7px;
    white-space: nowrap;
  }

  .rd-top__end .rd-btn svg { display: none; }
}

@media (max-width: 389px) {
  .rd-top__in { gap: 10px; }
  .rd-mark { --rd-mark-tall: 22px; }
  .rd-top__end .rd-btn { padding: 9px 11px; font-size: 12.5px; }
}

@media (max-width: 359px) {
  .rd-top__in { gap: 8px; }
  .rd-mark { --rd-mark-tall: 18px; }
  .rd-top__end .rd-btn { padding: 8px 9px; font-size: 12px; }
}

/* FORTY-FOUR, ON ANYTHING WITH A FINGER. The header controls are drawn between
   25 and 38 pixels tall, which is a comfortable click and a missed tap. The
   mark grows by padding rather than by setting the logo bigger, so the picture
   stays the size it is drawn for. */
@media (pointer: coarse), (max-width: 900px) {
  .rd-mark { display: grid; align-items: center; min-height: 44px; }
  .rd-theme { width: 44px; height: 44px; }
  .rd-search { width: 44px; height: 44px; }
  .rd-top__end .rd-btn { min-height: 44px; }
}

/* ------------------------------------------------------ the navigation on a phone

   .rd-nav is display: none at 1080px and under, and this takes its place.
   Without it every page carrying this header is a dead end on a phone: no
   Home, no Training, no Products, no way anywhere except the footer.

   THE SHEET IS THE SAME .rd-nav, turned from a row into a column. Not a second
   copy of the links: one list, which cannot drift from itself. */
.rd-burger { display: none; }

@media (max-width: 1080px) {
  .rd-burger {
    display: grid;
    place-items: center;
    /* no shrinking: a crowded header row would squeeze this under the 44 the
       rest of the header is held to, on the one control that opens everything
       else. */
    flex: 0 0 auto;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--rd-card-line);
    border-radius: 12px;
    background: var(--rd-card);
    color: var(--rd-ink);
    cursor: pointer;
  }
  .rd-burger svg { width: 21px; height: 21px; }
  .rd-burger__x { display: none; }
  .rd-burger[aria-expanded="true"] svg { display: none; }
  .rd-burger[aria-expanded="true"] .rd-burger__x { display: block; }
  .rd-burger:focus-visible { outline: 2px solid var(--rd-key); outline-offset: 2px; }

  /* THE SHEET. Anchored to the header rather than the viewport so it opens
     under the bar it belongs to, whatever is above it on the page. */
  .rd-top__in { position: relative; }

  .rd-nav {
    display: block;
    position: absolute;
    top: calc(100% + 11px);
    left: 0;
    right: 0;
    z-index: 70;
    margin: 0;
    padding: 9px;
    max-height: min(74vh, 560px);
    overflow-y: auto;
    background: var(--rd-card);
    border: 1px solid var(--rd-card-line);
    border-radius: 16px;
    box-shadow: 0 22px 54px rgba(27, 16, 48, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .rd-top.is-nav-open .rd-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .rd-nav > a,
  .rd-nav__has > a {
    display: block;
    padding: 13px 14px;
    border-radius: 11px;
    font-size: 16px;
    font-weight: 600;
    min-height: 44px;
  }

  .rd-nav > a:hover,
  .rd-nav__has > a:hover { background: var(--rd-plum-soft); }

  .rd-nav a[aria-current]::after,
  .rd-nav__has.is-current > a::after { display: none; }
  .rd-nav a[aria-current],
  .rd-nav__has.is-current > a { background: var(--rd-key-soft); color: var(--rd-key); }

  .rd-nav__has { display: block; position: static; }

  /* THE DROPDOWNS FLATTEN. A submenu that needs hover cannot be opened by a
     finger, so the children sit indented under their parent as plain links. */
  .rd-nav__has > a svg { display: none; }

  /* visibility: inherit, so the children are hidden with the closed sheet and
     shown with the open one; a child set visible stays visible, and clickable,
     inside a hidden parent */
  .rd-nav__sub {
    display: block;
    position: static;
    opacity: 1;
    visibility: inherit;
    transform: none;
    min-width: 0;
    margin: 0 0 4px;
    padding: 0 0 0 14px;
    background: none;
    border: 0;
    box-shadow: none;
    transition: none;
  }

  .rd-nav__sub a {
    padding: 11px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--rd-muted);
  }
}

/* ---- braintoy/components/chrome/newsbar.css */
/* The news bar across the top of every page: its words and the button that
   goes to the newest post or to a page, the card braintoy-news.js hangs from
   the button, and the close control braintoy-announcement.js adds. Drawn by
   newsbar.py beside this file. */

/* two classes, so the exported theme's weight on every link cannot thin the
   button */
.rd-newsbar .rd-newsbar__link {
  font-weight: 700;
}

.rd-newsbar {
  position: relative;
  /* ABOVE THE PAGE. Some exported pages pull their first section up under the
     header with a negative margin, and a positioned section later in the page
     paints over a bar at z-index auto; the case studies hold theirs in a
     wrapper at z-index 11. Above the header (40) as well, so the news card
     that hangs from the bar is drawn over it; the header's dropdowns and its
     phone menu open downward and never meet the bar. Below the rail (50), the
     search (120) and the chat (140). */
  z-index: 45;
  background: var(--rd-key);
  color: var(--rd-on-key);
  /* ITS OWN LINE HEIGHT, because it is put on pages with different ones and
     WOULD INHERIT THEIRS: the exported theme sets 18px/32.4px where the
     redesign sets 16px/25.6px, so the identical markup would come out taller
     on an exported page than on the homepage. A strip of chrome that changes
     height between pages makes the whole header jump as you navigate. */
  font-size: 14.5px;
  line-height: 1.5;
}

.rd-newsbar * { line-height: 1.5; }

.rd-newsbar__in {
  max-width: var(--rd-wrap, 1240px);
  margin: 0 auto;
  padding: 9px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  flex-wrap: wrap;
}

.rd-newsbar__say { font-size: 14.5px; font-weight: 700; }

/* the pill is the key colour's deeper step: darker than the bar in light,
   lighter in dark, and the text on it the same colour as the bar's */
.rd-newsbar__link {
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--rd-key-deep);
  transition: box-shadow 150ms ease;
}

.rd-newsbar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rd-on-key);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  min-height: 24px;
}

/* THE TITLE COMES BEFORE THE ARROW, which needs saying because the host page
   says otherwise. braintoy-news.js finds the title by the class
   .elementor-button-text, so our bar has to carry that name, and the page's
   own Elementor CSS sets order: 10 and flex-grow: 1 on it. In a flex row that
   puts the title AFTER the arrow: the bar reads "LATEST -> hi" instead of
   "hi ->". Borrowing somebody else's class name borrows their rules with it. */
.rd-newsbar__link .elementor-button-text { order: 0; flex-grow: 0; }

/* A PILL WITH A BACKGROUND IS A BUTTON, AND BUTTONS DO NOT UNDERLINE.
   Hovering rings it in its own text colour, which leaves the contrast of the
   words alone, and the arrow moves the way the arrow on every other button
   here moves. */
.rd-newsbar__link:hover {
  box-shadow: inset 0 0 0 1.5px currentColor;
  text-decoration: none;
}

.rd-newsbar__link:hover svg { transform: translateX(2px); }
.rd-newsbar__link svg { transition: transform 150ms ease; }
.rd-newsbar__link:focus-visible { outline: 2px solid var(--rd-on-key); outline-offset: 3px; }
.rd-newsbar__link svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* The button carries the newest post's title, capped so a long one cannot
   widen the bar. */
.rd-newsbar__link .elementor-button-text {
  display: inline-block;
  max-width: 46ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

@media (max-width: 900px) {
  .rd-newsbar__link .elementor-button-text { max-width: 28ch; }
}

/* On a phone the bar is the headline alone, on one line, so it is the same
   height before the headline arrives as after. */
@media (max-width: 560px) {
  .rd-newsbar__in { flex-wrap: nowrap; justify-content: flex-start; padding: 8px 44px 8px 14px; }
  .rd-newsbar__say { display: none; }
  .rd-newsbar__link { min-width: 0; font-size: 13.5px; }
  .rd-newsbar__link .elementor-button-text { max-width: 31ch; }
}

/* The card the button opens on hover and on focus, built by braintoy-news.js:
   the post's picture beside its date, title and opening line. It hangs from
   the bar under the button; the script sets --x to the button's middle, kept
   inside the window, and --tip to where the pointer meets the card. */
.rd-news {
  position: absolute;
  top: calc(100% + 12px);
  left: var(--x, 50%);
  z-index: 80;
  width: min(460px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  border: 1px solid var(--rd-line);
  border-radius: 18px;
  background: var(--rd-card);
  color: var(--rd-ink);
  font-family: "Inter", system-ui, sans-serif;
  text-align: left;
  box-shadow: 0 28px 60px -22px rgba(24, 8, 34, 0.5), 0 3px 10px rgba(24, 8, 34, 0.08);
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.97);
  transform-origin: var(--tip, 50%) 0;
  transition: opacity 170ms ease, transform 260ms cubic-bezier(0.2, 0.9, 0.25, 1);
  pointer-events: none;
}

.rd-news.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.rd-news--bare { grid-template-columns: minmax(0, 1fr); }

/* the theme's link colours and underline stop at the card */
.rd-newsbar .rd-news,
.rd-newsbar .rd-news:hover { color: var(--rd-ink); text-decoration: none; }

/* the pointer up to the button, and a strip above the card that keeps the
   hover while the pointer crosses the gap */
.rd-news::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--tip, 50%);
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--rd-line);
  border-left: 1px solid var(--rd-line);
  border-radius: 3px 0 0 0;
  background: var(--rd-card);
  transform: translateX(-50%) rotate(45deg);
}

.rd-news::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.rd-news__pic {
  position: relative;
  overflow: hidden;
  border-radius: 17px 0 0 17px;
  background: var(--rd-soft);
}

.rd-news__pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 600ms cubic-bezier(0.2, 0.9, 0.25, 1);
}

.rd-news.is-on .rd-news__pic img { transform: scale(1); }
.rd-news__pic img { opacity: 0; }
.rd-news__pic.is-in img { opacity: 1; transition: opacity 300ms ease, transform 600ms cubic-bezier(0.2, 0.9, 0.25, 1); }

.rd-news__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 16px 18px 17px;
}

.rd-news__when {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

.rd-news__when b {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rd-key);
  color: var(--rd-on-key);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.rd-news__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--rd-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rd-news__sum {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--rd-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rd-news__go {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--rd-key);
}

.rd-news__go svg { width: 14px; height: 14px; transition: transform 200ms ease; }
.rd-news:hover .rd-news__go svg { transform: translateX(3px); }

@media (hover: none), (max-width: 700px) {
  .rd-news { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-news, .rd-news__pic img { transition: opacity 120ms ease; }
  .rd-news, .rd-news.is-on { transform: translate(-50%, 0); }
  .rd-news__pic img { transform: none; }
}


/* THE DISMISSAL HAS TO REACH THIS PAGE TOO.
   braintoy-announcement.js hides the bar by putting a class on <html>, and
   the rule that acts on it lives in braintoy-ui.css, which the homepage does
   not load. Without this the close button there would store the key and
   leave the bar where it is. */
html.bt-announcement-dismissed [data-news-bar] { display: none !important; }

/* ------------------------------------------- the bar's own dismiss control

   braintoy-announcement.js INJECTS this button; everything about how it looks
   lives in braintoy-ui.css, which the homepage does not load. There the cross
   would be a 16 by 21 browser-default button at the top left corner of the
   bar: present, functional, and invisible as a control.

   Said here so the bar is self-contained wherever it is put. */
.rd-newsbar { padding-right: 52px; }

.rd-newsbar .bt-announcement-close {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--rd-on-key);
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.rd-newsbar .bt-announcement-close svg { width: 14px; height: 14px; }

/* A HOVER STATE AS WELL AS A FOCUS STATE, so a mouse gets an answer from it
   too. Same treatment for both, because they mean the same thing. */
.rd-newsbar .bt-announcement-close:hover,
.rd-newsbar .bt-announcement-close:focus-visible {
  opacity: 1;
  background-color: var(--rd-key-deep);
}

.rd-newsbar .bt-announcement-close:focus-visible {
  outline: 2px solid var(--rd-on-key);
  outline-offset: 2px;
}

/* ---- braintoy/components/contact/enquiry_form.css */
/* The enquiry laid on the page, in the dialog's fields and styles (.rd-ask__*
   in braintoy-redesign.css), beside what happens to it, on a dotted ground. */
.rd-sec--soft:has(> .rd__wrap .ct-ask) {
  background: radial-gradient(circle,
              color-mix(in srgb, var(--rd-plum) 16%, transparent) 1px, transparent 1.6px)
              50% 0 / 22px 22px, var(--rd-soft);
}

.ct-ask {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 64px;
  align-items: start;
}

.ct-ask__words { padding-top: 12px; }

.ct-ask__words h2 {
  margin: 0 0 16px;
  color: var(--rd-ink);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.034em;
}

.ct-ask__lede { margin: 0; max-width: 46ch; color: var(--rd-body); line-height: 1.65; }

.ct-steps { margin: 30px 0 0; padding: 0; list-style: none; }

.ct-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--rd-line);
  color: var(--rd-ink);
  font-size: 15.5px;
  font-weight: 600;
}

.ct-steps li:last-child { border-bottom: 1px solid var(--rd-line); }

.ct-steps__n {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rd-card-line);
  border-radius: 50%;
  background: var(--rd-card);
  color: var(--rd-key);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ct-ask__box { scroll-margin-top: 96px; }

.ct-ask .rd-ask__card {
  max-height: none;
  overflow: visible;
  padding: 34px 34px 30px;
  box-shadow: var(--rd-shadow-lift);
}

.ct-ask .rd-ask__grid { gap: 18px; }

/* the theme sets its own face on every label */
.ct-ask .rd-ask__field label { font-family: inherit; font-size: 13px; }

.ct-ask .rd-ask__field input,
.ct-ask .rd-ask__field select,
.ct-ask .rd-ask__field textarea {
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 16px;
}

.ct-ask .rd-ask__field textarea { min-height: 128px; }

.ct-ask__send { display: flex; justify-content: flex-end; margin-top: 22px; }

/* The theme draws every submit button inside .container-wrap as a dark square,
   its padding and corners marked important. */
.ct-ask .ct-ask__send .rd-btn--solid {
  padding: 14px 24px !important;
  border-radius: 999px !important;
  background: var(--rd-key);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}

.ct-ask .ct-ask__send .rd-btn--solid:hover { background: var(--rd-key-deep); }

.ct-ask .rd-ask__done { padding: 56px 40px 50px; }

@media (max-width: 1023px) {
  .ct-ask { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ct-ask__words { padding-top: 0; }
}

@media (max-width: 640px) {
  .ct-ask .rd-ask__card { padding: 24px 18px 20px; }
  .ct-ask__send .rd-btn { width: 100%; justify-content: center; }
}

/* ---- braintoy/components/contact/place_index.css */
/* where an organisation works, as an index by country, on a dotted ground */
.rd-sec:has(.ab-places) {
  background:
    radial-gradient(circle, color-mix(in srgb, var(--rd-plum) 15%, transparent) 1px,
                    transparent 1.6px) 0 0 / 22px 22px,
    var(--rd-soft);
}

.ab-places .ab-places__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 40px;
  margin-bottom: 36px;
}

.ab-places .ab-places__top .rd-sec__head { margin-bottom: 0; }

/* the map, which stands in for the index under it once it is drawn */
.ab-places .bt-map { margin: 0; --bt-map-radius: var(--rd-radius-lg); }
.ab-places .bt-map__stage { box-shadow: var(--rd-shadow); }
.ab-places .bt-map__countries { box-shadow: var(--rd-shadow); clip-path: inset(0 -60px -70px -60px); }

.ab-places .bt-map--on ~ .ab-index,
.ab-places .bt-map--on ~ .ab-places__more { display: none; }

.ab-places .ab-index {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ab-row;
  border-top: 1px solid var(--rd-line);
}

.ab-places .ab-index__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 0.9fr) minmax(0, 2fr);
  gap: 10px 28px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rd-line);
  counter-increment: ab-row;
}

.ab-places .ab-index__row::before {
  content: counter(ab-row, decimal-leading-zero);
  align-self: center;
  color: var(--rd-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.ab-places h3.ab-index__country {
  margin: 0;
  color: var(--rd-ink);
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  transition: color 220ms ease, transform 220ms ease;
}

.ab-places .ab-index__row:hover .ab-index__country {
  color: var(--rd-key);
  transform: translateX(6px);
}

/* a country's flag before its name, as tall as its capitals, edged so a
   white stripe still reads on the ground */
.ab-places .ab-index__flag {
  display: inline-block;
  width: auto;
  height: 0.72em;
  margin-right: 0.28em;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--rd-line);
  vertical-align: baseline;
}

.ab-places .ab-index__what { display: grid; gap: 14px; }

.ab-places .ab-index__places {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* each place on the colour the map gives what happens there */
.ab-places .ab-place {
  --kind-ink: var(--kind);
  display: inline-grid;
  gap: 1px;
  padding: 9px 14px 10px;
  border: 1px solid color-mix(in srgb, var(--kind) 24%, var(--rd-card-line));
  border-radius: 12px;
  background: var(--rd-card);
  transition: transform 180ms ease, border-color 180ms ease;
}

[data-theme="dark"] .ab-places .ab-place,
[data-night] .ab-places .ab-place,
.ab-places[data-night] .ab-place {
  --kind-ink: color-mix(in srgb, var(--kind) 45%, #fff);
}

.ab-places .ab-place:hover {
  transform: translateY(-2px);
  border-color: var(--kind-ink);
}

.ab-places .ab-place__kind {
  color: var(--kind-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ab-places .ab-place__city {
  color: var(--rd-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* a place reads as its kind at its city, "Client at Dortmund"; the word stands
   outside the city's own words, so writing the city leaves it alone */
.ab-places .ab-place__city::before {
  content: "at ";
  color: var(--rd-muted);
  font-weight: 500;
}

/* the line after the countries, such as that there are more */
.ab-places .ab-places__more {
  margin: 28px 0 0;
  color: var(--rd-body);
  font-size: 17px;
}

.ab-places .ab-index__sectors {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.ab-places .ab-index__sectors .ab-label { margin: 0; }

.ab-places .ab-index__sectors ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-places .ab-sector {
  color: var(--rd-body);
  font-size: 15px;
  font-weight: 600;
}

.ab-places .ab-sector + .ab-sector::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 10px 3px;
  border-radius: 50%;
  background: var(--rd-key);
  vertical-align: middle;
}

@media (max-width: 900px) {
  .ab-places .ab-index__row { grid-template-columns: 40px minmax(0, 1fr); }
  .ab-places .ab-index__what { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-places h3.ab-index__country,
  .ab-places .ab-place { transition: none; }

  .ab-places .ab-index__row:hover .ab-index__country,
  .ab-places .ab-place:hover { transform: none; }
}

/* ---- braintoy/components/contact/places_map.css */
/* The map (places_map.py, and place_index.py's): braintoy-map.js draws it
   from the places in braintoy-map-data.js, which tools/patch_map.py writes
   from tools/map_places.py and tools/data/map-layers.json.

   THE BASE MAP IS DELIBERATELY QUIET. Pale land, pale water, thin borders,
   grey names. The markers are the only saturated thing on it, because they
   are what a reader came for.

   Everything a reader can press is a real button in the document positioned
   over the drawing, because a shape inside an SVG cannot be tabbed to, cannot
   be pressed from a keyboard and announces nothing. The town names are not
   interactive, so they stay in the drawing.

   The list under the map is not a fallback that duplicates it. It is the
   information, it is what the server sends, and the map illustrates it. */

.bt-map { margin: 22px 0 6px; --bt-map-radius: 16px; }

.bt-map__stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--bt-map-radius);
  background: var(--bt-map-frame);
  border: 1px solid var(--bt-line, #d8cee8);
  cursor: grab;
  touch-action: pan-y;
}

.bt-map__stage.is-dragging { cursor: grabbing; }
.bt-map__stage:focus-visible { outline: 3px solid #e64b38; outline-offset: 2px; }
.bt-map__stage svg { display: block; width: 100%; height: 100%; }

/* == the geography, back to front == */

/* The sea is the whole frame, because on a flat map everything that is not land
   is sea. */
.bt-map__sea { fill: var(--bt-map-sea-2); }

.bt-map__land { fill: var(--bt-map-land); stroke: none; }
.bt-map__water, .bt-map__water2 {
  fill: var(--bt-map-sea-2);
  stroke: var(--bt-map-river);
  stroke-width: 0.4;
}
.bt-map__urban { fill: var(--bt-map-urban); stroke: none; }
.bt-map__river {
  fill: none;
  stroke: var(--bt-map-river);
  stroke-width: 0.9;
  stroke-linecap: round;
  opacity: 0.75;
}
.bt-map__border {
  fill: none;
  stroke: var(--bt-map-coast);
  stroke-width: 0.9;
  stroke-linejoin: round;
}

/* Dashed, because that is what a border inside a country looks like on every
   map anybody has ever read, and it keeps them apart from the coastline
   without needing a second colour. */
.bt-map__prov, .bt-map__provf {
  fill: none;
  stroke: var(--bt-map-prov);
  stroke-width: 0.8;
  stroke-dasharray: 4 3;
}

.bt-map__grid {
  fill: none;
  stroke: var(--bt-map-grid);
  stroke-width: 0.7;
  opacity: 0.3;
}

/* == the names on the map == */

.bt-map__town { fill: var(--bt-map-town); }

/* Painted with a halo of the ground colour behind the letters, because a name
   crosses pale land, darker built up area and water in the same word and no
   flat colour holds up over all three. paint-order puts the stroke behind the
   fill instead of over it, which is the whole trick. */
.bt-map__townname, .bt-map__region {
  paint-order: stroke;
  stroke: var(--bt-map-halo);
  stroke-width: 2.6;
  stroke-linejoin: round;
  font-family: inherit;
}

.bt-map__townname {
  fill: var(--bt-map-townname);
  font-size: 11px;
  font-weight: 500;
}

.bt-map__townname--big { font-size: 12.5px; font-weight: 700; }

.bt-map__region {
  fill: var(--bt-map-region);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-anchor: middle;
}

/* == the markers == */

.bt-map__marks { position: absolute; inset: 0; pointer-events: none; }

/* left and top as percentages, which the component writes on every frame. They
   are in the same space as the SVG's viewBox, so the markers and the drawing
   under them scale together whatever the frame turns out to be. */
.bt-map__pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -14px 0 0 -14px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}

.bt-map__pin.is-off { display: none; }

/* Near the right edge the name goes on the other side of the marker, so it
   stays inside the frame instead of being cut in half by it.

   row-reverse ALONE DOES NOT MOVE IT. It reorders the children inside a box
   that still grows rightward from the marker, so the name is still off the
   edge and still cut. The box has to be shifted left by its own width as well,
   less the width of the dot, which puts the dot back on its place. */
.bt-map__pin.is-left {
  flex-direction: row-reverse;
  transform: translateX(calc(-100% + 28px));
}

/* 28 by 28 of hit area around a dot drawn at 13, so the target clears the 24
   the guideline asks for without the marker growing to meet it. */
.bt-map__dot {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.bt-map__dot::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--pin, #e64b38);
  box-shadow: 0 0 0 2.5px #ffffff, 0 2px 7px rgba(12, 4, 24, 0.5);
}

.bt-map__pin--office { --pin: #0f6b56; }
.bt-map__pin--partner { --pin: #7a3fa8; }
.bt-map__pin--teaching { --pin: #1f47b8; }
.bt-map__pin--client { --pin: #d43a24; }
.bt-map__pin--community { --pin: #9a5205; }

.bt-map__pin.is-on .bt-map__dot::before,
.bt-map__pin:hover .bt-map__dot::before {
  box-shadow: 0 0 0 2.5px #ffffff, 0 0 0 8px color-mix(in srgb,
              var(--pin) 38%, transparent), 0 2px 7px rgba(12, 4, 24, 0.5);
}

.bt-map__pin:focus-visible { outline: 3px solid #ffffff; outline-offset: 1px; }

/* The marker names are the one thing on the map allowed to shout, so they are
   white on the marker's own colour rather than on a halo like the towns. */
.bt-map__name {
  opacity: 0;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--pin, #e64b38);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 7px rgba(12, 4, 24, 0.35);
  transition: opacity 200ms ease;
}

.bt-map__pin.is-named .bt-map__name,
.bt-map__pin:hover .bt-map__name,
.bt-map__pin:focus-visible .bt-map__name { opacity: 1; }

/* Stacked, because on a whole globe the places are one dot. Braintoy's own is
   the one that should be on top of that pile, and a chosen marker beats
   everything. */
.bt-map__pin--community { z-index: 1; }
.bt-map__pin--partner { z-index: 2; }
.bt-map__pin--client { z-index: 2; }
.bt-map__pin--teaching { z-index: 3; }
.bt-map__pin--office { z-index: 4; }
.bt-map__pin.is-named { z-index: 5; }
.bt-map__pin.is-on, .bt-map__pin:hover, .bt-map__pin:focus-visible { z-index: 6; }

/* == the legend, the controls and the scale == */

.bt-map__key {
  position: absolute;
  left: 12px;
  top: 12px;
  margin: 0;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  list-style: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bt-paper, #ffffff) 90%, transparent);
  border: 1px solid var(--bt-line, #d8cee8);
  font-size: 12px;
  color: var(--bt-ink, #2b1743);
}

.bt-map__key li { position: relative; padding-left: 15px; list-style: none; }
.bt-map__key li::marker { content: none; }

.bt-map__key li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pin, #e64b38);
}

.bt-map__key-office { --pin: #0f6b56; }
.bt-map__key-partner { --pin: #7a3fa8; }
.bt-map__key-teaching { --pin: #1f47b8; }
.bt-map__key-client { --pin: #d43a24; }
.bt-map__key-community { --pin: #9a5205; }

.bt-map__scale {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bt-paper, #ffffff) 88%, transparent);
  border: 1px solid var(--bt-line, #d8cee8);
  font-size: 12px;
  color: var(--bt-ink, #2b1743);
  pointer-events: none;
}

.bt-map__bar {
  height: 5px;
  border: 1px solid var(--bt-ink, #2b1743);
  border-top: 0;
  transition: width 160ms ease;
}

/* Above the markers, all of it. A marker sits wherever its place is, which can
   be underneath a control: at the world view the Kuwait one lands on the zoom
   buttons and would swallow the click. The markers carry z-index so they stack
   sensibly among themselves, and the chrome has to beat all of them. */
.bt-map__tools, .bt-map__key, .bt-map__scale, .bt-map__say { z-index: 10; }

.bt-map__tools {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bt-map__btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bt-line, #d8cee8);
  border-radius: 9px;
  background: var(--bt-paper, #ffffff);
  color: var(--bt-ink, #2b1743);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

/* Wide enough for the word at a size that can be read: a control nobody can
   read is not a control. */
.bt-map__btn--wide { width: 54px; font-size: 12.5px; font-weight: 600; }
.bt-map__btn:hover:not(:disabled) { border-color: #e64b38; color: #e64b38; }
.bt-map__btn:disabled { opacity: 0.4; cursor: default; }

/* == the panel a marker opens == */

.bt-map__say {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: min(330px, calc(100% - 74px));
  /* A place with four things at it makes a tall panel, and a tall panel over a
     short frame covers the markers it is describing. It scrolls instead, and
     stops 150px from the top, under the zoom buttons and Reset in the same
     corner. */
  max-height: calc(100% - 162px);
  overflow-y: auto;
  padding: 0;
  border-radius: 12px;
  background: var(--bt-paper, #ffffff);
  border: 1px solid var(--bt-line, #d8cee8);
  box-shadow: 0 14px 34px rgba(20, 8, 40, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.bt-map__say.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bt-map__say:not(.is-on) * { display: none; }
.bt-map__say ul { margin: 0; padding: 0 14px 13px; list-style: none; }

/* The Contact page centres its text and the panel inherits it. Stated here
   rather than left to whatever page a map is dropped onto. */
.bt-map__say, .bt-map__list { text-align: left; }

.bt-map__where {
  margin: 0;
  padding: 12px 40px 8px 14px;
  border-bottom: 1px solid var(--bt-line, #d8cee8);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--bt-ink, #2b1743);
}

.bt-map__at {
  position: relative;
  margin: 10px 0 0;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bt-muted, #6f6879);
}

.bt-map__at::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pin, #e64b38);
}

.bt-map__at--office { --pin: #0f6b56; }
.bt-map__at--partner { --pin: #7a3fa8; }
.bt-map__at--teaching { --pin: #1f47b8; }
.bt-map__at--client { --pin: #d43a24; }
.bt-map__at--community { --pin: #9a5205; }
.bt-map__at a, .bt-map__at strong { color: var(--bt-ink, #2b1743); font-weight: 700; }
.bt-map__at span { display: block; }

.bt-map__shut {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--bt-muted, #6f6879);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.bt-map__shut:hover { color: #e64b38; }

/* == the places, in words == */

.bt-map__list { margin: 16px 0 0; font-size: 14px; line-height: 1.6; }
.bt-map__list ul { margin: 0 0 14px; padding: 0; list-style: none; }
.bt-map__list > ul > li { margin: 0 0 10px; }
.bt-map__list ul ul { margin: 4px 0 0 14px; }
.bt-map__list span { color: var(--bt-muted, #6f6879); }

.bt-map__listhead {
  margin: 0 0 8px;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--bt-muted, #6f6879);
}

/* A link on its own line, so it takes a height a thumb can hit rather than the
   17 a bare line of 14px type gives it. */
.bt-map__go {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bt-ink, #2b1743);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.bt-map__go:hover { color: #e64b38; }

/* The same again for the links in the list. Each is on a line of its own, so
   2.5.8 does not exempt it the way it exempts a link inside a sentence, and a
   bare line of 14px type is 19 tall. */
.bt-map__list a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}

/* == the flags and the countries ==

   A country's flag stands before its name wherever it is named: on a marker,
   in the panel, in the list, and on its button in the row under the frame.
   The row, its buttons, what the panel says of a country and the flag that
   stands for a country with no marker are parts of the lit panel, in its
   colours in both themes. */

.bt-map__flag {
  width: 18px;
  height: 13.5px;
  flex: 0 0 auto;
  border-radius: 2.5px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.bt-map__name { display: inline-flex; align-items: center; gap: 6px; }
.bt-map__name .bt-map__flag { width: 16px; height: 12px; }
.bt-map__where { display: flex; align-items: center; gap: 9px; }
.bt-map__where .bt-map__flag { width: 24px; height: 18px; border-radius: 3px; }
.bt-map__go { gap: 7px; }

/* a marker outside the country chosen stands back */
.bt-map__pin { transition: opacity 240ms ease; }
.bt-map__pin.is-dim { opacity: 0.3; }

/* the frame's foot is square where the row of countries stands under it */
.bt-map .bt-map__stage:has(+ .bt-map__countries) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.bt-map__countries {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border: 1px solid var(--bt-line, #d8cee8);
  border-top: 0;
  border-radius: 0 0 var(--bt-map-radius) var(--bt-map-radius);
  background: #061220;
  text-align: left;
}

.bt-map__countries::-webkit-scrollbar { display: none; }

.bt-map__country,
.bt-map__tour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(46, 230, 214, 0.26);
  border-radius: 999px;
  background: rgba(46, 230, 214, 0.06);
  color: #cfeff7;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.bt-map__country b { font-size: 11.5px; font-weight: 700; color: #6ff5e6; }

.bt-map__country:hover {
  border-color: rgba(46, 230, 214, 0.62);
  background: rgba(46, 230, 214, 0.14);
  color: #ffffff;
}

.bt-map__country:focus-visible,
.bt-map__tour:focus-visible { outline: 2px solid #6ff5e6; outline-offset: 2px; }

.bt-map__country[aria-pressed="true"] {
  border-color: #2ee6d6;
  background: #2ee6d6;
  color: #04101d;
}

.bt-map__country[aria-pressed="true"] b { color: #04101d; }

/* the button that tours the countries, in the colour of the client arcs so
   it stands apart from them */
.bt-map__tour {
  margin-right: 6px;
  border-color: rgba(255, 157, 122, 0.5);
  background: rgba(255, 157, 122, 0.1);
  color: #ffd9cc;
}

.bt-map__tour svg { width: 11px; height: 11px; }
.bt-map__tour:hover { border-color: #ff9d7a; background: rgba(255, 157, 122, 0.2); color: #ffffff; }
.bt-map__tour.is-on { border-color: #ff9d7a; background: #ff9d7a; color: #2a0f06; }

/* the line a page writes after its countries */
.bt-map__more { flex: 0 0 auto; padding: 0 6px; font-size: 13px; color: #8fbccb; white-space: nowrap; }

/* what the panel says of a country: each place on a line with what it is,
   then its sectors */
.bt-map__say--country .bt-map__at {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-top: 4px;
}

.bt-map__say--country .bt-map__at::before { top: 8px; }
.bt-map__say--country .bt-map__at span { display: inline; font-size: 12px; }
.bt-map__say .bt-map__go { min-height: 22px; color: #ffffff; }
.bt-map__say .bt-map__go:hover { color: #6ff5e6; }

.bt-map__sectors {
  margin: 0;
  padding: 10px 14px 13px;
  font-size: 13px;
  line-height: 1.55;
  color: #cfeff7;
}

/* a hairline between a country's places and its sectors */
.bt-map__say ul + .bt-map__sectors { border-top: 1px solid rgba(46, 230, 214, 0.2); }

.bt-map__sectors b {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fbccb;
}

/* the flag that stands for a chosen country with no marker of its own */
.bt-map__beacon {
  position: absolute;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(46, 230, 214, 0.6);
  border-radius: 50%;
  background: rgba(6, 20, 34, 0.82);
  animation: bt-map-beacon 1.8s ease-out infinite;
}

.bt-map__beacon.is-on { display: grid; }
.bt-map__beacon .bt-map__flag { width: 22px; height: 16.5px; }

@keyframes bt-map-beacon {
  from { box-shadow: 0 0 0 0 rgba(46, 230, 214, 0.55); }
  to { box-shadow: 0 0 0 18px rgba(46, 230, 214, 0); }
}

/* forty four pixels for a finger */
@media (pointer: coarse) {
  .bt-map__country, .bt-map__tour { min-height: 44px; }
}

@media (max-width: 600px) {
  /* across the frame, above the row of zoom buttons and the scale and under
     the key */
  .bt-map__say { width: calc(100% - 24px); left: 12px; bottom: 98px; max-height: min(calc(100% - 170px), 250px); }

  /* what the panel says of a country runs on, one place after another, each
     marked by its colour alone */
  .bt-map__say--country ul { display: flex; flex-wrap: wrap; gap: 2px 16px; }
  .bt-map__say--country .bt-map__at span { display: none; }
  .bt-map__say--country .bt-map__at::before { top: 13px; }
  .bt-map__say--country .bt-map__go { min-height: 32px; }
  .bt-map__key { font-size: 12px; padding: 6px 9px; gap: 4px 10px; }
  .bt-map__scale { bottom: 58px; }
  .bt-map__tools { top: auto; bottom: 12px; right: 12px; flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .bt-map__say, .bt-map__name, .bt-map__bar, .bt-map__pin,
  .bt-map__country, .bt-map__tour { transition: none; }
  .bt-map__beacon { animation: none; }
}

/* The map is a lit panel in both themes: a screen inset into a page reads as
   a screen whatever the page around it is doing, as a photograph does. Its
   colours are the site's own, the cyan the one the product illustrations
   use. */

.bt-map {
  --bt-map-sea-1: #071626;
  --bt-map-sea-2: #04101d;
  --bt-map-sea-3: #020a14;
  --bt-map-land: #0d2739;
  --bt-map-coast: #2ee6d6;
  --bt-map-urban: #16405a;
  --bt-map-river: #1c6b8c;
  --bt-map-prov: #14435e;
  --bt-map-grid: #2ee6d6;
  --bt-map-rim: #1f6b7d;
  --bt-map-frame: #061220;
  --bt-map-town: #7fd6e8;
  --bt-map-townname: #cfeff7;
  --bt-map-region: #6aa8bd;
  --bt-map-halo: #04101d;
}

/* The land is a panel with a lit edge rather than a filled shape with a line
   round it, which is what makes it read as drawn by a machine. */
.bt-map .bt-map__land {
  filter: drop-shadow(0 0 2px rgba(46, 230, 214, 0.35));
}

.bt-map .bt-map__border {
  stroke-width: 0.9;
  opacity: 0.75;
}

/* The coordinate lines carry the map's look more than anything else. Thin,
   cyan and faint reads as a readout; white and solid read as a road atlas. */
.bt-map .bt-map__grid {
  stroke: var(--bt-map-grid);
  opacity: 0.13;
  stroke-width: 0.6;
}

/* A wash across the frame, brighter at the top left, so the panel has a light
   in it rather than being flat. */
.bt-map__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(46, 230, 214, 0.14), transparent 58%),
    radial-gradient(90% 70% at 100% 100%, rgba(122, 63, 168, 0.16), transparent 60%);
  mix-blend-mode: screen;
}

/* The arcs into Calgary: every place Braintoy works has a line running into
   the office. The line is the route, and the bright piece travelling along it
   says which way. That piece is a dash pattern moving along the path, its
   length and the distance it covers set by the script, since both depend on
   how long the arc is on the screen at this zoom. */

.bt-map__arcs {
  pointer-events: none;
}

.bt-map__arc.is-off {
  opacity: 0;
}

.bt-map__arc {
  transition: opacity 300ms ease;
}

.bt-map__arc-line {
  fill: none;
  stroke: rgba(46, 230, 214, 0.30);
  stroke-width: 1.1;
  stroke-linecap: round;
}

.bt-map__arc-spark {
  fill: none;
  stroke: #6ff5e6;
  stroke-width: 1.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 4px rgba(46, 230, 214, 0.9));
  animation: bt-arc-run linear infinite;
}

.bt-map__arc-head {
  fill: #6ff5e6;
  filter: drop-shadow(0 0 3px rgba(46, 230, 214, 0.8));
}

/* --bt-arc-run is the length of the path plus the lit piece, set by the script.
   Running the offset from that to zero moves the lit piece from the far end to
   the office end, which is the direction the work travels. */
@keyframes bt-arc-run {
  from { stroke-dashoffset: var(--bt-arc-run, 900); }
  to { stroke-dashoffset: 0; }
}

/* Each kind keeps its own colour so an arc says what it is without a key. */
.bt-map__arc--partner .bt-map__arc-line { stroke: rgba(190, 130, 255, 0.30); }
.bt-map__arc--partner .bt-map__arc-spark { stroke: #cba0ff; filter: drop-shadow(0 0 4px rgba(170, 110, 255, 0.9)); }
.bt-map__arc--partner .bt-map__arc-head { fill: #cba0ff; }

.bt-map__arc--client .bt-map__arc-line { stroke: rgba(255, 138, 110, 0.30); }
.bt-map__arc--client .bt-map__arc-spark { stroke: #ff9d7a; filter: drop-shadow(0 0 4px rgba(255, 120, 90, 0.9)); }
.bt-map__arc--client .bt-map__arc-head { fill: #ff9d7a; }

.bt-map__arc--community .bt-map__arc-line { stroke: rgba(255, 190, 90, 0.30); }
.bt-map__arc--community .bt-map__arc-spark { stroke: #ffc978; filter: drop-shadow(0 0 4px rgba(255, 180, 80, 0.9)); }
.bt-map__arc--community .bt-map__arc-head { fill: #ffc978; }

/* Nothing here moves for somebody who has asked for less movement. The lines
   and the heads stay: they carry the meaning, and only the travelling piece is
   decoration. */
@media (prefers-reduced-motion: reduce) {
  .bt-map__arc-spark {
    animation: none;
    stroke-dasharray: none !important;
    opacity: 0.55;
  }
}

/* The chrome that sits on the map: the key, the scale, the zoom controls and
   the panel that names a place. White, it would sit on top of the lit panel
   like four pieces of paper. Glass instead: dark, faintly cyan, and
   translucent enough that the map runs under it. */
.bt-map .bt-map__key,
.bt-map .bt-map__scale,
.bt-map .bt-map__say,
.bt-map .bt-map__tools button {
  background: rgba(6, 20, 34, 0.82);
  border-color: rgba(46, 230, 214, 0.28);
  color: #cfeff7;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.bt-map .bt-map__tools button:hover,
.bt-map .bt-map__tools button:focus-visible {
  background: rgba(12, 40, 58, 0.94);
  border-color: rgba(46, 230, 214, 0.6);
  color: #ffffff;
}

.bt-map .bt-map__bar {
  background: linear-gradient(90deg, rgba(46, 230, 214, 0.15), #6ff5e6);
}

.bt-map .bt-map__say a,
.bt-map .bt-map__say strong,
.bt-map .bt-map__where { color: #ffffff; }

/* The dots in the key are the marker colours. On the panel they need to carry
   their own light. */
.bt-map .bt-map__key li::before {
  box-shadow: 0 0 6px currentColor;
}

.bt-map .bt-map__key-office { --pin: #35d6ac; }
.bt-map .bt-map__key-partner { --pin: #c08bff; }
.bt-map .bt-map__key-teaching { --pin: #5b9bff; }
.bt-map .bt-map__key-client { --pin: #ff9d7a; }
.bt-map .bt-map__key-community { --pin: #ffc978; }

/* the map in the band, with the places listed under it in columns */
.ct-map .bt-map { margin: 0; --bt-map-radius: var(--rd-radius-lg); }
.ct-map .bt-map__stage { box-shadow: var(--rd-shadow); }

/* the row of countries casts its shadow down and to its sides, off the map */
.ct-map .bt-map__countries { box-shadow: var(--rd-shadow); clip-path: inset(0 -60px -70px -60px); }
.ct-map .bt-map__list { margin-top: 26px; }
.ct-map .bt-map__list > ul { columns: 3 260px; column-gap: 36px; }
.ct-map .bt-map__list > ul > li { break-inside: avoid; }

/* ---- braintoy/components/contact/ways.css */
/* The ways to get in touch are the homepage's case cards (.rd-case) with a
   drawn object standing on each card's ground, over a dotted floor. */
.ct-ways {
  --ct-dots: radial-gradient(circle,
             color-mix(in srgb, var(--rd-plum) 16%, transparent) 1px, transparent 1.6px);
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* the floor runs the width of the screen, so the band keeps it from widening
   the page */
.rd-sec:has(> .rd__wrap .ct-ways) {
  overflow-x: hidden;
  overflow-x: clip;
}

/* the dotted floor, from halfway down the pictures to the foot of the band,
   lined up with the dots of an enquiry band under it */
.ct-ways::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 112px;
  bottom: -76px;
  left: -100vw;
  right: -100vw;
  background: var(--ct-dots) 50% 100% / 22px 22px, var(--rd-soft);
}

.ct-way--mail { --case: #0d6b8a; --case-dark: #5cc8e8; }
.ct-way--call { --case: #9a5205; --case-dark: #ffad4d; }
.ct-way--find { --case: #0f6b56; --case-dark: #45c78e; }

/* braintoy-ui.css gives every mailto link a display and a padding of its own
   on a phone, which would reach the email card */
.ct-ways .ct-way { display: flex; padding: 0; }

.ct-way .rd-case__result {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.016em;
  overflow-wrap: anywhere;
}

.ct-way__said { color: var(--rd-body); font-size: 14.5px; line-height: 1.55; }

.ct-way .rd-case__foot { margin-top: auto; padding-top: 8px; align-items: center; }
.ct-way .rd-case__t { font-size: 17px; }

/* == the drawn objects. Paper stays white in both themes, like a photograph == */
.ct-art__paper,
.ct-art__shade {
  stroke: var(--case);
  stroke-width: 2.4;
  stroke-linejoin: round;
}

.ct-art__paper { fill: #fff; }
.ct-art__shade { fill: color-mix(in srgb, var(--case) 15%, #fff); }
.ct-art__screen { fill: color-mix(in srgb, var(--case) 13%, #fff); }
.ct-art__dot { fill: var(--case); }
.ct-art__hole { fill: #fff; }

.ct-art__line,
.ct-art__fold,
.ct-art__wave,
.ct-art__ring { fill: none; stroke-linecap: round; }

.ct-art__line { stroke: color-mix(in srgb, var(--case) 34%, #fff); stroke-width: 5; }
.ct-art__fold { stroke: color-mix(in srgb, var(--case) 42%, #fff); stroke-width: 1.6; }
.ct-art__wave { stroke: var(--tint); stroke-width: 3; opacity: 0.72; }
.ct-art__wave--far { opacity: 0.4; }
.ct-art__ring { stroke: color-mix(in srgb, var(--tint) 42%, transparent); stroke-width: 1.6; }
.ct-art__shadow { fill: rgba(16, 9, 30, 0.16); }

[data-theme="dark"] .ct-art__shadow,
[data-night] .ct-art__shadow,
.ct-art__shadow[data-night] { fill: rgba(0, 0, 0, 0.45); }
[data-theme="dark"] .ct-art,
[data-night] .ct-art,
.ct-art[data-night] { filter: brightness(0.94); }

.ct-art__lift,
.ct-art__shadow,
.ct-art__wave,
.ct-art__ring {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: transform 420ms cubic-bezier(.22, .61, .36, 1), opacity 300ms ease;
}

/* on hover the object lifts off its ground rather than the whole picture moving */
.ct-way:is(:hover, :focus-visible) .rd-case__art { transform: none; }
.ct-way:is(:hover, :focus-visible) .ct-art__lift { transform: translateY(-7px); }
.ct-way:is(:hover, :focus-visible) .ct-art__shadow { transform: scale(0.84); }
.ct-way:is(:hover, :focus-visible) .ct-art__ring { transform: scale(1.08); }
.ct-way:is(:hover, :focus-visible) .ct-art__ring--near { transform: scale(1.16); }
.ct-way:is(:hover, :focus-visible) .ct-art__wave { animation: ct-ring 1.2s ease-in-out infinite; }
.ct-way:is(:hover, :focus-visible) .ct-art__wave--far { animation-delay: 180ms; }

@keyframes ct-ring { 50% { opacity: 0.12; } }

/* the line under the cards */
.ct-jobs {
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
  margin: 12px 0 0;
  padding: 10px 24px;
  border: 1px solid var(--rd-card-line);
  border-radius: 999px;
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
  color: var(--rd-ink);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.ct-jobs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--rd-key);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.ct-jobs a:hover { color: var(--rd-key-deep); }

@media (min-width: 1024px) {
  .ct-way .rd-case__stage { aspect-ratio: 16 / 10; }
}

@media (max-width: 1023px) {
  .ct-ways { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ct-ways::before { top: 64px; }
  .ct-ways .ct-way { display: grid; }
  .ct-way .rd-case__stage { min-height: 210px; }
  .ct-way .rd-case__foot { margin-top: 4px; }
}

@media (max-width: 640px) {
  .ct-ways::before { bottom: -56px; }
  .ct-jobs { border-radius: var(--rd-radius); }
}

/* on a phone each card lies on its side, its picture beside its words */
@media (max-width: 620px) {
  .ct-ways .ct-way { grid-template-columns: 116px minmax(0, 1fr); }
  .ct-way .rd-case__stage { height: 100%; min-height: 0; aspect-ratio: auto; }
  .ct-way .rd-case__in { justify-content: center; gap: 5px; padding: 16px 16px 16px 14px; }

  .ct-way .rd-case__came {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .ct-way .rd-case__result { font-size: 16.5px; }
  .ct-way__said { font-size: 13.5px; }
  .ct-way .rd-case__t { font-size: 15px; }
  .ct-way .rd-case__go { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-art__lift, .ct-art__shadow, .ct-art__wave, .ct-art__ring { transition: none; }

  .ct-way:is(:hover, :focus-visible) :is(.ct-art__lift, .ct-art__shadow, .ct-art__ring,
                                          .ct-art__wave) {
    transform: none;
    animation: none;
  }
}

/* ---- braintoy/components/listings/course_group.css */
/* A group of courses (course_group.py), in a Training band from ../parts.css:
   its words beside a column of photographs that follows the reader, each
   course a card that opens into what it covers, its next dates at SAIT drawn
   in by braintoy-course-dates.js, and the group's colour carried in --tone
   and --tone-dark on its words. */

/* the tinted band, which takes its own dark ground in the dark */
:root[data-theme="dark"] .tr.group--tint,
:root [data-night] .tr.group--tint,
:root .tr.group--tint[data-night] {
  background: radial-gradient(120% 120% at 12% 8%, #1e1731 0%, #191327 52%, #150f22 100%);
}

/* == a course, and what it covers behind its toggle == */

.tr .course { display: block; width: 100%; }

.tr .course__more summary:focus-visible,
.tr .course__go:focus-visible {
  outline: 3px solid #c93a28;
  outline-offset: 3px;
}

.tr .course__code {
  display: inline-block;
  margin-left: 9px;
  padding: 2px 7px;
  border: 1px solid var(--rule, #d8cee8);
  border-radius: 4px;
  color: var(--soft, #6f6879);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: 2px;
  white-space: nowrap;
}

/* the toggle: a details element, which opens without a script, is in the tab
   order and is reached by Find on the page while it is closed */
.tr .course__more { margin-top: 7px; }

.tr .course__more summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: var(--plum, #492b70);
  font-size: 13.5px;
  font-weight: 700;
  list-style: none;
  padding: 3px 0;
}

.tr .course__more summary::-webkit-details-marker { display: none; }

:root[data-theme="dark"] .tr .course__more summary,
:root [data-night] .tr .course__more summary,
:root .tr[data-night] .course__more summary { color: #cbb2f5; }

.tr .course__more summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 160ms ease;
}

.tr .course__more[open] summary::before {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.tr .course__more[open] summary span { opacity: 0.72; }

.tr .course__panel {
  margin: 8px 0 4px;
  padding: 16px 18px;
  border: 1px solid var(--rule, #d8cee8);
  border-radius: 12px;
  background: var(--bt-sunk, #f7f4fc);
}

.tr .course__blurb {
  margin: 0 0 14px;
  color: var(--ink, #2b1743);
  font-size: 15px;
  line-height: 1.6;
}

.tr .course__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 30px;
}

.tr .course__half h4 {
  margin: 0 0 7px;
  color: var(--soft, #6f6879);
  font-size: 11.5px;
  font-weight: 800;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr .course__half ul { margin: 0; padding: 0; list-style: none; }

/* named inside .courses, so they outweigh the rules every item of the list of
   courses takes: a flex row, and the mark before it */
.tr .courses .course__half li {
  display: block;
  padding: 3px 0 3px 16px;
  border: 0;
  position: relative;
  color: var(--ink, #2b1743);
  font-size: 14.5px;
  line-height: 1.5;
}

.tr .courses .course__half li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 5px;
  height: 5px;
  margin: 0;
  border-radius: 50%;
  background: #c93a28;
  transform: none;
}

/* the facts: cost, length, when the next cohort starts */
.tr .course__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 15px 0 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--rule, #d8cee8);
}

.tr .course__facts dt {
  color: var(--soft, #6f6879);
  font-size: 11px;
  font-weight: 800;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 2px;
}

.tr .course__facts dd {
  margin: 0;
  color: var(--ink, #2b1743);
  font-size: 14px;
  font-weight: 600;
}

/* who teaches the group, its names in bold */
.tr .group__who {
  margin-top: 14px;
  color: var(--soft, #6f6879);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 40em;
}

.tr .group__who b { color: var(--ink, #2b1743); font-weight: 700; }

/* dates and facts above the courses, where they are seen before any is opened */
.tr .group__intake {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tr .group__intake li {
  display: block;
  padding: 10px 16px;
  border: 1px solid var(--rule, #d8cee8);
  border-radius: 10px;
  background: var(--bt-sunk, #f7f4fc);
}

.tr .group__intake li::before { display: none; content: none; }

.tr .group__intake span {
  display: block;
  color: var(--soft, #6f6879);
  font-size: 10.5px;
  font-weight: 800;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr .group__intake b {
  display: block;
  color: var(--ink, #2b1743);
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 2px;
}

/* the partner the group runs with, by its logo */
.tr .group__mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 0;
}

.tr .group__mark span {
  color: var(--soft, #6f6879);
  font-size: 11px;
  font-weight: 800;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* sized on width, since the logos are wide */
.tr .group__mark img {
  width: auto;
  max-width: 168px;
  max-height: 46px;
  border-radius: 5px;
  background: #fff;
  padding: 5px 9px;
}

/* the workshops the group also runs */
.tr .group__topics-head {
  margin: 26px 0 10px;
  color: var(--soft, #6f6879);
  font-size: 11.5px;
  font-weight: 800;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tr .group__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tr .group__topics li {
  display: block;
  padding: 7px 14px;
  border: 1px solid var(--rule, #d8cee8);
  border-radius: 999px;
  color: var(--ink, #2b1743);
  font-size: 14px;
}

.tr .group__topics li::before { display: none; content: none; }

@media (prefers-reduced-motion: reduce) {
  .tr .course__more summary::before { transition: none; }
}

/* == a course's next dates at SAIT, as tiles braintoy-course-dates.js draws == */

.cal__head {
  margin: 0;
  color: var(--cal-muted);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cal__more {
  margin: 16px 0 0;
  color: var(--cal-muted);
  font-size: 13px;
}

.cal__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tr .courses .cal__tiles li,
.cal__tile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--cal-line);
  border-radius: 10px;
  background: var(--cal-card);
  list-style: none;
}

.cal__tile--full { opacity: 0.72; }

.cal__day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  padding: 5px 0;
  border-radius: 8px;
  background: var(--cal-soft);
  color: var(--cal-ink);
  line-height: 1.1;
}

.cal__day b { font-size: 19px; font-weight: 800; }

.cal__day span {
  font-size: 10.5px;
  font-weight: 800;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cal-muted);
}

.cal__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal__body b { color: var(--cal-ink); font-size: 14px; font-weight: 700; }
.cal__body span { color: var(--cal-body); font-size: 12.5px; }

.cal__body i {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8410f;
}

:root[data-theme="dark"] .cal__body i,
:root [data-night] .cal__body i,
:root .cal__body[data-night] i { color: #ffab7a; }

/* == the group's words, and each course as a card in the group's colour == */

/* the group's colour is used through --ink, so light and dark are chosen once */
.tr .say { --ink: var(--tone, #2b1743); }

:root[data-theme="dark"] .tr .say,
:root [data-night] .tr .say,
:root .tr[data-night] .say {
  --ink: var(--tone-dark, var(--tone, #cbb2f5));
}

.tr .say .eyebrow { color: var(--ink); }

.tr .courses { display: grid; gap: 14px; }

.tr .courses li { padding: 0; }
.tr .courses li::before { display: none; content: none; }

.tr .course {
  position: relative;
  padding: 18px 20px 16px 22px;
  border: 1px solid rgba(43, 23, 67, 0.12);
  border-radius: 14px;
  background: #ffffff;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

:root[data-theme="dark"] .tr .course,
:root [data-night] .tr .course,
:root .tr[data-night] .course {
  border-color: #34254e;
  background: #221636;
}

.tr .course:hover {
  box-shadow: 0 14px 32px rgba(43, 23, 67, 0.12);
}

.tr .course__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin-bottom: 6px;
}

/* a heading, not a link: the button at the foot of the card is the way in,
   and it says where it goes */
.tr .courses h3.name {
  margin: 0;
  color: var(--bt-ink, #2b1743);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: none;
}

.tr .course__lede {
  margin: 0 0 12px;
  color: var(--bt-muted, #5c5470);
  font-size: 14.5px;
  line-height: 1.6;
}

/* the dates, on the card rather than behind its toggle */
.tr .course__dates { margin: 0 0 12px; }

.tr .course__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 14px 0 0;
}

/* the links after the booking button, such as an email address to ask at */
.tr .course__also {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.tr .course__also svg { width: 15px; height: 15px; flex: 0 0 auto; }

.tr .course__also:hover { text-decoration-thickness: 2px; }

.tr .course__also:focus-visible {
  outline: 3px solid #c93a28;
  outline-offset: 3px;
  border-radius: 4px;
}

.tr .course__facts dd a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tr .course__go {
  display: inline-block;
  padding: 9px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.tr .course__go:hover {
  background: var(--ink);
  color: #ffffff;
}

:root[data-theme="dark"] .tr .course__go:hover,
:root [data-night] .tr .course__go:hover,
:root .tr[data-night] .course__go:hover { color: #140c22; }

.tr .group__mark img { opacity: 0.8; }

@media (max-width: 700px) {
  .tr .course { padding: 15px 15px 14px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .tr .course,
  .tr .course__go { transition: none; }
}

/* == the photographs beside the list == */

/* The column is as tall as the list beside it, for the frame to follow the
   reader through. braintoy-course-shots.js sets where the frame sits as the
   page scrolls, since a sticky element pins to nothing on these pages: body
   carries overflow hidden. Without the script the frame sits at the top of
   its column. */
.tr .split .shotfollow { align-self: stretch; height: 100%; }

.tr .split--shots-right .shotfollow { order: 2; }

.tr .shotfollow__frame {
  position: relative;
  will-change: transform;
}

.tr .shotfollow__stack { position: relative; }

.tr .shotfollow__one {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(43, 23, 67, 0.16);
  opacity: 0;
  transition: opacity 620ms ease;
}

/* the first is in the flow, which gives the frame its height; the rest lie
   over it */
.tr .shotfollow__one:first-child { position: relative; }

.tr .shotfollow__one.is-on { opacity: 1; }

.tr .shotfollow__one img {
  width: 100% !important;
  height: auto !important;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tr .shotfollow__one figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 34px 16px 13px;
  background: linear-gradient(180deg, rgba(12, 4, 24, 0) 0%,
                              rgba(12, 4, 24, 0.84) 58%);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
}

/* choosing between them */
.tr .shotfollow__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.tr .shotfollow__dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(43, 23, 67, 0.2);
  cursor: pointer;
  transition: background-color 200ms ease, width 200ms ease;
}

:root[data-theme="dark"] .tr .shotfollow__dot,
:root [data-night] .tr .shotfollow__dot,
:root .tr[data-night] .shotfollow__dot {
  background: rgba(255, 255, 255, 0.22);
}

.tr .shotfollow__dot.is-on {
  width: 52px;
  background: var(--tone, #492b70);
}

:root[data-theme="dark"] .tr .shotfollow__dot.is-on,
:root [data-night] .tr .shotfollow__dot.is-on,
:root .tr[data-night] .shotfollow__dot.is-on {
  background: var(--tone-dark, #cbb2f5);
}

.tr .shotfollow__dot:focus-visible {
  outline: 3px solid #ffb066;
  outline-offset: 3px;
}

/* the same photograph inside its course, under what it covers */
.tr .course__shot {
  margin: 16px 0 4px;
  border-radius: 11px;
  overflow: hidden;
}

/* the frame the photograph drifts in, holding it alone, so the drift is
   clipped at the picture and never reaches the caption */
.tr .course__frame { display: block; }

.tr .course__shot img {
  width: 100% !important;
  height: auto !important;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tr .course__shot figcaption {
  padding: 8px 12px;
  background: rgba(73, 43, 112, 0.06);
  color: var(--bt-muted, #5c5470);
  font-size: 12.5px;
}

:root[data-theme="dark"] .tr .course__shot figcaption,
:root [data-night] .tr .course__shot figcaption,
:root .tr[data-night] .course__shot figcaption {
  background: rgba(255, 255, 255, 0.05);
}

/* on one column there is nothing to follow through, so the frame is a
   photograph at the top of the group */
@media (max-width: 980px) {
  .tr .split .shotfollow { height: auto; }
  .tr .shotfollow__frame { transform: none !important; }
}

/* the photographs keep to their side while the grid is two columns */
@media (max-width: 900px) {
  .tr .split--shots-right .shotfollow { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tr .shotfollow__one { transition: none; }
  .tr .shotfollow__dot { transition: none; }
}

/* a dot keeps its drawn size on a phone and takes a hit area 44 high */
@media (max-width: 860px) {
  .tr .shotfollow__dot { position: relative; height: 6px; }

  .tr .shotfollow__dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 44px;
    transform: translate(-50%, -50%);
  }
}

/* only the photograph on show moves */
html.bt-drift-js .tr .shotfollow__one:not(.is-on) img {
  animation-play-state: paused;
}

/* a course's dates in words, from the dashboard or the editor, and where it is
   booked; each is left off the card while it is empty */
.tr .course__when:empty { display: none; }
.tr .course__when {
  margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--bt-ink, #241238);
}
.tr .course__act:has(> .course__go[href=""]) .course__go { display: none; }
.tr .course__act:has(> .course__go[href=""]):not(:has(> .course__also)) { display: none; }

.tr.group { padding:76px 0; scroll-margin-top:140px; }
/* every other group is tinted, so they read apart */
.tr.group--tint { background:radial-gradient(120% 120% at 12% 8%, #faf8fd 0%,
      #f2ecf9 52%, #e8def4 100%); }

/* A BAND STRAIGHT BEFORE A GROUP OF COURSES, such as a short film about them,
   reads as the top of the group's band: the room between the two closed up,
   and over a tinted group the band above takes the tint mirrored, so the two
   meet in the same colour all along where they touch. What a section's own
   look gives either one still wins. A band or a group set at night stands
   on a ground of its own, so both keep their room. */
.rd-sec:not([data-night]):has(+ .tr.group:not([data-night])) { padding-bottom: 24px; }
.rd-sec:not([data-night]) + .tr.group:not([data-night]) { padding-top: 24px; }
.rd-sec--soft:has(+ .tr.group--tint) {
  background: radial-gradient(120% 120% at 12% 92%, #faf8fd 0%, #f2ecf9 52%, #e8def4 100%);
}
:root[data-theme="dark"] .rd-sec--soft:has(+ .tr.group--tint),
:root [data-night] .rd-sec--soft:has(+ .tr.group--tint),
:root .rd-sec--soft:has(+ .tr.group--tint)[data-night] {
  background: radial-gradient(120% 120% at 12% 92%, #1e1731 0%, #191327 52%, #150f22 100%);
}
.tr .split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
      gap:46px; align-items:center; }
.tr.group h2 { font-size:clamp(28px,3.1vw,42px); color:var(--rd-ink); }
.tr .group__lede { margin-top:12px; color:var(--soft); max-width:34em; }

.tr .courses { margin-top:24px; }
.tr .courses li { display:flex; align-items:flex-start; gap:15px; }
/* a square turned on its point, held off the top by half a line so it sits
   against the first line of a name that runs onto a second */
.tr .courses li:before { content:''; flex:0 0 auto; width:7px; height:7px;
      margin-top:.62em; background:var(--plum); transform:rotate(45deg); }

@media (max-width:900px) {
  /* minmax(0,1fr), since a 1fr track takes its least width from the widest
     thing in it, and a long course name would push it past a phone's width */
  .tr .split { grid-template-columns:minmax(0,1fr); gap:28px; }
}
@media (max-width:760px) {
  .tr.group { padding:40px 0; scroll-margin-top:210px; }
}

/* ---- braintoy/components/listings/roles.css */
/* the open roles: how many, a card for each, and what shows when there are
   none */
.cr-count {
  margin: 0 0 14px;
  color: var(--rd-muted);
  font-size: var(--rd-small);
  font-weight: 700;
}

.cr-roles { display: grid; gap: 14px; }

.cr-role {
  padding: 24px 26px;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cr-role:hover { border-color: var(--rd-key); box-shadow: var(--rd-shadow-lift); }

.cr-role__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cr-role h3 {
  margin: 0;
  color: var(--rd-ink);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cr-role__top .rd-btn { flex: 0 0 auto; }

.cr-role__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }

.cr-role__meta span {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--rd-plum-soft);
  color: var(--rd-plum);
  font-size: var(--rd-micro);
  font-weight: 700;
}

.cr-role__sum { margin: 14px 0 0; color: var(--rd-body); }

.cr-role__more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rd-line-soft);
}

.cr-role__more summary {
  cursor: pointer;
  color: var(--rd-key);
  font-weight: 700;
}

.cr-role__body { margin-top: 12px; color: var(--rd-body); }
.cr-role__body h4 { margin: 18px 0 6px; color: var(--rd-ink); font-size: 16px; }
.cr-role__body p { margin: 0 0 10px; }

.cr-empty {
  max-width: 640px;
  padding: 34px 32px;
  border: 1.5px dashed var(--rd-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-soft);
}

.cr-empty__t {
  margin: 0 0 8px;
  color: var(--rd-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cr-empty p { margin: 0 0 18px; color: var(--rd-body); }

@media (max-width: 640px) {
  .cr-role__top { flex-direction: column; }
}

/* placed narrower than its section, each role is laid out as it would be
   on a screen as wide as the cell, which is the screen less the band's
   padding and a scrollbar */
.rd-free__b--roles { container-type: inline-size; }

@container (max-width: 567px) {
  .cr-role__top { flex-direction: column; }
}

/* ---- braintoy/components/media/film_beside.css */
/* A heading and paragraphs beside a film (film_beside.py), in a plain band
   from ../parts.css, the film's pause button in its corner. */
.ml .ml-split { display:grid; grid-template-columns:1fr 1fr; gap:44px; align-items:center; }
.ml .ml-split p + p { margin-top:14px; }
.ml .ml-film { position:relative; border-radius:10px; }
.ml .ml-film .ml-hold { right:12px; bottom:12px; }

@media (max-width:900px) {
  .ml .ml-split { grid-template-columns:1fr; }
}

/* ---- braintoy/components/media/photo_groups.css */
/* Photographs in groups (photo_groups.py), in a Training band from
   ../parts.css: a tab for each group, and in each one photograph large with
   the rest beside it, so a group is one screen rather than a picture and a
   scroll. */

.tr.shots {
  padding: 66px 0 76px;
  background: var(--bt-paper, #fff);
}

.tr.shots h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.16;
  margin: 0 0 10px;
}

.tr .shots__lede {
  color: var(--bt-muted, #6f6879);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 40rem;
}

.tr .shots__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

/* named with its element, so the face it sets outweighs the redesign's main,
   which hands a button the face of the words around it */
.tr button.shots__tab {
  border: 1px solid var(--bt-line, #d8cee8);
  border-radius: 999px;
  background: transparent;
  color: var(--bt-ink, #2b1743);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 9px 18px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tr .shots__tab:hover {
  border-color: #c93a28;
  color: #c93a28;
}

.tr .shots__tab[aria-selected="true"] {
  background: #492b70;
  border-color: #492b70;
  color: #fff;
}

/* The large photograph and the rest sit side by side, the line about the
   group under the rest, where the column beside the large one would
   otherwise end in air. display outweighs the hidden attribute, which is the
   browser's own display:none, so a hidden group is named here as well. */
.tr .shots__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-areas: "lead strip" "lead note";
  grid-template-rows: auto 1fr;
  gap: 14px 20px;
  align-items: start;
}

.tr .shots__panel[hidden] { display: none; }

.tr .shots__note {
  grid-area: note;
  color: var(--bt-muted, #6f6879);
  font-size: 15px;
  line-height: 1.62;
  margin: 0;
  padding: 2px 2px 0;
  border-top: 1px solid var(--bt-line, #d8cee8);
  padding-top: 14px;
}

/* --bt-sunk is a panel slightly under the page, in both themes */
.tr .shots__lead {
  grid-area: lead;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bt-sunk, #f4eefb);
  box-shadow: 0 18px 44px rgba(43, 23, 67, 0.16);
}

.tr .shots__lead .bt-gal-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.tr .shots__lead img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.tr .shots__lead figcaption {
  color: var(--bt-muted, #6f6879);
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 16px 14px;
}

/* two columns of the rest beside the large one */
.tr .shots__strip {
  grid-area: strip;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 2px;
}

.tr .shots__thumb {
  width: 100%;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 9px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  line-height: 0;
  transition: border-color 140ms ease, opacity 140ms ease;
  opacity: 0.72;
}

.tr .shots__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tr .shots__thumb:hover { opacity: 1; }

.tr .shots__thumb[aria-pressed="true"] {
  border-color: #c93a28;
  opacity: 1;
}

.tr .shots__tab:focus-visible,
.tr .shots__thumb:focus-visible,
.tr .shots__lead .bt-gal-zoom:focus-visible {
  outline: 3px solid #c93a28;
  outline-offset: 3px;
}

/* under the width two columns need, the rest are a row that scrolls sideways */
@media (max-width: 900px) {
  .tr .shots__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "note" "lead" "strip";
    grid-template-rows: auto;
  }

  .tr .shots__note { border-top: 0; padding-top: 0; }

  .tr .shots__strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 2px;
    scrollbar-width: thin;
  }

  .tr .shots__thumb { flex: 0 0 auto; width: 132px; }
}

@media (max-width: 700px) {
  .tr.shots { padding: 44px 0 52px; }
  .tr .shots__thumb { width: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .tr button.shots__tab,
  .tr .shots__thumb { transition: none; }
}

/* ---- braintoy/components/media/screenshots.css */
/* Pictures side by side, each with a caption (screenshots.py), in a plain
   band from ../parts.css. */
.ml .ml-shots { display:grid; grid-template-columns:1fr 1fr; gap:30px; margin-top:34px; }
.ml .ml-shot__frame { display:block; border-radius:10px; }
.ml .ml-shot img { width:100%; height:auto; display:block;
         border-radius:10px; border:1px solid var(--line); background:#000; }

@media (max-width:900px) {
  .ml .ml-shots { grid-template-columns:1fr; }
}

/* ---- braintoy/components/openers/fan_hero.css */
/* A dark opening for a page of products (fan_hero.py): a small line, a
   heading, a sentence, two buttons and a chip for each product, beside their
   pictures fanned out like cards on a table. Its ground is a deep plum, dark
   in both themes, as every inner page's opening is, lightest behind the fan.
   Every rule names the opening as well as its own class, which outweighs the
   theme kit's headings and links on the page. */
.rd-fan {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(1100px 620px at 78% 32%, #3d2168 0%, #1f1039 55%, #140a26 100%);
  color: #ffffff;
}

/* with a film or a scene in its wall (looks.ground), a deep plum lies over
   it, nearly whole behind the words and thinning toward the fan, so the film
   shows around the pictures and nothing busy stands behind the words */
.rd-fan:has(> .rd-pagehero__wall)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 78% 36%, rgba(61, 33, 104, 0.2), transparent 70%),
    linear-gradient(90deg, rgba(20, 10, 38, 0.95) 0%, rgba(20, 10, 38, 0.9) 46%,
                    rgba(20, 10, 38, 0.5) 64%, rgba(20, 10, 38, 0.22) 100%);
  pointer-events: none;
}

.rd-fan .rd-fan__in {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 4.6vw, 72px);
  align-items: center;
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: 96px 28px 108px;
}

.rd-fan.rd-fan--alone .rd-fan__in { grid-template-columns: minmax(0, 1fr); }

.rd-fan .rd-fan__say {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
}

.rd-fan .rd-eyebrow {
  margin: 0;
  color: #ff8a70;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.rd-fan .rd-fan__say h1 {
  max-width: 15ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.032em;
}

.rd-fan .rd-fan__say h1 em { font-style: normal; color: #ff8a70; }

.rd-fan .rd-fan__lede {
  max-width: 34em;
  margin: 0;
  color: #dcd2ea;
  font-size: 18px;
  line-height: 1.6;
}

.rd-fan .rd-fan__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rd-fan .rd-fan__acts .rd-btn {
  min-height: 48px;
  padding: 13px 24px;
  font-size: 16px;
}

.rd-fan .rd-btn--line {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.rd-fan .rd-btn--line:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffffff;
}

.rd-fan .rd-btn:focus-visible { outline-color: #ffffff; }

/* a chip for each product, its dot in the product's colour as it shows on a
   dark ground */
.rd-fan .rd-fan__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 6px 0 0;
}

.rd-fan .rd-fan__chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.rd-fan .rd-fan__chip::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hue-glow);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue-glow) 24%, transparent);
}

.rd-fan .rd-fan__chip:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.rd-fan .rd-fan__chip:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* The pictures, fanned out, each on a white card turned a little its own
   way, and leaning toward the pointer each a little further above the fan
   than the one before (parts.css). */
.rd-fan .rd-fan__art {
  position: relative;
  aspect-ratio: 20 / 17;
  min-width: 0;
}

/* the fan has no ground of its own to catch the sheen, so each picture
   catches its own */
.rd-fan .rd-fan__art[data-tilt]::after { content: none; }

.rd-fan .rd-fan__card {
  position: absolute;
  display: block;
  padding: 9px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5), 0 6px 16px rgba(0, 0, 0, 0.25);
}

.rd-fan .rd-fan__card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
}

.rd-fan .rd-fan__card:nth-child(1) { top: 8%; left: 0; width: 56%; rotate: -6deg; --tilt-raise: 26px; }
.rd-fan .rd-fan__card:nth-child(2) { top: 0; right: 0; width: 52%; rotate: 4deg; --tilt-raise: 46px; }
.rd-fan .rd-fan__card:nth-child(3) { bottom: 1%; left: 7%; width: 55%; rotate: 2deg; --tilt-raise: 66px; }
.rd-fan .rd-fan__card:nth-child(4) { right: 2%; bottom: 7%; width: 50%; rotate: -3deg; --tilt-raise: 86px; }

@media (max-width: 1080px) {
  .rd-fan .rd-fan__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 52px;
    padding: 84px 28px 92px;
  }

  .rd-fan .rd-fan__art {
    width: min(100%, 600px);
    margin: 0 auto;
  }

  /* the words above the fan, so the plum thins downward */
  .rd-fan:has(> .rd-pagehero__wall)::before {
    background: linear-gradient(180deg, rgba(20, 10, 38, 0.95) 0%, rgba(20, 10, 38, 0.88) 56%,
                                rgba(20, 10, 38, 0.42) 100%);
  }
}

@media (max-width: 620px) {
  .rd-fan .rd-fan__in {
    gap: 40px;
    padding: 60px 20px 64px;
  }

  .rd-fan .rd-fan__say { gap: 18px; }
  .rd-fan .rd-fan__say h1 { font-size: 38px; }
  .rd-fan .rd-fan__lede { font-size: 17px; }

  .rd-fan .rd-fan__art { width: 94%; }

  .rd-fan .rd-fan__card {
    padding: 5px;
    border-radius: 11px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.25);
  }

  .rd-fan .rd-fan__card img { border-radius: 7px; }
}

/* ---- braintoy/components/openers/film_hero.css */
/* A dark opening over a film (film_hero.py): a small line, a heading and a
   sentence under a brand wash, over the film the section's look draws in the
   wall from ../looks.css, with a glow at the upper right and a curve into the
   page below. Set in the exported theme's type (parts.EXPORTED). */

.bt-products-hero .bt-products-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* the opening's own ground, the brand's purple; the gradient and the
   photograph named here are turned off by the rule after the wash, since the
   film covers the opening */
.bt-products-hero {
  position: relative;
  padding: 132px 0 116px;
  background-color: #492b70;
  background-image:
    linear-gradient(135deg, rgba(73, 43, 112, 0.93) 0%, rgba(106, 47, 109, 0.90) 55%, rgba(161, 58, 92, 0.88) 100%),
    url("/wp-content/uploads/2023/07/img-11.jpg");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  color: var(--rd-band-ink, #ffffff);
  overflow: hidden;
}

/* the curve into what follows, in the colour of the page rather than white */
.bt-products-hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -60px;
  height: 120px;
  background: var(--bt-paper, #ffffff);
  border-radius: 50% 50% 0 0;
}

/* a soft brand glow rather than a flat panel */
.bt-products-hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 75, 56, 0.55) 0%, rgba(230, 75, 56, 0) 68%);
}

.bt-hero-kicker {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  font-weight: 700;
  color: var(--rd-band-body, rgba(255, 255, 255, 0.75));
  margin: 0 0 18px;
}

.bt-hero-title {
  font-family: "Nunito", sans-serif;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  max-width: 15ch;
  margin: 0 0 22px;
  color: var(--rd-band-ink, #ffffff);
}

/* the heading is drawn at the theme's heading weight, which outweighs the
   redesign's for a heading by naming the opening and its column */
.bt-products-hero .bt-products-inner .bt-hero-title { font-weight: 600; }

.bt-hero-lead {
  font-family: "Nunito", sans-serif;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  max-width: 62ch;
  margin: 0;
  color: var(--rd-band-body, rgba(255, 255, 255, 0.86));
}

@media (max-width: 781px) {
  .bt-products-hero { padding: 96px 0 84px; }
}

/* Everything the opening says stays above the drifting dots of
   braintoy-particles.js, whose box is styled with the script's other heroes
   in braintoy-ui.css. */
.bt-products-hero > *:not(.bt-particles) {
  position: relative;
  z-index: 1;
}

/* Room for the header over the top of the opening. braintoy-header-offset.js
   measures the header and publishes its height; max() means the opening can
   only gain room, so without the script the written padding stands. */
.bt-products-hero {
  padding-top: max(132px, calc(var(--bt-header-h, 0px) + 12px));
}

@media (max-width: 781px) {
  .bt-products-hero {
    padding-top: max(96px, calc(var(--bt-header-h, 0px) + 12px));
  }
}

/* The film, the wash its look lays over it and the wash over both fill the
   opening behind the words. Named from the opening, because every child of
   it is otherwise placed in the flow above the dots, and a film in the flow
   is not a background. */
.bt-products-hero > .rd-pagehero__wall,
.bt-products-hero > .rd-pagehero__wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bt-products-hero > .bt-page-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* the brand gradient over the film; the lightest ground it leaves under the
   heading is 3.01 to one, the gradient's own light end */
.bt-products-hero .bt-page-wash {
  background:
    linear-gradient(135deg, rgba(73, 43, 112, 0.93) 0%, rgba(106, 47, 109, 0.90) 55%,
                    rgba(161, 58, 92, 0.88) 100%);
}

/* the photograph under the colour is not drawn: the film covers it */
.bt-products-hero {
  background-image: none;
}

/* and the words go above both layers */
.bt-products-hero > .bt-products-inner {
  position: relative;
  z-index: 1;
}

/* ---- braintoy/components/openers/home_hero.css */
/* The opening with a slideshow (home_hero.py): a heading, its buttons and
   one picture at a time over the film the section's look draws in the wall
   from ../looks.css, with the steps to choose a picture under it, and a rail
   of courses below. */

/* ------------------------------------------------- the opening, over the film
 *
 * The hero and the upcoming-courses strip are one block with Braintoy's own
 * coding footage behind both of them, stopping at the two panels. The film
 * runs at full strength under a scrim that is heavy only where the words are:
 * a background that competes with the headline is a background that failed.
 */
.rd-open {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 44px;
  background: var(--rd-plum-deep);
}

.rd-open > video.rd-pagehero__wall {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* FULL STRENGTH, so the code in it can be seen, which is the only reason it
     is there. The scrim below does ALL of the darkening, and it does it where
     the words are rather than everywhere. */
  opacity: 1;
  /* LIFTED, because the footage is a dark editor on a dark desktop, and what
     is left to read the code in is the space around the words and the
     photograph: at its own exposure there is nothing to read there.
     Brightness, contrast and a little saturation; no hue shift. */
  filter: var(--rd-open-film, brightness(1.75) contrast(1.12) saturate(1.15));
}

/* given a colour or a gradient in the editor, the band shows it as chosen,
   with no scrim (--rd-scrim), and its words take the ink that reads on it
   (looks.py) */
.rd-open::before {
  content: var(--rd-scrim, "");
  position: absolute;
  inset: 0;
  z-index: -1;
  /* THE SCRIM. 0.95 where the headline sits and 0.26 at its far edge, so the
     editor and the code in it are visible in the part of the frame that has
     nothing written over it. A top band keeps the header legible, and a
     bottom one hands over to the panels. */
  background: var(--rd-open-scrim,
    /* HEAVY ONLY WHERE THE WORDS ARE. An ellipse centred on the headline rather
       than a band down one side. Everywhere the page has nothing written on
       it (under the buttons, above and below the photograph, across to the
       strip) the scrim thins out and the editor shows through. */
    radial-gradient(122% 96% at 21% 44%, rgba(18, 8, 34, 0.95) 0%,
                    rgba(20, 9, 37, 0.9) 30%, rgba(24, 11, 42, 0.52) 62%,
                    rgba(28, 13, 48, 0.26) 100%),
    linear-gradient(180deg, rgba(15, 6, 29, 0.62) 0%, rgba(15, 6, 29, 0.08) 22%,
                    rgba(15, 6, 29, 0.08) 74%, rgba(27, 16, 48, 0.5) 100%));
}

/* IN THE LIGHT THEME THE OPENING WITH A SLIDESHOW IS PALE. Its film is shown
   with its colours turned over, pale where it was deep and each hue kept,
   under a pale scrim that is heaviest where the words are, and its words
   take the page's ink. A section set at night (looks.py), or one whose look
   lays a wash of its own over its film, stays as it is in the dark. */
:root:not([data-theme="dark"]) .rd-open:has(.rd-hero):not([data-night]):not(:has(> .rd-pagehero__wash)) {
  --rd-band-ink: var(--rd-ink);
  --rd-band-body: var(--rd-body);
  --rd-band-accent: var(--rd-key);
  --rd-open-film: invert(1) hue-rotate(180deg) contrast(1.08) saturate(1.3);
  --rd-open-scrim:
    radial-gradient(122% 96% at 21% 44%, rgba(251, 249, 254, 0.94) 0%,
                    rgba(251, 249, 254, 0.86) 30%, rgba(249, 246, 253, 0.4) 62%,
                    rgba(246, 243, 250, 0.1) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.04) 22%,
                    rgba(255, 255, 255, 0.04) 74%, rgba(246, 243, 250, 0.5) 100%);
  background: var(--rd-plum-soft);
}

/* a film with another chosen for the dark theme is the light theme's own,
   and is shown as it is */
:root:not([data-theme="dark"]) .rd-open:has(.rd-hero):not([data-night]):not(:has(> .rd-pagehero__wash)):has(> template[data-film-dark]) {
  --rd-open-film: none;
}

/* THE WORDS READ ON THE BAND'S GROUND: light on the deep opening, and the
   page's ink on the pale one of the light theme (--rd-band-ink, -body and
   -accent). */
.rd-open .rd-eyebrow,
.rd-type-hero-small { color: var(--rd-band-accent, var(--rd-accent)); }
.rd-open h1,
.rd-type-hero { color: var(--rd-band-ink, #fff); }
/* .rd-hero h1 em is (0,0,1,2) and comes later in the file, so at the same
   weight its red would win, and the brand red on plum-deep is mud. One more
   class. */
.rd-open .rd-hero h1 em,
.rd-type-hero em { color: var(--rd-band-accent, var(--rd-accent)); }
.rd-open .rd-hero__sub,
.rd-type-hero-lead { color: var(--rd-band-body, rgba(255, 255, 255, 0.82)); }

/* the outlined button, in the band's ink on a tint of it: never white on
   white, nor ink on ink */
.rd-open .rd-btn--line {
  background: color-mix(in srgb, var(--rd-band-ink, #fff) 8%, transparent);
  border-color: color-mix(in srgb, var(--rd-band-ink, #fff) 40%, transparent);
  color: var(--rd-band-ink, #fff);
}

.rd-open .rd-btn--line:hover {
  background: color-mix(in srgb, var(--rd-band-ink, #fff) 16%, transparent);
  border-color: color-mix(in srgb, var(--rd-band-ink, #fff) 70%, transparent);
}

/* --------------------------------------------------------------------- hero */

.rd-hero {
  position: relative;
  overflow: hidden;
  /* no ground of its own: .rd-open carries the film and the wash */
  background: none;
}

.rd-hero__in {
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: 74px 28px 78px;
  display: grid;
  /* 1.18. The three buttons come to 595px, and in a column of 569 the third
     drops to a row of its own. The concept has them in one line and that is
     the point of three of them. */
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.rd-hero__in > div > .rd-eyebrow,
.rd-type-hero-small { margin-bottom: 16px; }

.rd-hero h1,
.rd-type-hero {
  font-size: var(--rd-display);
  /* 1.02, and the negative tracking that large type needs to stop looking
     like a wall of separate letters. */
  line-height: 1.02;
  letter-spacing: -0.034em;
  margin: 0 0 18px;
}

.rd-hero h1 em { font-style: normal; color: var(--rd-key); }
.rd-type-hero em { font-style: normal; }

.rd-hero__sub,
.rd-type-hero-lead {
  font-size: var(--rd-lead);
  line-height: 1.5;
  margin: 0 0 28px;
  /* 30ch breaks it after "Purpose-built AI", which puts "solutions." alone on
     a line under a two-line headline. It is one sentence and it should read
     as one. */
  max-width: 38ch;
  text-wrap: balance;
}

/* 30px between the sentence and the buttons */
.rd-hero__acts { margin-top: 30px; }

.rd-hero__acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* the film, and the three cards that ride over it */
.rd-hero__art {
  position: relative;
  border-radius: var(--rd-radius-lg);
  overflow: hidden;
  min-height: 430px;
  box-shadow: var(--rd-shadow-lift);
  background: var(--rd-plum-deep);
}

/* A WASH THAT LEANS RIGHT, because that is the side the three cards sit on and
   a white card on a bright photograph has no edge. The left stays clear so the
   people in the picture are still people. */
.rd-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(27, 16, 48, 0.08) 0%,
                              rgba(27, 16, 48, 0.3) 44%, rgba(27, 16, 48, 0.62) 100%);
}

/* ------------------------------------------------------- upcoming courses */

.rd-strip {
  max-width: var(--rd-wrap);
  margin: 0 auto;
  position: relative;
  z-index: 3;
  padding: 0 28px;
}

/* the label, the rail and the buttons that move it in a row, and under the
   rail the bar that shows how far along it is */
.rd-strip__box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  padding: 14px 18px 12px;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
}

.rd-strip__label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 18px;
  border-right: 1px solid var(--rd-line-soft);
}

.rd-strip__label b {
  font-size: 15px;
  font-weight: 700;
  color: var(--rd-ink);
  letter-spacing: -0.016em;
  line-height: 1.25;
  max-width: 9ch;
}

.rd-strip__ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--rd-key-soft);
  color: var(--rd-key);
  flex: 0 0 auto;
}

.rd-strip__ico svg { width: 20px; height: 20px; }

/* The rail scrolls sideways with no scrollbar of its own. min-width: 0 lets
   it be narrower than its cards, which a grid item otherwise will not be. An
   end with more courses past it fades out, and a card comes to rest clear of
   the fade. */
.rd-rail {
  --rd-rail-fade: 40px;
  --rd-rail-before: 0px;
  --rd-rail-after: 0px;
  display: flex;
  gap: 9px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--rd-rail-fade);
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--rd-rail-before),
                                      #000 calc(100% - var(--rd-rail-after)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--rd-rail-before),
                              #000 calc(100% - var(--rd-rail-after)), transparent);
}

.rd-rail::-webkit-scrollbar { display: none; }
.rd-rail[data-before] { --rd-rail-before: var(--rd-rail-fade); }
.rd-rail[data-after] { --rd-rail-after: var(--rd-rail-fade); }

/* dragged along by a mouse, it follows the pointer and rests where it is let go */
.rd-rail.is-dragged { scroll-behavior: auto; scroll-snap-type: none; user-select: none; }
.rd-rail.is-dragged, .rd-rail.is-dragged .rd-course { cursor: grabbing; }

/* a course: its picture, its name over when it next runs, and an arrow. Three
   and part of a fourth go across the rail, so there is plainly more; a course
   whose date line is longer is as wide as that needs, up to a limit */
.rd-course {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 clamp(240px, 30%, 280px);
  max-width: 340px;
  padding: 8px 10px;
  border-radius: 13px;
  scroll-snap-align: start;
  transition: background-color 160ms ease;
}

/* braintoy-ui.css, on every page but the homepage, gives every mailto link a
   display and a padding of its own on a narrow screen, which would reach a
   course whose link writes an email and stand its words under its picture */
.rd-rail .rd-course { display: flex; padding: 8px 10px; }

.rd-course:hover { background: var(--rd-plum-soft); }
.rd-course:focus-visible { outline: 2px solid var(--rd-key); outline-offset: -2px; }

/* a hairline between one course and the next */
.rd-course + .rd-course::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--rd-line-soft);
}

.rd-course img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
  transition: transform 520ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rd-course:hover img { transform: scale(1.05); }

/* the words give way before the picture and the arrow do */
.rd-course > div { flex: 1 1 auto; min-width: 0; }

.rd-course__t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  color: var(--rd-ink);
  line-height: 1.28;
  letter-spacing: -0.014em;
  margin: 0 0 4px;
}

/* when it next runs, on one line */
.rd-course__d {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  font-size: var(--rd-micro);
  font-weight: 600;
  color: var(--rd-body);
  letter-spacing: -0.002em;
}

.rd-course__d svg { width: 12px; height: 12px; flex: 0 0 auto; color: var(--rd-key); }
.rd-course__d [data-when] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* who runs its next date, where that is somebody else (braintoy-course-dates.js) */
.rd-course__d [data-by]::after {
  content: " \00b7  " attr(data-by);
  font-weight: 500;
  color: var(--rd-muted);
}

.rd-course__go {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--rd-key-soft);
  color: var(--rd-key);
  flex: 0 0 auto;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.rd-course__go svg { width: 12px; height: 12px; }

.rd-course:hover .rd-course__go {
  background: var(--rd-key);
  color: var(--rd-on-key);
  transform: translateX(2px);
}

/* the card for all the courses, last on the rail: as wide as its words, on
   the key colour's soft ground, with no hairline before it */
.rd-course--all {
  flex-basis: auto;
  max-width: 250px;
  gap: 12px;
  padding-right: 16px;
  background: var(--rd-key-soft);
}

.rd-rail .rd-course--all { padding-right: 16px; }
.rd-course + .rd-course--all::before { content: none; }
.rd-course--all:hover { background: var(--rd-key-soft); }
.rd-course--all .rd-course__t { color: var(--rd-key); }
.rd-course--all .rd-course__d { white-space: normal; font-weight: 500; color: var(--rd-muted); }

.rd-course__allico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--rd-key);
  color: var(--rd-on-key);
  transition: transform 160ms ease;
}

.rd-course__allico svg { width: 18px; height: 18px; }
.rd-course--all:hover .rd-course__allico { transform: translateX(3px); }

/* the buttons that move the rail back and on, and the bar under it; both are
   there once braintoy-rail.js finds the rail has more than it shows */
.rd-strip__moves { display: flex; gap: 8px; visibility: hidden; }

.rd-strip__move {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rd-line);
  border-radius: 50%;
  background: var(--rd-card);
  color: var(--rd-ink);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.rd-strip__move svg { width: 15px; height: 15px; }
.rd-strip__move:hover { border-color: var(--rd-key); color: var(--rd-key); }
.rd-strip__move:focus-visible { outline: 2px solid var(--rd-key); outline-offset: 2px; }

/* an end the rail is already at */
.rd-strip__move:disabled { opacity: 0.35; cursor: default; border-color: var(--rd-line); color: var(--rd-ink); }

/* the bar: its marker is as long as the share of the rail in view, and
   stands as far along as the rail is (--share and --at, from braintoy-rail.js) */
.rd-strip__bar {
  grid-column: 2;
  position: relative;
  height: 3px;
  border-radius: 3px;
  background: var(--rd-line-soft);
  overflow: hidden;
  visibility: hidden;
}

.rd-strip__bar > span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--at, 0) * (1 - var(--share, 1)) * 100%);
  width: calc(var(--share, 1) * 100%);
  border-radius: inherit;
  background: var(--rd-key);
}

[data-rail-moves] > .rd-strip__moves,
[data-rail-moves] > .rd-strip__bar { visibility: visible; }

@media (max-width: 900px) {
  .rd-hero__in { grid-template-columns: minmax(0, 1fr); padding: 54px 28px 62px; }
  .rd-hero__art { min-height: 320px; }
  .rd-strip__box { grid-template-columns: minmax(0, 1fr); }
  .rd-strip__label { border-right: 0; border-bottom: 1px solid var(--rd-line-soft); padding: 0 0 12px; }
  .rd-strip__label b { max-width: none; }
  .rd-strip__moves { display: none; }
  .rd-strip__bar { grid-column: 1; }

  /* a course takes most of the rail with the start of the next beside it,
     and each comes to rest at the rail's start */
  .rd-rail { scroll-snap-type: x mandatory; }
  .rd-course { flex-basis: min(78%, 300px); max-width: 90%; }
}

@media (max-width: 620px) {
  .rd-hero__in, .rd-strip { padding-left: 18px; padding-right: 18px; }

  /* On a phone the buttons share a row of equal halves. The one that opens the
     enquiry form is left out, since the header's stays in view. */
  .rd-hero__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rd-hero__acts .rd-btn { justify-content: center; padding: 13px 8px; font-size: 14.5px; }
  .rd-hero__acts [data-enquiry-open] { display: none; }
}

/* too narrow for an arrow beside the words */
@media (max-width: 380px) {
  .rd-hero__acts .rd-btn svg { display: none; }
}

/* forty four pixels for a finger */
@media (pointer: coarse), (max-width: 900px) {
  .rd-strip__move { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-open > video.rd-pagehero__wall { display: none; }
  .rd-rail { scroll-behavior: auto; }
  .rd-course, .rd-course img, .rd-course__go, .rd-course__allico { transition: none; }
}

/* The wash over the hero photograph is mixed for a light page sitting under a
   bright picture. On a dark one it only has to take the edge off. */
[data-theme="dark"] .rd-hero__art::after,
[data-night] .rd-hero__art::after,
.rd-hero__art[data-night]::after {
  background: linear-gradient(100deg, rgba(10, 4, 20, 0.18) 0%,
                              rgba(10, 4, 20, 0.42) 44%, rgba(10, 4, 20, 0.7) 100%);
}

/* A photograph that was graded for white paper is too bright against this,
   so it comes down a little rather than being recoloured. */
[data-theme="dark"] .rd-course img,
[data-night] .rd-course img,
.rd-course[data-night] img { filter: brightness(0.9) contrast(1.02); }

/* ------------------------------------------------------- the hero slideshow

   One frame, one picture, crossfading, with its dots under it. Several
   frames moving in several places would read as noise, not as motion. */
.rd-show {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--rd-plum-soft);
  box-shadow: 0 26px 60px rgba(27, 16, 48, 0.17);
}

.rd-show__one {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 520ms ease, visibility 520ms;
}

.rd-show__one.is-on { opacity: 1; visibility: visible; }

.rd-show__one img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* the label sits on the picture, over a wash dark enough to read on any frame */
.rd-show__one figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: rgba(22, 13, 38, 0.72);
  backdrop-filter: blur(7px);
  color: #fff;
  font-size: var(--rd-small);
  font-weight: 700;
}

.rd-show__chip {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.rd-show__chip svg { width: 15px; height: 15px; }

.rd-show__dots {
  display: flex;
  gap: 7px;
  margin-top: 13px;
  flex-wrap: wrap;
}

.rd-show__dots button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px 8px 9px;
  border: 1px solid var(--rd-card-line);
  border-radius: 999px;
  background: var(--rd-card);
  color: var(--rd-body);
  font: 600 var(--rd-micro)/1 inherit;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.rd-show__dots button:hover { border-color: var(--rd-key); color: var(--rd-ink); }
.rd-show__dots button:focus-visible { outline: 2px solid var(--rd-key); outline-offset: 2px; }

.rd-show__dots button[aria-pressed="true"] {
  background: var(--rd-key-soft);
  border-color: var(--rd-key);
  color: var(--rd-key);
}

.rd-show__dotco { display: grid; place-items: center; width: 17px; height: 17px; }
.rd-show__dotco svg { width: 15px; height: 15px; }

/* FOUR LABELS DO NOT FIT ON A PHONE. The dots keep their icons and lose their
   words, which is the only part that does not survive 390 pixels. */
@media (max-width: 560px) {
  .rd-show__dotsay { display: none; }
  .rd-show__dots button { padding: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-show__one { transition: none; }
}

/* THE WRAPPER IS NOT A FRAME, because .rd-show is one.
   The rule for .rd-hero__art further up makes it a clipped box with its own
   radius, shadow and ground. The slideshow carries all of that itself, and a
   wrapper that clips CUTS THE DOTS OFF: they render outside the overflow and
   cannot be clicked at all. */
.rd-hero__art {
  overflow: visible;
  min-height: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* AND THE WASH OVER IT GOES WITH THE FRAME.
   .rd-hero__art::after is a full-bleed gradient, and painted across the
   whole wrapper it covers the dots underneath: nothing can click them,
   because the topmost thing at that point is the wrapper's own
   pseudo-element. */
.rd-hero__art::after { display: none; }

/* ---- braintoy/components/openers/logo_hero.css */
/* The dark opening of a product's own page (logo_hero.py): the logo on a
   white tile, an eyebrow, the name and a sentence over a wash, on the film
   the section's look draws in the wall from ../looks.css. A plain band's
   pieces are in ../parts.css. */

/* the opening's room above its words, under the header */
.ml-top { position:relative; overflow:hidden; padding:190px 0 84px; color:#fff;
         background:#2b1743; }
.ml-top .ml-in { position:relative; z-index:2; }

/* The product animation runs behind the headline under a wash at nine tenths,
   so the words keep their contrast and the motion reads through the gaps:
   against the lightest frame the film reaches, white is still above 7 to
   one. */
.ml-top > .rd-pagehero__wall { width:100%; height:100%; object-fit:cover; display:block; }
.ml-top__wash { position:absolute; inset:0; z-index:1;
         background:linear-gradient(120deg,rgba(43,23,67,.94) 0%,rgba(91,42,99,.93) 58%,
                    rgba(122,51,82,.92) 100%); }

.ml-top .ml-eyebrow { color:#ffb27a; }
.ml-top .ml-in h1 { font-size:clamp(44px,7vw,76px); line-height:1; font-weight:800;
         margin:0 0 16px; letter-spacing:-.04em; color:#fff; }
.ml-top .ml-lede { color:rgba(255,255,255,.86); font-size:18px; max-width:40em; }
/* The logo is dark artwork, which disappears on this ground, so it is given
   the light tile it was drawn for rather than being recoloured. */
.ml .ml-mark { display:inline-block; background:#fff; border-radius:8px;
         padding:10px 15px; margin-bottom:26px; line-height:0; }
.ml .ml-mark img { height:30px; width:auto; display:block; }

@media (max-width:900px) {
  /* follows the header rather than naming a height: the news bar can be
     dismissed, and the header is shorter without it */
  .ml-top { padding:calc(var(--bt-header-h, 210px) + 18px) 0 64px; }
}

/* ---- braintoy/components/openers/page_hero.css */
/* The opening of an inner page. The homepage opens on a dark band with a film
   under a wash, and inner pages open the same way, over the wall in looks.css
   and a wash darkest behind the words. A section given the Opening ground
   (parts.TONES) is this band, its column the opening's own. Given a colour or
   a gradient in the editor, its look turns the wash off (--rd-scrim) and
   gives its words the ink that reads on that ground (--rd-band-ink, -body
   and -accent, looks.py). */
.rd-pagehero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--rd-plum-deep);
  color: var(--rd-band-ink, #fff);
}

.rd-pagehero::before {
  content: var(--rd-scrim, "");
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(18, 8, 34, 0.92) 0%,
              rgba(20, 9, 37, 0.74) 48%, rgba(24, 11, 42, 0.22) 100%);
}

.rd-pagehero__in,
.rd-sec.rd-pagehero > .rd__wrap {
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: 88px 28px 96px;
}

.rd-sec.rd-pagehero { padding: 0; }

.rd-pagehero .rd-eyebrow { color: var(--rd-band-accent, var(--rd-accent)); }

.rd-pagehero h1,
.rd-type-page {
  max-width: 16ch;
  margin: 0 0 18px;
  color: var(--rd-band-ink, #fff);
  font-size: var(--rd-display);
  line-height: 1.02;
  letter-spacing: -0.034em;
}

/* a wide heading runs to more of the band before it wraps */
.rd-pagehero--wide h1,
h1.rd-type-page-wide { max-width: 19ch; }

.rd-pagehero h1 em,
.rd-type-page em { font-style: normal; color: var(--rd-band-accent, var(--rd-accent)); }

.rd-pagehero p {
  max-width: 56ch;
  margin: 0;
  color: var(--rd-band-body, rgba(255, 255, 255, 0.84));
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .rd-pagehero__in,
  .rd-sec.rd-pagehero > .rd__wrap { padding: 64px 20px 72px; }
}

/* ---- braintoy/components/openers/photo_hero.css */
/* An opening set as the Training page opens (photo_hero.py), in a Training
   band from ../parts.css: a small line, a heading, a sentence and a button
   over a brand wash. The picture, film or scene
   behind the wash is the section's look; without one the brand's gradient
   shows, lit from the upper left with rulings at 30 degrees. Given a colour or
   a gradient in the editor, its look turns the wash off (--rd-scrim) and gives
   its words the ink that reads on that ground (looks.py). */



/* The wash is a layer over whatever the look draws, and the words sit over
   both; named from the opening, because a layer in the flow is not one. */
.tr.hero .bt-page-wash {
  display: var(--rd-scrim, block);
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tr.hero .inner {
  position: relative;
  z-index: 1;
}

/* Heaviest on the left, behind the words, and thinning across to the right so
   the picture shows where nothing is written over it. The headline reads at
   13.5 to one or better against it from 390px to 1920px, and the smallest
   words on it at 5.95. */
.tr.hero .bt-page-wash {
  background:
    repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.05) 0 1px,
                              rgba(255, 255, 255, 0) 1px 46px),
    linear-gradient(97deg, rgba(46, 8, 62, 0.95) 0%, rgba(74, 12, 78, 0.9) 26%,
                    rgba(124, 20, 110, 0.66) 56%, rgba(150, 28, 124, 0.4) 100%);
}

/* Below this width the words are the whole frame and there is no clear side
   to thin towards, so the wash is even, which keeps the sentence at 4.5 to one
   over the bright part of a picture. */
@media (max-width: 760px) {
  .tr.hero .bt-page-wash {
    background:
      repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.05) 0 1px,
                                rgba(255, 255, 255, 0) 1px 46px),
      linear-gradient(168deg, rgba(38, 6, 54, 0.95) 0%, rgba(74, 12, 82, 0.92) 52%,
                      rgba(104, 18, 96, 0.9) 100%);
  }
}

.tr.hero { position:relative; overflow:hidden; color:var(--rd-band-ink, #fff);
      padding:190px 0 118px;
      background:
        radial-gradient(120% 120% at 12% 0%, rgba(255,255,255,.20) 0%,
                        rgba(255,255,255,0) 58%),
        repeating-linear-gradient(30deg, rgba(255,255,255,.07) 0 1px,
                                  rgba(255,255,255,0) 1px 46px),
        repeating-linear-gradient(-30deg, rgba(255,255,255,.07) 0 1px,
                                  rgba(255,255,255,0) 1px 46px),
        linear-gradient(100deg,#b91073 0%,#8a167f 52%,#2c1587 100%); }
.tr.hero .inner { position:relative; z-index:1; }
.rd .tr.hero h1 { font-size:clamp(44px,5.8vw,72px); line-height:1.02; letter-spacing:-.04em; }
/* the small line in the accent that reads on the wash, its mark with it */
.tr.hero .eyebrow { font-size:13px; color:var(--rd-band-accent, var(--rd-accent)); margin-bottom:14px; }
.tr.hero .eyebrow:before { background:currentColor; }
.tr .hero__lede { margin-top:16px; max-width:34em; font-size:clamp(17px,1.4vw,19px);
      line-height:1.55; color:var(--rd-band-body, rgba(255,255,255,.93)); }
.tr.hero .rd-btn { margin-top:30px; }

@media (max-width:760px) {
  /* room for the header, whose height braintoy-header-offset.js publishes:
     216 with the announcement bar and 105 without */
  .tr.hero { padding:calc(var(--bt-header-h, 215px) + 18px) 0 88px; }
}

/* ---- braintoy/components/people/people.css */
/* the heading and its link beside cards of people, each on their own colour
   (--tone, and --tone-dark in the dark theme) with the face in the photograph
   at --face and --zoom */
.ab-founders {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.ab-founders .ab-founders__head .rd-sec__head { margin-bottom: 24px; }

.ab-founders .ab-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ab-founders .ab-person {
  --tint: var(--tone);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 260ms ease, border-color 260ms ease;
}

[data-theme="dark"] .ab-founders .ab-person,
[data-night] .ab-founders .ab-person,
.ab-founders[data-night] .ab-person { --tint: var(--tone-dark); }

.ab-founders .ab-person:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tint) 40%, var(--rd-card-line));
  box-shadow: var(--rd-shadow-lift);
}

.ab-founders .ab-person:nth-child(2) { margin-top: 56px; }

/* the photograph's ground: the colour, brightest behind the photograph, with
   rings spreading out from it */
.ab-founders .ab-person__stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  background: radial-gradient(64% 58% at 50% 58%,
              color-mix(in srgb, var(--tint) 26%, var(--rd-card)) 0%,
              color-mix(in srgb, var(--tint) 7%, var(--rd-card)) 100%);
}

.ab-founders .ab-person__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 50% 58%, transparent 0 21px,
              color-mix(in srgb, var(--tint) 26%, transparent) 21px 22px);
  -webkit-mask-image: radial-gradient(circle at 50% 58%, #000 14%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 58%, #000 14%, transparent 70%);
  transition: transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ab-founders .ab-person:hover .ab-person__stage::before { transform: scale(1.1); }

.ab-founders .ab-person__photo {
  position: relative;
  width: 64%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid var(--rd-card);
  border-radius: 50%;
  box-shadow: 0 26px 44px -22px color-mix(in srgb, var(--tint) 70%, transparent);
  transform: translateY(-16px);
}

.ab-founders .ab-person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--face);
  transform: scale(var(--zoom));
  transform-origin: var(--face);
  transition: transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ab-founders .ab-person:hover .ab-person__photo img {
  transform: scale(calc(var(--zoom) * 1.05));
}

/* the name, on a card of its own riding up over the photograph */
.ab-founders .ab-person__came {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -54px 18px 18px;
  padding: 14px 14px 14px 18px;
  border: 1px solid color-mix(in srgb, var(--tint) 22%, var(--rd-card-line));
  border-radius: 16px;
  background: var(--rd-card);
  box-shadow: 0 14px 30px -14px rgba(27, 16, 48, 0.3);
}

.ab-founders .ab-person__role {
  margin: 0 0 3px;
  color: var(--tint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ab-founders h3.ab-person__name {
  margin: 0;
  color: var(--rd-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.ab-founders .ab-person__go {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid color-mix(in srgb, var(--tint) 38%, transparent);
  border-radius: 50%;
  color: var(--tint);
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

.ab-founders .ab-person__go svg { width: 18px; height: 18px; }

.ab-founders .ab-person__go:hover,
.ab-founders .ab-person__go:focus-visible {
  border-color: var(--tint);
  background: var(--tint);
  color: var(--rd-card);
}

/* the words a screen reader is given in place of the icon */
.ab-founders .ab-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .ab-founders { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .ab-founders .ab-people { grid-template-columns: minmax(0, 1fr); }
  .ab-founders .ab-person:nth-child(2) { margin-top: 0; }
  .ab-founders .ab-person__stage { aspect-ratio: 5 / 4; }
  .ab-founders .ab-person__photo { width: 52%; }
}

@media (prefers-reduced-motion: reduce) {
  .ab-founders .ab-person,
  .ab-founders .ab-person__photo img { transition: none; }

  .ab-founders .ab-person:hover,
  .ab-founders .ab-person:hover .ab-person__stage::before { transform: none; }

  .ab-founders .ab-person:hover .ab-person__photo img { transform: scale(var(--zoom)); }
}

/* ---- braintoy/components/people/programme_record.css */
/* What a programme that has run achieved (programme_record.py), in a Training
   band from ../parts.css: its figures in cards, the courses it ran in a row
   of cards, the people in their own words as voices.css draws them, where
   they went and the stories told about it, and a link onward. */

.tr.learned { padding: 66px 0 74px; background: #faf8ff; }
:root[data-theme="dark"] .tr.learned,
:root [data-night] .tr.learned,
:root .tr.learned[data-night] { background: #140d22; }
.tr.learned .inner { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.tr .learned__head { max-width: 64ch; margin: 0 0 8px; }
.tr.learned h2 { margin: 6px 0 10px; }
.tr .learned__when { font-weight: 700; }

.tr.learned .rd-voices { margin: 18px 0 8px; }
/* the voices' paragraphs keep no room under them, as the voices set them */
.tr .rd-voices p { padding-bottom: 0; }

.tr .learned__figs { display: flex; flex-wrap: wrap; gap: 12px;
  margin: 24px 0 0; padding: 0; }
.tr .learned__fig { flex: 1 1 180px; margin: 0; padding: 18px 22px;
  border-radius: 16px; background: #fff; border: 1px solid var(--rule, #e7e3f0); }
:root[data-theme="dark"] .tr .learned__fig,
:root [data-night] .tr .learned__fig,
:root .tr[data-night] .learned__fig { background: #1c1430;
  border-color: #342553; }
.tr .learned__fig dt { margin: 0; color: #c9442b; font-size: 34px;
  font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.tr .learned__fig dd { margin: 8px 0 0; padding: 0; font-size: 14px; opacity: .78; }

/* named with its element, so its weight outweighs the redesign's main, which
   sets every heading in it at 700 */
.tr h3.learned__sub { margin: 40px 0 14px; font-size: 20px;
  font-weight: 800; letter-spacing: -.01em; }
.tr .learned__courses { display: grid; gap: 12px; margin: 0;
  padding: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tr .learned__course { position: relative; margin: 0;
  padding: 18px 18px 20px; list-style: none; border-radius: 16px; background: #fff;
  border: 1px solid var(--rule, #e7e3f0); }
:root[data-theme="dark"] .tr .learned__course,
:root [data-night] .tr .learned__course,
:root .tr[data-night] .learned__course { background: #1c1430;
  border-color: #342553; }
.tr .learned__course::before { content: none; }
.tr .learned__lv { display: inline-block; margin: 0 0 10px;
  padding: 3px 10px; border-radius: 999px; background: #f3eefb; color: #45307e;
  font-size: 11.5px; font-weight: 700; }
:root[data-theme="dark"] .tr .learned__lv,
:root [data-night] .tr .learned__lv,
:root .tr[data-night] .learned__lv { background: #2a1f45;
  color: #d9ccf5; }
.tr .learned__course b { display: block; margin: 0 0 6px;
  font-size: 16px; line-height: 1.3; }
.tr .learned__course span:last-child { display: block;
  font-size: 13.5px; line-height: 1.5; opacity: .78; }
.tr .learned__off { margin: 12px 0 0; font-size: 13px; opacity: .7; }

/* the link onward, in the brand's deeper red, which each theme gives a
   shade that reads on its own ground */
.tr .learned__more { display: inline-flex; align-items: center;
  gap: 8px; margin-top: 26px; color: var(--rd-key-deep); font-weight: 800;
  text-decoration: none; }
.tr .learned__more:hover { text-decoration: underline; }
.tr .learned__more svg { width: 16px; height: 16px; }

@media (max-width: 1080px) {
  .tr .learned__courses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tr .learned__courses { grid-template-columns: 1fr; }
}

/* where the people went, set large with a dot between each */
.tr .learned__went { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 0; margin: 0; padding: 0; }
.tr .learned__went li { list-style: none; font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.tr .learned__went li::before { content: none; }
.tr .learned__went li:nth-child(even) { opacity: .55; }
.tr .learned__went li:not(:last-child)::after { content: "";
  display: inline-block; width: 8px; height: 8px; margin: 0 16px .3em;
  border-radius: 50%; background: #c9442b; vertical-align: middle; }
.tr .learned__also { margin: 14px 0 0; font-size: 14px; opacity: .75; }

/* the stories, each a card leading to its own */
.tr .learned__stories { display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr .learned__story { display: flex; flex-direction: column;
  overflow: hidden; border-radius: 18px; background: #fff; color: inherit;
  border: 1px solid var(--rule, #e7e3f0); text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease; }
.tr .learned__story:hover { transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(39, 24, 71, .12); }
:root[data-theme="dark"] .tr .learned__story,
:root [data-night] .tr .learned__story,
:root .tr[data-night] .learned__story { background: #1c1430;
  border-color: #342553; }
.tr .learned__story img { width: 100%; height: auto; aspect-ratio: 600 / 403;
  object-fit: cover; display: block; }
.tr .learned__story span { display: block; padding: 0 20px; }
.tr .learned__story .learned__kind { padding-top: 18px; color: #c9442b;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tr .learned__story b { display: block; padding: 6px 20px 6px;
  font-size: 17px; line-height: 1.3; }
.tr .learned__story span:last-child { padding-bottom: 20px;
  font-size: 14px; line-height: 1.55; opacity: .8; }
@media (max-width: 900px) {
  .tr .learned__stories { grid-template-columns: 1fr; }
}

/* ---- braintoy/components/people/quote_cards.css */
/* What people said, in tinted cards (quote_cards.py), in a plain band from
   ../parts.css. */
.ml .ml-voices { display:grid; grid-template-columns:repeat(2,1fr); gap:24px; margin-top:34px; }
/* Each quote stands on the band's tint under the brand's mark, without the
   theme's bar beside a quotation or the room it keeps for it. */
.ml .ml-voice { background:var(--sink); border-radius:10px; padding:26px 28px; }
.ml .ml-voice::before { content:""; display:block; width:16px; height:16px;
         margin-bottom:14px; background:var(--red);
         -webkit-mask:var(--rd-mark) center/contain no-repeat;
         mask:var(--rd-mark) center/contain no-repeat; }
.ml blockquote { margin:0; padding:0; font-size:16.5px; line-height:1.55; }
.ml blockquote::before { content:none; }
.ml .ml-who { margin-top:14px; font-size:13px; color:var(--muted); }
.ml .ml-who b { display:block; color:var(--ink); }

@media (max-width:900px) {
  .ml .ml-voices { grid-template-columns:1fr; }
}

/* ---- braintoy/components/people/trust.css */
/* The organisations Braintoy has worked with (trust.py), as a row of logos or
   on a globe that can be turned, with the switch that chooses between them. */

/* --------------------------------------------------------------- trusted by */

.rd-trust {
  border-top: 1px solid var(--rd-line-soft);
  border-bottom: 1px solid var(--rd-line-soft);
  background: var(--rd-soft);
}

/* THE LABEL TAKES A LINE OF ITS OWN rather than a column of the row. Sitting
   inside the row it would eat a logo's worth of width, which turns seventeen
   logos into eight, eight and ONE stranded at the bottom. Above the row,
   seventeen lays out nine and eight. */
.rd-trust__in {
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: 34px 28px 36px;
}

.rd-trust__label {
  margin: 0 0 22px;
  font-size: var(--rd-micro);
  font-weight: 700;
  color: var(--rd-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* A GRID, NOT A WRAPPED FLEX ROW. Seventeen logos wrapped leave one stranded
   on a line of its own, which reads as an afterthought. Even tracks fill the
   width instead. */
.rd-trust__row {
  display: grid;
  /* COUNTED, NOT AUTO-FITTED. SEVENTEEN IS PRIME, so no column count divides it
     and auto-fit lands on eight, which is 8 + 8 + 1, with a lone logo on a
     line of its own. 9, 6, 5 and 3 all leave a last row of more than one; 8, 4
     and 2 do not. So the count is chosen at each width rather than left to the
     browser. */
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 14px;
}

/* A TILE PER LOGO, because the files do not agree with each other. Seven of
   the seventeen ship with a white background baked into the picture and the
   rest are transparent, so on a tinted band half the row has a white
   rectangle around it and half does not. Giving every one the same white tile
   makes that invisible, and it is also what keeps the row readable when the
   page goes dark. */
.rd-trust__row > * {
  box-sizing: border-box;
  width: 100%;
  height: 88px;
  padding: 22px 20px;
  border-radius: 12px;
  background: var(--rd-tile);
  border: 1px solid var(--rd-card-line);
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.rd-trust__row > *:hover {
  border-color: var(--rd-key);
  transform: translateY(-2px);
  box-shadow: var(--rd-shadow);
}

/* every logo fitted whole inside its tile, so the tiles are all one size */
.rd-trust__row img {
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 200ms ease, opacity 200ms ease;
}

.rd-trust__row > *:hover img { filter: none; opacity: 1; }

/* the case study an organisation on the globe links to */
.rd-globe__story {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: var(--rd-small);
  font-weight: 600;
  letter-spacing: -0.008em;
  transition: background 170ms ease, border-color 170ms ease;
}

.rd-globe__story:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.rd-globe__story:focus-visible { outline: 3px solid var(--rd-globe-pin-on); outline-offset: 2px; }
.rd-globe__story svg { width: 15px; height: 15px; margin-left: auto; flex: 0 0 auto; }

.rd-globe__storykind {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--rd-globe-pin-on);
  color: #190d2c;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
 * THE GLOBE, and the switch that chooses it.
 *
 * A second way of showing the same seventeen organisations: where they are
 * rather than what their wordmark looks like. The logo row is untouched and the
 * switch remembers which one was last chosen.
 * ========================================================================== */

.rd-trust__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.rd-pick {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--rd-card);
  border: 1px solid var(--rd-card-line);
}

.rd-pick button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: var(--rd-small);
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--rd-muted);
  cursor: pointer;
  transition: background 170ms ease, color 170ms ease;
}

.rd-pick button svg { width: 15px; height: 15px; }
.rd-pick button:hover { color: var(--rd-ink); }
/* AN INVERSION, so it reads in both. var(--rd-plum) with white on it is 10:1
   in light and 2.3:1 in dark, because the token flips. The page's own ink as
   the ground and its own ground as the ink cannot do that. */
.rd-pick button[aria-pressed="true"] { background: var(--rd-ink); color: var(--rd-page); }
.rd-pick button:focus-visible { outline: 3px solid var(--rd-key); outline-offset: 2px; }

/* THE GLOBE'S OWN COLOURS, named here so the component can read them rather
   than carry a palette of its own. It redraws when data-theme changes. */
.rd-globe {
  --rd-globe-sea: #1b0f33;
  --rd-globe-sea-edge: #38205e;
  --rd-globe-land: rgba(150, 120, 225, 0.3);
  --rd-globe-coast: #c0a6ff;
  --rd-globe-grid: rgba(150, 126, 221, 0.2);
  --rd-globe-halo: rgba(132, 98, 224, 0.42);
  --rd-globe-pin: #ffb877;
  --rd-globe-pin-on: #ff6b4f;

  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  border-radius: var(--rd-radius-lg);
  /* its own ground whatever the page is doing, because a hologram on white is
     a circle with a map in it */
  background:
    radial-gradient(120% 120% at 18% 10%, #2a1850 0%, #160c29 55%, #0c0618 100%);
  border: 1px solid #3a2663;
  overflow: hidden;
}


.rd-globe__stage { position: relative; }

.rd-globe canvas {
  display: block;
  width: 100%;
  /* a square box, so the sphere has the same room whatever the column does */
  aspect-ratio: 1 / 1;
  max-height: 460px;
  margin: 0 auto;
  touch-action: none;
  cursor: grab;
  border-radius: 50%;
}

.rd-globe canvas:focus-visible { outline: 3px solid var(--rd-globe-pin-on); outline-offset: 6px; }

.rd-globe__acts {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

/* ZOOM SITS ON THE GLOBE, not under it with the others. Stepping through the
   organisations and coming closer to the one you are looking at are different
   jobs, and a map puts the second one in the corner of the map. */
.rd-globe__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  gap: 6px;
  z-index: 2;
}

/* A grab cursor is a lie once the sphere is bigger than the window it is in:
   the drag still turns it, but what it feels like is moving around something. */
.rd-globe canvas.is-close { cursor: move; }

.rd-globe__btn:disabled { opacity: 0.35; cursor: default; }
.rd-globe__btn:disabled:hover { background: var(--rd-card); }

.rd-globe__btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #e6dcff;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.rd-globe__btn:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.rd-globe__btn:focus-visible { outline: 3px solid var(--rd-globe-pin-on); outline-offset: 2px; }
.rd-globe__btn svg { width: 14px; height: 14px; }
.rd-globe.is-held .rd-globe__btn[data-globe-hold] { background: var(--rd-globe-pin-on); border-color: transparent; color: #190d2c; }

.rd-globe__hint {
  margin-top: 10px;
  text-align: center;
  font-size: var(--rd-micro);
  color: rgba(230, 220, 255, 0.55);
}

/* The column is wide because the globe wants a square, and words set across the
   whole of it run to ninety characters. The measure is capped and what is left
   is space around the sphere rather than a line nobody can track. */
.rd-globe__say { color: #e8e0f8; max-width: 44ch; }

.rd-globe__mark {
  display: inline-grid;
  place-items: center;
  height: 64px;
  min-width: 108px;
  max-width: 200px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 16px;
}

.rd-globe__mark img { max-height: 42px; width: auto; max-width: 100%; object-fit: contain; }

.rd-globe__place {
  font-size: var(--rd-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rd-globe-pin);
  margin-bottom: 6px;
}

.rd-globe__say h3 {
  font-size: 25px;
  line-height: 1.16;
  letter-spacing: -0.022em;
  color: #fff;
  margin-bottom: 4px;
}

.rd-globe__sector {
  font-size: var(--rd-small);
  color: rgba(232, 224, 248, 0.62);
  margin-bottom: 14px;
}

.rd-globe__blurb {
  font-size: var(--rd-small);
  line-height: 1.62;
  color: rgba(232, 224, 248, 0.88);
  min-height: 7.4em;
}


/* OFF SCREEN, NOT HIDDEN. A marker painted on a canvas cannot be tabbed to and
   cannot be read out, so every client is also a real button here. Taking them
   out with display: none would take them from a screen reader as well, which is
   the one thing they are for. */
.rd-globe__keys,
.rd-globe__live {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rd-globe__key:focus-visible {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 14px;
  clip: auto;
  clip-path: none;
  border-radius: 10px;
  background: var(--rd-card);
  color: var(--rd-ink);
  border: 2px solid var(--rd-key);
  font: inherit;
  font-size: var(--rd-small);
}

@media (max-width: 900px) {
  .rd-globe { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 22px; }
  .rd-globe canvas { max-height: 380px; }
  .rd-globe__blurb { min-height: 0; }
}

/* A FINGER ON THE GLOBE MUST STILL BE ABLE TO SCROLL THE PAGE.
   touch-action: none tells the browser this element handles every gesture
   itself, which is correct for a thing you drag to rotate and a trap on a
   phone: the globe is 320 of the 390 pixels across, so most downward swipes in
   that part of the page start on it, and every one of them is swallowed.
   The page will not scroll past the globe.

   pan-y gives the vertical back to the browser and keeps the horizontal, so a
   sideways drag still spins it and a downward one leaves. Pinch goes back to
   the browser too, which is why the zoom buttons matter; they are already
   44px on a coarse pointer. */
@media (pointer: coarse) {
  .rd-globe canvas { touch-action: pan-y; }
}

@media (max-width: 620px) {
  .rd-globe { padding: 16px; }
  .rd-globe__say h3 { font-size: 21px; }
  .rd-trust__head { margin-bottom: 20px; }
}

@media (max-width: 1080px) {
  .rd-trust__row { grid-template-columns: repeat(6, minmax(0, 1fr)); }   /* 6+6+5 */
}

@media (max-width: 900px) {
  .rd-trust__row { grid-template-columns: repeat(5, minmax(0, 1fr)); }   /* 5+5+5+2 */

  /* the label is held to no width here */
  .rd-trust__label { max-width: none; }
}

@media (max-width: 620px) {
  .rd-trust__in { padding-left: 18px; padding-right: 18px; }

  /* three across on a phone, which leaves seventeen a last row of two */
  .rd-trust__row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .rd-trust__row > * { height: 66px; padding: 16px 14px; }
}

/* forty four pixels for a finger */
@media (pointer: coarse), (max-width: 900px) {
  .rd-globe__btn { width: 44px; height: 44px; }
  .rd-pick button { min-height: 44px; }
}

/* A logo tile at full white is a lamp against this, so it comes down a little
   rather than being recoloured. */
[data-theme="dark"] .rd-trust__row > *,
[data-night] .rd-trust__row > *,
.rd-trust__row[data-night] > * { background: #ece7f3; border-color: transparent; }
[data-theme="dark"] .rd-trust__row img,
[data-night] .rd-trust__row img,
.rd-trust__row[data-night] img { opacity: 0.86; }

/* The globe keeps its own night sky in both themes: it is a hologram, and a
   hologram on white paper is a circle with a map in it. Only the frame moves. */
[data-theme="dark"] .rd-globe,
[data-night] .rd-globe,
.rd-globe[data-night] { border-color: #412a6e; }

/* ---- braintoy/components/people/voices.css */
/* People in their own words: one at a time on a stage with the phrase that
 * matters set in the speaker's colour, chosen from the list beside it, each
 * with their organisation's logo beside their name where it has one. voices.py beside this
 * file writes it, and programme_record.py draws it with the same; braintoy-
 * voices.js runs it, and without the script the quotes are listed one under
 * the other. */
.rd-voices {
  --each: 8s;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  text-align: left;
}

.rd-voices__stage {
  position: relative;
  padding: 46px 48px 40px;
  border: 1px solid var(--rd-line);
  border-radius: 26px;
  background: var(--rd-card);
  box-shadow: 0 34px 70px -44px rgba(24, 8, 34, 0.42);
  overflow: hidden;
}

.rd-voice { position: relative; margin: 0; padding-top: 64px; }

/* the one quotation mark, large and in the speaker's colour, standing in the
   room above the words */
.rd-voice::before {
  content: "\201C";
  position: absolute;
  top: -18px;
  left: -6px;
  color: var(--tint);
  font: 800 120px/1 Georgia, "Times New Roman", serif;
  opacity: 0.5;
  pointer-events: none;
}

.rd-voice__q {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--rd-ink);
  font-size: clamp(19px, 1.85vw, 25px);
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.rd-voice--long .rd-voice__q { font-size: clamp(17px, 1.5vw, 20px); }

/* the phrase that matters, with nothing laid behind it: a little heavier,
   turning to the speaker's colour as the quote takes the stage, a colour each
   speaker's reads in at 4.5 to one or better on the stage, and lightened for
   the dark */
.rd-voice mark {
  --said: var(--tint);
  padding: 0;
  background: none;
  color: inherit;
  font-weight: 700;
  transition: color 700ms ease 220ms;
}

:root[data-theme="dark"] .rd-voice mark,
:root [data-night] .rd-voice mark,
:root .rd-voice[data-night] mark { --said: color-mix(in srgb, var(--tint) 45%, #ffffff); }

.rd-voice.is-on mark,
.rd-voices:not(.is-live) .rd-voice mark { color: var(--said); }

.rd-voice__who {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
}

.rd-voice__disc {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tint);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.rd-voice__name {
  display: block;
  color: var(--rd-ink);
  font-size: 15.5px;
  font-weight: 700;
}

.rd-voice__role {
  display: block;
  margin-top: 2px;
  color: var(--rd-muted);
  font-size: 13.5px;
  line-height: 1.45;
}

/* the organisation's logo beside the name, its words free to wrap beside it */
.rd-voice__disc + span { min-width: 0; }

.rd-voice__logo {
  flex: none;
  width: auto;
  height: auto;
  max-width: 112px;
  max-height: 30px;
  margin-left: 18px;
  object-fit: contain;
}

/* every one of these files is dark on white, and in the dark there is no white */
:root[data-theme="dark"] .rd-voice__logo,
:root [data-night] .rd-voice__logo,
:root .rd-voice__logo[data-night] {
  box-sizing: content-box;
  padding: 4px 8px;
  border-radius: 7px;
  background: #ffffff;
}

@media (max-width: 560px) {
  .rd-voice__logo { max-width: 88px; max-height: 24px; margin-left: 10px; }
}

.rd-voices__count {
  position: absolute;
  right: 28px;
  bottom: 24px;
  margin: 0;
  color: var(--rd-muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.rd-voices__count b { color: var(--rd-ink); }
.rd-voices:not(.is-live) .rd-voices__count { display: none; }

/* with the script, the quotes share one place on the stage, so it keeps the
   height of the longest and nothing below it moves when they change */
.rd-voices.is-live .rd-voices__stage { display: grid; }

.rd-voices.is-live .rd-voice {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
              visibility 0s linear 420ms;
}

.rd-voices.is-live .rd-voice.is-current {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 420ms ease 120ms, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms,
              visibility 0s;
}

.rd-voices:not(.is-live) .rd-voice + .rd-voice { margin-top: 40px; }

/* the people to choose from */
.rd-voices__pick {
  position: relative;
  display: grid;
  gap: 6px;
}

.rd-voices:not(.is-live) .rd-voices__pick { display: none; }

.rd-voices__chip {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin: 0;
  padding: 10px 14px 10px 10px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--rd-body);
  font: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.rd-voices__chip:hover { background: var(--rd-soft); }

.rd-voices__chip.is-current {
  border-color: color-mix(in srgb, var(--tint) 34%, transparent);
  background: color-mix(in srgb, var(--tint) 9%, var(--rd-card));
}

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

.rd-voices__chip .rd-voice__disc { width: 40px; height: 40px; font-size: 12.5px; }

.rd-voices__chip-in { min-width: 0; }

.rd-voices__chip-in b {
  display: block;
  color: var(--rd-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.rd-voices__chip-in span {
  display: block;
  overflow: hidden;
  color: var(--rd-muted);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rd-voices__chip.is-current .rd-voices__chip-in span { color: var(--rd-body); }

/* the ring round the current person fills while the next one is on its way */
.rd-voices__ring {
  position: absolute;
  inset: -5px;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  fill: none;
  stroke: var(--tint);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 129;
  stroke-dashoffset: 129;
  transform: rotate(-90deg);
  opacity: 0;
}

.rd-voices__chip.is-current .rd-voices__ring { opacity: 1; }

.rd-voices.is-timing .rd-voices__chip.is-current .rd-voices__ring {
  animation: rd-voices-ring var(--each) linear forwards;
}

.rd-voices.is-held .rd-voices__ring { animation-play-state: paused; }

@keyframes rd-voices-ring { to { stroke-dashoffset: 0; } }

@media (max-width: 860px) {
  .rd-voices { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rd-voices__stage { padding: 36px 24px 54px; border-radius: 22px; }
  .rd-voice { padding-top: 50px; }
  .rd-voice::before { font-size: 96px; top: -14px; }
  .rd-voices__pick {
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 76%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 2px 6px;
  }
  .rd-voices__pick::-webkit-scrollbar { display: none; }
  .rd-voices__chip { scroll-snap-align: start; border-color: var(--rd-line); }
}

/* placed narrower than its section, the voices are laid out as they would
   be on a screen as wide as the cell, which is the screen less the band's
   padding and a scrollbar */
.rd-free__b--voices { container-type: inline-size; }

@container (max-width: 787px) {
  .rd-voices { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rd-voices__stage { padding: 36px 24px 54px; border-radius: 22px; }
  .rd-voice { padding-top: 50px; }
  .rd-voice::before { font-size: 96px; top: -14px; }
  .rd-voices__pick {
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 76%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 2px 2px 6px;
  }
  .rd-voices__pick::-webkit-scrollbar { display: none; }
  .rd-voices__chip { scroll-snap-align: start; border-color: var(--rd-line); }
}

@media (prefers-reduced-motion: reduce) {
  .rd-voices.is-live .rd-voice,
  .rd-voices.is-live .rd-voice.is-current,
  .rd-voice mark { transition: none; }
  .rd-voices__ring { display: none; }
}

/* ---- braintoy/components/people/voices_feature.css */
/* People in their own words, one featured (voices_feature.py): the words get
   the room and everybody quoted is a list beside them to choose from.
   braintoy-said.js moves through them. */

/* ==========================================================================
 * IN THEIR WORDS. Everybody quoted, one of them speaking.
 *
 * IT IS THE PAGE'S OWN COLOURS, so it is a part of the page rather than a
 * thing sitting on it.
 *
 * THE QUOTATION GETS THE ROOM and the people are a list down the side, which is
 * the globe band's arrangement turned the other way round: there the subject is
 * a place and the words are a caption, here the words are the subject.
 *
 * ALL OF THEM ARE IN THE MARKUP AND STACKED IN ONE GRID CELL, so a swap is a
 * fade between two things that are already laid out rather than a reflow, and
 * so the band is the height of the longest of them whichever is showing.
 * Nothing jumps.
 * ========================================================================== */

.rd-said {
  padding: 84px 0 80px;
  background:
    radial-gradient(120% 90% at 8% 0%,
                    color-mix(in srgb, var(--rd-plum) 7%, transparent) 0%,
                    transparent 58%),
    var(--rd-page);
  border-top: 1px solid var(--rd-line);
}

/* THE HEADER STANDS ON THE BODY'S OWN TWO COLUMNS: the small line and the
   heading over the quotation, the introduction beside them over the list,
   starting where the list starts, its foot level with the heading's. */
.rd-said__head {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 14px 48px;
  align-items: end;
  margin-bottom: 42px;
}

.rd-said__head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 8px 0 0;
  color: var(--rd-ink);
  text-wrap: balance;
}

.rd-said__lede {
  color: var(--rd-body);
  font-size: var(--rd-small);
  line-height: 1.68;
  margin: 0;
}

.rd-said__body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 48px;
  /* CENTRED, because the list is taller than any one quotation, and a
     quotation sitting at the top of that leaves a column of nothing under
     it. */
  align-items: center;
}

/* ------------------------------------------------------------- the speaking */

/* ONE CELL, SIX THINGS IN IT. Grid rather than absolute positioning, so the
   cell is as tall as the longest quotation and the band does not resize as it
   moves through them. */
.rd-said__stage { display: grid; }
/* each quotation centred in the cell the longest of them sizes, so a short
   one stands level with the middle of the list beside it */
.rd-said__one { grid-area: 1 / 1; align-self: center; margin: 0; }

.rd-said__one blockquote {
  margin: 0 0 30px;
  font-size: clamp(21px, 2.5vw, 31px);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.021em;
  color: var(--rd-ink);
  text-wrap: pretty;
  /* the opening mark hangs in the margin, so the words start on the line the
     heading and the speaker's initials start on */
  text-indent: -0.43em;
}

/* The one phrase that carries it. A pointer into the words rather than a copy
   of them: voices_feature.py marks it only where it is in the quotation. */
.rd-said__one em { font-style: normal; color: var(--rd-key); }

.rd-said__one blockquote::before { content: "\201C"; }
.rd-said__one blockquote::after { content: "\201D"; }

/* THE ONE SHOWING IS THE ONE THAT TAKES THE POINTER. The other five are in the
   same cell, so without this the top one in the stack would take every click
   and hover meant for the one being read. */
.rd-said__one { opacity: 0; visibility: hidden; pointer-events: none;
                transform: translateY(10px);
                transition: opacity 420ms ease, transform 520ms
                            cubic-bezier(.22, .8, .3, 1), visibility 0s 420ms; }
.rd-said__one.is-on { opacity: 1; visibility: visible; pointer-events: auto;
                      transform: none; transition-delay: 0s, 0s, 0s; }

.rd-said__by { display: flex; align-items: center; gap: 13px; }

/* --------------------------------------------------------------- the people */

/* SIXTEEN ROWS. With every voice on the site in it, a list run down the side
   at its full height is 1217px of a 1620px band: the picker is the section,
   and the quotation it exists to choose a third of it.

   So the list scrolls and the band stays the height of the thing being read.
   scrollbar-gutter keeps the rows from shifting sideways when the bar appears,
   and braintoy-said.js scrolls the lit row back into view as it advances. */
.rd-said__roll {
  display: grid;
  gap: 2px;
  max-height: 540px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.rd-said__row {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 15px 13px 27px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 220ms ease, border-color 220ms ease;
}

.rd-said__row:hover { background: var(--rd-soft); }
.rd-said__row.is-on {
  background: var(--rd-card);
  border-color: var(--rd-card-line);
  box-shadow: var(--rd-shadow-lift, 0 10px 28px rgba(27, 16, 48, 0.08));
}
.rd-said__row:focus-visible { outline: 3px solid var(--rd-key); outline-offset: 2px; }

.rd-said__names { min-width: 0; display: grid; gap: 1px; }
.rd-said__names b {
  font-size: var(--rd-small);
  font-weight: 700;
  color: var(--rd-ink);
  letter-spacing: -0.008em;
}
.rd-said__names span {
  font-size: var(--rd-micro);
  color: var(--rd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd-said__by .rd-said__names b { font-size: 17px; }
.rd-said__by .rd-said__names span { font-size: var(--rd-small); white-space: normal; }

/* ------------------------------------------------------------- the two marks */

/* A PHOTOGRAPH, LEFT ALONE. Both of these are 300 pixels at most and are shown
   at 44 and 72, so they are sharp as they are. A greyscale and a dot screen
   would make two small pictures into two small bad ones. */
.rd-said__mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--rd-soft);
  border: 1px solid var(--rd-card-line);
}
.rd-said__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-said__mark--big { width: 72px; height: 72px; }

/* INITIALS, NOT A DRAWN FACE, for the four the site has no photograph of. A
   drawing of a stranger is a bad likeness at every size, and four of them read
   as a missing asset. A monogram is a mark somebody chose. */
.rd-said__mark--tint {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--rd-tint-ink, var(--rd-plum));
  background: var(--rd-tint-bg, var(--rd-plum-soft));
  border-color: color-mix(in srgb, var(--rd-tint-ink, var(--rd-plum)) 22%, transparent);
}
.rd-said__mark--big.rd-said__mark--tint { font-size: 24px; }

.rd-said__mark--tint[data-tint="key"] { --rd-tint-ink: var(--rd-key); --rd-tint-bg: var(--rd-key-soft); }
.rd-said__mark--tint[data-tint="plum"] { --rd-tint-ink: var(--rd-plum); --rd-tint-bg: var(--rd-plum-soft); }
.rd-said__mark--tint[data-tint="green"] { --rd-tint-ink: var(--rd-green);
  --rd-tint-bg: color-mix(in srgb, var(--rd-green) 11%, var(--rd-page)); }
/* the amber deepened toward the ink of the theme, so the initials read on it */
.rd-said__mark--tint[data-tint="amber"] {
  --rd-tint-ink: color-mix(in srgb, var(--rd-amber) 66%, var(--rd-ink));
  --rd-tint-bg: color-mix(in srgb, var(--rd-amber) 13%, var(--rd-page)); }

/* The organisation's mark, in colour and at a size it can be read at. */
.rd-said__logo {
  margin-left: auto;
  max-height: 20px;
  max-width: 76px;
  width: auto;
  object-fit: contain;
}
/* under a quotation, beside the speaker's name rather than off at the far edge */
.rd-said__by .rd-said__logo { max-height: 30px; max-width: 108px; margin-left: 18px; }
[data-theme="dark"] .rd-said__logo,
[data-night] .rd-said__logo,
.rd-said__logo[data-night] {
  /* every one of these files is dark on white, and there is no white here */
  background: #fff;
  padding: 3px 6px;
  border-radius: 6px;
}

/* ------------------------------------------------------ the eight second mark */

/* WHICH ONE IS SPEAKING AND HOW LONG IS LEFT: the dot grid of the logo at the
   edge of the chosen row, filling from the bottom with the key colour over the
   eight seconds. The grid is a mask, so the filling layer inside it shows only
   through the dots. It is the only thing on this band that moves on its own,
   and it stops the moment anybody is reading. */
.rd-said__tick {
  position: absolute;
  left: 9px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -5.5px;
  background: var(--rd-line);
  -webkit-mask: var(--rd-mark) center / contain no-repeat;
  mask: var(--rd-mark) center / contain no-repeat;
  opacity: 0;
  transition: opacity 220ms ease;
}
.rd-said__row.is-on .rd-said__tick { opacity: 1; }
.rd-said__tick i {
  display: block;
  height: 100%;
  background: var(--rd-key);
  transform: scaleY(0);
  transform-origin: bottom;
}
.rd-said__tick i.is-running { animation: rd-said-tick 8000ms linear forwards; }

@keyframes rd-said-tick { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.rd-said__hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 15px;
  font-size: var(--rd-micro);
  color: var(--rd-muted);
  opacity: 0;
  transition: opacity 300ms ease;
}
.rd-said__hint.is-on { opacity: 1; }

.rd-said__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rd-key);
  animation: rd-said-beat 2400ms ease-in-out infinite;
}

@keyframes rd-said-beat { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ------------------------------------------------------------------ narrower */

@media (max-width: 1023px) {
  .rd-said__head { grid-template-columns: minmax(0, 1fr); }
  .rd-said__lede { max-width: 60ch; }
  .rd-said__body { grid-template-columns: 1fr; gap: 36px; }
  .rd-said__stage { order: 2; }
  /* one column, so the quotation starts at the top of its cell, under the list */
  .rd-said__one { align-self: start; }
  .rd-said__roll { order: 1; grid-template-columns: 1fr 1fr; gap: 6px; }
  .rd-said__hint { grid-column: 1 / -1; }
  .rd-said__logo { display: none; }
  .rd-said__by .rd-said__logo { display: block; }
}

/* On a phone the people are one row to swipe through, and the quotation under
   them is as tall as itself. braintoy-said.js leaves the band still at this
   width, since a quotation changing by itself would move the page with it. */
@media (max-width: 639px) {
  .rd-said { padding: 60px 0 66px; }
  .rd-said__body { gap: 22px; }
  .rd-said__roll {
    display: flex;
    gap: 8px;
    max-height: none;
    padding: 2px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .rd-said__roll::-webkit-scrollbar { display: none; }
  .rd-said__row {
    flex: 0 0 auto;
    width: auto;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    border-color: var(--rd-card-line);
    border-radius: 999px;
    background: var(--rd-card);
    scroll-snap-align: start;
  }
  .rd-said__row.is-on { border-color: var(--rd-key); box-shadow: none; }
  .rd-said__row .rd-said__names span,
  .rd-said__tick,
  .rd-said__hint { display: none; }
  .rd-said__one:not(.is-on) { display: none; }
  .rd-said__one blockquote { margin-bottom: 22px; }
  .rd-said__by { flex-wrap: wrap; }
  /* the speaker's line already names the organisation, and a phone has no
     room for the mark beside it */
  .rd-said__by .rd-said__logo { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-said__one { transition: none; }
  .rd-said__tick i, .rd-said__dot { animation: none; }
  .rd-said__tick i { transform: scaleY(1); }
}

/* ---- braintoy/components/people/voices_wall.css */
/* what people say: one client's before and after either side of its logo,
   then the other voices and the people taught */
.ab-voices .ab-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 124px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
}

.ab-voices .ab-half {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: clamp(28px, 3.6vw, 52px);
}

.ab-voices .ab-half--before {
  background: color-mix(in srgb, var(--rd-ink) 4%, var(--rd-card));
}

.ab-voices .ab-half--after {
  background: radial-gradient(120% 100% at 100% 0%,
              color-mix(in srgb, var(--rd-key) 15%, var(--rd-card)) 0%,
              color-mix(in srgb, var(--rd-key) 4%, var(--rd-card)) 100%);
}

.ab-voices .ab-half__when {
  margin: 0;
  color: var(--rd-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ab-voices .ab-half--after .ab-half__when { color: var(--rd-key); }

.ab-voices .ab-quote { margin: 0; }

.ab-voices .ab-quote p {
  margin: 0;
  color: var(--rd-ink);
  font-size: 16.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.ab-voices .ab-quote p::before { content: "\201C"; }
.ab-voices .ab-quote p::after { content: "\201D"; }

.ab-voices .ab-quote em { font-style: normal; font-weight: 700; color: var(--rd-key); }

.ab-voices .ab-half .ab-quote p {
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.016em;
}

.ab-voices .ab-half--before .ab-quote p { color: var(--rd-body); }

.ab-voices .ab-half--before .ab-quote em {
  color: var(--rd-ink);
  text-decoration: underline wavy color-mix(in srgb, var(--rd-muted) 70%, transparent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.ab-voices .ab-pair__seam {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg,
              color-mix(in srgb, var(--rd-ink) 4%, var(--rd-card)) 50%,
              color-mix(in srgb, var(--rd-key) 9%, var(--rd-card)) 50%);
}

.ab-voices .ab-pair__seam::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--rd-line);
}

/* the logo keeps its own white ground in both themes */
.ab-voices .ab-pair__logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--rd-tile);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--rd-key) 11%, transparent),
              0 0 0 22px color-mix(in srgb, var(--rd-key) 5%, transparent),
              0 14px 30px -12px rgba(27, 16, 48, 0.35);
}

.ab-voices .ab-pair__logo img { width: 66px; height: auto; }

.ab-voices .ab-pair__note {
  margin: 14px 4px 0;
  color: var(--rd-muted);
  font-size: 14.5px;
}

.ab-voices .ab-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.ab-voices .ab-who__photo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.ab-voices .ab-who > span { display: grid; }

.ab-voices .ab-who__name {
  color: var(--rd-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.ab-voices .ab-who__role { color: var(--rd-muted); font-size: 13px; line-height: 1.45; }

.ab-voices .ab-voices__more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 30px;
}

.ab-voices .ab-voice {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 26px 26px 24px;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
}

.ab-voices .ab-voice__mark {
  align-self: flex-start;
  width: auto;
  height: 46px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--rd-tile);
}

.ab-voices .ab-taught { display: flex; flex-direction: column; }

.ab-voices .ab-taught__two {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .ab-voices .ab-voices__more { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .ab-voices .ab-pair { grid-template-columns: minmax(0, 1fr); }

  .ab-voices .ab-pair__seam {
    height: 120px;
    background: linear-gradient(180deg,
                color-mix(in srgb, var(--rd-ink) 4%, var(--rd-card)) 50%,
                color-mix(in srgb, var(--rd-key) 9%, var(--rd-card)) 50%);
  }

  .ab-voices .ab-pair__seam::before {
    top: 50%;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 1px;
  }

  .ab-voices .ab-taught__two { grid-template-columns: minmax(0, 1fr); }
}

/* ---- braintoy/components/posts/more_news.css */
/* More of the news under a post (more_news.py): its heading, with the way
   to every post at its end on a wide screen, over the newest posts as cards
   (pieces.css). */
.rd-more__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 32px;
  margin: 0 0 30px;
}

.rd .rd-more__top .rd-sec__head { margin: 0; }

.rd .rd-more__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid var(--rd-line);
  border-radius: 999px;
  background: var(--rd-card);
  color: var(--rd-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.rd-more__all svg { width: 15px; height: 15px; transition: transform 200ms ease; }
.rd .rd-more__all:hover { border-color: var(--rd-key); color: var(--rd-key); }
.rd-more__all:hover svg { transform: translateX(3px); }

/* ---- braintoy/components/posts/news_cards.css */
/* Every post a news page lists (news_cards.py): the way to every post and to
   each category's page over them, each with how many posts it holds and the
   page shown marked, sliding sideways on a phone; then the cards
   (pieces.css), and what a page with no post in it says. */
.rd .rd-newsfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
}

.rd .rd-newsfilter a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 9px 12px 9px 16px;
  border: 1px solid var(--rd-line);
  border-radius: 999px;
  background: var(--rd-card);
  color: var(--rd-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.rd-newsfilter b {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--rd-soft);
  color: var(--rd-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  font-feature-settings: "tnum" 1;
}

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

.rd .rd-newsfilter a[aria-current="page"] {
  border-color: var(--rd-ink);
  background: var(--rd-ink);
  color: var(--rd-page);
}

.rd-newsfilter a[aria-current="page"] b {
  background: color-mix(in srgb, var(--rd-page) 18%, transparent);
  color: inherit;
}

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

.rd-newscards__none {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 46px 40px;
  border: 1px dashed var(--rd-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-soft);
}

.rd .rd-newscards__none p { margin: 0; color: var(--rd-ink); font-size: 19px; font-weight: 600; }

@media (max-width: 620px) {
  .rd .rd-newsfilter {
    flex-wrap: nowrap;
    margin: 0 -18px 26px;
    padding: 2px 18px 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .rd .rd-newsfilter::-webkit-scrollbar { display: none; }
  .rd-newscards__none { padding: 32px 22px; }
}

/* ---- braintoy/components/posts/news_opening.css */
/* The opening of a news page (news_opening.py), drawn as an inner page's
   opening is (openers/page_hero.css), with a little less room under it, as
   the cards follow close. */
.rd-newsopen .rd-pagehero__in { padding-bottom: 78px; }

@media (max-width: 640px) {
  .rd-newsopen .rd-pagehero__in { padding-bottom: 60px; }
}

/* ---- braintoy/components/posts/pieces.css */
/* A post's card (pieces.card), on the news pages and under a post: its
   picture, its category, its title, which is the link and takes the press
   for the whole card, the line it is summed up in and its date.

   The cards are laid out by the room the list has, whatever the screen: three
   across where it has a wide column's room, two where it has a tablet's and
   one under another on a phone. A row they leave short is filled by the cards
   in it, two sharing it or one taking it whole with its picture beside its
   words, so they always end on a whole row. The newest on a news page is
   larger, its picture beside its words, where there is room for both. */
.rd-postlist { container: postcards / inline-size; }

.rd-postcards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.rd-postcard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
  transition: transform 220ms cubic-bezier(.22, .8, .3, 1), box-shadow 220ms ease,
              border-color 220ms ease;
}

.rd-postcard:hover,
.rd-postcard:focus-within {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--rd-key) 42%, var(--rd-card-line));
  box-shadow: var(--rd-shadow-lift);
}

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

.rd-postcard__shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--rd-accent) 22%, transparent), transparent 58%),
    linear-gradient(135deg, var(--rd-plum-deep), var(--rd-plum));
}

.rd-postcard__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.22, .8, .3, 1);
}

.rd-postcard:hover .rd-postcard__shot img { transform: scale(1.045); }

.rd-postcard__in {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.rd .rd-postcard .rd-postcard__kind {
  margin: 0;
  color: var(--rd-key);
  font-size: var(--rd-micro);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rd .rd-postcard .rd-postcard__title {
  margin: 0;
  color: var(--rd-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.rd .rd-postcard__title a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  outline: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 320ms cubic-bezier(.22, .8, .3, 1);
}

.rd-postcard:hover .rd-postcard__title a { background-size: 100% 1.5px; }

/* the title's link takes the press for the whole card */
.rd-postcard__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.rd .rd-postcard .rd-postcard__line {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--rd-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rd .rd-postcard .rd-postcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: auto 0 0;
  padding-top: 6px;
  color: var(--rd-muted);
  font-size: 13px;
  font-weight: 600;
}

.rd-postcard--lead { margin: 0 0 16px; }

/* two across, where the list has a tablet's room */
@container postcards (min-width: 560px) {
  .rd-postcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .rd-postcard--lead { margin-bottom: 22px; }
  .rd-postcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* three across, where it has a wide column's room */
@container postcards (min-width: 1000px) {
  .rd-postcards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .rd-postcard,
  .rd-postcard:last-child:nth-child(odd) { grid-column: span 2; }
  .rd-postcard:nth-last-child(2):nth-child(3n+1),
  .rd-postcard:last-child:nth-child(3n+2) { grid-column: span 3; }
  .rd-postcard:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
}

/* a card across the list, its picture beside its words: the newest on a
   news page wherever there is room for both, and the one taking a row of its
   own */
@container postcards (min-width: 760px) {
  .rd-postcard--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .rd-postcard--lead .rd-postcard__shot { aspect-ratio: auto; min-height: 380px; }
  .rd-postcard--lead .rd-postcard__shot img { position: absolute; inset: 0; }
  .rd-postcard--lead .rd-postcard__in { justify-content: center; gap: 14px; padding: 40px 44px; }
  .rd .rd-postcard--lead .rd-postcard__title {
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.026em;
  }
  .rd .rd-postcard--lead .rd-postcard__line { font-size: 17px; -webkit-line-clamp: 4; }
  .rd .rd-postcard--lead .rd-postcard__meta { margin-top: 8px; }
}

@container postcards (min-width: 760px) and (max-width: 999px) {
  .rd-postcard:last-child:nth-child(odd):not(.rd-postcard--lead) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .rd-postcard:last-child:nth-child(odd) .rd-postcard__shot { aspect-ratio: auto; min-height: 240px; }
  .rd-postcard:last-child:nth-child(odd) .rd-postcard__shot img { position: absolute; inset: 0; }
  .rd-postcard:last-child:nth-child(odd) .rd-postcard__in { justify-content: center; padding: 28px 30px; }
}

@container postcards (min-width: 1000px) {
  .rd-postcard:last-child:nth-child(3n+1):not(.rd-postcard--lead) {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
  .rd-postcard:last-child:nth-child(3n+1) .rd-postcard__shot { aspect-ratio: auto; min-height: 300px; }
  .rd-postcard:last-child:nth-child(3n+1) .rd-postcard__shot img { position: absolute; inset: 0; }
  .rd-postcard:last-child:nth-child(3n+1) .rd-postcard__in {
    justify-content: center;
    gap: 12px;
    padding: 36px 44px;
  }
  .rd .rd-postcard:last-child:nth-child(3n+1) .rd-postcard__title {
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.16;
    letter-spacing: -0.022em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd-postcard,
  .rd-postcard__shot img,
  .rd .rd-postcard__title a { transition: none; }
  .rd-postcard:hover,
  .rd-postcard:focus-within { transform: none; }
  .rd-postcard:hover .rd-postcard__shot img { transform: none; }
}

/* ---- braintoy/components/posts/post_around.css */
/* The posts either side of a post (post_around.py): the one before it on
   the left and the one after it on the right, each a card with its picture,
   what it is, its title and its date, its arrow moving toward where it
   leads; one under the other on a phone. */
.rd-post-around__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.rd .rd-post-around__one {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 20px 14px 14px;
  border: 1px solid var(--rd-card-line);
  border-radius: var(--rd-radius-lg);
  background: var(--rd-card);
  box-shadow: var(--rd-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(.22, .8, .3, 1), box-shadow 220ms ease,
              border-color 220ms ease;
}

.rd .rd-post-around__one--newer {
  grid-template-columns: auto minmax(0, 1fr) 112px;
  padding: 14px 14px 14px 20px;
  text-align: right;
}

.rd-post-around__one--newer .rd-post-around__shot { order: 3; }
.rd-post-around__one--newer .rd-post-around__say { order: 2; }
.rd-post-around__one--newer .rd-post-around__go { order: 1; }
.rd-post-around__one:only-child { grid-column: 1 / -1; }

.rd .rd-post-around__one:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--rd-key) 42%, var(--rd-card-line));
  box-shadow: var(--rd-shadow-lift);
}

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

.rd-post-around__shot {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rd-plum-deep), var(--rd-plum));
}

.rd-post-around__shot img { width: 100%; height: 100%; object-fit: cover; }

.rd-post-around__say { display: grid; gap: 5px; min-width: 0; }

.rd-post-around__k {
  color: var(--rd-key);
  font-size: var(--rd-micro);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rd-post-around__t {
  display: -webkit-box;
  overflow: hidden;
  color: var(--rd-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.012em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rd-post-around__say time { color: var(--rd-muted); font-size: 13px; font-weight: 600; }

.rd-post-around__go {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rd-line);
  border-radius: 50%;
  color: var(--rd-key);
  transition: transform 220ms cubic-bezier(.22, .8, .3, 1), background 220ms ease,
              color 220ms ease, border-color 220ms ease;
}

.rd-post-around__go svg { width: 15px; height: 15px; }
.rd-post-around__one--older .rd-post-around__go svg { transform: rotate(180deg); }

.rd-post-around__one:hover .rd-post-around__go {
  border-color: var(--rd-key);
  background: var(--rd-key);
  color: var(--rd-on-key);
}

.rd-post-around__one--older:hover .rd-post-around__go { transform: translateX(-3px); }
.rd-post-around__one--newer:hover .rd-post-around__go { transform: translateX(3px); }

.rd-free__b--post_around { container-type: inline-size; }

@container (max-width: 760px) {
  .rd-post-around__nav { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .rd-post-around__nav { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .rd .rd-post-around__one,
  .rd .rd-post-around__one--newer { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .rd .rd-post-around__one--newer { padding: 14px 20px 14px 14px; text-align: left; }
  .rd-post-around__one--newer .rd-post-around__shot { order: 0; }
  .rd-post-around__go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rd .rd-post-around__one,
  .rd-post-around__go { transition: none; }
  .rd .rd-post-around__one:hover,
  .rd-post-around__one:hover .rd-post-around__go { transform: none; }
}

/* on the editor's canvas, the side a post has no post on */
.rd .rd-post-around__one--none {
  grid-template-columns: minmax(0, 1fr);
  border-style: dashed;
  box-shadow: none;
  color: var(--rd-muted);
}

.rd-post-around__one--none .rd-post-around__t { color: var(--rd-muted); font-weight: 600; }

/* ---- braintoy/components/posts/post_opening.css */
/* The opening of a news post (post_opening.py), on the deep plum an inner
   page opens on, over the ribbons or the scene of its section's look: the way
   back to the news, the categories it is filed under, its title, who wrote it,
   when and how long it takes to read, and its picture, framed beside the words
   or behind them.

   Behind them, the picture lies under a wash that is never lighter than 0.66
   of the plum where words are, which keeps white words at 4.5 to 1 or more
   over a white picture, the AA contrast for words of any size, in both
   themes: the wash is the same in both. */
.rd-post-open {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: var(--rd-plum-deep);
  color: #fff;
}

.rd-post-open::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 157, 77, 0.16), transparent 46%),
    linear-gradient(100deg, rgba(18, 8, 34, 0.9) 0%, rgba(20, 9, 37, 0.66) 54%,
                    rgba(24, 11, 42, 0.34) 100%);
}

.rd-post-open__in {
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: 56px 28px 84px;
}

.rd-post-open__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.rd .rd-post-open .rd-post-open__back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.rd-post-open__back svg {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
  transition: transform 220ms cubic-bezier(.22, .8, .3, 1);
}

.rd .rd-post-open .rd-post-open__back:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rd-post-open__back:hover svg { transform: rotate(180deg) translateX(3px); }

.rd .rd-post-open .rd-post-open__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 20px;
  padding: 0;
  list-style: none;
}

.rd .rd-post-open .rd-post-open__cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: var(--rd-micro);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

/* the category it is filed under first carries the brand's mark */
.rd .rd-post-open .rd-post-open__cats li:first-child a {
  border-color: color-mix(in srgb, var(--rd-accent) 55%, transparent);
  color: var(--rd-accent);
}

.rd-post-open__cats li:first-child a::before {
  content: "";
  width: 0.95em;
  height: 0.95em;
  background: currentColor;
  -webkit-mask: var(--rd-mark) center / contain no-repeat;
  mask: var(--rd-mark) center / contain no-repeat;
}

.rd .rd-post-open .rd-post-open__cats a:hover { border-color: currentColor; color: #fff; }

.rd .rd-post-open .rd-post__title {
  max-width: 17ch;
  margin: 0 0 28px;
  color: #fff;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.036em;
  text-wrap: balance;
}

.rd .rd-post-open .rd-post-open__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.rd-post-open__by { display: inline-flex; align-items: center; gap: 10px; }

.rd .rd-post-open__by a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 4px;
}

.rd .rd-post-open__by a:hover { text-decoration-color: currentColor; }

.rd-post-open__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c93a28, #6b3fa8);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.rd-post-open__meta time::before,
.rd-post-open__time::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 18px 0 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  vertical-align: middle;
}

/* the picture, framed beside the words, with the accent's light behind it */
.rd .rd-post-open .rd-post-open__shot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--rd-radius-lg);
  box-shadow: 0 34px 80px rgba(6, 2, 14, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.rd-post-open__shot::before {
  content: "";
  position: absolute;
  inset: -14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 157, 77, 0.28), transparent);
  filter: blur(24px);
  pointer-events: none;
}

.rd-post-open__shot img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

/* the picture behind the words, under the wash */
.rd-post-open--behind .rd-post-open__in {
  display: flex;
  align-items: flex-end;
  min-height: clamp(480px, 68vh, 700px);
  padding-top: 72px;
}

.rd-post-open--behind .rd-post-open__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.rd-post-open--behind .rd-post-open__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rd-post-open--behind::before {
  background:
    linear-gradient(180deg, rgba(16, 8, 30, 0.66) 0%, rgba(16, 8, 30, 0.74) 46%,
                    rgba(16, 8, 30, 0.92) 100%);
}

.rd-post-open--behind .rd-post-open__say { max-width: 780px; }

/* over a picture every word is white, the category it is filed under first
   too, which the accent would not be over the lightest of pictures */
.rd .rd-post-open--behind .rd-post-open__cats li:first-child a {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.rd .rd-post-open--behind .rd-post__title { max-width: 20ch; }

@media (max-width: 900px) {
  .rd-post-open__grid { grid-template-columns: 1fr; }
  .rd .rd-post-open .rd-post-open__shot { aspect-ratio: 16 / 10; }
}

@media (max-width: 620px) {
  .rd-post-open__in { padding: 36px 18px 52px; }
  .rd .rd-post-open .rd-post-open__cats { margin: 24px 0 16px; }
  .rd .rd-post-open .rd-post__title { font-size: clamp(30px, 8.4vw, 38px); margin-bottom: 22px; }
  .rd .rd-post-open .rd-post-open__meta { gap: 10px 14px; font-size: 14px; }
  .rd-post-open__meta time::before,
  .rd-post-open__time::before { margin-right: 14px; }
  .rd-post-open--behind .rd-post-open__in { min-height: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd-post-open__back svg { transition: none; }
}

/* ---- braintoy/components/posts/post_words.css */
/* A news post's words (post_words.py), in the site's own type in a column
   that reads easily, its first paragraph as its lead; its headings, lists
   marked with the brand's red, quotations under a quotation mark with the
   person quoted, pictures and films a little wider than the words where the
   screen has the room, their captions, tables, and a line across drawn as
   the brand's mark. */
.rd-post__words {
  max-width: 700px;
  margin: 0 auto;
  color: var(--rd-body);
  font-size: 18px;
  line-height: 1.75;
  letter-spacing: -0.003em;
  overflow-wrap: break-word;
}

.rd .rd-post__words > * { margin: 0; }
.rd .rd-post__words > * + * { margin-top: 1.25em; }

.rd .rd-post__words--lead > p:first-child {
  color: var(--rd-ink);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.012em;
}

.rd .rd-post__words a {
  color: var(--rd-key);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--rd-key) 45%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms ease;
}

.rd .rd-post__words a:hover { text-decoration-color: currentColor; }
.rd-post__words strong,
.rd-post__words b { color: var(--rd-ink); font-weight: 700; }

.rd .rd-post__words :is(h2, h3, h4) {
  color: var(--rd-ink);
  font-weight: 750;
  text-wrap: balance;
}

.rd .rd-post__words h2 {
  margin-top: 2em;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.rd .rd-post__words h3 {
  margin-top: 1.8em;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.016em;
}

.rd .rd-post__words h4 {
  margin-top: 1.6em;
  color: var(--rd-muted);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rd .rd-post__words :is(h2, h3, h4) + * { margin-top: 0.7em; }

/* lists, each point marked by a small diamond of the brand's red, or by its
   number in it */
.rd .rd-post__words :is(ul, ol) { padding: 0; list-style: none; }
.rd .rd-post__words :is(ul, ol) > li { position: relative; padding-left: 1.7em; }
.rd .rd-post__words :is(ul, ol) > li + li { margin-top: 0.55em; }

.rd-post__words ul > li::before {
  content: "";
  position: absolute;
  left: 0.3em;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--rd-key);
  transform: rotate(45deg);
}

.rd-post__words ol { counter-reset: rd-point; }
.rd-post__words ol > li { counter-increment: rd-point; }

.rd-post__words ol > li::before {
  content: counter(rd-point);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rd-key);
  font-size: 0.86em;
  font-weight: 800;
  font-feature-settings: "tnum" 1;
}

/* a quotation, under a quotation mark, and the person quoted */
.rd .rd-post__words blockquote {
  position: relative;
  margin-top: 2em;
  margin-bottom: 2em;
  padding: 26px 0 0 28px;
  border-left: 3px solid var(--rd-key);
}

.rd .rd-post__words blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.18em;
  left: 22px;
  color: var(--rd-accent);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
}

.rd .rd-post__words blockquote p {
  color: var(--rd-ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.012em;
}

.rd .rd-post__words blockquote p + p { margin-top: 0.8em; }

.rd .rd-post__words blockquote cite {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--rd-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rd-post__words blockquote cite::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* pictures and films, a little wider than the words where there is room */
.rd .rd-post__words :is(figure, iframe) { margin-top: 2em; margin-bottom: 2em; }

.rd-post__words img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rd-radius-lg);
  background: var(--rd-soft);
  box-shadow: var(--rd-shadow);
}

.rd .rd-post__words figcaption {
  margin-top: 12px;
  color: var(--rd-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rd-post__words iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: var(--rd-radius-lg);
  background: var(--rd-soft);
  box-shadow: var(--rd-shadow);
}

.rd-post__words iframe:is([src*="youtube"], [src*="vimeo"]) {
  height: auto;
  aspect-ratio: 16 / 9;
}

/* a table, its head on the soft ground, sliding sideways on a narrow screen */
.rd .rd-post__words table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.5;
}

.rd-post__words caption {
  padding: 12px 16px 0;
  color: var(--rd-muted);
  font-size: 13px;
  text-align: left;
}

.rd-post__words :is(th, td) {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rd-line);
  text-align: left;
  vertical-align: top;
}

.rd-post__words th { background: var(--rd-soft); color: var(--rd-ink); font-weight: 700; }
.rd-post__words tr:last-child > td { border-bottom: 0; }

/* a line across, drawn as the brand's mark */
.rd .rd-post__words hr {
  height: 14px;
  margin: 2.6em auto;
  border: 0;
  background: var(--rd-muted);
  -webkit-mask: var(--rd-mark) center / contain no-repeat;
  mask: var(--rd-mark) center / contain no-repeat;
  opacity: 0.7;
}

.rd-post__words code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--rd-soft);
  color: var(--rd-ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

@media (min-width: 1100px) {
  .rd .rd-post__words > :is(figure, iframe) { margin-left: -70px; margin-right: -70px; }
  .rd-post__words > iframe { width: calc(100% + 140px); max-width: none; }
}

/* placed narrower than its section, the words and their pictures keep to
   the room the cell has */
.rd-free__b--post_words { container-type: inline-size; }

@container (max-width: 860px) {
  .rd .rd-post__words > :is(figure, iframe) { margin-left: 0; margin-right: 0; }
  .rd-post__words > iframe { width: 100%; max-width: 100%; }
}

@media (max-width: 620px) {
  .rd-post__words { font-size: 17px; line-height: 1.7; }
  .rd .rd-post__words--lead > p:first-child { font-size: 19px; }
  .rd .rd-post__words blockquote { padding-left: 20px; }
  .rd .rd-post__words blockquote p { font-size: 19px; }
}

/* ---- braintoy/components/questions/faq.css */
/* the questions, beside the heading that stays in view */
.ab-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 100px);
  align-items: start;
}

.ab-faq .ab-faq__head { position: sticky; top: 112px; }

.ab-faq .ab-faq__close {
  max-width: 40ch;
  margin: 0 0 24px;
  color: var(--rd-body);
  font-size: 17px;
  line-height: 1.6;
}

.ab-faq .ab-faq__list { border-top: 1px solid var(--rd-line); }

.ab-faq .ab-q { border-bottom: 1px solid var(--rd-line); }

.ab-faq .ab-q summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 16px;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}

.ab-faq .ab-q summary::-webkit-details-marker { display: none; }

.ab-faq .ab-q__n {
  color: var(--rd-key);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ab-faq .ab-q__t {
  color: var(--rd-ink);
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.016em;
  transition: color 180ms ease;
}

.ab-faq .ab-q summary:hover .ab-q__t { color: var(--rd-key); }

/* the plus that turns to a cross when its answer is open */
.ab-faq .ab-q__icon {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--rd-line);
  border-radius: 50%;
  transition: background-color 220ms ease, border-color 220ms ease,
              transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ab-faq .ab-q__icon::before,
.ab-faq .ab-q__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  margin: -1px 0 0 -7px;
  border-radius: 2px;
  background: var(--rd-ink);
}

.ab-faq .ab-q__icon::after { transform: rotate(90deg); }

.ab-faq .ab-q[open] .ab-q__icon {
  border-color: var(--rd-key);
  background: var(--rd-key);
  transform: rotate(45deg);
}

.ab-faq .ab-q[open] .ab-q__icon::before,
.ab-faq .ab-q[open] .ab-q__icon::after { background: var(--rd-on-key); }

.ab-faq .ab-q__a {
  max-width: 62ch;
  margin: -6px 56px 26px;
  color: var(--rd-body);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .ab-faq { grid-template-columns: minmax(0, 1fr); }
  .ab-faq .ab-faq__head { position: static; }
}

@media (max-width: 640px) {
  .ab-faq .ab-q summary {
    grid-template-columns: 26px minmax(0, 1fr) 36px;
    gap: 10px;
  }

  .ab-faq .ab-q__icon { width: 36px; height: 36px; }
  .ab-faq .ab-q__a { margin: -6px 0 22px 36px; }
}

/* ---- braintoy/components/questions/faq_list.css */
/* Questions in one plain list, each answer opening in place (faq_list.py),
   in a plain band from ../parts.css. */
.ml .ml-faq { margin-top:30px; border-top:1px solid var(--line); }
.ml details { border-bottom:1px solid var(--line); }
.ml summary { cursor:pointer; padding:17px 40px 17px 0; font-weight:700;
         font-size:16px; position:relative; list-style:none; }
.ml summary::-webkit-details-marker { display:none; }
.ml summary::after { content:""; position:absolute; right:8px; top:50%;
         width:9px; height:9px; margin-top:-6px; border-right:2px solid var(--plum);
         border-bottom:2px solid var(--plum); transform:rotate(45deg);
         transition:transform .18s ease; }
.ml details[open] summary::after { transform:rotate(-135deg); margin-top:-2px; }
.ml summary:hover, .ml summary:focus-visible { color:var(--red); }
.ml details p { padding:0 40px 20px 0; color:var(--muted); font-size:15.5px; }

@media (prefers-reduced-motion:reduce) {
  .ml summary::after { transition:none; }
}

/* ---- braintoy/components/text/about_counts.css */
/* An introduction beside its counts (about_counts.py): an eyebrow, a heading,
   a lead and a paragraph, and beside them counts that run up once they are
   reached. */

/* ------------------------------------------------- what Braintoy actually is
 *
 * BETWEEN THE OPENING AND THE TWO PANELS, which is where the question gets
 * asked. The hero says what Braintoy makes and the panels split it in two; this
 * is the sentence in between that says why those two halves are one company.
 * Without it a reader goes straight from a headline to a fork in the road.
 */
.rd-about {
  background: var(--rd-page);
  border-bottom: 1px solid var(--rd-line-soft);
}

.rd-about__in {
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: 72px 28px 66px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.rd-about__say .rd-h2 { margin-bottom: 18px; }
.rd-about__say .rd-lead { margin-bottom: 14px; }

.rd-about__body {
  font-size: var(--rd-base);
  line-height: 1.65;
  color: var(--rd-body);
  max-width: 58ch;
}

.rd-about__body b { font-weight: 700; color: var(--rd-ink); }

/* the counts, as a description list because that is what they are */
.rd-about__counts {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 22px;
}

/* each count a ruled row, its words starting level with the others' */
.rd-about__counts > div {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--rd-line);
}

.rd-about__counts > div:first-child { border-top: 1px solid var(--rd-line); }

.rd-about__counts dt {
  margin: 0;
  min-width: 1.15em;
  font-size: 76px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--rd-key);
  /* lining figures of one width, so a count running up keeps its place */
  font-variant-numeric: lining-nums tabular-nums;
}

.rd-about__counts dd {
  margin: 0;
  max-width: 17em;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--rd-ink);
  letter-spacing: -0.004em;
}

@media (max-width: 1080px) {
  .rd-about__in { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 620px) {
  .rd-about__in { padding: 48px 18px 44px; }
  .rd-about__counts { column-gap: 16px; }
  .rd-about__counts > div { padding: 16px 0; }
  .rd-about__counts dt { font-size: 54px; }
  .rd-about__counts dd { font-size: 16px; }
}

/* ---- braintoy/components/text/list_beside.css */
/* A heading, a sentence and a list beside a picture (list_beside.py), in a
   plain band from ../parts.css. */
.ml .ml-gen { display:grid; grid-template-columns:1.15fr .85fr; gap:44px; align-items:center; }
.ml .ml-gen ul { margin-top:20px; display:grid; gap:9px; }
.ml .ml-gen li { padding-left:20px; position:relative; font-size:15.5px; }
.ml .ml-gen li::before { content:""; position:absolute; left:0; top:.42em; width:10px;
         height:10px; background:var(--red);
         -webkit-mask:var(--rd-mark) center/contain no-repeat;
         mask:var(--rd-mark) center/contain no-repeat; }
.ml .ml-gen__frame { display:block; border-radius:10px; }
.ml .ml-gen img { width:100%; height:auto; border-radius:10px; }

@media (max-width:900px) {
  .ml .ml-gen { grid-template-columns:1fr; }
}

/* ---- braintoy/components/text/mission.css */
/* the mission beside the picture, with what is believed on a card of its own
   riding up over the picture */
.ab-mission {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.ab-mission .ab-mission__text {
  max-width: 58ch;
  margin: 0;
  color: var(--rd-body);
  font-size: 18px;
  line-height: 1.68;
}

.ab-mission .ab-do {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--rd-line);
}

.ab-mission .ab-do .rd-works { gap: 14px; }

.ab-mission .ab-do .rd-work {
  padding: 22px 22px 20px;
  border-radius: var(--rd-radius);
}

.ab-mission .ab-do .rd-work h3 { margin-bottom: 6px; font-size: 21px; }

.ab-mission .ab-do .rd-work p {
  margin-bottom: 14px;
  font-size: 14.5px;
  line-height: 1.55;
}

.ab-mission .ab-do .rd-work__go { font-size: 14px; }

.ab-mission .ab-do .rd-work__go::after {
  content: " \2192";
  content: " \2192" / "";
}

.ab-mission .ab-mission__side { padding-top: 6px; }

/* the picture and the card riding over it, which lean toward the pointer
   together, the sheen lying over the picture alone and the card having its
   own */
.ab-mission .ab-mission__lean[data-tilt]::after {
  inset: 0 0 auto;
  aspect-ratio: 5 / 4;
  border-radius: var(--rd-radius-lg);
}

.ab-mission .ab-mission__photo {
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: var(--rd-radius-lg);
  background: var(--rd-soft);
  box-shadow: var(--rd-shadow-lift);
}

.ab-mission .ab-mission__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 62%;
}

.ab-mission .ab-belief {
  position: relative;
  z-index: 1;
  margin: -72px 20px 0;
  padding: 18px 20px 20px;
  border: 1px solid color-mix(in srgb, var(--rd-key) 24%, var(--rd-card-line));
  border-radius: 16px;
  background: var(--rd-card);
  box-shadow: 0 18px 40px -18px rgba(27, 16, 48, 0.35);
}

.ab-mission .ab-belief__label {
  margin: 0 0 6px;
  color: var(--rd-key);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ab-mission .ab-belief__lead {
  margin: 0;
  color: var(--rd-ink);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.ab-mission .ab-belief__lead em { font-style: normal; color: var(--rd-key); }

.ab-mission .ab-belief__more {
  margin: 20px 20px 0;
  color: var(--rd-body);
  font-size: 15px;
  line-height: 1.68;
}

@media (max-width: 900px) {
  .ab-mission { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .ab-mission .ab-mission__text { font-size: 17px; }
  .ab-mission .ab-belief { margin: -44px 12px 0; }
  .ab-mission .ab-belief__more { margin: 18px 12px 0; }
}

/* ---- braintoy/components/text/name_list.css */
/* names set large in a row, every other one quieter, with a dot between each */
.sc-went__names { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 6px 0; margin: 0; padding: 0; list-style: none; }
.sc-went__names li { color: var(--rd-ink); font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 800; line-height: 1.25; letter-spacing: -0.03em; }
.sc-went__names li:nth-child(even) { color: var(--rd-muted); }
.sc-went__names li:not(:last-child)::after { content: ""; display: inline-block;
  width: 9px; height: 9px; margin: 0 18px 0.32em; border-radius: 50%;
  background: var(--rd-key); vertical-align: middle; }
/* a name's logo in its place, on the tile logos sit on in both themes, and its
   name in a label above it while it is pointed at or focused */
.sc-went__logo { display: inline-block; width: auto; height: 1.15em;
  padding: 0.16em 0.26em; border: 1px solid var(--rd-card-line); border-radius: 10px;
  background: var(--rd-tile); vertical-align: middle; }
.sc-went__logoed { position: relative; border-radius: 10px; }
.sc-went__logoed:focus-visible { outline: 2px solid var(--rd-key); outline-offset: 3px; }
.sc-went__name { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 2;
  padding: 5px 10px; border-radius: 8px; background: var(--rd-ink); color: var(--rd-page);
  font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; white-space: nowrap;
  opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity 0.15s ease; }
.sc-went__logoed:hover .sc-went__name,
.sc-went__logoed:focus .sc-went__name { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sc-went__name { transition: none; }
}
.sc-went__more { margin: 20px 0 0; color: var(--rd-body); }

/* ---- braintoy/components/text/prose.css */
/* Long text under a title (prose.py), such as the legal pages: the exported
   theme's paper and type around it (parts.EXPORTED), the words set in the
   redesign's type in the header's column: Inter, upright, the site's heading
   sizes and the content width of everything else. */
.rd-prose { padding-top: 40px; }

.rd-prose .rd-prose__in {
  max-width: var(--rd-wrap);
  margin: 0 auto;
  padding: 0 28px 80px;
  color: var(--rd-body);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv05" 1, "cv08" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

.rd-prose .rd-prose__in :is(h1, h2, p, li, strong, a) {
  font-family: inherit;
  font-style: normal;
}

.rd-prose .rd-prose__in .rd-prose__title {
  max-width: 18ch;
  margin: 64px 0 30px;
  padding: 0;
  color: var(--rd-ink);
  font-size: var(--rd-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.034em;
  text-align: left;
}

.rd-prose .rd-prose__in h2 {
  max-width: 30ch;
  margin: 52px 0 14px;
  padding: 0;
  color: var(--rd-ink);
  font-size: var(--rd-h2);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.024em;
}

.rd-prose .rd-prose__in :is(p, li) {
  max-width: 72ch;
  margin: 0 0 16px;
  padding: 0;
  color: var(--rd-body);
  font-size: var(--rd-base);
  line-height: 1.7;
}

.rd-prose .rd-prose__in ul {
  margin: 0 0 16px;
  padding: 0 0 0 22px;
}

.rd-prose .rd-prose__in li { margin-bottom: 8px; list-style: disc; }
.rd-prose .rd-prose__in li::marker { color: var(--rd-key); }
.rd-prose .rd-prose__in strong { color: var(--rd-ink); font-weight: 700; }

.rd-prose .rd-prose__in a {
  color: var(--rd-key);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  .rd-prose .rd-prose__in { padding: 0 18px 56px; }
  .rd-prose .rd-prose__in .rd-prose__title { margin-top: 40px; }
  .rd-prose .rd-prose__in h2 { margin-top: 40px; }
}

/* ---- braintoy/components/text/statement.css */
/* one line of type, on cream */
.rd-sec:has(.ab-vision) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--rd-cream);
}

/* rings spreading out behind the line, in the brand red */
.rd-sec:has(.ab-vision)::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -16vw;
  width: min(80vw, 1000px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: repeating-radial-gradient(circle, transparent 0 38px,
              color-mix(in srgb, var(--rd-key) 18%, transparent) 38px 39.5px);
  -webkit-mask-image: radial-gradient(circle, #000 16%, transparent 68%);
  mask-image: radial-gradient(circle, #000 16%, transparent 68%);
  pointer-events: none;
}

/* over a film or a scene, which takes the cream's place, the line stands
   without the rings */
.rd-sec:has(.ab-vision):has(> .rd-pagehero__wall)::before { content: none; }

.ab-vision h2.ab-vision__line {
  max-width: 12ch;
  margin: 0;
  color: var(--rd-ink);
  font-size: clamp(52px, 10vw, 156px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.ab-vision .ab-vision__line em {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--rd-key);
}

/* the stroke under the word, the way a hand underlines one */
.ab-vision .ab-vision__line em::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -0.1em;
  left: 2%;
  height: 0.16em;
  background: var(--rd-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 12'%3E%3Cpath d='M1 8c7-6 9-6 15 0s9 6 15 0 9-6 16 0' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") left center / auto 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 12'%3E%3Cpath d='M1 8c7-6 9-6 15 0s9 6 15 0 9-6 16 0' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") left center / auto 100% repeat-x;
}

/* ---- braintoy/components/text/words_beside.css */
/* the words beside a picture (words_beside.py), the picture under them on a
   narrow screen and to their right where there is room */
.rd-beside {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (min-width: 900px) {
  .rd-beside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rd-beside.rd-beside--alone { grid-template-columns: minmax(0, 1fr); }
}

.rd-beside .rd-beside__words {
  display: grid;
  gap: 14px;
  justify-items: start;
  align-content: start;
}

.rd-beside .rd-eyebrow { margin: 0; }

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

.rd-beside .rd-beside__lede {
  max-width: 62ch;
  margin: 0;
  color: var(--rd-body);
  font-size: 17px;
  line-height: 1.65;
}

.rd-beside .rd-btn { margin-top: 6px; }

.rd-beside .rd-beside__figure { margin: 0; }

.rd-beside .rd-beside__frame {
  display: block;
  border-radius: var(--rd-radius-lg);
}

.rd-beside .rd-beside__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--rd-radius-lg);
  box-shadow: var(--rd-shadow-lift);
}

.rd-beside figcaption {
  margin: 8px 0 0;
  color: var(--rd-muted);
  font-size: 13px;
  line-height: 1.5;
}
