/* ============================================================
   RD-HOME — redesign item 4 (owner-approved 2026-11-09)
   Home hero: the ORIGINAL background stays exactly as it was
   (dark glow .hero-bg, the orbit ring + dot .hero-motif, the
   cursor-following particle canvas .hero-fx — all owned by
   proto.css / proto.js, untouched here). Only the title
   treatment changes: the final prototype's giant kinetic rows
   (A SMARTER / WAY TO BUY / A VEHICLE, Archivo width + weight
   axes, last row blue) that slide sideways at different speeds
   as you scroll. The block is centred with the title around the
   vertical middle, and the intro paragraph is made clearly
   readable. Behaviour: assets/js/rd-home.r702.js builds the rows.
   FIRST PAINT: a tiny inline script in index.html's <head> puts
   .rdhj (+ data-rdh-l = the saved language) on <html> before the
   first paint, so the final layout — kicker, reserved title box,
   paragraph, buttons — is in place when the page first draws.
   The rows are then drawn INSIDE that box and never move anything
   else (no layout shift, no flash of the old heading). Without JS
   there is no .rdhj and the original heading renders as before;
   if rd-home.r702.js is missing or fails, .rdhj is removed again
   and the original heading comes back.
   TITLE IN THE FIRST PAINT (page speed / LCP): when the page shows
   in English (its own text) the same <head> script builds the rows
   the moment the parser closes the h1, so the title is part of the
   very first paint instead of appearing after all the scripts at
   the end of <body> have run. The rows are sized and aligned here
   by the row model below (the same numbers rd-home.r702.js computes,
   within half a pixel), so nothing has to be measured before the
   first paint; the script refines them afterwards (.fitd). The
   entrance is a CSS transform (rows slide in from alternate sides,
   always fully opaque) — it runs on the compositor, so it plays
   while the main thread is still busy loading.
   The <h1 data-i18n="home-h1"> stays the one real heading; the
   rows are an aria-hidden visual copy rebuilt from it in every
   language. Linked ?v=rd7 (rd6, 2026-11-14 al-hero: the kinetic heroes' column, kicker and ring dot; rd7: sized to the group on phones and portrait tablets).
   ============================================================ */

/* Archivo (variable: wdth 62–125, wght 100–900) is pending the owner's OK to
   add the file; until assets/fonts/archivo-variable.woff2 exists the site's
   own Bricolage renders (heavy rows 800, the light row 500). */
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-variable.woff2) format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

/* ---------- the kicker: the same eyebrow as the 25 kinetic-title heroes (rd-khero.css .rdk-eye) ----------
   Owner 2026-11-14 (iPhone): the blue, very widely tracked kicker wrapped with one orphan word ("... YOUR NEXT / VEHICLE")
   and ran into the ring's dot. Now the eyebrow every other hero has: the blue dot, light text in Archivo at its widest
   setting, tracked .08em, wrapped in balanced lines. Same words; style only; applies with or without JS. The face is
   "optional" (as on the kinetic heroes): if Archivo is not there for the first paint the fallback stays for that view,
   so the kicker never re-wraps under the reader. */
@font-face { font-family: "Archivo UI"; src: url(../fonts/archivo-variable.woff2) format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: optional; }
.hero-home .hero-top .kicker {
  display: flex; align-items: flex-start; gap: 10px;
  font: 500 15px/1.3 "Archivo UI", "Bricolage", "Bricolage Grotesque", system-ui, sans-serif; font-stretch: 125%;
  letter-spacing: .08em; text-transform: uppercase; color: #d6d5d0; text-wrap: balance;
}
.hero-home .hero-top .kicker::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #3d8bff;
  box-shadow: 0 0 12px rgba(61,139,255,.9); margin-top: calc((1.3em - 9px) / 2);
}
@media (max-width: 760px) { .hero-home .hero-top .kicker { font-size: 14px; } }

/* ---------- the ring's dot (al-hero 2026-11-14) ----------
   The orbit ring (proto.css .hero-motif, decoration) carries its dot at 12 o'clock, which is right on the text column's
   right edge: the owner saw the kicker run into it on his iPhone, and the title rows, which now reach that edge, would
   cover it. The dot moves to 3 o'clock, the ring's outer side: right of the text column on computers, beyond the screen
   edge on phones and tablets (where the ring hangs past it). Same dot, same ring; the ring's turn on scroll is unchanged. */
.hero-home[data-motif="ring"] .hero-motif::after { top: calc(50% - 6px); left: calc(100% - 6px); }

/* ---------- the intro paragraph: clearly readable (applies with or without JS) ---------- */
.hero-home .hero-bot .hero-sub {
  font-size: clamp(16.5px, calc(14px + .45vw), 19px);
  line-height: 1.6;
  font-weight: 500;
  color: #f4f6fa;
  max-width: 60ch;
  /* a soft dark halo keeps every glyph crisp where the faint orbit ring passes behind it */
  text-shadow: 0 1px 2px rgba(8, 9, 13, .7), 0 0 16px rgba(8, 9, 13, .8);
}
@media (min-width: 1024px) {
  /* stop the paragraph before the orbit ring starts (ring geometry from proto.css .hero-motif). (al-hero 2026-11-14) And at
     46 characters, the kinetic heroes' measure: at 60 the buttons dropped under the paragraph on wide screens (1904px) but
     sat beside it at 1366px; now they sit beside it on every computer, as the prototype's foot row has them */
  .hero-home .hero-bot .hero-sub {
    max-width: min(46ch, calc(100vw - clamp(-40px, 4vw, 120px) - clamp(280px, 34vw, 560px) - (100vw - min(1200px, 92vw)) / 2 - 40px));
    /* the same 60ch in the paragraph's own font (Jakarta 500: "0" is .724em wide), so it is that width from the first
       paint, also while a stand-in font shows (page speed / layout shift, 2026-11-12): same value once Jakarta is in */
    max-width: min(calc(46 * .724em), calc(100vw - clamp(-40px, 4vw, 120px) - clamp(280px, 34vw, 560px) - (100vw - min(1200px, 92vw)) / 2 - 40px));
  }
}

