/* =============================================
   Research.css — M PRO9 R&D Page
   Identity: "Engineering Pipeline"
   ============================================= */

:root {
  --rd-primary:       #173f64;
  --rd-primary-light: #319dcf;
  --rd-secondary:     #0a1f3d;
  --rd-text:          #0f172a;
  --rd-muted:         #64748b;
  --rd-bg:            #f8fafc;
  --rd-border:        rgba(23, 63, 100, 0.10);
  --rd-radius:        16px;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--rd-text);
  line-height: 1.65;
  background: #ffffff;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--rd-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 99999;
  border-radius: 0 0 8px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ===== SECTION COMMON ===== */
.section { padding: 80px 0; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--rd-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-title p {
  color: var(--rd-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin-inline: auto;
}

.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--rd-primary-light);
  margin-bottom: 0.65rem;
}

/* RD section tag — monospace corner label */
.rd-section-tag {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(49, 157, 207, 0.45);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--rd-primary);
  color: #fff;
  border-color: var(--rd-primary);
}
.btn-primary:hover {
  background: #1e5280;
  border-color: #1e5280;
  box-shadow: 0 10px 28px rgba(23, 63, 100, 0.30);
}

.btn-light {
  background: #fff;
  color: var(--rd-primary);
  border-color: #fff;
}
.btn-light:hover {
  background: #f0f6fc;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.btn-ghost-light {
  background: transparent;
  color: rgba(241, 245, 250, 0.88);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.70);
}

/* Coarse pointer tap target */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
}

/* ===== HERO ===== */
.rd-hero {
  min-height: 90vh;
  background:
    url('/assets/images/common/Research%20Page%20Hero.webp') center / cover no-repeat,
    linear-gradient(155deg, #0a1f3d 0%, #173f64 100%);
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 100px;
}

/* Dark overlay + ambient glow + grid texture (raised to 0.055 opacity) */
.rd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 72% at 14% 52%, rgba(49, 157, 207, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 44% 55% at 84% 28%, rgba(49, 157, 207, 0.09) 0%, transparent 58%),
    linear-gradient(rgba(49, 157, 207, 0.055) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, rgba(49, 157, 207, 0.055) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(155deg, rgba(10, 31, 61, 0.72) 0%, rgba(23, 63, 100, 0.55) 100%);
  z-index: 0;
}

/* Scan-line sweep */
.rd-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(49, 157, 207, 0.55) 50%, transparent 100%);
  top: 0;
  animation: rd-scan 10s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes rd-scan {
  0%   { top: 15%; opacity: 0; }
  5%   { opacity: 0.7; }
  95%  { opacity: 0.7; }
  100% { top: 85%; opacity: 0; }
}

.rd-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* System coordinate readout above eyebrow */
.rd-hero-content::before {
  content: 'SYS: R&D_ENGINE // STATUS: ACTIVE';
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(49, 157, 207, 0.5);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.rd-eyebrow {
  display: inline-block;
  background: rgba(49, 157, 207, 0.14);
  color: var(--rd-primary-light);
  border: 1px solid rgba(49, 157, 207, 0.28);
  padding: 0.38rem 1.1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

/* Scaled-up hero headline */
.rd-hero h1 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.14;
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}
.rd-br { display: none; }

.rd-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
  line-height: 1.80;
  margin-bottom: 2.4rem;
}

.rd-hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero items visible by default; GSAP hides and animates them */
html:not(.js-enabled) .motion-hero-item { opacity: 1 !important; transform: none !important; }

