/* ============================================================
   RD-KHERO — redesign items 9 and 11 (owner-approved 2026-11-10)
   Private Auto Finance and Get Pre-Approved: the final prototype's
   kinetic hero. Blue-dot eyebrow (the page's kicker), the h1 drawn
   as giant rows (heavy / thin-condensed / heavy / blue, Archivo
   width + weight axes) that slide sideways at different speeds as
   you scroll, the paragraph (PAF) and the page's own buttons.
   The pinned scroll-film (80-frame scrubber, video, water canvas,
   loading chip) and its pin are gone (owner: too laggy) — the hero
   is one screen tall and scrolls normally.
   BACKGROUND: one swappable layer, .rdk-bg — plain near-black
   (#050505, the prototype's) until the owner picks a background
   (changelist item 14). A chosen background drops into .rdk-bg
   (or replaces its rule) without touching anything else.
   FIRST PAINT: the page's inline <head> script puts .rdkj (+
   data-rdk-l = the saved language) on <html> before the first
   paint, so the final layout — eyebrow, reserved title box, foot —
   is in place when the page first draws. Every size and position
   is CSS's (the row model below); rd-khero.r714.js only sets the
   rows' font axes and transforms, so nothing ever shifts (CLS 0),
   also when Archivo swaps in for the fallback font.
   In English the <head> script also builds the rows as soon as
   the parser closes the h1 (title in the first paint). Without JS
   there is no .rdkj: the h1 shows as one giant uppercase heading.
   The <h1 data-i18n> is the one real heading and IS the rows (seo-h1):
   its content is the row spans (its own words, a space between rows
   where the words have one, the accent phrase still <em class="ac">),
   rebuilt from its own HTML in every language — no hidden heading,
   no aria-hidden copy.
   Linked ?v=rd8 (rd4, 2026-11-14: the eyebrow tied to the title and the placement of the group — see
   "first-paint layout" below; rd5: the foot and eyebrow heights per page, language and width class, and short screens; rd6: balanced eyebrow lines; rd7: sized to the group on phones and portrait tablets; rd8: the rows drawn inside the h1 itself).
   ============================================================ */

/* Archivo (variable: wdth 62–125, wght 100–900; Latin). Other scripts use the device's fonts.
   Loading — page speed and no layout shift (measured, headless Chrome, cold cache):
   - not preloaded: a preload took bandwidth from the render-blocking CSS and delayed the first paint
     (slow 4G: LCP +0.3–0.6 s vs no preload), without preventing a swap on slow connections anyway;
   - the title rows use it with font-display: swap through "Archivo Rows", a face that carries the fallback's
     (Bricolage's) vertical metrics; their box and alignment come from the row model — so when Archivo
     arrives after the first paint, the glyphs change and nothing moves;
   - the hero's small UI text (eyebrow, buttons) uses an "optional" face: if the font is not there for the
     first paint, that text keeps the fallback for this page view instead of swapping (no moving buttons). */
@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; }
@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; }
/* the title rows: the same file, with the vertical metrics of the fallback (Bricolage: ascent .93, descent .27;
   Archivo's own are .88 / .21) — so when Archivo swaps in after the first paint the rows' text keeps its exact
   place (only the glyphs change), and the swap is not a layout shift. The baseline itself moves < 1px. */
@font-face { font-family: "Archivo Rows"; src: url(../fonts/archivo-variable.woff2) format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  ascent-override: 93%; descent-override: 27%; line-gap-override: 0%; }

/* ---------- the section (with or without JS) ---------- */
.rdk {
  --rdk-ink: #f3f2ee;
  --rdk-blue: #3d8bff;
  --rdk-wide: "Archivo", "Bricolage", "Bricolage Grotesque", system-ui, sans-serif;
  --rdk-ui: "Archivo UI", "Bricolage", "Bricolage Grotesque", system-ui, sans-serif;
  --rdk-rowfont: "Archivo Rows", "Bricolage", "Bricolage Grotesque", system-ui, sans-serif;
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  color: var(--rdk-ink); background: #050505; color-scheme: dark;
}
/* guide pages: the hero is the first child of main.wrap.guide-wrap (a centred measure) — full width like the other pages
   (the body clips sideways overflow); and no eyebrow slot (guides have no kicker) */
