/* Home page design options on staging (Matt, 6 Nov 2026). Same words and fonts as the live
   home page; new layout, colour and patterns. The patterns are alpha masks (made with GPT
   Image, cut by scripts/redesign.py) coloured with background-color, so one file gives every
   colour. Option classes: .rd-opt-a, .rd-opt-b, .rd-opt-c on <body>. */
:root { --rd-g900: #052E09; --rd-g700: #24572D; --rd-g500: #4B6B4F; --rd-text: #36453A; --rd-mint: #DAF1E0;
  --rd-pale: #E5EFE4; --rd-tile: #D3E6D4; --rd-dot: #2E6A3B; --rd-yellow: #E7F57C; --rd-cream: #F6F5EF; --rd-line: #93D3A0;
  --rd-gutter: clamp(20px, 5vw, 64px); }

/* Pattern kit */
[aria-hidden="true"][data-added] { pointer-events: none; }
.rd-pat { position: absolute; inset: 0; display: block; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: cover; mask-size: cover;
  -webkit-mask-position: center; mask-position: center; }
.rd-pat-contours { -webkit-mask-image: url(contours-f32866c822.webp); mask-image: url(contours-f32866c822.webp); }
.rd-pat-halftone { -webkit-mask-image: url(halftone-eacf49dd96.webp); mask-image: url(halftone-eacf49dd96.webp); }
.rd-pat-field { -webkit-mask-image: url(field-b1a08d188b.webp); mask-image: url(field-b1a08d188b.webp); -webkit-mask-position: right center; mask-position: right center; }
/* The whole dot drawing is scaled to the band's height (Matt, 6 Nov 2026: it was cropped, so the dots
   started abruptly), repeated sideways so the dots stay round at any width. */
.rd-pat-band { -webkit-mask-image: url(dots-down-0babef9652.webp); mask-image: url(dots-down-0babef9652.webp); -webkit-mask-position: center bottom; mask-position: center bottom;
  -webkit-mask-size: auto 100%; mask-size: auto 100%; -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; }
.rd-ring { display: block; aspect-ratio: 1; border-radius: 50%; border: var(--rw, 10px) solid var(--rd-g900); box-sizing: border-box; }
.rd-block { display: block; background: var(--rd-yellow); }
/* Woven stripe (Matt, 6 Nov 2026, from his inspiration board): five thin bars that switch between
   three and two each band, like a stretched checkerboard. Flat (.rd-dashes): five bands, three-two-three-two-three.
   Upright (.rd-ladder): the same weave repeating down the edge of a section. Both take currentColor. */
.rd-dashes { display: block; aspect-ratio: 6 / 1; color: var(--rd-g900); background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 5' preserveAspectRatio='none'%3E%3Cpath d='M0 0h6v1H0zM0 2h6v1H0zM0 4h6v1H0zM6 1h6v1H6zM6 3h6v1H6z'/%3E%3C/svg%3E") 0 0 / 40% 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 5' preserveAspectRatio='none'%3E%3Cpath d='M0 0h6v1H0zM0 2h6v1H0zM0 4h6v1H0zM6 1h6v1H6zM6 3h6v1H6z'/%3E%3C/svg%3E") 0 0 / 40% 100% repeat-x; }
.rd-ladder { display: block; width: var(--lw, 40px); color: var(--rd-yellow); background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1v6H0zM2 0h1v6H2zM4 0h1v6H4zM1 6h1v6H1zM3 6h1v6H3z'/%3E%3C/svg%3E") 0 0 / 100% calc(var(--lw, 40px) * 2.4) repeat-y;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0h1v6H0zM2 0h1v6H2zM4 0h1v6H4zM1 6h1v6H1zM3 6h1v6H3z'/%3E%3C/svg%3E") 0 0 / 100% calc(var(--lw, 40px) * 2.4) repeat-y; }
.rd-squiggle { display: block; overflow: visible; }
.rd-squiggle path { fill: none; stroke: var(--rd-line); stroke-width: var(--sw, 12); stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) and (scripting: enabled) {
  .rd-squiggle path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.55,.1,.25,1) .25s; }
  .rd-squiggle.rd-in path { stroke-dashoffset: 0; }
}

/* Nothing a pattern pokes out of may make the page scroll sideways. */
body[class*="rd-opt-"] main > section { overflow-x: clip; }

