/* v25 local review: separate the visual languages of chat and resume. */
body.v25-preview[data-page="chat"] .chat-intro::after {
  display:block!important; width:285px; height:185px; right:235px; bottom:-9px;
  background:url('assets/vela-grove.svg') center/contain no-repeat;
  opacity:.82; animation:v25-grove-sway 7.5s ease-in-out infinite alternate;
  transform-origin:bottom center;
}
@keyframes v25-grove-sway { from { transform:rotate(-1.1deg) translateY(2px); } to { transform:rotate(1.1deg) translateY(-3px); } }
body.v25-preview[data-page="chat"] .v24-evidence-tiles { display:none!important; }
.v25-leaf-fall { position:absolute; z-index:0; inset:94px 6% 12px 43%; overflow:hidden; pointer-events:none; transition:opacity .45s ease; --fall:330px; }
.v25-leaf-fall i { position:absolute; top:-22px; left:var(--x); width:11px; height:17px; border-radius:1px 95% 1px 95%; background:#a9c99a; box-shadow:inset 1px 0 0 #6f9b75a8; opacity:0; transform:rotate(-35deg); animation:v25-leaf-drift var(--duration) linear var(--delay) infinite; will-change:transform,opacity; }
.v25-leaf-fall i:nth-child(2) { width:8px; height:13px; background:#d8d9a1; }
.v25-leaf-fall i:nth-child(3) { width:10px; height:15px; background:#b5d6b5; }
.v25-leaf-fall i:nth-child(4) { width:8px; height:12px; background:#d7c894; }
.v25-leaf-fall i:nth-child(5) { width:9px; height:14px; background:#99c398; }
@keyframes v25-leaf-drift {
  0% { transform:translate3d(0,-12px,0) rotate(-35deg); opacity:0; }
  13% { opacity:.55; }
  65% { opacity:.34; }
  100% { transform:translate3d(var(--drift),var(--fall),0) rotate(230deg); opacity:0; }
}
.chat-log:has(.message-user) .v25-leaf-fall { opacity:0; }

/* Resume: the hero keeps the flower; the separate left-hand motion is paper and wind. */
body.v25-preview[data-page="resume"] .resume-aside { position:relative; }
.v25-wind-scene { position:sticky; top:145px; width:min(78%,250px); height:375px; margin:42px auto 75px; pointer-events:none; }
.v25-wind-scene svg { display:block; width:100%; height:100%; overflow:visible; }
.v25-paper-bird { opacity:0; filter:drop-shadow(0 3px 3px #4c8a6b2a); transition:opacity .3s ease; }

/* The card size and scroll runway are independent: more room to read per step. */
body.v25-preview .implementation.v23-stack-flow { height:clamp(1400px,200vh,1900px); }
body.v25-preview .v23-stack-frame { height:min(610px,calc(100svh - 94px)); min-height:565px; background:linear-gradient(133deg,#e8f2e1 2%,#edf6e9 55%,#e3f0df); border-color:#c4dbbe; box-shadow:0 20px 46px #3867461d; }
body.v25-preview .v23-stack-stage { isolation:isolate; background:#ddebd6; box-shadow:inset 0 0 0 1px #c9deca; }
body.v25-preview .v23-stack-card { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(230px,.72fr); align-items:center; gap:22px; padding:clamp(21px,3vw,33px); border-width:1px; box-shadow:0 17px 31px #355f3b33; }
body.v25-preview .v23-stack-card-1 { background:#fffef8; border-color:#d4dfc9; border-top:3px solid #b4d99a; }
body.v25-preview .v23-stack-card-2 { grid-template-columns:minmax(0,1.42fr) minmax(220px,.62fr); grid-template-rows:auto 1fr; align-items:start; background:#fafdF9; border-color:#cadecd; border-top:3px solid #9ccbb8; }
body.v25-preview .v23-stack-card-3 { background:#f7fbf2; border-color:#bddbb6; border-top:3px solid #81bc76; }
body.v25-preview .v23-stack-card-2 > .v23-card-eyebrow { grid-column:1/-1; margin:0; }
body.v25-preview .v23-stack-card-2 > .v22-flow-branches { grid-column:1; align-self:center; }
body.v25-preview .v23-stack-card-2 > .v25-flow-visual { grid-column:2; align-self:center; }
.v25-flow-visual { display:grid; align-content:center; gap:10px; min-height:140px; padding:18px; border:1px solid #dce6d2; border-radius:17px; background:linear-gradient(145deg,#ffffffdb,#f3f8ee); box-shadow:0 8px 19px #33664a10; color:#3c694c; }
.v25-flow-visual-2 { background:#f0f8f5; border-color:#d1e4da; }
.v25-flow-visual-3 { background:#eef7e8; border-color:#d0e5c6; }
.v25-mini-kicker { color:#659078; font:800 9px/1.3 monospace; letter-spacing:.14em; }
.v25-flow-visual > small { color:#668371; font-size:10px; }
.v25-mini-input { display:flex; align-items:center; gap:10px; min-height:43px; padding:7px 9px; border:1px solid #d2e3cb; border-radius:11px; background:#fff; font-size:12px; }
.v25-mini-input i { display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:8px; background:#e6f4d9; font-size:13px; font-style:normal; }
.v25-mini-input b { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#264b34; }
.v25-mini-input em { margin-left:auto; font-style:normal; }
.v25-mini-route { display:grid; gap:6px; }
.v25-mini-route > span { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; border:1px solid #d4e6df; border-radius:9px; background:#fff; }
.v25-mini-route b { color:#2d624e; font:800 11px/1 monospace; }
.v25-mini-route small { color:#67877a; font-size:10px; }
.v25-mini-proof { display:flex; align-items:center; gap:11px; padding:11px; border:1px solid #d2e5c9; border-radius:11px; background:#fff; }
.v25-mini-proof i { display:grid; place-items:center; flex:none; width:31px; height:31px; border-radius:10px; background:#deefcf; color:#377a4a; font-size:17px; font-style:normal; }
.v25-mini-proof b,.v25-mini-proof small { display:block; }
.v25-mini-proof b { color:#2d5d3d; font-size:12px; }
.v25-mini-proof small { margin-top:4px; color:#6d8771; font-size:10px; }

@media(max-width:720px) {
  body.v25-preview[data-page="chat"] .chat-intro::after { width:93px; height:88px; right:4px; top:16px; bottom:auto; opacity:.8; }
  .v25-leaf-fall { inset:95px 8px 8px 74%; --fall:95px; }
  .v25-leaf-fall i { animation-duration:8s; }
  .v25-leaf-fall i:nth-child(n+3) { display:none; }
  .v25-wind-scene { display:none; }
  body.v25-preview .nav-links a[href$="ai-chat.html"],body.v25-preview .nav-links a[href$="ai-chat.html"]:hover {
    justify-self:center!important; width:calc(100% - 18px)!important; max-width:65px!important;
    height:29px!important; min-height:29px!important; padding:0!important; border-radius:999px!important;
  }
  body.v25-preview .nav-links a[href$="ai-chat.html"]::before { inset:-4px; }
  body.v25-preview .implementation.v23-stack-flow { height:205svh; min-height:1120px; }
  body.v25-preview .v23-stack-frame { height:min(615px,calc(100svh - 112px)); min-height:515px; padding:17px 15px 14px; }
  body.v25-preview .v23-stack-stage { min-height:250px; }
  body.v25-preview .v23-stack-card,body.v25-preview .v23-stack-card-2 { display:flex; flex-direction:column; align-items:stretch; justify-content:center; gap:10px; padding:17px 18px; }
  body.v25-preview .v23-stack-card-2 { justify-content:flex-start; }
  body.v25-preview .v23-stack-card-2 > .v22-flow-branches { align-self:stretch; width:100%; }
  body.v25-preview .v23-stack-card-2 .v25-flow-visual { display:none; }
  body.v25-preview .v25-flow-visual { min-height:0; padding:8px 10px; gap:5px; border-radius:10px; }
  body.v25-preview .v25-flow-visual .v25-mini-kicker,body.v25-preview .v25-flow-visual > small { display:none; }
  body.v25-preview .v25-mini-input { min-height:31px; padding:3px 7px; font-size:10px; }
  body.v25-preview .v25-mini-input i { width:18px; height:18px; font-size:10px; }
  body.v25-preview .v25-mini-proof { padding:5px 7px; }
  body.v25-preview .v25-mini-proof i { width:22px; height:22px; font-size:13px; }
  body.v25-preview .v25-mini-proof b { font-size:10px; }
  body.v25-preview .v25-mini-proof small { font-size:9px; }
}
@media(prefers-reduced-motion:reduce) {
  body.v25-preview[data-page="chat"] .chat-intro::after { animation:none!important; }
  .v25-leaf-fall { display:none!important; }
}
@media(max-width:720px) and (max-height:700px) {
  body.v25-preview .v23-stack-frame { height:calc(100svh - 112px); min-height:0; padding-bottom:8px; }
  body.v25-preview .v23-stack-stage { min-height:205px; margin-bottom:7px; }
  body.v25-preview .v23-stack-card-2 { padding:12px 15px; gap:5px; }
  body.v25-preview .v23-stack-card-2 .v23-card-eyebrow { margin-bottom:3px; }
  body.v25-preview .v23-stack-card-2 .v22-flow-branches { gap:6px; }
  body.v25-preview .v23-stack-card-2 .v22-flow-branches > div { padding:6px 8px; }
  body.v25-preview .v23-stack-card-2 .v22-flow-branches strong { font-size:15px; }
  body.v25-preview .v23-stack-card-2 .v22-flow-branches small { margin-top:3px; font-size:9px; line-height:1.35; }
}
