@font-face {
  font-family: "Tajarib";
  src: url("fonts/Tajarib_Typeface_Regular.woff2") format("woff2"), url("fonts/Tajarib_Typeface_Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Tajarib";
  src: url("fonts/Tajarib_Typeface_Medium.woff2") format("woff2"), url("fonts/Tajarib_Typeface_Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Tajarib";
  src: url("fonts/Tajarib_Typeface_Bold.woff2") format("woff2"), url("fonts/Tajarib_Typeface_Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0c0c0e;
  --bg-2: #17161a;
  --ink: #f4efe6;
  --soft: rgba(244, 239, 230, .72);
  --gold: #c9a45c;
  --gold-soft: rgba(201, 164, 92, .5);
  --hair: rgba(244, 239, 230, .14);
  --logo-docked: 76px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  background: radial-gradient(120% 90% at 50% 45%, var(--bg-2) 0%, var(--bg) 62%) fixed;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Tajarib", system-ui, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01";
}
body.docked { overflow: auto; }

/* ---- background video + 50% black veil ---------------------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: blur(16px);
  transform: scale(1.08);   /* hides the soft transparent edge the blur creates */
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
}

/* ---- logo ------------------------------------------------------------------ */
.stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

#logo {
  width: min(78vmin, 640px);
  height: auto;
  overflow: visible;
  cursor: pointer;
}

/* after the reveal the logo docks small at the top center */
.docked .stage {
  position: absolute;
  inset: 28px 0 auto;
  display: flex;
  justify-content: center;
}
.docked #logo { width: var(--logo-docked); }

/* ---- profile ------------------------------------------------------------- */
.profile {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(28px + var(--logo-docked) + 40px) 24px 56px;
  visibility: hidden;
}
.revealed .profile { visibility: visible; }

.profile > *,
.social a {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1), filter .9s ease;
}
.revealed .profile > *,
.revealed .social a {
  opacity: 1;
  transform: none;
  filter: none;
}
.revealed .avatar { transition-delay: 0s; }
.revealed .name   { transition-delay: .14s; }
.revealed .bio    { transition-delay: .28s; }
.revealed .social { transition-delay: .4s; }
.revealed .social a { transition-delay: calc(.46s + var(--i, 0) * .07s); }

.avatar {
  width: 176px;
  height: 176px;
  object-fit: cover;
  border-radius: 0 4.5rem 0 4.5rem;
  outline: 1px solid var(--gold-soft);
  outline-offset: 7px;
  margin-bottom: 34px;
  user-select: none;
  -webkit-user-drag: none;
}

.name {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 700;
  line-height: 1.25;
}
.latin {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
}

.bio {
  margin: 0 0 30px;
  max-width: 34em;
  text-wrap: balance;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.9;
  color: var(--soft);
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  color: var(--ink);
}
.social a:hover {
  color: var(--gold);
  border-color: var(--gold-soft);
  transform: translateY(-3px);
  transition-delay: 0s;
  transition-duration: .35s;
}
.social a:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.social svg { width: 19px; height: 19px; fill: currentColor; }

/* ---- skip intro ------------------------------------------------------------ */
.skip {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  font: inherit;
  font-size: 15px;
  color: var(--soft);
  background: rgba(12, 12, 14, .5);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 10px 22px 8px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: color .3s, border-color .3s, opacity .5s, visibility .5s;
}
.skip:hover { color: var(--gold); border-color: var(--gold-soft); }
.skip:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
.docked .skip { opacity: 0; visibility: hidden; pointer-events: none; }


@media (max-width: 520px) {
  :root { --logo-docked: 64px; }
  .docked .stage { top: 22px; }
  .avatar { width: 148px; height: 148px; margin-bottom: 28px; }
  .social { gap: 8px; }
  .social a { width: 36px; height: 36px; }
  .social svg { width: 16px; height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .profile > *, .social a { transition: none !important; filter: none; transform: none; }
}
