/* ================================================================
   CASE STUDY SHELL — reusable layout & components
   To theme a new project, override the --cs-* tokens on the
   page's .case-study element. No other changes needed.
   ================================================================ */
.case-study ::selection {
  background: var(--cs-highlight);
  color: #fff;
}

.case-study {
  --cs-primary: #0a2a5e;
  --cs-primary-deep: #06224d;
  --cs-accent: #1f4ef5;
  --cs-highlight: #f5921e;
  --cs-ink: #15233c;
  --cs-muted: #5e6b82;
  --cs-line: #e7ebf2;
  --cs-paper: #ffffff;
  --cs-white: #ffffff;
  --cs-sans: "Roboto","Inter","Segoe UI",Arial,sans-serif;
  --cs-serif: "Literata",Georgia,serif;
  --cs-max: 1200px;
  font-family: var(--cs-sans);
  color: var(--cs-ink);
  background: var(--cs-paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.case-study * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.case-study img {
  box-sizing: content-box;
}
.case-study .hero {
  background: radial-gradient(120% 90% at 85% -10%, rgba(245, 146, 30, 0.22), transparent 55%), linear-gradient(160deg, var(--cs-primary) 0%, var(--cs-primary-deep) 100%);
  color: #fff;
  padding: 64px 0;
  overflow: hidden;
  position: relative;
}
.case-study .hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.case-study .hero h1 {
  font-family: var(--cs-sans);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.case-study .hero h1 .accent {
  color: var(--cs-highlight);
  font-style: italic;
}
.case-study .hero p.lead {
  font-size: 18px;
  color: #d6def0;
  max-width: 30em;
  margin-bottom: 30px;
}
.case-study .hero .ov-grid .cell h3 {
  margin-bottom: 8px;
}
.case-study .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  position: relative;
}
.case-study .hero-grid > * {
  min-width: 0;
}
.case-study .back-link {
  display: flex;
  width: max-content;
}

.case-study .tagpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cdd8ee;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 26px;
}
.case-study .tagpill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs-highlight);
}
.case-study .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.case-study .meta-row div span {
  display: block;
}
.case-study .meta-row .k {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8ea3c9;
  margin-bottom: 4px;
}
.case-study .meta-row .v {
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}
.case-study .hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
  gap: 24px;
}
.case-study .hero-phone img {
  border-radius: 12px;
  border: 0px solid #eeeeee;
  background-clip: padding-box;
  box-sizing: content-box;
}
.case-study section {
  padding: 64px 0;
}
.case-study section:not(.band) + section:not(.band) {
  padding-top: 0;
}
.case-study .eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cs-highlight);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}
.case-study h2 {
  font-family: var(--cs-sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--cs-primary);
}
.case-study h3 {
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--cs-ink);
}
.case-study p.body {
  color: var(--cs-muted);
  font-size: 16.5px;
}
.case-study .lede {
  font-size: 16px;
  color: var(--cs-ink);
}
.case-study .ov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--cs-line);
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 28px;
}
.case-study .ov-grid .cell {
  background: var(--cs-white);
  padding: 30px 28px;
}
.case-study .ov-grid .cell h3 {
  color: var(--cs-primary);
}
.case-study .ov-grid .cell p {
  color: var(--cs-muted);
  font-size: 15px;
}
.case-study .ov-grid .cell .num {
  font-family: var(--cs-serif);
  font-size: 13px;
  color: var(--cs-highlight);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
.case-study .band {
  background: var(--cs-primary);
  color: #fff;
}
.case-study .band h2 {
  color: #fff;
}
.case-study .band .eyebrow {
  color: var(--cs-highlight);
}
.case-study .prob-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.case-study .prob-right {
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-study .prob-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
}
.case-study .prob-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 22px 20px;
}
.case-study .prob-card h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
}
.case-study .prob-card p {
  color: #b8c4dc;
  font-size: 14px;
}
.case-study .feat {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
  margin-top: 44px;
}
.case-study .feat:first-of-type {
  margin-top: 0;
}
.case-study .feat.flip {
  grid-template-columns: 1.05fr 0.95fr;
}
.case-study .feat.flip .feat-text {
  order: 2;
}
.case-study .feat.flip .feat-media {
  order: 1;
}
.case-study .feat-text .step {
  font-family: var(--cs-serif);
  font-size: 14px;
  color: var(--cs-highlight);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.case-study .feat-text ul {
  list-style: none;
  margin-top: 18px;
}
.case-study .feat-text li {
  position: relative;
  padding-left: 24px;
  color: var(--cs-muted);
  font-size: 15.5px;
  margin-bottom: 10px;
}
.case-study .feat-text li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cs-highlight);
  transform: rotate(45deg);
}
.case-study .feat-media {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: flex-start;
}
.case-study .shot {
  max-width: 250px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  background: var(--cs-white);
}
.case-study .shot.sm {
  width: 200px;
}
.case-study .duo .shot:nth-child(2) {
  transform: translateY(0px);
}
.case-study .feat-carousel {
  width: 100%;
  flex-direction: column;
  align-items: center;
}
.case-study .feat-carousel .feat-carousel-track {
  display: grid;
  width: 100%;
}
.case-study .feat-carousel .feat-carousel-slide {
  grid-area: 1/1;
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.case-study .feat-carousel .feat-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.case-study .feat-carousel .feat-carousel-slide.duo .shot:nth-child(2) {
  transform: translateY(0px);
}
.case-study .feat-carousel .feat-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.case-study .feat-carousel .feat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--cs-line);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.case-study .feat-carousel .feat-dot.active {
  background: var(--cs-highlight);
}
.case-study .roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.case-study .role {
  background: var(--cs-white);
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  padding: 26px 24px;
}
.case-study .role .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--cs-accent);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  font-weight: 600;
}
.case-study .role:nth-child(2) .tag {
  background: var(--cs-highlight);
}
.case-study .role:nth-child(3) .tag {
  background: var(--cs-primary);
}
.case-study .role h3 {
  font-size: 17px;
}
.case-study .role p {
  color: var(--cs-muted);
  font-size: 14.5px;
}
.case-study .swatches {
  display: flex;
  gap: 14px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}
