/* ==========================================================================
   AMP Visual Media: the site's one stylesheet
   Black ground, cream and white for emphasis, one accent from the logo.
   Very large type, cards that stack and slide, a curtain between pages.
   Nothing here is shared with the live stylesheet (/style.css).
   ========================================================================== */

:root {
  --ink: #0d0a0a;
  --ink-2: #171313;
  --ink-3: #241f1f;
  --paper: #f6f3ee;        /* cream cards and sections */
  --paper-2: #e9e4db;
  --white: #ffffff;

  /* The logo's colours, and nothing else */
  --black: #1c1717;
  --red: #af2014;
  --orange: #cb6602;
  --amber: #ed9c00;
  --sand: #ead7a6;

  --text: #f6f3ee;
  --text-2: rgba(246, 243, 238, 0.56);
  --text-3: rgba(246, 243, 238, 0.32);
  --line: rgba(246, 243, 238, 0.14);
  --accent: var(--amber);

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Red Hat Mono', ui-monospace, monospace;

  --fs-mega: clamp(3.4rem, 10.4vw, 12.5rem);
  --fs-display: clamp(3rem, 8.4vw, 9.5rem);
  --fs-h2: clamp(2.7rem, 7vw, 8rem);
  --fs-h3: clamp(2rem, 4.2vw, 4.5rem);
  --fs-lead: clamp(1.3rem, 2.15vw, 2.15rem);
  --fs-body: clamp(1.05rem, 1.15vw, 1.2rem);
  --fs-small: 0.9375rem;

  --gutter: clamp(1.1rem, 2.8vw, 2.75rem);
  --max: 1840px;
  --section: clamp(7rem, 13vw, 13rem);
  --gap: clamp(0.75rem, 1.2vw, 1.25rem);
  --radius: clamp(16px, 1.5vw, 26px);
  --nav-h: 80px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--text); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body.rd {
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; letter-spacing: -0.01em;
  background: var(--ink); color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, iframe { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.rd-skip { position: fixed; left: 1rem; top: -4rem; z-index: 300; background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: 999px; }
.rd-skip:focus { top: 1rem; }

.rd-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Grounds */
.rd-section { position: relative; padding-block: var(--section); }
.is-light, .is-paper {
  --text: var(--ink);
  --text-2: rgba(13, 10, 10, 0.55);
  --text-3: rgba(13, 10, 10, 0.32);
  --line: rgba(13, 10, 10, 0.12);
  --accent: var(--orange);
  color: var(--text);
}
.is-light { background: var(--white); }
.is-paper { background: var(--paper); }

main { position: relative; z-index: 1; background: var(--ink); }

/* ---------- One ground for the whole page ----------
   Once rd.js has read the page (html.rd-bg), the light sections drop their own ground and colours. The whole page
   takes the ground of the section at the middle of the screen (html.rd-light / html.rd-paper, or neither for black)
   and fades to it, text and lines included, so the section leaving and the one arriving always match. The colour
   tokens are registered so they fade rather than snap. */
@property --page { syntax: '<color>'; inherits: true; initial-value: #0d0a0a; }
@property --text { syntax: '<color>'; inherits: true; initial-value: #f6f3ee; }
@property --text-2 { syntax: '<color>'; inherits: true; initial-value: rgba(246, 243, 238, 0.56); }
@property --text-3 { syntax: '<color>'; inherits: true; initial-value: rgba(246, 243, 238, 0.32); }
@property --line { syntax: '<color>'; inherits: true; initial-value: rgba(246, 243, 238, 0.14); }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #ed9c00; }
html.rd-bg { --page: var(--ink); }
html.rd-bg.rd-light { --page: var(--white); }
html.rd-bg.rd-paper { --page: var(--paper); }
html.rd-bg main, html.rd-bg .rd-footer { background: var(--page); }
html.rd-light body.rd, html.rd-paper body.rd {
  --text: var(--ink);
  --text-2: rgba(13, 10, 10, 0.55);
  --text-3: rgba(13, 10, 10, 0.32);
  --line: rgba(13, 10, 10, 0.12);
  --accent: var(--orange);
}
html.rd-bg .is-light, html.rd-bg .is-paper, html.rd-bg .rd-fitx { background: transparent; --text: inherit; --text-2: inherit; --text-3: inherit; --line: inherit; --accent: inherit; }
/* Buttons follow the page: dark on light, cream on black */
html.rd-light .rd-btn, html.rd-paper .rd-btn { --b-bg: var(--ink); --b-fg: var(--paper); }
html.rd-light .rd-btn:hover, html.rd-paper .rd-btn:hover { --b-bg: var(--orange); --b-fg: var(--white); }
html.rd-bg:not(.rd-light):not(.rd-paper) :is(.is-light, .is-paper) .rd-btn { --b-bg: var(--paper); --b-fg: var(--ink); }
html.rd-bg:not(.rd-light):not(.rd-paper) :is(.is-light, .is-paper) .rd-btn:hover { --b-bg: var(--amber); --b-fg: var(--ink); }
/* The fade (switched on a frame after the first paint, so a page that opens on a light section doesn't fade in) */
html.rd-bg-anim { transition: --page .8s var(--ease); }
html.rd-bg-anim body.rd { transition: --text .8s var(--ease), --text-2 .8s var(--ease), --text-3 .8s var(--ease), --line .8s var(--ease), --accent .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { html.rd-bg-anim, html.rd-bg-anim body.rd { transition-duration: .01s; } }

/* ---------- Type ---------- */
.rd-mega, .rd-display, .rd-h2, .rd-h3 { font-weight: 600; text-wrap: balance; }
.rd-mega { font-size: var(--fs-mega); line-height: 0.86; letter-spacing: -0.062em; }
.rd-display { font-size: var(--fs-display); line-height: 0.88; letter-spacing: -0.058em; }
.rd-h2 { font-size: var(--fs-h2); line-height: 0.9; letter-spacing: -0.055em; }
.rd-h3 { font-size: var(--fs-h3); line-height: 0.95; letter-spacing: -0.05em; }
.rd-lead { font-size: var(--fs-lead); font-weight: 500; line-height: 1.12; letter-spacing: -0.035em; max-width: 26ch; text-wrap: pretty; }
.rd-lead.is-muted { color: var(--text-2); }
.rd-sub { color: var(--text-2); font-size: var(--fs-body); max-width: 44ch; }
.rd-small { color: var(--text-3); font-size: var(--fs-small); }
.rd-num { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--text-3); font-weight: 500; }
.rd-kicker { display: block; font-size: clamp(1rem, 1.3vw, 1.25rem); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); margin-bottom: clamp(1rem, 2vw, 1.75rem); }

/* Heading block: title, then a big medium-weight line under it */
.rd-head { margin-bottom: clamp(3rem, 6vw, 6rem); display: grid; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.rd-head--split { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; column-gap: var(--gap); }
.rd-head--split > :first-child { grid-column: 1 / span 8; }
.rd-head--split > .rd-sub, .rd-head--split > .rd-lead, .rd-head--split > .rd-head-side { grid-column: 9 / -1; }
.rd-head-side { display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); justify-items: start; }
@media (max-width: 900px) { .rd-head--split { grid-template-columns: 1fr; } .rd-head--split > * { grid-column: 1 / -1 !important; } }

/* ---------- Buttons ---------- */
.rd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.75rem; }
.rd-btn {
  --b-bg: var(--paper); --b-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 0.7rem;
  height: 3.4rem; padding: 0 1.6rem; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg);
  font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.rd-btn:hover { --b-bg: var(--amber); --b-fg: var(--ink); }
.rd-btn:active { transform: scale(0.97); }
.rd-btn--sm { height: 2.75rem; padding: 0 1.3rem; font-size: 0.9375rem; }
.is-light .rd-btn, .is-paper .rd-btn, .rd-btn--ink { --b-bg: var(--ink); --b-fg: var(--paper); }
.is-light .rd-btn:hover, .is-paper .rd-btn:hover, .rd-btn--ink:hover { --b-bg: var(--orange); --b-fg: var(--white); }
.rd-btn-arrow { transition: transform .4s var(--ease); }
.rd-btn:hover .rd-btn-arrow { transform: translateX(3px); }

/* Round arrow button, used on cards */
.rd-arrow {
  width: 3rem; height: 3rem; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1px solid currentColor; color: var(--accent);
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s, transform .5s var(--ease);
}
.rd-arrow svg { width: 16px; height: 16px; }
a:hover .rd-arrow { background: var(--accent); border-color: var(--accent); color: var(--white); }

.rd-link { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: -0.02em; }
.rd-link span { transition: transform .4s var(--ease); color: var(--accent); }
.rd-link:hover span { transform: translateX(4px); }

/* ---------- Navigation + the blur band under it ---------- */
.rd-blurband {
  position: fixed; inset: 0 0 auto; height: 92px; z-index: 50; pointer-events: none;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}
.rd-nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter); color: var(--paper);
  transition: color .35s;
}
.rd-nav.is-light { color: var(--ink); }
.rd-brand { position: relative; isolation: isolate; justify-self: start; display: inline-flex; align-items: center; gap: 0.7rem; }
.rd-brand img { width: 38px; height: 38px; }
/* Hover: two radio waves leave the logo, once */
.rd-brand::before, .rd-brand::after {
  content: ""; position: absolute; z-index: -1; left: 0; top: calc(50% - 19px); width: 38px; height: 38px;
  border-radius: 50%; border: 1.5px solid var(--amber); opacity: 0; pointer-events: none;
}
@keyframes rd-brand-wave { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.8); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .rd-brand:hover::before { animation: rd-brand-wave 1s var(--ease); }
  .rd-brand:hover::after { animation: rd-brand-wave 1s var(--ease) .22s; }
}
@media (prefers-reduced-motion: no-preference) {
  .rd-brand:focus-visible::before { animation: rd-brand-wave 1s var(--ease); }
  .rd-brand:focus-visible::after { animation: rd-brand-wave 1s var(--ease) .22s; }
}
.rd-brand-name { font-weight: 700; letter-spacing: -0.04em; font-size: 1.35rem; white-space: nowrap; }
.rd-nav-links { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); font-size: 0.9375rem; font-weight: 500; }
.rd-nav-links a { position: relative; opacity: 0.85; transition: opacity .25s; }
.rd-nav-links a:hover, .rd-nav-links a[aria-current] { opacity: 1; }
.rd-nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.rd-nav-links a:hover::after, .rd-nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.rd-nav-end { justify-self: end; display: flex; align-items: center; gap: 0.75rem; }
.rd-nav .rd-btn { --b-bg: var(--paper); --b-fg: var(--ink); }
.rd-nav.is-light .rd-btn { --b-bg: var(--ink); --b-fg: var(--paper); }
.rd-nav .rd-btn:hover { --b-bg: var(--amber); --b-fg: var(--ink); }

.rd-menu-btn { display: none; align-items: center; gap: 0.6rem; height: 2.75rem; font-size: 0.9375rem; font-weight: 600; }
.rd-menu-btn-icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: currentColor; display: grid; place-content: center; gap: 5px; }
.rd-menu-btn-icon i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.rd-nav.is-light .rd-menu-btn-icon i { background: var(--paper); }
.rd-menu-btn[aria-expanded="true"] .rd-menu-btn-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.rd-menu-btn[aria-expanded="true"] .rd-menu-btn-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.rd-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); color: var(--paper);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem; display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
}
.rd-menu li a { display: block; font-size: clamp(3rem, 14vw, 5rem); font-weight: 600; letter-spacing: -0.06em; line-height: 1; padding-block: 0.3rem; }
.rd-menu li { opacity: 0; transform: translateY(30px); animation: rd-rise .8s var(--ease) forwards; animation-delay: calc(var(--k) * 60ms + 60ms); }
.rd-menu-foot { display: grid; gap: .4rem; color: rgba(246, 243, 238, .56); padding-top: 2rem; }
body.rd-menu-open { overflow: hidden; }
body.rd-menu-open .rd-nav { color: var(--paper); }
body.rd-menu-open .rd-nav .rd-menu-btn-icon i { background: var(--ink); }
@media (max-width: 1080px) {
  .rd-nav { grid-template-columns: 1fr auto; }
  .rd-nav-links { display: none; }
  .rd-menu-btn { display: inline-flex; }
}
@media (max-width: 520px) { .rd-nav .rd-btn { display: none; } }

