/* ==========================================================
   Jesús Esparza — personal site
   Dark professional theme with switchable accent colors
   ========================================================== */

:root {
  --bg: #0a0e14;
  --bg-2: #0d1117;
  --surface: rgba(22, 27, 34, 0.72);
  --surface-solid: #161b22;
  --border: rgba(139, 148, 158, 0.16);
  --border-strong: rgba(139, 148, 158, 0.3);
  --text: #e6edf3;
  --muted: #8b949e;
  --faint: #6e7681;

  /* accent (overridden by [data-accent]) — terminal green by default */
  --accent: #3fb950;
  --accent-2: #39c5cf;
  --accent-rgb: 63, 185, 80;

  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --radius: 16px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
}

[data-accent="cyan"]    { --accent: #39c5cf; --accent-2: #58a6ff; --accent-rgb: 57, 197, 207; }
[data-accent="amber"]   { --accent: #e3b341; --accent-2: #f0883e; --accent-rgb: 227, 179, 65; }
[data-accent="magenta"] { --accent: #f778ba; --accent-2: #bc8cff; --accent-rgb: 247, 120, 186; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* PCB-style dot grid */
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(139,148,158,0.14) 1px, transparent 1.2px);
  background-size: 24px 24px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
::selection { background: rgba(var(--accent-rgb), .3); }
.mono { font-family: var(--mono); }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- cursor spotlight & scroll progress ---------- */
.spotlight {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 30%), rgba(var(--accent-rgb), .07), transparent 40%);
  transition: background .2s;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 100;
  width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
  background: var(--grad);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), .7);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 4vw, 48px);
  transition: background .35s, padding .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--border);
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  background: var(--grad); color: #050810; font-family: var(--mono); font-size: 14px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 6px 24px -6px rgba(var(--accent-rgb), .8);
}
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 14px; font-weight: 500;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: rgba(var(--accent-rgb), .1); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.accent-picker { display: flex; gap: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.swatch {
  width: 16px; height: 16px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: var(--sw); transition: transform .25s var(--ease), box-shadow .25s;
}
.swatch:hover { transform: scale(1.25); }
.swatch.active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--sw); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font: 600 15px/1 var(--font); cursor: pointer;
  border: 1px solid transparent; transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn-primary { background: var(--grad); color: #050810; box-shadow: 0 10px 30px -10px rgba(var(--accent-rgb), .8); }
.btn-primary:hover { color: #050810; box-shadow: 0 14px 40px -8px rgba(var(--accent-rgb), 1); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .06); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 80px; }
#circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero::after { /* fade circuit into page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
.hero-id { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.avatar {
  width: 56px; height: 56px; object-fit: cover; border-radius: 12px;
  border: 2px solid rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12);
  filter: grayscale(.25) contrast(1.05); transition: filter .3s, transform .3s var(--ease);
}
.avatar:hover { filter: none; transform: rotate(-3deg) scale(1.05); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); margin: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 0 0 rgba(63,185,80,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(63,185,80,0); } 100% { box-shadow: 0 0 0 0 rgba(63,185,80,0); } }

/* name with occasional RGB-split glitch */
.hero h1 {
  position: relative; font-size: clamp(44px, 7vw, 80px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 18px; font-weight: 800; color: var(--text);
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
.glitch::before { color: var(--accent); animation: glitch-a 7s infinite steps(1); }
.glitch::after  { color: var(--accent-2); animation: glitch-b 7s infinite steps(1); }
@keyframes glitch-a {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  92% { opacity: .85; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); }
  94% { opacity: .85; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); }
  96% { opacity: .85; transform: translate(-2px, 0); clip-path: inset(35% 0 40% 0); }
}
@keyframes glitch-b {
  0%, 91%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 0 0); }
  92% { opacity: .85; transform: translate(3px, -1px); clip-path: inset(62% 0 12% 0); }
  94% { opacity: .85; transform: translate(-3px, 2px); clip-path: inset(15% 0 60% 0); }
  96% { opacity: .85; transform: translate(2px, 0); clip-path: inset(45% 0 30% 0); }
}

