html { scroll-padding-top: 86px; }
a:focus-visible, button:focus-visible { outline: 3px solid #648344; outline-offset: 4px; }
.links a[data-case], .experiment-actions a[data-case] {
  background: transparent !important;
  color: #182b20 !important;
}
.links a[data-case]:hover, .experiment-actions a[data-case]:hover {
  background: #182b20 !important;
  color: #fff !important;
}

.case-open { overflow: hidden; }
.case-dialog {
  width: min(940px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid #c9d3ca;
  border-radius: 16px;
  background: #f7f7f3;
  color: #18231d;
  overscroll-behavior: contain;
}
.case-dialog::backdrop { background: #0c1a15d9; }
.case-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 12px clamp(22px, 5vw, 54px);
  border-bottom: 1px solid #d9ded6;
  background: #f7f7f3;
}
.case-dialog-bar form { margin: 0; }
.case-nav { padding-block: 24px; }
.case-main { min-height: 60vh; }
.case-inner { width: min(100%, 940px); margin-inline: auto; padding-inline: clamp(22px, 5vw, 54px); }
.case-hero { padding-block: clamp(26px, 6vw, 68px); background: #142b23; color: #f7f7f3; }
.case-hero .eyebrow { color: #c1d5a8; }
.case-hero h1, .case-hero h2 { margin: 12px 0 18px; font-size: clamp(38px, 7vw, 82px); line-height: 1; letter-spacing: -.06em; }
.case-hero p { margin: 0; max-width: 65ch; line-height: 1.6; }
.case-section { padding-block: 24px; }
.case-section h2, .case-section h3 { margin: 0 0 12px; font-size: clamp(22px, 4vw, 34px); letter-spacing: -.035em; }
.case-section p { margin: 0; line-height: 1.6; }
.case-proof, .case-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.case-proof > div, .case-features > div { border: 1px solid #d9ded6; border-radius: 10px; background: #fff; padding: 20px; }
.case-features strong { display: block; margin-bottom: 6px; }
.case-figure, .experiment-preview { margin: 0; }
.case-figure img, .experiment-preview img { display: block; width: 100%; height: auto; border-radius: 10px; }
.experiment-preview figcaption { margin-top: 8px; font-size: .8rem; }
.case-technology { padding-bottom: 25px; color: #43544a; }
.case-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: clamp(26px, 6vw, 50px); }
.case-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid #263c31;
  border-radius: 6px;
  background: #fff;
  color: #18231d;
  font: 700 .85rem 'DM Sans', sans-serif;
  text-decoration: none;
}
.case-button:hover { background: #e9efe7; }
.case-primary { background: #263c31; color: #fff; }
.case-primary:hover { background: #365346; }
@media (max-width: 650px) {
  html { scroll-padding-top: 76px; }
  .case-proof, .case-features { grid-template-columns: 1fr; }
  .footertop { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  html { scroll-padding-top: 104px; }
  .nav { height: auto; min-height: 90px; flex-wrap: wrap; row-gap: 2px; padding-block: 10px; }
  .navlinks { width: 100%; justify-content: space-between; }
  .navlinks a { display: grid; align-items: center; min-height: 32px; }
  .footer h2 { font-size: clamp(42px, 13vw, 58px); }
}
