/* ───────── Before / after comparator (shared) ───────── */
.ba {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: var(--ar, 4 / 5);
  background: var(--plum-deep); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-1px);
  background: var(--surface); box-shadow: 0 0 0 1px rgba(28, 7, 21, .12); pointer-events: none;
}
.ba__knob {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: var(--surface); color: var(--plum);
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(28, 7, 21, .55); pointer-events: none;
  transition: transform 200ms var(--ease-out);
}
.ba__knob svg { width: 22px; height: 22px; }
.ba.is-drag .ba__knob { transform: translate(-50%, -50%) scale(1.08); }
.ba__tag {
  position: absolute; top: 12px; z-index: 2; border: 0; cursor: pointer;
  padding: .4rem .8rem; border-radius: 999px; font: 600 .78rem/1 var(--font); letter-spacing: .02em;
  transition: opacity 200ms ease, transform 160ms var(--ease-out), background-color 200ms ease;
}
.ba__tag:active { transform: scale(0.95); }
.ba__tag--before { left: 12px; background: rgba(28, 7, 21, .72); color: var(--on-dark); }
.ba__tag--after { right: 12px; background: var(--surface); color: var(--ink); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; pointer-events: none; }
.ba:has(.ba__range:focus-visible) .ba__knob { outline: 2px solid var(--gold-brand); outline-offset: 3px; }

/* ───────── Before/after page ───────── */
.page-hero { padding: calc(var(--bar-h) + env(safe-area-inset-top) + 2.5rem) var(--gutter) 2rem; }
.page-hero__title { font-size: clamp(3.2rem, 15vw, 8rem); line-height: .92; letter-spacing: -0.04em; font-weight: 300; }
.page-hero__title b { font-weight: 500; color: var(--plum); }
.page-hero__lede { margin-top: 1.25rem; color: var(--ink-2); max-width: 40ch; font-size: 1.1rem; }

.filters { padding: 0 var(--gutter); }
.filters .tabs { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }

.cases { padding: 1.75rem var(--gutter) 4.5rem; display: grid; gap: 2.5rem; }
.case { margin: 0; }
.case[hidden] { display: none; }
.case__cap { margin-top: 1rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.case__title { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.case__note { margin-top: .25rem; color: var(--ink-2); font-size: .95rem; }
.case__link {
  flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .9rem; color: var(--plum); box-shadow: inset 0 0 0 1px rgba(90, 30, 68, .3);
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.case__link svg { width: 16px; height: 16px; }
.case__link:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .case__link:hover { background: var(--plum); color: var(--on-dark); } }
@media (prefers-reduced-motion: no-preference) {
  .cases.is-in .case:not([hidden]) { animation: cardIn 560ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms); }
}
.disclaimer { padding: 0 var(--gutter) 4rem; color: var(--ink-2); font-size: .9rem; max-width: 70ch; }

/* ───────── Teaser on the services page ───────── */
.teaser { padding: 0 var(--gutter) 5rem; display: grid; gap: 1.75rem; }
.teaser__text p { margin-top: 1rem; color: var(--ink-2); max-width: 38ch; }
.teaser__text .btn { margin-top: 1.5rem; }

.bar__nav a[aria-current="page"] { background: rgba(36, 9, 27, .08); }

@media (min-width: 768px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 1.5rem; }
  .teaser { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
}
@media (min-width: 1024px) {
  .page-hero { padding-top: calc(var(--bar-h) + 5rem); display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 4rem; }
  .filters { display: flex; justify-content: flex-start; }
  .filters .tabs { margin: 0; padding: .3rem; background: rgba(36, 9, 27, .05); border-radius: 999px; overflow: visible; }
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 6rem; }
  .teaser { padding: 0 var(--gutter) 7rem; }
}

/* ───────── Links page ───────── */
.links-page {
  min-height: 100svh; color: var(--on-dark);
  background: radial-gradient(120% 70% at 50% -10%, #6C2753 0%, transparent 60%), var(--plum-night);
  display: grid; justify-items: center; padding: calc(3rem + env(safe-area-inset-top)) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
}
.links { width: 100%; max-width: 460px; display: grid; justify-items: center; text-align: center; }
.links__avatar { position: relative; width: 116px; height: 116px; border-radius: 50%; padding: 4px; background: conic-gradient(from 200deg, var(--gold), #F4DC94, var(--gold-brand), var(--gold)); }
.links__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--plum-night); }
.links__name { margin-top: 1.25rem; font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.links__role { margin-top: .4rem; color: var(--on-dark-2); }
.links__slogan { margin-top: .9rem; font-size: .95rem; color: var(--gold); font-weight: 500; letter-spacing: .02em; }
.links__list { list-style: none; margin: 2.25rem 0 0; padding: 0; width: 100%; display: grid; gap: .75rem; }
.lk {
  display: grid; grid-template-columns: 56px 1fr 24px; align-items: center; gap: .9rem; text-align: left;
  min-height: 72px; padding: .5rem 1.1rem .5rem .5rem; border-radius: 22px; text-decoration: none;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--on-dark);
  transition: transform 160ms var(--ease-out), background-color 220ms ease;
}
.lk:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .lk:hover { background: rgba(255, 255, 255, .12); } .lk:hover .lk__go { transform: translateX(3px); } }
.lk__media { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--gold); }
.lk__media img { width: 100%; height: 100%; object-fit: cover; }
.lk__media svg { width: 26px; height: 26px; }
.lk__t { display: block; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.lk__s { display: block; font-size: .88rem; color: var(--on-dark-2); }
.lk__go { width: 20px; height: 20px; color: var(--on-dark-2); transition: transform 240ms var(--ease-out); }
.lk--wa { background: var(--gold); color: var(--plum-night); box-shadow: 0 14px 30px -14px rgba(225, 186, 81, .55); }
.lk--wa .lk__s, .lk--wa .lk__go { color: rgba(28, 7, 21, .72); }
.lk--wa .lk__media { background: var(--plum-night); color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .lk--wa:hover { background: #EBC965; } }
.links__social { margin-top: 2rem; display: flex; gap: .75rem; }
.links__social a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.links__social a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .links__social a:hover { background: rgba(255, 255, 255, .14); } }
.links__social svg { width: 20px; height: 20px; }
.links__foot { margin-top: 2.5rem; font-size: .8rem; color: #C29FB4; }
@media (prefers-reduced-motion: no-preference) {
  .links > * , .links__list li { animation: rise 800ms var(--ease-out) both; }
  .links__avatar { animation-delay: 0ms; }
  .links__name { animation-delay: 80ms; }
  .links__role, .links__slogan { animation-delay: 140ms; }
  .links__list li { animation-delay: calc(220ms + var(--i) * 70ms); }
  .links__social { animation-delay: 650ms; }
}

/* ───────── Credit (all pages) ───────── */
.credit {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: .75rem;
  font-size: .82rem; color: #C29FB4; text-decoration: none; letter-spacing: .01em;
  transition: color 200ms ease;
}
.credit span { margin-left: .3em; color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .credit:hover { color: var(--on-dark); } .credit:hover span { color: var(--gold); } }
.foot .credit { grid-column: 1 / -1; justify-self: start; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: .75rem; width: 100%; }
.links .credit { margin-top: .25rem; }
