html { height: auto; overflow-y: auto; -webkit-overflow-scrolling: auto; }
/* ==== Reset & vars ==== */
*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; -webkit-text-size-adjust: 100%; overflow-x: clip; }


:root {
  --ink: #151513;
  --ink-2: #4A4E57;
  --ink-3: #6B6F76;
  --line: #EDEDED;
  --line-2: #DADADA;
  --bg: #ffffff;
  --bg-2: #F7F7F5;
  --neutral-pill: #F3F3F1;
  --accent: #FFDC71;
  --accent-strong: #F8BD00;
  --accent-soft: #FFF4D6;
  --accent-tint: #FFFBEF;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Roboto Flex', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
@media (prefers-reduced-motion: no-preference) {  }
:target { scroll-margin-top: 100px; }

/* ==== Container ==== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: 1120px; }

/* ==== Header ==== */
.site-header {
  position: relative; z-index: 50;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
}
.header-cta { display: inline-flex; }
@media (max-width: 900px) { .header-cta { display: none !important; } }
.site-header__inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand__mark {
  width: 36px; height: 36px;
  background: var(--ink); color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; letter-spacing: -.5px;
}
.brand__name { font-size: 14px; font-weight: 600; line-height: 1.15; display: flex; flex-direction: column; }
.brand__role { font-size: 11px; font-weight: 500; color: var(--ink-3); }
.primary-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; }
.primary-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-3); }
.primary-nav a:hover { color: var(--ink); opacity: 1; }
.primary-nav a.is-active { color: var(--ink); background: var(--neutral-pill); }
.header-cta { align-self: center; }
.nav-burger {
  display: none;
  background: transparent; border: 0;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; padding: 0;
}
.nav-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(21,21,19,.08);
  overflow: hidden;
  max-height: 0; opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.mobile-nav.is-open {
  max-height: 500px; opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.mobile-nav__inner { padding: 12px 20px 20px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 500; }
.mobile-nav__inner a { padding: 12px 14px; border-radius: 10px; color: var(--ink-3); }
.mobile-nav__inner a.is-active { color: var(--ink); background: var(--neutral-pill); font-weight: 600; }
.mobile-nav__inner .btn { margin-top: 10px; align-self: flex-start; }

/* ==== Buttons ==== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.btn--ink { background: var(--ink); color: #fff; }
.btn--outline { background: #fff; color: var(--ink); border-color: #E7E7E7; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 16px 26px; font-size: 15px; }
.btn__icon-circle {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--ink); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* ==== Footer ==== */
.site-footer { background: var(--ink); color: #fff; margin-top: 80px; }
.site-footer__grid {
  max-width: 1120px; margin: 0 auto;
  padding: 64px 40px 40px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.brand--light { color: #fff; margin-bottom: 20px; }
.brand__mark--light { background: rgba(255,255,255,.08); color: #fff; }
.site-footer__tag { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.7); margin: 0 0 24px; max-width: 340px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 40px; height: 40px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.site-footer__label { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__list a { color: #fff; }
.site-footer__list .muted, .site-footer__list a.muted { color: rgba(255,255,255,.55); }
.site-footer__bottom {
  max-width: 1120px; margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,.5);
  flex-wrap: wrap; gap: 12px;
}

/* ==== CV Modal ==== */
.cv-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  opacity: 0; pointer-events: none;
}
.cv-modal.is-open { opacity: 1; pointer-events: auto; }
.cv-modal__backdrop { position: absolute; inset: 0; background: rgba(21,21,19,.72); }
.cv-modal__panel {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px; overflow: hidden;
  width: 100%; max-width: min(1000px, 92vw); height: min(92vh, 1200px);
  display: flex; flex-direction: column;
  transform: translateY(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.cv-modal.is-open .cv-modal__panel { transform: translateY(0); }
.cv-modal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  gap: 12px;
}
.cv-modal__title { font-size: 14px; font-weight: 600; }
.cv-modal__actions { display: flex; align-items: center; gap: 10px; }
.cv-modal__close {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--neutral-pill); border: 0; cursor: pointer;
  font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
}

.cv-modal__body { flex: 1; background: #525659; position: relative; display: flex; align-items: stretch; justify-content: center; min-height: 0; overflow: auto; }
.cv-modal__body iframe { width: 100%; height: 100%; border: 0; display: block; position: relative; z-index: 1; }
.cv-modal__fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; font-size: 14px; color: var(--ink-3);
}

/* ==== Home (simple, monochrome) ==== */
.home-simple {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 80px 40px;
}
.home-simple__inner { max-width: 720px; text-align: center; }
.home-simple__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; color: var(--ink-3); margin-bottom: 28px; }
.home-simple__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700; line-height: 1.05; letter-spacing: -.03em;
  margin: 0 0 22px;
}
.home-simple__sub {
  font-size: 17px; line-height: 1.7; color: var(--ink-2);
  max-width: 52ch; margin: 0 auto 40px;
}
.home-simple__ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
 }

.section {
  max-width: 1120px; margin: 0 auto;
  padding: 100px 40px;
}
.section__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); margin-bottom: 14px; }
.section__title { font-size: clamp(36px, 5vw, 72px); font-weight: 300; letter-spacing: -.02em; margin: 0 0 40px; line-height: 1.05; }
.section__title strong { font-weight: 700; }
.section__lede { font-size: 16px; color: var(--ink-2); line-height: 1.7; max-width: 44ch; }

.unique-cta {
  background: var(--ink); color: #fff;
  padding: 120px 40px;
}
.unique-cta__inner { max-width: 1240px; margin: 0 auto; }
.unique-cta__sub {
  font-size: 14px; color: rgba(255,255,255,.6);
  text-align: right; margin: 0 0 60px; max-width: 40ch; margin-left: auto;
}
.unique-cta__row {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  justify-content: space-between;
}
.unique-cta__title {
  font-size: clamp(48px, 6vw, 88px); font-weight: 300; letter-spacing: -.02em;
  line-height: 1; margin: 0; max-width: 14ch;
}
.unique-cta__title strong { font-weight: 700; }
.unique-cta__pill {
  display: inline-block; width: 200px; height: 90px;
  border-radius: 999px; background: var(--accent-strong);
  vertical-align: middle; margin-right: 16px;
  background-image: linear-gradient(135deg, rgba(0,0,0,.15), transparent);
}
.unique-cta__btn { align-self: flex-end; }

/* ==== Featured work strip ==== */
.featured {
  padding: 100px 40px;
  max-width: 1240px; margin: 0 auto;
}
.featured__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.featured__title { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.featured__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-card {
  display: block; border-radius: 20px; overflow: hidden;
  background: var(--bg-2); position: relative;
}

.work-card__media {
  aspect-ratio: 4/3; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
}
.work-card__media img { max-width: 60%; max-height: 85%; width: auto; object-fit: contain; }
.work-card--yellow .work-card__media { background: var(--accent-soft); }
.work-card__body { padding: 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.work-card__title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.work-card__meta { font-size: 12px; color: var(--ink-3); }
.work-card__badge {
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: #fff;
  white-space: nowrap;
}
.work-card__badge--soon { background: var(--neutral-pill); color: var(--ink-2); }

/* ==== Portfolio listing ==== */
.page-head {
  max-width: 1120px; margin: 0 auto;
  padding: 80px 40px 40px;
}
.page-head__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); margin-bottom: 14px; }
.page-head__title { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 16px; line-height: 1.05; }
.page-head__lede { font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 55ch; margin: 0; }
.portfolio-list {
  max-width: 1120px; margin: 0 auto;
  padding: 24px 40px 100px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}

/* ==== Blank page ==== */
.blank-page {
  max-width: 1120px; margin: 0 auto;
  padding: 120px 40px 200px;
  text-align: center;
}
.blank-page__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); margin-bottom: 14px; }
.blank-page__title { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 20px; line-height: 1.05; }
.blank-page__lede { font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 48ch; margin: 0 auto 32px; }

/* ==== Coming soon (case-study) ==== */
.coming-soon {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center;
  padding: 80px 40px;
}
.coming-soon__inner { max-width: 640px; text-align: center; }
.coming-soon__mark {
  width: 72px; height: 72px; border-radius: 999px;
  background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.coming-soon__title { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.coming-soon__lede { font-size: 16px; color: var(--ink-2); line-height: 1.6; margin: 0 0 32px; }
.coming-soon__actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ==== Contact ==== */
.contact-grid {
  max-width: 1120px; margin: 0 auto;
  padding: 40px 40px 100px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px;
  align-items: start;
}
.contact-info__label { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); margin-bottom: 10px; }
.contact-info__row { margin-bottom: 24px; }
.contact-info__value { font-size: 16px; font-weight: 500; }
.contact-info__value a:hover { opacity: .7; }
.contact-form { display: grid; gap: 18px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--ink-3); text-transform: uppercase; }
.form-field input, .form-field textarea {
  border: 1px solid var(--line-2); border-radius: 12px;
  padding: 14px 16px; font-size: 15px; font-family: inherit;
  background: #fff; color: var(--ink);
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(21,21,19,.06);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field--hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.form-status { font-size: 14px; font-weight: 500; }
.form-status.is-ok { color: #1F9D55; }
.form-status.is-err { color: #DF0000; }

/* ==== Responsive ==== */
@media (max-width: 960px) {
  .featured__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .portfolio-list { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .primary-nav, .header-cta { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 640px) {
  .site-header__inner { padding: 0 20px; height: 64px; gap: 12px; }
  .brand__mark { width: 32px; height: 32px; font-size: 12px; }
  .brand__name { font-size: 12px; }
  .brand__role { font-size: 10px; }
  .container, .site-footer__grid, .site-footer__bottom, .section, .page-head, .portfolio-list, .blank-page, .contact-grid, .featured, .unique-cta { padding-left: 20px !important; padding-right: 20px !important; }
  .home-hero { padding: 60px 20px 100px; min-height: calc(100vh - 64px); }
  .home-hero__scroll { right: 16px; bottom: 20px; width: 84px; height: 84px; }
  .home-hero__scroll-btn { width: 44px; height: 44px; font-size: 16px; }
  .section { padding-top: 60px !important; padding-bottom: 60px !important; }
  .unique-cta { padding-top: 70px !important; padding-bottom: 70px !important; }
  .unique-cta__sub { margin: 0 0 32px; text-align: left; }
  .unique-cta__row { flex-direction: column; align-items: flex-start; }
  .unique-cta__pill { width: 120px; height: 60px; margin-right: 12px; }
  .site-footer__grid { grid-template-columns: 1fr; padding: 48px 20px 32px; gap: 32px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; padding: 20px; }
  .featured__grid { gap: 14px; }
  .work-card__body { padding: 18px; }
  .cv-modal { padding: 12px; }
  .cv-modal__panel { height: 92vh; }
  .contact-info__row { margin-bottom: 20px; }
}

/* ==== Home — featured projects ==== */
.home-featured {
  max-width: 1120px; margin: 0 auto;
  padding: 40px 40px 100px;
}
.home-featured__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.home-featured__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); margin-bottom: 8px; }
.home-featured__title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.home-featured__link { font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }

.home-featured__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Home layout — trim vertical space when featured is shown */
body[data-page="home"] .home-simple { min-height: 0; padding: 96px 40px 60px; }

/* ==== Contact — redesign ==== */
.contact-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 20px 40px 100px;
}
.contact-tiles {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 32px;
}
.contact-tile {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff;
  color: inherit;
}

.contact-tile__icon {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--neutral-pill); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.contact-tile__label { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); }
.contact-tile__value { font-size: 15px; font-weight: 600; color: var(--ink); word-break: break-word; }
.contact-tile__hint { font-size: 12px; color: var(--ink-3); }

.contact-form-card {
  max-width: 720px; margin: 0 auto;
  padding: 32px; border: 1px solid var(--line); border-radius: 20px;
  background: #fff;
}
.contact-form-card__head { margin-bottom: 28px; }
.contact-form-card__title { font-size: 22px; font-weight: 700; margin: 0 0 6px; letter-spacing: -.01em; }
.contact-form-card__sub { font-size: 14px; color: var(--ink-2); margin: 0; }

@media (max-width: 720px) {
  .contact-tiles { grid-template-columns: 1fr; }
  .contact-form-card { padding: 24px; border-radius: 16px; }
  .home-featured { padding: 20px 20px 60px; }
  .home-featured__grid { grid-template-columns: 1fr; gap: 14px; }
  body[data-page="home"] .home-simple { padding: 56px 20px 32px; }
}

/* ==== Services ==== */
.services-wrap { max-width: 1120px; margin: 0 auto; padding: 20px 40px 100px; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; display: flex; flex-direction: column; gap: 18px;
  color: inherit; position: relative;
  text-align: left;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px; border-radius: 999px;
  background: radial-gradient(circle, rgba(21,21,19,0.05), transparent 70%);
  opacity: 0; pointer-events: none;
}

.service-card > * { position: relative; z-index: 1; }
.service-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--neutral-pill); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}


.service-card__num {
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3);
  text-align: left;
}
.service-card__title { font-size: 24px; font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: 1.2; text-align: left; }
.service-card__lede { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; text-align: left; }
.service-card__lede strong { color: var(--ink); font-weight: 600; }
.service-card__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.service-card__list li { font-size: 14px; color: var(--ink-2); display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; text-align: left; }
.service-card__list li::before {
  content: ''; flex-shrink: 0; margin-top: 8px;
  width: 5px; height: 5px; border-radius: 999px; background: var(--ink);
}
.service-card__arrow {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.services-note {
  border-top: 1px solid var(--line); padding-top: 32px;
  font-size: 14px; line-height: 1.7; color: var(--ink-2);
  max-width: 780px;
  text-align: left;
}
.services-note strong { color: var(--ink); font-weight: 600; }
.services-note__star { color: var(--ink); font-weight: 700; margin-right: 6px; }
@media (max-width: 720px) {
  .services-wrap { padding: 20px 20px 60px; }
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 24px; }
  .service-card__title { font-size: 20px; }
}

/* ==== Services: clickable cards + modal ==== */
.service-card { cursor: pointer; }
.service-card__cta {
  margin-top: auto; padding-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.service-card__cta span:last-child { }


.svc-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  opacity: 0; pointer-events: none;
}
.svc-modal.is-open { opacity: 1; pointer-events: auto; }
.svc-modal__backdrop { position: absolute; inset: 0; background: rgba(21,21,19,.72); }
.svc-modal__panel {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px; overflow: hidden;
  width: 100%; max-width: 720px; height: min(85vh, 900px);
  display: flex; flex-direction: column;
  transform: translateY(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.svc-modal.is-open .svc-modal__panel { transform: translateY(0); }
.svc-modal__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--line); gap: 12px;
}
.svc-modal__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); }
.svc-modal__title { font-size: 18px; font-weight: 700; margin: 4px 0 0; }
.svc-modal__close {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--neutral-pill); border: 0; cursor: pointer;
  font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); flex-shrink: 0;
}

