/* ===== Tokens ===== */
:root {
  --bg: #0a0a0a;
  --bg-soft: #0f0f0f;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: #262626;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --faint: #6b6b6b;
  --accent: #f97316;      /* orange-500 */
  --accent-2: #fb923c;    /* orange-400 */
  --accent-soft: rgba(249, 115, 22, .14);
  --on-accent: #0a0a0a;
  --good: #22c55e;
  --bad: #ef4444;
  --radius: 16px;
  --maxw: 1160px;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", monospace;
}
[data-theme="light"] {
  --bg: #fafafa;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --text: #18181b;
  --muted: #52525b;
  --faint: #8b8b93;
  --accent: #ea580c;
  --accent-2: #c2410c;
  --accent-soft: rgba(234, 88, 12, .10);
  --on-accent: #ffffff;
  --shadow: 0 12px 40px -16px rgba(20, 20, 20, .18);
}

* { 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;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
strong { color: var(--accent); font-weight: 600; }
em { color: var(--muted); font-style: normal; }
section { scroll-margin-top: 80px; }
button { font-family: inherit; }

/* ===== Ambient glow ===== */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 5%, var(--accent-soft), transparent 70%),
    radial-gradient(500px 400px at 85% 10%, rgba(251, 146, 60, .08), transparent 70%);
  opacity: .9;
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--border); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 20px;
}
.logo {
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  color: var(--accent); border: 1.5px solid var(--accent); border-radius: 10px;
  width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0;
  transition: box-shadow .2s;
}
.logo:hover { box-shadow: 0 0 0 3px var(--accent-soft); }
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-family: var(--mono); font-size: .82rem; font-weight: 500;
  padding: 4px 2px; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nl-num { color: var(--accent); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  display: grid; place-items: center; transition: .2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.ic-sun { display: none; }
[data-theme="light"] .ic-moon { display: none; }
[data-theme="light"] .ic-sun { display: block; }

/* ===== Language toggle ===== */
.lang-toggle {
  width: 42px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  cursor: pointer; font-family: var(--mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .02em; transition: border-color .2s, box-shadow .2s, color .2s; flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.btn-outline-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px; font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--accent); color: var(--accent); background: transparent;
  transition: .2s; white-space: nowrap;
}
.btn-outline-sm:hover { background: var(--accent-soft); transform: translateY(-1px); }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 150px 24px 60px; text-align: center; }
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero-hi { font-family: var(--mono); color: var(--accent); font-size: .95rem; margin-bottom: 14px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 28px;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(249,115,22,.5);} 70% { box-shadow: 0 0 0 8px rgba(249,115,22,0);} 100% { box-shadow:0 0 0 0 rgba(249,115,22,0);} }
.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 8vw, 5.2rem); line-height: 1.05; letter-spacing: -.02em; }
.grad { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-role { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--muted); margin: 14px 0 22px; }
.hero-lede { max-width: 600px; margin: 0 auto 34px; font-size: 1.05rem; color: var(--muted); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 12px; font-weight: 600; font-size: .95rem; transition: .25s; }
.btn-primary { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px var(--accent); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats { display: flex; justify-content: center; gap: 56px; margin-top: 56px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-n { font-family: var(--display); font-weight: 700; font-size: 2.2rem; color: var(--accent); }
.stat-l { font-size: .85rem; color: var(--muted); }

.hero-social { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.soc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); transition: .2s; }
.soc:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.soc-sep { color: var(--border); }
.soc-email { font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.soc-email:hover { color: var(--accent); }

/* ===== Sections ===== */
.section { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 90px 24px; }
.sec-head { margin-bottom: 44px; }
.sec-title-row { display: flex; align-items: baseline; gap: 16px; }
.sec-label { font-family: var(--mono); font-size: .95rem; color: var(--accent); font-weight: 700; }
.sec-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.02em; }
.sec-line { flex: 1; height: 1px; background: var(--border); }
.sub-title { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin: 40px 0 6px; }
.section .sub-title:first-of-type { margin-top: 0; }
.sub-lede { color: var(--muted); margin-bottom: 24px; font-size: .93rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.about-text .lead { font-family: var(--display); font-size: 1.3rem; line-height: 1.45; margin-bottom: 22px; }
.about-text p { color: var(--muted); margin-bottom: 18px; }
.about-cards { display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h4 { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 18px; }
.mini-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.mini-list li { display: flex; gap: 16px; font-size: .92rem; }
.yr { font-family: var(--mono); font-size: .78rem; color: var(--faint); min-width: 56px; padding-top: 2px; }
.mini-list em { color: var(--muted); }

.lang-block { margin-top: 30px; }
.lang-block h4 { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 16px; }
.lang-grid { display: flex; flex-direction: column; gap: 16px; }
.lang-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.lang-top { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 8px; }
.lang-top span { font-weight: 600; }
.lang-top em { font-size: .8rem; }
.lang-bar { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.lang-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }

/* ===== Tabs ===== */
.tabs { display: flex; gap: 10px; margin-bottom: 30px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 600; transition: .2s;
}
.tab:hover { color: var(--text); }
.tab.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ===== Timeline ===== */
.timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline[hidden] { display: none; }
.exp { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: .25s; }
.exp:hover { border-color: var(--accent); transform: translateX(4px); }
.exp-time { display: flex; flex-direction: column; gap: 8px; }
.exp-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.exp-year { font-family: var(--mono); color: var(--accent); font-size: .9rem; }
.exp-kind { font-size: .82rem; color: var(--faint); }
.exp-body h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 8px; }
.org { color: var(--muted); font-weight: 400; font-size: 1rem; }
.exp-body > p { color: var(--muted); margin-bottom: 14px; }
.exp-body ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.exp-body li { position: relative; padding-left: 22px; color: var(--muted); font-size: .93rem; }
.exp-body li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

/* ===== Skills ===== */
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: .25s; }
.skill-card:hover { border-color: var(--accent); }
.skill-card h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.1rem; margin-bottom: 18px; }
.skill-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.skill-card.accent { background: linear-gradient(135deg, var(--accent-soft), transparent); border-color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pills span { font-size: .82rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); padding: 7px 13px; border-radius: 9px; }

