/* Landing page styles (prototype/landing/section.css), visual v3 (20 Nov 2026).
   The live blog's language: glossy pearl pills floating at depths (homepage hero), topic cards with a lilac
   "studio" panel holding a chrome object over a tinted panel with a number, and silver chrome type (footer).
   Every chrome and pearl object here is CSS; nothing is an image file.

   Map:
   1. Flow and band order       6. Feature card (one live section)   11. Updated this week
   2. Shared objects: chrome     7. Section tiles (topic cards)      12. How we check this (3 steps)
      glyph, keycap, pearl       8. Start here                       13. Phones and tablets
   3. Hero layout                9. Try a term                       14. Reduced motion
   4. Hero stage and glyph      10. A to Z, stats band               15. Renderer safety net
   5. Term pills

   Motion rules: reveals play once with opacity (components.js), pills drift with CSS only, pointer and scroll
   parallax only on desktop with a fine pointer (_shared/components.js). No blur and no backdrop blur on touch. With
   prefers-reduced-motion everything is visible and still. */

/* =========================================================
   1. Flow and band order
   ========================================================= */
.rh-landing-flow {
  display: flex;
  flex-direction: column;
  gap: var(--section-pad);
}
.rh-landing-band--feature { order: 0; }
.rh-landing-band--tiles { order: 1; }
.rh-landing-band--start { order: 2; }
.rh-landing-band--try { order: 3; }
.rh-landing-band--stats { order: 4; }
.rh-landing-band--az { order: 5; }
.rh-landing-band--updated { order: 6; }

.rh-band-head { margin-bottom: var(--rh-5); }
.rh-band-head--rule {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(36, 26, 32, 0.08);
}
.rh-band-head--rule .rh-h2 { margin: 0; }
.rh-band-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
}
.rh-band-head__aside {
  margin: 0;
  font-size: 15px;
  color: var(--aii-text);
}

/* =========================================================
   2. Shared objects: the studio backdrop, chrome glyph (.rh-chrome), chrome keycap (.rh-key), pearl (.rh-pearl),
   pearl disc, halo and orbit ring, ghost pills, glossy term pills (.rh-pill, .rh-cloud) and keycap letter tiles
   (.rh-az__l) live in _shared/components.css ("Studio objects"), shared with the glossary pages.
   ========================================================= */


/* =========================================================
   3. Hero layout: headline left, studio stage right
   ========================================================= */
.rh-head.rh-hero {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(48px, 6vw, 96px);
}
.rh-hero__text { min-width: 0; }
.rh-hero .rh-title {
  font-size: clamp(38px, 5vw, 66px);
  margin-bottom: var(--rh-5);
}
.rh-hero .rh-intro { margin-bottom: var(--rh-5); }

/* =========================================================
   4. Hero stage: halo, chrome "Aa" on a studio floor, pearl
   ========================================================= */
.rh-hero__stage {
  position: relative;
  min-width: 0;
  height: clamp(440px, 40vw, 520px);
  --mx: 0;
  --my: 0;
  --sy: 0;
}
.rh-hero__glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -54%) translate3d(calc(var(--mx) * 8px), calc(var(--my) * 6px + var(--sy) * -0.06px), 0);
  transition: transform 1.1s var(--ease-settle);
}
.rh-chrome--hero {
  font-size: clamp(150px, 18.5vw, 240px);
  -webkit-box-reflect: below -0.1em linear-gradient(transparent 66%, rgba(255, 255, 255, 0.22));
}
.rh-hero__floor {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -16%;
  height: 26%;
  background: radial-gradient(closest-side, rgba(74, 60, 88, 0.26), rgba(74, 60, 88, 0.08) 55%, rgba(74, 60, 88, 0));
}
.rh-pearl--hero {
  width: clamp(36px, 3.6vw, 50px);
  height: clamp(36px, 3.6vw, 50px);
  right: -9%;
  top: -4%;
}
@media (prefers-reduced-motion: no-preference) {
  .rh-pearl--hero { animation: rhBob 5.5s ease-in-out infinite alternate; }
}


/* =========================================================
   5. Term pills: glossy pearl glass, three depths, real links
   ========================================================= */

