/* Radiant Data Solutions landing page, v4 (GRW-20). Light only.
   Brand values come from /css/rds-tokens.css. The --v4-* roles below are text steps
   measured for 4.5:1 contrast on the page backgrounds. */

:root {
  color-scheme: light;
  --v4-accent-ink: var(--rds-teal);   /* accent text is green on light backgrounds (gold fails contrast there) */
  --v4-ink-3: #5A6866;        /* quiet text: 5.5:1 on the page background */
  --v4-bar-h: 60px;
  --v4-gutter: 24px;
  --v4-sec: clamp(76px, 10vw, 148px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--v4-bar-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--rds-bg);
  color: var(--rds-text);
  font-family: var(--rds-font);
  font-size: 1rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rds-teal); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 14px; background: var(--rds-ink); color: #fff; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 10px; }

.wrap { width: 100%; max-width: calc(var(--rds-max) + 2 * var(--v4-gutter)); margin: 0 auto; padding: 0 var(--v4-gutter); }

/* ---------- type ---------- */
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--v4-accent-ink); margin-bottom: 14px;
}
h1, h2 { color: var(--rds-ink); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); line-height: 1.06; letter-spacing: -0.032em; }
h1 .accent { display: block; color: var(--v4-accent-ink); }
h2 .gold { color: var(--v4-accent-ink); }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.375rem); line-height: 1.12; letter-spacing: -0.026em; }
h3 { color: var(--rds-ink); font-size: 1.0625rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
.sub, .lede { color: var(--rds-text-2); text-wrap: pretty; }
.lede { font-size: 1.125rem; max-width: 62ch; margin-top: 22px; }
.depth-note { margin-top: 14px; max-width: 62ch; font-weight: 600; color: var(--v4-accent-ink); }
.sub { font-size: 1.0625rem; max-width: 58ch; margin-top: 14px; }
.num, .tag, .tags li, .step-tags { font-family: var(--rds-mono); }
.num { display: block; font-size: .75rem; font-weight: 500; color: var(--v4-accent-ink); letter-spacing: .02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--rds-dur-fast), border-color var(--rds-dur-fast), transform var(--rds-dur-fast);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--rds-gold); color: var(--rds-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--rds-gold) 82%, #fff); }
.btn-ghost { background: var(--rds-surface); border-color: var(--rds-line-strong); color: var(--rds-ink); }
.btn-ghost:hover { border-color: var(--rds-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row.center { justify-content: center; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(248, 249, 248, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rds-line);
}
.bar-in {
  height: var(--v4-bar-h); max-width: calc(var(--rds-max) + 2 * var(--v4-gutter)); margin: 0 auto; padding: 0 var(--v4-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark { font-weight: 700; font-size: 1rem; letter-spacing: -0.015em; color: var(--rds-ink); text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--v4-accent-ink); }
.bar-nav { display: flex; align-items: center; gap: 4px; }
.bar-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--rds-text-2); text-decoration: none;
}
.bar-link:hover { color: var(--rds-ink); }
.bar-cta {
  display: inline-flex; align-items: center; min-height: 38px; margin-left: 8px; padding: 0 16px; position: relative;
  border: 1px solid var(--rds-ink); border-radius: 9px;
  font-size: .9rem; font-weight: 600; color: var(--rds-ink); text-decoration: none;
  transition: background-color var(--rds-dur-fast), color var(--rds-dur-fast);
}
.bar-cta::before { content: ''; position: absolute; inset: -4px 0; }   /* 44px hit area */
.bar-cta:hover { background: var(--rds-ink); color: #fff; }

/* ---------- right-edge section list ---------- */
.spy { display: none; }
@media (min-width: 1440px) {
  .spy { display: block; position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40; }
  .spy ol { display: grid; gap: 0; justify-items: end; }
  .spy a {
    display: flex; align-items: center; gap: 8px; padding: 6px 0;
    font-size: .72rem; line-height: 1.2; color: var(--v4-ink-3); text-decoration: none; white-space: nowrap;
    transition: color var(--rds-dur-fast);
  }
  .spy a::after {
    content: ''; width: 12px; height: 2px; border-radius: 1px; background: var(--rds-line-strong);
    transition: width var(--rds-dur) var(--rds-ease-out), background-color var(--rds-dur-fast);
  }
  .spy a:hover { color: var(--rds-ink); }
  .spy a[aria-current="true"] { color: var(--v4-accent-ink); font-weight: 600; }
  .spy a[aria-current="true"]::after { width: 22px; background: var(--rds-gold-deep); }
}

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 0; }
.hero-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 32px; margin-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  min-width: 124px; padding: 10px 16px 11px; text-align: center;
  background: var(--rds-surface); border: 1px solid var(--rds-line); border-radius: 12px;
}
.chips b { display: block; font-size: 1.25rem; line-height: 1.2; font-weight: 700; color: var(--rds-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chips span { display: block; font-size: .78rem; color: var(--v4-ink-3); }

/* ---------- capability marquee ---------- */
.marquee { margin-top: clamp(48px, 6vw, 72px); }
.marquee-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 8px; }
.marquee-label { font-size: .85rem; font-weight: 600; color: var(--rds-text-2); }
.marquee-toggle {
  min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-size: .82rem; font-weight: 500; color: var(--v4-ink-3);
}
.marquee-toggle:hover { color: var(--rds-ink); }
.marquee-view { overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.marquee-view::-webkit-scrollbar { display: none; }
.marquee-track { display: flex; gap: 12px; width: max-content; padding: 0 var(--v4-gutter); }
.cap {
  flex: none; width: 272px; padding: 14px 16px 15px;
  background: var(--rds-surface); border: 1px solid var(--rds-line); border-radius: 12px;
}
.cap-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.cap b { font-size: .92rem; font-weight: 650; color: var(--rds-ink); }
.tag { font-size: .68rem; color: var(--v4-ink-3); white-space: nowrap; }
.cap p:last-child { font-size: .84rem; line-height: 1.45; color: var(--rds-text-2); }
.marquee.is-moving .marquee-view {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee.is-moving .marquee-track { padding: 0; gap: 0; animation: v4-marquee 110s linear infinite; }
.marquee.is-moving .cap { margin-right: 12px; }
.marquee.is-moving:hover .marquee-track,
.marquee.is-moving:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@keyframes v4-marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { padding: var(--v4-sec) 0 0; }
.head { margin-bottom: clamp(30px, 4vw, 48px); max-width: 760px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .sub { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.after { margin-top: 32px; color: var(--rds-text-2); }
.after a:not(.btn) { color: var(--rds-ink); font-weight: 600; text-underline-offset: 3px; }
.after-link { display: inline-block; margin-left: 10px; }

/* then vs now */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; }
.cmp { padding: 26px 28px 28px; border-radius: 14px; border: 1px solid var(--rds-line); }
.cmp h3 { font-size: .8rem; font-family: var(--rds-mono); font-weight: 500; letter-spacing: .06em; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--rds-line); }
.cmp ul { display: grid; gap: 12px; }
.cmp li { position: relative; padding-left: 20px; font-size: .97rem; text-wrap: pretty; }
.cmp li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; }
.then h3 { color: var(--v4-ink-3); }
.then li { color: var(--rds-text-2); }
.then li::before { background: var(--rds-line-strong); }
.now { background: var(--rds-surface); border-color: var(--rds-gold-deep); box-shadow: var(--rds-sh-2); }
.now h3 { color: var(--v4-accent-ink); }
.now li { color: var(--rds-ink); font-weight: 500; }
.now li::before { background: var(--rds-gold-deep); }
.cmp-arrow { fill: none; stroke: var(--rds-gold-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.closer { margin-top: 30px; font-size: 1.125rem; font-weight: 600; color: var(--rds-ink); }

/* why it matters */
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.points li { padding-top: 18px; border-top: 1px solid var(--rds-line-strong); }
.points h3 { margin: 10px 0 8px; }
.points p { color: var(--rds-text-2); font-size: .97rem; text-wrap: pretty; }

/* four layers */
.layers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.layer { display: flex; flex-direction: column; padding: 22px 22px 20px; background: var(--rds-surface); border: 1px solid var(--rds-line); border-radius: 14px; }
.layer h3 { margin: 12px 0 6px; font-size: 1.125rem; }
.layer p { color: var(--rds-text-2); font-size: .95rem; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tags li { font-size: .7rem; padding: 3px 8px; border-radius: 6px; background: var(--rds-surface-2); border: 1px solid var(--rds-line); color: var(--rds-text-2); }

/* ---------- live reports ---------- */
.showcase-fallback { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.showcase-fallback a { font-weight: 600; text-underline-offset: 3px; }
.tabs {
  display: flex; gap: 2px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  background: var(--rds-surface-2); border: 1px solid var(--rds-line); border-radius: 12px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: none; cursor: pointer;
  font-size: .92rem; font-weight: 500; color: var(--rds-text-2); white-space: nowrap;
  transition: background-color var(--rds-dur-fast), color var(--rds-dur-fast);
}
.tab:hover { color: var(--rds-ink); }
.tab[aria-selected="true"] { background: var(--rds-surface); color: var(--rds-ink); font-weight: 600; box-shadow: var(--rds-sh-1); }
.tab:focus-visible { outline-offset: -2px; border-radius: 9px; }
.question { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 16px; min-height: 1.7em; }
.question-label { flex: none; font-family: var(--rds-mono); font-size: .72rem; color: var(--v4-accent-ink); }
.question-text { font-size: 1.0625rem; font-weight: 500; color: var(--rds-ink); text-wrap: pretty; }

.frame { background: var(--rds-surface); border: 1px solid var(--rds-line-strong); border-radius: 14px; overflow: hidden; }
.showcase .frame { box-shadow: var(--rds-sh-3); }
.frame-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 8px 0 16px;
  background: var(--rds-surface-2); border-bottom: 1px solid var(--rds-line);
}
.frame-title { font-size: .84rem; font-weight: 600; color: var(--rds-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-open {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: 8px;
  font-size: .84rem; font-weight: 600; color: var(--rds-ink); text-decoration: none;
}
.frame-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.frame-open svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* 16:10 of the content width, never shorter than 720px. A fixed height, so the width always follows the column. */
.frame-view {
  position: relative; background: var(--rds-bg);
  height: max(720px, calc((min(100vw, var(--rds-max) + 2 * var(--v4-gutter)) - 2 * var(--v4-gutter)) * .625));
}
.frame-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity var(--rds-dur) ease-out; }
.frame-view.is-ready iframe { opacity: 1; }
.frame-wait {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--v4-ink-3); font-size: .92rem; transition: opacity var(--rds-dur) ease-out;
}
.frame-wait::before { content: ''; width: 160px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--rds-line) 0 40%, var(--rds-teal-mid) 40% 60%, var(--rds-line) 60%); background-size: 250% 100%; animation: v4-wait 1.4s linear infinite; }
.frame-view.is-ready .frame-wait { opacity: 0; pointer-events: none; }
.frame-view.is-ready .frame-wait::before { animation: none; }
@keyframes v4-wait { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- how a report gets built ---------- */
.built { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.steps { display: grid; gap: 6px; }
.steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; padding: 16px 18px; border: 1px solid transparent; border-radius: 12px; }
.steps .num { padding-top: 4px; }
.steps p { color: var(--rds-text-2); font-size: .95rem; margin-top: 4px; text-wrap: pretty; }
.steps .step-tags { font-size: .7rem; color: var(--v4-ink-3); margin-top: 8px; }
.steps .is-on { background: var(--rds-surface); border-color: var(--rds-gold-deep); box-shadow: var(--rds-sh-2); }
.result-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rds-bg); }
.result-view iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .5)); pointer-events: none; }
.result-fallback { position: absolute; inset: 0; display: grid; place-content: center; font-weight: 600; text-underline-offset: 3px; }
.result figcaption { margin-top: 12px; font-size: .88rem; color: var(--v4-ink-3); }
.result figcaption a { color: var(--rds-ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- the data ---------- */
.band { margin-top: var(--v4-sec); padding: clamp(64px, 8vw, 104px) 0; background: var(--rds-surface-2); border-top: 1px solid var(--rds-line); border-bottom: 1px solid var(--rds-line); }
.big { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 36px; }
.big-num {
  font-size: clamp(2.9rem, 9.4vw, 6.75rem); line-height: .95; font-weight: 700; letter-spacing: -0.045em;
  color: var(--rds-teal); font-variant-numeric: tabular-nums;
}
.big-num span, .stats dt span { display: inline-block; }
.big-side { max-width: 30ch; padding-bottom: 8px; }
.big-label { font-size: 1.125rem; font-weight: 650; color: var(--rds-ink); margin-bottom: 4px; }
.big-side p:last-child { color: var(--rds-text-2); font-size: .97rem; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--rds-line-strong); }
.stats > div { padding: 22px 24px 0; border-left: 1px solid var(--rds-line-strong); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font-size: clamp(1.6rem, 2.6vw, 2.125rem); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--rds-ink); font-variant-numeric: tabular-nums; }
.stats dd { margin-top: 4px; color: var(--rds-text-2); font-size: .92rem; }