/* ===== Freelance cards ===== */
.fl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 8px; }
.fl-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: .3s; position: relative; overflow: hidden; }
.fl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.fl-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); transform: translateY(-5px); box-shadow: var(--shadow); }
.fl-card:hover::before { transform: scaleX(1); }
.fl-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fl-icon { font-size: 1.7rem; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); }
.fl-repo { color: var(--muted); transition: .2s; }
.fl-repo:hover { color: var(--accent); transform: translateY(-2px); }
.fl-title { font-family: var(--display); font-size: 1.18rem; margin-bottom: 12px; line-height: 1.3; }
.fl-desc { color: var(--muted); font-size: .92rem; margin-bottom: 18px; flex: 1; }
.fl-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--accent); }
.fl-link span { transition: transform .2s; }
.fl-link:hover span { transform: translate(3px, -3px); }

/* ===== Tags ===== */
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tags span { font-family: var(--mono); font-size: .72rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 7px; }

/* ===== Lab projects ===== */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.proj { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: .25s; }
.proj:hover { border-color: var(--accent); transform: translateY(-4px); }
.proj h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 10px; }
.proj p { color: var(--muted); font-size: .93rem; }

/* ===== Resume ===== */
.resume-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.resume-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.resume-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.resume-head h3 { font-family: var(--display); font-size: 1.1rem; }
.resume-head p { color: var(--muted); font-size: .85rem; }
.resume-actions { display: flex; gap: 10px; margin-left: auto; }

/* Styled paper replica of assets/resume-fr.pdf / resume-en.pdf (always light
   . it's a document, not themed UI). Both language versions are in the DOM;
   only the one matching <html lang> (kept in sync by i18n.js) is shown. */
