/**
 * Blade Boss: Contact (pass 29, D-296). Pairs with templates/contact.php and assets/js/contact.js.
 * On the P4 token contract: every color is a token, light and dark follow <html data-theme>. Same grammar as the
 * Scan, pricing, How it works and About. Every rule is scoped under .cx or .cx-layers.
 */

body.bb-page-contact .bb-main { padding-top: 0; }
body.bb-page-contact { background: var(--bg); }
.cx, .cx-layers { --cx-navh: calc(var(--nav-height, 72px) + 10px); }
@media (max-width: 768px) { .cx, .cx-layers { --cx-navh: calc(var(--nav-height-mobile, 60px) + env(safe-area-inset-top, 0px) + 8px); } }
.cx h1, .cx h2, .cx h3 { font-size: inherit; line-height: inherit; letter-spacing: inherit; font-weight: inherit; color: inherit; margin: 0; text-wrap: wrap; }
.cx *, .cx *::before, .cx *::after, .cx-layers *, .cx-layers *::before, .cx-layers *::after { box-sizing: border-box; }
.cx p, .cx ul, .cx ol, .cx fieldset, .cx legend { margin: 0; }
.cx ul, .cx ol { padding: 0; list-style: none; }
.cx fieldset { padding: 0; border: 0; min-width: 0; }
.cx legend { padding: 0; }
.cx button, .cx input, .cx textarea, .cx-layers button { font: inherit; color: inherit; }
.cx img { max-width: 100%; display: block; }
.cx a { color: inherit; }
.cx svg { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cx { position: relative; isolation: isolate; overflow-x: clip; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--site-font-body); -webkit-font-smoothing: antialiased; overflow-anchor: none; }
.cx .wrap { position: relative; max-width: var(--site-max); margin: 0 auto; padding-left: var(--site-gut-l); padding-right: var(--site-gut-r); }
/* pass 44 (the speed budget): the hero's entrance is CSS, from the first paint. It used to wait for the page script,
   and on a slow phone the headline (the LCP) appeared 3 to 4 s in. Staggered by order; the script only adds .rv-in. */
