/* ---------------------------------------------------------------------------
   The landing page's demo (Components::MarketingShowcase): four scenes played
   on a phone drawn in CSS — no images, no video.

   How it plays: showcase_controller.js gives the scene that's on [data-active]
   (shown) and [data-play] (animating). Every timeline below hangs off
   [data-play], and every element's resting style is its LAST frame, with each
   animation filling `both` from its first. So a scene that isn't playing
   shows how it ends, the same frame reduced motion and no-JavaScript visitors
   get, and starting one is just adding the attribute. What moves is
   transform and opacity, which the browser composites without laying out
   the page again — all but the typed search word, which widens a letter at a
   time.

   The tab meters are the clock: the active one fills over --sc-duration and
   its animationend moves the controller to the next scene. [data-paused] stops
   every animation at once, the clock with them.

   The screen is laid out in px on purpose: the scenes move things to fixed
   spots (a receipt shrinking into the chat, a search result sliding up), so
   the screen can't reflow under them. Small phones get the whole thing
   zoomed instead.
--------------------------------------------------------------------------- */

.showcase {
  --sc-bezel: #111827;
  --sc-sent: #2563eb;
  --sc-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

:root.dark .showcase {
  --sc-bezel: #333333;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) .showcase {
    --sc-bezel: #333333;
  }
}

.showcase [data-scene="keep"] { --sc-duration: 8s; }
.showcase [data-scene="ask"] { --sc-duration: 9s; }
.showcase [data-scene="talk"] { --sc-duration: 9s; }
.showcase [data-scene="share"] { --sc-duration: 10s; }

.showcase[data-paused] *,
.showcase[data-paused] *::before,
.showcase[data-paused] *::after,
.showcase [data-play]:not([data-active]) *,
.showcase [data-play]:not([data-active]) *::before,
.showcase [data-play]:not([data-active]) *::after {
  animation-play-state: paused !important;
}

/* --- Tabs, captions, pause ------------------------------------------------ */

.sc-tab {
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s ease;

  &[data-active] { color: var(--content); }
  &:hover { color: var(--content); }
  &:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
}

.sc-meter {
  display: block;
  height: 3px;
  border-radius: 9999px;
  background: var(--surface-muted);
  overflow: hidden;

  > span {
    display: block;
    height: 100%;
    background: var(--content);
    transform: scaleX(0);
    transform-origin: left;
  }
}

.sc-tab[data-done] .sc-meter > span { transform: none; }
.sc-tab[data-active][data-play] .sc-meter > span { animation: sc-meter var(--sc-duration) linear both; }

.sc-caption {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;

  &[data-active] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.4s ease 0.15s, transform 0.4s var(--sc-ease-out) 0.15s;
  }
}

.sc-toggle-play { display: none; }
.showcase[data-user-paused] .sc-toggle-pause { display: none; }
.showcase[data-user-paused] .sc-toggle-play { display: inline-flex; }

/* --- The phone ------------------------------------------------------------ */

.sc-phone {
  position: relative;
  width: 272px;
  height: 552px;
  padding: 8px;
  border-radius: 46px;
  background: var(--sc-bezel);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.35);
}

@media (max-width: 359px) {
  .sc-phone { zoom: 0.88; }
}

.sc-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  background: var(--canvas);
  color: var(--content);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  isolation: isolate;

  &::before {
    content: "";
    position: absolute;
    z-index: 20;
    top: 10px;
    left: 50%;
    width: 78px;
    height: 22px;
    margin-left: -39px;
    border-radius: 9999px;
    background: var(--sc-bezel);
  }
}

.sc-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;

  &[data-active] {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease;
  }
}

.sc-icon { width: 16px; height: 16px; flex: none; }
.sc-muted { color: var(--muted); }

.sc-app-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 42px 16px 10px;
  flex: none;
}

.sc-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 14px;
  min-height: 0;
}

.sc-bubble {
  max-width: 82%;
  padding: 7px 11px;
  border-radius: 16px;
}

.sc-mine {
  align-self: flex-end;
  background: var(--surface);
  border-bottom-right-radius: 5px;
}

