:root {
  --bg: #0f0b14;
  --surface: #1a1222;
  --line: #33233f;
  --fg: #f6eefa;
  --muted: #b9a6c9;
  --pink: #ff4fd8;
  --pink-soft: #ffd1f3;
  --violet: #8d5cf0;
  --blue-neon: #297BE0;
  --violet-soft: #d9c2ff;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 16px 48px;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 85% -10%, rgba(141, 92, 240, .22), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30%, rgba(255, 79, 216, .12), transparent 60%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

/* Layout */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

main {
  display: grid;
  gap: 44px;
  min-width: 0;
}

/* Profile */
.profile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(255, 79, 216, .12);
}

.cover {
  position: relative;
  aspect-ratio: 4 / 3.2;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 22%;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to bottom, transparent, var(--surface));
}

.name {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 6px;
  z-index: 1;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 8vw, 40px);
  line-height: 1;
  letter-spacing: .01em;
  text-align: center;
  text-shadow:
    0 0 6px rgba(255, 79, 216, .9),
    0 0 22px rgba(255, 79, 216, .6),
    0 0 44px rgba(141, 92, 240, .5);
  animation: flicker 6s infinite;
}

@keyframes flicker {
  0%, 92%, 100% { opacity: 1; }
  93% { opacity: .55; }
  94% { opacity: 1; }
  96% { opacity: .7; }
  97% { opacity: 1; }
}

.pbody {
  padding: 16px 24px 26px;
  display: grid;
  gap: 16px;
}

.tag {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

/* Link buttons */
.links {
  display: grid;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 18px;
  border: 2px solid var(--pink);
  border-radius: 999px;
  background: transparent;
  color: var(--pink-soft);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 79, 216, .45);
  transition: box-shadow .2s, background .2s, transform .15s;
}

.btn:hover {
  background: rgba(255, 79, 216, .12);
  box-shadow: 0 0 26px rgba(255, 79, 216, .75);
}

.btn:active { transform: scale(.98); }

.btn.violet {
  border-color: var(--violet);
  color: var(--violet-soft);
  box-shadow: 0 0 14px rgba(141, 92, 240, .5);
}

.btn.blue-neon{
    border-color: var(--blue-neon);
    color: var(--violet-soft);
    box-shadow: 0 0 14px rgba(24, 83, 212, 0.5);
}



.btn.blue-neon:hover {
  background: rgba(0, 175, 240, .3);
  box-shadow:
    0 0 20px rgba(0, 175, 240, .75),
    0 0 40px rgba(0, 175, 240, .35);
}

.btn.violet:hover {
  background: rgba(141, 92, 240, .14);
  box-shadow: 0 0 26px rgba(141, 92, 240, .8);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Section headings */
.sec-h {
  margin-bottom: 18px;
  text-align: center;
}

h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
  text-wrap: balance;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Gallery */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.shot {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface);
  aspect-ratio: 3 / 4;
  max-width: 100%;
  transition: box-shadow .25s ease;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px transparent;
  transition: box-shadow .25s;
}

.shot:hover img { transform: scale(1.04); }

.shot:hover,
.shot:focus-visible {
  box-shadow:
    0 0 14px rgba(255, 79, 216, .45),
    0 0 26px rgba(255, 79, 216, .75);
}

.shot:hover::after,
.shot:focus-visible::after {
  box-shadow: inset 0 0 0 2px var(--pink);
}

.shot.wide {
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

/* Footer */
footer {
  grid-column: 1 / -1;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Dialogs */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  max-width: 100vw;
  max-height: 100vh;
}

dialog::backdrop {
  background: rgba(8, 5, 12, .92);
  backdrop-filter: blur(6px);
}

.ic {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 2px solid var(--pink);
  border-radius: 50%;
  background: rgba(15, 11, 20, .7);
  color: var(--pink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 0 14px rgba(255, 79, 216, .5);
}

.ic.close {
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: max(16px, env(safe-area-inset-right, 0px));
}

/* Lightbox */
.lb {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

.lb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding:
    calc(env(safe-area-inset-top, 0px) + 56px)
    max(16px, env(safe-area-inset-right, 0px))
    calc(env(safe-area-inset-bottom, 0px) + 56px)
    max(16px, env(safe-area-inset-left, 0px));
}

.lb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 50px rgba(255, 79, 216, .35);
}

.ic.prev,
.ic.next {
  top: 50%;
  transform: translateY(-50%);
}

.ic.prev { left: max(16px, env(safe-area-inset-left, 0px)); }
.ic.next { right: max(16px, env(safe-area-inset-right, 0px)); }

.lb-count {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* Comp card */
.comp {
  width: min(760px, calc(100vw - 32px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 0 60px rgba(141, 92, 240, .35);
}

.comp-inner {
  position: relative;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.comp .ic.close {
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
}

.comp h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  text-align: center;
  text-shadow: 0 0 14px rgba(255, 79, 216, .7);
}

.comp-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.comp-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 10px;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Responsive layout */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 960px) {
  .wrap {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .profile {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 20px);
  }
}

@media (max-width: 520px) {
  .comp-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Avatar Image Settings */

.cover .avatar {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);

  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 3px solid var(--pink-soft);

  overflow: hidden;
  --avatar-zoom: 1.4;
  --avatar-x: 5px;
  --avatar-y: 15px;
  box-shadow: 0 0 20px rgba(255, 79, 216, .35);

  z-index: 1;
}

.cover .avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;

  transform-origin: center;
  transform:
    translate(var(--avatar-x), var(--avatar-y))
    scale(var(--avatar-zoom));
}

.name {
  z-index: 2;
}