.guide-wrap > .rdk { margin-inline: calc(50% - 50vw); }
/* guide pages: rd-guide.css makes main full width (its sheets are full-bleed) but loads after the In-short section,
   below the first screen (page speed); the same two declarations here, so main's box is already final in the first
   paint and does not move when rd-guide.css arrives (no layout shift) */
main.guide-wrap { width: auto; margin-inline: 0; }
html.rdkj .rdk.rdk-guide { --kh: 0px; }
/* the background layer — the one place a chosen background goes */
.rdk > .rdk-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: #050505; }
.rdk .rdk-in { position: relative; display: flex; flex-direction: column; min-height: inherit;
  padding-block: calc(75px + 18px) 28px; }
@media (max-width: 700px) { .rdk .rdk-in { padding-top: calc(68px + 18px); } }
.rdk .hero-load { display: none !important; }        /* the old film's loading chip: unused */

/* eyebrow: the page's kicker with the prototype's blue dot */
.rdk .rdk-eye {
  display: flex; align-items: flex-start; gap: 10px; margin: 0;
  font: 500 15px/1.3 var(--rdk-ui); font-stretch: 125%; letter-spacing: .08em; text-transform: uppercase;
  color: #d6d5d0;
  /* balanced lines: no lone last word (owner 2026-11-14); the same number of lines, so the measured heights hold */
  text-wrap: balance;
}
.rdk .rdk-eye::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--rdk-blue);
  box-shadow: 0 0 12px rgba(61,139,255,.9); margin-top: calc((1.3em - 9px) / 2);
}
@media (max-width: 760px) { .rdk .rdk-eye { font-size: 14px; } }

/* the heading without JS: one giant block (as written — no case change, so it is read exactly as written) */
.rdk .rdk-h1 {
  margin: 22px 0 0; max-width: 16ch;
  font: 400 clamp(44px, 10vw, 128px)/.92 var(--rdk-wide); font-weight: 860; font-stretch: 80%;
  letter-spacing: -.01em; color: var(--rdk-ink); text-wrap: balance;
}
.rdk .rdk-h1 em.ac { font-style: normal; color: var(--rdk-blue); background: none; -webkit-text-fill-color: currentColor; }

/* the foot: paragraph + buttons (prototype .hfoot) */
.rdk .rdk-bot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px;
  margin: 22px 0 0; max-width: none;
}
.rdk .rdk-sub { margin: 0; max-width: 46ch; font: 400 16px/1.5 var(--fb); color: #dcdbd6; }
/* a paragraph takes its direction from its own first letter: a guide's English-only paragraph on an Arabic page reads
   left to right with its full stop at the end (it showed ".promise you a yes") and starts at the left, under its English
   rows; every Arabic paragraph starts with an Arabic letter, so it stays right to left, exactly as before */
.rdk .rdk-sub { unicode-bidi: plaintext; }
/* a link in the paragraph (Sell Your Car's guide link): blue and underlined, as the "In short" sections' links (rd-morph.css) */
.rdk .rdk-sub a { color: var(--rdk-blue); text-decoration: underline; text-decoration-thickness: max(1px, .07em);
  text-underline-offset: .18em; text-decoration-color: rgba(61,139,255,.75); }
@media (hover: hover) { .rdk .rdk-sub a:hover { text-decoration-color: var(--rdk-blue); } }
.rdk .rdk-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
/* buttons: the prototype's blue pill with a soft glow, and the outline pill */
.rdk .rdk-cta .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; overflow: visible;
  font: 700 16px/1 var(--rdk-ui); font-stretch: 110%; letter-spacing: .01em; white-space: nowrap;
  border: 1.5px solid transparent; transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .25s, color .25s, box-shadow .3s;
}
.rdk .rdk-cta .btn-primary {
  background: var(--rdk-blue); color: #050505;
  box-shadow: 0 10px 32px -8px rgba(61,139,255,.85), 0 0 0 1px rgba(61,139,255,.35);
}
.rdk .rdk-cta .btn-primary::after {        /* the arrow — decorative (no text, not read) */
  content: ""; position: static; inset: auto; z-index: auto; flex: none; width: 18px; height: 18px; background: currentColor;
  transform: none; animation: none; transition: transform .3s;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}
