/* RuhCraft case study template (child theme). Built from the local demo case-study/case-study.css; every rule is scoped to .rc-cs. */
.rc-cs {
  --ink: #0d1b19;
  --ink-deep: #0a1412;
  --teal: #20433d;
  --lime: #b0ce52;
  --lime-bright: #c9f36b;
  --charcoal: #222;
  --text: #555;
  --line: #e4e4df;
  --soft: #f4f5ef;
  --on-dark: rgba(255, 255, 255, .72);
  --on-dark-line: rgba(255, 255, 255, .12);
  --font-head: 'Vend Sans', system-ui, sans-serif;
  --font-body: 'Zalando Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 3.2vw, 60px);
  --wrap: 1495px;
  --sec: clamp(72px, 6.25vw, 120px);
  --row-gap: clamp(64px, 5.2vw, 100px);
}
.rc-cs { font: 400 17px/1.65 var(--font-body); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
.rc-cs h1, .rc-cs h2, .rc-cs h3, .rc-cs h4, .rc-cs p, .rc-cs ul, .rc-cs ol, .rc-cs figure { margin: 0; padding: 0; }
.rc-cs ul, .rc-cs ol { list-style: none; }
.rc-cs h1, .rc-cs h2, .rc-cs h3, .rc-cs h4 { font-family: var(--font-head); font-weight: 400; letter-spacing: -.02em; color: var(--charcoal); text-wrap: balance; }
.rc-cs a { color: inherit; text-decoration: none; }
.rc-cs img, .rc-cs svg { display: block; max-width: 100%; }
.rc-cs button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; padding: 0; margin: 0; min-height: 0; box-shadow: none; text-transform: none; letter-spacing: inherit; cursor: pointer; }
.rc-cs button:hover, .rc-cs button:focus { background: none; color: inherit; }
.rc-cs li { margin: 0; }
.rc-cs svg { overflow: hidden; }
.rc-cs :focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.rc-cs .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.rc-cs .i-arrow { width: 14px; height: 14px; flex: none; }
.rc-cs .i-plus { width: 16px; height: 16px; flex: none; transition: transform .3s; }
.rc-cs .i-chev { width: 18px; height: 18px; }