/* Desktop cloud (1024px+): 8 pills around the glyph, never over the headline column */
.rh-cloud__item--1 { left: 2%; top: 6%; --din: 0.25s; --dur: 10s; --dy: -9px; }
.rh-cloud__item--2 { right: 3%; top: 14%; --din: 0.35s; --dur: 12s; --dx: -5px; --dy: 7px; }
.rh-cloud__item--3 { left: 0; top: 40%; --din: 0.45s; --dur: 11s; --dx: 6px; }
.rh-cloud__item--4 { right: 0; top: 56%; --din: 0.55s; --dur: 13s; --dx: -4px; --dy: -10px; }
.rh-cloud__item--5 { left: 8%; top: 76%; --din: 0.65s; --dur: 12s; --dy: 8px; }
.rh-cloud__item--6 { right: 12%; top: 84%; --din: 0.75s; --dur: 10.5s; --dx: 5px; }
.rh-cloud__item--7 { left: 20%; top: 22%; --din: 0.85s; --dur: 14s; --dy: 6px; }
.rh-cloud__item--8 { right: 18%; top: 2%; --din: 0.95s; --dur: 12.5s; --dx: -6px; }
.rh-cloud__item--1, .rh-cloud__item--4, .rh-cloud__item--5 { --z: 1; }
.rh-cloud__item--2, .rh-cloud__item--3, .rh-cloud__item--6 { --z: 0.6; --fs: 15px; }
.rh-cloud__item--7, .rh-cloud__item--8 { --z: 0.3; --fs: 13.5px; }
.rh-cloud__item--2 .rh-pill, .rh-cloud__item--3 .rh-pill, .rh-cloud__item--6 .rh-pill { padding: 8px 17px; }
.rh-cloud__item--7 .rh-pill, .rh-cloud__item--8 .rh-pill {
  padding: 7px 15px;
  color: var(--aii-text);
  background: rgba(255, 251, 248, 0.82);
  box-shadow: 0 8px 18px -10px rgba(150, 160, 188, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* =========================================================
   6. Feature card (launch with one live section)
   ========================================================= */
.rh-feature-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rh-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  border-radius: 26px;
  overflow: hidden;
  isolation: isolate;
  background: var(--aii-peach);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(200, 206, 218, 0.55),
    0 36px 64px -34px rgba(36, 26, 32, 0.32),
    0 12px 30px -14px rgba(160, 170, 190, 0.45);
  min-width: 0;
}
.rh-feature__studio {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.85);
}
.rh-feature__studio::after {
  /* the studio floor: a soft horizon and a lighter ground */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 37%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 6%, rgba(255, 255, 255, 0.16) 30%, rgba(222, 214, 228, 0.3) 100%);
  pointer-events: none;
}
.rh-keys {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 1;
  width: 320px;
  height: 250px;
  transform: translate(-50%, -50%) scale(var(--ks, 1.18));
  -webkit-box-reflect: below 6px linear-gradient(transparent 72%, rgba(255, 255, 255, 0.16));
}
.rh-keys__floor {
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -4%;
  height: 34%;
  background: radial-gradient(closest-side, rgba(74, 60, 88, 0.2), rgba(74, 60, 88, 0));
}
.rh-keys .rh-key {
  position: absolute;
  rotate: var(--rot, 0deg);
  transition: opacity 0.9s ease, transform 1.3s var(--ease-reveal);
  transition-delay: var(--kd, 0s);
}
.rh-key--a { --s: 100px; --rot: -11deg; --kd: 0.05s; left: 2%; top: 30%; z-index: 1; }
.rh-key--b { --s: 132px; --rot: 4deg; --kd: 0.2s; left: 30%; top: 4%; z-index: 2; }
.rh-key--c { --s: 92px; --rot: 13deg; --kd: 0.35s; left: 70%; top: 38%; z-index: 1; }
.rh-pearl--keys {
  left: 47%;
  top: 76%;
  z-index: 3;
  width: 44px;
  height: 44px;
  transition: opacity 0.9s ease 0.6s, transform 1.4s var(--ease-reveal) 0.6s;
}
.rh-js-ready .rh-keys[data-rh-draw]:not(.is-drawn) .rh-key,
.rh-js-ready .rh-keys[data-rh-draw]:not(.is-drawn) .rh-pearl { opacity: 0; transform: translateY(-56px); }
@media (prefers-reduced-motion: no-preference) {
  .rh-key--a { animation: rhBob 6s ease-in-out 1.4s infinite alternate; }
  .rh-key--b { animation: rhBob 7s ease-in-out 1.7s infinite alternate-reverse; }
  .rh-key--c { animation: rhBob 6.5s ease-in-out 2s infinite alternate; }
}

