/* Xerovi theme: rv2-system.css, the redesign v2 visual system (rv2-port, 2026-11-29; D103, D104).
   Loads last, over the A1/A2 layers (tokens, base, layout, components, patterns, pages), on every template.
   Source of the look: the owner-approved reference 04-design/redesign-v2/flow/home.html.
     - ground: night and forest green on ink sections, bone on paper sections;
     - type: Chivo, display sizes at weight 500 with tight tracking;
     - chrome: the floating glass header bar, the footer with the giant fading XEROVI wordmark;
     - components: pill buttons with the arrow disc, glass cards on ink and white cards on bone, the green-glow hero;
     - motion: unchanged rules (D42): transform/opacity only, hover behind fine pointers, Pause motion and reduced
       motion stop everything (base.css amplitude switches, motion.js).
   No X-mark drawing anywhere: the mark is the logo only (D100).
   Contents: 1 tokens  2 type  3 buttons  4 header  5 heroes  6 sections  7 cards and lists  8 content components
             9 footer  10 cookie, form, misc  11 responsive */

/* ============================================================ 1 tokens (remapped, no new hues) */
:root {
  --rv-night: #050a08;
  --rv-night-1: #08110d;
  --rv-forest: #0b1a14;
  --rv-deep: #030605;
  --rv-mint: #7dffc6;
  --rv-card-line: rgba(255, 255, 255, .08);
  --rv-glass: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  --rv-ease: cubic-bezier(.23, 1, .32, 1);
  --rv-glow: 0 10px 40px -10px rgba(0, 255, 151, .55);
  --xv-wrap-max: 1360px;
  --xv-space-gutter: clamp(20px, 4vw, 56px);
  --xv-header-height: 94px;            /* floating bar: 14px offset + 66px bar + 14px air */
  --xv-space-section: clamp(88px, 12vh, 160px);
  --xv-card-radius: 26px;
  --xv-radius-lg: 26px;
  --xv-radius-md: 18px;
  --xv-button-height: 52px;
  --xv-button-height-sm: 46px;
}
:root, .xv-tone-ink {
  --xv-bg: var(--rv-night);
  --xv-surface: #0c1712;
  --xv-surface-2: #11201a;
  --xv-line: rgba(255, 255, 255, .1);
  --xv-tonal: rgba(255, 255, 255, .06);
  --xv-tonal-hover: rgba(255, 255, 255, .1);
  --xv-card-bg: var(--rv-glass);
  --xv-card-border: var(--rv-card-line);
  --xv-hero-bg: var(--rv-night);
  --xv-mobile-menu-bg: var(--rv-night);
  --xv-footer-bg: var(--rv-deep);
  --xv-cookie-bg: #0c1712;
  --xv-button-secondary-bg: transparent;
  --xv-button-secondary-bg-hover: rgba(255, 255, 255, .05);
}
.xv-tone-paper {
  --xv-surface: #ffffff;
  --xv-card-bg: #ffffff;
  --xv-card-border: transparent;
  --xv-button-secondary-bg: transparent;
  --xv-button-secondary-bg-hover: rgba(10, 13, 12, .05);
}
html { background: var(--rv-night); scroll-padding-top: 104px; }
body { background: var(--rv-night); }

/* ============================================================ 2 type: weight 500, tight tracking */
.xv-display, .xv-h1, .xv-h1-article, .xv-h2-section, .xv-h2, .xv-h3-display, .xv-h3-row, .xv-prose h2 { font-weight: 500; }
.xv-h1 { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 6.25rem); line-height: .96; letter-spacing: -.045em; }
.xv-h1-article { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5.25rem); line-height: .98; letter-spacing: -.042em; }
.xv-display { line-height: .94; letter-spacing: -.045em; }
.xv-h2-section { font-size: clamp(2.5rem, 1.3rem + 4.4vw, 5.5rem); line-height: .98; letter-spacing: -.045em; }
.xv-h2 { letter-spacing: -.04em; line-height: 1; }
.xv-h3-display { letter-spacing: -.03em; line-height: 1.08; }
.xv-h3-row { letter-spacing: -.025em; }
.xv-h3 { letter-spacing: -.02em; }
.xv-lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
/* Labels: Xerovi green, sentence case (no all-caps eyebrows in v2); same words */
.xv-label { text-transform: none; letter-spacing: 0; font-size: .9375rem; font-weight: 600; color: var(--xv-accent); }
.xv-tone-paper .xv-label { color: var(--xv-green-700); }
.xv-hero .xv-label { color: var(--xv-green-400); }
.xv-section-heading { max-width: 1100px; }
.xv-section-heading > .xv-lead { margin-top: var(--xv-space-6); }
.xv-subhead { margin-top: clamp(48px, 6vw, 88px); }