.sc-sent {
  align-self: flex-end;
  background: var(--sc-sent);
  color: #ffffff;
  border-bottom-right-radius: 5px;
}

.sc-theirs {
  background: var(--surface);
  border-bottom-left-radius: 5px;
}

.sc-slot {
  display: grid;
  width: 100%;

  > * { grid-area: 1 / 1; justify-self: start; align-self: start; }
}

.sc-typing {
  display: inline-flex;
  gap: 4px;
  padding: 9px 2px;
  opacity: 0;

  &.sc-theirs { padding: 11px 12px; }

  > span {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: var(--subtle);
  }
}

.sc-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px 16px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--subtle);
  flex: none;
}

.sc-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtle);
}

/* --- Scene 1, keep (8s): the receipt is photographed, sent to Claude, and
       comes back a record. ------------------------------------------------- */

.sc-viewfinder {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: #0c0c0c;
  opacity: 0;
}

.sc-corners {
  position: absolute;
  inset: 148px 30px 156px;
  background:
    linear-gradient(#fff 0 0) top left / 22px 2px,
    linear-gradient(#fff 0 0) top left / 2px 22px,
    linear-gradient(#fff 0 0) top right / 22px 2px,
    linear-gradient(#fff 0 0) top right / 2px 22px,
    linear-gradient(#fff 0 0) bottom left / 22px 2px,
    linear-gradient(#fff 0 0) bottom left / 2px 22px,
    linear-gradient(#fff 0 0) bottom right / 22px 2px,
    linear-gradient(#fff 0 0) bottom right / 2px 22px;
  background-repeat: no-repeat;
  opacity: 0.7;
}

.sc-shutter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 0 4px #0c0c0c, 0 0 0 6px #ffffff;
}

.sc-flash {
  position: absolute;
  z-index: 4;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}

.sc-photo {
  position: relative;
  z-index: 3;
  align-self: flex-end;
  width: 67px;
  height: 75px;
  flex: none;
}

.sc-receipt {
  position: absolute;
  top: 0;
  right: 0;
  width: 168px;
  height: 186px;
  padding: 14px 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #fbfaf5;
  color: #262626;
  font: 10px/15px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 6px 20px -6px rgb(0 0 0 / 0.45);
  transform: scale(0.4);
  transform-origin: top right;
}

.sc-receipt-store {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  line-height: 18px;
}

.sc-receipt-meta {
  margin-bottom: 6px;
  text-align: center;
  color: #737373;
}

.sc-receipt-items li,
.sc-receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.sc-receipt-total {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #a3a3a3;
  font-weight: 700;
}

.sc-scan {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: #22c55e;
  box-shadow: 0 0 12px 3px rgb(34 197 94 / 0.6);
  opacity: 0;
}

.sc-card {
  width: 100%;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
}

.sc-card-title {
  display: flex;
  justify-content: space-between;
  margin: 2px 0 6px;
  font-weight: 600;
}

.sc-card-rows li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  font-size: 12px;
}

.sc-card-rows .sc-card-total {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 2px solid var(--canvas);
  font-weight: 600;
}

.sc-keep[data-play] {
  .sc-viewfinder { animation: sc-out 0.4s ease 2.3s both; }
  .sc-corners { animation: sc-focus 1.4s ease-in-out both; }
  .sc-shutter { animation: sc-press 0.3s ease 1.65s both; }
  .sc-scan { animation: sc-scan 1.1s ease-in-out 0.45s both; }
  .sc-flash { animation: sc-flash 0.4s ease-out 1.85s both; }
  .sc-receipt { animation: sc-shrink 0.7s var(--sc-ease-out) 2.25s both; }
  .sc-claude-bar,
  .sc-composer { animation: sc-in 0.4s ease 2.6s both; }
  .sc-k1 { animation: sc-in 0.35s var(--sc-ease-out) 3.1s both; }
  .sc-k2 { animation: sc-blip 1s linear 3.55s both; }
  .sc-k2 > span { animation: sc-dot 0.9s ease-in-out infinite; }
  .sc-k3 { animation: sc-in 0.35s var(--sc-ease-out) 4.55s both; }
  .sc-k4 { animation: sc-in 0.45s var(--sc-ease-out) 4.85s both; }
  .sc-card-rows li { animation: sc-in 0.3s var(--sc-ease-out) both; }
  .sc-card-rows li:nth-child(1) { animation-delay: 5.1s; }
  .sc-card-rows li:nth-child(2) { animation-delay: 5.22s; }
  .sc-card-rows li:nth-child(3) { animation-delay: 5.34s; }
  .sc-card-rows li:nth-child(4) { animation-delay: 5.46s; }
  .sc-card-rows li:nth-child(5) { animation-delay: 5.6s; }
}

/* --- Scene 2, ask (9s): a question about everything that was kept. -------- */

.sc-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 6px;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
}

.sc-tool-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.sc-spinner {
  position: absolute;
  inset: 1px;
  border: 2px solid var(--surface-muted);
  border-top-color: var(--muted);
  border-radius: 9999px;
  opacity: 0;
}

.sc-check {
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  color: #16a34a;
}

.sc-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-top: -2px;
}

.sc-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  width: 16px;
  height: 100%;

  > span:first-child {
    width: 100%;
    border-radius: 3px 3px 1px 1px;
    background: var(--accent);
    opacity: 0.85;
    transform-origin: bottom;
  }

  &:nth-child(1) > span:first-child { height: 25px; }
  &:nth-child(2) > span:first-child { height: 37px; }
  &:nth-child(3) > span:first-child { height: 24px; }
  &:nth-child(4) > span:first-child { height: 33px; }
  &:nth-child(5) > span:first-child { height: 48px; }
  &:nth-child(6) > span:first-child { height: 30px; }
  &:nth-child(7) > span:first-child { height: 34px; }
  &:nth-child(8) > span:first-child { height: 27px; }
  &:nth-child(9) > span:first-child { height: 44px; }
}

.sc-bar-label {
  font-size: 9px;
  line-height: 1;
  color: var(--subtle);
}

.sc-ask[data-play] {
  .sc-a1 { animation: sc-in 0.35s var(--sc-ease-out) 0.3s both; }
  .sc-a2 { animation: sc-in 0.3s var(--sc-ease-out) 0.9s both; }
  .sc-spinner { animation: sc-blip 1.1s linear 0.9s both, sc-spin 0.7s linear infinite; }
  .sc-check { animation: sc-pop 0.3s var(--sc-ease-out) 2s both; }
  .sc-a3 { animation: sc-in 0.4s var(--sc-ease-out) 2.2s both; }
  .sc-a4 { animation: sc-in 0.2s ease 2.5s both; }
  .sc-bar > span:first-child { animation: sc-grow 0.5s var(--sc-ease-out) both; }
  .sc-bar:nth-child(1) > span:first-child { animation-delay: 2.55s; }
  .sc-bar:nth-child(2) > span:first-child { animation-delay: 2.62s; }
  .sc-bar:nth-child(3) > span:first-child { animation-delay: 2.69s; }
  .sc-bar:nth-child(4) > span:first-child { animation-delay: 2.76s; }
  .sc-bar:nth-child(5) > span:first-child { animation-delay: 2.83s; }
  .sc-bar:nth-child(6) > span:first-child { animation-delay: 2.9s; }
  .sc-bar:nth-child(7) > span:first-child { animation-delay: 2.97s; }
  .sc-bar:nth-child(8) > span:first-child { animation-delay: 3.04s; }
  .sc-bar:nth-child(9) > span:first-child { animation-delay: 3.11s; }
  .sc-a5 { animation: sc-in 0.35s var(--sc-ease-out) 4.7s both; }
  .sc-a6 { animation: sc-blip 1s linear 5.2s both; }
  .sc-a6 > span { animation: sc-dot 0.9s ease-in-out infinite; }
  .sc-a7 { animation: sc-in 0.35s var(--sc-ease-out) 6.2s both; }
}

/* --- Scene 3, talk (9s): the same out loud, in the car and on a walk. ----- */

.sc-voice {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 22px;
}

.sc-context {
  display: grid;
  justify-items: center;

  > * { grid-area: 1 / 1; }
}

.sc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 10px;
  border-radius: 9999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.sc-t1 { opacity: 0; }

.sc-orb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 112px;
  height: 112px;
  margin: 40px 0 34px;
  border-radius: 9999px;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--accent) 55%, white), var(--accent) 70%);
  box-shadow: 0 12px 40px -8px color-mix(in oklab, var(--accent) 60%, transparent);
}

