/* =========================================================
   CASE STUDIES HUB  (case-study.html, .csx)
   Revamped 2026-11-16 in the industry v2 look: light blush hero,
   Cormorant headings with an italic magenta accent, filterable card
   grid. No black anywhere: headings deep berry, text muted plum.
   ========================================================= */
.csx {
  --csx-ink: #5c1f4c;
  --csx-muted: #6b4a62;
  --csx-soft: #8a6a80;
  --csx-line: #f3dbe8;
  --csx-blush: #fdf3f8;
  --csx-magenta: #c73689;
  --csx-rose: #b33f86;
  --csx-grad: linear-gradient(135deg, #8f2a72 0%, #b33f86 50%, #c73689 100%);
  --csx-ease: cubic-bezier(.2, .7, .2, 1);
  overflow-x: clip;
  color: var(--csx-muted);
  font-family: var(--hm-body-font);
  background: #fff;
}
.csx *, .csx *::before, .csx *::after { box-sizing: border-box; }
.csx h1, .csx h2, .csx h3 { margin: 0; color: var(--csx-ink); font-family: var(--hm-heading-font); font-weight: 600; letter-spacing: 0; }
.csx h1 em, .csx h2 em { color: var(--csx-magenta); font-style: italic; }
.csx p { margin: 0; font-size: 16px; line-height: 1.65; }
.csx a { color: var(--csx-rose); text-decoration: none; }
.csx-wrap { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }

.csx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--csx-rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}
.csx-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.csx-head { max-width: 760px; margin-bottom: 40px; }
.csx-head h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
.csx-head p { margin-top: 14px; font-size: 17px; }
.csx-head--center { margin-right: auto; margin-left: auto; text-align: center; }
.csx-head--center .csx-eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }

/* buttons */
.csx-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.csx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: transform .25s var(--csx-ease), box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.csx-btn svg { flex: 0 0 auto; transition: transform .25s var(--csx-ease); }
.csx-btn:hover { transform: translateY(-2px); }
.csx-btn:hover svg { transform: translateX(3px); }
.csx a.csx-btn--solid { color: #fff; background: linear-gradient(135deg, #d6479a, var(--csx-magenta) 55%, #a52c72); box-shadow: 0 12px 30px rgba(199, 54, 137, .35); }
.csx a.csx-btn--solid:hover { color: #fff !important; box-shadow: 0 16px 36px rgba(199, 54, 137, .45); }
.csx a.csx-btn--line { color: var(--csx-rose); border-color: rgba(199, 54, 137, .55); background: #fff; }
.csx a.csx-btn--line:hover { color: #fff !important; border-color: var(--csx-magenta); background: var(--csx-magenta); }
.csx a.csx-btn--white { color: var(--csx-rose); background: #fff; box-shadow: 0 12px 30px rgba(91, 26, 74, .25); }
.csx a.csx-btn--white:hover { color: #8f2a72 !important; }
.csx a.csx-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }
.csx a.csx-btn--ghost:hover { color: #fff !important; border-color: #fff; background: rgba(255, 255, 255, .16); }

/* ---------- hero ---------- */
.csx-hero {
  position: relative;
  /* the theme header is position:absolute over the top of the page */
  padding: 196px 0 72px;
  background:
    radial-gradient(55% 70% at 90% 25%, rgba(242, 140, 195, .38), transparent 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(199, 54, 137, .12), transparent 60%),
    var(--csx-blush);
}
.csx-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.csx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; color: #9a7a90; font-size: 13px; list-style: none; }
.csx-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.csx-hero h1 { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.04; }
.csx-hero__sub { margin: 22px 0 32px !important; font-size: 18px !important; }
.csx-hero__media { position: relative; padding: 18px 18px 0 0; }
.csx-hero__shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 78%;
  border-radius: 34px;
  background: var(--csx-grad);
  opacity: .9;
  transform: rotate(4deg);
}
.csx-hero__img {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 28px;
  aspect-ratio: 5 / 4;
  background: #f6e3ee;
  box-shadow: 0 40px 70px -34px rgba(91, 26, 74, .55);
}
.csx-hero__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.csx-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 64px 0 0;
  padding: 8px;
  border: 1px solid var(--csx-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 24px 50px -30px rgba(91, 26, 74, .35);
  list-style: none;
}
.csx-stats li { padding: 20px 24px; }
.csx-stats li + li { border-left: 1px solid var(--csx-line); }
.csx-stats b { display: block; color: var(--csx-magenta); font-family: var(--hm-heading-font); font-size: 42px; font-weight: 600; line-height: 1; }
.csx-stats span { display: block; margin-top: 6px; color: var(--csx-soft); font-size: 13.5px; }

/* ---------- filter bar + grid ---------- */
.csx-sec { padding: 88px 0; }
#csx-list { scroll-margin-top: 90px; }
.csx-sec--blush { background: var(--csx-blush); }
.csx-toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.csx-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.csx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid var(--csx-line);
  border-radius: 999px;
  color: var(--csx-ink);
  background: #fff;
  font: 600 14px/1 var(--hm-body-font);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.csx-chip span { min-width: 24px; padding: 4px 7px; border-radius: 999px; color: var(--csx-rose); background: var(--csx-blush); font-size: 12px; text-align: center; }
.csx-chip:hover { border-color: rgba(199, 54, 137, .55); }
.csx-chip[aria-pressed="true"] { border-color: transparent; color: #fff; background: var(--csx-grad); }
.csx-chip[aria-pressed="true"] span { color: #fff; background: rgba(255, 255, 255, .22); }
.csx-chip:focus-visible, .csx-search input:focus-visible, .csx-empty button:focus-visible { outline: 3px solid rgba(199, 54, 137, .4); outline-offset: 2px; }
.csx-search { position: relative; flex: 0 1 300px; margin: 0; }
.csx-search svg { position: absolute; top: 50%; left: 16px; color: var(--csx-soft); transform: translateY(-50%); pointer-events: none; }
.csx-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--csx-line);
  border-radius: 999px;
  color: var(--csx-ink);
  background: #fff;
  font: 500 15px var(--hm-body-font);
}
.csx-search input::placeholder { color: var(--csx-soft); }
.csx-count { margin: 0 0 26px !important; color: var(--csx-soft); font-size: 14px !important; }

.csx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.csx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--csx-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px -32px rgba(91, 26, 74, .45);
  transition: transform .35s var(--csx-ease), box-shadow .35s ease, border-color .35s ease;
}
.csx-card[hidden] { display: none; }
.csx-card:hover { border-color: rgba(199, 54, 137, .35); box-shadow: 0 30px 60px -34px rgba(91, 26, 74, .55); transform: translateY(-4px); }
.csx-card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #f6e3ee; }
.csx-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--csx-ease); }
.csx-card:hover .csx-card__media img { transform: scale(1.05); }
/* a hotlinked photo that fails to load: the hotel's initials on the brand gradient */
.csx-card__media.is-missing, .csx-win__img.is-missing { background: var(--csx-grad); }
.csx-card__media.is-missing img, .csx-win__img.is-missing img { visibility: hidden; }
.csx-card__media.is-missing::after {
  content: attr(data-mono);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .92);
  font-family: var(--hm-heading-font);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: .04em;
}
.csx-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--csx-ink);
  background: rgba(255, 255, 255, .94);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.csx-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.csx-loc { display: flex; align-items: center; gap: 6px; margin-bottom: 8px !important; color: var(--csx-soft); font-size: 13px !important; font-weight: 600; }
.csx-loc i { color: var(--csx-magenta); }
.csx-card h3 { font-size: 26px; line-height: 1.15; }
.csx .csx-card h3 a { color: var(--csx-ink); }
.csx .csx-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 22px; }
.csx .csx-card h3 a:hover { color: var(--csx-ink) !important; }
.csx-card h3 a:focus-visible { outline: none; }
.csx-card:focus-within { box-shadow: 0 0 0 3px rgba(199, 54, 137, .45), 0 30px 60px -34px rgba(91, 26, 74, .55); }
.csx-card__head { margin-top: 10px !important; font-size: 15px !important; line-height: 1.55 !important; }
.csx-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--csx-blush);
}
.csx-stat b { color: var(--csx-magenta); font-family: var(--hm-heading-font); font-size: 28px; font-weight: 700; line-height: 1; }
.csx-stat span { color: var(--csx-muted); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.csx-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--csx-rose); font-size: 14px; font-weight: 700; }
.csx-more svg { transition: transform .25s var(--csx-ease); }
.csx-card:hover .csx-more svg { transform: translateX(4px); }
.csx-empty { padding: 48px 20px; border: 1.5px dashed var(--csx-line); border-radius: 22px; text-align: center; }
.csx-empty[hidden] { display: none; }
.csx-empty button { margin-left: 6px; padding: 0; border: 0; color: var(--csx-rose); background: none; font: 700 16px var(--hm-body-font); text-decoration: underline; cursor: pointer; }

