/* ════════════════════════════════════════════
   RESET & TOKENS
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a0b0d;
  --bg-soft:    #0e0f12;
  --surface:    #131519;
  --surface-2:  #181b20;
  --border:     rgba(255,255,255,0.08);
  --border-2:   rgba(255,255,255,0.14);
  --text:       #e7e8ea;
  --text-dim:   #9a9da3;
  --text-faint: #62656c;
  --accent:     #4ade80;
  --accent-2:   #6ee7a8;
  --accent-dim: rgba(74,222,128,0.10);
  --red:        #ff5f57;
  --yellow:     #febc2e;
  --mono:       'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --display:    'Space Grotesk', sans-serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
  --radius:     14px;
  --radius-sm:  10px;
}

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Grille de fond ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% -10%, #000 0%, transparent 65%);
          mask-image: radial-gradient(120% 80% at 50% -10%, #000 0%, transparent 65%);
}

::selection { background: var(--accent); color: #06120b; }

a { color: inherit; }

/* ════════════════════════════════════════════
   PAGE TRANSITION
════════════════════════════════════════════ */
.page-transition {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; pointer-events: none;
  transition: opacity .45s var(--ease);
}
.page-transition.hidden { opacity: 0; }
.page-transition .pt-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.5);
  animation: ptpulse 1s var(--ease) infinite;
}
@keyframes ptpulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.45); }
  50%     { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
}

/* ════════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 5vw;
  transition: background .4s, box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(10,11,13,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.02em; text-decoration: none; color: var(--text);
  position: relative; z-index: 101;
}
.nav-logo::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.dot { color: var(--accent); }

.nav-links { display: flex; gap: 0.4rem; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.02em;
  text-decoration: none; color: var(--text-dim);
  padding: 0.4rem 0.8rem; border-radius: 8px;
  border: 1px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(74,222,128,0.25);
}

/* pill disponible */
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--text); text-decoration: none;
  padding: 0.5rem 1rem; border-radius: 8px;
  border: 1px solid var(--border-2);
  transition: border-color .2s, color .2s, background .2s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ── MOBILE MENU ── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  position: relative; z-index: 101; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--mono); font-size: 1.4rem;
  text-decoration: none; color: var(--text-dim);
  transition: color .2s;
}
.mobile-menu a.active,
.mobile-menu a:hover { color: var(--accent); }

/* ════════════════════════════════════════════
   REVEAL
════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal].visible { opacity: 1; transform: none; }

/* ════════════════════════════════════════════
   SECTION BASE
════════════════════════════════════════════ */
section { position: relative; z-index: 1; }
main { padding-top: 80px; position: relative; z-index: 1; }

.section-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 6rem 5vw;
}
.section-header {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
  margin-bottom: 3.5rem;
}
.section-index {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--accent);
  padding: 0.35rem 0.85rem; border-radius: 100px;
  border: 1px solid rgba(74,222,128,0.25);
  background: var(--accent-dim);
}
.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.03em; line-height: 1;
}
.section-sub {
  color: var(--text-dim); font-size: 1rem; max-width: 460px; line-height: 1.6;
}
.section-link {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--text-dim); text-decoration: none; transition: color .2s;
}
.section-link:hover { color: var(--accent); }

/* ════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
  background: var(--accent); color: #06120b;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(74,222,128,0.5);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-sm);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
  color: var(--text-dim); text-decoration: none;
  border: 1px solid var(--border-2);
  transition: color .2s, border-color .2s, background .2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
#hero {
  min-height: calc(100vh - 80px);
  display: flex; align-items: center;
  padding: 4rem 5vw;
  position: relative; overflow: hidden;
}
.hero-inner {
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 420px;
  align-items: center; gap: 5rem;
  position: relative;
}
.hero-left { display: flex; flex-direction: column; gap: 2rem; }
.hero-top  { display: flex; align-items: center; gap: 1rem; }
.hero-index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-faint); }
.hero-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--text-dim);
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border); border-radius: 100px;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-status.available { color: var(--text); }
.hero-status.available .status-dot {
  box-shadow: 0 0 0 3px rgba(74,222,128,0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.18); }
  50%     { box-shadow: 0 0 0 7px rgba(74,222,128,0.02); }
}
.hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.92; letter-spacing: -0.04em;
  overflow: hidden;
}
.hero-title .line {
  display: block;
  animation: slideUp .9s var(--ease) both;
}
.hero-title .line:nth-child(2) { animation-delay: .08s; }
.hero-title .italic { font-style: italic; color: var(--text-dim); font-weight: 500; }
@keyframes slideUp {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.hero-tagline { max-width: 400px; color: var(--text-dim); line-height: 1.65; font-size: 1rem; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-year {
  position: absolute; right: 0; bottom: 2rem;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--text-faint);
  writing-mode: vertical-rl; user-select: none; opacity: 0.5;
}

/* ── HERO RIGHT (terminal) ── */
.hero-right { display: flex; justify-content: flex-end; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { justify-content: flex-start; }
}

