/* The page's feature stories in one style: text on one side (one step at a time), a picture on a drawn
   backdrop on the other, played by js/story.js. The widget block (widget.css, js/widget.js) and the
   Quick Sync block (lrq.css, js/shift.js) are built from these parts. */

/* which side the text is on, whatever the block's place on the page */
@media (min-width: 801px) {
  .feature-story.st { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  .feature-story.st .story-media { grid-column: 1; grid-row: 1; }
  .feature-story.st .story-copy { grid-column: 2; grid-row: 1; }
  .feature-story.st.is-text-left { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
  .feature-story.st.is-text-left .story-media { grid-column: 2; }
  .feature-story.st.is-text-left .story-copy { grid-column: 1; }
}

/* ---- the text: the headline (always one line), the step, the dashes, Play ---- */
.st-copy { container-type: inline-size; }
.story-copy .st-heading { margin-bottom: 24px; white-space: nowrap; line-height: 1.12; font-size: min(clamp(32px, 3.6vw, 48px), 10.4cqi); }
/* all steps share one grid cell, so the height never changes */
.story-copy .st-heading, .st-steps { display: grid; }
.st-title, .st-step { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateY(26px); }
.st-title.is-on, .st-step.is-on { visibility: visible; opacity: 1; transform: none; transition: transform 0.62s cubic-bezier(0.2, 0.7, 0.1, 1) 0.2s, opacity 0.4s ease 0.22s; }
.st-title.is-out, .st-step.is-out { transform: translateY(-22px); transition: transform 0.34s cubic-bezier(0.5, 0, 0.8, 0.4), opacity 0.26s ease, visibility 0s 0.34s; }
.st-step h3 { margin: 0 0 12px; font-size: clamp(22px, 6.85cqi, 28px); line-height: 1.38; font-weight: 600; letter-spacing: -0.018em; color: #17212e; text-wrap: balance; }
.st-step > p { margin: 0; max-width: 34ch; font-size: 18px; line-height: 1.5; color: #4a5766; text-wrap: pretty; }

/* the click in three quiet lines; each darkens when the picture gets there. The last one is the app's black message */
.st-do { list-style: none; margin: 2px 0 0; padding: 0; font-size: 18px; line-height: 26px; color: #a2adb9; }
.st-do li { margin: 0; padding: 0 0 8px; transition: color 0.5s ease; }
.st-do li.is-on { color: #354353; }
.st-do .st-synced { padding: 8px 0 0; }
.st-synced > span { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 8px 15px 8px 12px; border-radius: 6px;
  background: #eceff3; color: #a9b3be; font: 500 15.5px/20px -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; letter-spacing: -0.005em;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease; }
.st-synced b { font-weight: 400; font-size: 13px; opacity: 0.75; }
.st-synced.is-on > span { background: #0a0a0a; color: #fff; box-shadow: 0 0 0 1px #2a2a2a, 0 5px 16px #1b2a3d30; }

/* the action as a Mac key; it goes down with the click in the picture */
.st-key { display: inline-block; margin-right: 0.14em; padding: 0.34em 0.56em 0.38em; border: 1px solid #cdd5de; border-radius: 0.36em;
  background: linear-gradient(#fff, #f4f6f9); box-shadow: 0 2.5px 0 #c2cbd6, 0 4px 8px #1b2a3d14; color: #17212e;
  font: 600 0.8em/1 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -0.005em; vertical-align: 0.08em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s; }
.st-key.is-down { transform: translateY(2.5px); background: #e9eef5; box-shadow: 0 0 0 #c2cbd6, 0 1px 2px #1b2a3d14; transition-duration: 0.07s; }

.st-dashes { display: flex; align-items: center; gap: 8px; margin-top: 34px; }
.st-dashes button { display: flex; align-items: center; width: 44px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.st-dashes i { display: block; width: 100%; height: 4px; border-radius: 2px; background: #d5dce4; overflow: hidden; transition: background-color 0.2s; }
.st-dashes button:hover i { background: #bcc6d1; }
.st-dashes b { display: block; height: 100%; border-radius: 2px; background: #17212e; transform: scaleX(0); transform-origin: 0 50%; }
.st-dashes .is-pinned b { background: #086ed8; transform: none; }

/* the Play pill, the same as on the first screen (.hv-replay); it shows up only when a step is pinned and keeps its place */
.st-play { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 16px 9px 13px; border: 0; border-radius: 999px;
  background: rgba(23, 33, 46, 0.82); color: #fff; font-size: 14px; font-weight: 550; line-height: 1.6; cursor: pointer;
  transition: background-color 150ms ease, opacity 200ms ease; }
.st-play:hover { background: rgba(23, 33, 46, 0.94); }
.st-play svg { width: 14px; height: 14px; fill: currentColor; }
.st-play[hidden] { display: inline-flex; visibility: hidden; opacity: 0; }

/* ---- the picture, in a 1080 x 860 space through --u; every block has its own time of day ---- */
.st-scene { --sky: linear-gradient(#c98a52, #efc28a 45%, #fbe7c8 72%); --dune-1: #e7b67e; --dune-2: #d39555; --dune-3: #b9773e; --dune-4: #9c6134; --shade: 60, 30, 8;
  position: relative; overflow: hidden; aspect-ratio: 1080 / 860; border-radius: 18px; container-type: inline-size;
  background: var(--sky); font-family: -apple-system, BlinkMacSystemFont, sans-serif; user-select: none; }
.st-scene.is-dusk { --sky: linear-gradient(#5b6096, #9a8fbb 45%, #dcbcc3 72%); --dune-1: #a99ac0; --dune-2: #837cab; --dune-3: #636293; --dune-4: #4a4c7a; --shade: 24, 20, 56; }
.st-scene > * { --u: calc(100cqw / 1080); }
.st-dunes { position: absolute; inset: 0; width: 100%; height: 100%; }
.is-dusk .st-dunes { transform: scaleX(-1); }
.st-dunes path:nth-child(1) { fill: var(--dune-1); }
.st-dunes path:nth-child(2) { fill: var(--dune-2); }
.st-dunes path:nth-child(3) { fill: var(--dune-3); }
.st-dunes path:nth-child(4) { fill: var(--dune-4); }

/* the panel: only its lower edge goes soft; rows and labels keep their full strength */
.st-scene { --fx: 110; --fy: 80; --fw: 850; --fh: 610; }
.st-frame, .st-sheet { position: absolute; left: calc(var(--fx) * var(--u)); top: calc(var(--fy) * var(--u)); width: calc(var(--fw) * var(--u)); height: calc(var(--fh) * var(--u));
  border-radius: calc(26 * var(--u)) calc(26 * var(--u)) 0 0; }
.st-frame { overflow: hidden; background: #4f4f4f; -webkit-mask: linear-gradient(#000 90.5%, transparent 100%); mask: linear-gradient(#000 90.5%, transparent 100%); }
.st-shadow { position: absolute; left: calc((var(--fx) + 15) * var(--u)); top: calc((var(--fy) + 30) * var(--u)); width: calc((var(--fw) - 30) * var(--u)); height: calc((var(--fh) - 50) * var(--u));
  border-radius: calc(40 * var(--u)); background: rgba(var(--shade), 0.4); filter: blur(calc(28 * var(--u))); }

/* Lightroom's panel inside it */
.st-frame .lrq { aspect-ratio: auto; height: 100%; background: none; border-radius: 0; }
.st-frame .lrq-thumb path { fill: #979797; stroke: #0b0b0b; stroke-width: 2.6; }

/* the Mac pointer; its tip is the point it stands on */
.st-pointer { position: absolute; left: 0; top: 0; z-index: 9; width: calc(60 * var(--u)); height: calc(60 * var(--u)); margin: calc(-6 * var(--u)) 0 0 calc(-13 * var(--u));
  opacity: 0; transition: transform 0.55s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.3s; }
.st-pointer svg { width: 100%; fill: #111; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; paint-order: stroke; filter: drop-shadow(0 2px 2px #0005);
  transition: scale 90ms ease; transform-origin: 20% 10%; }
.st-pointer.is-down svg { scale: 0.88; }

@media (max-width: 800px) {
  .st .story-media { order: -1; }
  .st-scene { border-radius: 14px; }
}
/* reduced motion: every step is a still picture of its result, until the visitor presses Play */
@media (prefers-reduced-motion: reduce) {
  .st:not(.is-chosen) *, .st:not(.is-chosen) *::before { transition: none !important; animation: none !important; }
}
