/* ============================================================
   BLU3 — shared subpage chrome (rv-*) + shared hero/banner (rs-thero*, rs-banner*)
   Used by: security.html · ai.html · blu3print.html
   Reads tokens from styles/tokens.css. Split from the former
   subpages.css (2026 refactor) for per-page loading.
   ============================================================ */

/* ============================================================
   BLU3 — subpage styles
   ------------------------------------------------------------
   Used by:  pages/security.html · pages/ai.html · pages/blu3print.html
   Reads tokens from styles/tokens.css.

   Class namespaces
     rv-*    shared chrome  (body, wrap, nav, foot, mark, h2, hero
                             backdrops). Same names appear on every
                             subpage; styled once here.
     rs-*    Security-page sections.
     ra-*    AI-page sections.

   File map (top → bottom)
     1. Subpage tokens (--rv-*)               · base layer
     2. Reset, body, wrap, type primitives    · rv-body / rv-wrap / rv-h2 / rv-mark / rv-p
     3. Shared chrome                         · rv-nav · rv-foot
     4. Shared section primitives             · rs-section__head · ra-section__head
     5. Shared photo / banner                 · rs-banner (also used by AI)
     6. Hero backdrops                        · rv-blueprint-bg
     7. Security page                         · rs-thero · rs-claim · rs-stage--map · rs-engage · rs-shield · rs-final · rs-thesis
     8. AI page                               · ra-examples · ra-build · ra-adopt · ra-close · ra-arch
   ============================================================ */

/* ============================================================
   BLU3 — Redesign v3  ·  minimal, premium, editorial
   ------------------------------------------------------------
   v3 refines v2 — tighter vertical rhythm, calmer hero meta,
   customer-logo band reintroduced, mid-flow coda removed.
   Tokens come from styles/tokens.css.
   ============================================================ */

:root {
  --rv-ink:        #0A0A0B;
  --rv-ink-2:      rgba(10,10,11,0.72);
  --rv-ink-3:      rgba(10,10,11,0.52);
  --rv-ink-4:      rgba(10,10,11,0.32);
  --rv-bg:         #FFFFFF;
  --rv-bg-paper:   #FBFAF7;          /* warm, near-white */
  --rv-rule:       rgba(10,10,11,0.12);
  --rv-rule-soft:  rgba(10,10,11,0.06);
  --rv-blue:       #4169E1;
  --rv-blue-deep:  #1F37A5;
  --rv-gutter:     clamp(24px, 5vw, 72px);
  --rv-col:        1280px;
  --rv-col-text:   720px;
  --rv-col-wide:   1000px;
  /* Vertical rhythm — unified site-wide scale (matches --rv9-y-* on the home page) */
  --rv-y-xl:       clamp(64px, 6.8vw, 104px);
  --rv-y-lg:       clamp(56px, 5.8vw, 92px);
  --rv-y-md:       clamp(42px, 4.6vw, 68px);
  --rv-y-sm:       clamp(30px, 3.4vw, 46px);
}
.rv-body {
  background: var(--rv-bg);
  color: var(--rv-ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.rv-body * { box-sizing: border-box; }
.rv-body img, .rv-body svg { display: block; max-width: 100%; }
.rv-body a { color: inherit; text-decoration: none; }
.rv-body ul, .rv-body ol { list-style: none; margin: 0; padding: 0; }
.rv-wrap {
  max-width: var(--rv-col);
  margin: 0 auto;
  padding-inline: var(--rv-gutter);
}
/* --- Type primitives -------------------------------------- */
.rv-mark {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rv-ink-3);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.rv-mark .n { color: var(--rv-blue); font-variant-numeric: tabular-nums; }
.rv-mark .r {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--rv-rule);
}
/* Section heading — calm, large */
.rv-h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(33px, 3.5vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.008em;
  font-kerning: normal;
  color: var(--rv-ink);
  margin: 0;
  text-wrap: balance;
}
.rv-h2 .blue { color: var(--rv-blue); font-weight: 400; }
.rv-h2 .b { font-weight: 500; }
/* TALK block — the hero-mirror crescendo */

.rv-foot {
  border-top: 1px solid var(--rv-rule);
  padding-block: 24px;
}
.rv-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12.5px;
  color: var(--rv-ink-3);
}
.rv-foot__row .left, .rv-foot__row .right {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.rv-foot__row .sep { color: var(--rv-ink-4); }
.rv-foot__row a {
  color: var(--rv-ink-2);
  border-bottom: 1px solid var(--rv-rule-soft);
  padding-bottom: 1px;
  transition: color 240ms ease, border-color 240ms ease;
}
.rv-foot__row a:hover { color: var(--rv-blue); border-bottom-color: var(--rv-blue); }
.rv-foot__row .lang {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--rv-ink-3);
}
.rv-foot__row .lang .on { color: var(--rv-ink); }
/* Simplified footer on mobile — stack the meta, drop the dangling dots */
@media (max-width: 640px) {
  .rv-foot__row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .rv-foot__row .left { flex-direction: column; align-items: flex-start; gap: 4px; }
  .rv-foot__row .sep { display: none; }
}
/* --- BLUEPRINT backdrop ---------------------------------------- */
.rv-blueprint-bg {
  position: relative;
  overflow: hidden;
  background-color: var(--rv-bg);
  background-image:
    /* edge vignette: fades the grid toward the vertical edges so the
       center of gravity is the type, not the pattern */
    linear-gradient(to right,
      var(--rv-bg) 0%,
      rgba(255,255,255,0) 14%,
      rgba(255,255,255,0) 86%,
      var(--rv-bg) 100%),
    /* major grid: vertical */
    linear-gradient(to right,  rgba(65,105,225,0.085) 1px, transparent 1px),
    /* major grid: horizontal */
    linear-gradient(to bottom, rgba(65,105,225,0.085) 1px, transparent 1px),
    /* minor grid: vertical */
    linear-gradient(to right,  rgba(65,105,225,0.04)  1px, transparent 1px),
    /* minor grid: horizontal */
    linear-gradient(to bottom, rgba(65,105,225,0.04)  1px, transparent 1px),
    /* soft warmer wash to keep it from feeling cold */
    radial-gradient(ellipse 90% 70% at 80% 30%, rgba(65,105,225,0.05), transparent 70%);
  background-size:
    100% 100%,
    80px 80px,
    80px 80px,
    20px 20px,
    20px 20px,
    100% 100%;
  background-position: 0 0;
}
.rv-blueprint-bg::before, .rv-blueprint-bg::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(65,105,225,0.55);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 1;
}
.rv-blueprint-bg::before {
  top: 84px;
  left: calc(var(--rv-gutter) - 18px);
  border-top-width: 1px;
  border-left-width: 1px;
}
.rv-blueprint-bg::after {
  bottom: 18px;
  right: calc(var(--rv-gutter) - 18px);
  border-bottom-width: 1px;
  border-right-width: 1px;
}
.rv-blueprint-bg .rv-hero__art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.rv-blueprint-bg .rv-hero__art > span {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(65,105,225,0.32);
}
.rv-blueprint-bg .rv-hero__mark-tl { top: 90px; left: var(--rv-gutter); }
.rv-blueprint-bg .rv-hero__mark-tr { top: 90px; right: var(--rv-gutter); }
.rv-blueprint-bg .rv-hero__mark-bl { bottom: 24px; left: var(--rv-gutter); }
.rv-blueprint-bg .rv-hero__mark-br { bottom: 24px; right: var(--rv-gutter); }
/* Scale bar — small architectural detail anchored bottom-right.
   Width is intentionally 80px so it reads as "this is your grid module". */