[dir="rtl"] .rdk .rdk-cta .btn-primary::after { scale: -1 1; }
.rdk .rdk-cta .btn-ghost { background: transparent; color: var(--rdk-ink); border-color: currentColor; }
.rdk .rdk-cta .btn:active { transform: scale(.96); }
@media (hover: hover) {
  .rdk .rdk-cta .btn-primary:hover { box-shadow: 0 16px 46px -6px rgba(61,139,255,1), 0 0 0 1px rgba(61,139,255,.55); }
  .rdk .rdk-cta .btn-primary:hover::after { transform: translateX(4px); }
  [dir="rtl"] .rdk .rdk-cta .btn-primary:hover::after { transform: translateX(-4px); }
  .rdk .rdk-cta .btn-ghost:hover { background: rgba(243,242,238,.08); box-shadow: none; }
}
.rdk a:focus-visible { outline: 2px solid var(--rdk-blue); outline-offset: 3px; }
@media (max-width: 760px) { .rdk .rdk-bot { gap: 18px; } }

/* ---------- first-paint layout: everything below is gated on html.rdkj ----------
   Column: header room | free space above (--st) | eyebrow slot (--kh) | gap (--km) | title box (--bh) | 22px |
   foot | free space below (--sb) | bottom room (--pb).
   The spacer and the box are computed here from the screen and the row model, never from the foot or the
   eyebrow as rendered — so a font swap or a longer translation there cannot move the title.
   Placement (owner 2026-11-14, "a lot of space in between" the eyebrow and the title): the eyebrow is tied to
   the title — its bottom edge sits a fixed --km above the title box (a 2-line translation grows upward, never
   into the title) — and the space left over (--sp - --km) goes where the placement puts it:
     mid (default, every screen): shared above the eyebrow and below the foot — eyebrow, title, paragraph and
                    buttons read as one group, optically centred in the screen below the header (a little below
                    the screen's middle; phones: in the small viewport, 100svh, so it stays centred with the
                    browser's bars showing);
     low: all above the eyebrow — the group sits at the bottom of the first screen (the title and the foot
                    exactly where they were before; only the eyebrow moves down to the title).
   The other one can be seen with ?rdkv=low / ?rdkv=mid (read by the page's <head> script, not remembered). */