.svc-modal__body { flex: 1; overflow-y: auto; padding: 8px 8px 24px; scrollbar-gutter: stable; }

.svc-lede {
  padding: 24px 24px 8px;
  font-size: 15px; line-height: 1.7; color: var(--ink-2);
}
.svc-lede strong { color: var(--ink); font-weight: 600; }

.svc-acc { padding: 0 8px; }
.svc-acc__item { border-bottom: 1px solid var(--line); }
.svc-acc__item:last-child { border-bottom: 0; }
.svc-acc__btn {
  width: 100%; background: transparent; border: 0;
  padding: 20px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; text-align: left; font-family: inherit;
  font-size: 15px; font-weight: 600; color: var(--ink);
  border-radius: 12px;
}

.svc-acc__sym {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--neutral-pill); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 500; flex-shrink: 0;
}
.svc-acc__item.is-open .svc-acc__sym { transform: rotate(45deg); background: var(--ink); color: #fff; }
.svc-acc__panel {
  display: grid;
  grid-template-rows: 0fr;
}
.svc-acc__panel > .svc-acc__panel-inner { overflow: hidden; }
.svc-acc__panel-inner { padding: 0 16px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.svc-acc__item.is-open .svc-acc__panel { grid-template-rows: 1fr; }
.svc-acc__item.is-open .svc-acc__panel-inner { padding: 0 16px 20px; }
.svc-acc__item.is-open:last-child .svc-acc__panel-inner { padding-bottom: 32px; }

.svc-empty {
  padding: 32px 24px 40px; text-align: center;
  font-size: 14px; color: var(--ink-2);
}

/* ==== About ==== */
.about-wrap { max-width: 1120px; margin: 0 auto; padding: 20px 40px 100px; display: flex; flex-direction: column; gap: 24px; }

.about-block {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 44px;
  overflow: hidden;
}
.about-block::after { content: ''; display: table; clear: both; }
.about-block__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3);
  margin-bottom: 14px; text-transform: uppercase;
}
.about-block__title {
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.15; margin: 0 0 20px; color: var(--ink);
}
.about-block p { font-size: 15px; line-height: 1.7; color: var(--ink-2); margin: 0 0 14px; }
.about-block p:last-of-type { margin-bottom: 0; }
.about-block__note {
  clear: both;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink);
}

.about-block__media {
  float: left; width: 44%;
  margin: 0 32px 20px 0;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-2);
  shape-outside: margin-box;
}
.about-block--flip .about-block__media { float: right; margin: 0 0 20px 32px; }
.about-block__eyebrow, .about-block__title, .about-block p { margin-right: 0; }

.about-block__media--collage {
  aspect-ratio: 4/5;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
}
.about-block__thumbs { display: grid; grid-template-rows: repeat(3, 1fr); }

.about-photo {
  position: relative; width: 100%; height: 100%;
  background: var(--bg-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-block__media--collage > .about-photo { border-right: 1px solid var(--line); }
.about-block__thumbs .about-photo { border-bottom: 1px solid var(--line); }
.about-block__thumbs .about-photo:last-child { border-bottom: 0; }
.about-photo__hint {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 20px; color: var(--ink-3); text-align: center;
}
.about-photo__hint span { font-size: 13px; font-weight: 600; }
.about-photo__hint small { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--line-2); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
  .about-photo--portrait img { object-position: center 15%; }
}
.about-photo:has(img) .about-photo__hint { display: none; }

@media (max-width: 640px) {
  .about-block { padding: 24px; }
  .about-block__media, .about-block--flip .about-block__media {
    float: none; width: 100%; margin: 0 0 20px 0;
    aspect-ratio: 4/3;
  }
  .about-block__media--collage { aspect-ratio: 4/5; grid-template-columns: 1fr; grid-template-rows: 1fr; position: relative; }
  .about-block__media--collage > .about-photo { border-right: 0; grid-area: 1 / 1; aspect-ratio: auto; }
  .about-block__thumbs {
    position: absolute; left: 10px; right: 10px; bottom: 10px;
    grid-template-rows: none; grid-template-columns: repeat(3, 1fr);
    height: 28%; gap: 8px;
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
  }
  .about-block__thumbs .about-photo { border: 0; border-radius: 8px; }
  .about-block__thumbs .about-photo:last-child { border: 0; }
}
.about-quote {
  max-width: 820px; margin: 60px auto; padding: 40px 20px;
  text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.about-quote h3 {
  font-size: clamp(22px, 3vw, 32px); font-weight: 300; letter-spacing: -.01em;
  margin: 0; line-height: 1.35; color: var(--ink);
}
.about-quote h3 strong { font-weight: 700; }
.about-section { margin: 72px 0 0; }
.about-section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.about-section__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); }
.about-section__title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -.01em; margin: 0; }

.timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline__row {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.timeline__row:last-child { border-bottom: 1px solid var(--line); }
.timeline__period { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .3px; padding-top: 2px; }
.timeline__body { display: flex; flex-direction: column; gap: 4px; }
.timeline__role { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.timeline__org { font-size: 14px; color: var(--ink-2); margin: 0; }
.timeline__meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.timeline__row--current .timeline__role::after {
  content: 'CURRENT'; display: inline-block; margin-left: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--ink); color: #fff; vertical-align: 2px;
}

.courses-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.course-item {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px;
  font-size: 14px; color: var(--ink); background: #fff;
}
.course-item__name { font-weight: 600; margin: 0 0 4px; }
.course-item__meta { font-size: 12px; color: var(--ink-3); }

.about-cta {
  padding: 48px; border-radius: 20px;
  background: var(--ink); color: #fff; text-align: center;
}
.about-cta h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; margin: 0 0 12px; letter-spacing: -.02em; }
.about-cta p { color: rgba(255,255,255,.7); margin: 0 0 24px; font-size: 15px; }
.about-cta .btn--ink { background: #fff; color: var(--ink); }

@media (max-width: 720px) {
  .about-wrap { padding: 20px 20px 60px; }
  .timeline__row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .courses-list { grid-template-columns: 1fr; }
  .about-cta { padding: 32px 24px; }
}

/* Home services strip */
.home-services { max-width: 1120px; margin: 0 auto; padding: 20px 40px 60px; }
.home-services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.home-services__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); margin-bottom: 8px; }
.home-services__title { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; margin: 0; }
.home-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home-service {
  padding: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; color: inherit;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 180px;
}


.home-service__num { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); }
.home-service__name { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.home-service__desc { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin: 0; }
.home-service__arrow {
  margin-top: auto; align-self: flex-end;
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
@media (max-width: 900px) { .home-services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .home-services__grid { grid-template-columns: 1fr; } .home-services { padding: 20px 20px 32px; } }

/* Home service — icon */
.home-service__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--neutral-pill); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}


/* Home hero — subtle floating dot accents */
.home-simple { position: relative;  }
.home-simple::before, .home-simple::after {
  content: ''; position: absolute; pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(21,21,19,0.06), transparent 70%);
}
.home-simple::before { top: -120px; left: -120px; width: 340px; height: 340px; }
.home-simple::after { bottom: -140px; right: -120px; width: 380px; height: 380px; }
.home-simple__inner { position: relative; z-index: 1; }

/* Marquee-style keywords under hero eyebrow (optional decorative accent) */
.home-simple__eyebrow { position: relative; display: inline-block; }
.home-simple__eyebrow::after {
  content: ''; display: block; width: 32px; height: 2px;
  background: var(--ink); margin: 12px auto 0;
}

  50% { transform: scaleX(1.8); opacity: .4; }
}

/* Featured card hover polish */
.work-card { }



/* ============ 1) Header shrink on scroll ============ */
.site-header { }
.site-header__inner { }



/* ============ 2) Scroll-triggered fade-in ============ */
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ 3) Back to top button ============ */



@media (max-width: 640px) {  }

/* ============ 4) Home marquee strip ============ */
.home-marquee {
   overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 40px 0 60px; padding: 22px 0;
  background: #fff;
}
.home-marquee__track {
  display: inline-flex; gap: 48px; white-space: nowrap;
  font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--ink-2);
}
.home-marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.home-marquee__track span::after {
  content: ''; width: 6px; height: 6px; border-radius: 999px;
  background: var(--ink); flex-shrink: 0;
}

  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .home-marquee__track { } }

.work-card--hero .work-card__media { aspect-ratio: 1/1; padding: 0; background: transparent; }
.work-card--hero .work-card__media img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; }

/* Contact tile (no interactive glow — rely on card border/transform hover only) */
.contact-tile { position: relative; }

/* ============ 7) Case study — hero marquee under title ============ */
.cs-hero-strip {
  overflow: hidden; border-top: 1px solid var(--cs-line, rgba(255,255,255,.08));
  border-bottom: 1px solid var(--cs-line, rgba(255,255,255,.08));
  margin: 32px 0 0; padding: 14px 0;
}
.cs-hero-strip__track {
  display: inline-flex; gap: 40px; white-space: nowrap;
  font-size: 14px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.cs-hero-strip__track span { display: inline-flex; align-items: center; gap: 40px; }
.cs-hero-strip__track span::after {
  content: ''; width: 4px; height: 4px; border-radius: 999px;
  background: currentColor; flex-shrink: 0;
}

/* Timeline dotted markers */
.timeline--dotted { position: relative; padding-left: 28px; }
.timeline--dotted::before {
  content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.timeline--dotted .timeline__row { position: relative; }
.timeline--dotted .timeline__row::before {
  content: ''; position: absolute; left: -24px; top: 6px;
  width: 12px; height: 12px; border-radius: 999px;
  background: #fff; border: 2px solid var(--ink);
}
.timeline--dotted .timeline__row--current::before { background: var(--ink); }

/* Stagger: children of [data-auto-reveal] fade in with cascade */
[data-auto-reveal] > .reveal { opacity: 1; transform: none; }
/* Reveal variants */
.reveal-up { opacity: 0; transform: translateY(24px); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.reveal-fade { opacity: 0; }
.reveal-fade.is-visible { opacity: 1; }


/* Toast (copy hex confirmation) */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; z-index: 250; opacity: 0; pointer-events: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 13px; font-weight: 500; z-index: 250; opacity: 0; pointer-events: none; }

/* Form input focus — change border color only */
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--ink) !important;
  outline: none;
}
.form-field input,
.form-field textarea { }