.rv-blueprint-bg .rv-hero__scale {
  position: absolute;
  right: var(--rv-gutter);
  bottom: 44px;
  width: 96px;
  height: 18px;
  color: rgba(65,105,225,0.38);
  pointer-events: none;
}
.rv-blueprint-bg .rv-hero__scale line { stroke: currentColor; stroke-width: 0.6; }
.rv-blueprint-bg .rv-hero__scale text {
  fill: currentColor;
  font-family: var(--font-mono);
  font-size: 5px;
  letter-spacing: 0.18em;
}
@media (max-width: 760px) {
  .rv-blueprint-bg .rv-hero__mark-tr, .rv-blueprint-bg .rv-hero__mark-br { display: none; }
  .rv-blueprint-bg .rv-hero__scale { display: none; }
}
/* Sized so hero + the chess banner (≈320px) + a sliver of the next
       section all land within the first screen. 409 = nav 65 + banner 320 + 24 */
    .rs-thero {
      position: relative;
      min-height: calc(100vh - 409px);
      min-height: calc(100svh - 409px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding-top: clamp(50px, 6vw, 88px);
      padding-bottom: clamp(34px, 4.4vw, 58px);
      overflow: hidden;
    }
.rs-thero__mark { margin: 0 0 clamp(28px, 3.2vw, 44px); }
.rs-thero__grid {
      display: grid;
      grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
      gap: clamp(36px, 5vw, 96px);
      align-items: center;
    }
.rs-thero__h {
      font-family: var(--font-display);
      font-weight: 300;
      font-size: clamp(44px, 5.6vw, 84px);
      line-height: 0.98;
      letter-spacing: -0.014em;
      font-kerning: normal;
      color: var(--rv-ink);
      margin: 0;
      max-width: 17ch;
      text-wrap: balance;
    }
.rs-thero__h .blue { color: var(--rv-blue); font-weight: 400; }
.rs-thero__h .dot { color: var(--rv-blue); font-weight: 500; }
.rs-thero__right {
      display: flex;
      flex-direction: column;
      gap: clamp(20px, 2.4vw, 32px);
      padding-top: 0;
    }
.rs-thero__lede {
      font-family: var(--font-display);
      font-weight: 300;
      font-size: clamp(17px, 1.45vw, 21px);
      line-height: 1.5;
      letter-spacing: -0.003em;
      color: var(--rv-ink-2);
      margin: 0;
      max-width: 42ch;
      text-wrap: pretty;
    }
.rs-thero__lede .b { color: var(--rv-ink); font-weight: 400; }
.rs-thero__ctas {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 18px;
      align-items: center;
      margin-top: 4px;
    }
.rs-thero__cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-display);
      font-weight: 400;
      font-size: 14px;
      letter-spacing: -0.003em;
      color: var(--rv-ink);
      border: 1px solid var(--rv-ink);
      border-radius: 999px;
      padding: 12px 20px 12px 22px;
      text-decoration: none;
      transition: background 220ms ease, color 220ms ease;
    }
