/* =========================================================
   REÂM — Services Page (sleek + gradient)
   File: /static/css/services.css
   ========================================================= */

/* ---------- 0) Page defaults ---------- */
#sales-growth, #brand { scroll-margin-top: var(--nav-h, 84px); }

/* a11y helper (in case not defined globally) */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Buttons (scoped tweaks) */
.btn--primary {
  background: linear-gradient(135deg, var(--color-orange, #ff7a1a), var(--color-orange-2, #ff4e00));
  color: var(--color-white); 
  border: 0;
  transition: transform .22s ease, box-shadow .22s ease, opacity .2s ease;
  box-shadow: 0 6px 22px color-mix(in oklab, var(--color-orange, #ff7a1a) 30%, transparent);
}
.btn--primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 12px 36px color-mix(in oklab, var(--color-orange, #ff7a1a) 40%, transparent); 
}

.btn--ghost {
  background: transparent;
  border: 1px solid color-mix(in oklab, var(--color-ink, #f5f6f8) 18%, transparent);
  color: var(--color-ink, #f5f6f8);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.btn--ghost:hover {
  border-color: color-mix(in oklab, var(--color-orange, #ff7a1a) 55%, transparent);
  background: color-mix(in oklab, var(--color-orange, #ff7a1a) 10%, transparent);
  transform: translateY(-2px);
}

[data-theme="light"] .btn--ghost {
  border: 1px solid color-mix(in oklab, var(--color-text-light, #1a1a1a) 18%, transparent);
  color: var(--color-text-light, #1a1a1a);
}

[data-theme="light"] .btn--ghost:hover {
  border-color: color-mix(in oklab, var(--color-orange, #ff7a1a) 55%, transparent);
  background: color-mix(in oklab, var(--color-orange, #ff7a1a) 8%, transparent);
}

.btn--black {
  background: var(--color-black, #000);
  color: var(--color-white); 
  border: 0;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.btn--black:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 14px 28px rgba(0,0,0,.45); 
}

[data-theme="light"] .btn--black {
  background: var(--color-text-light, #1a1a1a);
  color: var(--color-white);
}

/* ---------- 1) Services hero ---------- */
.services-hero{
  padding-block: clamp(56px, 7vw, 96px);
  position: relative; 
  overflow: hidden;
  background: var(--color-elev-1);
  color: var(--color-ink);
}

[data-theme="light"] .services-hero {
  background: var(--color-bg-light-2);
  color: var(--color-text-light);
}

.services-hero .section-header{ 
  text-align: center; 
  max-width: 72ch; 
  margin-inline: auto;
}
.services-hero h1{ 
  font-size: clamp(2rem, 5vw, 3rem); 
  font-weight: 800; 
  letter-spacing: .2px; 
  color: var(--color-white);
}

[data-theme="light"] .services-hero h1 {
  color: var(--color-text-light);
}

.services-hero .sub{ 
  opacity: .85; 
  margin-top: 6px; 
  color: var(--color-ink);
}

[data-theme="light"] .services-hero .sub {
  color: var(--color-text-light);
}

.services-hero .cta-row{
  display: flex; 
  gap: 12px; 
  justify-content: center; 
  flex-wrap: wrap;
}

/* ---------- 2) Sales & Growth block ---------- */
.sg { 
  background: var(--color-elev-2);
  color: var(--color-ink);
}

[data-theme="light"] .sg {
  background: var(--color-bg-light);
  color: var(--color-text-light);
}

.sg .sg-grid{
  display: grid; 
  gap: clamp(20px, 3.2vw, 32px);
  grid-template-columns: 1fr;
}
@media (min-width: 960px){
  .sg .sg-grid{ 
    grid-template-columns: 1.05fr .95fr; 
    align-items: center; 
  }
}

.sg-media{
  position: relative; 
  border-radius: 18px; 
  overflow: clip;
  background: color-mix(in oklab, var(--color-ink, #f5f6f8) 4%, transparent);
  outline: 1px solid color-mix(in oklab, var(--color-ink, #f5f6f8) 10%, transparent);
}

[data-theme="light"] .sg-media {
  background: color-mix(in oklab, var(--color-text-light, #1a1a1a) 4%, transparent);
  outline: 1px solid color-mix(in oklab, var(--color-text-light, #1a1a1a) 10%, transparent);
}

.sg-media img{ 
  display:block; 
  width:100%; 
  height:auto; 
}
.sg-media::after{
  content:""; 
  position:absolute; 
  inset:0;
  background: radial-gradient(80% 60% at 20% 10%, color-mix(in oklab, var(--color-orange, #ff7a1a) 30%, transparent) 0%, transparent 60%);
  opacity:.15; 
  pointer-events:none;
}

.sg-right{ 
  display: grid; 
  gap: 18px; 
}

/* quick value props */
.sg-highlights{
  display:grid; 
  gap:10px; 
  margin:0; 
  padding:0; 
  list-style:none;
}
.sg-highlights li{
  display:flex; 
  align-items:center; 
  gap:10px; 
  padding:10px 12px; 
  border-radius:12px;
  background: color-mix(in oklab, var(--color-ink, #f5f6f8) 3%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-ink, #f5f6f8) 10%, transparent);
  color: var(--color-ink);
}

[data-theme="light"] .sg-highlights li {
  background: color-mix(in oklab, var(--color-text-light, #1a1a1a) 3%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-text-light, #1a1a1a) 10%, transparent);
  color: var(--color-text-light);
}

.sg-highlights .ico{ 
  display:inline-grid; 
  place-items:center; 
  width:28px; 
  height:28px; 
  border-radius:8px;
  background: linear-gradient(135deg, var(--color-orange, #ff7a1a), var(--color-orange-2, #ff4e00));
  color: var(--color-white); 
  box-shadow: 0 6px 20px color-mix(in oklab, var(--color-orange, #ff7a1a) 28%, transparent);
}

/* KPI chips */
.sg-kpis{
  display:flex; 
  flex-wrap:wrap; 
  gap:10px; 
  margin:0; 
  padding:0; 
  list-style:none;
}
.sg-kpis li{
  padding:8px 12px; 
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-size:.92rem;
  color: var(--color-ink);
}

[data-theme="light"] .sg-kpis li {
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.12);
  color: var(--color-text-light);
}

/* 90-day path */
.sg-path{ 
  display:grid; 
  gap:12px; 
  margin-top:4px; 
}
.sg-path__item{
  display:grid; 
  gap:6px;
}
.sg-path__bar{
  height:10px; 
  border-radius:999px;
  background: linear-gradient(90deg, var(--color-orange, #ff7a1a), var(--color-orange-2, #ff4e00));
  box-shadow: 0 4px 18px color-mix(in oklab, var(--color-orange, #ff7a1a) 35%, transparent);
  transform: scaleX(0); 
  transform-origin: left;
  animation: growX .9s ease forwards;
  margin-bottom: 10px;
}
.sg-path__bar.is-1{ animation-delay:.05s; width: 40%; }
.sg-path__bar.is-2{ animation-delay:.25s; width: 68%; }
.sg-path__bar.is-3{ animation-delay:.45s; width: 100%; }

@keyframes growX { to { transform: scaleX(1); } }

/* ---------- 3) Card rows (pricing) ---------- */
.card-row{
  display:grid; 
  gap: clamp(16px, 2.5vw, 22px);
  grid-template-columns: 1fr; 
  margin-top: clamp(18px, 3vw, 28px);
}
@media (min-width: 880px){
  .card-row{ grid-template-columns: repeat(3, 1fr); }
}

.card{
  position:relative; 
  isolation:isolate;
  border-radius: 18px; 
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  color: var(--color-ink);
}

[data-theme="light"] .card {
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.02));
  border: 1px solid rgba(0,0,0,.12);
  color: var(--color-text-light);
}

.card:hover{
  transform: translateY(-6px);
  box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    0 0 0 1px color-mix(in oklab, var(--color-orange, #ff7a1a) 20%, transparent) inset,
    0 12px 40px color-mix(in oklab, var(--color-orange, #ff7a1a) 30%, transparent);
  border-color: color-mix(in oklab, var(--color-orange, #ff7a1a) 30%, rgba(255,255,255,.12));
}

[data-theme="light"] .card:hover {
  box-shadow:
    0 12px 30px rgba(0,0,0,.15),
    0 0 0 1px color-mix(in oklab, var(--color-orange, #ff7a1a) 20%, transparent) inset,
    0 12px 40px color-mix(in oklab, var(--color-orange, #ff7a1a) 20%, transparent);
  border-color: color-mix(in oklab, var(--color-orange, #ff7a1a) 30%, rgba(0,0,0,.12));
}

.card.is-hot{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border-color: color-mix(in oklab, var(--color-orange, #ff7a1a) 40%, rgba(255,255,255,.12));
  box-shadow: 0 10px 28px color-mix(in oklab, var(--color-orange, #ff7a1a) 22%, transparent);
}

[data-theme="light"] .card.is-hot {
  background: linear-gradient(180deg, rgba(0,0,0,.07), rgba(0,0,0,.025));
  border-color: color-mix(in oklab, var(--color-orange, #ff7a1a) 40%, rgba(0,0,0,.12));
  box-shadow: 0 10px 28px color-mix(in oklab, var(--color-orange, #ff7a1a) 15%, transparent);
}

.card h4{ 
  font-size: 1.15rem; 
  margin-bottom: 8px; 
  letter-spacing:.2px; 
  color: var(--color-white);
}

[data-theme="light"] .card h4 {
  color: var(--color-text-light);
}

.card .list{ 
  margin:0 0 12px 0; 
  padding-left: 18px; 
  opacity:.9; 
  color: var(--color-ink);
}

[data-theme="light"] .card .list {
  color: var(--color-text-light);
}

.card .list.is-compact li{ margin: 4px 0; }
.card .price{
  margin: 10px 0 14px;
  opacity: .95;
  color: var(--color-ink);
}

[data-theme="light"] .card .price {
  color: var(--color-text-light);
}

.card .btn{ width: 100%; }

/* ---------- 4) Awareness block ---------- */
.brand-aware { 
  background: var(--color-elev-2);
  color: var(--color-ink);
}

[data-theme="light"] .brand-aware {
  background: var(--color-bg-light);
  color: var(--color-text-light);
}

.brand-aware .aware-grid{
  display:grid; 
  gap: clamp(20px, 3.2vw, 32px);
  grid-template-columns: 1fr;
}
@media (min-width: 960px){
  .brand-aware .aware-grid{ 
    grid-template-columns: 1.05fr .95fr; 
    align-items: center; 
  }
}
.aware-media{
  position: relative; 
  overflow: clip; 
  border-radius: 18px;
  background: color-mix(in oklab, var(--color-ink, #f5f6f8) 4%, transparent);
  outline: 1px solid color-mix(in oklab, var(--color-ink, #f5f6f8) 10%, transparent);
}

[data-theme="light"] .aware-media {
  background: color-mix(in oklab, var(--color-text-light, #1a1a1a) 4%, transparent);
  outline: 1px solid color-mix(in oklab, var(--color-text-light, #1a1a1a) 10%, transparent);
}

.aware-media img{ 
  display:block; 
  width:100%; 
  height:auto; 
}
.aware-media::after{
  content:""; 
  position:absolute; 
  inset:0; 
  pointer-events:none;
  background: radial-gradient(70% 60% at 80% 10%, color-mix(in oklab, var(--color-orange, #ff7a1a) 24%, transparent) 0%, transparent 60%);
  opacity:.14;
}

.aware-right{ 
  display:grid; 
  gap: 18px; 
}

/* Highlights (icons) */
.aware-highlights{
  display:grid; 
  gap:10px; 
  margin:0; 
  padding:0; 
  list-style:none;
}
.aware-highlights li{
  display:flex; 
  align-items:center; 
  gap:10px; 
  padding:10px 12px; 
  border-radius:12px;
  background: color-mix(in oklab, var(--color-ink, #f5f6f8) 3%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-ink, #f5f6f8) 10%, transparent);
  color: var(--color-ink);
}

[data-theme="light"] .aware-highlights li {
  background: color-mix(in oklab, var(--color-text-light, #1a1a1a) 3%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-text-light, #1a1a1a) 10%, transparent);
  color: var(--color-text-light);
}

.aware-highlights .ico{
  display:inline-grid; 
  place-items:center; 
  width:28px; 
  height:28px; 
  border-radius:8px;
  background: linear-gradient(135deg, var(--color-orange, #ff7a1a), var(--color-orange-2, #ff4e00)); 
  color: var(--color-white);
}

/* Channel & KPI chips */
.aware-chips, .aware-kpis{
  display:flex; 
  flex-wrap:wrap; 
  gap:10px; 
  margin:0; 
  padding:0; 
  list-style:none;
}
.aware-chips li, .aware-kpis li{
  padding:8px 12px; 
  border-radius:999px; 
  font-size:.92rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--color-ink);
}

[data-theme="light"] .aware-chips li,
[data-theme="light"] .aware-kpis li {
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.12);
  color: var(--color-text-light);
}

/* Flight plan bars */
.aware-path{ 
  display:grid; 
  gap:12px; 
  margin-top:4px; 
}
.aware-path__item{ 
  display:grid; 
  gap:6px; 
}
.aware-path__bar{
  height:10px; 
  border-radius:999px;
  background: linear-gradient(90deg, var(--color-orange, #ff7a1a), var(--color-orange-2, #ff4e00));
  box-shadow: 0 4px 18px color-mix(in oklab, var(--color-orange, #ff7a1a) 35%, transparent);
  transform: scaleX(0); 
  transform-origin:left; 
  animation: growX .9s ease forwards;
  margin-bottom: 10px;
}
.aware-path__bar.is-1{ animation-delay:.05s; width: 35%; }
.aware-path__bar.is-2{ animation-delay:.25s; width: 65%; }
.aware-path__bar.is-3{ animation-delay:.45s; width: 100%; }

/* ---------- 5) Details accordion ---------- */
.sg-details, .aware-details{
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  overflow: clip;
  color: var(--color-ink);
}

[data-theme="light"] .sg-details,
[data-theme="light"] .aware-details {
  border: 1px solid rgba(0,0,0,.12);
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.02));
  color: var(--color-text-light);
}

.sg-details summary, .aware-details summary{
  cursor: pointer; 
  display:flex; 
  align-items:center; 
  justify-content:space-between;
  gap:12px; 
  padding: 14px 16px; 
  list-style:none; 
  user-select:none;
  color: var(--color-white);
}

[data-theme="light"] .sg-details summary,
[data-theme="light"] .aware-details summary {
  color: var(--color-text-light);
}

.sg-details[open] summary, .aware-details[open] summary{
  background: rgba(255,255,255,.03);
}

[data-theme="light"] .sg-details[open] summary,
[data-theme="light"] .aware-details[open] summary {
  background: rgba(0,0,0,.03);
}

.summary-label{ 
  font-weight: 600; 
  letter-spacing:.2px; 
}
.chev{ 
  display:inline-grid; 
  place-items:center; 
  transition: transform .25s ease; 
}
.sg-details[open] .chev, .aware-details[open] .chev{ 
  transform: rotate(180deg); 
}

.sg-details .list, .aware-details .list{ 
  margin: 0 0 12px 24px; 
  color: var(--color-ink);
}

[data-theme="light"] .sg-details .list,
[data-theme="light"] .aware-details .list {
  color: var(--color-text-light);
}

.aware-details__grid{ 
  display:grid; 
  gap:6px; 
  grid-template-columns: 1fr; 
  padding: 0 16px 14px; 
}
@media (min-width: 700px){ 
  .aware-details__grid{ 
    grid-template-columns: 1fr 1fr; 
    gap: 10px 24px; 
  } 
}

/* ---------- 6) Final CTA ---------- */
#cta.section--accent{
  color: var(--color-white);
  margin-bottom: 50px;
  margin-top: 50px;
}

[data-theme="light"] #cta.section--accent {
  color: var(--color-white);
}

#cta .cta{
  text-align:center; 
  display:grid; 
  gap:10px;
}
#cta h2{ 
  font-size: clamp(1.6rem, 3.6vw, 2.2rem); 
  color: var(--color-white);
}
#cta p { 
  opacity: .9; 
  color: var(--color-white);
}
#cta .btn--black{ 
  background: var(--color-orange);
  color: var(--color-text-black);
}

[data-theme="light"] #cta .btn--black {
  background: var(--color-orange);
  color: var(--color-text-black);
}

/* ---------- 7) Motion preferences ---------- */
@media (prefers-reduced-motion: reduce){
  .btn--primary, .btn--ghost, .btn--black,
  .card, .chev, .sg-path__bar, .aware-path__bar { 
    transition: none !important; 
    animation: none !important; 
    transform: none !important; 
  }
}

/* ---------- 8) Small niceties ---------- */
/* Tighten section headers here so both blocks look balanced */
#sales-growth .section-header, #brand .section-header{
  text-align:center; 
  max-width:70ch; 
  margin-inline:auto; 
  margin-bottom: clamp(18px, 3vw, 28px);
  margin-top: 10%;
}

#sales-growth .section-header h2,
#brand .section-header h2 {
  color: var(--color-white);
}

[data-theme="light"] #sales-growth .section-header h2,
[data-theme="light"] #brand .section-header h2 {
  color: var(--color-text-light);
}

#sales-growth .section-header .sub,
#brand .section-header .sub {
  color: var(--color-ink);
}

[data-theme="light"] #sales-growth .section-header .sub,
[data-theme="light"] #brand .section-header .sub {
  color: var(--color-text-light);
}

/* === Details accordion polish === */
.sg-details,
.aware-details {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  overflow: hidden;
  transition: border-color .25s ease, background .25s ease;
}

[data-theme="light"] .sg-details,
[data-theme="light"] .aware-details {
  border: 1px solid rgba(0,0,0,.12);
  background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.015));
}

.sg-details summary,
.aware-details summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  list-style: none;
  user-select: none;
}

.sg-details summary::-webkit-details-marker,
.aware-details summary::-webkit-details-marker {
  display: none;
}

.sg-details[open] summary,
.aware-details[open] summary {
  background: rgba(255,255,255,.03);
}

[data-theme="light"] .sg-details[open] summary,
[data-theme="light"] .aware-details[open] summary {
  background: rgba(0,0,0,.03);
}

.summary-label {
  font-weight: 600;
  letter-spacing: .2px;
}

.chev {
  display: inline-grid;
  place-items: center;
  transition: transform .25s ease;
}

.sg-details[open] .chev,
.aware-details[open] .chev {
  transform: rotate(180deg);
}

/* Bullet list inside */
.sg-details .list,
.aware-details .list {
  margin: 0 0 14px 32px;
  padding-left: 0;
  list-style: disc;
  opacity: .9;
}

.sg-details .list li,
.aware-details .list li {
  margin: 6px 0;
  line-height: 1.4;
}
.sg-details li,
.aware-details li {
  position: relative;
  padding-left: 1.2em;
}

/* SVG Animation Styles */
.sg-anim-test{ position:relative; background:transparent; }
.sg-anim-test__svg{ width:100%; height:auto; display:block; color: var(--color-ink); }

[data-theme="light"] .sg-anim-test__svg {
  color: var(--color-text-light);
}

/* critical for SVG transforms to anchor at the bottom */
.sg-anim-test .bar{
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
}

.sg-anim-test .growth-line{
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity:.92;
}
.sg-anim-test .dots circle{
  transform: scale(0);
  transform-origin: center;
  opacity:0;
}

.sg-anim-test__kpis{
  position:absolute; inset:0; pointer-events:none;
  display:grid; justify-items:end; align-content:start; gap:6px; padding:16px;
}
.sg-anim-test__kpis .kpi{
  display:inline-block; padding:6px 10px; border-radius:999px;
  font-size:.82rem; font-weight:700; letter-spacing:.2px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  box-shadow:0 10px 26px color-mix(in oklab, var(--color-orange) 26%, transparent);
  opacity:0; transform:translateY(6px);
}
.sg-anim-test__kpis .k2{
  background: rgba(0,0,0,.72); 
  color: var(--color-white); 
  border:1px solid rgba(255,255,255,.18);
}

[data-theme="light"] .sg-anim-test__kpis .k2 {
  background: rgba(255,255,255,.72); 
  color: var(--color-text-light); 
  border:1px solid rgba(0,0,0,.18);
}

/* play animation when .is-in is present — we added it in HTML for now */
.sg-anim-test.is-in .bar{ animation:sgGrow .9s cubic-bezier(.2,.7,.2,1) forwards; }
.sg-anim-test.is-in .bar.b1{ animation-delay:.05s; }
.sg-anim-test.is-in .bar.b2{ animation-delay:.15s; }
.sg-anim-test.is-in .bar.b3{ animation-delay:.25s; }
.sg-anim-test.is-in .bar.b4{ animation-delay:.35s; }
.sg-anim-test.is-in .bar.b5{ animation-delay:.45s; }
.sg-anim-test.is-in .bar.b6{ animation-delay:.55s; }

.sg-anim-test.is-in .growth-line{ animation:sgDraw 1.2s ease forwards .25s; }
.sg-anim-test.is-in .dots circle{ animation:sgPop .35s ease forwards; }
.sg-anim-test.is-in .dots circle:nth-child(1){ animation-delay:.55s; }
.sg-anim-test.is-in .dots circle:nth-child(2){ animation-delay:.7s; }
.sg-anim-test.is-in .dots circle:nth-child(3){ animation-delay:.85s; }
.sg-anim-test.is-in .dots circle:nth-child(4){ animation-delay:1s; }

.sg-anim-test.is-in .kpi{ animation:sgFadeUp .4s ease forwards; }
.sg-anim-test.is-in .kpi.k1{ animation-delay:.6s; }
.sg-anim-test.is-in .kpi.k2{ animation-delay:.8s; }
.sg-anim-test.is-in .kpi.k3{ animation-delay:1s; }

@keyframes sgGrow { to { transform: scaleY(1); } }
@keyframes sgDraw { to { stroke-dashoffset: 0; } }
@keyframes sgPop  { 0%{opacity:0; transform:scale(0)} 80%{opacity:1; transform:scale(1.1)} 100%{opacity:1; transform:scale(1)} }
@keyframes sgFadeUp { to { opacity:1; transform:translateY(0); } }

@media (prefers-reduced-motion: reduce){
  .sg-anim-test .bar, .sg-anim-test .growth-line, .sg-anim-test .dots circle, .sg-anim-test .kpi{
    animation:none !important; transform:none !important; opacity:1 !important;
  }
}

/* debug border to prove CSS is loading */
.aware-anim-test{ position:relative; outline:2px solid transparent; }
.aware-anim-test__svg{ width:100%; height:auto; display:block; color: var(--color-ink); }

[data-theme="light"] .aware-anim-test__svg {
  color: var(--color-text-light);
}

/* critical: make SVG transforms anchor correctly */
.aware-anim-test .awT-ring,
.aware-anim-test .awT-play,
.aware-anim-test .awT-node,
.aware-anim-test .awT-halo{
  transform-box: fill-box;
  transform-origin: center;
}

/* default state */
.aware-anim-test .awT-ring{ transform: scale(.6); opacity:0; }
.aware-anim-test .awT-halo{ stroke-dasharray:4 6; opacity:.35; }
.aware-anim-test .awT-node{ opacity:0; }

/* animate when .is-in is present (we added it in HTML for the test) */
.aware-anim-test.is-in .awT-ring.r1{ animation: awRipple 2.8s ease-out infinite; }
.aware-anim-test.is-in .awT-ring.r2{ animation: awRipple 2.8s ease-out .5s infinite; }
.aware-anim-test.is-in .awT-ring.r3{ animation: awRipple 2.8s ease-out 1s infinite; }

.aware-anim-test.is-in .awT-halo{ animation: awHalo 3s linear infinite; }
.aware-anim-test.is-in .awT-play circle{ animation: awPulse 2.2s ease-in-out infinite; }

.aware-anim-test.is-in .awT-node{ animation: awFloat 4.5s ease-in-out infinite alternate; }
.aware-anim-test.is-in .awT-node:nth-child(1){ animation-delay:.2s }
.aware-anim-test.is-in .awT-node:nth-child(2){ animation-delay:.6s }
.aware-anim-test.is-in .awT-node:nth-child(3){ animation-delay:1s }
.aware-anim-test.is-in .awT-node:nth-child(4){ animation-delay:1.4s }
.aware-anim-test.is-in .awT-node:nth-child(5){ animation-delay:1.8s }
.aware-anim-test.is-in .awT-node:nth-child(6){ animation-delay:.4s }
.aware-anim-test.is-in .awT-node:nth-child(7){ animation-delay:.8s }
.aware-anim-test.is-in .awT-node:nth-child(8){ animation-delay:1.2s }
.aware-anim-test.is-in .awT-node:nth-child(9){ animation-delay:1.6s }

.aware-anim-test__kpis{
  position:absolute; inset:0; pointer-events:none;
  display:grid; justify-items:start; align-content:start; gap:6px; padding:16px;
}
.aware-anim-test__kpis .akpi{
  display:inline-block; padding:6px 10px; border-radius:999px;
  font-size:.82rem; font-weight:700; letter-spacing:.2px;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-2));
  box-shadow:0 10px 26px color-mix(in oklab, var(--color-orange) 26%, transparent);
  opacity:0; transform:translateY(6px);
}
.aware-anim-test.is-in .akpi{ animation: akpiUp .4s ease forwards; }
.aware-anim-test.is-in .akpi.a1{ animation-delay:.4s }
.aware-anim-test.is-in .akpi.a2{ animation-delay:.6s }
.aware-anim-test.is-in .akpi.a3{ animation-delay:.8s }

/* keyframes */
@keyframes awRipple{
  0%{ transform:scale(.6); opacity:0 }
  10%{ opacity:.9 }
  100%{ transform:scale(2.6); opacity:0 }
}
@keyframes awPulse{
  0%,100%{ transform:scale(1) }
  50%{ transform:scale(1.06) }
}
@keyframes awHalo{ to{ transform:rotate(360deg) } }
@keyframes awFloat{
  0%{ transform:translateY(0) scale(1); opacity:.55 }
  50%{ transform:translateY(-6px) scale(1.06); opacity:.95 }
  100%{ transform:translateY(0) scale(1); opacity:.55 }
}
@keyframes akpiUp{ to{ opacity:1; transform:translateY(0) } }

/* reduce motion */
@media (prefers-reduced-motion: reduce){
  .aware-anim-test .awT-ring,
  .aware-anim-test .awT-play circle,
  .aware-anim-test .awT-halo,
  .aware-anim-test .awT-node,
  .aware-anim-test .akpi{ animation:none !important; transform:none !important; opacity:1 !important; }
}

