:root {
  --bg: #101010;
  --surface: #1a1a1a;
  --surface-soft: #202020;
  --ink: #f1f1f1;
  --muted: #a7a7a7;
  --line: #333333;
  --line-strong: #565656;
  --button: #f2f2f2;
  --button-hover: #ffffff;
  --button-ink: #111111;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

html:has(body.home-page) {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: #050505;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

#glass-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.language-switcher {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.lang-option {
  display: grid;
  place-items: center;
  width: 38px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font-size: 1.08rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.lang-option.is-active {
  background: rgba(255, 255, 255, 0.16);
}

.home-page {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.home-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 28px 28px 58px;
  overflow: hidden;
}

.profile-panel {
  width: min(100%, 620px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 36px);
  text-align: center;
  background: rgba(26, 26, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.profile-photo {
  width: clamp(82px, 8vw, 104px);
  height: clamp(82px, 8vw, 104px);
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

.profile-panel h1 {
  font-size: clamp(1.48rem, 3.2vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 780;
}

.summary {
  max-width: 470px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.button,
.back-link,
.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.linkedin-link:hover,
.linkedin-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: var(--button-ink);
  background: var(--button);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--button-hover);
}

.button-secondary,
.back-link,
.linkedin-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.linkedin-link:hover,
.linkedin-link:focus-visible {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}

.linkedin-button {
  width: 48px;
  padding-inline: 0;
  color: #ffffff;
  background: #0a66c2;
  border-color: #0a66c2;
}

.linkedin-button:hover,
.linkedin-button:focus-visible {
  background: #0958a8;
  border-color: #0958a8;
}

.linkedin-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}

.detail-page {
  min-height: 100svh;
}

.detail-page .language-switcher {
  top: 24px;
  right: clamp(86px, 8vw, 132px);
  left: auto;
  transform: none;
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), 1120px);
  min-height: 100svh;
  margin-inline: auto;
  padding: 116px 0 86px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(44px, 7vw, 82px);
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
  padding: 0 0 clamp(44px, 7vw, 82px);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  box-shadow: none;
}

.detail-photo {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.4);
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding-inline: 14px;
  color: #9d9d9d;
  font-size: 0.78rem;
  font-weight: 650;
  pointer-events: none;
}

.site-footer span {
  padding: 6px 11px;
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.site-footer strong {
  font-weight: 750;
}

.detail-card h1 {
  max-width: 680px;
  margin-top: 0;
  font-size: clamp(1.58rem, 4.2vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.detail-kicker {
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-card p:not(.eyebrow):not(.detail-kicker) {
  max-width: 660px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(0.84rem, 1.32vw, 1.07rem);
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-button {
  min-width: 164px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(32px, 6vw, 64px);
}

.info-grid article {
  display: grid;
  grid-template-columns: 72px minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 44px);
  align-items: baseline;
  min-height: auto;
  padding: 28px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.info-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.1em;
}

.info-grid h2 {
  margin-top: 0;
  font-size: clamp(0.86rem, 1.76vw, 1.2rem);
  line-height: 1.15;
}

.info-grid p {
  margin-top: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

@media (max-width: 680px) {
  .home-shell {
    padding: 18px 18px 54px;
  }

  .profile-panel {
    gap: 13px;
    padding: 26px 22px;
  }

  .actions {
    width: 100%;
  }

  .button {
    flex: 1 1 140px;
  }

  .detail-shell {
    align-content: start;
    width: min(calc(100% - 28px), 980px);
    padding: 86px 0 54px;
  }

  .detail-page .language-switcher {
    top: 14px;
    right: 14px;
  }

  .detail-header {
    margin-bottom: 30px;
  }

  .detail-card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 24px;
    padding-bottom: 36px;
  }

  .detail-photo {
    width: min(68vw, 220px);
    height: auto;
  }

  .detail-card h1 {
    font-size: clamp(1.58rem, 8.4vw, 2.66rem);
  }

  .detail-card p:not(.eyebrow):not(.detail-kicker) {
    margin-top: 18px;
    font-size: 0.8rem;
  }

  .detail-actions {
    margin-top: 22px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 22px;
  }

  .info-grid article {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: auto;
    gap: 10px 16px;
    padding: 20px 0;
  }

  .info-grid h2 {
    margin-top: 0;
  }

  .info-grid p {
    grid-column: 2;
    margin-top: 0;
    font-size: 0.95rem;
  }
}

@media (max-height: 620px) {
  .profile-panel {
    gap: 12px;
    padding-block: 22px;
  }

  .profile-photo {
    width: 72px;
    height: 72px;
  }
}

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