*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --bg-card: #0a0710;
  --bg-elevated: #110e17;
  --border: #221f28;
  --border-light: #333039;
  --text: #e5e5e5;
  --text-muted: #9ca3af;
  --text-dim: #757580;
  --text-gray: #8a8a94;
  --accent: #7c3aed;
  --accent-glow: rgba(124,58,237,0.4);
  --accent-bg: rgba(124,58,237,0.1);
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Archivo Black', sans-serif;
  --font-display: 'Bowlby One', sans-serif;
  --font-hand: 'Courgette', cursive;
  --font-accent: 'Paytone One', sans-serif;
  --font-label: 'Lilita One', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  background: var(--accent);
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 8rem;
  overflow-x: clip;
}

::selection {
  background: rgba(124,58,237,0.3);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* === Utilities === */
.text-purple { color: var(--accent); }
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }

/* === Top Toggles Container === */
.top-toggles {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === Language Toggle === */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(6, 3, 12, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: color 0.2s;
}

.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #fff; font-weight: 700; }
.lang-sep { color: #4b5563; }

/* === Persona Toggle === */
.persona-toggle {
  display: flex;
}

.persona-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(6, 3, 12, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 1px 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.persona-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.persona-btn.active { color: var(--accent); }

@media (max-width: 639px) {
  .top-toggles {
    top: 1rem;
    right: 1rem;
  }
}

/* === Navigation (Glassmorphic Floating Dock) === */
.nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(6, 3, 12, 0.6);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0.35rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 
    0 16px 36px -4px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.3);
  max-width: calc(100vw - 24px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.nav-icon {
  width: 1.125rem;
  height: 1.125rem;
  stroke-width: 2;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.nav-link:hover .nav-icon {
  transform: scale(1.1);
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 
    0 0 18px var(--accent-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.nav-link.active .nav-icon {
  transform: scale(1.05);
}

/* Glass Tooltip */
.nav-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(6, 3, 12, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
}

.nav-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.14) transparent transparent transparent;
}

.nav-link:hover .nav-tooltip,
.nav-link:focus-visible .nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 640px) {
  .nav {
    bottom: 2rem;
    padding: 0.4rem 0.55rem;
    gap: 0.45rem;
  }
  .nav-link {
    width: 2.625rem;
    height: 2.625rem;
  }
  .nav-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* === Banner === */
.banner {
  width: 100%;
  height: 9rem;
  background: var(--accent);
  overflow: hidden;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .banner { height: 11rem; }
}

/* === Main === */
.main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 0;
}

@media (min-width: 640px) {
  .main { padding-top: 4rem; }
}

@media (min-width: 640px) {
  .main { padding: 4rem 1.5rem 0; }
}

/* === Section === */
.section {
  scroll-margin-top: 8rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section { margin-bottom: 8rem; }
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  max-width: 48rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

.subsection-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* === Hero === */
.hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero { margin-bottom: 6rem; min-height: 65vh; }
}

.ascii-logo {
  font-family: var(--font-mono);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  font-size: clamp(11px, 3vw, 15px);
  user-select: none;
  white-space: pre;
}

@media (min-width: 768px) {
  .ascii-logo { margin-bottom: 2rem; }
}

.tagline {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.125rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  background: rgba(124,58,237,0.05);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: inline-block;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .tagline { font-size: 1.5rem; margin-bottom: 3rem; }
}

.hero-info {
  font-family: var(--font-sans);
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 42rem;
  line-height: 1.625;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#heroAge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#heroRoles {
  font-family: var(--font-accent);
  color: var(--text-muted);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

#heroMotto {
  font-family: var(--font-hand);
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .hero-info { font-size: 1.25rem; }
  #heroRoles { font-size: 1.3rem; }
  #heroMotto { font-size: 1.5rem; }
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero-cta { margin-top: 4rem; }
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-family: var(--font-mono);
  transition: all 0.3s;
  width: fit-content;
}

.cta-btn:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.arrow-purple {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s;
}

.arrow-purple svg { width: 100%; height: 100%; }
.cta-btn:hover .arrow-purple { transform: translateX(4px); }

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.social-link:hover { color: #fff; }
.yt-link:hover { color: #f87171; }

.dot-sep {
  color: #2a2730;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.social-link svg { width: 1rem; height: 1rem; }

/* === About === */
.about {
  position: relative;
  overflow: visible;
}

.about-frame {
  max-width: 56rem;
  margin: 0 auto;
  position: sticky;
  top: 5vh;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.about-intro {
  flex-shrink: 0;
}

.about-footer {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.about-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap;
}

.about-kicker,
.about-index,
.about-label,
.about-stamp,
.about-signoff {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.about-kicker {
  color: var(--accent);
  font-size: 0.8rem;
}

.about-index {
  color: var(--text-dim);
  font-size: 0.65rem;
}

.about-intro {
  position: relative;
  margin-top: 4rem;
  text-align: left;
}

.about-intro .about-lede {
  text-align: left;
}

.about-typewriter {
  text-align: left !important;
  margin-top: 4.5rem;
}

.about-context {
  max-width: 35rem;
  margin-bottom: 1.25rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

.about-para {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.about-inline-link,
.about-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: 0.16em;
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
  line-height: 1;
  vertical-align: 0.02em;
}

.about-inline-svg,
.about-inline-img {
  display: block;
  width: 1.5em;
  height: 1.5em;
}

.about-inline-link {
  border: 1px solid transparent;
  border-radius: 0.38rem;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.about-inline-link:hover,
.about-inline-link:focus-visible {
  background: rgba(124, 58, 237, 0.18);
  color: var(--accent);
  border-color: rgba(124, 58, 237, 0.35);
  outline: none;
  transform: translateY(-1px);
}

.about-text-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-text-link:hover,
.about-text-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.about-luanda {
  color: var(--text);
  padding-bottom: 0.15em;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom;
  background-size: 0% 2px;
  transition: background-size 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.about-text-line.is-past .about-luanda,
.about-text-line.is-active .about-luanda {
  background-size: 100% 2px;
}

.about-lede {
  color: #f2eff7;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.about-display-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(0.4rem, 1.65vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  white-space: pre;
  user-select: none;
  margin-bottom: 1.5rem;
}

.about-ascii-me-line {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
  color: #f4f2f7;
}

.about-ascii-me-line .about-ascii-me {
  color: #f4f2f7;
}

.about .about-photo {
  flex-shrink: 0;
  width: clamp(5rem, 10vw, 7rem);
  height: clamp(5rem, 10vw, 7rem);
  border: 0.35rem solid #000;
  border-radius: 0.5rem;
  outline: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.65);
  object-fit: cover;
  transform: none;
  clip-path: none;
  filter: saturate(0.75) contrast(1.05);
}

.about-stamp {
  position: absolute;
  right: 0;
  bottom: 0;
  color: var(--text-dim);
  font-size: 0.6rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.about-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 1.75rem;
  padding-bottom: 3rem;
}

.about-copy {
  display: grid;
  gap: 1.5rem;
}

.open-to {
  padding-top: 0;
}

.about-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-dim);
  font-size: 0.6rem;
}

.about-signoff {
  display: block;
  margin-top: 1.5rem;
  color: var(--accent);
  font-size: 0.65rem;
}

.tags-wrap { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: default;
}

.tag:hover {
  border-color: rgba(124,58,237,0.5);
  color: #fff;
}

@media (min-width: 640px) {
}

@media (min-width: 768px) {
  .about-copy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .about .about-photo {
    bottom: 0.75rem;
  }
}

/* === Projects === */
.projects-subtitle {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
  grid-auto-rows: auto;
}

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  position: relative;
  background: linear-gradient(145deg, #181122 0%, #100b18 100%);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 1.35rem;
  padding: 0.75rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 29rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.project-card:hover {
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), 0 0 20px rgba(124, 58, 237, 0.08);
  transform: translateY(-3px);
}

.project-img {
  border: 0;
  border-radius: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  aspect-ratio: 1.16;
  background: #0b0810;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.project-img img,
.project-img video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  transition: filter 0.35s ease;
}

.project-card:hover .project-img img,
.project-card:hover .project-img video {
  filter: saturate(1.05);
}

.project-content {
  padding: 0 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.project-name {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.025em;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  border: 1px solid rgba(124, 58, 237, 0.28);
  background: rgba(124, 58, 237, 0.1);
  color: #d8c9ff;
  white-space: nowrap;
}

.badge-dot {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #a78bfa;
  flex-shrink: 0;
}

.badge-dot::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #25133e;
  font-size: 0.62rem;
  font-weight: 800;
}

.project-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #a7a7a7;
  margin-bottom: 0.55rem;
}

.project-desc {
  color: #c5c5c5;
  font-size: 0.78rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  min-height: 3.65rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  min-height: 1.35rem;
}

.project-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-dim);
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: default;
  background: transparent;
  border: none;
  padding: 0;
}

.project-tag:hover {
  color: #fff;
  transform: translateY(-2px);
}

.tech-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}

/* Minimal Tooltip for Tech Icons */
.tech-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(6, 3, 12, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.project-tag:hover .tech-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(124, 58, 237, 0.16);
}

.expand-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  color: #f0edff;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  padding: 0.55rem 0.75rem;
}

.expand-btn:hover {
  color: #fff;
  background: rgba(124, 58, 237, 0.34);
  transform: translateY(-1px);
}

.project-expand-icon {
  transition: transform 0.25s ease, color 0.2s;
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pill-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  color: #9e9e9e;
  border-radius: 50%;
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.pill-link:hover {
  color: #fff;
  background: rgba(124, 58, 237, 0.2);
  transform: translateY(-2px);
}

.pill-link svg {
  width: 1.125rem;
  height: 1.125rem;
  display: block;
}

.pill-link:hover .tech-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.project-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease-in-out, opacity 0.35s ease-in-out, margin 0.35s ease-in-out;
  margin-top: 0;
  width: 100%;
}

.project-detail.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 0.75rem;
}

.project-detail-inner {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-label {
  color: var(--accent);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.detail-list { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.detail-list li { display: flex; align-items: flex-start; gap: 0.35rem; line-height: 1.45; font-size: 0.7rem; }
.detail-bullet { color: var(--accent); margin-top: 1px; }

/* Waiting projects */
.waiting-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.waiting-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 0;
  transition: border-color 0.2s;
}

.waiting-item:last-child { border-bottom: 0; }

.waiting-item:hover { border-color: rgba(124, 58, 237, 0.45); }

@media (min-width: 640px) {
  .waiting-item { flex-direction: row; justify-content: space-between; align-items: center; }
}

.waiting-name {
  font-weight: 700;
  color: #fff;
  font-family: var(--font-mono);
}

.waiting-name a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.waiting-name a:hover {
  color: var(--accent);
}

.waiting-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* === Skills === */
.skills-sub {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-bottom: 5rem;
}

.skill-group {
  margin-bottom: 1.5rem;
  padding: 1.5rem 1rem 1rem;
  position: relative;
}

.skill-group-label {
  position: absolute;
  top: -0.65em;
  left: 1rem;
  background: var(--bg);
  padding: 0 0.5rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-outer {
  padding: 2rem 1rem 1rem;
  position: relative;
}

.skill-outer-label {
  position: absolute;
  top: -0.75em;
  left: 1.5rem;
  background: var(--bg);
  padding: 0 0.75rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-outer-tux {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.skill-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  aspect-ratio: auto;
  height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg-card);
  color: #d1d5db;
  cursor: default;
}

.skill-cell .skill-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  object-fit: contain;
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-cell:hover {
  color: #fff;
}

.skill-cell:hover .skill-name {
  color: #fff;
}

.cat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.skill-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  cursor: default;
}

.skill-cell svg {
  width: 1.5rem;
  height: 1.5rem;
}

.skill-cell:hover {
  color: #fff;
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  font-family: var(--font-mono);
  background: transparent;
  border: 0;
  border-radius: 0;
  transition: border-color 0.2s;
}

.roadmap-grid:hover {
  border-color: rgba(124, 58, 237, 0.45);
}

.roadmap-card {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
  font-family: var(--font-mono);
}

.roadmap-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.75rem;
  max-width: none;
  text-decoration: none;
  transition: color 0.2s;
}

.roadmap-link:hover {
  color: var(--accent);
}

.roadmap-link .roadmap-year { color: var(--accent); }

.roadmap-card.current {
  border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.05);
}

.roadmap-year {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0;
}

.roadmap-year.current { color: var(--accent); }
.roadmap-year:not(.current) { color: var(--text-muted); }

.roadmap-label {
  font-size: 0.75rem;
  color: #fff;
  margin-bottom: 0;
}

.roadmap-external-icon {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.25rem;
  vertical-align: -0.1em;
  color: var(--accent);
}

/* === Contact === */
.contact-wrap {
  max-width: 100%;
}

.contact-intro {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.contact-kicker {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 1.5rem;
  text-align: left;
}

.contact-sub {
  max-width: 34rem;
  margin-bottom: 0;
}

.contact-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (min-width: 768px) {
  .contact-text { font-size: 1.1rem; }
}

.briefing-wrap {
  margin-top: 1.5rem;
}

.briefing-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 999px;
  cursor: pointer;
  padding: 0.7rem 1rem;
  transition: color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.briefing-btn:hover {
  color: #fff;
  background: #8b5cf6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.24);
}

.arrow-toggle {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}
.arrow-toggle svg { width: 100%; height: 100%; }
.arrow-toggle.open { transform: rotate(90deg); }

.briefing-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin 0.3s ease-in-out;
}

.briefing-content.open {
  max-height: 2000px;
  opacity: 1;
  margin-top: 1.25rem;
}

.briefing-inner {
  background: linear-gradient(145deg, #171023 0%, #0f0a16 100%);
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 1rem;
  padding: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.briefing-inner p { color: #d1d5db; line-height: 1.625; }

.briefing-list-label {
  color: var(--accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.briefing-list { list-style: none; display: flex; flex-direction: column; gap: 0.375rem; }
.briefing-list li { display: flex; align-items: flex-start; gap: 0.5rem; }
.briefing-list li::before { content: '·'; color: var(--accent); }

.briefing-fast {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.briefing-fast-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.briefing-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 0.25rem;
}

.briefing-email:hover { opacity: 0.8; }

.yt-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
}

.yt-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(145deg, #171023 0%, #0f0a16 100%);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 1rem;
  padding: 1rem;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.yt-card:hover {
  border-color: rgba(124, 58, 237, 0.48);
  background: linear-gradient(145deg, #1d142d 0%, #120c1b 100%);
  transform: translateY(-2px);
}

.yt-icon { color: #a78bfa; transition: color 0.2s; flex-shrink: 0; margin-top: 2px; }
.yt-icon svg { width: 1.25rem; height: 1.25rem; }
.yt-card:hover .yt-icon { color: #c4b5fd; }

.contact-external-icon {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 0.9rem;
  height: 0.9rem;
  color: var(--accent);
  opacity: 0;
  transition: color 0.2s, transform 0.2s, opacity 0.2s;
}

.yt-card:hover .contact-external-icon,
.yt-card:focus-visible .contact-external-icon,
.social-item:hover .contact-external-icon {
  color: #c4b5fd;
  transform: translate(2px, -2px);
  opacity: 1;
}

.social-item:focus-visible .contact-external-icon {
  color: #c4b5fd;
  transform: translate(2px, -2px);
  opacity: 1;
}

.yt-info { flex: 1; min-width: 0; }
.yt-title { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.yt-media-name {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
}

.yt-lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #d8c9ff;
  background: rgba(124, 58, 237, 0.14);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
}

.yt-desc {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  margin-top: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease, margin 0.25s ease;
}

.yt-card:hover .yt-desc,
.yt-card:focus-visible .yt-desc {
  max-height: 3rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.25rem;
}

.yt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease, margin 0.25s ease;
}

.yt-card:hover .yt-footer,
.yt-card:focus-visible .yt-footer {
  max-height: 2rem;
  margin-top: 0.5rem;
  opacity: 1;
  transform: translateY(0);
}

.yt-handle { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); }

.yt-subs {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  transition: max-width 0.25s ease, opacity 0.2s ease;
}

.yt-card:hover .yt-subs,
.yt-card:focus-visible .yt-subs {
  max-width: 8rem;
  opacity: 1;
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.social-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--font-mono);
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 0;
  transition: color 0.2s, border-color 0.2s;
}

.social-item:last-child { border-bottom: 0; }

.social-item:hover {
  background: transparent;
  border-color: rgba(124, 58, 237, 0.45);
}

.social-icon {
  display: none;
}

.social-copy { flex: 1; min-width: 0; }
.social-label {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.discord-card { margin: 0 0 0.75rem; }
.discord-icon { color: #a78bfa; transition: color 0.2s; flex-shrink: 0; margin-top: 2px; }
.discord-icon svg { width: 1.25rem; height: 1.25rem; }
.yt-card:hover .discord-icon { color: #c4b5fd; }

.social-sub {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease, margin 0.25s ease;
}

.social-item:hover .social-sub,
.social-item:focus-visible .social-sub {
  max-height: 3rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 2px;
}

.social-handle {
  color: var(--accent);
}

.social-item .contact-external-icon {
  position: static;
  width: 0.9rem;
  height: 0.9rem;
  opacity: 1;
  transform: none;
}

.social-item:hover .contact-external-icon,
.social-item:focus-visible .contact-external-icon {
  color: #c4b5fd;
  transform: translate(2px, -2px);
}
.contact-inline-icon {
  width: 0.9rem;
  height: 0.9rem;
  vertical-align: -0.15em;
}

@media (min-width: 768px) {
  .contact-intro {
    display: grid;
    grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.1fr);
    column-gap: 4rem;
    align-items: start;
    padding-bottom: 2.5rem;
  }

  .contact-kicker,
  .contact-heading {
    grid-column: 1;
  }

  .contact-kicker {
    align-self: start;
    grid-row: 1;
  }

  .contact-heading {
    grid-row: 1 / span 2;
    margin-bottom: 0;
    padding-top: 1.65rem;
  }

  .contact-sub {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

}

/* === Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Setup === */
.setup-grid {
  margin-top: 2rem;
}

.setup-image-wrap {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.setup-image-wrap:hover {
  border-color: rgba(124,58,237,0.4);
}

.setup-image {
  display: block;
  width: 100%;
  height: auto;
}

.setup-image-hint {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* === YouTube Feed === */
.yt-feed {
  margin-top: 1.5rem;
  overflow: hidden;
  touch-action: pan-y;
}

.yt-feed-status {
  display: block;
  padding: 1.5rem 0;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.yt-feed-track {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: max-content;
  padding: 1.5rem 0;
  will-change: transform;
}

.yt-feed-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--bg);
  transition: border-color 0.25s;
  text-decoration: none;
  color: inherit;
  max-width: 320px;
}

.yt-feed-item:hover {
  border-color: rgba(124,58,237,0.4);
}

.yt-feed-thumb {
  width: 80px;
  height: 45px;
  border-radius: 0.375rem;
  object-fit: cover;
  flex-shrink: 0;
}

.yt-feed-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .yt-feed-track {
    gap: 1rem;
    padding: 2rem 0;
  }

  .yt-feed-item {
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    max-width: 400px;
  }

  .yt-feed-thumb {
    width: 120px;
    height: 68px;
  }

  .yt-feed-title {
    font-size: 0.85rem;
  }
}

.yt-feed a:only-child {
  justify-content: center;
  gap: 0.5rem;
  max-width: none;
}

/* === GitHub Graph === */
.gh-graph {
  margin-top: 1.5rem;
}

.setup-writing {
  width: min(100%, 52rem);
  margin: 4rem auto 0;
  padding-top: 2rem;
}

.writing-heading {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.2;
  text-align: center;
}

.writing-list {
  margin-top: 2.75rem;
  border-top: 1px solid var(--border);
}

.setup-writing .writing-list {
  border-top: 0;
}

.writing-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.writing-item:hover {
  border-bottom-color: rgba(124, 58, 237, 0.55);
}

.writing-title {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.writing-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.writing-reading {
  margin-right: 0.15rem;
}

.writing-tag {
  padding: 0.18rem 0.35rem;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-gray);
  font-family: var(--font-sans);
  font-size: 0.63rem;
}

.writing-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  white-space: nowrap;
}

.writing-arrow {
  display: inline-flex;
  width: 0.85rem;
  height: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.writing-arrow svg {
  width: 100%;
  height: 100%;
}

.writing-item:hover .writing-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.writing-more {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 2.5rem auto 0;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: 0.65rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.writing-more:hover {
  border-color: var(--accent);
  color: var(--text);
}

.writing-more-arrow {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 0.8;
  transition: transform 0.2s ease;
}

.writing-more:hover .writing-more-arrow {
  transform: translateY(2px);
}

@media (max-width: 639px) {
  .setup-writing {
    margin-top: 3rem;
  }

  .writing-list {
    margin-top: 2rem;
  }

  .writing-item {
    gap: 1rem;
    padding: 1.1rem 0;
  }

  .writing-title {
    font-size: 0.88rem;
  }

  .writing-side {
    font-size: 0.68rem;
  }
}

/* === Article page === */
.article-page {
  min-height: 100vh;
  padding: 0 1.25rem 5rem;
}

.article-shell {
  width: min(100%, 52rem);
  margin: 0 auto;
}

.article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.article-back,
.article-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.article-back {
  color: var(--text);
  transition: color 0.2s ease, transform 0.2s ease;
}

.article-back:hover {
  color: var(--accent);
  transform: translateX(-2px);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-dim);
}

.article-breadcrumb a:hover {
  color: var(--text);
}

.article-breadcrumb span:last-child {
  color: var(--text-muted);
}

.article-document {
  padding: clamp(4rem, 10vw, 7.5rem) 0 4rem;
}

.writing-archive {
  padding: clamp(4rem, 10vw, 7.5rem) 0 4rem;
}

.writing-archive-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.writing-archive .article-document-title {
  margin-top: 1rem;
}

.writing-archive-list {
  margin-top: 4rem;
}

.article-cover {
  position: relative;
  width: 100%;
  height: clamp(8rem, 25vw, 14rem);
  margin-bottom: 2.5rem;
  overflow: hidden;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 82% 22%, rgba(216, 180, 254, 0.42), transparent 28%),
    radial-gradient(circle at 18% 90%, rgba(49, 12, 92, 0.72), transparent 42%),
    linear-gradient(135deg, #8b5cf6 0%, #7c3aed 48%, #4c1d95 100%);
}

.article-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.12) 42.2% 42.8%, transparent 43%),
    linear-gradient(115deg, transparent 0 68%, rgba(255, 255, 255, 0.08) 68.2% 68.7%, transparent 69%);
  opacity: 0.8;
}

.article-document-title {
  max-width: 48rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.article-document-lede {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.article-document-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.article-document-meta::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

.article-document-rule {
  height: 1px;
  margin: 3.5rem 0;
  border: 0;
  background: var(--border);
}

.article-document-body {
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.article-document-body p + p {
  margin-top: 1.5rem;
}

.article-document-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.article-document-footer a {
  color: var(--text);
}

.article-document-footer a:hover {
  color: var(--accent);
}

@media (max-width: 639px) {
  .article-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
  }

  .article-breadcrumb {
    order: -1;
  }

  .article-document-title {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }
}

/* Body */
.gh-body {
  display: flex;
  gap: 3px;
}

/* Weeks */
.gh-weeks {
  display: flex;
  gap: 3px;
  overflow: hidden;
}
.gh-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Cells */
.gh-cell {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .gh-cell {
    width: 16px;
    height: 16px;
    border-radius: 3px;
  }
  .gh-weeks { gap: 2px; }
  .gh-week { gap: 2px; }
  .gh-body { gap: 2px; }
}

/* Setup Modal */
.setup-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 0;
}

.setup-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.setup-modal {
  position: relative;
  background: #08050e;
  border: none;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  .setup-modal-overlay {
    padding: 2rem;
  }

  .setup-modal {
    max-width: 56rem;
    max-height: 85vh;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    height: auto;
  }
}

.setup-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  .setup-modal-close {
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
  }
}

.setup-modal-close:hover {
  background: rgba(124,58,237,0.25);
  border-color: rgba(124,58,237,0.5);
}

.setup-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

@media (min-width: 768px) {
  .setup-modal-content {
    flex-direction: row;
  }
}

.setup-modal-image {
  flex-shrink: 0;
  overflow: hidden;
  max-height: 28vh;
  min-height: 160px;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .setup-modal-image {
    flex: 1;
    max-height: none;
    min-height: 420px;
    padding: 0.75rem;
  }
}

.setup-modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.setup-modal-items {
  flex: 1;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .setup-modal-items {
    padding: 1.5rem;
    gap: 0.625rem;
    max-width: 50%;
  }
}

.setup-modal-heading {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .setup-modal-heading {
    margin-bottom: 0.5rem;
    padding-bottom: 0.625rem;
  }
}

.setup-modal-item {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 0.625rem 0;
}

.setup-modal-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.setup-modal-trigger-copy {
  min-width: 0;
}

.setup-modal-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  transition: transform 0.2s ease, color 0.2s ease;
}

.setup-modal-chevron svg {
  width: 100%;
  height: 100%;
}

.setup-modal-item.open .setup-modal-chevron {
  transform: rotate(90deg);
  color: #c4b5fd;
}

.setup-modal-trigger:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 0.35rem;
  border-radius: 0.25rem;
}

.setup-modal-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .setup-modal-item {
    padding: 0.75rem 0;
  }
}

.setup-modal-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.1rem;
}

.setup-modal-value {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #fff;
  display: block;
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .setup-modal-value {
    margin-bottom: 0.25rem;
  }
}

.setup-modal-detail {
  color: var(--text-muted);
  padding-top: 0.6rem;
}

.setup-modal-detail-media {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.setup-modal-detail-copy {
  flex: 1;
  min-width: 0;
}

.setup-modal-detail-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.setup-modal-detail p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin: 0;
}

/* Landscape phones: less image, more list */
@media (max-height: 480px) and (orientation: landscape) {
  .setup-modal-image {
    max-height: 40vh;
    min-height: 100px;
  }

  .setup-modal-items {
    padding: 0.5rem 1rem;
    gap: 0;
  }

  .setup-modal-heading {
    font-size: 0.55rem;
    margin-bottom: 0.15rem;
    padding-bottom: 0.3rem;
  }

  .setup-modal-item {
    padding: 0.35rem 0;
  }

  .setup-modal-detail-value {
    font-size: 0.8125rem;
  }

  .setup-modal-detail p {
    font-size: 0.75rem;
  }
}

/* === Footer === */
.footer {
  margin-top: 6rem;
  padding: 2rem 1rem 6rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.verse-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: color 0.2s, background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.verse-btn:hover,
.verse-btn:focus-visible {
  color: var(--accent);
  background: rgba(124,58,237,0.08);
}

.verse-full {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
  margin: 0;
}

.verse-full.open {
  max-height: 120px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* === Responsive === */
@media (max-width: 639px) {
  .lang-toggle { font-size: 0.625rem; padding: 0.25rem 0.5rem; }
  .nav { bottom: 1.25rem; gap: 0.25rem; padding: 0.3rem; }
  .nav-link { width: 2.25rem; height: 2.25rem; }
  .nav-icon { width: 1.05rem; height: 1.05rem; }
}

/* =========================================================
   APPLE-INSPIRED UI SYSTEM
   Calm surfaces, one accent, generous rhythm and restrained
   motion. The dark palette keeps the portfolio's identity
   while using system UI conventions.
   ========================================================= */
:root {
  --bg: #000;
  --bg-card: #1c1c1e;
  --bg-elevated: #2c2c2e;
  --border: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.2);
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-dim: #86868b;
  --text-gray: #98989d;
  --accent: #7c3aed;
  --accent-glow: rgba(124, 58, 237, 0.18);
  --accent-bg: rgba(124, 58, 237, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-sans);
  --font-display: var(--font-sans);
  --font-hand: var(--font-sans);
  --font-accent: var(--font-sans);
  --font-label: var(--font-sans);
  --font-mono: "SFMono-Regular", ui-monospace, Menlo, Monaco, Consolas, monospace;
}

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

body {
  background:
    radial-gradient(circle at 50% -12rem, rgba(124, 58, 237, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: rgba(124, 58, 237, 0.32);
  color: #fff;
}

.top-toggles {
  top: 1.25rem;
  right: 1.25rem;
  gap: 0.625rem;
}

.lang-toggle,
.persona-btn {
  background: rgba(28, 28, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.lang-toggle {
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
}

.lang-btn {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-weight: 500;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--text);
}

.persona-btn {
  color: var(--text-dim);
}

.persona-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}

.persona-btn.active {
  color: var(--accent);
}

.nav {
  bottom: 1.25rem;
  gap: 0.25rem;
  padding: 0.35rem;
  background: rgba(28, 28, 30, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.nav-link {
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(245, 245, 247, 0.52);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transform: translateY(-1px);
}

.nav-link.active {
  background: var(--accent);
  color: #000;
  box-shadow: none;
}

.nav-link.active .nav-icon {
  stroke-width: 2.2;
}

.nav-tooltip {
  background: rgba(28, 28, 30, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.banner {
  height: 8rem;
  background: #1c1c1e;
  border-bottom: 1px solid var(--border);
}

.banner-img {
  opacity: 0.82;
  filter: saturate(0.86) contrast(1.04);
}

.main {
  max-width: 68rem;
  padding: 4rem 1.25rem 0;
}

.section {
  scroll-margin-top: 7rem;
  margin-bottom: 6rem;
}

.section-title {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin-bottom: 2.25rem;
}

.subsection-title,
.projects-subtitle,
.contact-kicker,
.cat-label {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-subtitle {
  border-bottom-color: var(--border);
  padding-bottom: 0.9rem;
}

.text-purple {
  color: var(--accent);
}

.hero {
  min-height: 68vh;
  margin-bottom: 6rem;
  justify-content: center;
}

.ascii-logo {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(10px, 2.3vw, 15px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 2rem;
  opacity: 0.96;
}

.text-white {
  color: var(--text);
}

.tagline {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  background: transparent;
  border-left: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.3vw, 1.3rem);
  margin-bottom: 2.5rem;
  padding: 0.25rem 0 0.25rem 0.9rem;
}

.hero-cta {
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 0;
}

.cta-btn {
  background: var(--text);
  border: 0;
  border-radius: 999px;
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 1.2rem;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.cta-btn:hover {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.16);
  color: #000;
  transform: translateY(-2px);
}

.cta-btn .arrow-purple {
  color: #000;
}

.hero-socials {
  gap: 0.9rem;
  padding-top: 0.35rem;
}

.social-link {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.social-link:hover {
  color: var(--text);
}

.dot-sep {
  color: rgba(255, 255, 255, 0.22);
}

.about-frame {
  background: linear-gradient(145deg, rgba(28, 28, 30, 0.88), rgba(18, 18, 20, 0.72));
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.about-intro {
  margin-top: 0;
}

.about-typewriter {
  margin-top: 2rem;
}

.about-para {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.about-lede {
  color: var(--text);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.42;
}

.about-full-text {
  opacity: 0;
  transform: translateY(1.1rem);
  filter: blur(6px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.about .about-photo {
  border: 0.3rem solid var(--bg-card);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  filter: saturate(0.8);
}

.about-footer {
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0.45rem 0.8rem;
}

.tag:hover {
  background: var(--accent-bg);
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--text);
}

.projects-grid {
  gap: 1rem;
}

.project-card,
.yt-card,
.briefing-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: none;
}

.project-card {
  border-radius: 1.5rem;
  min-height: 28rem;
  padding: 0.7rem;
}

.project-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.project-img {
  background: #000;
  border-radius: 1.05rem;
  box-shadow: none;
}

.project-name {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
}

.project-sub,
.project-desc {
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.project-desc {
  line-height: 1.55;
}

.project-badge {
  background: var(--accent-bg);
  border-color: rgba(124, 58, 237, 0.25);
  color: #d8c9ff;
}

.badge-dot {
  background: var(--accent);
}

.badge-dot::after {
  color: #25133e;
}

.project-actions {
  border-top-color: var(--border);
}

.expand-btn {
  background: var(--text);
  border: 0;
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

.expand-btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(-1px);
}

.pill-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.waiting-name {
  font-family: var(--font-mono);
}

.waiting-desc {
  color: var(--text-dim);
}

.skills-sub {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.skill-outer,
.skill-group {
  background: rgba(28, 28, 30, 0.62);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
}

.skill-group {
  padding: 1.5rem 1rem 1rem;
}

.skill-outer-label,
.skill-group-label {
  background: var(--bg);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.skill-outer-label {
  color: var(--accent);
}

.skill-cell {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid transparent;
  border-radius: 0.8rem;
  color: var(--text);
}

.skill-cell:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.skill-name {
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.setup-grid {
  margin-top: 2.5rem;
}

.setup-image-wrap {
  border: 1px solid var(--border);
  border-radius: 1.5rem;
}

.setup-image-wrap:hover {
  border-color: var(--border-light);
}

.setup-image-hint {
  color: var(--text);
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
}

.contact-heading {
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.contact-text {
  color: var(--text-muted);
}

.briefing-btn {
  background: var(--text);
  border: 0;
  color: #000;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.briefing-btn .arrow-purple {
  color: #000;
}

.briefing-btn:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
  color: #000;
}

.briefing-inner {
  border-radius: 1.25rem;
}

.yt-card:hover {
  background: #242426;
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.yt-icon,
.discord-icon,
.social-icon,
.yt-handle,
.briefing-email {
  color: var(--accent);
}

.yt-lang {
  background: var(--accent-bg);
  color: #d8c9ff;
}

.footer {
  border-top-color: var(--border);
}

.footer-tagline {
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 600;
}

.setup-modal-overlay {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.setup-modal {
  background: #1c1c1e;
}

@media (min-width: 768px) {
  .main {
    padding: 5rem 2rem 0;
  }

  .banner {
    height: 10rem;
  }

  .section {
    margin-bottom: 9rem;
  }

  .hero {
    min-height: 70vh;
  }

  .about-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .top-toggles {
    top: 0.85rem;
    right: 0.85rem;
  }

  .main {
    padding-top: 3rem;
  }

  .hero {
    min-height: 70vh;
  }

  .about-frame {
    border-radius: 1.25rem;
  }
}

/* === Skills: clean category boundaries === */
.skills-categories {
  margin-top: 1rem;
}

.skill-outer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.35rem 1rem 1rem;
  background: rgba(28, 28, 30, 0.78);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 1.5rem;
  width: 100%;
}

.skill-outer-label,
.skill-group-label {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  line-height: 1;
}

.skill-outer-label {
  top: -0.8em;
  left: 1.25rem;
  padding: 0.45rem 0.7rem;
  background: #000;
  color: var(--accent);
  font-size: 0.72rem;
}

.skill-group {
  margin-bottom: 0;
  padding: 1.65rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 1rem;
  width: 100%;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-label {
  top: -0.72em;
  left: 1rem;
  padding: 0.38rem 0.65rem;
  background: #1c1c1e;
  color: var(--text-muted);
  font-size: 0.66rem;
}

.skills-grid {
  gap: 0.65rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.skill-cell {
  height: 2.75rem;
  justify-content: flex-start;
  min-width: 0;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.08);
}

.skill-cell:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-name {
  color: #c7c7cc;
}

.skill-cell:hover .skill-name {
  color: var(--text);
}

@media (max-width: 639px) {
  .skill-outer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .skill-group {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Keep every link in "Where to find me" on the same clean row pattern. */
.contact-socials .yt-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.contact-socials .yt-card {
  display: block;
  padding: 1rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 0;
  transform: none;
  transition: color 0.2s, border-color 0.2s;
}

.contact-socials .yt-card:last-child {
  border-bottom: 0;
}

.contact-socials .yt-card:hover {
  background: transparent;
  border-color: rgba(124, 58, 237, 0.45);
  transform: none;
}

.contact-socials .yt-card:focus-visible,
.contact-socials .social-item:focus-visible {
  outline: 1px solid rgba(167, 139, 250, 0.7);
  outline-offset: 3px;
}

.contact-socials .yt-card .yt-icon {
  display: none;
}

.contact-socials .yt-card .yt-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 1rem;
  width: 100%;
}

.contact-socials .yt-card .yt-title,
.contact-socials .yt-card .yt-desc,
.contact-socials .yt-card .yt-footer {
  grid-column: 1;
}

.contact-socials .yt-card .yt-title {
  margin-bottom: 0;
}

.contact-socials .yt-card .contact-external-icon {
  position: static;
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  opacity: 1;
  transform: none;
}

.contact-socials .yt-card:hover .contact-external-icon,
.contact-socials .yt-card:focus-visible .contact-external-icon {
  transform: translate(2px, -2px);
}

.contact-socials .discord-card {
  margin: 0;
}
