/* ============================================================
   Cipherverse — card.css · team profile card (cipherverse.in/<slug>)

   Opened from the QR on a printed visiting card, almost always on a phone.
   Same brand system as style.css: black ground, soft white, grey, one lime,
   Switzer, film grain, a lime light-leak. Lime only where something is
   tappable. Memorable detail: the glowing lime underline drawn under the
   name on load.
   ============================================================ */

@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --black:     #000000;
  --surface:   #0E0F12;
  --surface-2: #16181D;
  --white:     #F5F7FA;   /* 19.9:1 on black */
  --grey:      #8C93A0;   /* 7.1:1 on black, 6.4:1 on surface */
  --lime:      #C6FF35;
  --lime-rgb:  198, 255, 53;
  --line:      rgba(245, 247, 250, 0.10);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --font: 'Switzer', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --t-sm:   0.8125rem;
  --t-base: 1.0625rem;
  --t-name: clamp(2.5rem, 1.6rem + 4.2vw, 3.5rem);

  --s-1: 0.5rem;
  --s-2: 0.75rem;
  --s-3: 1rem;
  --s-4: 1.5rem;
  --s-5: 2.5rem;
  --s-6: 3.5rem;

  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(var(--s-5), env(safe-area-inset-top)) var(--s-3) max(var(--s-6), env(safe-area-inset-bottom));
  position: relative;
}

/* Film grain + one lime light-leak behind everything */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
body::before {
  background:
    radial-gradient(60% 42% at 85% -5%, rgba(var(--lime-rgb), 0.16), transparent 70%),
    radial-gradient(50% 35% at -10% 105%, rgba(var(--lime-rgb), 0.07), transparent 70%);
}
body::after {
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: screen;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26.5rem;
}

/* Brand */
.card__brand { display: inline-block; border-radius: 6px; }
.card__brand img { display: block; width: 132px; height: auto; }

/* Name with the short lime underline */
.card__head { margin: var(--s-6) 0 var(--s-5); }
.card__name {
  margin: 0;
  font-size: var(--t-name);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.card__name::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 4px;
  margin-top: var(--s-3);
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(var(--lime-rgb), 0.55);
}
.card__org {
  margin: var(--s-3) 0 0;
  color: var(--grey);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Contact lines — each one a full-width tap target */
.card__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.85), rgba(14, 15, 18, 0.85));
  box-shadow: inset 0 1px 0 rgba(245, 247, 250, 0.06);
  overflow: hidden;
}
.card__lines li + li { border-top: 1px solid var(--line); }

.line {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 4.25rem;
  padding: var(--s-2) var(--s-3);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.line__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  color: var(--lime);
  background: rgba(var(--lime-rgb), 0.08);
  border: 1px solid rgba(var(--lime-rgb), 0.22);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.line__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.line__label {
  color: var(--grey);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.line__value {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.line__go {
  flex: none;
  color: var(--grey);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.ic { display: block; }

.line:hover,
.line:focus-visible { background-color: rgba(var(--lime-rgb), 0.05); }
.line:hover .line__icon,
.line:focus-visible .line__icon { background: var(--lime); color: var(--black); }
.line:hover .line__go,
.line:focus-visible .line__go { color: var(--lime); transform: translate(2px, -2px); }
.line:active { background-color: rgba(var(--lime-rgb), 0.1); }

/* Save contact — the one solid lime button */
.card__save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-height: 3.5rem;
  margin-top: var(--s-4);
  border-radius: 999px;
  background: var(--lime);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(var(--lime-rgb), 0.7);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.card__save:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -16px rgba(var(--lime-rgb), 0.8); }
.card__save:active { transform: translateY(0); }

/* Focus: always visible, always lime */
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.line:focus-visible { outline-offset: -2px; }

/* One page-load reveal */
@media (prefers-reduced-motion: no-preference) {
  .card__brand, .card__head, .card__lines li, .card__save {
    animation: rise 0.8s var(--ease) both;
  }
  .card__head            { animation-delay: 0.08s; }
  .card__lines li:nth-child(1) { animation-delay: 0.18s; }
  .card__lines li:nth-child(2) { animation-delay: 0.24s; }
  .card__lines li:nth-child(3) { animation-delay: 0.30s; }
  .card__lines li:nth-child(4) { animation-delay: 0.36s; }
  .card__save            { animation-delay: 0.44s; }
  .card__name::after {
    transform-origin: left;
    animation: draw 0.9s var(--ease) 0.4s both;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 768px) {
  body { padding-top: var(--s-6); }
  .card__head { margin-top: 4.5rem; }
}
