/* StoxCredit redesign v4: hero stage, asymmetric product grid, markets and calculator polish.
   Colors: only the site's existing theme tokens, plus --sc-brand and --sc-brand-ink, which
   stoxcredit-redesign-v4.js copies from the live primary button. No new palette is introduced.
   Rules use html body prefixes and !important where older override layers would otherwise win. */

/* ---------- Hero: copy left, live stage right, index full width ---------- */
@media (min-width: 961px) {
  html body #homeView > .home-lead {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr) !important;
    grid-template-areas: "head head" "copy stage" "plate plate" !important;
    column-gap: clamp(32px, 5vw, 72px) !important;
    row-gap: clamp(36px, 5vw, 64px) !important;
    align-items: center;
  }
  html body #homeView > .home-lead > .sc-stage {
    grid-area: stage;
    align-self: start;
    position: sticky;
    top: 96px;
  }
  html body #homeView > .home-lead > .home-lead-copy { grid-area: copy; }
  html body #homeView > .home-lead > .home-feature-panel { grid-area: plate; }
  html body #homeView .home-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Headline: serif display, tight leading (from v3, reasserted for the new grid) */
html body #homeView #homeTitle {
  font-size: clamp(48px, 5.8vw, 84px) !important;
  line-height: 1.0 !important;
  letter-spacing: -0.025em !important;
}

/* ---------- Stage: layered stock tiles on a Base plane, with live product preview ---------- */
.sc-stage {
  position: relative;
  margin: 0;
  display: grid;
  gap: 18px;
  min-width: 0;
  --px: 0;
  --py: 0;
  animation: sc-stage-in 1.1s cubic-bezier(.22, 1, .36, 1) .15s both;
}
@keyframes sc-stage-in {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}
.sc-plane {
  position: relative;
  aspect-ratio: 1.45 / 1;
  min-height: 300px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  overflow: hidden;
  isolation: isolate;
}
.sc-plane svg.sc-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--sc-brand, currentColor);
}
.sc-plane .sc-soft {
  fill: var(--sc-brand, currentColor);
  opacity: .08;
}
.sc-plane .sc-hairline {
  fill: none;
  stroke: var(--sc-brand, currentColor);
  stroke-opacity: .18;
  stroke-width: 1;
}
.sc-layer {
  position: absolute;
  transform: translate3d(calc(var(--px) * var(--d) * 1px), calc(var(--py) * var(--d) * 1px), 0);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.sc-tile {
  --d: 14;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 12px 14px 12px 12px;
  border-radius: 16px;
  background: var(--p, #fff);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  box-shadow: 0 18px 30px -22px color-mix(in srgb, currentColor 45%, transparent);
  min-width: 132px;
}
.sc-tile img { width: 30px; height: 30px; border-radius: 9px; }
.sc-tile b { font: 600 14px/1.2 var(--sans); letter-spacing: -0.01em; }
.sc-tile span { font: 500 12px/1.2 var(--mono); opacity: .66; }
.sc-tile-a { left: 9%; top: 16%; --d: 26; }
.sc-tile-b { right: 8%; top: 36%; --d: 40; }
.sc-tile-c { left: 30%; bottom: 10%; --d: 18; }
.sc-chip {
  --d: 8;
  position: absolute;
  right: 12%;
  bottom: 22%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--sc-brand, currentColor);
  color: var(--sc-brand-ink, #fff);
  font: 600 12px/1 var(--sans);
  letter-spacing: .02em;
}
.sc-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .85;
}
@media (prefers-reduced-motion: no-preference) {
  .sc-tile-a { animation: sc-float 7.5s ease-in-out infinite; }
  .sc-tile-b { animation: sc-float 9s ease-in-out -2s infinite; }
  .sc-tile-c { animation: sc-float 8s ease-in-out -4s infinite; }
}
@keyframes sc-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

/* Product preview card: real values mirrored from the live rate tape */
.sc-preview {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--p, #fff);
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.sc-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.sc-preview-head b { font-weight: 600; }
.sc-preview-head span { opacity: .66; font-family: var(--mono); font-size: 12px; }
.sc-preview-rows { display: grid; gap: 0; }
.sc-preview-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  font-size: 14px;
}
.sc-preview-row:first-child { border-top: 0; }
.sc-preview-row .sc-asset { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sc-preview-row .sc-asset img { width: 24px; height: 24px; border-radius: 7px; flex: none; }
.sc-preview-row .sc-asset span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-apy { font: 600 16px/1 var(--mono); font-variant-numeric: tabular-nums; }
.sc-bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  overflow: hidden;
}
.sc-bar > i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--sc-brand, currentColor);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}
.sc-preview.is-in .sc-bar > i { transform: scaleX(var(--w, 0.5)); }
.sc-tick { animation: sc-tick .7s cubic-bezier(.22, 1, .36, 1); }
@keyframes sc-tick {
  0% { opacity: .25; translate: 0 4px; }
  100% { opacity: 1; translate: 0 0; }
}