/* ════════════════════════════════════════════
   HERO TERMINAL
════════════════════════════════════════════ */
.terminal {
  width: 100%;
  background: #0c0e11;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7);
  animation: fadeIn 1.2s var(--ease) .2s both;
}
.term-screen {
  height: 270px; overflow-y: auto;
  padding: 1.1rem 1.2rem 0.6rem;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  color: var(--text-dim);
}
.term-line { white-space: pre-wrap; word-break: break-word; margin-bottom: 0.1rem; }
.term-line .cmd { color: var(--text); }
.term-prompt-inline { color: var(--accent); }
.term-accent { color: var(--accent); }
.term-key { color: var(--text); font-weight: 500; }
.term-muted { color: var(--text-faint); }
.term-screen a { color: var(--accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.term-screen a:hover { border-bottom-color: var(--accent); }
.term-hint { margin-top: 0.5rem; }
.term-input-line {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.2rem 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 12.5px;
}
.term-prompt { color: var(--accent); white-space: nowrap; }
.term-input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--text); font-family: var(--mono); font-size: 12.5px;
  caret-color: var(--accent);
}
.term-screen::-webkit-scrollbar { width: 8px; }
.term-screen::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

/* ════════════════════════════════════════════
   TICKER
════════════════════════════════════════════ */
.ticker-wrap {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 0.9rem 0;
  background: var(--bg-soft);
}
.ticker-track { display: flex; width: max-content; animation: ticker 30s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); white-space: nowrap; padding: 0 0.2rem;
  transition: color .2s;
}
.ticker-item:hover { color: var(--text); }
.ticker-sep { margin: 0 1rem; color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* ════════════════════════════════════════════
   PROJECTS (list)
════════════════════════════════════════════ */
#projects, #home-projects { border-top: 1px solid var(--border); }
.projects-list { display: flex; flex-direction: column; }
.project-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto 2.5rem;
  align-items: center; gap: 2rem;
  padding: 2rem 1.2rem;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
  position: relative; border-radius: var(--radius-sm);
  transition: padding-left .3s var(--ease), background .25s;
}
.project-row:hover { padding-left: 1.8rem; background: var(--surface); }
.project-row:hover .project-arrow { transform: translateX(6px); color: var(--accent); }
.project-row:hover .project-title { color: var(--accent); }
.project-num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em; }
.project-title {
  font-family: var(--display); font-weight: 700;
  font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 0.3rem;
  transition: color .2s;
}
.project-desc { font-size: 0.88rem; color: var(--text-dim); max-width: 460px; line-height: 1.6; }
.project-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.project-stack { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }
.tag {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.04em;
  padding: 0.25rem 0.6rem; border-radius: 6px;
  border: 1px solid var(--border); color: var(--text-dim);
  background: var(--surface);
}
.project-year { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.project-arrow { font-size: 1.2rem; color: var(--text-faint); transition: transform .3s var(--ease), color .2s; }

/* ════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════ */
#home-services { border-top: 1px solid var(--border); }
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.service-card {
  padding: 2rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.service-card:hover { border-color: var(--border-2); transform: translateY(-4px); }
.service-icon { display: block; font-size: 1.5rem; margin-bottom: 1.2rem; color: var(--accent); }
.service-title {
  font-family: var(--display); font-weight: 600;
  font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 0.7rem;
}
.service-desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; }

/* ════════════════════════════════════════════
   CTA
════════════════════════════════════════════ */
#home-cta { border-top: 1px solid var(--border); position: relative; z-index: 1; overflow: hidden; }
.cta-inner {
  max-width: 1100px; margin: 0 auto; padding: 7rem 5vw;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
}
.cta-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.cta-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.03em; line-height: 1;
}

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
#about { border-top: 1px solid var(--border); }
.about-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 4rem; align-items: start;
}
.about-text p { color: var(--text-dim); font-size: 1.02rem; line-height: 1.85; margin-bottom: 1.4rem; }
.about-text strong { color: var(--text); font-weight: 600; }
.about-text .btn-primary { margin-top: 1rem; }

/* carte terminal */
.term-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: var(--red); }
.term-dot.y { background: var(--yellow); }
.term-dot.g { background: var(--accent); }
.term-name {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  margin-left: 0.6rem;
}
.term-body { padding: 0.4rem 1.3rem; }
.term-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 13px;
}
.term-row:last-child { border-bottom: none; }
.term-key { color: var(--text-faint); }
.term-val { color: var(--text); text-align: right; }
.term-val.accent { color: var(--accent); }
.term-val a { color: var(--accent); text-decoration: none; }
.term-val a:hover { text-decoration: underline; }
.term-val .status-dot { display: inline-block; margin-right: 0.4rem; }

