/* Virtual Evi: a digital projection of the approved IMG_0433 cutout.
   Scene motion only: no simulated facial rig or flat-photo head rotation. */
.evi { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 210px; align-items: center; min-height: 244px; margin: 26px 0 0; border-top: 1px solid #b8edb02b; border-bottom: 1px solid #b8edb017; background: radial-gradient(ellipse at 80% 70%,#b8edb009,transparent 65%); }
.evi__caption { display: flex; flex-direction: column; gap: 9px; padding: 22px 0; }
.evi__eyebrow { color: #b8edb0; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.evi__caption strong { color: #f4f6ef; font-size: clamp(19px,1.7vw,25px); font-weight: 500; letter-spacing: -.025em; }
.evi__description { color: #adbab2; font-size: 12px; line-height: 1.65; }
.evi__signature { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: #91aa9d; font-size: 8px; letter-spacing: .09em; }
.evi__signature i { width: 4px; height: 4px; background: #b8edb0; border-radius: 50%; box-shadow: 0 0 9px #b8edb080; }
.evi__space { position: relative; width: 210px; height: 244px; isolation: isolate; }
.evi__halo { position: absolute; inset: 15px -5px 0; background: radial-gradient(ellipse,#b8edb022,transparent 67%); }
.evi__arcs { position: absolute; width: 100%; height: 100%; inset: 0; color: #b8edb0; opacity: .6; transform: translate(var(--evi-light-x,0px),var(--evi-light-y,0px)); transition: transform 350ms ease-out; }
.evi__projection { position: absolute; width: 118px; height: 211px; left: 46px; top: 8px; }
.evi__portrait { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px #b8edb02a); }
.evi__coordinate { position: absolute; bottom: 2px; right: 0; font-size: 8px; letter-spacing: .16em; color: #91aa9d; }
@media (min-width: 821px) and (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .motion-running .evi__projection { animation: evi-suspend 7s ease-in-out infinite; }
    .motion-running .evi__halo { animation: evi-light 6s ease-in-out infinite; }
    .motion-running .evi__beacon { animation: evi-light 4s ease-in-out infinite; }
    .evi__projection { animation: none; }
    .evi__space { animation: evi-arrive 850ms cubic-bezier(.2,.75,.25,1) both; }
    @keyframes evi-suspend { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
    @keyframes evi-light { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
    @keyframes evi-arrive { from { opacity: .65; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
}
@media (min-width: 821px) and (max-width: 1100px) {
    .evi { grid-template-columns: 1fr 170px; }
    .evi__space { width: 170px; }
    .evi__projection { left: 26px; }
    .evi__signature { letter-spacing: 0; font-size: 7px; }
}
@media (max-width: 820px) {
    .evi { grid-template-columns: 1fr 150px; min-height: 176px; max-width: 530px; margin-top: 24px; }
    .evi__space { width: 150px; height: 176px; }
    .evi__projection { width: 83px; height: 148px; left: 34px; top: 9px; }
    .evi__caption { padding: 16px 0; gap: 7px; }
    .evi__signature { margin-top: 5px; }
    .evi__arcs { opacity: .35; }
    .evi__portrait { filter: none; }
}
@media (max-width: 360px) {
    .evi { grid-template-columns: 1fr 120px; }
    .evi__space { width: 120px; }
    .evi__projection { left: 19px; }
    .evi__eyebrow { font-size: 8px; }
    .evi__caption strong { font-size: 18px; }
    .evi__description { font-size: 11px; }
    .evi__signature { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .evi *, .evi *::before, .evi *::after { animation: none !important; transition: none !important; }
    .evi__arcs { transform: none; }
}
/* Reserve room for Evi within the desktop hero without covering the app. */
@media (min-width: 821px) {
    body[data-page="home"] .hero h1 { font-size: clamp(46px,4vw,58px); }
    body[data-page="home"] .hero__content { padding-bottom: 0; }
}
/* Stage 5V: one native button; one persistent, polite reply slot. */
.evi__caption { min-width: 0; }
.evi__reply-slot { display: block; min-height: 44px; margin-top: 3px; padding-right: 8px; font-size: 12px; line-height: 1.65; color: var(--brand); }
.evi__hint { color: #adbab2; font-size: 11px; }
.evi__trigger { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 20px; background: transparent; color: var(--brand); touch-action: manipulation; }
.evi__trigger:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.evi__trigger::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(ellipse at 50% 85%,#b8edb02b,transparent 65%); border: 1px solid #b8edb070; opacity: 0; pointer-events: none; }
.evi__pulse { position: absolute; inset: 70% 7% 5%; border: 1px solid #b8edb0; border-radius: 50%; background: radial-gradient(ellipse,#b8edb025,transparent 70%); opacity: 0; pointer-events: none; }
.hero:not(.motion-running) .evi__space { animation: none; }
.hero:not(.motion-running) .evi__arcs { transition: none; }
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    .motion-running .evi__trigger::before { transition: opacity 240ms ease; }
    .motion-running .evi__trigger:hover::before,
    .motion-running .evi__trigger:focus-visible::before { opacity: 1; }
    .motion-running .evi__space:has(.evi__trigger:hover) .evi__arcs,
    .motion-running .evi__space:has(.evi__trigger:focus-visible) .evi__arcs { opacity: 1; }
    .motion-running .evi__arcs { transition: transform 350ms ease-out, opacity 240ms ease; }
}
.hero:not(.motion-running) .evi__trigger::before { transition: none; }
/* Greeting uses the existing reply slot, without automatic live announcements. */
.evi__greeting { display: block; font-size: 12px; line-height: 1.65; }
@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
    .motion-running .evi--greeting .evi__arcs { opacity: .95; }
    .motion-running .evi--greeting .evi__pulse { animation: evi-greeting-light 900ms ease-out; }
    @keyframes evi-greeting-light { 0%,100% { opacity: 0; transform: scale(.9); } 35% { opacity: .65; transform: scale(1.05); } }
}