/* ---------- Page transition: a curtain with a curved edge ---------- */
.rd-curtain { position: fixed; inset: 0; z-index: 250; pointer-events: none; visibility: hidden; }
.rd-curtain-sheet { position: absolute; left: -10vw; right: -10vw; top: -22vh; bottom: -22vh; background: var(--ink); }
/* Arriving from another page of the site: covered from the first paint, then lifted by rd.js */
.rd-arriving .rd-curtain { visibility: visible; }

/* ---------- Motion ---------- */
@keyframes rd-rise { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(40px); filter: blur(10px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Headlines come into focus word by word */
.js [data-split] .rd-w { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(0.25em); transition: opacity 1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--k) * 55ms); }
.js [data-split].is-in .rd-w { opacity: 1; filter: none; transform: none; }

/* Text that lights up as it's read */
.js [data-words] .rd-word { color: var(--text-3); transition: color .45s ease; }
.js [data-words] .rd-word.is-edge { color: var(--accent); }
.js [data-words] .rd-word.is-on { color: var(--text); }

/* A phrase that swaps for the next one, through a blur */
.rd-swap { display: inline-grid; vertical-align: bottom; }
.rd-swap > span { grid-area: 1 / 1; white-space: nowrap; color: var(--accent); transition: opacity .7s var(--ease), filter .8s var(--ease), transform .8s var(--ease); }
.rd-swap > span:not(.is-on) { opacity: 0; filter: blur(16px); transform: translateY(0.18em); }
.rd-swap > span.is-out { transform: translateY(-0.18em); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-split] .rd-w { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .js [data-words] .rd-word { color: var(--text); }
  .rd-menu li { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   Home hero: a round window onto the reel that opens to fill the screen
   ========================================================================== */
.rd-ohero { --x: 72%; --y: 38%; --r: 24svh; position: relative; height: 230vh; background: var(--ink); }
.rd-ohero-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.rd-ohero-spot { position: absolute; right: 5vw; top: 12svh; width: min(44svh, 31vw); aspect-ratio: 1; pointer-events: none; z-index: 1; }
/* The logo fills the circle, then fades (and swells a little) on the first scroll to show the reel underneath */
.rd-ohero-logo {
  position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); border-radius: 50%;
  opacity: clamp(0, calc(1 - var(--p, 0) * 9), 1);
  transform: scale(calc(1 + var(--p, 0) * 0.6));
  filter: blur(calc(var(--p, 0) * 40px));
}
/* Radio waves around the circle (a still 2.2 circles across). As the reel opens they expand with it, running a little
   ahead of its edge, and fade out on the way. */
.rd-waves {
  position: absolute; left: -60%; top: -60%; width: 220%; height: 220%; max-width: none;
  transform: scale(calc(1 + (var(--k, 1) - 1) * 1.25)); will-change: transform, opacity;
  opacity: clamp(0, calc(1 - var(--p, 0) * 3.2), 1);
}
.rd-ohero-media {
  position: absolute; inset: 0; z-index: 0;
  clip-path: circle(var(--r) at var(--x) var(--y));
  background: var(--ink-2);
}
.rd-ohero-media video { width: 100%; height: 100%; object-fit: cover; }
.rd-ohero-media::after { content: ""; position: absolute; inset: 0; background: rgba(13, 10, 10, calc(0.3 * (1 - var(--p, 0)))); }
.rd-ohero-copy {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: var(--nav-h); padding-bottom: clamp(2rem, 5svh, 3.5rem);
  opacity: calc(1 - var(--p, 0) * 2.4);
  filter: blur(calc(var(--p, 0) * 18px));
  transform: translateY(calc(var(--p, 0) * -6svh));
}
.rd-ohero-copy .rd-mega { max-width: 11.5ch; }
.rd-ohero-foot { margin-top: clamp(1.75rem, 4svh, 3rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; }
.rd-ohero-foot .rd-lead { max-width: 38ch; }
.rd-ohero-cap {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(1.5rem, 4svh, 3rem);
  display: flex; justify-content: space-between; align-items: end; gap: 1.5rem;
  opacity: calc((var(--p, 0) - 0.75) * 4); color: var(--paper);
}
.rd-ohero-cap b { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.rd-ohero-cap b span { display: block; color: rgba(246, 243, 238, 0.6); }
@media (max-width: 800px) {
  /* Phones: a smaller logo and no buttons under the lead, so the logo and the headline each get room to breathe */
  .rd-ohero-spot { right: auto; left: 50%; top: calc(var(--nav-h) + 3svh); width: min(56vw, 26svh); transform: translateX(-50%); }
  .rd-ohero-foot { flex-direction: column; align-items: start; }
  .rd-ohero-foot .rd-actions { display: none; }
}
/* Short phones (an SE with its browser bars): the headline alone nearly fills the screen, so it steps down a size */
@media (max-width: 800px) and (max-height: 620px) {
  .rd-ohero-copy .rd-mega { font-size: 2.85rem; }
  .rd-ohero-spot { width: min(56vw, 24svh); }
  .rd-ohero-cap { flex-direction: column; align-items: start; }
}

/* ==========================================================================
   Inner-page hero (white, like the reference's subpages)
   ========================================================================== */
.rd-phero { padding-top: calc(var(--nav-h) + clamp(4rem, 13vh, 10rem)); padding-bottom: clamp(3rem, 7vw, 6rem); }
.rd-phero .rd-display { max-width: 13ch; }
.rd-phero .rd-mega { max-width: 11.5ch; }
.rd-phero .rd-lead { margin-top: clamp(1.75rem, 3vw, 2.75rem); max-width: 28ch; }
.rd-phero .rd-actions { margin-top: clamp(2rem, 4vw, 3rem); }
.rd-crumbs { display: flex; gap: .6rem; align-items: center; font-weight: 600; letter-spacing: -0.02em; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.rd-crumbs a { color: var(--text-2); }
.rd-crumbs a:hover { color: var(--text); }
.rd-crumbs span[aria-hidden] { color: var(--accent); }
/* Solutions hero: three bars beside the title */
.rd-sol-hero { position: relative; }
.rd-levels {
  position: absolute; right: 0; bottom: calc(var(--fs-mega) * 0.075); width: min(27vw, 48svh, 490px); height: auto; pointer-events: none;
}
@media (max-width: 800px) {
  .rd-levels { position: relative; bottom: auto; width: min(50vw, 26svh); margin: 0 auto 2rem; }
}
/* Work hero: a field of dots beside the title, in the logo's diagonal stripes */
.rd-work-hero { position: relative; }
.rd-dots {
  position: absolute; right: 0; bottom: calc(var(--fs-mega) * 0.075); width: min(26vw, 48svh, 490px); height: auto; pointer-events: none;
}
@media (max-width: 800px) {
  .rd-dots { position: relative; bottom: auto; width: min(58vw, 30svh); margin: 0 auto 2.5rem; }
}
/* Dark photo hero (dental) */
.rd-phero--photo { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(2.5rem, 6vh, 4rem); isolation: isolate; color: var(--paper); }
.rd-phero--photo .rd-display { max-width: 18ch; font-size: clamp(2.8rem, 6.6vw, 7.6rem); }
.rd-phero--photo .rd-lead { max-width: 32ch; }
.rd-phero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.rd-phero-bg img { width: 100%; height: 100%; object-fit: cover; }
.rd-phero--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(13,10,10,.94), rgba(13,10,10,.4) 60%, rgba(13,10,10,.25)); }
.rd-phero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-top: clamp(1.75rem, 4svh, 3rem); }
.rd-phero-foot .rd-lead { margin-top: 0; }

/* A full-width picture that opens out as it scrolls in */
.rd-grow { --p: 1; }
.js .rd-grow { --p: 0; }
.rd-grow-frame {
  position: relative; height: min(100svh, 60vw); overflow: hidden; background: var(--ink-2);
  clip-path: inset(0 calc((1 - var(--p)) * var(--gutter)) round calc((1 - var(--p)) * var(--radius)));
}
.rd-grow-frame img, .rd-grow-frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.15 - var(--p) * 0.15)); }
.is-light .rd-grow-frame, .is-paper .rd-grow-frame { background: var(--paper-2); }

/* ==========================================================================
   Intro (white): headline with the swapping phrase, lit paragraph, quick links
   ========================================================================== */
.rd-intro-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(2.5rem, 5vw, 4rem); align-items: end; }
.rd-intro .rd-display { grid-column: 1 / span 8; max-width: 14ch; }
.rd-intro-text { grid-column: 9 / -1; font-size: clamp(1.25rem, 1.75vw, 1.75rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; max-width: 26ch; padding-bottom: .3em; }
/* Tall enough to be a pause between the film and the work, with the words in the middle of it */
.rd-intro { min-height: 92svh; display: flex; align-items: center; }
.rd-intro > .rd-wrap { width: 100%; }
@media (max-width: 900px) {
  .rd-intro { min-height: 0; }
  .rd-intro .rd-display, .rd-intro-text { grid-column: 1 / -1; }
}

/* ==========================================================================
   Work: pinned, sideways carousel of big case cards. The card nearest the
   middle comes forward (--f, rd.js); the rest sit back and fade at the edges.
   ========================================================================== */
.rd-hwork { position: relative; }
.rd-hwork-stage { padding-top: var(--section); }
.rd-hwork-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vh, 2.5rem); }
.rd-hwork-title { display: grid; gap: clamp(.75rem, 1.4vw, 1.25rem); justify-items: start; }
.rd-hwork-meta { display: grid; justify-items: end; gap: .45rem; text-align: right; padding-bottom: .35em; }
.rd-hwork-count { font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; color: var(--text-3); }
.rd-hwork-count b { display: inline-block; font-weight: 500; color: var(--accent); }
.rd-hwork-name { display: inline-block; font-size: clamp(1.15rem, 1.8vw, 1.9rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; }
.rd-hwork-track { position: relative; display: flex; gap: var(--gap); padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--section); }
.rd-hwork-track::-webkit-scrollbar { display: none; }
.rd-hwork.is-pinned .rd-hwork-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; padding: calc(var(--nav-h) + 1.75rem) 0 clamp(2.5rem, 6vh, 4rem); display: flex; flex-direction: column;
  /* The cards fade out into the edges of the screen rather than being cut off */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
/* rd.js moves the track until the last card rests in the middle */
.rd-hwork.is-pinned .rd-hwork-track { overflow: visible; flex: 1; min-height: 0; padding-bottom: 0; will-change: transform; }
.rd-hwork .rd-h2 { margin: 0; }
.rd-wcard {
  --f: 1;
  position: relative; flex: none; width: min(82vw, 1500px); height: clamp(26rem, 68svh, 52rem);
  border-radius: var(--radius); overflow: hidden; background: var(--ink-2); color: var(--paper);
  scroll-snap-align: center; isolation: isolate; transform-origin: 50% 50%;
}
.rd-hwork.is-pinned .rd-wcard { height: auto; }
/* The photo is wider than its card, so it can drift against the motion */
/* The frame runs a pixel past the card on every side (the card's rounded clip trims it). The shade behind the text
   is part of the photo itself: the photo fades out towards the bottom over the frame's near-black, so no edge of a
   separate shade layer can leave a bright hairline while the card moves. (Fade = 1 - the old overlay's darkness.) */
