:root {
  --rep-case-bg: #1a1a19;
  --rep-case-panel: #20251f;
  --rep-case-panel-deep: #131714;
  --rep-case-copy: #f4efe4;
  --rep-case-muted: #b8bdb4;
  --rep-case-line: rgba(244, 239, 228, .15);
  --rep-case-lime: #caff4d;
  --rep-case-green: #1e4f35;
  --rep-case-font: 'Poppins', Arial, sans-serif;
  --rep-case-serif: 'Instrument Serif', Georgia, serif;
}

html { background: var(--rep-case-bg) !important; }
body[data-page-name="case_studies"] {
  min-width: 0;
  overflow-x: hidden;
  background: var(--rep-case-bg) !important;
  color: var(--rep-case-copy) !important;
  font-family: var(--rep-case-font) !important;
}
body[data-page-name="case_studies"] * { box-sizing: border-box; }
body[data-page-name="case_studies"] .global-site-nav { background: rgba(12, 14, 12, .96) !important; }
body[data-page-name="case_studies"] .rep-case-page { background: var(--rep-case-bg) !important; }
body[data-page-name="case_studies"] h1,
body[data-page-name="case_studies"] h2,
body[data-page-name="case_studies"] h3,
body[data-page-name="case_studies"] h4,
body[data-page-name="case_studies"] p { margin: 0; }

.rep-case-wrap { width: min(calc(100% - clamp(40px, 8vw, 128px)), 1320px); margin-inline: auto; }
.rep-case-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.rep-case-eyebrow,
.rep-case-category { font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: .17em; text-transform: uppercase; }