/* ===== RESEARCH PHILOSOPHY ===== */
.rd-philosophy { background: #fff; }

.rd-philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.rd-philosophy-left h2 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  color: var(--rd-primary);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.rd-philosophy-left > p {
  color: #334155;
  line-height: 1.82;
  font-size: 1rem;
}

/* Image visual panel — framed + ambient glow */
.rd-philosophy-visual-wrap {
  position: relative;
  margin-top: 2rem;
}

.rd-philosophy-visual-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1px solid rgba(49, 157, 207, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(49, 157, 207, 0.14),
    0 8px 40px rgba(10, 31, 61, 0.18);
  pointer-events: none;
  z-index: 2;
}

.rd-philosophy-visual-wrap::after {
  content: '';
  position: absolute;
  inset: -24px;
  border-radius: 28px;
  background: radial-gradient(ellipse 80% 65% at 50% 55%, rgba(49, 157, 207, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.rd-philosophy-visual {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  position: relative;
  z-index: 1;
  opacity: 0.90;
}

/* Principle records */
.rd-principle-list { list-style: none; }

.rd-principle-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 12px 20px 22px;
  border-bottom: 1px solid rgba(23, 63, 100, 0.09);
  border-radius: 0 10px 10px 0;
  transition: background 0.28s ease;
  overflow: hidden;
}
.rd-principle-item:first-child { border-top: 1px solid rgba(23, 63, 100, 0.09); }

/* Left accent bar — reveals on hover */
.rd-principle-item::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--rd-primary-light);
  border-radius: 0 2px 2px 0;
  opacity: 0.28;
  transition: opacity 0.28s ease;
}
.rd-principle-item:hover { background: rgba(49, 157, 207, 0.035); }
.rd-principle-item:hover::before { opacity: 1; }

/* Touch/no-hover devices: identical treatment, driven by JS
   (scroll-position activation + tap) instead of :hover — see
   research-gsap.js */
.rd-principle-item.is-active { background: rgba(49, 157, 207, 0.035); }
.rd-principle-item.is-active::before { opacity: 1; }

.rd-principle-label {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 0.97rem;
  color: var(--rd-primary);
  margin-bottom: 7px;
}

.rd-principle-body {
  font-size: 0.9rem;
  color: var(--rd-muted);
  line-height: 1.74;
}

/* ===== RESEARCH FOCUS AREAS ===== */
.rd-focus-areas { background: var(--rd-bg); }

.rd-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Focus card — premium card with top accent on hover */
.rd-focus-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(23, 63, 100, 0.10);
  border-radius: var(--rd-radius);
  padding: 2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
  transition: transform 0.30s ease, box-shadow 0.30s ease, border-color 0.30s ease;
}

/* Top accent bar */
.rd-focus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rd-primary-light) 0%, rgba(49, 157, 207, 0.25) 100%);
  opacity: 0;
  transition: opacity 0.30s ease;
}

.rd-focus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(23, 63, 100, 0.12);
  border-color: rgba(23, 63, 100, 0.18);
}
.rd-focus-card:hover::before { opacity: 1; }

.rd-focus-num {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  color: rgba(49, 157, 207, 0.16);
  line-height: 1;
  margin-bottom: 0.1rem;
}

/* Domain icon — tinted container */
.rd-focus-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  flex-shrink: 0;
  transition: transform 0.28s ease, filter 0.28s ease;
}
.rd-focus-card:hover .rd-focus-icon-wrap {
  transform: scale(1.12);
}

/* Per-card tinted backgrounds and icon colors */
.rd-focus-card:nth-child(1) .rd-focus-icon-wrap {
  background: rgba(49, 157, 207, 0.10);
  color: #319dcf;
  filter: drop-shadow(0 0 8px rgba(49, 157, 207, 0.35));
}
.rd-focus-card:nth-child(2) .rd-focus-icon-wrap {
  background: rgba(77, 127, 214, 0.10);
  color: #4d7fd6;
  filter: drop-shadow(0 0 8px rgba(77, 127, 214, 0.35));
}
.rd-focus-card:nth-child(3) .rd-focus-icon-wrap {
  background: rgba(5, 150, 105, 0.10);
  color: #059669;
  filter: drop-shadow(0 0 8px rgba(5, 150, 105, 0.35));
}
.rd-focus-card:nth-child(4) .rd-focus-icon-wrap {
  background: rgba(124, 58, 237, 0.10);
  color: #7c3aed;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.35));
}
.rd-focus-card:nth-child(5) .rd-focus-icon-wrap {
  background: rgba(217, 119, 6, 0.10);
  color: #d97706;
  filter: drop-shadow(0 0 8px rgba(217, 119, 6, 0.35));
}

/* Per-card num tints */
.rd-focus-card:nth-child(1) .rd-focus-num { color: rgba(49, 157, 207, 0.22); }
.rd-focus-card:nth-child(2) .rd-focus-num { color: rgba(77, 127, 214, 0.22); }
.rd-focus-card:nth-child(3) .rd-focus-num { color: rgba(5, 150, 105, 0.22); }
.rd-focus-card:nth-child(4) .rd-focus-num { color: rgba(124, 58, 237, 0.22); }
.rd-focus-card:nth-child(5) .rd-focus-num { color: rgba(217, 119, 6, 0.22); }

