/* BITS contact card — brand-aligned. Dark hero (Navy/Coal), Smoke/White text,
   BiTS Blue as accent only. Geomanist for CTAs, Playfair for name, Roboto for title. */

@font-face {
  font-family: 'Geomanist';
  src: url('/assets/fonts/geomanist/geomanist-regular-webfont.woff2') format('woff2'),
       url('/assets/fonts/geomanist/geomanist-regular-webfont.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bits-blue: #15AFE5;
  --bits-navy: #201F2F;
  --bits-coal: #141414;
  --bits-smoke: #D5D5D5;
  --bits-white: #FFFFFF;
  --radius: 16px;
  --maxw: 460px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Source Sans 3', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--bits-smoke);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(21,175,229,0.18), transparent 60%),
    linear-gradient(180deg, var(--bits-navy) 0%, var(--bits-coal) 100%);
  background-attachment: fixed;
  min-height: 100%;
  display: flex;
  justify-content: center;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Brand bar */
.brand {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}
.brand img { height: 30px; width: auto; }

/* Hero */
.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}
.photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 0 0 6px rgba(21,175,229,0.10);
}
.name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--bits-white);
}
.title {
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.2px;
  color: var(--bits-smoke);
}
.org { font-size: 14px; color: rgba(213,213,213,0.7); }
.tagline {
  font-size: 13.5px;
  color: rgba(213,213,213,0.78);
  max-width: 30ch;
  margin: 2px auto 0;
  line-height: 1.4;
}

/* Primary CTA — Geomanist, uppercase */
.btn {
  font-family: 'Geomanist', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 15px;
  border: 0;
  border-radius: 999px;
  padding: 16px 22px;
  cursor: pointer;
  text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .08s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn-primary {
  background: var(--bits-blue);
  color: var(--bits-coal);
  box-shadow: 0 8px 24px rgba(21,175,229,0.35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(21,175,229,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--bits-white);
  border: 1px solid rgba(255,255,255,0.16);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn .ico { width: 18px; height: 18px; flex: 0 0 auto; }

/* Contact rows */
.contacts {
  list-style: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.contacts li + li { border-top: 1px solid rgba(255,255,255,0.07); }
.contacts a {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px;
  color: var(--bits-white);
  text-decoration: none;
}
.contacts a:hover { background: rgba(255,255,255,0.05); }
.contacts .ico {
  width: 20px; height: 20px; flex: 0 0 auto;
  color: var(--bits-blue);
}
.contacts .meta { display: flex; flex-direction: column; min-width: 0; }
.contacts .meta .k { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: rgba(213,213,213,0.6); }
.contacts .meta .v { font-size: 16px; color: var(--bits-white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Section heads — Roboto title case */
.section-h {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(213,213,213,0.6);
  margin: 6px 2px 0;
}

/* QR */
.qr-wrap {
  display: none;
  background: var(--bits-white);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.qr-wrap.show { display: block; }
.qr-wrap svg, .qr-wrap img { width: 200px; height: 200px; }
.qr-wrap p { color: var(--bits-coal); font-size: 13px; margin-top: 8px; }

/* Capture form */
.capture {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px;
}
.capture.hidden { display: none; }
.capture h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 400; font-size: 20px; color: var(--bits-white); margin-bottom: 4px;
}
.capture p.sub { font-size: 13.5px; color: rgba(213,213,213,0.75); margin-bottom: 12px; }
.capture form { display: flex; flex-direction: column; gap: 10px; }
.capture .row2 { display: flex; gap: 10px; }
.capture .row2 input { flex: 1; min-width: 0; }
.capture input, .capture textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px avoids iOS zoom-on-focus */
  color: var(--bits-white);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  padding: 12px 14px;
}
.capture input::placeholder, .capture textarea::placeholder { color: rgba(213,213,213,0.5); }
.capture input:focus, .capture textarea:focus { outline: none; border-color: var(--bits-blue); }
.capture textarea { resize: vertical; }
.capture .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot */
.capture button[type=submit] { margin-top: 4px; }
.form-msg { font-size: 13.5px; min-height: 1em; margin-top: 2px; }
.form-msg.ok { color: var(--bits-blue); }
.form-msg.err { color: #ff8c8c; }

footer {
  text-align: center;
  font-size: 12px;
  color: rgba(213,213,213,0.5);
  line-height: 1.5;
  padding-top: 4px;
}
footer a { color: rgba(213,213,213,0.65); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
