/* David Matteo — alternate CV website */
:root {
  --bg: #08090f;
  --bg-raised: #10121b;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --text: #f4f4fa;
  --text-secondary: #b0b2c4;
  --text-muted: #777b91;
  --cyan: #14d8ff;
  --purple: #8268ff;
  --gold: #f2c451;
  --gradient: linear-gradient(115deg, var(--cyan) 0%, var(--purple) 52%, var(--gold) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(20, 216, 255, .16), rgba(130, 104, 255, .12) 56%, rgba(242, 196, 81, .08));
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-sm: .6rem;
  --radius-md: .9rem;
  --radius-lg: 1.35rem;
  --radius-xl: 1.8rem;
  --shadow-card: 0 1.4rem 4rem rgba(0, 0, 0, .28);
  --nav-height: 4.5rem;
  --transition: 220ms cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 18rem;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 10%, rgba(20, 216, 255, .07), transparent 22rem),
    radial-gradient(circle at 15% 35%, rgba(130, 104, 255, .06), transparent 28rem),
    var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

body.nav-open { overflow: hidden; }

::selection { color: white; background: rgba(130, 104, 255, .45); }

img { display: block; max-width: 100%; }

a { color: var(--cyan); text-decoration: none; }

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

button { font: inherit; }

:focus-visible {
  outline: .18rem solid var(--gold);
  outline-offset: .25rem;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 5000;
  padding: .65rem 1rem;
  border-radius: var(--radius-sm);
  color: #08090f;
  background: var(--gold);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform var(--transition);
}

.skip-link:focus { transform: translateY(0); }

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .72;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled,
.nav.menu-open {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 15, .86);
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .18);
  backdrop-filter: blur(1.25rem);
  -webkit-backdrop-filter: blur(1.25rem);
}

.scroll-progress {
  position: absolute;
  inset: 0 0 auto;
  height: .18rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .025);
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  box-shadow: 0 0 .75rem rgba(20, 216, 255, .45);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.nav-inner {
  width: min(100%, 75rem);
  height: var(--nav-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  flex: none;
  padding: .35rem;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  padding-block: .5rem;
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset: auto 0 .2rem;
  height: .12rem;
  border-radius: 1rem;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .65rem; }

.nav-print,
.nav-toggle {
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: transform var(--transition), color var(--transition), border-color var(--transition), background var(--transition);
}

.nav-print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .58rem .9rem;
  color: var(--cyan);
  border-color: rgba(20, 216, 255, .26);
  font-size: .78rem;
  font-weight: 800;
}

.nav-print:hover {
  color: white;
  border-color: rgba(20, 216, 255, .55);
  background: rgba(20, 216, 255, .11);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .65rem;
}

.nav-toggle span {
  width: 1.35rem;
  height: .12rem;
  border-radius: 1rem;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(.42rem) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-.42rem) rotate(-45deg); }

.print-header { display: none; }

.hero,
.section,
.footer { position: relative; z-index: 1; }

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 4.5rem) clamp(1.25rem, 4vw, 3rem) 6rem;
}

