/* Separate testimonial preview; no original styles or published files changed. */
.testimonials-preview { scroll-margin-top: 0; position: relative; display: grid; grid-template-columns: 1fr 2fr; gap: 10%; align-items: start; padding-top: 64px; border-top: 1px solid var(--rule); }
.testimonials-preview::before { content: ""; position: absolute; left: 0; right: 0; top: var(--testimonial-divider-y, 273px); border-top: 1px solid var(--rule); pointer-events: none; z-index: 0; }
.testimonials-intro { position: relative; z-index: 1; padding-top: 60px; }
.testimonials-intro h2 { margin-bottom: 24px; }
.testimonials-layout-note { max-width: 27ch; font-size: 13px; line-height: 1.7; color: var(--muted); }
/* Match the desktop heading offset: 60px intro padding + 16.5px eyebrow + 26px gap. */
.testimonial-carousel { position: relative; z-index: 1; width: min(100%, 420px); min-width: 0; margin-top: 102.5px; }
.testimonial-window { position: relative; aspect-ratio: 1; background: var(--preview-stone, var(--stone)); border: 2px solid var(--rule); }
.testimonial-slide { min-height: 100%; padding: 32px 56px 44px; display: flex; flex-direction: column; align-items: flex-start; }
.testimonial-slide[hidden] { display: none; }
.testimonial-preview-tag { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.testimonial-placeholder { margin-top: 28px; font-family: var(--serif); font-size: clamp(23px, 2.3vw, 30px); line-height: 1.3; max-width: 20ch; }
.testimonial-attribution { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.testimonial-controls { position: absolute; inset: 0; pointer-events: none; }
.testimonial-control { --signature-ink: #776b46; position: absolute; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--wood); font: inherit; font-size: 25px; cursor: pointer; pointer-events: auto; }
.testimonial-control[data-review-previous] { left: 6px; }
.testimonial-control[data-review-next] { right: 6px; }
.testimonial-control:is(:hover, :focus-visible) { --signature-ink: var(--wood); background: transparent; }
.testimonial-control:disabled { opacity: .45; cursor: default; }
.testimonial-count { position: absolute; inset: auto 0 13px; text-align: center; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.testimonial-write { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 44px; margin-top: 12px; padding: 8px; border: 0; background: transparent; color: var(--wood); font: inherit; font-size: 14px; cursor: pointer; }
.testimonial-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.review-dialog { width: min(560px, calc(100% - 32px)); max-height: 90vh; margin: auto; padding: 42px 40px; border: 0; color: var(--ink); background: var(--preview-paper, var(--paper)); box-shadow: 0 18px 64px rgb(48 32 25 / .16); }
.review-dialog::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--rule); pointer-events: none; }
.review-dialog-form { position: relative; }

.review-dialog::backdrop { background: rgb(48 32 25 / .28); }
.review-dialog-heading { position: relative; display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; padding-bottom: 22px; margin-bottom: 6px; }
.review-dialog-heading h2 { font-size: 40px; }
.review-dialog-close { flex: 0 0 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--wood); font: inherit; font-size: 28px; cursor: pointer; }
.review-intro { margin: 18px 0 24px; font-size: 14px; }
.review-dialog-form label { display: block; margin-top: 20px; color: var(--ink); font-size: 13px; }
.review-dialog-form input, .review-dialog-form textarea { width: 100%; max-width: 100%; min-height: 44px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--field-rule); border-radius: 0; background: transparent; color: var(--ink); font: inherit; }
.review-dialog-form textarea { resize: vertical; max-height: 35vh; }
.review-preview-notice { margin: 22px 0 14px; color: var(--muted); font-size: 12px; }
/* Match the existing Choose file control; this preview only simulates Send. */
.review-send { display: block; margin-left: auto; margin-top: 28px; min-height: 44px; padding: 8px 15px; border: 1px solid var(--field-rule); background: var(--preview-paper, var(--paper)); color: var(--ink); font: inherit; font-size: 13px; line-height: 1.5; cursor: pointer; }
@media (max-width: 760px) {
  .testimonials-preview { display: block; margin-top: var(--section-gap); padding-top: 40px; }
  .testimonials-intro { position: relative; padding: 0; margin-bottom: 28px; }
  .testimonials-intro h2 { margin: 0; }
  .testimonials-intro .eyebrow, .testimonials-layout-note { display: none; }
  .testimonial-carousel { margin-top: 0; margin-inline: auto; }
  .testimonial-slide { padding: 24px 48px 42px; }
  .testimonial-placeholder { margin-top: 24px; font-size: 23px; }
  .testimonial-attribution { padding-top: 20px; }
  .testimonial-control[data-review-previous] { left: 3px; }
  .testimonial-control[data-review-next] { right: 3px; }
  .review-dialog { padding: 30px 26px; }
  .review-dialog-heading h2 { font-size: 32px; }
}
@media (max-width: 360px) {
  .testimonial-slide { padding: 20px 48px 40px; }
  .testimonial-preview-tag { font-size: 9px; }
  .testimonial-placeholder { font-size: 20px; }
  .testimonial-attribution { font-size: 11px; padding-top: 16px; }
}

