
.eclipse-panels{position:relative;margin:auto;container-type:inline-size}
.eclipse-panel{position:absolute;box-sizing:border-box;animation:eclipse-float var(--period) ease-in-out var(--phase) infinite;}
@keyframes eclipse-float{0%,100%{translate:0 calc(-1 * var(--offset))}50%{translate:0 var(--offset)}}
.eclipse-panel--back{--period:10s;--phase:-3s;--offset:6px}.eclipse-panel--front{--period:12s;--phase:-8s;--offset:8px}
.eclipse-panels{width:94%;aspect-ratio:1.36;isolation:isolate}
.eclipse-orbit{position:absolute;inset:-13% -12%;width:124%;height:126%;z-index:-1;pointer-events:none}
.eclipse-panel{overflow:hidden;color:#f9f1ff;background:linear-gradient(145deg,#e4ccff29,#33194cdd 51%,#160d2bf5);border:1px solid #c5a0ef85;border-radius:3cqw;box-shadow:inset 0 1px #fff6,0 0 24px #ac6bff28,0 16px 40px #08041888;backdrop-filter:blur(7px);font-size:2.2cqw;padding:2.7cqw}
.eclipse-panel--back{left:0;top:3%;width:55%;height:64%;background:linear-gradient(135deg,#b79dfa57,#302053d9 66%);transform:rotate(-9deg)}
.eclipse-panel--front{right:1%;bottom:5%;width:75%;height:77%;transform:rotate(-4deg)}
.eclipse-panel__heading{display:flex;align-items:center;justify-content:space-between;gap:1cqw;font-weight:700;line-height:1.2;margin:0 0 2cqw}
.eclipse-panel__heading small{color:#ead0ff;font-size:1.65cqw;font-weight:600}
.eclipse-panel__ring{margin:1cqw 0 1.7cqw 2cqw;width:16cqw;background:conic-gradient(#b28bff 0 71%,#fdad8e 71% 90%,#78d5f0 90%);box-shadow:0 0 18px #b28bff48}
.eclipse-panel__ring b{background:#36224f;color:#fff;font-size:3.2cqw}
.eclipse-panel__legend{margin:0;padding:0;list-style:none;color:#eee0ff;font-size:1.8cqw}
.eclipse-panel__legend li+li{margin-top:.45cqw}
.eclipse-panel__legend li::before{content:"";display:inline-block;width:.85cqw;height:.85cqw;margin-right:.9cqw;border-radius:50%;background:var(--tone)}
.eclipse-panel__metrics{margin:0 0 1.7cqw;gap:1.2cqw}
.eclipse-panel__metrics span{min-width:0;background:#f9eaff13;border:1px solid #eac9ff24;padding:1cqw;color:#efe0fa;font-size:1.65cqw}
.eclipse-panel__metrics b{color:#fff;font-size:3cqw}
.eclipse-panel__chart{height:16cqw;background:repeating-linear-gradient(to bottom,#f9eaff08 0 24%,#eae1f22c 25% 26%);border:1px solid #f9eaff23}
.eclipse-panel__insight{display:flex;align-items:center;gap:1cqw;margin-top:1.7cqw;border:1px solid #ffbd8950;border-radius:1cqw;background:#ffba8114;padding:.85cqw 1.1cqw;font-size:1.8cqw;line-height:1.2}
.eclipse-panel__insight svg{width:2.5cqw;flex:none;color:#ffbf92}
@media(prefers-reduced-motion:reduce){.eclipse-panel{animation:none}}
.eclipse-panels{width:100%;aspect-ratio:1.23;isolation:isolate}
.eclipse-orbit{inset:-4%;width:108%;height:108%}
.eclipse-panel{overflow:visible;font-variant-numeric:tabular-nums;filter:drop-shadow(0 0 10px #bf8dff50)}
.eclipse-panel--back,.eclipse-panel--side{background:linear-gradient(145deg,#e5caff36,#8f65bd16 74%);backdrop-filter:blur(3px);border-color:#e3c7ff80;box-shadow:inset 0 1px #ffeaff80,0 4px 14px #160d293e;padding:2cqw}
.eclipse-panel--back{left:1%;top:5%;width:43%;height:auto;min-height:29cqw;transform:rotate(-6deg);z-index:1}
.eclipse-panel--front{right:auto;left:15%;bottom:5%;width:73%;height:auto;z-index:3;transform:none;background:none;border:0;padding:0;box-shadow:none;backdrop-filter:none}
.eclipse-panel--front img{display:block;width:100%;height:auto;opacity:.84}
.eclipse-panel--side{--period:11s;--phase:-5s;--offset:6px;right:1%;top:11%;width:38%;height:auto;min-height:26cqw;transform:rotate(4deg);z-index:2}
.eclipse-panel__heading{font-size:2.3cqw;margin:0 0 1.4cqw;white-space:nowrap}
.eclipse-panel__share{display:block;width:13cqw;height:auto;margin-top:1.6cqw}
.eclipse-panel__share text{font:700 21px system-ui,sans-serif;fill:#fff;text-anchor:middle;dominant-baseline:central}
.eclipse-panel__legend{position:absolute;top:7.4cqw;left:17.5cqw}
.eclipse-panel__legend li{white-space:nowrap}
.eclipse-panel--side .eclipse-panel__bars{width:83%;margin-left:auto}
.eclipse-panel__bars{display:block;width:100%;height:auto}

.cases-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  border-radius: 18px;
  padding: clamp(1.35rem, 5vw, 4.5rem);
  color: #fff;
  background: radial-gradient(ellipse at 82% 65%, #43205e, transparent 58%), #180e29;
}
.cases-hero h1 {
  font-size: clamp(2rem, 5.4vw, 4.65rem);
  font-weight: 800;
  line-height: 1.05;
}
.cases-hero h1 span {
  display: block;
  color: #e49eef;
  background: linear-gradient(96deg, #bc9dff, #e49eef 30%, #ff9a76 70%, #ffcf96);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cases-hero p { color: #f2e8fb; margin: 1rem 0 1.35rem; }
.cases-hero .hero-action {
  display: inline-block;
  padding: .56rem 1.1rem;
  border: 1px solid #b8a0d5;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 650;
}
.cases-hero .hero-action:hover { background: #ffffff16; }
@media (max-width: 640px) {
  .cases-hero { grid-template-columns: 1fr; gap: .7rem; }
  .cases-hero .eclipse-panels { width: min(100%, 380px); }
}

:root { --cases-width: min(90%, 1330px); }
.cases-header { position: relative; padding: 0; }
.cases-header .site-nav {
  position: absolute;
  z-index: 5;
  inset: 16px 0 auto;
  width: var(--cases-width);
  margin: 0 auto;
}
.cases-hero {
  display: block;
  width: 100%;
  border-radius: 0;
  padding: 0;
}
.cases-hero-inner {
  width: min(calc(100% - 80px), 1212px);
  min-height: clamp(445px, 45vw, 680px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding-block: clamp(105px, 9vw, 142px) clamp(42px, 5vw, 72px);
}
.cases-hero h1 { font-size: clamp(2.6rem, 6.1vw, 5.75rem); }
@media (max-width: 750px) {
  :root { --cases-width: calc(100% - 20px); }
  .cases-header .site-nav { inset: 9px 0 auto; }
  .cases-hero-inner {
    width: calc(100% - 40px);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 150px 28px;
  }
  .cases-hero .eclipse-panels { width: min(94%, 480px); }
}
@media print {
  .cases-hero-inner { min-height: 0; padding-block: 1rem; }
}

.cases-header .site-nav { position: fixed; z-index: 10; }
.project-nav {
  position: sticky;
  top: calc(var(--primary-nav-bottom, 76px) + 8px);
  z-index: 9;
  width: var(--cases-width);
  min-height: 60px;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  margin-inline: auto;
  padding: .5rem 1rem;
  background: #422466;
  border: 1px solid #422466;
  border-radius: 16px;
  box-shadow: 0 12px 35px #1d09331c;
}
.case-card {
  scroll-margin-top: calc(var(--primary-nav-bottom, 76px) + var(--project-nav-height, 48px) + 20px);
}
.project-nav a { font-size: .8rem; font-weight: 500; color: #fff; }
.project-nav a:is(:hover, :focus-visible) { color: #fff; background: #5d3a85; }
.project-nav { scroll-margin-top: calc(var(--primary-nav-bottom, 76px) + 8px); }
@media (max-width: 750px) {
  .project-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  .project-nav a { flex: none; white-space: nowrap; }
}

.projects-intro {
  padding: clamp(.7rem, 2vw, 1.5rem) 0 clamp(1.25rem, 3vw, 2.25rem);
  text-align: center;
}
.projects-intro h2 { text-wrap: balance; }
.projects-intro p {
  max-width: 66ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 550;
  text-wrap: balance;
}

.case-card[hidden] { display: none; }
.project-nav a[aria-current="location"] { background: #5d3a85; font-weight: 700; }