/* Reusable type and surfaces (shown on the style guide page). */
.rd-display { margin: 0; font-size: clamp(38px, 4.3vw, 64px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; color: var(--rd-g900); }
.rd-heading { margin: 0; font-size: clamp(32px, 4vw, 54px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; color: var(--rd-g900); text-wrap: balance; }
.rd-stat { margin: 0; font-size: clamp(88px, 13vw, 180px); line-height: .85; letter-spacing: -.05em; font-weight: 600; color: var(--rd-g900); }
.rd-body { margin: 0; font-size: 18px; line-height: 1.6; color: var(--rd-text); }
.rd-dark { background: var(--rd-g900); color: var(--rd-mint); }
.rd-dark .rd-btn-primary { background: var(--rd-yellow); color: var(--rd-g900); }
.rd-dark .rd-btn-primary:hover { background: #F1FA9E; }
.rd-dark .rd-btn-ghost { border-color: rgba(218,241,224,.45); color: #fff; }
.rd-dark .rd-btn-ghost:hover { background: rgba(255,255,255,.08); }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* Hero, shared */
.rd-hero { position: relative; overflow: clip; }
.rd-hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; box-sizing: border-box;
  padding: clamp(40px, 6vw, 88px) var(--rd-gutter) clamp(64px, 8vw, 112px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 960px) { .rd-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.rd-eyebrow { margin: 0 0 28px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--rd-g500); }
.rd-h1 { margin: 0; font-size: clamp(44px, 6vw, 84px); line-height: .98; letter-spacing: -.035em; font-weight: 600;
  color: var(--rd-g900); text-wrap: balance; }
.rd-em { position: relative; white-space: nowrap; }
.rd-lede { margin: 32px 0 0; max-width: 540px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--rd-text); text-wrap: pretty; }
.rd-ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.rd-btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 16px 26px; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s; }
.rd-btn-primary { background: var(--rd-g900); color: var(--rd-yellow); }
.rd-btn-primary:hover { background: #0F4A17; }
.rd-btn-ghost { border: 1px solid rgba(5,46,9,.3); color: var(--rd-g900); padding: 15px 25px; }
.rd-btn-ghost:hover { background: rgba(5,46,9,.06); }
.rd-photo { margin: 0; position: relative; }
.rd-photo-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: 6px; }
.rd-card { position: absolute; z-index: 3; width: min(280px, 92%); background: #fff; border-radius: 10px;
  box-shadow: 0 20px 50px -20px rgba(5,46,9,.35); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rd-caption { margin-top: 12px; font-size: 13px; color: #5B6A5D; }
.rd-art { position: relative; }

/* Option A (Matt's pick, 6 Nov 2026): the headline runs wide across the top with the paragraph
   beside it, then one row after his board: the photo on a yellow block, the green line through
   the open middle, contour lines, a halftone tile, a ring and dashes. The navbar is clear over
   this band and turns frosted once the page scrolls (redesign.js sets .rd-scrolled). */
body.rd-opt-a { --rd-header: 77px; --rd-a-gap: clamp(48px, 6vw, 88px); --rd-a-pull: clamp(-28px, -1.5vw, -12px); }
body.rd-opt-a > header { position: fixed !important; top: 0; left: 0; right: 0; background: transparent !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom-color: transparent !important;
  padding-top: 0; transition: padding-top .35s ease; }
/* Matt, 6 Nov 2026: once the page scrolls the menu row floats as a rounded glass bar, inset from
   the top and the sides, instead of a block across the top. The header itself stays clear. */
body.rd-opt-a > header > nav { box-sizing: border-box; border: 1px solid transparent; border-radius: 999px;
  transition: max-width .35s ease, height .35s ease, padding .35s ease, background-color .35s ease, border-color .35s ease,
    box-shadow .35s ease, -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease; }
.rd-scrolled body.rd-opt-a > header { padding-top: 12px; }
.rd-scrolled body.rd-opt-a > header > nav { max-width: min(1220px, calc(100% - 24px)) !important; height: 64px !important;
  padding: 0 10px 0 clamp(18px, 2vw, 28px) !important; background: rgba(246,245,239,.62);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-color: rgba(255,255,255,.55); box-shadow: 0 10px 34px -14px rgba(5,46,9,.28), inset 0 1px 0 rgba(255,255,255,.6); }
.rd-scrolled body.rd-opt-a > header > #mobile-menu { box-sizing: border-box; max-width: calc(100% - 24px); margin: 8px auto 0;
  border: 1px solid rgba(255,255,255,.55) !important; border-radius: 20px; background: rgba(246,245,239,.9) !important;
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 18px 40px -18px rgba(5,46,9,.3); padding-left: 20px !important; padding-right: 20px !important; }
/* Where the compact navbar shows (below 1180px), it is always the floating pill, at the top too (Matt, 6 Nov 2026). */
@media (max-width: 1179.98px) {
  body.rd-opt-a > header { padding-top: 12px; }
  body.rd-opt-a > header > nav { max-width: min(1220px, calc(100% - 24px)) !important; height: 64px !important;
    padding: 0 10px 0 clamp(18px, 2vw, 28px) !important; background: rgba(246,245,239,.62);
    -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    border-color: rgba(255,255,255,.55); box-shadow: 0 10px 34px -14px rgba(5,46,9,.28), inset 0 1px 0 rgba(255,255,255,.6); }
  body.rd-opt-a > header > #mobile-menu { box-sizing: border-box; max-width: calc(100% - 24px); margin: 8px auto 0;
    border: 1px solid rgba(255,255,255,.55) !important; border-radius: 20px; background: rgba(246,245,239,.9) !important;
    -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
    box-shadow: 0 18px 40px -18px rgba(5,46,9,.3); padding-left: 20px !important; padding-right: 20px !important; }
}
/* 12 Nov 2026: on small phones the pill is 24px narrower than the screen, so the logo, For learners
   and Menu sit closer together, or Menu runs out of the pill (360px) and off the screen (320px). */
@media (max-width: 419.98px) {
  body.rd-opt-a > header > nav { gap: 12px !important; padding: 0 8px 0 14px !important; }
  body.rd-opt-a .nav-mobile-learn { margin-right: 0; }
}
@media (max-width: 359.98px) {
  body.rd-opt-a > header > nav { gap: 8px !important; padding: 0 6px 0 12px !important; }
  body.rd-opt-a > header > nav > a:first-child img { height: 28px !important; }
  body.rd-opt-a .nav-mobile-learn { padding: 0 10px; }
}
@media (scripting: none) { body.rd-opt-a > header { background: rgba(246,245,239,.92) !important; } }

.rd-hero-a { background: var(--rd-pale); }
.rd-hero-inner.rd-a-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; align-items: start;
  padding-top: calc(var(--rd-header) + clamp(32px, 5vw, 72px)); }
.rd-hero-a .rd-h1 { font-size: clamp(38px, 4.3vw, 64px); line-height: 1.04; letter-spacing: -.03em; text-wrap: wrap; }
.rd-line { display: block; }
.rd-a-head .rd-eyebrow { margin-bottom: 24px; }
.rd-a-body { margin: 0; max-width: none; font-size: clamp(17px, 1.3vw, 19px); }
.rd-a-ctas { position: relative; z-index: 3; margin-top: 36px; }
.rd-a-shot { position: relative; margin-top: var(--rd-a-gap); }
.rd-hero-a .rd-photo { position: relative; z-index: 2; }
/* 4:3 window on the 2:3 photo, from the man's head down to the phone. */
.rd-hero-a .rd-photo-img { aspect-ratio: 4 / 3; object-position: 50% 22%; border-radius: 3px; }
/* The card hangs off the photo's lower right, into the open middle, clear of both faces. */
.rd-hero-a .rd-card { left: auto; right: -30%; bottom: 14px; }
.rd-a-squiggle { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 2 / 1; margin-top: var(--rd-a-gap); --sw: 10; }
.rd-a-pat { position: relative; margin-top: var(--rd-a-gap); min-height: 240px; }
.rd-a-pat > * { position: absolute; }
.rd-a-contours { z-index: 0; left: 0; top: -10%; width: 58%; height: 82%; color: rgba(5,46,9,.34); }
.rd-a-tile { z-index: 2; left: 26%; top: 6%; width: 46%; aspect-ratio: 1; background: var(--rd-tile); color: var(--rd-dot); }
.rd-a-dashes { z-index: 2; left: 26%; top: 80%; width: 30%; }
.rd-a-ring { z-index: 2; right: 4%; top: -6%; width: 15%; --rw: clamp(8px, .9vw, 12px); }
@media (min-width: 1100px) {
  /* The headline runs the full width; the paragraph sits beside the buttons under it. */
  .rd-a-head { grid-column: 1 / -1; grid-row: 1; }
  .rd-a-ctas { grid-column: 1 / 7; grid-row: 2; align-self: start; }
  .rd-a-body { grid-column: 7 / 13; grid-row: 2; align-self: start; margin-top: 36px; }
  /* Matt, 6 Nov 2026: a bigger photo, pulled up into the open space under the buttons
     (it stays left of the paragraph, so the two never touch). */
  .rd-a-shot { grid-column: 1 / 7; grid-row: 3; align-self: start; margin-top: var(--rd-a-pull); }
  .rd-hero-a .rd-card { right: -22%; }
  .rd-a-squiggle { grid-column: 6 / 11; grid-row: 3; align-self: center; }
  .rd-a-pat { grid-column: 8 / 13; grid-row: 3; align-self: stretch; margin-top: clamp(40px, 4.5vw, 72px); }
}
@media (max-width: 1099.98px) {
  .rd-a-head, .rd-a-ctas { grid-column: 1 / -1; }
  .rd-a-body { grid-column: 1 / 10; margin-top: 24px; }
  .rd-a-shot { grid-column: 1 / 8; }
  .rd-a-pat { grid-column: 8 / 13; align-self: stretch; }
  .rd-a-squiggle { display: none; }
  .rd-hero-a .rd-h1 { font-size: clamp(36px, 5.9vw, 56px); }
  .rd-hero-a .rd-card { right: -18%; }
}
@media (max-width: 699.98px) {
  .rd-a-body, .rd-a-shot, .rd-a-pat { grid-column: 1 / -1; }
  .rd-a-pat { display: none; } /* Matt, 6 Nov 2026: no graphics under the photo on phones */
  .rd-a-contours { top: 0; width: 66%; height: 100%; }
  .rd-a-tile { left: 22%; top: 4%; width: 46%; }
  .rd-a-dashes { left: 22%; top: auto; bottom: 0; width: 30%; }
  .rd-a-ring { right: 6%; top: 6%; width: 18%; }
  .rd-hero-a .rd-card { right: -8px; }
}

/* Option B: dark field (contours dissolving into dots, yellow ladder, arch photo). */
.rd-hero-b { background: var(--rd-g900); }
.rd-hero-b .rd-hero-inner { padding-right: calc(var(--rd-gutter) + 40px); }
@media (min-width: 960px) {
  .rd-hero-b .rd-hero-inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(72px, 8vw, 120px); }
  .rd-hero-b .rd-hero-text { order: 2; }
  .rd-art-b { order: 1; }
}
.rd-art-b { width: 100%; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.rd-hero-b .rd-photo { width: min(100%, 420px); margin: 0 auto; }
.rd-b-field { position: absolute; background: var(--rd-pale); color: var(--rd-g900); z-index: 0;
  top: calc(-1 * clamp(56px, 7vw, 104px)); bottom: calc(-1 * clamp(72px, 8vw, 120px));
  left: calc(-1 * ((100vw - min(100vw, 1280px)) / 2 + var(--rd-gutter))); right: -6%; }
.rd-hero-b .rd-photo { z-index: 2; }
.rd-hero-b .rd-photo-img { border-radius: 999px 999px 6px 6px; }
.rd-hero-b .rd-card { right: -22%; bottom: 64px; left: auto; }
.rd-hero-b .rd-caption { display: inline-block; background: var(--rd-g900); color: var(--rd-mint); padding: 6px 10px; border-radius: 4px; }
.rd-b-ring { position: absolute; z-index: 3; top: -3%; left: -6%; width: 22%; --rw: clamp(8px, 1vw, 12px); border-color: var(--rd-yellow); }
.rd-hero-b .rd-eyebrow { color: var(--rd-yellow); }
.rd-hero-b .rd-h1 { color: #fff; }
.rd-hero-b .rd-em { color: var(--rd-yellow); }
.rd-hero-b .rd-lede { color: var(--rd-mint); }
.rd-hero-b .rd-btn-primary { background: var(--rd-yellow); color: var(--rd-g900); }
.rd-hero-b .rd-btn-primary:hover { background: #F1FA9E; }
.rd-hero-b .rd-btn-ghost { border-color: rgba(218,241,224,.45); color: #fff; }
.rd-hero-b .rd-btn-ghost:hover { background: rgba(255,255,255,.08); }
.rd-b-ladder { position: absolute; z-index: 1; top: 0; bottom: 0; right: clamp(12px, 2.4vw, 40px); }
@media (max-width: 1279.98px) { .rd-hero-b .rd-card { right: -6%; } }
@media (max-width: 959.98px) {
  .rd-hero-b .rd-photo { width: min(78%, 380px); }
  .rd-b-field { top: -36px; bottom: calc(-1 * clamp(64px, 8vw, 112px)); left: calc(-1 * var(--rd-gutter)); right: calc(-1 * var(--rd-gutter) - 40px); }
  .rd-hero-b .rd-card { right: -12%; }
  .rd-b-ring { left: -8%; }
}
@media (max-width: 599.98px) {
  .rd-hero-b .rd-hero-inner { padding-right: var(--rd-gutter); }
  .rd-b-ladder { display: none; }
}

/* Option C: contour frame (the photo in a field of contour lines, a yellow square, an underline). */
.rd-hero-c { background: var(--rd-cream); }
@media (min-width: 960px) {
  .rd-hero-c .rd-hero-inner { grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); }
  .rd-hero-c .rd-hero-text { order: 2; }
  .rd-art-c { order: 1; }
}
.rd-art-c { width: 100%; max-width: 620px; justify-self: center; box-sizing: border-box; padding: 9% 13% 13% 9%; }
.rd-c-panel { position: absolute; inset: 0; background: var(--rd-pale); color: rgba(5,46,9,.38); border-radius: 4px; overflow: hidden; }
.rd-hero-c .rd-photo { z-index: 2; }
.rd-hero-c .rd-photo-img { border-radius: 3px; }
.rd-hero-c .rd-card { right: -16%; bottom: 11%; }
.rd-hero-c .rd-caption { position: absolute; left: 0; top: 100%; }
.rd-c-square { position: absolute; z-index: 3; left: 3%; top: 3%; width: 24%; aspect-ratio: 1; background: var(--rd-yellow); }
.rd-c-square .rd-ring { position: absolute; left: 13%; top: 13%; width: 30%; --rw: clamp(5px, .7vw, 9px); }
.rd-c-square .rd-dashes { position: absolute; right: 12%; bottom: 14%; width: 56%; }
.rd-c-underline { position: absolute; left: -2%; right: -6%; bottom: -.22em; width: 108%; height: .3em; z-index: -1; --sw: 7; }
@media (max-width: 959.98px) {
  .rd-hero-c .rd-card { right: -8%; bottom: 14%; }
}

/* Below the hero: sections that carry a pattern. */
.rd-sec { position: relative; overflow: clip; isolation: isolate; }
.rd-sec > :not(.rd-sd) { position: relative; z-index: 1; }
.rd-sd { position: absolute; z-index: 0; display: block; }
.rd-frame { position: relative; display: block; isolation: isolate; }
.rd-frame > img { position: relative; z-index: 1; }
.rd-frame > span { position: absolute; }

/* Proof band */
.rd-proof-pat { top: 0; bottom: 0; right: -4%; width: 60%; color: rgba(5,46,9,.09);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.rd-opt-b .rd-proof { background: var(--rd-yellow) !important; border-color: transparent !important; }
.rd-opt-b .rd-proof-pat { width: 100%; right: 0; color: rgba(5,46,9,.12); -webkit-mask-image: none; mask-image: none; }
.rd-proof-ring { top: clamp(32px, 5vw, 64px); right: clamp(20px, 5vw, 64px); width: clamp(48px, 6vw, 84px); --rw: clamp(7px, .9vw, 11px); }

/* The challenge photo */
.rd-challenge-block { left: -5%; bottom: -5%; width: 62%; height: 58%; z-index: 0; }
.rd-challenge-dashes { right: -2%; top: -7%; width: 26%; z-index: 2; }
.rd-opt-b .rd-challenge-frame > img { border-radius: 999px 999px 6px 6px !important; }
.rd-challenge-ring { right: -6%; top: 6%; width: 20%; --rw: clamp(8px, 1vw, 12px); z-index: 2; }
.rd-opt-c .rd-challenge-block { left: auto; right: -5%; bottom: -5%; background: var(--rd-mint); }

/* Your expertise (mint) */
.rd-dissolve { left: 0; right: 0; bottom: -1px; height: clamp(120px, 15vw, 220px); color: var(--rd-cream); }
.rd-expertise-pat { top: 0; right: 0; width: 46%; height: 70%; color: rgba(5,46,9,.10);
  -webkit-mask-image: linear-gradient(200deg, #000 30%, transparent 80%); mask-image: linear-gradient(200deg, #000 30%, transparent 80%); }
.rd-opt-a .rd-expertise > div, .rd-opt-b .rd-expertise > div { padding-bottom: clamp(150px, 19vw, 290px) !important; }
/* Option A flow (Matt's pick 3B, 6 Nov 2026). Desktop: everything sits on a 1152 x 380 drawing
   scaled to the width, so the lines (FLOW_LINES in redesign.py) always meet the dots and the ring. */
.rd-opt-a .rd-flow { position: relative; display: block !important; margin-top: 88px !important; background: none !important;
  border: 0 !important; border-top: 1px solid rgba(5,46,9,.14) !important; border-radius: 0 !important; overflow: visible !important; }
.rd-opt-a .rd-flow > div { box-sizing: border-box; min-height: 0 !important; padding: 0 !important; background: none !important;
  justify-content: flex-start !important; gap: 8px !important; z-index: 1; }
.rd-flow-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--rd-g900); }
.rd-flow-ring { flex: none; }
.rd-opt-a .rd-flow-node p:first-child { color: var(--rd-g900) !important; }
.rd-opt-a .rd-flow-node p + p { color: var(--rd-text) !important; }
.rd-opt-a .rd-flow > div.rd-flow-out { position: relative; background: var(--rd-yellow) !important; border-radius: 6px; justify-content: flex-end !important; }
.rd-opt-a .rd-flow > div.rd-flow-out p:first-child { font-size: clamp(26px, 2.4vw, 32px) !important; line-height: 1.08; }
.rd-flow-stripe { position: absolute; left: 28px; top: 32px; width: 120px; }
@media (min-width: 1100px) {
  .rd-opt-a .rd-flow { height: 420px; }
  .rd-flow-lines { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 380px; --sw: 7; }
  .rd-opt-a .rd-flow > div { position: absolute !important; }
  .rd-opt-a .rd-flow-in { left: 0; width: 23.44%; }
  .rd-opt-a .rd-flow-in1 { top: 55px; }
  .rd-opt-a .rd-flow-in2 { top: 275px; }
  .rd-flow-dot { left: calc(111.11% - 8px); }
  .rd-flow-dot { top: 7px; } /* level with the title; the lines start at y 70 and 290 */
  .rd-opt-a .rd-flow-node { left: 40.8%; top: 88px; width: 22.57%; align-items: center; text-align: center; }
  .rd-flow-ring { width: 160px; --rw: 14px; margin-bottom: 18px; }
  .rd-opt-a .rd-flow > div.rd-flow-out { left: 73.96%; top: 40px; width: 26.04%; height: 300px; padding: 28px 28px 30px !important; }
}
/* Tablets and phones: the same story as a timeline, one green line down the left. */
@media (max-width: 1099.98px) {
  .rd-opt-a .rd-flow { display: flex !important; flex-direction: column; gap: 40px !important; margin-top: 56px !important;
    padding: 40px 0 0 56px !important; }
  .rd-opt-a .rd-flow::before { content: ""; position: absolute; left: 19px; top: 46px; bottom: 60px; width: 6px; border-radius: 3px; background: var(--rd-line); }
  .rd-flow-lines { display: none; }
  .rd-opt-a .rd-flow > div { position: relative !important; }
  .rd-flow-dot { left: -42px; top: 7px; }
  .rd-flow-ring { position: absolute; left: -56px; top: -7px; width: 44px; --rw: 9px; background: var(--rd-mint); }
  .rd-opt-a .rd-flow > div.rd-flow-out { margin-left: -56px; min-height: 220px !important; padding: 72px 24px 26px !important; }
  .rd-flow-stripe { left: 24px; top: 28px; }
}

/* White-labelling (dark) */
.rd-wl-pat { top: 0; bottom: 0; left: 0; width: 55%; color: rgba(218,241,224,.08);
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.rd-wl-ladder { top: 0; bottom: 0; right: clamp(8px, 1.4vw, 20px); }
.rd-wl-ladder { --lw: clamp(28px, 2.6vw, 40px); }
@media (max-width: 699.98px) { .rd-wl-ladder, .rd-cta-ladder { display: none; } }

/* How implementation works: chevron chips */
.rd-step { border-top: 0 !important; padding-top: 0 !important; }
.rd-chip { position: relative; isolation: isolate; display: flex !important; align-items: center; box-sizing: border-box; height: 40px;
  padding: 0 28px 0 26px; font-size: 13px !important; letter-spacing: .06em; color: var(--rd-g900) !important; }
.rd-chip::before, .rd-chip::after { content: ""; position: absolute; z-index: -1; inset: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.rd-chip::before { background: var(--rd-g900); }
.rd-chip::after { inset: 1.5px 2px; background: var(--rd-cream); }
.rd-step:first-child .rd-chip::before, .rd-step:first-child .rd-chip::after { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.rd-step:first-child .rd-chip { padding-left: 18px; }
.rd-opt-b .rd-chip::after { background: var(--rd-yellow); }
.rd-opt-a .rd-step:first-child .rd-chip::after { background: var(--rd-yellow); }

/* Our work: arch on the middle photo */
.rd-arch-top { border-radius: 180px 180px 6px 6px !important; }

/* What we've learned: the phone photo */
.rd-learned-block { left: -5%; top: 14%; width: 40%; height: 62%; z-index: 0; }
.rd-learned-ring { right: -4%; top: -7%; width: 15%; --rw: clamp(7px, .9vw, 11px); z-index: 2; }
.rd-learned-pat { inset: -7% -7% -7% -7%; z-index: 0; color: rgba(5,46,9,.28); background: transparent; }
.rd-learned-pat .rd-pat { -webkit-mask-size: cover; mask-size: cover; }
.rd-opt-c .rd-learned-ring { border-color: var(--rd-yellow); }

/* Our work (A): the photos fill their card frames like the middle photo. */
.rd-work-frame { position: relative; overflow: hidden; padding: 0 !important; aspect-ratio: 4 / 3; border-radius: 6px; }
.rd-work-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
img.rd-work-photo[src*="work-sa"] { object-position: 50% 45%; }
img.rd-work-photo[src*="school-in-a-box"] { object-position: 45% 55%; }

/* Closing call to action */
.rd-cta-band { left: 0; right: 0; top: 0; height: clamp(120px, 15vw, 220px); background: var(--rd-cream); color: var(--rd-g900); }
.rd-opt-a .rd-cta > div, .rd-opt-b .rd-cta > div { padding-top: calc(clamp(120px, 15vw, 220px) + clamp(56px, 7vw, 104px)) !important; }
.rd-cta-ladder { top: 0; bottom: 0; right: clamp(8px, 1.4vw, 20px); }
.rd-cta-ladder { --lw: clamp(28px, 2.6vw, 40px); }
.rd-opt-c .rd-cta { background: var(--rd-yellow) !important; color: var(--rd-g900) !important; }
.rd-opt-c .rd-cta h2 { color: var(--rd-g900) !important; }
.rd-opt-c .rd-cta p { color: var(--rd-text) !important; }
.rd-opt-c .rd-cta a.scp5 { background: var(--rd-g900) !important; color: var(--rd-yellow) !important; }
.rd-opt-c .rd-cta a.scp6 { border-color: rgba(5,46,9,.35) !important; color: var(--rd-g900) !important; }
.rd-cta-ring { top: clamp(28px, 4vw, 56px); right: clamp(20px, 5vw, 64px); width: clamp(56px, 7vw, 96px); --rw: clamp(8px, 1vw, 12px); }
.rd-cta-dashes { bottom: clamp(28px, 4vw, 56px); left: clamp(20px, 5vw, 64px); width: clamp(110px, 12vw, 160px); }

/* Style guide page (staging only): /style-guide/, built from src/redesign/style-guide.html. */
.rd-sg { background: var(--rd-cream); }
.rd-sg-wrap { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 0 var(--rd-gutter); box-sizing: border-box; }
.rd-sg-hero { position: relative; overflow: clip; background: var(--rd-pale); padding: calc(var(--rd-header) + clamp(40px, 6vw, 88px)) 0 clamp(48px, 6vw, 80px); }
.rd-sg-hero .rd-eyebrow { margin-bottom: 24px; }
.rd-sg-hero-pat { top: 0; bottom: 0; right: -4%; width: 50%; color: rgba(5,46,9,.2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); }
.rd-sg-intro { max-width: 640px; margin: 24px 0 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--rd-text); }
.rd-sg-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.rd-sg-toc a { display: inline-block; padding: 9px 16px; border: 1px solid rgba(5,46,9,.25); border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--rd-g900); text-decoration: none; }
.rd-sg-toc a:hover { background: rgba(5,46,9,.06); }
.rd-sg-section { padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid rgba(5,46,9,.1); scroll-margin-top: 72px; }
.rd-sg-section .rd-eyebrow { margin: 0 0 16px; }
.rd-sg-lead { max-width: 660px; margin: 16px 0 40px; font-size: 17px; line-height: 1.6; color: var(--rd-text); }
.rd-sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 24px; }
@media (min-width: 760px) { .rd-sg-span2 { grid-column: span 2; } }
.rd-sg-full { grid-column: 1 / -1; }
.rd-sg-item { min-width: 0; }
.rd-sg-item h3 { margin: 16px 0 6px; font-size: 18px; font-weight: 600; color: var(--rd-g900); }
.rd-sg-item p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: #4A584C; }
.rd-sg-demo { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px; min-height: 200px;
  padding: 28px; box-sizing: border-box; overflow: clip; border-radius: 6px; background: #fff; border: 1px solid rgba(5,46,9,.1); }
.rd-sg-demo.rd-sg-flush { display: block; padding: 0; }
.rd-sg-demo.rd-sg-dark { background: var(--rd-g900); border-color: transparent; }
.rd-sg-demo.rd-sg-pale { background: var(--rd-pale); border-color: transparent; }
.rd-sg-box { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.rd-sg-square { aspect-ratio: 1; }
.rd-sg-field { width: 62%; height: 280px; aspect-ratio: auto; }
.rd-sg-band { position: relative; display: block; height: 150px; }
.rd-sg-line { width: 100%; height: auto; aspect-ratio: 2 / 1; --sw: 10; }
.rd-sg-cardwrap { background: var(--rd-pale); border-color: transparent; }
.rd-sg-cardwrap .rd-card { position: relative; }
.rd-sg-flowdemo { padding: 8px clamp(16px, 3vw, 40px) 40px; }
.rd-sg-flowdemo .rd-flow { margin-top: 24px !important; }
.rd-sg-flowdemo .rd-flow p { margin: 0; color: var(--rd-text); font-size: 15px; line-height: 1.55; }
.rd-sg-flowdemo .rd-flow p:first-child { color: var(--rd-g900); font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.rd-sg-cluster { margin: 56px auto 40px; width: min(100% - 48px, 460px); height: 300px; min-height: 0; }
.rd-sg-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: 0 clamp(20px, 4vw, 56px) 48px; }
.rd-sg-navdemo { height: 280px; background: var(--rd-pale); }
.rd-sg-navdemo-pat { position: absolute; inset: 0; color: rgba(5,46,9,.4); }
.rd-sg-bar { position: relative; z-index: 1; margin: 32px clamp(16px, 4vw, 48px) 0; padding: 20px 24px; border-radius: 10px;
  border: 1px dashed rgba(5,46,9,.3); font-size: 15px; color: var(--rd-text); }
.rd-sg-bar b { margin-right: 10px; color: var(--rd-g900); }
.rd-sg-bar-frosted { border-radius: 999px; background: rgba(246,245,239,.62); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(255,255,255,.55); box-shadow: 0 10px 34px -14px rgba(5,46,9,.28), inset 0 1px 0 rgba(255,255,255,.6); }
.rd-sg-code { margin: 12px 0 0; padding: 14px 16px; overflow-x: auto; white-space: pre; border-radius: 6px; background: #0B1F0E; color: var(--rd-mint);
  font: 12px/1.6 'IBM Plex Mono', monospace; }
.rd-sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 24px 20px; }
.rd-sg-swatch { margin: 0; }
.rd-sg-swatch > span { display: block; height: 96px; border-radius: 6px; border: 1px solid rgba(5,46,9,.12); }
.rd-sg-swatch figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #4A584C; }
.rd-sg-swatch b { display: block; font-size: 16px; color: var(--rd-g900); }
.rd-sg-swatch code, .rd-sg-types code { display: block; margin: 2px 0 4px; font: 12px/1.5 'IBM Plex Mono', monospace; color: var(--rd-g500); }
.rd-sg-types { margin: 0; }
.rd-sg-types > div { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 12px 40px; align-items: baseline; padding: 28px 0;
  border-top: 1px solid rgba(5,46,9,.12); }
.rd-sg-types dt { font-size: 15px; font-weight: 600; color: var(--rd-g900); }
.rd-sg-types dt span { display: block; font-size: 13px; font-weight: 400; line-height: 1.5; color: #5B6A5D; }
.rd-sg-types dd { margin: 0; min-width: 0; }
.rd-sg-types dd > * { margin: 0; }
@media (max-width: 699.98px) { .rd-sg-types > div { grid-template-columns: minmax(0, 1fr); } }
.rd-sg-rules { margin: 32px 0 0; padding: 0; list-style: none; max-width: 820px; }
.rd-sg-rules li { padding: 18px 0; border-top: 1px solid rgba(5,46,9,.12); font-size: 17px; line-height: 1.6; color: var(--rd-text); }
.rd-sg-rules b { color: var(--rd-g900); }

/* Staging only: the switcher between options. */
/* Featured in: press logos as single-colour marks (Matt, 6 Nov 2026). */
div:has(> .rd-press) { gap: 20px clamp(28px, 4vw, 56px) !important; }
.rd-press { position: relative; display: inline-flex; align-items: center; color: var(--rd-g900); opacity: .78; transition: opacity .2s; }
.rd-press:hover, .rd-press:focus-visible { opacity: 1; }
.rd-logo { display: block; max-width: 40vw; background-color: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.rd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
