:root {
  --premium-black: #121216;
  --premium-panel: #1d1d23;
  --premium-paper: #f4f1ea;
  --premium-white: #fbfaf6;
  --premium-line: rgba(20, 20, 22, 0.14);
  --premium-violet: #5a2d68;
  --premium-acid: #dfff5d;
  --case-accent: var(--premium-acid);
  --case-accent-rgb: 223, 255, 93;
  --case-secondary: #d8d4ff;
  --premium-serif: "Cormorant Garamond", Georgia, serif;
}

html { scroll-padding-top: 7.5rem; }

body {
  background: var(--premium-black);
  color: #171719;
}

.paper-grain {
  z-index: 0;
  opacity: 0.13;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 0.5px, transparent 0.5px);
  background-size: 9px 9px;
  mix-blend-mode: soft-light;
}

.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--case-accent);
  box-shadow: 0 0 18px rgba(var(--case-accent-rgb), 0.5);
}

.topbar.cv-topbar {
  position: sticky;
  top: 1rem;
  z-index: 50;
  width: min(calc(100% - 48px), 1180px);
  min-height: 58px;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  margin: 1rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.025)), rgba(14,14,18,.64);
  box-shadow: 0 18px 50px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.16);
  backdrop-filter: blur(28px) saturate(150%);
  transition: background 240ms ease, box-shadow 240ms ease;
}

.topbar.cv-topbar.is-scrolled {
  background: rgba(14, 14, 18, 0.82);
  box-shadow: 0 18px 54px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.13);
}

.topbar.cv-topbar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
  pointer-events: none;
}

.topbar.cv-topbar .stamp-logo,
.topbar.cv-topbar nav,
.topbar.cv-topbar .nav-toggle,
.topbar.cv-topbar .tiny-cta {
  border: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

.topbar.cv-topbar .stamp-logo {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 6px;
  color: white;
  transition: border-color 200ms ease, background 200ms ease;
}

.topbar.cv-topbar .stamp-logo:hover { border-color: var(--case-accent); background: rgba(var(--case-accent-rgb),.08); }
.topbar.cv-topbar nav { justify-self: center; flex-wrap: nowrap; padding: 0; }
.topbar.cv-topbar nav a { color: rgba(255,255,255,.68); font-size: 12px; transition: color 180ms ease; }
.topbar.cv-topbar nav a:hover { color: white; background: transparent; }
.topbar.cv-topbar .tiny-cta { border-radius: 6px; padding: 12px 16px; color: #151517; background: var(--case-accent); }
.topbar.cv-topbar .tiny-cta:hover { color: #151517; filter: brightness(1.08); }
.topbar.cv-topbar .nav-toggle span { background: white; }

.journal-page.case-page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 1180px);
  margin: 1.2rem auto 5rem;
}

.case-page .case-hero,
.case-page .case-summary,
.case-page .case-story,
.case-page .case-section,
.case-page .case-next {
  border-radius: 8px;
  box-shadow: none;
}

.case-page .case-hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  border-color: rgba(255,255,255,.14);
  padding: clamp(48px, 7vw, 86px);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(13,13,16,.98), rgba(13,13,16,.78) 55%, rgba(13,13,16,.46)),
    url("./assets/liquid-light.png") center / cover;
}

.case-page .case-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8%;
  background: radial-gradient(circle at 72% 45%, rgba(var(--case-accent-rgb),.16), transparent 32%);
  transform: translate3d(0, calc(var(--premium-hero-shift, 0) * 1px), 0);
  transition: transform 80ms linear;
}

.case-page .case-hero-copy { position: relative; z-index: 2; }
.case-page .case-hero-copy h1 {
  max-width: 720px;
  margin: 0;
  color: white;
  font-family: var(--premium-serif);
  font-size: clamp(58px, 7vw, 98px);
  font-weight: 400;
  line-height: .87;
  letter-spacing: 0;
}

.case-page .case-hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 28px;
  color: rgba(255,255,255,.66);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
}

.case-page .eyebrow {
  color: var(--premium-violet);
  font-size: 10px;
  letter-spacing: .15em;
}

.case-page .case-hero .eyebrow,
.case-page .case-section.impact .eyebrow { color: var(--case-accent); }

.case-page .proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.case-page .proof-strip span {
  border-color: rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(12px);
}

