/* ============================================================
   RED PRO — V2 "X-Ray" homepage (award build, 2026-06-10)
   Isolated layer: only rp2-* classes. styles.css still owns
   nav / footer / cookie / whatsapp injected by common.js.
   ============================================================ */

:root {
  --rp2-obsidian: #0A0E14;
  --rp2-ink: #0F1115;
  --rp2-ghost: #B9BDC4;
  --rp2-ghost-dark: rgba(255,255,255,0.38);
  --rp2-line: rgba(15,17,21,0.08);
  --rp2-line-light: rgba(255,255,255,0.10);
  --rp2-red: #E63232;
  --rp2-red-deep: #C42424;
  --rp2-copper: #D08A4E;
  --rp2-cyan: #7FD8E8;
  --rp2-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --rp2-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --rp2-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: auto; }
body.rp2 { background: var(--rp2-obsidian); }

/* ---------- shared atoms ---------- */
.rp2-eyebrow {
  font: 600 11px/1 var(--rp2-sans);
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--rp2-red);
  display: inline-flex; align-items: center; gap: 14px;
}
.rp2-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--rp2-red); }
.rp2-kv {
  font: 600 10px/1 var(--rp2-mono);
  letter-spacing: 0.18em;
  padding: 6px 10px; border: 1px solid currentColor; border-radius: 999px;
  opacity: .85;
}
.rp2-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }

/* reveals */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   HERO — scroll-scrubbed X-ray
   ============================================================ */
.rp2-hero { position: relative; height: 420vh; background: var(--rp2-obsidian); }
.rp2-hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rp2-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
}
/* cinematic frame */
.rp2-hero-sticky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,6,10,.62) 0%, rgba(4,6,10,0) 26%),
    linear-gradient(0deg, rgba(4,6,10,.78) 0%, rgba(4,6,10,0) 34%);
}
.rp2-hero-content {
  position: absolute; z-index: 2;
  left: clamp(20px, 5vw, 72px); bottom: clamp(84px, 14vh, 150px);
  max-width: 760px;
}
.rp2-hero-content .rp2-eyebrow { color: #ff8d8d; margin-bottom: 22px; }
.rp2-hero-content .rp2-eyebrow::before { background: #ff8d8d; }
.rp2-h1 {
  font: 700 clamp(2.6rem, 6.2vw, 5.4rem)/1.04 var(--rp2-serif);
  letter-spacing: -0.02em; color: #fff; margin: 0 0 26px;
  text-wrap: balance;
}
.rp2-h1 em { font-style: italic; color: var(--rp2-ghost-dark); }
.rp2-hero-sub { font: 400 clamp(15px, 1.3vw, 18px)/1.65 var(--rp2-sans); color: rgba(255,255,255,.72); max-width: 54ch; margin: 0 0 34px; }
.rp2-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.rp2-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--rp2-sans); letter-spacing: .22em; text-transform: uppercase;
  padding: 18px 30px; border-radius: 999px; text-decoration: none;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s, background .3s;
  border: none; cursor: pointer;
}
.rp2-btn .arr { transition: transform .3s; }
.rp2-btn:hover .arr { transform: translateX(5px); }
.rp2-btn-red { background: var(--rp2-red); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 14px 38px rgba(230,50,50,.42); }
.rp2-btn-red:hover { background: var(--rp2-red-deep); transform: translateY(-2px); }
.rp2-btn-ghost { background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); }
.rp2-btn-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.rp2-btn-dark { background: var(--rp2-ink); color: #fff; font-size: 13px; }
.rp2-btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(15,17,21,.3); }

