/* ------------------------------------------------------------------------
   WEBTIZATION — Pushpin Tear footer (plain CSS, loaded by inc/footer-pushpin.php)
   Adapted from the "pushpin-tear-footer" component. Everything inside the
   poster is positioned in % of the poster itself and sized with container-query
   units (cqmin / cqw), so it scales as one piece; the @container rules at the
   bottom re-flow it for phones and tablets.
   ------------------------------------------------------------------------ */

.pp-footer {
  --tpf-on-sheet: var(--tpf-ink, #1a1208);
  --tpf-on-paper: var(--tpf-ink, #1a1208);
  --tpf-rim: #fcfbf9;
  --tpf-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, system-ui, sans-serif;
  background: var(--tpf-paper);
  color: var(--tpf-ink);
  font-family: var(--tpf-sans);
  position: relative;
}

/* ---------- the poster ---------- */
.tpf {
  position: relative; overflow: hidden; container-type: size; isolation: isolate;
  height: clamp(620px, 100svh, 1000px);
  background: var(--tpf-sheet); color: var(--tpf-on-sheet); font-family: var(--tpf-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fs: max(12px, 1.85cqmin);
}
/* without JS the tear can't be drawn: show only the sitemap strip */
.tpf:not(.js) { display: none; }
.tpf *, .tpf *::before, .tpf *::after { box-sizing: border-box; }
:where(.tpf) a { color: inherit; text-decoration: none; }
:where(.tpf) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:where(.tpf) :focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 4px; }

.tpf-stage { position: absolute; left: 0; top: 0; max-width: none; display: block; pointer-events: none; z-index: 0; }
.tpf.is-hit .tpf-sheet-g { animation: tpf-hit .32s cubic-bezier(.3, .7, .4, 1); }
.tpf-sheet { fill: var(--tpf-sheet); }
.tpf-paper { fill: var(--tpf-paper); }
.tpf-rim { fill: var(--tpf-rim); }
.tpf-ico { width: 1.35em; height: 1.35em; display: block; max-width: none; flex: none; }
.tpf-mark { width: 3.6em; height: 2.3em; display: block; max-width: none; overflow: visible; }
.tpf-seal { width: 100%; height: 100%; display: block; max-width: none; }
.tpf-z { position: absolute; z-index: 2; }
.tpf-brand, .tpf-foot { color: var(--tpf-on-paper); }

/* assembly: the sheet's chrome, then the paper's print (translate, so centring transforms survive) */
.tpf-h { transition: opacity .7s var(--ease), translate .8s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.tpf.js:not(.s1) .tpf-h { opacity: 0; translate: 0 10px; filter: blur(6px); }
.tpf-p { transition: opacity .8s var(--ease), translate .9s var(--ease), filter .8s var(--ease); transition-delay: calc(480ms + var(--i, 0) * 70ms); }
.tpf.js:not(.s3) .tpf-p { opacity: 0; translate: 0 18px; filter: blur(8px); transition-delay: 0s; }

/* top bar */
.tpf-top { left: 0; right: 0; top: 9.4%; transform: translateY(-50%); display: flex; align-items: center; justify-content: space-between; padding: 0 11%; font-size: max(15px, 2.6cqmin); }
.tpf-row { display: flex; align-items: center; gap: .55em; }
.tpf-gap { width: .6em; }
.tpf-ib { display: grid; place-items: center; width: 1.9em; height: 1.9em; margin: -.3em; border-radius: 50%; transition: transform .35s var(--ease), background-color .25s; }
.tpf-ib:hover { transform: translateY(-2px); background: color-mix(in srgb, currentColor 14%, transparent); }
.tpf-ib:active { transform: scale(.9); }
.tpf-up .tpf-ico { transform: rotate(90deg); }
.tpf-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; }
/* full logo as a one-colour mark: the PNG is used as a mask so it takes the ink colour (the amber circles would vanish on the amber sheet) */
.tpf-logo-mono { display: block; width: max(124px, 15cqmin); aspect-ratio: 1688 / 562; background: currentColor; -webkit-mask: url(/assets/img/logo.png) center / contain no-repeat; mask: url(/assets/img/logo.png) center / contain no-repeat; transition: transform .4s var(--ease); }
.tpf-logo:hover .tpf-logo-mono { transform: scale(1.04); }
.tpf-mail { display: flex; align-items: center; gap: .6em; font-size: var(--fs); letter-spacing: .01em; padding: .35em .2em; transition: transform .35s var(--ease); }
.tpf-mail:hover { transform: translateY(-2px); }
.tpf-mail span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.tpf-mail:hover span { background-size: 100% 1px; }
.tpf-mail .tpf-ico { width: 1.5em; height: 1.5em; }
.tpf-toast { position: absolute; top: calc(100% + .5em); right: 0; font-size: max(11px, 1.6cqmin); letter-spacing: .04em; white-space: nowrap; padding: .35em .8em; border-radius: 99px; background: var(--tpf-on-sheet); color: var(--tpf-sheet); opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.tpf-toast.on { opacity: 1; transform: none; }

/* project pill: dark pill whose knob is the amber button */
.tpf-news { left: 50%; top: 15%; width: max-content; transform: translateX(-50%); display: grid; justify-items: center; gap: max(10px, 1.6cqmin); font-size: var(--fs); }
.tpf-pill { position: relative; display: flex; align-items: center; width: max(260px, 40cqmin); height: max(40px, 5.6cqmin); padding: 0 .35em 0 1.3em; border-radius: 99px; background: var(--tpf-on-sheet); color: var(--tpf-sheet); transition: box-shadow .3s var(--ease), transform .35s var(--ease); }
.tpf-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(26, 18, 8, .55); }
.tpf-pill:focus-visible { outline-offset: 3px; }
.tpf-pill-text { flex: 1; font-size: max(13px, 2cqmin); font-weight: 500; letter-spacing: -.005em; }
.tpf-knob { display: grid; place-items: center; flex: none; height: calc(100% - .6em); aspect-ratio: 1; border-radius: 50%; background: var(--tpf-sheet); color: var(--tpf-on-sheet); box-shadow: inset 0 0 0 .22em color-mix(in srgb, var(--tpf-on-sheet) 30%, var(--tpf-sheet)); transition: transform .45s cubic-bezier(.5, 1.7, .4, 1); }
.tpf-pill:hover .tpf-knob { transform: translateX(2px) scale(1.06); }
.tpf-knob .tpf-ico { width: 52%; height: 52%; }

.tpf-status { left: 50%; top: 30.6%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .6em; font-size: max(14px, 2.25cqmin); white-space: nowrap; letter-spacing: .01em; }
.tpf-live { position: relative; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
.tpf-live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid currentColor; animation: tpf-ping 2.2s var(--ease) infinite; }
.tpf a.tpf-status:hover span { text-decoration: underline; text-underline-offset: .2em; }
.tpf-badge { left: 50%; top: 35.4%; transform: translate(-50%, -50%); width: max(15px, 2.3cqmin); height: max(15px, 2.3cqmin); }

/* link columns */
.tpf-col { top: 27.5%; display: grid; gap: max(5px, .9cqmin); font-size: var(--fs); }
.tpf-col.l { left: 11%; justify-items: start; }
.tpf-col.r { right: 11%; justify-items: end; text-align: right; }
.tpf-col h3 { all: unset; display: flex; align-items: center; gap: 1em; margin-bottom: max(4px, .6cqmin); opacity: .75; }
.tpf-col.r h3 { flex-direction: row-reverse; }
.tpf-col h3 .tpf-ico { width: 1.1em; height: 1.1em; }
.tpf-col ul { all: unset; display: grid; gap: max(4px, .7cqmin); justify-items: inherit; }
.tpf-col li { list-style: none; }
.tpf-col li a { display: inline-block; transition: transform .35s var(--ease), opacity .25s; }
.tpf-col.l li a:hover { transform: translateX(4px); }
.tpf-col.r li a:hover { transform: translateX(-4px); }
.tpf-big { margin-top: max(6px, 1cqmin); font-size: max(26px, 4.6cqmin); font-weight: 500; letter-spacing: -.03em; line-height: 1; text-decoration: underline; text-decoration-thickness: max(1.5px, .04em); text-underline-offset: .12em; transition: text-underline-offset .35s var(--ease); }
.tpf .tpf-big:hover { text-underline-offset: .22em; }

/* pin */
.tpf-pin { position: absolute; z-index: 3; left: 50%; top: 64%; width: max(46px, 9cqmin); height: max(92px, 18cqmin); transform: translate(-50%, -100%); cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tpf-pin:focus-visible { outline-offset: 6px; }
.tpf-tilt { position: absolute; inset: 0; transform-origin: 50% 100%; transform: rotate(calc(5deg + var(--tilt, 0deg))); transition: transform .7s var(--ease); }
.tpf-drop, .tpf-body { position: absolute; inset: 0; transform-origin: 50% 100%; }
.tpf-body { transition: transform .32s var(--ease); }
.tpf-pin-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; overflow: visible; }
.tpf-shadow { position: absolute; right: 50%; bottom: -.5%; width: 150%; height: 24%; transform-origin: 100% 50%; transform: rotate(16deg); transition: transform .45s var(--ease), opacity .45s; }
.tpf-shadow::before, .tpf-shadow::after { content: ''; position: absolute; top: 50%; border-radius: 50%; transform: translateY(-50%); }
.tpf-shadow::before { right: 0; width: 100%; height: 24%; background: linear-gradient(90deg, transparent, rgba(42, 21, 0, .26) 60%, rgba(42, 21, 0, .42)); filter: blur(2px); }
.tpf-shadow::after { left: -6%; width: 60%; height: 100%; background: radial-gradient(closest-side, rgba(42, 21, 0, .22), transparent); filter: blur(3px); }
.tpf.js:not(.s2) .tpf-pin { opacity: 0; pointer-events: none; }
.tpf.s2 .tpf-drop { animation: tpf-drop .62s cubic-bezier(.5, 0, .75, 0) both; }
.tpf.s2 .tpf-shadow { animation: tpf-shade .62s cubic-bezier(.5, 0, .75, 0) both; }
.tpf-pin:hover .tpf-body { transform: translateY(-3%); }
.tpf-pin:hover .tpf-shadow { transform: rotate(16deg) translateX(-5%) scaleX(1.06); }
.tpf-pin[data-pin=lift] .tpf-body { transform: translateY(-22%) rotate(-10deg); transition-duration: .3s; }
.tpf-pin[data-pin=lift] .tpf-shadow { transform: rotate(16deg) translateX(-26%) scale(1.25); opacity: .55; }
.tpf-pin[data-pin=stab] .tpf-body { animation: tpf-stab .42s cubic-bezier(.55, 0, .8, .2) both; }

/* the paper's print */
.tpf-brand { left: 50%; top: 67%; width: max-content; transform: translateX(-50%); display: grid; justify-items: stretch; }
.tpf-brand-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0 .2em 0 .5em; }
.tpf-eye { font-size: max(15px, 2.6cqmin); font-weight: 500; letter-spacing: -.02em; background: linear-gradient(90deg, var(--tpf-on-paper), color-mix(in srgb, var(--tpf-on-paper) 35%, var(--tpf-paper))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tpf-bub { display: inline-flex; align-items: center; gap: .5em; height: 1.7em; padding: 0 .55em; border-radius: 99px; background: color-mix(in srgb, var(--tpf-on-paper) 9%, var(--tpf-paper)); font-size: max(11px, 1.6cqmin); overflow: hidden; transition: padding .45s var(--ease); }
.tpf-dots { display: flex; gap: .22em; }
.tpf-dots i { width: .38em; height: .38em; border-radius: 50%; background: color-mix(in srgb, var(--tpf-on-paper) 45%, var(--tpf-paper)); animation: tpf-dot 1.2s ease-in-out infinite; }
.tpf-dots i:nth-child(2) { animation-delay: .15s; }
.tpf-dots i:nth-child(3) { animation-delay: .3s; }
.tpf-bub b { font-weight: 500; max-width: 0; opacity: 0; white-space: nowrap; transition: max-width .5s var(--ease), opacity .3s; }
.tpf-bub:hover, .tpf-bub:focus-visible { padding: 0 .8em; }
.tpf-bub:hover b, .tpf-bub:focus-visible b { max-width: 8em; opacity: 1; }
.tpf-word { display: block; overflow: hidden; padding: 0 .04em .14em; font-size: max(44px, min(11.6cqmin, 15.5cqw)); font-weight: 600; letter-spacing: -.055em; line-height: .98; white-space: nowrap; }
.tpf-word span { display: block; position: relative; transition: transform 1s var(--ease) .5s; }
.tpf-word span::after { content: ''; position: absolute; left: .02em; right: .04em; bottom: -.02em; height: max(2px, .045em); background: currentColor; transform-origin: 0 50%; transition: transform .9s var(--ease) 1.05s, height .3s var(--ease); }
.tpf.js:not(.s3) .tpf-word span { transform: translateY(125%); transition-delay: 0s; }
.tpf.js:not(.s3) .tpf-word span::after { transform: scaleX(0); transition-delay: 0s; }
.tpf-word:hover span::after { height: max(4px, .075em); }
.tpf-legal { display: flex; justify-content: center; gap: max(16px, 2.6cqmin); margin-top: max(8px, 1.5cqmin); font-size: max(13px, 2cqmin); }
.tpf-legal a { display: inline-flex; align-items: center; gap: .55em; }
.tpf-legal .tpf-ico { width: 1.25em; height: 1.25em; transition: transform .35s var(--ease); }
.tpf-legal a:hover .tpf-ico { transform: translateY(-2px) rotate(-8deg); }
.tpf-legal span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.tpf-legal a:hover span { background-size: 100% 1px; }
.tpf-foot { left: 0; right: 0; bottom: 5%; display: flex; align-items: center; justify-content: space-between; gap: 1.5em; padding: 0 11%; font-size: max(12px, 1.85cqmin); }
.tpf-credit { position: absolute; left: 50%; transform: translateX(-50%); font-size: max(10px, 1.4cqmin); letter-spacing: .08em; text-transform: uppercase; opacity: .62; white-space: nowrap; }
.tpf-handle:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- responsive re-flow (container = the poster) ---------- */

/* phones: a little more height than the screen on short devices, so the % layout never gets cramped */
@media (max-width: 620px) { .tpf { height: clamp(700px, 100svh, 980px); } }

/* tablet portrait / small laptop: pull the content in from the edges */
@container (max-width: 900px) {
  .tpf-top, .tpf-foot { padding: 0 8%; }
  .tpf-col.l { left: 8%; }
  .tpf-col.r { right: 8%; }
}

/* phone column */
@container (max-width: 620px) {
  .tpf-top { padding: 0 7%; }
  .tpf-mail span { display: none; }
  .tpf-logo-mono { width: 96px; }
  .tpf-news { top: 14%; }
  .tpf-pill { width: min(80cqw, 320px); }
  .tpf-status { top: 26.5%; }
  .tpf-badge { display: none; }
  .tpf-col { top: 31%; font-size: max(13px, 3.3cqw); }
  .tpf-col.l { left: 7%; }
  .tpf-col.r { right: 7%; }
  .tpf-col li:nth-child(n+3) { display: none; }
  .tpf-big { font-size: max(24px, 7cqw); }
  .tpf-legal { font-size: max(13px, 3.3cqw); }
  .tpf-foot { padding: 0 7%; bottom: 3.5%; font-size: max(11px, 3cqw); }
  .tpf-credit, .tpf-handle { display: none; } /* the fixed chat / WhatsApp buttons sit bottom-right on phones */
}

/* narrow phones (≤ 380): keep the top bar from colliding with the monogram */
@container (max-width: 380px) {
  .tpf-top .tpf-row a.tpf-ib:nth-of-type(n+3) { display: none; }
  .tpf-logo-mono { width: 82px; }
}

/* ---------- full sitemap strip (same paper, below the poster) ---------- */
.pp-sitemap { position: relative; z-index: 1; background: var(--tpf-paper); color: var(--tpf-ink); border-top: 1px solid color-mix(in srgb, var(--tpf-ink) 14%, transparent); }
.pp-sitemap-inner { max-width: 1180px; margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 300px repeat(4, auto); justify-content: space-between; gap: 40px 48px; }
.pp-sm-col h3 { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.pp-sm-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pp-sm-col a, .pp-sm-col span { font-size: 14.5px; line-height: 1.4; color: color-mix(in srgb, var(--tpf-ink) 82%, var(--tpf-paper)); }
.pp-sm-col a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s cubic-bezier(.22, 1, .36, 1), color .2s; overflow-wrap: anywhere; }
.pp-sm-col a:hover { color: var(--tpf-ink); background-size: 100% 1px; }
.pp-sm-logo { display: inline-block; margin-bottom: 18px; background: none !important; }
.pp-sm-logo img { display: block; width: 170px; height: auto; }
.pp-sm-tag { margin: 0 0 20px; font-size: 14.5px; line-height: 1.6; max-width: 30ch; color: color-mix(in srgb, var(--tpf-ink) 78%, var(--tpf-paper)); }
.pp-sm-col a.pp-sm-cta { display: inline-flex; gap: .5em; align-items: center; padding: 11px 18px; border-radius: 99px; background: var(--tpf-ink); color: var(--tpf-sheet); font-size: 14px; font-weight: 600; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.pp-sm-col a.pp-sm-cta:hover { color: var(--tpf-sheet); background-size: auto; transform: translateY(-2px); }
.pp-sitemap-legal { max-width: 1180px; margin: 0 auto; padding: 20px 24px 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; border-top: 1px solid color-mix(in srgb, var(--tpf-ink) 12%, transparent); font-size: 13px; color: color-mix(in srgb, var(--tpf-ink) 84%, var(--tpf-paper)); }
.pp-sitemap-legal p { margin: 0; }
.pp-sitemap-legal div { display: flex; gap: 24px; }
.pp-sitemap-legal a:hover { color: var(--tpf-ink); text-decoration: underline; text-underline-offset: .2em; }
.pp-sitemap :focus-visible { outline: 1.5px solid var(--tpf-ink); outline-offset: 3px; border-radius: 3px; }

@media (max-width: 1024px) { .pp-sitemap-inner { grid-template-columns: repeat(3, 1fr); } .pp-sm-about { grid-column: 1 / -1; } .pp-sm-tag { max-width: 46ch; } }
@media (max-width: 640px) { .pp-sitemap-inner { grid-template-columns: repeat(2, 1fr); padding: 44px 20px 28px; gap: 32px 20px; } .pp-sitemap-legal { padding: 18px 20px 24px; flex-direction: column; } }
@media (max-width: 380px) { .pp-sitemap-inner { grid-template-columns: 1fr; } }

/* ---------- keyframes ---------- */
@keyframes tpf-hit { 0% { transform: translateY(0); } 30% { transform: translateY(2px); } 60% { transform: translateY(-.5px); } 100% { transform: translateY(0); } }
@keyframes tpf-drop { 0% { transform: translateY(-62cqh) rotate(-28deg) scale(1.5); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(0) rotate(3deg) scale(1); } 90% { transform: scale(1.04, .95); } 100% { transform: none; opacity: 1; } }
@keyframes tpf-shade { 0% { transform: rotate(16deg) translateX(-60%) scale(2.4); opacity: 0; } 80% { transform: rotate(16deg); opacity: 1; } 100% { transform: rotate(16deg); opacity: 1; } }
@keyframes tpf-stab { 0% { transform: translateY(-22%) rotate(-10deg); } 70% { transform: translateY(1.5%) rotate(1deg); } 100% { transform: none; } }
@keyframes tpf-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-2.5px); opacity: 1; } }
@keyframes tpf-bob { 0% { transform: none; } 40% { transform: translateY(-3px) scale(1.15); } 100% { transform: none; } }
@keyframes tpf-blink { 0% { opacity: 1; } 50% { opacity: .25; } }
@keyframes tpf-ping { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .tpf *, .tpf *::before, .tpf *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}