.case-page .case-hero-visual {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  padding: 8px;
  border-color: rgba(255,255,255,.18);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(255,255,255,.07);
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
  transform: none;
  opacity: 1;
}

.case-page .case-hero-visual img {
  border-radius: 4px;
  animation: premiumHeroMediaIn 900ms 120ms cubic-bezier(.2,.7,.2,1) both;
  transition: transform 900ms cubic-bezier(.2,.7,.2,1);
}
.case-page .case-hero:hover .case-hero-visual img { transform: scale(1.018); }

@keyframes premiumHeroMediaIn {
  from { transform: translateY(14px) scale(.985); }
  to { transform: none; }
}

.case-page .case-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  border-color: rgba(255,255,255,.14);
  background: var(--premium-panel);
  color: white;
}
.case-page .case-summary article { min-height: 190px; border: 0; border-right: 1px solid rgba(255,255,255,.13); padding: 28px; }
.case-page .case-summary article:last-child { border-right: 0; }
.case-page .case-summary span { color: var(--case-accent); font-size: 10px; }
.case-page .case-summary p { color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.65; }

.case-page .case-story,
.case-page .case-section,
.case-page .case-next {
  border-color: var(--premium-line);
  background: var(--premium-white);
}

.case-page .case-story {
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(48px, 8vw, 110px);
  margin-top: 18px;
  padding: clamp(50px, 7vw, 90px);
}
.case-page .case-story h2,
.case-page .case-section-copy h2 {
  margin: 0;
  color: #161618;
  font-family: var(--premium-serif);
  font-weight: 400;
  letter-spacing: 0;
}
.case-page .case-story h2 { font-size: clamp(48px, 5.4vw, 76px); line-height: .93; }
.case-page .case-story-copy p { color: #646168; font-size: 15px; line-height: 1.72; }

.case-page .case-section,
.case-page .case-section.compact,
.case-page .case-section-vertical,
.case-page .case-section.compact.case-section-vertical {
  grid-template-columns: 1fr;
  gap: 34px;
  margin-top: 18px;
  padding: clamp(44px, 6vw, 76px);
}
.case-page .case-section-copy { position: relative; top: auto; max-width: 100%; }
.case-page .case-section-copy h2 { max-width: 980px; font-size: clamp(48px, 6vw, 82px); line-height: .9; }
.case-page .case-section-copy p { max-width: 900px; color: #646168; font-size: 15px; line-height: 1.7; }
.case-page .case-note-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 28px; max-width: 980px; }
.case-page .case-note-list li { color: #4f4d53; font-size: 13px; font-weight: 600; }
.case-page .case-note-list li::before { width: 5px; height: 5px; background: var(--premium-violet); box-shadow: none; }

.case-page .case-section.impact {
  border-color: rgba(255,255,255,.14);
  color: white;
  background: var(--premium-panel);
}
.case-page .case-section.impact .case-section-copy h2 { color: white; }
.case-page .case-section.impact .case-section-copy p,
.case-page .case-section.impact .case-note-list li { color: rgba(255,255,255,.64); }
.case-page .case-section.impact .case-note-list li::before { background: var(--case-accent); }

.case-page .case-image-grid,
.case-page .case-image-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.case-page .case-shot,
.case-page .case-hero-visual {
  transform-origin: center;
}
.case-page .case-shot {
  padding: 8px;
  border-color: var(--premium-line);
  border-radius: 7px;
  overflow: hidden;
  background: #eef0f2;
  box-shadow: 0 24px 65px rgba(25,22,18,.12);
  transition: transform 420ms cubic-bezier(.2,.7,.2,1), box-shadow 420ms ease;
}
.case-page .case-shot:hover { transform: translateY(-5px); box-shadow: 0 34px 80px rgba(25,22,18,.18); }
.case-page .case-shot img { border-radius: 4px; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.case-page .case-shot:hover img { transform: scale(1.012); }
.case-page .case-shot.wide { width: 100%; max-width: none; }

.case-page .case-next {
  margin-top: 18px;
  padding: 18px;
}
.case-page .case-next a {
  border: 1px solid var(--premium-line);
  border-radius: 6px;
  padding: 14px 18px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease;
}
.case-page .case-next a:hover { border-color: var(--premium-violet); background: rgba(90,45,104,.06); }

/* Each product keeps the shared editorial system while carrying its own visual identity. */
body:has(.design-system-case) { --case-accent: #89b4e6; --case-accent-rgb: 137, 180, 230; --case-secondary: #c8d9f3; }
body:has(.meralis-case) { --case-accent: #7dbef2; --case-accent-rgb: 125, 190, 242; --case-secondary: #dfff5d; }
body:has(.wallet-case) { --case-accent: #dfff5d; --case-accent-rgb: 223, 255, 93; --case-secondary: #95af31; }
body:has(.honeybee-case) { --case-accent: #68d7c1; --case-accent-rgb: 104, 215, 193; --case-secondary: #9bd5e7; }
body:has(.legacy-case) { --case-accent: #c6aa61; --case-accent-rgb: 198, 170, 97; --case-secondary: #8e3030; }
body:has(.pet-case) { --case-accent: #a99ae8; --case-accent-rgb: 169, 154, 232; --case-secondary: #45d8c8; }
body:has(.delivery-case) { --case-accent: #4bd174; --case-accent-rgb: 75, 209, 116; --case-secondary: #ff725c; }
body:has(.valentine-case) { --case-accent: #ff526b; --case-accent-rgb: 255, 82, 107; --case-secondary: #e2be78; }

.design-system-case .case-hero { background: linear-gradient(90deg,rgba(11,17,27,.98),rgba(11,17,27,.78) 55%,rgba(11,17,27,.5)), radial-gradient(circle at 80% 38%,#355778,transparent 45%),#0b111b; }
.meralis-case .case-hero { background: linear-gradient(90deg,rgba(8,18,31,.98),rgba(8,18,31,.78) 55%,rgba(8,18,31,.5)), radial-gradient(circle at 80% 38%,#174f78,transparent 45%),#08121f; }
.wallet-case .case-hero { background: linear-gradient(90deg,rgba(4,10,5,.99),rgba(4,10,5,.8) 55%,rgba(4,10,5,.5)), radial-gradient(circle at 80% 38%,#34460c,transparent 45%),#040a05; }
.honeybee-case .case-hero { background: linear-gradient(90deg,rgba(7,22,24,.98),rgba(7,22,24,.8) 55%,rgba(7,22,24,.5)), radial-gradient(circle at 80% 38%,#195d62,transparent 45%),#071618; }
.legacy-case .case-hero { background: linear-gradient(90deg,rgba(12,11,10,.98),rgba(12,11,10,.8) 55%,rgba(12,11,10,.54)), radial-gradient(circle at 80% 38%,#59452c,transparent 45%),#0c0b0a; }
.pet-case .case-hero { background: linear-gradient(90deg,rgba(20,13,31,.98),rgba(20,13,31,.8) 55%,rgba(20,13,31,.5)), radial-gradient(circle at 80% 38%,#544683,transparent 45%),#140d1f; }
.delivery-case .case-hero { background: linear-gradient(90deg,rgba(7,23,12,.98),rgba(7,23,12,.8) 55%,rgba(7,23,12,.5)), radial-gradient(circle at 80% 38%,#24683a,transparent 45%),#07170c; }
.valentine-case .case-hero { background: linear-gradient(90deg,rgba(28,9,15,.98),rgba(28,9,15,.8) 55%,rgba(28,9,15,.5)), radial-gradient(circle at 80% 38%,#7e2638,transparent 45%),#1c090f; }

.case-page .case-hero-visual { border-color: rgba(var(--case-accent-rgb),.34); box-shadow: 0 34px 90px rgba(0,0,0,.42), 0 0 0 1px rgba(var(--case-accent-rgb),.08); }
.case-page .proof-strip span { border-color: rgba(var(--case-accent-rgb),.32); }
.case-page .case-summary { border-top: 2px solid var(--case-accent); }
.case-page .case-section.impact { border-top: 2px solid var(--case-accent); }

/* Meralis: editorial case shell with product UI kept visually independent. */
.meralis-case .case-story,
.meralis-case .case-section:not(.impact) {
  border-color: rgba(16, 33, 52, .12);
  background: var(--premium-paper);
}

.meralis-case .case-story {
  background: #f7f5f0;
}

.meralis-case .case-section.compact {
  overflow: hidden;
}

.meralis-case .case-section.impact {
  background:
    radial-gradient(circle at 86% 18%, rgba(125, 190, 242, .16), transparent 28%),
    #101b28;
}

.meralis-case .meralis-problem-grid,
.meralis-case .meralis-capabilities,
.meralis-case .meralis-process-grid,
.meralis-case .meralis-outcomes {
  gap: 0;
  border-top: 1px solid rgba(16, 33, 52, .16);
  border-bottom: 1px solid rgba(16, 33, 52, .16);
}

.meralis-case .meralis-problem-grid article,
.meralis-case .meralis-capabilities article,
.meralis-case .meralis-process-grid article,
.meralis-case .meralis-outcomes article {
  min-height: 190px;
  border: 0;
  border-right: 1px solid rgba(16, 33, 52, .16);
  border-radius: 0;
  padding: 24px;
  background: transparent;
  box-shadow: none;
}

.meralis-case .meralis-problem-grid article:last-child,
.meralis-case .meralis-capabilities article:last-child,
.meralis-case .meralis-process-grid article:last-child,
.meralis-case .meralis-outcomes article:last-child {
  border-right: 0;
}

.meralis-case .meralis-problem-grid h3,
.meralis-case .meralis-capabilities h3,
.meralis-case .meralis-process-grid h3 {
  color: #101b28;
  font-family: Inter, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 650;
  line-height: 1.15;
}

.meralis-case .meralis-problem-grid p,
.meralis-case .meralis-capabilities p,
.meralis-case .meralis-process-grid p,
.meralis-case .meralis-outcomes span {
  color: #4d5965;
}

.meralis-case .meralis-problem-grid span,
.meralis-case .meralis-capabilities span,
.meralis-case .meralis-process-grid span {
  color: #185fa5;
}

/* Product evidence uses its own light application palette, never inherited page colors. */
.meralis-case .meralis-ui-shot,
.meralis-case .meralis-payroll-shot,
.meralis-case .meralis-catalog-shot,
.meralis-case .meralis-esign-shot,
.meralis-case .meralis-banking-shot,
.meralis-case .meralis-safety-shot,
.meralis-case .meralis-roles-shot {
  color: #212529;
}

.meralis-case .meralis-ui-shot,
.meralis-case .meralis-ui-shot * {
  min-width: 0;
}

.meralis-case .meralis-ui-shot {
  overflow: hidden;
}

.meralis-case .meralis-app-nav {
  flex-wrap: wrap;
  row-gap: .45rem;
}

.meralis-case .meralis-ui-shot {
  min-height: 0;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
}

.meralis-case .meralis-dashboard-canvas {
  width: 130%;
  transform: scale(.77);
  transform-origin: top left;
}

.meralis-case .meralis-dashboard-title h3,
.meralis-case .meralis-card-head h3,
.meralis-case .meralis-payroll-head h3,
.meralis-case .meralis-bank-grid h3 {
  color: #101b28;
}

.meralis-case .meralis-dashboard-title small,
.meralis-case .meralis-payroll-head span,
.meralis-case .meralis-stat-row small,
.meralis-case .meralis-payroll-summary small,
.meralis-case .meralis-outcomes small,
.meralis-case .meralis-table th,
.meralis-case .meralis-table small,
.meralis-case .meralis-catalog-toolbar span,
.meralis-case .meralis-match small,
.meralis-case .meralis-person-row small,
.meralis-case .meralis-role-row small,
.meralis-case .meralis-disabled-field,
.meralis-case .meralis-safety-shot > p,
.meralis-case .meralis-roles-shot > p,
.meralis-case .meralis-card-head span:first-child,
.meralis-case .meralis-bank-grid span,
.meralis-case .meralis-score span {
  color: #52606d;
}

.meralis-case .meralis-warning {
  color: #6f4005;
}

.meralis-case .meralis-roles-shot > .meralis-warning {
  color: #6f4005;
}

.meralis-case .meralis-warning.red {
  color: #8f2424;
}

.meralis-case .meralis-score small {
  color: #3f4d3a;
}

.meralis-case .meralis-code-shot,
.meralis-case .meralis-code-shot h3 {
  color: #fff;
}

.meralis-case .meralis-code-shot p:not(.eyebrow) {
  color: #d7e1eb;
}

/* System delivery is a technical chapter, not another paper sheet. */
.meralis-case #system {
  border-color: rgba(125, 190, 242, .28);
  background:
    linear-gradient(145deg, rgba(125, 190, 242, .07), transparent 42%),
    #0d1825;
}

.meralis-case #system .case-section-copy h2,
.meralis-case #system .meralis-system-grid h3 {
  color: #f7f9fc;
}

.meralis-case #system .case-section-copy > p:not(.eyebrow),
.meralis-case #system .meralis-system-grid p {
  color: #b8c3cf;
}

.meralis-case #system .meralis-system-grid article {
  border-color: rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .035);
  box-shadow: none;
}

.meralis-case #system .meralis-system-grid span {
  color: #7dbef2;
}

.meralis-case #system .meralis-code-shot {
  border-color: rgba(125, 190, 242, .38);
  background: #050b12;
  color: #f7f9fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.meralis-case #system .meralis-code-shot .eyebrow {
  color: #9bcdf5;
}

.meralis-case #system .meralis-code-shot h3 {
  color: #fff;
}

.meralis-case #system .meralis-code-shot p:not(.eyebrow) {
  color: #c9d8e6;
}

.meralis-case #system .meralis-code-shot pre {
  color: #8ed2ff;
}

/* Reflection closes the narrative as an editorial band instead of a journal card. */
.meralis-case .meralis-reflection {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0;
  background: transparent;
}

.meralis-case .meralis-reflection h2 {
  color: #f7f9fc;
  font-size: clamp(44px, 5vw, 68px);
}

.meralis-case .meralis-reflection .eyebrow {
  color: var(--case-accent);
}

.meralis-case .meralis-reflection .case-story-copy {
  border-left: 1px solid rgba(255, 255, 255, .18);
  padding-left: clamp(28px, 5vw, 64px);
}

.meralis-case .meralis-reflection .case-story-copy p {
  color: rgba(255, 255, 255, .68);
}

.meralis-case .case-section.impact .meralis-metric-grid article,
.meralis-case .case-section.impact .meralis-outcomes article {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

.meralis-case .case-section.impact .meralis-metric-grid strong,
.meralis-case .case-section.impact .meralis-outcomes strong {
  color: var(--case-accent);
}

.meralis-case .case-section.impact .meralis-metric-grid span,
.meralis-case .case-section.impact .meralis-outcomes span {
  color: rgba(255, 255, 255, .88);
}

.meralis-case .case-section.impact .meralis-metric-grid small,
.meralis-case .case-section.impact .meralis-outcomes small {
  color: rgba(255, 255, 255, .68);
}

.meralis-case .case-section.impact .meralis-outcomes span,
.meralis-case .case-section.impact .meralis-outcomes small {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
}

.meralis-case .case-section.impact .meralis-two-up .wallet-detail-card {
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}

.meralis-case .case-section.impact .meralis-two-up .wallet-detail-card h3 {
  color: #f7f9fc;
}

.meralis-case .case-section.impact .meralis-two-up .wallet-detail-card p {
  color: rgba(255, 255, 255, .68);
}

@media (max-width: 760px) {
  .meralis-case .meralis-reflection .case-story-copy {
    border-top: 1px solid rgba(255, 255, 255, .18);
    border-left: 0;
    padding-top: 24px;
    padding-left: 0;
  }

  .meralis-case .meralis-problem-grid,
  .meralis-case .meralis-capabilities,
  .meralis-case .meralis-process-grid,
  .meralis-case .meralis-outcomes {
    border: 0;
  }

  .meralis-case .meralis-problem-grid article,
  .meralis-case .meralis-capabilities article,
  .meralis-case .meralis-process-grid article,
  .meralis-case .meralis-outcomes article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 33, 52, .16);
    padding: 20px 0;
  }

  .meralis-case .meralis-problem-grid article:last-child,
  .meralis-case .meralis-capabilities article:last-child,
  .meralis-case .meralis-process-grid article:last-child,
  .meralis-case .meralis-outcomes article:last-child {
    border-bottom: 0;
  }

  .meralis-case .case-hero-visual,
  .meralis-case .meralis-payroll-shot,
  .meralis-case .meralis-catalog-shot {
    overflow: hidden;
  }

  .meralis-case .meralis-app-nav {
    flex-wrap: wrap;
    gap: .45rem;
    padding: .8rem;
  }

  .meralis-case .meralis-app-nav strong {
    width: 100%;
  }

  .meralis-case .meralis-dashboard-grid,
  .meralis-case .meralis-stat-row,
  .meralis-case .meralis-payroll-summary,
  .meralis-case .meralis-form-grid {
    grid-template-columns: 1fr;
  }

  .meralis-case .meralis-payroll-head,
  .meralis-case .meralis-card-head,
  .meralis-case .meralis-catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .meralis-case .meralis-table,
  .meralis-case .meralis-catalog-table {
    min-width: 0;
    width: 100%;
    margin-inline: 0;
  }

  .meralis-case .meralis-table thead {
    display: none;
  }

  .meralis-case .meralis-table tbody,
  .meralis-case .meralis-table tr,
  .meralis-case .meralis-table td {
    display: block;
    width: 100%;
  }

  .meralis-case .meralis-table tr {
    border-top: 1px solid #d9dee4;
    padding: 10px 0;
  }

  .meralis-case .meralis-table td {
    border: 0;
    padding: 5px 12px;
    text-align: left;
  }

  .meralis-case .meralis-catalog-table td:last-child {
    width: 100%;
    padding-right: 12px;
    text-align: left;
  }

  .meralis-case .meralis-catalog-modal {
    width: calc(100% - 20px);
    margin: 10px;
  }
}

.premium-reveal {
  opacity: 1;
  transform: translateY(18px);
  transition: transform 760ms cubic-bezier(.2,.7,.2,1);
}
.premium-reveal.is-visible { opacity: 1; transform: none; }
.premium-media-reveal {
  clip-path: inset(0);
  transform: translateY(14px) scale(.992);
  transition: transform 820ms cubic-bezier(.2,.7,.2,1), box-shadow 420ms ease;
}
.premium-media-reveal.is-visible { clip-path: inset(0); transform: none; }

@media (max-width: 980px) {
  .case-page .case-hero { min-height: 0; grid-template-columns: 1fr; }
  .case-page .case-hero-visual { max-width: 760px; justify-self: start; }
  .case-page .case-story { grid-template-columns: 1fr; }
  .case-page .case-summary article { min-height: 0; }
  .meralis-case .meralis-ui-shot { min-height: 0; aspect-ratio: auto; }
  .meralis-case .meralis-dashboard-canvas { width: 100%; transform: none; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 5.5rem; }
  .topbar.cv-topbar { top: 10px; width: calc(100% - 28px); grid-template-columns: auto 1fr auto; padding-left: 10px; }
  .topbar.cv-topbar nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 8px; background: rgba(18,18,22,.97); }
  .topbar.cv-topbar.nav-open nav { display: flex; }
  .topbar.cv-topbar nav a { padding: 13px 10px; }
  .topbar.cv-topbar .nav-toggle { display: grid; justify-self: end; }
  .topbar.cv-topbar .tiny-cta { display: none; }
  .journal-page.case-page { width: calc(100% - 28px); margin-top: 14px; }
  .case-page .case-hero { padding: 96px 22px 34px; }
  .case-page .case-hero-copy h1 { font-size: clamp(49px, 15vw, 68px); }
  .case-page .case-hero-copy p:not(.eyebrow) { font-size: 15px; }
  .case-page .proof-strip { gap: 6px; }
  .case-page .proof-strip span { padding: 6px 8px; font-size: 9px; }
  .case-page .case-summary { grid-template-columns: 1fr; }
  .case-page .case-summary article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); padding: 22px; }
  .case-page .case-summary article:last-child { border-bottom: 0; }
  .case-page .case-story,
  .case-page .case-section,
  .case-page .case-section.compact,
  .case-page .case-section-vertical,
  .case-page .case-section.compact.case-section-vertical { padding: 38px 20px; }
  .case-page .case-story h2,
  .case-page .case-section-copy h2 { font-size: clamp(42px, 13vw, 58px); }
  .case-page .case-image-grid,
  .case-page .case-image-grid.two,
  .case-page .case-note-list { grid-template-columns: 1fr; }
  .case-page .case-next { flex-direction: column; }
  .case-page .case-next a { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-reveal,
  .premium-media-reveal,
  .premium-hero-media,
  .case-page .case-shot,
  .case-page .case-shot img,
  .case-page .case-hero-visual img { opacity: 1; transform: none; clip-path: none; animation: none; transition: none; }
}