/* stats */
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 4rem;
}
.stat-item {
  padding: 2rem 1.6rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 2.6rem; letter-spacing: -0.03em; line-height: 1; color: var(--accent);
}
.stat-label {
  display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--text-dim); margin-top: 0.6rem;
}
.link-underline {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--accent); padding-bottom: 1px;
  transition: opacity .2s;
}
.link-underline:hover { opacity: 0.6; }

/* ════════════════════════════════════════════
   SKILLS
════════════════════════════════════════════ */
#skills { border-top: 1px solid var(--border); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem;
}
.skill-category {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--accent);
  margin-bottom: 1.6rem;
}
.skill-category::before { content: '▸'; color: var(--accent); }
.skill-list { list-style: none; }
.skill-item { margin-bottom: 1.3rem; }
.skill-item:last-child { margin-bottom: 0; }
.skill-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 0.55rem;
}
.skill-name { font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.skill-level { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.skill-bar {
  height: 6px; border-radius: 100px;
  background: var(--surface-2);
  overflow: hidden;
}
.skill-fill {
  display: block; height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #2fa968, var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.skill-group.visible .skill-fill { transform: scaleX(1); }

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
#contact { border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.contact-intro { color: var(--text-dim); font-size: 1.02rem; line-height: 1.7; margin-bottom: 2rem; }
.contact-email {
  display: inline-block;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px; margin-bottom: 2rem;
  transition: color .2s;
}
.contact-email:hover { color: var(--accent); }
.social-links { display: flex; flex-direction: column; gap: 0.6rem; }
.social-links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--text-dim); text-decoration: none; transition: color .2s;
}
.social-links a:hover { color: var(--accent); }
.contact-form {
  display: flex; flex-direction: column; gap: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-faint);
}
.form-group input,
.form-group textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  font-family: var(--mono); font-size: 13px;
  color: var(--text); outline: none; resize: none;
  transition: border-color .25s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-success {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--accent-dim); border: 1px solid rgba(74,222,128,0.4);
  color: var(--accent); font-family: var(--mono); font-size: 13px;
}
.form-error {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: rgba(255,95,87,0.08); border: 1px solid rgba(255,95,87,0.4);
  color: #ff8a84; font-family: var(--mono); font-size: 13px;
}

/* ════════════════════════════════════════════
   PROJECT DETAIL
════════════════════════════════════════════ */
#project-detail { border-top: 1px solid var(--border); }
.detail-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--text-dim); text-decoration: none;
  margin-bottom: 3.5rem; transition: color .2s;
}
.detail-back:hover { color: var(--accent); }
.detail-kicker {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 1.5rem;
}
.detail-num, .detail-year {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--accent);
}
.detail-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.04em; line-height: 0.92; margin-bottom: 2rem;
}
.detail-tags {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 3.5rem;
}
.detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 5rem; align-items: start; }
.detail-desc { font-size: 1.02rem; color: var(--text-dim); line-height: 1.85; margin-bottom: 1.8rem; }
.detail-features-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.detail-features-list { margin-bottom: 2.5rem; }
.detail-feature-item {
  display: flex; align-items: baseline; gap: 0.75rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.92rem; color: var(--text-dim);
}
.detail-feature-arrow { color: var(--accent); flex-shrink: 0; }
.detail-sidebar {
  position: sticky; top: 6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.4rem 1.3rem;
}
.detail-info-block { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.detail-info-block:last-child { border-bottom: none; }
.detail-info-label {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.35rem;
}
.detail-info-val { font-size: 0.9rem; }

@media (max-width: 900px) {
  .detail-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-sidebar { position: static; }
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
#footer { border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 1.8rem 5vw;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.85rem; color: var(--text-dim);
}
.footer-copy { font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.footer-socials { display: flex; gap: 0.6rem; }
.footer-socials a {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--text-dim); text-decoration: none;
  padding: 0.4rem 0.85rem; border-radius: 8px; border: 1px solid var(--border);
  transition: color .2s, border-color .2s;
}
.footer-socials a:hover { color: var(--accent); border-color: var(--accent); }

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .project-row { grid-template-columns: 2.5rem 1fr 2rem; }
  .project-meta { display: none; }
  .footer-inner { flex-direction: column; gap: 1.2rem; text-align: center; }
}
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { justify-content: center; }
}

/* ════════════════════════════════════════════
   REDUCED MOTION
════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .skill-fill { transform: none; }
  .page-transition { display: none; }
}
