/* ==========================================================================
   CodeROG Design System — Page blocks & motion
   Larger composed pieces: stages, split rows, product hero, particle hero,
   showcase carousel, plan panels, charts. Built on tokens + components.

   Scroll-linked motion: any element with [data-sp] gets --sp from JS,
   running 0 → 1 as it travels from the bottom of the screen to the top.
   ========================================================================== */
[data-sp] { --sp: 0.5; }

/* ---------- Stage: tinted media panel with a floating UI card ---------- */
.cr-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; padding: var(--gap-lg);
  aspect-ratio: 4 / 5; border-radius: var(--r-3xl);
  background: var(--stage-bg, var(--surface-tint));
}
.cr-stage--wide { aspect-ratio: 2 / 1; }
.cr-stage--square { aspect-ratio: 1 / 1; }
.cr-stage--auto { aspect-ratio: auto; min-height: 380px; }
.cr-stage--neutral { --stage-bg: var(--surface); }
@media (max-width: 639px) { .cr-stage--wide { aspect-ratio: 4 / 3; } }
/* hairline frame that drifts against the card as you scroll */
.cr-stage--lines::before {
  content: ""; position: absolute; inset: -60px 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--border), var(--border)) 18% 0 / 1px 100% no-repeat,
    linear-gradient(var(--border), var(--border)) 82% 0 / 1px 100% no-repeat,
    linear-gradient(var(--border), var(--border)) 0 34% / 100% 1px no-repeat,
    linear-gradient(var(--border), var(--border)) 0 66% / 100% 1px no-repeat;
  opacity: 0.6; translate: 0 calc((var(--sp) - 0.5) * 60px);
}
.cr-stage--glow::after {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(111 110 251 / 0.55), transparent 65%); filter: blur(40px);
  translate: 0 calc((var(--sp) - 0.5) * -80px);
}
.cr-stage__card {
  position: relative; width: min(100%, 340px);
  display: flex; flex-direction: column; gap: var(--s-12);
  padding: var(--s-20); border-radius: var(--r-2xl);
  background: var(--surface-elevated); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--border-subtle);
  translate: 0 calc((0.5 - var(--sp)) * 90px);
}
.cr-stage__card--wide { width: min(100%, 460px); }
.cr-stage__control {
  position: absolute; left: var(--s-16); bottom: var(--s-16); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-elevated); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--border);
  transition: scale var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.cr-stage__control:hover { background: var(--surface-elevated-hover); }
.cr-stage__control:active { scale: 0.92; }
.cr-stage__control::before { content: ""; width: 8px; height: 10px; border-inline: 3px solid currentColor; }
.is-paused > .cr-stage__control::before { width: 0; height: 0; border: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; margin-left: 3px; }
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

/* mini UI used inside stage cards */
.cr-mini__title { font-size: var(--text-base); font-weight: var(--fw-medium); color: var(--text-strong); }
.cr-mini__label { font-size: var(--text-xxs); letter-spacing: 0.04em; color: var(--text-subdued); }
.cr-mini__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-12); padding: 10px 12px; border-radius: var(--r-lg); box-shadow: inset 0 0 0 1px var(--border-subtle); font-size: var(--text-xs); color: var(--text); }
.cr-mini__row strong { font-weight: var(--fw-medium); color: var(--text-strong); }
.cr-mini__value { font-size: var(--text-xl); font-weight: var(--fw-medium); color: var(--text-strong); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.cr-mini__bubble { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: var(--r-xl) var(--r-xl) var(--r-sm) var(--r-xl); background: var(--surface-frosted); font-size: var(--text-xs); line-height: 1.45; color: var(--text-strong); }
.cr-mini__bubble--in { align-self: flex-start; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) var(--r-sm); background: var(--surface-tint); }

/* children appear one after another, hold, fade, repeat */
.cr-loop > * { opacity: 0; animation: cr-loop-in var(--loop, 7s) var(--ease-smooth) infinite; }
.cr-loop > :nth-child(2) { animation-delay: 0.7s; } .cr-loop > :nth-child(3) { animation-delay: 1.4s; }
.cr-loop > :nth-child(4) { animation-delay: 2.1s; } .cr-loop > :nth-child(5) { animation-delay: 2.8s; }
@keyframes cr-loop-in { 0% { opacity: 0; translate: 0 10px; } 7%, 78% { opacity: 1; translate: 0 0; } 86%, 100% { opacity: 0; translate: 0 -6px; } }

/* vertical marquee (integration / client logo cards inside a stage) */
.cr-vmarquee { --marquee-gap: var(--s-12); height: 100%; max-height: 420px; overflow: hidden; width: min(100%, 240px); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.cr-vmarquee__track { display: flex; flex-direction: column; gap: var(--marquee-gap); animation: cr-vmarquee 18s linear infinite; }
.cr-vmarquee__track > * { height: 96px; flex: none; display: grid; place-items: center; border-radius: var(--r-2xl); background: var(--surface-elevated); box-shadow: var(--shadow-sm); font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-strong); }
@keyframes cr-vmarquee { to { translate: 0 calc(-50% - var(--marquee-gap) / 2); } }

/* concentric rings with a centre badge */
.cr-rings { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.cr-rings i { position: absolute; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border); background: rgb(135 146 255 / 0.05); animation: cr-ring 5s var(--ease-in-out) infinite; }
.cr-rings i:nth-child(1) { width: 34%; } .cr-rings i:nth-child(2) { width: 56%; animation-delay: 0.3s; }
.cr-rings i:nth-child(3) { width: 80%; animation-delay: 0.6s; } .cr-rings i:nth-child(4) { width: 108%; animation-delay: 0.9s; }
.cr-rings__badge { position: relative; width: clamp(88px, 16%, 150px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--surface-elevated); color: var(--text-primary); box-shadow: var(--shadow-md); }
.cr-rings__badge .cr-icon { width: 40%; height: 40%; }
@keyframes cr-ring { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: 1.06; opacity: 0.55; } }

/* ---------- Split row: copy beside a stage ---------- */
.cr-split { display: grid; gap: var(--gap-xl); align-items: center; }
.cr-split + .cr-split { margin-top: var(--gap-2xl); }
.cr-split__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-16); max-width: 440px; }
.cr-split__body > p { color: var(--text-subdued); }
.cr-split__rule { width: 100%; border-top: 1px solid var(--border); padding-top: var(--s-20); display: flex; flex-direction: column; gap: var(--s-8); }
@media (min-width: 900px) {
  .cr-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-2xl); }
  .cr-split--reverse > :first-child { order: 2; }
  .cr-split--reverse .cr-split__body { justify-self: center; }
}
.cr-arrow-list { display: flex; flex-direction: column; gap: var(--s-12); }
.cr-arrow-list li { display: flex; gap: var(--s-12); font-size: var(--text-sm); line-height: 1.45; color: var(--text); }
.cr-arrow-list li::before { content: "→"; flex: none; color: var(--text-primary); }
.cr-bigstat { font-size: var(--heading-2); font-weight: var(--fw-medium); line-height: 1; letter-spacing: -0.02em; color: var(--text-strong); }