.hero-inner {
  width: min(100%, 75rem);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.hero-content { position: relative; z-index: 2; }

.hero-greeting,
.hero-name,
.hero-title,
.hero-description,
.hero-actions,
.hero-image-wrapper {
  opacity: 1;
  transform: none;
}

.js .hero-greeting,
.js .hero-name,
.js .hero-title,
.js .hero-description,
.js .hero-actions,
.js .hero-image-wrapper {
  opacity: 0;
  transform: translateY(1rem);
  animation: enter .65s forwards;
}

.hero-greeting {
  margin: 0 0 .8rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  animation-delay: .08s;
}

.hero-name {
  margin: 0 0 1rem;
  font-size: clamp(3.35rem, 6.6vw, 5.8rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.065em;
  white-space: nowrap;
  animation-delay: .16s;
}

.gradient-text {
  color: var(--cyan);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-name .gradient-text {
  background-image: var(--gradient);
  background-size: 200% auto;
  animation: heroNameGradient 18s ease-in-out infinite;
}

.hero-title {
  min-height: 2.2rem;
  margin: 0 0 1.5rem;
  color: var(--text);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -.02em;
  animation-delay: .24s;
}

.typed-cursor {
  color: var(--cyan);
  animation: blink .8s steps(1, end) infinite;
}

.hero-description {
  max-width: 39rem;
  margin: 0 0 2.2rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.75;
  animation-delay: .32s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  animation-delay: .4s;
}

.btn {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .82rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: .92rem;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: white;
  background: linear-gradient(125deg, #08bfe8, #785cf5);
  box-shadow: 0 .75rem 2.2rem rgba(55, 110, 245, .25);
}

.btn-primary:hover { color: white; box-shadow: 0 1rem 2.8rem rgba(55, 110, 245, .37); }

.btn-secondary {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, .035);
}

.btn-secondary:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255, 255, 255, .065); }

.hero-image-wrapper {
  position: relative;
  min-height: clamp(23rem, 37vw, 29rem);
  display: grid;
  place-items: center;
  isolation: isolate;
  animation-delay: .26s;
}

.hero-image-container {
  position: relative;
  width: clamp(17rem, 30vw, 23rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: .18rem solid rgba(20, 216, 255, .3);
  border-radius: 50%;
  background: var(--bg-raised);
  box-shadow: 0 0 0 .5rem rgba(255, 255, 255, .025), 0 2rem 5rem rgba(0, 0, 0, .45), 0 0 4rem rgba(20, 216, 255, .12);
  z-index: 2;
}

.hero-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 2.5rem rgba(0, 0, 0, .2);
  pointer-events: none;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 27%;
}

.hero-photo-orbit {
  position: absolute;
  z-index: 1;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  pointer-events: none;
}

.hero-photo-orbit::after {
  content: "";
  position: absolute;
  width: .42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 1rem var(--cyan);
}

.hero-photo-orbit--outer { width: min(100%, 28rem); border-color: rgba(255, 255, 255, .09); transform: rotate(-16deg); }
.hero-photo-orbit--outer::after { top: 16%; right: 11%; }
.hero-photo-orbit--inner { width: min(82%, 23rem); border-style: dashed; border-color: rgba(130, 104, 255, .18); transform: rotate(41deg); }
.hero-photo-orbit--inner::after { left: 28%; bottom: 2%; background: var(--gold); box-shadow: 0 0 1rem var(--gold); }

.hero-photo-badge {
  position: absolute;
  z-index: 4;
  padding: .62rem .78rem;
  border: 1px solid var(--border-strong);
  border-radius: .7rem;
  color: var(--text-secondary);
  background: rgba(10, 12, 21, .86);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .3);
  backdrop-filter: blur(.8rem);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .025em;
  white-space: nowrap;
}

.hero-photo-badge span { margin-right: .45rem; color: var(--cyan); }
.hero-photo-badge--stack { top: 20%; left: -2%; }
.hero-photo-badge--human { right: -3%; bottom: 18%; }

.hero-photo-spark { position: absolute; z-index: 3; width: .35rem; aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.hero-photo-spark--a { top: 8%; left: 22%; background: var(--gold); box-shadow: 0 0 1rem var(--gold); }
.hero-photo-spark--b { right: 14%; bottom: 7%; background: var(--purple); box-shadow: 0 0 1rem var(--purple); }

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(4rem);
  opacity: .2;
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

.hero-orb--1 { width: 12rem; height: 12rem; right: 4%; top: 2%; background: var(--cyan); }
.hero-orb--2 { width: 10rem; height: 10rem; left: 5%; bottom: 2%; background: var(--purple); animation-delay: -2.5s; }
.hero-orb--3 { width: 6rem; height: 6rem; right: 20%; bottom: 5%; background: var(--gold); opacity: .13; animation-delay: -5s; }

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color var(--transition);
}

.hero-scroll-cue:hover { color: var(--cyan); }
.hero-scroll-cue i { width: .1rem; height: 1.8rem; background: linear-gradient(var(--cyan), transparent); animation: scrollPulse 1.8s ease-in-out infinite; }

.section { padding: clamp(5.5rem, 9vw, 8rem) clamp(1.25rem, 4vw, 3rem); }
.section:nth-of-type(even) { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .012), transparent); }
.section-inner { width: min(100%, 75rem); margin-inline: auto; }

.section-header { max-width: 50rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center; }

.section-label {
  display: block;
  margin-bottom: .8rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 4.15rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.055em;
}

.section-subtitle { max-width: 41rem; margin: 0 auto; color: var(--text-secondary); font-size: clamp(.98rem, 1.4vw, 1.08rem); }

.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .025) inset;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
}