.rh-feature__main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: clamp(28px, 3.6vw, 48px);
  background: linear-gradient(150deg, var(--aii-peach) 0%, var(--aii-clay) 64%, var(--aii-sand) 100%);
  min-width: 0;
}
.rh-feature__lead { min-width: 0; }
.rh-feature__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.rh-feature__n,
.rh-tile__n,
.rh-updated-item__n,
.rh-step__n {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--aii-rust);
  font-variant-numeric: tabular-nums;
}
.rh-feature__kicker .rh-eyebrow { margin: 0; }
.rh-feature__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.rh-feature__title a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--aii-ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(194, 96, 60, 0.4);
  text-underline-offset: 10px;
  transition: color var(--dur-base) var(--ease-reveal), text-decoration-color var(--dur-base) var(--ease-reveal);
}
.rh-feature__title .rh-arrow { font-size: 0.6em; }
@media (hover: hover) and (pointer: fine) {
  .rh-feature__title a:hover { color: var(--aii-rust); text-decoration-color: var(--aii-terra); }
}
.rh-feature__desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--aii-text);
  max-width: 46ch;
  margin: 0 0 24px;
}
.rh-feature__search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}
.rh-feature__search .rh-search { flex: 1 1 220px; }
.rh-feature__search .rh-search__input {
  background: #ffffff;
  border-color: rgba(36, 26, 32, 0.14);
  box-shadow: 0 8px 20px -14px rgba(36, 26, 32, 0.35);
}
.rh-feature__search .rh-search__input:focus { border-color: var(--aii-terra); }
.rh-feature__search .rh-btn { min-height: 48px; padding: 0 24px; font-size: 15px; flex: 0 0 auto; }

.rh-tile__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
}
.rh-tile__stat { display: inline-flex; align-items: baseline; gap: 6px; }
.rh-tile__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--aii-ink);
  font-variant-numeric: tabular-nums;
}
.rh-tile__label { font-size: 14px; font-weight: 600; color: var(--aii-text); }
.rh-tile__updated { font-size: 13px; color: var(--aii-text); }

.rh-feature__foot {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(36, 26, 32, 0.12);
}
.rh-feature__foot .rh-tile__num { font-size: clamp(40px, 4vw, 54px); }
.rh-feature__foot .rh-tile__label { font-size: 16px; }

.rh-feature__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(200, 206, 218, 0.45), 0 14px 30px -20px rgba(36, 26, 32, 0.3);
}
.rh-feature__aside-label { margin: 0; }
.rh-feature__terms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rh-feature__terms li { min-width: 0; max-width: 100%; }
.rh-feature__term {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.25;
  color: var(--aii-ink);
  background: var(--pearl-sheen), #fffaf6;
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px -14px rgba(150, 160, 188, 0.7), inset 0 1px 2px rgba(255, 255, 255, 0.95);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.35s ease, color 0.25s ease;
}
.rh-feature__term > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rh-feature__term .rh-arrow { margin-left: 6px; }
.rh-feature__term:active { transform: scale(0.98); }
.rh-feature__all {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
  color: var(--aii-rust);
  text-decoration: underline;
  text-decoration-color: rgba(194, 96, 60, 0.45);
  text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .rh-feature__term:hover {
    transform: translateY(-2px) scale(1.03);
    color: var(--aii-rust);
    box-shadow: 0 16px 30px -12px rgba(160, 172, 200, 0.8), inset 0 1px 3px #ffffff;
  }
  .rh-feature__all:hover { color: var(--aii-ink); }
}

/* One honest line under the block while some sections are still being checked */
.rh-feature__note,
.rh-steps__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--aii-text);
}
.rh-feature__note--tiles { margin-top: 18px; }
.rh-feature__note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--aii-terra);
  box-shadow: 0 0 0 4px rgba(194, 96, 60, 0.16);
}

/* =========================================================
   7. Section tiles (preview with several live sections): topic cards
   ========================================================= */