/* Reuse the approved quote-action chevron path and the shared signature stroke rules. */
.testimonial-chevron { display: block; width: 18px; height: 27px; overflow: visible; }
.testimonial-chevron-left { transform: scaleX(-1); }
.testimonial-write { --signature-ink: #776b46; }
.testimonial-write .testimonial-chevron { width: 12px; height: 20px; }
.testimonial-write:is(:hover, :focus-visible) { --signature-ink: var(--wood); }

/* Keep numbering visible; the divider extends into the phone gutters. */
@media (max-width: 760px) {
  .testimonials-intro .eyebrow { display: block; margin-bottom: 16px; }
  .testimonials-preview::before { left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); }
}

/* Local-only thank-you study; no request, persistence, or publication is performed. */
.review-dialog-form[hidden], .review-thanks[hidden] { display: none; }
.review-thanks { padding: 12px 0 24px; text-align: center; }
.review-heart { display: block; width: min(180px, 100%); height: auto; margin: 0 auto 16px; overflow: visible; }
.review-heart-line { fill: none; stroke: var(--wood); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.review-demo-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
/* Reuse the same pen-follow keyframes as Start the conversation. */
.review-thanks.is-drawing .review-heart-line { animation: pen-follow 1200ms linear both; }
.review-replay { display: block; margin: 12px auto 0; min-height: 44px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .review-thanks.is-drawing .review-heart-line { animation: none; stroke-dashoffset: 0; } }

/* Approved exact source silhouette: mirror and shorten only; mask controls reveal, never contour. */
.review-heart-selected { width: min(220px, 100%); }
.review-heart-mask-line { stroke: white; stroke-width: 64; stroke-linecap: butt; }
.review-thanks.is-drawing .review-heart-mask-line { animation: review-heart-draw-loop 2600ms linear infinite; }
.review-heart-finish { opacity: 0; }
.review-thanks.is-drawing .review-heart-finish { animation: review-heart-complete-loop 2600ms linear infinite; }
@media (prefers-reduced-motion: reduce) { .review-thanks.is-drawing .review-heart-finish { animation: none; opacity: 1; } }

/* Suppress the isolated first pixels, then fade into the same continuous stroke. */
.review-thanks.is-drawing .review-heart-selected { animation: review-heart-arrival 2600ms linear infinite; }
/* Same 1.2s drawing, then hold, fade out and restart; closing removes is-drawing. */
@keyframes review-heart-draw-loop { 0% { stroke-dashoffset: 1; } 46.153846%, 100% { stroke-dashoffset: 0; } }
@keyframes review-heart-complete-loop { 0%, 46.1538% { opacity: 0; } 46.153846%, 100% { opacity: 1; } }
@keyframes review-heart-arrival { 0%, 2.76923% { opacity: 0; } 5.53846%, 84.61538% { opacity: 1; } 92.30769%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .review-thanks.is-drawing .review-heart-selected { animation: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .review-thanks.is-drawing .review-heart-mask-line { animation: none; stroke-dashoffset: 0; }
  .review-thanks.is-drawing .review-heart-finish, .review-thanks.is-drawing .review-heart-selected { animation: none; opacity: 1; }
}

/* Preserve the original contact receipt sentence above the selected heart. */
.review-contact-receipt { margin: 0 0 20px; text-align: left; color: var(--ink); font-size: 16px; line-height: 1.7; }
.review-contact-receipt[hidden] { display: none; }


/* Marc selected the original mirrored, shorter-tip heart on October 16. */
.review-heart-original {width:min(220px,100%);overflow:visible}
.original-heart-line {fill:none;stroke:#776B46;stroke-width:6.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:0}
.review-thanks.is-drawing .original-heart-line {animation:original-heart-draw 2.6s linear infinite}
@keyframes original-heart-draw {0%{stroke-dashoffset:1;opacity:0}2%{opacity:1}46.153846%,84.6%{stroke-dashoffset:0;opacity:1}94%,100%{stroke-dashoffset:0;opacity:0}}
@media(prefers-reduced-motion:reduce){.review-thanks.is-drawing .original-heart-line{animation:none;stroke-dashoffset:0;opacity:1}}
