/* The digital card: one screen in the manner of the site's first screen. The name across the
   paper, the portrait standing in it, who I am at the lower left, what to do next at the lower right. */
.vcard { position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  background: linear-gradient(var(--paper) 0 72px, transparent 72px),
    repeating-linear-gradient(180deg, transparent 0 calc(max(10px, .694vw) - 1.3px), rgba(16,21,31,.62) calc(max(10px, .694vw) - 1.3px) max(10px, .694vw)), var(--paper); }
.vcard > * { position: absolute; }
.vcard h1 { left: 0; right: 0; top: 7svh; z-index: 1; margin: 0; text-align: center; white-space: nowrap; word-spacing: .12em; color: #fff; mix-blend-mode: difference;
  font-size: min(25.2vw, 56svh); line-height: .8; font-weight: 900; font-stretch: 75%; letter-spacing: -.02em; text-transform: uppercase; }
.vcard__figure { z-index: 3; left: 50%; bottom: 0; height: 86svh; width: auto; translate: -50% 0; pointer-events: none; }
.vcard__who { z-index: 5; left: var(--gutter); bottom: 28px; display: grid; gap: 10px; justify-items: start; max-width: min(330px, 25vw); }
.vcard__kind, .vcard__roles, .vcard__place, .vcard__foot { margin: 0; background: var(--paper); padding: 6px 10px; }
.vcard__kind { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--graphite); }
.vcard__kind::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay-fill); }
.vcard__roles { padding: 14px 16px; font-size: 14px; font-weight: 750; letter-spacing: .04em; line-height: 1.6; text-transform: uppercase; }
.vcard__place { display: flex; gap: 9px; align-items: center; background: var(--ink); color: var(--paper); padding: 9px 14px; border-radius: 99px; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.vcard__place i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--clay-fill); }
.vcard__go { z-index: 5; right: var(--gutter); bottom: 28px; display: grid; gap: 8px; width: min(300px, 26vw); }
.vcard__go .pill { text-align: center; border: 0; cursor: pointer; font-family: var(--sans); }
.vcard__share { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.vcard__share:hover, .vcard__share:focus-visible { color: #fff; }
.vcard__status { min-height: 1.4em; margin: 0; font-size: 13px; font-weight: 650; text-align: center; background: var(--paper); }
.vcard__status:empty { background: none; }
.vcard__foot { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
/* one screen: the Menu button is always there, and the CV button makes room for it */
.card-page .bar .cv { margin-right: 104px; }
@media (prefers-reduced-motion: no-preference) {
  .vcard h1 { animation: name-in 1.15s cubic-bezier(.2,.8,.2,1) both; }
  .vcard__figure { animation: card-figure-in 1.2s cubic-bezier(.2,.8,.2,1) .15s both; }
  .vcard__who, .vcard__go { animation: settle-in .8s cubic-bezier(.2,.8,.2,1) .8s both; }
}
@keyframes card-figure-in { from { opacity: 0; translate: -50% 6svh; } to { opacity: 1; translate: -50% 0; } }

/* a phone holds the card as a column: name, portrait, who, then large buttons */
@media (max-width: 760px) {
  .vcard { height: auto; min-height: 100svh; padding: 76px 0 28px; }
  .vcard > * { position: relative; }
  .vcard h1 { top: auto; white-space: normal; font-size: 43vw; line-height: .78; padding: 0 var(--gutter); text-align: left; }
  .vcard__figure { display: block; left: auto; bottom: auto; translate: none; height: auto; width: 86vw; margin: -13vw 0 0 auto; animation-name: settle-in; }
  .vcard__who { left: auto; bottom: auto; max-width: none; margin: -18vw var(--gutter) 0; }
  .vcard__go { right: auto; bottom: auto; width: auto; margin: 22px var(--gutter) 0; gap: 10px; }
  .vcard__go .pill { padding: 18px 20px; font-size: 14px; }
}

/* sharing: the address is shown, with plain ways to pass it on */
.vcard__ways { display: grid; gap: 8px; padding: 12px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); border-radius: 18px; }
.vcard__ways[hidden] { display: none; }
.vcard__link { display: grid; gap: 4px; }
.vcard__link span { font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--graphite); }
.vcard__link input { width: 100%; border: 0; border-bottom: 1.5px solid var(--ink); background: none; padding: 4px 0 6px; font: 600 13px/1.3 var(--sans); color: var(--ink); outline: none; }
.vcard__link input:focus-visible { box-shadow: 0 2px 0 var(--clay); }
.vcard__status { padding: 2px 6px; }
