/* Keep each photograph and its stage together; scroll/swipe shares one index. */
.treatment-timeline { --timeline-top: 72px; --timeline-index: 0; background: #fff; color: var(--wine); padding: 0; scroll-margin-top: 72px; }
/* No max-width here: .section-shell's gutter already centers content at 1312px; a cap on top of it squeezed wide screens. */
.treatment-timeline-sticky { padding-top: 40px; padding-bottom: 30px; }
/* The "01 / 04 · Scroll to explore" caption only applies while the timeline is pinned (phones). */
.treatment-timeline:not(.is-pinned) .timeline-caption { display: none; }
.treatment-timeline.is-pinned .treatment-timeline-sticky { position: sticky; top: var(--timeline-top); }
.treatment-timeline .section-heading { margin-bottom: 28px; }
.treatment-timeline .section-heading h2 { color: var(--wine); font-size: clamp(34px,3.6vw,50px); font-weight: 500; letter-spacing: -.02em; }
.treatment-timeline .section-heading p { margin-top: 10px; font-size: 17px; line-height: 1.5; color: #765b54; text-wrap: balance; }
.treatment-timeline .timeline-guide { display: none; }
.treatment-timeline .timeline-viewport { border: 0; border-radius: 16px; overflow: clip; }
.treatment-timeline .timeline-grid { border: 0; border-radius: 0; overflow: visible; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.treatment-timeline .timeline-step { position: relative; min-width: 0; padding: 0; display: flex; flex-direction: column; align-items: stretch; text-align: left; border: 1px solid #e5dcd5; border-radius: 16px; overflow: hidden; background: #f8f5f1; color: var(--wine); transition: background-color 300ms ease,border-color 300ms ease; }
.treatment-timeline .timeline-step + .timeline-step { border: 1px solid #e5dcd5; }
.treatment-timeline .timeline-step:active { transform: none; }
.treatment-timeline .timeline-step::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--wine); transform: scaleX(var(--stage-progress,0)); transform-origin: left; }
.treatment-timeline .timeline-step img { flex: none; width: 100%; height: clamp(180px,15vw,218px); margin: 0; border-radius: 0; object-fit: cover; object-position: center; opacity: 1; filter: saturate(.65); transition: filter 350ms ease; }
.treatment-timeline .stage-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px 26px; }
.treatment-timeline .stage-period { color: #80604f; font-size: 11px; line-height: 1.4; letter-spacing: .09em; text-transform: uppercase; font-weight: 500; }
.treatment-timeline .stage-name { min-height: 0; margin: 9px 0 0; color: var(--wine); font-size: clamp(24px,2vw,29px); line-height: 1.15; font-weight: 500; }
.treatment-timeline .stage-description { display: block; min-height: 0; margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: #765b54; visibility: visible; opacity: 1; }
.treatment-timeline .timeline-step.is-active { background: #fffaf4; border-color: #956e61; }
.treatment-timeline .timeline-step.is-active img { filter: none; opacity: 1; }
.treatment-timeline .timeline-step:focus-visible { outline-offset: -4px; }
.treatment-timeline .timeline-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; color: #806a60; font-size: 12px; }
.treatment-timeline .timeline-counter { letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.treatment-timeline .timeline-hint { display: none; }
.treatment-timeline.is-pinned .timeline-hint { display: inline; }
.treatment-timeline .timeline-swipe-hint { display: none; }
.treatment-timeline .timeline-note { font-size: 12px; line-height: 1.5; color: #837068; margin: 10px 0 0; }
.treatment-timeline:not(.is-pinned) .timeline-step img { filter: none; }
@media (max-width: 900px) {
  .treatment-timeline-sticky { padding: 24px var(--gutter); }
  .treatment-timeline .section-heading { margin-bottom: 18px; text-align: left; }
  .treatment-timeline .section-heading h2 { font-size: 34px; }
  .treatment-timeline .section-heading p { font-size: 15px; margin-top: 8px; text-wrap: pretty; }
  .treatment-timeline.is-pinned .timeline-guide { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 16px; }
  .treatment-timeline .timeline-guide button { background: none; border: 0; border-bottom: 2px solid #e5dcd5; padding: 0 0 8px; min-height: 44px; font-size: 11px; line-height: 1.3; color: #846f6a; text-align: left; }
  .treatment-timeline .timeline-guide button span { display: block; font-size: 10px; margin-bottom: 4px; letter-spacing: 1px; }
  .treatment-timeline .timeline-guide button[aria-pressed=true] { color: var(--wine); border-color: var(--wine); }
  .treatment-timeline .timeline-grid { grid-template-columns: 1fr; gap: 14px; }
  .treatment-timeline .timeline-step { display: grid; grid-template-columns: 52% 48%; min-height: 310px; }
  .treatment-timeline .timeline-step img { width: 100%; height: 100%; min-height: 310px; filter: none; }
  .treatment-timeline .stage-copy { align-self: center; padding: 26px; }
  .treatment-timeline .stage-name { font-size: 32px; }
  .treatment-timeline .stage-description { margin-top: 14px; font-size: 15px; }
  .treatment-timeline.is-pinned .timeline-grid { grid-template-columns: repeat(4,100%); transform: translate3d(calc(var(--timeline-index) * -1 * (100% + 14px)),0,0); transition: transform 360ms cubic-bezier(.22,.61,.36,1); }
  .treatment-timeline.is-pinned .timeline-step,.treatment-timeline.is-pinned .timeline-viewport { touch-action: pan-y pinch-zoom; }
  .treatment-timeline .timeline-swipe-hint { display: inline; }
  .treatment-timeline .timeline-caption { margin-top: 12px; font-size: 11px; }
  .treatment-timeline .timeline-note { margin-top: 10px; font-size: 11px; text-align: left; }
}
@media (max-width: 600px) {
  .treatment-timeline-sticky { padding-top: 22px; padding-bottom: 20px; }
  .treatment-timeline .section-heading h2 { font-size: 30px; }
  .treatment-timeline .timeline-step { display: flex; min-height: 0; }
  .treatment-timeline .timeline-step img { height: clamp(180px,52vw,260px); min-height: 0; }
  .treatment-timeline .stage-copy { width: 100%; padding: 18px 20px 22px; }
  .treatment-timeline .stage-name { font-size: 28px; margin-top: 6px; }
  .treatment-timeline .stage-description { margin-top: 9px; font-size: 14px; line-height: 1.45; }
  .treatment-timeline .timeline-caption { font-size: 10px; }
}
/* Keep the photo substantial on short phones by tightening chrome, not cropping
   the image into a strip. Very short screens use the JS normal-flow fallback. */
@media (max-height: 760px) {
  .treatment-timeline-sticky { padding-top: 18px; padding-bottom: 18px; }
  .treatment-timeline .section-heading { margin-bottom: 16px; }
  .treatment-timeline .section-heading h2 { font-size: 34px; }
  .treatment-timeline .section-heading p { font-size: 15px; margin-top: 6px; }
}
@media (max-width: 600px) and (max-height: 760px) {
  .treatment-timeline-sticky { padding-top: 14px; padding-bottom: 14px; }
  .treatment-timeline .section-heading { margin-bottom: 12px; }
  .treatment-timeline .section-heading h2 { font-size: 28px; }
  .treatment-timeline .section-heading p { font-size: 14px; }
  .treatment-timeline.is-pinned .timeline-guide { margin-bottom: 12px; }
  .treatment-timeline .timeline-guide button span { display: none; }
  .treatment-timeline .timeline-guide button { padding-bottom: 6px; }
  .treatment-timeline .timeline-step img { height: 180px; }
  .treatment-timeline .stage-copy { padding: 16px 18px 20px; }
  .treatment-timeline .stage-name { font-size: 26px; }
  .treatment-timeline .timeline-note { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .treatment-timeline *,.treatment-timeline *::after { transition: none !important; }
}
@media print {
  .treatment-timeline { height: auto !important; }
  .treatment-timeline.is-pinned .treatment-timeline-sticky { position: static; }
  .treatment-timeline .timeline-grid { display: block !important; transform: none !important; }
  .treatment-timeline .timeline-step { break-inside: avoid; }
}