/* ---------- Product hero: headline, then a framed app shot that tilts upright on scroll ---------- */
.cr-shot { perspective: 1800px; margin-top: var(--gap-2xl); --in: min(1, calc(var(--sp) * 2.4)); }
.cr-shot__frame {
  position: relative; overflow: hidden; border-radius: var(--r-3xl);
  padding: clamp(20px, 5vw, 64px) clamp(20px, 5vw, 64px) 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-tint) 100%);
  transform-origin: 50% 100%;
  transform: rotateX(calc((1 - var(--in)) * 16deg)) scale(calc(0.9 + var(--in) * 0.1));
}
.cr-window { border-radius: var(--r-2xl) var(--r-2xl) 0 0; background: var(--surface-elevated); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border-subtle); display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 380px; overflow: hidden; text-align: left; }
.cr-window__side { padding: var(--s-20) var(--s-12); border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 2px; font-size: var(--text-xs); color: var(--text-subdued); }
.cr-window__side b { display: flex; align-items: center; gap: 8px; padding: 0 8px 14px; font-weight: var(--fw-medium); color: var(--text-strong); }
.cr-window__side b::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: var(--gradient-brand); }
.cr-window__side span { padding: 7px 8px; border-radius: var(--r-md); }
.cr-window__side span.is-active { background: var(--surface-frosted); color: var(--text-strong); }
.cr-window__main { padding: var(--s-20) var(--s-24); display: flex; flex-direction: column; gap: var(--s-16); min-width: 0; }
.cr-window__bar { height: 32px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--border-subtle); display: flex; align-items: center; padding-inline: 14px; font-size: var(--text-xs); color: var(--text-subdued); }
.cr-window__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-12); flex: 1; }
.cr-window__panel { padding: var(--s-16); border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--border-subtle); display: flex; flex-direction: column; gap: var(--s-8); min-width: 0; }
.cr-window__panel svg { width: 100%; height: auto; margin-top: auto; overflow: visible; }
@media (max-width: 767px) { .cr-window { grid-template-columns: 1fr; min-height: 300px; } .cr-window__side { display: none; } .cr-window__grid { grid-template-columns: 1fr; } }

/* line charts draw themselves when revealed */
.cr-draw .cr-draw__line { fill: none; stroke: var(--brand-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-smooth) 0.3s; }
.cr-draw .cr-draw__area { fill: url(#cr-area); opacity: 0; transition: opacity 1.2s var(--ease-out) 1.2s; }
.is-in .cr-draw__line, .cr-draw.is-in .cr-draw__line { stroke-dashoffset: 0; }
.is-in .cr-draw__area, .cr-draw.is-in .cr-draw__area { opacity: 1; }

/* small dark note bar */
.cr-notice { width: fit-content; max-width: 100%; margin-inline: auto; padding: var(--s-8) var(--s-16); border-radius: var(--r-xl); background: var(--n-900); color: var(--n-200); font-size: var(--text-xs); line-height: 1.45; text-align: center; box-shadow: inset 0 0 0 1px rgb(175 180 220 / 0.14); }

/* ---------- Particle hero: animated dot ribbon on canvas ---------- */
.cr-phero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100dvh, 860px); display: grid; place-items: center; padding: var(--s-96) var(--grid-margin); background: var(--n-950); color: var(--n-150); text-align: center; }
.cr-phero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.cr-phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 45% 30% at 50% 50%, rgb(18 19 33 / 0.85), transparent 75%); pointer-events: none; }
.cr-phero__content { display: flex; flex-direction: column; align-items: center; gap: var(--s-20); max-width: 720px; }
.cr-phero__content :is(h1, h2) { color: #fff; }
.cr-phero__tag { display: inline-flex; align-items: center; gap: var(--s-8); font-size: var(--text-lg); color: var(--n-300); }

/* ---------- Feature cards: illustration on top, one line of copy below ---------- */
.cr-fcard { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 340px; border-radius: var(--r-3xl); background: linear-gradient(180deg, var(--surface) 35%, var(--surface-tint) 130%); transition: translate 0.6s var(--ease-spring), box-shadow var(--dur) var(--ease-out); }
.cr-fcard:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
.cr-fcard__art { flex: 1; min-height: 200px; display: grid; place-items: center; padding: var(--s-24); }
.cr-fcard__art > * { transition: translate 0.8s var(--ease-spring), rotate 0.8s var(--ease-spring), scale 0.8s var(--ease-spring); }
.cr-fcard:hover .cr-fcard__art > * { translate: 0 -8px; scale: 1.03; }
.cr-fcard__title { padding: 0 var(--s-24) var(--s-24); font-size: var(--text-md); font-weight: var(--fw-medium); line-height: 1.3; color: var(--text-strong); max-width: 26ch; }
.cr-fcard__glyph { width: 96px; height: 96px; border-radius: var(--r-3xl); display: grid; place-items: center; background: var(--surface-elevated); color: var(--text-primary); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--border-subtle); rotate: -6deg; }
.cr-fcard:hover .cr-fcard__glyph { rotate: 0deg; }
.cr-fcard__glyph .cr-icon { width: 40px; height: 40px; }
/* fanned stack of sheets */
.cr-fan { position: relative; width: 120px; height: 140px; }
.cr-fan i { position: absolute; inset: 0; border-radius: var(--r-xl); background: var(--surface-elevated); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); transform-origin: 50% 120%; transition: rotate 0.8s var(--ease-spring); }
.cr-fan i:nth-child(1) { rotate: -16deg; } .cr-fan i:nth-child(2) { rotate: -6deg; } .cr-fan i:nth-child(3) { rotate: 4deg; } .cr-fan i:nth-child(4) { rotate: 14deg; }
.cr-fcard:hover .cr-fan i:nth-child(1) { rotate: -30deg; } .cr-fcard:hover .cr-fan i:nth-child(2) { rotate: -11deg; }
.cr-fcard:hover .cr-fan i:nth-child(3) { rotate: 8deg; } .cr-fcard:hover .cr-fan i:nth-child(4) { rotate: 27deg; }

/* ---------- Showcase: one stage, several captions, counter + arrows ---------- */
.cr-showcase__stage { position: relative; aspect-ratio: 2 / 1; border-radius: var(--r-3xl); overflow: hidden; background: var(--surface); }
@media (max-width: 639px) { .cr-showcase__stage { aspect-ratio: 1 / 1; } }
.cr-showcase__panel { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--gap-lg); opacity: 0; visibility: hidden; scale: 0.97; filter: blur(6px); transition: opacity 0.6s var(--ease-out), scale 0.8s var(--ease-smooth), filter 0.6s var(--ease-out), visibility 0s 0.6s; }
.cr-showcase__panel.is-active { opacity: 1; visibility: visible; scale: 1; filter: none; transition-delay: 0.1s, 0.1s, 0.1s, 0s; }
.cr-showcase__captions { display: grid; gap: var(--s-24); margin-top: var(--gap-lg); }
@media (min-width: 768px) { .cr-showcase__captions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-lg); } }
.cr-showcase__caption { text-align: left; display: flex; flex-direction: column; gap: var(--s-4); opacity: 0.45; transition: opacity 0.5s var(--ease-out); }
.cr-showcase__caption:hover { opacity: 0.75; }
.cr-showcase__caption.is-active { opacity: 1; }
.cr-showcase__caption strong { font-weight: var(--fw-medium); color: var(--text-strong); }
.cr-showcase__caption span { color: var(--text-subdued); font-size: var(--text-sm); line-height: 1.45; }
.cr-showcase__nav { display: flex; align-items: center; gap: var(--s-8); margin-top: var(--gap-lg); }
.cr-counter { min-width: 72px; font-size: var(--text-sm); font-variant-numeric: tabular-nums; color: var(--text-strong); }
.cr-round-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-tint); color: var(--text-strong); transition: background-color var(--dur) var(--ease-out), scale var(--dur-fast); }
.cr-round-btn:hover { background: var(--surface-tint-hover); } .cr-round-btn:active { scale: 0.92; }
.cr-round-btn .cr-icon { width: 16px; height: 16px; }

/* centred underline tabs */
.cr-tabs--center { display: flex; flex-direction: column; align-items: center; }
.cr-tabs--center .cr-tabs__list { display: inline-flex; }
.cr-tabs--center .cr-tabs__tab { padding-inline: var(--s-12); }
.cr-tabs--center .cr-tabs__panel { width: 100%; }
.cr-tabs__caption { max-width: 480px; margin: var(--gap-lg) auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--s-8); }
.cr-tabs__caption p { color: var(--text-subdued); }

