/* /filipvra: dark link-in-bio page. System SF type, soft glass pills, rounded cards, one intro moment.
   Our own code; the glow is tinted with OFFrame's Frame Blue + Frame Pink. */
:root {
  --ink: #050505;
  --card: #111111;
  --text: #f5f5f4;
  --muted: rgb(245 245 244 / 0.62);
  --faint: rgb(245 245 244 / 0.4);
  --edge: rgb(255 255 255 / 0.06);
  --blue: #013296;
  --pink: #ff8fb3;
  --sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --text-sans: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh;
  background: var(--ink); color: var(--text);
  font: 400 16px/1.55 var(--text-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 8px; }

/* backdrop: the photo itself, blurred and saturated at half strength, so the haze takes the photo's colours */
.bg { position: fixed; inset: -12%; z-index: 0; pointer-events: none; }
.bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: blur(80px) saturate(1.5) brightness(.85); transform: scale(1.1); }
/* keep the lower half near-black so text and cards stay crisp */
.bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 5 5 / 0) 0%, rgb(5 5 5 / .35) 40%, rgb(5 5 5 / .85) 100%); }
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative; z-index: 1;
  width: 100%; max-width: 1120px; margin: 0 auto;
  padding: 56px 16px 40px;
  display: flex; flex-direction: column; align-items: center;
}

/* hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 784px; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; padding: 3px;
  background: linear-gradient(160deg, rgb(255 255 255 / .5), rgb(255 255 255 / .1) 50%, rgb(255 255 255 / .3));
  box-shadow: 0 0 36px rgb(255 255 255 / .12), 0 0 0 1px rgb(255 255 255 / .08);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.title {
  margin: 22px 0 0;
  font: 500 clamp(44px, 8.4vw, 92px)/1.02 var(--sans);
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 30%, rgb(245 245 244 / .5) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
  text-wrap: balance;
}
.pills { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill, .chip {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; color: var(--text);
  background:
    radial-gradient(130% 70% at 50% -20%, rgb(255 255 255 / .16), transparent 55%),
    linear-gradient(180deg, rgb(255 255 255 / .08), rgb(255 255 255 / .02));
  box-shadow:
    inset 0 1px .5px rgb(255 255 255 / .42),
    inset 0 -1px 1px rgb(255 255 255 / .1),
    inset 0 0 16px rgb(255 255 255 / .05),
    0 4px 14px rgb(0 0 0 / .45);
  transition: transform .25s var(--ease), background-color .25s;
}
.pill { height: 48px; padding: 0 18px 0 14px; font: 500 17px/1 var(--sans); letter-spacing: -0.015em; }
.pill svg { width: 22px; height: 22px; }
.pill:hover, .chip:hover { transform: translateY(-2px); }
.lede {
  margin: 30px 0 0; max-width: 540px;
  font: 400 clamp(18px, 2.4vw, 23px)/1.55 var(--sans); letter-spacing: -0.008em;
  color: var(--muted);
}
.founder {
  margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  font: 500 17px/1 var(--sans); color: var(--text);
}
.chip { height: 38px; padding: 0 14px 0 6px; font: 500 16px/1 var(--sans); letter-spacing: -0.01em; }
.chip__logo { width: 26px; height: 26px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; }
.chip__logo img { width: 20px; }

/* cards */
.card {
  width: 100%; max-width: 640px; margin-top: 56px;
  background: var(--card); border-radius: 32px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--edge), 0 30px 80px rgb(0 0 0 / .5);
}
.card + .card { margin-top: 28px; }
.card__body { padding: 32px 28px 30px; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.card__title {
  margin: 0;
  font: 500 clamp(38px, 6vw, 54px)/1.05 var(--sans); letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 35%, rgb(245 245 244 / .55) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card__sub { margin: 10px 0 0; font: 400 17px/1.5 var(--sans); color: var(--muted); }
.badge {
  flex: none; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, rgb(1 50 150 / .9), rgb(1 50 150 / .35) 60%, transparent 72%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
}
.badge img { width: 70px; filter: drop-shadow(0 0 10px rgb(255 255 255 / .45)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }

.rows { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: rgb(255 255 255 / .035);
  font: 400 16px/1.45 var(--text-sans); color: var(--muted);
}
.row b { color: var(--text); font-weight: 500; }
.row__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 4px 10px rgb(0 0 0 / .35); }
.row__icon svg { width: 20px; height: 20px; }
.row__icon--pink { background: linear-gradient(160deg, #ffb3cb, #ff6f9f); color: #3a0418; }
.row__icon--blue { background: linear-gradient(160deg, #2f62d6, #013296); color: #fff; }
.row__icon--day { background: linear-gradient(160deg, #ffffff, #dfe5f2); color: var(--blue); }

.cta {
  margin-top: 22px; height: 52px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; background: #f5f5f4; color: #111;
  font: 600 16px/1 var(--text-sans);
  box-shadow: 0 0 22px rgb(255 143 179 / .28), 0 0 36px rgb(1 50 150 / .4), inset 0 -2px 0 rgb(0 0 0 / .08);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.cta svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.cta:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgb(255 143 179 / .4), 0 0 48px rgb(1 50 150 / .55); }
.cta:hover svg { transform: translateX(3px); }

/* video card media */
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
.video__poster { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.video:hover .video__poster { transform: scale(1.03); }
.video__frame { position: absolute; inset: 0; display: grid; place-items: center; background: #000; opacity: 0; pointer-events: none; transition: opacity .35s; }
.video__frame video { height: 100%; width: auto; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgb(255 255 255 / .14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px .5px rgb(255 255 255 / .5), 0 8px 24px rgb(0 0 0 / .4);
  transition: transform .3s var(--ease), opacity .3s;
}
.video__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video:hover .video__play { transform: scale(1.08); }
.video.is-playing .video__frame { opacity: 1; pointer-events: auto; }
.video.is-playing .video__play { opacity: 0; }

/* footer: oversized faint name */
.foot { margin-top: 110px; text-align: center; width: 100%; }
.foot__name {
  margin: 0; font: 500 clamp(56px, 12vw, 150px)/1 var(--sans); letter-spacing: -0.055em;
  color: rgb(245 245 244 / .1); white-space: nowrap;
}
.foot__meta { margin: 26px 0 0; font: 400 14px/1 var(--text-sans); color: var(--faint); }
.foot__meta a:hover { color: var(--text); }

/* ---------- intro ---------- */
/* while the intro runs, page parts start hidden and main.js brings each one in on cue */
.stage { display: none; }
.intro body { overflow: hidden; }
.intro .bg { opacity: 0; }
.intro .rise, .intro .land, .intro .hero .avatar img { opacity: 0; }
.intro .stage { display: block; position: fixed; inset: 0; z-index: 10; }
.stage__glow {
  position: absolute; left: 50%; top: 52%; width: 620px; height: 620px; margin: -310px 0 0 -310px;
  border-radius: 50%; object-fit: cover; opacity: 0;
  filter: blur(70px) saturate(1.5) brightness(.8);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.stage__avatar { position: absolute; left: 50%; top: 52%; width: 190px; height: 190px; margin: -95px 0 0 -95px; }
.stage__avatar img {
  position: absolute; left: 20px; top: 20px; width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px rgb(255 255 255 / .16), 0 0 30px rgb(0 0 0 / .5); opacity: 0;
}
.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); opacity: 0; }
.ring circle {
  fill: none; stroke: rgb(255 255 255 / .92); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 3px rgb(255 255 255 / .6));
}
.bubble {
  position: absolute; left: 50%; top: 52%; width: 50px; height: 50px; margin: -25px 0 0 -25px;
  display: grid; place-items: center; opacity: 0;
}
.bubble__shell {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(130% 70% at 50% -20%, rgb(255 255 255 / .2), transparent 55%), rgb(32 32 34 / .8);
  box-shadow: inset 0 1px .5px rgb(255 255 255 / .42), inset 0 0 12px rgb(255 255 255 / .05), 0 6px 18px rgb(0 0 0 / .45);
}
.bubble svg { position: relative; width: 24px; height: 24px; }
.bubble--brand .bubble__shell { background: radial-gradient(130% 70% at 50% -20%, rgb(255 255 255 / .25), transparent 55%), var(--blue); }
.bubble--brand img { position: relative; width: 28px; }
.stage__name {
  position: absolute; left: 0; right: 0; top: calc(52% + 124px); margin: -16px 0 0; text-align: center;
  font: 500 26px/32px var(--sans); letter-spacing: -0.03em; color: var(--text); opacity: 0;
}

@media (max-width: 480px) {
  .page { padding-top: 40px; }
  .pill { height: 44px; font-size: 16px; padding: 0 15px 0 12px; }
  .card { border-radius: 26px; margin-top: 44px; }
  .card__body { padding: 26px 20px 24px; }
  .badge { width: 84px; height: 84px; }
  .badge img { width: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .badge img { animation: none; }
}
