/* One bold outline drives both the visible fallback and the particle volume. */
#closing-title { width: 90vw; margin: .2em auto 0; font-weight: 900; }
#closing-title-mark { position: relative; display: block; width: 100%; aspect-ratio: 377 / 102; color: #fff; }
html:has(#menu-pages .header-menu-link[data-page="home"].--active) #closing-title-mark { top: 10vh; }
#closing-title-mark svg { display: block; width: 100%; height: 100%; }
#closing-title-mark svg { opacity:var(--contact-fallback-opacity,1); }

/* The address unfolds into a letter; the original scene keeps this collider. */
#closing-email.fullbuild-email {
  width: 18em; max-width: calc(100vw - 2rem); height: 4em; gap: .9em;
  padding: 0 1.3em; box-sizing: border-box; overflow: visible;
  color: #14262f; background: #fff; border: 1px solid #d7e3ea;
  text-decoration: none; cursor: pointer; perspective: 500px;
  transition: background .35s, border-color .35s, box-shadow .35s;
}
.fullbuild-email-address { position: relative; font: 500 .95em/1 IBMPlexMono, monospace; white-space: nowrap; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.fullbuild-email-arrow { position: relative; font-size: 1.25em; transition: transform .4s; }
#closing-email .fullbuild-envelope { display:block; flex:none; width:2.2em; height:2.2em; overflow:visible; transition:transform .45s cubic-bezier(.2,.8,.2,1); }
#closing-email .fullbuild-envelope path, #closing-email .fullbuild-envelope rect { vector-effect:non-scaling-stroke; }
.fullbuild-envelope-letter { opacity:0; transform:translateY(4px); transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .2s; }
.fullbuild-envelope-flap { transform-origin:18px 14px; transition:transform .35s; }
.fullbuild-email-sweep { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.fullbuild-email-sweep::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, #84d7ff80 48%, #fff 50%, transparent 70%); transform: translateX(-150%); }
#closing-email.fullbuild-email:is(:hover,:focus-visible) { background: #effaff; border-color: #8bd9ff; box-shadow: 0 0 0 5px #9fddff12, 0 8px 35px #84d7ff38; }
.fullbuild-email:is(:hover,:focus-visible) .fullbuild-envelope { transform: rotate(-4deg); }
.fullbuild-email:is(:hover,:focus-visible) .fullbuild-envelope-flap { transform: rotateX(175deg); }
.fullbuild-email:is(:hover,:focus-visible) .fullbuild-envelope-letter { transform: translateY(-7px); opacity:1; transition-delay: .12s; }
.fullbuild-email:is(:hover,:focus-visible) .fullbuild-email-address { transform: translateX(.12em); }
.fullbuild-email:is(:hover,:focus-visible) .fullbuild-email-arrow { transform: translate(.12em,-.12em); }
.fullbuild-email:is(:hover,:focus-visible) .fullbuild-email-sweep::before { animation: fullbuild-mail-sweep .75s .1s both; }
/* The ask over the CONTACT wordmark: what to send, when the reply comes, who the work is for. It sits in the wordmark's
   own block (#closing-content, centred 40% down), anchored above it and out of its flow, so it stays just above the
   letters at any width and height without moving them. */
#closing-ask { position:absolute; left:50%; bottom:calc(100% + 1.2em); transform:translateX(-50%); width:min(46ch,calc(100vw - 2.5rem)); margin:0; font:400 clamp(15px,1.15vw,19px)/1.55 "FullBuild Geist",sans-serif; color:#dfe8ee; text-align:center; text-wrap:balance; }
/* Home on wide screens: the robot's head rises between the ask and the letters, so the ask moves up out of its way. */
@media(min-width:701px) { html:has(#menu-pages .header-menu-link[data-page="home"].--active) #closing-ask { transform:translate(-50%, calc(var(--vh, 1vh) * -4)); } }
/* Home up to 1000 px tall on wide screens, and on phones under 381 px wide, the robot's hand and roof reach the second
   line: only the ask shows. */
@media(min-width:701px) and (max-height:1000px), (max-width:380px) { html:has(#menu-pages .header-menu-link[data-page="home"].--active) #closing-ask span { display:none; } }
/* Short landscape screens (a phone on its side): the wordmark fills the height and there is no free band for the ask,
   so it is left out there; the mail link stays. */
@media(max-height:560px) and (orientation:landscape) { #closing-ask { display:none; } }
#closing-ask span { display:block; margin-top:.6em; font:400 clamp(12px,.85vw,14px)/1.5 IBMPlexMono,monospace; color:#c7d3ff; }
/* Under 700 px tall the band above the wordmark holds only the ask itself. */
@media(max-height:700px) { #closing-ask span { display:none; } }
#closing-email.fullbuild-email:focus-visible { outline: 2px solid #84d7ff; outline-offset: 5px; }
@keyframes fullbuild-mail-sweep { to { transform: translateX(150%); } }
