:root {
  --black: #030305;
  --ink: #08080b;
  --white: #fff;
  --ivory: #fdf7fa;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.13);
  --safe-top: max(18px, env(safe-area-inset-top));
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  background: var(--black);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: #050507;
  color: var(--white);
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 18%, rgba(43, 77, 253, 0.10), transparent 34rem),
    radial-gradient(circle at 80% 78%, rgba(197, 0, 255, 0.055), transparent 28rem);
}

.ambient__wash {
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.profile {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  width: 100%;
  margin: 0 auto;
  padding: var(--safe-top) 14px var(--safe-bottom);
}

.card-shell {
  position: relative;
  display: flex;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 26px 20px 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 3px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 32%),
    linear-gradient(180deg, #08080b 0%, #030305 100%);
  box-shadow: 0 34px 100px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.035);
}

.card-shell::before {
  content: "";
  position: absolute;
  inset: -1px auto auto 26px;
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
}

.card-shell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  border-top: 1px solid rgba(214,77,255,.38);
  border-right: 1px solid rgba(214,77,255,.38);
  pointer-events: none;
}

.card-emblem {
  position: absolute;
  top: -56px;
  right: -92px;
  width: 300px;
  height: auto;
  opacity: .055;
  transform: translate3d(var(--emblem-x, 0), var(--emblem-y, 0), 0) rotate(3deg);
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
  pointer-events: none;
}

.card-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: block;
  width: 146px;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.brand img { width: 100%; height: auto; }

.card-header__edition {
  color: rgba(255,255,255,.35);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
}

.identity {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6.5svh, 58px);
}

.role {
  margin: 0 0 11px;
  color: var(--brand-soft);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1 {
  display: flex;
  margin: 0;
  flex-wrap: wrap;
  column-gap: .21em;
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(43px, 12.5vw, 55px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
}

h1 span:last-child { color: #e7e1e5; }

.positioning {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 1px solid var(--brand-primary);
}

.description,
.tagline {
  margin: 0;
  line-height: 1.45;
}

.description {
  color: rgba(255,255,255,.78);
  font-size: 12px;
}

.tagline {
  margin-top: 5px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.contact-details {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: clamp(30px, 4.5svh, 40px);
  border-top: 1px solid var(--line);
  font-style: normal;
}

.contact-details a {
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr) 22px;
  min-height: 52px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  -webkit-touch-callout: default;
  touch-action: manipulation;
  transition: background-color 180ms ease;
}

.contact-details__label {
  color: rgba(255,255,255,.4);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-details strong {
  overflow: hidden;
  color: rgba(255,255,255,.9);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  -webkit-user-select: text;
  user-select: text;
  white-space: nowrap;
}

.contact-details__icon { color: rgba(255,255,255,.42); }
.contact-details__icon svg { width: 15px; }

.exchange {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: clamp(20px, 3.3svh, 28px) 0 0;
  flex-direction: column;
}

.qr-wrap {
  position: relative;
  width: min(51vw, 198px);
  padding: 11px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 5px;
  background: var(--ivory);
  box-shadow: 0 20px 55px rgba(0,0,0,.42), 0 0 0 5px rgba(255,255,255,.018);
}

.qr { width: 100%; height: auto; }

.qr__mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 25px;
  height: auto;
  padding: 2px;
  transform: translate(-50%, -50%);
  border-radius: 4px;
  background: white;
  object-fit: contain;
}

.exchange__intro {
  margin: 0 0 11px;
  color: rgba(255,255,255,.5);
  font-size: 9px;
  line-height: 1.35;
  text-align: center;
}

.exchange__intro span {
  margin-right: 7px;
  color: white;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.save-button {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  width: min(100%, 300px);
  min-height: 64px;
  margin-top: 14px;
  align-items: center;
  gap: 12px;
  padding: 8px 15px 8px 11px;
  overflow: hidden;
  border: 1px solid rgba(93,111,255,.52);
  border-radius: 4px;
  background:
    linear-gradient(115deg, rgba(43,77,253,.2), rgba(197,0,255,.075) 52%, rgba(255,255,255,.025)),
    #0b0b11;
  color: white;
  text-decoration: none;
  box-shadow: 0 14px 38px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.055);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.save-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
}

.save-button__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 3px;
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.84);
}

.save-button__icon svg { width: 17px; }
.save-button__arrow { color: rgba(255,255,255,.62); }
.save-button__arrow svg { width: 20px; }

.save-button > span:nth-child(2) {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.save-button small {
  display: block;
  margin-bottom: 3px;
  color: rgba(255,255,255,.52);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: .14em;
}

.actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px -20px 0;
  border-top: 1px solid var(--line);
}

.actions a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(255,255,255,.7);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.actions a + a { border-left: 1px solid var(--line); }
.actions svg { width: 14px; }

.noscript {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 4;
  margin: 0;
  padding: 8px;
  background: #111;
  color: white;
  font-size: 11px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(9px);
  animation: arrive 650ms cubic-bezier(.22,.8,.24,1) forwards;
}
.reveal--1 { animation-delay: 70ms; }
.reveal--2 { animation-delay: 140ms; }
.reveal--3 { animation-delay: 220ms; }
.reveal--4 { animation-delay: 300ms; }
.reveal--5 { animation-delay: 380ms; }

@keyframes arrive { to { opacity: 1; transform: translateY(0); } }

@media (hover: hover) {
  .brand:hover { opacity: .78; }
  .contact-details a:hover,
  .actions a:hover { color: white; background: rgba(255,255,255,.045); }
  .save-button:hover { transform: translateY(-2px); border-color: rgba(214,77,255,.72); box-shadow: 0 18px 46px rgba(0,0,0,.44), 0 0 28px rgba(43,77,253,.1); }
}

@media (min-width: 600px) {
  body { display: grid; place-items: center; }
  .profile { display: grid; width: 100%; padding: 38px; place-items: center; }
  .card-shell {
    padding: 34px 27px 0;
    border-color: rgba(255,255,255,.16);
    box-shadow: 0 45px 140px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.8), inset 0 1px rgba(255,255,255,.04);
  }
  .card-emblem { width: 340px; right: -104px; }
  .brand { width: 157px; }
  .identity { margin-top: 58px; }
  h1 { font-size: 55px; }
  .contact-details { margin-top: 42px; }
  .exchange { margin-top: 28px; }
  .qr-wrap { width: 205px; }
  .actions { margin-inline: -27px; }
}

@media (max-height: 740px) and (max-width: 599px) {
  .card-shell { padding-top: 17px; }
  .identity { margin-top: 24px; }
  h1 { font-size: 41px; }
  .positioning { margin-top: 11px; }
  .contact-details { margin-top: 18px; }
  .contact-details a { min-height: 43px; }
  .exchange { margin-top: 16px; }
  .qr-wrap { width: 155px; }
  .save-button { min-height: 58px; margin-top: 11px; }
  .actions { margin-top: 17px; }
  .actions a { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0ms !important; }
}

:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 3px; }