/* ---------- first-paint layout: everything below is gated on html.rdhj ----------
   Owner 2026-11-14 (iPhone): "a ~350 px empty band above the kicker", the kicker wrapping into the ring's dot, rows ending
   at different right edges. Now the same column as the 25 kinetic heroes (rd-khero.css): header | free space above
   (--rdh-st) | kicker (--rdh-kh) | gap (--rdh-km) | title box (--rdh-bh) | gap (--rdh-bm) | paragraph + buttons (--rdh-fh)
   | free space below (--rdh-sb) | bottom room (--rdh-pb). The title gets all the height the rest leaves (the row model
   below), so on phones its rows reach the full measure (rd-home.r715.js then fits every row to it: the width axis, and
   optical alignment of the ink); what is still left is shared so that the room above the kicker equals the room below the
   buttons. The kicker and foot heights are the real ones, measured per language and width class (table below; tallest
   of the Archivo and the fallback-font kicker). Everything is computed from the screen and these numbers, fixed before
   the first paint: a font swap or a translation moves nothing (no layout shift). */
html.rdhj .hero-home {
  --rdh-H: 100vh;                 /* screen height (100svh where supported, below) */
  --rdh-W: min(1200px, 92vw);     /* the measure = .wrap width */
  --rdh-hd: 75px;                 /* fixed header (.hd: 32px logo badge + paddings) */
  --rdh-g: 18px;                  /* gap under the header */
  --rdh-km: 20px;                 /* kicker -> title box (phones 16px) */
  --rdh-kh: 20px;                 /* kicker height: measured, per language / width class (below) */
  --rdh-pb: 28px;                 /* bottom room (phones 20px) */
  --rdh-bm: 30px;                 /* title box -> paragraph (phones 22px) */
  --rdh-fh: 52px;                 /* paragraph + buttons: measured, per language / width class (below) */
  --rdh-fd: 0px;                  /* short screens: their tighter gap above the buttons */
  --rdh-cf: .24;                  /* largest row font-size, as a share of the screen height (as the kinetic heroes) */
  --rdh-bal: 99;                  /* Latin rows sized freely; Punjabi / Chinese / Arabic: none more than 1.75x the smallest */
  /* Row model, per language, measured with the site's Bricolage (Archivo is pending):
     cN = 100 / (width of row N set at 100px), lh = row line-height, eN = row N exists.
     Each row fills the measure (cN·W) unless the title would get taller than --rdh-Ha
     (then all rows scale together) or a row would pass the cap; no row may be more than
     1.75x the smallest one — rd-home.r702.js justify(), fallback-font branch.
     If the h1 translation changes, re-measure cN; until then the rows still fit the box
     (rd-home.r702.js scales them down or centres them inside it). */
  --rdh-lh: .84; --rdh-c1: .177019; --rdh-c2: .175435; --rdh-c3: .203583; --rdh-c4: 9; --rdh-e3: 1; --rdh-e4: 0;
  --rdh-Ha: max(120px, var(--rdh-H) - var(--rdh-hd) - var(--rdh-g) - var(--rdh-kh) - var(--rdh-km) - var(--rdh-bm) - var(--rdh-fh) + var(--rdh-fd) - var(--rdh-pb));
  --rdh-cap: calc(var(--rdh-cf) * var(--rdh-H));
  --rdh-lC: calc(var(--rdh-lh) * (var(--rdh-c1) + var(--rdh-c2) + var(--rdh-e3) * var(--rdh-c3) + var(--rdh-e4) * var(--rdh-c4)));
  --rdh-F1: min(var(--rdh-cap), var(--rdh-c1) * var(--rdh-W), max(var(--rdh-c1) * var(--rdh-Ha) / var(--rdh-lC), .35 * var(--rdh-c1) * var(--rdh-W)));
  --rdh-F2: min(var(--rdh-cap), var(--rdh-c2) * var(--rdh-W), max(var(--rdh-c2) * var(--rdh-Ha) / var(--rdh-lC), .35 * var(--rdh-c2) * var(--rdh-W)));
  --rdh-F3: min(var(--rdh-cap), var(--rdh-c3) * var(--rdh-W), max(var(--rdh-c3) * var(--rdh-Ha) / var(--rdh-lC), .35 * var(--rdh-c3) * var(--rdh-W)));
  --rdh-F4: min(var(--rdh-cap), var(--rdh-c4) * var(--rdh-W), max(var(--rdh-c4) * var(--rdh-Ha) / var(--rdh-lC), .35 * var(--rdh-c4) * var(--rdh-W)));
  --rdh-Fm: calc(var(--rdh-bal) * min(var(--rdh-F1), var(--rdh-F2), var(--rdh-F3), var(--rdh-F4)));
  --rdh-model: calc(var(--rdh-lh) * (min(var(--rdh-F1), var(--rdh-Fm)) + min(var(--rdh-F2), var(--rdh-Fm)) + var(--rdh-e3) * min(var(--rdh-F3), var(--rdh-Fm)) + var(--rdh-e4) * min(var(--rdh-F4), var(--rdh-Fm))));
  --rdh-bh: var(--rdh-model);     /* the reserved title box */
  /* the space left, shared: room above the kicker (--rdh-g + --rdh-st) = room below the buttons (--rdh-sb + --rdh-pb) */
  --rdh-fr: max(0px, var(--rdh-H) - var(--rdh-hd) - var(--rdh-g) - var(--rdh-kh) - var(--rdh-km) - var(--rdh-bh) - var(--rdh-bm) - var(--rdh-fh) + var(--rdh-fd) - var(--rdh-pb));
  --rdh-stc: clamp(0px, (var(--rdh-fr) + var(--rdh-pb) - var(--rdh-g)) / 2, var(--rdh-fr));
  /* (al-hero2) and never more than --rdh-sta above / --rdh-sbb below: on phones and portrait tablets the page's own section
     rhythm (the hero is as tall as its group plus that rhythm), elsewhere 20% of the screen (as rd-khero.css) */
  --rdh-sta: calc(.2 * var(--rdh-H)); --rdh-sbb: calc(.2 * var(--rdh-H));
  --rdh-st: min(var(--rdh-stc), max(0px, var(--rdh-sta) - var(--rdh-g)));
  --rdh-sb: min(var(--rdh-fr) - var(--rdh-stc), max(0px, var(--rdh-sbb) - var(--rdh-pb)));
  /* the hero's height: the whole column with the reserved kicker / foot heights (the same with the English first-paint
     words and the translation, so it never moves when they change) */
  --rdh-hh: calc(var(--rdh-hd) + var(--rdh-g) + var(--rdh-kh) + var(--rdh-km) + var(--rdh-st) + var(--rdh-bh) + var(--rdh-bm) + var(--rdh-fh) - var(--rdh-fd) + var(--rdh-pb) + var(--rdh-sb));
}
@supports (height: 100svh) { html.rdhj .hero-home { --rdh-H: 100svh; } }
/* the language the page will show (data-rdh-l: set before the first paint from localStorage
   'abs-lang', kept in step with the language switch by rd-home.r702.js) */
