/* Footer email link */
.footer-email {
  display: inline-block;
  color: var(--accent);
  font-size: .95em;
  text-decoration: none;
  transition: color .18s;
}
.footer-email:hover, .footer-email:focus-visible {
  color: var(--accent-soft);
  text-decoration: underline;
}
.socials-row {
  display: flex;
  flex-direction: row;
  gap: 0.6rem;
  justify-content: center;
  margin-top: .5rem;
}
.social-btn {
  width: 3.2rem;
  min-width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.social-link {
  background: var(--bg-alt);
  border: 1.5px solid #26231f;
  color: var(--accent);
}
.social-link i {
  font-size: 1.7rem;
  color: var(--accent);
}
.social-link:hover, .social-link:focus-visible {
  background: #221f1c;
  border-color: #b9854a;
  color: #b9854a;
}
/* Clean rewritten stylesheet */
/* 1. Root Theme */
:root {
  --bg: #0d0c0b;
  --bg-alt: #161514;
  --bg-card: #151412;
  --text: #f8f7f5;
  --subtle: #8e8b86;
  --accent: #db9382; /* warm brown */
  --accent-soft: #dbc2a3;
  --border: #272521;
  --radius: 22px;
  --font-stack: "InterVariable", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial,
    sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  --transition: 160ms cubic-bezier(0.4, 0.6, 0.2, 1);
  --tracking-tight: -0.02em;
  --tracking-title: -0.02em;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100dvh;
  background: radial-gradient(circle at 30% 20%, #161514 0, #0d0c0b 65%) fixed;
  color: var(--text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  padding: clamp(1.05rem, 2.3vw, 2rem);
  font-feature-settings: "rlig" 1, "calt" 1, "ss01" 1;
  position: relative;
  overflow-x: hidden;
}

/* 2. Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.8' numOctaves='3' seed='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.07'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* 3. Typography */
h1,
h2,
h3 {
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}
h1 {
  font-size: 3rem;
  margin: 0 0 0.4rem;
  letter-spacing: var(--tracking-title);
  color: white;
  font-weight: 700;
}
h2 {
  font-size: clamp(1.22rem, 3.2vw, 1.55rem);
  margin: 0 0 0.85rem;
  position: relative;
  letter-spacing: -0.02em;
}
h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
p {
  margin: 0 0 1rem;
}
strong {
  color: var(--accent);
  font-weight: 600;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
}

/* 4. Hero */
.hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 1rem;
}
.hero-avatar {
  position: relative;
  width: 100%;
  height: 24rem;
  border-radius: clamp(26px, 4vw, 42px);
  overflow: hidden;
  background: #131211;
  border: 1px solid #221f1c;
  box-shadow: 0 6px 24px -6px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04) brightness(0.92);
}
.hero-avatar:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.87)
  );
  pointer-events: none;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(1.2rem, 2vw, 2rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}
.hero-name {
  color: white;
  letter-spacing: var(--tracking-title);
  font-weight: 700;
}
.hero-traits {
  margin: 0;
  font-family: var(--mono);
  font-size: 1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 500;
  display: flex;
  gap: 0.9em;
  align-items: center;
  justify-content: center;
}
.hero-traits .dot {
  opacity: 0.55;
}

/* 5. Main layout */
main {
  width: 100%;
  max-width: 512px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 6. Cards */
.card {
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.025),
    rgba(255, 255, 255, 0)
  );
  border: 1px solid var(--border);
  padding: clamp(1.15rem, 2vw, 1.65rem) clamp(1.15rem, 2.2vw, 2rem)
    clamp(1.35rem, 2vw, 1.9rem);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px) saturate(160%);
  -webkit-backdrop-filter: blur(5px) saturate(160%);
}
.card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 85% 15%,
    rgba(185, 133, 74, 0.16),
    transparent 60%
  );
  pointer-events: none;
}
.card:hover {
  border-color: #373635;
}

/* 7. Link Pills (CityU / Company) */
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem 0.38rem;
  border-radius: 999px;
  background: #191715;
  border: 1px solid #2a2723;
  line-height: 1.1;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}
.link-pill i {
  font-size: 1rem;
  color: var(--accent);
}
.link-pill:hover,
.link-pill:focus-visible {
  background: #211f1d;
  border-color: #38332d;
  text-decoration: none;
}

/* 8. Activities list */
.activities {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  letter-spacing: 0.015em;
}
.act i {
  font-size: 1rem;
  color: var(--accent);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* 9. Socials */
.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
}
.social-link {
  --bg-social: #171615;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  font-size: 0.78rem;
  width: 100%;
  border-radius: 12px;
  color: var(--text);
  background: var(--bg-social);
  border: 1px solid #26231f;
  position: relative;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.social-link i {
  font-size: 1.05rem;
  color: var(--accent);
}
.social-link:hover,
.social-link:focus-visible {
  border-color: #3a342d;
  background: #1e1c1a;
  text-decoration: none;
}
.socials-flex {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-top: .5rem;
}
.social-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 3.1rem;
  font-size: .95rem;
  font-weight: 500;
  border-radius: 18px;
  padding: .7rem 1.2rem;
}
.social-link {
  --bg-social: #171615;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--bg-social);
  border: 1px solid #26231f;
  color: var(--text);
  position: relative;
  overflow: hidden;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .18s, border .18s;
}
.social-link i {
  font-size: 1.15rem;
  color: var(--accent);
}
.social-link:hover,
.social-link:focus-visible {
  border-color: #3a342d;
  background: #1e1c1a;
  text-decoration: none;
}

/* 10. Footer */
footer {
  text-align: center;
  font-size: 1rem;
  color: #5f5c58;
  padding: 2.6rem 0 1.3rem;
}
footer p {
  margin: 0;
  font-weight: 500;
}

/* 11. Motion */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeSlide 0.8s var(--transition) forwards;
}
.fade-in:nth-of-type(2) {
  animation-delay: 0.1s;
}
.fade-in:nth-of-type(3) {
  animation-delay: 0.18s;
}
@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 12. Responsive tweaks */
@media (min-width: 820px) {
  .hero-avatar {
    aspect-ratio: 21/9;
  }
  .hero-name {
    font-size: clamp(3.6rem, 5.6vw, 5.2rem);
  }
  .hero-traits {
    font-size: 0.75rem;
  }
}

/* 13. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* 14. Selection */
::selection {
  background: var(--accent);
  color: #1a1816;
}

/* 15. Focus outline (only after Tab) */
:root:not(.show-focus-outlines) :focus {
  outline: none;
}
.show-focus-outlines :focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