/* ---------- Products: asymmetric editorial grid ---------- */
@media (min-width: 961px) {
  html body .home-products-grid {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 16px !important;
    border-top: 0 !important;
  }
  html body .home-products-grid .home-product-card {
    grid-column: span 6 !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr) !important;
    grid-template-areas: "top art" "title art" "copy art" "link art" !important;
    align-items: start !important;
    gap: 12px 24px !important;
    padding: 30px !important;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent) !important;
    border-radius: 20px !important;
    background: var(--p, #fff) !important;
  }
  html body .home-products-grid .home-product-card:nth-child(1) { grid-column: span 7 !important; }
  html body .home-products-grid .home-product-card:nth-child(2),
  html body .home-products-grid .home-product-card:nth-child(3) {
    grid-column: span 5 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "art" "top" "title" "copy" "link" !important;
  }
  html body .home-products-grid .home-product-card:nth-child(2) > .sc-prod-art,
  html body .home-products-grid .home-product-card:nth-child(3) > .sc-prod-art { min-height: 240px; }
  html body .home-products-grid .home-product-card:nth-child(4) { grid-column: span 7 !important; grid-template-areas: "art top" "art title" "art copy" "art link" !important; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) !important; }
  html body .home-products-grid .home-product-card > .sc-prod-art { grid-area: art; align-self: stretch; }
  /* Side-by-side cards: the copy row takes the spare height, so text stays top and link stays bottom */
  html body .home-products-grid .home-product-card:nth-child(1),
  html body .home-products-grid .home-product-card:nth-child(4) {
    grid-template-rows: auto auto 1fr auto !important;
    align-items: stretch !important;
  }
  html body .home-products-grid .home-product-card:nth-child(1) > .sc-prod-art,
  html body .home-products-grid .home-product-card:nth-child(4) > .sc-prod-art { min-height: 320px; }
  html body .home-products-grid .home-product-card:nth-child(1) > .home-product-top,
  html body .home-products-grid .home-product-card:nth-child(4) > .home-product-top { align-self: start; }
  html body .home-products-grid .home-product-card:nth-child(1) > p,
  html body .home-products-grid .home-product-card:nth-child(4) > p { align-self: start; }
  html body .home-products-grid .home-product-card:nth-child(1) > a,
  html body .home-products-grid .home-product-card:nth-child(4) > a { align-self: end; }
  html body .home-products-grid .home-product-card:nth-child(4) > .sc-prod-art,
  html body .home-products-grid .home-product-card:nth-child(2) > .sc-prod-art { order: 0; }
}
html body .home-products-grid .home-product-card {
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .45s ease;
}
@media (hover: hover) and (pointer: fine) {
  html body .home-products-grid .home-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--sc-brand, currentColor) !important;
  }
}
.sc-prod-art {
  position: relative;
  min-height: 210px;
  border-radius: 16px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--sc-brand, currentColor);
}
.sc-prod-art svg { width: 100%; height: auto; display: block; }
.sc-prod-art .sc-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
.sc-prod-art text { font-family: var(--mono); fill: currentColor; }
.sc-prod-art .sc-ink { fill: var(--ink, currentColor); }
.sc-prod-art .sc-soft { fill: currentColor; opacity: .12; }
.sc-prod-art .sc-mid { fill: currentColor; opacity: .32; }
.sc-prod-art .sc-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-prod-art .sc-paper { fill: var(--p, #fff); }
.sc-prod-art .sc-hairline { stroke: color-mix(in srgb, currentColor 22%, transparent); stroke-width: 1; fill: none; }
@media (prefers-reduced-motion: no-preference) {
  .sc-prod-art .sc-float { animation: sc-float 6s ease-in-out infinite; }
  .sc-prod-art .sc-float-b { animation: sc-float 7.5s ease-in-out -2.5s infinite; }
}

/* Draw-on for the illustrative line chart */
.sc-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(.22, 1, .36, 1);
}
.sc-prod-art.is-in .sc-draw { stroke-dashoffset: 0; }

/* ---------- Markets: premium table polish (logic untouched) ---------- */
html body #homeView .home-market-table tbody tr {
  transition: background-color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  html body #homeView .home-market-table tbody tr:hover {
    background: color-mix(in srgb, currentColor 4%, transparent) !important;
  }
}
html body #homeView .home-market-table th {
  position: sticky;
  top: 0;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
}
html body #homeView .home-market-table td {
  font-variant-numeric: tabular-nums;
}