html.rdhj[data-rdh-l="fr"] .hero-home { --rdh-lh: .96; --rdh-c1: .120874; --rdh-c2: .153351; --rdh-c3: .189068; --rdh-c4: .156005; --rdh-e4: 1; }
html.rdhj[data-rdh-l="es"] .hero-home { --rdh-lh: .96; --rdh-c1: .119302; --rdh-c2: .165975; --rdh-c3: .155133; --rdh-c4: .154012; --rdh-e4: 1; }
html.rdhj[data-rdh-l="tl"] .hero-home { --rdh-lh: .84; --rdh-c1: .112320; --rdh-c2: .148677; --rdh-c3: .198531; --rdh-c4: .188111; --rdh-e4: 1; }
html.rdhj[data-rdh-l="pa"] .hero-home { --rdh-lh: 1.2; --rdh-c1: .153391; --rdh-c2: .149361; --rdh-c3: 9; --rdh-e3: 0; --rdh-bal: 1.75; }
html.rdhj[data-rdh-l="zh"] .hero-home { --rdh-lh: 1.2; --rdh-c1: .5;      --rdh-c2: .166667; --rdh-c3: 9; --rdh-e3: 0; --rdh-bal: 1.75; }
html.rdhj[data-rdh-l="ar"] .hero-home { --rdh-lh: 1.2; --rdh-c1: .217320; --rdh-c2: .245477; --rdh-c3: 9; --rdh-e3: 0; --rdh-bal: 1.75; }

@media (max-width: 760px) { html.rdhj .hero-home { --rdh-km: 16px; --rdh-pb: 20px; --rdh-bm: 22px; } }
@media (max-width: 700px) { html.rdhj .hero-home { --rdh-hd: 68px; } }
/* (al-hero2) the section rhythm of the page (al-mid): portrait tablets 10svh / 9svh, phones 8svh / 7svh */
@media (min-width: 761px) and (max-width: 1023px) and (orientation: portrait) {
  html.rdhj .hero-home { --rdh-sta: clamp(80px, 10svh, 128px); --rdh-sbb: clamp(64px, 9svh, 112px); }
}
@media (max-width: 760px) { html.rdhj .hero-home { --rdh-sta: clamp(56px, 8svh, 76px); --rdh-sbb: clamp(48px, 7svh, 64px); } }
html.rdhj .hero-home { min-height: var(--rdh-hh); }
/* the measured kicker (--rhkN) and paragraph + buttons (--rhfN) heights per language, N = width class (tallest over each
   class's sample widths; every common phone width sits at its class's lower edge; generated, re-measure if the hero's
   paragraph, kicker or their translation changes). Other languages: the taller of theirs and the English one, as the page
   first paints the HTML's English words and the language engine swaps in the translation later: the hero then never grows
   or shrinks when the words change (the ring, centred on the hero, would move: a layout shift). */
