/* ─────────────────────────────────────────────────────────
   RESEARCH LIFECYCLE — editorial methodology page
   A different feel from service pages: text-forward,
   light, editorial, whitepaper aesthetic.
   ───────────────────────────────────────────────────────── */

/* ─── Page header ─── */
.rl-header {
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(56px, 8vw, 80px);
}
.rl-header .container {
  max-width: 780px;
}
.rl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.rl-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.rl-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw + 1rem, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.rl-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.rl-lead {
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(1.05rem, 0.6vw + 0.85rem, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 64ch;
}
.rl-lead em {
  font-family: var(--font-serif);
  color: var(--ink);
}

/* ─── Section primitives ─── */
.rl-section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--rule);
}
.rl-section .container {
  max-width: 780px;
}
.rl-section--wide .container {
  max-width: 1060px;
}
.rl-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.rl-section h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 2vw + 0.6rem, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rl-section h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.rl-body {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 64ch;
}
.rl-body p + p {
  margin-top: 1.2em;
}

/* ─── 6-Phase Timeline — visual centerpiece ─── */
.rl-timeline {
  margin-top: clamp(40px, 6vw, 64px);
  position: relative;
}
/* Vertical connecting line */
.rl-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 27px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--rule) 90%, transparent);
}

.rl-phase {
  position: relative;
  padding-left: 80px;
  padding-bottom: clamp(48px, 6vw, 72px);
}
.rl-phase:last-child {
  padding-bottom: 0;
}

/* Phase number circle */
.rl-phase__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  z-index: 1;
  transition: background 300ms var(--ease-out-strong), color 300ms var(--ease-out-strong);
}
.rl-phase:hover .rl-phase__num {
  background: var(--accent);
  color: var(--paper);
}

.rl-phase__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.15rem, 1vw + 0.7rem, 1.35rem);
  color: var(--ink);
  line-height: 1.3;
}
.rl-phase__tagline {
  display: block;
  margin-top: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 0.5vw + 0.75rem, 1.05rem);
  color: var(--ink-mute);
  line-height: 1.4;
}
.rl-phase__body {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 58ch;
}
.rl-phase__body p + p {
  margin-top: 1em;
}

/* Artifacts list */
.rl-artifacts {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--paper-deeper);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
}
.rl-artifacts__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.rl-artifacts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rl-artifacts li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.rl-artifacts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* ─── Principles grid ─── */
.rl-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 36px) clamp(32px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 48px);
}
.rl-principle {
  padding-left: 20px;
  border-left: 2px solid var(--rule);
  transition: border-color 300ms var(--ease-out-strong);
}
.rl-principle:hover {
  border-left-color: var(--accent);
}
.rl-principle__num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.rl-principle h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.rl-principle p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ─── Adaptation table ─── */
.rl-table-wrap {
  margin-top: clamp(28px, 4vw, 40px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}
.rl-table thead {
  position: sticky;
  top: 0;
}
.rl-table th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  font-weight: 700;
  background: var(--paper-deeper);
  border-bottom: 2px solid var(--rule);
  white-space: nowrap;
}
.rl-table td {
  padding: 12px 16px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.rl-table td:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
/* Depth indicators */
.depth-deep {
  color: var(--accent);
  font-weight: 600;
}
.depth-medium {
  color: var(--ink-soft);
}
.depth-light {
  color: var(--ink-mute);
}

/* ─── Comparison rows ─── */
.rl-comparisons {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(32px, 4vw, 48px);
}
.rl-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--rule);
  overflow: hidden;
}
.rl-compare__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.rl-compare__typical {
  padding: clamp(20px, 3vw, 28px);
  background: var(--paper-deeper);
}
.rl-compare__typical .rl-compare__label {
  color: var(--ink-mute);
}
.rl-compare__typical p {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.55;
}
.rl-compare__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: var(--rule);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.rl-compare__rubikn {
  padding: clamp(20px, 3vw, 28px);
  background: var(--paper);
  border-left: 3px solid var(--accent);
}
.rl-compare__rubikn .rl-compare__label {
  color: var(--accent);
}
.rl-compare__rubikn p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.55;
}
.rl-compare__topic {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 10px;
}

/* ─── Closing ─── */
.rl-closing {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.rl-closing .container {
  max-width: 580px;
}
.rl-closing h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 2vw + 0.6rem, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rl-closing h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.rl-closing p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 20px;
}
.rl-closing-cta {
  margin-top: 32px;
}
.rl-closing-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.rl-closing-links a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 200ms;
}
.rl-closing-links a:hover {
  color: var(--accent);
}

/* ─── Dark mode ─── */
html.dark .rl-phase__num {
  background: oklch(0.12 0.02 260);
  border-color: oklch(0.6 0.18 258);
  color: oklch(0.7 0.15 258);
}
html.dark .rl-phase:hover .rl-phase__num {
  background: oklch(0.46 0.18 258);
  color: oklch(0.98 0 0);
}
html.dark .rl-artifacts {
  background: oklch(0.10 0.02 260);
  border-color: oklch(1 0 0 / 0.08);
  border-left-color: oklch(0.6 0.18 258);
}
html.dark .rl-principle:hover {
  border-left-color: oklch(0.6 0.18 258);
}
html.dark .rl-compare__typical {
  background: oklch(0.10 0.02 260);
}
html.dark .rl-compare__rubikn {
  background: oklch(0.14 0.02 260);
  border-left-color: oklch(0.6 0.18 258);
}
html.dark .rl-compare__vs {
  background: oklch(0.16 0.02 260);
}
html.dark .rl-table th {
  background: oklch(0.12 0.02 260);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .rl-principles {
    grid-template-columns: 1fr;
  }
  .rl-compare {
    grid-template-columns: 1fr;
  }
  .rl-compare__vs {
    width: auto;
    height: 32px;
  }
}
@media (max-width: 600px) {
  .rl-phase {
    padding-left: 64px;
  }
  .rl-phase__num {
    width: 44px;
    height: 44px;
    font-size: 12px;
  }
  .rl-timeline::before {
    left: 21px;
  }
}
