:root {
  --bg-0: #1c1c20;
  --bg-1: #2a2a2f;
  --surface: rgba(255,255,255,0.025);
  --surface-hover: rgba(255,255,255,0.045);
  --hairline: rgba(255,255,255,0.08);
  --hairline-strong: rgba(255,255,255,0.16);
  --fg: #f4f4f5;
  --fg-dim: #8a8a8f;
  --fg-mute: #5a5a5f;
  --accent: #e9e6dd;
  --radius: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 20px 60px -20px rgba(0,0,0,0.8), 0 1px 0 rgba(255,255,255,0.04) inset;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  color: var(--fg);
  background: var(--bg-0);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-1) 0%, var(--bg-0) 70%),
    var(--bg-0);
}

.bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.10;
  filter: blur(28px) saturate(70%) brightness(0.7);
  transform: scale(1.08);
  animation: kenburns 30s var(--ease) infinite alternate;
}

.bg__aurora { display: none; }

.bg__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
}

@keyframes kenburns {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1%); }
}

.card {
  position: relative;
  width: min(100%, 400px);
  padding: 36px 32px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  animation: card-in 800ms var(--ease) 100ms forwards;
}

@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}

.logo {
  width: 120px;
  height: auto;
  opacity: 0;
  filter: brightness(1.15);
  animation: fade-in 600ms var(--ease) 350ms forwards;
}

.card__divider {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--hairline-strong);
  margin: 22px 0 28px;
  opacity: 0;
  animation: fade-in 500ms var(--ease) 600ms forwards;
}

.avatar {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 24px;
  isolation: isolate;
  opacity: 0;
  animation: avatar-in 700ms var(--ease) 700ms forwards;
  box-shadow:
    0 0 0 1px var(--hairline),
    0 0 0 6px rgba(255,255,255,0.025),
    0 18px 36px -14px rgba(0,0,0,0.7);
}

@keyframes avatar-in {
  to { opacity: 1; }
}

.avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 18%;
}

@media (min-width: 600px) {
  .avatar { width: 148px; height: 148px; }
}

.name {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 5.5vw, 28px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 6px;
  color: var(--fg);
}

.name__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  animation: char-in 380ms var(--ease) forwards;
  animation-delay: calc(900ms + var(--i) * 24ms);
}

@keyframes char-in {
  to { opacity: 1; transform: translateY(0); }
}

.role {
  color: var(--fg-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0;
  animation: fade-in 500ms var(--ease) 1300ms forwards;
}

.tagline {
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-in 500ms var(--ease) 1400ms forwards;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--fg-mute);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-in 500ms var(--ease) 1500ms forwards;
}

.location__pin {
  flex-shrink: 0;
  margin-top: -1px;
}

@keyframes fade-in {
  to { opacity: 1; }
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
  opacity: 0;
  animation: fade-in 500ms var(--ease) 1600ms forwards;
}

.qa {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--fg);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.qa:hover, .qa:focus-visible {
  background: var(--surface-hover);
  border-color: var(--hairline-strong);
  outline: none;
}

.qa:active { transform: scale(0.97); }
.qa:focus-visible { box-shadow: 0 0 0 1px var(--fg-dim); }

.qa__icon {
  display: grid;
  place-items: center;
  color: var(--fg);
}

.qa__label {
  color: var(--fg-dim);
  transition: color 220ms var(--ease);
}

.qa:hover .qa__label,
.qa:focus-visible .qa__label { color: var(--fg); }

.qa--save {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
}

.qa--save:hover, .qa--save:focus-visible {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.links li {
  opacity: 0;
  transform: translateY(6px);
  animation: link-in 500ms var(--ease) forwards;
}

.links li:nth-child(1) { animation-delay: 1700ms; }
.links li:nth-child(2) { animation-delay: 1760ms; }
.links li:nth-child(3) { animation-delay: 1820ms; }

@keyframes link-in {
  to { opacity: 1; transform: translateY(0); }
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: background 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}

.link:hover, .link:focus-visible {
  background: var(--surface-hover);
  border-color: var(--hairline-strong);
  outline: none;
}

.link:active { transform: scale(0.99); }

.link:focus-visible {
  box-shadow: 0 0 0 1px var(--fg-dim);
}

.link__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--fg-dim);
  transition: color 220ms var(--ease);
}

.link:hover .link__icon,
.link:focus-visible .link__icon { color: var(--fg); }

.link__label { flex: 1; text-align: left; }

.link__chev {
  font-family: 'Inter', sans-serif;
  color: var(--fg-mute);
  font-size: 14px;
  transition: transform 220ms var(--ease), color 220ms var(--ease);
}

.link:hover .link__chev,
.link:focus-visible .link__chev {
  transform: translateX(3px);
  color: var(--fg-dim);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid var(--hairline-strong);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.005em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms var(--ease), transform 320ms var(--ease);
  z-index: 100;
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.6);
}

.toast svg { color: #5fd7a3; }

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .bg__video { display: none; }
  .bg { background-image: url("assets/bg2-poster.jpg"); background-size: cover; background-position: center; }
  .bg::after { content: ""; position: absolute; inset: 0; background: rgba(8,8,10,0.85); }
  .name__char,
  .role,
  .links li,
  .card,
  .logo,
  .avatar,
  .card__divider { animation: fade-in 200ms ease forwards; transform: none; }
  .link { transition: none; }
}
