/* ═══════════════════════════════════════════
   refined.css — Styles for refined IA page
   Supplements style.css, does not replace it
   ═══════════════════════════════════════════ */

/* Force dark mode for refined page */
body {
  background: #080e0a !important;
  color: #e8ede8 !important;
}
.section, .om-section, .rf-nvidia, .rf-close {
  color: #e8ede8;
}
.section-kicker {
  color: #76b900 !important;
}
h2, h3 {
  color: #e8ede8 !important;
}
/* How I Operate uses light background from style.css — override heading to dark ink */
#operate h2 {
  color: #17211b !important;
}
#operate .om-sub {
  color: #2f3835;
}
.site-footer {
  background: #060a06;
  color: #e8ede8;
}
.footer-note {
  color: rgba(255,255,255,0.4) !important;
}
.footer-top strong, .footer-top span {
  color: rgba(255,255,255,0.8);
}
.footer-links a {
  color: #76b900 !important;
}

/* ── WHY NVIDIA PILLARS ── */
.rf-nvidia { text-align: center; }
.rf-nvidia h2 { max-width: 640px; margin: 0 auto 40px; }

.rf-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.rf-pillar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 200ms ease;
}
.rf-pillar:hover { border-color: rgba(118,185,0,0.4); }
.rf-pillar-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rf-pillar-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(118,185,0,0.15);
  color: #76b900;
  font-family: var(--fm, 'IBM Plex Mono', monospace);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.rf-pillar h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}
.rf-pillar > p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 16px;
}
.rf-evidence {
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rf-ev-label {
  font-family: var(--fm, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #76b900;
  display: block;
  margin-bottom: 6px;
}
.rf-evidence p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .rf-pillars { grid-template-columns: 1fr; gap: 16px; }
}

/* ── THREE PROVEN RESULTS ── */
.rf-cases {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.rf-case {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 28px 32px;
  transition: border-color 200ms ease;
}
.rf-case:hover { border-color: rgba(118,185,0,0.3); }
.rf-case-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.rf-case-co {
  font-family: var(--fm, 'IBM Plex Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  color: #76b900;
  letter-spacing: 0.04em;
}
.rf-case-scope {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.rf-case-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
}
.rf-case-body dt {
  font-family: var(--fm, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding-top: 2px;
}
.rf-case-body dd {
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin: 0;
  padding-bottom: 10px;
}
.rf-case-body dd strong {
  color: #76b900;
  font-weight: 600;
}

@media (max-width: 680px) {
  .rf-case-body { grid-template-columns: 1fr; }
  .rf-case-body dt { margin-top: 8px; }
  .rf-case { padding: 20px; }
}

/* ── YEAR ONE ── */
.rf-start-lede {
  font-size: 14.5px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  max-width: 640px;
}
.rf-start-goal {
  margin-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  border-left: 3px solid rgba(118,185,0,0.4);
  padding-left: 16px;
  line-height: 1.6;
}

/* ── CONCEPT DEMONSTRATION ── */
.rf-concept-disclaimer {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 8px;
  padding: 14px 20px;
  margin-bottom: 24px;
}
.rf-concept-disclaimer p {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
}
.rf-concepts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.rf-concept-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(118,185,0,0.04);
  border: 1px solid rgba(118,185,0,0.35);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(118,185,0,0.1), 0 0 4px rgba(118,185,0,0.08);
  animation: concept-card-glow 3s ease-in-out infinite;
}
@keyframes concept-card-glow {
  0%, 100% { box-shadow: 0 0 16px rgba(118,185,0,0.1), 0 0 4px rgba(118,185,0,0.08); }
  50% { box-shadow: 0 0 24px rgba(118,185,0,0.2), 0 0 8px rgba(118,185,0,0.12); }
}
.rf-concept-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 30% 0%, rgba(118,185,0,0.06) 0%, transparent 70%);
  opacity: 0.5;
  transition: opacity 400ms ease;
}
.rf-concept-card:hover {
  border-color: rgba(118,185,0,0.6);
  box-shadow: 0 0 32px rgba(118,185,0,0.25), 0 0 60px rgba(118,185,0,0.08);
  transform: translateY(-3px);
  opacity: 1;
  animation: none;
}
.rf-concept-card:hover::before { opacity: 1; }
.rf-concept-card .rf-concept-link {
  animation: concept-pulse 2.5s ease-in-out infinite;
}
@keyframes concept-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 8px rgba(118,185,0,0.4); }
}
@media (prefers-reduced-motion: reduce) {
  .rf-concept-card { animation: none; }
  .rf-concept-card .rf-concept-link { animation: none; }
  .rf-concept-card:hover { transform: none; }
}
.rf-concept-badge {
  font-family: var(--fm, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #76b900;
}
.rf-concept-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}
.rf-concept-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}
.rf-concept-link {
  font-size: 13px;
  font-weight: 500;
  color: #76b900;
  margin-top: auto;
}

@media (max-width: 680px) {
  .rf-concepts-grid { grid-template-columns: 1fr; }
}

/* ── PERSONAL CLOSE ── */
.rf-close { text-align: center; }
.rf-close-body {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 24px;
}
.rf-testimonial {
  max-width: 560px;
  margin: 0 auto 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: left;
}
.rf-testimonial blockquote {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  font-style: italic;
}
.rf-testimonial cite {
  font-size: 12px;
  font-style: normal;
  color: rgba(255,255,255,0.4);
}
.rf-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
}
.rf-contact strong {
  font-size: 16px;
}
.rf-contact span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.rf-contact-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.rf-contact-links a {
  font-size: 13px;
  color: #76b900;
}
.rf-authenticity {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}


/* ── CAREER STRIP (condensed) ── */
.rf-career-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
}
.rf-career-strip::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(118,185,0,0.5));
  z-index: 0;
}
.rf-career-node {
  position: relative;
  z-index: 1;
  padding: 24px 16px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rf-career-node::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.3);
}
.rf-career-node--accent::before {
  background: rgba(118,185,0,0.3);
  border-color: #76b900;
}
.rf-career-node--current::before {
  background: #76b900;
  border-color: #76b900;
  box-shadow: 0 0 8px rgba(118,185,0,0.5);
}
.rf-cn-year {
  font-family: var(--fm, 'IBM Plex Mono', monospace);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.04em;
  margin-top: 8px;
}
.rf-career-node strong {
  font-size: 13px;
  font-weight: 600;
  color: #e8ede8;
}
.rf-cn-co {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 680px) {
  .rf-career-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .rf-career-strip::before { display: none; }
}
@media (max-width: 400px) {
  .rf-career-strip { grid-template-columns: 1fr; }
}


/* ── MOBILE SAFETY (390px–430px) ── */
@media (max-width: 430px) {
  .panel-footprint {
    font-size: 9px;
    word-break: break-word;
  }
  .rf-pillar {
    padding: 20px 16px;
  }
  .rf-case {
    padding: 18px 16px;
  }
  .rf-case-head {
    flex-direction: column;
    gap: 4px;
  }
  .rf-start-goal {
    padding-left: 12px;
  }
  .rf-concept-card {
    padding: 18px 16px;
  }
}

/* Ensure no horizontal scroll */
html, body {
  overflow-x: hidden;
}

/* Sticky header anchor offset so section headings aren't hidden */
section[id] {
  scroll-margin-top: 72px;
}