/* Per-card accent bars */
.rd-focus-card:nth-child(1)::before { background: linear-gradient(90deg, #319dcf 0%, rgba(49,157,207,0.15) 100%); opacity: 0.32; }
.rd-focus-card:nth-child(2)::before { background: linear-gradient(90deg, #4d7fd6 0%, rgba(77,127,214,0.15) 100%); opacity: 0.32; }
.rd-focus-card:nth-child(3)::before { background: linear-gradient(90deg, #059669 0%, rgba(5,150,105,0.15) 100%); opacity: 0.32; }
.rd-focus-card:nth-child(4)::before { background: linear-gradient(90deg, #7c3aed 0%, rgba(124,58,237,0.15) 100%); opacity: 0.32; }
.rd-focus-card:nth-child(5)::before { background: linear-gradient(90deg, #d97706 0%, rgba(217,119,6,0.15) 100%); opacity: 0.32; }

.rd-focus-card:nth-child(1):hover::before,
.rd-focus-card:nth-child(2):hover::before,
.rd-focus-card:nth-child(3):hover::before,
.rd-focus-card:nth-child(4):hover::before,
.rd-focus-card:nth-child(5):hover::before { opacity: 1; }

/* Card 05 solo — center in 2-col grid */
.rd-focus-card--solo {
  grid-column: 1 / -1;
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}

.rd-focus-card h3 {
  font-family: 'Lato', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--rd-primary);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.rd-focus-card p {
  font-size: 0.9rem;
  color: var(--rd-muted);
  line-height: 1.74;
}

/* ===== PROTOTYPE TO PRODUCT PIPELINE ===== */
.rd-pipeline { background: #fff; }

.rd-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 20px;
  position: relative;
}

/* Horizontal connector rail — desktop only */
.rd-timeline::before {
  content: '';
  position: absolute;
  top: 23px; /* center of 48px marker */
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--rd-primary-light) 0%,
    rgba(49, 157, 207, 0.40) 50%,
    rgba(49, 157, 207, 0.15) 100%
  );
  z-index: 0;
}

/* GSAP-injected fill rail glow */
.rd-timeline .rd-rail-fill {
  filter: drop-shadow(0 0 4px rgba(49, 157, 207, 0.7));
}

.rd-timeline-step {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-right: 12px;
  border-top: none;
}

.rd-timeline-marker {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--rd-primary-light);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(49, 157, 207, 0.09), 0 3px 10px rgba(23, 63, 100, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.rd-timeline-num {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--rd-primary-light);
}

/* Step 1 active state */
.rd-step-active .rd-timeline-marker {
  border-color: #319dcf;
  background: rgba(49, 157, 207, 0.08);
  box-shadow: 0 0 0 5px rgba(49, 157, 207, 0.12), 0 0 0 10px rgba(49, 157, 207, 0.05), 0 3px 10px rgba(23, 63, 100, 0.10);
  animation: rd-marker-pulse 2.5s ease-in-out infinite;
}

@keyframes rd-marker-pulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(49, 157, 207, 0.10), 0 0 0 8px rgba(49, 157, 207, 0.04), 0 3px 10px rgba(23, 63, 100, 0.10);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(49, 157, 207, 0.18), 0 0 0 12px rgba(49, 157, 207, 0.07), 0 3px 10px rgba(23, 63, 100, 0.10);
  }
}

.rd-timeline-body h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--rd-primary);
  margin-bottom: 10px;
}

.rd-timeline-body p {
  font-size: 0.875rem;
  color: var(--rd-muted);
  line-height: 1.70;
}

/* ===== CURRENT EXPLORATION AREAS ===== */
.rd-exploration { background: var(--rd-bg); }

/* Individual record cards */
.rd-exploration-rows {
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rd-exploration-row {
  position: relative;
  background: #fff;
  border: 1px solid rgba(23, 63, 100, 0.10);
  border-radius: var(--rd-radius);
  padding: 48px 36px 28px 32px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  overflow: hidden;
  transition: transform 0.30s ease, box-shadow 0.30s ease, border-color 0.30s ease;
}

/* Left accent bar */
.rd-exploration-row::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 3px;
  background: var(--rd-primary-light);
  border-radius: 0 2px 2px 0;
  opacity: 0.32;
  transition: opacity 0.30s ease;
}

/* Pulsing scan dot — left edge */
.rd-exploration-row::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rd-primary-light);
  opacity: 0.5;
  animation: rd-dot-pulse 3s ease-in-out infinite;
}

@keyframes rd-dot-pulse {
  0%, 100% { opacity: 0.35; transform: translateY(-50%) scale(1); }
  50%       { opacity: 0.75; transform: translateY(-50%) scale(1.4); }
}

.rd-exploration-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(23, 63, 100, 0.10);
  border-color: rgba(23, 63, 100, 0.18);
}
.rd-exploration-row:hover::before { opacity: 1; }

/* Alternating background on cards */
.rd-exploration-row--alt { background: rgba(248, 250, 252, 0.70); }

/* Row tag: RD-01 monospace corner label */
.rd-row-tag {
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: rgba(49, 157, 207, 0.35);
  text-transform: uppercase;
}

/* Status chip */
.rd-row-status {
  position: absolute;
  top: 12px;
  left: 32px;
  font-family: 'Courier New', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
}
.rd-status--active  { color: rgba(16, 185, 129, 0.8); border-color: rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.06); }
.rd-status--review  { color: rgba(49, 157, 207, 0.8); border-color: rgba(49, 157, 207, 0.25); background: rgba(49, 157, 207, 0.06); }
.rd-status--proto   { color: rgba(217, 119, 6, 0.8);  border-color: rgba(217, 119, 6, 0.25);  background: rgba(217, 119, 6, 0.06); }
.rd-status--study   { color: rgba(124, 58, 237, 0.8); border-color: rgba(124, 58, 237, 0.25); background: rgba(124, 58, 237, 0.06); }