.rh-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 196px), 1fr));
  gap: 18px;
}
.rh-tile,
.rh-start-card,
.rh-updated-item {
  --tint: var(--aii-peach);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(200, 206, 218, 0.4), 0 12px 26px -12px rgba(36, 26, 32, 0.14);
  transition: transform 0.45s var(--ease-reveal), box-shadow 0.45s ease;
}
[data-tone="peach"] { --tint: var(--aii-peach); }
[data-tone="sand"] { --tint: var(--aii-sand); }
[data-tone="blush"] { --tint: var(--aii-blush); }
[data-tone="linen"] { --tint: var(--aii-linen); }
[data-tone="clay"] { --tint: var(--aii-clay); }
.rh-tile__studio,
.rh-start-card__studio,
.rh-updated-item__studio {
  position: relative;
  display: grid;
  place-items: center;
  height: 138px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.rh-tile__studio::after,
.rh-start-card__studio::after,
.rh-updated-item__studio::after {
  /* one shine across the studio on hover (the blog's topic-media sweep) */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 130% 0;
  opacity: 0;
}
.rh-tile__studio .rh-key { --s: 70px; }
.rh-tile__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  padding: 18px 18px 18px;
  min-width: 0;
}
.rh-tile__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.rh-tile__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--aii-ink);
  margin: 0;
  text-wrap: balance;
  transition: color var(--dur-base) var(--ease-reveal);
}
.rh-tile__name .rh-arrow { margin-left: 0.25em; }
.rh-tile__name-text { min-width: 0; }
.rh-tile__desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--aii-text);
  margin: 0;
}
.rh-tile .rh-tile__foot {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(36, 26, 32, 0.1);
}
.rh-tile:focus-visible { outline-offset: 4px; border-radius: 20px; }
@media (hover: hover) and (pointer: fine) {
  .rh-tile:hover,
  .rh-start-card:hover,
  .rh-updated-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 0 2px rgba(200, 206, 218, 0.95), 0 28px 50px -18px rgba(36, 26, 32, 0.3), 0 10px 24px -8px rgba(160, 170, 190, 0.45);
  }
  .rh-tile:hover .rh-tile__name,
  .rh-start-card:hover .rh-start-card__title a,
  .rh-updated-item:hover .rh-updated-item__link { color: var(--aii-rust); }
  .rh-tile:hover .rh-tile__studio::after,
  .rh-start-card:hover .rh-start-card__studio::after,
  .rh-updated-item:hover .rh-updated-item__studio::after {
    opacity: 1;
    background-position: -30% 0;
    transition: background-position 1s var(--ease-reveal), opacity 0.2s;
  }
  .rh-tile:hover .rh-key,
  .rh-start-card:hover .rh-key,
  .rh-updated-item:hover .rh-key { transform: translateY(-5px) rotate(-4deg); }
  .rh-tile .rh-key,
  .rh-start-card .rh-key,
  .rh-updated-item .rh-key { transition: transform 0.6s var(--ease-reveal); }
}
.rh-tile:active { transform: scale(0.99); }
/* Early launches (1, 2 or 4 live sections): wide topic cards, two per row (one when alone), studio on the left, so the
   band never shows two narrow tiles next to empty space. Three sections: three equal columns. Five or more: the grid
   above. Counted with :has(), so it still holds when the site hides the tile of a section that is switched off.
   Phones and small tablets keep the stacked row tiles below (max-width 780px). */
