:root {
  color-scheme: light;
  --page-bg: #ecebea;
  --card-bg: rgba(255, 255, 255, 0.96);
  --text-primary: #171717;
  --text-secondary: #55514d;
  --shadow: 0 16px 42px rgba(0, 0, 0, 0.09);
  --border: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Noto Sans SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 30%),
    linear-gradient(180deg, #efeeed 0%, #e6e3e1 100%);
  color: var(--text-primary);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.profile-card {
  position: relative;
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 320px);
  gap: 64px;
  padding: 56px 62px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.language-switch {
  position: absolute;
  top: 26px;
  right: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(54px, 1fr));
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(243, 241, 239, 0.95);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  isolation: isolate;
}

.language-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #121212 0%, #242424 100%);
  color: #fcfaf7;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
  transform: translateX(0);
  transition: transform 220ms ease;
  z-index: 0;
}

body[data-language="en"] .language-thumb {
  transform: translateX(100%);
}

.language-option {
  position: relative;
  min-width: 54px;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1;
  cursor: pointer;
  transition: color 220ms ease;
  z-index: 1;
}

.language-option.is-active {
  color: #fcfaf7;
}

.intro-copy {
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

h1 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
}

.intro-copy p {
  margin: 0 0 22px;
  font-size: 1.18rem;
  line-height: 1.9;
  color: #22201f;
}

.avatar-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
}

.avatar-frame {
  width: min(280px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  background: #f1efee;
}

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

.avatar-caption {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-secondary);
  text-align: center;
}

@media (max-width: 900px) {
  .page-shell {
    padding: 24px 16px;
  }

  .profile-card {
    gap: 40px;
    padding: 72px 26px 36px;
    grid-template-columns: 1fr;
  }

  .avatar-panel {
    order: -1;
  }

  .language-switch {
    top: 18px;
    right: 18px;
  }

  .avatar-frame {
    width: min(220px, 62vw);
  }

  .intro-copy p {
    font-size: 1.02rem;
    line-height: 1.8;
  }
}
