.case-opening {
  background: radial-gradient(ellipse at 72% 0%, #25345185, transparent 65%);
}
.case-opening .shell, .case-layout.shell { max-width: 73rem; }
.case-opening .shell { padding-block: clamp(1.1rem, 3vw, 2.8rem) clamp(1.45rem, 4vw, 3.1rem); }
.case-opening .case-back, .case-return, .case-enquiry-link, .case-secondary {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
  line-height: 1.4;
}
.case-credit { color: #a7cce9; margin: 1rem 0 .55rem; font-size: .98rem; }
main .case-opening h1:not(#hero-title) {
  max-width: 24ch;
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 5.8vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.case-service-shortcut {
  display: inline-block;
  max-width: 100%;
  min-height: 44px;
  padding-block: .45rem;
  line-height: 1.55;
  color: var(--accent);
  text-underline-offset: .22em;
}
.case-service-shortcut > span:first-child { display: block; color: var(--muted); font-size: .9rem; }
.case-service-shortcut { text-decoration: none; }
.case-service-shortcut:hover, .case-service-shortcut:focus-visible { text-decoration: underline; }
.case-layout { display: grid; align-items: start; gap: 1rem; padding-bottom: clamp(2.8rem, 7vw, 6rem); }
.case-story { min-width: 0; }
.case-guide {
  display: flex;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #53617a;
  border-radius: .55rem;
  background: #152134;
  margin-bottom: 1.15rem;
}
.case-guide a {
  display: grid;
  place-items: center;
  padding: .55rem clamp(.75rem, 3vw, 1.5rem);
  min-height: 44px;
  color: #d9eafa;
  text-decoration: none;
}
.case-guide a + a { border-left: 1px solid #46546b; }
.case-guide a:is(:hover, :focus-visible) { color: white; background: #22354c; }
.case-stage, .case-service {
  padding: clamp(1.05rem, 3vw, 2rem);
  border: 1px solid #35465f;
  border-radius: .8rem;
}
.case-stage + .case-stage { margin-top: clamp(.95rem, 2vw, 1.5rem); }
.case-stage h2, .case-service h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.13;
  letter-spacing: -.04em;
}
.case-stage :is(h2, h3, summary) { scroll-margin-top: 2rem; }
.case-stage p, .case-service p, .case-example dd {
  max-width: 64ch;
  margin: 0;
  color: #d6dfec;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.6;
}
.case-stage p + p { margin-top: .65rem; }
.case-problem { background: linear-gradient(115deg, #19273d, #141d2d); }
.case-work { background: #131c2bf0; }
.case-change { background: linear-gradient(110deg, #16303c, #132231); border-color: #406779; }
.case-change h2 { color: #a4e5ed; }
.case-change p { color: #eff7fd; }
.case-step { padding-top: .8rem; }
.case-step + .case-step { border-top: 1px solid #364359; margin-top: 1.15rem; padding-top: 1.15rem; }
.case-step h3 {
  margin: 0 0 .4rem;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.3;
  letter-spacing: -.025em;
}
.case-example { margin-top: 1.3rem; border-block: 1px solid #46546c; }
.case-example summary {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  min-height: 48px; padding-block: .65rem; color: var(--accent); cursor: pointer;
}
.case-example summary::-webkit-details-marker { display: none; }
.case-example dl { margin: 0; padding-bottom: .9rem; }
.case-example dl > div { margin: .85rem 0; }
.case-example dt { color: #f2f5fc; font-weight: 600; margin-bottom: .2rem; }
.case-example dd { font-size: 1rem; }
.case-image { margin: 1.2rem 0 0; }
.case-image img { display: block; width: 100%; height: auto; border-radius: .45rem; }
.case-image figcaption { margin-top: .55rem; color: var(--muted); font-size: .95rem; }
.case-service {
  background: linear-gradient(145deg, #252b48, #192235 85%);
  border-color: #525a82;
}
.case-service h2 { font-size: clamp(1.4rem, 2.7vw, 1.85rem); }
.case-service-link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 46px; margin-top: 1.1rem; padding: .65rem .9rem;
  background: #acddff; color: #0e2132; border-radius: .45rem;
  line-height: 1.35; font-weight: 600; text-decoration: none;
}
.case-service-link:is(:hover, :focus-visible) { background: #ceeaff; }
.case-service .text-link { display: flex; width: fit-content; font-size: 1rem; }
.case-enquiry-link { margin-top: .45rem; }
.case-return { justify-self: start; }
@media (min-width: 900px) {
  .case-layout { grid-template-columns: minmax(0, 1.85fr) minmax(16rem, 1fr); gap: 1.5rem clamp(2rem, 5vw, 4rem); }
  .case-return { grid-column: 1; }
}
@media (min-width: 900px) and (min-height: 700px) {
  .case-service { position: sticky; top: 1.5rem; }
}