.rd-exploration-label {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rd-exploration-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(49, 157, 207, 0.08);
  color: var(--rd-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(49, 157, 207, 0.22));
}

.rd-exploration-label h3 {
  font-family: 'Lato', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--rd-primary);
  line-height: 1.3;
}

.rd-exploration-body {
  font-size: 0.93rem;
  color: var(--rd-muted);
  line-height: 1.78;
  padding-top: 4px;
}

/* ===== FINAL CTA ===== */
.rd-cta-section {
  background: var(--rd-bg);
  padding: 80px 0;
}

.rd-cta-card {
  background: var(--rd-secondary);
  border-radius: 20px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Ambient radial glow */
.rd-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 75% at 50% 55%, rgba(49, 157, 207, 0.13) 0%, transparent 65%),
    radial-gradient(ellipse 40% 42% at 18% 85%, rgba(23, 63, 100, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 82% 18%, rgba(49, 157, 207, 0.06) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* Content above the glow */
.rd-cta-inner {
  position: relative;
  z-index: 1;
}

.rd-cta-card h2 {
  font-family: 'Lato', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #f1f5fa;
  margin-bottom: 0.85rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.rd-cta-card p {
  font-size: 1.05rem;
  color: rgba(241, 245, 250, 0.82);
  max-width: 480px;
  margin: 0 auto 2.2rem;
  line-height: 1.74;
}

.rd-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
  .rd-br { display: inline; }
}

/* Tablet: pipeline vertical left rail — replaces weak border-top per step */
@media (max-width: 1024px) {
  .rd-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 52px;
    position: relative;
  }
  /* Hide static horizontal rail pseudo */
  .rd-timeline::before { display: none; }

  /* Vertical left rail */
  .rd-timeline::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: linear-gradient(180deg, #319dcf 0%, rgba(49, 157, 207, 0.20) 100%);
    z-index: 0;
  }

  /* GSAP-injected vertical fill rail — scaleY progress version of the
     desktop scaleX .rd-rail-fill, positioned to match ::after exactly */
  .rd-timeline .rd-rail-fill--v {
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 2px;
    background: #319dcf;
    transform-origin: top;
    transform: scaleY(0);
    z-index: 0;
    pointer-events: none;
  }

  .rd-timeline-step {
    border-top: none;
    padding-top: 0;
    padding-bottom: 28px;
    position: relative;
    padding-left: 0;
  }
  .rd-timeline-step:last-child { padding-bottom: 0; }

  .rd-timeline-marker {
    position: absolute;
    left: -52px;
    top: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 992px) {
  .rd-philosophy-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .rd-exploration-row {
    grid-template-columns: 200px 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section,
  .rd-cta-section { padding: 60px 0; }

  .rd-hero {
    min-height: 78vh;
    padding: 100px 0 72px;
  }

  /* Focus cards: single column */
  .rd-focus-grid { grid-template-columns: 1fr; }

  /* On mobile the solo card is full width anyway */
  .rd-focus-card--solo { max-width: 100%; }

  .rd-timeline {
    padding-left: 48px;
  }

  .rd-timeline-marker {
    left: -48px;
  }

  .rd-exploration-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 48px 24px 24px 28px;
  }
}

@media (max-width: 540px) {
  .rd-timeline {
    padding-left: 44px;
  }
  /* Rail left must match center of the 40px marker: 0px offset + 40/2 = 20px */
  .rd-timeline::after { left: 20px; }
  .rd-timeline .rd-rail-fill--v { left: 20px; }
  .rd-timeline-marker {
    left: -44px;
    width: 40px;
    height: 40px;
  }

  .rd-hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }
  .rd-hero-btns .btn {
    width: 100%;
    justify-content: center;
  }

  .rd-cta-btns { flex-direction: column; align-items: center; }
  .rd-cta-btns .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* Small device breakpoints */
@media (max-width: 430px) {
  .rd-hero { min-height: 85vh; padding: 96px 0 64px; }
  .rd-hero h1 { font-size: clamp(2.0rem, 10vw, 2.8rem); }
  .rd-hero-sub { font-size: 0.95rem; }
  .section, .rd-cta-section { padding: 52px 0; }
  .rd-focus-card { padding: 1.5rem 1.5rem 1.4rem; }
  .rd-focus-card--solo { max-width: 100%; }
  .rd-timeline { padding-left: 44px; }
  .rd-timeline-marker { width: 40px; height: 40px; left: -44px; }
  .rd-exploration-row { padding: 36px 16px 24px 24px; }
}

@media (max-width: 390px) {
  .rd-hero h1 { font-size: clamp(1.9rem, 10vw, 2.6rem); }
  .section, .rd-cta-section { padding: 44px 0; }
  .rd-focus-card { padding: 1.25rem 1.25rem 1.2rem; }
}

@media (max-width: 360px) {
  .rd-hero h1 { font-size: clamp(1.8rem, 10vw, 2.4rem); letter-spacing: -0.03em; }
  .rd-hero-sub { font-size: 0.9rem; }
  .section, .rd-cta-section { padding: 40px 0; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .rd-focus-card,
  .rd-exploration-row,
  .rd-principle-item {
    transition: none;
  }
  .btn:hover,
  .rd-focus-card:hover,
  .rd-exploration-row:hover {
    transform: none;
    box-shadow: none;
  }
  .rd-principle-item:hover { background: none; }
  .rd-philosophy-visual-wrap::after { display: none; }

  /* Disable all CSS animations added in this upgrade */
  .rd-hero::after { animation: none; opacity: 0; }
  .rd-timeline-marker,
  .rd-step-active .rd-timeline-marker { animation: none; }
  .rd-exploration-row::after { animation: none; }
  .rd-focus-icon-wrap { transition: none; filter: none; }
}

.site-footer a { color: #d4e8ff; text-decoration: none; }

/* ===== [POLISH PASS v12] Focus cards — resting depth + touch guard ===== */

/* Resting shadow — lifts cards off the bg-light section background */
.rd-focus-card {
  box-shadow:
    0 2px 14px rgba(23, 63, 100, 0.07),
    0 1px 3px  rgba(23, 63, 100, 0.04);
}

/* Suppress lift on touch devices (pointer: coarse covers most mobiles) */
@media (hover: none) {
  .rd-focus-card:hover {
    transform: none;
    box-shadow:
      0 2px 14px rgba(23, 63, 100, 0.07),
      0 1px 3px  rgba(23, 63, 100, 0.04);
    border-color: rgba(23, 63, 100, 0.10);
  }
}
