/* =====================================================================
   Raryum website — kit-specific styles
   Loads AFTER colors_and_type.css (which provides tokens).
   ===================================================================== */

/* Containers -------------------------------------------------------- */
.rar-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .rar-container { padding: 0 20px; } }

section { position: relative; }

/* Reveal — content always visible, gentle fade-up animates on mount */
.rar-reveal {
  opacity: 1;
  transform: none;
  animation: rar-reveal-in 600ms var(--ease-out) backwards;
}
@keyframes rar-reveal-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.rar-reveal.is-shown { /* legacy class — no-op now, content always shown */ }
@media (prefers-reduced-motion: reduce) {
  .rar-reveal { animation: none; }
}

/* Element Tile ------------------------------------------------------ */
.rar-tile {
  position: relative;
  display: block;
  border: 1px solid currentColor;
  border-radius: var(--r-tile);
  box-shadow: 0 1px 0 0 rgb(255 255 255 / 0.05) inset;
  background: linear-gradient(180deg,
              color-mix(in oklab, currentColor 6%, transparent),
              color-mix(in oklab, currentColor 2%, transparent));
  font-family: var(--font-sans);
  user-select: none;
  flex-shrink: 0;
}
/* Unlabeled variant (logo / brand mark) — no name strip, sym fills */
.rar-tile--mono .rar-tile__sym { font-size: calc(1em + 22px); }
.rar-tile__num {
  position: absolute;
  top: 7%;
  left: 9%;
  font: 500 9px/1 var(--font-mono);
  letter-spacing: 0.02em;
  opacity: 0.85;
  text-align: left;
}
.rar-tile__sym {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(1em + 16px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-align: center;
}
.rar-tile__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8%;
  font: 500 7px/1 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
  text-align: center;
}
/* When name strip is present, lift the symbol so it sits in the upper-middle */
.rar-tile:not(.rar-tile--mono) .rar-tile__sym { bottom: 22%; }
/* Scale based on container width */
.rar-tile { font-size: clamp(8px, 0.15em, 14px); }
/* Tighter padding + smaller atomic number on small tiles (nav logo) */
.rar-tile[style*="width: 36"] .rar-tile__num,
.rar-tile[style*="width: 32"] .rar-tile__num,
.rar-tile[style*="width: 28"] .rar-tile__num { font-size: 7px; opacity: 0.9; }
.rar-tile[style*="width: 36"],
.rar-tile[style*="width: 32"] { padding: 4px 5px 3px; }
.rar-tile--mono[style*="width: 36"],
.rar-tile--mono[style*="width: 32"] { padding: 3px 5px 5px; }
.rar-tile[style*="width: 56"] .rar-tile__sym,
.rar-tile[style*="width: 72"] .rar-tile__sym { font-size: 26px; }
.rar-tile--mono[style*="width: 72"] .rar-tile__sym { font-size: 34px; }
.rar-tile--mono[style*="width: 56"] .rar-tile__sym { font-size: 28px; }
.rar-tile[style*="width: 80"] .rar-tile__sym { font-size: 30px; }
.rar-tile--mono[style*="width: 80"] .rar-tile__sym { font-size: 40px; }
.rar-tile[style*="width: 100"] .rar-tile__sym { font-size: 38px; }
.rar-tile--mono[style*="width: 100"] .rar-tile__sym { font-size: 48px; }
.rar-tile[style*="width: 36"] .rar-tile__sym { font-size: 18px; }
.rar-tile--mono[style*="width: 36"] .rar-tile__sym { font-size: 22px; }
.rar-tile[style*="width: 48"] .rar-tile__sym { font-size: 22px; }
/* Large showcase tile (origin story) */
.rar-tile[style*="width: 240"] .rar-tile__num { font-size: 18px; top: 5%; left: 6%; }
.rar-tile[style*="width: 240"] .rar-tile__sym { font-size: 96px; }
.rar-tile--mono[style*="width: 240"] .rar-tile__sym { font-size: 120px; }

/* Logo lockup ------------------------------------------------------- */
.rar-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rar-em-4);
  text-decoration: none;
  font-family: var(--font-sans);
}
.rar-logo:hover { color: var(--rar-em-3); }
.rar-logo__word {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
}