.rs-thero__cta:hover { background: var(--rv-ink); color: var(--rv-bg); }
.rs-thero__cta--solid {
      background: var(--rv-ink);
      color: var(--rv-bg);
    }
.rs-thero__cta--solid:hover { background: var(--rv-blue); border-color: var(--rv-blue); color: var(--rv-bg); }
.rs-thero__cta .arr { font-family: var(--font-mono); transition: transform 220ms ease; }
.rs-thero__cta:hover .arr { transform: translateX(3px); }
.rs-thero__meta {
      font-family: var(--font-mono);
      font-size: 10.5px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--rv-ink-3);
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 11px;
      margin: clamp(36px, 4.6vw, 64px) 0 0;
      padding-top: clamp(20px, 2.4vw, 28px);
      border-top: 1px solid var(--rv-rule);
    }
.rs-thero__meta .sep {
      display: inline-block;
      width: 14px; height: 1px;
      background: var(--rv-rule);
    }
.rs-thero__meta .k {
      color: var(--rv-ink-3);
      margin-right: 7px;
    }
.rs-thero__meta .v {
      color: var(--rv-ink);
      font-weight: 500;
      white-space: nowrap;
    }
.rs-thero__meta .nxt {
      color: var(--rv-blue-deep);
      font-weight: 600;
      margin-left: 8px;
      padding: 2px 7px 1px;
      border: 1px solid color-mix(in oklab, var(--rv-blue) 38%, transparent);
      border-radius: 999px;
      background: color-mix(in oklab, var(--rv-blue) 8%, transparent);
      letter-spacing: 0.1em;
    }
@media (max-width: 880px) {
  .rs-thero { min-height: auto; }
  .rs-thero__grid { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }
  .rs-thero__right { padding-top: 0; }
  .rs-thero__h { font-size: clamp(38px, 8vw, 58px); }
}
/* ---- 02 · CHESS BANNER — compact, demoted -------------- */
    .rs-banner {
      position: relative;
      width: 100%;
      overflow: hidden;
      border-top: 1px solid var(--rv-rule);
      border-bottom: 1px solid var(--rv-rule);
      isolation: isolate;
    }
.rs-banner__media {
      position: relative;
      z-index: 0;
    }
.rs-banner__media img {
      display: block;
      width: 100%;
      height: clamp(180px, 26vw, 320px);
      object-fit: cover;
      object-position: center 55%;
    }
/* The falling-king banner uses the shared .rs-banner__def treatment
       (bottom-anchored definition), identical to the Security chess strip. */
    .rs-banner__def {
      position: absolute;
      right: clamp(16px, 2vw, 36px);
      bottom: clamp(16px, 2vw, 32px);
      max-width: 44ch;
      font-family: var(--font-display);
      font-weight: 300;
      font-size: clamp(13px, 1.2vw, 16px);
      line-height: 1.45;
      letter-spacing: -0.002em;
      color: rgba(255,255,255,0.85);
      text-shadow: 0 1px 2px rgba(0,0,0,0.5);
      z-index: 2;
    }
.rs-banner__def .word { font-weight: 500; color: rgba(255,255,255,0.95); }
.rs-banner__def .pos {
      font-family: var(--font-body);
      font-style: italic;
      color: rgba(255,255,255,0.55);
      font-size: 0.86em;
      margin-left: 4px;
      margin-right: 6px;
    }
.rs-banner__def .body { color: rgba(255,255,255,0.78); }
.rs-banner__def .body::before {
      content: "— ";
      color: rgba(255,255,255,0.45);
    }
@media (max-width: 760px) {
  .rs-banner__def {
          position: relative;
          right: auto; bottom: auto;
          margin: 0;
          padding: 18px 20px;
          background: var(--rv-ink);
          color: rgba(255,255,255,0.78);
          text-shadow: none;
          max-width: none;
        }
}
/* Specificity fix (color: inherit on .rv-body a) */
    a.rs-thero__cta, a.rs-thero__cta:hover { text-decoration: none; }
a.rs-thero__cta--solid { color: var(--rv-bg); }
/* Hero meta — highlight the BCSC credential at end */
.rs-thero__meta .hl {
  color: var(--rv-ink);
  font-weight: 500;
}
/* ---- Hero trust anchor ---------------------------------------------- */
.rs-thero__anchor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(14px, 1.15vw, 16px);
  letter-spacing: -0.002em;
  color: var(--rv-ink-3);
}
.rs-thero__anchor em { font-style: italic; }
.rs-thero__anchor-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rv-blue);
  flex-shrink: 0;
}
@media (max-width: 880px) {
  .rs-thero__meta .v { white-space: normal; }
  .rs-thero .rv-wrap { min-width: 0; }
}
