:root {
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-3: #f472b6;
  --gold: #fbbf24;
  --grad: linear-gradient(120deg, #5eead4 0%, #818cf8 50%, #f472b6 100%);
  --grad-soft: linear-gradient(120deg, rgba(94,234,212,.16), rgba(129,140,248,.16));
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---- Dark theme (default) ---- */
html[data-theme="dark"] {
  --bg: #070a12;
  --bg-2: #0a0e1a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf5;
  --text-dim: #9aa6bd;
  --text-faint: #5e6a82;
  --node: rgba(150, 200, 240, 0.55);
  --link: rgba(120, 180, 230, 0.22);
  --btn-text: #06121a;
}
/* ---- Light theme ---- */
html[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #eef1f8;
  --surface: rgba(20, 28, 48, 0.04);
  --surface-2: rgba(20, 28, 48, 0.06);
  --border: rgba(20, 28, 48, 0.12);
  --text: #0f172a;
  --text-dim: #475068;
  --text-faint: #8a93a8;
  --node: rgba(70, 110, 170, 0.5);
  --link: rgba(90, 120, 180, 0.2);
  --btn-text: #06121a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(94, 234, 212, .25); color: var(--text); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2436; border-radius: 10px; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c3ccdd; }

/* ===== Scroll progress ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad); z-index: 200; box-shadow: 0 0 10px rgba(94,234,212,.6);
}

/* ===== Background ===== */
#bg-canvas { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; }
.grid-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(129,140,248,.10), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(94,234,212,.08), transparent 45%),
    linear-gradient(180deg, rgba(7,10,18,.0), rgba(7,10,18,.0));
}
html[data-theme="dark"] .grid-overlay { background:
    radial-gradient(circle at 20% 10%, rgba(129,140,248,.12), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(94,234,212,.09), transparent 45%),
    linear-gradient(180deg, rgba(7,10,18,.2), rgba(7,10,18,.85)); }
.spotlight {
  position: fixed; width: 600px; height: 600px; border-radius: 50%; z-index: -1;
  pointer-events: none; opacity: .5; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(129,140,248,.10), transparent 60%);
  transition: opacity .3s; left: 50%; top: 30%;
}
html[data-theme="light"] .spotlight { opacity: .35; background: radial-gradient(circle, rgba(94,234,212,.18), transparent 60%); }

