/*
 * Long-form customer story layout (single-case_study.php and
 * template-parts/case-study/).
 *
 * Ported from the standalone design export. Every rule is scoped under
 * .cs-story because the export used generic class names (.hero, .story,
 * .metric, .lead) and the theme's Tailwind preflight resets headings, lists
 * and paragraph margins. The :where() baseline below restores the browser
 * defaults the design was built against, at zero specificity so the
 * component rules after it always win.
 */
:where(.cs-story) p { margin: 1em 0; }
:where(.cs-story) h2 { font-weight: 700; }
:where(.cs-story) h3 { margin: 1em 0; font-size: 1.17em; font-weight: 700; line-height: 1.3; }
:where(.cs-story) h4 { font-weight: 700; }
:where(.cs-story) blockquote { margin: 0; }
:where(.cs-story) .decision-panel ul { list-style: disc; }

.cs-story {
  --brand: #d62410;
  --brand-dark: #ad1d0d;
  --brand-soft: #fff0ee;
  --ink: #18181b;
  --ink-deep: #020817;
  --muted: #565e6b;
  --paper: #f8fafc;
  --white: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  /* Sections run edge to edge; on wide screens their content lines up to a
     1440px column. Add var(--edge) to a section's side padding to do that. */
  --max: 1440px;
  --edge: max(0px, (100% - var(--max)) / 2);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Height of the fixed site header (py-5 + 40px logo). */
  --site-header: 80px;

  /* What the export set on <body>. */
  display: block;
  padding-top: var(--site-header);
  background: var(--paper);
  color: var(--ink-deep);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* style.css gives <body> 32px of top padding site-wide ("account for the
   admin bar"); the header offset already covers that space. */
body:not(.has-promotional-banner) .cs-story { padding-top: calc(var(--site-header) - 32px); }
.cs-story * { box-sizing: border-box; }
.cs-story a { color: inherit; }
.cs-story button { font: inherit; }
/* Sits directly under the fixed header, and below it in the stacking order
   so the mobile menu (z-50) still covers it. */
.cs-story .read-progress { position: fixed; inset: var(--site-header) 0 auto 0; height: 4px; z-index: 40; pointer-events: none; }
.cs-story .read-progress span { display: block; width: 0; height: 100%; background: var(--brand); }
.cs-story .cta-button:hover { transform: translateY(-1px); }
.cs-story .cta-button:hover { background: var(--brand-dark); }
.cs-story .cta-button:focus-visible,
.cs-story .story-timeline a:focus-visible { outline: 3px solid rgba(214,36,16,.35); outline-offset: 3px; }
.cs-story .hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, .75fr);
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
  padding: clamp(64px, 8vw, 116px) calc(var(--edge) + clamp(24px, 6vw, 92px));
  background: var(--white);
}
/* No outcome card: the copy takes the full width. */
.cs-story .hero.no-proof { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.cs-story .hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--brand); }
.cs-story .hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 18%, rgba(214,36,16,.10), transparent 25%),
    linear-gradient(135deg, transparent 0 73%, rgba(214,36,16,.035) 73% 100%);
}
.cs-story .hero-copy,
.cs-story .proof-card { position: relative; z-index: 1; }
.cs-story .kicker,
.cs-story .eyebrow,
.cs-story .rail-label,
.cs-story .proof-label,
.cs-story .meta-label {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cs-story .kicker { margin: 0 0 26px; color: var(--muted); }
.cs-story .kicker span { color: var(--brand); }
.cs-story .hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 5.5vw, 5.4rem);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -.05em;
}
.cs-story .dek {
  max-width: 760px;
  margin: 32px 0 40px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 1.55;
}
.cs-story .hero-meta {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0,1fr));
  gap: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line-strong);
}
.cs-story .hero-meta div { display: grid; gap: 4px; }
.cs-story .meta-label { color: var(--muted); }
.cs-story .hero-meta strong { color: var(--ink); font-size: .92rem; line-height: 1.45; }
.cs-story .proof-card {
  align-self: center;
  padding: 29px;
  color: var(--white);
  background: var(--ink);
  border-top: 6px solid var(--brand);
  border-radius: 6px;
  box-shadow: 14px 14px 0 rgba(214,36,16,.12);
}
.cs-story .client-logo-link { display: block; width: fit-content; margin: 0 0 28px; }
.cs-story .client-logo { display: block; max-width: 175px; max-height: 54px; object-fit: contain; object-position: left center; }
.cs-story .proof-label { margin: 0 0 28px; color: #fca69a; }
.cs-story .metric { display: flex; flex-direction: column; }
.cs-story .metric strong {
  font-size: clamp(2.4rem, 4vw, 4.35rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}
.cs-story .metric span { margin-top: 8px; font-weight: 700; line-height: 1.35; }
.cs-story .metric-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #3f3f46;
}
.cs-story .metric-pair.is-single { grid-template-columns: 1fr; }
.cs-story .metric-pair .metric strong { font-size: clamp(1.65rem, 2.8vw, 2.75rem); }
.cs-story .proof-note { margin: 32px 0 0; color: #cbd5e1; font-size: .83rem; line-height: 1.6; }
.cs-story .story-shell {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.cs-story .story-timeline {
  padding: 30px calc(var(--edge) + clamp(24px, 5vw, 72px)) 36px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.cs-story .rail-label {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.cs-story .timeline-track {
  position: relative;
  display: grid;
  /* --steps is set inline to the number of chapters on the page. */
  grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr));
}
.cs-story .timeline-track::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--line-strong);
}
.cs-story .timeline-track a {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 8px;
  color: #64748b;
  font-size: .8rem;
  text-align: center;
  text-decoration: none;
}
.cs-story .timeline-track a span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #64748b;
  background: var(--white);
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 800;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.cs-story .timeline-track a strong {
  font-size: inherit;
  line-height: 1.3;
}
.cs-story .timeline-track a:hover,
.cs-story .timeline-track a.active {
  color: var(--brand);
}
.cs-story .timeline-track a:hover span,
.cs-story .timeline-track a.active span {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}
.cs-story .story { min-width: 0; }
.cs-story .story-section {
  padding: clamp(76px, 9vw, 136px) clamp(28px, 8vw, 120px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--site-header) + 16px);
}
.cs-story .section-body {
  width: min(100%, 820px);
  margin-inline: auto;
}
.cs-story .section-body > .eyebrow,
.cs-story .section-body > h2,
.cs-story .section-body > p {
  max-width: 720px;
}
.cs-story .eyebrow { margin: 0 0 17px; color: var(--brand); }
.cs-story .story h2,
.cs-story .contact-panel h2 {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.cs-story .story p { max-width: 690px; }
.cs-story .lead { color: #374151; font-size: clamp(1.14rem, 1.7vw, 1.32rem); line-height: 1.55; }
.cs-story .story-section .section-body > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.cs-story .story-section .section-body > .eyebrow,
.cs-story .story-section .section-body > h2,
.cs-story .story-section .section-body > p {
  margin-left: auto;
  margin-right: auto;
}
.cs-story .snapshot-card,
.cs-story .stakes-grid,
.cs-story .proof-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.cs-story .snapshot-card { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin-top: 36px; }
/* Card grids hold any number of items; a short last row stretches its last
   card (--span set inline) instead of leaving a grey gap. */
.cs-story .span-rest { grid-column: span var(--span, 1); }
.cs-story .snapshot-card > div,
.cs-story .stakes-grid > div { padding: 20px; background: var(--paper); }
.cs-story .snapshot-card span,
.cs-story .feature-kicker,
.cs-story .proof-list article > span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cs-story .snapshot-card strong { display: block; color: var(--ink); font-size: .92rem; line-height: 1.4; }
.cs-story .pull-quote {
  margin: 0;
  padding: clamp(70px, 8vw, 116px) calc(var(--edge) + clamp(28px, 10vw, 150px));
  color: var(--white);
  background: var(--brand);
  border: 0;
}
.cs-story .pull-quote p {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2rem, 4.15vw, 3.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
}
.cs-story .pull-quote footer { margin-top: 28px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cs-story .pull-quote-dark { background: var(--ink); border-top: 6px solid var(--brand); }
.cs-story .pull-quote-dark footer { color: #cbd5e1; }
/* Quote size (editor option; Auto picks by length). Large is the default above. */
.cs-story .pull-quote-xlarge p { max-width: 1080px; font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: 1.04; }
.cs-story .pull-quote-medium p { font-size: clamp(1.6rem, 3vw, 2.75rem); line-height: 1.12; letter-spacing: -.03em; }
.cs-story .pull-quote-small { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.cs-story .pull-quote-small p { font-size: clamp(1.3rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.3; letter-spacing: -.02em; }
.cs-story .pull-quote-xsmall { padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px); }
.cs-story .pull-quote-xsmall p { font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
/* Custom px size from the editor: exact on desktop, scaled down on narrow screens. */
.cs-story .pull-quote-custom p { font-size: max(1.05rem, min(var(--pq-size), 6.5vw)); line-height: 1.2; }
.cs-story .stakes-grid { grid-template-columns: repeat(var(--cols, 3), minmax(0,1fr)); margin: 36px 0; }
.cs-story .stakes-grid span,
.cs-story .decision-question,
.cs-story .moves > li > span,
.cs-story .before-after span {
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cs-story .stakes-grid p { margin: 8px 0 0; color: var(--ink) !important; font-size: .9rem; line-height: 1.5; }
.cs-story .decision-panel { margin: 34px 0; padding: 29px; color: var(--white); background: var(--ink); border-radius: 6px; }
.cs-story .decision-panel ul { margin: 16px 0 0; padding-left: 20px; }
.cs-story .decision-panel li { margin: 10px 0; color: #d1d5db; }
.cs-story .decision-panel strong { color: var(--white); }
.cs-story .inline-quote {
  margin: 36px 0 0;
  padding: 28px 30px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-left: 6px solid var(--brand);
  border-radius: 0 6px 6px 0;
}
.cs-story .inline-quote p {
  margin: 0;
  color: var(--ink) !important;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.025em;
}
.cs-story .inline-quote footer { margin-top: 16px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cs-story .moves { display: grid; gap: 0; margin: 40px 0 0; padding: 0; list-style: none; }
.cs-story .moves li { position: relative; padding: 8px 0 34px 72px; border-left: 1px solid var(--line-strong); }
.cs-story .moves li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: -7px;
  width: 13px;
  height: 13px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 7px var(--brand-soft);
}
.cs-story .moves h3 { margin: 4px 0 7px; color: var(--ink); font-size: 1.18rem; }
.cs-story .moves p { margin: 0; color: var(--muted); }
.cs-story .feature-callout {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 32px;
  margin-top: 18px;
  padding: 30px;
  color: var(--white);
  background: var(--brand);
  border-radius: 6px;
}
.cs-story .feature-callout h3 { margin: 0; font-size: 1.7rem; line-height: 1.18; }
.cs-story .feature-callout p { margin: 0; color: rgba(255,255,255,.88) !important; }
.cs-story .feature-kicker { color: var(--white); opacity: .8; }
.cs-story .proof-section { background: var(--paper); }
.cs-story .result-board {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  margin: 42px 0 34px;
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
}
.cs-story .result-board > div { padding: 28px; }
.cs-story .result-main { grid-row: span var(--rows, 2); color: var(--white); background: var(--brand); }
.cs-story .result-board.is-single { grid-template-columns: 1fr; }
.cs-story .result-small { border-left: 1px solid var(--ink); }
.cs-story .result-small + .result-small { border-top: 1px solid var(--ink); }
.cs-story .result-value {
  display: block;
  font-size: clamp(2.45rem, 4.7vw, 4.65rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.05em;
}
.cs-story .result-board h3 { margin: 12px 0 5px; }
.cs-story .result-board p { margin: 0; color: inherit !important; font-size: .88rem; line-height: 1.5; opacity: .82; }
.cs-story .before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  margin: 32px 0;
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.cs-story .before-after p { margin: 6px 0 0; color: var(--ink) !important; }
.cs-story .arrow { color: var(--brand); font-size: 1.8rem; }
.cs-story .proof-list { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin-top: 34px; }
.cs-story .proof-list article { padding: 24px; background: var(--white); }
.cs-story .proof-list h3 { margin: 0 0 10px; color: var(--ink); font-size: 1.06rem; line-height: 1.3; }
.cs-story .proof-list p { margin: 0; color: var(--muted) !important; font-size: .89rem; line-height: 1.55; }
.cs-story .contact-panel {
  position: relative;
  overflow: hidden;
  padding: 104px clamp(28px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.93) 40%, rgba(255,255,255,.64) 72%, rgba(255,255,255,.74) 100%),
    linear-gradient(135deg, rgba(214,36,16,.11), transparent 48%),
    /* Per-story photo, set inline by template-parts/case-study/contact-panel.php. */
    var(--contact-bg, none) center / cover no-repeat;
  border-top: 6px solid var(--brand);
  isolation: isolate;
}
.cs-story .contact-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: clamp(10px, 1.4vw, 20px);
  background: rgba(214,36,16,.88);
}
.cs-story .contact-panel-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  gap: 80px;
  align-items: start;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.cs-story .contact-story {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  padding-top: 18px;
  color: var(--ink);
}
.cs-story .contact-story-content { max-width: 604px; }
.cs-story .contact-panel .eyebrow { color: var(--brand); }
.cs-story .contact-panel h2 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--ink);
}
.cs-story .contact-panel .contact-story p {
  max-width: 660px;
  color: #343b46;
}
.cs-story .contact-reassurance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 604px;
  margin-top: 30px;
}
.cs-story .contact-reassurance-grid > div {
  padding: 18px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(148,163,184,.42);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.cs-story .contact-reassurance-grid span {
  display: block;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cs-story .contact-panel .contact-reassurance-grid p {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: .88rem;
  line-height: 1.5;
}
.cs-story .contact-form-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 496px;
  padding: 28px;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(148,163,184,.48);
  border-top: 5px solid var(--brand);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(2,8,23,.18);
  backdrop-filter: blur(14px);
}
.cs-story .contact-form-wrap.is-transitioning {
  overflow: hidden;
  transition: height .36s cubic-bezier(.22, 1, .36, 1);
}
.cs-story .contact-form-state { display: grid; }
.cs-story .contact-form-state[hidden],
.cs-story .contact-form[hidden] { display: none; }
.cs-story .contact-form-state.is-leaving { animation: contact-state-out .18s ease both; }
.cs-story .contact-success.is-entering { animation: contact-state-in .36s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes contact-state-out {
  to { opacity: 0; transform: translateY(-10px); }
}
@keyframes contact-state-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-story .contact-form-wrap.is-transitioning { transition: none; }
  .cs-story .contact-form-state.is-leaving,
  .cs-story .contact-success.is-entering { animation: none; }
}
.cs-story .contact-form-wrap h3 {
  max-width: none;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}
.cs-story .form-intro {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.5;
}
.cs-story .contact-form {
  display: grid;
  gap: 16px;
}
.cs-story .contact-form label { display: grid; gap: 6px; }
.cs-story .contact-form label > span {
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}
.cs-story .field-status {
  margin-left: 5px;
  color: var(--brand);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cs-story .field-status-optional { color: #64748b; }
.cs-story .form-help {
  color: #64748b;
  font-size: .78rem;
  line-height: 1.35;
}
/* Errors returned by Contact Form 7 (case-study-story.js). */
.cs-story .field-error {
  color: var(--brand-dark);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
}
.cs-story .field-error[hidden],
.cs-story .form-alert[hidden] { display: none; }
.cs-story .contact-form [aria-invalid="true"] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(214,36,16,.10);
}
.cs-story .form-alert {
  margin: 0;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  font-size: .88rem;
  line-height: 1.45;
}
.cs-story .contact-form .cta-button[aria-busy="true"] { cursor: progress; opacity: .75; }
/* Off-screen rather than display:none, which some bots skip. */
.cs-story .form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cs-story .contact-form input,
.cs-story .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.cs-story .contact-form input { height: 50px; }
.cs-story .contact-form textarea { height: 100px; min-height: 100px; resize: vertical; }
.cs-story .contact-form input::placeholder,
.cs-story .contact-form textarea::placeholder { color: #94a3b8; }
.cs-story .contact-form input:focus,
.cs-story .contact-form textarea:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(214,36,16,.13);
}
.cs-story .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  color: var(--white);
  background: var(--brand);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease;
}
.cs-story .contact-form .cta-button {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.cs-story .contact-success {
  display: grid;
  gap: 20px;
}
.cs-story .contact-success[hidden],
.cs-story .scheduler[hidden],
.cs-story .email-choice[hidden],
.cs-story .email-confirmation[hidden],
.cs-story .meeting-confirmation[hidden] { display: none; }
.cs-story .success-heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.cs-story .success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--brand);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
}
.cs-story .success-kicker {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.cs-story .contact-success .success-heading h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  outline: 0;
}
.cs-story .success-intro {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}
.cs-story .scheduler {
  display: grid;
  gap: 15px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cs-story .scheduler-heading p {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cs-story .scheduler-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.13rem;
  line-height: 1.3;
}
/* Calendly's inline widget takes the width of its parent; at this card's
   width it switches to its single-column layout, which needs ~680px. */
.cs-story .calendly-embed {
  min-width: 0;
  height: 680px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cs-story .calendly-embed .calendly-inline-widget { width: 100%; height: 100%; }
.cs-story .email-choice:focus-visible {
  outline: 3px solid rgba(214,36,16,.25);
  outline-offset: 2px;
}
.cs-story .email-choice {
  justify-self: center;
  padding: 2px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #94a3b8;
  cursor: pointer;
  font: inherit;
  font-size: .86rem;
}
.cs-story .email-choice:hover { color: var(--brand); border-color: var(--brand); }
.cs-story .email-confirmation {
  margin: 0;
  padding: 15px 16px;
  color: var(--ink);
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  font-weight: 650;
}
.cs-story .meeting-confirmation {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 16px;
  background: var(--brand-soft);
  border: 1px solid rgba(214,36,16,.22);
  border-radius: 10px;
}
.cs-story .meeting-confirmation > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--brand);
  border-radius: 50%;
  font-weight: 800;
}
.cs-story .meeting-confirmation strong { display: block; color: var(--ink); }
.cs-story .meeting-confirmation p { margin: 3px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.cs-story .story-collection {
  padding: clamp(68px, 8vw, 110px) calc(var(--edge) + clamp(30px, 8vw, 118px));
  background: var(--white);
  border-top: 1px solid var(--line);
}
.cs-story .story-collection-heading {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 42px;
}
.cs-story .story-collection-heading h2 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.cs-story .story-cards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 18px;
}
.cs-story .story-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 42px);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--brand);
  border-radius: 6px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cs-story .story-card span {
  margin-bottom: auto;
  color: var(--brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.cs-story .story-card h3 {
  max-width: 560px;
  margin: 44px 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.13;
  letter-spacing: -.03em;
}
.cs-story .story-card p { max-width: 560px; margin: 0; color: var(--muted); }
.cs-story .story-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 14px 30px rgba(2,8,23,.09);
}
.cs-story .story-card:focus-visible { outline: 3px solid rgba(214,36,16,.35); outline-offset: 3px; }
@media (max-width: 980px) {
  .cs-story .hero { grid-template-columns: 1fr; }
  .cs-story .proof-card { max-width: 560px; }
  .cs-story .story-timeline { padding: 26px 24px 30px; }
  .cs-story .timeline-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .cs-story .timeline-track::before { display: none; }
  .cs-story .timeline-track a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 9px;
    min-height: 54px;
    padding: 8px 10px;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .cs-story .timeline-track a span { width: 32px; height: 32px; flex: 0 0 32px; }
  .cs-story .timeline-track a:hover span,
  .cs-story .timeline-track a.active span { transform: none; }
  .cs-story .story-collection-heading { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 960px) {
  .cs-story .contact-panel { padding: 88px clamp(28px, 7vw, 64px); }
  .cs-story .contact-panel-inner { grid-template-columns: 1fr; gap: 52px; }
  .cs-story .contact-story { padding-top: 0; }
  .cs-story .contact-story-content { max-width: 720px; }
  .cs-story .contact-form-wrap { max-width: 650px; }
}
/* Tablets: three ~200px cells left these headings wrapping to four lines. */
@media (max-width: 860px) {
  .cs-story .stakes-grid,
  .cs-story .proof-list { grid-template-columns: 1fr; }
  .cs-story .stakes-grid > .span-rest,
  .cs-story .proof-list > .span-rest { grid-column: auto; }
}
@media (max-width: 680px) {
  .cs-story .hero { min-height: auto; padding: 58px 22px 48px 26px; }
  .cs-story .hero::before { width: 4px; }
  .cs-story .hero h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .cs-story .hero-meta { grid-template-columns: 1fr; }
  .cs-story .proof-card { box-shadow: 9px 9px 0 rgba(214,36,16,.12); }
  .cs-story .metric-pair { grid-template-columns: 1fr; }
  .cs-story .story-timeline { padding: 22px 16px 24px; }
  .cs-story .rail-label { margin-bottom: 14px; }
  .cs-story .timeline-track { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cs-story .timeline-track a { min-height: 50px; padding: 7px 8px; font-size: .74rem; }
  .cs-story .story-section { padding: 68px 22px; scroll-margin-top: calc(var(--site-header) + 8px); }
  .cs-story .snapshot-card,
  .cs-story .stakes-grid,
  .cs-story .proof-list { grid-template-columns: 1fr; }
  .cs-story .span-rest { grid-column: auto; }
  .cs-story .moves li { padding-left: 38px; }
  .cs-story .feature-callout { grid-template-columns: 1fr; }
  .cs-story .result-board { grid-template-columns: 1fr; }
  .cs-story .result-main { grid-row: auto; }
  .cs-story .result-small { border-left: 0; border-top: 1px solid var(--ink); }
  .cs-story .before-after { grid-template-columns: 1fr; }
  .cs-story .arrow { width: fit-content; transform: rotate(90deg); }
  .cs-story .pull-quote { padding: 68px 22px; }
  .cs-story .pull-quote-small,
  .cs-story .pull-quote-xsmall { padding-top: 52px; padding-bottom: 52px; }
  .cs-story .contact-panel {
    padding: 72px 14px;
    background-position: 62% center;
  }
  .cs-story .contact-panel::before { width: 7px; }
  .cs-story .contact-panel-inner { gap: 38px; }
  .cs-story .contact-story { min-height: 0; padding: 0 8px; }
  .cs-story .contact-form-wrap { max-width: none; padding: 22px; border-radius: 20px; }
  .cs-story .contact-reassurance-grid { grid-template-columns: 1fr; }
  .cs-story .cta-button { white-space: normal; }
  .cs-story .story-collection { padding: 68px 22px; }
  .cs-story .story-cards { grid-template-columns: 1fr; }
  .cs-story .story-card { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-story *,
  .cs-story *::before,
  .cs-story *::after { transition: none !important; animation: none !important; }
}