html.rdkj .rdk {
  --H: 100vh;                     /* screen height (100svh where supported) */
  --W: min(1200px, 92vw);         /* the measure = .wrap width */
  --hd: 75px; --g: 18px;          /* fixed header + gap under it */
  --kh: 20px;                     /* eyebrow slot (per page / language / width class: below) */
  --km: 20px;                     /* gap eyebrow → title box (phones: 16px) */
  --fg: 22px;                     /* title → foot */
  --fh: 72px;                     /* foot (paragraph + buttons) height (per page / language / width class: below) */
  --pb: 28px;                     /* bottom room */
  --cf: .24;                      /* largest row font-size, as a share of the screen height (prototype) */
  /* Row model (per page and language; generated by measuring the rows rd-khero.r714.js builds, with
     Archivo for Latin and the device's fonts (Windows) for Punjabi, Chinese and Arabic):
     cN = 100 / (width of row N at 100px, its role's fitted width axis), dN = the same at the narrowest
     width (Fmax), eN = at the widest; xN = row N exists; lh = row line-height.
     Every row fills the measure (cN·W), all scaled together into the height budget (Ha) — up to 1.6x; down
     to 0.12x (the prototype stops at 0.35x, which lets short-word titles such as the Arabic one push the
     buttons off the first screen) — each capped by --cap and by its narrowest width: the prototype's justify(). */
  /* (the per-page / per-language values: ROW-MODEL below; English is also the default) */
  --Ha: max(120px, var(--H) - var(--hd) - var(--g) - var(--kh) - var(--km) - var(--fg) - var(--fh) - var(--pb));
  --cap: calc(var(--cf) * var(--H));
  --sc: calc(var(--c1) + var(--c2) + var(--x3) * var(--c3) + var(--x4) * var(--c4));
  --S: clamp(.12 * var(--W), var(--Ha) / (var(--lh) * var(--sc)), 1.6 * var(--W));
  --f1: min(var(--cap), var(--d1) * var(--W), var(--c1) * var(--S));
  --f2: min(var(--cap), var(--d2) * var(--W), var(--c2) * var(--S));
  --f3: min(var(--cap), var(--d3) * var(--W), var(--c3) * var(--S));
  --f4: min(var(--cap), var(--d4) * var(--W), var(--c4) * var(--S));
  /* scripts without the width axis (Punjabi, Chinese, Arabic): no row more than 1.75x the smallest
     (a two-letter row would dwarf the others); Latin keeps the prototype's free sizes (--bal: 99) */
  --bal: 99;
  --Fm: calc(var(--bal) * min(var(--f1), var(--f2), var(--f3) + (1 - var(--x3)) * 9999px, var(--f4) + (1 - var(--x4)) * 9999px));
  --F1: min(var(--f1), var(--Fm)); --F2: min(var(--f2), var(--Fm)); --F3: min(var(--f3), var(--Fm)); --F4: min(var(--f4), var(--Fm));
  --bh: calc(var(--lh) * (var(--F1) + var(--F2) + var(--x3) * var(--F3) + var(--x4) * var(--F4)));
  --sp: max(var(--km), var(--H) - var(--hd) - var(--g) - var(--kh) - var(--bh) - var(--fg) - var(--fh) - var(--pb));
  /* the leftover space and where it goes (placement: see above) — mid by default: split so that the room seen above the
     eyebrow (header gap --g + --st) equals the room seen below the buttons (--sb + bottom room --pb) */
  --fr: calc(var(--sp) - var(--km));
  --stc: clamp(0px, (var(--fr) + var(--pb) - var(--g)) / 2, var(--fr));
  /* (al-hero2, owner 2026-11-14: "the space is not efficiently used") and never more than --sta above / --sbb below
     (the room seen there): on phones and portrait tablets the page's own section rhythm, so the hero is as tall as its
     group plus that rhythm and the next section starts right after; elsewhere 20% of the screen (a full screen as
     before, except where a short group left more than that). The hero's height is the sum of the column (--hh, below) */
  --sta: calc(.2 * var(--H)); --sbb: calc(.2 * var(--H));
  --st: min(var(--stc), max(0px, var(--sta) - var(--g)));
  --sb: min(var(--fr) - var(--stc), max(0px, var(--sbb) - var(--pb)));
  /* the hero's height: the whole column with the reserved heights (the kicker and foot slots hold the taller of the
     translation and the English first-paint words), so it is the same in both and never moves when the words change */
  --hh: calc(var(--hd) + var(--g) + var(--st) + var(--kh) + var(--km) + var(--bh) + var(--fg) + var(--fh) + var(--pb) + var(--sb));
}
@supports (height: 100svh) { html.rdkj .rdk { --H: 100svh; } }
/* The foot (--fh) and the eyebrow slot (--kh) per width class, from the page's own row model: each language's line there
   carries --ft0..13 / --ey0..13, the tallest real foot (paragraph + buttons) and eyebrow measured over that class's sample widths
   (generated with the row model; re-measure if a hero paragraph, eyebrow or their translation changes). So the free
   space is split around the group's real height in every language (owner 2026-11-14: centred), and the title's height
   budget leaves exactly the room the buttons need. Still CSS only, fixed before the first paint: nothing moves later.
   (The values after the commas are the old general estimates, used only by a page without its own.) */