@media (min-width: 781px) {
  .rh-tiles-grid:not(:has(> .rh-tile:nth-child(5))):not(:has(> .rh-tile:nth-child(3):last-child)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .rh-tiles-grid:not(:has(> .rh-tile:nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
  .rh-tiles-grid:not(:has(> .rh-tile:nth-child(5))):not(:has(> .rh-tile:nth-child(3):last-child)) > .rh-tile {
    flex-direction: row;
    min-height: 228px;
  }
  .rh-tiles-grid:not(:has(> .rh-tile:nth-child(5))):not(:has(> .rh-tile:nth-child(3):last-child)) .rh-tile__studio {
    flex: 0 0 36%;
    height: auto;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.85);
  }
  .rh-tiles-grid:not(:has(> .rh-tile:nth-child(5))):not(:has(> .rh-tile:nth-child(3):last-child)) .rh-tile__studio .rh-key { --s: 96px; }
  .rh-tiles-grid:not(:has(> .rh-tile:nth-child(5))):not(:has(> .rh-tile:nth-child(3):last-child)) .rh-tile__panel {
    padding: 26px 28px 24px;
    gap: 10px;
  }
  .rh-tiles-grid:not(:has(> .rh-tile:nth-child(5))):not(:has(> .rh-tile:nth-child(3):last-child)) .rh-tile__name { font-size: 24px; }
  .rh-tiles-grid:not(:has(> .rh-tile:nth-child(5))):not(:has(> .rh-tile:nth-child(3):last-child)) .rh-tile__desc { font-size: 15.5px; }
  .rh-tiles-grid:has(> .rh-tile:nth-child(3):last-child) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

/* =========================================================
   8. Start here (preview): three wider topic cards
   ========================================================= */
.rh-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.rh-start-card--tint-0 { --tint: var(--aii-peach); }
.rh-start-card--tint-1 { --tint: var(--aii-clay); }
.rh-start-card--tint-2 { --tint: var(--aii-sand); }
.rh-start-card__studio { height: 170px; }
.rh-start-card__studio .rh-key { --s: 88px; }
.rh-start-card__panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  padding: 22px;
}
.rh-start-card__panel .rh-eyebrow { margin: 0; }
.rh-start-card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
.rh-start-card__title a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--aii-ink);
  transition: color var(--dur-base) var(--ease-reveal);
}
.rh-start-card__title a:focus-visible { outline: none; }
.rh-start-card__title a::after {
  /* stretched link: the whole card is the target */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.rh-start-card:focus-within { outline: 3px solid var(--aii-terra); outline-offset: 3px; }
.rh-start-card:has(a:focus:not(:focus-visible)) { outline: none; }
.rh-start-card .rh-tile__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 26, 32, 0.1);
}

/* =========================================================
   9. Try a term
   ========================================================= */
.rh-try {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  border-radius: 26px;
  overflow: hidden;
  background: var(--aii-card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(200, 206, 218, 0.55),
    0 30px 56px -32px rgba(36, 26, 32, 0.28),
    0 10px 24px -12px rgba(160, 170, 190, 0.4);
}
.rh-try__studio {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  border-right: 1px solid rgba(255, 255, 255, 0.85);
}
.rh-try__stage { position: relative; display: inline-grid; place-items: center; }
.rh-try__stage .rh-key {
  rotate: -6deg;
  transition: opacity 0.9s ease, transform 1.3s var(--ease-reveal);
}
.rh-js-ready .rh-try__stage[data-rh-draw]:not(.is-drawn) .rh-key { opacity: 0; transform: translateY(-48px); }
.rh-try__floor {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -26%;
  height: 34%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(74, 60, 88, 0.24), rgba(74, 60, 88, 0));
}
.rh-try__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(26px, 3.6vw, 52px);
  min-width: 0;
  background:
    radial-gradient(ellipse 60% 70% at 100% 0%, rgba(247, 221, 205, 0.55) 0%, rgba(247, 221, 205, 0) 70%),
    var(--aii-card);
}
.rh-try__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aii-rust);
}
.rh-try__title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aii-terra);
}
.rh-try__live { min-height: 9.5em; }
.rh-try__term {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--aii-ink);
  text-wrap: balance;
}
.rh-try__def {
  margin: 0;
  max-width: 54ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--aii-text);
}
.rh-try__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}
.rh-try__shuffle {
  gap: 10px;
  min-height: 48px;
  padding: 0 22px 0 18px;
  font-weight: 700;
  color: var(--aii-ink);
  background: var(--pearl-sheen), #fffaf6;
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(200, 206, 218, 0.7), 0 12px 24px -12px rgba(150, 160, 188, 0.7), inset 0 1px 2px #ffffff;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.3s ease, color 0.2s ease;
}
.rh-try__shuffle[hidden] { display: none; }
.rh-try__shuffle svg { color: var(--aii-terra); transition: transform 0.6s var(--ease-reveal); }
.rh-try__shuffle:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .rh-try__shuffle:hover { color: var(--aii-rust); box-shadow: 0 0 0 1px rgba(194, 96, 60, 0.4), 0 16px 30px -12px rgba(160, 172, 200, 0.8), inset 0 1px 2px #ffffff; }
  .rh-try__shuffle:hover svg { transform: rotate(180deg); }
}
.rh-try__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  color: var(--aii-rust);
  text-decoration: underline;
  text-decoration-color: rgba(194, 96, 60, 0.45);
  text-underline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .rh-try__more:hover { color: var(--aii-ink); }
}