.glass-card:hover { border-color: var(--border-strong); background: var(--bg-card-hover); box-shadow: var(--shadow-card); transform: translateY(-.3rem); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(20rem, .88fr); align-items: start; gap: clamp(2.5rem, 6vw, 5rem); }
.about-text p { margin: 0 0 1.15rem; color: var(--text-secondary); font-size: 1.03rem; }
.about-text p:first-child { color: var(--text); font-size: 1.12rem; }
.about-text .about-philosophy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.45rem 0 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(20, 216, 255, .14);
  border-left: .18rem solid var(--cyan);
  border-radius: .7rem;
  color: var(--text);
  background: linear-gradient(90deg, rgba(20, 216, 255, .07), rgba(130, 104, 255, .035), transparent);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .065em;
  line-height: 1.4;
  text-transform: uppercase;
}
.about-philosophy span:nth-child(2) { color: #aa98ff; }
.about-philosophy span:nth-child(3) { color: var(--gold); }
.about-philosophy span + span::before { content: "→"; margin-right: .55rem; color: var(--text-muted); }

.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stat-card { min-height: 9.4rem; display: flex; flex-direction: column; justify-content: center; padding: 1.4rem; text-align: center; }
.stat-number { color: var(--text); font-size: clamp(1.9rem, 3.8vw, 2.75rem); font-weight: 900; line-height: 1.05; letter-spacing: -.05em; }
.stat-card:not(.stat-card--text) .stat-number { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card--text .stat-number { color: var(--text); background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.stat-number--infinity { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: .85; }
.stat-label { margin-top: .65rem; color: var(--text-muted); font-size: .69rem; font-weight: 750; letter-spacing: .075em; line-height: 1.4; text-transform: uppercase; }

.section--experience::before {
  content: "";
  position: absolute;
  top: 15%;
  left: -12rem;
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  background: rgba(130, 104, 255, .07);
  filter: blur(5rem);
  pointer-events: none;
}

.experience-overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--gradient-soft);
}

.experience-chapter {
  margin-bottom: 1.25rem;
  padding: 1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 216, 255, .25), rgba(130, 104, 255, .16), rgba(242, 196, 81, .12));
}
.experience-chapter .experience-overview { margin-bottom: 0; border: 0; border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0; background: rgba(12, 14, 24, .94); }
.experience-overview--neoelite .experience-kicker { color: var(--gold); }
.experience-chapter-description { padding: 0 1.8rem 1.6rem; border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px); color: var(--text-secondary); background: rgba(12, 14, 24, .94); }
.experience-chapter-description p { margin: 0 0 .8rem; }
.experience-chapter-description ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.experience-chapter-description li { position: relative; padding-left: 1.25rem; }
.experience-chapter-description li::before { content: "▹"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.experience-chapter--current { margin-top: clamp(3rem, 6vw, 4.5rem); margin-bottom: 0; }

.experience-kicker { display: block; margin-bottom: .3rem; color: var(--cyan); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.experience-overview h3 { margin: 0; font-size: clamp(1.25rem, 2.3vw, 1.8rem); line-height: 1.25; }
.experience-tenure { flex: none; color: var(--text-secondary); font-family: var(--font-mono); font-size: .78rem; }

.timeline { position: relative; margin-left: .45rem; padding-left: 3rem; }
.timeline::before { content: ""; position: absolute; inset: .7rem auto 0 0; width: .14rem; border-radius: 1rem; background: linear-gradient(var(--cyan), var(--purple), var(--gold)); }
.timeline-item { position: relative; margin-bottom: 3.4rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; top: .42rem; left: -3.48rem; width: .9rem; aspect-ratio: 1; border: .2rem solid var(--bg); border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 .14rem rgba(20, 216, 255, .4), 0 0 1.2rem rgba(20, 216, 255, .25); }
.timeline-item:nth-child(2) .timeline-dot { background: var(--purple); box-shadow: 0 0 0 .14rem rgba(130, 104, 255, .4), 0 0 1.2rem rgba(130, 104, 255, .25); }
.timeline-item:nth-child(3) .timeline-dot { background: var(--gold); box-shadow: 0 0 0 .14rem rgba(242, 196, 81, .4), 0 0 1.2rem rgba(242, 196, 81, .2); }
.timeline-date { margin: 0 0 .38rem; color: var(--cyan); font-family: var(--font-mono); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.timeline-role { margin: 0 0 .75rem; font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.25; letter-spacing: -.025em; }
.timeline-description { max-width: 58rem; color: var(--text-secondary); }
.timeline-description p { margin: 0 0 .8rem; }
.timeline-description ul { margin: 0; padding: 0; list-style: none; }
.timeline-description li { position: relative; margin-bottom: .45rem; padding-left: 1.25rem; }
.timeline-description li::before { content: "▹"; position: absolute; left: 0; color: var(--cyan); font-weight: 800; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.skill-category {
  --skill-rgb: 20, 216, 255;
  min-height: 14.5rem;
  padding: 1.65rem;
  isolation: isolate;
  border-color: rgba(var(--skill-rgb), .2);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--skill-rgb), .11), transparent 34%),
    linear-gradient(145deg, rgba(var(--skill-rgb), .045), rgba(255, 255, 255, .025) 52%, rgba(255, 255, 255, .018));
}
.skill-category:nth-child(2) { --skill-rgb: 146, 116, 255; }
.skill-category:nth-child(3) { --skill-rgb: 242, 196, 81; }
.skill-category:nth-child(4) { --skill-rgb: 255, 92, 170; }
.skill-category:nth-child(5) { --skill-rgb: 64, 220, 150; }
.skill-category:nth-child(6) { --skill-rgb: 255, 135, 84; }
.skill-category::before {
  width: .2rem;
  height: 100%;
  background: linear-gradient(180deg, rgb(var(--skill-rgb)), rgba(var(--skill-rgb), .08));
}
.skill-category::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -5rem;
  right: -5rem;
  width: 11rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(var(--skill-rgb), .09);
  filter: blur(2.8rem);
  pointer-events: none;
}
.skill-category:hover {
  border-color: rgba(var(--skill-rgb), .42);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--skill-rgb), .15), transparent 38%),
    linear-gradient(145deg, rgba(var(--skill-rgb), .065), rgba(255, 255, 255, .035) 52%, rgba(255, 255, 255, .022));
  box-shadow: 0 1.4rem 4rem rgba(var(--skill-rgb), .075);
}
.skill-category-title { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.35rem; }
.skill-category-title > div { min-width: 0; }
.skill-category-title h3 { margin: 0; color: var(--text); font-size: 1.08rem; line-height: 1.25; }
.skill-summary { max-width: 26rem; margin: .35rem 0 0; color: var(--text-muted); font-size: .78rem; line-height: 1.5; }
.skill-index {
  flex: none;
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--skill-rgb), .42);
  border-radius: .75rem;
  color: rgb(var(--skill-rgb));
  background: rgba(var(--skill-rgb), .1);
  box-shadow: inset 0 0 1rem rgba(var(--skill-rgb), .07), 0 0 1.5rem rgba(var(--skill-rgb), .06);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 800;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tags span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  padding: .38rem .7rem;
  border: 1px solid rgba(255, 255, 255, .095);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(5, 7, 12, .42);
  font-size: .73rem;
  font-weight: 650;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.skill-tags span::before {
  content: "";
  width: .32rem;
  aspect-ratio: 1;
  flex: none;
  border-radius: 50%;
  background: rgb(var(--skill-rgb));
  box-shadow: 0 0 .55rem rgba(var(--skill-rgb), .7);
}
.skill-category:hover .skill-tags span { color: var(--text); border-color: rgba(var(--skill-rgb), .24); background: rgba(var(--skill-rgb), .055); }