/* ===== Layout ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: 110px 28px 30px; }
.section__head { margin-bottom: 46px; }
.section__index { font-family: var(--mono); color: var(--accent); font-size: .82rem; letter-spacing: .25em; opacity: .85; }
.section__title { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; line-height: 1.05; margin-top: 8px; letter-spacing: -.02em; }
.section__sub { margin-top: 16px; color: var(--text-dim); max-width: 660px; font-size: 1.05rem; }
.accent { color: var(--accent); }
.glass { background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius); }

/* ===== Nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(20px, 5vw, 48px); transition: background .3s, padding .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 75%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); padding-top: 12px; padding-bottom: 12px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: .04em; }
.nav__mark { color: var(--accent); font-size: 1.3rem; animation: spin 14s linear infinite; }
.nav__name { font-size: .98rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav__links { display: flex; gap: 26px; }
.nav__links a { font-size: .92rem; color: var(--text-dim); font-weight: 500; position: relative; transition: color .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--grad); transition: width .25s; }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: 1.05rem; transition: transform .2s, border-color .2s; }
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); border-color: var(--accent); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: var(--maxw); margin: 0 auto; padding: 120px 28px 60px; position: relative; }
.hero__inner { max-width: 880px; }
.hero__eyebrow { font-family: var(--mono); color: var(--accent); letter-spacing: .22em; font-size: .8rem; margin-bottom: 26px; opacity: 0; animation: fadeUp .8s .1s forwards; }
.hero__title { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; opacity: 0; animation: fadeUp .8s .2s forwards; }
.hero__rotate { display: inline-grid; vertical-align: bottom; }
.hero__rotate .word { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s ease; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.hero__rotate .word.show { opacity: 1; transform: translateY(0); }
.hero__lead { margin-top: 28px; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-dim); max-width: 680px; opacity: 0; animation: fadeUp .8s .35s forwards; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s .5s forwards; }
.hero__tags { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 10px; opacity: 0; animation: fadeUp .8s .65s forwards; }
.hero__tags span { font-family: var(--mono); font-size: .76rem; color: var(--text-dim); border: 1px solid var(--border); padding: 6px 13px; border-radius: 999px; background: var(--surface); }
.hero__scroll { position: absolute; bottom: 34px; left: 28px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: .72rem; color: var(--text-faint); letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll-line { width: 60px; height: 1px; background: var(--text-faint); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; inset: 0; width: 30%; background: var(--accent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { left: -30%; } 100% { left: 100%; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.hero__eyebrow, .hero__title, .hero__lead, .hero__cta, .hero__tags { transform: translateY(20px); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .96rem; padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn--primary { background: var(--grad); color: var(--btn-text); box-shadow: 0 8px 30px -8px rgba(94,234,212,.5); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(129,140,248,.6); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn--full { width: 100%; justify-content: center; }

/* ===== Stats ===== */
.stats { max-width: var(--maxw); margin: 0 auto; padding: 30px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat__num { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--text-dim); font-size: .88rem; letter-spacing: .02em; }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
.about__lead { font-size: 1.3rem; color: var(--text); font-weight: 500; margin-bottom: 20px; line-height: 1.5; }
.about__lead strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about__body p { color: var(--text-dim); margin-bottom: 18px; }
.about__body strong { color: var(--text); font-weight: 600; }
.about__facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; }
.about__facts li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: var(--text-dim); }
.about__facts span { font-size: 1.1rem; }
.about__card { padding: 30px; }
.about__card h3 { font-family: var(--display); margin-bottom: 18px; font-size: 1.15rem; }
.principles { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.principles li { font-size: .94rem; color: var(--text-dim); padding-left: 18px; position: relative; }
.principles li::before { content: '◈'; position: absolute; left: 0; color: var(--accent); font-size: .8rem; top: 3px; }
.principles strong { color: var(--text); }

/* ===== Capabilities ===== */
.what__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.what-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: transform .25s, border-color .25s; position: relative; overflow: hidden; }
.what-card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; background: var(--grad-soft); }
.what-card:hover { transform: translateY(-5px); border-color: rgba(94,234,212,.4); }
.what-card:hover::before { opacity: 1; }
.what-card > * { position: relative; z-index: 1; }
.what-card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.what-card h3 { font-family: var(--display); font-size: 1.18rem; margin-bottom: 10px; }
.what-card p { color: var(--text-dim); font-size: .94rem; }
.what-card__tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.what-card__tags span { font-family: var(--mono); font-size: .7rem; color: var(--accent); background: rgba(94,234,212,.08); padding: 3px 9px; border-radius: 6px; }