/* buttons */
.rc-cs .cs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 36px; border-radius: 100px; font: 600 15px/20px var(--font-head); white-space: nowrap; transition: background-color .25s, color .25s; }
.rc-cs .cs-btn-sm { padding: 13px 24px; font-size: 14px; }
.rc-cs .cs-btn-lime { background: var(--lime); color: var(--charcoal); }
.rc-cs .cs-btn-lime:hover { background: var(--lime-bright); }
.rc-cs .cs-btn-dark { background: var(--ink); color: #fff; }
.rc-cs .cs-btn-dark:hover { background: var(--teal); }

/* header */

/* hero */
.rc-cs .cs-hero { background: var(--ink); color: var(--on-dark); padding: clamp(140px, 9.4vw, 180px) 0 clamp(56px, 4.4vw, 84px); }
.rc-cs .cs-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: end; gap: 40px 8%; }
.rc-cs .cs-client { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 1.5vw, 28px); font: 500 17px/24px var(--font-head); color: #fff; }
.rc-cs .cs-client-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--lime); color: var(--charcoal); font: 600 18px/1 var(--font-head); }
.rc-cs .cs-hero h1 { max-width: 15.5em; color: #fff; font-size: clamp(40px, 4.6875vw, 90px); line-height: 1.06; letter-spacing: -.03em; }
.rc-cs .cs-hero-sum { font-size: clamp(16px, .95vw, 18px); line-height: 1.6; }

/* media */
.rc-cs .cs-media { position: relative; overflow: hidden; border-radius: clamp(14px, 1.25vw, 24px); background: var(--soft); }
.rc-cs .cs-media > svg, .rc-cs .cs-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-cs .cs-cover { padding-top: clamp(40px, 4vw, 80px); }
.rc-cs .cs-media-wide { margin-block: var(--row-gap); }

/* shared label + body rows */
.rc-cs .cs-row { display: grid; grid-template-columns: minmax(0, 29.9%) minmax(0, 59.1%); justify-content: space-between; gap: 24px 0; margin-block: var(--row-gap); }
.rc-cs .cs-label { font-size: clamp(26px, 2.0833vw, 40px); line-height: 1.15; }
.rc-cs .cs-sticky > .cs-label { position: sticky; top: 130px; align-self: start; }
.rc-cs .cs-lead { font: 400 clamp(19px, 1.25vw, 24px)/1.5 var(--font-head); color: var(--charcoal); letter-spacing: -.01em; }
.rc-cs .cs-lead-sm { font-size: clamp(18px, 1.15vw, 22px); }
.rc-cs .cs-p { font-size: clamp(16px, .95vw, 18px); line-height: 1.7; }
.rc-cs .cs-p-lg { font-size: clamp(17px, 1.05vw, 20px); color: #3d3d3a; }
.rc-cs .cs-p a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.rc-cs .cs-body > * + * { margin-top: clamp(24px, 2vw, 40px); }
.rc-cs .cs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-cs .cs-chips li { padding: 6px 14px; border-radius: 100px; background: var(--soft); border: 1px solid var(--line); font: 500 14px/20px var(--font-head); color: var(--charcoal); }

/* about */
.rc-cs .cs-about { padding-top: var(--sec); }
.rc-cs .cs-about-grid { display: grid; grid-template-columns: minmax(0, 29.9%) minmax(0, 46%) minmax(0, 16%); justify-content: space-between; gap: 32px 0; }
.rc-cs .cs-about-text > * + * { margin-top: clamp(22px, 1.8vw, 34px); }
.rc-cs .cs-meta { display: grid; align-content: start; gap: 28px; }
.rc-cs .cs-meta h3 { margin-bottom: 10px; font: 500 14px/20px var(--font-head); color: #8a8a84; letter-spacing: 0; }
.rc-cs .cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.25vw, 24px); margin-top: clamp(56px, 4.7vw, 90px); }
.rc-cs .cs-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: clamp(220px, 15vw, 290px); padding: clamp(22px, 1.6vw, 32px); border-radius: clamp(14px, 1.25vw, 24px); background: var(--soft); }
.rc-cs .cs-stat p { font: 500 15px/22px var(--font-head); color: #6b6b66; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.rc-cs .cs-stat strong { display: flex; align-items: baseline; gap: 10px; font: 400 clamp(44px, 3.75vw, 72px)/1 var(--font-head); letter-spacing: -.03em; color: var(--charcoal); }
.rc-cs .i-star { width: .5em; height: .5em; color: var(--charcoal); }
.rc-cs .cs-stat-cta { background: var(--ink); justify-content: flex-start; gap: 18px; }
.rc-cs .cs-stat-cta h3 { color: #fff; font-size: clamp(22px, 1.45vw, 28px); line-height: 1.25; }
.rc-cs .cs-stat-cta .cs-btn { align-self: flex-start; margin-top: auto; background: var(--lime); color: var(--charcoal); }
.rc-cs .cs-stat-cta .cs-btn:hover { background: var(--lime-bright); }
.rc-cs .cs-faces { display: flex; }
.rc-cs .cs-faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--ink); background: var(--teal); }
.rc-cs .cs-faces img + img { margin-left: -12px; }

