/* Home page only (loaded by index.html). The hero, journey and partners blocks are generated by build-hero.js,
   build-journey.js and build-logos.js in the tools folder: change those, not the text between their markers. */

/* ---------- Homepage: start-here finder ---------- */
.start-section {
  padding: 60px 0 50px;
  background: radial-gradient(circle at 15% 10%, #f6eef6 0%, rgba(246, 238, 246, 0) 45%), #fff;
}

.start-finder {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 22px;
  max-width: 1100px;
  margin: 10px auto 0;
}

.start-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.start-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dl-ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.start-tabs button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--dl-purple-soft);
  color: var(--dl-purple);
  font-size: 20px;
  transition: background 0.2s, color 0.2s;
}

.start-tabs button:hover {
  border-color: var(--dl-purple);
  transform: translateX(4px);
}

.start-tabs button[aria-selected="true"] {
  background: linear-gradient(120deg, var(--dl-purple) 0%, var(--dl-purple-dark) 100%);
  border-color: var(--dl-purple-dark);
  color: #fff;
  box-shadow: 0 12px 28px rgba(125, 52, 128, 0.28);
  transform: translateX(6px);
}

.start-tabs button[aria-selected="true"] i {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.start-tabs button:focus-visible {
  outline: 3px solid var(--dl-purple);
  outline-offset: 3px;
}

.start-panel {
  height: 100%;
  background: var(--dl-ink);
  color: #fff;
  border-radius: 20px;
  padding: 32px 34px;
  box-shadow: 0 22px 50px rgba(48, 61, 78, 0.22);
  animation: about-fade 0.35s ease;
}

.start-panel:focus-visible {
  outline: 3px solid var(--dl-purple);
  outline-offset: 3px;
}

.start-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e3b7e3;
  margin-bottom: 4px;
}

.start-panel h3 {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  margin-bottom: 8px;
}

.start-panel h3 a {
  color: #fff;
  text-decoration: none;
}

.start-panel h3 a i {
  font-size: 0.7em;
  transition: transform 0.2s;
}

.start-panel h3 a:hover i,
.start-panel h3 a:focus-visible i {
  transform: translateX(5px);
}

.start-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #dfe4ea;
  max-width: 620px;
  margin-bottom: 22px;
}

.start-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.start-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 16px 38px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.start-step:hover,
.start-step:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: #e3b7e3;
  color: #fff;
  transform: translateY(-3px);
}

.start-step-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e3b7e3;
}

.start-step strong {
  font-size: 15px;
  line-height: 1.4;
}

.start-step-go {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: #e3b7e3;
  transition: transform 0.2s;
}

.start-step:hover .start-step-go {
  transform: translateX(4px);
}

.start-talk {
  margin: 22px 0 0;
}

.start-talk .tool-btn {
  background: #fff;
  color: var(--dl-purple-dark);
}

.start-talk .tool-btn:hover,
.start-talk .tool-btn:focus-visible {
  background: var(--dl-purple-soft);
  color: var(--dl-purple-dark);
}

@media (prefers-reduced-motion: reduce) {
  .start-panel {
    animation: none;
  }

  .start-tabs button,
  .start-tabs button[aria-selected="true"] {
    transform: none;
  }
}

@media (max-width: 991px) {
  .start-finder {
    grid-template-columns: minmax(0, 1fr);
  }

  .start-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .start-tabs button,
  .start-tabs button:hover,
  .start-tabs button[aria-selected="true"] {
    transform: none;
  }
}

@media (max-width: 767px) {
  .start-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .start-panel {
    padding: 26px 22px;
  }
}

