/* dianshi.ca Amazon case page in the light palette (2026-10-19). Ported from the oakvilleleo.com copy of the same page, which Leo
   found easier to read: pale bands holding white cards, data colours orange and blue, amber for a known or planned point, green
   for healthy. Dianshi's own type and seal red stay; nothing in the content changed.
   Charts are drawn by amz.js; without it every number is still on the page as text. */
.page-amz {
  --ink-3: var(--ink-2); --band: var(--slab); --paper: #fff; --accent: var(--seal); --ease: cubic-bezier(.2, .7, .2, 1);
  --red: #eb6834; --red-d: #d95926; --jade: #2a78d6; --amber: #eda100; --ice: #1baf7a;
  --rule: #e6e5e2; --rule-2: #cccaca; --tx: var(--ink); --tx-2: var(--ink-2); --tx-3: #6b696e;
}

.amz { position: relative; overflow: clip; }
.amz section.amz-sec { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.amz section.amz-sec:nth-of-type(even) { background: var(--band); }
.amz section.amz-sec:nth-of-type(even) .panel, .amz section.amz-sec:nth-of-type(even) .mcard, .amz section.amz-sec:nth-of-type(even) .ring,
.amz section.amz-sec:nth-of-type(even) .case, .amz section.amz-sec:nth-of-type(even) .own-grid li, .amz section.amz-sec:nth-of-type(even) .adstats > div { background: var(--paper); }

/* ---------- hero ---------- */
.amz-hero { position: relative; padding-block: clamp(40px, 8vw, 96px) clamp(48px, 7vw, 88px); isolation: isolate; }
.amz-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .3;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 85%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 85%, transparent 100%); }
.amz-kicker { font-size: 12px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 18px; color: var(--ink); max-width: 60ch; line-height: 1.6; }
.amz-hero h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 600; max-width: 18ch; line-height: 1.1; }
.amz-lead { margin: 22px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-3); max-width: 46em; }
.amz-kpis { margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.amz-kpis .k { padding: 22px 18px 0 0; }
.amz-kpis dt { font-size: clamp(34px, 3.9vw, 56px); font-weight: 300; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amz-kpis dd { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-3); max-width: 18ch; }
.amz-note { margin: 26px 0 0; font-size: 13px; color: var(--ink-3); max-width: 60em; letter-spacing: .3px; }
.amz-down { display: none; }

/* ---------- section heads, as .split in /sheridan ---------- */
.amz-head { display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: auto 1fr; gap: 0 clamp(24px, 5vw, 72px); align-items: start; margin-bottom: clamp(32px, 5vw, 56px); }
.amz-no { grid-column: 1; grid-row: 1; font-size: 12px; font-weight: 400; letter-spacing: 1.5px; margin: 0 0 14px; color: var(--accent); }
.amz-head h2 { grid-column: 1; grid-row: 2; font-size: clamp(30px, 3.6vw, 44px); font-weight: 400; }
.amz-head > p:last-child:not(.amz-no) { grid-column: 2; grid-row: 1 / span 2; color: var(--ink-3); margin: 0; }
.amz-head h2:last-child { grid-column: 1 / -1; }
.amz-src { margin-top: 18px; font-size: 13px; color: var(--ink-3); letter-spacing: .3px; }

/* ---------- panels: white cards, square, hairline ---------- */
.panel { position: relative; margin: 0; background: #fbfaf8; padding: clamp(20px, 3vw, 36px); }
.panel figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 18px; font-size: 12px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 18px; }
.panel .cap { margin: 14px 0 0; color: var(--ink-3); font-size: 15px; line-height: 1.6; letter-spacing: 0; }
.amz .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); align-items: stretch; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; letter-spacing: .5px; text-transform: none; color: var(--ink-3); }
.legend > span, .legend em { display: inline-flex; align-items: center; gap: 7px; font-style: normal; }
.legend > span::before { content: ""; width: 14px; height: 2px; background: currentColor; }
.lg-sales::before, .lg-brand::before, .lg-orders::before, .lg-re::before, .lg-planned::before { background: var(--red) !important; }
.lg-sess::before, .lg-market::before, .lg-hold::before { background: var(--jade) !important; }
.lg-spend::before { background: var(--tx-3) !important; } .lg-known::before { background: var(--amber) !important; }