html.rdkj .rdk { --fh: var(--ft13, 72px); --kh: var(--ey13, 20px); }
@media (max-width: 1303px) { html.rdkj .rdk { --fh: var(--ft12, 72px); --kh: var(--ey12, 20px); } }
@media (max-width: 1023px) { html.rdkj .rdk { --fh: var(--ft11, 140px); --kh: var(--ey11, 20px); } }
@media (max-width: 839px) { html.rdkj .rdk { --fh: var(--ft10, 140px); --kh: var(--ey10, 20px); } }
@media (max-width: 760px) { html.rdkj .rdk { --fh: var(--ft9, 226px); --kh: var(--ey9, 37px); --km: 16px; } }
@media (max-width: 666px) { html.rdkj .rdk { --fh: var(--ft8, 226px); --kh: var(--ey8, 37px); } }
@media (max-width: 599px) { html.rdkj .rdk { --fh: var(--ft7, 226px); --kh: var(--ey7, 37px); } }
@media (max-width: 429px) { html.rdkj .rdk { --fh: var(--ft6, 226px); --kh: var(--ey6, 37px); } }
@media (max-width: 427px) { html.rdkj .rdk { --fh: var(--ft5, 226px); --kh: var(--ey5, 37px); } }
@media (max-width: 413px) { html.rdkj .rdk { --fh: var(--ft4, 226px); --kh: var(--ey4, 37px); } }
@media (max-width: 411px) { html.rdkj .rdk { --fh: var(--ft3, 226px); --kh: var(--ey3, 37px); } }
@media (max-width: 389px) { html.rdkj .rdk { --fh: var(--ft2, 226px); --kh: var(--ey2, 37px); } }
@media (max-width: 374px) { html.rdkj .rdk { --fh: var(--ft1, 226px); --kh: var(--ey1, 55px); } }
@media (max-width: 359px) { html.rdkj .rdk { --fh: var(--ft0, 226px); --kh: var(--ey0, 55px); } }
/* ?rdkv=low / ?rdkv=mid: one placement on every screen (for comparing) */
html.rdkj[data-rdkv="low"] .rdk { --st: var(--fr); --sb: 0px; }
html.rdkj[data-rdkv="mid"] .rdk { --st: var(--stc); --sb: calc(var(--fr) - var(--stc)); }
@media (max-width: 700px) { html.rdkj .rdk { --hd: 68px; } }
/* the section rhythm the next sections use (rd-morph.css / rd-offer.css / rd-lt.css, al-mid 2026-11-14): phones 8svh
   above / 7svh below, larger screens 10svh / 9svh. Portrait tablets take the larger one; phones their own */
@media (min-width: 761px) and (max-width: 1023px) and (orientation: portrait) {
  html.rdkj .rdk { --sta: clamp(80px, 10svh, 128px); --sbb: clamp(64px, 9svh, 112px); }
}
@media (max-width: 760px) { html.rdkj .rdk { --sta: clamp(56px, 8svh, 76px); --sbb: clamp(48px, 7svh, 64px); } }
html.rdkj .rdk { min-height: var(--hh); }
/* Short screens (phones on their side, 375-430px tall; audit 2026-11-14: at 844x390 Refinance's and FAQ's buttons were
   25px below the first screen): tighter gaps under the header, eyebrow -> title, title -> foot and at the bottom, and a
   smaller least title height (48px; the title still takes all the room there is), so the buttons stay on the first
   screen with the real foot heights above. Layout only. */
@media (max-height: 520px) and (min-aspect-ratio: 4/3) {
  html.rdkj .rdk { --g: 8px; --km: 10px; --fg: 12px; --pb: 10px;
    --Ha: max(48px, var(--H) - var(--hd) - var(--g) - var(--kh) - var(--km) - var(--fg) - var(--fh) - var(--pb));
    /* and the rows may shrink further than the usual least scale (.12 of the measure), which kept some Chinese and
       Arabic titles (big glyphs, few per row) taller than the room left there */
    --S: clamp(.03 * var(--W), var(--Ha) / (var(--lh) * var(--sc)), 1.6 * var(--W)); }
}

