:root { --accent: #8fe3c8; --ease: cubic-bezier(.2, .8, .2, 1); }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #12161d; color: #fff;
  font: 16px/1.35 Poppins, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: #1b2330 center / cover no-repeat;
  background-image: linear-gradient(170deg, #4a6077, #12161d 70%);
}
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.45)); }

/* glass frame around the whole page */
.frame {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 420px; margin: 8px auto; width: calc(100% - 16px);
  min-height: calc(100vh - 16px); min-height: calc(100dvh - 16px);
  padding: 17px 13px 22px;
  border: 3px solid rgba(255,255,255,.2); border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 40px rgba(0,0,0,.35);
}

.head { display: flex; align-items: center; gap: 10px; width: 100%; padding-left: 0; }
.head__avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: cover; object-position: top; }
.head__text { min-width: 0; flex: 1; }
.head__name { display: flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.head__name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head__name svg { flex: none; }
.head__sub { font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.2; }
.head__share {
  flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none; color: #fff; cursor: pointer;
}

.avatar {
  width: 102px; height: 102px; margin-top: 20px; border-radius: 50%;
  background: #fff; object-fit: cover; object-position: top;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.avatar.is-logo, .head__avatar.is-logo { object-fit: contain; object-position: center; padding: 12%; }

.title {
  margin: 16px 0 0; text-align: center; line-height: .9;
  font-family: Caveat, cursive; font-weight: 700; text-shadow: 0 3px 10px rgba(0,0,0,.4);
}
.title span { display: block; }
.title__a { font-size: 44px; }
.title__b { font-size: 38px; color: var(--accent); }
.title::after { content: ""; display: block; width: 40px; height: 2px; margin: 12px auto 0; border-radius: 2px; background: var(--accent); }

.links { width: 100%; display: flex; flex-direction: column; gap: 14px; margin-top: 20px; padding: 0 3px; }
.tile {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 13px; min-height: 69px; padding: 11px 15px 11px 15px;
  border-radius: 99px; color: #fff; text-decoration: none;
  background: rgba(24, 28, 34, .58); border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
}
.tile__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #1c1f26;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.tile__icon svg { width: 23px; height: 23px; }
.tile__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tile__title, .tile__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__title { font-size: 15px; font-weight: 600; }
.tile__sub { font-size: 11.5px; color: rgba(255,255,255,.75); }
.tile__arrow { flex: none; opacity: .95; transition: transform .25s var(--ease); }

/* platform colours inside the white circle */
.tile__icon .ic--website { color: #00a583; }
.tile__icon .ic--youtube { color: #f00; }
.tile__icon .ic--facebook { color: #1877f2; }
.tile__icon .ic--linkedin { color: #0a66c2; }
.tile__icon .ic--spotify { color: #1db954; }
.tile__icon .ic--whatsapp { color: #25d366; }
.tile__icon .ic--x { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: #000; color: #fff; }

.logo { width: 146px; max-height: 90px; object-fit: contain; margin-top: auto; padding-top: 24px; box-sizing: content-box; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 5; translate: -50% 0;
  background: #fff; color: #12161d; font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: 99px; box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.toast[hidden] { display: none; }
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- animations ---------- */
@keyframes in-bg   { from { opacity: 0; scale: 1.1; } }
@keyframes in-up   { from { opacity: 0; translate: 0 22px; } }
@keyframes in-pop  { from { opacity: 0; scale: .6; } }
@keyframes in-fade { from { opacity: 0; } }
.bg { animation: in-bg 1.6s var(--ease) backwards; }
.head { animation: in-fade .6s ease .1s backwards; }
.avatar { animation: in-pop .6s cubic-bezier(.34, 1.56, .64, 1) .15s backwards; }
.title { animation: in-up .7s var(--ease) .3s backwards; }
.tile { animation: in-up .6s var(--ease) backwards; } /* delay is set per link */
.logo { animation: in-fade 1s ease 1s backwards; }
.toast { animation: in-up .3s var(--ease) backwards; }

@media (hover: hover) {
  .tile:hover { transform: translateY(-3px); background: rgba(40, 46, 56, .72); border-color: var(--accent); box-shadow: 0 12px 24px rgba(0,0,0,.3); }
  .tile:hover .tile__icon { transform: scale(1.1) rotate(-6deg); }
  .tile:hover .tile__arrow { transform: translateX(5px); }
  .head__share:hover { background: rgba(255,255,255,.15); }
}
.tile:active { transform: scale(.97); transition-duration: .08s; }
.head__share:active { transform: scale(.85); }

/* phone with "desktop site" switched on: wide but very tall screen, so magnify */
@media (min-width: 600px) and (max-aspect-ratio: 13/20) {
  .frame { zoom: 2.3; min-height: calc((100vh - 38px) / 2.3); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
