/* Contact page (round 250). Theme roles from tinocall.css: --bg --surface --raised --ink --muted --quiet --line --accent --accent-ink. */
.contact-main { flex: 1 0 auto; padding: 124px 0 120px; }
.contact-wrap { width: min(1180px, calc(100% - 112px)); margin: 0 auto; display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: start; }

.contact-intro h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; margin: 0 0 22px; color: var(--ink); text-wrap: balance; }
.contact-lead { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 46ch; margin: 0 0 36px; }

.contact-ways { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.contact-ways a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 12px 14px 12px 0; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background-color 160ms ease, transform 160ms ease; }
.contact-ways a:hover { background: var(--raised); transform: translateX(4px); }
.contact-ways a:active { transform: translateX(4px) scale(.99); }
.contact-ways .cw-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); transition: background-color 160ms ease; }
.contact-ways a:hover .cw-icon { background: var(--accent); }
.contact-ways .cw-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke 160ms ease; }
.contact-ways a:hover .cw-icon svg { stroke: var(--accent-ink); }
.contact-ways strong { display: block; font-size: 16px; font-weight: 700; }
.contact-ways span span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* The globe: fixed-height window onto a square drawing, fading into the page at the bottom. */
.contact-globe-window { position: relative; height: 300px; overflow: hidden; margin-top: 18px; color: var(--ink); }
.contact-globe { position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; width: 100%; max-width: 520px; opacity: 0; transition: opacity 900ms ease; }
.contact-globe.is-ready { opacity: 1; }
.contact-globe svg { display: block; cursor: grab; touch-action: pan-y; }
.contact-globe svg:active { cursor: grabbing; }
.contact-globe .cg-grid { fill: none; stroke: currentColor; stroke-width: 1; opacity: .1; }
.contact-globe .cg-land { fill: none; stroke: currentColor; stroke-width: .7; opacity: .55; }
.contact-globe .cg-rim { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .5; }
.contact-globe-window::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; pointer-events: none; background: linear-gradient(to top, var(--bg), rgba(0, 0, 0, 0)); }
.contact-globe-note { font-size: 14px; color: var(--muted); margin: 0; max-width: 44ch; }

/* The form card */
.contact-card { background: var(--surface); border-radius: 20px; padding: 36px; }
.contact-card h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.02em; font-weight: 800; margin: 0 0 6px; color: var(--ink); }
.contact-card > p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; }
.ct-form { display: grid; gap: 18px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.ct-form input, .ct-form textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color 160ms ease, box-shadow 160ms ease; }
.ct-form textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.ct-form input::placeholder, .ct-form textarea::placeholder { color: var(--quiet); }
.ct-form input:focus, .ct-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--soft-accent, rgba(11, 70, 246, .15)); }
.ct-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ct-form button[type="submit"] { min-height: 52px; padding: 13px 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: transform 160ms ease, opacity 160ms ease; }
.ct-form button[type="submit"]:hover { transform: translateY(-2px); }
.ct-form button[type="submit"]:active { transform: scale(.97); }
.ct-form button[type="submit"][disabled] { opacity: .6; cursor: progress; transform: none; }
.ct-form button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 160ms ease; }
.ct-form button:hover svg { transform: translateX(3px); }
.contact-privacy { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.contact-privacy a, .contact-status a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.contact-status { font-size: 15px; line-height: 1.55; color: var(--muted); min-height: 1.5em; margin: 0; }
.contact-status.is-ok { color: var(--ink); font-weight: 700; }
.contact-status.is-error { color: var(--ink); }
#contact-turnstile:empty { display: none; }
#contact-turnstile { min-height: 0; }
.contact-main a:focus-visible, .contact-main button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (max-width: 1050px) {
  .contact-wrap { width: calc(100% - 72px); grid-template-columns: 1fr; gap: 48px; }
  .contact-globe-window { height: 240px; }
  .contact-globe { max-width: 420px; }
}
@media (max-width: 600px) {
  .contact-main { padding: 96px 0 80px; }
  .contact-wrap { width: calc(100% - 32px); }
  .contact-lead { font-size: 16.5px; }
  .contact-card { padding: 24px 20px; border-radius: 16px; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-globe-window { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-ways a, .ct-form button[type="submit"], .contact-globe { transition: none; }
  .contact-ways a:hover { transform: none; }
}
.contact-status:empty { display: none; }

/* Round 250 polish (taste-skill inspect): readable sizes, body copy in the full ink, one staggered entrance. */
.contact-lead { color: var(--ink); }
.contact-ways span span { font-size: 15.5px; }
.contact-globe-note, .contact-privacy { font-size: 15px; }
.contact-card > p { font-size: 16px; }
@keyframes ct-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.contact-intro > *, .contact-ways li, .contact-card { animation: ct-rise 700ms cubic-bezier(.23, 1, .32, 1) both; }
.contact-intro h1 { animation-delay: 40ms; }
.contact-lead { animation-delay: 120ms; }
.contact-ways { animation: none; }
.contact-ways li:nth-child(1) { animation-delay: 200ms; }
.contact-ways li:nth-child(2) { animation-delay: 270ms; }
.contact-ways li:nth-child(3) { animation-delay: 340ms; }
.contact-globe-window { animation-delay: 420ms; }
.contact-globe-note { animation-delay: 480ms; }
.contact-card { animation-delay: 160ms; }
@media (prefers-reduced-motion: reduce) { .contact-intro > *, .contact-ways li, .contact-card { animation: none; } }

/* Round 252: US map of calls between cities (replaces the globe) and the success tick. */
.contact-map-figure { margin: 26px 0 0; }
.contact-map { width: 100%; aspect-ratio: 975 / 610; color: var(--ink); opacity: 0; transition: opacity 700ms ease; }
.contact-map.is-ready { opacity: 1; }
.contact-map svg { display: block; width: 100%; height: 100%; overflow: visible; }
.contact-map .um-nation { fill: var(--surface); stroke: currentColor; stroke-width: 1.2; stroke-opacity: .45; }
.contact-map .um-states { fill: none; stroke: currentColor; stroke-width: .6; stroke-opacity: .22; stroke-linejoin: round; }
.contact-map .um-dot { fill: var(--accent); }
.contact-map .um-arc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.contact-map .um-ring { fill: none; stroke: var(--accent); stroke-width: 2; }
.contact-map-figure figcaption { margin-top: 14px; }
.contact-status { display: flex; gap: 10px; align-items: flex-start; }
.contact-status .cs-tick { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.contact-status .cs-tick circle { fill: #16a34a; }
.contact-status .cs-tick path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.contact-status.is-ok { color: #15803d; }
:root[data-theme="dark"] .contact-status.is-ok { color: #4ade80; }
@media (prefers-reduced-motion: reduce) { .contact-map { transition: none; } }
