/* ==========================================================================
   Portfolio — Alex Carter
   CSS pur (converti depuis React + Tailwind)
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-script: "Caveat", cursive;

  --cream: #f8f4ed;
  --cream-dark: #efe7d9;
  --card: #ffffff;
  --ink: #241d38;
  --ink-soft: #5c5570;
  --brand: #ef7d2f;
  --brand-dark: #e06a17;
  --brand-light: #f9a959;
  --brand-soft: #fbe6d3;
}

/* Thème sombre : on change les variables, tout le reste suit */
:root.dark {
  --cream: #17131f;
  --cream-dark: #241d33;
  --card: #221c33;
  --ink: #f3effa;
  --ink-soft: #a89fb8;
  --brand-soft: #3a2a1a;
}

/* Couleurs dérivées (recalculées automatiquement en mode sombre) */
:root,
:root.dark {
  --ink-5: color-mix(in srgb, var(--ink) 5%, transparent);
  --ink-10: color-mix(in srgb, var(--ink) 10%, transparent);
  --ink-15: color-mix(in srgb, var(--ink) 15%, transparent);
  --ink-20: color-mix(in srgb, var(--ink) 20%, transparent);
  --brand-10: color-mix(in srgb, var(--brand) 10%, transparent);
  --brand-25: color-mix(in srgb, var(--brand) 25%, transparent);
  --brand-30: color-mix(in srgb, var(--brand) 30%, transparent);
  --brand-40: color-mix(in srgb, var(--brand) 40%, transparent);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--brand-25); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