.skill-credential {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.35rem;
  padding: 1.45rem 1.6rem;
  border-color: rgba(242, 196, 81, .26);
  background:
    radial-gradient(circle at 0 50%, rgba(20, 216, 255, .09), transparent 25%),
    radial-gradient(circle at 100% 50%, rgba(242, 196, 81, .1), transparent 28%),
    linear-gradient(110deg, rgba(130, 104, 255, .04), rgba(255, 255, 255, .022));
}
.skill-credential::before { background: linear-gradient(90deg, var(--cyan), #aa98ff 52%, var(--gold)); opacity: .72; }
.skill-credential:hover { border-color: rgba(242, 196, 81, .42); box-shadow: 0 1.4rem 4rem rgba(242, 196, 81, .065); }
.skill-credential-mark {
  width: 3.55rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071018;
  background: linear-gradient(135deg, var(--cyan), #aa98ff 58%, var(--gold));
  box-shadow: 0 .75rem 2rem rgba(20, 216, 255, .14);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.skill-credential-copy { min-width: 0; }
.skill-credential-eyebrow { display: block; margin-bottom: .28rem; color: var(--gold); font-family: var(--font-mono); font-size: .63rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.skill-credential h3 { margin: 0; color: var(--text); font-size: 1.22rem; line-height: 1.25; }
.skill-credential p { max-width: 45rem; margin: .35rem 0 0; color: var(--text-secondary); font-size: .82rem; line-height: 1.55; }
.skill-credential-id { min-width: 9.5rem; padding-left: 1.35rem; border-left: 1px solid rgba(255, 255, 255, .1); text-align: right; }
.skill-credential-id span { display: block; margin-bottom: .3rem; color: var(--text-muted); font-family: var(--font-mono); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.skill-credential-id strong { color: var(--text); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .045em; }

.achievements-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: achievements; }
.achievement-card {
  --impact-rgb: 20, 216, 255;
  min-height: 21rem;
  padding: 1.35rem;
  background: radial-gradient(circle at 86% 4%, rgba(var(--impact-rgb), .09), transparent 36%), var(--bg-card);
}
.achievement-card:nth-child(2) { --impact-rgb: 130, 104, 255; }
.achievement-card:nth-child(3) { --impact-rgb: 242, 196, 81; }
.achievement-card:nth-child(4) { --impact-rgb: 255, 107, 180; }
.achievement-card:nth-child(5) { --impact-rgb: 74, 222, 128; }
.achievement-card:nth-child(6) { --impact-rgb: 255, 151, 87; }
.achievement-card:hover {
  border-color: rgba(var(--impact-rgb), .28);
  background: radial-gradient(circle at 86% 4%, rgba(var(--impact-rgb), .13), transparent 39%), var(--bg-card-hover);
}
.achievement-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 6.6rem;
  margin-bottom: 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(var(--impact-rgb), .16);
  border-radius: .95rem;
  color: rgb(var(--impact-rgb));
  background:
    linear-gradient(135deg, rgba(var(--impact-rgb), .1), rgba(var(--impact-rgb), .018) 58%, transparent),
    rgba(255, 255, 255, .018);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .035) inset;
}
.achievement-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(var(--impact-rgb), .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--impact-rgb), .08) 1px, transparent 1px);
  background-size: 1.25rem 1.25rem;
  mask-image: linear-gradient(90deg, transparent, black 24%, black 76%, transparent);
}
.achievement-number {
  position: absolute;
  top: .6rem;
  left: .6rem;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  aspect-ratio: 1;
  margin: 0;
  border: 1px solid rgba(var(--impact-rgb), .25);
  border-radius: .65rem;
  color: rgb(var(--impact-rgb));
  background: rgba(7, 16, 24, .78);
  box-shadow: 0 .55rem 1.5rem rgba(0, 0, 0, .2);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 800;
}
.achievement-visual svg {
  width: calc(100% - 1.25rem);
  height: calc(100% - .65rem);
  overflow: visible;
  transition: transform var(--transition), filter var(--transition);
}
.achievement-card:hover .achievement-visual svg {
  filter: drop-shadow(0 0 .6rem rgba(var(--impact-rgb), .18));
  transform: translateY(-.08rem) scale(1.018);
}
.impact-line,
.impact-shape,
.impact-flow {
  vector-effect: non-scaling-stroke;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.impact-shape { fill: rgba(var(--impact-rgb), .055); }
.impact-flow { stroke-dasharray: 4 4; }
.impact-node { fill: currentColor; filter: drop-shadow(0 0 .3rem rgba(var(--impact-rgb), .55)); }
.impact-star { fill: rgba(var(--impact-rgb), .24); stroke: currentColor; stroke-width: 1.35; stroke-linejoin: round; }
.impact-muted { opacity: .48; }
.achievement-title { margin: 0 0 .7rem; font-size: 1.12rem; line-height: 1.3; }
.achievement-text { margin: 0; color: var(--text-secondary); font-size: .9rem; line-height: 1.65; }

.contact-section { padding-bottom: clamp(6rem, 10vw, 9rem); }
.contact-wrapper { width: min(100%, 47rem); margin-inline: auto; text-align: center; }
.contact-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-card { min-height: 5.8rem; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text); background: var(--bg-card); text-align: left; cursor: pointer; transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition); }
.contact-card:hover { border-color: rgba(20, 216, 255, .4); background: rgba(20, 216, 255, .055); box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .2); transform: translateY(-.2rem); }
.contact-card.revealed { border-color: rgba(20, 216, 255, .35); }
.contact-icon { flex: none; width: 2.7rem; aspect-ratio: 1; display: grid; place-items: center; border-radius: .7rem; color: var(--cyan); background: rgba(20, 216, 255, .09); font-family: var(--font-mono); font-size: 1rem; font-weight: 900; }
.contact-card small { display: block; margin-bottom: .15rem; color: var(--text-muted); font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.contact-card strong { display: block; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.35; }
.contact-privacy { max-width: 37rem; margin: 1rem auto 0; color: var(--text-muted); font-size: .72rem; line-height: 1.5; }
.contact-socials { display: flex; justify-content: center; gap: .7rem; margin-top: 2rem; }
.social-link { width: 2.9rem; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--text-secondary); background: var(--bg-card); transition: transform var(--transition), color var(--transition), border-color var(--transition), background var(--transition); }
.social-link:hover { color: white; border-color: transparent; background: linear-gradient(135deg, #08bfe8, #785cf5); transform: translateY(-.2rem); }

.footer { padding: 2rem 1.25rem; border-top: 1px solid var(--border); text-align: center; }
.footer-text { margin: 0; color: var(--text-muted); font-size: .78rem; }
.footer .gradient-text { font-weight: 800; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(1.7rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.revealed { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .07s; }
.js .reveal-delay-2 { transition-delay: .14s; }
.js .reveal-delay-3 { transition-delay: .21s; }

@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes heroNameGradient { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-1rem) scale(1.04); } }
@keyframes scrollPulse { 0%, 100% { opacity: .35; transform: scaleY(.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

@media (max-width: 64rem) {
  .skills-grid,
  .achievements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { gap: 3rem; }
}

@media (max-width: 52rem) {
  .nav-toggle { display: flex; }
  .nav-print span { display: none; }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.35rem;
    padding: 2rem;
    background: rgba(8, 9, 15, .97);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.8rem);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { min-width: 12rem; padding: .7rem; font-size: 1.05rem; text-align: center; }
  .hero { padding-top: calc(var(--nav-height) + 3.6rem); }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-image-wrapper { width: min(100%, 25rem); min-height: 21rem; margin-inline: auto; grid-row: 1; }
  .hero-image-container { width: min(16.5rem, 68vw); }
  .hero-scroll-cue { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .experience-overview { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .experience-chapter-description ul { grid-template-columns: 1fr; }
}

@media (max-width: 39rem) {
  :root { --nav-height: 4.15rem; }
  .nav { padding-inline: .75rem; }
  .nav-inner { gap: .65rem; }
  .hero { min-height: auto; padding: calc(var(--nav-height) + 2.8rem) 1.15rem 4.8rem; }
  .hero-name { font-size: clamp(2.45rem, 13vw, 3.3rem); }
  .hero-title { min-height: 3.3rem; font-size: 1.08rem; }
  .hero-description { font-size: .96rem; line-height: 1.68; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-image-wrapper { min-height: 19rem; }
  .hero-photo-orbit--outer { width: min(78vw, 19rem); }
  .hero-photo-orbit--inner { width: min(64vw, 15.5rem); }
  .hero-photo-badge { padding: .5rem .58rem; font-size: .57rem; }
  .hero-photo-badge--stack { left: 0; top: 17%; }
  .hero-photo-badge--human { right: 0; bottom: 16%; }
  .section { padding: 5rem 1.15rem; }
  .section-title { font-size: clamp(2.2rem, 11vw, 3rem); }
  .section-title br { display: none; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .stat-card { min-height: 8.2rem; padding: 1rem .65rem; }
  .timeline { margin-left: 0; padding-left: 2rem; }
  .timeline-dot { left: -2.45rem; }
  .skills-grid,
  .achievements-grid { grid-template-columns: 1fr; }
  .skill-category { min-height: 0; padding: 1.35rem; }
  .skill-category-title { margin-bottom: 1.1rem; }
  .skill-credential { grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1.35rem; }
  .skill-credential-mark { width: 3.1rem; }
  .skill-credential-id { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; padding: .9rem 0 0; border-top: 1px solid rgba(255, 255, 255, .1); border-left: 0; text-align: left; }
  .skill-credential-id span { margin: 0; }
  .achievement-card { min-height: 0; }
  .achievement-visual { height: 6rem; }
  .contact-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-greeting, .hero-name, .hero-title, .hero-description, .hero-actions, .hero-image-wrapper, .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-name .gradient-text { animation: none !important; background-position: 50% 50%; }
  #particles-canvas { display: none; }
}