/* story */
.rc-cs .cs-story { padding-top: var(--sec); }
.rc-cs .cs-pair { display: grid; grid-template-columns: minmax(0, 29.9%) minmax(0, 67.7%); justify-content: space-between; align-items: start; }
.rc-cs .cs-media-in { width: calc(100% * 1110 / 884); margin-left: calc(100% * -226 / 884); }
.rc-cs .cs-acc { border-top: 1px solid var(--line); }
.rc-cs .cs-acc-item { border-bottom: 1px solid var(--line); }
.rc-cs .cs-acc h3 { font-size: inherit; letter-spacing: 0; }
.rc-cs .cs-acc button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(16px, 1.15vw, 22px) 0; text-align: left; font: 500 clamp(16px, .95vw, 18px)/1.4 var(--font-head); color: var(--charcoal); }
.rc-cs .cs-acc button:hover { color: var(--teal); }
.rc-cs .cs-acc-item.is-open .i-plus { transform: rotate(45deg); }
.rc-cs .cs-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.rc-cs .cs-acc-panel > div { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility .32s; }
.rc-cs .cs-acc-item.is-open .cs-acc-panel { grid-template-rows: 1fr; }
.rc-cs .cs-acc-item.is-open .cs-acc-panel > div { visibility: visible; padding-bottom: 22px; }
.rc-cs .cs-acc-panel p { font-size: clamp(15px, .9vw, 17px); line-height: 1.65; max-width: 46em; }
.rc-cs .cs-acc-panel h4 { margin: 14px 0 10px; font-size: 15px; letter-spacing: 0; color: var(--charcoal); }
.rc-cs .cs-acc-plain { margin-top: 32px; }
.rc-cs .cs-acc-plain .cs-acc-panel > div > .cs-chips { padding-top: 4px; }
.rc-cs .cs-results { display: grid; gap: clamp(18px, 1.35vw, 26px); }
.rc-cs .cs-results li { position: relative; padding-left: 34px; font-size: clamp(16px, 1.05vw, 20px); line-height: 1.6; color: #3d3d3a; }
.rc-cs .cs-results li::before { content: ''; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(176, 206, 82, .25); }

/* gallery */
.rc-cs .cs-gallery { padding-top: clamp(24px, 2vw, 40px); }
.rc-cs .cs-gallery-track { --edge: max(var(--gutter), (100% - var(--wrap)) / 2); display: grid; grid-auto-flow: column; grid-auto-columns: min(58.3vw, 1120px); column-gap: clamp(14px, 1.25vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding-inline: var(--edge); scrollbar-width: none; }
.rc-cs .cs-gallery-track::-webkit-scrollbar { display: none; }
.rc-cs .cs-slide { scroll-snap-align: start; }
.rc-cs .cs-gallery-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.rc-cs .cs-round { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); color: var(--charcoal); transition: background-color .2s, border-color .2s, opacity .2s; }
.rc-cs .cs-round[data-gal='-1'] .i-chev { transform: rotate(180deg); }
.rc-cs .cs-round:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); }
.rc-cs .cs-round:disabled { opacity: .35; cursor: default; }