figure, blockquote { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Icônes (sprite SVG) ---------- */
.icon {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.i-4 { width: 1rem; height: 1rem; }
.i-5 { width: 1.25rem; height: 1.25rem; }
.i-6 { width: 1.5rem; height: 1.5rem; }
.i-8 { width: 2rem; height: 2rem; }
.i-17 { width: 17px; height: 17px; }
.i-18 { width: 18px; height: 18px; }

/* ---------- Utilitaires de mise en page ---------- */
.container {
  width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 2rem; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; line-height: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; color: var(--brand);
}
.eyebrow .line { height: 1px; width: 2rem; background: currentColor; }
.eyebrow.light { color: var(--brand-light); }
.eyebrow.center { justify-content: center; }

.section { scroll-margin-top: 6rem; padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }

/* ---------- Animation au scroll ---------- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

.skill-fill {
  width: 0; transition: width 1.1s cubic-bezier(.22, 1, .36, 1) .15s;
}
.reveal.is-visible .skill-fill { width: var(--w, 0%); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; transition: all .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand); color: #fff; border-radius: 9999px;
  padding: .875rem 1.75rem;
  box-shadow: 0 20px 25px -5px var(--brand-30), 0 8px 10px -6px var(--brand-30);
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline {
  background: var(--card); color: var(--ink); border-radius: 9999px;
  padding: .875rem 1.75rem; border: 2px solid var(--ink-15);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.social {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 9999px; border: 1px solid var(--ink-10);
  background: var(--card); color: var(--ink-soft); transition: all .15s ease;
}
.social:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--brand); color: #fff; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1.25rem 0; background: transparent;
  transition: all .3s ease;
}
.header.scrolled {
  padding: .75rem 0;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  box-shadow: 0 10px 30px -18px rgba(36, 29, 56, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .625rem; }
.logo-mark {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: .75rem; background: var(--brand); color: #fff;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 800;
  box-shadow: 0 10px 15px -3px var(--brand-30), 0 4px 6px -4px var(--brand-30);
}
.logo-text {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
  letter-spacing: -.025em; color: var(--ink);
}

.nav-links { display: none; align-items: center; gap: .25rem; }
.nav-links a {
  display: block; border-radius: .5rem; padding: .5rem .875rem;
  font-size: .875rem; font-weight: 600; color: var(--ink-soft); transition: color .15s;
}
.nav-links a:hover { color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 9999px; border: 1px solid var(--ink-10);
  background: var(--card); color: var(--ink-soft); transition: all .15s ease;
}
.icon-btn:hover { border-color: var(--brand-40); color: var(--brand); }
.menu-btn { color: var(--ink); }

.cv-btn {
  display: none; align-items: center; gap: .5rem; border-radius: 9999px;
  background: var(--brand); color: #fff; padding: .625rem 1.25rem;
  font-size: .875rem; font-weight: 700;
  box-shadow: 0 10px 15px -3px var(--brand-30), 0 4px 6px -4px var(--brand-30);
  transition: all .15s ease;
}
.cv-btn:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* icônes soleil / lune selon le thème */
.theme-toggle .i-sun { display: none; }
:root.dark .theme-toggle .i-sun { display: block; }
:root.dark .theme-toggle .i-moon { display: none; }

/* icônes menu / fermer */
.menu-btn .i-close { display: none; }
.menu-btn.open .i-close { display: block; }
.menu-btn.open .i-menu { display: none; }

/* Menu mobile */
.mobile-wrap { overflow: hidden; max-height: 0; transition: all .3s ease; }
.mobile-wrap.open { margin-top: .75rem; max-height: 24rem; }
.mobile-menu {
  display: flex; flex-direction: column; gap: .25rem; padding: .75rem;
  border-radius: 1rem; border: 1px solid var(--ink-10); background: var(--card);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}
.mobile-menu a {
  display: block; border-radius: .75rem; padding: .625rem 1rem;
  font-size: .875rem; font-weight: 600; color: var(--ink-soft); transition: all .15s;
}
.mobile-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.mobile-menu a.cta {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: .25rem; background: var(--brand); color: #fff; font-weight: 700;
}

@media (min-width: 640px) { .cv-btn { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-btn, .mobile-wrap { display: none; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 7rem 0 4rem; }
.blob { position: absolute; border-radius: 9999px; pointer-events: none; }
.blob-1 { right: -10rem; top: -10rem; width: 36rem; height: 36rem; background: var(--brand-10); filter: blur(64px); }
.blob-2 { left: -8rem; top: 10rem; width: 24rem; height: 24rem; background: var(--brand-soft); filter: blur(64px); }

.hero-grid { display: grid; align-items: center; gap: 3rem; position: relative; }

.hero h1 {
  margin-top: 1rem; font-family: var(--font-display); font-size: 3rem;
  font-weight: 800; line-height: 1.05; letter-spacing: -.025em; color: var(--ink);
}
.hero h1 span { color: var(--brand); }
.hero-role {
  margin-top: .75rem; font-family: var(--font-display); font-size: 1.5rem;
  line-height: 2rem; font-weight: 700; color: var(--ink);
}
.hero-role span { color: var(--ink-soft); }
.hero-text {
  margin-top: 1.25rem; max-width: 28rem; font-size: 1rem;
  line-height: 1.625; color: var(--ink-soft);
}
.hero-btns { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-socials { margin-top: 2rem; display: flex; align-items: center; gap: .75rem; }

/* portrait */
.portrait-col { position: relative; margin: 0 auto; width: 100%; max-width: 28rem; }
.portrait-blob {
  position: absolute; right: .5rem; top: 1.5rem; width: 18rem; height: 18rem;
  border-radius: 9999px; background: color-mix(in srgb, var(--brand) 90%, transparent); filter: blur(2px);
}
.portrait-ring {
  position: absolute; left: -1rem; bottom: -1rem; width: 10rem; height: 10rem;
  border-radius: 9999px; border: 6px solid var(--brand-30);
}
.script-1 {
  position: absolute; top: -1.25rem; right: .5rem; z-index: 20; max-width: 9rem;
  transform: rotate(-8deg); text-align: right; pointer-events: none;
  font-family: var(--font-script); font-size: 1.5rem; line-height: 1.25; font-weight: 700; color: var(--brand);
}
.script-2 {
  position: absolute; top: -.5rem; left: .5rem; z-index: 20; display: none;
  transform: rotate(-4deg); pointer-events: none;
  font-family: var(--font-script); font-size: 1.125rem; font-weight: 600;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}
.portrait {
  position: relative; z-index: 10; overflow: hidden;
  border-radius: 8rem 8rem 2.5rem 2.5rem; border: 6px solid #fff;
  background: var(--cream-dark);
  box-shadow: 0 25px 50px -12px var(--ink-20);
}
.portrait img { width: 100%; height: 26rem; object-fit: cover; object-position: top; }

.badge {
  position: absolute; left: 50%; bottom: -1.25rem; z-index: 20; transform: translateX(-50%);
  display: flex; align-items: center; gap: .625rem; white-space: nowrap;
  border-radius: 9999px; border: 1px solid var(--ink-5); background: var(--card);
  padding: .75rem 1.25rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}
.badge .dot { position: relative; display: flex; width: .75rem; height: .75rem; }
.badge .dot::before {
  content: ""; position: absolute; inset: 0; border-radius: 9999px;
  background: #4ade80; opacity: .75; animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
}
.badge .dot::after {
  content: ""; position: relative; width: .75rem; height: .75rem; border-radius: 9999px; background: #22c55e;
}
.badge span.txt { font-size: .875rem; font-weight: 600; color: var(--ink); }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

/* stats */
.stats-wrap { margin-top: 5rem; position: relative; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
  border-radius: 1.5rem; border: 1px solid var(--ink-5); background: var(--card);
  padding: 1.5rem; box-shadow: 0 20px 25px -5px var(--ink-5), 0 8px 10px -6px var(--ink-5);
}
.stat { text-align: center; }
.stat-value { font-family: var(--font-display); font-size: 2.25rem; line-height: 2.5rem; font-weight: 800; color: var(--brand); }
.stat-label { margin-top: .25rem; font-size: .875rem; font-weight: 500; color: var(--ink-soft); }

@media (min-width: 640px) {
  .hero h1 { font-size: 3.75rem; }
  .hero-role { font-size: 1.875rem; line-height: 2.25rem; }
  .hero-text { font-size: 1.125rem; }
  .portrait-blob { width: 20rem; height: 20rem; }
  .portrait img { height: 30rem; }
  .stats { grid-template-columns: repeat(4, 1fr); padding: 2rem; }
  .stat-value { font-size: 3rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .hero { padding: 9rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero h1 { font-size: 4.5rem; }
  .portrait-col { max-width: none; }
  .script-2 { display: block; }
  .stats-wrap { margin-top: 6rem; }
}

/* ==========================================================================
   PROJETS
   ========================================================================== */
.projects-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.link-pill {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 9999px;
  border: 1px solid var(--ink-10); background: var(--card); padding: .625rem 1.25rem;
  font-size: .875rem; font-weight: 700; color: var(--ink); transition: all .15s ease;
}
.link-pill:hover { border-color: var(--brand); color: var(--brand); }
.link-pill .icon { transition: transform .15s; }
.link-pill:hover .icon { transform: translateX(.25rem); }

.projects-grid { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.project {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 1.5rem; border: 1px solid var(--ink-5); background: var(--card);
  box-shadow: 0 10px 15px -3px var(--ink-5), 0 4px 6px -4px var(--ink-5);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .3s ease, box-shadow .3s ease;
  transition-delay: var(--d, 0ms);
}
.project.is-visible:hover {
  transform: translateY(-.5rem); transition-delay: 0ms;
  box-shadow: 0 25px 50px -12px var(--ink-10);
}
.project-img { position: relative; height: 13rem; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project-img img { transform: scale(1.05); }
.project-type {
  position: absolute; left: 1rem; top: 1rem; border-radius: 9999px; background: var(--brand);
  color: #fff; padding: .375rem .875rem; font-size: .75rem; font-weight: 700;
  box-shadow: 0 10px 15px -3px var(--brand-30), 0 4px 6px -4px var(--brand-30);
}
.project-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.project-title { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--ink); }
.project-desc { margin-top: .5rem; flex: 1; font-size: .875rem; line-height: 1.625; color: var(--ink-soft); }
.tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  border-radius: 9999px; background: var(--brand-soft); padding: .25rem .75rem;
  font-size: .75rem; font-weight: 600; color: var(--brand-dark);
}
.project-foot { margin-top: 1.5rem; display: flex; justify-content: flex-end; }
.round-arrow {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  border: 1px solid var(--ink-10); color: var(--ink); transition: all .15s ease;
}
.project:hover .round-arrow { border-color: var(--brand); background: var(--brand); color: #fff; }

@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   À PROPOS
   ========================================================================== */
.about-intro { margin-top: 2rem; display: grid; align-items: center; gap: 2.5rem; }
.about-img-col { position: relative; margin: 0 auto; width: 100%; max-width: 28rem; }
.about-img {
  overflow: hidden; border-radius: 2.5rem; border: 6px solid #fff; background: var(--cream-dark);
  box-shadow: 0 25px 50px -12px var(--ink-15);
}
.about-img img { width: 100%; height: 22rem; object-fit: cover; }
.exp-badge {
  position: absolute; left: 1.5rem; bottom: -1.5rem; display: flex; align-items: center; gap: .75rem;
  border-radius: 1rem; background: var(--brand); color: #fff; padding: 1rem 1.5rem;
  box-shadow: 0 20px 25px -5px var(--brand-30), 0 8px 10px -6px var(--brand-30);
}
.exp-badge .big { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; font-weight: 800; }
.exp-badge .sm { font-size: .875rem; line-height: 1.25; font-weight: 600; }
.about-ring {
  position: absolute; right: -1.25rem; top: -1.25rem; width: 6rem; height: 6rem;
  border-radius: 9999px; border: 6px solid var(--brand-25);
}
.about-text { font-size: 1rem; line-height: 1.625; color: var(--ink-soft); }
.quote-card {
  margin-top: 2rem; border-radius: 1rem; border-left: 4px solid var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 60%, transparent); padding: 1.5rem;
}
.quote-card .icon { color: var(--brand-40); }
.quote-card blockquote { margin-top: .5rem; font-size: 1rem; font-weight: 500; font-style: italic; color: var(--ink); }
.quote-card figcaption { margin-top: .75rem; font-size: .875rem; font-weight: 700; color: var(--brand-dark); }

.skills-services { margin-top: 5rem; display: grid; gap: 3rem; }
.h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; font-weight: 800; color: var(--ink); }

.skills-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.skill-top { margin-bottom: .5rem; display: flex; align-items: center; justify-content: space-between; }
.skill-name { font-size: .875rem; font-weight: 700; color: var(--ink); }
.skill-pct { font-size: .875rem; font-weight: 700; color: var(--brand); }
.skill-bar { height: .625rem; width: 100%; overflow: hidden; border-radius: 9999px; background: var(--cream-dark); }
.skill-fill { height: 100%; border-radius: 9999px; background: linear-gradient(to right, var(--brand), var(--brand-light)); }

#services { scroll-margin-top: 7rem; }
.services-grid { margin-top: 1.5rem; display: grid; gap: 1rem; }
.service {
  border-radius: 1rem; border: 1px solid var(--ink-5); background: var(--card); padding: 1.25rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); transition: all .15s ease;
}
.service:hover {
  transform: translateY(-.25rem); border-color: var(--brand-30);
  box-shadow: 0 10px 15px -3px var(--brand-10), 0 4px 6px -4px var(--brand-10);
}
.service-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem;
  background: var(--brand-soft); color: var(--brand); transition: all .15s ease;
}
.service:hover .service-icon { background: var(--brand); color: #fff; }
.service h4 { margin-top: 1rem; font-family: var(--font-display); font-size: 1rem; line-height: 1.5rem; font-weight: 700; color: var(--ink); }
.service p { margin-top: .375rem; font-size: .875rem; line-height: 1.625; color: var(--ink-soft); }

@media (min-width: 640px) {
  .about-img img { height: 26rem; }
  .about-text { font-size: 1.125rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .about-intro { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .skills-services { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section { padding: 2rem 0; }
.cta { position: relative; overflow: hidden; border-radius: 2.5rem; }
.cta > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(27,21,48,.95), rgba(27,21,48,.8), rgba(27,21,48,.35));
}
.cta-inner {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2rem;
  padding: 3.5rem 1.75rem;
}
.cta-text { max-width: 36rem; }
.cta h2 {
  margin-top: 1rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 1.25;
  font-weight: 800; color: #fff;
}
.cta p.lead { margin-top: 1rem; font-size: 1rem; line-height: 1.625; color: rgba(255,255,255,.8); }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.cta .btn-primary {
  padding: 1rem 2rem;
  box-shadow: 0 20px 25px -5px var(--brand-40), 0 8px 10px -6px var(--brand-40);
}
.cta .btn-primary:hover { background: var(--brand-light); color: var(--ink); }
.cta-script { font-family: var(--font-script); font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: var(--brand-light); }

@media (min-width: 640px) {
  .cta-inner { padding-left: 3rem; padding-right: 3rem; }
  .cta h2 { font-size: 2.25rem; line-height: 2.5rem; }
  .cta p.lead { font-size: 1.125rem; }
}
@media (min-width: 1024px) {
  .cta-section { padding: 3rem 0; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 5rem; padding-bottom: 5rem; }
  .cta h2 { font-size: 3rem; line-height: 1; }
  .cta-action { align-items: center; }
}

/* ==========================================================================
   TÉMOIGNAGES
   ========================================================================== */
.center { text-align: center; }
.h2 {
  font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem;
  font-weight: 800; letter-spacing: -.025em; color: var(--ink);
}
.testi-title { margin-top: .75rem; }
.testi-grid { margin-top: 3rem; display: grid; gap: 1.5rem; }
.testi {
  display: flex; flex-direction: column; border-radius: 1.5rem; border: 1px solid var(--ink-5);
  background: var(--card); padding: 1.75rem;
  box-shadow: 0 10px 15px -3px var(--ink-5), 0 4px 6px -4px var(--ink-5);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .3s ease, box-shadow .3s ease;
  transition-delay: var(--d, 0ms);
}
.testi.is-visible:hover {
  transform: translateY(-.375rem); transition-delay: 0ms;
  box-shadow: 0 25px 50px -12px var(--ink-10);
}
.stars { display: flex; gap: .25rem; color: var(--brand); }
.testi blockquote { margin-top: 1rem; flex: 1; font-size: .875rem; line-height: 1.625; color: var(--ink-soft); }
.testi figcaption {
  margin-top: 1.5rem; display: flex; align-items: center; gap: .75rem;
  border-top: 1px solid var(--ink-5); padding-top: 1.25rem;
}
.avatar {
  width: 3rem; height: 3rem; border-radius: 9999px; object-fit: cover;
  box-shadow: 0 0 0 2px var(--brand-30);
}
.testi-name { font-family: var(--font-display); font-size: .875rem; font-weight: 700; color: var(--ink); }
.testi-role { font-size: .75rem; font-weight: 500; color: var(--ink-soft); }

@media (min-width: 640px) { .h2 { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 768px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; gap: 3rem; }
.contact-title { margin-top: .75rem; }
.contact-intro { margin-top: 1rem; max-width: 28rem; font-size: 1rem; line-height: 1.625; color: var(--ink-soft); }
.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.info {
  display: flex; align-items: center; gap: 1rem; border-radius: 1rem;
  border: 1px solid var(--ink-5); background: var(--card); padding: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); transition: all .15s ease;
}
.info:hover { border-color: var(--brand-30); box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.info-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 3rem; height: 3rem;
  border-radius: .75rem; background: var(--brand-soft); color: var(--brand);
}
.info-label { font-size: .75rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; color: var(--ink-soft); }
.info-value { font-weight: 700; color: var(--ink); }
.contact-socials { margin-top: 1.75rem; display: flex; align-items: center; gap: .75rem; }

.form {
  border-radius: 1.5rem; border: 1px solid var(--ink-5); background: var(--card); padding: 1.75rem;
  box-shadow: 0 20px 25px -5px var(--ink-5), 0 8px 10px -6px var(--ink-5);
}
.form-fields { display: flex; flex-direction: column; gap: 1rem; }
.field {
  width: 100%; border-radius: .75rem; border: 1px solid var(--ink-10);
  background: color-mix(in srgb, var(--cream) 60%, transparent);
  padding: .75rem 1rem; font-size: .875rem; color: var(--ink); outline: none;
  transition: all .15s ease;
}
.field::placeholder { color: color-mix(in srgb, var(--ink-soft) 60%, transparent); }
.field:focus { border-color: var(--brand); background: var(--cream); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea.field { resize: none; }
.submit {
  margin-top: 1.5rem; display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .75rem; background: var(--brand); color: #fff; padding: .875rem 1.5rem; font-weight: 700;
  box-shadow: 0 10px 15px -3px var(--brand-30), 0 4px 6px -4px var(--brand-30); transition: all .15s ease;
}
.submit:hover { background: var(--brand-dark); transform: translateY(-2px); }
.form-status { margin-top: 1rem; text-align: center; font-size: .875rem; font-weight: 600; color: #16a34a; opacity: 0; transition: opacity .3s; }
.form-status.show { opacity: 1; }

@media (min-width: 640px) { .form { padding: 2rem; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #140f22; color: rgba(255,255,255,.7); }
.footer-inner { padding: 3.5rem 0; }
.footer-top { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 2rem; }
.footer .logo-mark { box-shadow: none; }
.footer .logo-text { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem; }
.footer-links a { font-size: .875rem; font-weight: 600; transition: color .15s; }
.footer-links a:hover { color: var(--brand-light); }
.footer-socials { display: flex; align-items: center; gap: .75rem; }
.footer-socials a {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7); transition: all .15s ease;
}
.footer-socials a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.footer-bottom {
  margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 1rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .875rem;
}
.made { display: inline-flex; align-items: center; gap: .375rem; }
.made .icon { color: var(--brand); }
.to-top {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  background: var(--brand); color: #fff; transition: all .15s ease;
  box-shadow: 0 10px 15px -3px var(--brand-30), 0 4px 6px -4px var(--brand-30);
}
.to-top:hover { transform: translateY(-.25rem); background: var(--brand-light); color: var(--ink); }

@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
@media (min-width: 768px) { .footer-top { flex-direction: row; } }

/* Respect de prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .skill-fill { transition: none; width: var(--w, 0%); }
  .badge .dot::before { animation: none; }
}
