/* Seen, Believed, Measured: the transformation, drawn. Shared by the site (site.css) and the stay page (inline).
   Resting state is the "after". Script sets .is-before on a step below the fold, then lifts it when the step scrolls in. */
.svm { margin-top: 36px; }
.svm-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.svm-step { display: grid; gap: 12px; align-content: start; min-width: 0; }
.svm-step:nth-child(2) { --s: 1200ms; }
.svm-step:nth-child(3) { --s: 2300ms; }
.svm-panel { position: relative; background: var(--starlight); height: 360px; display: grid; place-items: center; padding: 52px 20px 20px; overflow: hidden; }
.svm-stamp { position: absolute; top: 16px; left: 18px; right: 18px; display: flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; }
.svm-stamp span { color: var(--ink-2); opacity: .55; transition: opacity .3s, color .3s; transition-delay: var(--s, 0ms); }
.svm-stamp i { flex: 1; height: 1px; background: var(--hair-2); font-style: normal; }
.svm-stamp .a { color: var(--ink); opacity: 1; font-weight: 700; }
.svm-step.is-before .svm-stamp .a { color: var(--ink-2); opacity: .55; font-weight: 400; }
.svm-step.is-before .svm-stamp .b { color: var(--ink); opacity: 1; font-weight: 700; }
.svm-step .label { color: var(--ink); }
.svm-step h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.svm-step .fig { max-width: 42ch; }

/* 01 Seen: one dot per person, out of every 100 who watched */
.svm-seen { display: grid; gap: 12px; justify-items: center; width: 100%; }
.svm-dots { width: min(100%, 236px); height: auto; display: block; overflow: visible; }
.svm-f { fill: none; stroke: var(--ink); stroke-width: 2; }
.svm-n { fill: var(--ink); transform-box: fill-box; transform-origin: center; transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .55s; transition-delay: calc(var(--s, 0ms) + var(--d, 0ms)); }
.svm-step.is-before .svm-n { opacity: .14; transform: scale(.42); }
.svm-key { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); }
.svm-key span { display: inline-flex; align-items: center; gap: 6px; }
.svm-key span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.svm-key span.ring::before { background: transparent; border: 1.5px solid var(--ink); width: 7px; height: 7px; }

/* 02 Believed: what guests say, against what the feed shows */
.svm-match { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-self: center; }
.svm-col { display: grid; gap: 8px; align-content: start; min-width: 0; }
/* keep each "guests say" box level with its "feed shows" partner, even when a label wraps */
@supports (grid-template-rows: subgrid) {
  .svm-match { grid-template-rows: repeat(4, auto); row-gap: 8px; }
  .svm-col { grid-row: span 4; grid-template-rows: subgrid; row-gap: 8px; }
  .svm-col > .fig { align-self: end; }
}
.svm-col > .fig { margin-bottom: 2px; }
.svm-chip { display: grid; font-size: 14.5px; line-height: 1.25; padding: 9px 10px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); min-height: 52px; align-items: center; transition: background-color .45s, color .45s, border-color .45s; transition-delay: calc(var(--s, 0ms) + var(--d, 0ms)); }
.svm-chip > span { grid-area: 1 / 1; transition: opacity .45s; transition-delay: calc(var(--s, 0ms) + var(--d, 0ms)); }
.svm-chip.feed { background: var(--ink); color: var(--paper); }
.svm-chip .b { opacity: 0; }
.svm-step.is-before .svm-chip.feed { background: var(--paper); color: var(--ink-2); border: 1px dashed var(--hair-2); }
.svm-step.is-before .svm-chip .b { opacity: 1; }
.svm-step.is-before .svm-chip .a { opacity: 0; }

/* 03 Measured: followers, to scale */
.svm-bars { width: 100%; display: grid; gap: 12px; align-self: center; }
.svm-row { display: grid; grid-template-columns: 50px minmax(0, 1fr) 62px; gap: 10px; align-items: center; }
.svm-track { height: 36px; }
.svm-bar { height: 100%; width: var(--w); background: var(--hair-2); }
.svm-bar.grow { background: var(--ink); transition: width 1.2s cubic-bezier(.2,.7,.2,1); transition-delay: var(--s, 0ms); }
.svm-step.is-before .svm-bar.grow { width: 55.4%; }
.svm-row b { font-family: var(--f-mono); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; }
.svm-lift { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--hair-2); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.svm-lift b { font-family: var(--f-mono); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.svm-lift span { font-size: 15px; }

/* the loop: arrows between steps, and a line from Measured back to Seen */
.svm-step { position: relative; }
.svm-step:not(:last-child)::after { content: ""; position: absolute; top: 175px; right: -19px; width: 10px; height: 10px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.svm-loop { --s: 3700ms; display: grid; gap: 18px; justify-items: center; margin-top: 14px; }
.svm-loop-line { position: relative; width: calc(200% / 3 + 19px); height: 46px; border: 2px solid var(--ink); border-top: 0; transition: clip-path 1.3s cubic-bezier(.45,0,.2,1); transition-delay: var(--s); clip-path: inset(-12px -12px -12px -12px); }
.svm-loop-line::before { content: ""; position: absolute; left: -8px; top: -2px; width: 12px; height: 12px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); transform: rotate(45deg); }
.svm-loop.is-before .svm-loop-line { clip-path: inset(-12px -12px -12px 100%); }
.svm-loop-text { display: grid; gap: 8px; justify-items: center; text-align: center; max-width: 60ch; transition: opacity .6s; transition-delay: calc(var(--s) + 600ms); }
.svm-loop.is-before .svm-loop-text { opacity: .35; }
.svm-loop-text h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.svm-loop-text .label { color: var(--ink); }
.svm-wave { fill: none; stroke: var(--ink); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.svm-step.again .svm-n { animation: svm-pulse .8s cubic-bezier(.3,0,.2,1) both; animation-delay: var(--d, 0ms); }
.svm-step.again .svm-wave { animation: svm-wave 1.6s cubic-bezier(.2,.6,.3,1) both; }
@keyframes svm-pulse { 0% { transform: scale(1); } 35% { transform: scale(.5); } 100% { transform: scale(1); } }
@keyframes svm-wave { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(5.2); opacity: 0; } }

.svm-replay { margin-top: 20px; font: 700 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--paper); color: var(--ink); border: 1px solid var(--hair-2); padding: 9px 12px; cursor: pointer; }
.svm-replay:hover { border-color: var(--ink); }
.svm-replay:focus-visible { outline: 2px solid var(--nebula); outline-offset: 3px; }
.svm.no-t *, .svm.no-t *::before { transition: none !important; }

@media (max-width: 900px) {
  .svm-steps { grid-template-columns: 1fr; gap: 40px; }
  .svm-step:nth-child(n) { --s: 0ms; }
  .svm-panel { height: auto; min-height: 330px; }
  .svm-step:not(:last-child)::after { top: auto; bottom: -27px; right: auto; left: 2px; transform: rotate(135deg); }
  .svm-loop { --s: 0ms; justify-items: start; margin-top: 30px; padding-top: 22px; border-top: 2px solid var(--ink); }
  .svm-loop-line { display: none; }
  .svm-loop-text { justify-items: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .svm *, .svm *::before { transition: none !important; animation: none !important; }
}