/* =========================================================
   10. A to Z strip and stats band
   ========================================================= */
.rh-az__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 10px;
}
.rh-az__list li { min-width: 0; }

/* Stats band: espresso, full bleed, silver chrome numbers (the footer wordmark's gradient) */
.rh-stats {
  position: relative;
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  padding: clamp(56px, 7vw, 96px) var(--gutter);
  color: var(--aii-on-dark);
  background:
    radial-gradient(ellipse 40% 70% at 12% 0%, rgba(247, 221, 205, 0.16) 0%, rgba(247, 221, 205, 0) 70%),
    radial-gradient(ellipse 36% 60% at 92% 100%, rgba(214, 206, 240, 0.14) 0%, rgba(214, 206, 240, 0) 70%),
    var(--aii-dark);
}
@supports (overflow: clip) {
  main.rh-wash .rh-stats {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}
.rh-stats__inner {
  max-width: calc(var(--rh-max) - 2 * var(--gutter));
  margin: 0 auto;
}
.rh-stats__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aii-blush);
}
.rh-stats__title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aii-terra);
}
.rh-stats__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.rh-stats__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 4px clamp(16px, 2.4vw, 32px);
  border-left: 1px solid rgba(244, 237, 226, 0.14);
  min-width: 0;
}
.rh-stats__item:first-child { padding-left: 0; border-left: 0; }
.rh-stats__value {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #8d8f99 0%, #f4f1ee 18%, #b9bcc6 32%, #fff7f2 46%, #e9d9e6 56%, #a9adb8 70%, #f6f2ec 86%, #8d8f99 100%);
  background-size: 220% 100%;
  background-position: 30% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.rh-stats__value--date { font-size: clamp(40px, 4.6vw, 66px); line-height: 1.04; padding-top: 0.24em; }
.rh-stats__year { display: block; font-size: 0.42em; letter-spacing: -0.01em; margin-top: 0.12em; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rh-stats__value { animation: rhStatSheen 9s linear infinite; }
}
@keyframes rhStatSheen {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}
.rh-stats__label {
  font-size: 15.5px;
  line-height: 1.4;
  color: rgba(244, 237, 226, 0.86);
}

/* =========================================================
   11. Updated this week: topic cards on a full-bleed linen band
   ========================================================= */
.rh-updated-band {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
  /* full-bleed band like the blog's linen sections; main.rh-wash clips the overhang, so no sideways scroll */
  padding: clamp(48px, 6vw, 80px) var(--gutter);
  background: var(--aii-linen);
  border-top: 1px solid rgba(36, 26, 32, 0.07);
  border-bottom: 1px solid rgba(36, 26, 32, 0.07);
}
.rh-updated-inner { max-width: var(--rh-max); margin: 0 auto; }
@supports (overflow: clip) {
  main.rh-wash .rh-updated-band {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  main.rh-wash .rh-updated-inner { max-width: calc(var(--rh-max) - 2 * var(--gutter)); }
}
.rh-updated-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}
@media (min-width: 1081px) {
  .rh-updated-list {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: none;
  }
}
.rh-updated-item__studio { height: 118px; }
.rh-updated-item__panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  padding: 16px 16px 18px;
  min-width: 0;
}
.rh-updated-item__sec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 11.5px;
}
.rh-tone-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(36, 26, 32, 0.25);
}
.rh-tone-dot--terra { background: var(--aii-terra); box-shadow: none; }
.rh-tone-dot--rust { background: var(--aii-rust); box-shadow: none; }
.rh-tone-dot--ink { background: var(--aii-ink); box-shadow: none; }
.rh-tone-dot--clay { background: var(--aii-clay); }
.rh-tone-dot--peach { background: var(--aii-blush); }
.rh-tone-dot--sand { background: var(--aii-sand); }
.rh-updated-item__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--aii-ink);
  transition: color var(--dur-base) var(--ease-reveal);
}
/* stretched link: the whole card is the target */
.rh-updated-item__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.rh-updated-item__link:focus-visible { outline: none; }
.rh-updated-item:focus-within { outline: 3px solid var(--aii-terra); outline-offset: 3px; }
.rh-updated-item:has(.rh-updated-item__link:focus:not(:focus-visible)) { outline: none; }
.rh-updated-item__meta { font-size: 13px; color: var(--aii-text); }

