/* Customer Story — DETAIL page supplement (shared by every story under /customer-stories/).
   Loads AFTER /assets/css/style.css; reuses chrome, tokens, .eyebrow, .btn, .final.
   Detail-only components are namespaced .csd-*. */

/* Hero (navy) */
.csd-hero {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid var(--navy-mid);
  padding: 40px 0 56px;
  position: relative;
  overflow: hidden;
}
.csd-hero::before {
  content: "";
  position: absolute;
  bottom: -80px; right: -40px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(200,68,73,0.16) 0%, transparent 62%);
  border-radius: 50%;
  pointer-events: none;
}
.csd-hero .container { position: relative; z-index: 1; }

/* Breadcrumb — <nav>, so reset the global sticky-bar nav chrome from style.css */
.csd-crumb {
  position: static;
  height: auto;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin: 0 0 28px;
  color: rgba(255,255,255,0.72);
}
.csd-crumb a { color: rgba(255,255,255,0.88); text-decoration: none; }
.csd-crumb a:hover { color: #fff; }
.csd-crumb span { margin: 0 8px; opacity: 0.5; }

.csd-layer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.csd-layer .csd-dot { width: 7px; height: 7px; border-radius: 50%; }
.csd-layer.l1 { color: #6fcf97; } .csd-layer.l1 .csd-dot { background: #6fcf97; }
.csd-layer.l2 { color: #7fb0ee; } .csd-layer.l2 .csd-dot { background: #7fb0ee; }
.csd-layer.l3 { color: #e9b865; } .csd-layer.l3 .csd-dot { background: #e9b865; }
.csd-layer.l4 { color: var(--red-light); } .csd-layer.l4 .csd-dot { background: var(--red-light); }

.csd-hero h1 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -1px;
  color: #fff;
  margin: 0 0 14px;
  max-width: 760px;
}
.csd-subline {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* Stat band */
.csd-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.csd-stat { padding-right: 36px; }
.csd-stat + .csd-stat { padding-left: 36px; border-left: 1px solid rgba(255,255,255,0.14); }
.csd-stat-num {
  font-family: "DM Serif Display", serif;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  color: #fff;
  margin: 0 0 6px;
}
.csd-stat-label { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.4; max-width: 180px; }

/* Body */
.csd-body { background: var(--cream); }
.csd-body .container { max-width: 800px; }
.csd-section { margin: 0 0 44px; }
.csd-section:last-child { margin-bottom: 0; }
.csd-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  margin: 0 0 12px;
}
.csd-section h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: var(--navy);
  margin: 0 0 16px;
}
.csd-section p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 16px;
}
.csd-section p:last-child { margin-bottom: 0; }

/* Design principles grid */
.csd-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.csd-principle {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 22px 24px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.csd-principle:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(30, 28, 58, 0.08);
  border-color: var(--border-mid);
}
.csd-principle h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}
.csd-principle p { font-size: 14px; line-height: 1.6; color: var(--text-mid); margin: 0; }

/* Quote */
.csd-quote {
  background: var(--red-pale);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 24px 26px;
}
.csd-quote p {
  font-family: "DM Serif Display", serif;
  font-size: 21px;
  line-height: 1.4;
  font-style: italic;
  color: var(--navy);
  margin: 0 0 12px;
}
.csd-quote cite {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--text-mid);
}

/* Tech chips */
.csd-tech { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.csd-tech span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-mid);
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 100px;
}

/* Prev/next + back row */
.csd-foot-nav {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.csd-foot-nav a {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px dashed var(--red);
  padding-bottom: 2px;
  letter-spacing: 0.04em;
}
.csd-foot-nav a:hover { color: var(--navy); border-bottom-color: var(--navy); }

@media (max-width: 700px) {
  .csd-principles { grid-template-columns: 1fr; }
  .csd-stats { display: grid; grid-template-columns: 1fr; gap: 22px; }
  .csd-stat { padding: 0; }
  .csd-stat + .csd-stat { padding-left: 0; border-left: none; }
  .csd-stat-label { max-width: none; }
}