/* ROW-MODEL: each page's own 7 lines (one per language) are in that page's <head>, <style id="rdk-model">, right after
   this stylesheet - so no page downloads the other pages' models (generated by measuring the rows rd-khero.r714.js builds,
   with Archivo for Latin and the device's fonts (Windows) for Punjabi, Chinese and Arabic; the Latin rows with the word gap,
   Punjabi / Arabic with Bricolage's space). If an h1 translation changes, re-measure; until then the rows still fit:
   the script scales a row that would overflow.
   Each language's line also carries --ft0..--ft13 / --ey0..--ey13: its real foot (paragraph + buttons) and eyebrow height,
   the tallest over the sample widths of each width class (see "The foot (--fh) and the eyebrow slot" above); for the other
   languages the taller of theirs and the English heights (al-hero 2026-11-14): the page first paints the HTML's English
   words and the language engine swaps in the translation later, so the hero never grows or shrinks when the words
   change (the stage's pool, placed from the hero's bottom, would move: a layout shift). */
/* /ROW-MODEL */

html.rdkj .rdk .rdk-in { padding-top: calc(var(--hd) + var(--g)); padding-bottom: calc(var(--pb) + var(--sb)); }
html.rdkj .rdk .rdk-top { position: relative; flex: none; height: calc(var(--st) + var(--kh) + var(--km) + var(--bh)); }
/* the eyebrow: its bottom edge --km above the title box, wherever the placement puts the box (no reading of the
   rendered eyebrow: a longer translation adds lines upward, into the free space, and moves nothing else) */
html.rdkj .rdk .rdk-eye { position: absolute; left: 0; right: 0; bottom: calc(var(--bh) + var(--km)); }
/* the stage's pool of light stays centred on the foot when the foot moves up (rd-kbg.css: --kbg-fy, the middle of
   the foot above the hero's bottom edge; rd-kbg.r701.js reads the beam length from the pool's pose, so it follows) */
html.rdkj .rdk > .rdk-bg { --kbg-fy: calc((var(--pb) + var(--fh) + var(--fg)) / 2 + var(--sb));
  /* (al-hero2) the beam lands on the pool of a hero that may now be shorter than the screen: its length from its origin
     (14vh above the hero) to the pool, so it is never cut at the hero's bottom edge */
  --kbg-L: calc(var(--hh) + 14 * var(--kbg-vh) - var(--kbg-fy)); }
/* the cone keeps its proportions to the hero: 134vh for a full-screen hero (exactly as before), shorter by the same
   ratio (134 / 114) for a shorter one */
html.rdkj .rdk > .rdk-bg::before, html.rdkj .rdk > .rdk-bg > .kbg-b { height: calc(134 * var(--kbg-vh) - (var(--H) - var(--hh)) * 1.1754); }
@media (max-aspect-ratio: 3/4) and (max-width: 699px) {
  html.rdkj .rdk.rdk-guide > .rdk-bg { --kbg-fy: calc(var(--pb) * .5 + var(--sb)); }
}
/* (seo-h1) the h1 becomes the rows box as soon as the parser has closed it (the <head> script; else rd-khero.r714.js): only
   in that instant before, with .rdkj already on, it is kept out of sight and out of the layout as before (and in the fallback
   font: no Archivo instance for it) */
html.rdkj .rdk .rdk-h1:not(.rdk-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;
  font-family: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800;
}
html.rdkj .rdk .rdk-bot { flex: none; margin-top: var(--fg); }

/* ---------- the rows (drawn inside the reserved box) ----------
   (seo-h1) The rows box is the h1 itself: class .rdk-rows on the h1, the row spans its content. Its own heading styles (the
   no-JS look above, the site's h1 rules) give way to the box's where the rows would inherit them (the no-JS font-stretch
   and letter-spacing), so the rows get exactly what they did inside the plain box. */
.rdk .rdk-vh { position: absolute; top: 0; left: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
html.rdkj .rdk.rdk-on .rdk-rows {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--bh); margin: 0;
  /* a layout boundary (its size is fixed by the row model): measuring a row or setting its axes re-lays out
     the rows only, never the whole page. No paint containment: the rows drift past its edges */
  contain: layout size;
  max-width: none; padding: 0; border: 0;
  font-style: normal; font-stretch: 100%; letter-spacing: normal; text-wrap: wrap;
  font-family: var(--rdk-rowfont); font-weight: 800; color: var(--rdk-ink);
  -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 at the end) */