/* ---------- how we engage ---------- */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--rds-surface); border: 1px solid var(--rds-line); border-radius: 14px; }
.terms li { padding: 24px 26px 26px; border-left: 1px solid var(--rds-line); }
.terms li:first-child { border-left: 0; }
.terms p { margin-top: 8px; color: var(--rds-text-2); font-size: .95rem; text-wrap: pretty; }
.stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stage { position: relative; padding: 20px 20px 22px; background: var(--rds-surface); border: 1px solid var(--rds-line); border-radius: 14px; }
.stage::before { content: ''; position: absolute; left: 0; right: -14px; top: -18px; height: 1px; background: var(--rds-line-strong); }
.stage:last-child::before { right: 0; }
.stage::after { content: ''; position: absolute; left: 0; top: -22px; width: 9px; height: 9px; border-radius: 50%; background: var(--rds-gold-deep); box-shadow: 0 0 0 4px var(--rds-bg); }
.stage h3 { margin: 10px 0 8px; font-size: 1.0625rem; line-height: 1.3; font-weight: 650; color: var(--rds-ink); letter-spacing: -0.01em; }
.stage p { font-size: .92rem; text-wrap: pretty; }
.stage .you { color: var(--rds-text-2); font-style: italic; margin-bottom: 12px; }
.stage .we { color: var(--rds-text); }
.stage .we b { color: var(--rds-ink); }