/* second headline — appears on full skeleton */
.rp2-hero-phase2 {
  position: absolute; z-index: 2; right: clamp(20px, 5vw, 72px); top: clamp(96px, 16vh, 170px);
  text-align: right; opacity: 0; transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease; pointer-events: none;
  max-width: 420px;
}
.rp2-hero-phase2.on { opacity: 1; transform: none; }
.rp2-hero-phase2 .t { font: 700 clamp(1.2rem, 2vw, 1.8rem)/1.25 var(--rp2-serif); color: #fff; }
.rp2-hero-phase2 .s { font: 500 10px/1.8 var(--rp2-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--rp2-cyan); display: block; margin-top: 10px; }

/* voltage gauge (desktop) */
.rp2-gauge {
  position: absolute; z-index: 2; right: clamp(18px, 3.4vw, 48px); bottom: clamp(84px, 14vh, 150px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.rp2-gauge .track { width: 2px; height: clamp(120px, 22vh, 220px); background: rgba(255,255,255,.16); position: relative; border-radius: 2px; }
.rp2-gauge .fill { position: absolute; bottom: 0; left: 0; width: 100%; height: 0%; background: linear-gradient(0deg, var(--rp2-red), #ff9d6b); border-radius: 2px; box-shadow: 0 0 12px rgba(230,50,50,.8); }
.rp2-gauge .kv { font: 700 11px/1.5 var(--rp2-mono); letter-spacing: .12em; color: #fff; text-align: center; min-width: 72px; }
.rp2-gauge .kv small { display: block; font-size: 8px; letter-spacing: .3em; color: rgba(255,255,255,.5); }

/* scroll cue */
.rp2-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  font: 600 9px/1 var(--rp2-sans); letter-spacing: .4em; text-transform: uppercase; color: rgba(255,255,255,.55);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.rp2-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(180deg, var(--rp2-red), transparent); animation: rp2cue 1.8s ease-in-out infinite; }
@keyframes rp2cue { 0%,100% { transform: scaleY(.4); transform-origin: top; opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* ============================================================
   MANIFESTO — two-tone editorial on white
   ============================================================ */
.rp2-manifesto { background: #fff; padding: clamp(90px, 13vw, 170px) 0; position: relative; }
.rp2-manifesto .rp2-eyebrow { margin-bottom: 34px; }
.rp2-m-line {
  font: 600 clamp(1.9rem, 4.6vw, 4rem)/1.18 var(--rp2-serif);
  letter-spacing: -0.018em; color: var(--rp2-ink); max-width: 21ch; margin: 0 0 38px;
}
.rp2-m-line .g { color: #C9CCD2; }
.rp2-m-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.rp2-m-body p { font: 400 16px/1.8 var(--rp2-sans); color: #4B5563; max-width: 58ch; }
.rp2-chiprow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.rp2-chip {
  font: 600 10.5px/1 var(--rp2-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--rp2-ink); border: 1px solid var(--rp2-line); border-radius: 999px; padding: 9px 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.rp2-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--rp2-red); }

/* ============================================================
   SERVICES — sticky-stacking discipline cards
   ============================================================ */
.rp2-services { background: #F4F5F7; padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 110px); }
.rp2-sec-head { margin-bottom: clamp(44px, 6vw, 80px); }
.rp2-h2 { font: 700 clamp(2rem, 4.6vw, 3.6rem)/1.1 var(--rp2-serif); letter-spacing: -0.02em; color: var(--rp2-ink); margin: 18px 0 0; }
.rp2-h2 .g { color: #C9CCD2; }
.rp2-stack { display: grid; gap: 22px; }
.rp2-card {
  position: sticky;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #11161F 0%, #0A0E14 70%);
  color: #fff; min-height: 380px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  box-shadow: 0 -18px 50px rgba(10,14,20,.18);
  isolation: isolate;
}
.rp2-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(60% 90% at 85% 15%, rgba(230,50,50,.16), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 90px);
}
.rp2-card-num {
  position: absolute; top: 18px; right: 30px;
  font: 800 clamp(5rem, 9vw, 8.4rem)/1 var(--rp2-serif);
  color: rgba(255,255,255,.05); user-select: none;
}
.rp2-card-l { padding: clamp(30px, 4.5vw, 64px); position: relative; }
.rp2-card .rp2-kv { color: var(--rp2-copper); margin-bottom: 18px; display: inline-flex; }
.rp2-card h3 { font: 700 clamp(1.7rem, 3vw, 2.6rem)/1.12 var(--rp2-serif); margin: 0 0 16px; letter-spacing: -0.015em; }
.rp2-card p { font: 400 15px/1.75 var(--rp2-sans); color: rgba(255,255,255,.66); max-width: 46ch; margin: 0 0 24px; }
.rp2-card-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.rp2-card-specs span {
  font: 600 10px/1 var(--rp2-mono); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.75);
  padding: 8px 12px; border-radius: 999px;
}
.rp2-card-link {
  font: 700 11px/1 var(--rp2-sans); letter-spacing: .24em; text-transform: uppercase;
  color: #ff9d9d; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.rp2-card-link .arr { transition: transform .3s; }
.rp2-card-link:hover .arr { transform: translateX(5px); }
.rp2-card-r { position: relative; height: 100%; min-height: 320px; }
.rp2-card-r .ph {
  position: absolute; inset: 24px; border-radius: 14px;
  background-size: cover; background-position: center;
  filter: saturate(1.05);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(100deg, transparent 0%, #000 22%);
  transition: filter .7s ease, transform 1.1s cubic-bezier(.16,1,.3,1);
}
/* discipline art: scan-texture + edge-blend overlay (matches project X-ray treatment) */
.rp2-card-r .ph::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    linear-gradient(115deg, rgba(10,14,20,.42) 0%, transparent 46%),
    linear-gradient(0deg, rgba(10,14,20,.30) 0%, transparent 24%),
    repeating-linear-gradient(0deg, rgba(127,216,232,.045) 0 1px, transparent 1px 4px);
}
.rp2-card:hover .rp2-card-r .ph { filter: saturate(1.15) brightness(1.06); transform: scale(1.025); }
/* current line along card bottom on hover */
.rp2-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--rp2-red) 30%, #ffb46b 60%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.16,1,.3,1);
}
.rp2-card:hover::after { transform: scaleX(1); }

/* ============================================================
   PROJECTS — editorial showcase on obsidian
   ============================================================ */
.rp2-projects { background: var(--rp2-obsidian); color: #fff; padding: clamp(100px, 13vw, 180px) 0; }
.rp2-projects .rp2-h2 { color: #fff; }
.rp2-projects .rp2-h2 .g { color: rgba(255,255,255,.28); }
.rp2-proj { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 4.5vw, 70px); align-items: center; margin-top: clamp(50px, 7vw, 96px); }
.rp2-proj.flip { grid-template-columns: .85fr 1.15fr; }
.rp2-proj.flip .rp2-proj-media { order: 2; }
.rp2-proj-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/11; }
.rp2-proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.rp2-proj:hover .rp2-proj-media img { transform: scale(1.05); }
.rp2-proj-media::after {
  content: attr(data-tag);
  position: absolute; left: 18px; bottom: 16px;
  font: 700 9.5px/1 var(--rp2-mono); letter-spacing: .3em; text-transform: uppercase;
  color: #fff; background: rgba(10,14,20,.55); backdrop-filter: blur(8px);
  padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
}
.rp2-proj-body .rp2-eyebrow { margin-bottom: 20px; }
.rp2-proj-body h3 { font: 700 clamp(1.8rem, 3.4vw, 3rem)/1.1 var(--rp2-serif); margin: 0 0 18px; letter-spacing: -0.018em; }
.rp2-proj-body p { font: 400 15.5px/1.8 var(--rp2-sans); color: rgba(255,255,255,.64); max-width: 50ch; margin: 0 0 26px; }
.rp2-proj-body .rp2-chiprow .rp2-chip { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.16); }

/* ============================================================
   STATS — meter bank
   ============================================================ */
.rp2-stats { background: #fff; padding: clamp(90px, 12vw, 150px) 0; }
.rp2-meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2.6vw, 36px); margin-top: clamp(40px, 5vw, 70px); }
.rp2-meter { text-align: center; padding: clamp(22px, 2.6vw, 38px) 14px; border: 1px solid var(--rp2-line); border-radius: 20px; position: relative; overflow: hidden; }
.rp2-meter svg { width: clamp(86px, 9vw, 130px); height: auto; display: block; margin: 0 auto 14px; }
.rp2-meter .arc-bg { stroke: #EEF0F3; }
.rp2-meter .arc-fg { stroke: url(#rp2grad); stroke-linecap: round; }
.rp2-meter .val { font: 800 clamp(1.7rem, 2.6vw, 2.5rem)/1 var(--rp2-serif); color: var(--rp2-ink); }
.rp2-meter .val sup { font-size: .55em; color: var(--rp2-red); }
.rp2-meter .lab { font: 600 10.5px/1.5 var(--rp2-sans); letter-spacing: .2em; text-transform: uppercase; color: #8A94A3; margin-top: 10px; }

/* ============================================================
   PROCESS — energized circuit timeline
   ============================================================ */
.rp2-process { background: #F4F5F7; padding: clamp(90px, 12vw, 160px) 0; }
.rp2-rail { position: relative; margin-top: clamp(54px, 7vw, 90px); }
.rp2-rail .line { position: absolute; top: 27px; left: 0; right: 0; height: 2px; background: #E2E5EA; }
.rp2-rail .line .energy { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--rp2-red), #ff9d6b); box-shadow: 0 0 14px rgba(230,50,50,.55); transition: transform .2s linear; }
.rp2-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); position: relative; }
.rp2-step { padding-top: 0; }
.rp2-step .node {
  width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 1px solid #E2E5EA;
  display: grid; place-items: center; margin-bottom: 22px; position: relative; z-index: 1;
  font: 800 15px/1 var(--rp2-mono); color: #A8AFBA;
  transition: border-color .4s, color .4s, box-shadow .4s, background .4s;
}
.rp2-step.lit .node { background: var(--rp2-ink); border-color: var(--rp2-ink); color: #fff; box-shadow: 0 0 0 6px rgba(230,50,50,.14), 0 10px 26px rgba(15,17,21,.22); }
.rp2-step h3.rp2-step-t, .rp2-step h4 { font: 700 clamp(1.05rem, 1.5vw, 1.3rem)/1.2 var(--rp2-serif); color: var(--rp2-ink); margin: 0 0 10px; }
.rp2-step p { font: 400 14px/1.7 var(--rp2-sans); color: #6B7280; margin: 0; max-width: 30ch; }

/* ============================================================
   CTA — breaker strip
   ============================================================ */
.rp2-cta { position: relative; background: var(--rp2-obsidian); color: #fff; padding: clamp(110px, 15vw, 200px) 0; overflow: hidden; text-align: center; }
.rp2-cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(50% 70% at 50% 110%, rgba(230,50,50,.32), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 110px);
}
.rp2-cta .rp2-wrap { position: relative; }
.rp2-cta h2 { font: 700 clamp(2.2rem, 5.6vw, 4.6rem)/1.08 var(--rp2-serif); letter-spacing: -0.02em; margin: 22px 0 18px; }
.rp2-cta h2 .g { color: rgba(255,255,255,.3); }
.rp2-cta p { font: 400 16px/1.7 var(--rp2-sans); color: rgba(255,255,255,.62); max-width: 56ch; margin: 0 auto 40px; }
.rp2-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* mega ghost wordmark */
.rp2-mega {
  margin-top: clamp(70px, 9vw, 130px);
  font: 800 clamp(4rem, 14vw, 13rem)/0.9 var(--rp2-serif);
  letter-spacing: -0.03em; text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.10);
  user-select: none;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .rp2-card { grid-template-columns: 1fr; min-height: 0; }
  .rp2-card-r { min-height: 220px; order: -1; }
  .rp2-card-r .ph { inset: 16px 16px 0; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
  .rp2-m-body { grid-template-columns: 1fr; }
  .rp2-proj, .rp2-proj.flip { grid-template-columns: 1fr; }
  .rp2-proj.flip .rp2-proj-media { order: 0; }
  .rp2-meters { grid-template-columns: repeat(2, 1fr); }
  .rp2-steps { grid-template-columns: 1fr; gap: 30px; }
  .rp2-rail .line { top: 0; bottom: 0; left: 26px; right: auto; width: 2px; height: auto; }
  .rp2-rail .line .energy { transform-origin: top; transform: scaleY(0); width: 100%; height: 100%; }
  .rp2-step { display: grid; grid-template-columns: 54px 1fr; gap: 18px; }
  .rp2-step .node { margin-bottom: 0; }
  .rp2-gauge { display: none; }
  .rp2-hero { height: auto; }
  .rp2-hero-sticky { position: relative; height: 100svh; }
  .rp2-hero-phase2 { display: none; }
  /* eyebrow wraps to two lines on narrow screens — give the lines air */
  .rp2-hero-content .rp2-eyebrow { line-height: 1.7; }
}
/* Touch devices at ANY width (iPad landscape 1024–1366px): v2.js disables the
   scroll-scrub for (pointer:coarse), so collapse the 420vh runway to match —
   otherwise the hero is 3 screens of repeated static video. */
@media (pointer: coarse) {
  .rp2-hero { height: auto; }
  .rp2-hero-sticky { position: relative; height: 100svh; }
  .rp2-hero-phase2 { display: none; }
  .rp2-gauge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rp2-hero { height: auto; }
  .rp2-hero-sticky { position: relative; }
  .rp2-card:hover .rp2-card-r .ph { transform: none; }
}

/* small phones — tighten type scale, card padding and stat rows */
@media (max-width: 480px) {
  .rp2-h1 { font-size: clamp(2rem, 9.4vw, 2.5rem); margin-bottom: 18px; }
  .rp2-hero-content { bottom: 76px; right: 20px; }
  /* cue collides with the "Ver proyectos" ghost button on small phones */
  .rp2-cue { display: none; }
  .rp2-hero-sub { font-size: 14.5px; margin-bottom: 24px; }
  .rp2-hero-content .rp2-eyebrow { letter-spacing: .22em; margin-bottom: 16px; }
  .rp2-btn { padding: 15px 22px; letter-spacing: .16em; }
  .rp2-m-line { font-size: 1.7rem; margin-bottom: 26px; }
  .rp2-h2 { font-size: 1.75rem; }
  .rp2-stack { gap: 14px; }
  .rp2-card { border-radius: 16px; }
  .rp2-card-l { padding: 22px 20px 30px; }
  .rp2-card h3 { font-size: 1.45rem; }
  .rp2-card p { font-size: 14px; }
  .rp2-card-num { font-size: 3.6rem; top: 10px; right: 16px; }
  .rp2-card-specs { gap: 6px; margin-bottom: 22px; }
  .rp2-card-specs span { padding: 7px 10px; }
  .rp2-card-r { min-height: 190px; }
  .rp2-card-r .ph { inset: 12px 12px 0; }
  .rp2-chip { padding: 8px 11px; font-size: 9.5px; letter-spacing: .1em; }
  .rp2-meters { gap: 10px; }
  .rp2-meter { padding: 16px 8px; border-radius: 14px; }
  .rp2-meter .lab { font-size: 9px; letter-spacing: .12em; }
  .rp2-proj-body h3 { font-size: 1.55rem; }
  .rp2-cta h2 { font-size: 2.05rem; }
  .rp2-cta p { font-size: 14.5px; }
  .rp2-mega { font-size: 3.2rem; }
}

/* debug/static-capture mode (?flat=1) — collapses scrub runway */
body.rp2-flat .rp2-hero { height: auto; }
body.rp2-flat .rp2-hero-sticky { position: relative; }
body.rp2-flat .rp2-hero-sticky { height: 860px; }

/* LIVE X-ray scan on homepage project media */
.rp2-proj-media .xr { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 1; pointer-events: none; clip-path: inset(88% 0 0 0); animation: v2scan 9s cubic-bezier(.45,.05,.55,.95) infinite alternate; will-change: clip-path; }
.rp2-proj-media .scanline { position: absolute; left: -2%; right: -2%; height: 3px; z-index: 3; top: 88%; background: linear-gradient(90deg, transparent, #E63232 22%, #FFB46B 50%, #E63232 78%, transparent); box-shadow: 0 0 18px 2px rgba(230,50,50,.85), 0 0 42px 6px rgba(255,140,80,.35); animation: v2scanline 9s cubic-bezier(.45,.05,.55,.95) infinite alternate; pointer-events: none; }
@keyframes v2scan     { 0% { clip-path: inset(88% 0 0 0); } 100% { clip-path: inset(6% 0 0 0); } }
@keyframes v2scanline { 0% { top: 88%; } 100% { top: 6%; } }
.rp2-proj:hover .rp2-proj-media .xr, .rp2-proj:hover .rp2-proj-media .scanline { animation-duration: 3.2s; }
@media (prefers-reduced-motion: reduce) { .rp2-proj-media .xr { animation: none; clip-path: inset(45% 0 0 0); } .rp2-proj-media .scanline { animation: none; top: 45%; } }
.rp2-proj-media .xr-chip { position: absolute; top: 14px; right: 14px; z-index: 2; font: 700 9px/1 ui-monospace, Menlo, monospace; letter-spacing: .28em; text-transform: uppercase; color: #7FD8E8; background: rgba(8,12,18,.62); backdrop-filter: blur(6px); border: 1px solid rgba(127,216,232,.35); border-radius: 999px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 7px; opacity: 0; transform: translateY(-6px); transition: opacity .45s ease .12s, transform .45s ease .12s; }
.rp2-proj-media .xr-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7FD8E8; box-shadow: 0 0 8px #7FD8E8; animation: rp2pulse 1.6s ease-in-out infinite; }
@keyframes rp2pulse { 0%,100% { opacity: .5 } 50% { opacity: 1 } }
.rp2-proj-media .xr-chip { opacity: 1; transform: none; }

/* 2026-06-11 — homepage legibility/contrast pass */
.rp2-hero-content .rp2-h1 { text-shadow: 0 2px 22px rgba(4,8,16,.62); }
.rp2-hero-sub { color: rgba(255,255,255,.88); text-shadow: 0 1px 14px rgba(4,8,16,.6); }
.rp2-card p { color: rgba(255,255,255,.76); }
.rp2-proj-body p { color: rgba(255,255,255,.78); }
.rp2-cta p { color: rgba(255,255,255,.78); }
.rp2-card-specs span { color: rgba(255,255,255,.82); }
