/* OBD Virtual Card — scoped styles, self-contained (does not load style.css) */
:root {
  --gold-600: #b08a3e; --gold-500: #c9a24b; --gold-400: #d9b769; --gold-300: #e7cd93;
  --navy-950: #0f1b2d; --navy-900: #14233b; --navy-100: #e3e9f1; --navy-50: #eef2f7;
  --cream: #faf8f4; --ink: #131a24; --card-radius: 1.75rem;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(120% 120% at 50% 0%, var(--navy-950) 0%, #0a1220 100%);
  color: var(--ink); min-height: 100dvh; display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem) 1rem calc(env(safe-area-inset-bottom, 0px) + clamp(1rem, 4vw, 2.5rem));
}
.brand-strip {
  position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: center;
  padding: env(safe-area-inset-top, 0px) 0 .75rem; z-index: 2;
}
.brand-strip a img { width: 44px; height: auto; opacity: .95; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }

/* --- 3D flip card --- */
.scene { perspective: 1400px; width: min(380px, 92vw); }
.card {
  position: relative; width: 100%; aspect-ratio: 2 / 3.2; cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.2, .75, .25, 1);
  border-radius: var(--card-radius);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.card.flipped { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; border-radius: var(--card-radius);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transform: translateZ(2px);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .55), 0 2px 8px rgba(0,0,0,.3);
}
.face.back { transform: rotateY(180deg) translateZ(2px); }

/* front */
.front .photo { position: relative; flex: 1; }
.front .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.front .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(15, 27, 45, .92) 100%);
}
.front .id {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.25rem 1.15rem; z-index: 1;
}
.front h1 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: clamp(1.5rem, 6vw, 1.8rem); color: var(--cream); letter-spacing: .01em; line-height: 1.15;
}
.front .role {
  margin-top: .3rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 600;
}

/* back — cream/tertiary to contrast the dark page background */
.back { background: linear-gradient(160deg, var(--cream) 0%, #f1e9da 100%); color: var(--navy-950); padding: 1.25rem; }
.back .inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px solid rgba(176, 138, 62, .45); border-radius: calc(var(--card-radius) - .75rem); padding: 1rem; }
.back .monogram {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-400)); color: #fff;
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem;
}
.back h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.35rem; font-weight: 600; color: var(--navy-950); }
.back .role2 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; margin-top: .3rem; }
.divider { height: 1px; width: 56px; background: linear-gradient(90deg, transparent, var(--gold-600), transparent); margin: 1.1rem 0; }
.btn-col { display: grid; gap: .7rem; width: 100%; margin-top: .25rem; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1rem; border-radius: .8rem; font-weight: 600; font-size: .95rem;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-600), var(--gold-400)); color: #fff; box-shadow: 0 6px 18px -6px rgba(176,138,62,.65); }
.btn-gold:hover { box-shadow: 0 8px 22px -6px rgba(176,138,62,.9); }
.btn-navy {
  border: 1px solid var(--navy-100); color: var(--navy-950); background: #fff;
}
.btn-navy:hover { background: var(--navy-50); }

.tagline { margin-top: 1rem; font-size: .68rem; color: var(--navy-950); opacity: .62; position: absolute; bottom: 1rem; left: 0; right: 0; }
.hint {
  margin-top: 1.1rem; text-align: center; color: rgba(250,248,244,.75);
  font-size: .78rem; display: flex; align-items: center; justify-content: center; gap: .45rem;
  animation: pulse 2.2s ease-in-out infinite;
}
.hint svg { width: 14px; height: 14px; }
@keyframes pulse { 0%,100% { opacity: .55 } 50% { opacity: 1 } }

/* hub */
.hub { max-width: 1100px; margin: 0 auto; padding: 6.5rem 1.25rem 3rem; width: 100%; }
.hub .eyebrow { text-align: center; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; }
.hub h1 { text-align: center; color: var(--cream); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 600; margin-top: .6rem; }
.hub .sub { text-align: center; color: rgba(250,248,244,.7); margin: .8rem auto 2.25rem; max-width: 32rem; font-size: .95rem; line-height: 1.6; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.1rem; }
.people a {
  text-decoration: none; border-radius: 1.25rem; overflow: hidden;
  background: var(--navy-900); border: 1px solid rgba(201,162,75,.25);
  transition: transform .2s ease, border-color .2s ease; position: relative;
}
.people a:hover { transform: translateY(-4px); border-color: var(--gold-500); }
.people img { aspect-ratio: 4/5; width: 100%; object-fit: cover; object-position: top; display: block; filter: saturate(.92); }
.people .pbody { padding: .8rem .9rem .95rem; }
.people h3 { color: var(--cream); font-size: .95rem; font-weight: 600; font-family: 'Playfair Display', Georgia, serif; }
.people p { color: var(--gold-400); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .25rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .hint { animation: none; }
  .people a { transition: none; }
}
