:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #f8fafc;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(34, 211, 238, .16), transparent 24rem),
    linear-gradient(180deg, #0f172a 0%, #020617 74%);
}

.page-shell {
  width: min(100% - 2rem, 31rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(2rem, env(safe-area-inset-top)) 0 max(2rem, env(safe-area-inset-bottom));
}

.profile {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 5.25rem;
  height: 5.25rem;
  border: 2px solid rgba(34, 211, 238, .8);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(34, 211, 238, .08);
  object-fit: cover;
  object-position: 50% 28%;
}

.eyebrow {
  margin: 0 0 .25rem;
  color: #67e8f9;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.profile-copy > p:last-child {
  margin: .55rem 0 0;
  color: #94a3b8;
  font-size: .9rem;
  line-height: 1.42;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.6rem 0 1.15rem;
}

.social-link {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: .72rem;
  background: rgba(15, 23, 42, .54);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.social-link img { width: 1.05rem; height: 1.05rem; }

.social-link--named {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: .42rem;
  padding: 0 .7rem;
  color: #cbd5e1;
  font-size: .72rem;
  text-decoration: none;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: #22d3ee;
  background: rgba(8, 47, 73, .62);
  outline: none;
  transform: translateY(-1px);
}

.primary-links { display: grid; gap: .65rem; }

.primary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.65rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: .85rem;
  background: rgba(15, 23, 42, .54);
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  border-color: #22d3ee;
  background: rgba(8, 47, 73, .62);
  outline: none;
  transform: translateY(-1px);
}

.primary-link strong,
.primary-link small { display: block; }
.primary-link strong { font-size: .96rem; letter-spacing: -.015em; }

.primary-link small {
  margin-top: .22rem;
  color: #94a3b8;
  font-size: .78rem;
  line-height: 1.35;
}

.arrow { color: #67e8f9; font-size: 1.2rem; }

.contact {
  margin-top: 2.3rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(148, 163, 184, .18);
}

.contact-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.contact-heading > p:last-child {
  margin: .35rem 0 1.05rem;
  color: #94a3b8;
  font-size: .86rem;
  line-height: 1.45;
}

.contact-form { display: grid; gap: .8rem; }
.form-field { display: grid; gap: .35rem; }

.form-field label {
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: .7rem;
  background: rgba(15, 23, 42, .72);
  color: #f8fafc;
  font: inherit;
  font-size: .92rem;
  line-height: 1.4;
}

.form-field input { min-height: 2.75rem; padding: .65rem .75rem; }
.form-field textarea { min-height: 7rem; padding: .7rem .75rem; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus {
  border-color: #22d3ee;
  outline: 2px solid rgba(34, 211, 238, .22);
  outline-offset: 1px;
}

.form-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.consent-field {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  color: #cbd5e1;
  font-size: .78rem;
  line-height: 1.35;
}

.consent-field input {
  width: 1rem;
  height: 1rem;
  margin: .05rem 0 0;
  accent-color: #22d3ee;
}

.contact-submit {
  min-height: 2.85rem;
  border: 0;
  border-radius: .72rem;
  background: #22d3ee;
  color: #082f49;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  transition: background .18s ease, transform .18s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible { background: #67e8f9; outline: none; transform: translateY(-1px); }
.contact-submit:disabled { cursor: progress; opacity: .65; transform: none; }

.contact-status { min-height: 1.15rem; margin: -.15rem 0 0; font-size: .8rem; line-height: 1.4; }
.contact-status--success { color: #a7f3d0; }
.contact-status--error { color: #fda4af; }
.contact-note { margin: -.25rem 0 0; color: #64748b; font-size: .72rem; line-height: 1.35; }

@media (min-width: 560px) {
  .page-shell { padding-top: 4rem; }
  .profile { grid-template-columns: 6rem minmax(0, 1fr); }
  .avatar { width: 6rem; height: 6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