html.rdkj .rdk .rdk-rows em {
  font-style: normal; color: currentColor; background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}
.rdk .rdk-row {
  display: block; flex: none; white-space: nowrap; text-align: start;
  font-size: 100px; line-height: var(--lh, .84); letter-spacing: -.005em; text-transform: uppercase;
  /* the role's axes (Archivo), from the first paint; rd-khero.r714.js then solves the width axis once */
  font-variation-settings: "wdth" 100, "wght" 880;
}
html.rdkj .rdk .rdk-rows > .rdk-row:nth-child(1) { font-size: var(--F1); }
html.rdkj .rdk .rdk-rows > .rdk-row:nth-child(2) { font-size: var(--F2); }
html.rdkj .rdk .rdk-rows > .rdk-row:nth-child(3) { font-size: var(--F3); }
html.rdkj .rdk .rdk-rows > .rdk-row:nth-child(4) { font-size: var(--F4); }
.rdk .rdk-ht { display: inline-block; will-change: transform; transform-origin: 0 0; }
[dir="rtl"] .rdk .rdk-ht { transform-origin: 100% 0; }
/* (font-weight only picks the fallback face before Archivo is in — Bricolage 700, preloaded by the page, so even
   the first paint never falls through to a system font with other metrics; Archivo's weight is the axis value) */