/* Buttons ----------------------------------------------------------- */
.rar-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--r-3);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              transform 90ms var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.rar-btn--sm { padding: 8px 14px; font-size: 13px; }
.rar-btn--md { padding: 11px 18px; font-size: 14px; }
.rar-btn--lg { padding: 15px 24px; font-size: 16px; }
.rar-btn__icon { display: inline-flex; align-items: center; }

.rar-btn--primary {
  background: var(--rar-em-5);
  color: var(--rar-ink-0);
  border-color: var(--rar-em-5);
}
.rar-btn--primary:hover { background: var(--rar-em-4); border-color: var(--rar-em-4); }
.rar-btn--primary:active { background: var(--rar-em-6); transform: scale(0.985); }

.rar-btn--spark {
  background: var(--rar-spark-5);
  color: var(--rar-ink-0);
  border-color: var(--rar-spark-5);
  box-shadow: var(--shadow-spark);
}
.rar-btn--spark:hover { background: var(--rar-spark-3); border-color: var(--rar-spark-3); }
.rar-btn--spark:active { background: var(--rar-spark-6); transform: scale(0.985); }

.rar-btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.rar-btn--ghost:hover { background: var(--bg-card); border-color: var(--rar-pt-7); }
.rar-btn--ghost:active { background: var(--bg-card-hi); transform: scale(0.985); }

/* Nav --------------------------------------------------------------- */
.rar-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.rar-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.rar-nav.is-scrolled {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line);
}
.rar-nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}
.rar-nav__link {
  color: var(--fg-muted);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.rar-nav__link:hover { color: var(--fg); background: color-mix(in oklab, var(--bg-card) 60%, transparent); }
.rar-nav__link.is-active { color: var(--rar-em-4); }
.rar-nav__cta { display: flex; justify-content: flex-end; }

.rar-nav__burger { display: none; }
@media (max-width: 920px) {
  .rar-nav__menu { display: none; }
  .rar-nav__cta { display: none; }
  .rar-nav__burger {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: transparent; border: 1px solid var(--line-strong);
    border-radius: 8px; padding: 9px 10px; cursor: pointer;
    justify-self: end;
  }
  .rar-nav__burger span { width: 16px; height: 1.5px; background: var(--fg); }
  .rar-nav__inner { grid-template-columns: auto 1fr; gap: 16px; }
  .rar-nav__mobile {
    background: var(--bg-raised);
    border-top: 1px solid var(--line);
    padding: 12px 20px 20px;
    display: flex; flex-direction: column;
  }
  .rar-nav__mobile-link {
    color: var(--fg); text-decoration: none; padding: 12px 0;
    border-bottom: 1px solid var(--line); font-size: 16px;
  }
  .rar-nav__mobile-link:last-child { border-bottom: 0; }
}

/* Hero -------------------------------------------------------------- */
.rar-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
/* Video-only hero: clean cinematic frame, no text overlay */
.rar-hero--video-only .rar-hero__scrim {
  /* Lighter scrim — only enough to keep nav legible at top + gentle bottom transition */
  background:
    linear-gradient(180deg,
      rgba(7,16,13,0.45) 0%,
      rgba(7,16,13,0.10) 20%,
      rgba(7,16,13,0.05) 60%,
      rgba(7,16,13,0.70) 100%);
}

/* Slogan section — sits below the video hero on solid ground */
.rar-slogan {
  padding: 120px 0 100px;
  background: var(--bg);
  position: relative;
  border-bottom: 1px solid var(--line);
}
.rar-slogan::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 30% 0%,
    color-mix(in oklab, var(--rar-em-10) 60%, transparent) 0%,
    transparent 70%);
  pointer-events: none;
}
.rar-slogan > .rar-container {
  position: relative;
  max-width: 1100px;
  display: grid;
  gap: 20px;
}
.rar-slogan__eyebrow { margin-bottom: 4px; }
.rar-slogan__title {
  font: 800 clamp(48px, 7vw, 96px)/1.02 var(--font-sans);
  letter-spacing: -0.035em;
  color: var(--fg);
  text-wrap: balance;
  margin: 0;
  max-width: 920px;
}
.rar-slogan__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--rar-em-3);
  letter-spacing: -0.025em;
}
.rar-slogan__lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--fg-muted);
  text-wrap: pretty;
  max-width: 640px;
  margin: 0;
}
.rar-slogan__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.rar-hero__video-wrap {
  position: absolute; inset: 0; z-index: -2;
  overflow: hidden;
  background: var(--rar-ink-0);
}
.rar-hero__video {
  position: absolute;
  top: 50%; left: 50%;
  /* fill viewport keeping 16:9 — use the bigger of 100vw × 56.25vh or 177.78vh × 100vh */
  width: max(100vw, 177.78vh);
  height: max(56.25vw, 100vh);
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}
.rar-hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(7,16,13,0.55) 0%,
      rgba(7,16,13,0.30) 40%,
      rgba(7,16,13,0.85) 100%),
    radial-gradient(120% 80% at 50% 35%,
      transparent 0%,
      color-mix(in oklab, var(--rar-em-12) 55%, transparent) 100%);
}
.rar-hero__content {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 32px 80px;
  display: grid;
  gap: 24px;
  max-width: 920px;
  position: relative;
}
.rar-hero__content > * { max-width: 720px; }
.rar-hero__title {
  font: 800 clamp(48px, 8vw, 96px)/1.02 var(--font-sans);
  letter-spacing: -0.035em;
  color: var(--rar-fg-1);
  text-wrap: balance;
  margin: 0;
}
.rar-hero__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--rar-em-3);
  letter-spacing: -0.025em;
}
.rar-hero__lede {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--rar-fg-2);
  text-wrap: pretty;
  max-width: 640px;
  margin: 0;
}
.rar-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.rar-hero__cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--rar-fg-2);
  text-decoration: none;
  animation: rar-cue 2.4s var(--ease-in-out) infinite;
}
@keyframes rar-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* Section header --------------------------------------------------- */
.rar-section-head { display: grid; gap: 12px; margin-bottom: 56px; max-width: 760px; }
.rar-section-head--center { margin: 0 auto 56px; text-align: center; }
.rar-section-head__title {
  font: 700 clamp(32px, 4vw, 52px)/1.1 var(--font-sans);
  letter-spacing: -0.022em;
  color: var(--fg);
  text-wrap: balance;
  margin: 0;
}
.rar-section-head__lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  text-wrap: pretty;
  margin: 0;
}

