/*
 * Footer: a short note + a textual CTA sitting in the sky of the tree-breeze animation.
 * Restyle with: --ft-ink, --ft-green (link + underline), --ft-font.
 */

.site-footer { position: relative; margin-top: 24px; line-height: 0; }

.footer-note {
  --ft-ink: #1d1d1f;
  --ft-green: #7b8a24;
  position: absolute; z-index: 1; left: 0; right: 0; top: 3%;
  text-align: center; line-height: 1.3; font-family: var(--ft-font, inherit); color: var(--ft-ink);
  padding: 0 16px;
}
.footer-quote { margin: 0; font-size: clamp(20px, 2.6vw, 30px); font-style: italic; display: inline-flex; align-items: center; gap: .45em; }
.footer-quote .spark { width: .5em; height: .5em; flex: none; animation: ft-twinkle 3.2s ease-in-out infinite; }
.footer-quote .spark:last-child { animation-delay: 1.6s; }
@keyframes ft-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.7) rotate(25deg); opacity: .6; } }

.footer-cta { margin: .25em 0 0; font-size: clamp(20px, 2.6vw, 30px); }
.footer-cta a {
  position: relative; color: var(--ft-green); text-decoration: none; padding-bottom: .12em; white-space: nowrap;
  transition: color .3s ease;
}
/* underline that fades in from the left, like a brush stroke */
.footer-cta a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--ft-green) 55%);
  transform-origin: right; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.footer-cta a:hover { color: #5f6c16; }
.footer-cta a:hover::after { transform: scaleX(1.06); background: linear-gradient(90deg, transparent 0%, var(--ft-green) 20%); }
.footer-cta a:focus-visible { outline: 2px solid var(--ft-green); outline-offset: 4px; border-radius: 4px; }

/* phones: the art is short, so the note sits above it and overlaps only the faded sky */
@media (max-width: 640px) {
  .footer-note { position: relative; top: auto; margin-bottom: -6%; }
}

@media (prefers-reduced-motion: reduce) { .footer-quote .spark { animation: none; } }

/* tapri variant: the text gets its own space above the art, with room to breathe */
.site-footer.tapri { margin-top: 120px; }
/* sizes match the rest of the page: 20px like the work-section bridge line, 22px like the hero copy */
.site-footer.tapri .footer-note { position: static; padding: 0 16px; margin: 0 auto calc(-1 * clamp(8px, 3vw, 28px)); position: relative; z-index: 1; }
.site-footer.tapri .footer-quote { font-size: 20px; color: #8a8597; font-style: italic; }
.site-footer.tapri .footer-cta { margin-top: .3em; font-size: 22px; }
@media (max-width: 640px) {
  .site-footer.tapri .footer-quote { font-size: 18px; }
  .site-footer.tapri .footer-cta { font-size: 20px; }
}

/* tapri CTA: a quiet link (underlined text + arrow); a faint tint shows only on hover / tap */
.footer-cta a.ft-pill {
  display: inline-flex; align-items: center; gap: .3em; vertical-align: .02em;
  padding: .08em .36em .12em; margin: 0 -.1em; border-radius: 12px;
  color: var(--ft-green); background: transparent;
  transition: background .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.footer-cta a.ft-pill::after { content: none; }
.ft-pill span {
  padding-bottom: .05em;
  background: linear-gradient(90deg, transparent 0%, currentColor 45%) left bottom / 100% 1.5px no-repeat;
}
.ft-pill .ft-arrow { width: .5em; height: .5em; flex: none; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.footer-cta a.ft-pill:hover, .footer-cta a.ft-pill[aria-expanded="true"] { color: #5f6c16; background: rgba(123,138,36,.07); transform: translateY(-1px); }
.footer-cta a.ft-pill:hover .ft-arrow { transform: translateX(3px); }
.footer-cta a.ft-pill[aria-expanded="true"] .ft-arrow { transform: rotate(90deg); }
.footer-cta a.ft-pill:active { transform: translateY(0) scale(.97); }
.footer-cta a.ft-pill:focus-visible { outline: 2px solid var(--ft-green); outline-offset: 3px; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { .footer-cta a.ft-pill { transition: none; } }

/* tapri: the "where do we talk?" chooser that opens from the CTA (built by tapri-footer.js) */
.tf-chooser-holder { position: relative; }
/* a pane of glass: mostly see-through, heavily blurred, a gloss along the top and a bright rim; no tiles, no heavy shadow */
.tf-chooser {
  position: absolute; left: 50%; top: calc(100% + 14px); z-index: 5;
  width: min(272px, calc(100vw - 32px)); padding: 6px; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 253, 250, .72), rgba(255, 251, 246, .58));
  backdrop-filter: blur(40px) saturate(1.6) brightness(1.04); -webkit-backdrop-filter: blur(40px) saturate(1.6) brightness(1.04);
  border-radius: 18px; text-align: left; font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif; letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 18px 40px -22px rgba(40, 25, 10, .28);
  opacity: 0; transform: translate(-50%, -4px) scale(.98); transform-origin: 50% 0;
  transition: opacity .3s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.tf-chooser::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 40%, rgba(255, 255, 255, .1) 65%, rgba(255, 255, 255, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tf-chooser.is-open { opacity: 1; transform: translate(-50%, 0) scale(1); }
.tf-chooser[hidden] { display: none; }
.tf-head { display: none; }
.tf-row { position: relative; }
.footer-cta .tf-chooser a.tf-chooser-opt {
  display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; color: #2a2622; white-space: normal; text-decoration: none; background: transparent;
  transition: background .25s ease;
}
.footer-cta .tf-chooser a.tf-chooser-opt::after { content: none; }
.tf-ico { display: grid; place-items: center; width: 18px; height: 18px; color: #6f6862; transition: color .25s ease; }
.tf-ico svg { width: 17px; height: 17px; }
.tf-txt { display: flex; flex-direction: column; min-width: 0; }
.tf-label { font-size: 14.5px; font-weight: 500; line-height: 1.25; color: #1f1b18; }
.tf-chooser-opt small { margin-top: 2px; font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace; font-size: 11px; letter-spacing: .01em; color: #6f6862; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-go { width: 11px; height: 11px; color: #bdb5ad; opacity: 0; transform: translate(-3px, 3px); transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .25s ease; }
.footer-cta .tf-chooser a.tf-chooser-opt:hover, .footer-cta .tf-chooser a.tf-chooser-opt:focus-visible { background: rgba(255, 255, 255, .5); color: #2a2622; outline: none; }
.tf-chooser-opt:hover .tf-ico { color: #2a2622; }
.tf-chooser-opt:hover .tf-go, .tf-chooser-opt:focus-visible .tf-go { opacity: 1; transform: none; }
.tf-row:has(.tf-copy) .tf-chooser-opt { padding-right: 62px; }
.tf-row:has(.tf-copy) .tf-go { display: none; }
.tf-copy { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 3px 0; border: 0; background: none; cursor: pointer;
  font-family: "Geist Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #7d766f;
  transition: color .2s ease; }
.tf-copy:hover { color: #2a2622; }
.tf-copy.done { color: #2f8a55; }
.tf-copy:focus-visible { outline: 2px solid #7c8cff; outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .tf-chooser { transition: none; } }