/* =========================================================
   12. How we check this: three steps on a drawn line
   ========================================================= */
.rh-steps {
  margin-top: var(--section-pad);
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.rh-steps .rh-h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; }
.rh-steps__list {
  position: relative;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.rh-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 clamp(8px, 2vw, 28px) 0 0;
  min-width: 0;
}
.rh-step__orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: var(--aii-rust);
  background: radial-gradient(circle at 34% 28%, #ffffff 0%, #fdf6f1 18%, #f6e6e6 44%, #e3e6ef 76%, #ccd1dc 100%);
  box-shadow:
    inset -5px -7px 12px rgba(146, 136, 176, 0.3),
    inset 4px 4px 9px rgba(255, 255, 255, 0.95),
    0 12px 22px -12px rgba(66, 54, 82, 0.5);
}
.rh-step__orb svg { width: 30px; height: 30px; }
.rh-step__n { margin-bottom: -2px; }
.rh-step__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--aii-ink);
}
.rh-step__line {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--aii-text);
}
.rh-steps__list { gap: clamp(20px, 3vw, 40px); }
.rh-steps__list::before {
  /* a dashed line that joins the three orbs (behind them) */
  content: "";
  position: absolute;
  left: 38px;
  right: calc((100% - 2 * clamp(20px, 3vw, 40px)) / 3 - 38px);
  top: 38px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(194, 96, 60, 0.5) 0 7px, transparent 7px 14px);
}

/* =========================================================
   13. Phones and tablets
   ========================================================= */