/* ---------- Rows: label left, value right ---------- */
.cr-rows { border-top: 1px solid var(--border); }
.cr-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-24); padding: var(--s-20) 0; border-bottom: 1px solid var(--border); font-size: var(--text-lg); color: var(--text-subdued); transition: padding 0.5s var(--ease-spring), color var(--dur) var(--ease-out); }
.cr-rows li:hover { padding-inline: var(--s-12); color: var(--text-strong); }
.cr-rows li > :last-child { flex: none; font-weight: var(--fw-medium); color: var(--text-strong); }

/* ---------- Plans panel: two offers side by side inside one frame ---------- */
.cr-plans { border-radius: var(--r-3xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-subtle); overflow: hidden; }
.cr-plans__head { padding: var(--s-16) var(--s-24); border-bottom: 1px solid var(--border); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subdued); }
.cr-plans__grid { display: grid; }
.cr-plans__col { padding: var(--s-24); display: flex; flex-direction: column; gap: var(--s-20); border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .cr-plans__grid { grid-template-columns: 1fr 1fr; } .cr-plans__col + .cr-plans__col { border-left: 1px solid var(--border); } }
.cr-plans__name { font-size: var(--text-xl); font-weight: var(--fw-medium); color: var(--text-strong); line-height: 1.2; }
.cr-plans__price { display: block; font-weight: var(--fw-book); color: var(--text-subdued); }
.cr-plans__foot { display: flex; justify-content: center; padding: var(--s-16); font-size: var(--text-sm); }
.cr-check-list { display: flex; flex-direction: column; gap: var(--s-8); }
.cr-check-list li { display: flex; gap: var(--s-8); font-size: var(--text-sm); line-height: 1.45; }
.cr-check-list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 2px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.5'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Bars: two columns that grow when revealed ---------- */
.cr-bars { position: relative; overflow: hidden; border-radius: var(--r-3xl); background: var(--surface); aspect-ratio: 4 / 3; display: flex; flex-direction: column; }
.cr-bars__plot { flex: 1; display: flex; align-items: flex-end; gap: var(--s-16); padding: var(--gap-lg) var(--gap-lg) 0; border-bottom: 1px solid var(--border); }
.cr-bars__bar { flex: 1; height: var(--h, 50%); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface-frosted-active); transform-origin: bottom; scale: 1 0; transition: scale 1.6s var(--ease-smooth) 0.2s; position: relative; }
.cr-bars__bar--brand { background: var(--gradient-brand); transition-delay: 0.5s; }
.cr-bars.is-in .cr-bars__bar { scale: 1 1; }
.cr-bars__tag { position: absolute; left: 0; bottom: calc(100% + 8px); white-space: nowrap; display: flex; flex-direction: column; opacity: 0; translate: 0 8px; transition: opacity 0.6s var(--ease-out) 1.9s, translate 0.6s var(--ease-out) 1.9s; }
.cr-bars__bar--brand .cr-bars__tag { top: var(--s-16); left: var(--s-16); bottom: auto; color: #fff; }
.cr-bars.is-in .cr-bars__tag { opacity: 1; translate: none; }
/* the bar is scaled, so counter-scale is avoided by keeping tags outside the transform on reveal end */
.cr-bars__tag strong { font-size: var(--text-xl); font-weight: var(--fw-medium); color: var(--text-strong); line-height: 1.1; }
.cr-bars__bar--brand .cr-bars__tag strong { color: #fff; }
.cr-bars__tag span { font-size: var(--text-sm); }
.cr-bars__caption { padding: var(--s-16); text-align: center; font-size: var(--text-sm); color: var(--text); }

/* ---------- Photo quote: image with parallax + overlaid words ---------- */
.cr-photoquote { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-3xl); aspect-ratio: 2 / 1; min-height: 380px; width: 100%; display: flex; align-items: flex-end; padding: var(--gap-lg); color: #fff; }
.cr-photoquote__bg { position: absolute; inset: -12% 0; z-index: -2; background: var(--photo, linear-gradient(120deg, #2a2466, #4a56f9 55%, #9085fe)); background-size: cover; background-position: center; translate: 0 calc((var(--sp) - 0.5) * 16%); }
.cr-photoquote__bg img, .cr-photoquote__bg video { width: 100%; height: 100%; object-fit: cover; }
.cr-photoquote::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 12 23 / 0.72), transparent 70%); }
.cr-photoquote blockquote { max-width: 30ch; font-size: var(--heading-6); line-height: 1.3; }
.cr-photoquote figcaption { margin-top: var(--s-24); font-size: var(--text-md); }
.cr-photoquote figcaption span { display: block; opacity: 0.7; }
/* segmented progress under a slider */
.cr-segments { display: flex; gap: var(--s-8); width: min(100%, 400px); margin: var(--gap-lg) auto 0; }
.cr-segments button { flex: 1; height: 12px; padding: 4px 0; background-clip: content-box; background-color: var(--border); border-radius: 2px; position: relative; }
.cr-segments button::after { content: ""; position: absolute; inset: 4px 0; background: var(--text-strong); border-radius: 2px; scale: 0 1; transform-origin: left; }
.cr-segments button.is-done::after { scale: 1 1; }
.cr-segments button.is-active::after { animation: cr-progress var(--segment-duration, 6s) linear both; }

/* ---------- Flat band CTA ---------- */
.cr-band { padding-block: var(--gap-3xl); background: var(--surface-tint); text-align: center; }
.cr-band__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s-16); }
.cr-band__inner p { color: var(--text-subdued); }

/* accordion with chevrons instead of plus icons */
.cr-accordion--chevron .cr-accordion__trigger { font-size: var(--text-base); padding-block: var(--s-20); }
.cr-accordion--chevron .cr-accordion__icon { width: 10px; height: 10px; margin: 0 6px 4px; border-radius: 0; background: none; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; }
.cr-accordion--chevron .cr-accordion__icon::before, .cr-accordion--chevron .cr-accordion__icon::after { display: none; }
.cr-accordion--chevron .cr-accordion__item.is-open .cr-accordion__icon { background: none; rotate: 225deg; margin-bottom: -4px; }

/* ==========================================================================
   Careers / partnerships blocks
   ========================================================================== */

/* wipe-in reveal: content is uncovered from the top edge down */
.js [data-reveal="wipe"] { opacity: 1; translate: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-smooth) var(--reveal-delay, 0s); }
.js [data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }

/* ---------- Media: framed video / photo with controls and scroll zoom ---------- */
.cr-media { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-3xl); aspect-ratio: 2 / 1; background: var(--surface); }
@media (max-width: 639px) { .cr-media { aspect-ratio: 4 / 3; } }
.cr-media > video, .cr-media > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; scale: calc(1.16 - var(--sp) * 0.16); }
.cr-media__controls { position: absolute; left: var(--s-16); bottom: var(--s-16); display: flex; gap: var(--s-8); }
.cr-media__btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgb(18 19 33 / 0.66); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); transition: background-color var(--dur) var(--ease-out), scale var(--dur-fast); }
.cr-media__btn:hover { background: rgb(18 19 33 / 0.9); } .cr-media__btn:active { scale: 0.92; }
.cr-media__btn .cr-icon { width: 16px; height: 16px; grid-area: 1 / 1; }
.cr-media__btn .cr-icon:nth-child(2), .cr-media__btn.is-on .cr-icon:nth-child(1) { display: none; }
.cr-media__btn.is-on .cr-icon:nth-child(2) { display: block; }

/* ---------- Values: icon, title, one line — centred grid ---------- */
.cr-values { display: grid; gap: var(--gap-xl) var(--grid-gutter); }
@media (min-width: 640px) { .cr-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cr-values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cr-value { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-8); }
.cr-value__icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--text-strong); border-radius: 50%; transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), translate 0.6s var(--ease-spring); }
.cr-value__icon .cr-icon { width: 26px; height: 26px; stroke-width: 1.3; }
.cr-value:hover .cr-value__icon { background: var(--surface-tint); color: var(--text-primary); translate: 0 -4px; }
.cr-value p { color: var(--text-subdued); max-width: 30ch; }

