:root {
  /* Chrome that used to be tinted. Colour is reserved for the hero, the CTA and
     anything that actually encodes data; everything else reads in ink. */
  --chrome: #1c1c1c;
  --chrome-soft: rgb(0 0 0 / 14%);
  --chrome-fill: rgb(0 0 0 / 5%);
}

/* Rivo case study.
   The layout follows the Vera detail page: same container, same section rhythm,
   same card treatment (1px border-soft, radius-lg, #fafafa) and the same
   breakpoints. One accent carries the whole page, the site's own: anything that
   needs to sit back from it uses the same hue at a lower opacity rather than a
   second colour. Rivo's brand hexes still appear, but only inside the palette
   section, where they are the subject. */

:root {
  /* The one site accent, as on every other detail page. */
  --rv-accent: var(--mint);
  --rv-ink: #1e1e1e;
  --rv-surface: #323232;
  --rv-paper: #fafafa;
}

/* ---------- Hero ---------- */

.rv-hero {
  min-height: min(820px, 100vh);
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  text-align: center;
  background: var(--bg-dark);
}

.rv-eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  color: var(--rv-accent);
  font-family: var(--font-hand);
  font-size: var(--text-l);
  font-weight: 700;
  transform: rotate(-3deg);
}

.rv-title {
  margin: 0 0 24px;
  color: var(--text-dark-1);
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: var(--fw-semibold);
  letter-spacing: -.04em;
  line-height: .92;
}

.rv-desc {
  max-width: 1000px;
  margin: 0 auto;
  color: var(--text-dark-2);
  font-size: var(--text-m);
  line-height: 1.5;
}

.rv-hero-shot {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: clamp(36px, 5vw, 56px) auto 0;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgb(0 0 0 / 50%);
}

/* ---------- Shared copy blocks ---------- */

.rv-lede {
  max-width: 900px;
  margin: 0 0 44px;
  color: var(--text-light-2);
  font-size: var(--text-m);
  line-height: 1.65;
}

.rv-prose {
  display: grid;
  gap: 22px;
  max-width: 900px;
  margin: 0 0 44px;
}

.rv-prose p {
  margin: 0;
  color: var(--text-light-2);
  font-size: var(--text-m);
  line-height: 1.7;
}

.rv-prose--wide {
  max-width: 1000px;
}

.rv-closing {
  max-width: 900px;
  margin: 40px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--chrome);
  color: var(--text-light-1);
  font-size: var(--text-m);
  line-height: 1.65;
}

.rv-subhead {
  max-width: 900px;
  margin: 56px 0 22px;
  color: var(--text-light-1);
  font-family: var(--font-display);
  font-size: var(--h5);
  font-weight: var(--fw-semibold);
  letter-spacing: -.02em;
  line-height: 1.25;
}

/* ---------- Project meta ---------- */

.rv-meta {
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr .6fr;
  margin: 56px 0 0;
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.rv-meta div {
  padding: 0 24px;
  border-right: 1px solid var(--border-soft);
}

.rv-meta div:first-child { padding-left: 0; }

.rv-meta div:last-child {
  padding-right: 0;
  border-right: 0;
}

.rv-meta dt {
  margin-bottom: 7px;
  color: var(--text-light-2);
  font-size: var(--text-s);
  font-weight: 600;
}

.rv-meta dd {
  margin: 0;
  color: var(--text-light-1);
  font-size: var(--text-r);
  font-weight: 700;
  line-height: 1.45;
}

/* ---------- Numbered list (problems, goals, principles) ---------- */

.rv-numlist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rv-num;
}

.rv-numlist li {
  display: grid;
  align-items: center;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--rv-paper);
  color: var(--text-light-1);
  counter-increment: rv-num;
  font-size: var(--text-m);
  line-height: 1.6;
}

.rv-numlist li::before {
  content: counter(rv-num, decimal-leading-zero);
  color: var(--chrome);
  font-size: var(--text-s);
  font-weight: 800;
  letter-spacing: .08em;
}

/* ---------- Note ---------- */

