/* ===== TOKENS ===== */
:root {
  --bg: #07070d;
  --bg-elevated: #0f0f18;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-text: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  --glow-indigo: rgba(99, 102, 241, 0.35);
  --glow-purple: rgba(168, 85, 247, 0.3);
  --glow-pink: rgba(236, 72, 153, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max-width: 1140px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 999;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus { left: 1rem; }

/* ===== BACKGROUND ===== */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--glow-indigo);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--glow-purple);
  bottom: 10%;
  left: -150px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--glow-pink);
  top: 40%;
  right: 20%;
  animation-delay: -14s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s, border-color 0.4s;
}

.site-header.scrolled {
  background: rgba(7, 7, 13, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--gradient);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.nav a {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.3s, background 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
}

.hero-inner {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  line-height: 1.05;
}

.hero-title .line {
  display: block;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-title .line:first-child {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  margin: 0 0 2.5rem;
  max-width: 520px;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 2rem;
  background: var(--border);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

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

.btn-gradient {
  position: relative;
  color: #fff;
  background: var(--gradient);
  background-size: 200% auto;
  box-shadow: 0 4px 24px var(--glow-indigo);
  overflow: hidden;
}

.btn-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: btnShine 4s ease-in-out infinite;
}

@keyframes btnShine {
  0%, 80%, 100% { transform: translateX(-100%); }
  40% { transform: translateX(100%); }
}

.btn-gradient:hover {
  box-shadow: 0 8px 32px var(--glow-purple);
  background-position: right center;
}

.btn-glass {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(5rem, 12vw, 8rem) 0;
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2,
.about-content h2,
.bento-main h2,
.contact-box h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-desc {
  margin: 0;
  max-width: 480px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.about-text p:last-child { margin-bottom: 0; }

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.card:hover::before { opacity: 1; }

.card-glow {
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--glow-indigo), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover .card-glow { opacity: 1; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
}

.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
}

.card h3 a {
  text-decoration: none;
  transition: color 0.3s;
}

.card h3 a:hover { color: #c4b5fd; }

.card p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card-links {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
}

.card-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #a78bfa;
  text-decoration: none;
  transition: gap 0.3s var(--ease-out);
}

.card-links a:hover { gap: 0.6rem; }

.card-placeholder {
  opacity: 0.6;
}

.card-placeholder .tag {
  color: var(--text-muted);
  background: var(--surface);
  border-color: var(--border);
}

/* ===== PUBLICATIONS ===== */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.publication {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}

.publication::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s;
}

.publication:hover {
  transform: translateX(6px);
  border-color: var(--border-bright);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.1);
}

.publication:hover::after { opacity: 1; }

.publication-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.publication-body h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.publication-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.publication-status {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}

.publication-status.soon {
  color: #c4b5fd;
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.1);
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 16px 2px rgba(99, 102, 241, 0.15); }
}

.publication a.publication-link {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.publication a.publication-link:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px var(--glow-indigo);
}

/* ===== BENTO (RIPETIZIONI) ===== */
.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.25rem;
}

.bento-main,
.bento-tags {
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.bento-main p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 480px;
}

.check-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-icon {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 50%;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 280px;
  background:
    radial-gradient(circle at 30% 40%, rgba(99,102,241,0.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(236,72,153,0.06), transparent 50%),
    var(--surface);
}

.floating-tag {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  animation: tagFloat 4s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.6s);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  cursor: default;
}

.floating-tag:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
  transform: scale(1.08);
  animation-play-state: paused;
}

@keyframes tagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== CONTACT ===== */
.contact-box {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 180deg, transparent, rgba(99,102,241,0.06), transparent, rgba(236,72,153,0.06), transparent);
  animation: rotate 20s linear infinite;
}

.contact-box > * {
  position: relative;
}

.contact-box .section-label {
  justify-content: center;
}

.contact-box p {
  margin: 0 auto 2rem;
  max-width: 400px;
  color: var(--text-muted);
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.contact-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15);
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner p { margin: 0; }

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.card.reveal-card {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.publication.reveal-item {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.publication.reveal-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bento {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 85vw);
    flex-direction: column;
    gap: 0.25rem;
    padding: 5rem 1.25rem 1.25rem;
    border-radius: 0;
    border-right: none;
    border-top: none;
    border-bottom: none;
    background: rgba(7, 7, 13, 0.95);
    backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
  }

  .hero-stats { gap: 1rem; }

  .stat-divider { display: none; }

  .publication {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
  }

  .publication-year { font-size: 1.2rem; }

  .scroll-hint { display: none; }

  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .card.reveal-card, .publication.reveal-item {
    opacity: 1;
    transform: none;
  }

  .card:hover, .publication:hover, .btn:hover {
    transform: none;
  }
}