/* Section padding helper ------------------------------------------- */
.rar-section { padding: 120px 0; }
.rar-section--lg { padding: 160px 0; }
.rar-section--sm { padding: 80px 0; }
@media (max-width: 720px) {
  .rar-section, .rar-section--lg, .rar-section--sm { padding: 80px 0; }
}

/* End-to-end flow -------------------------------------------------- */
.rar-flow { padding: 120px 0; background: var(--bg); position: relative; }
.rar-flow::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask: radial-gradient(70% 60% at 50% 40%, black, transparent);
  -webkit-mask: radial-gradient(70% 60% at 50% 40%, black, transparent);
  opacity: 0.5;
  pointer-events: none;
}
.rar-flow__list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0;
}
.rar-flow__item {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-1);
  margin-bottom: 0;
}
.rar-flow__item .rar-flow__arrow {
  position: absolute;
  top: 100%; left: 60px;
  margin-top: 4px;
  z-index: 1;
}
.rar-flow__list .rar-flow__item + .rar-flow__item { margin-top: 32px; }
.rar-flow__name {
  font: 600 22px/1.2 var(--font-sans);
  letter-spacing: -0.015em;
  color: var(--fg);
  margin: 0 0 4px;
}
.rar-flow__sub { font-size: 15px; line-height: 1.55; color: var(--fg-muted); margin: 0; }
.rar-flow__loop {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 40px auto 0;
  padding: 8px 16px;
  border: 1px dashed color-mix(in oklab, #afa9ec 40%, transparent);
  border-radius: var(--r-pill);
  color: #cec9f4;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  justify-self: center;
}
.rar-flow .rar-flow__loop { display: flex; max-width: max-content; margin-left: auto; margin-right: auto; }

/* Tiers grid -------------------------------------------------------- */
.rar-tiers { padding: 120px 0; background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rar-tiers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .rar-tiers__grid { grid-template-columns: 1fr; } }

.rar-tier-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 32px;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 16px;
  align-content: start;
}
.rar-tier-card:hover { border-color: var(--line-strong); }
.rar-tier-card__head { display: flex; justify-content: space-between; align-items: center; }
.rar-tier-card__title {
  font: 700 28px/1.15 var(--font-sans); letter-spacing: -0.018em;
  color: var(--fg); margin: 0;
}
.rar-tier-card__body { font-size: 15px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
.rar-tier-card__bullets {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: grid; gap: 10px;
  font-size: 14px; color: var(--fg-muted);
}
.rar-tier-card__bullets li {
  position: relative;
  padding-left: 22px;
}
.rar-tier-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 1px;
  background: var(--rar-em-5);
}

