/* ============================================================
   Case study pages — styles specific to /case-studies/.
   Builds on shared classes in assets/css/site.css (buttons,
   te-eyebrow, section-header, stats band, CTA band).
   ============================================================ */

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.trs-cs-hero { position: relative; background: var(--graphite-900); color: #fff; overflow: hidden; }
.trs-cs-hero__dotgrid {
  position: absolute; inset: 0; opacity: 0.6;
  background-image: radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}
.trs-cs-hero__glow {
  position: absolute; top: -180px; right: -120px;
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(186,31,57,0.35), transparent 70%);
  pointer-events: none;
}
.trs-cs-hero__grid {
  position: relative; padding: 84px var(--gutter) 76px; display: grid;
  grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}

.trs-cs-breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; font-family: var(--font-sans); font-size: 13px; }
.trs-cs-breadcrumb a { color: var(--graphite-400); text-decoration: none; }
.trs-cs-breadcrumb a:hover { color: #fff; }
.trs-cs-breadcrumb span:not([aria-current]) { color: var(--graphite-500); }
.trs-cs-breadcrumb [aria-current] { color: #fff; font-weight: 700; }

.trs-cs-hero__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 4.4vw, 3.8rem); line-height: 1.02;
  letter-spacing: -0.02em; text-transform: uppercase; color: #fff; margin: 18px 0 20px;
}
.trs-cs-hero__title em { font-style: normal; color: var(--brand); }
.trs-cs-hero__body { font-family: var(--font-sans); font-size: 18px; line-height: 1.6; color: var(--graphite-300); max-width: 50ch; margin: 0 0 32px; }
.trs-cs-hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.trs-cs-hero__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); border: 1px solid var(--graphite-700); background: var(--graphite-800);
}
.trs-cs-hero__media img { width: 100%; height: auto; display: block; }
.trs-cs-hero__caption {
  font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0.04em; color: var(--graphite-400);
  margin: 12px 0 0; text-align: right;
}

/* ---------------------------------------------------------------
   Challenge / Objectives / Solution panels
   --------------------------------------------------------------- */
.trs-cs-panels { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.trs-cs-panel {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-top: 4px solid var(--graphite-600); border-radius: var(--radius-md);
  padding: var(--space-8); box-shadow: var(--shadow-xs);
}
.trs-cs-panel--challenge { border-top-color: var(--brand); }
.trs-cs-panel--objectives { border-top-color: var(--accent); }
.trs-cs-panel--solution { border-top-color: var(--secondary); }
.trs-cs-panel__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font-family: var(--font-sans); font-weight: 700; font-size: 12px;
  letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--brand);
}
.trs-cs-panel--objectives .trs-cs-panel__eyebrow { color: var(--amber-600); }
.trs-cs-panel--solution .trs-cs-panel__eyebrow { color: var(--secondary); }
.trs-cs-panel__eyebrow > span:first-child { width: 26px; height: 3px; background: currentColor; flex-shrink: 0; }
.trs-cs-panel__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.1; letter-spacing: -0.01em; text-transform: uppercase; color: var(--text-strong); margin: 0 0 var(--space-4);
}
.trs-cs-panel p { font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7; color: var(--text-body); margin: 0 0 var(--space-4); }
.trs-cs-panel p:last-child { margin-bottom: 0; }

/* Objectives checklist */
.trs-cs-objectives { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.trs-cs-objectives li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6; color: var(--text-body);
}
.trs-cs-objectives svg { flex-shrink: 0; margin-top: 3px; color: var(--amber-600); }

/* ---------------------------------------------------------------
   Solution — runs the full container width rather than the 60ch
   column .trs-section-header normally caps its content at, so it
   lines up with the before/after figures below it. The prose sits
   in two columns so filling that width doesn't produce
   unreadably long lines.
   --------------------------------------------------------------- */
.trs-cs-solution-head { max-width: none; }
.trs-cs-solution-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-10);
  margin-top: var(--space-5);
}
.trs-cs-solution-body p {
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7;
  color: var(--text-body); margin: 0;
}

/* ---------------------------------------------------------------
   Before / after comparison
   --------------------------------------------------------------- */
.trs-cs-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin-top: var(--space-10); }
.trs-cs-figure { margin: 0; }
.trs-cs-figure__frame {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--color-border-strong); background: var(--white); box-shadow: var(--shadow-sm);
}
.trs-cs-figure__frame img { width: 100%; height: auto; display: block; }
.trs-cs-figure__tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-weight: 700; font-size: 11.5px;
  letter-spacing: var(--ls-overline); text-transform: uppercase;
  background: var(--graphite-900); color: #fff;
}
.trs-cs-figure__tag--after { background: var(--brand); }
.trs-cs-figure figcaption {
  font-family: var(--font-sans); font-size: 0.9375rem; line-height: 1.6;
  color: var(--text-muted); margin-top: var(--space-3);
}
/* ---------------------------------------------------------------
   Pull quote
   --------------------------------------------------------------- */
.trs-cs-quote { position: relative; background: var(--graphite-900); overflow: hidden; padding: 84px 0; }
.trs-cs-quote__stripes {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: repeating-linear-gradient(-45deg, #fff 0 18px, transparent 18px 36px);
}
.trs-cs-quote__inner { position: relative; max-width: 74ch; }
.trs-cs-quote__mark {
  font-family: var(--font-display); font-weight: 800; font-size: 5rem; line-height: 0.7;
  color: var(--brand); display: block; margin-bottom: var(--space-4);
}
.trs-cs-quote blockquote {
  font-family: var(--font-serif); font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.5;
  color: #fff; margin: 0 0 var(--space-6); font-style: italic;
}
.trs-cs-quote__attr { font-family: var(--font-sans); font-size: 0.9375rem; color: var(--graphite-300); margin: 0; }
.trs-cs-quote__attr strong { display: block; color: #fff; font-weight: 700; letter-spacing: 0.02em; }

/* ---------------------------------------------------------------
   Conclusion
   --------------------------------------------------------------- */
.trs-cs-conclusion { max-width: var(--container-prose); }
.trs-cs-conclusion p { font-family: var(--font-sans); font-size: 1.125rem; line-height: 1.75; color: var(--text-body); margin: var(--space-4) 0 0; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 900px) {
  .trs-cs-hero__grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 56px; }
  .trs-cs-hero__caption { text-align: left; }
  .trs-cs-panels { grid-template-columns: 1fr; }
  .trs-cs-compare { grid-template-columns: 1fr; }
  .trs-cs-solution-body { grid-template-columns: 1fr; gap: var(--space-4); }
}