/* Prototype iframe loader — animated phone skeleton */
.cs-proto__loader,
.cs-proto__loader,
.cs-proto__loader {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 20px; background: rgba(0,0,0,.55); z-index: 2;
}
.proto-skeleton {
  width: 180px; aspect-ratio: 9/18; border-radius: 28px;
  border: 3px solid rgba(255,255,255,.28); position: relative;
  overflow: hidden;
}
.proto-skeleton::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.28);
}
.proto-skeleton::after {
  content: ''; position: absolute; inset: 20px 12px 12px 12px;
  border-radius: 16px;
  background: linear-gradient(90deg,
    rgba(255,255,255,.06) 0%,
    rgba(255,255,255,.18) 50%,
    rgba(255,255,255,.06) 100%);
  background-size: 200% 100%;
}

  100% { background-position: -100% 0; }
}
.proto-loader-text { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* Case study progress bar — colored per project */
.cs-progress__bar { background: #2952FF !important; }
.flx-progress__bar { background: #7314B8 !important; }

/* Case study brand mark — colored per project */
.mcy .site-header .brand__mark { background: #2952FF !important; color: #fff !important; }
.bsy .site-header .brand__mark { background: var(--accent) !important; color: #fff !important; }
.ytx .site-header .brand__mark { background: #F8BD00 !important; color: #151513 !important; }



/* ============================================================ */
/* ===== BODYSYNC case study ===== */
/* ============================================================ */

/* BodySync case study styles */
.bsy {
  --accent: #F97316;
  --accent-strong: #EA6A0B;
  --accent-soft: rgba(249,115,22,0.14);
  --accent-tint: #0F1013;
  --cs-bg: #0F1013;
  --cs-surface: #17181C;
  --cs-card: #1E2026;
  --cs-line: rgba(255,255,255,0.08);
  --cs-line-2: rgba(255,255,255,0.14);
  --cs-text: #FFFFFF;
  --cs-text-2: #C9CCD3;
  --cs-text-3: #8B8F98;
  background: var(--cs-bg);
  color: var(--cs-text);
}
body[data-page="case-study"].bsy { background: var(--cs-bg); color: var(--cs-text); }
.bsy .site-header { background: rgba(15,16,19,.92) !important; border-bottom: 1px solid var(--cs-line) !important; }
.bsy .site-header .brand__name, .bsy .site-header .brand__mark, .bsy .site-header .primary-nav a { color: var(--cs-text); }
.bsy .site-header .primary-nav a.is-active { color: var(--accent); }
.bsy .site-header .brand__role { color: var(--cs-text-3); }
.bsy .site-header .nav-burger span { background: var(--cs-text); }
.bsy .site-header .header-cta.btn--ink { background: #fff; color: var(--cs-bg); }
.bsy .mobile-nav { background: var(--cs-surface); border-color: var(--cs-line); }
.bsy .mobile-nav a { color: var(--cs-text); }
.bsy .mobile-nav a.is-active { color: var(--accent); }

/* Hero */
/* Chapter nav */
/* Sections */
/* Lightbox */
/* Responsive */
@media (max-width: 960px) {
  .cs-hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .cs-hero__title { font-size: 52px; }
  .cs-2col { grid-template-columns: 1fr; gap: 40px; }
  .cs-role-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cs-4col { grid-template-columns: repeat(2, 1fr); }
  .cs-3col { grid-template-columns: 1fr; }
  .cs-process { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .cs-process-line { display: none; }
  .cs-gallery { grid-template-columns: repeat(4, 1fr); }
  .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .cs-results-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}
@media (max-width: 720px) {
  .cs-chapters { display: none; }
  .cs-chapters-drawer { display: block; }
}
@media (max-width: 640px) {
  .cs-chapters, .cs-chapters-drawer { top: 64px; }
  
  .cs-hero__grid { padding: 32px 20px 44px; }
  .cs-hero__title { font-size: 40px; letter-spacing: -1.4px; }
  .cs-hero__sub { font-size: 18px; }
  .cs-section { padding: 40px 20px 16px; }
  .cs-section--tight { padding: 40px 20px; }
  .cs-h2 { font-size: 26px; }
  .cs-4col { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cs-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cs-process { grid-template-columns: repeat(2, 1fr); }
  .cs-role-cols { grid-template-columns: 1fr; }
  .cs-decision-card { flex-direction: column; align-items: stretch; padding: 24px; }
  .cs-decision-card__img { width: auto; max-width: 220px; margin: 8px auto 0; order: 2; }
  .cs-decision-card__text { order: 1; }
  .cs-hero__mocks { height: 420px; }
  .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 20px; gap: 20px; }
  .cs-proto { padding: 40px 20px; }
  .cs-proto__wrap { padding: 20px; }
  .cs-proto__embed { aspect-ratio: 9/21; max-width: 360px; margin: 0 auto 24px; }
  .cs-gallery-wrap { padding: 40px 12px 24px; }
  #system.cs-section .cs-4col { grid-template-columns: 1fr; gap: 16px; }
  #features .cs-feature-card { min-height: 0; }
  #features .cs-feature-card__media img { max-width: 160px; }
  .cs-lightbox { padding: 20px 16px; }
  .cs-lightbox__img { max-height: 58vh; max-width: 88vw; }
  .cs-footer-nav { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 640px) and (max-height: 780px) {
  .cs-lightbox__img { max-height: 52vh; }
}
@media (max-width: 520px) {
  #features .cs-4col { grid-template-columns: 1fr !important; }
  #features .cs-feature-card { min-height: 0; }
  #features .cs-feature-card__media img { max-width: 220px; width: 100%; height: auto; }
  .cs-4col, .cs-3col, .cs-2col { min-width: 0; }
  .cs-section, .cs-section--tight {  }
}


/* BodySync dark theme overrides */
/* Buttons in bsy scope */
.bsy .btn--ink { background: #fff; color: var(--cs-bg); }

.bsy .btn--outline { background: transparent; border: 1px solid var(--cs-line-2); color: var(--cs-text); }


/* ============================================================ */
/* ===== MONEYCARE case study ===== */
/* ============================================================ */

/* Money Care case study styles */
.mcy {
  --accent: #2952FF;
  --accent-strong: #1E3FD1;
  --accent-soft: rgba(41,82,255,0.14);
  --accent-tint: #0B1424;
  --cs-bg: #0B1424;
  --cs-surface: #141F35;
  --cs-card: #1B2942;
  --cs-line: rgba(255,255,255,0.08);
  --cs-line-2: rgba(255,255,255,0.14);
  --cs-text: #FFFFFF;
  --cs-text-2: #C9CCD3;
  --cs-text-3: #8B8F98;
  background: var(--cs-bg);
  color: var(--cs-text);
}
body[data-page="case-study"].mcy { background: var(--cs-bg); color: var(--cs-text); }
.mcy .site-header { background: rgba(11,20,36,.92) !important; border-bottom: 1px solid var(--cs-line) !important; }
.mcy .site-header .brand__name, .mcy .site-header .brand__mark, .mcy .site-header .primary-nav a { color: var(--cs-text); }
.mcy .site-header .primary-nav a.is-active { color: var(--accent); }
.mcy .site-header .brand__role { color: var(--cs-text-3); }
.mcy .site-header .nav-burger span { background: var(--cs-text); }
.mcy .site-header .header-cta.btn--ink { background: #fff; color: var(--cs-bg); }
.mcy .mobile-nav { background: var(--cs-surface); border-color: var(--cs-line); }
.mcy .mobile-nav a { color: var(--cs-text); }
.mcy .mobile-nav a.is-active { color: var(--accent); }

.cs-progress__bar { height: 100%; width: 0%; background: var(--accent-strong); }

/* Hero */
.cs-hero {
  position: relative; 
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--accent-soft) 100%);
}
.cs-hero__blur {
  position: absolute; top: -100px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,220,113,.55) 0%, rgba(255,220,113,0) 65%);
  pointer-events: none;
}
.cs-hero__grid {
  max-width: 1240px; margin: 0 auto;
  padding: 72px 40px 80px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.cs-hero__tag { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: #6B6F76; margin-bottom: 20px; }
.cs-hero__tag i { width: 3px; height: 3px; border-radius: 999px; background: #0B1424; }
.cs-hero__title { font-size: 68px; line-height: 1.02; font-weight: 700; letter-spacing: -2.2px; margin: 0 0 20px; }
.cs-hero__sub { font-size: 22px; line-height: 1.35; color: #0B1424; margin: 0 0 32px; max-width: 480px; font-weight: 500; }
.cs-hero__ctas { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.cs-hero__ctas .btn--accent { background: var(--accent); }
.cs-hero__meta { display: grid; grid-template-columns: repeat(4, auto); gap: 40px; padding-top: 24px; border-top: 1px solid rgba(21,21,19,.08); }
.cs-hero__meta-label { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; color: #6B6F76; margin-bottom: 6px; }
.cs-hero__meta-value { font-size: 13px; font-weight: 500; }
.cs-hero__mocks { position: relative; height: 560px; }
.cs-hero__mock { position: absolute; display: block; }
.cs-hero__mock--1 { left: -20px; top: 60px; width: 230px; z-index: 1; transform: rotate(-4deg); filter: drop-shadow(0 30px 50px rgba(21,21,19,.18)); }
.cs-hero__mock--2 { right: -20px; top: 0; width: 250px; z-index: 2; transform: rotate(3deg); filter: drop-shadow(0 40px 60px rgba(21,21,19,.22)); }

/* Chapter nav */
.cs-chapters { border-bottom: 1px solid #EDEDED; background: #fff;  z-index: 40; }
.cs-chapters__inner { max-width: 1240px; margin: 0 auto; padding: 6px 20px; display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: 13px; font-weight: 500; }
.cs-chapters a { padding: 10px 12px; color: var(--ink-3); white-space: nowrap; border-radius: 999px; }
.cs-chapters a.is-active { color: var(--ink); background: var(--accent-soft); }
.cs-chapters-drawer { display: none; border-bottom: 1px solid #EDEDED; background: #fff;  z-index: 40; }
.cs-chapters-drawer__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-2); border: 0; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.cs-chapters-drawer__btn::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--accent-strong); margin-right: 8px; }
.cs-chapters-drawer__caret { }
.cs-chapters-drawer.is-open .cs-chapters-drawer__caret { transform: rotate(180deg); }
.cs-chapters-drawer__wrap { padding: 10px 20px; position: relative; }
.cs-chapters-drawer__menu {
  position: absolute; top: 100%; left: 20px; right: 20px;
  background: #fff; border: 1px solid #EDEDED; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(21,21,19,.12);
  padding: 8px; z-index: 45; margin-top: 4px;
  max-height: 60vh; overflow-y: auto;
  display: none;
}
.cs-chapters-drawer.is-open .cs-chapters-drawer__menu { display: block; }
.cs-chapters-drawer__menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); }

/* Sections */
.cs-section { max-width: 1120px; margin: 0 auto; padding: 96px 40px 40px; }
.cs-section--tight { padding: 60px 40px; }
.cs-eyebrow { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.cs-eyebrow__n { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.cs-eyebrow__label { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); }
.cs-h2 { font-size: 32px; font-weight: 700; letter-spacing: -.8px; margin: 0 0 22px; line-height: 1.2; }
.cs-p { font-size: 15px; line-height: 1.7; color: #4A4E57; margin: 0 0 14px; }
.cs-p:last-child { margin: 0; }

.cs-2col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.cs-2col--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }

.cs-overview-media { position: relative; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; background: var(--accent); }
.cs-overview-media img { width: 100%; height: 100%; object-fit: cover; }

.cs-challenge-card { background: var(--accent-soft); border-radius: 20px; padding: 32px 28px; }
.cs-challenge-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.cs-challenge-card li { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
.cs-check {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.cs-4col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cs-3col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cs-goals { gap: 32px; }
.cs-goal { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px; }
.cs-goal__icon { width: 64px; height: 64px; border-radius: 999px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.cs-goal__label { font-size: 15px; font-weight: 600; line-height: 1.45; max-width: 200px; }

.cs-role-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.cs-role-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.cs-role-col li { display: flex; align-items: center; gap: 10px; }
.cs-role-col li i { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }
.cs-role-tool i { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; font-style: normal; }

.cs-process-wrap { position: relative; }
.cs-process-line { position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: #E7E7E7; }
.cs-process { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; position: relative; }
.cs-process__step { }
.cs-process__n { width: 44px; height: 44px; border-radius: 999px; background: #F3F3F3; color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.cs-process__step.is-active .cs-process__n { background: var(--accent); }
.cs-process__label { font-size: 14px; font-weight: 600; line-height: 1.35; }

.cs-feature-card { background: var(--bg-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-height: 460px; }
.cs-feature-card__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cs-feature-card__body { font-size: 13px; color: #4A4E57; line-height: 1.5; margin-bottom: 22px; }
.cs-feature-card__media { margin-top: auto; display: flex; justify-content: center; }
.cs-feature-card__media img { max-width: 190px; }

.cs-decision-card { background: var(--bg-2); border-radius: 20px; padding: 20px; display: flex; gap: 20px; align-items: center; }
.cs-decision-card__img { width: 45%; flex-shrink: 0; }
.cs-decision-card__title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.cs-decision-card__body { font-size: 12px; color: #4A4E57; line-height: 1.5; }

.cs-ds-card { border: 1px solid #EDEDED; border-radius: 20px; padding: 24px; }
.cs-ds-card__title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cs-ds-card__sub { font-size: 11px; color: var(--ink-3); margin-bottom: 22px; }
.cs-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
.cs-swatch { min-width: 0; overflow: hidden; }
.cs-swatch__name, .cs-swatch__hex { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-ds-card { min-width: 0; overflow: hidden; }
.cs-swatch { background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
.cs-swatch__chip { height: 40px; border-radius: 10px; margin-bottom: 6px; }
.cs-swatch__name { font-size: 10px; font-weight: 600; }
.cs-swatch__hex { font-size: 10px; color: var(--ink-3); }
.cs-type-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.cs-type-Aa { font-size: 46px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.cs-type-scale { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid #F0F0F0; }
.cs-type-scale > div { display: flex; justify-content: space-between; font-size: 11px; }
.cs-type-scale span:last-child { color: var(--ink-3); }
.cs-comps { display: flex; flex-direction: column; gap: 12px; }
.cs-comp-btn { background: var(--accent); padding: 10px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; text-align: center; }
.cs-comp-btn--outline { background: #fff; border: 1px solid var(--line-2); }
.cs-comp-input { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; }
.cs-comp-controls { display: flex; align-items: center; gap: 12px; }
.cs-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cs-icon-box { aspect-ratio: 1; border-radius: 10px; background: #F5F5F3; display: flex; align-items: center; justify-content: center; }

.cs-proto { max-width: 1120px; margin: 0 auto; padding: 60px 20px; }
.cs-proto__wrap { background: var(--bg-2); border-radius: 24px; overflow: hidden; padding: 40px; }
.cs-proto__head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.cs-proto__eyebrow { display: flex; justify-content: center; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.cs-proto__embed { position: relative; aspect-ratio: 16/10; background: var(--ink); border-radius: 16px; overflow: hidden; max-width: 1000px; margin: 0 auto 24px; }
.cs-proto__loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; z-index: 1; }
.cs-proto__spinner { width: 40px; height: 40px; border-radius: 999px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); }
.cs-proto__loader-text { font-size: 12px; color: rgba(255,255,255,.65); letter-spacing: .5px; }
.cs-proto__iframe { width: 100%; height: 100%; border: 0; position: relative; z-index: 2; opacity: 0; }
.cs-proto__iframe.is-loaded { opacity: 1; }
.cs-proto__open { display: flex; justify-content: center; }

.cs-results-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.cs-results-list li { display: flex; align-items: center; gap: 14px; font-size: 14px; }

.cs-gallery-wrap { max-width: 1120px; margin: 0 auto; padding: 60px 20px 40px; }
.cs-gallery-head { margin-bottom: 40px; padding: 0 20px; }
.cs-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 0 20px; }
.cs-gallery__btn { background: transparent; border: 0; padding: 0; cursor: pointer; display: block; }
.cs-gallery__btn img { width: 100%; }

.cs-gallery-toggle { display: flex; justify-content: center; margin-top: 32px; }

/* Lightbox */
.cs-lightbox {
  position: fixed; inset: 0; background: rgba(21,21,19,.92); z-index: 100;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.cs-lightbox.is-open { display: flex; }
.cs-lightbox__btn {
  position: absolute; background: rgba(255,255,255,.1);
  border: 0; color: #fff; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

.cs-lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 22px; }
.cs-lightbox__fs { top: 20px; right: 72px; width: 44px; height: 44px; }
.cs-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 22px; }
.cs-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 22px; }
.cs-lightbox__stage { position: relative; max-height: 80vh; display: flex; align-items: center; justify-content: center; }
.cs-lightbox__spinner { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1; }
.cs-lightbox.is-loading .cs-lightbox__spinner { display: flex; }
.cs-lightbox__spinner div { width: 40px; height: 40px; border-radius: 999px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); }
.cs-lightbox__img { max-height: 80vh; max-width: 90vw; object-fit: contain; }
.cs-lightbox.is-loading .cs-lightbox__img { opacity: .3; }
.cs-lightbox__meta { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cs-lightbox__alt { color: #fff; font-size: 14px; font-weight: 500; }
.cs-lightbox__count { background: var(--accent); color: var(--ink); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.cs-lightbox__kbd { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: 11px; }
.cs-lightbox__kbd kbd { border: 1px solid rgba(255,255,255,.25); padding: 2px 6px; border-radius: 4px; font-family: inherit; }

.cs-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 40px; max-width: 1120px; margin: 0 auto; }
.cs-footer-nav a { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: rgba(255,255,255,.04); border-radius: 14px; }
.cs-footer-nav a:last-child { text-align: right; align-items: flex-end; }
.cs-footer-nav__label { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: 1px; }
.cs-footer-nav__title { font-size: 15px; font-weight: 600; color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .cs-hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .cs-hero__title { font-size: 52px; }
  .cs-2col { grid-template-columns: 1fr; gap: 40px; }
  .cs-role-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cs-4col { grid-template-columns: repeat(2, 1fr); }
  .cs-3col { grid-template-columns: 1fr; }
  .cs-process { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .cs-process-line { display: none; }
  .cs-gallery { grid-template-columns: repeat(4, 1fr); }
  .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .cs-results-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}
@media (max-width: 720px) {
  .cs-chapters { display: none; }
  .cs-chapters-drawer { display: block; }
}
@media (max-width: 640px) {
  .cs-chapters, .cs-chapters-drawer { top: 64px; }
  .cs-hero__grid { padding: 32px 20px 44px; }
  .cs-hero__title { font-size: 40px; letter-spacing: -1.4px; }
  .cs-hero__sub { font-size: 18px; }
  .cs-section { padding: 40px 20px 16px; }
  .cs-section--tight { padding: 40px 20px; }
  .cs-h2 { font-size: 26px; }
  .cs-4col { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cs-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cs-process { grid-template-columns: repeat(2, 1fr); }
  .cs-role-cols { grid-template-columns: 1fr; }
  .cs-decision-card { flex-direction: column; align-items: stretch; padding: 24px; }
  .cs-decision-card__img { width: auto; max-width: 220px; margin: 8px auto 0; order: 2; }
  .cs-decision-card__text { order: 1; }
  .cs-hero__mocks { height: 420px; }
  .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 20px; gap: 20px; }
  .cs-proto { padding: 40px 20px; }
  .cs-proto__wrap { padding: 20px; }
  .cs-proto__embed { aspect-ratio: 9/21; max-width: 360px; margin: 0 auto 24px; }
  .cs-gallery-wrap { padding: 40px 12px 24px; }
  #system.cs-section .cs-4col { grid-template-columns: 1fr; gap: 16px; }
  #features .cs-feature-card { min-height: 0; }
  #features .cs-feature-card__media img { max-width: 160px; }
  .cs-lightbox { padding: 20px 16px; }
  .cs-lightbox__img { max-height: 58vh; max-width: 88vw; }
  .cs-footer-nav { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 640px) and (max-height: 780px) {
  .cs-lightbox__img { max-height: 52vh; }
}
@media (max-width: 520px) {
  #features .cs-4col { grid-template-columns: 1fr !important; }
  #features .cs-feature-card { min-height: 0; }
  #features .cs-feature-card__media img { max-width: 220px; width: 100%; height: auto; }
  .cs-4col, .cs-3col, .cs-2col { min-width: 0; }
  .cs-section, .cs-section--tight {  }
}
.cs-feature-card { min-width: 0; overflow: hidden; }
.cs-feature-card__media img { max-width: 100%; height: auto; }



/* Money Care dark theme overrides */


.cs-hero__title { color: var(--cs-text); }
.cs-hero__sub { color: var(--cs-text-2); font-weight: 400; }
.cs-hero__tag { color: var(--cs-text-3); }
.cs-hero__tag i { background: var(--cs-text-3); }
.cs-hero__meta { border-top-color: var(--cs-line); }
.cs-hero__meta-label { color: var(--cs-text-3); }
.cs-hero__meta-value { color: var(--cs-text); }
.cs-hero__ctas .btn--accent { background: var(--accent); color: #fff; }
.cs-hero__ctas .btn--outline { background: transparent; color: var(--cs-text); border-color: var(--cs-line-2); }

.cs-chapters { background: var(--cs-bg); border-bottom-color: var(--cs-line); }
.cs-chapters a { color: var(--cs-text-3); }
.cs-chapters a.is-active { color: var(--cs-text); background: var(--cs-card); }
.cs-chapters-drawer { background: var(--cs-bg); border-bottom-color: var(--cs-line); }
.cs-chapters-drawer__btn { background: var(--cs-card); color: var(--cs-text); }
.cs-chapters-drawer__menu { background: var(--cs-card); border-color: var(--cs-line); }
.cs-chapters-drawer__menu a { color: var(--cs-text); }

.cs-h2 { color: var(--cs-text); }
.cs-p { color: var(--cs-text-2); }
.cs-eyebrow__n, .cs-eyebrow__label { color: var(--cs-text-3); }

.cs-overview-media { background: var(--cs-card); border: 1px solid var(--cs-line); }
.cs-challenge-card { background: var(--cs-card); }
.cs-challenge-card li { color: var(--cs-text); }
.cs-check { background: var(--accent); }
.cs-check svg path { stroke: #fff; }
.cs-goal__icon { background: var(--cs-card); }
.cs-goal__icon svg path, .cs-goal__icon svg circle { fill: var(--accent); stroke: var(--accent); }
.cs-goal__label { color: var(--cs-text); }
.cs-role-col ul li { color: var(--cs-text-2); }
.cs-role-col li i { background: var(--accent); }
.cs-role-tool i { background: var(--accent); color: #fff; }
.cs-role-tool i.cs-tool-icon { background: transparent !important; padding: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.cs-process__n { background: var(--cs-card); color: var(--cs-text-3); }
.cs-process__step.is-active .cs-process__n { background: var(--accent); color: #fff; }
.cs-process__label { color: var(--cs-text); }
.cs-process-line { background: var(--cs-line); }

.cs-feature-card { background: var(--cs-card); }
.cs-feature-card__title { color: var(--cs-text); }
.cs-feature-card__body { color: var(--cs-text-2); }
.cs-decision-card { background: var(--cs-card); }
.cs-decision-card__title { color: var(--cs-text); }
.cs-decision-card__body { color: var(--cs-text-2); }

.cs-ds-card { border-color: var(--cs-line); background: var(--cs-surface); }
.cs-ds-card__title { color: var(--cs-text); }
.cs-ds-card__sub { color: var(--cs-text-3); }
.cs-swatch__name { color: var(--cs-text); }
.cs-swatch__hex { color: var(--cs-text-3); }
.cs-type-Aa { color: var(--cs-text); }
.cs-type-scale { border-top-color: var(--cs-line); color: var(--cs-text); }
.cs-type-scale span:last-child { color: var(--cs-text-3); }
.cs-comp-btn { background: var(--accent); color: #fff; }
.cs-comp-btn--outline { background: transparent; color: var(--cs-text); border-color: var(--cs-line-2); }
.cs-comp-input { border-color: var(--cs-line-2); color: var(--cs-text-3); }
.cs-icon-box { background: var(--cs-card); color: var(--cs-text); }
.cs-icon-box svg { stroke: var(--cs-text); }

.cs-proto__wrap { background: var(--cs-surface); border: 1px solid var(--cs-line); }
.cs-proto__embed { background: #000; }
.cs-proto__head p { color: var(--cs-text-2) !important; }

.cs-results-list li { color: var(--cs-text); }
.cs-gallery-head p { color: var(--cs-text-3) !important; }
.cs-gallery__btn img { background: transparent; }
.cs-gallery__btn { background: transparent; }

.cs-lightbox__count { background: var(--accent); color: #fff; }

/* Buttons in mcy scope */
.mcy .btn--ink { background: #fff; color: var(--cs-bg); }

.mcy .btn--outline { background: transparent; border: 1px solid var(--cs-line-2); color: var(--cs-text); }


/* ============================================================ */
/* ===== YELLOW-TAXI case study ===== */
/* ============================================================ */

/* Yellow Taxi case study styles */
.ytx {
  background: var(--cs-bg); color: var(--cs-text);
  --accent: #FFDC71;
  --accent-strong: #F8BD00;
  --accent-soft: #FFF4D6;
  --accent-tint: #FFFBEF;
  --cs-bg: #FFFBEF;
  --cs-surface: #FFFFFF;
  --cs-card: #FFF4D6;
  --cs-line: rgba(21,21,19,0.10);
  --cs-line-2: rgba(21,21,19,0.16);
  --cs-text: #151513;
  --cs-text-2: #4A4E57;
  --cs-text-3: #6B6F76;
  color: var(--ink);
}

/* Hero */
/* Chapter nav */
/* Sections */
/* Lightbox */
/* Responsive */
@media (max-width: 960px) {
  .cs-hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  .cs-hero__title { font-size: 52px; }
  .cs-2col { grid-template-columns: 1fr; gap: 40px; }
  .cs-role-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cs-4col { grid-template-columns: repeat(2, 1fr); }
  .cs-3col { grid-template-columns: 1fr; }
  .cs-process { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .cs-process-line { display: none; }
  .cs-gallery { grid-template-columns: repeat(4, 1fr); }
  .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .cs-results-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}
@media (max-width: 720px) {
  .cs-chapters { display: none; }
  .cs-chapters-drawer { display: block; }
}

@media (max-width: 640px) {
  .cs-chapters, .cs-chapters-drawer { top: 64px; }
  
  .cs-hero__grid { padding: 32px 20px 44px; }
  .cs-hero__title { font-size: 40px; letter-spacing: -1.4px; }
  .cs-hero__sub { font-size: 18px; }
  .cs-section { padding: 40px 20px 16px; }
  .cs-section--tight { padding: 40px 20px; }
  .cs-h2 { font-size: 26px; }
  .cs-4col { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #features .cs-4col { grid-template-columns: minmax(0, 1fr); }
  .cs-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cs-process { grid-template-columns: repeat(2, 1fr); }
  .cs-role-cols { grid-template-columns: 1fr; }
  .cs-decision-card { flex-direction: column; align-items: stretch; padding: 24px; }
  .cs-decision-card__img { width: auto; max-width: 220px; margin: 8px auto 0; order: 2; }
  .cs-decision-card__text { order: 1; }
  .cs-hero__mocks { height: 420px; }
  .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 20px; gap: 20px; }
  .cs-proto { padding: 40px 20px; }
  .cs-proto__wrap { padding: 20px; }
  .cs-proto__embed { aspect-ratio: 9/21; max-width: 360px; margin: 0 auto 24px; }
  .cs-gallery-wrap { padding: 40px 12px 24px; }
  #system.cs-section .cs-4col { grid-template-columns: 1fr; gap: 16px; }
  #features .cs-feature-card { min-height: 0; }
  #features .cs-feature-card__media img { max-width: 160px; }
  .cs-lightbox { padding: 20px 16px; }
  .cs-lightbox__img { max-height: 58vh; max-width: 88vw; }
  .cs-footer-nav { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 640px) and (max-height: 780px) {
  .cs-lightbox__img { max-height: 52vh; }
}


/* ============================================================ */
/* ===== FLUXNODE case study ===== */
/* ============================================================ */

/* Money Care case study styles */
.flx {
  --accent: #7314B8;
  --accent-2: #9F7EDB;
  --accent-strong: #5D3BA8;
  --accent-pink: #E891AF;
  --accent-soft: rgba(115,20,184,0.16);
  --accent-tint: #06060A;
  --cs-bg: #06060A;
  --cs-surface: #0B0B0E;
  --cs-card: #191127;
  --cs-line: rgba(255,255,255,0.08);
  --cs-line-2: rgba(255,255,255,0.14);
  --cs-text: #FFFFFF;
  --cs-text-2: #BFB6CA;
  --cs-text-3: #8B8390;
  background: var(--cs-bg);
  color: var(--cs-text);
}
body[data-page="case-study"].flx { background: var(--cs-bg); color: var(--cs-text); }
.flx .site-header { background: rgba(11,11,14,.94) !important; border-bottom: 1px solid var(--cs-line) !important; }
.flx .site-header .brand__mark { background: var(--accent) !important; color: #fff !important; }
.flx .site-header .brand__name, .flx .site-header .brand__mark, .flx .site-header .primary-nav a { color: var(--cs-text); }
.flx .site-header .primary-nav a.is-active { color: var(--accent); }
.flx .site-header .brand__role { color: var(--cs-text-3); }
.flx .site-header .nav-burger span { background: var(--cs-text); }
.flx .site-header .header-cta.btn--ink { background: #fff; color: var(--cs-bg); }
.flx .mobile-nav { background: var(--cs-surface); border-color: var(--cs-line); }
.flx .mobile-nav a { color: var(--cs-text); }
.flx .mobile-nav a.is-active { color: var(--accent); }

body.flx .cs-progress__bar { height: 100%; width: 0%; background: var(--accent-strong); }

/* Hero */
body.flx .cs-hero {
  position: relative; 
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--accent-soft) 100%);
}
body.flx .cs-hero__blur {
  position: absolute; top: -100px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,220,113,.55) 0%, rgba(255,220,113,0) 65%);
  pointer-events: none;
}
body.flx .cs-hero__tag { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: #6B6F76; margin-bottom: 20px; }
body.flx .cs-hero__tag i { width: 3px; height: 3px; border-radius: 999px; background: #0B1424; }
body.flx .cs-hero__title { font-size: 68px; line-height: 1.02; font-weight: 700; letter-spacing: -2.2px; margin: 0 0 20px; }
body.flx .cs-hero__sub { font-size: 22px; line-height: 1.35; color: #0B1424; margin: 0 0 32px; max-width: 480px; font-weight: 500; }
body.flx .cs-hero__ctas .btn--accent { background: var(--accent); }
body.flx .cs-hero__meta-label { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; color: #6B6F76; margin-bottom: 6px; }
body.flx .cs-hero__meta-value { font-size: 13px; font-weight: 500; }
body.flx .cs-hero__mock { position: absolute; display: block; }
body.flx .cs-hero__mock--1 { left: -20px; top: 60px; width: 230px; z-index: 1; transform: rotate(-4deg); filter: drop-shadow(0 30px 50px rgba(21,21,19,.18)); }
body.flx .cs-hero__mock--2 { right: -20px; top: 0; width: 250px; z-index: 2; transform: rotate(3deg); filter: drop-shadow(0 40px 60px rgba(21,21,19,.22)); }

/* Chapter nav */
body.flx .cs-chapters { border-bottom: 1px solid #EDEDED; background: #fff;  z-index: 40; }
body.flx .cs-chapters__inner { max-width: 1240px; margin: 0 auto; padding: 6px 20px; display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: 13px; font-weight: 500; }
body.flx .cs-chapters a { padding: 10px 12px; color: var(--ink-3); white-space: nowrap; border-radius: 999px; }
body.flx .cs-chapters a.is-active { color: var(--ink); background: var(--accent-soft); }
body.flx .cs-chapters-drawer { display: none; border-bottom: 1px solid #EDEDED; background: #fff;  z-index: 40; }
body.flx .cs-chapters-drawer__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-2); border: 0; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
body.flx .cs-chapters-drawer__btn::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--accent-strong); margin-right: 8px; }
body.flx .cs-chapters-drawer__caret { }
body.flx .cs-chapters-drawer.is-open .cs-chapters-drawer__caret { transform: rotate(180deg); }
body.flx .cs-chapters-drawer__menu {
  position: absolute; top: 100%; left: 20px; right: 20px;
  background: #fff; border: 1px solid #EDEDED; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(21,21,19,.12);
  padding: 8px; z-index: 45; margin-top: 4px;
  max-height: 60vh; overflow-y: auto;
  display: none;
}
body.flx .cs-chapters-drawer.is-open .cs-chapters-drawer__menu { display: block; }
body.flx .cs-chapters-drawer__menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); }

/* Sections */
body.flx .cs-eyebrow__n { font-size: 13px; font-weight: 600; color: var(--ink-3); }
body.flx .cs-eyebrow__label { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); }
body.flx .cs-h2 { font-size: 32px; font-weight: 700; letter-spacing: -.8px; margin: 0 0 22px; line-height: 1.2; }
body.flx .cs-p { font-size: 15px; line-height: 1.7; color: #4A4E57; margin: 0 0 14px; }
body.flx .cs-p:last-child { margin: 0; }

body.flx .cs-overview-media { position: relative; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; background: var(--accent); }
body.flx .cs-overview-media img { width: 100%; height: 100%; object-fit: cover; }

body.flx .cs-challenge-card { background: var(--accent-soft); border-radius: 20px; padding: 32px 28px; }
body.flx .cs-challenge-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
body.flx .cs-challenge-card li { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
body.flx .cs-check {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

body.flx .cs-goal__icon { width: 64px; height: 64px; border-radius: 999px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
body.flx .cs-goal__label { font-size: 15px; font-weight: 600; line-height: 1.45; max-width: 200px; }

body.flx .cs-role-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
body.flx .cs-role-col li i { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }
body.flx .cs-role-tool i { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; font-style: normal; }

body.flx .cs-process-wrap { position: relative; }
body.flx .cs-process-line { position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: #E7E7E7; }
body.flx .cs-process__step { }
body.flx .cs-process__n { width: 44px; height: 44px; border-radius: 999px; background: #F3F3F3; color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
body.flx .cs-process__step.is-active .cs-process__n { background: var(--accent); }
body.flx .cs-process__label { font-size: 14px; font-weight: 600; line-height: 1.35; }

body.flx .cs-feature-card { background: var(--bg-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-height: 460px; }
body.flx .cs-feature-card__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
body.flx .cs-feature-card__body { font-size: 13px; color: #4A4E57; line-height: 1.5; margin-bottom: 22px; }
body.flx .cs-decision-card { background: var(--bg-2); border-radius: 20px; padding: 20px; display: flex; gap: 20px; align-items: center; }
body.flx .cs-decision-card__title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
body.flx .cs-decision-card__body { font-size: 12px; color: #4A4E57; line-height: 1.5; }

body.flx .cs-ds-card { border: 1px solid #EDEDED; border-radius: 20px; padding: 24px; }
body.flx .cs-ds-card__title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
body.flx .cs-ds-card__sub { font-size: 11px; color: var(--ink-3); margin-bottom: 22px; }
body.flx .cs-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
body.flx .cs-swatch { min-width: 0; overflow: hidden; }
body.flx .cs-swatch__name, body.flx .cs-swatch__hex { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.flx .cs-swatch { background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
body.flx .cs-swatch__chip { height: 40px; border-radius: 10px; margin-bottom: 6px; }
body.flx .cs-swatch__name { font-size: 10px; font-weight: 600; }
body.flx .cs-swatch__hex { font-size: 10px; color: var(--ink-3); }
body.flx .cs-type-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
body.flx .cs-type-Aa { font-size: 46px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
body.flx .cs-type-scale { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid #F0F0F0; }
body.flx .cs-type-scale > div { display: flex; justify-content: space-between; font-size: 11px; }
body.flx .cs-type-scale span:last-child { color: var(--ink-3); }
body.flx .cs-comps { display: flex; flex-direction: column; gap: 12px; }
body.flx .cs-comp-btn { background: var(--accent); padding: 10px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; text-align: center; }
body.flx .cs-comp-btn--outline { background: #fff; border: 1px solid var(--line-2); }
body.flx .cs-comp-input { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; }
body.flx .cs-comp-controls { display: flex; align-items: center; gap: 12px; }
body.flx .cs-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
body.flx .cs-icon-box { aspect-ratio: 1; border-radius: 10px; background: #F5F5F3; display: flex; align-items: center; justify-content: center; }

body.flx .cs-proto__wrap { background: var(--bg-2); border-radius: 24px; overflow: hidden; padding: 40px; }
body.flx .cs-proto__embed { position: relative; aspect-ratio: 16/10; background: var(--ink); border-radius: 16px; overflow: hidden; max-width: 1000px; margin: 0 auto 24px; }
body.flx .cs-proto__loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; z-index: 1; }
body.flx .cs-proto__spinner { width: 40px; height: 40px; border-radius: 999px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); }
body.flx .cs-proto__loader-text { font-size: 12px; color: rgba(255,255,255,.65); letter-spacing: .5px; }
body.flx .cs-proto__iframe { width: 100%; height: 100%; border: 0; position: relative; z-index: 2; opacity: 0; }
body.flx .cs-proto__iframe.is-loaded { opacity: 1; }
body.flx .cs-results-list li { display: flex; align-items: center; gap: 14px; font-size: 14px; }

body.flx .cs-gallery__btn { background: transparent; border: 0; padding: 0; cursor: pointer; display: block; }
/* Lightbox */
body.flx .cs-lightbox {
  position: fixed; inset: 0; background: rgba(21,21,19,.92); z-index: 100;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
}
body.flx .cs-lightbox__btn {
  position: absolute; background: rgba(255,255,255,.1);
  border: 0; color: #fff; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

body.flx .cs-lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 22px; }
body.flx .cs-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 22px; }
body.flx .cs-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 22px; }
body.flx .cs-lightbox__spinner { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1; }
body.flx .cs-lightbox__spinner div { width: 40px; height: 40px; border-radius: 999px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); }
body.flx .cs-lightbox.is-loading .cs-lightbox__img { opacity: .3; }
body.flx .cs-lightbox__alt { color: #fff; font-size: 14px; font-weight: 500; }
body.flx .cs-lightbox__count { background: var(--accent); color: var(--ink); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
body.flx .cs-lightbox__kbd { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: 11px; }
body.flx .cs-lightbox__kbd kbd { border: 1px solid rgba(255,255,255,.25); padding: 2px 6px; border-radius: 4px; font-family: inherit; }

body.flx .cs-footer-nav a { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: rgba(255,255,255,.04); border-radius: 14px; }
body.flx .cs-footer-nav a:last-child { text-align: right; align-items: flex-end; }
body.flx .cs-footer-nav__label { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: 1px; }
body.flx .cs-footer-nav__title { font-size: 15px; font-weight: 600; color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  body.flx .cs-hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  body.flx .cs-hero__title { font-size: 52px; }
  body.flx .cs-2col { grid-template-columns: 1fr; gap: 40px; }
  body.flx .cs-role-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  body.flx .cs-4col { grid-template-columns: repeat(2, 1fr); }
  body.flx .cs-3col { grid-template-columns: 1fr; }
  body.flx .cs-process { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  body.flx .cs-process-line { display: none; }
  body.flx .cs-gallery { grid-template-columns: repeat(4, 1fr); }
  body.flx .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  body.flx .cs-results-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}
@media (max-width: 720px) {
  body.flx .cs-chapters { display: none; }
  body.flx .cs-chapters-drawer { display: block; }
}
@media (max-width: 640px) {
  body.flx .cs-chapters, body.flx .cs-chapters-drawer { top: 64px; }
  body.flx .cs-hero__grid { padding: 32px 20px 44px; }
  body.flx .cs-hero__title { font-size: 40px; letter-spacing: -1.4px; }
  body.flx .cs-hero__sub { font-size: 18px; }
  body.flx .cs-section { padding: 40px 20px 16px; }
  body.flx .cs-section--tight { padding: 40px 20px; }
  body.flx .cs-h2 { font-size: 26px; }
  body.flx .cs-4col { grid-template-columns: 1fr 1fr; gap: 20px; }
  body.flx .cs-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  body.flx .cs-process { grid-template-columns: repeat(2, 1fr); }
  body.flx .cs-role-cols { grid-template-columns: 1fr; }
  body.flx .cs-decision-card { flex-direction: column; align-items: stretch; padding: 24px; }
  body.flx .cs-decision-card__img { width: auto; max-width: 220px; margin: 8px auto 0; order: 2; }
  body.flx .cs-decision-card__text { order: 1; }
  body.flx .cs-hero__mocks { height: 420px; }
  body.flx .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 20px; gap: 20px; }
  body.flx .cs-proto { padding: 40px 20px; }
  body.flx .cs-proto__wrap { padding: 20px; }
  body.flx .cs-proto__embed { aspect-ratio: 9/21; max-width: 360px; margin: 0 auto 24px; }
  body.flx .cs-gallery-wrap { padding: 40px 12px 24px; }
  #system.cs-section .cs-4col { grid-template-columns: 1fr; gap: 16px; }
  #features .cs-feature-card { min-height: 0; }
  #features .cs-feature-card__media img { max-width: 160px; }
  body.flx .cs-lightbox { padding: 20px 16px; }
  body.flx .cs-lightbox__img { max-height: 58vh; max-width: 88vw; }
  body.flx .cs-footer-nav { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 640px) and (max-height: 780px) {
  body.flx .cs-lightbox__img { max-height: 52vh; }
}
@media (max-width: 520px) {
  #features .cs-4col { grid-template-columns: 1fr !important; }
  #features .cs-feature-card { min-height: 0; }
  #features .cs-feature-card__media img { max-width: 220px; width: 100%; height: auto; }
  body.flx .cs-4col, body.flx .cs-3col, body.flx .cs-2col { min-width: 0; }
  body.flx .cs-section, body.flx .cs-section--tight {  }
}


/* FluxNode dark theme overrides */
body.flx .cs-hero { background: #06060A url('../img/fluxnode/hero-bg.png') center/cover; }
body.flx .cs-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,6,10,.6) 0%, rgba(6,6,10,.92) 100%); pointer-events: none; }
body.flx .cs-hero__grid { position: relative; z-index: 1; }
body.flx .cs-hero__blur { background: radial-gradient(circle, rgba(159,126,219,.35) 0%, rgba(159,126,219,0) 65%); }
body.flx .cs-hero__title { color: var(--cs-text); }
body.flx .cs-hero__sub { color: var(--cs-text-2); font-weight: 400; }
body.flx .cs-hero__tag { color: var(--cs-text-3); }
body.flx .cs-hero__tag i { background: var(--cs-text-3); }
body.flx .cs-hero__meta { border-top-color: var(--cs-line); }
body.flx .cs-hero__meta-label { color: var(--cs-text-3); }
body.flx .cs-hero__meta-value { color: var(--cs-text); }
body.flx .cs-hero__ctas .btn--accent { background: var(--accent); color: #fff; }
body.flx .cs-hero__ctas .btn--outline { background: transparent; color: var(--cs-text); border-color: var(--cs-line-2); }

body.flx .cs-chapters { background: var(--cs-bg); border-bottom-color: var(--cs-line); }
body.flx .cs-chapters a { color: var(--cs-text-3); }
body.flx .cs-chapters a.is-active { color: var(--cs-text); background: var(--cs-card); }
body.flx .cs-chapters-drawer { background: var(--cs-bg); border-bottom-color: var(--cs-line); }
body.flx .cs-chapters-drawer__btn { background: var(--cs-card); color: var(--cs-text); }
body.flx .cs-chapters-drawer__menu { background: var(--cs-card); border-color: var(--cs-line); }
body.flx .cs-chapters-drawer__menu a { color: var(--cs-text); }

body.flx .cs-h2 { color: var(--cs-text); }
body.flx .cs-p { color: var(--cs-text-2); }
body.flx .cs-eyebrow__n, body.flx .cs-eyebrow__label { color: var(--cs-text-3); }

body.flx .cs-overview-media { background: var(--cs-card); border: 1px solid var(--cs-line); }
body.flx .cs-challenge-card { background: var(--cs-card); }
body.flx .cs-challenge-card li { color: var(--cs-text); }
body.flx .cs-check { background: var(--accent); }
body.flx .cs-check svg path { stroke: #fff; }
body.flx .cs-goal__icon { background: var(--cs-card); }
body.flx .cs-goal__icon svg path, body.flx .cs-goal__icon svg circle { fill: var(--accent); stroke: var(--accent); }
body.flx .cs-goal__label { color: var(--cs-text); }
body.flx .cs-role-col ul li { color: var(--cs-text-2); }
body.flx .cs-role-col li i { background: var(--accent); }
body.flx .cs-role-tool i { background: var(--accent); color: #fff; }
body.flx .cs-role-tool i.cs-tool-icon { background: transparent !important; padding: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
body.flx .cs-process__n { background: var(--cs-card); color: var(--cs-text-3); }
body.flx .cs-process__step.is-active .cs-process__n { background: var(--accent); color: #fff; }
body.flx .cs-process__label { color: var(--cs-text); }
body.flx .cs-process-line { background: var(--cs-line); }

body.flx .cs-feature-card { background: var(--cs-card); }
body.flx .cs-feature-card__title { color: var(--cs-text); }
body.flx .cs-feature-card__body { color: var(--cs-text-2); }
body.flx .cs-decision-card { background: var(--cs-card); }
body.flx .cs-decision-card__title { color: var(--cs-text); }
body.flx .cs-decision-card__body { color: var(--cs-text-2); }

body.flx .cs-ds-card { border-color: var(--cs-line); background: var(--cs-surface); }
body.flx .cs-ds-card__title { color: var(--cs-text); }
body.flx .cs-ds-card__sub { color: var(--cs-text-3); }
body.flx .cs-swatch__name { color: var(--cs-text); }
body.flx .cs-swatch__hex { color: var(--cs-text-3); }
body.flx .cs-type-Aa { color: var(--cs-text); }
body.flx .cs-type-scale { border-top-color: var(--cs-line); color: var(--cs-text); }
body.flx .cs-type-scale span:last-child { color: var(--cs-text-3); }
body.flx .cs-comp-btn { background: var(--accent); color: #fff; }
body.flx .cs-comp-btn--outline { background: transparent; color: var(--cs-text); border-color: var(--cs-line-2); }
body.flx .cs-comp-input { border-color: var(--cs-line-2); color: var(--cs-text-3); }
body.flx .cs-icon-box { background: var(--cs-card); color: var(--cs-text); }
body.flx .cs-icon-box svg { stroke: var(--cs-text); }

body.flx .cs-proto__wrap { background: var(--cs-surface); border: 1px solid var(--cs-line); }
body.flx .cs-proto__embed { background: #000; }
body.flx .cs-proto__head p { color: var(--cs-text-2) !important; }

body.flx .cs-results-list li { color: var(--cs-text); }
body.flx .cs-gallery-head p { color: var(--cs-text-3) !important; }
body.flx .cs-gallery__btn img { background: transparent; }
body.flx .cs-gallery__btn { background: transparent; }

body.flx .cs-lightbox__count { background: var(--accent); color: #fff; }

/* Buttons in mcy scope */
.flx .btn--ink { background: #fff; color: var(--cs-bg); }

.flx .btn--outline { background: transparent; border: 1px solid var(--cs-line-2); color: var(--cs-text); }



/* ============================================================ */
/* Vitorović MID case study styles                               */
/* ============================================================ */
.mid {
  --accent: #755038;
  --accent-2: #4D453E;
  --accent-strong: #755038;
  --accent-soft: rgba(117,80,56,0.12);
  --accent-tint: #F8F5EF;
  --cs-bg: #F8F5EF;
  --cs-surface: #FFFFFF;
  --cs-card: #EEE7DC;
  --cs-line: rgba(33,29,25,0.10);
  --cs-line-2: rgba(33,29,25,0.20);
  --cs-text: #211D19;
  --cs-text-2: #4D453E;
  --cs-text-3: #74685D;
  background: var(--cs-bg);
  color: var(--cs-text);
}
body[data-page="case-study"].mid { background: var(--cs-bg); color: var(--cs-text); }
.mid .site-header { background: rgba(248,245,239,.94) !important; border-bottom: 1px solid var(--cs-line) !important; }
.mid .site-header .brand__mark { background: var(--accent) !important; color: #fff !important; }
.mid .site-header .brand__name, .mid .site-header .brand__mark, .mid .site-header .primary-nav a { color: var(--cs-text); }
.mid .site-header .primary-nav a.is-active { color: var(--accent); }
.mid .site-header .brand__role { color: var(--cs-text-3); }
.mid .site-header .nav-burger span { background: var(--cs-text); }
.mid .site-header .header-cta.btn--ink { background: var(--cs-text); color: #fff; }
.mid .mobile-nav { background: var(--cs-surface); border-color: var(--cs-line); }
.mid .mobile-nav a { color: var(--cs-text); }
.mid .mobile-nav a.is-active { color: var(--accent); }

body.mid .cs-progress__bar { height: 100%; width: 0%; background: var(--accent-strong); }

/* Hero */
body.mid .cs-hero {
  position: relative; 
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--accent-soft) 100%);
}
body.mid .cs-hero__blur {
  position: absolute; top: -100px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,220,113,.55) 0%, rgba(255,220,113,0) 65%);
  pointer-events: none;
}
body.mid .cs-hero__tag { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: #6B6F76; margin-bottom: 20px; }
body.mid .cs-hero__tag i { width: 3px; height: 3px; border-radius: 999px; background: #0B1424; }
body.mid .cs-hero__title { font-size: 68px; line-height: 1.02; font-weight: 700; letter-spacing: -2.2px; margin: 0 0 20px; }
body.mid .cs-hero__sub { font-size: 22px; line-height: 1.35; color: #0B1424; margin: 0 0 32px; max-width: 480px; font-weight: 500; }
body.mid .cs-hero__ctas .btn--accent { background: var(--accent); }
body.mid .cs-hero__meta-label { font-size: 10px; font-weight: 600; letter-spacing: 1.2px; color: #6B6F76; margin-bottom: 6px; }
body.mid .cs-hero__meta-value { font-size: 13px; font-weight: 500; }
body.mid .cs-hero__mock { position: absolute; display: block; }
body.mid .cs-hero__mock--1 { left: -20px; top: 60px; width: 230px; z-index: 1; transform: rotate(-4deg); filter: drop-shadow(0 30px 50px rgba(21,21,19,.18)); }
body.mid .cs-hero__mock--2 { right: -20px; top: 0; width: 250px; z-index: 2; transform: rotate(3deg); filter: drop-shadow(0 40px 60px rgba(21,21,19,.22)); }

/* Chapter nav */
body.mid .cs-chapters { border-bottom: 1px solid #EDEDED; background: #fff;  z-index: 40; }
body.mid .cs-chapters__inner { max-width: 1240px; margin: 0 auto; padding: 6px 20px; display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: 13px; font-weight: 500; }
body.mid .cs-chapters a { padding: 10px 12px; color: var(--ink-3); white-space: nowrap; border-radius: 999px; }
body.mid .cs-chapters a.is-active { color: var(--ink); background: var(--accent-soft); }
body.mid .cs-chapters-drawer { display: none; border-bottom: 1px solid #EDEDED; background: #fff;  z-index: 40; }
body.mid .cs-chapters-drawer__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg-2); border: 0; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
body.mid .cs-chapters-drawer__btn::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--accent-strong); margin-right: 8px; }
body.mid .cs-chapters-drawer__caret { }
body.mid .cs-chapters-drawer.is-open .cs-chapters-drawer__caret { transform: rotate(180deg); }
body.mid .cs-chapters-drawer__menu {
  position: absolute; top: 100%; left: 20px; right: 20px;
  background: #fff; border: 1px solid #EDEDED; border-radius: 12px;
  box-shadow: 0 12px 32px rgba(21,21,19,.12);
  padding: 8px; z-index: 45; margin-top: 4px;
  max-height: 60vh; overflow-y: auto;
  display: none;
}
body.mid .cs-chapters-drawer.is-open .cs-chapters-drawer__menu { display: block; }
body.mid .cs-chapters-drawer__menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink); }

/* Sections */
body.mid .cs-eyebrow__n { font-size: 13px; font-weight: 600; color: var(--ink-3); }
body.mid .cs-eyebrow__label { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--ink-3); }
body.mid .cs-h2 { font-size: 32px; font-weight: 700; letter-spacing: -.8px; margin: 0 0 22px; line-height: 1.2; }
body.mid .cs-p { font-size: 15px; line-height: 1.7; color: #4A4E57; margin: 0 0 14px; }
body.mid .cs-p:last-child { margin: 0; }

body.mid .cs-overview-media { position: relative; aspect-ratio: 1/1; border-radius: 20px; overflow: hidden; background: var(--accent); }
body.mid .cs-overview-media img { width: 100%; height: 100%; object-fit: cover; }

body.mid .cs-challenge-card { background: var(--accent-soft); border-radius: 20px; padding: 32px 28px; }
body.mid .cs-challenge-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
body.mid .cs-challenge-card li { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500; }
body.mid .cs-check {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

body.mid .cs-goal__icon { width: 64px; height: 64px; border-radius: 999px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
body.mid .cs-goal__label { font-size: 15px; font-weight: 600; line-height: 1.45; max-width: 200px; }

body.mid .cs-role-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
body.mid .cs-role-col li i { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }
body.mid .cs-role-tool i { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; font-style: normal; }

body.mid .cs-process-wrap { position: relative; }
body.mid .cs-process-line { position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: #E7E7E7; }
body.mid .cs-process__step { }
body.mid .cs-process__n { width: 44px; height: 44px; border-radius: 999px; background: #F3F3F3; color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
body.mid .cs-process__step.is-active .cs-process__n { background: var(--accent); }
body.mid .cs-process__label { font-size: 14px; font-weight: 600; line-height: 1.35; }

body.mid .cs-feature-card { background: var(--bg-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-height: 460px; }
body.mid .cs-feature-card__title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
body.mid .cs-feature-card__body { font-size: 13px; color: #4A4E57; line-height: 1.5; margin-bottom: 22px; }
body.mid .cs-decision-card { background: var(--bg-2); border-radius: 20px; padding: 20px; display: flex; gap: 20px; align-items: center; }
body.mid .cs-decision-card__title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
body.mid .cs-decision-card__body { font-size: 12px; color: #4A4E57; line-height: 1.5; }

body.mid .cs-ds-card { border: 1px solid #EDEDED; border-radius: 20px; padding: 24px; }
body.mid .cs-ds-card__title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
body.mid .cs-ds-card__sub { font-size: 11px; color: var(--ink-3); margin-bottom: 22px; }
body.mid .cs-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 10px; }
body.mid .cs-swatch { min-width: 0; overflow: hidden; }
body.mid .cs-swatch__name, body.mid .cs-swatch__hex { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mid .cs-swatch { background: transparent; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: inherit; }
body.mid .cs-swatch__chip { height: 40px; border-radius: 10px; margin-bottom: 6px; }
body.mid .cs-swatch__name { font-size: 10px; font-weight: 600; }
body.mid .cs-swatch__hex { font-size: 10px; color: var(--ink-3); }
body.mid .cs-type-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
body.mid .cs-type-Aa { font-size: 46px; font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
body.mid .cs-type-scale { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid #F0F0F0; }
body.mid .cs-type-scale > div { display: flex; justify-content: space-between; font-size: 11px; }
body.mid .cs-type-scale span:last-child { color: var(--ink-3); }
body.mid .cs-comps { display: flex; flex-direction: column; gap: 12px; }
body.mid .cs-comp-btn { background: var(--accent); padding: 10px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; text-align: center; }
body.mid .cs-comp-btn--outline { background: #fff; border: 1px solid var(--line-2); }
body.mid .cs-comp-input { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; }
body.mid .cs-comp-controls { display: flex; align-items: center; gap: 12px; }
body.mid .cs-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
body.mid .cs-icon-box { aspect-ratio: 1; border-radius: 10px; background: #F5F5F3; display: flex; align-items: center; justify-content: center; }

body.mid .cs-proto__wrap { background: var(--bg-2); border-radius: 24px; overflow: hidden; padding: 40px; }
body.mid .cs-proto__embed { position: relative; aspect-ratio: 16/10; background: var(--ink); border-radius: 16px; overflow: hidden; max-width: 1000px; margin: 0 auto 24px; }
body.mid .cs-proto__loader { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; z-index: 1; }
body.mid .cs-proto__spinner { width: 40px; height: 40px; border-radius: 999px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); }
body.mid .cs-proto__loader-text { font-size: 12px; color: rgba(255,255,255,.65); letter-spacing: .5px; }
body.mid .cs-proto__iframe { width: 100%; height: 100%; border: 0; position: relative; z-index: 2; opacity: 0; }
body.mid .cs-proto__iframe.is-loaded { opacity: 1; }
body.mid .cs-results-list li { display: flex; align-items: center; gap: 14px; font-size: 14px; }

body.mid .cs-gallery__btn { background: transparent; border: 0; padding: 0; cursor: pointer; display: block; }
/* Lightbox */
body.mid .cs-lightbox {
  position: fixed; inset: 0; background: rgba(21,21,19,.92); z-index: 100;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 20px;
}
body.mid .cs-lightbox__btn {
  position: absolute; background: rgba(255,255,255,.1);
  border: 0; color: #fff; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

body.mid .cs-lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 22px; }
body.mid .cs-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 22px; }
body.mid .cs-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 22px; }
body.mid .cs-lightbox__spinner { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 1; }
body.mid .cs-lightbox__spinner div { width: 40px; height: 40px; border-radius: 999px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); }
body.mid .cs-lightbox.is-loading .cs-lightbox__img { opacity: .3; }
body.mid .cs-lightbox__alt { color: #fff; font-size: 14px; font-weight: 500; }
body.mid .cs-lightbox__count { background: var(--accent); color: var(--ink); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
body.mid .cs-lightbox__kbd { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.55); font-size: 11px; }
body.mid .cs-lightbox__kbd kbd { border: 1px solid rgba(255,255,255,.25); padding: 2px 6px; border-radius: 4px; font-family: inherit; }

body.mid .cs-footer-nav a { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: rgba(255,255,255,.04); border-radius: 14px; }
body.mid .cs-footer-nav a:last-child { text-align: right; align-items: flex-end; }
body.mid .cs-footer-nav__label { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: 1px; }
body.mid .cs-footer-nav__title { font-size: 15px; font-weight: 600; color: #fff; }

/* Responsive */
@media (max-width: 960px) {
  body.mid .cs-hero__grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
  body.mid .cs-hero__title { font-size: 52px; }
  body.mid .cs-2col { grid-template-columns: 1fr; gap: 40px; }
  body.mid .cs-role-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  body.mid .cs-4col { grid-template-columns: repeat(2, 1fr); }
  body.mid .cs-3col { grid-template-columns: 1fr; }
  body.mid .cs-process { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  body.mid .cs-process-line { display: none; }
  body.mid .cs-gallery { grid-template-columns: repeat(4, 1fr); }
  body.mid .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  body.mid .cs-results-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
}
@media (max-width: 720px) {
  body.mid .cs-chapters { display: none; }
  body.mid .cs-chapters-drawer { display: block; }
}
@media (max-width: 640px) {
  body.mid .cs-chapters, body.mid .cs-chapters-drawer { top: 64px; }
  body.mid .cs-hero__grid { padding: 32px 20px 44px; }
  body.mid .cs-hero__title { font-size: 40px; letter-spacing: -1.4px; }
  body.mid .cs-hero__sub { font-size: 18px; }
  body.mid .cs-section { padding: 40px 20px 16px; }
  body.mid .cs-section--tight { padding: 40px 20px; }
  body.mid .cs-h2 { font-size: 26px; }
  body.mid .cs-4col { grid-template-columns: 1fr 1fr; gap: 20px; }
  body.mid .cs-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  body.mid .cs-process { grid-template-columns: repeat(2, 1fr); }
  body.mid .cs-role-cols { grid-template-columns: 1fr; }
  body.mid .cs-decision-card { flex-direction: column; align-items: stretch; padding: 24px; }
  body.mid .cs-decision-card__img { width: auto; max-width: 220px; margin: 8px auto 0; order: 2; }
  body.mid .cs-decision-card__text { order: 1; }
  body.mid .cs-hero__mocks { height: 420px; }
  body.mid .cs-hero__meta { grid-template-columns: 1fr 1fr; row-gap: 20px; gap: 20px; }
  body.mid .cs-proto { padding: 40px 20px; }
  body.mid .cs-proto__wrap { padding: 20px; }
  body.mid .cs-proto__embed { aspect-ratio: 9/21; max-width: 360px; margin: 0 auto 24px; }
  body.mid .cs-gallery-wrap { padding: 40px 12px 24px; }
  #system.cs-section .cs-4col { grid-template-columns: 1fr; gap: 16px; }
  #features .cs-feature-card { min-height: 0; }
  #features .cs-feature-card__media img { max-width: 160px; }
  body.mid .cs-lightbox { padding: 20px 16px; }
  body.mid .cs-lightbox__img { max-height: 58vh; max-width: 88vw; }
  body.mid .cs-footer-nav { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 640px) and (max-height: 780px) {
  body.mid .cs-lightbox__img { max-height: 52vh; }
}
@media (max-width: 520px) {
  #features .cs-4col { grid-template-columns: 1fr !important; }
  #features .cs-feature-card { min-height: 0; }
  #features .cs-feature-card__media img { max-width: 220px; width: 100%; height: auto; }
  body.mid .cs-4col, body.mid .cs-3col, body.mid .cs-2col { min-width: 0; }
  body.mid .cs-section, body.mid .cs-section--tight {  }
}


/* Vitorović MID theme overrides (cloned from FluxNode structure) */
body.mid .cs-hero {
  background:
    linear-gradient(118deg, rgba(255,255,255,0) 8%, rgba(255,250,242,.7) 20%, rgba(255,255,255,0) 30%, rgba(255,255,255,0) 40%, rgba(255,250,242,.55) 52%, rgba(255,255,255,0) 62%, rgba(255,255,255,0) 70%, rgba(255,250,242,.45) 80%, rgba(255,255,255,0) 90%),
    linear-gradient(180deg, #E9DAC6 0%, #F1E7DA 55%, #F8F5EF 100%);
}
body.mid .cs-hero__grid { position: relative; z-index: 1; }
body.mid .cs-hero__blur { display: none; }
body.mid .cs-hero__title { color: var(--cs-text); }
body.mid .cs-hero__sub { color: var(--cs-text-2); font-weight: 400; }
body.mid .cs-hero__tag { color: var(--cs-text-3); }
body.mid .cs-hero__tag i { background: var(--cs-text-3); }
body.mid .cs-hero__meta { border-top-color: var(--cs-line); }
body.mid .cs-hero__meta-label { color: var(--cs-text-3); }
body.mid .cs-hero__meta-value { color: var(--cs-text); }
body.mid .cs-hero__ctas .btn--accent { background: var(--accent); color: #fff; }
body.mid .cs-hero__ctas .btn--outline { background: transparent; color: var(--cs-text); border-color: var(--cs-line-2); }

body.mid .cs-chapters { background: var(--cs-bg); border-bottom-color: var(--cs-line); }
body.mid .cs-chapters a { color: var(--cs-text-3); }
body.mid .cs-chapters a.is-active { color: var(--cs-text); background: var(--cs-card); }
body.mid .cs-chapters-drawer { background: var(--cs-bg); border-bottom-color: var(--cs-line); }
body.mid .cs-chapters-drawer__btn { background: var(--cs-card); color: var(--cs-text); }
body.mid .cs-chapters-drawer__menu { background: var(--cs-card); border-color: var(--cs-line); }
body.mid .cs-chapters-drawer__menu a { color: var(--cs-text); }

body.mid .cs-h2 { color: var(--cs-text); }
body.mid .cs-p { color: var(--cs-text-2); }
body.mid .cs-eyebrow__n, body.mid .cs-eyebrow__label { color: var(--cs-text-3); }

body.mid .cs-overview-media { background: var(--cs-card); border: 1px solid var(--cs-line); }
body.mid .cs-challenge-card { background: var(--cs-card); }
body.mid .cs-challenge-card li { color: var(--cs-text); }
body.mid .cs-check { background: var(--accent); }
body.mid .cs-check svg path { stroke: #fff; }
body.mid .cs-goal__icon { background: var(--cs-card); }
body.mid .cs-goal__icon svg path, body.mid .cs-goal__icon svg circle { fill: var(--accent); stroke: var(--accent); }
body.mid .cs-goal__label { color: var(--cs-text); }
body.mid .cs-role-col ul li { color: var(--cs-text-2); }
body.mid .cs-role-col li i { background: var(--accent); }
body.mid .cs-role-tool i { background: var(--accent); color: #fff; }
body.mid .cs-role-tool i.cs-tool-icon { background: transparent !important; padding: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
body.mid .cs-process__n { background: var(--cs-card); color: var(--cs-text-3); }
body.mid .cs-process__step.is-active .cs-process__n { background: var(--accent); color: #fff; }
body.mid .cs-process__label { color: var(--cs-text); }
body.mid .cs-process-line { background: var(--cs-line); }

body.mid .cs-feature-card { background: var(--cs-card); }
body.mid .cs-feature-card__title { color: var(--cs-text); }
body.mid .cs-feature-card__body { color: var(--cs-text-2); }
body.mid .cs-decision-card { background: var(--cs-card); }
body.mid .cs-decision-card__title { color: var(--cs-text); }
body.mid .cs-decision-card__body { color: var(--cs-text-2); }

body.mid .cs-ds-card { border-color: var(--cs-line); background: var(--cs-surface); }
body.mid .cs-ds-card__title { color: var(--cs-text); }
body.mid .cs-ds-card__sub { color: var(--cs-text-3); }
body.mid .cs-swatch__name { color: var(--cs-text); }
body.mid .cs-swatch__hex { color: var(--cs-text-3); }
body.mid .cs-type-Aa { color: var(--cs-text); }
body.mid .cs-type-scale { border-top-color: var(--cs-line); color: var(--cs-text); }
body.mid .cs-type-scale span:last-child { color: var(--cs-text-3); }
body.mid .cs-comp-btn { background: var(--accent); color: #fff; }
body.mid .cs-comp-btn--outline { background: transparent; color: var(--cs-text); border-color: var(--cs-line-2); }
body.mid .cs-comp-input { border-color: var(--cs-line-2); color: var(--cs-text-3); }
body.mid .cs-icon-box { background: var(--cs-card); color: var(--cs-text); }
body.mid .cs-icon-box svg { stroke: var(--cs-text); }

body.mid .cs-proto__wrap { background: var(--cs-surface); border: 1px solid var(--cs-line); }
body.mid .cs-proto__embed { background: #000; }
body.mid .cs-proto__head p { color: var(--cs-text-2) !important; }

body.mid .cs-results-list li { color: var(--cs-text); }
body.mid .cs-gallery-head p { color: var(--cs-text-3) !important; }
body.mid .cs-gallery__btn img { background: transparent; }
body.mid .cs-gallery__btn { background: transparent; }

body.mid .cs-lightbox__count { background: var(--accent); color: #fff; }

/* Buttons in mid scope */
.mid .btn--ink { background: var(--cs-text); color: #fff; }

.mid .btn--outline { background: transparent; border: 1px solid var(--cs-line-2); color: var(--cs-text); }



/* ===== Vitorović MID-specific ===== */
.mid-progress__bar { background: #755038 !important; }
.mid .cs-hero__title, .mid .cs-type-Aa, .mid .cs-h2 { font-family: 'Archivo', 'Work Sans', system-ui, sans-serif; }
.mid .cs-hero__title { font-weight: 800; letter-spacing: -2.4px; }
.mid-hero-accent { color: var(--accent); }
body.mid .cs-hero__tag { font-family: 'IBM Plex Mono', ui-monospace, monospace; color: var(--accent); font-weight: 700; }
body.mid .cs-hero__tag i { width: 24px; height: 1px; border-radius: 0; background: var(--accent); }
body.mid .cs-hero__tag i:first-child { margin-right: 4px; }
.mid .cs-hero__ctas .btn--accent, .mid .btn--accent { background: #4D453E; color: #fff; border: 0; transition: background .3s cubic-bezier(.33,1,.68,1); }
.mid .cs-hero__ctas .btn--accent:hover, .mid .btn--accent:hover { background: #211D19; opacity: 1; }
.mid .site-header .brand__mark, .mid .brand__mark--light { background: #755038 !important; color: #fff !important; }
body.mid .hero-mock--1 { left: 0 !important; top: 110px !important; transform: none !important; filter: drop-shadow(0 30px 60px rgba(33,29,25,.16)); }
body.mid .hero-mock--landscape img { max-height: 380px !important; max-width: 100% !important; border: 1px solid var(--cs-line); }
body.mid .cs-overview-media { background: var(--cs-card); }
body.mid .cs-icon-box { background: var(--cs-card); }

.mid-feature { background: var(--cs-surface); border: 1px solid var(--cs-line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.mid-feature__eyebrow { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: var(--accent); }
.mid-feature .cs-feature-card__title { font-size: 18px; color: var(--cs-text); }
.mid-feature .cs-feature-card__body { font-size: 13px; color: var(--cs-text-2); margin-bottom: 4px; }
.mid-feature__demo { margin-top: auto; padding: 18px; border-radius: 6px; background: var(--cs-bg); border: 1px solid var(--cs-line); display: flex; flex-direction: column; gap: 10px; }
.mid-demo__title { font-family: 'Archivo', system-ui, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; color: var(--cs-text); }
.mid-demo__checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; font-weight: 600; color: var(--cs-text); }
.mid-demo__checks span::before { content: '✓ '; color: var(--accent); }
.mid-demo__btn { align-self: flex-start; background: #4D453E; color: #fff; font-size: 12px; font-weight: 600; padding: 9px 14px; transition: background .3s cubic-bezier(.33,1,.68,1); }
.mid-demo__btn:hover, .mid-demo__btn.is-hover { background: #211D19; }
.mid-demo__list { display: flex; flex-direction: column; }
.mid-demo__list div { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--cs-line); font-size: 13px; font-weight: 600; color: var(--cs-text); }
.mid-demo__list div:last-child { border-bottom: 0; }
.mid-demo__list b, .mid-demo__steps b { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; color: var(--accent); }
.mid-demo__steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.mid-demo__steps div { display: flex; flex-direction: column; gap: 6px; font-size: 11px; line-height: 1.3; font-weight: 600; color: var(--cs-text); padding-top: 8px; border-top: 2px solid var(--accent); }
.mid-demo__big { font-family: 'Archivo', system-ui, sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; color: var(--cs-text); }
.mid-demo__mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; font-weight: 500; letter-spacing: .8px; color: var(--cs-text-2); }
.mid-demo__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mid-demo__chips span { padding: 6px 10px; border: 1px solid var(--cs-line-2); font-size: 11px; font-weight: 600; color: var(--cs-text); background: var(--cs-surface); }
.mid-demo__input { border: 1px solid var(--cs-line-2); background: var(--cs-surface); padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.mid-demo__input small { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 9px; letter-spacing: 1px; color: var(--cs-text-3); }
.mid-demo__input span { font-size: 12px; color: var(--cs-text-3); }
.mid-demo__input.is-filled { border-color: var(--cs-text); }
.mid-demo__input.is-filled span { color: var(--cs-text); }
.mid-demo__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.mid-decisions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.mid-decision { background: var(--cs-surface); border: 1px solid var(--cs-line); border-radius: 20px; padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.mid-decision__n { flex-shrink: 0; width: 44px; height: 44px; border-radius: 4px; background: #755038; color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 700; font-size: 14px; }
.mid-decision .cs-decision-card__title { color: var(--cs-text); font-size: 15px; }
.mid-decision .cs-decision-card__body { color: var(--cs-text-2); font-size: 13px; }

.mid-ds-states { display: flex; flex-direction: column; gap: 12px; }
.mid-ds-state { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--cs-text-3); }
.mid-ds-state > span:first-child { flex: 1; }
.mid-ds-meta { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: .8px; color: var(--accent); padding-top: 12px; border-top: 1px solid var(--cs-line); }
.mid .cs-comp-btn { border-radius: 0; background: #4D453E; color: #fff; transition: background .3s cubic-bezier(.33,1,.68,1); cursor: default; }
.mid .cs-comp-btn:hover { background: #211D19; }
.mid .cs-comp-btn--outline { background: transparent; color: var(--cs-text); border: 0; text-align: left; padding-left: 0; }
.mid .cs-comp-btn--outline:hover { background: transparent; color: var(--accent); }
body.mid .cs-swatch__chip { border-radius: 0; }
.mid-demo__contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.mid-demo__contact div { display: flex; flex-direction: column; gap: 4px; }
.mid-demo__contact small, .mid-comp__logo small { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 9px; letter-spacing: 1px; color: var(--cs-text-3); }
.mid-demo__contact span { font-size: 12px; line-height: 1.35; font-weight: 500; color: var(--cs-text); }
.mid-demo__maplink { color: var(--accent) !important; font-weight: 600 !important; }
.mid-demo__link { font-size: 12px; font-weight: 600; color: var(--cs-text); transition: color .3s cubic-bezier(.33,1,.68,1); cursor: default; }
.mid-demo__link:hover { color: var(--accent); }
.mid-demo__btn { cursor: default; }
.mid-comps { display: flex; flex-direction: column; gap: 14px; }
.mid-comp__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--cs-line); }
.mid-comp__logo { display: flex; flex-direction: column; gap: 3px; }
.mid-comp__logo b { font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -.2px; color: var(--cs-text); }
.mid-comp__logo b span { color: var(--accent); }
.mid-comp__lang { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; color: var(--cs-text-3); }
.mid-comp__lang b { color: var(--cs-text); text-decoration: underline; text-underline-offset: 3px; }
.mid-comp__tag { display: flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--accent); }
.mid-comp__tag i { width: 20px; height: 1px; background: var(--accent); }
.mid-comp__service { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cs-line); border-bottom: 1px solid var(--cs-line); }
.mid-comp__service b, .mid-comp__step b { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; color: var(--accent); }
.mid-comp__service div { display: flex; flex-direction: column; gap: 3px; }
.mid-comp__service strong { font-size: 13px; color: var(--cs-text); }
.mid-comp__service span { font-size: 11px; line-height: 1.4; color: var(--cs-text-2); }
.mid-comp__step { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 2px solid var(--accent); font-size: 12px; font-weight: 600; color: var(--cs-text); }
.work-card--mid .work-card__media { background: #EEE7DC; }
.work-card--mid .work-card__media img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
  .mid-decisions { grid-template-columns: 1fr; }
  body.mid .hero-mocks { justify-content: flex-start; }
  body.mid .hero-mock--landscape img { max-height: none !important; max-width: 100% !important; width: 100% !important; }
  body.mid .hero-mock { width: 100%; }
}
@media (max-width: 640px) {
  body.mid .hero-mock--landscape img { max-height: none !important; max-width: 100% !important; }
  .mid-demo__steps { grid-template-columns: 1fr 1fr; }
}

/* ===== FluxNode-specific ===== */
.flx-hero-accent { background: linear-gradient(90deg, #E891AF 0%, #9F7EDB 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flx-hero__visual { position: relative; }
.flx-hero__visual img { width: 100%; height: auto; display: block; box-shadow: 0 40px 80px rgba(0,0,0,.5); }

/* Feature cards (FluxNode) — replace default mcy-feature-card grid */
#features.cs-section .cs-4col { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.flx-feature { background: linear-gradient(180deg, #191127 0%, #0B0B0E 100%); border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 320px; }
.flx-feature__eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: var(--accent-2); }
.flx-feature .cs-feature-card__title { font-size: 18px; color: #fff; }
.flx-feature .cs-feature-card__body { font-size: 13px; color: var(--cs-text-2); margin-bottom: 4px; }
.flx-feature__demo { margin-top: auto; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; gap: 10px; }
.flx-feature__pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(159,126,219,.12); border: 1px solid rgba(159,126,219,.25); color: #E7DDF7; font-size: 11px; font-weight: 500; align-self: flex-start; }
.flx-feature__title { font-family: 'PP Neue Machina', 'Work Sans', system-ui, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.4px; color: #fff; line-height: 1.15; }
.flx-pulse { width: 8px; height: 8px; border-radius: 999px; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.flx-calc { display: flex; flex-direction: column; gap: 8px; }
.flx-calc__row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--cs-text-2); }
.flx-calc__row b { font-size: 18px; color: #fff; font-weight: 700; }
.flx-calc__row b.flx-pink { color: #E891AF; }
.flx-calc__provider { margin-top: 4px; padding: 8px 12px; border-radius: 10px; background: rgba(159,126,219,.14); border: 1px solid rgba(159,126,219,.3); color: #fff; font-size: 12px; font-weight: 500; align-self: flex-start; }
.flx-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flx-path { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); }
.flx-path--old { background: rgba(133,39,71,.14); border-color: rgba(232,145,175,.24); }
.flx-path--new { background: rgba(93,59,168,.14); border-color: rgba(159,126,219,.24); }
.flx-path__label { font-size: 9px; letter-spacing: 1.2px; font-weight: 700; text-transform: uppercase; }
.flx-path--old .flx-path__label { color: #E891AF; }
.flx-path--new .flx-path__label { color: #9F7EDB; }
.flx-node { padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.flx-node--fail { background: rgba(232,145,175,.14); color: #E891AF; border: 1px solid rgba(232,145,175,.3); }
.flx-node--ok { background: rgba(34,197,94,.16); color: #22C55E; border: 1px solid rgba(34,197,94,.35); }
.flx-audience { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: rgba(115,20,184,.12); border: 1px solid rgba(115,20,184,.3); }
.flx-audience--alt { background: rgba(93,59,168,.12); border-color: rgba(93,59,168,.35); }
.flx-audience__tag { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-2); }
.flx-audience__stat { font-size: 13px; color: #fff; font-weight: 600; }

/* Decisions grid */
.flx-decisions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.flx-decision { background: var(--cs-card); border-radius: 20px; padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.flx-decision__n { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #7314B8 0%, #5D3BA8 100%); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.flx-decision .cs-decision-card__title { color: #fff; font-size: 15px; }
.flx-decision .cs-decision-card__body { color: var(--cs-text-2); font-size: 13px; }

/* Buttons in flx */
.flx .btn--accent { background: linear-gradient(135deg, #7314B8 0%, #5D3BA8 100%); color: #fff; border: 0; }


/* Hero title tweaks */
.flx .cs-hero__title { font-family: 'PP Neue Machina', 'Work Sans', system-ui, sans-serif; }
.flx .cs-type-Aa { font-family: 'PP Neue Machina', 'Work Sans', system-ui, sans-serif; }

/* Header brand mark uses gradient in flx */
.flx .site-header .brand__mark { background: linear-gradient(135deg, #7314B8 0%, #5D3BA8 100%); }
.flx .brand__mark--light { background: linear-gradient(135deg, #7314B8 0%, #5D3BA8 100%); }

/* Selected views showcase */
.flx-showcase { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.flx-showcase img { width: 100%; height: auto; display: block; border: 1px solid rgba(255,255,255,.06); box-shadow: 0 40px 80px rgba(0,0,0,.5); }

/* Responsive */
@media (max-width: 960px) {
  #features.cs-section .cs-4col { grid-template-columns: 1fr; }
  .flx-decisions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .flx-paths { grid-template-columns: 1fr; }
}


/* Fix horizontal overflow at root of case study */



/* Hide the empty hero visual column entirely */
.flx-hero__visual { display: none; }

/* Design system component tabs / pulses */
.flx-ds-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.flx-ds-tabs span { padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; color: var(--cs-text-3); border: 1px solid rgba(255,255,255,.08); }
.flx-ds-tabs span.is-on { background: rgba(159,126,219,.16); color: #fff; border-color: rgba(159,126,219,.35); }
.flx-ds-tag {
  align-self: flex-start;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(115,20,184,.14); border: 1px solid rgba(115,20,184,.35);
  color: #E7DDF7; font-size: 11px; font-weight: 600;
  display: inline-flex;
}
.flx-ds-pulses { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.flx-ds-pulse { width: 12px; height: 12px; border-radius: 999px; position: relative; }
.flx-ds-pulse--g { background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,.18); }
.flx-ds-pulse--p { background: #E891AF; box-shadow: 0 0 0 4px rgba(232,145,175,.18); }
.flx-ds-pulse--pu { background: #7314B8; box-shadow: 0 0 0 4px rgba(115,20,184,.22); }
.flx-ds-pulse--l { background: #9F7EDB; box-shadow: 0 0 0 4px rgba(159,126,219,.22); }

/* Hero card responsive */
@media (max-width: 640px) {
  .flx-hero-card { display: none; }
}


/* ============================================================ */
/* MoneyCare Section 06 — smaller feature screenshots           */
/* Hero mocks inherit the shared left/right layout (Yellow Taxi)*/
/* ============================================================ */
#features .cs-feature-card__media img { max-width: 150px; }

@media (max-width: 640px) {
  #features .cs-feature-card__media img { max-width: 140px !important; }
}


/* ============================================================ */
/* ===== Safari scroll fix: hover-only on capable devices ===== */
/* ============================================================ */
@media (hover: none) {
  
}


/* ============================================================ */
/* ===== Restored minimal hover polish ===== */
/* ============================================================ */
.work-card:hover { border-color: var(--ink-2); }
.service-card:hover { border-color: var(--ink); background: #FDFDFB; }
.btn:hover { opacity: .92; }
.primary-nav a:hover { color: var(--ink); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__list a.muted:hover { color: rgba(255,255,255,.85); }


/* Figma prototype iframe click-to-load overlay */
iframe[data-figma-src] { display: none; }
iframe[data-figma-src][src] { display: block; }


/* ============================================================ */
/* ===== Restored smooth transitions & animations ===== */
/* ============================================================ */

/* Buttons */
.btn { transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
.btn:hover { opacity: .9; }

/* Links */
a { transition: color .2s ease; }
.primary-nav a { transition: background-color .2s ease, color .2s ease; }
.site-footer a { transition: color .2s ease; }

/* Cards — no transform on hover (Tahoe safety), only visual */
.work-card { transition: border-color .25s ease, box-shadow .25s ease; }
.work-card:hover { border-color: var(--ink-2); box-shadow: 0 12px 32px rgba(21,21,19,.08); }

.service-card { transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
.service-card:hover { border-color: var(--ink); background: #FDFDFB; box-shadow: 0 12px 32px rgba(21,21,19,.06); }
.service-card__icon { transition: background-color .3s ease, color .3s ease; }
.service-card:hover .service-card__icon { background: var(--ink); color: #fff; }

/* Featured project cards — subtle border color hover */
.home-featured a { transition: border-color .25s ease, box-shadow .25s ease; }
.home-featured a:hover { box-shadow: 0 16px 40px rgba(21,21,19,.08); }

/* Swatches — copy feedback */
[data-hex] { transition: transform .15s ease; }
[data-hex]:active { transform: scale(0.97); }

/* Modals — fade in/out */
.cv-modal, .svc-modal { transition: opacity .3s ease; opacity: 0; pointer-events: none; }
.cv-modal.is-open, .svc-modal.is-open { opacity: 1; pointer-events: auto; }
.cv-modal__panel, .svc-modal__panel { transition: transform .3s cubic-bezier(.22,1,.36,1); transform: translateY(20px); }
.cv-modal.is-open .cv-modal__panel, .svc-modal.is-open .svc-modal__panel { transform: translateY(0); }

/* Reveal on scroll — subtle fade + lift */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Marquee animation restored */
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.home-marquee__track, .cs-hero-strip__track { animation: marqueeScroll 40s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .home-marquee__track, .cs-hero-strip__track { animation: none; }
}

/* Prototype spinner */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cs-proto__spinner, .cs-proto__spinner, .cs-proto__spinner, .flx-proto__spinner {
  animation: spin .9s linear infinite;
}

/* Prototype iframe fade in */
.cs-proto__iframe, .cs-proto__iframe, .cs-proto__iframe, .flx-proto__iframe { transition: opacity .4s ease; }

/* Accordion smooth open/close */
.svc-acc__panel { transition: grid-template-rows .4s cubic-bezier(.22,1,.36,1); }

/* Back to top fade in */
.back-to-top { transition: opacity .25s ease, background-color .25s ease; opacity: 0; pointer-events: none; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--ink-2); }

/* Chapter nav pills */
.cs-chapters a, .cs-chapters a, .cs-chapters a, .flx-chapters a { transition: background-color .2s ease, color .2s ease; }

/* Toast */
.toast { transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .2s ease; opacity: 0; transform: translate(-50%, 20px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}


/* ============================================================ */
/* Hero band — meta info below divider, full width              */
/* Mobile — center mocks under content                          */
/* ============================================================ */
.hero-band {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px 56px;
  position: relative;
  z-index: 1;
}
.cs-hero__grid, .cs-hero__grid, .cs-hero__grid { padding-bottom: 36px; }
.hero-band .cs-hero__meta,
.hero-band .cs-hero__meta,
.hero-band .cs-hero__meta {
  padding-top: 28px;
}
@media (max-width: 960px){
  .hero-band { padding: 0 40px 44px; }
  .cs-hero__mocks, .cs-hero__mocks, .cs-hero__mocks {
    height: auto !important;
    display: flex; justify-content: center; align-items: flex-end;
    gap: 14px; padding: 12px 0 24px;
  }
  .cs-hero__mock, .cs-hero__mock, .cs-hero__mock {
    position: static !important;
    left: auto !important; right: auto !important; top: auto !important; margin: 0 !important;
  }
  .cs-hero__mock--1, .cs-hero__mock--1, .cs-hero__mock--1 { transform: rotate(-3deg); }
  .cs-hero__mock--2, .cs-hero__mock--2, .cs-hero__mock--2 { transform: rotate(3deg); }
  /* FluxNode visual center */
  .flx-hero__visual { display: flex; justify-content: center; }
}
@media (max-width: 640px){
  .hero-band { padding: 0 20px 40px; }
  .cs-hero__mock img, .cs-hero__mock img, .cs-hero__mock img { max-width: 44vw; height: auto; }
  .cs-hero__mock, .cs-hero__mock, .cs-hero__mock { width: auto !important; }
}


/* ============================================================ */
/* Unified — sections 06 (features) & 07 (decisions) image cap  */
/* Cap image size on tablet/mobile so screenshots stay readable */
/* ============================================================ */
@media (max-width: 960px) {
  #features .cs-feature-card__media,
  #features .cs-feature-card__media,
  #features .cs-feature-card__media,
  #decisions .cs-decision-card__img,
  #decisions .cs-decision-card__img,
  #decisions .cs-decision-card__img {
    max-width: 380px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #features .cs-feature-card__media img,
  #features .cs-feature-card__media img,
  #features .cs-feature-card__media img,
  #decisions .cs-decision-card__img img,
  #decisions .cs-decision-card__img img,
  #decisions .cs-decision-card__img img {
    max-width: 100% !important;
    width: auto !important;
    max-height: 340px;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }
}
@media (max-width: 640px) {
  #features .cs-feature-card__media,
  #features .cs-feature-card__media,
  #features .cs-feature-card__media,
  #decisions .cs-decision-card__img,
  #decisions .cs-decision-card__img,
  #decisions .cs-decision-card__img {
    max-width: 300px !important;
  }
  #features .cs-feature-card__media img,
  #features .cs-feature-card__media img,
  #features .cs-feature-card__media img,
  #decisions .cs-decision-card__img img,
  #decisions .cs-decision-card__img img,
  #decisions .cs-decision-card__img img {
    max-height: 280px;
  }
}


/* (removed old .flx-hero__mocks/mock--mac/--phone rules — HTML now uses .hero-mocks / .hero-mock / .hero-mock--landscape shared classes) */


/* ============================================================ */
/* SHARED HERO MOCKS — Yellow Taxi pattern for every case study */
/* Fixed IMAGE height so mocks look uniform across projects     */
/* ============================================================ */
.hero-mocks {
  position: relative !important;
  height: 600px !important;
}
.hero-mock {
  position: absolute !important;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
}
.hero-mock img {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: 500px !important;
  display: block !important;
}
.hero-mock--1 {
  left: -20px !important; right: auto !important;
  top: 60px !important; bottom: auto !important;
  z-index: 1;
  transform: rotate(-4deg);
  filter: drop-shadow(0 30px 50px rgba(21,21,19,.18));
}
.hero-mock--2 {
  right: -20px !important; left: auto !important;
  top: 0 !important; bottom: auto !important;
  z-index: 2;
  transform: rotate(3deg);
  filter: drop-shadow(0 40px 60px rgba(21,21,19,.22));
}
/* Landscape variant (mac / laptop) — smaller max-height so aspect stays reasonable */
.hero-mock--landscape img { max-height: 320px !important; }
/* Utility: which mock to show at which breakpoint (opt-in per project) */
.hero-mock--mobile-hide { }
.hero-mock--desktop-hide { display: none !important; }

@media (max-width: 960px) {
  .hero-mocks {
    height: auto !important; position: static !important;
    display: flex !important;
    justify-content: center; align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px; padding: 20px 0 24px;
  }
  .hero-mock {
    position: static !important;
    left: auto !important; right: auto !important;
    top: auto !important; bottom: auto !important;
    transform: none !important;
    max-width: 100%;
  }
  .hero-mock img { max-height: 380px !important; max-width: 44vw !important; width: auto !important; object-fit: contain; }
  .hero-mock--landscape img { max-height: 220px !important; max-width: 60vw !important; }
}
@media (max-width: 640px) {
  .hero-mocks { gap: 14px; }
  .hero-mock img { max-height: 300px !important; max-width: 42vw !important; }
  .hero-mock--landscape img { max-height: 180px !important; max-width: 84vw !important; }
  .hero-mock--mobile-hide { display: none !important; }
  .hero-mock--desktop-hide { display: block !important; }
}
@media (max-width: 420px) {
  .hero-mock img { max-height: 240px !important; max-width: 44vw !important; }
  .hero-mock--landscape img { max-height: 150px !important; max-width: 84vw !important; }
}