/* svg chart text, as /data-analytics */
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz svg text { fill: var(--tx-3); font: 300 12px/1 Outfit, sans-serif; font-variant-numeric: tabular-nums; }
.viz .grid line { stroke: var(--rule); }
.tip { position: absolute; z-index: 5; pointer-events: none; padding: 9px 12px; min-width: 120px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 6px 24px rgba(20, 19, 22, .12); font-size: 13px; line-height: 1.5; color: var(--ink); transform: translate(-50%, calc(-100% - 14px)); white-space: nowrap; }
.tip b { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--tx-3); font-weight: 400; margin-bottom: 4px; }
.tip i { display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; }

/* ---------- 01 ownership ---------- */
.own-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.own-grid li { position: relative; padding: 22px 22px 24px; background: #fbfaf8; border-top: 2px solid var(--accent); transition: transform .4s var(--ease), box-shadow .4s; }
.own-grid li:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -22px rgba(20, 19, 22, .35); }
.own-grid b { font-size: 12px; font-weight: 400; letter-spacing: 1.5px; color: var(--accent); }
.own-grid h3 { font-size: 19px; font-weight: 400; margin: 12px 0 8px; letter-spacing: 0; }
.own-grid p { font-size: 15px; color: var(--ink-3); line-height: 1.5; margin: 0; }
.own-grid li.off { background: transparent !important; border-top: 2px dashed var(--line); }
.own-grid li.off b, .own-grid li.off h3 { color: var(--tx-3); }
.own-grid li.off:hover { transform: none; box-shadow: none; }

