:root {
  color-scheme: dark;
  --background: #050b20;
  --surface: rgba(10, 19, 45, 0.72);
  --surface-strong: rgba(16, 27, 58, 0.94);
  --border: rgba(202, 216, 255, 0.3);
  --border-hover: rgba(137, 204, 255, 0.78);
  --text: #f7f8ff;
  --muted: #c4cae0;
  --subtle: #929bb8;
  --accent: #70d8ea;
  --accent-dark: #0b1734;
  --focus: #8be9f6;
  --radius: 13px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(41, 61, 133, 0.34), transparent 42%),
    linear-gradient(180deg, #050b20 0%, #071027 52%, #050a1c 100%);
  color: var(--text);
}

button,
a {
  font: inherit;
}

.background-glow {
  position: fixed;
  z-index: 0;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.19;
  pointer-events: none;
}

.background-glow--teal {
  top: 5rem;
  left: -28rem;
  background: #19b9c7;
}

.background-glow--indigo {
  top: 18rem;
  right: -27rem;
  background: #3158ff;
}

.profile-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 620px);
  margin: 0 auto;
  padding: 68px 0 150px;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-photo-wrap {
  width: 166px;
  height: 166px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(133, 110, 255, 0.92), rgba(91, 218, 226, 0.9));
  box-shadow:
    0 20px 55px rgba(33, 75, 167, 0.28),
    0 0 0 8px rgba(255, 255, 255, 0.025);
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
}

h1 {
  margin: 26px 0 9px;
  font-size: clamp(2rem, 5vw, 2.65rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.profile-bio {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.service-area {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 11px 0 0;
  color: var(--subtle);
  font-size: 0.9rem;
  font-weight: 600;
}

.service-area svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.link-list {
  display: grid;
  gap: 11px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.profile-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 22px;
  align-items: center;
  min-height: 68px;
  padding: 13px 17px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(14px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.profile-link:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: rgba(18, 33, 70, 0.88);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.profile-link:active {
  transform: translateY(0);
}

.profile-link:focus-visible,
.consent-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.profile-link__icon,
.profile-link__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-link__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-link__label {
  min-width: 0;
  padding: 0 14px;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-link__arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.profile-link--primary {
  border-color: rgba(100, 225, 194, 0.58);
  background: linear-gradient(135deg, rgba(16, 69, 67, 0.88), rgba(14, 39, 67, 0.9));
}

.profile-link--primary .profile-link__icon {
  color: #7de5c5;
}

.site-footer {
  margin-top: 34px;
  text-align: center;
}

.site-footer p {
  max-width: 570px;
  margin: 0 auto 20px;
  color: var(--subtle);
  font-size: 0.82rem;
  line-height: 1.62;
}

.site-footer small {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.consent-banner {
  position: fixed;
  z-index: 10;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 44px), 870px);
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(180, 201, 255, 0.33);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.consent-banner[hidden] {
  display: none;
}

.consent-copy {
  max-width: 600px;
}

.consent-copy h2 {
  margin: 0 0 5px;
  font-size: 1rem;
  line-height: 1.3;
}

.consent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.consent-button {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.consent-button:hover {
  transform: translateY(-1px);
}

.consent-button--primary {
  background: #86e4ec;
  color: #07132e;
}

.consent-button--secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  text-align: center;
}

@media (max-width: 620px) {
  .profile-shell {
    width: min(100% - 28px, 520px);
    padding: 42px 0 150px;
  }

  .profile-photo-wrap {
    width: 132px;
    height: 132px;
  }

  h1 {
    margin-top: 21px;
    font-size: 2rem;
  }

  .profile-bio {
    max-width: 390px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .link-list {
    margin-top: 29px;
    gap: 10px;
  }

  .profile-link {
    min-height: 62px;
    padding: 11px 14px;
  }

  .profile-link__label {
    padding: 0 11px;
    font-size: 0.94rem;
  }

  .consent-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    width: auto;
    padding: 16px;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .profile-shell {
    width: min(100% - 22px, 520px);
  }

  .profile-link {
    grid-template-columns: 29px minmax(0, 1fr) 19px;
  }

  .profile-link__label {
    font-size: 0.89rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
