/* =========================================================
   Manel Labidi — Portfolio V2
   Editorial · warm · recruiter-first. Distinct from V1.
   ========================================================= */

:root {
  --bg: #fbf8f2;
  --bg-alt: #f4efe5;
  --card: #ffffff;
  --ink: #1a1a22;
  --ink-soft: #4d4d59;
  --ink-dim: #8a8794;
  --line: rgba(26, 26, 34, 0.10);
  --line-strong: rgba(26, 26, 34, 0.20);
  --accent: #cc785c;        /* Claude coral */
  --accent-soft: #f3e1d8;
  --navy: #1f3a5f;
  --gold: #b88a2e;
  --shadow: 0 24px 60px -28px rgba(31, 33, 45, 0.30);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --wrap: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #12131a;
  --bg-alt: #171922;
  --card: #1b1d27;
  --ink: #f3f0e9;
  --ink-soft: #bcbac4;
  --ink-dim: #85838f;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.20);
  --accent: #e0937a;
  --accent-soft: rgba(204, 120, 92, 0.18);
  --navy: #8fb3df;
  --gold: #d6ad55;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.65; overflow-x: hidden; position: relative;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* warm ambient glow + grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(800px 500px at 88% -5%, rgba(204, 120, 92, 0.14), transparent 60%),
    radial-gradient(700px 500px at 5% 12%, rgba(31, 58, 95, 0.08), transparent 60%);
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: 0.4; }
#bg-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }
main, .nav, .foot { position: relative; z-index: 1; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 60; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px clamp(20px, 5vw, 52px);
  transition: padding 0.35s var(--ease), background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding: 11px clamp(20px, 5vw, 52px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--accent); color: #fff; font-family: var(--serif);
  font-style: italic; font-weight: 700; font-size: 1.05rem; box-shadow: 0 6px 16px -6px var(--accent);
}
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--accent); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  position: relative; width: 36px; height: 32px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 0.95rem; transition: border-color 0.25s, color 0.25s;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.th-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: opacity 0.3s, transform 0.4s var(--ease); }
.th-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
:root[data-theme="dark"] .th-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .th-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

.lang-toggle { display: flex; align-items: center; gap: 5px; background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-dim); cursor: pointer; }
.lang-toggle:hover { border-color: var(--line-strong); }
.lang-opt.active { color: var(--ink); }
.lang-sep { opacity: 0.4; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 100px; font-weight: 500; font-size: 0.97rem; cursor: pointer; border: 1px solid transparent; transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s, color 0.3s; }
.btn-sm { padding: 8px 15px; font-size: 0.85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.04rem; }
.btn-solid { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -12px var(--accent); }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -14px var(--accent); }
.btn-line { border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }
.arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.nav-cv { box-shadow: none; }

/* ---------------- Hero ---------------- */
.hero { padding: 150px clamp(20px, 5vw, 52px) 80px; max-width: calc(var(--wrap) + 80px); margin: 0 auto; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.95fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.badge-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; margin-bottom: 28px; }
.badge-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #2faf6a; box-shadow: 0 0 0 4px rgba(47, 175, 106, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(47,175,106,0.2);} 50% { box-shadow: 0 0 0 7px rgba(47,175,106,0.04);} }
.hero-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero-title span { display: block; }
.accent-ink { color: var(--accent); font-style: italic; font-weight: 500; }
.hero-role { font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0.03em; color: var(--accent); margin: 18px 0 0; max-width: 620px; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); max-width: 560px; margin: 18px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 20px 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-facts li { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--ink-dim); }
.hero-facts strong { font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 2.9rem); color: var(--accent); font-weight: 600; line-height: 1; margin-bottom: 7px; }