/* ---------- Photo: image with scroll parallax (use inside a split row) ---------- */
.cr-photo { position: relative; overflow: hidden; border-radius: var(--r-3xl); aspect-ratio: 4 / 5; background: var(--photo, linear-gradient(150deg, #2a2466, #4a56f9 55%, #9085fe)); display: grid; place-items: end start; }
.cr-photo img, .cr-photo video { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; translate: 0 calc((var(--sp) - 0.5) * 12%); }
.cr-photo__label { position: relative; margin: var(--s-16); padding: 6px 12px; border-radius: var(--r-pill); background: rgb(18 19 33 / 0.6); color: #fff; font-size: var(--text-xs); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cr-split__quote { color: var(--text-subdued); line-height: 1.45; }
.cr-split__cite { margin-top: var(--s-16); font-style: normal; font-weight: var(--fw-medium); color: var(--text-strong); display: block; }
.cr-split__cite span { display: block; font-weight: var(--fw-book); color: var(--text-subdued); }

/* rows with a tick instead of a value */
.cr-rows--check li::after { content: ""; flex: none; align-self: center; width: 20px; height: 20px; background: var(--text-strong); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.500 10.500 4 4 9-9.500'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.500 10.500 4 4 9-9.500'/%3E%3C/svg%3E") center / contain no-repeat; }
.cr-rows--check li > :last-child { flex: 1; font-weight: inherit; color: inherit; }

/* ---------- Job / listing board: filter chips, search, grouped rows ---------- */
.cr-jobs__tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); margin-bottom: var(--gap-lg); }
.cr-jobs__tools .cr-input { max-width: 260px; height: 40px; margin-left: auto; }
@media (max-width: 767px) { .cr-jobs__tools .cr-input { max-width: none; margin-left: 0; order: -1; } }
.cr-jobs__group + .cr-jobs__group { margin-top: var(--gap-xl); }
.cr-jobs__group[hidden], .cr-job[hidden] { display: none; }
.cr-jobs__dept { display: flex; align-items: baseline; gap: var(--s-12); padding-bottom: var(--s-20); font-size: var(--text-xl); font-weight: var(--fw-regular); color: var(--text-strong); }
.cr-jobs__dept small { font-size: var(--text-sm); color: var(--text-subdued); font-variant-numeric: tabular-nums; }
.cr-jobs__list { border-top: 1px solid var(--border); }
.cr-job { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: var(--s-16); padding: 12px 0; border-bottom: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-strong); transition: padding 0.5s var(--ease-spring), background-color var(--dur) var(--ease-out); }
.cr-job:hover { padding-inline: var(--s-12); background: var(--surface-frosted); }
.cr-job__loc { color: var(--text); text-align: right; }
.cr-job .cr-icon { width: 18px; height: 18px; transition: translate var(--dur) var(--ease-spring); }
.cr-job:hover .cr-icon { translate: 4px 0; color: var(--text-primary); }
.cr-jobs__empty { padding: var(--gap-xl) 0; text-align: center; color: var(--text-subdued); }
@media (max-width: 639px) { .cr-job { grid-template-columns: minmax(0, 1fr) 20px; } .cr-job__loc { grid-column: 1; grid-row: 2; text-align: left; color: var(--text-subdued); margin-top: -10px; } .cr-job .cr-icon { grid-row: 1 / span 2; grid-column: 2; } }

/* ---------- Tone modifiers for stages / orbit tiles ---------- */
.cr-tone-green { --stage-bg: color-mix(in srgb, var(--green-400) 20%, var(--surface)); --orbit-dot: var(--text-success); }
.cr-tone-sand { --stage-bg: color-mix(in srgb, var(--amber-400) 16%, var(--surface)); --orbit-dot: var(--text-warning); }

/* ---------- Orbit tile: rings with travelling dots around a badge + caption ---------- */
.cr-tcard { display: flex; flex-direction: column; gap: var(--s-12); }
.cr-tcard strong { font-weight: var(--fw-medium); color: var(--text-strong); }
.cr-tcard p { color: var(--text-subdued); font-size: var(--text-sm); line-height: 1.45; margin-top: calc(var(--s-8) * -1); }
.cr-orbit { position: relative; overflow: hidden; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-3xl); background: var(--stage-bg, var(--surface-tint)); }
.cr-orbit i { position: absolute; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--border-strong); opacity: 0.6; animation: cr-spin 26s linear infinite; }
.cr-orbit i::before { content: ""; position: absolute; top: -3.5px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--orbit-dot, var(--text-primary)); }
.cr-orbit i:nth-child(1) { width: 34%; } .cr-orbit i:nth-child(2) { width: 58%; animation-duration: 38s; animation-direction: reverse; border-style: dashed; }
.cr-orbit i:nth-child(3) { width: 88%; animation-duration: 52s; }
.cr-orbit__badge { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-elevated); color: var(--text-strong); box-shadow: var(--shadow-md); transition: scale 0.6s var(--ease-spring); }
.cr-orbit__badge .cr-icon { width: 30px; height: 30px; stroke-width: 1.3; }
.cr-tcard:hover .cr-orbit__badge { scale: 1.1; }
.cr-tcard:hover .cr-orbit i { animation-duration: 8s; }

/* ---------- Connect diagram: two nodes joined by a live wire ---------- */
.cr-connect { position: relative; display: flex; align-items: center; padding: clamp(24px, 6%, 44px); border-radius: var(--r-4xl); box-shadow: inset 0 0 0 1px var(--border-strong); background: color-mix(in srgb, var(--surface-elevated) 35%, transparent); translate: 0 calc((0.5 - var(--sp)) * 70px); }
.cr-connect__node { position: relative; width: clamp(72px, 9vw, 104px); aspect-ratio: 1; border-radius: var(--r-2xl); display: grid; place-items: center; background: var(--surface-elevated); box-shadow: var(--shadow-sm); outline: 1px dashed var(--border-strong); outline-offset: 8px; }
.cr-connect__node img { width: 56%; }
.cr-connect__node--ghost { background: var(--surface-tint); box-shadow: none; color: var(--text-primary); animation: cr-pulse 2.4s var(--ease-in-out) infinite; }
.cr-connect__wire { position: relative; width: clamp(40px, 6vw, 72px); height: 1px; background: var(--border-strong); margin-inline: 8px; }
.cr-connect__wire::after { content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--text-primary); box-shadow: 0 0 12px var(--text-primary); animation: cr-wire 2.4s var(--ease-in-out) infinite; }
@keyframes cr-wire { 0% { left: 0; opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }

/* ---------- Form card: long two-column form in an elevated panel ---------- */
.cr-form-card { display: grid; gap: var(--s-24) var(--s-32); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-3xl); background: var(--surface-elevated); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--border-subtle); }
@media (min-width: 768px) { .cr-form-card { grid-template-columns: 1fr 1fr; } }
.cr-form-card__full { grid-column: 1 / -1; }
.cr-form-card .cr-label, .cr-options legend { font-size: var(--text-sm); font-weight: var(--fw-regular); color: var(--text); }
.cr-form-card .cr-input, .cr-form-card .cr-select { height: 40px; border-radius: var(--r-lg); font-size: var(--text-sm); padding-inline: var(--s-12); }
.cr-form-card .cr-textarea { border-radius: var(--r-lg); font-size: var(--text-sm); padding: var(--s-12); }
.cr-options { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cr-options legend { padding: 0; margin-bottom: var(--s-12); }
.cr-req::after { content: "*"; color: var(--text-primary); margin-left: 1px; }
.cr-check--sm { font-size: var(--text-xs); line-height: 1.4; max-width: 46ch; }
.cr-check--sm input { width: 16px; height: 16px; }

/* ---------- Sitemap footer: many link columns + small print ---------- */
.cr-sitemap { padding-block: var(--gap-3xl) var(--s-48); }
.cr-sitemap__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-2xl) var(--grid-gutter); }
@media (min-width: 768px) { .cr-sitemap__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cr-sitemap h3 { font-size: var(--text-sm); font-weight: var(--fw-regular); color: var(--text-subdued); margin-bottom: var(--s-12); }
.cr-sitemap ul { display: flex; flex-direction: column; gap: var(--s-8); list-style: none; padding: 0; }
.cr-sitemap li a { font-size: var(--text-sm); color: var(--text-strong); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease-out), color var(--dur) var(--ease-out); padding-bottom: 1px; }
.cr-sitemap li a:hover { background-size: 100% 1px; color: var(--text-primary); }
.cr-sitemap__bottom { margin-top: var(--gap-3xl); padding-top: var(--s-24); border-top: 1px solid var(--border-strong); display: grid; gap: var(--s-16); font-size: var(--text-xs); line-height: 1.5; color: var(--text-subdued); }
@media (min-width: 768px) { .cr-sitemap__bottom { grid-template-columns: 1fr 2fr; } }