/* role line: decrypt / scramble effect */
.hero-role { font-size: clamp(18px, 2.4vw, 26px); font-weight: 500; color: var(--text); margin: 0 0 22px; min-height: 1.5em; }
.role-bracket { color: var(--faint); }
#scramble { color: var(--accent); }
#scramble .sc { color: var(--faint); }
.hero-sub { max-width: 560px; color: var(--muted); font-size: 17px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.socials { display: flex; gap: 12px; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  transition: transform .3s var(--ease), color .3s, border-color .3s, box-shadow .3s;
}
.socials a:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), .5); transform: translateY(-4px); box-shadow: 0 10px 24px -10px rgba(var(--accent-rgb), .8); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }

/* terminal window */
.terminal {
  position: relative; width: 100%; border-radius: 12px; overflow: hidden;
  background: rgba(13, 17, 23, .92); border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--accent-rgb), .08), 0 0 60px -20px rgba(var(--accent-rgb), .35);
  backdrop-filter: blur(6px); transition: transform .25s ease-out;
}
.terminal::after { /* CRT scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(transparent 0 2px, rgba(255,255,255,.018) 2px 3px);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #161b22; border-bottom: 1px solid var(--border); }
.term-bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term-title { flex: 1; text-align: center; margin-right: 52px; font-size: 12px; color: var(--faint); }
.term-body { margin: 0; padding: 18px 20px 22px; min-height: 330px; font-size: 13.5px; line-height: 1.75; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.term-body .p { color: var(--accent); }
.term-body .path { color: #58a6ff; }
.term-body .out { color: var(--muted); }
.term-body .ok { color: #3fb950; }
.term-body .key { color: #ff7b72; }
.term-body .str { color: #a5d6ff; }
.term-body .cur { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.scroll-hint { position: absolute; z-index: 1; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: -40px; position: relative; z-index: 2;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--bg-2); padding: 28px 20px; text-align: center; transition: background .3s; }
.stat:hover { background: var(--surface-solid); }
.stat-num { display: block; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 130px) 0 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-index { color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.section-index::before { content: "// "; color: var(--faint); }
.section-index::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--accent); vertical-align: middle; margin-left: 12px; opacity: .6; }
.section-head h2, .contact-card h2 { font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.03em; line-height: 1.15; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.sub-head { font-size: 22px; margin: 64px 0 24px; }

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
}
/* hover glow border that follows cursor */
.glass::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--x, 50%) var(--y, 50%), rgba(var(--accent-rgb), .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s;
}
.glass:hover::before { opacity: 1; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-copy p { color: #c3cddc; font-size: 17px; margin: 0 0 18px; }
.about-copy strong { color: var(--text); font-weight: 600; }
.info-card { padding: 28px; }
.info-card h3 { margin: 0 0 18px; font-size: 13px; color: var(--accent); font-weight: 500; }
.info-card dl { margin: 0; display: grid; gap: 2px; }
.info-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.info-card dl div:last-child { border-bottom: 0; }
.info-card dt { color: var(--faint); font-family: var(--mono); font-size: 13px; }
.info-card dd { margin: 0; text-align: right; color: var(--text); overflow-wrap: anywhere; }

/* ---------- skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill { padding: 18px 20px; transition: transform .3s var(--ease); }
.skill:hover { transform: translateY(-3px); }
.skill-top { display: flex; justify-content: space-between; font-weight: 500; font-size: 15px; margin-bottom: 12px; }
.skill-top .mono { color: var(--accent); font-size: 13px; }
.bar { height: 6px; border-radius: 6px; background: rgba(148,163,184,.12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 12px rgba(var(--accent-rgb), .6); transition: width 1.4s var(--ease) .2s; }
.skill.visible .bar i { width: calc(var(--lvl) * 1%); }

.tech-marquee { margin-top: 40px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 40s linear infinite; }
.tech-marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 13px; white-space: nowrap; transition: color .3s, border-color .3s; }
.marquee-track span:hover { color: var(--accent); border-color: var(--accent); }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2) 40%, rgba(148,163,184,.15)); border-radius: 2px; }
.tl-item { position: relative; margin-bottom: 24px; }
.tl-dot { position: absolute; left: -36px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transition: box-shadow .3s, background .3s; }
.tl-item:hover .tl-dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .18); }
.tl-card { padding: 24px 28px; transition: transform .35s var(--ease); }
.tl-item:hover .tl-card { transform: translateX(6px); }
.tl-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.tl-date { color: var(--accent); font-size: 13px; }
.tag { font-size: 11px; padding: 3px 10px; border-radius: 999px; color: #34d399; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }
.tl-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.tl-org { margin: 2px 0 12px; color: var(--muted); font-size: 15px; }
.tl-card ul { margin: 0; padding-left: 0; list-style: none; color: #c3cddc; font-size: 15px; }
.tl-card li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.tl-card li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }

.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-card { padding: 26px 28px; transform-style: preserve-3d; }
.edu-card h4 { margin: 6px 0 2px; font-size: 18px; }
.edu-card p:last-child { color: #c3cddc; font-size: 15px; margin: 0; }

/* ---------- certifications ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  font: 500 14px var(--font); color: var(--muted); background: var(--surface); cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: 9px 20px; transition: all .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.active { color: #050810; background: var(--grad); border-color: transparent; box-shadow: 0 8px 24px -10px rgba(var(--accent-rgb), .9); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cert {
  display: flex; flex-direction: column; padding: 24px; color: var(--text);
  transform-style: preserve-3d; transition: transform .2s ease-out, opacity .4s var(--ease), box-shadow .3s;
}
.cert:hover { color: var(--text); box-shadow: 0 24px 50px -24px rgba(var(--accent-rgb), .55); }
.cert img { width: 108px; height: 108px; object-fit: contain; margin-bottom: 18px; transform: translateZ(30px); filter: drop-shadow(0 10px 20px rgba(0,0,0,.5)); transition: transform .4s var(--ease); }
.cert:hover img { transform: translateZ(50px) scale(1.06); }
.cert-issuer { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cert h4 { margin: 4px 0 8px; font-size: 17px; line-height: 1.35; }
.cert p { margin: 0 0 16px; color: var(--muted); font-size: 14px; flex: 1; }
.cert-link { font-size: 12px; color: var(--accent); transition: letter-spacing .3s; }
.cert:hover .cert-link { letter-spacing: .04em; }
.cert.hidden { display: none; }
.cert.pop { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }

/* ---------- contact ---------- */
#contact { padding-bottom: 100px; }
.contact-card { text-align: center; padding: clamp(40px, 7vw, 72px) 24px; overflow: hidden; }
.contact-card::after {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1;
  background: radial-gradient(ellipse at 50% 100%, rgba(var(--accent-rgb), .22), transparent 60%);
}
.contact-card p { color: var(--muted); max-width: 540px; margin: 0 auto 32px; font-size: 17px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer p { margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; z-index: 100; translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 12px; background: var(--surface-solid); border: 1px solid rgba(var(--accent-rgb), .5);
  color: var(--text); font-size: 14px; box-shadow: var(--shadow); transition: all .35s var(--ease);
}
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.cert.reveal.visible { transform: perspective(900px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .terminal { max-width: 640px; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: 64px; left: 16px; right: 16px; flex-direction: column; padding: 12px;
    background: rgba(13, 17, 23, .97); border: 1px solid var(--border); border-radius: var(--radius);
    backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all .3s var(--ease);
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: 12px 16px; border-radius: 10px; }
  .brand-name { display: none; }
}
@media (max-width: 560px) {
  .skills-grid, .edu-grid { grid-template-columns: 1fr; }
  .term-body { font-size: 12px; min-height: 280px; padding: 14px; }
  .timeline { padding-left: 28px; }
  .tl-dot { left: -28px; }
  .tl-card { padding: 20px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* tilt elements respond quickly once revealed */
.tilt.reveal.visible { transition: opacity .8s var(--ease), transform .25s ease-out, box-shadow .3s; }