/* ---------- Start-here index: four editorial columns under the hero ---------- */
html body #homeView .home-feature-panel {
  padding: clamp(28px, 3.4vw, 44px) !important;
  border-radius: 22px !important;
}
html body #homeView .home-feature-head {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
html body #homeView .home-feature-head strong {
  font-family: "Instrument Serif", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: clamp(34px, 3.6vw, 48px) !important;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
html body #homeView .home-feature-head p {
  margin: 0;
  opacity: .72;
}
html body #homeView .home-feature-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}
html body #homeView .home-feature-card {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 12px;
  min-height: 230px;
  padding: 26px 22px 22px !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-left: 1px solid color-mix(in srgb, currentColor 14%, transparent) !important;
  text-decoration: none;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}
html body #homeView .home-feature-card:first-child {
  border-left: 0 !important;
  padding-left: 0 !important;
}
html body #homeView .home-feature-icon {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  opacity: .9;
}
html body #homeView .home-feature-copy {
  display: grid;
  gap: 6px;
}
html body #homeView .home-feature-copy small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .66;
}
html body #homeView .home-feature-copy strong {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
html body #homeView .home-feature-copy span {
  font-size: 14px;
  line-height: 1.5;
  opacity: .78;
}
html body #homeView .home-feature-arrow {
  margin-top: auto;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  html body #homeView .home-feature-card:hover { transform: translateY(-4px); }
  html body #homeView .home-feature-card:hover .home-feature-arrow {
    transform: rotate(45deg);
    border-color: var(--sc-brand, currentColor);
  }
}
@media (max-width: 960px) {
  html body #homeView .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html body #homeView .home-feature-card:nth-child(3) { border-left: 0 !important; padding-left: 0 !important; }
  html body #homeView .home-feature-card:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
}
@media (max-width: 560px) {
  html body #homeView .home-feature-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html body #homeView .home-feature-card,
  html body #homeView .home-feature-card:nth-child(n) {
    min-height: 0;
    border-left: 0 !important;
    padding-left: 0 !important;
    border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
  }
  html body #homeView .home-feature-arrow { margin-top: 0; }
  html body #homeView .home-feature-copy { grid-column: 2; }
  html body #homeView .home-feature-icon { grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  html body #homeView .home-feature-card,
  html body #homeView .home-feature-arrow { transition: none !important; }
  html body #homeView .home-feature-card:hover,
  html body #homeView .home-feature-card:hover .home-feature-arrow { transform: none !important; }
}