.sc-wave {
  width: 6px;
  height: 42px;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.9);
  transform: scaleY(0.35);
}

.sc-transcript {
  display: grid;
  width: 100%;
  text-align: center;

  > * { grid-area: 1 / 1; }
}

.sc-said {
  color: var(--muted);
  font-size: 13px;
}

.sc-heard {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.sc-t3 { opacity: 0; }

.sc-voice-controls {
  display: flex;
  gap: 40px;
  margin-top: auto;

  > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background: var(--surface);
    color: var(--muted);
  }

  .sc-icon { width: 20px; height: 20px; }
}

.sc-talk[data-play] {
  .sc-t1 { animation: sc-blip 4.4s linear 0.1s both; }
  .sc-t2 { animation: sc-in 0.4s var(--sc-ease-out) 4.7s both; }
  .sc-orb { animation: sc-breathe 2.4s ease-in-out infinite; }
  .sc-wave { animation: sc-wave 0.8s ease-in-out infinite alternate; }
  .sc-wave:nth-child(2) { animation-delay: -0.3s; }
  .sc-wave:nth-child(3) { animation-delay: -0.55s; }
  .sc-wave:nth-child(4) { animation-delay: -0.15s; }
  .sc-wave:nth-child(5) { animation-delay: -0.45s; }
  .sc-t3 { animation: sc-blip 4.2s linear 0.3s both; }
  .sc-t3 .sc-said { animation: sc-in 0.4s var(--sc-ease-out) 0.6s both; }
  .sc-t3 .sc-heard { animation: sc-in 0.4s var(--sc-ease-out) 2.1s both; }
  .sc-t4 { animation: sc-in 0.01s linear 4.75s both; }
  .sc-t4 .sc-said { animation: sc-in 0.4s var(--sc-ease-out) 5s both; }
  .sc-t4 .sc-heard { animation: sc-in 0.4s var(--sc-ease-out) 6.6s both; }
}

