/* ==========================================================================
   Section polish (2026-09-30) — loads after v4.css.
   Results: the wireframe drawing becomes an experiment readout window, the
   chart fragments get window chrome and draw in on scroll. How it works:
   a green pulse walks the five steps and returns along the feedback loop.
   Technology: agent cards sit inside the screen edge. Contact: no glow.
   Footer: LinkedIn link.
   ========================================================================== */

/* ---- Results · one colour rule in every window: grey = before/baseline, green = the outcome ---- */
#results{--rv-base:#4b4f56;}
.bento-frag .frag-row i{background:var(--rv-base);}
.bento-frag .frag-row.on i{background:var(--accent);}
.bento-frag .step,.bento-frag .curve{stroke:var(--accent);}
.bento-frag .frag-row span,.bento-frag .frag-foot span:first-child{color:#8a8f98;}

/* ---- Results · tall card: AI Max experiment readout ----------------------- */
/* every Results window runs off the card's right edge, like the fragments */
.bento-tall .rv-art{inset:40px -1px calc(50% + 6px) 32px;}
@media (max-width:767px){ .bento-tall .rv-art{position:relative;inset:auto;height:210px;margin:0 -25px 20px 0;} }
.rv-win{position:absolute;inset:0;border-radius:8px 0 0 8px;background:#0f1011;border:1px solid var(--color-border-primary);border-right:0;overflow:hidden;
  display:flex;flex-direction:column;font-family:var(--font-regular);}
.rv-bar{flex:none;display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid #ffffff0d;font-size:12px;font-weight:500;color:#8a8f98;}
.rv-bar .dots{display:flex;gap:4px;margin-right:6px;}
.rv-bar .dots i{width:7px;height:7px;border-radius:50%;background:#ffffff1f;}
.rv-bar b{font-weight:500;color:#8a8f98;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rv-bar .tag{margin-left:auto;flex:none;padding:3px 8px;border-radius:6px;background:#ffffff0d;font-size:11px;}
.rv-legend{display:flex;gap:16px;padding:14px 24px 4px;font-size:12px;color:#8a8f98;}
.rv-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:6px;vertical-align:0;}
.rv-legend .c{background:var(--rv-base);} .rv-legend .t{background:var(--accent);}
.rv-rows{flex:1;display:flex;flex-direction:column;justify-content:space-evenly;padding:4px 24px 14px;}
.rv-row{display:grid;grid-template-columns:88px 1fr 52px;align-items:center;gap:12px;font-size:12px;color:#8a8f98;}
.rv-row .bars{display:flex;flex-direction:column;gap:5px;}
.rv-row .bars i{display:block;height:8px;border-radius:2px;width:0;transition:width 1.1s cubic-bezier(.3,.8,.25,1);}
.rv-row .bars i.c{background:var(--rv-base);}
.rv-row .bars i.t{background:var(--accent);transition-delay:.25s;}
.rv-row .d{text-align:right;font-variant-numeric:tabular-nums;font-weight:500;color:var(--accent);opacity:0;transition:opacity .4s 1s;}
.rv-in .rv-row .bars i{width:var(--w);}
.rv-in .rv-row .d{opacity:1;}

/* ---- Results · fragments as small windows that draw in -------------------- */
.bento-frag{background:#0f1011;}
.bento-frag .frag-head{display:flex;align-items:center;margin:-18px -24px 2px;padding:10px 16px;border-bottom:1px solid #ffffff0d;font-size:12px;font-weight:500;color:#8a8f98;}
.bento-frag .frag-head:before{content:"";flex:none;width:7px;height:7px;margin-right:32px;border-radius:50%;background:#ffffff1f;box-shadow:11px 0 #ffffff1f,22px 0 #ffffff1f;}
.bento-frag .frag-row i{transform-origin:left;transform:scaleX(0);transition:transform 1s cubic-bezier(.3,.8,.25,1);}
.bento-frag .frag-row:nth-of-type(3) i{transition-delay:.15s;} .bento-frag .frag-row:nth-of-type(4) i{transition-delay:.3s;}
.bento-frag .frag-chart{clip-path:inset(0 100% 0 0);transition:clip-path 1.4s cubic-bezier(.4,0,.2,1);}
.bento-frag .frag-foot,.bento-frag .frag-row b{opacity:0;transition:opacity .4s 1.1s;}
.rv-in .bento-frag .frag-row i{transform:none;}
.rv-in .bento-frag .frag-chart{clip-path:inset(0 0 0 0);}
.rv-in .bento-frag .frag-foot,.rv-in .bento-frag .frag-row b{opacity:1;}

/* ---- How it works · a pulse walks the steps, then returns along the loop -- */
.flow-node{transition:border-color .4s ease,background .4s ease;}
.flow-node .flow-ico{transition:color .4s ease,box-shadow .4s ease;}
.flow-node.is-on{border-color:color-mix(in oklab,var(--accent) 45%,transparent);background:color-mix(in oklab,var(--accent) 4%,var(--color-bg-level-1));}
.flow-node.is-on .flow-ico{color:var(--accent);box-shadow:inset 0 0 0 1px color-mix(in oklab,var(--accent) 45%,transparent);}
.flow-arrow{background:var(--color-border-tertiary) linear-gradient(90deg,var(--accent),var(--accent)) no-repeat left/0% 100%;}
.flow-arrow.go{background-size:100% 100%;transition:background-size .5s cubic-bezier(.4,0,.2,1);}
.flow-return{transition:border-color .5s ease;}
.flow-return.go{border-color:color-mix(in oklab,var(--accent) 70%,transparent);}
.flow-return.go span{color:var(--color-text-secondary);}
@media (max-width:1240px){
  .flow-arrow{background:var(--color-border-tertiary) linear-gradient(180deg,var(--accent),var(--accent)) no-repeat top/100% 0%;}
  .flow-arrow.go{background-size:100% 100%;}
}

/* ---- Technology · agent cards inside the screen edge ---------------------- */
.tech-stage .annot[data-pos="tl"],.tech-stage .annot[data-pos="bl"]{left:24px;}
.tech-stage .annot[data-pos="tr"],.tech-stage .annot[data-pos="br"]{right:24px;}

/* ---- Contact · no green glow (matches the hero) --------------------------- */
.contact-split .contact-card{box-shadow:none;}

/* ---- Footer · LinkedIn ---------------------------------------------------- */
.footer-social{display:inline-flex;align-items:center;gap:8px;margin-top:16px;font-size:13px;color:var(--color-text-tertiary);transition:color .16s;}
.footer-social:hover{color:var(--color-text-primary);}
.footer-social svg{width:16px;height:16px;fill:currentColor;}

@media (prefers-reduced-motion:reduce){
  .rv-row .bars i,.bento-frag .frag-row i,.bento-frag .frag-chart,.flow-arrow{transition:none !important;}
}

/* ---- Technology · metric dividers: drawn per cell, not as 1px grid gaps (a gap could
   round to 0px at some widths and drop the Spend | Conversions line) ---------------- */
.metric-row{gap:0;background:var(--color-bg-level-1);}
.metric + .metric{box-shadow:inset 1px 0 0 var(--color-border-primary);}
@media (max-width:768px){
  .metric:nth-child(odd){box-shadow:none;}
  .metric:nth-child(n+3){border-top:1px solid var(--color-border-primary);}
  .metric:nth-child(even){box-shadow:inset 1px 0 0 var(--color-border-primary);}
}