/* ============================================================ 3 buttons: pills with the arrow disc */
.xv-button {
  min-height: var(--xv-button-height);
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.005em;
  transition: transform 160ms var(--rv-ease), background-color 200ms ease, border-color 200ms ease, box-shadow 250ms ease;
}
.xv-button > .xv-icon { width: 16px; height: 16px; transition: transform 250ms var(--rv-ease); }
/* the arrow points right inside buttons (the sprite arrow is the diagonal one): the <use> turns, the icon box does not */
.xv-button > .xv-icon use { transform: rotate(45deg); transform-origin: 50% 50%; transform-box: view-box; transition: transform 250ms var(--rv-ease); }
/* primary actions carry the disc: green pill + ink disc on ink, ink pill + green disc on bone */
.xv-button--brand, .xv-button--primary { padding: 0 7px 0 24px; }
.xv-button--brand > .xv-icon, .xv-button--primary > .xv-icon {
  box-sizing: content-box;
  width: 16px; height: 16px;
  padding: 11px;
  border-radius: 50%;
  stroke-width: 1.9;
}
.xv-button--brand { box-shadow: var(--rv-glow); }
.xv-button--brand > .xv-icon { background: var(--xv-ink-950); color: var(--xv-green-400); }
.xv-tone-ink .xv-button--primary, .xv-tone-ink.xv-button--primary { box-shadow: var(--rv-glow); }
.xv-button--primary > .xv-icon { background: var(--xv-on-fill); color: var(--xv-fill); }
.xv-tone-paper .xv-button--primary > .xv-icon { background: var(--xv-green-400); color: var(--xv-ink-950); }
.xv-button--secondary, .xv-button--ghost { --_bg: transparent; --_fg: var(--xv-text); border-color: color-mix(in srgb, var(--xv-text) 22%, transparent); }
.xv-button--ghost { --_bg-hover: var(--xv-button-secondary-bg-hover); background: transparent; color: var(--xv-text); }
.xv-button--dark { --_bg: var(--xv-ink-950); --_fg: var(--xv-bone-100); --_bg-hover: #1d2522; padding: 0 7px 0 24px; background: var(--_bg); color: var(--_fg); }
.xv-button--dark > .xv-icon { box-sizing: content-box; padding: 11px; border-radius: 50%; background: var(--xv-green-400); color: var(--xv-ink-950); }
.xv-header .xv-button { min-height: 46px; padding: 0 20px; font-size: .9375rem; box-shadow: var(--rv-glow); }
.xv-button:not(:disabled, [aria-disabled="true"]):active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .xv-button:not(:disabled, [aria-disabled="true"]):hover { transform: none; }
  .xv-button:hover > .xv-icon { transform: translateX(var(--xv-move-nudge)); }
  .xv-button--brand:hover, .xv-tone-ink .xv-button--primary:hover { box-shadow: 0 14px 50px -8px rgba(0, 255, 151, .7); }
  .xv-button--secondary:hover, .xv-button--ghost:hover { border-color: color-mix(in srgb, var(--xv-text) 45%, transparent); }
}
@media (max-width: 600px) {
  .xv-actions > .xv-button, .xv-button--block { justify-content: space-between; }
  .xv-actions > .xv-button--secondary, .xv-actions > .xv-button--ghost { justify-content: center; }
}

/* text links: weight 500, green arrow */
.xv-link { font-weight: 500; }

