/* Azul Forward — Research & Experience Strategy
   Loaded after styles.css, case-study.css and brand-systems.css. A
   cross-project capability page: text-only opening, then four sections with
   deliberately unequal weight — Reframe compact, Connect expansive, Decide
   featured, Learn light — and a short close. One accent marks the section
   numbers: the Strategy & Systems blue from the Capabilities page. */

:root {
  --rs-accent: #2948d7;
  --bvs-accent: var(--rs-accent);
}

/* ── OPENING — text only ────────────────────────────────────────────────── */
.rs-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--ink);
  margin: -0.5rem 0 var(--space-xl);
}
.rs-intro .cs-lead + .cs-lead { margin-top: 1.25rem; }
.rs-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-xl);
}
.rs-tags li {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* ── SECTIONS ───────────────────────────────────────────────────────────── */
.rs-section .cs-marker-n { color: var(--rs-accent); }
.rs-head { max-width: var(--cs-measure); margin-bottom: var(--space-xl); }
.rs-head .cs-h2 { margin-bottom: var(--space-md); }

/* Detailed diagrams may run wider than the reading column, never past the
   viewport: centred on the column, up to 1240px. */
.rs-wide {
  --rs-w: min(1240px, calc(100vw - 3rem));
  width: var(--rs-w);
  margin-left: calc((100% - var(--rs-w)) / 2);
}

/* Captions name the project, then say what the artifact did. */
.rs-cap { display: block; margin-top: 0.85rem; max-width: var(--cs-measure); }
.rs-cap-project {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.rs-cap-text {
  display: block;
  margin-top: 0.3rem;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}
.rs-cap-note {
  display: block;
  margin-top: 0.4rem;
  font-size: 16px;
  font-style: italic;
  line-height: 1.55;
  color: var(--sub);
}
.rs-cap .bvs-cap-hint { display: inline-block; margin-top: 0.45rem; font-size: 16px; }
.rs-tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

/* Paired supporting images share one ratio so captions start level. */
.rs-frame--pair { aspect-ratio: 5 / 4; flex: none; }

/* ── 02 · CONNECT ───────────────────────────────────────────────────────── */
.rs-connect-stack { display: grid; gap: var(--space-2xl); }

/* ── 03 · DECIDE — featured ─────────────────────────────────────────────── */
/* Emphasis from scale and space only: a heavier rule, a larger heading, more
   room around the primary artifact. */
.rs-featured { padding-top: calc(var(--cs-gap-section) * 1.25); }
.rs-featured .cs-marker { border-top-width: 2px; }
.rs-featured .cs-h2 { font-size: clamp(30px, 4vw, 44px); max-width: 20ch; }
.rs-progress {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  margin: 0 0 var(--space-xl);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}
.rs-progress li + li::before {
  content: "→";
  margin-right: 0.9rem;
  font-weight: 400;
  color: var(--rs-accent);
}
.rs-primary { margin-bottom: var(--space-2xl); }

/* ── 04 · LEARN — lighter ───────────────────────────────────────────────── */
.rs-learn {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--space-lg) 1.5rem;
  align-items: start;
}
.rs-learn-side { display: grid; gap: var(--space-lg); }

/* ── CLOSE ──────────────────────────────────────────────────────────────── */
.rs-closing {
  margin-top: var(--cs-gap-section);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--ink);
}
.rs-closing .cs-h2 { margin-bottom: var(--space-md); }
.rs-closing .cs-body { font-size: clamp(19px, 2vw, 22px); }
.rs-more { margin-top: var(--space-2xl); margin-bottom: var(--cs-gap-section); }
.rs-more-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-md);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rs-learn { grid-template-columns: 1fr; }
  .rs-frame--pair { aspect-ratio: auto; }
  .rs-frame--pair img { height: auto; }
  .rs-wide { width: 100%; margin-left: 0; }
}