html.rdhj .hero-home, html.rdhj[data-rdh-l="en"] .hero-home { --rhk0: 37px; --rhk1: 37px; --rhk2: 37px; --rhk3: 37px; --rhk4: 37px; --rhk5: 37px; --rhk6: 37px; --rhk7: 37px; --rhk8: 19px; --rhk9: 20px; --rhk10: 20px; --rhk11: 20px; --rhk12: 20px; --rhk14: 20px; --rhk13: 20px; --rhf0: 269px; --rhf1: 243px; --rhf2: 243px; --rhf3: 243px; --rhf4: 243px; --rhf5: 243px; --rhf6: 243px; --rhf7: 243px; --rhf8: 145px; --rhf9: 150px; --rhf10: 152px; --rhf11: 156px; --rhf12: 186px; --rhf14: 92px; --rhf13: 92px; }
html.rdhj[data-rdh-l="fr"] .hero-home { --rhk0: 55px; --rhk1: 55px; --rhk2: 55px; --rhk3: 55px; --rhk4: 55px; --rhk5: 55px; --rhk6: 55px; --rhk7: 55px; --rhk8: 37px; --rhk9: 39px; --rhk10: 39px; --rhk11: 39px; --rhk12: 20px; --rhk14: 20px; --rhk13: 20px; --rhf0: 269px; --rhf1: 269px; --rhf2: 269px; --rhf3: 243px; --rhf4: 243px; --rhf5: 243px; --rhf6: 243px; --rhf7: 243px; --rhf8: 171px; --rhf9: 150px; --rhf10: 152px; --rhf11: 156px; --rhf12: 186px; --rhf14: 186px; --rhf13: 122px; }
html.rdhj[data-rdh-l="pa"] .hero-home { --rhk0: 37px; --rhk1: 37px; --rhk2: 37px; --rhk3: 37px; --rhk4: 37px; --rhk5: 37px; --rhk6: 37px; --rhk7: 37px; --rhk8: 19px; --rhk9: 20px; --rhk10: 20px; --rhk11: 20px; --rhk12: 20px; --rhk14: 20px; --rhk13: 20px; --rhf0: 269px; --rhf1: 243px; --rhf2: 243px; --rhf3: 243px; --rhf4: 243px; --rhf5: 243px; --rhf6: 243px; --rhf7: 243px; --rhf8: 145px; --rhf9: 150px; --rhf10: 152px; --rhf11: 156px; --rhf12: 186px; --rhf14: 92px; --rhf13: 92px; }
html.rdhj[data-rdh-l="es"] .hero-home { --rhk0: 55px; --rhk1: 55px; --rhk2: 37px; --rhk3: 37px; --rhk4: 37px; --rhk5: 37px; --rhk6: 37px; --rhk7: 37px; --rhk8: 37px; --rhk9: 37px; --rhk10: 20px; --rhk11: 20px; --rhk12: 20px; --rhk14: 20px; --rhk13: 20px; --rhf0: 269px; --rhf1: 269px; --rhf2: 269px; --rhf3: 269px; --rhf4: 243px; --rhf5: 243px; --rhf6: 243px; --rhf7: 243px; --rhf8: 171px; --rhf9: 173px; --rhf10: 152px; --rhf11: 156px; --rhf12: 186px; --rhf14: 122px; --rhf13: 122px; }
html.rdhj[data-rdh-l="zh"] .hero-home { --rhk0: 37px; --rhk1: 37px; --rhk2: 37px; --rhk3: 37px; --rhk4: 37px; --rhk5: 37px; --rhk6: 37px; --rhk7: 37px; --rhk8: 19px; --rhk9: 20px; --rhk10: 20px; --rhk11: 20px; --rhk12: 20px; --rhk14: 20px; --rhk13: 20px; --rhf0: 269px; --rhf1: 243px; --rhf2: 243px; --rhf3: 243px; --rhf4: 243px; --rhf5: 243px; --rhf6: 243px; --rhf7: 243px; --rhf8: 145px; --rhf9: 150px; --rhf10: 152px; --rhf11: 156px; --rhf12: 186px; --rhf14: 92px; --rhf13: 92px; }
html.rdhj[data-rdh-l="ar"] .hero-home { --rhk0: 37px; --rhk1: 37px; --rhk2: 37px; --rhk3: 37px; --rhk4: 37px; --rhk5: 37px; --rhk6: 37px; --rhk7: 37px; --rhk8: 19px; --rhk9: 20px; --rhk10: 20px; --rhk11: 20px; --rhk12: 20px; --rhk14: 20px; --rhk13: 20px; --rhf0: 269px; --rhf1: 243px; --rhf2: 243px; --rhf3: 243px; --rhf4: 243px; --rhf5: 243px; --rhf6: 243px; --rhf7: 243px; --rhf8: 145px; --rhf9: 150px; --rhf10: 152px; --rhf11: 156px; --rhf12: 186px; --rhf14: 92px; --rhf13: 92px; }
html.rdhj[data-rdh-l="tl"] .hero-home { --rhk0: 55px; --rhk1: 55px; --rhk2: 55px; --rhk3: 55px; --rhk4: 37px; --rhk5: 37px; --rhk6: 37px; --rhk7: 37px; --rhk8: 37px; --rhk9: 39px; --rhk10: 39px; --rhk11: 20px; --rhk12: 20px; --rhk14: 20px; --rhk13: 20px; --rhf0: 296px; --rhf1: 296px; --rhf2: 269px; --rhf3: 269px; --rhf4: 269px; --rhf5: 269px; --rhf6: 269px; --rhf7: 269px; --rhf8: 171px; --rhf9: 175px; --rhf10: 152px; --rhf11: 156px; --rhf12: 213px; --rhf14: 122px; --rhf13: 122px; }
html.rdhj .hero-home { --rdh-kh: var(--rhk13, 20px); --rdh-fh: var(--rhf13, 156px); }
@media (max-width: 1303px) { html.rdhj .hero-home { --rdh-kh: var(--rhk14, 20px); --rdh-fh: var(--rhf14, 186px); } }
@media (max-width: 1279px) { html.rdhj .hero-home { --rdh-kh: var(--rhk12, 20px); --rdh-fh: var(--rhf12, 213px); } }
@media (max-width: 1023px) { html.rdhj .hero-home { --rdh-kh: var(--rhk11, 20px); --rdh-fh: var(--rhf11, 150px); } }
@media (max-width: 839px) { html.rdhj .hero-home { --rdh-kh: var(--rhk10, 39px); --rdh-fh: var(--rhf10, 150px); } }
@media (max-width: 760px) { html.rdhj .hero-home { --rdh-kh: var(--rhk9, 37px); --rdh-fh: var(--rhf9, 243px); } }
@media (max-width: 666px) { html.rdhj .hero-home { --rdh-kh: var(--rhk8, 37px); --rdh-fh: var(--rhf8, 243px); } }
@media (max-width: 599px) { html.rdhj .hero-home { --rdh-kh: var(--rhk7, 37px); --rdh-fh: var(--rhf7, 243px); } }
@media (max-width: 429px) { html.rdhj .hero-home { --rdh-kh: var(--rhk6, 37px); --rdh-fh: var(--rhf6, 243px); } }
@media (max-width: 427px) { html.rdhj .hero-home { --rdh-kh: var(--rhk5, 37px); --rdh-fh: var(--rhf5, 243px); } }
@media (max-width: 413px) { html.rdhj .hero-home { --rdh-kh: var(--rhk4, 37px); --rdh-fh: var(--rhf4, 243px); } }
@media (max-width: 411px) { html.rdhj .hero-home { --rdh-kh: var(--rhk3, 37px); --rdh-fh: var(--rhf3, 269px); } }
@media (max-width: 389px) { html.rdhj .hero-home { --rdh-kh: var(--rhk2, 37px); --rdh-fh: var(--rhf2, 269px); } }
@media (max-width: 374px) { html.rdhj .hero-home { --rdh-kh: var(--rhk1, 55px); --rdh-fh: var(--rhf1, 269px); } }
@media (max-width: 359px) { html.rdhj .hero-home { --rdh-kh: var(--rhk0, 55px); --rdh-fh: var(--rhf0, 296px); } }