.rd-wcard-img { position: absolute; inset: -1px; z-index: -1; overflow: hidden; background: rgb(10, 8, 8); }
.rd-wcard-img img {
  position: absolute; top: 0; left: -10%; width: 120%; max-width: none; height: 100%; object-fit: cover; scale: 1.02; transition: scale 1.8s var(--ease);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .12) 22%, rgba(0, 0, 0, .4) 40%, rgba(0, 0, 0, .8) 56%, #000 68%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .12) 22%, rgba(0, 0, 0, .4) 40%, rgba(0, 0, 0, .8) 56%, #000 68%);
}
.rd-wcard:hover .rd-wcard-img img { scale: 1.07; }
.rd-wcard-body { position: absolute; left: 0; bottom: 0; padding: clamp(1.5rem, 3.2vw, 3.25rem); max-width: 62rem; text-shadow: 0 1px 2px rgba(10, 8, 8, .35), 0 4px 30px rgba(10, 8, 8, .55); opacity: calc(0.25 + var(--f) * 0.75); transform: translateY(calc((1 - var(--f)) * 2rem)); }
.rd-wcard-num { display: block; margin-bottom: 1rem; font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; color: var(--amber); }
.rd-wcard-title { font-size: clamp(2.2rem, 4.6vw, 5rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95; text-wrap: balance; }
.rd-wcard-title span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: .6rem; max-width: 34ch; font-size: clamp(1.15rem, 1.9vw, 2rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; color: rgba(246, 243, 238, 0.86); }
.rd-wcard .rd-arrow { position: absolute; top: clamp(1.25rem, 2.6vw, 2.5rem); right: clamp(1.25rem, 2.6vw, 2.5rem); color: var(--paper); background: rgba(246, 243, 238, .12); border-color: transparent; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rd-wcard:hover .rd-arrow { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: rotate(-45deg); }
.rd-wcard--cta { background: var(--paper); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 3.2vw, 3.25rem); }
.rd-wcard--cta > * { position: relative; }
.rd-wcard--cta .rd-wcard-title { max-width: 9ch; font-size: clamp(3.2rem, 8.4vw, 9.5rem); }
.rd-wcard--cta .rd-wcard-title span { color: rgba(13, 10, 10, 0.5); max-width: 22ch; margin-top: 1rem; font-size: clamp(1.3rem, 2.3vw, 2.5rem); }
.rd-wcard--cta .rd-arrow { position: static; color: var(--orange); background: transparent; border-color: currentColor; }
.rd-wcard--cta:hover .rd-arrow { background: var(--orange); border-color: var(--orange); color: var(--white); transform: none; }
@media (max-width: 800px) {
  .rd-wcard, .rd-wcard--cta { width: 86vw; height: 68svh; }
  .rd-hwork-stage { padding-top: clamp(2rem, 8vw, 3.5rem); }
  .rd-hwork-head { flex-direction: column; align-items: flex-start; }
  .rd-hwork-meta { justify-items: start; text-align: left; padding: 0; }
}

/* ==========================================================================
   Stacking cards (Solutions): a grainy colour ground each, the photo in a ring of stripes; the one underneath dims
   ========================================================================== */
.rd-stack { display: grid; gap: clamp(1.5rem, 4vh, 3rem); }
.rd-scard {
  --dim: 0; --h: min(calc(100svh - var(--nav-h) - 8rem), 46rem); --pad: clamp(1.5rem, 3.2vw, 3.25rem); --c: var(--red);
  --text: var(--ink); --accent: var(--ink);
  position: sticky; top: calc(var(--nav-h) + var(--i) * 1.15rem);
  /* A fixed height, so no card can be taller than the others */
  height: var(--h);
  padding: var(--pad);
  border-radius: var(--radius); background: var(--c) 0 0 / 600px; color: var(--text);
  transform-origin: 50% 0; transform: scale(calc(1 - var(--dim) * 0.05));
  overflow: hidden;
}
.rd-scard--1 { --text: var(--paper); --accent: var(--sand); }
.rd-scard--2 { --c: var(--orange); }
.rd-scard--3 { --c: var(--amber); }
.rd-scard::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: calc(var(--dim) * 0.6); pointer-events: none; }
.rd-scard-main { position: relative; z-index: 1; height: 100%; width: 50%; display: flex; flex-direction: column; }
.rd-scard-num { font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 600; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.rd-scard .rd-btn { --b-bg: var(--ink); --b-fg: var(--paper); }
.rd-scard .rd-btn:hover { --b-bg: var(--paper); --b-fg: var(--ink); }
/* Sized so the longest title ("SEO & Paid Ads.") still fits one line beside the picture */
.rd-scard-title { margin-top: clamp(1rem, 2vw, 1.75rem); font-size: min(5.2vw, 6rem); font-weight: 600; letter-spacing: -0.058em; line-height: 0.9; white-space: nowrap; }
.rd-scard-tag { margin-top: 1.25rem; font-size: clamp(1.2rem, 1.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.035em; color: var(--accent); }
.rd-scard-line { margin-top: auto; padding-top: 2rem; font-size: clamp(1.1rem, 1.5vw, 1.45rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; max-width: 32ch; }
.rd-scard-main .rd-actions { margin-top: 1.75rem; }
/* Always a square, so photo and rings line up: the height of the card, or half its width if that is less. The arch
   stands on the bottom edge, the discs are centred; the stripes are its background, the photo sits in the middle */
.rd-scard-media { position: absolute; right: 0; top: 0; bottom: 0; margin-block: auto; width: min(50%, var(--h)); aspect-ratio: 1; background: 0 0 / 100% 100% no-repeat; }
.rd-scard--2 .rd-scard-media { margin-bottom: 0; }
.rd-scard-media img { position: absolute; left: 20%; top: 20%; width: 60%; height: 60%; object-fit: cover; border-radius: 50%; }
.rd-scard--2 .rd-scard-media img { left: 21.6%; width: 56.8%; top: 20.6%; height: 79.4%; border-radius: 999px 999px 0 0; }
.rd-scard--3 .rd-scard-media img { left: 22%; top: 22%; width: 56%; height: 56%; }
@media (max-width: 900px) {
  /* One fixed height for every card; the picture takes whatever room the words leave, in the bottom right corner */
  .rd-scard { display: flex; flex-direction: column; height: min(calc(100svh - var(--nav-h) - 4rem), 40rem); top: calc(var(--nav-h) + var(--i) * 0.6rem); }
  .rd-scard-main { flex: none; width: auto; height: auto; }
  .rd-scard-title { font-size: clamp(2.2rem, 10.5vw, 3.6rem); }
  .rd-scard-tag { margin-top: .75rem; }
  .rd-scard-line { padding-top: 1rem; margin-top: 0; }
  .rd-scard-main .rd-actions { margin-top: 1.25rem; }
  .rd-scard-media { position: relative; flex: 1; min-height: 0; width: auto; align-self: flex-end; margin: 1rem calc(var(--pad) * -1) calc(var(--pad) * -1) 0; }
  .rd-scard--2 .rd-scard-media { margin-bottom: calc(var(--pad) * -1); }
}

/* ==========================================================================
   What you get (home): six grainy posters; one band of stripes runs through them all
   ========================================================================== */
.rd-posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(3rem, 5vw, 5rem) var(--gap); list-style: none; }
.rd-poster-art { overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.rd-poster-art img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.rd-poster-title { margin-top: 1.5rem; font-size: clamp(1.7rem, 2.6vw, 2.9rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.rd-poster-line { margin-top: .8rem; max-width: 36ch; font-size: var(--fs-body); font-weight: 500; letter-spacing: -0.015em; line-height: 1.4; color: var(--text-2); text-wrap: pretty; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .rd-poster:hover .rd-poster-art img { transform: scale(1.035); } }
/* Phones and tablets: one list, each poster at 40% beside its title and line, so the six fit in about one screen
   and the words lead rather than caption the art */
@media (max-width: 800px) {
  .rd-posters { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .js .rd-poster[data-reveal] { transition-delay: 0s; }
  .rd-poster { display: grid; grid-template-columns: 40% minmax(0, 1fr); column-gap: 1rem; align-items: center; }
  .rd-poster-art { grid-row: span 2; }
  .rd-poster-title { margin-top: 0; font-size: 1.5rem; align-self: end; }
  .rd-poster-line { margin-top: .4rem; font-size: .95rem; align-self: start; }
}

/* ==========================================================================
   The AMP Deck card (front: the step; back: what's inside). Sizes in card
   widths (cqw), so the whole card scales as one piece.
   ========================================================================== */
.ac { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 5 / 7; perspective: 1800px; }
.ac-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(calc(var(--flip, 0) * 180deg)); }
.ac-face {
  position: absolute; inset: 0; overflow: hidden;
  border: 2.6cqw solid #fff; border-radius: 6cqw;
  box-shadow: inset 0 0 0 1.1cqw var(--black), 0 8cqw 14cqw -6cqw rgba(0, 0, 0, 0.7);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.ac-front { background: var(--c); color: var(--fg); }
/* The face is all picture, inside the black line */
.ac-art { position: absolute; inset: 1.1cqw; width: calc(100% - 2.2cqw); height: calc(100% - 2.2cqw); object-fit: cover; border-radius: 2.4cqw; }
/* Playing-card corners: the number over the logo disc, the bottom one upside down */
.ac-corner { position: absolute; display: grid; justify-items: center; gap: 1.6cqw; font-size: 7.5cqw; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.ac-corner::after { content: ""; width: 7cqw; height: 7cqw; border-radius: 50%; background: linear-gradient(135deg, var(--black) 0 20%, var(--red) 20% 40%, var(--orange) 40% 60%, var(--amber) 60% 80%, var(--sand) 80%); box-shadow: 0 0 0 0.6cqw #fff; }
.ac-corner--tl { top: 6cqw; left: 6.5cqw; }
.ac-corner--br { color: var(--paper); bottom: 6cqw; right: 6.5cqw; transform: rotate(180deg); }
.ac-name { font-size: 15cqw; font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; text-wrap: balance; }
.ac-back {
  transform: rotateY(180deg); color: var(--paper);
  background: radial-gradient(120% 70% at 50% -10%, color-mix(in srgb, var(--c) 42%, transparent), transparent 62%), #0e0b0b;
  padding: 10cqw 8cqw 8cqw; display: flex; flex-direction: column; gap: 3cqw;
}
.ac-back-top { display: flex; justify-content: space-between; align-items: center; font-size: 4.4cqw; font-weight: 600; color: color-mix(in srgb, var(--c) 80%, #fff); text-transform: uppercase; letter-spacing: 0.06em; }
.ac-back-top img { width: 10cqw; height: 10cqw; border-radius: 50%; box-shadow: 0 0 0 .6cqw #fff; }
.ac-back .ac-name { font-size: 12cqw; }
.ac-back .ac-name::after { content: ""; display: block; height: 2.4cqw; margin-top: 4cqw; border-radius: 2cqw; background: linear-gradient(90deg, var(--c) 0 40%, color-mix(in srgb, var(--c) 40%, #000) 40%); }
.ac-list { display: grid; flex: 1; align-content: start; margin-top: 1cqw; }
.ac-list li { display: flex; align-items: center; gap: 3.4cqw; padding: 2.3cqw 0; border-bottom: .4cqw solid rgba(246, 243, 238, .12); font-size: 5.4cqw; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.ac-list li::before { content: ""; flex: none; width: 6cqw; height: 6cqw; border-radius: 50%; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231c1717' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.ac-count { display: flex; justify-content: space-between; align-items: center; font-size: 4.4cqw; font-weight: 600; color: rgba(246, 243, 238, .6); }
.ac-count b { color: var(--c); }

/* ==========================================================================
   How it works: the deck swings along an arc; each card flips as its step arrives
   ========================================================================== */
.rd-deck { position: relative; }
.rd-deck-stage { padding-block: var(--section); }
.rd-deck-head { margin-bottom: 3rem; }
.rd-deck-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); padding-inline: var(--gutter); }
.rd-deck-card { position: relative; }
.rd-deck-card .ac { --flip: 1; }
.rd-deck-card button { position: absolute; inset: 0; z-index: 3; border-radius: 6%; }
.rd-deck-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem var(--gap); padding-inline: var(--gutter); margin-bottom: 3rem; }
.rd-deck-progress { display: none; }

.rd-deck.is-live { height: 560vh; }
.rd-deck.is-live .rd-deck-stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden; padding: 0;
}
.rd-deck.is-live .rd-deck-copy { position: absolute; z-index: 2; left: var(--gutter); top: 0; bottom: 0; width: min(42vw, 44rem); padding: calc(var(--nav-h) + 1.5rem) 0 clamp(1.5rem, 5vh, 3rem); display: flex; flex-direction: column; justify-content: space-between; }
.rd-deck.is-live .rd-deck-head { margin: 0; }
.rd-deck.is-live .rd-deck-head .rd-h2 { font-size: clamp(2.6rem, 5vw, 5.6rem); }
.rd-deck.is-live .rd-deck-cards { position: absolute; inset: 0; display: block; padding: 0; }
.rd-deck.is-live .rd-deck-card {
  --cw: min(24vw, 52svh * 5 / 7, 400px);
  position: absolute; left: 72%; top: 55%; width: var(--cw); margin: calc(var(--cw) * -0.7) 0 0 calc(var(--cw) / -2);
  transform-origin: 50% calc(50% + var(--R, 1600px));
  will-change: transform;
}
.rd-deck.is-live .rd-deck-card .ac { --flip: var(--f, 0); transform: scale(var(--s, 1)); }
.rd-deck.is-live .rd-deck-head { padding: 0; }
.rd-deck.is-live .rd-deck-steps { grid-template-columns: 1fr; padding: 0; margin: 0; }
.rd-deck.is-live .rd-deck-progress { display: flex; }
.rd-deck.is-live .rd-deck-steps > * { grid-area: 1 / 1; transition: opacity .6s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.rd-deck.is-live .rd-deck-steps > :not(.is-on) { opacity: 0; transform: translateY(24px); filter: blur(10px); pointer-events: none; }
.rd-deck-step-kicker { display: flex; gap: 1rem; align-items: baseline; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); margin-bottom: 1rem; }
.rd-deck-step-kicker span:last-child { color: var(--text-2); }
.rd-deck-step-name { font-size: clamp(2.6rem, 5.6vw, 6.4rem); font-weight: 600; letter-spacing: -0.058em; line-height: 0.9; color: var(--t, var(--text)); }
.rd-deck-step p { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.35vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; max-width: 36ch; color: var(--text-2); }
.rd-deck-step-out { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.rd-deck-step-out li { font-size: .875rem; font-weight: 500; padding: .45rem .95rem; border-radius: 999px; background: var(--ink-3); color: var(--text-2); }
.rd-deck-step-out li:first-child { background: var(--paper); color: var(--ink); font-weight: 600; }
/* In the step's own colour, so it stands out from the words */
.rd-deck-open { --b-bg: var(--t); --b-fg: var(--tf); margin-top: 1.75rem; }
.rd-deck-open:hover { --b-bg: var(--paper); --b-fg: var(--ink); }
.rd-deck-progress { gap: .5rem; margin-top: 2rem; }
.rd-deck-progress i { height: 3px; flex: 1; max-width: 4.5rem; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.rd-deck-progress i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(var(--f, 0)); }
@media (max-width: 900px) {
  .rd-deck.is-live { height: 480vh; }
  .rd-deck.is-live .rd-deck-copy { right: var(--gutter); width: auto; }
  .rd-deck.is-live .rd-deck-card { --cw: min(50vw, 38svh * 5 / 7); left: 50%; top: 52%; }
  .rd-deck.is-live .rd-deck-step p, .rd-deck.is-live .rd-deck-step-out, .rd-deck.is-live .rd-deck-progress { display: none; }
  .rd-deck-step-name { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .rd-deck-open { margin-top: 1rem; }
}

@media (min-width: 901px) and (max-height: 780px) {
  /* Short screens: keep the button in view */
  .rd-deck.is-live .rd-deck-head .rd-h2 { font-size: clamp(2.2rem, 6.5svh, 3.4rem); }
  .rd-deck.is-live .rd-deck-step p { margin-top: .8rem; font-size: 1rem; }
  .rd-deck.is-live .rd-deck-step-kicker { margin-top: 0; margin-bottom: .6rem; }
  .rd-deck-step-out { margin-top: .9rem; }
  .rd-deck-open { margin-top: 1rem; height: 2.9rem; }
  .rd-deck-progress { margin-top: 1.1rem; }
}

/* The AMP Deck, named in a step's text. In the sheet it sits on the card's sand, so it is the logo's red there. */
.rd-decklink { color: var(--amber); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .3s; }
.rd-decklink:hover { color: var(--paper); }
.rd-sheet-head .rd-decklink { color: var(--red); }
.rd-sheet-head .rd-decklink:hover { color: var(--ink); }

/* Home: no section title, so the step names are the titles; The AMP Deck is linked under the cards */
.rd-deck--steps .rd-deck-step-name { font-size: clamp(3.4rem, min(8.4vw, 17svh), 10rem); }
.rd-deck-link { display: block; width: fit-content; margin: 2.5rem auto 0; font-size: clamp(1.4rem, 2vw, 2.1rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; white-space: nowrap; }
.rd-deck-link > span:first-of-type { display: inline-block; color: var(--accent); transition: transform .5s var(--ease); }
.rd-deck-link:hover > span:first-of-type { transform: translate(3px, -3px); }
.rd-deck.is-live .rd-deck-link { position: absolute; z-index: 3; left: 72%; top: 86svh; margin: 0; padding: .5rem; transform: translateX(-50%); }
.rd-deck--steps.is-live .rd-deck-card { top: 51%; }
@media (min-width: 901px) { .rd-deck--steps.is-live .rd-deck-copy > :last-child { margin-block: auto; } }
@media (max-width: 900px) {
  .rd-deck--steps .rd-deck-step-name { font-size: clamp(3rem, 14.5vw, 6rem); }
  /* The card fills the band between the "How it works" label (its bottom sits at nav + 3rem) and The AMP Deck link
     (at 65svh), with about 2rem clear above and 1rem below, so on short phones it never runs into the label. `top` is
     the card's centre (it is pulled up by 0.7 of its width, half its 5:7 height). */
  .rd-deck--steps.is-live .rd-deck-card { --cw: min(58vw, (65svh - var(--nav-h) - 6rem) * 5 / 7); top: calc((var(--nav-h) + 5rem + 65svh - 1rem) / 2); }
  .rd-deck.is-live .rd-deck-link { left: 50%; top: 65svh; }
}

/* The step sheet (opened from a card) */
.rd-sheet { margin: auto; width: min(1180px, 94vw); max-height: 92svh; border: 0; border-radius: var(--radius); padding: 0; background: var(--ink-2); color: var(--text); overflow: auto; overscroll-behavior: contain; scrollbar-color: rgba(246, 243, 238, .25) transparent; }
.rd-sheet::backdrop { background: rgba(13, 10, 10, 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rd-sheet[open] { animation: rd-sheet-in .6s var(--ease); }
@keyframes rd-sheet-in { from { opacity: 0; transform: translateY(40px) scale(0.98); } }
.rd-sheet-card { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2.5rem; --sp: clamp(1.5rem, 4vw, 3.5rem); padding: 0 var(--sp) var(--sp); }
.rd-sheet-card[hidden] { display: none; }
/* The header: the card's colour, the words on plain ground, the picture fading in from the right; the stripes under it */
.rd-sheet-head { grid-column: 1 / -1; position: relative; margin-inline: calc(var(--sp) * -1); min-height: clamp(20rem, 36vw, 27rem); display: flex; align-items: flex-end; overflow: hidden; background: var(--c); color: var(--fg); }
.rd-sheet-head > img { position: absolute; right: 0; top: 0; height: 100%; width: 50%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%); mask-image: linear-gradient(90deg, transparent, #000 22%); }
.rd-sheet-head > div { position: relative; width: 54%; padding: var(--sp); padding-bottom: calc(var(--sp) + 1.25rem); display: grid; gap: 1.1rem; }
.rd-sheet-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: url(/rd/art/footer-strip.webp) 0 0 / auto 57px repeat-x; }
.rd-sheet-k { font-weight: 600; letter-spacing: -0.02em; }
.rd-sheet-head h2 { font-size: clamp(3.2rem, 7.2vw, 6.6rem); font-weight: 600; letter-spacing: -0.06em; line-height: .86; }
.rd-sheet-head p { font-size: clamp(1.1rem, 1.45vw, 1.35rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.3; max-width: 32ch; text-wrap: pretty; }
.rd-sheet-side { grid-column: 1 / span 5; display: grid; gap: 1.75rem; align-content: start; }
.rd-sheet-out span { display: block; color: var(--text-2); font-size: var(--fs-small); margin-bottom: .5rem; }
.rd-sheet-out b { display: block; font-size: clamp(1.8rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--t); }
.rd-sheet-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.rd-sheet-chips li { font-size: .875rem; font-weight: 500; padding: .45rem .95rem; border-radius: 999px; background: var(--ink-3); }
.rd-sheet-extra span { display: block; color: var(--text-2); font-size: var(--fs-small); margin-bottom: .5rem; }
.rd-sheet-extra ul { display: grid; border-top: 1px solid var(--line); }
.rd-sheet-extra ul li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-block: .65rem; font-size: var(--fs-small); }
.rd-sheet-extra ul li em { color: var(--text-2); font-style: normal; text-align: right; }
.rd-sheet-list { grid-column: 7 / -1; counter-reset: s; border-top: 1px solid var(--line); align-self: start; }
.rd-sheet-list li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; align-items: baseline; padding-block: 1.05rem; border-bottom: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; }
.rd-sheet-list li::before { content: "0" counter(s); font-weight: 600; color: var(--t); }
.rd-sheet-close { position: sticky; top: 1.25rem; z-index: 2; display: block; width: 3rem; height: 3rem; margin: 1.25rem 1.25rem -4.25rem auto; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 1.4rem; line-height: 1; transition: background-color .3s, color .3s; }
.rd-sheet-close:hover { background: var(--paper); color: var(--ink); }
.rd-sheet-nav { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.75rem; }
.rd-sheet-nav button { font-weight: 600; letter-spacing: -0.02em; transition: color .3s; }
.rd-sheet-nav button:hover { color: var(--accent); }
@media (max-width: 800px) {
  .rd-sheet-side, .rd-sheet-list { grid-column: 1 / -1; }
  .rd-sheet-head { display: block; min-height: 0; }
  .rd-sheet-head > img { position: static; display: block; width: 100%; height: 13rem; object-position: 50% 50%; -webkit-mask-image: linear-gradient(to top, transparent, #000 22%); mask-image: linear-gradient(to top, transparent, #000 22%); }
  .rd-sheet-head > div { width: auto; padding-top: .5rem; gap: .9rem; }
  .rd-sheet-head p { max-width: none; }
}

/* ==========================================================================
   Proof
   ========================================================================== */
.rd-film { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.rd-film video { width: 100%; height: 100%; object-fit: cover; }
.rd-film-play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--paper); background: rgba(13, 10, 10, .25); transition: opacity .5s var(--ease); }
.rd-film-play-in { display: grid; place-items: center; gap: 1rem; text-align: center; }
.rd-film-icon { width: clamp(5.5rem, 10vw, 9rem); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); transition: transform .6s var(--ease), background-color .4s; }
.rd-film-icon svg { width: 30%; height: 30%; margin-left: 6%; }
.rd-film-play:hover .rd-film-icon { transform: scale(1.08); background: var(--amber); }
.rd-film-play b { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.rd-film-play small { display: block; font-size: .875rem; opacity: .7; font-weight: 500; }
.rd-film.is-playing .rd-film-play { opacity: 0; pointer-events: none; }

.rd-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.rd-tile { grid-column: span 4; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 2.6vw, 2.5rem); min-height: clamp(15rem, 24vw, 24rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; }
.rd-tile:nth-child(2) { --d: .1s; } .rd-tile:nth-child(3) { --d: .2s; }
.rd-tile b { font-size: clamp(5rem, 11vw, 11rem); font-weight: 600; letter-spacing: -0.07em; line-height: .8; }
.rd-tile p { font-size: clamp(1.05rem, 1.35vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; max-width: 24ch; }
@media (max-width: 800px) { .rd-tile { grid-column: 1 / -1; } }

.rd-quote { padding-top: var(--section); max-width: 72rem; margin-inline: auto; text-align: center; }
.rd-quote blockquote { font-size: clamp(2rem, 4.4vw, 4.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; text-wrap: balance; }
.rd-quote figcaption { margin-top: 2.5rem; display: inline-flex; align-items: center; gap: 1rem; text-align: left; }
.rd-quote img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.rd-quote figcaption span { display: grid; color: var(--text-2); font-size: var(--fs-small); }
.rd-quote figcaption b { color: var(--text); font-size: 1.05rem; }

/* ==========================================================================
   Duo cards (who it's for, closing calls to action)
   ========================================================================== */
.rd-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.rd-dcard {
  --text: var(--ink); --text-2: rgba(13,10,10,.55); --line: rgba(13,10,10,.12); --accent: var(--orange);
  position: relative; display: flex; flex-direction: column; gap: 2rem;
  min-height: clamp(26rem, 40vw, 42rem); padding: clamp(1.5rem, 3vw, 3rem);
  border-radius: var(--radius); background: var(--white); color: var(--ink);
  transition: transform .6s var(--ease);
}
.rd-dcard + .rd-dcard { --d: .1s; background: var(--paper); }
.rd-dcard.is-dark { background: var(--ink-3); color: var(--paper); --text: var(--paper); --text-2: rgba(246,243,238,.55); --line: rgba(246,243,238,.14); --accent: var(--amber); }
a.rd-dcard:hover { transform: translateY(-6px); }
.rd-dcard-label { font-weight: 600; letter-spacing: -0.02em; color: var(--accent); font-size: clamp(1rem, 1.3vw, 1.25rem); }
.rd-dcard-title { font-size: clamp(2.4rem, 5vw, 5.5rem); font-weight: 600; letter-spacing: -0.058em; line-height: .9; margin-top: -1rem; text-wrap: balance; }
.rd-dcard .rd-arrow { margin-top: auto; }
.rd-ticks { border-top: 1px solid var(--line); margin-top: auto; }
.rd-ticks li { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; padding-block: 1rem; border-bottom: 1px solid var(--line); font-size: clamp(1.05rem, 1.35vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.rd-ticks li::before { content: ""; width: 1.35rem; height: 1.35rem; margin-top: .1em; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.rd-ticks.is-no li { color: var(--text-2); }
.rd-ticks.is-no li::before { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 800px) { .rd-duo { grid-template-columns: 1fr; } .rd-dcard { min-height: 0; } }

/* ==========================================================================
   Manifesto (centred lines that light up) and the team strip
   ========================================================================== */
.rd-manifesto { text-align: center; display: grid; gap: .12em; font-size: clamp(2rem, 4.4vw, 4.8rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.04; }
.rd-manifesto p { text-wrap: balance; }
.rd-manifesto-sub { margin: clamp(2.5rem, 5vw, 4rem) auto 0; text-align: center; max-width: 52ch; color: var(--text-2); font-size: var(--fs-body); }
.rd-strip { overflow: hidden; }
.rd-strip-track { display: flex; gap: var(--gap); width: max-content; animation: rd-marquee 80s linear infinite; padding-block: 2rem; }
.rd-strip:hover .rd-strip-track { animation-play-state: paused; }
.rd-strip figure { flex: none; height: clamp(18rem, 30vw, 30rem); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); transform: rotate(var(--t, 0deg)); }
.rd-strip figure:nth-child(3n + 1) { --t: -2.5deg; }
.rd-strip figure:nth-child(3n + 2) { --t: 1.5deg; margin-top: 2rem; }
.rd-strip figure:nth-child(3n) { --t: -1deg; }
.rd-strip img { width: 100%; height: 100%; object-fit: cover; }
@keyframes rd-marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
@media (prefers-reduced-motion: reduce) { .rd-strip { overflow-x: auto; } .rd-strip-track { animation: none; } }

/* ==========================================================================
   Questions
   ========================================================================== */
.rd-faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; }
.rd-faq-intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; display: grid; gap: 1.75rem; justify-items: start; }
.rd-faq-intro .rd-h2 { font-size: clamp(2.6rem, 5.6vw, 6.25rem); }
.rd-faq-ask { display: grid; gap: .2rem; font-weight: 600; letter-spacing: -0.02em; }
.rd-faq-ask span { color: var(--text-2); font-weight: 500; }
.rd-faq-ask a:hover { color: var(--accent); }
.rd-faq-list { grid-column: 7 / -1; border-top: 1px solid var(--line); }
.rd-q { border-bottom: 1px solid var(--line); }
.rd-q summary { list-style: none; display: grid; grid-template-columns: 1fr auto 3rem; gap: 1.25rem; align-items: center; padding-block: clamp(1.5rem, 2.4vw, 2.25rem); cursor: pointer; }
.rd-q summary::-webkit-details-marker { display: none; }
.rd-q-text { font-size: clamp(1.35rem, 2.3vw, 2.3rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; transition: color .3s; }
.rd-q summary:hover .rd-q-text { color: var(--accent); }
.rd-q-stat { text-align: right; display: grid; justify-items: end; }
.rd-q-stat b { font-size: clamp(1.2rem, 1.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.04em; color: var(--accent); }
.rd-q-stat small { font-size: .8125rem; color: var(--text-3); white-space: nowrap; }
.rd-q-icon { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: background-color .3s, border-color .3s, color .3s; }
.rd-q-icon::before, .rd-q-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.rd-q-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .5s var(--ease); }
.rd-q[open] .rd-q-icon { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.rd-q[open] .rd-q-icon::after { transform: translate(-50%, -50%) rotate(0); }
.rd-q-body { padding: 0 4rem clamp(1.5rem, 2.4vw, 2.25rem) 0; color: var(--text-2); font-size: clamp(1.05rem, 1.3vw, 1.25rem); max-width: 56ch; }
.rd-q[open] .rd-q-body { animation: rd-open .6s var(--ease); }
@keyframes rd-open { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 900px) { .rd-faq-intro, .rd-faq-list { grid-column: 1 / -1; position: static; } }
@media (max-width: 600px) { .rd-q summary { grid-template-columns: 1fr 3rem; } .rd-q-stat { display: none; } .rd-q-body { padding-right: 0; } }

/* ==========================================================================
   Scorecard, contact, footer
   ========================================================================== */
.rd-score-embed { border-radius: var(--radius); overflow: hidden; background: #fff; min-height: 28rem; }

.rd-contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 4rem; }
.rd-contact-intro { grid-column: 1 / span 7; display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); align-content: start; justify-items: start; }
.rd-contact-intro .rd-display { max-width: 11ch; }
.rd-contact-lines { display: grid; gap: .25rem; font-size: var(--fs-lead); font-weight: 600; letter-spacing: -0.04em; }
.rd-contact-lines a { width: fit-content; }
.rd-contact-lines a:hover { color: var(--accent); }
.rd-form { grid-column: 9 / -1; display: grid; gap: 1.5rem; align-content: start; padding-top: .5rem; }
.rd-field { display: grid; gap: .4rem; }
.rd-field label { font-weight: 600; letter-spacing: -0.02em; }
.rd-field input, .rd-field textarea { width: 100%; font: inherit; font-size: 1.1rem; color: var(--text); background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; resize: vertical; transition: border-color .3s; }
.rd-field input:focus, .rd-field textarea:focus { outline: none; border-color: var(--orange); }
.rd-field.is-invalid input, .rd-field.is-invalid textarea { border-color: var(--red); }
.rd-error { font-size: .875rem; color: var(--red); }
.rd-error:empty { display: none; }
.rd-form-error { font-size: .9375rem; color: var(--red); }
.rd-form-error a { text-decoration: underline; }
.rd-form-submit { justify-self: start; }
.rd-form-submit:disabled { opacity: .6; cursor: wait; }
.rd-form.is-sent > :not(.rd-form-success) { display: none; }
.rd-form-success { display: grid; gap: .5rem; padding: 2rem; border-radius: var(--radius); background: var(--ink-2); }
.rd-form-success-title { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
@media (max-width: 900px) { .rd-contact-intro, .rd-form { grid-column: 1 / -1; } }

/* Contact page: the title with its animation, then the form */
.rd-ct-top { position: relative; }
.rd-ct-top .rd-mega { font-size: min(15vw, 18rem); } /* two short words, so it can go larger than the other titles */
/* Two speech bubbles */
.rd-voices { position: absolute; right: 0; bottom: 0; width: min(28vw, 46svh, 510px); height: auto; transform: scale(1.16); pointer-events: none; } /* the image has room around the bubbles for their echoes */
@media (max-width: 800px) {
  .rd-ct-top .rd-mega { font-size: 21vw; }
  .rd-voices { position: relative; bottom: auto; width: min(62vw, 34svh); margin: 0 auto 2.5rem; }
}
.rd-ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem clamp(3rem, 8vw, 9rem); align-items: start; }
.rd-ct-sec .rd-form { grid-column: auto; padding-top: 0; }
.rd-ct-sec .rd-field input, .rd-ct-sec .rd-field textarea, .rd-ct-sec .rd-form-success { background: color-mix(in srgb, var(--text) 4%, transparent); }
.rd-ct-sec .rd-field textarea { min-height: 13rem; }
.rd-ct-next { border-top: 1px solid var(--line); }
.rd-ct-next li { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.rd-ct-next b { font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 600; letter-spacing: -0.03em; }
.rd-ct-next p { color: var(--text-2); line-height: 1.4; max-width: 38ch; margin-top: .25rem; }
@media (max-width: 900px) {
  .rd-ct-grid { grid-template-columns: minmax(0, 1fr); }
  .rd-ct-intro { order: 1; }
}

.rd-footer { position: relative; background: var(--ink); padding-top: clamp(5rem, 9vw, 8rem); }
.rd-footer-big { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.rd-footer-big .rd-display { max-width: 12ch; }
.rd-footer-contact { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
/* The sunset at the very bottom of every page. --R is the sun's radius; the strip (stripes, then water) along the bottom
   edge is half that tall, the same depth as the sun's reflection. The closing line and all the site links stand on the
   horizon in the column left of the sun; the scene grows with them and the sun stays anchored to the bottom right. */
.rd-footer-scene {
  --R: min(28vw, 500px); --strip: calc(var(--R) * .5);
  position: relative; overflow: hidden; min-height: calc(var(--R) * 1.22 + var(--strip));
  padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: calc(var(--strip) + clamp(1.5rem, 2.6vw, 2.5rem));
}
.rd-footer-scene::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--strip); background: url(/rd/art/footer-strip.webp) 0 0 / auto 100% repeat-x; }
.rd-footer-scene > img { position: absolute; left: 80%; bottom: 0; width: calc(var(--R) * 2.5); max-width: none; height: auto; transform: translateX(-50%); }
.rd-footer-body { position: relative; }
.rd-footer-body > * { max-width: min(44rem, calc(80vw - var(--R) * 1.25 - var(--gutter, 2.5rem) - 2rem)); }
.rd-footer-line { max-width: 7.6em; font-size: min(4.2vw, 4.8rem); font-weight: 600; letter-spacing: -0.055em; line-height: .95; }
.rd-footer-line em { display: block; text-wrap: balance; font-style: normal; color: var(--accent); }
.rd-footer-grid { margin-top: clamp(2.5rem, 4vw, 3.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: space-between; column-gap: 2rem; row-gap: 2rem; }
.rd-footer-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.rd-footer-nav a { font-size: clamp(1.15rem, 1.5vw, 1.45rem); font-weight: 600; letter-spacing: -0.04em; }
.rd-footer-nav a:hover { color: var(--amber); }
.rd-footer-col { display: grid; gap: .35rem; align-content: start; font-size: var(--fs-small); color: var(--text-2); }
.rd-footer-col a:hover { color: var(--text); }
.rd-footer-col b { color: var(--text); font-weight: 600; margin-bottom: .5rem; }
.rd-footer address { font-style: normal; line-height: 1.7; }
.rd-footer-bottom { margin-top: clamp(2rem, 3.5vw, 3rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; color: var(--text-3); font-size: .8125rem; }
.rd-footer-bottom a:hover { color: var(--text); }
.rd-footer-bbb img { height: 40px; width: auto; }
/* Narrow screens: the words stack first, and the sun rises centred beneath them on the bottom edge */
@media (max-width: 800px) {
  .rd-footer-scene { --R: 44vw; padding-bottom: calc(var(--R) * 1.22 + var(--strip) + 2rem); }
  .rd-footer-scene > img { left: 50%; }
  .rd-footer-body > * { max-width: none; }
  .rd-footer-line { font-size: clamp(2.2rem, 10.5vw, 4rem); }
  .rd-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
}

/* Comparison pill */

/* ==========================================================================
   Service pages
   ========================================================================== */
.rd-statement { font-size: clamp(2rem, 4.6vw, 5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; max-width: 22ch; }

/* Pillars: three cards, staggered */
.rd-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; margin-top: var(--section); }
.rd-pillar { --g: url(/rd/art/service-ground-sand.webp); --c: var(--sand); background: var(--c); color: var(--ink); border-radius: var(--radius); overflow: hidden; }
.rd-pillar:nth-child(2) { --g: url(/rd/art/service-ground-3.webp); --c: var(--amber); margin-top: clamp(0rem, 8vw, 9rem); --d: .1s; }
.rd-pillar:nth-child(3) { --g: url(/rd/art/service-ground-1.webp); --c: var(--red); margin-top: clamp(0rem, 16vw, 18rem); --d: .2s; color: var(--paper); }
.rd-pillar img { width: 100%; height: auto; }
/* The grain fades out under the picture, so the words sit on plain colour */
.rd-pillar > div { background: linear-gradient(to bottom, transparent, var(--c) 3.5rem), var(--g) 0 0 / 600px; padding: clamp(1.25rem, 2vw, 2rem); padding-top: 2.5rem; padding-bottom: clamp(1.75rem, 2.6vw, 2.75rem); }
.rd-pillar-n { font-size: clamp(1.3rem, 1.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.04em; }
.rd-pillar h3 { margin-top: .6rem; font-size: clamp(2rem, 3.2vw, 3.4rem); font-weight: 600; letter-spacing: -0.055em; line-height: .92; }
.rd-pillar p { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.2vw, 1.2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }
/* The service pages' hero picture, beside the title */
.rd-svc-hero { position: relative; }
.rd-svc-art { position: absolute; right: 0; bottom: calc(var(--fs-display) * -.75); width: min(28vw, 50svh, 520px); height: auto; pointer-events: none; }
@media (max-width: 800px) { .rd-svc-art { position: relative; bottom: auto; width: min(64vw, 34svh); margin: 0 auto 2.5rem; } }
@media (max-width: 900px) { .rd-pillars { grid-template-columns: 1fr; } .rd-pillar:nth-child(n) { margin-top: 0; } }

/* ==========================================================================
   Dental
   ========================================================================== */
.rd-problems { border-top: 1px solid var(--line); }
.rd-problem { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 1rem; padding-block: clamp(2rem, 4vw, 3.5rem); border-bottom: 1px solid var(--line); align-items: baseline; }
.rd-problem h3 { grid-column: 1 / span 7; font-size: clamp(1.8rem, 3.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.rd-problem-body { grid-column: 9 / -1; display: grid; gap: 1rem; }
.rd-problem-body p { color: var(--text-2); }
.rd-problem-fix { font-size: var(--fs-small); font-weight: 600; color: var(--tone); display: inline-flex; gap: .5rem; align-items: center; }
.rd-problem-fix::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
@media (max-width: 900px) { .rd-problem h3, .rd-problem-body { grid-column: 1 / -1; } }

.rd-show { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; align-items: start; }
.rd-browser { grid-column: 1 / span 8; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); position: sticky; top: calc(var(--nav-h) + 1rem); }
.rd-browser-bar { display: flex; align-items: center; gap: .5rem; padding: .85rem 1rem; }
.rd-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.rd-browser-bar span { margin-left: 1rem; font-size: .8125rem; color: var(--text-3); background: var(--ink-3); padding: .25rem .9rem; border-radius: 999px; }
.rd-browser iframe { width: 100%; height: min(74svh, 48rem); border: 0; background: #fff; }
.rd-notes { grid-column: 9 / -1; border-top: 1px solid var(--line); }
.rd-note { width: 100%; text-align: left; display: grid; grid-template-columns: 2.5rem 1fr; gap: .5rem .75rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.rd-note b { font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 600; letter-spacing: -0.03em; color: var(--text-2); transition: color .3s; }
.rd-note .rd-num { padding-top: .35em; }
.rd-note-d { grid-column: 2; color: var(--text-2); display: none; }
.rd-note:hover b, .rd-note.is-on b { color: var(--text); }
.rd-note.is-on .rd-note-d { display: block; animation: rd-open .5s var(--ease); }
.rd-note.is-on .rd-num { color: var(--accent); }
@media (max-width: 1080px) { .rd-browser, .rd-notes { grid-column: 1 / -1; position: static; } }

/* Incoming-leads illustration (Ads step, inside the sheet) */
.rd-feed { display: grid; gap: .5rem; }
.rd-feed li { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; background: var(--ink-3); border-radius: 12px; padding: .75rem 1rem; font-size: .875rem; }
.rd-feed li i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.rd-feed li.is-urgent i { background: var(--red); }
.rd-feed li b { display: block; font-weight: 600; }
.rd-feed li em { color: var(--text-2); font-size: .8125rem; }

/* ==========================================================================
   Legal
   ========================================================================== */
.rd-legal { max-width: 46rem; }
.rd-legal h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; margin: 3.5rem 0 1rem; }
.rd-legal p, .rd-legal li { color: var(--text-2); font-size: 1.1rem; }
.rd-legal p + p { margin-top: 1rem; }
.rd-legal ul { display: grid; gap: .6rem; margin: 1rem 0; }
.rd-legal li { padding-left: 1.5rem; position: relative; }
.rd-legal li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 2px; background: var(--accent); }
.rd-legal strong { color: var(--text); font-weight: 600; }
.rd-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.rd-legal address { font-style: normal; color: var(--text-2); line-height: 1.8; }

/* ==========================================================================
   Who it's for: the live page's dark panel, made grand. Opens to full width
   as it scrolls in (--p from rd.js); photo left fading into black.
   ========================================================================== */
.rd-fitx { --p: 1; position: relative; padding-block: clamp(1rem, 2vw, 2rem); background: var(--ink); }
.js .rd-fitx { --p: 0; }
.rd-fitx-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  min-height: min(100svh, 72rem);
  background: #050505; color: #f4efe6;
  clip-path: inset(0 calc((1 - var(--p)) * var(--gutter)) round calc((1 - var(--p)) * var(--radius) * 1.6));
}
.rd-fitx-photo { position: absolute; inset: 0 50% 0 0; z-index: -1; overflow: hidden; }
.rd-fitx-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; filter: grayscale(1) contrast(1.05); transform: scale(calc(1.14 - var(--p) * 0.14)); }
.rd-fitx-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 45%, #050505), linear-gradient(transparent 65%, rgba(5, 5, 5, .85)); }
.rd-fitx-body { grid-column: 7 / -1; padding: clamp(4rem, 9vw, 8.5rem) calc(var(--gutter) * 2) clamp(3rem, 6vw, 5.5rem) 0; display: flex; flex-direction: column; justify-content: center; }
.rd-fitx-label { display: block; font-family: var(--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 230, .55); margin-bottom: 1.25rem; }
.rd-fitx-label.is-yes { color: var(--amber); }
.rd-fitx-title { margin: 0; font-size: clamp(3.4rem, 7.4vw, 9rem); font-weight: 800; line-height: .86; letter-spacing: -0.035em; text-transform: uppercase; color: var(--amber); text-wrap: balance; }
.rd-fitx-title em { color: inherit; }
.rd-fitx-lede { margin: clamp(1.75rem, 3vw, 2.5rem) 0 0; font-size: clamp(1.2rem, 1.7vw, 1.65rem); line-height: 1.35; letter-spacing: -0.02em; color: rgba(244, 239, 230, .78); max-width: 34ch; }
.rd-fitx-lede b { color: #f4efe6; font-weight: 700; }
.rd-fitx-cols { margin-top: clamp(2.25rem, 4vw, 3.5rem); padding-top: clamp(2rem, 3vw, 2.5rem); border-top: 1px solid rgba(244, 239, 230, .14); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.rd-fitx-list { display: grid; gap: .9rem; }
.rd-fitx-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .4rem; font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.35; letter-spacing: -0.015em; color: rgba(244, 239, 230, .92); }
.rd-fitx-list li::before { content: "✓"; color: var(--amber); font-weight: 700; }
.rd-fitx-list.is-no li { color: rgba(244, 239, 230, .5); }
.rd-fitx-list.is-no li::before { content: "✕"; color: rgba(244, 239, 230, .4); font-weight: 400; }
.rd-fitx-cta { margin-top: clamp(2.5rem, 4vw, 3.5rem); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.rd-fitx-cta > span { font-size: var(--fs-small); color: rgba(244, 239, 230, .55); }
.rd-fitx-btn { display: inline-flex; align-items: center; gap: .7rem; min-height: 4rem; padding: .9rem 2rem; line-height: 1.2; border-radius: 999px; background: var(--amber); color: #0c0407; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; transition: background-color .3s, transform .4s var(--ease); }
.rd-fitx-btn:hover { background: #f6b23a; transform: translateY(-2px); }
.rd-fitx-btn span { transition: transform .4s var(--ease); }
.rd-fitx-btn:hover span { transform: translateX(4px); }
.rd-fitx-line { margin: clamp(2.5rem, 4vw, 3.5rem) 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(244, 239, 230, .14); font-family: var(--mono); font-size: clamp(.8rem, .95vw, .95rem); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 230, .5); }
.rd-fitx-line b { color: var(--amber); font-weight: 700; }
@media (max-width: 900px) {
  .rd-fitx-panel { display: block; min-height: 0; }
  .rd-fitx-photo { position: relative; inset: auto; height: min(70svh, 34rem); }
  .rd-fitx-photo::after { background: linear-gradient(transparent 50%, #050505); }
  .rd-fitx-body { margin-top: -6rem; position: relative; padding: 0 calc(var(--gutter) * 1.5) 3.5rem; }
}
@media (max-width: 600px) { .rd-fitx-cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   Smooth scrolling (Lenis, set up in rd.js). Only the rules it needs: its
   stock sheet also turns off clicks on iframes, which would break the quiz.
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* ==========================================================================
   The chapter marker.
   ========================================================================== */
/* Chapter marker, bottom left: which section you're in and how far down the page you are */
.rd-chapter {
  position: fixed; left: var(--gutter); bottom: 1.15rem; z-index: 70; pointer-events: none;
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--paper);
  mix-blend-mode: difference;
  opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.rd-chapter.is-on { opacity: 1; transform: none; }
.rd-chapter-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rd-chapter-n { opacity: .55; }
.rd-chapter-label { display: inline-block; white-space: nowrap; }
.rd-chapter-bar { position: relative; width: 4.5rem; height: 1px; margin-left: .35rem; background: rgba(246, 243, 238, .3); }
.rd-chapter-bar i { position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--pp, 0)); }
@media (max-width: 760px) { .rd-chapter { display: none; } }

/* ==========================================================================
   Main pages (Work, Solutions, Approach): the expanded versions of what the homepage previews
   ========================================================================== */

/* Work: every case study as a full-width card, its name and line over the photo */
.rd-cases-sec { padding-top: 0; }
.rd-cases { display: grid; gap: var(--gap); }
.rd-case { position: relative; display: block; min-height: clamp(26rem, 62vw, 52rem); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); color: var(--paper); isolation: isolate; }
.rd-case-img { position: absolute; inset: 0; z-index: -2; }
.rd-case-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.rd-case:hover .rd-case-img img { transform: scale(1.06); }
.rd-case::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(13,10,10,.92), rgba(13,10,10,.35) 55%, rgba(13,10,10,.1)); }
.rd-case-body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: clamp(.75rem, 1.4vw, 1.25rem); padding: clamp(1.5rem, 3.5vw, 3.5rem); max-width: 62rem; }
.rd-case-num { font-weight: 600; letter-spacing: -0.02em; color: var(--amber); }
.rd-case-title { font-size: clamp(2.6rem, 6.4vw, 7rem); font-weight: 600; letter-spacing: -0.058em; line-height: .88; text-wrap: balance; }
.rd-case-lead { font-size: clamp(1.1rem, 1.6vw, 1.55rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; color: rgba(246, 243, 238, .78); max-width: 40ch; }
.rd-case-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.rd-case-tags span { font-size: .875rem; font-weight: 500; padding: .4rem .9rem; border-radius: 999px; background: rgba(246, 243, 238, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rd-case .rd-arrow { position: absolute; top: clamp(1.25rem, 2.6vw, 2.5rem); right: clamp(1.25rem, 2.6vw, 2.5rem); color: var(--paper); background: rgba(246, 243, 238, .12); border-color: transparent; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.rd-case:hover .rd-arrow { background: var(--paper); color: var(--ink); transform: rotate(-45deg); }
@media (max-width: 700px) { .rd-case { min-height: 34rem; } }

/* Solutions: what's in each, side by side */
.rd-sol-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 4rem) var(--gap); }
.rd-sol-col { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.rd-sol-name { font-size: clamp(2rem, 3.4vw, 3.4rem); font-weight: 600; letter-spacing: -0.055em; line-height: .92; }
.rd-sol-list { width: 100%; border-top: 1px solid var(--line); margin-bottom: .75rem; }
.rd-sol-list li { display: grid; gap: .3rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.rd-sol-list b { font-size: clamp(1.1rem, 1.4vw, 1.3rem); font-weight: 600; letter-spacing: -0.025em; }
.rd-sol-list span { color: var(--text-2); line-height: 1.4; }
@media (max-width: 900px) { .rd-sol-cols { grid-template-columns: 1fr; } }

/* Solutions: working with us */
/* Edge to edge with no gaps, so the four cuts of the ribbon meet (each image is a hair wide to hide the joins) */
.rd-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 4rem; overflow: hidden; }
.rd-principles img { width: calc(100% + 1px); max-width: none; height: auto; }
.rd-principles li > div { display: grid; gap: 1rem; padding: clamp(1.5rem, 2.5vw, 2.5rem) .75rem 0 var(--gutter); }
.rd-principles-n { font-family: var(--mono); font-size: .8125rem; color: var(--accent); }
.rd-principles h3 { font-size: clamp(1.6rem, 2.05vw, 2.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: .95; }
.rd-principles p { color: var(--text-2); line-height: 1.45; max-width: 32ch; }
@media (max-width: 1000px) { .rd-principles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .rd-principles { grid-template-columns: 1fr; }
  /* Stacked, 01 and 02 no longer sit beside the next panel, so the sliver of its art at their right edge (02's sun
     rays, 03's ribbon) reads as stray. Widen them so that last ~8% runs off the right edge and is clipped. */
  .rd-principles li:nth-child(-n+2) img { width: calc(100% / .92); }
}

/* Approach: how AMP works */
.rd-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The sunrise beside the title */
.rd-ax-hero { position: relative; }
.rd-ax-sun { position: absolute; right: 0; bottom: calc(var(--fs-mega) * 0.075); width: min(32vw, 60svh, 590px); height: auto; pointer-events: none; }
@media (max-width: 800px) { .rd-ax-sun { position: relative; bottom: auto; width: min(74vw, 40svh); margin: 0 auto 2.5rem; } }
.rd-ax-hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2.5rem 4rem; margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.rd-ax-hero-foot .rd-lead { margin-top: 0; max-width: 30ch; }
.rd-ax-specs { display: flex; gap: clamp(1.5rem, 3.5vw, 3.5rem); }
.rd-ax-specs div { display: grid; gap: .35rem; }
.rd-ax-specs dt { order: 2; font-family: var(--mono); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.rd-ax-specs dd { font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 600; letter-spacing: -0.07em; line-height: .8; color: var(--amber); }

/* The three parts: full-bleed rows, picture and words swapping sides */
.rd-ax-parts-sec { padding-bottom: 0; }
.rd-ax-parts li { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.rd-ax-parts img { width: 100%; height: auto; aspect-ratio: 1; max-height: 92svh; object-fit: cover; }
.rd-ax-parts li > div { padding: clamp(2rem, 6vw, 7rem); display: grid; gap: clamp(1rem, 1.8vw, 1.75rem); justify-items: start; }
.rd-ax-parts li:nth-child(even) img { order: 1; }
.rd-ax-part-k { font-weight: 600; letter-spacing: -0.02em; color: var(--text-2); }
.rd-ax-part-k b { font-weight: 600; color: var(--accent); margin-right: .5rem; }
.rd-ax-parts h3 { font-size: clamp(2.8rem, 5.4vw, 6rem); font-weight: 600; letter-spacing: -0.058em; line-height: .9; }
.rd-ax-parts p { font-size: clamp(1.15rem, 1.5vw, 1.5rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.35; color: var(--text-2); max-width: 34ch; text-wrap: pretty; }
/* The six stages, and what you leave with */
.rd-ax-stages { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1rem, 2.4vw, 2.75rem); }
.rd-ax-stages li { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.rd-ax-stages img { width: 100%; height: auto; }
.rd-ax-stages b { font-size: clamp(1.2rem, 1.9vw, 2rem); font-weight: 600; letter-spacing: -0.045em; }
.rd-ax-leave { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(4rem, 8vw, 8rem); }
.rd-ax-leave h3 { grid-column: 1 / span 5; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.055em; line-height: .95; }
.rd-ax-leave ul { grid-column: 7 / -1; border-top: 1px solid var(--line); }
.rd-ax-leave li { padding-block: 1.1rem; border-bottom: 1px solid var(--line); font-size: clamp(1.1rem, 1.4vw, 1.4rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.3; }
/* What we won't do */
.rd-ax-wont { border-top: 1px solid var(--line); }
.rd-ax-wont li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; padding-block: clamp(1.5rem, 2.6vw, 2.5rem); border-bottom: 1px solid var(--line); }
.rd-ax-wont b { grid-column: 1 / span 8; font-size: clamp(2.4rem, 6vw, 6.5rem); font-weight: 600; letter-spacing: -0.06em; line-height: .95; }
.rd-ax-wont p { grid-column: 9 / -1; font-size: var(--fs-body); line-height: 1.45; color: var(--text-2); }
/* Who sees what */
.rd-ax-aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 7vw, 8rem); align-items: center; }
.rd-ax-aud > img { width: 100%; height: auto; }
.rd-ax-aud .rd-h2 { font-size: clamp(2.6rem, 4.8vw, 5.4rem); margin-bottom: clamp(2rem, 3.5vw, 3.5rem); }
.rd-ax-aud ol > li { display: grid; gap: .6rem; padding: 1.4rem 0 1.4rem 2.6rem; border-top: 1px solid var(--line); position: relative; }
.rd-ax-aud ol > li::before { content: ""; position: absolute; left: 0; top: 1.75rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--sand); }
.rd-ax-aud ol > li:nth-child(2)::before { background: var(--amber); }
.rd-ax-aud ol > li:nth-child(3)::before { background: var(--red); }
.rd-ax-aud h3 { font-size: clamp(1.6rem, 2.3vw, 2.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.rd-ax-aud h3 span { color: var(--text-2); margin-left: .35rem; }
.rd-ax-aud p { color: var(--text-2); line-height: 1.4; max-width: 44ch; }
.rd-ax-aud li ul { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.rd-ax-aud li li { font-size: .875rem; color: var(--text-2); padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; }
.rd-ax-aud li li b { font-weight: 600; color: var(--text); margin-right: .25rem; }
@media (max-width: 800px) {
  .rd-ax-parts li { grid-template-columns: 1fr; }
  .rd-ax-parts li:nth-child(even) img { order: 0; }
  .rd-ax-parts li > div { padding: 2rem var(--gutter) 4.5rem; }
  .rd-ax-stages { grid-template-columns: repeat(3, 1fr); row-gap: 2.25rem; }
  .rd-ax-stages b { font-size: 1.05rem; }
  .rd-ax-leave h3, .rd-ax-leave ul, .rd-ax-wont b, .rd-ax-wont p { grid-column: 1 / -1; }
  .rd-ax-leave h3 { margin-bottom: 1.5rem; }
  .rd-ax-wont li { row-gap: .75rem; }
  .rd-ax-aud { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Study: the 2027 market report (/2027-marketing-report/)
   ========================================================================== */
.rd-st-hero { position: relative; }
.rd-st-art { position: absolute; right: 0; bottom: calc(var(--fs-mega) * 0.075); width: min(30vw, 54svh, 560px); height: auto; pointer-events: none; }
.rd-st-hero .rd-mega { max-width: 8ch; }
@media (max-width: 800px) { .rd-st-art { position: relative; bottom: auto; width: min(64vw, 34svh); margin: 0 auto 2.5rem; } }

/* The seven shifts: a picture drawn to each number, and the eighth cell is the download */
.rd-st-shifts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 4.5vw, 4.5rem) clamp(1.5rem, 4vw, 4.5rem); }
.rd-st-shifts > li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.25rem, 2vw, 2.25rem); align-items: center; }
.rd-st-shifts img { width: 100%; height: auto; border-radius: var(--radius); }
.rd-st-shifts b { display: block; font-size: clamp(2.4rem, 4.2vw, 4.5rem); font-weight: 600; letter-spacing: -0.06em; line-height: .9; color: var(--accent); }
.rd-st-shifts h3 { font-size: clamp(1.25rem, 1.7vw, 1.75rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; margin-top: 1rem; text-wrap: balance; }
.rd-st-shifts li div p { color: var(--text-2); line-height: 1.4; margin-top: .6rem; text-wrap: pretty; }
.rd-st-shifts > .rd-st-more { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.75rem; }
.rd-st-more p { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.05em; line-height: .98; text-wrap: balance; }
@media (max-width: 1080px) { .rd-st-shifts { grid-template-columns: 1fr; } }
/* Phones: each shift sized to read as one screen (picture capped just under half the screen height, so the big number,
   title and line fit beneath it), with a plain gap between shifts rather than full-height cells. */
@media (max-width: 600px) {
  .rd-st-shifts { row-gap: 4.5rem; }
  .rd-st-shifts > li { grid-template-columns: 1fr; gap: 1.5rem; }
  .rd-st-shifts img { width: min(100%, 44svh); justify-self: center; }
  .rd-st-shifts b { font-size: 3.6rem; }
  .rd-st-shifts h3 { font-size: 2.3rem; line-height: 1; letter-spacing: -0.05em; margin-top: 1rem; }
  .rd-st-shifts li div p { font-size: 1.2rem; line-height: 1.4; margin-top: .9rem; }
}

/* The two documents */
.rd-st-docs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.rd-st-doc { --text: var(--ink); --text-2: rgba(13, 10, 10, .6); --line: rgba(13, 10, 10, .14); --accent: var(--red); display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); color: var(--ink); }
.rd-st-cover { display: grid; place-items: center; padding: clamp(1.75rem, 4vw, 4rem); background: var(--sand); }
.rd-st-doc + .rd-st-doc .rd-st-cover { background: var(--amber); }
.rd-st-cover img { width: min(100%, 24rem); height: auto; border-radius: 4px; box-shadow: 0 24px 60px rgba(13, 10, 10, .28); transition: transform .6s var(--ease); }
.rd-st-doc:hover .rd-st-cover img { transform: translateY(-6px); }
.rd-st-doc-body { display: flex; flex-direction: column; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 3rem); }
.rd-st-doc-body li { padding-block: .8rem; border-top: 1px solid var(--line); font-weight: 500; letter-spacing: -0.02em; }
.rd-st-get { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: auto; }
.rd-st-get span:last-child { color: var(--text-2); font-size: var(--fs-small); }
.rd-st-doc .rd-st-get .rd-btn { --b-bg: var(--ink); --b-fg: var(--paper); }
.rd-st-doc .rd-st-get .rd-btn:hover { --b-bg: var(--red); --b-fg: var(--white); }
.rd-st-get .rd-btn span { color: inherit; font-size: inherit; }
@media (max-width: 800px) { .rd-st-docs { grid-template-columns: 1fr; } }

/* The form. The page behind may be white; the dialog is always black, so it holds its own colours */
.rd-st-dialog { --text: #f6f3ee; --text-2: rgba(246, 243, 238, .6); --text-3: rgba(246, 243, 238, .5); --line: rgba(246, 243, 238, .18); --accent: var(--amber); width: min(600px, 94vw); border-top: 14px solid; border-image: linear-gradient(90deg, var(--red) 25%, var(--orange) 0 50%, var(--amber) 0 75%, var(--sand) 0) 1; }
.rd-st-dialog .rd-form { padding: clamp(1.5rem, 4vw, 3rem); }
.rd-st-dialog-head { display: grid; gap: .75rem; padding-right: 3rem; }
.rd-st-dialog .rd-error, .rd-st-dialog .rd-form-error { color: #ff8a73; }
.rd-st-dialog .rd-field.is-invalid input { border-color: #ff8a73; }
.rd-st-dialog .rd-field input { background: var(--ink); }
.rd-st-dialog .rd-form .rd-btn { --b-bg: var(--paper); --b-fg: var(--ink); }
.rd-st-dialog .rd-form .rd-btn:hover { --b-bg: var(--amber); }
.rd-st-dialog .rd-small a { text-decoration: underline; }
.rd-st-dialog .rd-form-success { padding: 0 3rem 0 0; background: none; outline: none; }
.rd-st-links { display: grid; gap: .75rem; justify-items: start; margin-top: 1rem; }

/* ==========================================================================
   Case studies. --cs-* are the client's colours from the CMS; they stay inside the phase cards, and everything else
   keeps the site's grounds, type and accent.
   ========================================================================== */
.rd-cs { --cs-brand: var(--amber); --cs-brand-ink: var(--ink); --cs-dark: var(--black); --cs-dark-accent: var(--amber); --cs-accent: var(--orange); --cs-label: var(--red); --cs-ink: var(--ink); }
/* Titles come from the CMS and run long, so they are a step under the other pages' one-liners */
.rd-phero.rd-cs-hero .rd-mega { font-size: clamp(3rem, 8.4vw, 10rem); line-height: .88; max-width: 13ch; overflow-wrap: break-word; }
.rd-cs-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem 4rem; margin-top: clamp(2rem, 4vw, 4rem); }
.rd-phero .rd-cs-foot > * { margin-top: 0; }
.rd-phero .rd-cs-foot .rd-lead { max-width: 34ch; }

.rd-cs-overview { font-size: clamp(1.6rem, 3.3vw, 3.6rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.06; text-wrap: pretty; }
.rd-cs-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); gap: 0 var(--gap); margin-top: clamp(3.5rem, 7vw, 7rem); }
.rd-cs-details div { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.rd-cs-details dt { color: var(--text-2); font-weight: 500; letter-spacing: -0.02em; }
.rd-cs-details dd { margin-top: .5rem; font-size: clamp(1.4rem, 2vw, 2.1rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; text-wrap: balance; }
.rd-cs-showcase { margin-top: clamp(3.5rem, 7vw, 7rem); border-radius: var(--radius); overflow: hidden; }
.rd-cs-showcase img { width: 100%; height: min(86svh, 56vw); object-fit: cover; }
.rd-cs-showcase.is-natural img { height: auto; }

.rd-cs-story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: end; }
.rd-cs-pic { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.rd-cs-pic img { width: 100%; height: 100%; object-fit: cover; }
.rd-cs-copy { display: grid; gap: 1.4rem; font-size: clamp(1.15rem, 1.55vw, 1.55rem); font-weight: 500; line-height: 1.32; letter-spacing: -0.028em; text-wrap: pretty; }
.rd-cs-copy h3 { font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; margin-top: .75rem; }
/* The needs: ruled rows, the description large */
.rd-cs-needs { margin-top: clamp(5rem, 10vw, 10rem); }
.rd-cs-needs > .rd-h3 { margin-bottom: clamp(2rem, 4vw, 4rem); }
.rd-cs-needs li { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: baseline; padding-block: clamp(1.25rem, 2.1vw, 2.1rem); border-top: 1px solid var(--line); }
.rd-cs-needs li:last-child { border-bottom: 1px solid var(--line); }
.rd-cs-needs b { grid-column: 1 / span 3; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
html.rd-light .rd-cs-needs b { color: var(--cs-label); } /* only on white, the ground it was picked for */
.rd-cs-needs p { grid-column: 4 / -1; font-size: clamp(1.6rem, 3.4vw, 3.7rem); font-weight: 600; letter-spacing: -0.055em; line-height: .98; text-wrap: balance; }

.rd-cs-brief { text-align: center; }
.rd-cs-brief blockquote { max-width: 20ch; margin-inline: auto; font-size: clamp(2.2rem, 5.6vw, 6.2rem); font-weight: 600; letter-spacing: -0.056em; line-height: .94; text-wrap: balance; }
.rd-cs-mandate { max-width: 46ch; margin: clamp(2rem, 4vw, 4rem) auto 0; font-size: clamp(1.15rem, 1.55vw, 1.55rem); font-weight: 500; letter-spacing: -0.028em; line-height: 1.3; color: var(--text-2); text-wrap: pretty; }

.rd-cs-list { display: grid; }
.rd-cs-list li { padding-block: .85rem; border-top: 1px solid var(--line); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.rd-cs-list li:last-child { border-bottom: 1px solid var(--line); }

.rd-cs-video { margin-bottom: clamp(3rem, 6vw, 6rem); }
.rd-cs-video iframe { width: 100%; height: 100%; border: 0; }
.rd-cs-phases { display: grid; gap: var(--gap); }
.rd-cs-phase { --pbg: var(--paper); --pfg: var(--cs-ink); --num: var(--cs-accent); --line: color-mix(in srgb, var(--pfg) 18%, transparent); display: grid; grid-template-columns: 1fr 1fr; min-height: min(50vw, 54rem); border-radius: var(--radius); overflow: hidden; background: var(--pbg); color: var(--pfg); }
.rd-cs-phase.is-white { --pbg: var(--white); }
.rd-cs-phase.is-dark { --pbg: var(--cs-dark); --pfg: var(--paper); --num: var(--cs-dark-accent); box-shadow: inset 0 0 0 1px rgba(246, 243, 238, .16); }
.rd-cs-phase.is-brand { --pbg: var(--cs-brand); --pfg: var(--cs-brand-ink); --num: var(--cs-brand-ink); }
.rd-cs-phase:nth-child(even) .rd-cs-media { order: 1; }
.rd-cs-media { position: relative; min-height: 20rem; overflow: hidden; }
.rd-cs-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rd-cs-media img.is-slice-1 { object-position: center 0%; }
.rd-cs-media img.is-slice-2 { object-position: center 42.5%; }
.rd-cs-media img.is-slice-3 { object-position: center 66%; }
.rd-cs-media img.is-slice-4 { object-position: center 100%; }
.rd-cs-body { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 3.25rem); line-height: 1.4; }
.rd-cs-num { font-weight: 600; letter-spacing: -0.02em; color: var(--num); font-size: clamp(1rem, 1.3vw, 1.25rem); }
.rd-cs-body h3 { font-size: clamp(2.4rem, 4.7vw, 5.4rem); font-weight: 600; letter-spacing: -0.058em; line-height: .9; text-wrap: balance; margin-bottom: auto; padding-bottom: clamp(1.5rem, 3vw, 3rem); }
.rd-cs-body p { letter-spacing: -0.02em; }
.rd-cs-body .is-lead { font-size: clamp(1.2rem, 1.7vw, 1.65rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.2; text-wrap: pretty; }
.rd-cs-body .is-closing { font-weight: 600; letter-spacing: -0.025em; }
/* A phase with no picture of its own: the title on the left, the words on the right */
.rd-cs-phase.is-words { grid-template-columns: 1fr; min-height: 0; }
@media (min-width: 901px) {
  .is-words .rd-cs-body { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; column-gap: clamp(3rem, 6vw, 6.5rem); align-items: start; }
  .is-words .rd-cs-body > * { grid-column: 2; }
  .is-words .rd-cs-num { grid-column: 1; grid-row: 1; }
  .is-words .rd-cs-body h3 { grid-column: 1; grid-row: 2 / span 5; }
}
/* The live site: a laptop, or a phone on small screens */
.rd-cs-media.is-device { display: grid; align-content: center; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 3.25rem); background: color-mix(in srgb, var(--pfg) 7%, var(--pbg)); }
.rd-cs-media.is-device p { text-align: center; font-size: var(--fs-small); font-weight: 500; opacity: .7; }
.rd-cs-device { --w: 1440; --s: 1; padding: 10px; border-radius: 16px; background: #121317; box-shadow: 0 24px 60px rgba(13, 10, 10, .35); }
.rd-cs-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #fff; }
.rd-cs-screen iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; transform-origin: 0 0; }
.rd-cs-device.is-scaled iframe { width: calc(var(--w) * 1px); height: calc(100% / var(--s)); max-width: none; transform: scale(var(--s)); }
.is-device .is-swipe { display: none; }

.rd-cs-more-sec { padding-top: 0; }
.rd-cs-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: var(--gap); }
.rd-cs-more .rd-case { min-height: clamp(24rem, 36vw, 36rem); }
.rd-cs-more .rd-case-title { font-size: clamp(2rem, 3vw, 3.4rem); }
@media (max-width: 900px) {
  .rd-cs-story, .rd-cs-phase { grid-template-columns: minmax(0, 1fr); }
  .rd-cs-phase:nth-child(even) .rd-cs-media { order: 0; }
  .rd-cs-media:not(.is-device) { aspect-ratio: 4 / 3; min-height: 0; }
  .rd-cs-device { --w: 390; width: clamp(220px, 70vw, 300px); margin-inline: auto; padding: 10px; border-radius: 40px; }
  .rd-cs-screen { aspect-ratio: 390 / 760; border-radius: 30px; }
  .rd-cs-needs b, .rd-cs-needs p { grid-column: 1 / -1; }
  .rd-cs-needs li { row-gap: .5rem; }
  .is-device .is-swipe { display: inline; }
  .is-device .is-wheel { display: none; }
}

/* ==========================================================================
   Phone pass (600px and under; desktop untouched). Wider side margins, section headings a step further from the
   body, more air in multi-line leads, nothing under 14px, and footer links and text links big enough to tap.
   ========================================================================== */
@media (max-width: 600px) {
  :root { --gutter: 1.25rem; --fs-h2: 3rem; --fs-small: 1rem; }
  .rd-lead, .rd-intro-text { line-height: 1.22; }
  .rd-cs-overview { font-size: 1.45rem; line-height: 1.16; }
  .rd-num, .rd-wcard-num, .rd-fitx-label, .rd-principles-n, .rd-footer-bottom { font-size: .875rem; }
  /* Taps: a taller hit area without moving anything */
  .rd-link { padding-block: .65rem; margin-block: -.65rem; }
  .rd-footer-nav { gap: 0 1.5rem; }
  .rd-footer-nav a { font-size: 1.375rem; padding-block: .3rem; }
  .rd-footer-col { gap: 0; }
  .rd-footer-col a { padding-block: .3rem; }
  .rd-footer-col b { margin-bottom: .35rem; }
  /* Visit (the address and the long email) takes the full width, below Solutions and Follow */
  .rd-footer-col:nth-of-type(2) { grid-column: 1 / -1; order: 1; }
}
/* Headline words blur into focus, and phone browsers (Safari most of all) clip a blurred element to its box. With the
   headlines' tight leading and tracking, the tails of y and p and the right edge of t sit outside each word's box, so
   they were cut off until the blur ended, then popped in late. Room inside each word for the whole letter, given back
   by an equal negative margin so nothing moves. */
@media (max-width: 800px) {
  .js [data-split] .rd-w { padding: .1em .12em .28em; margin: -.1em -.12em -.28em; }
  /* The same for the phrases that cycle through a blur ("We turn one project into a case study film.") */
  .rd-swap > span { padding: .1em .12em .28em; margin: -.1em -.12em -.28em; }
}
/* Phones: the cycling phrases never wrap, and the longest ("a content library.") ran past the screen edge on a 360px
   phone. That heading scales with the screen so every phrase fits. */
@media (max-width: 600px) {
  .rd-intro .rd-display { font-size: min(var(--fs-display), 12vw); }
}