.rv-note {
  display: grid;
  align-items: start;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin: 40px 0 0;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--chrome-soft);
  border-radius: var(--radius-lg);
  background: #fafafa;
}

.rv-note-label {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--chrome);
  color: #fff;
  font-size: var(--text-t);
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rv-note p {
  margin: 0;
  color: var(--text-light-1);
  font-size: var(--text-m);
  line-height: 1.6;
}

/* ---------- Method chips ---------- */

.rv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-chips li {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--chrome-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--text-light-1);
  font-size: var(--text-s);
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Card grids ---------- */

.rv-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.rv-cards--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rv-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rv-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--rv-paper);
}

.rv-card-index {
  display: block;
  margin-bottom: 14px;
  color: var(--accent, var(--chrome));
  font-size: var(--text-t);
  font-weight: 800;
  letter-spacing: .1em;
}

.rv-card h3 {
  margin: 0 0 14px;
  color: var(--text-light-1);
  font-size: var(--text-l);
  line-height: 1.35;
}

.rv-card p {
  margin: 0;
  color: var(--text-light-2);
  font-size: var(--text-r);
  line-height: 1.65;
}

.rv-card--rule {
  padding-top: 24px;
  border-top: 4px solid var(--accent, var(--chrome));
}

/* ---------- Bullet list ---------- */

.rv-bullets {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 900px;
}

.rv-bullets li {
  position: relative;
  padding-left: 20px;
  color: var(--text-light-2);
  font-size: var(--text-m);
  line-height: 1.6;
}

.rv-bullets li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chrome);
}

/* ---------- Persona ---------- */

.rv-persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.rv-persona {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--rv-paper);
}

.rv-persona-head {
  display: grid;
  align-items: center;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.rv-persona-portrait {
  width: 116px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}

.rv-persona-index {
  display: block;
  margin-bottom: 6px;
  color: var(--text-light-2);
  font-size: var(--text-t);
  font-weight: 800;
  letter-spacing: .12em;
}

.rv-persona-name {
  margin: 0;
  color: var(--text-light-1);
  font-family: var(--font-display);
  font-size: var(--h4);
  font-weight: var(--fw-semibold);
  letter-spacing: -.02em;
  line-height: 1;
}

/* The two cards sit side by side, so the rows inside them are held to a common
   height. Turkish runs longer than English, hence the room to spare. */
.rv-persona-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--chrome-soft);
  border-radius: 16px;
  background: #fff;
  color: var(--text-light-1);
  font-size: var(--text-r);
  font-style: italic;
  line-height: 1.6;
}

.rv-persona-quote p {
  margin: 0;
}

.rv-persona-quote footer {
  margin-top: 10px;
  color: var(--text-light-2);
  font-size: var(--text-t);
  font-style: normal;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.rv-persona-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}

.rv-persona-meta div {
  padding: 10px 16px;
  border-left: 1px solid var(--border-soft);
}

.rv-persona-meta div:nth-child(odd) {
  padding-left: 0;
  border-left: 0;
}

.rv-persona-meta dt {
  margin-bottom: 5px;
  color: var(--text-light-2);
  font-size: var(--text-t);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rv-persona-meta dd {
  margin: 0;
  color: var(--text-light-1);
  font-size: var(--text-s);
  font-weight: 700;
  line-height: 1.35;
}

.rv-persona h4 {
  margin: 0 0 12px;
  color: var(--text-light-1);
  font-size: var(--text-r);
  line-height: 1.4;
}

.rv-persona-block {
  min-height: 190px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-soft);
}

.rv-persona-block p {
  margin: 0;
  color: var(--text-light-2);
  font-size: var(--text-s);
  line-height: 1.7;
}

.rv-persona-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 24px;
}

.rv-persona-cols ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-persona-cols li {
  position: relative;
  padding-left: 15px;
  color: var(--text-light-2);
  font-size: var(--text-s);
  line-height: 1.6;
}

.rv-persona-cols li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--chrome);
}

/* Side by side, a two line job title in one card must not push its rows out of
   step with the other. Only needed while the cards share a row. */