@media (max-width: 575px) {
  .start-tabs {
    grid-template-columns: minmax(0, 1fr);
  }

  .start-tabs button {
    font-size: 15px;
    padding: 10px 14px;
  }

  .start-tabs button i {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
}

/* ---------- Homepage: why DATA LEAGUE ---------- */
.why-section {
  padding: 50px 0 60px;
}

.why-section .about-title {
  font-size: clamp(26px, 3vw, 36px);
}

.why-lead {
  font-size: 17px;
  line-height: 1.65;
  color: #444f5d;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 22px;
  list-style: none;
  padding: 0;
  margin: 20px 0 22px;
}

.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.why-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--dl-purple-soft);
  color: var(--dl-purple);
  font-size: 19px;
}

.why-list strong {
  display: block;
  font-size: 16px;
  color: var(--dl-ink);
  margin-bottom: 2px;
}

.why-list span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dl-muted);
}

.why-industries-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dl-muted);
  margin-bottom: 10px;
}

.why-industries li a {
  padding: 6px 14px;
  font-size: 14px;
}

.why-ctas {
  margin-top: 22px;
}

@media (max-width: 991px) {
  .why-section .about-eyebrow,
  .why-section .about-title,
  .why-lead,
  .why-industries-label {
    text-align: center;
  }

  .why-industries {
    justify-content: center;
  }
}

@media (max-width: 575px) {
  .why-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Homepage: latest insights ---------- */
.insights-section {
  padding: 50px 0 60px;
  background: #fafbfc;
}

.insight-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--dl-line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--dl-ink);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(48, 61, 78, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.insight-card:hover,
.insight-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--dl-purple);
  box-shadow: 0 16px 36px rgba(48, 61, 78, 0.14);
  color: var(--dl-ink);
}

.insight-img {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f4f1f6;
  overflow: hidden;
}

.insight-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: transform 0.4s;
}

.insight-card:hover .insight-img img {
  transform: scale(1.04);
}

.insight-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 20px;
}

.insight-tag {
  align-self: flex-start;
  background: var(--dl-purple-soft);
  color: var(--dl-purple-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

.insight-body strong {
  font-size: 18px;
  line-height: 1.35;
}

.insight-ex {
  flex: 1;
  font-size: 15px;
  line-height: 1.55;
  color: var(--dl-muted);
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--dl-muted);
}

.insight-meta i + time,
.insight-meta time + i {
  margin-left: 2px;
}

.insight-meta time {
  margin-right: 10px;
}

/* homepage polish: beat the older .latest-tools p rules, white thumbnail frames, tighter finder heading */
.why-section p.about-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--dl-purple-dark);
  margin-bottom: 8px;
}

.why-section p.why-lead {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #444f5d;
}

.why-section p.why-industries-label {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--dl-muted);
}

.insight-img {
  background: #fff;
  border-bottom: 1px solid var(--dl-line);
}

.start-section .section-header {
  padding-bottom: 14px;
}

/* finder title is a real h2 (heading order) styled like the other section headers */
.section-header h2.start-title {
  margin: 15px 0;
  padding: 0;
  font-size: var(--fs-section);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: normal;
  text-transform: none;
  color: var(--heading-color);
  font-family: "Baloo 2", sans-serif;
}

/* ==== home hero data flow (generated by build-hero.js) ==== */
/* Animated "How data becomes decisions" diagram. Stages are driven by data-stage on .df (1 to 4);
   only opacity, transform and stroke offsets animate, so it stays smooth and cheap. */
.df {
  --df-purple: #a349a4;
  --df-ink: #303d4e;
  --df-step: 5s;
  position: relative;
  margin: 0;
  padding: 26px 26px 22px;
  border: 1px solid #e3e6ea;
  border-radius: 26px;
  background:
    radial-gradient(420px 220px at 85% 0%, rgba(163, 73, 164, 0.07), transparent 70%),
    #ffffff;
  box-shadow: 0 24px 60px rgba(48, 61, 78, 0.12);
}

.df-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #8a3b8b;
}

.df-fig {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: "Montserrat", sans-serif;
}

/* ---- the drawing */
.df-src rect,
.df-out > rect {
  fill: #fff;
  stroke: #e3e6ea;
  stroke-width: 2;
  transition: stroke 0.4s ease;
}