/* Product tile ------------------------------------------------------ */
.rar-product {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 28px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  align-content: start;
  position: relative;
}
.rar-product:hover { border-color: var(--rar-em-9); }
.rar-product__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rar-product__name {
  font: 700 22px/1.2 var(--font-sans); letter-spacing: -0.015em;
  color: var(--fg); margin: 0;
}
.rar-product__lede { font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin: 0; }
.rar-product__features {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
  font-size: 13px;
  color: var(--fg-subtle);
}
.rar-product__features li {
  position: relative; padding-left: 14px;
}
.rar-product__features li::before {
  content: '+';
  position: absolute; left: 0; top: 0;
  color: var(--rar-em-5);
  font-family: var(--font-mono);
  font-size: 12px;
}
.rar-product__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Blog card --------------------------------------------------------- */
.rar-blog-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  overflow: hidden;
  display: grid;
  grid-template-rows: 200px 1fr;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  text-decoration: none;
  color: inherit;
}
.rar-blog-card:hover { border-color: var(--rar-em-9); transform: translateY(-2px); }
.rar-blog-card:hover .rar-blog-card__title { color: var(--rar-em-4); }
.rar-blog-card__cover {
  position: relative;
  overflow: hidden;
  background: var(--bg-card-hi);
}
.rar-blog-card__cover svg { display: block; width: 100%; height: 100%; }
.rar-blog-card__cover-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.rar-blog-card__cat {
  position: absolute; top: 16px; left: 16px;
  background: rgba(7,16,13,0.7);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.rar-blog-card__body { padding: 24px; display: grid; gap: 10px; }
.rar-blog-card__title {
  font: 700 20px/1.25 var(--font-sans); letter-spacing: -0.018em;
  color: var(--fg); margin: 0;
}
.rar-blog-card__lede {
  font-size: 14px; line-height: 1.55; color: var(--fg-muted); margin: 0;
}
.rar-blog-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--rar-em-4); font-weight: 600; font-size: 14px;
  text-decoration: none; margin-top: 4px;
}
.rar-blog-card__link:hover { color: var(--rar-em-3); }

/* Video card -------------------------------------------------------- */
.rar-video-card {
  display: grid;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 12px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.rar-video-card:hover { border-color: var(--rar-em-9); }
.rar-video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg-card-hi);
  border-radius: var(--r-3);
  overflow: hidden;
}
.rar-video-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rar-video-card__play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(7,16,13,0.7);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.rar-video-card__dur {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(7,16,13,0.85);
  padding: 2px 8px;
  border-radius: var(--r-1);
  color: var(--fg-muted);
}
.rar-video-card__meta { padding: 4px 8px 12px; }
.rar-video-card__title {
  font: 600 15px/1.35 var(--font-sans);
  color: var(--fg);
  margin: 0 0 6px;
}