html.rdhj .hero-home .hero-in {
  max-width: none; height: auto; min-height: var(--rdh-hh);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding-block: calc(var(--rdh-hd) + var(--rdh-g) + var(--rdh-kh) + var(--rdh-km)) calc(var(--rdh-pb) + var(--rdh-sb));
}
/* the free space above the group: a fixed height (the column already adds up to the screen) */
html.rdhj .hero-home .hero-in::before { content: ""; display: block; flex: none; height: var(--rdh-st); }
html.rdhj .hero-home .hero-top { position: relative; flex: none; margin: 0; height: var(--rdh-bh); }
html.rdhj .hero-home .hero-top .kicker { position: absolute; left: 0; right: 0; bottom: 100%; margin: 0 0 var(--rdh-km); }
/* (seo-h1) the h1 becomes the rows box as soon as the parser has closed it (the <head> script; else rd-home.r715.js, e.g. on
   short landscape screens): until then, with .rdhj already on, it is kept out of sight and out of the layout as before */
html.rdhj .hero-home .hero-top h1:not(.rdh-rows) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
html.rdhj .hero-home .hero-bot { flex: none; margin: var(--rdh-bm) 0 0; max-width: none; }
html.rdhj .hero-home .hero-bot .hero-sub { margin: 0; }
html.rdhj .hero-home .hero-bot .hero-cta { margin-top: 24px; }
@media (min-width: 1024px) {
  /* the prototype's foot row: paragraph left, buttons right */
  html.rdhj .hero-home .hero-bot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 48px; }
  html.rdhj .hero-home .hero-bot .hero-cta { margin-top: 0; flex: none; }
}
@media (max-width: 760px) {
  html.rdhj .hero-home .hero-bot .hero-cta { margin-top: 22px; }
  html.rdhj .hero-home .hero-bot .grev { margin-top: 0; }
}
/* Short landscape screens (phones on their side): the paragraph and the buttons stay on the first
   screen. The box is wide and low, so rd-home.r702.js sets the heading in 2 rows there (same media
   query); the box is that 2-row model (tN = 100 / width of 2-row row N at 100px), capped by what is
   left after the header, kicker, paragraph and buttons (their measured heights); gaps are tighter. */
@media (max-height: 500px) and (max-width: 1023px) {
  html.rdhj .hero-home {
    --rdh-g: 8px; --rdh-km: 10px; --rdh-bm: 14px; --rdh-pb: 8px;
    --rdh-cm: 14px; --rdh-fd: 10px;   /* the buttons' gap: 14px here instead of the measured 24px */
    --rdh-t1: .124625; --rdh-t2: .116591;
    --rdh-lT: calc(var(--rdh-lh) * (var(--rdh-t1) + var(--rdh-t2)));
    --rdh-T1: min(var(--rdh-cap), var(--rdh-t1) * var(--rdh-W), max(var(--rdh-t1) * var(--rdh-Ha) / var(--rdh-lT), .35 * var(--rdh-t1) * var(--rdh-W)));
    --rdh-T2: min(var(--rdh-cap), var(--rdh-t2) * var(--rdh-W), max(var(--rdh-t2) * var(--rdh-Ha) / var(--rdh-lT), .35 * var(--rdh-t2) * var(--rdh-W)));
    --rdh-Tm: calc(1.75 * min(var(--rdh-T1), var(--rdh-T2)));
    --rdh-two: calc(var(--rdh-lh) * (min(var(--rdh-T1), var(--rdh-Tm)) + min(var(--rdh-T2), var(--rdh-Tm))));
    --rdh-fit: calc(var(--rdh-H) - var(--rdh-hd) - var(--rdh-g) - var(--rdh-kh) - var(--rdh-km) - var(--rdh-pb) - var(--rdh-bm)
      - var(--rdh-fh) + var(--rdh-fd));
    --rdh-bh: max(40px, min(var(--rdh-two), var(--rdh-fit)));
  }
  html.rdhj[data-rdh-l="fr"] .hero-home { --rdh-t1: .065802; --rdh-t2: .084034; }
  html.rdhj[data-rdh-l="es"] .hero-home { --rdh-t1: .067481; --rdh-t2: .076103; }
  html.rdhj[data-rdh-l="tl"] .hero-home { --rdh-t1: .075705; --rdh-t2: .074676; }
  html.rdhj[data-rdh-l="pa"] .hero-home { --rdh-t1: .153391; --rdh-t2: .149361; }
  html.rdhj[data-rdh-l="zh"] .hero-home { --rdh-t1: .5;      --rdh-t2: .166667; }
  html.rdhj[data-rdh-l="ar"] .hero-home { --rdh-t1: .217320; --rdh-t2: .245477; }
  html.rdhj .hero-home .hero-bot .hero-cta { margin-top: var(--rdh-cm); }
}
@media (max-height: 500px) and (max-width: 760px) { html.rdhj .hero-home { --rdh-fd: 8px; } }   /* (22px measured there) */

