@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');
:root {
  --bg:          #1e1e2e;
  --surface:     #181825;
  --surface2:    #313244;
  --blue:        #89b4fa;
  --blue-bright: #b4befe;
  --cyan:        #89dceb;
  --purple:      #cba6f7;
  --pink:        #f5c2e7;
  --yellow:      #f9e2af;
  --green:       #a6e3a1;
  --red:         #f38ba8;
  --text:        #cdd6f4;
  --text-dim:    #6c7086;
  --text-mid:    #a6adc8;
  --border:      rgba(137,180,250,0.12);
  --border-h:    rgba(137,180,250,0.3);
  --glow:        rgba(137,180,250,0.22);
  --font:        'Space Grotesk', sans-serif;
  --mono:        'Space Mono', monospace;
  --syne:        'Syne', sans-serif;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

#ethereal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#ethereal-inner {
  position: absolute;
  inset: -60px;
  filter: url(#ethereal-filter) blur(6px);
}

#ethereal-shadow {
  width: 100%;
  height: 100%;
  background-color: rgba(137, 180, 250, 0.28);
  mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

#ethereal-noise {
  position: absolute;
  inset: 0;
  background-image: url('https://framerusercontent.com/images/g0QcWrxr87K0ufOxIUFBakwYA8.png');
  background-size: 200px;
  background-repeat: repeat;
  opacity: 0.18;
}