.rdk .rdk-row.lt { color: #d2d1cc; font-weight: 700; font-variation-settings: "wdth" 62, "wght" 260; }
.rdk .rdk-row.h2 { font-variation-settings: "wdth" 86, "wght" 900; }
.rdk .rdk-row.bl { color: var(--rdk-blue); font-variation-settings: "wdth" 125, "wght" 900; }
/* the 2nd and 4th rows end-aligned before the script has measured them, where the model says they stop
   short of the measure by more than 3% (the width at the widest axis setting, F / eN) — a transform, so
   the script's exact value replaces it without moving anything in the layout */
html.rdkj .rdk .rdk-rows:not(.fitd) > .rdk-row:nth-child(2) > .rdk-ht { --gap: calc(var(--W) - min(var(--W), var(--F2) / var(--e2))); }
html.rdkj .rdk .rdk-rows:not(.fitd) > .rdk-row:nth-child(4) > .rdk-ht { --gap: calc(var(--W) - min(var(--W), var(--F4) / var(--e4))); }
html.rdkj .rdk .rdk-rows:not(.fitd) > .rdk-row:nth-child(even) > .rdk-ht { translate: clamp(0px, (var(--gap) - .03 * var(--W)) * 10000, var(--gap)) 0; }
html.rdkj[dir="rtl"] .rdk .rdk-rows:not(.fitd) > .rdk-row:nth-child(even) > .rdk-ht { translate: calc(-1 * clamp(0px, (var(--gap) - .03 * var(--W)) * 10000, var(--gap))) 0; }
/* accented capitals (É, Á …) need a little more room between rows */
.rdk .rdk-rows.acc .rdk-row { line-height: var(--lh, .96); }
/* Gurmukhi, Chinese, Arabic: no case, no tracking (it breaks Arabic joining), taller lines; the device's
   fonts carry no Archivo axes, so none are set */
.rdk .rdk-rows.nl .rdk-row { letter-spacing: 0; text-transform: none; font-variation-settings: normal; }
/* a real word gap: Archivo's own space is a sliver at the condensed end of the width axis (0.055em at wdth 62 /
   wght 900, "SHOP FOR" read as one word), so every Archivo row adds a tenth of an em — about a third of an "O" at
   any width. (The device fonts of the other scripts have a normal space.) The row model above includes it. */
.rdk .rdk-rows:not(.nl) .rdk-row { word-spacing: .1em; }
/* a Latin title shown in an Arabic (RTL) page - the guides written in English only: each row reads in its own direction,
   so a closing "?" stays at its end ("IMPROVES?", not "?IMPROVES"); the row itself keeps the page's alignment */
.rdk .rdk-rows:not(.nl) .rdk-ht { unicode-bidi: plaintext; }
/* Punjabi and Arabic: Archivo is Latin only, yet it would still supply the space between their words (about .11em),
   which runs the device font's wide words together. Without Archivo the space comes from Bricolage (.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. The row model is measured this way. Only rows in those scripts (.nl): a Latin title on an Arabic page (the guides
   written in English only) keeps Archivo. */
html.rdkj .rdk.rdk-on .rdk-rows.nl:is(:lang(pa), :lang(ar)) { font-family: "Bricolage", "Bricolage Grotesque", system-ui, sans-serif; }
.rdk .rdk-rows.nl .rdk-row.lt { font-weight: 400; }

/* ---------- 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: painted fully opaque from the first
   frame in their final weight and width, run on the compositor while the page is still loading. (The
   prototype also morphed the width / weight axes during this entrance and on scroll; on these pages that
   created new font instances every frame — 27 fps on a desktop — so the axes are set once.) */
@keyframes rdk-in-l { from { transform: translate3d(calc(var(--W, 92vw) * -.5), 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes rdk-in-r { from { transform: translate3d(calc(var(--W, 92vw) * .5), 0, 0); } to { transform: translate3d(0, 0, 0); } }
html.rdkj .rdk .rdk-rows > .rdk-row { animation: rdk-in-l .8333s cubic-bezier(.33, 1, .68, 1) backwards; }
html.rdkj .rdk .rdk-rows > .rdk-row:nth-child(even) { animation-name: rdk-in-r; }
html.rdkj[dir="rtl"] .rdk .rdk-rows > .rdk-row { animation-name: rdk-in-r; }
html.rdkj[dir="rtl"] .rdk .rdk-rows > .rdk-row:nth-child(even) { animation-name: rdk-in-l; }
html.rdkj .rdk .rdk-rows > .rdk-row:nth-child(2) { animation-delay: .1083s; }
html.rdkj .rdk .rdk-rows > .rdk-row:nth-child(3) { animation-delay: .2167s; }
html.rdkj .rdk .rdk-rows > .rdk-row:nth-child(4) { animation-delay: .325s; }
html.rdkj .rdk .rdk-rows.ni > .rdk-row { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.rdkj .rdk .rdk-rows > .rdk-row { animation: none !important; }
}
/* ---------- the scroll drift on the compositor (rd-khero.r714.js adds .sd where the browser has scroll-driven animations) ----------
   Each row's text slides sideways by --rdk-tx (its full-scroll distance, written once per fit) as the page scrolls from the
   hero's top (--rdk-a0) to its bottom (--rdk-a1), on the curve progress^1.15 (the linear() points below: within 0.4 px) —
   exactly the r703 frame callback's motion, but driven by the scroll position itself on the compositor: no script, style
   work or layout per scroll frame. --rdk-k: the scale a stand-in font may need (else 1). Linked ?v=rd3. */
@keyframes rdk-drift {
  from { transform: translate3d(0px, 0, 0) scale(var(--rdk-k, 1)); }
  to { transform: translate3d(var(--rdk-tx, 0px), 0, 0) scale(var(--rdk-k, 1)); }
}
html.rdkj .rdk .rdk-rows.sd > .rdk-row > .rdk-ht {
  animation-name: rdk-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(--rdk-a0, 0px) var(--rdk-a1, 100vh);
}
@media (prefers-reduced-motion: reduce) { html.rdkj .rdk .rdk-rows.sd > .rdk-row > .rdk-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.rdkj .rdk.rdk-on .rdk-rows.sd.zt { z-index: 1; }

/* proto.css's reduced-motion rule gives EVERY property a .01ms transition, which makes freshly set values
   read back stale; the rows and the box are measured by rd-khero.r714.js, so they never transition */
html.rdkj .rdk .rdk-in, html.rdkj .rdk .rdk-top, .rdk .rdk-rows, .rdk .rdk-row, .rdk .rdk-ht, .rdk .rdk-ht em { transition: none !important; }