/* ---------- 02 scrolly curve ---------- */
.scrolly { display: grid; grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.viz.sticky { position: sticky; top: 96px; background: var(--paper); padding: 22px 18px 14px; margin: 0; }
.viz.sticky .legend { margin: 0 6px 8px; }
.steps-x { list-style: none; padding: 0; margin: 0; }
.steps-x li { min-height: 52vh; padding: 28px 0 28px 28px; border-left: 1px solid var(--line); position: relative; opacity: .3; transition: opacity .45s; display: flex; flex-direction: column; justify-content: center; }
.steps-x li:first-child { min-height: 40vh; } .steps-x li:last-child { min-height: 48vh; }
.steps-x li::before { content: ""; position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--band); border: 1.3px solid var(--tx-3); transition: all .35s; }
.steps-x li.on { opacity: 1; }
.steps-x li.on::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px rgba(235, 104, 52, .16); }
.steps-x time { font-size: 12px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red-d); font-variant-numeric: tabular-nums; }
.steps-x h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 400; margin: 10px 0 12px; }
.steps-x p { color: var(--ink-3); font-size: 17px; line-height: 1.6; margin: 0; }
.curve-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.curve-sales { stroke: var(--red); }
.curve-sess { stroke: var(--jade); stroke-width: 1.6; opacity: .9; }
.mark line { stroke: rgba(20, 19, 22, .28); stroke-dasharray: 2 4; }
.mark circle { fill: #fff; stroke: var(--tx-3); stroke-width: 1.5; transition: all .3s; }
.mark text { opacity: 0; transition: opacity .3s; }
.mark.on circle { fill: var(--red); stroke: #fff; r: 6; }
.mark.on text { opacity: 1; fill: var(--ink); font-weight: 400; }
.amz .viz .band { fill: rgba(235, 104, 52, .08); padding: 0; background: none; transition: x .5s var(--ease), width .5s var(--ease); }

/* ---------- 03 months ---------- */
.mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.mcard { margin: 0; padding: 20px 18px 16px; background: #fbfaf8; }
.mcard figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.mcard figcaption b { font-weight: 400; font-size: 17px; }
.mcard figcaption span { font-size: 12px; color: var(--tx-3); }
.mbars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 190px; align-items: end; }
.mbars li { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.mbars i { width: 100%; max-width: 34px; height: calc(var(--h) * 1%); background: var(--red); transform-origin: bottom; }
.mcard:nth-child(2) .mbars i { background: var(--jade); }
.mcard:nth-child(3) .mbars i { background: var(--amber); }
.mcard:nth-child(4) .mbars i { background: var(--ice); }
.mbars b { position: absolute; bottom: calc(var(--h) * 1% + 22px); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mbars span { margin-top: 8px; font-size: 12px; color: var(--tx-3); height: 14px; line-height: 14px; }
.mbars li:last-child i { opacity: .5; }

/* ---------- 04 search ---------- */
.funnel .fr { padding: 14px 0; border-top: 1px solid var(--rule); }
.funnel .fr:first-of-type { border-top: 0; padding-top: 4px; }
.funnel .fr > p { font-size: 15px; color: var(--ink-3); margin: 0 0 10px; }
.fb { position: relative; display: flex; align-items: center; gap: 10px; height: 24px; margin-top: 6px; }
.fb i { height: 100%; width: calc(var(--w) * 1%); }
.fb.brand i { background: var(--red); }
.fb.market i { background: var(--jade); }
.fb b { font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; }
.funnel .legend { margin-top: 16px; }
.imp-big { display: flex; align-items: baseline; gap: 12px; margin: -4px 0 6px; }
.imp-big b { font-size: clamp(48px, 5vw, 72px); font-weight: 300; line-height: 1; color: var(--red-d); }
.imp-big > span { color: var(--ink-3); font-size: 15px; }
.imp svg rect { transition: opacity .2s; } .imp svg rect:hover { opacity: .8; }

/* ---------- 05 ads ---------- */
.realloc .rr { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 10px 28px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.realloc .rr p { margin: 0; } .realloc .rr p b { display: block; font-weight: 400; } .realloc .rr p span { font-size: 13px; color: var(--tx-3); }
.rb > div { display: flex; align-items: center; gap: 10px; height: 20px; margin: 4px 0; }
.rb i { height: 100%; width: calc(var(--w) * 1%); }
.rb .spend i { background: repeating-linear-gradient(135deg, rgba(20, 19, 22, .28) 0 5px, rgba(20, 19, 22, .1) 5px 10px); }
.rb .orders i { background: var(--red); }
.rb b { font-size: 13.5px; font-weight: 400; font-variant-numeric: tabular-nums; }
.flow { margin-top: clamp(16px, 2.5vw, 32px); }
.flow-nodes { list-style: none; margin: 0; position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 3vw, 48px); padding: 10px 0 6px; }
.fn { padding: 18px 18px 20px; background: #fff; border: 1px solid var(--line); }
.fn b { display: block; font-weight: 400; font-size: 17px; margin-bottom: 6px; }
.fn span { font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.fn-0 { border-top: 2px solid var(--jade); } .fn-1 { border-top: 2px solid var(--amber); } .fn-2 { border-top: 2px solid var(--red); } .fn-3 { border-style: dashed; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.flow-lines path { fill: none; stroke: rgba(20, 19, 22, .2); stroke-width: 1.3; }
.flow-lines .ant { stroke: var(--red); stroke-width: 1.8; stroke-dasharray: 4 14; animation: amz-ants 1.1s linear infinite; }
@keyframes amz-ants { to { stroke-dashoffset: -18; } }
.adstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin: clamp(16px, 2.5vw, 32px) 0 0; }
.adstats > div { padding: 22px; background: #fbfaf8; }
.adstats dt { display: flex; align-items: baseline; gap: 12px; font-size: clamp(36px, 3.6vw, 52px); font-weight: 300; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.adstats dt s { font-size: .5em; color: var(--tx-3); text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.adstats dt i { font-style: normal; font-size: .45em; color: var(--red-d); }
.adstats dd { margin: 14px 0 0; } .adstats dd b { display: block; font-weight: 400; } .adstats dd span { font-size: 13px; color: var(--tx-3); }

/* ---------- 06 b2b ---------- */
.donut { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 20px; }
.donut svg, .ring svg { transform: rotate(-90deg); }
.donut .trk, .ring .trk { fill: none; stroke: var(--rule); stroke-width: 16; }
.donut .arc { fill: none; stroke: var(--red); stroke-width: 16; stroke-dasharray: var(--p) 100; }
.donut p { margin: 0; }
.donut p b { display: block; font-size: clamp(56px, 6vw, 88px); font-weight: 300; line-height: 1; color: var(--red-d); }
.donut p > span { display: block; margin-top: 12px; color: var(--ink-3); font-size: 16px; }
.rate .drow { padding: 12px 0; } .rate .drow + .drow { border-top: 1px solid var(--rule); }
.rate .drow p { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; font-weight: 400; }
.rate .drow p b { font-size: 28px; font-weight: 300; }
.rate .biz p b { color: var(--red-d); } .rate .con p b { color: var(--jade); }
.dgrid { display: grid; grid-template-columns: repeat(20, 1fr); gap: 5px; }
.dgrid i { aspect-ratio: 1; border-radius: 50%; background: var(--rule); transition: background-color .3s; }
.biz .dgrid i.on { background: var(--red); }
.con .dgrid i.on { background: var(--jade); }
.dgrid i.half.on { background: linear-gradient(90deg, currentColor 50%, var(--rule) 50%); }
.biz .dgrid i.half.on { color: var(--red); } .con .dgrid i.half.on { color: var(--jade); }

/* ---------- 07 line ---------- */
.hgrid { display: grid; grid-template-columns: 64px repeat(5, minmax(0, 1fr)); gap: 6px; align-items: center; }
.hrow { font-size: 13.5px; color: var(--ink-3); }
.hx { text-align: center; font-size: 12.5px; color: var(--tx-3); padding-top: 4px; }
.hc { position: relative; aspect-ratio: 1.15; display: grid; place-items: center; overflow: hidden; background: rgba(235, 104, 52, calc(.06 + var(--v) * .9)); }
.hc b { font-size: clamp(13px, 1.2vw, 16px); font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink); }
.hc[style*="--v:0.6"] b, .hc[style*="--v:0.7"] b, .hc[style*="--v:0.8"] b, .hc[style*="--v:0.9"] b, .hc[style*="--v:1"] b { color: #fff; }
.hlab { margin: 10px 0 0; padding-left: 70px; font-size: 12.5px; color: var(--tx-3); }

/* ---------- 08 supply ---------- */
.map-dot { fill: rgba(20, 19, 22, .16); }
.wh circle.core { fill: var(--red); }
.wh.plan circle.core { fill: var(--amber); }
.wh circle.ping { fill: none; stroke: var(--red); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: amz-ping 2.6s ease-out infinite; }
.wh.plan circle.ping { stroke: var(--amber); animation-delay: 1.3s; }
@keyframes amz-ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(5); opacity: 0; } }
.wh text { fill: var(--ink) !important; font-weight: 400 !important; font-size: 12.5px !important; }
.reach { fill: none; stroke-width: 1.3; opacity: .6; }

/* ---------- 09 money ---------- */
.water .wr { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr) 80px; gap: 16px; align-items: center; padding: 10px 0; }
.water .wr + .wr { border-top: 1px solid var(--rule); }
.water .wr p { font-size: 15px; color: var(--ink-3); margin: 0; }
.water .wr > b { text-align: right; font-weight: 400; font-variant-numeric: tabular-nums; font-size: 16px; }
.wt { position: relative; height: 24px; }
.wt i { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); background: rgba(20, 19, 22, .2); }
.water .is-total .wt i { background: rgba(20, 19, 22, .12); }
.water .is-total p, .water .is-total > b { color: var(--ink); }
.water .is-left .wt i { background: var(--red); }
.water .is-left p { color: var(--ink); } .water .is-left > b { color: var(--red-d); font-size: 24px; font-weight: 300; }

/* ---------- 10 health ---------- */
.rings { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.ring { position: relative; padding: 18px 14px; text-align: center; background: #fbfaf8; }
.ring svg { width: 92px; height: 92px; margin: 0 auto; display: block; }
.ring .arc { fill: none; stroke: var(--ice); stroke-width: 9; stroke-dasharray: var(--p) 100; }
.ring .trk { stroke-width: 9; }
.ring > b { position: absolute; left: 0; right: 0; top: 49px; font-size: 21px; font-weight: 300; font-variant-numeric: tabular-nums; }
.ring > span { display: block; margin-top: 12px; font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(24px, 3vw, 40px); }
.case { padding: 24px 24px 26px; background: #fbfaf8; border-top: 2px solid var(--amber); }
.case h3 { font-size: 20px; font-weight: 400; margin-bottom: 10px; }
.case p { color: var(--ink-3); font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- 11 method: the alert rules, on ink ---------- */
.term { background: var(--ink); color: #fff; overflow: hidden; font-size: 15px; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 18px; margin: 0; border-bottom: 1px solid #2f2d33; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #a9a7ae; }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a383e; } .term-bar i:first-child { background: var(--red); }
.term-bar span { margin-left: 10px; }
.term ol { list-style: none; margin: 0; padding: 14px 22px 20px; }
.term li { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 6px 20px; padding: 11px 0; border-bottom: 1px dashed #3a383e; }
.term li:last-child { border-bottom: 0; }
.term li b { color: #fff; font-weight: 400; } .term .th { color: #f2c35c; } .term .do { color: #8fb4e8; }
.values { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: -12px 0 28px; }
.values li { border: 1px solid var(--line); padding: 8px 14px; font-size: 15px; font-weight: 300; background: var(--paper); transition: border-color .25s, background .25s; }
.values li:hover { border-color: var(--accent); background: #f6f9fb; }

/* ---------- reveal ---------- */
.amz [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.amz [data-reveal].seen { opacity: 1; transform: none; }
.amz .amz-hero[data-reveal] { opacity: 1; transform: none; }
.no-js .amz [data-reveal] { opacity: 1; transform: none; }
.amz .mcard .mbars i { transform: scaleY(0); transition: transform 1.1s var(--ease); }
.amz .mcard.seen .mbars i { transform: scaleY(1); }
.amz .mcard .mbars li:nth-child(2) i { transition-delay: .08s; } .amz .mcard .mbars li:nth-child(3) i { transition-delay: .16s; } .amz .mcard .mbars li:nth-child(4) i { transition-delay: .24s; } .amz .mcard .mbars li:nth-child(5) i { transition-delay: .32s; }
.amz .mcard .mbars b { opacity: 0; transition: opacity .5s .9s; } .amz .mcard.seen .mbars b { opacity: 1; }
.amz .funnel .fb i, .amz .realloc .rb i { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.amz .funnel.seen .fb i, .amz .realloc.seen .rb i { transform: scaleX(1); }
.amz .realloc .orders i { transition-delay: .35s; }
.amz .donut .arc { stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s var(--ease) .2s; }
.amz .donut.seen .arc { stroke-dasharray: var(--p) 100; }
.amz .ring .arc { stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s var(--ease); }
.amz .rings.seen .ring .arc { stroke-dasharray: var(--p) 100; }
.amz .heat .hc { transform: scale(.6); opacity: 0; transition: transform .7s cubic-bezier(.2, 1.4, .3, 1), opacity .5s; transition-delay: calc(var(--i) * 70ms + 100ms); }
.amz .heat.seen .hc { transform: none; opacity: 1; }
.amz .water .wt i { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); }
.amz .water.seen .wt i { clip-path: inset(0 0 0 0); }
.amz .water.seen .wr:nth-child(2) .wt i { transition-delay: .15s; } .amz .water.seen .wr:nth-child(3) .wt i { transition-delay: .3s; } .amz .water.seen .wr:nth-child(4) .wt i { transition-delay: .45s; } .amz .water.seen .wr:nth-child(5) .wt i { transition-delay: .6s; } .amz .water.seen .wr:nth-child(6) .wt i { transition-delay: .75s; } .amz .water.seen .wr:nth-child(7) .wt i { transition-delay: 1s; }
.amz .term li { opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .4s; }
.amz .term.seen li { opacity: 1; transform: none; }
.amz .term.seen li:nth-child(2) { transition-delay: .35s; } .amz .term.seen li:nth-child(3) { transition-delay: .7s; } .amz .term.seen li:nth-child(4) { transition-delay: 1.05s; }

@media (prefers-reduced-motion: reduce) {
  .amz [data-reveal], .amz .mcard .mbars i, .amz .funnel .fb i, .amz .realloc .rb i, .amz .heat .hc, .amz .water .wt i, .amz .term li, .amz .mcard .mbars b { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .amz .donut .arc, .amz .ring .arc { stroke-dasharray: var(--p) 100 !important; }
  .flow-lines .ant, .wh circle.ping { animation: none !important; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .amz-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .amz-kpis .k:nth-child(n+4) { padding-top: 26px; }
  .own-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rings { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .amz-head { grid-template-columns: 1fr; }
  .amz-head > p:last-child:not(.amz-no) { grid-column: 1; grid-row: 3; margin-top: 16px; }
  .scrolly, .amz .two, .cases { grid-template-columns: minmax(0, 1fr); }
  .viz.sticky { top: 66px; z-index: 2; }
  .steps-x li { min-height: 44vh; background: linear-gradient(90deg, var(--paper) 60%, transparent); }
  .flow-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adstats { grid-template-columns: minmax(0, 1fr); }
  .realloc .rr { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .amz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amz-kpis .k:nth-child(n+3) { padding-top: 22px; }
  .amz-kpis .k:last-child { grid-column: 1 / -1; }
  .own-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .own-grid li { padding: 16px 14px 18px; } .own-grid h3 { font-size: 16px; } .own-grid p { font-size: 14px; }
  .mgrid, .rings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mbars { height: 150px; }
  .donut { grid-template-columns: minmax(0, 1fr); text-align: center; } .donut svg { max-width: 200px; margin: 0 auto; }
  .flow-nodes { grid-template-columns: minmax(0, 1fr); }
  .water .wr { grid-template-columns: minmax(0, 1fr) 70px; } .water .wr .wt { grid-column: 1 / -1; grid-row: 2; }
  .term li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hgrid { grid-template-columns: 44px repeat(5, minmax(0, 1fr)); gap: 4px; } .hlab { padding-left: 48px; }
  .viz svg text { font-size: 19px; }
  .viz.sticky svg text, [data-viz="curve"] svg text { font-size: 21px; }
}
