/* ============================================================
   PS Digital 2026 — Custom Design System
   Dark theme · Electric Cyan accent · Glassmorphism
   ============================================================ */

:root {
  --bg-base:       #080808;
  --bg-surface:    #0f0f0f;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.08);
  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(0,245,255,0.3);
  --cyan:          #00F5FF;
  --cyan-dim:      rgba(0,245,255,0.15);
  --cyan-glow:     rgba(0,245,255,0.08);
  --pink:          #ff4fd8;
  --text-primary:  #f0f0f0;
  --text-secondary:#888;
  --text-muted:    #444;
  --nav-h:         72px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; overflow-x: hidden; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

a { color: var(--cyan); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

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

/* ── Custom Cursor ── */
#cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .1s ease, opacity .2s;
  mix-blend-mode: screen;
}

#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(0,245,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform .25s cubic-bezier(.25,.46,.45,.94), width .2s, height .2s, opacity .2s;
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 56px; height: 56px; }

/* ── Navigation ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: .12em;
}

.nav-logo span { color: var(--cyan); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color .2s;
}

.nav-links a:hover { color: var(--text-primary); opacity: 1; }

.nav-cta {
  background: var(--cyan);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
  transition: box-shadow .2s !important;
}

.nav-cta:hover { box-shadow: 0 0 24px rgba(0,245,255,0.4); opacity: 1 !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(8,8,8,0.88);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-toggle:hover {
  border-color: var(--border-accent);
  background: rgba(10,10,10,0.96);
  box-shadow: 0 0 0 1px rgba(0,245,255,0.18), 0 10px 24px rgba(0,0,0,0.4);
}

.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 ── */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% 0;
  background: url('/static/images/neukirch-2400.webp') center center / cover no-repeat;
  will-change: transform;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8,8,8,0.82) 0%,
    rgba(8,8,8,0.65) 50%,
    rgba(8,8,8,0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: var(--nav-h);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  opacity: 0;
}

.hero-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--cyan);
}

/* Parallax section clips overflow */
#home { overflow: hidden; }

/* Letter-animation wrapper */
.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(52px, 8vw, 112px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-name-line {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  perspective: 800px;
}

.hero-name-word {
  display: inline-block;
}

.hero-name-word.accent { color: var(--cyan); }

/* Each letter gets this class via JS */
.hero-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-role {
  font-size: clamp(18px, 2.2vw, 24px);
  color: rgba(240,240,240,0.85);
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 48px;
  min-height: 2em;
}

.typed-cursor-custom {
  color: var(--cyan);
  font-weight: 300;
  animation: blink .7s infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: box-shadow .25s, transform .2s;
}

.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,245,255,0.5);
  transform: translateY(-2px);
  opacity: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 13px 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .25s, background .25s;
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: var(--cyan-glow);
  opacity: 1;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Section Base ── */
section { padding: 120px 0; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

/* ── About ── */
#about { background: var(--bg-surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 16px;
}

.about-text p:last-of-type { margin-bottom: 36px; }

.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  border-radius: 8px;
  filter: grayscale(20%);
  transition: filter .4s;
}

.about-img-wrap:hover img { filter: grayscale(0%); }

.about-img-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--cyan), transparent 60%);
  z-index: -1;
  opacity: .4;
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  top: 16px; right: -16px;
  width: 100%; height: 100%;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  z-index: -2;
  pointer-events: none;
}

/* ── Quote Banner ── */
.quote-banner {
  padding: 64px 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.quote-banner blockquote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.quote-banner blockquote span { color: var(--cyan); }

/* ── Projects Carousel ── */
#projects { background: var(--bg-base); }

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 24px;
}

.carousel-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: .1em;
}

.carousel-counter #carousel-current {
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

/* Stage: full viewport width, overflow hidden */
.carousel-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  /* height set by JS */
}

/* Each slide: all absolute, JS handles pixel positions */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  /* width set by JS */
  will-change: transform, opacity;
  cursor: pointer;
}