/* ---------- Markets and calculator: balanced columns ---------- */
@media (min-width: 961px) {
  html body #homeView .home-market-layout {
    align-items: stretch !important;
  }
  html body #homeView .home-market-scroll {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  html body #homeView .home-market-table {
    height: 100%;
    flex: 1 1 auto;
  }
}

/* ---------- Calculator: clearer hierarchy, LTV track as a gauge ---------- */
html body #homeView .home-calculator {
  border-radius: 20px;
  padding: 28px !important;
}
html body #homeView .home-calculator-results {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0 22px !important;
}
html body #homeView .home-calculator-results > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  min-width: 0;
}
html body #homeView .home-calculator-results dt {
  font-size: 12px;
  opacity: .66;
  letter-spacing: .01em;
}
html body #homeView .home-calculator-results dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  overflow-wrap: anywhere;
}
/* Input labels: name and unit on one line, no wrap */
html body #homeView .home-calculator-inputs label {
  min-width: 0;
}
html body #homeView .home-calculator-inputs label > span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}
html body #homeView .home-calculator-inputs label > span small {
  font-family: var(--mono);
  font-size: 11px;
  opacity: .66;
}
html body #homeView .home-ltv-track {
  height: 10px !important;
  border-radius: 999px !important;
  overflow: hidden;
}
html body #homeView .home-ltv-track > i {
  transition: width .9s cubic-bezier(.22, 1, .36, 1), background-color .4s ease;
}
html body #homeView #homeCalcLtvValue {
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}

/* ---------- Risk bars: readable weight, illustrative only ---------- */
html body #homeView .home-risk-bars i {
  display: block;
  height: 10px !important;
  border-radius: 999px;
}

/* ---------- Phone ---------- */
@media (max-width: 960px) {
  html body .home-products-grid .home-product-card:nth-child(n) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "art" "top" "title" "copy" "link" !important;
  }
  html body .home-products-grid .home-product-card > .sc-prod-art { min-height: 180px; }
  .sc-stage { gap: 14px; }
  .sc-plane { min-height: 260px; }
  .sc-tile { min-width: 112px; padding: 10px; }
  .sc-tile img { width: 26px; height: 26px; }
}
@media (max-width: 560px) {
  html body #homeView .home-calculator-results { grid-template-columns: minmax(0, 1fr) !important; }
  .sc-plane { aspect-ratio: auto; min-height: 240px; }
  .sc-tile-b { right: 4%; }
  .sc-tile-c { display: none; }
}

/* ---------- Live logo strip: marquee of the real market logos ---------- */
.sc-logos {
  position: relative;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  padding: 22px 0 20px;
  overflow: hidden;
}
.sc-logos-label {
  margin: 0 0 14px;
  padding: 0 max(16px, calc((100vw - 1200px) / 2));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .66;
}
.sc-logos-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sc-logos-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding-left: 14px;
  animation: sc-marquee 46s linear infinite;
}
.sc-logos:hover .sc-logos-track { animation-play-state: paused; }
.sc-logo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
}
.sc-logo-item img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  object-fit: contain;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.sc-logo-item span { font-family: var(--mono); font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  .sc-logo-item:hover { transform: translateY(-2px); border-color: var(--sc-brand, currentColor); }
  .sc-logo-item:hover img { transform: scale(1.12) rotate(-4deg); }
}
@keyframes sc-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Scroll progress line ---------- */
.sc-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  background: var(--sc-brand, currentColor);
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- Header logo: small hover motion ---------- */
html body .brand-link .brand-logo {
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) and (pointer: fine) {
  html body .brand-link:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
}