/* ==========================================================================
   Directory — filterable, searchable, paginated listing (careers, case
   studies, partners…). Rows are rendered by JS from a JSON block.
   ========================================================================== */
.cr-dir__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-16); }
.cr-dir__filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-16); min-width: 0; }
.cr-dir__toggle { --btn-h: 48px; box-shadow: inset 0 0 0 1px var(--border); }
.cr-dir__toggle[aria-expanded="true"] { background: var(--surface-tint); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--text-primary); }
.cr-dir__toggle b { min-width: 20px; height: 20px; padding-inline: 6px; border-radius: var(--r-pill); display: none; place-items: center; background: var(--surface-primary); color: #fff; font-size: 11px; font-weight: var(--fw-medium); }
.cr-dir__toggle.has-filters b { display: grid; }
.cr-dir__sep { width: 1px; height: 32px; background: var(--border); }
.cr-dir__applied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); font-size: var(--text-sm); color: var(--text-strong); }
.cr-dir__pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 12px; border-radius: var(--r-pill); background: var(--surface-tint); color: var(--text-primary); font-size: var(--text-sm); animation: cr-pop 0.4s var(--ease-spring); }
.cr-dir__pill button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: inherit; transition: background-color var(--dur-fast); }
.cr-dir__pill button:hover { background: var(--surface-tint-hover); }
.cr-dir__clear { font-size: var(--text-sm); color: var(--text-subdued); text-decoration: underline; text-underline-offset: 3px; }
.cr-dir__clear:hover { color: var(--text-strong); }
.cr-dir__search { position: relative; width: min(100%, 340px); }
.cr-dir__search .cr-input { padding-right: 44px; }
.cr-dir__search .cr-icon { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--text-strong); pointer-events: none; }
.cr-dir__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-smooth); }
.cr-dir__panel > div { overflow: hidden; min-height: 0; }
.cr-dir__panel.is-open { grid-template-rows: 1fr; }
.cr-dir__panel-inner { margin-top: var(--s-16); padding: var(--s-24); border-radius: var(--r-3xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-subtle); display: grid; gap: var(--s-24); opacity: 0; translate: 0 -8px; transition: opacity 0.4s var(--ease-out), translate 0.5s var(--ease-smooth); }
.cr-dir__panel.is-open .cr-dir__panel-inner { opacity: 1; translate: none; transition-delay: 0.1s; }
@media (min-width: 900px) { .cr-dir__panel-inner { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.cr-dir__group h4 { font-size: var(--text-xs); font-weight: var(--fw-medium); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subdued); margin-bottom: var(--s-12); }
.cr-dir__group div { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.cr-dir__group .cr-chip { height: 34px; padding-inline: 14px; }
.cr-dir__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); margin-top: var(--gap-lg); padding-bottom: var(--s-16); font-size: var(--text-sm); color: var(--text-strong); }
.cr-dir__size { display: inline-flex; align-items: center; gap: var(--s-12); }
.cr-dir__size .cr-select { width: 76px; height: 44px; border-radius: var(--r-lg); padding-inline: 14px 30px; background-position: right 10px center; font-size: var(--text-sm); }
.cr-dir__range { font-variant-numeric: tabular-nums; }
.cr-dir__head, .cr-dir__row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.9fr) 24px; align-items: center; gap: var(--s-24); }
.cr-dir__head { padding: var(--s-20) 0; border-block: 1px solid var(--border-strong); font-weight: var(--fw-medium); color: var(--text-strong); }
.cr-dir__row { position: relative; width: 100%; padding: var(--s-16) 0; border-bottom: 1px solid var(--border); text-align: left; color: var(--text); animation: cr-slide-up 0.6s var(--ease-smooth) both; animation-delay: calc(var(--i, 0) * 45ms); transition: padding 0.5s var(--ease-spring), background-color var(--dur) var(--ease-out); }
.cr-dir__row:hover, .cr-dir__row:focus-visible { padding-inline: var(--s-16); background: var(--surface-frosted); }
.cr-dir__who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cr-dir__avatar { flex: none; width: 52px; height: 52px; border-radius: var(--r-xl); display: grid; place-items: center; background: var(--gradient-brand); color: #fff; font-size: var(--text-sm); font-weight: var(--fw-semibold); letter-spacing: 0.04em; filter: hue-rotate(calc(var(--h, 0) * 1deg)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), 0 8px 20px -10px rgb(77 91 250 / 0.6); transition: scale 0.6s var(--ease-spring), rotate 0.6s var(--ease-spring); }
.cr-dir__row:hover .cr-dir__avatar { scale: 1.06; rotate: -4deg; }
.cr-dir__title { display: block; font-size: var(--text-md); font-weight: var(--fw-medium); line-height: 1.25; color: var(--text-strong); }
.cr-dir__sub { display: block; font-size: var(--text-sm); color: var(--text-subdued); margin-top: 2px; }
.cr-dir__tags { display: flex; gap: var(--s-8); min-width: 0; }
.cr-tag { flex: 0 1 auto; min-width: 0; height: 30px; padding-inline: 10px; border-radius: var(--r-md); display: inline-flex; align-items: center; background: var(--surface-tint); color: var(--text-strong); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-tag--more { flex: none; color: var(--text-primary); }
.cr-dir__cell { font-size: var(--text-base); color: var(--text-strong); }
.cr-dir__row > .cr-icon { color: var(--text-strong); transition: translate var(--dur) var(--ease-spring), color var(--dur); }
.cr-dir__row:hover > .cr-icon { translate: 4px 0; color: var(--text-primary); }
.cr-dir__empty { padding: var(--gap-2xl) 0; text-align: center; color: var(--text-subdued); border-bottom: 1px solid var(--border); }
.cr-dir__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-16); margin-top: var(--gap-lg); font-size: var(--text-sm); color: var(--text-subdued); }
.cr-dir__foot .cr-pagination button { min-width: 40px; height: 40px; padding-inline: var(--s-12); border-radius: var(--r-pill); display: grid; place-items: center; font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-subdued); transition: background-color var(--dur), color var(--dur); }
.cr-dir__foot .cr-pagination button:hover { background: var(--surface-frosted); color: var(--text-strong); }
.cr-dir__foot .cr-pagination button.is-current { background: var(--surface-primary); color: #fff; }
.cr-dir__foot .cr-pagination button[disabled] { opacity: 0.35; pointer-events: none; }
@media (max-width: 899px) {
  .cr-dir__head { display: none; }
  .cr-dir__rows { border-top: 1px solid var(--border-strong); }
  .cr-dir__row { grid-template-columns: minmax(0, 1fr) 24px; gap: var(--s-12) var(--s-16); }
  .cr-dir__row > .cr-icon { grid-column: 2; grid-row: 1; }
  .cr-dir__tags, .cr-dir__cell { grid-column: 1 / -1; }
  .cr-dir__tags { flex-wrap: wrap; }
  .cr-dir__cell { font-size: var(--text-sm); color: var(--text-subdued); }
  .cr-dir__cell + .cr-dir__cell { margin-top: -8px; }
  .cr-dir__search { width: 100%; }
}

/* ---------- Drawer: side sheet for row details ---------- */
.cr-drawer { border: 0; padding: 0; margin: 0 0 0 auto; width: min(580px, 100vw); height: 100dvh; max-height: none; background: var(--surface-elevated); color: var(--text); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; }
.cr-drawer::backdrop { background: rgb(11 12 23 / 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: cr-fade-in 0.4s var(--ease-out); }
.cr-drawer[open] { display: flex; flex-direction: column; animation: cr-drawer-in 0.7s var(--ease-smooth); }
.cr-drawer[open] .cr-drawer__body { flex: 1; }
@keyframes cr-drawer-in { from { translate: 100% 0; } }
.cr-drawer__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); padding: var(--s-16) var(--s-32); background: var(--surface-elevated); border-bottom: 1px solid var(--border-subtle); font-size: var(--text-sm); color: var(--text-subdued); }
.cr-drawer__body { padding: var(--s-32); display: flex; flex-direction: column; gap: var(--s-24); }
.cr-drawer__body > * { animation: cr-slide-up 0.7s var(--ease-smooth) both; }
.cr-drawer__body > :nth-child(2) { animation-delay: 0.08s; } .cr-drawer__body > :nth-child(3) { animation-delay: 0.14s; }
.cr-drawer__body > :nth-child(4) { animation-delay: 0.2s; } .cr-drawer__body > :nth-child(n+5) { animation-delay: 0.26s; }
.cr-drawer__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); border-radius: var(--r-2xl); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.cr-drawer__facts div { padding: var(--s-16); background: var(--surface-elevated); display: flex; flex-direction: column; gap: 2px; }
.cr-drawer__facts dt { font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-subdued); }
.cr-drawer__facts dd { margin: 0; font-weight: var(--fw-medium); color: var(--text-strong); }
.cr-drawer__foot { position: sticky; bottom: 0; padding: var(--s-16) var(--s-32); background: var(--surface-elevated); border-top: 1px solid var(--border-subtle); display: flex; gap: var(--s-12); }
@media (max-width: 639px) { .cr-drawer__head, .cr-drawer__body, .cr-drawer__foot { padding-inline: var(--s-20); } }