.resume-doc {
  position: relative; background: #ffffff; color: #18181b; border-radius: 12px;
  padding: 40px clamp(20px, 5vw, 56px); box-shadow: var(--shadow);
}
.resume-doc + .resume-doc { margin-top: 24px; }
html[lang="fr"] .resume-doc.lang-en { display: none; }
html[lang="en"] .resume-doc.lang-fr { display: none; }
.resume-doc-open {
  position: absolute; top: 16px; right: 16px; background: #18181b; color: #fff; border: none;
}
.resume-doc-open:hover { background: var(--accent); color: #fff; }
.resume-doc-head { border-bottom: 2px solid #18181b; padding-bottom: 16px; margin-bottom: 20px; }
.resume-doc-head h4 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; }
.resume-doc-role { font-weight: 600; color: #3f3f46; margin: 2px 0 10px; }
.resume-doc-contact { font-size: .85rem; color: #52525b; font-style: italic; line-height: 1.6; }
.resume-doc section { margin-bottom: 20px; }
.resume-doc section:last-child { margin-bottom: 0; }
.resume-doc h5 {
  font-family: var(--display); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid #d4d4d8; padding-bottom: 6px; margin-bottom: 12px; color: #18181b;
}
.resume-doc > section > p { font-size: .88rem; color: #3f3f46; line-height: 1.6; }
.resume-doc-item { display: grid; grid-template-columns: 130px 1fr; gap: 14px; margin-bottom: 14px; }
.resume-doc-item:last-child { margin-bottom: 0; }
.rd-date { font-size: .78rem; color: #71717a; font-weight: 600; padding-top: 2px; }
.rd-role { font-size: .9rem; font-weight: 700; color: #18181b; margin-bottom: 4px; }
.rd-role em { color: #52525b; font-weight: 500; }
.rd-sub { font-size: .85rem; color: #52525b; }
.resume-doc-item ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.resume-doc-item li { position: relative; padding-left: 14px; font-size: .85rem; color: #3f3f46; line-height: 1.5; }
.resume-doc-item li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.resume-skills { display: flex; flex-direction: column; gap: 8px; }
.resume-skills > div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; font-size: .85rem; }
.rs-k { font-weight: 700; color: #18181b; }
.resume-skills > div > span:last-child { color: #3f3f46; }

/* ===== FAQ ===== */
.faq-list { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 26px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--text);
}
.faq-q .chev { color: var(--accent); flex-shrink: 0; transition: transform .25s; }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); padding: 0 26px 22px; font-size: .93rem; }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact-inner { max-width: 640px; margin: 0 auto; }
.contact-eyebrow { font-family: var(--mono); color: var(--accent); font-size: .85rem; margin: 10px 0 4px; }
.contact-title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; margin-bottom: 16px; }
.contact-lede { color: var(--muted); max-width: 520px; margin: 0 auto 40px; }

.contact-form { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: .92rem; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-submit { width: 100%; justify-content: center; border: none; cursor: pointer; }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-banner {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px;
  font-size: .88rem; font-weight: 500; margin-bottom: 18px;
}
.form-banner.success { background: rgba(34,197,94,.12); border: 1px solid var(--good); color: var(--good); }
.form-banner.error { background: rgba(239,68,68,.12); border: 1px solid var(--bad); color: var(--bad); }
.contact-direct { margin-top: 26px; color: var(--muted); font-size: .9rem; }
.contact-direct a { color: var(--accent); font-weight: 600; }
.contact-social { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }

/* ===== Footer ===== */
.footer { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 36px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); color: var(--faint); font-size: .85rem; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: var(--on-accent);
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px var(--accent);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 8px 0;
  }
  .nav-links.open a { padding: 14px 24px; border-bottom: none; }
  .about-grid { grid-template-columns: 1fr; }
  .exp { grid-template-columns: 1fr; gap: 16px; }
  .fl-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .resume-actions { margin-left: 0; width: 100%; }
  .resume-doc-item, .resume-skills > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 32px; }
}

/* ===== Accessibility ===== */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