.rep-case-hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding-block: clamp(108px, 12vw, 174px);
  border-bottom: 1px solid var(--rep-case-line);
  background: #1a1a19 !important;
}
.rep-case-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .72;
  background-image:
    linear-gradient(rgba(202, 255, 77, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 255, 77, .045) 1px, transparent 1px),
    radial-gradient(circle at 82% 34%, rgba(202, 255, 77, .11), transparent 28%);
  background-size: 52px 52px, 52px 52px, auto;
  mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, .78) 62%, transparent);
}
.rep-case-hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: clamp(40px, 9vw, 150px);
  width: clamp(180px, 24vw, 360px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rep-case-lime));
  box-shadow: 0 -56px 0 rgba(202, 255, 77, .14), 0 56px 0 rgba(202, 255, 77, .08);
  opacity: .65;
}
.rep-case-hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); align-items: end; gap: clamp(52px, 8vw, 120px); }
.rep-case-hero-copy { position: relative; z-index: 2; }
.rep-case-eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; color: var(--rep-case-lime); }
.rep-case-eyebrow > span { width: 36px; height: 2px; background: var(--rep-case-lime); box-shadow: 0 0 16px rgba(202, 255, 77, .35); }
.rep-case-title { max-width: 900px; font-size: clamp(72px, 10vw, 144px); font-weight: 600; line-height: .87; letter-spacing: -.075em; }
.rep-case-title span { color: var(--rep-case-lime); }
.rep-case-hero-intro { position: relative; z-index: 2; padding-top: 30px; border-top: 1px solid var(--rep-case-line); }
.rep-case-hero-intro > p { max-width: 560px; color: #d0d3cc; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.68; }
.rep-case-hero-index { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 38px; color: rgba(244, 239, 228, .48); font-size: 10px; font-weight: 600; letter-spacing: .11em; }
.rep-case-hero-index i { width: 4px; height: 4px; border-radius: 50%; background: var(--rep-case-lime); }

.rep-case-section { padding-block: clamp(82px, 9vw, 132px); }
.rep-case-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 50px); padding-bottom: 20px; border-bottom: 1px solid var(--rep-case-line); }
.rep-case-section-head h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 600; line-height: 1.04; letter-spacing: -.05em; }
.rep-case-section-head > span { color: var(--rep-case-lime); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.rep-case-featured { background: #171a18 !important; }
.rep-case-feature-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); min-height: 590px; overflow: hidden; border: 1px solid rgba(202, 255, 77, .28); border-radius: 34px; background: linear-gradient(145deg, #20251f, #151916 70%); box-shadow: 0 34px 90px rgba(0, 0, 0, .28); }
.rep-case-feature-index { position: absolute; z-index: 2; top: 26px; right: 28px; color: rgba(244, 239, 228, .48); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.rep-case-feature-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(42px, 5.5vw, 78px); }
.rep-case-category { color: var(--rep-case-lime); }
.rep-case-feature-copy h3 { max-width: 790px; margin-top: 24px; font-size: clamp(40px, 5vw, 68px); font-weight: 600; line-height: 1.04; letter-spacing: -.055em; }
.rep-case-feature-copy h4 { margin-top: 16px; color: #d6d9d2; font-family: var(--rep-case-serif); font-size: clamp(29px, 3vw, 43px); font-style: italic; font-weight: 400; line-height: 1.08; }
.rep-case-description { margin-top: 24px !important; color: var(--rep-case-muted); font-size: 16px; line-height: 1.75; }
.rep-case-feature-copy .rep-case-description { max-width: 740px; font-size: 17px; }
.rep-case-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.rep-case-chips span { display: inline-flex; align-items: center; min-height: 34px; padding: 8px 11px; color: #dfe2da; border: 1px solid rgba(202, 255, 77, .23); border-radius: 999px; background: rgba(202, 255, 77, .055); font-size: 11px; font-weight: 600; line-height: 1.35; letter-spacing: .045em; }
.rep-case-action { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 56px; margin-top: 36px; padding: 15px 25px; border-radius: 999px; background: var(--rep-case-lime); color: #101510; font-size: 15px; font-weight: 600; transition: transform .2s ease, background-color .2s ease; }
.rep-case-action:hover { transform: translateY(-2px); background: #ddff8c; }
.rep-case-action span { font-size: 19px; }
.rep-case-feature-proof { position: relative; display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 32px; padding: clamp(44px, 5vw, 72px); border-left: 1px solid rgba(202, 255, 77, .18); background: linear-gradient(160deg, rgba(202, 255, 77, .1), rgba(202, 255, 77, .015)); }
.rep-case-feature-proof::before { content: ''; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(circle, rgba(202, 255, 77, .45) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(#000, transparent 78%); }
.rep-case-proof-stat,
.rep-case-proof-rule,
.rep-case-feature-proof > p { position: relative; z-index: 1; }
.rep-case-proof-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(202, 255, 77, .2); }
.rep-case-proof-stat strong { color: var(--rep-case-lime); font-size: clamp(54px, 6vw, 86px); font-weight: 600; line-height: .85; letter-spacing: -.06em; }
.rep-case-proof-stat span { max-width: 120px; color: #d9ddd3; font-size: 11px; font-weight: 600; line-height: 1.45; letter-spacing: .12em; text-align: right; }
.rep-case-proof-rule { height: 1px; background: linear-gradient(90deg, var(--rep-case-lime), transparent); }
.rep-case-feature-proof > p { color: rgba(244, 239, 228, .58); font-size: 10px; font-weight: 600; letter-spacing: .13em; }

.rep-case-latest { background: var(--rep-case-bg) !important; }
.rep-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rep-case-card { display: flex; min-width: 0; min-height: 590px; flex-direction: column; padding: 31px 30px 29px; border: 1px solid var(--rep-case-line); border-radius: 28px; background: var(--rep-case-panel); transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.rep-case-card:hover { transform: translateY(-5px); border-color: rgba(202, 255, 77, .36); box-shadow: 0 30px 70px rgba(0, 0, 0, .23); }
.rep-case-card-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 25px; }
.rep-case-card-top > span { color: rgba(244, 239, 228, .5); font-size: 11px; font-weight: 600; letter-spacing: .14em; }
.rep-case-card-top .rep-case-category { color: var(--rep-case-lime); text-align: right; }
.rep-case-card h3 { margin-top: 32px; font-size: clamp(29px, 2.6vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; }
.rep-case-card h4 { margin-top: 14px; color: #d4d7cf; font-family: var(--rep-case-serif); font-size: 27px; font-style: italic; font-weight: 400; line-height: 1.1; }
.rep-case-card .rep-case-description { font-size: 16px; }
.rep-case-publication { margin-top: 22px !important; padding: 16px 0 0; border-top: 1px solid rgba(202, 255, 77, .2); color: #d8dbd4; font-size: 13px; line-height: 1.65; }
.rep-case-publication a { display: inline-flex; gap: 6px; margin-left: 3px; color: var(--rep-case-lime); font-weight: 600; white-space: nowrap; }
.rep-case-card .rep-case-chips { margin-top: 24px; }
.rep-case-card-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; margin-top: auto; padding-top: 25px; border-top: 1px solid var(--rep-case-line); color: var(--rep-case-copy); font-size: 15px; font-weight: 600; }
.rep-case-card-link span { color: var(--rep-case-lime); font-size: 20px; transition: transform .2s ease; }
.rep-case-card-link:hover span { transform: translate(3px, -3px); }

.rep-case-quote { align-self: center; margin: clamp(40px, 5vw, 70px); padding: 34px; border: 1px solid rgba(202, 255, 77, .24); border-radius: 24px; background: rgba(202, 255, 77, .06); }
.rep-case-quote p { font-size: clamp(23px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -.03em; }
.rep-case-quote footer { margin-top: 24px; color: var(--rep-case-muted); font-size: 13px; line-height: 1.55; }
.rep-case-named-grid { padding-top: 0; }
.rep-case-named-grid .rep-case-grid { grid-template-columns: minmax(0, 1fr); }
.rep-case-named-grid .rep-case-card { min-height: 0; }

.rep-case-page > .rep-heartbeats-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 108px;
  padding: 27px max(24px, calc((100% - 1320px) / 2));
  color: #101510;
  background: var(--rep-case-lime);
  font-family: var(--rep-case-font);
  text-decoration: none;
  transition: background-color .2s ease;
}
.rep-case-page > .rep-heartbeats-banner:hover { background: #ddff8c; }
.rep-case-page > .rep-heartbeats-banner:focus-visible { outline: 3px solid #f4efe4; outline-offset: -5px; }
.rep-case-page > .rep-heartbeats-banner .rep-heartbeats-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #101510;
  color: var(--rep-case-lime);
  font-size: 19px;
  line-height: 1;
}
.rep-case-page > .rep-heartbeats-banner strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}
.rep-case-page > .rep-heartbeats-banner small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.rep-case-page > .rep-heartbeats-banner .rep-heartbeats-arrow {
  font-size: 28px;
  line-height: 1;
  transition: transform .2s ease;
}
.rep-case-page > .rep-heartbeats-banner:hover .rep-heartbeats-arrow { transform: translateX(4px); }

.rep-case-footer { background: #111411 !important; }
body[data-page-name="case_studies"] .rep-case-footer .wordmark { font-family: var(--rep-case-font) !important; }

.rep-js .rep-reveal:not(.rep-no-anim) { opacity: 0; transform: translateY(22px); transition: opacity .72s ease, transform .72s cubic-bezier(.2, .72, .2, 1); }
.rep-js .rep-reveal.rep-in-view:not(.rep-no-anim) { opacity: 1; transform: none; }
.rep-js .rep-case-card:nth-child(2) { transition-delay: 80ms; }
.rep-js .rep-case-card:nth-child(3) { transition-delay: 160ms; }

@media (max-width: 1040px) {
  .rep-case-feature-card { grid-template-columns: 1fr; }
  .rep-case-feature-proof { min-height: 390px; border-top: 1px solid rgba(202, 255, 77, .18); border-left: 0; }
  .rep-case-grid { grid-template-columns: 1fr 1fr; }
  .rep-case-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .rep-case-wrap { width: min(calc(100% - 40px), 1320px); }
  .rep-case-hero { min-height: 0; padding-block: 78px 88px; }
  .rep-case-hero::after { display: none; }
  .rep-case-hero-layout { grid-template-columns: 1fr; gap: 46px; }
  .rep-case-title { font-size: clamp(60px, 18vw, 98px); }
  .rep-case-hero-intro { max-width: 630px; }
  .rep-case-section { padding-block: 72px; }
  .rep-case-grid { grid-template-columns: 1fr; }
  .rep-case-card:last-child { grid-column: auto; }
  .rep-case-card { min-height: 540px; }
  .rep-case-feature-index { top: 19px; right: 21px; }
  .rep-case-feature-proof { min-height: 330px; }
  .rep-case-quote { margin: 0 24px 34px; }
  .rep-case-page > .rep-heartbeats-banner { padding-inline: 20px; }
}

@media (max-width: 520px) {
  .rep-case-wrap { width: min(calc(100% - 30px), 1320px); }
  .rep-case-eyebrow,
  .rep-case-category { font-size: 11px; }
  .rep-case-hero-index { display: grid; grid-template-columns: auto 4px auto 4px auto; gap: 7px; font-size: 8px; }
  .rep-case-section-head { align-items: flex-end; }
  .rep-case-section-head > span { max-width: 110px; text-align: right; }
  .rep-case-feature-card { border-radius: 24px; }
  .rep-case-feature-copy { padding: 55px 24px 36px; }
  .rep-case-feature-copy h3 { font-size: 38px; }
  .rep-case-feature-copy h4 { font-size: 30px; }
  .rep-case-feature-copy .rep-case-description { font-size: 16px; }
  .rep-case-action { width: 100%; }
  .rep-case-feature-proof { padding: 38px 24px; }
  .rep-case-proof-stat { align-items: flex-end; }
  .rep-case-proof-stat strong { font-size: 58px; }
  .rep-case-card { min-height: 520px; padding: 27px 24px 25px; border-radius: 23px; }
  .rep-case-card h3 { font-size: 31px; }
  .rep-case-card h4 { font-size: 25px; }
  .rep-case-chips span { font-size: 10px; }
  .rep-case-page > .rep-heartbeats-banner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 112px;
    padding-block: 22px;
  }
  .rep-case-page > .rep-heartbeats-banner .rep-heartbeats-icon { width: 42px; height: 42px; }
  .rep-case-page > .rep-heartbeats-banner strong { font-size: 16px; }
  .rep-case-page > .rep-heartbeats-banner small { font-size: 13px; }
  .rep-case-page > .rep-heartbeats-banner .rep-heartbeats-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rep-js .rep-reveal:not(.rep-no-anim) { opacity: 1; transform: none; transition: none; }
  .rep-case-card,
  .rep-case-action,
  .rep-case-card-link span { transition: none; }
  .rep-case-card:hover,
  .rep-case-action:hover { transform: none; }
}