/* --- Scene 4, share (10s): someone else finds it and sends it in a chat. -- */

.sc-app,
.sc-chat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}

.sc-app {
  justify-content: flex-start;
  opacity: 0;
  transform: translateX(-30%);

  .sc-app-bar { justify-content: space-between; }
}

.sc-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9999px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 11px;
  font-weight: 600;
}

.sc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 14px 10px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--subtle);
}

.sc-typed {
  display: flex;
  color: var(--content);

  > span {
    display: inline-block;
    max-width: 1em;
    overflow: hidden;
  }
}

.sc-caret {
  width: 1.5px;
  height: 16px;
  margin-left: -7px;
  background: var(--accent);
  opacity: 0;
}

.sc-rows {
  padding: 0 14px;

  li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 48px;
    margin-bottom: 6px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--surface);
    font-size: 12.5px;
    line-height: 1.3;
  }

  .sc-muted { font-size: 11.5px; }
}

.sc-other { opacity: 0; }
.sc-match { transform: translateY(-54px); }

/* A finger's tap: no backwards fill (`forwards`, not `both`), so it isn't
   sitting there as a dot before it happens. */
.sc-tap {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: var(--content);
  opacity: 0;
  pointer-events: none;
}

.sc-s1 { top: 120px; left: 150px; }
.sc-s2 { bottom: 22px; left: 50%; margin-left: -22px; }

.sc-scrim {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.25);
}

.sc-sheet {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 26px;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: 0 -10px 30px -10px rgb(0 0 0 / 0.25);
}

.sc-url {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--canvas);
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-copy {
  display: grid;
  justify-items: center;
  padding: 8px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;

  > * { grid-area: 1 / 1; }
}

.sc-copy-idle { opacity: 0; }

