@font-face{
  font-family:'IBM Plex Mono';
  font-style:normal;
  font-weight:500;
  font-display:swap;
  src:url('/assets/fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2');
}
:root{
  --anthracite:#24262B;
  --anthracite-light:#34373D;
  --orange:#FF6A2B;
  --orange-dim:#E85F26;
  --cream:#F7F5F2;
  --cream-card:#FFFFFF;
  --grey:#8A8D93;
  --grey-light:#C7C8CC;
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important;}
}
body{
  font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
  color:var(--anthracite);
  background:var(--cream);
  line-height:1.5;
}
img{max-width:100%;display:block;}
.wrap{max-width:1140px;margin:0 auto;padding:0 32px;}
h1,h2,h3{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:700;letter-spacing:-0.01em;}
.eyebrow{
  font-family:'IBM Plex Mono',monospace;
  font-size:13px;
  letter-spacing:0.02em;
  color:var(--orange);
  margin-bottom:14px;
  display:block;
}
a{color:inherit;text-decoration:none;}
a:focus-visible,button:focus-visible{outline:2px solid var(--orange);outline-offset:3px;border-radius:4px;}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--orange);color:#fff;padding:12px 20px;border-radius:0 0 8px 0;font-weight:600;
}
.skip-link:focus{left:0;}

