/* PiatIQ page: "Cure is a guess", "What PiatIQ does" and the closing fan-out.
   Source of piatiq-extra.css (the step-sync keyframes are appended by the build step). Only transform / opacity / stroke-dashoffset animate,
   and only once a block is in view (.in). */

/* ---------- A. Cure is a guess ---------- */
.pg-why { background: #fff; }
.pw { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.pw-copy h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; }
.pw-copy > p { margin: 18px 0 0; max-width: 520px; color: var(--mute); font-size: 17px; line-height: 1.65; }
.sq { position: relative; display: inline-block; white-space: nowrap; color: var(--orange); }
.sq svg { position: absolute; left: 0; bottom: -12px; width: 100%; height: 14px; overflow: visible; }
.sq path { fill: none; stroke: var(--orange); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.in .sq path { animation: sqd 1.4s cubic-bezier(.65,0,.35,1) .7s forwards; }
@keyframes sqd { to { stroke-dashoffset: 0; } }

.pw-rows { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; max-width: 520px; isolation: isolate; }
.pw-rows li { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: baseline; padding: 14px 16px; border-radius: 16px; }
.pw-rows li::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; }
.pw-rows .r0::before { background: #fff1f1; }
.pw-rows .r1::before { background: #effaf3; }
.pw-rows b { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a99a8; }
.pw-rows .r0 b { color: #d1313a; } .pw-rows .r1 b { color: #15803d; }
.pw-rows span { font-size: 15px; line-height: 1.55; color: #3a4a5a; }
.pw-rows.in .r0::before { animation: pwr0 10s ease-in-out infinite; }
.pw-rows.in .r1::before { animation: pwr1 10s ease-in-out infinite; }
@keyframes pwr0 { 0%,1% { opacity: 0; } 4%,40% { opacity: 1; } 46%,100% { opacity: 0; } }
@keyframes pwr1 { 0%,44% { opacity: 0; } 50%,92% { opacity: 1; } 97%,100% { opacity: 0; } }

.pw-art { position: relative; aspect-ratio: 36 / 29; border-radius: 30px; background: radial-gradient(circle at 30% 20%, #fff6ea 0%, #ffe6c9 60%, #ffd9ae 100%); box-shadow: 0 40px 70px -46px rgba(16,33,47,.45); overflow: hidden; }
.pw-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(16,33,47,.09) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 85%); }
.w-svg { position: relative; display: block; width: 100%; height: 100%; padding: 6% 4% 3%; overflow: visible; }
.w-svg text { font-family: Inter, sans-serif; }
.w-t { font-size: 10.5px; font-weight: 700; fill: #4d5d6c; }
.w-bg { fill: #fff; stroke: rgba(11,32,54,.12); stroke-width: 6; }
.w-ring { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .3; }
.w-hand { stroke: #0b2036; stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: 50% 100%; }
.w-mould { fill: #fff; stroke: #0b2036; stroke-width: 3.5; }
.w-cav { fill: #fdf3e6; stroke: rgba(11,32,54,.25); stroke-width: 1.5; stroke-dasharray: 4 4; }
.w-tbg { fill: #e3e8ee; }
.w-tf { fill: var(--orange); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.6); }
.w-q { font-size: 56px; font-weight: 800; fill: #c25e00; transform-box: fill-box; transform-origin: center; }
.w-wire { fill: none; stroke: #0b2036; stroke-width: 3.5; stroke-linecap: round; }
.w-curve { fill: none; stroke: var(--orange); stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.w-ping { fill: rgba(247,134,30,.5); transform-box: fill-box; transform-origin: center; }
.w-chip { transform-box: fill-box; transform-origin: center; } .w-chip rect { fill: #0b2036; } .w-chip text { font-size: 11px; font-weight: 800; fill: #fff; letter-spacing: .04em; }
.w-guess, .w-meas { opacity: 0; }
.pw-tag { position: absolute; z-index: 2; left: 18px; top: 18px; padding: 7px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: 0; }
.pw-tag.t0 { background: #fee2e2; color: #d1313a; } .pw-tag.t1 { background: #dcfce7; color: #15803d; }
.pw-art.in .w-ring { animation: wring 6s linear infinite; }
.pw-art.in .w-hand { animation: whand 6s linear infinite; }
.pw-art.in .w-tf { animation: wtf 5s steps(1, end) infinite; }
.pw-art.in .w-q { animation: wq 1.6s ease-in-out infinite; }
.pw-art.in .w-guess { animation: wg 10s ease-in-out infinite; }
.pw-art.in .w-meas { animation: wm 10s ease-in-out infinite; }
.pw-art.in .pw-tag.t0 { animation: wg 10s ease-in-out infinite; }
.pw-art.in .pw-tag.t1 { animation: wm 10s ease-in-out infinite; }
.pw-art.in .w-curve { animation: wcv 10s linear infinite; }
.pw-art.in .w-ping { animation: wping 1.8s ease-out infinite; }
.pw-art.in .w-chip { animation: wchip 10s cubic-bezier(.34,1.56,.64,1) infinite; }
.pw-art.in .w-wire { animation: wwire 10s linear infinite; stroke-dasharray: 1; }
@keyframes wring { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes whand { to { transform: rotate(360deg); } }
@keyframes wtf { 0% { transform: scaleY(.3); } 14% { transform: scaleY(.85); } 31% { transform: scaleY(.45); } 48% { transform: scaleY(1); } 63% { transform: scaleY(.55); } 80% { transform: scaleY(.75); } }
@keyframes wq { 0%,100% { opacity: .35; transform: scale(.85) rotate(-8deg); } 50% { opacity: 1; transform: scale(1.15) rotate(8deg); } }
@keyframes wg { 0%,40% { opacity: 1; } 46%,96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes wm { 0%,42% { opacity: 0; } 49%,92% { opacity: 1; } 97%,100% { opacity: 0; } }
@keyframes wcv { 0%,50% { stroke-dashoffset: 1; } 74%,92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes wping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes wchip { 0%,60% { opacity: 0; transform: scale(.5); } 68%,92% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes wwire { 0%,44% { stroke-dashoffset: 1; } 56%,100% { stroke-dashoffset: 0; } }

/* ---------- B. What PiatIQ does ---------- */
.pg-do .phead h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 780px; }
.pd { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; margin-top: 48px; isolation: isolate; }
.pd-art { margin: 0; padding: 22px 22px 14px; border-radius: 30px; background: #fff; box-shadow: 0 40px 70px -46px rgba(16,33,47,.45), 0 0 0 1px rgba(16,33,47,.05); }
.pd-art figcaption { margin-top: 4px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.pd-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pd-svg text { font-family: Inter, sans-serif; }
.pd-t { font-size: 11px; font-weight: 700; fill: #4d5d6c; } .pd-ax { fill: #8a99a8; }
.pd-axes line { stroke: rgba(11,32,54,.3); stroke-width: 2; stroke-linecap: round; }
.pd-zh { fill: rgba(247,134,30,.1); } .pd-zc { fill: rgba(59,155,255,.1); }
.pd-zh.pd-on1 { fill: rgba(247,134,30,.28); opacity: 0; } .pd-zc.pd-on2 { fill: rgba(59,155,255,.28); opacity: 0; }
.pd-band { fill: none; stroke: #22c55e; stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pd-gold { fill: none; stroke: #15803d; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pd-prod { fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; }
.pd-prod.p1 { stroke: #3b9bff; } .pd-prod.p2 { stroke: #8b5cf6; }
.pd-pill { opacity: 0; transform-box: fill-box; transform-origin: center; }
.pd-pill rect { fill: #fff; stroke: rgba(11,32,54,.2); stroke-width: 1.5; } .pd-pill text { font-size: 11px; font-weight: 800; fill: #0b2036; }
.pd-rec rect { fill: #0b2036; stroke: none; } .pd-rec text { fill: #fff; letter-spacing: .02em; }
.pd-recdot { fill: #ef4444; }
.pd-l1 rect { stroke: #f7861e; } .pd-l1 text { fill: #c25e00; } .pd-l2 rect { stroke: #3b9bff; } .pd-l2 text { fill: #1d6fd1; }
.pd-l3 rect { fill: #15803d; stroke: none; } .pd-l3 text { fill: #fff; }
.pd.in .pd-gold { animation: pdg 14s linear infinite; }
.pd.in .pd-rec { animation: pdrec 14s ease-in-out infinite; }
.pd.in .pd-recdot { animation: pdblink .9s ease-in-out infinite; }
.pd.in .pd-on1 { animation: pdz1 14s ease-in-out infinite; }
.pd.in .pd-on2 { animation: pdz2 14s ease-in-out infinite; }
.pd.in .pd-l1 { animation: pdl1 14s cubic-bezier(.34,1.56,.64,1) infinite; }
.pd.in .pd-l2 { animation: pdl2 14s cubic-bezier(.34,1.56,.64,1) infinite; }
.pd.in .pd-l3 { animation: pdl3 14s cubic-bezier(.34,1.56,.64,1) infinite; }
.pd.in .pd-band { animation: pdband 14s ease-in-out infinite; }
.pd.in .pd-prod { animation: pdprod 14s linear infinite; }
.pd.in .pd-prod.p1 { animation-delay: .25s; } .pd.in .pd-prod.p2 { animation-delay: .5s; }
@keyframes pdg { 0% { stroke-dashoffset: 1; opacity: 1; } 28% { stroke-dashoffset: 0; } 95% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pdrec { 0%,2% { opacity: 0; transform: scale(.7); } 6%,29% { opacity: 1; transform: scale(1); } 33%,100% { opacity: 0; } }
@keyframes pdblink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes pdz1 { 0%,30% { opacity: 0; } 34%,46% { opacity: 1; } 52%,100% { opacity: 0; } }
@keyframes pdz2 { 0%,47% { opacity: 0; } 51%,64% { opacity: 1; } 70%,100% { opacity: 0; } }
@keyframes pdl1 { 0%,31% { opacity: 0; transform: scale(.6); } 36%,46% { opacity: 1; transform: scale(1); } 50%,100% { opacity: 0; } }
@keyframes pdl2 { 0%,48% { opacity: 0; transform: scale(.6); } 53%,63% { opacity: 1; transform: scale(1); } 67%,100% { opacity: 0; } }
@keyframes pdl3 { 0%,78% { opacity: 0; transform: scale(.6); } 84%,93% { opacity: 1; transform: scale(1); } 98%,100% { opacity: 0; } }
@keyframes pdband { 0%,64% { opacity: 0; } 70%,94% { opacity: .2; } 99%,100% { opacity: 0; } }
@keyframes pdprod { 0%,66% { stroke-dashoffset: 1; opacity: .9; } 82%,94% { stroke-dashoffset: 0; opacity: .9; } 99%,100% { stroke-dashoffset: 0; opacity: 0; } }

.pd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pd-steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 18px 18px 4px; border-radius: 18px; }
.pd-steps li::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff3e3; opacity: 0; }
.pd-steps b { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 12px; border-radius: 50%; background: #fff; border: 2px solid rgba(247,134,30,.45); font-size: 13px; font-weight: 800; color: #c25e00; }
.pd-steps strong { display: block; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
.pd-steps span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--mute); }

/* ---------- C. golden sample fan-out ---------- */
.pg-gs { background: #fff; padding-bottom: 96px; }
.gs-statement { margin: 0 auto; max-width: 880px; text-align: center; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; font-weight: 800; letter-spacing: -.03em; }
.gs-statement em { font-style: normal; color: var(--orange); }
.gs { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; max-width: 960px; margin: 64px auto 0; }
.gs-node { position: relative; display: grid; justify-items: center; gap: 12px; }
.gs-node svg { position: relative; z-index: 1; width: 180px; height: 180px; }
.gs-node b { position: relative; z-index: 1; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.gs-disc { fill: #fff; stroke: #15803d; stroke-width: 4; }
.gs-curve { fill: none; stroke: #15803d; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.gs-pulse { position: absolute; left: 50%; top: 90px; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; border: 2px solid rgba(34,197,94,.5); opacity: 0; }
.gs.in .gs-pulse { animation: gspulse 3s ease-out infinite; } .gs.in .gs-pulse.p2 { animation-delay: 1.5s; }
.gs.in .gs-dotpk { animation: wping 1.8s ease-out infinite; }
@keyframes gspulse { 0% { opacity: .7; transform: scale(.95); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes gscv { 0% { stroke-dashoffset: 1; } 40%,85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }

.gs-tiles { position: relative; display: grid; gap: 14px; padding-left: 76px; }
.gs-tiles::before { content: ""; position: absolute; left: 0; top: 52px; bottom: 52px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, var(--orange), rgba(247,134,30,.4)); transform: scaleY(0); transform-origin: top; transition: transform 1s cubic-bezier(.65,0,.35,1) .4s; }
.gs.in .gs-tiles::before { transform: scaleY(1); }
.gs-tiles::after { content: ""; position: absolute; left: -40px; top: 50%; width: 40px; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, rgba(247,134,30,.85) 0 8px, transparent 8px 16px); }
.gs-tile { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: center; min-height: 104px; padding: 16px 20px; border-radius: 22px; transition: background-color .3s, transform .35s cubic-bezier(.16,1,.3,1); }
.gs-tile::before { content: ""; position: absolute; left: -76px; top: 50%; width: 76px; height: 3px; margin-top: -1.5px; background: repeating-linear-gradient(90deg, rgba(247,134,30,.85) 0 8px, transparent 8px 16px); }
.gs.in .gs-tile::before { animation: gspipe .8s linear infinite; }
@keyframes gspipe { to { background-position: 16px 0; } }
.gs-dot { position: absolute; left: -76px; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5px; border-radius: 50%; background: #f7861e; box-shadow: 0 0 0 5px rgba(247,134,30,.22); opacity: 0; }
.gs.in .gs-dot { animation: gsdot 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * .45s + .9s); }
@keyframes gsdot { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: 1; } 55% { opacity: 1; transform: translateX(80px); } 62%,100% { opacity: 0; transform: translateX(80px); } }
.gs-tile:hover { background: #fff8f0; transform: translateX(6px); }
.gs-ic svg { display: block; width: 56px; height: 56px; overflow: visible; }
.gs-tile h3 { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.gs-tile p { margin: 4px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--mute); }
.gs-spin { transform-origin: 0 0; } .gs.in .gs-spin { animation: spin 7s linear infinite; } .gs.in .gs-spin.slow { animation-duration: 4s; }
.gs-ping { fill: rgba(247,134,30,.5); transform-box: fill-box; transform-origin: center; } .gs.in .gs-ping { animation: wping 1.8s ease-out infinite; }
.pg-gs .pair2 { margin-top: 88px; }

@media (max-width: 1000px) { .pw { gap: 40px; } .pd { gap: 36px; } }
@media (max-width: 900px) {
  .pw { grid-template-columns: 1fr; }
  .pw-art { --rx: 0px !important; }
  .pd { grid-template-columns: 1fr; margin-top: 36px; }
  .gs { grid-template-columns: 1fr; gap: 28px; margin-top: 44px; }
  .gs-node { justify-items: center; }
  .gs-tiles { padding-left: 40px; }
  .gs-tiles::after { display: none; }
  .gs-tiles::before { left: 8px; top: 40px; bottom: 40px; }
  .gs-tile::before { left: -32px; width: 32px; }
  .gs-dot { display: none; }
  .pg-gs { padding-bottom: 64px; } .pg-gs .pair2 { margin-top: 56px; }
}
@media (max-width: 560px) {
  .pw-rows li { grid-template-columns: 1fr; gap: 2px; }
  .pd-art { padding: 14px 12px 8px; }
  .pd-svg .pd-t, .pd-pill text { font-size: 16px; }
  .pd-svg .pd-ax, .pd-rec { display: none; }
  .gs-tile { grid-template-columns: 48px 1fr; gap: 14px; padding: 12px 8px; min-height: 0; }
  .gs-tile h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-why *, .pg-do *, .pg-gs *, .pg-gs *::before { animation: none !important; transition: none !important; }
  .sq path { stroke-dashoffset: 0; } .w-meas { opacity: 1; } .w-guess { opacity: 0; } .pw-tag.t1 { opacity: 1; }
  .w-curve, .pd-gold, .pd-prod { stroke-dashoffset: 0; } .pd-band { opacity: .2; } .pd-l3 { opacity: 1; } .w-chip { opacity: 1; }
  .gs-tiles::before { transform: scaleY(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* generated: step highlight timings */
.pd.in .pd-steps li:nth-child(1)::before { animation: pdc1 14s ease-in-out infinite; }
.pd.in .pd-steps li:nth-child(1) b { animation: pdb1 14s ease-in-out infinite; }
.pd.in .pd-steps li:nth-child(2)::before { animation: pdc2 14s ease-in-out infinite; }
.pd.in .pd-steps li:nth-child(2) b { animation: pdb2 14s ease-in-out infinite; }
.pd.in .pd-steps li:nth-child(3)::before { animation: pdc3 14s ease-in-out infinite; }
.pd.in .pd-steps li:nth-child(3) b { animation: pdb3 14s ease-in-out infinite; }
.pd.in .pd-steps li:nth-child(4)::before { animation: pdc4 14s ease-in-out infinite; }
.pd.in .pd-steps li:nth-child(4) b { animation: pdb4 14s ease-in-out infinite; }
@keyframes pdc1 { 0%,0%,33%,100% { opacity: 0; } 2%,30% { opacity: 1; } }
@keyframes pdb1 { 0%,0%,33%,100% { background: #fff; color: #c25e00; } 2%,30% { background: var(--orange); color: #fff; } }
@keyframes pdc2 { 0%,30%,50%,100% { opacity: 0; } 32%,47% { opacity: 1; } }
@keyframes pdb2 { 0%,30%,50%,100% { background: #fff; color: #c25e00; } 32%,47% { background: var(--orange); color: #fff; } }
@keyframes pdc3 { 0%,47%,68%,100% { opacity: 0; } 49%,65% { opacity: 1; } }
@keyframes pdb3 { 0%,47%,68%,100% { background: #fff; color: #c25e00; } 49%,65% { background: var(--orange); color: #fff; } }
@keyframes pdc4 { 0%,65%,96%,100% { opacity: 0; } 67%,93% { opacity: 1; } }
@keyframes pdb4 { 0%,65%,96%,100% { background: #fff; color: #c25e00; } 67%,93% { background: var(--orange); color: #fff; } }