/* ==========================================================================
   Tools & long-form blocks
   ========================================================================== */
/* gradient hero with a ruled, left-aligned title */
.cr-ghero { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--s-96) var(--s-64); background: var(--n-900); color: var(--n-150); }
.cr-ghero::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(ellipse 45% 40% at 55% 35%, rgb(124 124 214 / 0.75), transparent 70%), radial-gradient(ellipse 35% 45% at 5% 60%, rgb(98 120 170 / 0.6), transparent 70%), radial-gradient(ellipse 40% 40% at 95% 80%, rgb(77 91 250 / 0.35), transparent 70%); animation: cr-aurora 26s ease-in-out infinite; }
.cr-ghero__title { color: #fff; padding-bottom: var(--gap-lg); border-bottom: 1px solid rgb(255 255 255 / 0.35); margin-bottom: var(--s-24); }
.cr-ghero__lede { max-width: 620px; color: #fff; margin-bottom: var(--gap-lg); }

/* multi-step wizard card */
.cr-wizard { border-radius: var(--r-3xl); overflow: hidden; background: var(--surface-elevated); color: var(--text); box-shadow: var(--shadow-lg); }
.cr-wizard__tip { padding: 10px var(--s-16); text-align: center; font-size: var(--text-xs); background: var(--surface-hover); color: var(--text-strong); }
.cr-wizard__grid { display: grid; gap: var(--s-32); padding: clamp(24px, 5vw, 64px); min-height: 500px; align-content: start; }
@media (min-width: 800px) { .cr-wizard__grid { grid-template-columns: 220px minmax(0, 440px); gap: var(--s-64); } }
.cr-wizard__steps { display: flex; flex-direction: column; gap: var(--s-8); counter-reset: w; }
.cr-wizard__steps button { display: flex; align-items: center; gap: var(--s-8); font-size: var(--text-md); color: var(--text-disabled); text-align: left; transition: color var(--dur) var(--ease-out), translate 0.5s var(--ease-spring); }
.cr-wizard__steps button.is-done { color: var(--text-subdued); }
.cr-wizard__steps button.is-active { color: var(--text-strong); translate: 6px 0; }
.cr-wizard__steps button.is-done::after { content: "✓"; font-size: var(--text-sm); color: var(--text-success); }
.cr-wizard__steps button:not(.is-done):not(.is-active) { pointer-events: none; }
.cr-wizard__panel { display: flex; flex-direction: column; gap: var(--s-16); animation: cr-slide-up 0.6s var(--ease-smooth) both; }
.cr-wizard__panel[hidden] { display: none; }
.cr-wizard__panel .cr-input, .cr-wizard__panel .cr-select, .cr-calc .cr-input { height: 40px; border-radius: var(--r-lg); font-size: var(--text-sm); padding-inline: var(--s-12); }
.cr-wizard__panel .cr-label, .cr-calc .cr-label { font-size: var(--text-xs); font-weight: var(--fw-regular); color: var(--text); }
.cr-wizard__fine { font-size: var(--text-xs); line-height: 1.6; color: var(--text-subdued); max-width: 46ch; margin-top: var(--s-16); }
.cr-wizard__review { display: grid; gap: 1px; background: var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.cr-wizard__review div { display: flex; justify-content: space-between; gap: var(--s-16); padding: 12px 14px; background: var(--surface-elevated); font-size: var(--text-sm); }
.cr-wizard__review dt { color: var(--text-subdued); } .cr-wizard__review dd { margin: 0; color: var(--text-strong); font-weight: var(--fw-medium); text-align: right; }

/* lede: muted kicker line, then a large statement */
.cr-lede { max-width: 780px; font-size: var(--heading-5); font-weight: var(--fw-book); line-height: 1.25; letter-spacing: -0.01em; color: var(--text-strong); }
.cr-lede__kicker { display: block; color: var(--text-subdued); margin-bottom: var(--s-4); }

/* numbered rows: 01 · title · explanation */
.cr-numrows { border-top: 1px solid var(--border-strong); counter-reset: n; }
.cr-numrows li { display: grid; gap: var(--s-8) var(--s-24); padding: var(--s-24) 0; border-bottom: 1px solid var(--border); counter-increment: n; transition: padding 0.6s var(--ease-spring); }
.cr-numrows li::before { content: counter(n, decimal-leading-zero); font-size: var(--text-md); color: var(--text-subdued); font-variant-numeric: tabular-nums; transition: color var(--dur) var(--ease-out); }
.cr-numrows li:hover { padding-left: var(--s-12); } .cr-numrows li:hover::before { color: var(--text-primary); }
.cr-numrows h3 { font-size: var(--text-lg); font-weight: var(--fw-regular); line-height: 1.25; }
.cr-numrows p { color: var(--text); line-height: 1.45; }
@media (min-width: 800px) { .cr-numrows li { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr); } }

/* pastel CTA with drifting colour */
.cr-cta--pastel { background-color: #efeafb; color: #34364b; --text-strong: #121321; --text-subdued: #50536b; --border-strong: rgb(18 19 33 / 0.55); --surface-frosted: rgb(18 19 33 / 0.06); min-height: 440px; justify-content: center; }
.cr-cta--pastel::before { content: ""; position: absolute; inset: -30%; z-index: -1; background: radial-gradient(circle at 22% 40%, #ffe3d6 0%, transparent 38%), radial-gradient(circle at 58% 60%, #dcdcff 0%, transparent 42%), radial-gradient(circle at 88% 30%, #f6dcef 0%, transparent 40%); animation: cr-aurora 22s ease-in-out infinite; }

/* testimonial deck: one card forward, neighbours blurred behind */
.cr-deck { position: relative; height: 440px; display: grid; place-items: center; }
.cr-deck__card { position: absolute; width: min(88%, 470px); min-height: 300px; padding: var(--s-32); border-radius: var(--r-2xl); background: var(--surface-elevated); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border-subtle); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-40); text-align: left; cursor: pointer; opacity: 0; scale: 0.6; pointer-events: none; transition: translate 1s var(--ease-smooth), scale 1s var(--ease-smooth), opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out); }
.cr-deck__card[data-pos="0"] { opacity: 1; scale: 1; z-index: 2; pointer-events: auto; cursor: default; }
.cr-deck__card[data-pos="1"] { opacity: 0.75; scale: 0.72; translate: 74% -14%; filter: blur(2.5px); z-index: 1; pointer-events: auto; }
.cr-deck__card[data-pos="-1"] { opacity: 0.75; scale: 0.72; translate: -74% 16%; filter: blur(2.5px); z-index: 1; pointer-events: auto; }
@media (max-width: 899px) { .cr-deck__card[data-pos="1"] { translate: 24% -10%; opacity: 0.4; } .cr-deck__card[data-pos="-1"] { translate: -24% 10%; opacity: 0.4; } }
.cr-deck__who { display: flex; align-items: center; gap: var(--s-12); }
.cr-deck__who strong { display: block; font-weight: var(--fw-regular); color: var(--text-strong); }
.cr-deck__who small { font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subdued); }
.cr-deck__card blockquote { font-size: var(--text-md); line-height: 1.4; color: var(--text-strong); }
.cr-deck-dots { display: flex; justify-content: center; gap: 10px; }
.cr-deck-dots button { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); transition: background-color var(--dur), scale 0.4s var(--ease-spring); }
.cr-deck-dots button.is-active { background: var(--text-strong); scale: 1.3; }