@keyframes cx-hero-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
html.cx-js:not(.no-motion) .cx [data-hero] { animation: cx-hero-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
html.cx-js:not(.no-motion) .cx [data-hero] ~ [data-hero] { animation-delay: 0.08s; }
html.cx-js:not(.no-motion) .cx [data-hero] ~ [data-hero] ~ [data-hero] { animation-delay: 0.16s; }
html.cx-js:not(.no-motion) .cx [data-hero] ~ [data-hero] ~ [data-hero] ~ [data-hero] { animation-delay: 0.24s; }
html.cx-js:not(.no-motion) .cx [data-rv] { opacity: 0; transform: translateY(26px); }
html.cx-js:not(.no-motion) .cx [data-rv].rv-in, html.cx-js:not(.no-motion) .cx [data-hero].rv-in { opacity: 1; transform: none; }
html.cx-js.no-motion .cx [data-rv], html.cx-js.no-motion .cx [data-hero] { opacity: 1; transform: none; transition: none; }

.cx .ghost { position: absolute; z-index: -1; top: -0.12em; left: calc(var(--site-gut-l) - 0.04em); font: var(--site-w-disp) clamp(4.2rem, 16vw, 11.5rem)/1 var(--site-font-disp); letter-spacing: -0.04em; color: var(--site-ghost); -webkit-text-stroke: 1px var(--site-ghost-stroke); pointer-events: none; user-select: none; white-space: nowrap; text-transform: uppercase; }
.cx section { position: relative; overflow: hidden; }
.cx .cx-k { display: inline-flex; align-items: center; gap: 9px; font: 700 0.68rem/1 var(--site-font-disp); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
.cx .cx-k::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-ink), transparent); }
.cx .cx-k--photo::before { background: linear-gradient(90deg, #5BD493, transparent); }

/* ═══ the ask ═══ */
.cx .cx-hero { padding: calc(var(--cx-navh) + 36px) 0 56px; }
.cx .cx-hero .ghost { top: -0.55em; }
.cx .cx-copy { position: relative; }
.cx .cx-title { font: var(--site-w-disp) clamp(2.35rem, 6.8vw, 4.4rem)/1.02 var(--site-font-disp); letter-spacing: var(--site-track-disp); text-wrap: balance; margin: 0 0 22px; max-width: 16ch; }
.cx .cx-title em { font-style: normal; color: var(--brand-ink); }
.cx .cx-who { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); max-width: 520px; }
.cx .cx-who-face { width: 56px; height: 56px; flex: none; border-radius: 50%; overflow: hidden; background: #0A0F15; border: 2px solid var(--brand-soft); }
.cx .cx-who-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cx .cx-who p { font-size: 0.98rem; line-height: 1.5; color: var(--ink-2); }
.cx .cx-who b { color: var(--ink); font-weight: 700; }
.cx .cx-facts { display: grid; gap: 10px; max-width: 520px; margin: 0 0 20px; }
.cx .cx-facts li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.cx .cx-facts li b { color: var(--ink); font-weight: 700; }
.cx .cx-facts svg { width: 18px; height: 18px; flex: none; color: var(--brand-ink); margin-top: 3px; }
.cx .cx-facts a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cx .cx-alt { font-size: 0.88rem; color: var(--ink-2); }
.cx .cx-alt a { color: var(--ink-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* the card */
.cx .cx-card { position: relative; margin-top: 28px; padding: 22px 20px 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.cx .cx-label { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font: 600 0.68rem/1 var(--font-num); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.cx .cx-label span { font: 500 0.72rem/1 var(--site-font-body); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.cx .cx-topic { margin: 0 0 16px; }
.cx .cx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cx .cx-chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-2); font: 600 0.84rem/1 var(--site-font-body); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.cx .cx-chip:hover { border-color: var(--brand-ink); color: var(--ink); }
.cx .cx-chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand-ink); color: var(--brand-ink); }
.cx .cx-chip:focus-visible, .cx .cx-send:focus-visible, .cx .cx-again:focus-visible, .cx .cx-go:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 3px; }
.cx .cx-row { display: grid; gap: 14px; }
.cx .cx-field { position: relative; margin: 0 0 14px; }
.cx .cx-field input, .cx .cx-field textarea { width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); font: 500 16px/1.4 var(--site-font-body); -webkit-appearance: none; appearance: none; transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.cx .cx-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.cx .cx-field input::placeholder, .cx .cx-field textarea::placeholder { color: var(--ink-3); }
.cx .cx-field input:focus, .cx .cx-field textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-soft); }
.cx .cx-field input.is-bad, .cx .cx-field textarea.is-bad { border-color: var(--danger); }
.cx .cx-count { position: absolute; right: 12px; bottom: 10px; font: 600 0.66rem/1 var(--font-num); letter-spacing: 0.08em; color: var(--ink-2); }
.cx .cx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cx .cx-optin { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 18px; cursor: pointer; }
.cx .cx-optin input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cx .cx-optin-box { width: 22px; height: 22px; flex: none; margin-top: 2px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; color: #FFFFFF; transition: background 0.2s ease, border-color 0.2s ease; }
.cx .cx-optin-box svg { width: 14px; height: 14px; opacity: 0; }
.cx .cx-optin input:checked + .cx-optin-box { background: var(--brand); border-color: var(--brand); }
.cx .cx-optin input:checked + .cx-optin-box svg { opacity: 1; }
.cx .cx-optin input:focus-visible + .cx-optin-box { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.cx .cx-optin-text { font: 600 0.9rem/1.45 var(--site-font-body); color: var(--ink); }
.cx .cx-optin-text i { display: block; font: 500 0.78rem/1.45 var(--site-font-body); color: var(--ink-2); }
.cx .cx-send, .cx .cx-go { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 24px; border: 0; border-radius: 14px; font: 800 0.92rem/1 var(--site-font-disp); letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm-fg); background: linear-gradient(135deg, var(--warm) 0%, var(--site-warm-press) 100%); cursor: pointer; overflow: hidden; white-space: nowrap; box-shadow: 0 10px 30px rgba(245, 120, 66, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), opacity 0.2s ease; }
.cx .cx-send::after, .cx .cx-go::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); transition: left 0.56s ease; }
.cx .cx-send:hover, .cx .cx-go:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(245, 120, 66, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.cx .cx-send:hover::after, .cx .cx-go:hover::after { left: 160%; }
.cx .cx-send:active, .cx .cx-go:active { transform: translateY(0) scale(0.98); }
.cx .cx-send svg, .cx .cx-go svg { width: 18px; height: 18px; }
.cx .cx-send .cx-send-s { display: none; }
.cx .cx-send.is-sending { opacity: 0.8; pointer-events: none; }
.cx .cx-send.is-sending .cx-send-t { display: none; }
.cx .cx-send.is-sending .cx-send-s { display: inline; }
.cx .cx-err { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--danger-soft); color: var(--danger); font: 600 0.86rem/1.4 var(--site-font-body); }
.cx .cx-note { margin: 12px 0 0; font: 500 0.8rem/1.5 var(--site-font-body); color: var(--ink-2); }
.cx .cx-done { text-align: center; padding: 28px 12px 18px; }
.cx .cx-done-i { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); }
.cx .cx-done-i svg { width: 30px; height: 30px; }
.cx .cx-done h2 { font: var(--site-w-disp) 2.2rem/1 var(--site-font-disp); letter-spacing: -0.03em; margin: 0 0 10px; }
.cx .cx-done p { color: var(--ink-2); max-width: 36ch; margin: 0 auto 18px; }
.cx .cx-again { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 600 0.88rem/1 var(--site-font-body); cursor: pointer; }
.cx .cx-again:hover { border-color: var(--brand-ink); }
html.cx-js:not(.no-motion) .cx .cx-done-i { animation: cx-pop 0.5s var(--ease-out) both; }
@keyframes cx-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ═══ the close: the field ═══ */
.cx .cx-close { position: relative; padding: clamp(64px, 12vh, 130px) 0; color: #FFFFFF; background: #0A0F15; border-top: 1px solid var(--line); }
.cx .cx-close-photo { position: absolute; inset: 0; }
.cx .cx-close-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.cx .cx-close-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(8, 12, 18, 0.92) 0%, rgba(8, 12, 18, 0.78) 48%, rgba(8, 12, 18, 0.5) 100%), linear-gradient(to top, var(--bg) 0%, rgba(10, 15, 21, 0) 22%, rgba(10, 15, 21, 0) 86%, rgba(10, 15, 21, 0.7) 100%); }
.cx .cx-close .ghost { top: -0.1em; right: var(--site-gut-r); left: auto; color: rgba(255, 255, 255, 0.05); -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12); }
.cx .cx-k--photo { color: #5BD493; }
.cx .cx-close-title { font: var(--site-w-disp) clamp(2.1rem, 6.4vw, 4rem)/1.02 var(--site-font-disp); letter-spacing: var(--site-track-disp); text-wrap: balance; margin: 0 0 16px; max-width: 18ch; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.cx .cx-close-title em { font-style: normal; color: #5BD493; }
.cx .cx-close-sub { font-size: 1.02rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); max-width: 46ch; margin: 0 0 24px; }
.cx .cx-close-field { padding: 10px; border-radius: 20px; background: var(--site-glass-2); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05); max-width: 560px; color: var(--ink); }
.cx .cx-close-field .cx-form-meta { padding: 0 8px 4px; }
.cx .cx-scan { display: flex; flex-direction: column; gap: 10px; }
.cx .cx-addr { position: relative; display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--sh-1); transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.cx .cx-addr:focus-within { border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-soft), var(--sh-2); }
.cx .cx-addr-pin { color: var(--brand-ink); flex-shrink: 0; }
.cx .cx-addr input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: 600 16px/52px var(--site-font-body); height: 52px; padding: 0; margin: 0; -webkit-appearance: none; appearance: none; }
.cx .cx-addr input::placeholder { color: var(--ink-3); }
.cx .cx-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: none; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2); text-align: left; }
.cx .cx-sugg.open { display: block; }
.cx .cx-sugg [role="option"] { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-size: 0.92rem; color: var(--ink); }
.cx .cx-sugg [role="option"]:hover { background: var(--brand-soft); }
.cx .cx-sugg [role="option"] svg { width: 16px; height: 16px; flex: none; color: var(--brand-ink); }
.cx .cx-go { width: auto; }
.cx .cx-form-meta { font: 700 0.68rem/1.5 var(--site-font-disp); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* ═══ desktop ═══ */
@media (min-width: 900px) {
  .cx .cx-hero { padding-top: calc(var(--cx-navh) + 56px); padding-bottom: 88px; min-height: 92svh; display: flex; align-items: center; }
  .cx .cx-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; width: 100%; }
  .cx .cx-card { margin-top: 0; padding: 28px 28px 24px; }
  .cx .cx-row { grid-template-columns: 1fr 1fr; }
  .cx .cx-scan { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .cx .cx-scan .cx-addr { flex: 1 1 320px; }
  .cx .cx-scan .cx-form-meta { flex-basis: 100%; }
}
@media (min-width: 900px) and (max-width: 1100px) { .cx .cx-hero .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 36px; } }

@media (prefers-reduced-motion: reduce) {
  .cx .cx-chip, .cx .cx-send, .cx .cx-go { transition: none; }
}

html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
html.lenis.lenis-stopped { overflow: hidden; }

/* pass 44: right-sized photos arrive in a <picture>; it takes no box, so every rule written for the img still applies */
.cx picture { display: contents; }