.case-study .brand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.case-study .icon-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.case-study .icon-set-label {
  font-size: 16px;
  color: #8090b0;
  margin-top: 24px;
  text-align: center;
}
.case-study .icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: center;
  justify-items: center;
}
.case-study .icon-grid img {
  width: 48px;
  max-width: 100%;
  height: auto;
}
.case-study .type-specimen {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-study .type-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.case-study .type-row .type-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6a8a;
  width: 80px;
  flex-shrink: 0;
}
.case-study .type-row .type-sample {
  font-family: var(--cs-sans);
  color: #fff;
  line-height: 1.1;
}
.case-study .sw {
  text-align: center;
}
.case-study .sw .chip {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  border: 1px solid var(--cs-line);
  margin-bottom: 8px;
}
.case-study .sw small {
  font-size: 11px;
  color: var(--cs-white);
  letter-spacing: 0.04em;
}
.case-study .gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.case-study .gallery img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #eeeeee;
}
.case-study .gallery .mobile-only {
  display: none;
}
@media (max-width: 860px) {
  .case-study .gallery .mobile-only {
    display: block;
  }
}
.case-study .dashboard-shot {
  display: block;
  width: 100%;
  margin-top: 26px;
  border-radius: 12px;
  border: none;
  box-shadow: none;
  transition: opacity 0.2s;
}
@media (min-width: 1200px) {
  .case-study .dashboard-shot {
    cursor: zoom-in;
  }
  .case-study .dashboard-shot:hover {
    opacity: 0.88;
  }
}
.case-study .out {
  background: linear-gradient(160deg, var(--cs-white), #eef2f9);
  border: 1px solid var(--cs-line);
  border-radius: 22px;
  padding: 40px;
  margin-top: 24px;
}
.case-study .out-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.case-study .stat .n {
  /*font-family: var(--cs-serif);*/
  font-weight: 600;
  font-size: 42px;
  color: var(--cs-primary);
  line-height: 1;
}
.case-study .stat .n em {
  color: var(--cs-highlight);
  font-style: normal;
}
.case-study .stat p {
  color: var(--cs-muted);
  font-size: 14.5px;
  margin-top: 8px;
}
.case-study .reflect {
  margin-top: 28px;
  border-left: 3px solid var(--cs-highlight);
  padding-left: 22px;
}
.case-study .reflect p {
  font-family: var(--cs-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--cs-ink);
}
.case-study footer {
  background: var(--cs-primary-deep);
  color: #9fb1d4;
  padding: 46px 0;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: 0.03em;
}
.case-study footer .logo {
  font-family: var(--cs-serif);
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
}
.case-study footer .logo i {
  color: var(--cs-highlight);
  font-style: normal;
}
.case-study .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.case-study .reveal.in {
  opacity: 1;
  transform: none;
}
@media (max-width: 860px) {
  .case-study .hero {
    padding: 40px 0;
  }
  .case-study section,
  .case-study section.band {
    padding: 36px 0;
  }
  .case-study .hero-grid,
  .case-study .feat,
  .case-study .feat.flip,
  .case-study .prob-split,
  .case-study .brand-split {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .case-study .feat.flip .feat-text {
    order: 0;
  }
  .case-study .feat.flip .feat-media {
    order: 0;
  }
  .case-study .ov-grid,
  .case-study .prob-grid,
  .case-study .roles,
  .case-study .out-grid {
    grid-template-columns: 1fr;
  }
  .case-study .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .case-study .gallery img {
    max-width: 320px;
    margin: 0 auto;
  }
  .case-study .hero-phone img {
    transform: none;
    margin-top: 10px;
  }
  .case-study .duo .shot:nth-child(2) {
    transform: none;
  }
  .case-study .feat-media {
    min-width: 0;
  }
  .case-study .feat-media.duo .shot {
    max-width: calc(50% - 9px);
  }
  .case-study .feat-carousel .feat-carousel-slide.duo .shot {
    max-width: calc(50% - 9px);
    width: 100%;
  }
}
@media (max-width: 1024px) {
  .case-study .hero-grid {
    gap: 32px;
  }
  .case-study .hero h1 {
    font-size: clamp(34px, 5vw, 64px);
  }
  .case-study .hero p.lead {
    max-width: 26em;
    font-size: 17px;
  }
  .case-study .meta-row {
    gap: 22px;
  }
}

.case-nav {
  background: var(--cs-white);
  border-bottom: 1px solid var(--cs-line);
  position: sticky;
  top: var(--nav-height, 61px);
  z-index: 200;
}
.case-nav::before,
.case-nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 1;
  transition: opacity .2s;
}
.case-nav::before {
  left: 0;
  background: linear-gradient(to right, var(--cs-white), transparent);
}
.case-nav::after {
  right: 0;
  background: linear-gradient(to left, var(--cs-white), transparent);
}
.case-nav.no-left::before  { opacity: 0; }
.case-nav.no-right::after  { opacity: 0; }

.case-nav-inner {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.case-nav-inner::-webkit-scrollbar {
  display: none;
}

.case-nav-item {
  padding: 13px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cs-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}
@media (max-width: 640px) {
  .case-nav-inner {
    padding: 0 8px;
  }
  .case-nav-item {
    padding: 11px 8px;
    font-size: 11.5px;
  }
  .case-nav-item[data-short] {
    font-size: 0;
  }
  .case-nav-item[data-short]::after {
    content: attr(data-short);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
  }
}
.case-nav-item:hover, .case-nav-item.active {
  color: var(--cs-primary);
  border-bottom-color: var(--cs-accent);
}

.case-inner {
  max-width: var(--cs-max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

@media (min-width: 1231px) {
  .case-study .gallery img {
    width: 375px;
  }
  .case-study .roles {
    grid-template-columns: repeat(3, 375px);
  }
}

/* Explore nav (section-explore) */
.outcome-module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 36px;
}
@media (max-width: 640px) {
  .outcome-module-grid { grid-template-columns: 1fr 1fr; }
}
.outcome-module-card {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.outcome-module-card:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.outcome-module-label {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
.outcome-module-arrow { color: rgba(255,255,255,.4); margin-left: 4px; }