/* ---------- more client wins ---------- */
.csx-wins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.csx-win { display: grid; grid-template-columns: 200px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--csx-line); border-radius: 22px; background: #fff; }
.csx-win__img { position: relative; min-height: 100%; background: #f6e3ee; }
.csx-win__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.csx-win__body { padding: 24px 26px; }
.csx-win h3 { font-size: 24px; line-height: 1.15; }
.csx-win .csx-stat { margin: 12px 0 14px; }
.csx-win p { font-size: 15px; }
.csx-win p + p { margin-top: 10px; }
.csx-win p b { color: var(--csx-rose); font-weight: 700; }

/* ---------- takeover steps ---------- */
.csx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; counter-reset: csx; }
.csx-steps li { position: relative; padding: 30px 28px; border: 1px solid var(--csx-line); border-radius: 22px; background: #fff; counter-increment: csx; }
.csx-steps li::before {
  content: "0" counter(csx);
  display: block;
  margin-bottom: 14px;
  color: transparent;
  font-family: var(--hm-heading-font);
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1.2px var(--csx-magenta);
}
.csx-steps h3 { margin-bottom: 10px; font-size: 24px; }

/* ---------- CTA ---------- */
.csx-cta { padding: 0 0 88px; }
.csx-cta__box {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 32px;
  align-items: center;
  padding: 56px 60px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(70% 80% at 100% 0%, rgba(242, 140, 195, .35), transparent 60%),
    var(--csx-grad);
  box-shadow: 0 40px 80px -40px rgba(143, 42, 114, .7);
}
.csx .csx-cta__box h2 { color: #fff; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.csx .csx-cta__box h2 em { color: #ffd6ec; }
.csx-cta__box p { margin-top: 12px !important; color: rgba(255, 255, 255, .88); font-size: 17px !important; }

/* ---------- responsive ---------- */
@media (min-width: 992px) and (max-width: 1199px) {
  .csx-hero { padding-top: 250px; }
}
@media (max-width: 1199px) {
  .csx-grid { gap: 22px; }
  .csx-win { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 991px) {
  .csx-hero { padding-top: 170px; }
  .csx-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .csx-hero__media { max-width: 620px; }
  .csx-stats { grid-template-columns: repeat(2, 1fr); }
  .csx-stats li:nth-child(3) { border-left: 0; }
  .csx-stats li:nth-child(n+3) { border-top: 1px solid var(--csx-line); }
  .csx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csx-wins, .csx-steps { grid-template-columns: 1fr; }
  .csx-cta__box { grid-template-columns: 1fr; padding: 44px 36px; }
  .csx-sec { padding: 68px 0; }
}
@media (max-width: 767px) {
  .csx-wrap { padding: 0 16px; }
  .csx-hero { padding: 140px 0 52px; }
  .csx-hero__sub { font-size: 16px !important; }
  .csx-stats { margin-top: 44px; }
  .csx-stats li { padding: 16px 14px; }
  .csx-stats b { font-size: 34px; }
  .csx-toolbar { align-items: stretch; }
  .csx-chips { flex-wrap: nowrap; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
  .csx-chips::-webkit-scrollbar { display: none; }
  .csx-chip { flex: 0 0 auto; }
  .csx-search { flex: 1 1 100%; }
  .csx-grid { grid-template-columns: 1fr; }
  .csx-win { grid-template-columns: 1fr; }
  .csx-win__img { aspect-ratio: 16 / 9; min-height: 0; }
  .csx-cta { padding-bottom: 64px; }
  .csx-cta__box { padding: 36px 24px; border-radius: 24px; }
  .csx-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .csx-card, .csx-card__media img, .csx-btn, .csx-more svg { transition: none; }
  .csx-card:hover, .csx-btn:hover { transform: none; }
  .csx-card:hover .csx-card__media img { transform: none; }
}