@media (max-width: 1080px) {
  .rh-feature { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .rh-start-grid { grid-template-columns: minmax(0, 1fr); }
  .rh-start-card { flex-direction: row; }
  .rh-start-card__studio { height: auto; width: 34%; border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.85); }
  .rh-az__list { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
}

/* Hero below 1024px: the stage moves under the text */
@media (max-width: 1023px) {
  .rh-head.rh-hero { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rh-hero__text { max-width: 720px; }
  .rh-hero__stage { height: 380px; }
  .rh-chrome--hero { font-size: 176px; }
  .rh-cloud__item--7, .rh-cloud__item--8 { display: none; }
  .rh-cloud__item--1 { left: 4%; top: 4%; }
  .rh-cloud__item--2 { right: 4%; top: 10%; }
  .rh-cloud__item--3 { left: 0; top: 44%; }
  .rh-cloud__item--4 { right: 0; top: 50%; }
  .rh-cloud__item--5 { left: 8%; top: 82%; }
  .rh-cloud__item--6 { right: 10%; top: 86%; }
}

@media (max-width: 780px) {
  /* Start here first on phones (beginners first), when the preview shows it */
  .rh-landing-band--start { order: -1; }
  .rh-feature { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .rh-feature__studio { min-height: 230px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.85); }
  .rh-keys { --ks: 0.8; top: 48%; -webkit-box-reflect: none; }
  .rh-feature__main { padding: 24px 18px 26px; gap: 24px; }
  .rh-feature__title a { text-underline-offset: 8px; }
  .rh-feature__desc { font-size: 17px; margin-bottom: 20px; }
  .rh-feature__aside { padding: 18px 16px; }
  .rh-feature__terms { gap: 8px; }
  .rh-feature__term { font-size: 14.5px; padding: 0 12px 0 14px; }

  .rh-tiles-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rh-tile, .rh-updated-item { flex-direction: row; }
  .rh-tile__studio,
  .rh-updated-item__studio {
    flex: 0 0 96px;
    width: 96px;
    height: auto;
    min-height: 100%;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.85);
  }
  .rh-tile__studio .rh-key { --s: 54px; }
  .rh-updated-item__studio .rh-key { --s: 50px; }
  .rh-tile__panel { padding: 14px 16px; gap: 6px; }
  .rh-tile__studio { flex-basis: 84px; width: 84px; }
  .rh-tile__name { font-size: 19px; }
  .rh-tile .rh-tile__foot { margin-top: 6px; padding-top: 8px; }
  .rh-tile__num { font-size: 22px; }

  .rh-start-card__studio { width: 96px; flex: 0 0 96px; }
  .rh-start-card__studio .rh-key { --s: 54px; }
  .rh-start-card__panel { padding: 16px; }

  .rh-try { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .rh-try__studio { min-height: 196px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.85); }
  .rh-try__body { padding: 22px 18px 24px; gap: 12px; }
  .rh-try__live { min-height: 0; }
  .rh-try__def { font-size: 17px; }

  .rh-az__list { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; }
  .rh-az__l { border-radius: 12px; font-size: 26px; aspect-ratio: auto; height: 52px; }

  .rh-stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 0; }
  .rh-stats__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .rh-stats__item:nth-child(even) { padding-left: 18px; }
  .rh-stats__value { font-size: clamp(48px, 15vw, 64px); }
  .rh-stats__value--date { font-size: clamp(30px, 9vw, 40px); }
  .rh-stats__label { font-size: 14.5px; }

  .rh-updated-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rh-updated-item__panel { padding: 12px 14px 14px; gap: 4px; }
  .rh-updated-item__link { font-size: 17px; }

  .rh-steps__list { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .rh-steps__list::before { left: 29px; right: auto; top: 30px; bottom: 30px; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(194, 96, 60, 0.5) 0 7px, transparent 7px 14px); }
  .rh-step { padding: 0; display: grid; grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
  .rh-step__orb { grid-row: 1 / span 3; width: 60px; height: 60px; margin: 0; }
  .rh-step__orb svg { width: 25px; height: 25px; }
  .rh-step__title { font-size: 20px; }
  .rh-step__n, .rh-step__title, .rh-step__line { grid-column: 2; }
}

/* Phones: a smaller stage with the four compact pills around the glyph, clear of the headline */
@media (max-width: 599px) {
  .rh-hero__stage { height: 300px; margin-top: 20px; }
  .rh-chrome--hero { font-size: 128px; }
  .rh-pearl--hero { width: 30px; height: 30px; }
  .rh-cloud__item:not(.is-compact) { display: none; }
  .rh-cloud__item { --fs: 14.5px; }
  .rh-pill { padding: 0 16px; }
  .rh-cloud__item--1 { left: 0; right: auto; top: 0; }
  .rh-cloud__item--2 { right: 0; left: auto; top: 54px; }
  .rh-cloud__item--3 { left: 0; right: auto; top: auto; bottom: 54px; }
  .rh-cloud__item--4 { right: 0; left: auto; top: auto; bottom: 0; }
  .rh-cloud__item--1 .rh-pill, .rh-cloud__item--2 .rh-pill, .rh-cloud__item--3 .rh-pill { padding: 0 16px; }
}

/* =========================================================
   14. Reduced motion: everything visible and still
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .rh-cloud__item, .rh-pill, .rh-pearl, .rh-key, .rh-chrome::after, .rh-stats__value { animation: none !important; }
  .rh-cloud__item, .rh-hero__glyph { transition: none; transform: none; }
  .rh-hero__glyph { transform: translate(-50%, -54%); }
  .rh-tile, .rh-start-card, .rh-updated-item, .rh-key, .rh-az__l, .rh-pill, .rh-feature__term, .rh-try__shuffle { transition: none; }
  .rh-keys .rh-key, .rh-keys .rh-pearl, .rh-try__stage .rh-key { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   15. Safety net for the renderer (renderer-snippet.php): it removes items marked data-rh-section for sections
   that are not public; if a link to such a section is ever left, it becomes plain text. Plain text then
   gets no arrow and no hover lift, and a band left without items disappears.
   ========================================================= */
span.rh-updated-item__link .rh-arrow,
.rh-start-card__title > span > .rh-arrow { display: none; }
span.rh-updated-item__link::after { content: none; }
@media (hover: hover) and (pointer: fine) {
  .rh-updated-item:not(:has(a)):hover,
  .rh-start-card:not(:has(a)):hover { transform: none; box-shadow: 0 0 0 1px rgba(200, 206, 218, 0.4), 0 12px 26px -12px rgba(36, 26, 32, 0.14); }
  .rh-updated-item:not(:has(a)):hover .rh-updated-item__link { color: var(--aii-ink); }
}
.rh-updated-band:not(:has(li)),
.rh-landing-band--start:not(:has(article)),
.rh-landing-band--feature:not(:has(article)),
.rh-landing-band--try:not(:has(article)),
.rh-landing-band--az:not(:has(article)),
.rh-landing-band--stats:not(:has(article)) { display: none; }
.rh-cloud:not(:has(li)) { display: none; }