/* ---------- fit ---------- */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 0; }
.opt { padding: 26px 28px 28px; border-radius: 14px; border: 1px solid var(--rds-line); }
.opt h3 { font-size: 1.125rem; margin-bottom: 16px; }
.opt ul { display: grid; gap: 11px; }
.opt li { position: relative; padding-left: 28px; font-size: .97rem; }
.opt li::before { content: ''; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: no-repeat center / 18px; }
.yes { background: var(--rds-surface); border-color: var(--rds-teal-mid); }
.yes li { color: var(--rds-ink); }
.yes li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%2300795F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5l3.2 3.2L14 5.8'/%3E%3C/svg%3E"); }
.no li { color: var(--rds-text-2); }
.no li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%235A6866' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 9h8'/%3E%3C/svg%3E"); }

/* ---------- book ---------- */
.sec-book { padding-bottom: var(--v4-sec); }
.book {
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px); text-align: center;
  background: var(--rds-surface); border: 1px solid var(--rds-gold-deep); border-radius: 20px; box-shadow: var(--rds-sh-2);
}
.book h2 { max-width: 20ch; margin: 0 auto; }
.book .sub { margin: 16px auto 28px; max-width: 52ch; }
.book .btn-ghost { font-weight: 500; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rds-line); padding: 48px 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, auto); gap: 32px 72px; }
.foot-brand p { margin-top: 10px; color: var(--v4-ink-3); font-size: .9rem; }
.foot h2 { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--v4-ink-3); margin-bottom: 8px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 34px; font-size: .9rem; color: var(--rds-text-2); text-decoration: none; }
.foot nav a:hover { color: var(--rds-ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { margin-top: 40px; color: var(--v4-ink-3); font-size: .84rem; }
.foot-bottom::before { content: ''; display: block; margin-bottom: 20px; border-top: 1px solid var(--rds-line); }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .6s var(--rds-ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .layers, .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { row-gap: 40px; }
  .stage:nth-child(2n)::before { right: 0; }
  .built { grid-template-columns: minmax(0, 1fr); }
  .frame-view { height: 680px; }
}
@media (max-width: 760px) {
  :root { --v4-gutter: 16px; }
  .bar-link { display: none; }
  .hero-row { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }
  .chips { flex-wrap: nowrap; }
  .chips li { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; }
  .compare { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cmp-arrow { justify-self: center; transform: rotate(90deg); }
  .cmp { padding: 22px 20px 24px; }
  .points { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .layers, .stages, .pair, .terms { grid-template-columns: minmax(0, 1fr); }
  .terms li { border-left: 0; border-top: 1px solid var(--rds-line); padding: 20px; }
  .terms li:first-child { border-top: 0; }
  .stage::before { right: 0; }
  .question { flex-direction: column; gap: 4px; }
  .frame-view { height: min(78vh, 680px); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 18px 16px 0; }
  .stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--rds-line-strong); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot nav a { min-height: 44px; }
  .after-link { display: block; margin: 10px 0 0; }
  .book .btn { width: 100%; }
}
@media (pointer: coarse) {
  .foot nav a { min-height: 44px; }
}

/* chips under the engage heading */
#engage .head .chips { margin-top: 22px; }

/* report frames match the 16:9 report page */
.frame-view { height: auto; aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .frame-view { aspect-ratio: auto; height: min(78vh, 680px); } }

/* every section title is one size and starts on the same left edge as what is under it */
.sec .head h2 { font-size: clamp(1.7rem, 3.1vw, 2.375rem); }