/* ---------- the rows before rd-home.r702.js has measured them (box without .fitd) ----------
   Rows built by the <head> script are painted before any script at the end of <body> has run, and
   rd-home.r702.js measures only after that first paint; until then the row model sizes and aligns
   them. Row N gets min(FN, Fm) — what justify() computes with the site's font (it then sets the
   measured size inline; the two agree within about half a pixel). On a short landscape screen
   (phones on their side) the rows are not built early and are measured before they are first shown,
   as before — fit() scales them by box / model height there, which CSS cannot divide exactly; the
   2-row rule below (uN = the rows' widths-per-size after the 1.75 cap, scaled to fill the box height)
   is only a close default. The 2nd and 4th rows are end-aligned when the model says
   they stop short of the measure by more than 3% — fit()'s own .rt rule: the padding is
   clamp(0, (gap - 3%) x 1e4, gap), i.e. 0 for a gap up to 3% and the whole gap above that.
   (In RTL inline-start is the right side, so this is end-alignment there too.) */
html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(1) { --rdh-F: min(var(--rdh-F1), var(--rdh-Fm)); --rdh-c: var(--rdh-c1); }
html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(2) { --rdh-F: min(var(--rdh-F2), var(--rdh-Fm)); --rdh-c: var(--rdh-c2); }
html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(3) { --rdh-F: min(var(--rdh-F3), var(--rdh-Fm)); --rdh-c: var(--rdh-c3); }
html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(4) { --rdh-F: min(var(--rdh-F4), var(--rdh-Fm)); --rdh-c: var(--rdh-c4); }
@media (max-height: 500px) and (max-width: 1023px) {
  html.rdhj .hero-home {
    --rdh-u1: min(var(--rdh-t1), 1.75 * min(var(--rdh-t1), var(--rdh-t2)));
    --rdh-u2: min(var(--rdh-t2), 1.75 * min(var(--rdh-t1), var(--rdh-t2)));
  }
  html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(1) { --rdh-F: min(var(--rdh-T1), var(--rdh-Tm), var(--rdh-u1) / (var(--rdh-lh) * (var(--rdh-u1) + var(--rdh-u2))) * var(--rdh-bh)); --rdh-c: var(--rdh-t1); }
  html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(2) { --rdh-F: min(var(--rdh-T2), var(--rdh-Tm), var(--rdh-u2) / (var(--rdh-lh) * (var(--rdh-u1) + var(--rdh-u2))) * var(--rdh-bh)); --rdh-c: var(--rdh-t2); }
}
html.rdhj .hero-home .rdh-rows > .rdh-row { font-size: var(--rdh-F, 100px); }
html.rdhj .hero-home .rdh-rows:not(.fitd) > .rdh-row:nth-child(even) {
  --rdh-gap: calc(var(--rdh-W) - var(--rdh-F) / var(--rdh-c));
  padding-inline-start: clamp(0px, (var(--rdh-gap) - .03 * var(--rdh-W)) * 10000, var(--rdh-gap));
}

/* ---------- entrance: transform only ----------
   The prototype's assembly — rows come in from alternate sides (half the measure away) and settle,
   0.83 s each, 0.11 s apart, ease-out — as a CSS animation on the row. It is a pure transform, so
   the rows are painted, fully opaque, from the very first frame (they count as content at once) and
   the motion runs on the compositor even while scripts are still loading. The scroll drift is a
   separate transform on the row's text (.rdh-ht, rd-home.r702.js), so both add up as before.
   .ni = rows rebuilt by a language switch far down the page: no entrance. Reduced motion: none. */