/* portrait card */
.hero-card { position: relative; justify-self: center; }
.portrait {
  width: clamp(230px, 26vw, 320px); aspect-ratio: 4/5; border-radius: 20px;
  background: linear-gradient(150deg, var(--navy), var(--accent)); position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow); border: 6px solid var(--card);
}
.portrait::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.25), transparent 55%); }
.portrait-mono { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 4rem; color: rgba(255,255,255,0.92); }
.portrait-hint { font-family: var(--mono); font-size: 0.72rem; color: rgba(255,255,255,0.7); letter-spacing: 0.04em; }
.chip {
  position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 14px; font-size: 0.8rem; font-weight: 500; box-shadow: var(--shadow); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip-1 { top: 8%; left: -42px; color: var(--navy); }
.chip-2 { top: 38%; right: -54px; color: var(--accent); animation-delay: 1.5s; }
.chip-3 { bottom: 22%; left: -38px; color: var(--gold); animation-delay: 0.8s; }
.chip-4 { bottom: 4%; right: -28px; color: var(--ink); animation-delay: 2.2s; }
@keyframes float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-8px);} }

.scroll-cue { position: absolute; left: clamp(20px, 5vw, 52px); bottom: 30px; display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }
.cue-line { width: 50px; height: 1px; background: var(--ink-dim); position: relative; overflow: hidden; }
.cue-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: slide 2s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%);} 100% { transform: translateX(300%);} }

/* ---------------- Sections ---------------- */
.sec { padding: clamp(70px, 11vh, 130px) 0; }
.sec-alt { background: var(--bg-alt); }
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 26px; }
.k-num { padding: 3px 9px; border: 1px solid var(--accent); border-radius: 6px; color: var(--accent); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; }
.sec-title { max-width: 16ch; }
.sec-intro { color: var(--ink-soft); max-width: 600px; margin: 18px 0 52px; font-size: 1.08rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.about-main .h2 { margin-bottom: 24px; max-width: 18ch; }
.about-main p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.05rem; }
.qualities { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.qualities span { font-size: 0.84rem; padding: 6px 13px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); font-weight: 500; }
:root[data-theme="dark"] .qualities span { color: var(--ink); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; }
.stat-n { font-family: var(--serif); font-size: 2.8rem; font-weight: 600; line-height: 1; color: var(--accent); }
.stat-suffix { font-family: var(--serif); font-size: 1.6rem; color: var(--accent); }
.stat p { font-size: 0.9rem; color: var(--ink-dim); margin-top: 8px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; position: relative; overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; }
.svc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.svc:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.svc:hover::before { transform: scaleY(1); }
.svc-step { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-dim); }
.svc-for { display: inline-block; margin: 14px 0 12px; font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); background: var(--accent-soft); border-radius: 100px; padding: 5px 12px; }
:root[data-theme="dark"] .svc-for { color: var(--ink); }
.svc h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.svc p { color: var(--ink-soft); font-size: 0.98rem; }

/* Expertise */
.exp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.exp { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.exp:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.exp-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.exp-ic svg { width: 23px; height: 23px; }
.exp-body h3 { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; margin-bottom: 6px; }
.exp-body > p { color: var(--ink-soft); font-size: 0.94rem; }
.exp-benefit { font-size: 0.88rem; color: var(--ink); margin: 10px 0 14px; }
.exp-benefit span:first-child { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }

/* Method */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line-strong); }
.step::after { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.7s var(--ease); }
.step.in::after { width: 100%; }
.step-n { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--accent); display: block; line-height: 1; margin-bottom: 12px; }
.step h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.94rem; }

/* Parcours / Path */
.sub-h { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: 8px 0 26px; }
.certs-3 { grid-template-columns: repeat(3, 1fr); }
.pubs { display: block; }

