:root{
  --pink:#f5c2e7;
  --mauve:#cba6f7;
  --lavender:#b4befe;
  --sky:#89dceb;

  --text:#cdd6f4;
  --base:#1e1e2e;
  --mauve:#cba6f7;
  --lavender:#b4befe;
  --yellow:#f9e2af;

  --text:#cdd6f4;
  --subtext1:#bac2de;

  --base:#1e1e2e;
  --crust:#11111b;

  --radius: 22px;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
}

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

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--base);
  overflow-x:hidden;
}

/* Background video */
.bg{ position:fixed; inset:0; z-index:-2; background:var(--base); }
.bg__video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}
.bg__overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 600px at 50% 35%, rgba(203,166,247,.22), transparent 60%),
    linear-gradient(180deg, rgba(17,17,27,.35), rgba(17,17,27,.82));
}
.bg__grain{
  position:absolute; inset:-40%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity:.18;
  pointer-events:none;
  transform: rotate(8deg);
}

/* Center layout */
.wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding: 28px;
}
.card{
  width:min(820px, 94vw);
  padding: 32px 28px 26px;
  border-radius: var(--radius);
  background: rgba(24,24,37,.68);
  border: 1px solid rgba(127,132,156,.35);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align:center;
}

/* Avatar */
.avatar{
  width: 118px;
  height: 118px;
  margin: 0 auto 16px;
  border-radius: 999px;
  overflow:hidden;
  border: 2px solid rgba(180,190,254,.55);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  background: rgba(49,50,68,.55);
  margin: 0;
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Title */
.title{
  margin: 0 0 22px;
  font-size: clamp(44px, 6vw, 70px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--mauve);
  text-shadow: 0 0 24px rgba(203,166,247,.25);
}

/* Socials: one row (wrap if small screens) */
.socials{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap: 10px;
  margin: 0 auto;
}

.social{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  text-decoration:none;
  color: var(--text);
  background: rgba(49,50,68,.72);
  border: 1px solid rgba(147,153,178,.28);
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.social:hover{
  transform: translateY(-2px);
  border-color: rgba(180,190,254,.55);
  background: rgba(69,71,90,.72);
}
.social:focus-visible{
  outline: 2px solid rgba(137,180,250,.8);
  outline-offset: 3px;
}

.icon{ width: 18px; height: 18px; display:inline-flex; }
.icon svg{ width: 18px; height: 18px; display:block; }

.label{
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--subtext1);
}

/* Yellow button under socials */
.actions{
  margin-top: 14px;
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}

.action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px; /* smaller */
  border-radius: 999px;
  text-decoration:none;
  font-weight: 800;
  letter-spacing: .01em;
  border: 1px solid rgba(249,226,175,.65);
  transition: transform .14s ease, filter .14s ease;
}

.action--yellow{
  background: rgba(249,226,175,.92);
  color: var(--crust);
}

.action:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.action:focus-visible{
  outline: 2px solid rgba(249,226,175,.9);
  outline-offset: 3px;
}

/* Reduced motion: hide video */
@media (prefers-reduced-motion: reduce){
  .bg__video{ display:none; }
  .bg__overlay{
    background: radial-gradient(900px 500px at 50% 30%, rgba(203,166,247,.18), transparent 60%),
                linear-gradient(180deg, rgba(17,17,27,.35), rgba(17,17,27,.88));
  }
}

.hero{
  display:flex;
  align-items:center;     /* same vertical position */
  gap: 16px;
  justify-content:flex-start;
  margin-bottom: 18px;
  text-align:left;
}

.hero__text{ min-width: 0; }

.hello{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #ffffff;         /* white */
  opacity: .92;
}

.headline{
  margin: 0;
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.03em;
  line-height: 1.06;
}

/* Always-visible fallback first */
.grad{
  display: inline-block;
  color: #cba6f7; /* fallback so it never disappears */
}

/* Only do gradient text if the browser supports it */
@supports (-webkit-background-clip: text) or (background-clip: text){
  .grad{
    background-image: linear-gradient(
      90deg,
      var(--mauve, #cba6f7) 0%,
      var(--blue, #89b4fa) 25%,
      var(--sapphire, #74c7ec) 50%,
      var(--sky, #89dceb) 75%,
      var(--lavender, #b4befe) 100%
    );

    background-size: 300% 100%;
    background-position: 0% 50%;

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent; /* helps Safari/Chromium */
  }
}



/* Description under gradient headline */
.desc{
  margin: 10px 0 0;
  color: var(--subtext1);
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.4;
}

/* Mobile: stack */
@media (max-width: 520px){
  .hero{
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

.meta{
  margin: 6px 0 0;
  color: var(--subtext1);
  font-size: 14px;
  line-height: 1.35;
}

.meta__label{
  color: var(--lavender);
  font-weight: 800;
  letter-spacing: .01em;
}

.meta__value{
  color: var(--text);
}

.licenseNote{
  position: fixed;
  left: 16px;
  bottom: 14px;
  z-index: 10;

  font-size: 12px;
  line-height: 1.2;
  color: rgba(186,194,222,.72);
  text-decoration: underline;
  text-underline-offset: 2px;

  transition: color .14s ease;
}

.licenseNote:hover{
  color: rgba(205,214,244,.92);
}

.licenseNote:focus-visible{
  outline: 2px solid rgba(180,190,254,.8);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 520px){
  .licenseNote{
    left: 12px;
    bottom: 10px;
    font-size: 11px;
  }
}

.licenseWall{
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(49,50,68,.40);
  border: 1px solid rgba(147,153,178,.22);

  color: var(--subtext1);
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 900;
  letter-spacing: .01em;
  background: rgba(249,226,175,.92);
  color: var(--crust);
  border: 1px solid rgba(249,226,175,.65);
  transition: transform .14s ease, filter .14s ease;
}

.back:hover{
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.back:focus-visible{
  outline: 2px solid rgba(249,226,175,.9);
  outline-offset: 3px;
}