/* ---------- Animated product illustrations ---------- */
.sc-prod-art svg { overflow: visible; }
.sc-prod-art .sc-lid-fill { fill: currentColor; opacity: .5; }
.sc-prod-art .sc-ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.sc-prod-art .sc-ltv { transform-box: fill-box; transform-origin: 0% 50%; }
.sc-prod-art .sc-candle,
.sc-prod-art .sc-bar-grow,
.sc-prod-art .sc-donut { transform-box: fill-box; }
/* Pause everything until the card is in view, so the first frame is intentional */
.sc-prod-art:not(.is-in) svg * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: no-preference) {
  .sc-prod-art .sc-lid {
    transform-box: fill-box;
    transform-origin: 0% 100%;
    animation: sc-lid 5.5s ease-in-out infinite;
  }
  .sc-prod-art .sc-token { animation: sc-token 5.5s ease-in-out infinite; }
  .sc-prod-art .sc-gift-body { animation: sc-bob 5.5s ease-in-out infinite; }
  .sc-prod-art .sc-flow { stroke-dasharray: 1; animation: sc-flow 3.4s ease-in-out infinite; }
  .sc-prod-art .sc-coin { transform-box: fill-box; transform-origin: 50% 50%; animation: sc-coin 3.4s ease-in-out infinite; }
  .sc-prod-art .sc-ltv { animation: sc-ltv 5s ease-in-out infinite; }
  .sc-prod-art .sc-candle { animation: sc-candle 1s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i) * 70ms); }
  .sc-prod-art .sc-draw-loop { stroke-dasharray: 1; animation: sc-flow 4.6s ease-in-out infinite; }
  .sc-prod-art .sc-ring { transform-box: fill-box; transform-origin: 50% 50%; animation: sc-ping 2.2s ease-out infinite; }
  .sc-prod-art .sc-donut { transform-origin: 50% 50%; animation: sc-donut 1.6s cubic-bezier(.22, 1, .36, 1) both; }
  .sc-prod-art .sc-bar-grow { transform-origin: 0% 50%; animation: sc-grow-x 1s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--i) * 140ms + 300ms); }
}
@keyframes sc-lid {
  0%, 100% { transform: none; }
  40%, 60% { transform: translate(-4px, -16px) rotate(-10deg); }
}
@keyframes sc-token {
  0%, 18% { opacity: 0; transform: translate(-26px, 30px); }
  45%, 78% { opacity: 1; transform: translate(0, 0); }
  100% { opacity: 0; transform: translate(0, -10px); }
}
@keyframes sc-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes sc-flow {
  from { stroke-dashoffset: 1; }
  55%, 100% { stroke-dashoffset: 0; }
}
@keyframes sc-coin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
@keyframes sc-ltv {
  0% { transform: scaleX(.25); }
  60%, 100% { transform: scaleX(1); }
}
@keyframes sc-candle {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 1; transform: scaleY(1); }
}
@keyframes sc-ping {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(3.2); opacity: 0; }
}
@keyframes sc-donut {
  from { opacity: 0; transform: rotate(-140deg) scale(.85); }
  to { opacity: 1; transform: none; }
}
@keyframes sc-grow-x {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sc-logos-track,
  .sc-logo-item,
  .sc-logo-item img,
  .sc-progress,
  html body .brand-link .brand-logo { transition: none !important; animation: none !important; }
  .sc-logos-track { flex-wrap: wrap; width: auto; padding-left: 0; justify-content: center; }
  .sc-logos-viewport { overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .sc-logo-item[aria-hidden="true"] { display: none; }
  .sc-stage,
  .sc-tile,
  .sc-layer,
  .sc-bar > i,
  .sc-tick,
  .sc-draw,
  .sc-prod-art .sc-float,
  .sc-prod-art .sc-float-b,
  html body .home-products-grid .home-product-card,
  html body #homeView .home-ltv-track > i { animation: none !important; transition: none !important; }
  .sc-draw { stroke-dashoffset: 0; }
  .sc-bar > i { transform: scaleX(var(--w, .5)) !important; }
  html body .home-products-grid .home-product-card:hover { transform: none !important; }
}
