/* ================================================================
   USE CASES — dynamic switcher with graceful motion.
   Typedream-inspired: a single rotating clause + a single product
   preview that cross-fades in lockstep.
   ================================================================ */
.cases {
  position: relative;
  background: var(--adah-surface-cream);
  padding: 120px 0 100px;
  overflow: hidden;
}
/* Dorik-style side flow forms — quiet, directional, branded */
.cases::before, .cases::after {
  content: ""; position: absolute; width: 360px; height: 420px;
  background: radial-gradient(closest-side, rgba(var(--adah-secondary-rgb),.28), transparent 70%);
  filter: blur(10px); pointer-events: none;
}
.cases::before { inset-inline-start: -100px; top: 20%; }
.cases::after { inset-inline-end: -120px; bottom: 5%; }

.cases-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; position: relative; z-index: 2; }
.cases-copy h2 {
  font: var(--adah-t-h1); font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.2; color: var(--adah-tertiary);
  letter-spacing: -0.01em; margin: 16px 0 24px;
  text-wrap: balance;
}
.cases-copy .eyebrow { font: var(--adah-t-eyebrow); letter-spacing: .12em; color: var(--adah-primary); text-transform: uppercase; }

.rotator {
  position: relative; display: inline-block;
  min-width: 6ch; min-height: 1.15em;
  vertical-align: baseline;
}
.rotator .word {
  position: absolute; inset: 0;
  background: linear-gradient(95deg, var(--adah-wave-1), var(--adah-wave-4));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 420ms cubic-bezier(.16,.84,.3,1),
    transform 620ms cubic-bezier(.16,.84,.3,1),
    filter 520ms cubic-bezier(.16,.84,.3,1);
  white-space: nowrap;
}
.rotator .word.in {
  opacity: 1; transform: none; filter: blur(0);
}
.rotator .word.out {
  opacity: 0; transform: translateY(-14px); filter: blur(3px);
  transition-duration: 420ms;
}
.rotator::after { /* keeps layout stable during switches */
  content: attr(data-longest); visibility: hidden;
  background: none; color: transparent;
  white-space: nowrap;
}

.cases-copy p { font: var(--adah-t-lead); color: var(--adah-ink-soft); margin: 0 0 28px; max-width: 520px; line-height: 1.65; }
.case-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.case-pill {
  padding: 8px 16px; border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(var(--adah-tertiary-rgb),.08);
  font: var(--adah-t-label); color: var(--adah-ink-soft);
  cursor: pointer;
  transition: all .25s;
}
.case-pill:hover { border-color: rgba(var(--adah-primary-rgb),.4); color: var(--adah-tertiary); }
.case-pill.active {
  background: var(--adah-tertiary);
  color: #fff;
  border-color: var(--adah-tertiary);
}

/* Preview stage — one visible layer, cross-fade between cases */
.case-stage {
  position: relative;
  aspect-ratio: 5/4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(var(--adah-tertiary-rgb),.28), 0 0 0 1px rgba(var(--adah-tertiary-rgb),.04);
  overflow: hidden;
}
.case-layer {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.03);
  filter: blur(4px);
  transition: opacity 520ms cubic-bezier(.16,.84,.3,1), transform 720ms cubic-bezier(.16,.84,.3,1), filter 520ms cubic-bezier(.16,.84,.3,1);
}
.case-layer.active { opacity: 1; transform: none; filter: blur(0); }

/* Individual case previews — distinct but sharing the Adah visual vocabulary */
.cl-cafe { background: linear-gradient(160deg, #FFF7E8 0%, #FDEDD0 100%); padding: 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.cl-cafe .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--adah-ink-deep); font-weight: 700; }
.cl-cafe .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cl-cafe .item { background: #fff; border-radius: 10px; padding: 10px; display: flex; gap: 8px; align-items: center; box-shadow: 0 4px 12px -6px rgba(0,0,0,.12); }
.cl-cafe .item .sw { width: 32px; height: 32px; border-radius: 6px; background: linear-gradient(135deg, #F0B36A, #E3894C); flex: 0 0 auto; }
.cl-cafe .item .n { font-size: 11px; font-weight: 700; color: var(--adah-ink-deep); }
.cl-cafe .item .p { font-size: 10px; color: var(--adah-muted); }

.cl-store { background: #fff; padding: 0; }
.cl-store .banner { height: 38%; background: linear-gradient(135deg, var(--adah-wave-1), var(--adah-wave-4)); position: relative; }
.cl-store .banner::after { content:""; position: absolute; inset: auto 0 0 0; height: 60%; background: radial-gradient(120% 80% at 70% 100%, rgba(255,255,255,.4), transparent 60%); }
.cl-store .products { padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cl-store .product { background: #F9FBFB; border-radius: 8px; padding: 8px; }
.cl-store .product .ph { aspect-ratio: 1; background: var(--adah-mint-wash); border-radius: 6px; margin-bottom: 6px; }
.cl-store .product .t { height: 6px; background: #CFD5D5; border-radius: 3px; margin-bottom: 4px; width: 80%;}
.cl-store .product .pr { font-size: 10px; color: var(--adah-primary-ink); font-weight: 700; }

.cl-portfolio { background: #0F3D44; color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.cl-portfolio .n { font-size: 12px; opacity: .7; }
.cl-portfolio h3 { font-size: 32px; margin: 8px 0 12px; font-weight: 700; line-height: 1.1; }
.cl-portfolio .bio { font-size: 12px; opacity: .8; max-width: 260px; line-height: 1.6; }
.cl-portfolio .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-portfolio .chip { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 10px; }
.cl-portfolio .photo { position: absolute; inset-inline-end: 28px; top: 28px; width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--adah-wave-4), var(--adah-wave-2)); }

.cl-event { background: linear-gradient(160deg, #FCEEFF 0%, #F2E5FA 100%); padding: 24px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.cl-event .tag { font-size: 11px; background: #fff; padding: 6px 12px; border-radius: 999px; color: #7A3FB0; font-weight: 700; margin-bottom: 12px; }
.cl-event h3 { font-size: 28px; color: #4A1F75; margin: 0 0 8px; line-height: 1.15; }
.cl-event .date { font-size: 12px; color: #7A3FB0; margin-bottom: 20px; }
.cl-event .rsvp { background: #4A1F75; color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 12px; font-weight: 700; }

.cl-menu { background: #1A1613; color: #F4E9D7; padding: 0; }
.cl-menu .mhead { padding: 20px; background: #2A221C; display: flex; justify-content: space-between; align-items: center; }
.cl-menu .mhead .logo-t { font-size: 14px; font-weight: 700; color: #D9B570; }
.cl-menu .dish { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid rgba(217,181,112,.12); align-items: baseline; }
.cl-menu .dish .n { font-size: 13px; font-weight: 700; }
.cl-menu .dish .d { font-size: 10px; opacity: .6; margin-top: 2px; }
.cl-menu .dish .p { font-size: 13px; color: #D9B570; font-weight: 700; }

@media (max-width: 991.98px) {
  .cases-inner { grid-template-columns: 1fr; gap: 40px; }
}
