/* PAPER — footer: the closing poster. Everything scoped under .footer.
   Kept hooks: a[data-contact-type] (app.js pre-selects the inquiry type), .kb-credit. */

@supports not (overflow: clip) { .footer { overflow: hidden; } }
.footer { position: relative; overflow: clip; padding-top: clamp(20px, 3vw, 44px); color: var(--pp-ink-soft); }

/* ---------- top rule + back to top ---------- */
.footer .footer-rule { display: flex; align-items: center; gap: 22px; }
.footer .footer-rule-label { flex: 1; min-width: 0; }
.footer .footer-rule-label::before { flex: 0 0 clamp(18px, 4vw, 60px); }
.footer .footer-top { flex: none; display: inline-flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: var(--pp-ink); }
.footer .footer-top svg {
  width: 46px; height: 46px; padding: 12px; border: 2px solid var(--pp-ink); border-radius: 50%;
  transition: background .25s, color .25s, border-color .25s, transform .4s var(--pp-ease);
}
.footer .footer-top:hover svg { background: var(--pp-red); border-color: var(--pp-red); color: #fff; transform: translateY(-4px); }

/* ---------- brand + link columns ---------- */
.footer .footer-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr); gap: clamp(36px, 6vw, 110px); padding-block: clamp(40px, 5vw, 76px) clamp(36px, 4.5vw, 64px); align-items: start; }
.footer .footer-logo { display: inline-block; margin-left: -6px; }
.footer .footer-logo img { width: clamp(180px, 17vw, 240px); }
.footer .footer-brand p { max-width: 30em; margin-top: 18px; font-size: 15px; line-height: 1.6; }

.footer .footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer .footer-social a {
  display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid var(--pp-ink); border-radius: 50%; color: var(--pp-ink);
  transition: background .25s, color .25s, border-color .25s, transform .4s var(--pp-ease);
}
.footer .footer-social svg { width: 19px; height: 19px; fill: currentColor; }
.footer .footer-social a:hover { background: var(--pp-red); border-color: var(--pp-red); color: #fff; transform: translateY(-3px) rotate(-6deg); }

.footer .footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.footer .footer-col h3 { font-size: clamp(19px, 1.7vw, 23px); margin-bottom: 12px; rotate: -2deg; transform-origin: left center; }
.footer .footer-col a {
  display: inline-flex; align-items: center; min-height: 40px; min-width: 48px; font-weight: 700; font-size: 15px; color: var(--pp-ink); text-decoration: none;
  background: linear-gradient(var(--pp-red), var(--pp-red)) 0 calc(100% - 8px) / 0 2px no-repeat; transition: background-size .4s var(--pp-ease), color .25s;
}
.footer .footer-col a:hover { color: var(--pp-red); background-size: 100% 2px; }

/* ---------- COMEDIC CODY, edge to edge ----------
   Anton set widths (measured): "COMEDIC CODY" = 5.45em, "COMEDIC" = 3.31em, "CODY" = 1.90em */
.footer .footer-poster { position: relative; }
.footer .footer-word {
  font-family: var(--pp-f-display); text-transform: uppercase; color: var(--pp-red); white-space: nowrap; text-align: center;
  font-size: calc(96vw / 5.45); line-height: .9; letter-spacing: 0; user-select: none;
}
.footer .footer-word-line { display: inline-block; overflow: hidden; padding-top: .05em; vertical-align: top; }
.footer .footer-ch { display: inline-block; will-change: transform; }

.footer .footer-motto { position: absolute; z-index: 2; right: clamp(16px, 7vw, 120px); top: -.62em; rotate: -3.5deg; padding: 12px 26px 14px; font-size: clamp(22px, 3.1vw, 46px); }
.footer .footer-motto .pp-marker { display: block; }

/* ---------- small print ---------- */
.footer .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding-block: clamp(18px, 2vw, 28px) 30px; font-size: 13px; font-weight: 600; }
.footer .kb-credit { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--pp-ink-soft); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; transition: opacity .25s, color .25s; }
.footer .kb-credit img { width: auto; height: 60px; margin: -12px -8px -12px -10px; filter: brightness(0); }  /* white PNG, rendered as ink */
.footer .kb-credit:hover { opacity: 1; color: var(--pp-ink); }
/* keep the bottom-right corner clear for the fixed chat button */
@media (min-width: 769px) { .footer .footer-bottom { padding-right: calc(var(--pp-gutter) + 84px); } }

/* ---------- tablet / phone ---------- */
@media (max-width: 900px) {
  .footer .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 700px) {
  .footer .footer-word { font-size: calc(93vw / 3.31); line-height: .86; }
  .footer .footer-word-line { display: block; }
  .footer .footer-word-line + .footer-word-line { font-size: calc(93vw / 1.9); margin-top: -.02em; }
  .footer .footer-motto { right: 14px; top: -1.3em; padding: 9px 18px 11px; }
  .footer .footer-col a { min-height: 44px; }
  .footer .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* the sticky ticket bar (up to 768px) + the chat button float over the last strip of the page:
   leave that strip empty so they never sit on the copyright or the credit, home-indicator included */
@media (max-width: 768px) {
  .footer .footer-bottom { padding-bottom: calc(152px + env(safe-area-inset-bottom, 0px)); }
}
/* wider touch screens (small tablets, phones on their side): the merch tag waits bottom-left, the chat button bottom-right */
@media (min-width: 769px) and (max-width: 899px), (min-width: 769px) and (max-height: 500px) {
  .footer .footer-bottom { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 1024px), (pointer: coarse) {
  .footer .footer-col a { min-height: 44px; }
}
@media (max-width: 480px) {
  .footer .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .footer .footer-top .pp-note { display: none; }
}

/* Bottom row centred on every screen: copyright, then the "Site designed by KB" credit (Kyle, 2026-11-14). */
.footer .footer-bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
@media (min-width: 769px) { .footer .footer-bottom { padding-inline: calc(var(--pp-gutter) + 84px); } }