/* CTA block --------------------------------------------------------- */
.rar-cta { padding: 140px 0; background: var(--bg); position: relative; overflow: hidden; }
.rar-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 60%,
    color-mix(in oklab, var(--rar-em-10) 80%, transparent) 0%,
    transparent 70%);
  pointer-events: none;
}
.rar-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  position: relative;
}
.rar-cta__title {
  font: 700 clamp(32px, 5vw, 56px)/1.05 var(--font-sans);
  letter-spacing: -0.028em;
  color: var(--fg);
  text-wrap: balance;
  margin: 8px 0 0;
}
.rar-cta__body {
  font-size: 17px; line-height: 1.6; color: var(--fg-muted);
  text-wrap: pretty; margin: 0;
}
.rar-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Footer ------------------------------------------------------------ */
.rar-footer { background: var(--bg-raised); border-top: 1px solid var(--line); padding: 80px 0 32px; }
.rar-footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .rar-footer__top { grid-template-columns: 1fr; } }
.rar-footer__brand { display: grid; gap: 16px; align-content: start; }
.rar-footer__slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.3;
  color: var(--fg-muted);
  margin: 0;
}
.rar-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .rar-footer__cols { grid-template-columns: 1fr 1fr; } }
.rar-footer__col { display: grid; gap: 10px; align-content: start; }
.rar-footer__col .rar-meta { margin-bottom: 6px; color: var(--rar-em-4); }
.rar-footer__col a {
  color: var(--fg-muted); text-decoration: none; font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out);
}
.rar-footer__col a:hover { color: var(--fg); }
.rar-footer__bottom {
  margin-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* Page-level: sub-page hero (non-video) ---------------------------- */
.rar-subhero {
  padding: 200px 0 80px;
  background: var(--bg);
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.rar-subhero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 90% 0%,
      color-mix(in oklab, var(--rar-em-10) 70%, transparent) 0%,
      transparent 70%);
  pointer-events: none;
}
.rar-subhero__inner {
  position: relative;
  max-width: 920px;
  display: grid;
  gap: 16px;
}
.rar-subhero__title {
  font: 700 clamp(40px, 6vw, 80px)/1.02 var(--font-sans);
  letter-spacing: -0.03em;
  color: var(--fg);
  text-wrap: balance;
  margin: 0;
}
.rar-subhero__title em {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
  color: var(--rar-em-3); letter-spacing: -0.02em;
}
.rar-subhero__lede {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55;
  color: var(--fg-muted); text-wrap: pretty;
  max-width: 720px; margin: 0;
}

/* Grid helpers ----------------------------------------------------- */
.rar-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rar-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .rar-grid-3 { grid-template-columns: 1fr; }
  .rar-grid-2 { grid-template-columns: 1fr; }
}

/* Tiles row on landing -------------------------------------------- */
.rar-products-strip { padding: 120px 0; background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rar-products-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .rar-products-strip__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .rar-products-strip__grid { grid-template-columns: 1fr; } }

/* Blog teaser ---------------------------------------------------- */
.rar-blog-section { padding: 120px 0; background: var(--bg); }

/* Article (blog-post.html) --------------------------------------- */
.rar-article { background: var(--bg); padding-bottom: 80px; }
.rar-article__hero {
  position: relative;
  padding: 96px 0 56px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.rar-article__hero-art {
  position: absolute; inset: 0;
  opacity: 0.38;
  filter: blur(0px);
  pointer-events: none;
}
.rar-article__hero-art svg { width: 100%; height: 100%; }
.rar-article__hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,16,13,0.25) 0%, var(--bg) 100%);
  pointer-events: none;
}
.rar-article__hero-inner {
  position: relative; z-index: 1;
  max-width: 820px;
  text-align: left;
}
.rar-article__title {
  font: 700 clamp(34px, 5.2vw, 64px)/1.05 var(--font-sans);
  letter-spacing: -0.028em;
  color: var(--fg);
  text-wrap: balance;
  margin: 16px 0 20px;
}
.rar-article__lede {
  font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5;
  color: var(--fg-muted); text-wrap: pretty;
  margin: 0 0 24px;
  max-width: 720px;
}
.rar-article__meta { color: var(--fg-subtle); }
.rar-article__container { max-width: 760px; padding-top: 56px; }
.rar-article__body { display: grid; gap: 22px; }
.rar-article__p {
  font: 400 18px/1.7 var(--font-sans);
  color: var(--fg);
  margin: 0;
  text-wrap: pretty;
}
.rar-article__h2 {
  font: 700 28px/1.2 var(--font-sans);
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: 32px 0 4px;
  text-wrap: balance;
}
.rar-article__list {
  margin: 4px 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.rar-article__list li {
  position: relative;
  padding-left: 24px;
  font: 400 17px/1.65 var(--font-sans);
  color: var(--fg);
}
.rar-article__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--rar-em-4);
  border-radius: 1px;
  transform: rotate(45deg);
}
.rar-article__pull {
  margin: 28px 0;
  padding: 24px 28px 24px 36px;
  border-left: 2px solid var(--rar-em-5);
  background: color-mix(in oklab, var(--rar-em-5) 6%, transparent);
  border-radius: 0 var(--r-4) var(--r-4) 0;
  position: relative;
}
.rar-article__pull-mark {
  position: absolute;
  left: 12px; top: 8px;
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--rar-em-5);
  opacity: 0.55;
}
.rar-article__pull blockquote {
  margin: 0;
  font: 400 italic 22px/1.4 var(--font-serif);
  color: var(--fg);
  text-wrap: balance;
}
.rar-article__callout {
  margin: 16px 0;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-1);
}
.rar-article__callout-eyebrow { color: var(--rar-em-4); margin-bottom: 8px; }
.rar-article__callout p { margin: 0; font: 400 16px/1.6 var(--font-sans); color: var(--fg-muted); }

