.hero-line {
  display: block;
}
.motion-enhanced .hero-line {
  animation: line-arrive 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--step) * 140ms);
}
.motion-enhanced .hero-copy .intro,
.motion-enhanced .hero-copy .actions {
  animation: line-arrive 0.8s 0.45s both;
}
.motion-enhanced .editorial-image img {
  animation: line-arrive 1.15s ease-out both;
}
.motion-enhanced .hero-line em {
  display: inline-block;
  animation: heart-accent 1.5s ease 1.1s 1;
}
@keyframes line-arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes heart-accent {
  0%,
  35%,
  65%,
  100% {
    color: #b8c5b2;
  }
  20%,
  50% {
    color: #f2efe5;
  }
}
.motion-enhanced .motion-reveal {
  transition:
    opacity 0.75s ease,
    transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.motion-enhanced .motion-reveal:not(.visible) {
  opacity: 0;
  transform: translateY(24px);
}
.motion-enhanced .story-photo:not(.visible) {
  transform: translateX(-24px);
}
.motion-enhanced .story-copy:not(.visible) {
  transform: translateX(24px);
}
.cardiac-transition {
  width: 100%;
  height: 44px;
  margin: 0 0 25px;
  overflow: hidden;
}
.cardiac-transition svg {
  width: 100%;
  height: 100%;
}
.cardiac-transition path {
  fill: none;
  stroke: #8a9f93;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.cardiac-transition.motion-reveal {
  opacity: 1 !important;
  transform: none !important;
}
.cardiac-transition .cardiac-signal {
  display: none;
  stroke: #315b4e;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.direction-1 header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f7f4ed;
  transition:
    padding 0.3s ease,
    box-shadow 0.3s ease;
}
.direction-1.header-compact header {
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 3px 16px #203c4410;
}
.direction-1 header nav a:not(.nav-cta),
.line-link,
.text-button {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition:
    background-size 0.25s ease,
    color 0.25s ease;
}
.direction-1 header nav a:hover,
.direction-1 header nav a:focus-visible,
.line-link:hover,
.line-link:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  background-size: 100% 1px;
}
.button span {
  display: inline-block;
  transition: transform 0.25s;
}
.button:hover span,
.button:focus-visible span {
  transform: translate(4px, -2px);
}
.book-story {
  perspective: 900px;
}
.book-art img {
  transition:
    transform 0.6s ease,
    box-shadow 0.6s ease !important;
}
.book-story:hover .book-art img,
.book-story:focus-within .book-art img {
  transform: translateY(-8px) rotate(-2deg) rotateY(-7deg);
  box-shadow: 15px 25px 30px #203c4430;
}
.voice-progress {
  height: 2px;
  background: #ffffff25;
  margin: 18px 0 0;
  overflow: hidden;
}
.voice-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #bdcbbb;
  transform-origin: left;
  animation: voice-clock 6.5s linear both;
  animation-play-state: paused;
}
.patient-voices.review-running .voice-progress span {
  animation-play-state: running;
}
@keyframes voice-clock {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.voice-slide.changing {
  animation: review-arrive 0.65s ease both;
}
@keyframes review-arrive {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .motion-enhanced .motion-reveal:not(.visible) {
    transform: translateY(12px);
  }
  .cardiac-transition {
    height: 30px;
    margin-bottom: 18px;
  }
  .direction-1.header-compact header {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .book-story:hover .book-art img {
    transform: none;
  }
}
/* Keep the portrait attached to the full copy height at intermediate widths. */
@media (min-width: 601px) and (max-width: 1050px) {
  .direction-1 .editorial-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }
  .direction-1 .editorial-image {
    height: auto;
    min-height: 100%;
    align-self: stretch;
  }
  .direction-1 .editorial-image img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-position: 65% center;
  }
  .direction-1 .hero-copy {
    padding: 32px clamp(24px, 3.5vw, 40px);
  }
  .direction-1 .hero-copy h1 {
    font-size: clamp(44px, 6.5vw, 66px);
    line-height: 1.04;
    margin-bottom: 20px;
  }
  .direction-1 .hero-copy .intro {
    font-size: 16px;
    line-height: 1.55;
  }
  .direction-1 .hero-copy .actions {
    gap: 12px;
  }
  .direction-1 .photo-caption {
    font-size: clamp(22px, 3vw, 30px);
    right: 24px;
    bottom: 26px;
  }
}
@media (max-width: 600px) {
  .direction-1 header {
    padding: 14px 20px;
    gap: 14px;
  }
  .direction-1 header nav {
    width: 100%;
    gap: 8px 16px;
    justify-content: space-between;
    font-size: 12px;
  }
  .direction-1 header nav a {
    padding: 5px 0;
  }
  .direction-1 header .nav-cta {
    padding: 8px 10px;
    font-size: 12px;
  }
  .direction-1 .editorial-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .direction-1 .editorial-image {
    order: -1;
    height: clamp(280px, 80vw, 390px);
    min-height: 0;
  }
  .direction-1 .editorial-image img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-position: 65% 35%;
  }
  .direction-1 .photo-caption {
    right: 20px;
    bottom: 18px;
    font-size: 23px;
    line-height: 1.05;
    max-width: 170px;
  }
  .direction-1 .hero-copy {
    padding: 28px 24px 26px;
  }
  .direction-1 .hero-copy .eyebrow {
    margin-bottom: 16px;
    max-width: 300px;
  }
  .direction-1 .hero-copy h1 {
    font-size: clamp(43px, 11vw, 62px);
    line-height: 1.02;
    margin-bottom: 20px;
  }
  .direction-1 .hero-copy .intro {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 20px;
    max-width: 440px;
  }
  .direction-1 .hero-copy .actions {
    gap: 10px 20px;
  }
  .direction-1 .hero-copy .button {
    padding: 13px 18px;
  }
  .direction-1 .hero-copy .micro {
    margin-top: 20px;
  }
  .direction-1 .credentials {
    font-size: 11px;
    line-height: 1.5;
    padding: 15px 24px;
    gap: 8px 18px;
  }
}
/* The single connected path is deformed by editorial.js every two seconds. */
@media (prefers-reduced-motion: reduce) {
  .direction-1 *,
  .direction-1 *::before,
  .direction-1 *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .motion-reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .cardiac-transition path {
    stroke-dashoffset: 0 !important;
  }
  .voice-progress {
    display: none;
  }
  .book-story .book-art img {
    transform: none !important;
  }
}
/* The heartbeat line is decoration: not a control, not in the tab order. */
.cardiac-transition {
  display: block;
}
/* Sections fade in once; anything that receives keyboard focus is shown at once. */
.motion-enhanced .motion-reveal:focus-visible,
.motion-enhanced .motion-reveal:focus-within {
  opacity: 1;
  transform: none;
}
/* Hero caption sits on the wall beside her, clear of the figure, on a quiet backing so it stays readable. */
.direction-1 .photo-caption {
  top: 32px;
  left: 35px;
  right: auto;
  bottom: auto;
  text-align: left;
  line-height: 1.15;
  background: #f7f4edd9;
  padding: 10px 14px 11px;
}
@media (min-width: 601px) and (max-width: 1050px) {
  .direction-1 .photo-caption {
    top: 24px;
    left: 24px;
    right: auto;
    bottom: auto;
  }
}
@media (max-width: 600px) {
  .direction-1 .photo-caption {
    top: 16px;
    left: 16px;
    right: auto;
    bottom: auto;
    max-width: none;
    font-size: 20px;
    line-height: 1.15;
  }
}