/* boxed accordion (pairs with a title on the left) */
.cr-accordion--boxed { border: 0; display: flex; flex-direction: column; gap: var(--s-12); }
.cr-accordion--boxed .cr-accordion__item { border: 0; padding-inline: var(--s-24); border-radius: var(--r-2xl); background: var(--surface-elevated); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow var(--dur) var(--ease-out); }
.cr-accordion--boxed .cr-accordion__item:hover, .cr-accordion--boxed .cr-accordion__item.is-open { box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-sm); }

/* calculator: inputs left, live results right */
.cr-calc { display: grid; border-radius: var(--r-3xl); overflow: hidden; background: var(--surface-elevated); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--border-subtle); }
.cr-calc__inputs { padding: var(--s-24); display: flex; flex-direction: column; gap: var(--s-16); }
.cr-calc__results { display: grid; border-top: 1px solid var(--border); }
@media (min-width: 768px) { .cr-calc { grid-template-columns: 1fr 1fr; } .cr-calc__results { border-top: 0; border-left: 1px solid var(--border); } }
.cr-calc__result { padding: var(--s-24); display: flex; flex-direction: column; gap: var(--s-12); }
.cr-calc__result + .cr-calc__result { border-top: 1px solid var(--border); }
.cr-calc__label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--text); width: fit-content; }
.cr-calc__label .cr-icon { width: 15px; height: 15px; }
.cr-calc__value { font-size: var(--heading-3); font-weight: var(--fw-medium); line-height: 1; letter-spacing: -0.02em; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.cr-calc__value small { font-size: var(--text-base); font-weight: var(--fw-book); letter-spacing: 0; color: var(--text-subdued); margin-left: 6px; }
.cr-calc__value.is-fresh { animation: cr-slide-up 0.6s var(--ease-smooth); }

/* art tile: moody gradient with bars that rise when revealed */
.cr-art { position: relative; overflow: hidden; border-radius: var(--r-3xl); aspect-ratio: 4 / 5; background: linear-gradient(160deg, #57567e 0%, #b3b1d2 55%, #615f88 100%); display: flex; align-items: flex-end; }
.cr-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(255 255 255 / 0.14) 1px, transparent 1px) 0 0 / 100% 12.5%, linear-gradient(90deg, rgb(255 255 255 / 0.14) 1px, transparent 1px) 0 0 / 12.5% 100%; mask-image: linear-gradient(#000, transparent 60%); -webkit-mask-image: linear-gradient(#000, transparent 60%); translate: 0 calc((var(--sp) - 0.5) * 30px); }
.cr-art__bars { position: relative; width: 100%; height: 78%; display: flex; align-items: flex-end; padding-inline: 6%; border-bottom: 56px solid rgb(40 38 70 / 0.35); }
.cr-art__bars i { position: relative; flex: 1; height: var(--h); background: linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.12)); border-top: 3px solid rgb(255 255 255 / 0.85); transform-origin: bottom; scale: 1 0; transition: scale 1.5s var(--ease-smooth) calc(var(--n) * 0.14s + 0.2s); }
.cr-art__bars i::before { content: ""; position: absolute; left: 50%; top: -44px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; border: 1.5px solid #fff; opacity: 0; transition: opacity 0.6s var(--ease-out) calc(var(--n) * 0.14s + 1.4s); }
.cr-art__bars i::after { content: attr(data-label); position: absolute; left: 0; right: 0; bottom: -36px; text-align: center; font-size: var(--text-xxs); letter-spacing: 0.08em; color: rgb(255 255 255 / 0.9); }
.is-in .cr-art__bars i, .cr-art.is-in .cr-art__bars i { scale: 1 1; }
.is-in .cr-art__bars i::before, .cr-art.is-in .cr-art__bars i::before { opacity: 1; }

/* plain link rows (legal index, downloads) */
.cr-job--plain { grid-template-columns: minmax(0, 1fr) 20px; font-size: var(--text-base); padding-block: var(--s-12); }
@media (max-width: 639px) { .cr-job--plain .cr-icon { grid-row: auto; grid-column: auto; } }

/* input with a leading symbol */
.cr-affix { position: relative; }
.cr-affix > span { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-size: var(--text-sm); color: var(--text-subdued); pointer-events: none; }
.cr-affix > .cr-input { padding-left: 28px; }

/* ---------- Pointer tilt ---------- */
[data-tilt] { transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); transition: transform 0.5s var(--ease-spring); transform-style: preserve-3d; will-change: transform; }
[data-tilt].is-tilting { transition-duration: 0.12s; }

/* Case study facts strip */
.cr-case-facts { display: grid; gap: var(--s-24); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding-bottom: var(--gap-lg); border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .cr-case-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cr-case-facts dt { font-size: var(--text-xs); font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subdued); margin-bottom: var(--s-8); }
.cr-case-facts dd { margin: 0; font-size: var(--text-lg); color: var(--text-strong); line-height: 1.3; }

/* ---------- Blog: post list ---------- */
.cr-posts__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-16); margin-bottom: var(--s-16); }
.cr-posts__filters { display: flex; flex-wrap: wrap; gap: var(--s-8); }
.cr-posts__count { margin: 0 0 var(--s-24); }
.cr-posts__grid { row-gap: var(--gap-xl, var(--s-48)); }
.cr-posts__empty { padding: var(--s-48) 0; text-align: center; }
.cr-post[hidden] { display: none; }
.cr-post__media { position: relative; }
.cr-post__media--plain { display: grid; place-items: center; background: var(--cover, var(--gradient-brand)); color: #fff; font-size: var(--text-sm); font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; }
.cr-post__text { font-size: var(--text-sm); color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Blog: article ---------- */
.cr-article-head { display: flex; flex-direction: column; gap: var(--s-24); max-width: 920px; }
.cr-article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8) var(--s-16); font-size: var(--text-sm); color: var(--text-subdued); }
.cr-article-meta > * + *:not(.cr-badge)::before { content: "·"; margin-right: var(--s-16); opacity: 0.6; }
.cr-article { display: grid; gap: var(--gap-2xl); grid-template-columns: minmax(0, 1fr); }
.cr-article > .cr-prose { width: 100%; max-width: 760px; margin-inline: auto; }
@media (min-width: 1100px) {
  .cr-article--toc { grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; }
  .cr-article--toc > .cr-prose { margin-inline: 0; }
}
.cr-toc { display: none; }
@media (min-width: 1100px) { .cr-toc { display: block; position: sticky; top: calc(var(--nav-h) + var(--s-24)); align-self: start; max-height: calc(100vh - var(--nav-h) - var(--s-48)); overflow-y: auto; } }
.cr-toc__title { font-size: var(--text-xs); font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-subdued); margin: 0 0 var(--s-12); }
.cr-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.cr-toc a { display: block; padding: 6px var(--s-16); margin-left: -1px; border-left: 1px solid transparent; font-size: var(--text-sm); line-height: 1.4; color: var(--text); transition: color 0.2s, border-color 0.2s; }
.cr-toc a:hover { color: var(--text-strong); }
.cr-toc a.is-active { color: var(--text-primary); border-left-color: var(--text-primary); }