.carousel-slide.is-active { cursor: default; }

/* Card base */
.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  display: block;
  color: inherit;
  transition: border-color .3s, box-shadow .3s;
}

.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 48px rgba(0,245,255,0.08);
  opacity: 1;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.25,.46,.45,.94), filter .3s;
  filter: brightness(.85);
}

.project-card:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.project-info { padding: 28px 32px; }

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 3px 10px;
  border-radius: 3px;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.project-arrow {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all .3s;
}

.project-card:hover .project-arrow {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
  transform: rotate(45deg);
}

/* Nav arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(10px);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}

.carousel-arrow:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,245,255,0.08);
}

.carousel-arrow-prev { left: max(16px, calc(50% - 440px)); }
.carousel-arrow-next { right: max(16px, calc(50% - 440px)); }

@media (max-width: 768px) {
  .carousel-arrow { display: none; }
}

.carousel-arrow:active { transform: translateY(-50%) scale(.92); }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s, width .3s;
}

.carousel-dot.active {
  background: var(--cyan);
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0,245,255,0.5);
}

/* ── Skills ── */
#skills { background: var(--bg-surface); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  backdrop-filter: blur(12px);
  transition: border-color .3s, background .3s, transform .3s;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--cyan-glow), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.skill-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

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

.skill-icon {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--cyan);
}

.skill-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.skill-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Stats ── */
#stats {
  background: var(--bg-base);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 160px;
  margin: 0 auto;
}

/* ── Contact ── */
#contact { background: var(--bg-surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-detail-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
  font-size: 15px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color .2s, background .2s;
  outline: none;
}

.form-control::placeholder { color: var(--text-muted); }

.form-control:focus {
  border-color: var(--cyan);
  background: rgba(0,245,255,0.04);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  width: 100%;
  padding: 15px;
  margin-top: 8px;
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

/* ── Footer ── */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: .08em;
}

.footer-brand span { color: var(--cyan); }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color .2s;
}

.footer-links a:hover { color: var(--text-primary); opacity: 1; }

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-legal strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ── Subpages ── */
.subpage-main {
  padding-top: var(--nav-h);
}

.subpage-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.subpage-hero .hero-bg {
  inset: -6% 0;
}

.subpage-hero .hero-content {
  width: 100%;
  padding-top: 0;
  padding-bottom: 56px;
}

.subpage-hero .hero-name {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.subpage-hero .hero-tag,
.subpage-hero .hero-actions {
  opacity: 1;
}

.subpage-summary {
  background: var(--bg-surface);
}

.subpage-intro {
  max-width: 860px;
  margin-bottom: 48px;
}

.subpage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.detail-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.detail-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.subpage-visual {
  margin-top: 32px;
}

.subpage-visual .project-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.subpage-visual .project-desc {
  max-width: 760px;
}

.subpage-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-layout {
  background: var(--bg-surface);
}

.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.legal-content h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.legal-content h3 {
  font-size: clamp(20px, 2.2vw, 24px);
}

.legal-content h4 {
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.85;
}

.legal-content ul {
  margin: 10px 0 16px 22px;
}

/* ── Divider Line ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Scroll-to-top ── */
#scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s, border-color .2s, color .2s;
  font-size: 16px;
}

#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── GSAP init states ── */
.reveal-up { opacity: 0; transform: translateY(40px); }
.reveal-fade { opacity: 0; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  section { padding: 80px 0; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(8,8,8,0.97);
    padding: 32px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 400px; margin: 0 auto; }
  .about-img-wrap::after { display: none; }

  .carousel-slide { width: 80%; }
  .carousel-arrow-prev { left: 8px; }
  .carousel-arrow-next { right: 8px; }
  .projects-header { flex-direction: column; align-items: flex-start; }

  .skills-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .subpage-grid { grid-template-columns: 1fr; }
  .legal-content { padding: 28px 22px; }
  .subpage-hero .hero-name {
    font-size: clamp(38px, 12vw, 64px);
    line-height: 1;
  }

  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 32px; }
}