/* ===== NAV ===== */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(247,245,242,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(36,38,43,0.08);
}
nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 32px;max-width:1140px;margin:0 auto;
}
.logo{display:flex;align-items:center;gap:12px;font-weight:700;font-size:17px;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;}
.logo-mark{width:34px;height:34px;border-radius:8px;background:var(--anthracite);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.logo-mark svg{width:18px;height:18px;}
.nav-links{display:flex;align-items:center;gap:36px;font-size:14.5px;font-weight:500;}
.nav-links a{opacity:0.75;transition:opacity .2s;}
.nav-links a:hover{opacity:1;}
.nav-cta{opacity:1 !important;}
.nav-toggle{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:38px;height:38px;background:none;border:none;cursor:pointer;padding:0;
}
.nav-toggle span{display:block;width:100%;height:2px;background:var(--anthracite);border-radius:2px;transition:transform .2s,opacity .2s;}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0;}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 22px;border-radius:8px;
  font-size:14.5px;font-weight:600;
  transition:transform .15s, box-shadow .15s;
  white-space:nowrap;
}
.btn-primary{background:var(--orange);color:#fff;}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(255,106,43,0.35);}
.btn-ghost{border:1.5px solid rgba(36,38,43,0.18);color:var(--anthracite);}
.btn-ghost:hover{border-color:var(--anthracite);}
.btn-ghost.on-dark{border-color:rgba(255,255,255,0.25);color:#fff;}
.btn-ghost.on-dark:hover{border-color:#fff;}

/* ===== HERO ===== */
.hero{padding:120px 0 100px;text-align:center;}
.hero h1{
  font-size:56px;line-height:1.12;max-width:820px;margin:0 auto 26px;
}
.brace{color:var(--orange);}
.hero p{
  font-size:18px;color:#54565c;max-width:560px;margin:0 auto 40px;
}
.hero-ctas{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;}

/* ===== SERVICES (dark) ===== */
.services{background:var(--anthracite);color:#fff;padding:110px 0;}
.section-head{max-width:560px;margin-bottom:64px;}
.section-head h2{font-size:34px;color:#fff;}
.services .section-head h2{color:#fff;}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.card{
  background:var(--anthracite-light);
  border-radius:16px;padding:32px 28px;
  border:1px solid rgba(255,255,255,0.06);
}
.card .num{font-family:'IBM Plex Mono',monospace;color:var(--orange);font-size:13px;margin-bottom:18px;display:block;}
.card h3{font-size:19px;color:#fff;margin-bottom:10px;}
.card p{font-size:14.5px;color:var(--grey-light);}

/* ===== WORK (light) ===== */
.work{padding:110px 0;}
.work .section-head h2{color:var(--anthracite);}
.projects{display:flex;flex-direction:column;gap:20px;}
.project{
  display:grid;grid-template-columns:1fr auto;align-items:center;
  gap:24px;padding:36px;border-radius:16px;
  background:var(--cream-card);
  border:1px solid rgba(36,38,43,0.08);
  transition:border-color .2s, transform .2s;
}
.project:hover,.project:focus-within{border-color:rgba(255,106,43,0.4);transform:translateX(4px);}
.project-cover{border-radius:10px;overflow:hidden;margin-bottom:18px;aspect-ratio:16/9;background:var(--cream);border:1px solid rgba(36,38,43,0.08);}
.project-cover img{width:100%;height:100%;object-fit:cover;}
.project h3{font-size:24px;margin-bottom:8px;}
.project p{font-size:15px;color:#5c5e63;max-width:560px;margin-bottom:14px;}
.tags{display:flex;gap:8px;flex-wrap:wrap;}
.tag{
  font-family:'IBM Plex Mono',monospace;font-size:12px;
  background:rgba(36,38,43,0.06);padding:5px 10px;border-radius:6px;color:#54565c;
}
.project-link{font-weight:600;font-size:14.5px;color:var(--orange);white-space:nowrap;}
.project-link::after{content:" →";}

/* ===== PROCESS (dark) ===== */
.process{background:var(--anthracite);color:#fff;padding:110px 0;}
.process .section-head h2{color:#fff;}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;}
.step .num{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:700;font-size:32px;color:var(--orange);margin-bottom:16px;}
.step h3{font-size:17px;color:#fff;margin-bottom:8px;}
.step p{font-size:14px;color:var(--grey-light);}

/* ===== CONTACT ===== */
.contact{padding:130px 0;text-align:center;}
.contact h2{font-size:38px;max-width:560px;margin:0 auto 18px;}
.contact p{color:#5c5e63;margin-bottom:36px;}

/* ===== FOOTER ===== */
footer{background:var(--anthracite);color:var(--grey-light);padding:36px 0;}
.footer-row{display:flex;justify-content:space-between;align-items:center;font-size:13.5px;flex-wrap:wrap;gap:16px;}
.footer-row .logo{color:#fff;font-size:15px;}
.footer-links{display:flex;gap:24px;flex-wrap:wrap;}
.footer-links a{opacity:0.7;}
.footer-links a:hover{opacity:1;}

/* ===== PROJECT DETAIL PAGE ===== */
.project-hero{padding:64px 0 48px;}
.back-link{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--orange);margin-bottom:28px;}
.project-hero h1{font-size:44px;margin-bottom:14px;}
.project-meta{display:flex;gap:28px;flex-wrap:wrap;margin:24px 0 8px;font-size:14px;color:#5c5e63;}
.project-meta strong{display:block;font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:0.04em;color:var(--grey);text-transform:uppercase;margin-bottom:4px;}
.project-body{padding:0 0 80px;}
.project-body p{max-width:720px;font-size:16px;color:#3a3c41;margin-bottom:20px;}
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:48px;}
.gallery img{border-radius:14px;border:1px solid rgba(36,38,43,0.08);width:100%;height:auto;}
.gallery figure{margin:0;}
.gallery-placeholder{
  aspect-ratio:16/10;border-radius:14px;border:1.5px dashed rgba(36,38,43,0.18);
  display:flex;align-items:center;justify-content:center;color:var(--grey);
  font-family:'IBM Plex Mono',monospace;font-size:13px;text-align:center;padding:20px;background:rgba(36,38,43,0.03);
}
.not-found{padding:140px 0;text-align:center;}
.not-found h1{font-size:64px;color:var(--orange);margin-bottom:16px;}

/* ===== PAGES LÉGALES ===== */
.legal-body{padding:0 0 100px;}
.legal-body .wrap{max-width:760px;}
.legal-body h2{font-size:20px;margin:40px 0 12px;}
.legal-body p{font-size:15.5px;color:#3a3c41;margin-bottom:14px;line-height:1.65;}
.legal-body ul{margin:0 0 14px 20px;color:#3a3c41;font-size:15.5px;line-height:1.65;}
.legal-body li{margin-bottom:6px;}
.legal-body a{color:var(--orange);}
.legal-updated{font-size:13px;color:var(--grey);margin-top:8px;}

@media (max-width:880px){
  .nav-toggle{display:flex;}
  .nav-links{
    display:flex;flex-direction:column;align-items:flex-start;gap:4px;
    position:absolute;top:100%;left:0;right:0;
    background:var(--cream);border-bottom:1px solid rgba(36,38,43,0.08);
    padding:12px 32px 24px;max-height:0;overflow:hidden;opacity:0;
    transition:max-height .25s ease, opacity .2s ease, padding .25s ease;
  }
  .nav-links.is-open{max-height:320px;opacity:1;padding:12px 32px 24px;}
  .nav-links a{width:100%;padding:12px 0;border-bottom:1px solid rgba(36,38,43,0.06);}
  .nav-cta{border-bottom:none !important;margin-top:8px;justify-content:center;}
  .hero{padding:72px 0 64px;}
  .hero h1{font-size:34px;}
  .hero p{font-size:16.5px;}
  .services,.work,.process{padding:72px 0;}
  .section-head{margin-bottom:44px;}
  .cards{grid-template-columns:1fr;}
  .steps{grid-template-columns:repeat(2,1fr);}
  .project{grid-template-columns:1fr;text-align:left;padding:26px;}
  .project-link{justify-self:start;}
  .footer-row{flex-direction:column;gap:16px;text-align:center;}
  .gallery{grid-template-columns:1fr;}
  .project-hero h1{font-size:32px;}
}

@media (max-width:480px){
  .wrap{padding:0 20px;}
  nav{padding:16px 20px;}
  .hero h1{font-size:28px;}
  .contact h2{font-size:28px;}
  .btn{width:100%;justify-content:center;}
  .hero-ctas{flex-direction:column;}
}
