/* equiliberty connect — shared styles v2 */
:root {
  --ink: #062a2c;
  --ink-2: #0a3a3d;
  --tide: #17888c;
  --tide-bright: #2ab3b8;
  --tide-deep: #106568;
  --foam: #e9f4f3;
  --shell: #fdfcf9;
  --sand: #d4a94e;
  --line: #cfe3e2;
  --err: #a4452f;
  --radius: 20px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--foam);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- hero with living water ---------- */
.wave-hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(42, 179, 184, 0.35) 0%, transparent 55%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 55%, var(--tide-deep) 100%);
  padding: 30px 24px 118px;
  overflow: hidden;
}
.wave-hero .wordmark {
  position: relative; z-index: 2;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--foam);
  text-decoration: none;
}
/* The wordmark is the logo image; width/height on the tag reserve the space so
   the hero doesn't shift while it loads. */
.wave-hero .wordmark img {
  display: block;
  height: 30px;
  width: auto;
}
.wave-hero .hero-line {
  position: relative; z-index: 2;
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: rgba(233, 244, 243, 0.72);
}
#water {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%; height: 96px;
  display: block;
  z-index: 1;
}
/* static fallback when JS is off or motion reduced */
.waves-static {
  position: absolute; left: 0; right: 0; bottom: -2px;
  width: 100%; height: 70px; display: none; z-index: 1;
}
.no-water #water { display: none; }
.no-water .waves-static { display: block; }

/* ---------- layout ---------- */
main { max-width: 480px; margin: 0 auto; padding: 0 20px 64px; }

/* ---------- contact card ---------- */
.card {
  background: var(--shell);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(6, 42, 44, 0.16);
  margin-top: -64px;
  position: relative;
  z-index: 3;
  padding: 30px 24px 26px;
  text-align: center;
}
.avatar-ring {
  width: 96px; height: 96px;
  margin: -80px auto 14px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, var(--tide-bright), var(--tide), var(--sand), var(--tide-bright));
  position: relative;
}
@media (prefers-reduced-motion: no-preference) {
  .avatar-ring { animation: ring-turn 9s linear infinite; }
  .avatar-ring .avatar { animation: ring-turn 9s linear infinite reverse; }
  @keyframes ring-turn { to { transform: rotate(360deg); } }
}
.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--shell);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--shell);
  object-fit: cover;
}
img.avatar { display: block; }
.card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.card .role { color: var(--tide-deep); font-weight: 600; font-size: 0.95rem; margin-top: 5px; }
.card .org { font-size: 0.85rem; color: rgba(6, 42, 44, 0.6); margin-top: 3px; }

.contact-rows { margin-top: 20px; text-align: left; }
.contact-rows a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 10px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.18s ease, transform 0.18s ease;
}
.contact-rows a + a { border-top: 1px solid var(--line); }
.contact-rows a:hover { background: rgba(23, 136, 140, 0.07); transform: translateX(4px); }
.contact-rows svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--tide); }
.contact-rows .val { overflow-wrap: anywhere; }

/* ---------- buttons ---------- */
.actions { margin-top: 20px; display: grid; gap: 10px; }
.btn {
  position: relative;
  display: block; width: 100%;
  padding: 16px 18px;
  border: none; border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  cursor: pointer;
  text-align: center; text-decoration: none;
  overflow: hidden;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.985); }
.btn-primary {
  background: linear-gradient(120deg, var(--tide) 0%, var(--tide-deep) 100%);
  color: var(--shell);
}
.btn-primary:hover { background: var(--tide-deep); }
.btn-ghost { background: transparent; color: var(--tide-deep); border: 1.5px solid var(--tide); }
.btn-ghost:hover { background: rgba(23, 136, 140, 0.08); }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(253, 252, 249, 0.45);
  transform: scale(0);
  animation: ripple 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ripple { display: none; } }
.wallet-row { display: none; gap: 10px; }
.wallet-row.enabled { display: grid; grid-template-columns: 1fr 1fr; }

/* ---------- mission strip ---------- */
.mission {
  margin-top: 22px;
  text-align: center;
  padding: 4px 6px;
}
.mission p {
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.mission p em {
  font-style: normal;
  color: var(--tide-deep);
  border-bottom: 2px solid var(--sand);
}
.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips span {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--tide-deep);
  background: rgba(23, 136, 140, 0.1);
  border-radius: 999px;
  padding: 7px 13px;
}

/* ---------- connect form ---------- */
/* "Share your information" jumps here; leave breathing room above the heading
   so it doesn't land flush against the top of the viewport. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.connect {
  scroll-margin-top: 18px;
  background: var(--shell);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(6, 42, 44, 0.1);
  margin-top: 22px;
  padding: 28px 24px;
}
.connect h2 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.2rem;
  text-transform: lowercase;
}
.connect .sub { font-size: 0.9rem; color: rgba(6, 42, 44, 0.66); margin-top: 6px; }
.field { margin-top: 16px; }
.field label {
  display: block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--tide);
  box-shadow: 0 0 0 4px rgba(23, 136, 140, 0.16);
}
.btn:focus-visible, .contact-rows a:focus-visible {
  outline: 3px solid rgba(23, 136, 140, 0.5);
  outline-offset: 2px;
}
.field textarea { resize: vertical; min-height: 88px; }
.connect .btn { margin-top: 20px; }
.form-msg { margin-top: 14px; font-size: 0.93rem; display: none; align-items: center; gap: 9px; }
.form-msg.ok { display: flex; color: var(--tide-deep); font-weight: 600; }
.form-msg.fail { display: flex; color: var(--err); }
.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sand); flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 1.6s ease-out infinite; }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 169, 78, 0.55); }
    70% { box-shadow: 0 0 0 12px rgba(212, 169, 78, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 169, 78, 0); }
  }
}

/* ---------- entrance choreography ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(26px); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .rise-1 { animation-delay: 0.05s; }
  .rise-2 { animation-delay: 0.22s; }
  .rise-3 { animation-delay: 0.38s; }
  .rise-4 { animation-delay: 0.52s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
}

footer {
  text-align: center;
  padding: 8px 20px 42px;
  font-size: 0.78rem;
  color: rgba(6, 42, 44, 0.5);
}

/* ---------- profile chooser ---------- */
.chooser { display: grid; gap: 14px; margin-top: -64px; position: relative; z-index: 3; }
.chooser a.card { margin-top: 0; text-align: left; display: flex; align-items: center; gap: 16px; padding: 20px; text-decoration: none; color: var(--ink); transition: transform 0.15s ease; }
.chooser a.card:hover { transform: translateY(-3px); }
.chooser .avatar-ring { margin: 0; width: 60px; height: 60px; padding: 3px; flex-shrink: 0; }
.chooser .avatar { font-size: 1.05rem; border-width: 2px; }