@media (min-width: 901px) {
  .rv-persona-meta dd {
    min-height: 38px;
  }
}

/* ---------- User journey ---------- */

.rv-journey-scroll {
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: #b8c0c8 transparent;
}

.rv-journey {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-width: 1096px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--rv-paper);
}

.rv-journey-col {
  min-height: 330px;
  padding: 24px 18px;
  border-right: 1px solid var(--border-soft);
}

.rv-journey-col:last-of-type { border-right: 0; }

.rv-journey-step {
  display: block;
  margin-bottom: 10px;
  color: var(--chrome);
  font-size: var(--text-t);
  font-weight: 800;
  letter-spacing: .1em;
}

.rv-journey-col h3 {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-light-1);
  font-size: var(--text-m);
  line-height: 1.35;
}

.rv-journey-col dl {
  margin: 0;
}

.rv-journey-col dt {
  margin-bottom: 6px;
  color: var(--text-light-2);
  font-size: var(--text-t);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rv-journey-col dd {
  margin: 0 0 16px;
  color: var(--text-light-1);
  font-size: var(--text-s);
  line-height: 1.55;
}

.rv-journey-col dd:last-child { margin-bottom: 0; }

/* ---------- Information architecture ---------- */

.rv-ia-breakout {
  width: min(1520px, calc(100vw - 40px));
  margin-inline: 50%;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #fafafa;
  scrollbar-color: #aebdca transparent;
  scrollbar-width: thin;
  transform: translateX(-50%);
}

.rv-ia-canvas {
  position: relative;
  width: 100%;
  min-width: 1360px;
  height: 760px;
}

.rv-ia-connectors {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.rv-ia-connectors path {
  fill: none;
  stroke: var(--chrome);
  stroke-width: 1.5;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: url(#rv-ia-arrow);
}

.rv-ia-connectors path.rv-ia-spine { marker-end: none; }

.rv-ia-connectors marker path {
  fill: var(--chrome);
  stroke: none;
}

.rv-ia-node {
  position: absolute;
  z-index: 2;
  top: var(--y);
  left: var(--x);
  display: grid;
  place-items: center;
  width: var(--w, 150px);
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--chrome-soft);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px rgb(12 60 82 / 7%);
  color: var(--text-light-1);
  font-size: var(--text-t);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  transform: translateX(-50%);
}

.rv-ia-node--main {
  border-color: transparent;
  background: var(--chrome);
  box-shadow: 0 7px 16px rgb(20 120 165 / 16%);
  color: #fff;
  font-size: var(--text-t);
}

.rv-ia-node--root {
  background: var(--rv-ink);
  font-family: var(--font-display);
  font-size: var(--text-r);
  letter-spacing: .04em;
}

/* ---------- Primary flow ---------- */

.rv-flow-scroll {
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #b8c0c8 transparent;
}

.rv-flow {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 860px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--rv-paper);
}

.rv-flow-step {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid var(--chrome-soft);
  border-radius: 12px;
  background: #fff;
  color: var(--text-light-1);
  font-size: var(--text-s);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.rv-flow-step:first-child,
.rv-flow-step:last-child {
  border-color: transparent;
  background: var(--chrome);
  color: #fff;
}

.rv-flow-arrow {
  flex: none;
  color: var(--chrome);
  font-size: var(--text-m);
  font-weight: 800;
}

/* ---------- Visual direction ---------- */

.rv-swatches {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.rv-swatch {
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: #fff;
}

.rv-swatch-chip {
  height: 110px;
  background: linear-gradient(135deg, var(--c1), var(--c2, var(--c1)));
}

.rv-swatch-body {
  padding: 18px 20px 20px;
}

.rv-swatch-body h3 {
  margin: 0 0 8px;
  color: var(--text-light-1);
  font-size: var(--text-r);
  line-height: 1.4;
}

.rv-swatch-body p {
  margin: 0 0 10px;
  color: var(--text-light-2);
  font-size: var(--text-s);
  line-height: 1.6;
}

.rv-swatch-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-swatch-codes li {
  padding: 4px 9px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-light-2);
  font-size: var(--text-t);
  font-weight: 700;
  letter-spacing: .03em;
}

.rv-surfaces {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 44px;
}

.rv-surface {
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--c, var(--rv-ink));
}

.rv-surface b {
  color: #fafafa;
  font-size: var(--text-s);
}

.rv-surface span {
  color: rgb(250 250 250 / 62%);
  font-size: var(--text-t);
  font-weight: 700;
  letter-spacing: .04em;
}

.rv-surface--light {
  background: #fff;
}

.rv-surface--light b { color: var(--text-light-1); }

.rv-surface--light span { color: var(--text-light-2); }

/* ---------- Screen blocks ---------- */

.rv-shot + .rv-shot,
.rv-shot + .rv-shot-row,
.rv-shot-row + .rv-shot {
  padding-top: clamp(40px, 4.5vw, 64px);
  border-top: 1px solid var(--border-soft);
}

.rv-shot {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(40px, 4.5vw, 64px);
}

.rv-shot--reverse .rv-shot-copy { order: 2; }

.rv-shot-copy h3 {
  margin: 0 0 18px;
  color: var(--text-light-1);
  font-family: var(--font-display);
  font-size: var(--h5);
  font-weight: var(--fw-semibold);
  letter-spacing: -.02em;
  line-height: 1.2;
}

.rv-shot-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--text-light-2);
  font-size: var(--text-m);
  line-height: 1.7;
}