/* other cases */
.rc-cs .cs-others { padding-block: var(--sec); }
.rc-cs .cs-center-h { text-align: center; font-size: clamp(38px, 3.65vw, 70px); line-height: 1.08; margin-bottom: clamp(36px, 3.1vw, 60px); }
.rc-cs .cs-others-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 30px); }
.rc-cs .cs-case .cs-media { transition: transform .45s ease; }
.rc-cs .cs-case:hover .cs-media { transform: scale(.985); }
.rc-cs .cs-case-tag { margin-top: 20px; font: 600 13px/18px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: #8a8a84; }
.rc-cs .cs-case h3 { margin-top: 8px; max-width: 20em; font-size: clamp(22px, 1.6vw, 30px); line-height: 1.25; transition: color .2s; }
.rc-cs .cs-case:hover h3 { color: var(--teal); }

/* closing call to action */
.rc-cs .cs-cta { padding-bottom: var(--sec); }
.rc-cs .cs-cta-card { padding: clamp(48px, 5vw, 96px) clamp(24px, 4vw, 80px); border-radius: clamp(18px, 1.6vw, 30px); background: var(--ink); color: var(--on-dark); text-align: center; }
.rc-cs .cs-cta-card h2 { max-width: 13em; margin-inline: auto; color: #fff; font-size: clamp(34px, 3.4vw, 64px); line-height: 1.08; }
.rc-cs .cs-cta-card p { max-width: 34em; margin: 20px auto 32px; font-size: clamp(16px, 1vw, 19px); }

/* footer */

.rc-cs .cs-demo-pill { position: fixed; left: 50%; bottom: 14px; z-index: 30; transform: translateX(-50%); padding: 4px 14px; border-radius: 100px; background: #f2b84b; color: #3a2a06; font: 600 12px/18px var(--font-head); white-space: nowrap; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .4); }

@media (prefers-reduced-motion: reduce) {
  .rc-cs .cs-acc-panel, .rc-cs .cs-case .cs-media, .rc-cs .i-plus { transition: none; }
}

/* ---------- below 1200 ---------- */
@media (max-width: 1200px) {
  .rc-cs .cs-about-grid { grid-template-columns: minmax(0, 29.9%) minmax(0, 64%); }
  .rc-cs .cs-meta { grid-column: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-cs .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-cs .cs-stat-cta { grid-column: span 2; min-height: 0; }
  .rc-cs .cs-stat-cta .cs-btn { margin-top: 6px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .rc-cs .cs-hero-grid { grid-template-columns: 1fr; }
  .rc-cs .cs-hero-sum { max-width: 36em; }
  .rc-cs .cs-row, .rc-cs .cs-about-grid { grid-template-columns: 1fr; gap: 20px; }
  .rc-cs .cs-meta { grid-column: auto; }
  .rc-cs .cs-sticky > .cs-label { position: static; }
  .rc-cs .cs-media-in { width: 100%; margin-left: 0; }
  .rc-cs .cs-pair { grid-template-columns: minmax(0, 32%) minmax(0, 65%); }
  .rc-cs .cs-gallery-track { grid-auto-columns: 74vw; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .rc-cs { font-size: 16px; }
  .rc-cs .cs-hero { padding-top: 120px; }
  .rc-cs .cs-pair { grid-template-columns: 1fr; gap: 14px; }
  .rc-cs .cs-meta { grid-template-columns: 1fr; gap: 22px; }
  .rc-cs .cs-stats { grid-template-columns: 1fr; }
  .rc-cs .cs-stat { min-height: 180px; }
  .rc-cs .cs-stat-cta { grid-column: auto; }
  .rc-cs .cs-gallery-track { grid-auto-columns: 86vw; }
  .rc-cs .cs-others-grid { grid-template-columns: 1fr; gap: 36px; }
  .rc-cs .cs-btn { padding: 16px 28px; }
  .rc-cs .cs-demo-pill { font-size: 11px; }
}

/* full-page gallery (gallery items with page: true) */
.rc-cs .cs-gallery-pages { --pg-gap: clamp(14px, 1.25vw, 24px); padding-top: var(--sec); }
.rc-cs .cs-gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 2.6vw, 50px); }
.rc-cs .cs-gallery-head p { max-width: 30em; margin: 0; font-size: clamp(15px, .95vw, 18px); line-height: 1.6; color: #6b6b66; }
.rc-cs .cs-gallery-pages .cs-gallery-track { grid-auto-columns: calc((100% - 2 * var(--pg-gap)) / 3); column-gap: var(--pg-gap); }
.rc-cs .cs-page { margin: 0; }
.rc-cs .cs-page-shot { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 7% 7% 0; border: 0; border-radius: clamp(14px, 1.2vw, 22px); background: #e3e1d8; overflow: hidden; cursor: zoom-in; text-align: left; transition: background-color .3s; }
.rc-cs .cs-page-shot:hover { background: #dcdacf; }
.rc-cs .cs-page-shot:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.rc-cs .cs-page-win { display: block; height: 100%; overflow: hidden; border-radius: 10px 10px 0 0; background: #fff; box-shadow: 0 1px 2px rgba(40, 36, 20, .06), 0 16px 36px -14px rgba(40, 36, 20, .24), 0 0 0 1px rgba(40, 36, 20, .06); }
.rc-cs .cs-page-win img { display: block; width: 100%; height: auto; max-width: none; transform: translate3d(0, 0, 0); transition: transform 1.1s cubic-bezier(.33, 0, .2, 1); will-change: transform; }
.rc-cs .cs-page-shot:hover .cs-page-win img, .rc-cs .cs-page-shot:focus-visible .cs-page-win img { transform: translate3d(0, calc(-1 * var(--shift, 0px)), 0); transition-duration: var(--dur, 9s); transition-timing-function: cubic-bezier(.45, .05, .55, .95); }
.rc-cs .cs-page-hint { position: absolute; right: clamp(12px, 1vw, 18px); bottom: clamp(12px, 1vw, 18px); display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; background: rgba(13, 27, 25, .86); color: #fff; font: 500 13px/1 var(--font-head); letter-spacing: .01em; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; }
.rc-cs .cs-page-hint .i-expand { width: 14px; height: 14px; }
.rc-cs .cs-page-shot:hover .cs-page-hint, .rc-cs .cs-page-shot:focus-visible .cs-page-hint { opacity: 1; transform: none; }
.rc-cs .cs-page figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: clamp(14px, 1.1vw, 20px); }
.rc-cs .cs-page figcaption strong { font: 500 clamp(17px, 1.1vw, 21px)/1.3 var(--font-head); color: var(--charcoal); }
.rc-cs .cs-page figcaption span { font-size: clamp(14px, .85vw, 16px); color: #6b6b66; }
.rc-cs .cs-round-sm { width: 44px; height: 44px; background: #fff; }
.rc-cs .cs-lightbox { width: min(1240px, 100vw - 32px); height: calc(100vh - 32px); height: calc(100dvh - 32px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 18px; background: #e3e1d8; color: var(--charcoal); overflow: hidden; }
.rc-cs .cs-lightbox[open] { display: flex; flex-direction: column; }
.rc-cs .cs-lightbox::backdrop { background: rgba(8, 14, 13, .78); }
.rc-cs .cs-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px clamp(16px, 2vw, 28px); }
.rc-cs .cs-lb-title { display: flex; align-items: baseline; gap: 12px; margin: 0; min-width: 0; font: 500 clamp(15px, 1vw, 18px)/1.3 var(--font-head); }
.rc-cs .cs-lb-title > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-cs .cs-lb-count { flex: none; font: 400 14px/1 var(--font-body); color: #6b6b66; }
.rc-cs .cs-lb-actions { display: flex; gap: 8px; flex: none; }
.rc-cs .cs-lb-actions [data-lb-step='-1'] .i-chev { transform: rotate(180deg); }
.rc-cs .cs-lb-close svg { width: 16px; height: 16px; }
.rc-cs .cs-lb-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(12px, 3vw, 44px) clamp(12px, 3vw, 44px); outline: none; }
.rc-cs .cs-lb-scroll img { display: block; width: 100%; height: auto; max-width: none; border-radius: 10px; background: #fff; box-shadow: 0 16px 40px -18px rgba(40, 36, 20, .3), 0 0 0 1px rgba(40, 36, 20, .06); }
html.cs-lb-open { overflow: hidden; }
@media (max-width: 1024px) {
  .rc-cs .cs-gallery-pages .cs-gallery-track { grid-auto-columns: calc((100% - var(--pg-gap)) / 2); }
}
@media (max-width: 767px) {
  .rc-cs .cs-gallery-pages .cs-gallery-track { grid-auto-columns: 78vw; }
  .rc-cs .cs-lightbox { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .rc-cs .cs-lb-actions [data-lb-step] { display: none; }
}
@media (hover: none) {
  .rc-cs .cs-page-hint { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-cs .cs-page-shot:hover .cs-page-win img, .rc-cs .cs-page-shot:focus-visible .cs-page-win img { transform: none; }
}

/* full-page gallery v2: wider cards (same 602px height at 1920) + pinned sideways scroll on desktop */
.rc-cs .cs-gallery-pages { --pg-w: min(44.8vw, 860px); --pg-h: min(31.36vw, 602px); }
.rc-cs .cs-gallery-pages .cs-gallery-track { grid-auto-columns: var(--pg-w); }
.rc-cs .cs-page-shot { aspect-ratio: auto; height: var(--pg-h); padding: clamp(16px, 1.8vw, 34px) clamp(16px, 1.8vw, 34px) 0; }
.rc-cs .cs-pages-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; }
.rc-cs .cs-pages-bar .cs-gallery-nav { margin: 0 0 0 auto; }
.rc-cs .cs-pages-progress { display: none; position: relative; flex: 0 1 280px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rc-cs .cs-pages-progress i { position: absolute; inset: 0; background: var(--teal); transform: scaleX(0); transform-origin: left center; }
.rc-cs .cs-gallery-pages.is-hscroll .cs-pages-pin { position: sticky; overflow: clip; }
.rc-cs .cs-gallery-pages.is-hscroll .cs-gallery-track { overflow: visible; scroll-snap-type: none; will-change: transform; }
.rc-cs .cs-gallery-pages.is-hscroll .cs-pages-progress { display: block; }
@media (max-width: 1024px) {
  .rc-cs .cs-gallery-pages { --pg-w: 72vw; --pg-h: 52vw; }
}
@media (max-width: 767px) {
  .rc-cs .cs-gallery-pages { --pg-w: 86vw; --pg-h: 108vw; }
}
/* client logo icon in the hero mark */
.rc-cs .cs-client-mark-logo { width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: #fff; }
.rc-cs .cs-client-mark-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