/* Tabs (Parcours) */
.tabs { margin-top: 8px; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.tab-btn { position: relative; background: none; border: none; cursor: pointer; font-family: var(--serif); font-size: 1.08rem; font-weight: 500; color: var(--ink-dim); padding: 12px 18px; transition: color 0.25s; white-space: nowrap; }
.tab-btn::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.tab-btn:hover { color: var(--ink-soft); }
.tab-btn.active { color: var(--ink); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-panel { display: none; animation: tabIn 0.5s var(--ease); }
.tab-panel.active { display: block; }
@keyframes tabIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tl { display: flex; flex-direction: column; gap: 28px; margin-bottom: 60px; }
.tl-row { display: grid; grid-template-columns: 160px 1fr; gap: 26px; }
.tl-when { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); padding-top: 4px; }
.tl-what h4 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.tl-org { color: var(--navy); font-size: 0.95rem; margin: 2px 0 12px; font-weight: 500; }
.dash { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.dash li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 0.97rem; }
.dash li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

.path-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); }
.cert-lead { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cert { display: flex; flex-direction: column; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.cert:hover { transform: translateY(-3px); border-color: var(--accent); }
.cert span { font-weight: 600; font-size: 0.95rem; }
.cert em { font-family: var(--mono); font-style: normal; font-size: 0.74rem; color: var(--ink-dim); }

.pub { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 14px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.pub:hover { transform: translateX(5px); border-color: var(--accent); }
.pub-y { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }
.pub-t { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 500; margin: 5px 0; line-height: 1.35; }
.pub-v { font-size: 0.85rem; color: var(--ink-dim); }

.langs { display: flex; flex-direction: column; gap: 14px; }
.lang { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 14px; font-size: 0.92rem; }
.lang i { height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; }
.lang i b { display: block; height: 100%; background: var(--accent); border-radius: 100px; }
.lang em { font-style: normal; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-dim); }

/* Contact */
.contact { text-align: center; }
.contact .kicker { justify-content: center; }
.contact-h { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; max-width: 18ch; margin: 0 auto; }
.contact-lead { color: var(--ink-soft); max-width: 620px; margin: 22px auto 38px; font-size: 1.1rem; }
.contact-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; font-family: var(--mono); font-size: 0.88rem; color: var(--ink-dim); }
.contact-links a { border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.contact-links a:hover { color: var(--accent); border-color: var(--accent); }

/* Ce que je recherche */
.recherche-text { max-width: 800px; }
.recherche-text p { font-size: 1.14rem; color: var(--ink-soft); margin-bottom: 20px; }
.recherche-text p:last-child { margin-bottom: 0; }

/* Réalisations / Projets */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.proj-grid .proj:last-child:nth-child(odd) { grid-column: 1 / -1; }
.proj { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.proj:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.proj-tag { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; color: var(--accent); background: var(--accent-soft); border-radius: 100px; padding: 4px 11px; margin-bottom: 14px; }
:root[data-theme="dark"] .proj-tag { color: var(--ink); }
.proj h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; margin-bottom: 16px; line-height: 1.2; }
.proj dl { margin: 0; }
.proj dt { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-dim); margin-top: 14px; }
.proj dd { margin: 3px 0 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.proj .proj-res { color: var(--ink); font-weight: 500; }

/* Défis */
.defis-list { list-style: none; max-width: 860px; }
.defis-list li { position: relative; padding: 18px 0 18px 40px; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--ink); }
.defis-list li:last-child { border-bottom: none; }
.defis-list li::before { content: "→"; position: absolute; left: 0; top: 18px; color: var(--accent); font-weight: 700; }

/* Paragraphes justifiés */
.hero-lead,
.sec-intro,
.about-main p,
.recherche-text p,
.svc p,
.step p,
.exp-body > p,
.proj dd { text-align: justify; hyphens: auto; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-in p { color: var(--ink-dim); font-size: 0.88rem; }
.foot-in a { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-soft); transition: color 0.25s; }
.foot-in a:hover { color: var(--accent); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 940px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(78vw, 300px); flex-direction: column; justify-content: center; gap: 28px; padding: 40px; background: var(--bg); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform 0.45s var(--ease); z-index: 45; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.3rem; font-family: var(--serif); }
  .nav-burger { display: flex; z-index: 46; }
  .nav-cv { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .about-grid, .path-two { grid-template-columns: 1fr; }
  .svc-grid, .exp-list, .certs, .proj-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .hero-cta, .contact-cta { flex-direction: column; }
  .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