.rv-shot-media {
  display: grid;
  justify-items: center;
  margin: 0;
}

.rv-shot-media img {
  display: block;
  width: 100%;
  max-width: 330px;
  height: auto;
}

.rv-shot-media figcaption {
  max-width: 340px;
  margin-top: 18px;
  color: var(--text-light-2);
  font-size: var(--text-s);
  line-height: 1.55;
  text-align: center;
}

.rv-shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
  margin-top: clamp(40px, 4.5vw, 64px);
}

.rv-shot-row .rv-shot-media img { max-width: 320px; }

/* ---------- Outcomes ---------- */

.rv-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.rv-outcome {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--rv-paper);
}

.rv-outcome span {
  color: var(--chrome);
  font-size: var(--text-t);
  font-weight: 800;
  letter-spacing: .1em;
}

.rv-outcome p {
  margin: 0;
  color: var(--text-light-1);
  font-size: var(--text-r);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .rv-cards,
  .rv-cards--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rv-swatches,
  .rv-surfaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rv-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rv-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 0;
  }

  .rv-meta div:nth-child(3n) {
    padding-right: 0;
    border-right: 0;
  }

  .rv-meta div:nth-child(3n+1) { padding-left: 0; }
}

@media (max-width: 900px) {
  .rv-persona-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rv-persona-quote,
  .rv-persona-block {
    min-height: 0;
  }

  .rv-shot-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .rv-shot-row .rv-shot-media img { max-width: 320px; }
}

@media (max-width: 860px) {
  .rv-shot,
  .rv-shot--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .rv-shot--reverse .rv-shot-copy { order: 0; }

  .rv-shot-media img { max-width: 300px; }
}

@media (max-width: 700px) {
  .rv-cards,
  .rv-cards--two,
  .rv-cards--four,
  .rv-swatches,
  .rv-surfaces,
  .rv-outcomes,
  .rv-persona-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .rv-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rv-meta div {
    padding: 0 18px;
  }

  .rv-meta div:nth-child(odd) {
    padding-left: 0;
  }

  .rv-meta div:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .rv-hero {
    min-height: 680px;
    padding: 120px 0 80px;
  }

  .rv-lede,
  .rv-prose p {
    font-size: var(--text-m);
  }

  .rv-numlist li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 20px;
    font-size: var(--text-r);
  }

  .rv-note {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 14px;
  }

  .rv-persona-head {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
  }

  .rv-persona-portrait {
    width: 96px;
  }

  .rv-persona-name {
    font-size: var(--h5);
  }
}
