/* ==========================================================================
   Eos Lightmedia — digital business card layout
   Card-specific styles layered on top of the house design system
   (shared/styles.css). Mobile-first; the card is a single centered column.
   ========================================================================== */

/* ---------- Animated Eos mesh gradient background --------------------------- */
/* Drifting blurred blobs over the brand gradient (from the proposal-builder
   brand proof). Fixed behind everything; the white cards float on top. */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(123deg, #3f2a86 0%, #5b2790 30%, #9a2a92 56%, #c41f8c 78%, #d24a9f 100%);
}
.mesh-bg .blobs { position: absolute; inset: -15%; filter: blur(72px); }
.mesh-bg .blob { position: absolute; border-radius: 50%; will-change: transform; }
.mesh-bg .b-blue    { width: 80vmax; height: 80vmax; left: -30vmax; top: 35vmax;  background: radial-gradient(circle at center, #1f9fe0 0%, rgba(31, 159, 224, 0) 66%); }
.mesh-bg .b-cyan    { width: 55vmax; height: 55vmax; left: -15vmax; top: 55vmax;  background: radial-gradient(circle at center, #34cdee 0%, rgba(52, 205, 238, 0) 64%); }
.mesh-bg .b-purple  { width: 85vmax; height: 85vmax; left: -12vmax; top: -25vmax; background: radial-gradient(circle at center, #5a2aa0 0%, rgba(90, 42, 160, 0) 64%); }
.mesh-bg .b-magenta { width: 78vmax; height: 78vmax; left: 22vmax;  top: 18vmax;  background: radial-gradient(circle at center, #c81f8c 0%, rgba(200, 31, 140, 0) 64%); }
.mesh-bg .b-pink    { width: 64vmax; height: 64vmax; left: 40vmax;  top: -5vmax;  background: radial-gradient(circle at center, #ea63c0 0%, rgba(234, 99, 192, 0) 66%); }
@media (prefers-reduced-motion: no-preference) {
  .mesh-bg .b-blue    { animation: mesh-f2 18s ease-in-out infinite alternate; }
  .mesh-bg .b-cyan    { animation: mesh-f1 15s ease-in-out infinite alternate; }
  .mesh-bg .b-purple  { animation: mesh-f3 17s ease-in-out infinite alternate; }
  .mesh-bg .b-magenta { animation: mesh-f4 14s ease-in-out infinite alternate; }
  .mesh-bg .b-pink    { animation: mesh-f1 16s ease-in-out infinite alternate; }
}
@keyframes mesh-f1 { to { transform: translate(6vmax, -5vmax); } }
@keyframes mesh-f2 { to { transform: translate(-6vmax, 5vmax); } }
@keyframes mesh-f3 { to { transform: translate(5vmax, 6vmax); } }
@keyframes mesh-f4 { to { transform: translate(-6vmax, -4.5vmax); } }

.card-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  /* Extra top padding so the headshot (which pokes ~34px above the card) has
     breathing room from the viewport top. */
  padding: clamp(3rem, 9vw, 4rem) 1rem 2.5rem;
}

.card {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(16, 22, 40, 0.14);
  border: 1px solid var(--line);
  padding: 0 clamp(1.25rem, 5vw, 2rem) 2rem;
  text-align: center;
  position: relative;
}

/* Separate rounded card below the main one — the "scan / share" block. */
.share-card {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(16, 22, 40, 0.14);
  border: 1px solid var(--line);
  padding: 1.9rem clamp(1.25rem, 5vw, 2rem);
  text-align: center;
}
/* QR no longer needs its own divider — the card separation is the divider. */
.share-card .qr-block { margin-top: 0; padding-top: 0; border-top: none; }
.share-card .card-foot { margin-top: 1.25rem; }

/* ---------- Entrance animation (classy, subtle; honors reduced-motion) ------ */
@media (prefers-reduced-motion: no-preference) {
  /* All animated bits start hidden ONLY inside this query, so reduced-motion
     users (no animation) still see everything at full opacity. */
  .card > *,
  .share-card { opacity: 0; }

  .card > *:not(.headshot) {
    animation: card-rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  /* The headshot carries its own translateY(-34px) overlap — animate around it. */
  .headshot { animation: card-head-in 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .share-card { animation: card-rise-in 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) both 0.5s; }

  .headshot           { animation-delay: 0.05s; }
  .card > .card-name  { animation-delay: 0.13s; }
  .card > .card-title { animation-delay: 0.19s; }
  .card > .dept-tag   { animation-delay: 0.25s; }
  .card > .roles      { animation-delay: 0.31s; }
  .card > .contact-rows { animation-delay: 0.37s; }
  .card > .projects   { animation-delay: 0.43s; }
  .card > .card-ctas  { animation-delay: 0.49s; }
}
@keyframes card-rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes card-head-in {
  from { opacity: 0; transform: translateY(-34px) scale(0.9); }
  to   { opacity: 1; transform: translateY(-34px) scale(1); }
}
/* Full-screen QR view: eyebrow + name fade up, the QR card pops in. */
@media (prefers-reduced-motion: no-preference) {
  .qr-stage > * { opacity: 0; animation: card-rise-in 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both; }
  .qr-stage .qr-logo { animation-delay: 0.1s; }
  .qr-stage .qr-card { animation: qr-pop 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) both 0.18s; }
  .qr-stage .qr-id { animation-delay: 0.36s; }
}
@keyframes qr-pop {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- Headshot -------------------------------------------------------- */
.headshot {
  width: 132px;
  height: 132px;
  margin: -2px auto 0;
  transform: translateY(-34px);
  margin-bottom: -22px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--magenta), var(--periwinkle));
  box-shadow: 0 10px 28px rgba(198, 57, 165, 0.28);
}
.headshot img,
.headshot .initials {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1c3ba1, #5761b8 55%, #c639a5);
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 3px solid #fff;
}

/* ---------- Identity -------------------------------------------------------- */
.card-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.card-title {
  font-size: 1rem;
  color: var(--body);
  font-weight: 600;
  margin: 0.1rem 0 0;
}
.tag-row {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.dept-tag {
  display: inline-block;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
}
.loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
}
.loc-tag svg { opacity: 0.75; }

/* Small "Department / Location" line under the role; location links to Maps. */
.sub-meta {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
  margin: 0.15rem 0 0;
}
.sub-meta .sep { opacity: 0.4; margin: 0 0.2rem; }
/* Inconspicuous link — looks like the surrounding text, no underline. */
.loc-link { color: inherit; text-decoration: none; }
.loc-link:hover { color: var(--magenta); }

.roles {
  margin: 1.1rem 0 0;
  text-align: left;
}
.roles-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.roles-value {
  font-size: 0.9rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

/* ---------- Contact rows ---------------------------------------------------- */
.contact-rows {
  margin: 1rem 0 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.42rem 0;
  text-decoration: none;
  color: var(--ink);
}
.contact-row .ico {
  flex: none;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
}
.contact-row .ico svg { width: 1.1rem; height: 1.1rem; display: block; }
.contact-row .ico .ico-logo { width: 1.5rem; height: 1.5rem; object-fit: contain; display: block; }
.contact-row .ct-text { display: inline-block; line-height: 1.2; }
.contact-row .ct-main { font-size: 0.96rem; font-weight: 500; line-height: 1.2; word-break: break-word; }
.contact-row .ct-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.1; }
a.contact-row { transition: transform 0.15s; }
a.contact-row:hover { transform: translateX(3px); }
a.contact-row:hover .ico { background: var(--accent); color: var(--accent-ink); }

/* ---------- Selected projects ----------------------------------------------- */
/* padding:0 overrides the house `section` rule (big marketing-page padding). */
.projects { margin-top: 1.5rem; padding: 0; text-align: left; }
.projects h2 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.8rem;
}
.project-circles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.project-circle {
  display: block;
  text-decoration: none;
  text-align: center;
}
.project-circle .thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: var(--brand-grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 22px rgba(16, 22, 40, 0.16);
  transition: transform 0.18s, box-shadow 0.18s;
}
.project-circle:hover .thumb {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 30px rgba(16, 22, 40, 0.24);
}
.project-circle .pc-name {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.25;
}

/* ---------- CTAs ------------------------------------------------------------ */
.card-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.card-ctas .btn {
  width: 100%;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  /* Classy layered shadow: a soft ambient lift + a tight contact edge. */
  box-shadow: 0 6px 16px -6px rgba(16, 22, 45, 0.22), 0 2px 5px -2px rgba(16, 22, 45, 0.14);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.card-ctas .btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
/* Tactile press feedback (mobile has no hover). */
.card-ctas .btn:active { transform: translateY(1px) scale(0.994); box-shadow: 0 3px 9px -4px rgba(16, 22, 45, 0.22); }
@media (hover: hover) {
  .card-ctas .btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
}

/* Primary — the Eos brand gradient (blue → periwinkle → magenta). */
.card-ctas .btn-save {
  color: #fff; border: none;
  background: linear-gradient(105deg, #1C3BA1 0%, #5A3FA6 48%, #C639A5 100%);
  box-shadow: 0 10px 24px -8px rgba(120, 45, 140, 0.5), 0 2px 6px -2px rgba(28, 59, 161, 0.35);
}
/* Secondary — grounded dark ink. */
.card-ctas .btn-email { color: #fff; border: none; background: var(--ink, #16181d); }
/* Tertiary — cyan brand accent (dark ink text). */
.card-ctas .btn-book {
  color: var(--ink, #16181d); border: none;
  background: linear-gradient(105deg, #28C2E5 0%, #35D0EE 100%);
}

/* ---------- QR -------------------------------------------------------------- */
.qr-block {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.qr-block .qr {
  width: 150px;
  height: 150px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.qr-block .qr { margin: 0 auto; }
.qr-block .qr svg { display: block; width: 100%; height: 100%; }
.qr-caption { font-size: 0.8rem; color: var(--muted); }

/* ---------- Gradient page footer: white socials + address ------------------- */
.page-footer {
  text-align: center;
  color: #fff;
  padding: 0.25rem 1rem 0.75rem;
}
.page-footer .footer-logo {
  display: block;
  width: 118px;
  max-width: 46%;
  height: auto;
  margin: 0 auto 0.9rem;
  opacity: 0.95;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.3));
}
.page-footer .socials {
  display: flex;
  gap: 1.15rem;
  justify-content: center;
  margin-bottom: 0.8rem;
}
.page-footer .socials a {
  color: #fff;
  display: inline-flex;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.35));
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.page-footer .socials a:hover { transform: translateY(-2px); }
.page-footer .socials svg { width: 1.4rem; height: 1.4rem; display: block; }
.page-footer .addr {
  color: #fff;
  font-size: 0.74rem;
  line-height: 1.5;
  margin: 0.1rem 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.card-foot {
  display: block;
  margin-top: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}
.card-foot img { width: 150px; height: auto; display: block; margin: 0 auto; }
.card-foot:hover { opacity: 0.78; }
.card-company {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.card-company p { margin: 0; }

/* ---------- Full-screen QR view (/c/<slug>/qr/) ----------------------------- */
.qr-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
}
.qr-logo { width: min(48vw, 180px); height: auto; display: block; }
.qr-card {
  width: min(82vw, 330px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
/* QR fills the card width (full width of the div) and is centered. */
.qr-stage .qr-big { width: 100%; }
.qr-stage .qr-big svg { width: 100%; height: auto; display: block; }
.qr-scan { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.qr-id h1 { font-size: 1.55rem; font-weight: 800; margin: 0; color: #fff; }
.qr-id p { color: rgba(255, 255, 255, 0.75); margin: 0.2rem 0 0; }

/* Reduced card (OpenAsset on_the_website = false): name + role only. */
.card.reduced .headshot .initials { background: var(--muted); }