/* ===== Web Design ===== */
.web__showcase { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; padding: 36px; align-items: center; margin-bottom: 26px; }
.web__showcase-text h3 { font-family: var(--display); font-size: 1.5rem; margin-bottom: 14px; }
.web__showcase-text p { color: var(--text-dim); margin-bottom: 22px; }
.web__demo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.web__demo-label { font-family: var(--mono); font-size: .78rem; color: var(--text-faint); }
.demo-btn { font-family: var(--font); font-size: .85rem; font-weight: 500; padding: 9px 16px; border-radius: 999px; cursor: pointer; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: .2s; }
.demo-btn:hover { border-color: var(--accent); transform: translateY(-2px); }
/* Browser mock */
.browser-mock { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.browser-mock__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--text-faint); opacity: .6; }
.browser-mock__bar span:nth-child(1){ background:#f87171;} .browser-mock__bar span:nth-child(2){ background:#fbbf24;} .browser-mock__bar span:nth-child(3){ background:#34d399;}
.browser-mock__url { margin-left: 10px; font-family: var(--mono); font-size: .72rem; color: var(--text-faint); background: var(--bg); padding: 5px 12px; border-radius: 6px; flex: 1; }
.browser-mock__screen { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.mock-line { height: 12px; border-radius: 6px; background: var(--grad); opacity: .85; }
.mock-line--lg { width: 70%; height: 18px; }
.mock-line--md { width: 90%; background: var(--surface-2); opacity: 1; }
.mock-line--sm { width: 50%; background: var(--surface-2); }
.mock-blocks { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 6px 0; }
.mock-block { height: 54px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); animation: pulse 2.5s ease-in-out infinite; }
.mock-block:nth-child(2){ animation-delay:.4s;} .mock-block:nth-child(3){ animation-delay:.8s;}
@keyframes pulse { 0%,100%{ opacity:.5; } 50%{ opacity:1; } }
.mock-cta { width: 40%; height: 30px; border-radius: 999px; background: var(--grad); }
/* Web feature grid */
.web__features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.web-feature { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: transform .2s, border-color .2s; }
.web-feature:hover { transform: translateY(-4px); border-color: rgba(129,140,248,.45); }
.web-feature__icon { font-size: 1.4rem; margin-bottom: 10px; }
.web-feature h4 { font-family: var(--display); font-size: 1rem; margin-bottom: 6px; }
.web-feature p { color: var(--text-dim); font-size: .86rem; }

/* ===== Projects ===== */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter { font-family: var(--font); font-size: .86rem; font-weight: 500; padding: 9px 18px; border-radius: 999px; cursor: pointer; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); transition: .2s; }
.filter:hover { color: var(--text); border-color: rgba(127,127,127,.3); }
.filter.is-active { background: var(--grad); color: var(--btn-text); border-color: transparent; font-weight: 600; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px; display: flex; flex-direction: column; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; animation: cardIn .5s backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px); } }
.project-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(129,140,248,.4); }
.project-card:hover::after { transform: scaleX(1); }
.project-card.hide { display: none; }
.project-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.project-card__cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.project-card__status { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status-live { background: rgba(94,234,212,.14); color: var(--accent); }
.status-proto { background: rgba(129,140,248,.16); color: #a5b0ff; }
.status-rd { background: rgba(251,191,36,.16); color: var(--gold); }
.status-concept { background: rgba(244,114,182,.16); color: var(--accent-3); }
.project-card h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 10px; line-height: 1.25; }
.project-card p { color: var(--text-dim); font-size: .92rem; flex-grow: 1; }
.project-card__tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.project-card__tags span { font-family: var(--mono); font-size: .68rem; color: var(--text-dim); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; }

/* ===== Skills ===== */
.skills__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.skill-group { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.skill-group h3 { font-family: var(--display); font-size: 1.1rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.skill-group h3 span { font-size: 1.3rem; }
.skill-bars { display: flex; flex-direction: column; gap: 14px; }
.skill-bar__head { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.skill-bar__head em { font-style: normal; color: var(--text-faint); font-family: var(--mono); font-size: .78rem; }
.skill-bar__track { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.skill-bar__fill { height: 100%; border-radius: 999px; background: var(--grad); width: 0; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }

/* ===== Stack marquee ===== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); margin-bottom: 14px; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: scrollX 42s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 52s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--mono); font-size: .9rem; color: var(--text-dim); border: 1px solid var(--border); background: var(--surface); padding: 12px 22px; border-radius: 12px; white-space: nowrap; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ===== Contact ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact__lead { font-size: 1.25rem; color: var(--text); margin-bottom: 30px; line-height: 1.5; }
.contact__links { display: flex; flex-direction: column; gap: 14px; }
.contact__link { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: .2s; }
a.contact__link:hover { border-color: var(--accent); transform: translateX(4px); }
.contact__icon { font-size: 1.4rem; }
.contact__link > span:last-child { display: flex; flex-direction: column; }
.contact__link strong { font-size: .95rem; }
.contact__link em { font-style: normal; color: var(--text-dim); font-size: .85rem; }
.contact__form { padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; color: var(--text-dim); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); color: var(--text); font-family: var(--font); font-size: .95rem; resize: vertical; transition: border-color .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.contact__note { margin-top: 14px; font-size: .85rem; color: var(--accent); text-align: center; min-height: 18px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); margin-top: 80px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 30px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--text-faint); }
.footer__inner span:first-child { font-family: var(--display); color: var(--text-dim); }

/* ===== Back to top ===== */
.to-top { position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); color: var(--text); font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .3s; z-index: 90; }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--accent); transform: translateY(-3px); }

/* ===== Toast ===== */
.toast-host { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 300; align-items: center; }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(14px); color: var(--text); font-size: .9rem; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2); }
.toast .toast__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.toast.out { animation: toastOut .35s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px) scale(.95); } }

/* ===== Confetti ===== */
#confetti-canvas { position: fixed; inset: 0; z-index: 250; pointer-events: none; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Tilt ===== */
.tilt { transition: transform .15s ease-out; transform-style: preserve-3d; will-change: transform; }

/* ===== Responsive ===== */
@media (max-width: 1020px) { .web__features { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 940px) {
  .about__grid, .contact__grid, .web__showcase { grid-template-columns: 1fr; }
  .what__grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .skills__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .web__features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav__links { position: fixed; top: 64px; right: 0; left: 0; flex-direction: column; gap: 0; padding: 0; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height .3s; }
  .nav__links.open { max-height: 420px; }
  .nav__links a { padding: 16px 28px; border-top: 1px solid var(--border); }
  .nav__toggle { display: flex; }
  .what__grid, .project-grid, .web__features { grid-template-columns: 1fr; }
  .about__facts { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .section { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
