:root {
  --bg-1: #3b2318;
  --bg-2: #7a472f;
  --bg-3: #b07a55;
  --card: #0a0a0a;
  --panel: #060606;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --muted-2: rgba(255, 255, 255, 0.5);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  --radius: 26px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding-top: 16px;
  font-family: "Instrument Sans", system-ui, -apple-system, sans-serif;
  color: var(--white);
  background: #24160f;
  overflow-y: auto;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 400px at 25% 35%, rgba(154, 88, 52, 0.7), transparent 60%),
    radial-gradient(900px 500px at 80% 40%, rgba(183, 127, 83, 0.6), transparent 60%),
    radial-gradient(700px 500px at 60% 80%, rgba(122, 69, 43, 0.8), transparent 60%),
    linear-gradient(120deg, var(--bg-1), var(--bg-2) 50%, var(--bg-3));
  filter: blur(30px);
  opacity: 0.35;
  transform: scale(1.06);
  z-index: -2;
}

.bg-photo {
  position: fixed;
  inset: -40px;
  background: url("m.jpeg") center/cover no-repeat;
  filter: blur(40px) saturate(140%) contrast(108%);
  opacity: 0.9;
  z-index: -3;
  transform: scale(1.12);
}

.phone {
  width: min(520px, 96vw);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  height: 380px;
  background: #20110c;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 15%, rgba(0, 0, 0, 0.92) 88%);
}

.content {
  padding: 18px 12px 24px;
  background: var(--panel);
  text-align: center;
}

.identity { margin-top: -8px; }

.name {
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.badge-icon {
  width: 18px;
  height: 18px;
  transform: translateY(2px);
}

.handle {
  font-size: 14px;
  color: var(--muted);
  margin: 2px 0 12px;
}

.social-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
}

.social-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.followers {
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0 8px;
}

.followers .count { font-weight: 700; }

.chev {
  opacity: 0.7;
  padding-left: 4px;
}

.bio {
  font-size: 13px;
  color: var(--muted-2);
  line-height: 1.4;
  margin-bottom: 10px;
}

.email-pill {
  margin: 10px auto 14px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.mail-icon { font-size: 14px; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.tab {
  background: transparent;
  border: none;
  color: var(--muted-2);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  position: relative;
}

.tab.active { color: #fff; }

.tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
}

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

.of-banner {
  position: relative;
  margin: 6px 0 12px;
  border-radius: 18px;
  overflow: hidden;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.of-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.of-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 8px 24px rgba(0,0,0,0.6);
  align-items: end;
  padding-bottom: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.tile-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.tile-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.tile-badge img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.tile-badge.no-bg {
  background: transparent;
  box-shadow: none;
}

.tile-label {
  position: absolute;
  bottom: 8px;
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
  left: 50%;
  transform: translateX(-50%);
}

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mini-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.shout-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.shout-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: url("m.jpeg") center/cover no-repeat;
}

.shout-name { font-weight: 700; }

.shout-handle {
  font-size: 12px;
  color: var(--muted-2);
}

.shout-body { margin-bottom: 10px; }

.shout-image {
  height: 180px;
  border-radius: 12px;
  background: url("m.jpeg") center/cover no-repeat;
}

@media (max-width: 520px) {
  .phone { width: 92vw; }
  .hero { height: 280px; }
  .shout-image { height: 160px; }
  .of-banner { height: 130px; }
  .tile { height: 135px; }
}
