*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #07080b;
  --fg: #f8fafc;
  --muted: rgba(248, 250, 252, 0.78);
  --card-bg: rgba(12, 16, 23, 0.66);
  --card-border: rgba(255, 255, 255, 0.16);
  --accent: #d4af68;
}

html[data-theme="day"] {
  --bg: #f4efe6;
  --fg: #0f172a;
  --muted: rgba(15, 23, 42, 0.78);
  --card-bg: rgba(255, 252, 245, 0.78);
  --card-border: rgba(15, 23, 42, 0.15);
  --accent: #b8862d;
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.stage {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 48px) clamp(84px, 8vh, 64px);
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s ease, transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.backdrop.is-loaded img {
  opacity: 0.45;
  transform: scale(1);
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 35%, rgba(7, 8, 11, 0.25), rgba(7, 8, 11, 0.82) 78%);
}

html[data-theme="day"] .backdrop::after {
  background: radial-gradient(circle at 25% 35%, rgba(244, 239, 230, 0.3), rgba(244, 239, 230, 0.84) 80%);
}

/* Positioned cleanly below the top-left weather pill on desktop */
.top-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 58px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
}

.monogram {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.loc-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.overlay-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
}

.identity-block {
  max-width: 680px;
}

.identity-block h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.roles-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.role-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
}

.role-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 4px;
}

.role-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.role-meta {
  font-size: 12px;
  color: var(--muted);
  display: block;
  padding-left: 15px;
}

.social-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, auto));
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--fg);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .top-bar {
    margin-top: 68px;
  }
  .social-bar {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    width: 100%;
  }
}