.sc-chat-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 42px 16px 10px;
  background: var(--surface);
  flex: none;
}

.sc-chat .sc-thread { padding-top: 14px; }

.sc-preview {
  display: flex;
  flex-direction: column;
  margin: -3px -7px 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.16);
  font-size: 12px;
  line-height: 1.35;
}

.sc-preview-host {
  font-size: 10.5px;
  opacity: 0.8;
}

.sc-share[data-play] {
  .sc-app { animation: sc-away 0.5s cubic-bezier(0.4, 0, 0.2, 1) 5s both; }
  .sc-typed > span { animation: sc-char 0.01s step-end calc(0.6s + var(--i) * 0.11s) both; }
  .sc-caret { animation: sc-caret 1s step-end 4 both; }
  .sc-other { animation: sc-out 0.3s ease 1.75s both; }
  .sc-match { animation: sc-lift 0.45s var(--sc-ease-out) 1.85s both; }
  .sc-s1 { animation: sc-tap 0.5s ease-out 2.5s forwards; }
  .sc-scrim { animation: sc-in-plain 0.45s ease 2.8s both; }
  .sc-sheet { animation: sc-sheet 0.45s var(--sc-ease-out) 2.8s both; }
  .sc-s2 { animation: sc-tap 0.5s ease-out 3.75s forwards; }
  .sc-copy-idle { animation: sc-out 0.2s ease 3.95s both; }
  .sc-copy-done { animation: sc-in 0.25s var(--sc-ease-out) 3.95s both; }
  .sc-chat { animation: sc-enter 0.5s cubic-bezier(0.4, 0, 0.2, 1) 5s both; }
  .sc-s3 { animation: sc-in 0.35s var(--sc-ease-out) 5.7s both; }
  .sc-s4 { animation: sc-blip 1s linear 6.8s both; }
  .sc-s4 > span { animation: sc-dot 0.9s ease-in-out infinite; }
  .sc-s5 { animation: sc-in 0.35s var(--sc-ease-out) 7.8s both; }
}

/* --- Keyframes ------------------------------------------------------------ */

@keyframes sc-meter { from { transform: scaleX(0); } to { transform: none; } }
@keyframes sc-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sc-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sc-in-plain { from { opacity: 0; } to { opacity: 1; } }
@keyframes sc-blip { 0% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sc-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes sc-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes sc-spin { to { rotate: 360deg; } }
@keyframes sc-focus { 0% { transform: scale(1.08); opacity: 0; } 40% { opacity: 0.7; } 100% { transform: none; opacity: 0.7; } }
@keyframes sc-press { 50% { transform: scale(0.88); } }
@keyframes sc-scan { 0% { transform: translateY(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateY(184px); opacity: 0; } }
@keyframes sc-flash { 0% { opacity: 0; } 25% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes sc-shrink { from { transform: translate(-30px, 94px) scale(1); } to { transform: scale(0.4); } }
@keyframes sc-grow { from { transform: scaleY(0); } to { transform: none; } }
@keyframes sc-breathe { 0%, 100% { transform: none; } 50% { transform: scale(1.05); } }
@keyframes sc-wave { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@keyframes sc-char { from { max-width: 0; } to { max-width: 1em; } }
@keyframes sc-caret { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes sc-lift { from { transform: none; } to { transform: translateY(-54px); } }
@keyframes sc-tap { from { opacity: 0.25; transform: scale(0.3); } to { opacity: 0; transform: scale(1.4); } }
@keyframes sc-sheet { from { transform: translateY(110%); } to { transform: none; } }
@keyframes sc-away { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-30%); } }
@keyframes sc-enter { from { transform: translateX(100%); } to { transform: none; } }

/* Reduced motion: nothing moves. Each scene shows its last frame (the resting
   styles above), the tabs switch scenes, and there's nothing to pause. */
@media (prefers-reduced-motion: reduce) {
  .showcase *,
  .showcase *::before,
  .showcase *::after {
    animation: none !important;
    transition: none !important;
  }

  .showcase .sc-toggle { display: none; }
  .sc-tab[data-active] .sc-meter > span { transform: none; }
}