@keyframes rdh-in-l { from { transform: translate3d(calc(var(--rdh-W) * -.5), 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes rdh-in-r { from { transform: translate3d(calc(var(--rdh-W) * .5), 0, 0); } to { transform: translate3d(0, 0, 0); } }
html.rdhj .hero-home .rdh-rows > .rdh-row { animation: rdh-in-l .8333s cubic-bezier(.33, 1, .68, 1) backwards; }
html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(even) { animation-name: rdh-in-r; }
html.rdhj[dir="rtl"] .hero-home .rdh-rows > .rdh-row { animation-name: rdh-in-r; }
html.rdhj[dir="rtl"] .hero-home .rdh-rows > .rdh-row:nth-child(even) { animation-name: rdh-in-l; }
html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(2) { animation-delay: .1083s; }
html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(3) { animation-delay: .2167s; }
html.rdhj .hero-home .rdh-rows > .rdh-row:nth-child(4) { animation-delay: .325s; }
html.rdhj .hero-home .rdh-rows.ni > .rdh-row { animation: none !important; }
@media (prefers-reduced-motion: reduce) { html.rdhj .hero-home .rdh-rows > .rdh-row { animation: none !important; } }

/* proto.css's reduced-motion rule gives EVERY property a .01ms transition, which makes freshly set
   sizes read back stale; the rows and the box are measured by rd-home.r702.js, so they never transition */
html.rdhj .hero-home .hero-in, html.rdhj .hero-home .hero-top, .hero-home .rdh-rows, .hero-home .rdh-row, .hero-home .rdh-ht, .hero-home .rdh-ht em { transition: none !important; }

/* ---------- kinetic rows (drawn by rd-home.r715.js inside the reserved box) ----------
   (seo-h1) The rows box is the h1 itself: class .rdh-rows on the h1, the row spans its content (its own words, a space between
   rows where the words have one, the accent phrase still <em class="ac">; no hidden heading, no aria-hidden copy). The rows
   set their own size, line and tracking, so the site's h1 rules on the box do not reach them. */
.hero-home .rdh-vh { position: absolute; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
/* the row model's height budget, read by rd-home.r702.js so the script and the CSS size the rows alike */
.hero-home .rdh-ha { position: absolute; top: 0; left: 0; width: 0; height: var(--rdh-Ha, 0px); visibility: hidden; pointer-events: none; }
html.rdhj .hero-home.rdh .rdh-rows {
  display: flex; flex-direction: column; justify-content: center;
  position: absolute; inset: 0; margin: 0;
  max-width: none; padding: 0; border: 0;
  font-family: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800; color: #f4f6fa;
  -webkit-user-select: none; user-select: none;
}
/* the accent phrase inside a row: the row's own colour and font, as before (the blue row is the accent's colour). Like the
   row's text it is measured while the script fits the row, so it never transitions either (the rule above) */
html.rdhj .hero-home .rdh-rows em {
  font-style: normal; color: currentColor; background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
/* Archivo only once rd-home.r702.js has seen it loaded (.af) and sized the rows for it in the same frame, so the
   browser never swaps the font under rows already on screen (that swap moved them: layout shift) */
html.rdhj .hero-home.rdh .rdh-rows.af { font-family: "Archivo", "Bricolage", "Bricolage Grotesque", system-ui, sans-serif; }
.hero-home .rdh-row {
  display: block; flex: none; white-space: nowrap; text-align: start;
  font-size: 100px; line-height: .84; letter-spacing: -.005em; text-transform: uppercase;
}
.hero-home .rdh-ht { display: inline-block; will-change: transform; }
.hero-home .rdh-row.lt { color: #cdd4df; font-weight: 500; }
.hero-home .rdh-row.bl { color: #3d8bff; }
.hero-home .rdh-row.rt { text-align: end; }
/* a real word gap with Archivo (its own space is a sliver at the condensed end of the width axis); the rows are
   sized by rd-home.r702.js after the switch, so it is measured in */
.hero-home .rdh-rows.af:not(.nl) .rdh-row { word-spacing: .1em; }
/* Punjabi and Arabic keep the fallback chain after the switch: Archivo is Latin only, yet it would supply the space
   between their words (about .11em, the device font's wide words run together); Bricolage's is .22em, the word gap
   the live site's headings have (as rd-wall / rd-offer / rd-cta do since 0c637be). Chinese has no spaces between words. */
html.rdhj .hero-home.rdh .rdh-rows.af:is(:lang(pa), :lang(ar)) { font-family: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif; }
/* until Archivo ships, the Bricolage fallback reads better a touch tighter */
.hero-home .rdh-rows:not(.af):not(.nl) .rdh-row { letter-spacing: -.022em; }
.hero-home .rdh-rows:not(.af):not(.nl) .rdh-row.lt { letter-spacing: -.012em; }
/* accented capitals (É, Á, Ç …) need a little more room between rows */
.hero-home .rdh-rows.acc .rdh-row { line-height: .96; }
/* Gurmukhi, Chinese, Arabic: no case, no tracking (it breaks Arabic joining), taller lines */
.hero-home .rdh-rows.nl .rdh-row { line-height: 1.2; letter-spacing: 0; text-transform: none; }

/* page speed (2026-11-12): the rows' box is sized by its insets (absolute, inset 0 inside the reserved title box), never
   by the rows, so it is laid out on its own: a row's new width / weight (the scroll morph) re-lays out the rows only,
   not the page around them. Nothing on screen changes. */
html.rdhj .hero-home.rdh .rdh-rows { contain: layout; }
/* (2026-11-12, smoothness) and size: with layout alone the browser still re-laid out the whole page from the top for every
   new width / weight of the morph (1,142 boxes per frame); with size too the box is a layout boundary and only the rows
   inside it are laid out again. Its size never came from the rows (absolute, inset 0 inside the reserved title box), so
   nothing on screen changes. */
html.rdhj .hero-home.rdh .rdh-rows { contain: layout size; }

/* ---------- the scroll drift on the compositor (rd-home.r702.js adds .sd where the browser has scroll-driven animations) ----------
   Each row's text slides sideways by --rdh-tx (its full-scroll distance, written once per fit) as the page scrolls from the
   hero's top (--rdh-a0) to its bottom (--rdh-a1), on the curve progress^1.15 (the linear() points below: within 0.4 px) —
   exactly the frame callback's drift, but driven by the scroll position itself on the compositor. The width / weight morph
   stays with rd-home.r702.js. */
@keyframes rdh-drift {
  from { transform: translate3d(0px, 0, 0); }
  to { transform: translate3d(var(--rdh-tx, 0px), 0, 0); }
}
html.rdhj .hero-home.rdh .rdh-rows.sd > .rdh-row > .rdh-ht {
  animation-name: rdh-drift; animation-duration: 1ms; animation-fill-mode: both; animation-delay: 0s; animation-iteration-count: 1;
  animation-timing-function: linear(0, 0.01438 2.5%, 0.0319 5%, 0.05085 7.5%, 0.07079 10%, 0.09151 12.5%, 0.11285 15%, 0.13474 17.5%, 0.1571 20%, 0.17989 22.5%, 0.20306 25%, 0.22659 27.5%, 0.25043 30%, 0.27458 32.5%, 0.299 35%, 0.32369 37.5%, 0.34863 40%, 0.37381 42.5%, 0.3992 45%, 0.42481 47.5%, 0.45063 50%, 0.47663 52.5%, 0.50283 55%, 0.5292 57.5%, 0.55574 60%, 0.58245 62.5%, 0.60933 65%, 0.63635 67.5%, 0.66353 70%, 0.69086 72.5%, 0.71832 75%, 0.74593 77.5%, 0.77367 80%, 0.80153 82.5%, 0.82953 85%, 0.85765 87.5%, 0.88589 90%, 0.91425 92.5%, 0.94272 95%, 0.9713 97.5%, 1);
  animation-timeline: scroll(root block);
  animation-range: var(--rdh-a0, 0px) var(--rdh-a1, 100vh);
}
@media (prefers-reduced-motion: reduce) { html.rdhj .hero-home.rdh .rdh-rows.sd > .rdh-row > .rdh-ht { animation: none !important; } }
/* Paint order (the paragraph and the buttons must be drawn exactly as before). While the drift runs on the compositor the
   browser cannot know where the rows will be, so it puts everything painted after them in the hero (the paragraph and the
   buttons, which the page's intro leaves with a transform) into layers of its own - and text in a layer of its own is
   smoothed in grey instead of in colour. Before, that happened only where the rows' text boxes reach down to the
   paragraph / buttons (the browser then drew them in their own layers too). So where they do not (.zt: the script measures
   it in every fit), the rows are painted last (z-index 1): they overlap nothing there, the picture is the same and the
   paragraph and the buttons keep their own layer-free drawing; where they do, the order stays as it was. */
html.rdhj .hero-home.rdh .rdh-rows.sd.zt { z-index: 1; }

/* Layout shift on a first visit in French, Spanish or Tagalog (audit S3, 2026-11-12). The page first paints with the
   HTML's English words; the site's language engine puts in the saved language's words when its dictionary arrives
   (seconds later on a slow line). On desktop the hero's buttons sit beside the paragraph when they fit, else under it:
   the English buttons fit beside it, the translated ones (wider) do not, so the buttons jumped from the right to under
   the paragraph when the words changed (layout shift 0.05 in French, 0.47 in Tagalog at 1280 px). Here the buttons'
   box is never narrower than the translated buttons (their measured width, less 1px), from the first paint: it wraps
   (or not) exactly as it will with the translated words. With the translated words in, the buttons are wider than this,
   so the final layout is unchanged. Latin-script languages only: their buttons use the site's own font (Jakarta), so
   the width is the same on every device. */
@media (min-width: 1024px) {
  html.rdhj[data-rdh-l="fr"] .hero-home .hero-bot .hero-cta { min-width: 514px; }   /* translated: 515.2px */
  html.rdhj[data-rdh-l="es"] .hero-home .hero-bot .hero-cta { min-width: 474.9px; } /* translated: 476.0px */
  html.rdhj[data-rdh-l="tl"] .hero-home .hero-bot .hero-cta { min-width: 431.5px; } /* translated: 432.6px */
}

/* ==================== pc-flow block (2026-11-14), separate from the layout rules above ====================
   Owner, on his PC: the "A SMARTER WAY..." title "IS LAGGING WHEN I SLOWLY SCROLL" (the Private Auto Finance title is
   smooth). The width / weight morph was written per frame by the script: a new font instance per row, shaped and drawn
   at 150-200 px in every scroll frame. rd-home.r721.js now measures, once per fit, how wide each row's text would be at
   the morph's axes at 10 / 20 / 30 / 40 / 50 / 65 / 80 / 100% of the hero's scroll (--rdh-k1..8) and adds .sx; here that width change is a
   horizontal stretch of the row's text driven by the scroll on the compositor (no script, no layout, no new font per
   frame), about the row's aligned edge. The drift moves from transform to the translate property: same keyframes, same
   curve (the linear() points of the drift rule above), same range, and translate applies after the stretch, so the
   stretch never scales the drift. Linear between the table's points (the timing function of a CSS animation applies
   per keyframe interval, so the stretch has its own animation, linear, with the morph's curve in its points).
   Looks different from the font morph: the letters stretch as a picture (no weight change; stems stretch with them). */
@keyframes rdh-drift-t { from { translate: 0px 0px; } to { translate: var(--rdh-tx, 0px) 0px; } }
/* The stretch is about the text's start edge. A row the font morph widened stayed aligned as before: an end-aligned row
   (.rt) grew towards the start until it filled the measure, then (overflowing) from its start edge; that alignment
   shift is the small translateX (--rdh-c1..8, measured by the script, 0 for start-aligned rows), applied before the
   stretch. */
@keyframes rdh-sx {
  0% { scale: 1 1; transform: translateX(0px); }
  10% { scale: var(--rdh-k1, 1) 1; transform: translateX(var(--rdh-c1, 0px)); }
  20% { scale: var(--rdh-k2, 1) 1; transform: translateX(var(--rdh-c2, 0px)); }
  30% { scale: var(--rdh-k3, 1) 1; transform: translateX(var(--rdh-c3, 0px)); }
  40% { scale: var(--rdh-k4, 1) 1; transform: translateX(var(--rdh-c4, 0px)); }
  50% { scale: var(--rdh-k5, 1) 1; transform: translateX(var(--rdh-c5, 0px)); }
  65% { scale: var(--rdh-k6, 1) 1; transform: translateX(var(--rdh-c6, 0px)); }
  80% { scale: var(--rdh-k7, 1) 1; transform: translateX(var(--rdh-c7, 0px)); }
  100% { scale: var(--rdh-k8, 1) 1; transform: translateX(var(--rdh-c8, 0px)); }
}
.hero-home .rdh-rows.sx > .rdh-row > .rdh-ht { transform-origin: 0 50%; }
html[dir="rtl"] .hero-home .rdh-rows.sx > .rdh-row > .rdh-ht { transform-origin: 100% 50%; }
html.rdhj .hero-home.rdh .rdh-rows.sd.sx > .rdh-row > .rdh-ht {
  animation-name: rdh-drift-t, rdh-sx; animation-duration: 1ms, 1ms; animation-fill-mode: both, both; animation-delay: 0s, 0s;
  animation-iteration-count: 1, 1;
  animation-timing-function: linear(0, 0.01438 2.5%, 0.0319 5%, 0.05085 7.5%, 0.07079 10%, 0.09151 12.5%, 0.11285 15%, 0.13474 17.5%, 0.1571 20%, 0.17989 22.5%, 0.20306 25%, 0.22659 27.5%, 0.25043 30%, 0.27458 32.5%, 0.299 35%, 0.32369 37.5%, 0.34863 40%, 0.37381 42.5%, 0.3992 45%, 0.42481 47.5%, 0.45063 50%, 0.47663 52.5%, 0.50283 55%, 0.5292 57.5%, 0.55574 60%, 0.58245 62.5%, 0.60933 65%, 0.63635 67.5%, 0.66353 70%, 0.69086 72.5%, 0.71832 75%, 0.74593 77.5%, 0.77367 80%, 0.80153 82.5%, 0.82953 85%, 0.85765 87.5%, 0.88589 90%, 0.91425 92.5%, 0.94272 95%, 0.9713 97.5%, 1), linear;
  animation-timeline: scroll(root block), scroll(root block);
  animation-range: var(--rdh-a0, 0px) var(--rdh-a1, 100vh), var(--rdh-a0, 0px) var(--rdh-a1, 100vh);
}
