:root {
  --navy-deep: #08142b;
  --navy: #0d1f3c;
  --navy-soft: #142a4d;
  --line: rgba(255, 255, 255, 0.10);
  --text: #eaf0fa;
  --text-dim: #9fb0cc;
  --accent: #6ea8fe;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* accounts for mobile browser chrome; ignored where unsupported */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  background: radial-gradient(1100px 700px at 50% -10%, #16305a 0%, var(--navy-deep) 60%, #050d1d 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 620px;
  padding: 40px 44px 48px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* ---- Toggle ---- */
.toggle {
  position: relative;
  display: inline-flex;
  padding: 4px;
  margin-bottom: 36px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(180deg, #2f6bd4, #22509f);
  box-shadow: 0 4px 14px rgba(47, 107, 212, 0.45);
  transition: transform 0.32s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.toggle[data-mode="work"] .toggle-thumb { transform: translateX(100%); }

.toggle-option {
  position: relative;
  z-index: 1;
  min-width: 116px;
  padding: 10px 22px;
  border: 0;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.25s ease;
}

.toggle-option.is-active { color: #fff; }
.toggle-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Content ---- */
.content {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.content:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 12px;
}

.content.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.photo-frame {
  width: 168px;
  height: 168px;
  margin: 0 auto 26px;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(110, 168, 254, 0.55), rgba(110, 168, 254, 0.05));
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--navy-soft);
  display: block;
}

h1 {
  margin: 0 0 26px;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-label {
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about {
  margin: 0;
  color: #cfdcf0;
  font-size: 1.02rem;
  line-height: 1.75;
  text-align: left;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 8px 16px;
  color: var(--text-dim);
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-icon {
  display: inline-flex;
  flex: none;
}

.social:hover {
  color: var(--text);
  border-color: rgba(110, 168, 254, 0.5);
  background: rgba(110, 168, 254, 0.10);
}

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

.social[hidden] { display: none; }

@media (max-width: 520px) {
  .card { padding: 32px 24px 38px; }
  .toggle-option { min-width: 96px; padding: 10px 14px; }
  .photo-frame { width: 140px; height: 140px; }
  h1 { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .toggle-thumb, .content { transition: none; }
}
