/* One curved portrait card, permanently part of the footer. */
.footer-card-trigger{display:inline-flex;align-items:center;gap:10px;min-height:44px;flex-shrink:0;border:0;background:none;color:var(--plum);padding:0;font-size:10px;cursor:pointer;text-decoration:none}
.footer-card-trigger b{display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--vg-accent-light,#c4a47b);border-radius:50% 50% 50% 10px;font:17px Georgia,serif;font-weight:400;transition:background .3s,color .3s}
.footer-card-trigger:hover b{background:var(--plum);color:var(--paper)}
.site-footer.is-open .footer-card-trigger{color:var(--vg-dark-text,#f7f5f1)}.site-footer.is-open .footer-card-trigger b{border-color:color-mix(in srgb,var(--vg-accent-light,#c4a47b) 55%,transparent)}
.site-footer .footer-scene__content{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(270px,.92fr);gap:4%;align-items:center;padding-block:28px 28px}
.site-footer .footer-story h2{font-size:clamp(40px,4.6vw,68px)}
.site-footer .footer-story p{max-width:260px;font-size:14px;line-height:1.7}
.site-footer .footer-contacts>a{gap:16px}
.site-footer .footer-contact-copy strong{font-size:29px}
.site-footer .footer-contact-copy>span{overflow-wrap:anywhere;font-size:13px}
.footer-card-slot{justify-self:end;width:100%;max-width:315px;min-width:0;padding:0;filter:drop-shadow(0 18px 28px rgba(0,0,0,.35))}
.identity-card{position:relative;isolation:isolate;overflow:hidden;padding:25px 26px 18px;background:var(--vg-bg,#f7f5f1);color:var(--vg-ink,#141414);border-radius:90px 12px 72px 12px;scroll-margin-block:28px;text-align:left}
.identity-curves{position:absolute;inset:0;width:100%;height:100%;stroke:var(--vg-border,#d8cec0);stroke-width:.7;opacity:.75;pointer-events:none;z-index:-1}
.identity-header{display:flex;align-items:center;gap:12px;padding:0;margin:0;background:none;border:0;height:auto}
.identity-header>img{display:block;width:39px;height:39px;object-fit:contain}
.identity-header>span{font:10px/1.6 var(--sans);letter-spacing:.7px;color:var(--vg-muted,#5e5a54)}
.identity-body{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:20px 0 15px}
#share-card-title{font:44px/1 var(--serif);letter-spacing:-1px;margin:0;color:var(--vg-ink,#141414)}
#share-card-title>span{color:var(--vg-accent,#9a7b54)}
.identity-motto{font:italic 14px/1.6 Georgia,serif;color:var(--vg-muted,#5e5a54);margin:10px 0 0}
.identity-contacts{display:flex;flex-direction:column;gap:0;font:14px/1.5 var(--sans);color:var(--vg-ink,#3c3934);margin-top:10px;min-width:0}
.identity-contacts a{display:flex;align-items:center;min-height:44px;padding:8px 0;width:fit-content;max-width:100%;overflow-wrap:anywhere;color:inherit;letter-spacing:0;text-decoration:none}
.identity-contacts a:hover{color:var(--vg-accent,#9a7b54);text-decoration:underline;text-underline-offset:4px}
.identity-qr{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:center;width:182px;max-width:100%;min-width:0;text-decoration:none;padding:0 0 10px}
.identity-qr:before{content:'';position:absolute;top:0;left:0;right:0;aspect-ratio:1;border:1px solid var(--vg-border,#d8cec0);border-radius:50%;pointer-events:none}
.identity-qr:after{content:'';position:absolute;left:8px;right:8px;top:8px;aspect-ratio:1;border:1px solid color-mix(in srgb,var(--vg-accent-light,#c4a47b) 48%,transparent);border-left-color:transparent;border-right-color:transparent;border-radius:50%;transform:rotate(-22deg);pointer-events:none}
.identity-qr>img{display:block;width:calc(100% - 16px);height:auto;margin:8px;object-fit:contain}
.identity-qr>span{font:500 10px/1.7 var(--sans);letter-spacing:.8px;color:var(--vg-muted,#5e5a54);margin-top:9px;text-align:center}
.identity-card .identity-footer{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 0 0;margin:0;border:0;background:none}
.identity-footer:before{content:'';position:absolute;left:0;right:0;top:0;height:7px;border-top:1px solid var(--vg-border,#ddd6cb);border-radius:50%;pointer-events:none}
.identity-card .identity-website{display:flex;align-items:center;gap:7px;min-height:44px;font:13px/1.5 Georgia,serif;color:var(--vg-ink,#141414);letter-spacing:0;text-decoration:none}
.identity-website>span{font:12px var(--sans);color:var(--vg-accent,#9a7b54)}
.identity-tools{display:flex;gap:4px;align-items:center;margin-left:auto}
.identity-tools>a,.identity-tools>button{display:grid;place-items:center;flex-shrink:0;background:none;border:0;border-radius:50%;width:44px;height:44px;color:var(--vg-muted,#5e5a54);padding:10px;cursor:pointer}
.identity-tools>a:hover,.identity-tools>button:hover{background:var(--vg-band,#ece6dd);color:var(--vg-ink,#141414)}
.identity-tools svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.share-address{display:none;font:11px/1.7 var(--sans);color:var(--vg-muted,#5e5a54);margin-top:15px}.share-address.force-visible,.share-address:focus-within{display:block}
.share-address input{display:block;width:100%;min-height:44px;margin-top:6px;padding:10px 8px;background:var(--vg-surface,#fffdfa);border:1px solid var(--vg-border,#d8cec0);color:var(--vg-ink,#141414);border-radius:2px;font:16px var(--sans)}
#share-card-status{font:12px/1.7 var(--sans);color:var(--vg-muted,#5e5a54);margin:10px 0 0}
#share-card-status:empty{display:none}
.identity-card button:disabled{opacity:.5;cursor:wait}
.identity-card :focus-visible{outline:2px solid var(--vg-accent-light,#c4a47b);outline-offset:3px}
@media(min-width:701px) and (max-width:1050px){
 .site-footer .footer-scene__content{grid-template-columns:minmax(0,1fr) minmax(270px,.85fr);gap:25px 8%;align-items:start}
 .site-footer .footer-story{grid-column:1;grid-row:1}
 .site-footer .footer-contacts{grid-column:1;grid-row:2;align-self:start}
 .footer-card-slot{grid-column:2;grid-row:1/3;align-self:center}
}
@media(max-width:700px){
 .site-footer .footer-rail{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;padding-block:20px}
 .site-footer .footer-rail>.brand{grid-column:1/-1;justify-self:start}
 .footer-card-trigger>span{display:inline;font-size:12px}
 .footer-card-trigger b{width:35px;height:35px;font-size:15px}
 .footer-card-trigger{gap:8px;min-width:44px;justify-self:end;justify-content:center}
 #footer-reveal{gap:12px;min-height:44px;margin-left:0;justify-self:start}
 .site-footer .footer-scene__content{grid-template-columns:minmax(0,1fr);gap:31px;padding-block:28px 31px}
 .site-footer .footer-story h2{font-size:50px}
 .footer-card-slot{justify-self:center;width:100%;max-width:315px;margin-top:8px}
 .identity-card{padding:27px 29px 20px}
}
@media(max-width:360px){
 .identity-card .identity-footer{gap:2px}
 .identity-card .identity-website{gap:3px}
}
@media(prefers-reduced-motion:reduce){.identity-card *{transition:none!important}}

/* A slow light trace connects the contact scene; the card and QR stay still. */
.site-footer .footer-scene__content{position:relative;isolation:isolate}
.footer-flow{position:absolute;inset:-7% -5%;width:110%;height:114%;pointer-events:none;z-index:-1;overflow:visible;opacity:0;transition:opacity 1.2s ease}
.site-footer.is-open .footer-flow{opacity:1}
.footer-flow .flow-line{stroke:var(--vg-accent-light,#c4a47b);stroke-width:.65;opacity:.14}
.footer-flow .flow-trace{stroke:color-mix(in srgb,var(--vg-accent-light,#eedfc6) 70%,#ffffff 30%);stroke-width:1.2;stroke-linecap:round;stroke-dasharray:.045 .955;opacity:.38;animation:footer-light-pass 18s linear infinite;animation-play-state:paused}
.footer-flow .flow-trace-delayed{stroke-width:.8;opacity:.23;animation-duration:24s;animation-delay:-10s}
.identity-qr:after{animation:qr-orbit 24s linear infinite;animation-play-state:paused}
.site-footer.is-open.card-in-view .flow-trace,.site-footer.is-open.card-in-view .identity-qr:after{animation-play-state:running}
@keyframes footer-light-pass{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes qr-orbit{from{transform:rotate(-22deg)}to{transform:rotate(338deg)}}
@media(max-width:700px){.footer-flow{inset:5% -30%;width:160%;height:92%;opacity:.5}.footer-flow .flow-trace{opacity:.25}}
@media(prefers-reduced-motion:reduce){.footer-flow .flow-trace,.identity-qr:after{animation:none!important}.footer-flow .flow-trace{display:none}}