/* ============================================================ 4 header: the floating glass bar */
.xv-header { inset: 14px 0 auto 0; }
.xv-header::before { display: none; }
.xv-header__inner {
  min-height: 66px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: rgba(8, 17, 13, .55);
  border: 1px solid rgba(255, 255, 255, .09);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background-color 250ms ease, border-color 250ms ease;
}
.xv-header.is-solid .xv-header__inner, .xv-header[data-xv-solid] .xv-header__inner { background: rgba(8, 17, 13, .9); }
.xv-header.is-open .xv-header__inner { background: rgba(8, 17, 13, .96); }
.xv-identity .xv-mark { width: 24px; height: 24px; }
.xv-wordmark { font-size: .9375rem; }
.xv-nav__link { padding: 0 14px; border-radius: 999px; font-size: .9375rem; opacity: 1; color: rgba(242, 241, 236, .78); transition: color .2s, background-color .2s; }
.xv-nav__link[aria-current="page"], .xv-nav__link[aria-expanded="true"] { color: var(--xv-bone-100); background: rgba(255, 255, 255, .06); }
.xv-nav__link[aria-current="page"]::after { left: 50%; right: auto; width: 4px; height: 4px; bottom: 5px; margin-left: -2px; border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .xv-nav__link:hover { color: var(--xv-bone-100); background: rgba(255, 255, 255, .06); } }
.xv-menu-toggle { min-height: 46px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px; }
/* mega menu: a rounded glass panel under the bar */
.xv-mega {
  top: calc(100% + 10px);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 28px;
  background: rgba(8, 17, 13, .97);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.xv-mega__tile { border-radius: 18px; }
@media (max-width: 1230px) {
  .xv-header.is-open .xv-nav {
    inset: calc(14px + 66px + 10px) var(--xv-space-gutter) 14px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 28px;
    background: rgba(8, 17, 13, .98);
  }
}

/* ============================================================ 5 heroes: big type on the green glow */
.xv-hero {
  overflow: clip;
  padding: calc(var(--xv-header-height) + clamp(40px, 7vh, 96px)) 0 clamp(64px, 9vh, 120px);
  background:
    radial-gradient(55% 75% at 78% 40%, rgba(0, 255, 151, .14), transparent 62%),
    radial-gradient(40% 55% at 10% 100%, rgba(25, 196, 138, .11), transparent 70%),
    linear-gradient(180deg, #040806 0%, #06110c 60%, var(--rv-night) 100%);
}
.xv-hero::before { /* fine engineering grid, fading out at the edges (reference hero) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 40%, #000 20%, transparent 78%);
  mask-image: radial-gradient(70% 80% at 70% 40%, #000 20%, transparent 78%);
}
.xv-hero__title { max-width: 18ch; margin-bottom: .32em; }
.xv-hero__lead { max-width: 52ch; }
.xv-hero .xv-actions { margin-top: var(--xv-space-8); }
.xv-hero--art .xv-hero__grid, .xv-hero--home .xv-hero__grid { display: block; }
.xv-hero__art { display: none; } /* retired drawings (D100); stored content may still carry the wrapper */

/* paper page head (legal, blog post): clears the floating bar */
.xv-page-head { padding-top: calc(var(--xv-header-height) + clamp(40px, 6vh, 80px)); }
.xv-page-head__title, .xv-page-head .xv-h1-article { max-width: 20ch; }

/* breadcrumbs */
.xv-breadcrumbs { font-size: .875rem; }

/* ============================================================ 6 sections */
.xv-section.xv-tone-ink {
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(0, 255, 151, .06), transparent 70%),
    var(--rv-night);
}
.xv-section.xv-tone-ink + .xv-section.xv-tone-ink { background: var(--rv-night-1); }
.xv-section-heading { margin-bottom: clamp(40px, 5vw, 64px); }

/* closing band (T-12, T-13): the final-CTA glow */
.xv-cta-band {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: radial-gradient(45% 70% at 50% 60%, rgba(0, 255, 151, .2), transparent 70%), radial-gradient(80% 80% at 50% 130%, rgba(25, 196, 138, .28), transparent 60%), var(--rv-night);
}
.xv-cta-band__mark { display: none; }

/* ============================================================ 7 cards and lists */
.xv-card {
  border-radius: var(--xv-card-radius);
  padding: clamp(22px, 2.2vw, 30px);
  transition: transform 250ms var(--rv-ease), border-color 200ms ease, box-shadow 250ms ease;
}
.xv-tone-ink .xv-card { background: var(--rv-glass); border-color: var(--rv-card-line); }
.xv-tone-paper .xv-card { background: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(10, 13, 12, .06), 0 14px 40px -18px rgba(10, 13, 12, .22); }
.xv-card__title { font-weight: 500; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: -.02em; line-height: 1.15; }
.xv-card__index { background: rgba(0, 255, 151, .1); color: var(--xv-text); }
.xv-tone-paper .xv-card__index { background: rgba(0, 118, 73, .09); }
.xv-dg-panel, .xv-dg-badge, .xv-dg-figure, .xv-journey__glyph, .xv-process__glyph, .xv-diagram { display: none !important; } /* retired (D100) */
@media (hover: hover) and (pointer: fine) {
  .xv-tone-ink .xv-card:has(.xv-card__link):hover { transform: translateY(var(--xv-move-lift)); border-color: rgba(0, 255, 151, .35); box-shadow: none; }
  .xv-tone-paper .xv-card:has(.xv-card__link):hover { transform: translateY(var(--xv-move-lift)); box-shadow: 0 1px 2px rgba(10, 13, 12, .06), 0 24px 50px -20px rgba(10, 13, 12, .3); }
}
.xv-card__dl dt { font-weight: 600; }

/* case list rows */
.xv-case__title { font-weight: 500; letter-spacing: -.025em; }
.xv-case__pic, .xv-case__picwrap { border-radius: 20px; }

/* journey: steps as small cards */
.xv-journey { border-radius: 26px; }
.xv-journey__step { border-radius: 18px; }
.xv-journey__num { color: var(--xv-accent); font-weight: 500; }

/* delivery process: numbered cards (the home stacks them; elsewhere they sit in a row) */
.xv-process__item { border-radius: 26px; }
.xv-process__num { color: var(--xv-accent); font-weight: 500; letter-spacing: -.04em; }
.xv-process__title { font-weight: 500; }

/* FAQ / disclosure rows */
.xv-faq__q { font-weight: 500; }

/* product blocks */
.xv-built__stage, .xv-window, .xv-screen__frame { border-radius: 18px; }
.xv-product, .xv-built { border-radius: 30px; }

/* ============================================================ 8 content components on both tones */
.xv-demo__frame { border-radius: 18px; }
.xv-table { border-radius: 18px; }
.xv-toc { border-radius: 18px; }
.xv-quote { border-radius: 26px; }

/* ============================================================ 9 footer with the giant fading wordmark */
.xv-footer { border-top: 0; background: var(--rv-deep); padding-top: clamp(64px, 8vw, 96px); color: rgba(242, 241, 236, .72); font-size: .9375rem; }
.xv-footer__inner { gap: 40px; }
@media (min-width: 1024px) {
  .xv-footer__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); }
}
.xv-footer__brand { gap: 18px; }
.xv-footer__tagline { max-width: 34ch; color: var(--xv-stone-200); }
.xv-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.xv-footer__nav ul, .xv-footer__contact { display: grid; grid-template-columns: none; align-content: start; gap: 2px; margin: 0; padding: 0; list-style: none; }
.xv-footer__nav a, .xv-footer__contact a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--xv-stone-100);
  text-decoration: none;
  transition: color .2s;
}
.xv-footer__contact-col { display: grid; gap: 14px; align-content: start; }
.xv-footer__address { max-width: 40ch; line-height: 1.5; }
.xv-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; margin-top: 24px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.xv-footer__copy { margin: 0; }
@media (hover: hover) and (pointer: fine) { .xv-footer__nav a:hover, .xv-footer__contact a:hover { color: var(--xv-green-400); } }
.xv-footer__word {
  margin: 10px 0 -3vw;
  font-size: 26vw;
  line-height: .78;
  font-weight: 600;
  letter-spacing: -.06em;
  text-transform: none;
  background: linear-gradient(180deg, rgba(0, 255, 151, .22), rgba(0, 255, 151, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: none;
}

/* the Pause control as a pill, wherever it sits */
.xv-control--hero { min-height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(5, 10, 8, .6); color: var(--xv-stone-100); font-size: .8125rem; }
.xv-control--hero:first-child { padding-left: 14px; }
.xv-control--hero[aria-pressed="true"] { color: var(--xv-green-400); border-color: rgba(0, 255, 151, .4); }

/* ============================================================ 10 cookie notice, form, misc */
.xv-cookie, .xv-cookie-dialog { border-radius: 24px; border: 1px solid rgba(255, 255, 255, .09); }
.xv-cookie__choice { border-radius: 999px; }
.xv-input, .xv-textarea, .xv-select select, .xv-form input:not([type="checkbox"], [type="radio"], [type="hidden"]), .xv-form textarea, .xv-form select { border-radius: 14px; }
.xv-choice { border-radius: 999px; }
::selection { background: var(--xv-green-400); color: var(--xv-ink-950); }

/* ============================================================ 11 responsive */
@media (max-width: 640px) {
  .xv-header { inset: 10px 0 auto 0; }
  .xv-header__inner { min-height: 60px; padding: 0 8px 0 18px; }
  .xv-footer__nav { grid-template-columns: 1fr 1fr; }
  .xv-footer__base { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .xv-button, .xv-button > .xv-icon, .xv-card { transition: none; }
}
/* touch targets (DESIGN.md: >= 44px under a coarse pointer) */
@media (pointer: coarse) {
  .xv-footer__nav a, .xv-footer__contact a { min-height: 44px; }
  .xv-control--hero { min-height: 44px; }
}