/* Long-form text. Wrap any imported or hand-written article body in .cr-prose */
.cr-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.cr-prose > * { margin: 0; }
.cr-prose > * + * { margin-top: 1.25em; }
.cr-prose h2, .cr-prose h3, .cr-prose h4 { color: var(--text-strong); font-weight: var(--fw-medium); line-height: 1.2; letter-spacing: -0.01em; scroll-margin-top: calc(var(--nav-h) + var(--s-24)); }
.cr-prose h2 { font-size: var(--heading-4); margin-top: 2.2em; }
.cr-prose h3 { font-size: var(--heading-5); margin-top: 1.9em; }
.cr-prose h4 { font-size: var(--heading-6); margin-top: 1.6em; }
.cr-prose strong { color: var(--text-strong); font-weight: var(--fw-semibold); }
.cr-prose a { color: var(--text-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cr-prose a:hover { text-decoration-thickness: 2px; }
.cr-prose ul, .cr-prose ol { padding-left: 1.4em; }
.cr-prose ul { list-style: disc; } .cr-prose ol { list-style: decimal; }
.cr-prose li + li, .cr-prose li > ul, .cr-prose li > ol { margin-top: 0.45em; }
.cr-prose li::marker { color: var(--text-subdued); }
.cr-prose img { max-width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--border); }
.cr-prose figure { text-align: center; }
.cr-prose figcaption { margin-top: var(--s-8); font-size: var(--text-sm); color: var(--text-subdued); }
.cr-prose__cover { aspect-ratio: 16 / 9; border-radius: var(--r-3xl); overflow: hidden; background: var(--surface); margin-bottom: var(--gap-lg); }
.cr-prose__cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.cr-prose blockquote { padding: var(--s-4) 0 var(--s-4) var(--s-20); border-left: 3px solid var(--text-primary); color: var(--text-strong); font-size: 1.125rem; }
.cr-prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2.2em; }
.cr-prose code { font-family: var(--font-mono); font-size: 0.875em; padding: 0.15em 0.4em; border-radius: var(--r-sm, 4px); background: var(--surface); color: var(--text-strong); }
.cr-prose__code { position: relative; }
.cr-prose pre { margin: 0; padding: var(--s-20) var(--s-24); border-radius: var(--r-xl); background: var(--n-1000); color: var(--n-200); font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; overflow-x: auto; white-space: pre; tab-size: 2; }
.cr-prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.cr-prose__copy { position: absolute; top: 8px; right: 8px; padding: 4px 10px; border-radius: var(--r-md); background: rgb(175 180 220 / 0.14); color: var(--n-200); font-size: var(--text-xs); opacity: 0; transition: opacity 0.2s, background 0.2s; }
.cr-prose__code:hover .cr-prose__copy, .cr-prose__copy:focus-visible { opacity: 1; }
.cr-prose__copy:hover { background: rgb(175 180 220 / 0.26); }
.cr-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--text-sm); line-height: 1.5; }
.cr-prose th, .cr-prose td { padding: var(--s-12) var(--s-16); border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.cr-prose th { color: var(--text-strong); font-weight: var(--fw-semibold); white-space: nowrap; }
.cr-embed { aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; background: var(--n-1000); }
.cr-embed iframe { width: 100%; height: 100%; border: 0; }

/* Equaliser — animated audio bars. Set --v (resting height 0–1), --d (speed) and --dl (delay) per bar. */
.cr-eq { display: flex; align-items: flex-end; gap: 6px; height: 120px; width: min(100%, 320px); }
.cr-eq i { flex: 1; min-width: 4px; height: 100%; border-radius: 99px; background: var(--gradient-brand); transform-origin: bottom; scale: 1 var(--v, 0.5); animation: cr-eq var(--d, 1.1s) ease-in-out var(--dl, 0s) infinite alternate; }
.cr-eq--sm { height: 28px; gap: 3px; width: 36px; }
.cr-eq--mono i { background: currentColor; }
@keyframes cr-eq { from { scale: 1 0.12; } to { scale: 1 1; } }

/* Track row — cover, title, meta and a trailing value */
.cr-track { display: flex; align-items: center; gap: var(--s-12); padding: var(--s-8) 0; font-size: var(--text-sm); color: var(--text); }
.cr-track + .cr-track { border-top: 1px solid var(--border); }
.cr-track__cover { flex: none; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--cover, var(--gradient-brand)); display: grid; place-items: center; color: #fff; }
.cr-track__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cr-track__body strong { color: var(--text-strong); font-weight: var(--fw-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-track__body span { font-size: var(--text-xs); color: var(--text-subdued); }
.cr-track__value { flex: none; color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* Split bar — proportional shares (royalty splits, budgets) */
.cr-sharebar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; gap: 2px; }
.cr-sharebar i { flex: var(--w, 1); background: var(--c, var(--brand-600)); }

@media (prefers-reduced-motion: reduce) {
  .cr-eq i { animation: none; }
  .cr-stage__card, .cr-stage--lines::before, .cr-stage--glow::after, .cr-photoquote__bg, .cr-photo img, .cr-connect { translate: none; }
  .cr-media > video, .cr-media > img { scale: 1; }
  .js [data-reveal="wipe"] { clip-path: none; }
  .cr-shot__frame { transform: none; }
  .cr-loop > * { opacity: 1; animation: none; }
  .cr-bars__bar { scale: 1 1; } .cr-bars__tag { opacity: 1; translate: none; }
  .cr-draw .cr-draw__line { stroke-dashoffset: 0; } .cr-draw .cr-draw__area { opacity: 1; }
  [data-tilt] { transform: none; }
}

/* Legal pages (privacy, terms, cookies, disclaimer, hub): reading column of about 70 characters per line (38rem), contents shown inline on small screens */
.cr-legal .cr-article--toc > .cr-prose { max-width: 38rem; }
@media (min-width: 1100px) { .cr-legal .cr-article--toc { grid-template-columns: minmax(0, 38rem) 260px; } }
.cr-legal__toc { padding: var(--s-16) var(--s-20); border-radius: var(--r-xl); background: var(--surface); }
.cr-legal__toc ol { margin: 0; padding-left: 1.2em; list-style: decimal; font-size: var(--text-sm); line-height: 1.5; }
.cr-legal__toc .cr-toc__title { margin-bottom: var(--s-8); }
@media (min-width: 1100px) { .cr-legal__toc { display: none; } }
.cr-legal .cr-prose h2 { scroll-margin-top: calc(var(--nav-h) + var(--s-24)); }
.cr-legal .cr-prose a.cr-card { text-decoration: none; color: inherit; }
.cr-legal .cr-prose .cr-card__title { margin: 0; }
.cr-legal__cards { margin-top: var(--s-24); }
.cr-legal .cr-prose th[scope="row"] { width: 11em; white-space: normal; }