.df-src text {
  font-size: 20px;
  font-weight: 700;
  fill: var(--df-ink);
}

.df-dot {
  fill: #c474c4;
  transform-box: fill-box;
  transform-origin: center;
}

.df-wire {
  fill: none;
  stroke: #d6b6d7;
  stroke-width: 2.4;
  stroke-dasharray: 5 6;
  transition: stroke 0.4s ease;
}

.df-pk {
  fill: var(--df-purple);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.df-lake-box {
  fill: #fff;
  stroke: #dcc1dd;
  stroke-width: 2.4;
  transition: stroke 0.4s ease;
}

.df-lake-title,
.df-out-title {
  font-size: 20px;
  font-weight: 700;
  fill: #7c8794;
}

.df-lake-title {
  text-anchor: middle;
}

.df-layer rect {
  stroke-width: 2;
}

.df-layer text {
  font-size: 16px;
  font-weight: 600;
  text-anchor: middle;
}

.df-bronze rect { fill: #fbf1e8; stroke: #edcfb4; }
.df-bronze text { fill: #b07a4f; }
.df-silver rect { fill: #f4f5f7; stroke: #d3d8de; }
.df-silver text { fill: #6b7280; }
.df-gold rect { fill: #fdf8e6; stroke: #eedc93; }
.df-gold text { fill: #a3861c; }

.df-link {
  stroke: #dcc1dd;
  stroke-width: 2.4;
  stroke-dasharray: 4 5;
}

/* semantic model to AI & ML: semantic link and Copilot, a quieter path than the main flow */
.df-semantic {
  fill: none;
  stroke: #e3cfe4;
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.df-model-box {
  fill: #fff;
  stroke: #dcc1dd;
  stroke-width: 2.4;
}

.df-model text {
  font-size: 16px;
  font-weight: 700;
  fill: var(--df-ink);
}

.df-star path {
  fill: none;
  stroke: var(--df-purple);
  stroke-width: 2;
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
}

.df-star rect,
.df-star circle {
  fill: var(--df-purple);
}

.df-base {
  stroke: #e3e6ea;
  stroke-width: 2;
}

.df-bar {
  fill: #e6cbe7;
  transform-box: fill-box;
  transform-origin: bottom;
}

.df-bar:last-of-type {
  fill: var(--df-purple);
}

.df-trend,
.df-forecast {
  fill: none;
  stroke: var(--df-purple);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.df-trend {
  stroke-dasharray: 160;
  stroke-dashoffset: 0;
}

.df-forecast {
  stroke-width: 3;
  stroke-dasharray: 5 5;
  opacity: 0.7;
}

.df-target {
  fill: #e7b8e8;
  stroke: var(--df-purple);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
}

.df-decision rect {
  fill: var(--df-ink);
}

.df-decision text {
  font-size: 15px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
}

.df-check {
  fill: none;
  stroke: #7ee2a8;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.df-decision {
  transform-box: fill-box;
  transform-origin: center;
}

/* ---- stage reveal: future stages wait, faded */
.df-s1,
.df-s2,
.df-s3,
.df-s4 {
  opacity: 0.26;
  transition: opacity 0.6s ease;
}

.df[data-stage="1"] .df-s1,
.df[data-stage="2"] :is(.df-s1, .df-s2),
.df[data-stage="3"] :is(.df-s1, .df-s2, .df-s3),
.df[data-stage="4"] :is(.df-s1, .df-s2, .df-s3, .df-s4) {
  opacity: 1;
}

.df-decision.df-s4 {
  opacity: 0;
}

.df[data-stage="4"] .df-decision {
  opacity: 1;
}

/* data keeps flowing in once collection has started; out once insight starts */
.df:not([data-stage="0"]) .df-wire-in {
  stroke: #c58ac6;
  animation: df-flow 0.9s linear infinite;
}

.df:not([data-stage="0"]) .df-pk-in {
  opacity: 0.9;
}

.df[data-stage="4"] .df-wire-out {
  stroke: #c58ac6;
  animation: df-flow 0.9s linear infinite;
}

.df[data-stage="4"] .df-pk-out {
  opacity: 0.9;
}

.df[data-stage="4"] .df-semantic {
  stroke: #d9a8d9;
}

/* ---- the active stage */
.df[data-stage="1"] .df-src rect {
  stroke: #d9a8d9;
}

.df[data-stage="1"] .df-dot {
  animation: df-pulse 1.4s ease-in-out infinite;
}

.df[data-stage="1"] .df-src-2 .df-dot { animation-delay: 0.2s; }
.df[data-stage="1"] .df-src-3 .df-dot { animation-delay: 0.4s; }
.df[data-stage="1"] .df-src-4 .df-dot { animation-delay: 0.6s; }
.df[data-stage="1"] .df-src-5 .df-dot { animation-delay: 0.8s; }

.df[data-stage="2"] .df-lake-box {
  stroke: var(--df-purple);
}

.df[data-stage="2"] .df-layer {
  animation: df-light 0.7s ease both;
}

.df[data-stage="2"] .df-silver { animation-delay: 0.6s; }
.df[data-stage="2"] .df-gold { animation-delay: 1.2s; }

.df[data-stage="3"] .df-model-box {
  stroke: var(--df-purple);
  fill: #fbf5fb;
}

.df[data-stage="3"] .df-gold rect {
  stroke: #d4b648;
}

.df[data-stage="3"] .df-star path {
  animation: df-draw 0.9s ease both;
}

.df[data-stage="4"] .df-out > rect {
  stroke: #d9a8d9;
}

.df[data-stage="4"] .df-bar {
  animation: df-grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.df[data-stage="4"] .df-bar:nth-of-type(2) { animation-delay: 0.12s; }
.df[data-stage="4"] .df-bar:nth-of-type(3) { animation-delay: 0.24s; }
.df[data-stage="4"] .df-bar:nth-of-type(4) { animation-delay: 0.36s; }
.df[data-stage="4"] .df-bar:nth-of-type(5) { animation-delay: 0.48s; }

.df[data-stage="4"] .df-trend {
  animation: df-draw-line 1.2s ease both 0.2s;
}

.df[data-stage="4"] .df-target {
  animation: df-pulse 1.4s ease-in-out infinite 1.4s;
}

.df[data-stage="4"] .df-decision {
  animation: df-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both 1.5s;
}

@keyframes df-flow {
  to { stroke-dashoffset: -22; }
}

@keyframes df-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.45); }
}

@keyframes df-light {
  0% { opacity: 0.3; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}

@keyframes df-draw {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

@keyframes df-draw-line {
  from { stroke-dashoffset: 160; }
  to { stroke-dashoffset: 0; }
}

@keyframes df-grow {
  from { transform: scaleY(0.05); }
  to { transform: scaleY(1); }
}

@keyframes df-pop {
  0% { opacity: 0; transform: scale(0.6); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---- controls */
.df-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 6px;
  margin-top: 14px;
}

.df-step,
.df-toggle {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 14px;
  background: #f6eef6;
  color: #7d3480;
  font-family: "Montserrat", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.df-num {
  opacity: 0.6;
}

.df-step:hover {
  background: #eedcef;
}

.df-step[aria-pressed="true"] {
  background: #8a3b8b;
  color: #fff;
}

.df-step:focus-visible,
.df-toggle:focus-visible {
  outline: 3px solid var(--df-purple);
  outline-offset: 2px;
}

.df-prog {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  transform: scaleX(0);
  transform-origin: left;
}

.df.is-ticking .df-step[aria-pressed="true"] .df-prog {
  animation: df-progress var(--df-step) linear both;
}

.df-toggle {
  padding: 8px 14px;
  font-size: 18px;
}

.df-toggle[hidden] {
  display: none;
}

@keyframes df-progress {
  to { transform: scaleX(1); }
}

.df-captions {
  min-height: 72px;
  margin-top: 12px;
}

.df-caption {
  display: none;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #5f6b7a;
}

.df[data-stage="1"] .df-caption[data-for="1"],
.df[data-stage="2"] .df-caption[data-for="2"],
.df[data-stage="3"] .df-caption[data-for="3"],
.df[data-stage="4"] .df-caption[data-for="4"] {
  display: block;
  animation: df-fade 0.5s ease both;
}

.df-caption a {
  white-space: nowrap;
  font-weight: 700;
  color: var(--df-purple);
}

.df-caption a:hover {
  color: #7d3480;
}

.df-visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes df-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* paused: freeze every CSS animation (the travelling packets are paused by script) */
.df.is-paused *,
.df.is-paused *::before,
.df.is-paused *::after {
  animation-play-state: paused !important;
}

/* reduced motion: a still, complete diagram */
@media (prefers-reduced-motion: reduce) {
  .df:not(.df-allow-motion) *,
  .df:not(.df-allow-motion) *::before,
  .df:not(.df-allow-motion) *::after {
    animation: none !important;
    transition: none !important;
  }

  .df:not(.df-allow-motion) .df-pk {
    display: none;
  }
}

/* phones: text first, then a compact card */
@media (max-width: 991px) {
  .df-col {
    margin-top: 10px;
  }
}

@media (max-width: 575px) {
  .df {
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .df-eyebrow {
    font-size: 11.5px;
    letter-spacing: 1.8px;
  }

  .df-controls {
    gap: 5px;
  }

  .df-step,
  .df-toggle {
    min-height: 40px;
    padding: 6px 3px;
    font-size: 12px;
    border-radius: 11px;
  }

  /* the order already says which step is which; the names need the room */
  .df-num {
    display: none;
  }

  .df-toggle {
    padding: 6px 10px;
  }

  .df-caption {
    font-size: 14.5px;
  }
}
/* ==== end home hero data flow ==== */

/* ==== home end-to-end journey (generated by build-journey.js) ==== */
/* Home "end-to-end" journey: the brand's winding line, drawn in SVG, with five stops from Discover to Run */
.jr {
  padding: 56px 0 40px;
  overflow: hidden;
}

.jr-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.jr-kicker,
.jr-close {
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(19px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--dl-ink);
}

.jr-close {
  margin-top: 6px;
}

/* ---- desktop: the drawn line with the stops placed on it */
.jr-map {
  position: relative;
  aspect-ratio: 1200 / 760;
  margin: 18px auto 0;
}

.jr-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.jr-track {
  fill: none;
  stroke: #e3e6ea;
  stroke-width: 6;
  stroke-linecap: round;
}

.jr-path {
  fill: none;
  stroke: url(#jr-grad);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.jr-word {
  font-family: "Baloo 2", sans-serif;
  font-size: 78px;
  font-weight: 800;
  fill: #7d3480;
}

.jr-start {
  fill: var(--dl-purple);
  stroke: var(--dl-ink);
  stroke-width: 4;
}

.jr-end {
  fill: #7d3480;
  stroke: var(--dl-ink);
  stroke-width: 4;
}

.jr-node {
  fill: #fff;
  stroke: var(--dl-purple);
  stroke-width: 5;
}

.jr-node-run {
  fill: var(--dl-purple);
  stroke: var(--dl-ink);
}

.jr-stops {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jr-stop {
  position: absolute;
  width: 21%;
  transform: translateX(-50%);
}

.jr-card {
  padding: 13px 15px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--dl-line);
  box-shadow: 0 8px 22px rgba(48, 61, 78, 0.08);
}

.jr-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--dl-ink);
}

.jr-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dl-purple-soft);
  color: var(--dl-purple-dark);
  font-size: 12.5px;
  font-weight: 800;
}

.jr-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--dl-muted);
}

/* the last stop: running it for you */
.jr-run .jr-card {
  border-color: transparent;
  background:
    radial-gradient(200px 120px at 0% 0%, rgba(163, 73, 164, 0.35), transparent 70%),
    linear-gradient(160deg, #364558, var(--dl-ink));
  box-shadow: 0 12px 28px rgba(48, 61, 78, 0.25);
}

.jr-run .jr-card h3 {
  color: #fff;
}

.jr-run .jr-num {
  background: var(--dl-purple);
  color: #fff;
}

.jr-run .jr-card p {
  color: #d6dbe1;
}

.jr-run a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #e7b8e8;
}

.jr-run a:hover,
.jr-run a:focus-visible {
  color: #fff;
}

.jr-run a i {
  transition: transform 0.2s ease;
}

.jr-run a:hover i {
  transform: translateX(3px);
}

/* the wordmarks for the stacked (tablet and phone) layout; the desktop one is inside the SVG */
.jr-mark {
  display: none;
}

/* ---- the drawing, once the section is on screen (set up by home.js, so it's simply complete without it) */
.jr.is-armed .jr-path {
  stroke-dashoffset: 1;
}

.jr.is-armed .jr-pop,
.jr.is-armed .jr-stop {
  opacity: 0;
}

.jr.is-armed .jr-stop {
  translate: 0 10px;
}

.jr.is-armed .jr-node,
.jr.is-armed .jr-end {
  transform: scale(0.2);
}

.jr-node,
.jr-end {
  transform-box: fill-box;
  transform-origin: center;
}

.jr.is-in .jr-path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset var(--jr-draw, 3s) cubic-bezier(0.45, 0.05, 0.35, 1);
}

.jr.is-in .jr-pop,
.jr.is-in .jr-stop,
.jr.is-in .jr-node,
.jr.is-in .jr-end {
  opacity: 1;
  translate: 0 0;
  transform: none;
  transition: opacity 0.45s ease, translate 0.5s ease, transform 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
  transition-delay: var(--jr-at, 0s);
}

.jr.is-in .jr-stop {
  transform: translateX(-50%);
}

/* ---- tablets and phones: one column, with the line running down the left */
@media (max-width: 1199px) {
  .jr-map {
    aspect-ratio: auto;
    margin-top: 22px;
  }

  .jr-svg {
    display: none;
  }

  .jr-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Baloo 2", sans-serif;
    font-size: clamp(44px, 9vw, 64px);
    font-weight: 800;
    line-height: 1;
    color: #7d3480;
  }

  .jr-mark i {
    display: inline-block;
    flex: none;
    width: 0.5em;
    height: 0.5em;
    border: 3px solid var(--dl-ink);
    background: var(--dl-purple);
    border-radius: 50%;
  }

  /* the line runs down into the square, which sits right under it */
  .jr-mark-end {
    justify-content: flex-start;
    margin-top: 0;
    padding-left: 4px;
  }

  .jr-mark-end i {
    border-radius: 6px;
    background: #7d3480;
  }

  .jr-stops {
    position: relative;
    margin-top: 18px;
    padding-left: 52px;
  }

  /* the line */
  .jr-stops::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: -4px;
    left: 17px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--dl-purple), var(--dl-ink));
  }

  .jr-stop,
  .jr.is-in .jr-stop {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto;
    transform: none;
    margin-bottom: 14px;
  }

  /* each stop's dot on the line */
  .jr-stop::before {
    content: "";
    position: absolute;
    left: -43px;
    top: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--dl-purple);
  }

  .jr-run::before {
    background: var(--dl-purple);
    border-color: var(--dl-ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jr.is-armed .jr-path { stroke-dashoffset: 0; }
  .jr.is-armed .jr-pop,
  .jr.is-armed .jr-stop,
  .jr.is-armed .jr-node,
  .jr.is-armed .jr-end { opacity: 1; translate: 0 0; transform: none; }
  .jr .jr-path,
  .jr .jr-pop,
  .jr .jr-stop,
  .jr .jr-node,
  .jr .jr-end { transition: none !important; }
}

/* stop positions, from build-journey.js */
@media (min-width: 1200px) {
  .jr-stop:nth-child(1) { left: 35.833%; top: 12.105%; }
  .jr-stop:nth-child(2) { left: 65.833%; top: 12.105%; }
  .jr-stop:nth-child(3) { left: 66.667%; top: 43.684%; }
  .jr-stop:nth-child(4) { left: 35.833%; top: 43.684%; }
  .jr-stop:nth-child(5) { left: 46.667%; top: 75.263%; }
}
.jr { --jr-draw: 3.2s; }
/* ==== end home end-to-end journey ==== */

/* ==== home partners and clients (generated by build-logos.js) ==== */
/* Home: partners as cards with what each platform is for; clients as proof cards linked to their stories */
.lg-section {
  padding: 56px 0;
}

.lg-lead {
  max-width: 680px;
  margin: -8px auto 30px;
  text-align: center;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--dl-muted);
}

/* ---- partners */
.lg-partners {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-partner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 18px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--dl-line);
  box-shadow: 0 6px 20px rgba(48, 61, 78, 0.06);
  color: var(--dl-ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* a purple accent that grows across the top on hover */
.lg-partner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dl-purple), var(--dl-purple-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.lg-partner:hover,
.lg-partner:focus-visible {
  transform: translateY(-4px);
  border-color: #e3cfe4;
  box-shadow: 0 16px 34px rgba(48, 61, 78, 0.12);
  color: var(--dl-ink);
}

.lg-partner:hover::before,
.lg-partner:focus-visible::before {
  transform: scaleX(1);
}

.lg-partner:focus-visible {
  outline: 3px solid var(--dl-purple);
  outline-offset: 3px;
}

.lg-logo {
  display: grid;
  place-items: center;
  height: 64px;
  margin-bottom: 14px;
}

.lg-logo img {
  /* the same size in every card, however wide the card is */
  max-width: min(100%, 170px);
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lg-partner p {
  flex: 1;
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.5;
  text-align: center;
  color: var(--dl-muted);
}

.lg-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dl-purple);
}

.lg-go i {
  transition: transform 0.2s ease;
}

.lg-partner:hover .lg-go i,
.lg-client:hover .lg-go i {
  transform: translateX(3px);
}

/* ---- clients, on a navy band */
.lg-clients-band {
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(163, 73, 164, 0.28), transparent 65%),
    linear-gradient(160deg, var(--dl-ink), #222c39);
}

.lg-clients-band .section-header p {
  color: #fff;
}

.lg-clients-band .lg-lead {
  color: #c9cfd8;
}

.lg-clients {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-client {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d6dbe1;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lg-client:hover,
.lg-client:focus-visible {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(231, 184, 232, 0.45);
  color: #d6dbe1;
}

.lg-client:focus-visible {
  outline: 3px solid #e7b8e8;
  outline-offset: 3px;
}

/* the logo on a white plate, so every brand's colours read properly */
.lg-plate {
  display: grid;
  place-items: center;
  height: 104px;
  margin: 12px 12px 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
}

.lg-plate img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lg-client-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.lg-tag {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(163, 73, 164, 0.3);
  color: #f1d2f2;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lg-client h3 {
  margin: 0 0 6px;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.lg-client p {
  flex: 1;
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
}

.lg-client .lg-go {
  justify-content: flex-start;
  color: #e7b8e8;
}

@media (max-width: 1199px) {
  .lg-partners {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 575px) {
  .lg-section {
    padding: 44px 0;
  }

  .lg-partners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .lg-partner {
    padding: 16px 12px 14px;
  }

  .lg-partner p {
    font-size: 13.5px;
  }

  /* five cards in two columns: the last one spans the row instead of sitting alone */
  .lg-partners li:last-child:nth-child(odd) {
    grid-column: span 2;
  }

  .lg-clients {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-partner,
  .lg-partner::before,
  .lg-client,
  .lg-go i {
    transition: none;
  }
}
/* ==== end home partners and clients ==== */