.rar-article__footer { display: grid; gap: 16px; }
.rar-article__sign { font-size: 28px; color: var(--rar-em-3); }
.rar-article__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.rar-related { padding: 80px 0 120px; background: var(--bg); border-top: 1px solid var(--line); }

/* Glossary trigger (inline button inside article text) */
.rar-gloss {
  font: inherit;
  color: var(--rar-em-3);
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: help;
  border-bottom: 1px dashed color-mix(in oklab, var(--rar-em-4) 65%, transparent);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.rar-gloss:hover { color: var(--rar-em-2); border-bottom-color: var(--rar-em-3); }
.rar-gloss:focus-visible { outline: 2px solid var(--rar-em-4); outline-offset: 2px; border-radius: 2px; }

/* Post-it glossary popup */
.rar-postit {
  position: absolute;
  z-index: 100;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, #fde68a 0%, #fcd34d 100%);
  color: #1c1404;
  border-radius: 2px 14px 4px 10px;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.55),
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  font-family: var(--font-sans);
  transform-origin: top center;
  animation: rar-postit-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rar-postit-in {
  from { opacity: 0; transform: rotate(-1.4deg) translateY(-8px) scale(0.94); }
  to   { opacity: 1; transform: rotate(-1.4deg) translateY(0) scale(1); }
}
.rar-postit__tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 62px;
  height: 16px;
  margin-left: -31px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: rotate(-2deg);
  pointer-events: none;
}
.rar-postit__close {
  position: absolute;
  top: 4px; right: 8px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: transparent; border: 0;
  font: 600 22px/1 var(--font-sans);
  color: #6b5200;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 4px;
}
.rar-postit__close:hover { opacity: 1; background: rgba(0, 0, 0, 0.06); }
.rar-postit__title {
  font: 700 14px/1.3 var(--font-sans);
  letter-spacing: -0.01em;
  margin: 0 24px 10px 0;
  color: #1c1404;
}
.rar-postit__p {
  font: 400 13px/1.55 var(--font-sans);
  color: #2a1f06;
  margin: 0 0 8px;
  text-wrap: pretty;
}
.rar-postit__p:last-child { margin-bottom: 0; }

/* Mobile — pin to bottom as a small sheet, no rotation */
.rar-postit--mobile {
  position: fixed;
  top: auto !important;
  left: 12px !important;
  right: 12px;
  bottom: 16px;
  width: auto;
  max-width: none;
  transform: none !important;
  animation: rar-postit-mobile-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 6px;
}
.rar-postit--mobile .rar-postit__tape { display: none; }
@keyframes rar-postit-mobile-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .rar-postit, .rar-postit--mobile { animation: none; }
}

@media (max-width: 720px) {
  .rar-article__hero { padding: 72px 0 40px; }
  .rar-article__container { padding-top: 40px; }
  .rar-article__p, .rar-article__list li { font-size: 16px; }
  .rar-article__h2 { font-size: 24px; }
  .rar-article__pull blockquote { font-size: 18px; }
}