.reveal-line {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal-line.in-view { clip-path: inset(0 0% 0 0); }

.reveal-heading {
  opacity: 0;
  transform: translateY(32px) skewY(1.5deg);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
              transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal-heading.in-view { opacity:1; transform: translateY(0) skewY(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity 0.75s ease 0.15s;
}
.reveal-fade.in-view { opacity: 1; }

.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease var(--d, 0s),
              transform 0.6s cubic-bezier(0.16,1,0.3,1) var(--d, 0s);
}
.reveal-up.in-view { opacity:1; transform: translateY(0); }

.reveal-photo {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s,
              transform 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.reveal-photo.in-view { opacity:1; transform: scale(1) translateY(0); }

.reveal-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease calc(var(--ci, 0) * 0.1s),
              transform 0.6s cubic-bezier(0.16,1,0.3,1) calc(var(--ci, 0) * 0.1s);
}
.reveal-card.in-view { opacity:1; transform: translateY(0); }

#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0.65rem 1.25rem;
  background: transparent;
  border-bottom: none;
  transition: background 0.3s;
}
#nav.scrolled { background: rgba(24,24,37,0.7); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(137,180,250,0.08); }
.nav-inner {
  max-width: 860px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}

.nav-links { display: flex; gap: 0.75rem; }
.nav-link {
  color: var(--text-dim); text-decoration: none;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 1px;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--cyan); transform: scaleX(0);
  transform-origin: left; transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-logo {
  font-family: var(--mono); font-size: 0.88rem;
  color: var(--blue-bright); letter-spacing: 1.5px;
  font-weight: 700;
}

section {
  position: relative; z-index: 1;
  max-width: 1120px; margin: 0 auto;
  padding: 6rem 2rem 3rem;
}
#hero { min-height: 100vh; display: flex; align-items: center; padding-top: 8rem; }

.hero-inner {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 5rem; align-items: center; width: 100%;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 2.5px;
  color: var(--cyan); margin-bottom: 1.1rem; text-transform: uppercase;
}
h1 {
  font-family: var(--syne);
  font-size: clamp(3.5rem, 8vw, 6rem); 
  font-weight: 800; 
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 1.4rem;
}
.glow-text {
  color: var(--blue-bright);
  text-shadow: 0 0 40px rgba(180,190,254,0.5), 0 0 80px rgba(137,180,250,0.15);
}
.hero-sub {
  font-size: 1rem; color: var(--text-mid); line-height: 1.85;
  max-width: 430px; margin-bottom: 2rem;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 2.2rem; }
.pill {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.4px;
  padding: 0.38rem 0.9rem; border-radius: 999px; border: 1px solid;
  cursor: default; transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
}
.pill:hover { transform: translateY(-2px) scale(1.04); }
.pill-orbit { color:#cba6f7; border-color:rgba(203,166,247,.3); background:rgba(203,166,247,.07); }
.pill-star  { color:#89b4fa; border-color:rgba(137,180,250,.3); background:rgba(137,180,250,.07); }
.pill-moon  { color:#89dceb; border-color:rgba(137,220,235,.3); background:rgba(137,220,235,.07); }
.pill-comet { color:#f9e2af; border-color:rgba(249,226,175,.3); background:rgba(249,226,175,.07); }

.hero-socials { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.18s;
  position: relative;
}
.social-btn:hover {
  color: var(--blue-bright); border-color: var(--blue);
  background: rgba(137,180,250,.1); transform: translateY(-2px);
}
.slack-toast {
  position: absolute; bottom: calc(100% + 7px); left: 50%;
  transform: translateX(-50%); white-space: nowrap;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 1px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--cyan); padding: 0.2rem 0.55rem; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.slack-toast.show { opacity: 1; }

.hero-right { display:flex; align-items:center; justify-content:center; }
.photo-orbit {
  position:relative; width:420px; height:420px;
  display:flex; align-items:center; justify-content:center;
}
.orbit-ring {
  position:absolute; border-radius:50%;
  border:1px solid rgba(137,180,250,0.18);
}
.ring1 { width:420px; height:420px; animation:spin 20s linear infinite; border-style:dashed; }
.ring2 { width:340px; height:340px; animation:spin 13s linear infinite reverse; }
@keyframes spin { to { transform:rotate(360deg); } }

.orbit-dot {
  position:absolute; border-radius:50%;
  background:var(--blue-bright); box-shadow:0 0 10px var(--blue-bright);
}
.dot1 { width:10px; height:10px; animation:orb1 20s linear infinite; }
.dot2 { width:7px; height:7px; background:var(--cyan); box-shadow:0 0 8px var(--cyan); animation:orb2 13s linear infinite reverse; }
@keyframes orb1 { from{transform:rotate(0deg) translateX(210px)} to{transform:rotate(360deg) translateX(210px)} }
@keyframes orb2 { from{transform:rotate(0deg) translateX(170px)} to{transform:rotate(360deg) translateX(170px)} }

.hero-photo, .photo-fallback {
  width:280px; height:280px; border-radius:50%; position:relative; z-index:2;
}
.hero-photo {
  object-fit:cover;
  border:2px solid rgba(137,180,250,0.35);
  box-shadow:0 0 40px rgba(137,180,250,0.22), 0 0 80px rgba(137,180,250,0.07);
}
.photo-fallback {
  display:none; align-items:center; justify-content:center;
  background:var(--surface); border:2px solid var(--border);
  font-size:2.5rem; font-weight:700; color:var(--blue-bright);
}
.photo-tip {
  position:absolute; bottom:-2.8rem; left:50%; transform:translateX(-50%);
  white-space:nowrap; z-index:10;
  font-family:var(--mono); font-size:0.68rem; letter-spacing:0.3px;
  color:var(--text-mid);
  background:rgba(30,30,46,0.55);
  backdrop-filter:blur(10px);
  border:1px solid rgba(137,180,250,0.15);
  padding:0.3rem 0.75rem; border-radius:999px;
  opacity:0; pointer-events:none;
  transition:opacity 0.25s ease, transform 0.25s ease;
  transform:translateX(-50%) translateY(4px);
}
.photo-orbit:hover .photo-tip {
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.section-eyebrow {
    font-family:var(--mono); font-size:0.74rem; letter-spacing:3px;
    color:var(--blue); display:block; margin-bottom:0.6rem; text-transform:uppercase;
}
.section-title {
    font-size:clamp(2rem,5vw,3rem); font-weight:700; margin-bottom:2.8rem;
}

#dashboard { padding-top: 5rem; }
.dash-grid {
    display:grid; grid-template-columns: 1fr 1fr;
    gap:1.2rem;
}

.card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:14px; overflow:hidden;
  transition:border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  border-color:var(--border-h);
  box-shadow:0 6px 32px rgba(137,180,250,0.08);
  transform:translateY(-2px);
}

.card-header {
  display:flex; align-items:center; gap:0.55rem;
  padding:1rem 1.25rem 0.8rem;
  border-bottom:1px solid rgba(137,180,250,0.07);
}
.card-icon { font-size:0.95rem; }
.card-label { font-family:var(--mono); font-size:0.72rem; color:var(--text-mid); letter-spacing:1px; flex:1; }
.card-value { font-family:var(--mono); font-size:0.72rem; color:var(--blue-bright); }
.card-link  { font-family:var(--mono); font-size:0.7rem; color:var(--blue); text-decoration:none; transition:color 0.2s; }
.card-link:hover { color:var(--cyan); }

.card-map { grid-column:1; grid-row:1; }
#map { height:230px; position:relative; }

.maplibregl-map { background:#1e1e2e !important; height: 100% !important; width: 100% !important; }
.maplibregl-ctrl-attrib { display:none !important; }
.maplibregl-ctrl-logo { display:none !important; }

.card-commits { grid-column:2; grid-row:1; }
#commits-list { padding:0.65rem 1.25rem 0.9rem; }
.commit-item {
  display:flex; gap:0.65rem; padding:0.55rem 0;
  border-bottom:1px solid rgba(137,180,250,0.06); font-size:0.77rem;
}
.commit-item:last-child { border-bottom:none; }
.commit-dot {
  width:7px; height:7px; border-radius:50%;
  background:var(--blue-bright); box-shadow:0 0 6px var(--blue);
  flex-shrink:0; margin-top:4px;
}
.commit-repo { font-family:var(--mono); color:var(--blue-bright); font-size:0.68rem; margin-bottom:0.1rem; }
.commit-msg  { color:var(--text-mid); line-height:1.5; }
.commit-meta { font-family:var(--mono); font-size:0.63rem; color:var(--text-dim); margin-top:0.1rem; }

.card-langs { grid-column:1; grid-row:2; }
#langs-chart { padding:0.9rem 1.25rem 1.1rem; }
.lang-row { display:flex; align-items:center; gap:0.7rem; margin-bottom:0.8rem; }
.lang-name { font-family:var(--mono); font-size:0.7rem; color:var(--text-mid); width:76px; flex-shrink:0; }
.lang-bar-wrap { flex:1; height:5px; background:rgba(255,255,255,0.05); border-radius:999px; overflow:hidden; }
.lang-bar { height:100%; border-radius:999px; width:0; transition:width 1.1s cubic-bezier(0.16,1,0.3,1) 0.2s; }
.lang-pct  { font-family:var(--mono); font-size:0.65rem; color:var(--text-dim); width:34px; text-align:right; }

.card-stats { grid-column:2; grid-row:2; }
#gh-stats { padding:1.1rem 1.25rem; display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.stat-item { text-align:center; }
.stat-num {
  font-family:var(--mono); font-size:1.7rem; font-weight:700;
  color:var(--blue-bright); display:block;
  text-shadow:0 0 20px rgba(180,190,254,0.35);
}
.stat-label { font-family:var(--mono); font-size:0.62rem; color:var(--text-dim); letter-spacing:1.5px; margin-top:0.2rem; }

.card-games { grid-column: 1 / -1; grid-row: 3; }
.games-list { 
  display: flex; gap: 2rem; padding: 1.5rem 2rem; 
  flex-wrap: wrap; justify-content: space-around;
}
.game-item {
  display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--text-mid);
  transition: color 0.2s, transform 0.2s;
  cursor: default;
}
.game-item:hover {
  color: var(--blue-bright);
  transform: translateY(-2px);
}
.game-item img, .game-item svg { transition: filter 0.2s; }
.game-item:hover img, .game-item:hover svg { filter: drop-shadow(0 0 8px rgba(96,165,250,0.4)); }

.loading-pulse {
  font-family:var(--mono); font-size:0.73rem;
  color:var(--text-dim); padding:1.25rem;
  animation:pulsate 1.4s ease-in-out infinite;
}
@keyframes pulsate { 0%,100%{opacity:.35} 50%{opacity:.9} }

#contact { padding-top:4.5rem; padding-bottom:5rem; }
.contact-sub { color:var(--text-mid); font-size:0.95rem; line-height:1.85; max-width:440px; margin-bottom:1.5rem; }

.email-block {
  display: flex; align-items: center; gap: 1.25rem;
  flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1rem 1.4rem;
  margin-bottom: 1.75rem; width: 100%;
}
.email-text {
  font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; flex: 1;
  min-width: 200px;
}
.email-addr {
  color: var(--blue-bright); font-family: var(--mono); font-size: 0.85rem;
}
@property --gradient-angle {
  syntax: '<angle>'; initial-value: 0deg; inherits: false;
}
@property --gradient-angle-offset {
  syntax: '<angle>'; initial-value: 0deg; inherits: false;
}
@property --gradient-percent {
  syntax: '<percentage>'; initial-value: 5%; inherits: false;
}
@property --gradient-shine {
  syntax: '<color>'; initial-value: white; inherits: false;
}

.star-btn {
  --shiny-bg:   #1e1e2e;
  --shiny-bg-sub: #313244;
  --shiny-fg:   #cdd6f4;
  --shiny-hi:   #89b4fa;
  --shiny-hi-sub: #b4befe;
  --duration:   3s;

  isolation: isolate;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  outline-offset: 4px;
  padding: 0.6rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 360px;
  color: var(--shiny-fg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background:
    linear-gradient(var(--shiny-bg), var(--shiny-bg)) padding-box,
    conic-gradient(
      from var(--gradient-angle),
      transparent,
      var(--shiny-hi) 5%,
      var(--shiny-hi-sub) 10%,
      var(--shiny-hi) 15%,
      transparent 20%
    ) border-box;
  box-shadow: inset 0 0 0 1px var(--shiny-bg-sub);
  animation: gradient-angle var(--duration) linear infinite;
}
.star-btn:active { translate: 0 1px; }

@keyframes gradient-angle { to { --gradient-angle: 360deg; } }
@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50%       { opacity: 0.65; }
}
.star-btn__bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  border-radius: inherit;
  animation: twinkle 2.4s ease-in-out infinite;
}
.star-btn__bg:nth-child(2) { animation-delay: -0.8s; animation-duration: 3.1s; opacity: 0.7; }

.star-btn__orb {
  position: absolute;
  width: 110px; aspect-ratio: 1;
  background: radial-gradient(ellipse at center, rgba(137,180,250,0.9), transparent, transparent);
  pointer-events: none; z-index: 1;
  offset-path: var(--path, none);
  offset-distance: 0%;
  animation: star-btn-orb calc(var(--duration,3) * 1s) linear infinite;
}
@keyframes star-btn-orb {
  to { offset-distance: 100%; }
}

.star-btn__label {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: linear-gradient(to top, var(--blue-bright), var(--text));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.star-btn__label img {
  filter: brightness(0) invert(1);
  -webkit-text-fill-color: initial;
}

.contact-pills { display:flex; flex-wrap:wrap; gap:0.6rem; }
.contact-pill {
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%;
  color:var(--text-mid); background:var(--surface); border:1px solid var(--border);
  text-decoration:none; cursor:pointer; position:relative;
  transition:color 0.2s, border-color 0.2s, background 0.2s, transform 0.18s;
}
.contact-pill:hover {
  color:var(--cyan); border-color:rgba(137,220,235,.4);
  background:rgba(137,220,235,.07); transform:translateY(-2px);
}
.contact-pill[data-label]::after, .social-btn[data-label]::after, .footer-icons a[data-label]::after {
  content: attr(data-label);
  position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%) translateY(3px);
  white-space:nowrap; pointer-events:none;
  font-family:var(--mono); font-size:0.62rem; letter-spacing:0.3px;
  color:var(--text-mid); background:rgba(30,30,46,0.75);
  backdrop-filter:blur(8px); border:1px solid rgba(137,180,250,0.15);
  padding:0.18rem 0.5rem; border-radius:999px;
  opacity:0; transition:opacity 0.2s, transform 0.2s;
}
.contact-pill[data-label]:hover::after, .social-btn[data-label]:hover::after, .footer-icons a[data-label]:hover::after {
  opacity:1; transform:translateX(-50%) translateY(0);
}

footer {
  position:relative; z-index:1;
  border-top:1px solid rgba(59,130,246,0.07);
  padding:1.25rem 2.5rem;
}
.footer-inner {
  max-width:1120px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:center; gap:1.5rem;
}
.footer-icons { display:flex; gap:0.85rem; }
.footer-icons a {
  color:var(--text-dim); text-decoration:none; position:relative;
  transition:color 0.2s, transform 0.18s;
}
.footer-icons a:hover { color:var(--blue-bright); transform:translateY(-2px); }
.footer-logo {
  font-family:var(--mono); font-size:0.85rem; font-weight:700;
  color:var(--blue-bright); letter-spacing:1.5px;
  text-align: right;
}

.social-btn img, .social-btn svg,
.contact-pill img, .contact-pill svg,
.footer-icons a img, .footer-icons a svg {
  opacity: 0.55;
  transition: opacity 0.2s, filter 0.2s;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.social-btn:hover img, .social-btn:hover svg,
.contact-pill:hover img, .contact-pill:hover svg,
.footer-icons a:hover img, .footer-icons a:hover svg { opacity: 1; }

::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:rgba(137,180,250,0.25); border-radius:999px; }


@media (max-width: 900px) {
  section { padding-left: 1.5rem; padding-right: 1.5rem; }

  .dash-grid {
    grid-template-columns: 1fr;
  }
  .card-map, .card-commits, .card-langs, .card-stats {
    grid-column: 1; grid-row: auto;
  }
  #map { height: 200px; }
}

@media (max-width: 700px) {

    #nav {
    padding: 0.85rem 1.1rem;
    gap: 0.75rem;
  }
  .nav-links { gap: 1.1rem; }
  .nav-link { font-size: 0.72rem; }
  .nav-logo { font-size: 0.78rem; }

  section {
    padding: 5rem 1.1rem 2.5rem;
  }
  #hero {
    min-height: 100svh;
    padding-top: 6rem;
    align-items: flex-start;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-left  { order: 2; }
  .hero-right { order: 1; }

  h1 { font-size: clamp(2.8rem, 14vw, 4rem); }

  .hero-eyebrow { font-size: 0.68rem; }
  .hero-sub {
    font-size: 0.9rem;
    margin: 0 auto 1.75rem;
    max-width: 320px;
  }

  .pill-row { justify-content: center; gap: 0.4rem; }
  .pill { font-size: 0.67rem; padding: 0.32rem 0.75rem; }

  .hero-socials { justify-content: center; }
  .social-btn { width: 36px; height: 36px; }

.photo-orbit { width: 190px; height: 190px; }
  .ring1 { width: 190px; height: 190px; }
  .ring2 { width: 154px; height: 154px; }
  .hero-photo, .photo-fallback { width: 128px; height: 128px; }
  @keyframes orb1 {
    from { transform: rotate(0deg) translateX(95px); }
    to   { transform: rotate(360deg) translateX(95px); }
  }
  @keyframes orb2 {
    from { transform: rotate(0deg) translateX(77px); }
    to   { transform: rotate(360deg) translateX(77px); }
  }

  #dashboard { padding-top: 3.5rem; }
  .section-title { font-size: 1.8rem; margin-bottom: 1.75rem; }

  .card-header { padding: 0.85rem 1rem 0.7rem; }
  .card-label { font-size: 0.68rem; }
  #commits-list { padding: 0.5rem 1rem 0.75rem; }
  .commit-item { font-size: 0.73rem; }
  .commit-repo { font-size: 0.65rem; }
  #langs-chart { padding: 0.75rem 1rem 1rem; }
  .lang-name { font-size: 0.66rem; width: 66px; }
  .lang-pct  { font-size: 0.62rem; }
  #gh-stats { padding: 1rem; gap: 0.75rem; }
  .stat-num  { font-size: 1.4rem; }
  .stat-label { font-size: 0.58rem; }
  #map { height: 180px; }

  #contact { padding-top: 3.5rem; }
  .contact-sub { font-size: 0.88rem; }
  .contact-pills { gap: 0.5rem; }
  .contact-pill { width: 40px; height: 40px; }

    footer { padding: 1rem 1.1rem; }
    .footer-inner { gap: 1rem; }
    .footer-icons { gap: 0.7rem; }
    .footer-logo { font-size: 0.78rem; }

    @media (max-width:380px) {
          .nav-links { gap: 0.8rem; }
          .nav-link { font-size: 0.68rem; }
          h1 { font-size: 2.6rem; }
          .photo-orbit { width: 160px; height: 160px; }
          .ring1 { width: 160px; height: 160px; }
          .ring2 { width: 130px; height: 130px; }
          .hero-photo, .photo-fallback { width: 108px; height: 108px; }
    }
}