/* Shared motion layer. All content stays visible without JavaScript. */
body {
  padding-bottom: 86px;
}
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: #ef613e;
  box-shadow: none;
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
  pointer-events: none;
}
.chapter-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px;
  border: 1px solid #6f8263;
  border-radius: 100px;
  background: #182419f2;
  color: #f2f1e9;
  box-shadow: 0 8px 30px #0003;
  backdrop-filter: blur(16px);
  max-width: calc(100% - 24px);
  font:
    13px/1.3 "DM Sans",
    sans-serif;
}
.chapter-step {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffc0a7;
  font: 20px/1 sans-serif;
  cursor: pointer;
}
.chapter-step:hover:not(:disabled) {
  background: #ffffff12;
}
.chapter-step:disabled {
  opacity: 0.3;
  cursor: default;
}
.chapter-dock a {
  color: inherit !important;
  text-decoration: none !important;
}
.chapter-current {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 14px;
  min-width: 210px;
  max-width: 340px;
}
.chapter-count {
  font-size: 10px;
  white-space: nowrap;
  color: #bfd4ae;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.chapter-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reading-percent {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #bfd4ae;
  padding: 0 12px 0 6px;
  min-width: 44px;
}
.chapter-dock :focus-visible {
  outline: 2px solid #d1f56b;
  outline-offset: 1px;
  border-radius: 24px;
}
.featured-image img,
.case-shot img {
  transform: translateY(var(--image-drift, 0px));
  transform-origin: center;
}
.featured-image,
.case-shot {
  overflow: hidden;
}
.track i,
.bar-track span {
  transform-origin: left;
}
.pointer-light {
  position: relative;
  isolation: isolate;
}
.pointer-light::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    #b3de7226,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 1;
}
.pointer-light:hover::after {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .button,
  .text-link {
    transition:
      transform 0.22s,
      background-color 0.22s,
      color 0.22s;
  }
  .button:hover {
    transform: translateY(-3px);
  }
  .button:active {
    transform: translateY(0);
  }
  .intro h1 em {
    background-image: linear-gradient(#d1f56b55, #d1f56b55);
    background-size: 0 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    animation: draw-accent 1.2s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  @keyframes draw-accent {
    to {
      background-size: 100% 2px;
    }
  }
}
@media (max-width: 600px) {
  .chapter-dock {
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 4px;
  }
  .chapter-current {
    min-width: 0;
    width: 190px;
    padding: 8px;
    gap: 9px;
  }
  .chapter-title {
    font-size: 12px;
  }
  .chapter-step {
    flex-basis: 36px;
    width: 36px;
    height: 40px;
  }
  .reading-percent {
    padding-inline: 4px 8px;
    min-width: 38px;
    font-size: 10px;
  }
  .chapter-count {
    font-size: 9px;
  }
}
@media (max-width: 360px) {
  .chapter-current {
    width: 165px;
  }
  .reading-percent {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .featured-image img,
  .case-shot img {
    transform: none !important;
  }
  .pointer-light::after {
    display: none;
  }
  .reading-progress {
    box-shadow: none;
  }
}
@media print {
  .chapter-dock,
  .reading-progress {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
  .featured-image img,
  .case-shot img {
    transform: none !important;
  }
}

.case-section > .eyebrow::after {
  content: "";
  display: block;
  height: 3px;
  max-width: 160px;
  margin-top: 18px;
  background: #577436;
  transform: scaleX(var(--section-progress, 0));
  transform-origin: left;
  opacity: 0.7;
}
.case-section.is-reading > .eyebrow {
  color: #355529;
}
@media (prefers-reduced-motion: reduce) {
  .case-section > .eyebrow::after {
    display: none;
  }
}
@media print {
  .case-section > .eyebrow::after {
    display: none;
  }
}
.motion-toggle {
  font-size: 14px;
  border-left: 1px solid #6f826355;
  border-radius: 0 24px 24px 0;
}
.motion-paused .pointer-light::after {
  display: none;
}
.motion-paused .featured-image img,
.motion-paused .case-shot img {
  transform: none !important;
}
.motion-paused .case-section > .eyebrow::after {
  display: none;
}
.motion-paused .intro h1 em {
  animation: none !important;
  background-size: 100% 2px;
}
.motion-paused .button,
.motion-paused .text-link {
  transition: none !important;
  transform: none !important;
}
html:has(.motion-paused) {
  scroll-behavior: auto !important;
}
