:root {
  --bg: #0d1311;
  --bg-alt: #121a17;
  --surface: #18221f;
  --surface-2: #1f2b27;
  --line: rgba(242, 238, 230, 0.09);
  --text: #f2eee6;
  --muted: #a9b2ad;
  --gold: #c9963e;
  --gold-hi: #ddac55;
  --green: #1f3a34;
  --radius: 14px;
  --max: 1200px;
  --head: "Archivo", system-ui, sans-serif;
  --body: "Work Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #12100b; }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ghost { border-color: rgba(242,238,230,.3); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(13,19,17,.88); backdrop-filter: blur(12px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 42px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; font-family: var(--head); font-weight: 600; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .25s; }
.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); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.05); animation: heroZoom 18s ease-out forwards;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,19,17,.96) 0%, rgba(13,19,17,.82) 45%, rgba(13,19,17,.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-content { position: relative; max-width: var(--max); }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; max-width: 12ch; margin-bottom: .4em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #cfd5d1; max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.5rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem 2rem; color: var(--muted); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 3rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, border-color .3s;
}
.service:hover { transform: translateY(-4px); border-color: rgba(201,150,62,.5); }
.service-img { aspect-ratio: 16/10; background-size: cover; background-position: center; filter: saturate(.9); transition: transform .5s; }
.service:hover .service-img { transform: scale(1.04); }
.service-body { padding: 1.5rem 1.5rem 1.75rem; position: relative; background: var(--surface); }
.service-body::before { content: ""; position: absolute; left: 1.5rem; top: 0; width: 36px; height: 3px; background: var(--gold); }
.service-body p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Featured */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.featured-media { position: relative; padding-bottom: 12%; }
.featured-media img { border-radius: var(--radius); object-fit: cover; }
.f-main { width: 82%; aspect-ratio: 4/3; }
.f-side { position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3/4; border: 6px solid var(--bg-alt); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: .2em; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2312100b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Before / After */
.ba {
  position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 4/3; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); user-select: none; --pos: 50%;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: var(--gold); transform: translateX(-50%); pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%,-50%);
  border-radius: 50%; background: var(--gold); box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; transform: translateY(-50%);
}
.ba-handle span::before { left: 6px; border-right-color: #12100b; }
.ba-handle span::after { right: 6px; border-left-color: #12100b; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label {
  position: absolute; top: 1rem; padding: .35rem .8rem; border-radius: 999px; font-family: var(--head);
  font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  background: rgba(13,19,17,.8); backdrop-filter: blur(6px); pointer-events: none;
}
.ba-label-l { left: 1rem; }
.ba-label-r { right: 1rem; color: var(--gold); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter {
  font-family: var(--head); font-weight: 600; font-size: .88rem; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem;
  cursor: pointer; transition: all .2s;
}
.filter:hover { color: var(--text); border-color: rgba(242,238,230,.3); }
.filter.active { background: var(--gold); border-color: var(--gold); color: #12100b; }
.gallery { columns: 4 240px; column-gap: 1rem; }
.gallery figure {
  margin: 0 0 1rem; break-inside: avoid; border-radius: 10px; overflow: hidden; cursor: zoom-in;
  position: relative; background: var(--surface);
}
.gallery figure.hide { display: none; }
.gallery img { width: 100%; height: auto; transition: transform .5s, opacity .3s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--gold);
  transition: box-shadow .25s; pointer-events: none;
}
.gallery figure:hover::after { box-shadow: inset 0 0 0 3px var(--gold); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(6,9,8,.95); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 100%); max-height: 88vh; border-radius: 8px; object-fit: contain; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(242,238,230,.08); color: var(--text); border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: #12100b; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { padding: 2rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.step-num { font-family: var(--head); font-weight: 800; font-size: 2.6rem; color: transparent; -webkit-text-stroke: 1.5px var(--gold); display: block; margin-bottom: 1rem; line-height: 1; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.values div { border-top: 2px solid var(--gold); padding-top: 1rem; }
.values strong { display: block; font-family: var(--head); margin-bottom: .25rem; }
.values span { color: var(--muted); font-size: .9rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--surface-2); fill: var(--gold); flex: none; }
.contact-list .label { display: block; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.contact-list a:hover { color: var(--gold); }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: .85rem 1rem; width: 100%; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,150,62,.2);
}
.contact-form .invalid { border-color: #d46a5a; }
.form-note { margin: 0; font-size: .9rem; color: var(--gold); min-height: 1.4em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 3rem 0; background: #0a0f0d; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-logo { height: 38px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--muted); font-size: .95rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact { width: 100%; margin: .5rem 0 0; color: var(--muted); font-size: .95rem; }
.footer-contact a { color: var(--gold); font-weight: 600; }
.copy { width: 100%; margin: 1rem 0 0; color: #6f7a75; font-size: .85rem; }

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

/* Responsive */
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13,19,17,.98); border-bottom: 1px solid var(--line); padding: .5rem 24px 1.5rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 1rem; }
  .nav.menu-open { background: rgba(13,19,17,.98); }
  .featured, .about, .contact { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media img { aspect-ratio: 4/3; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand img { height: 34px; }
  .services, .steps, .values { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: .6rem; }
  .gallery figure { margin-bottom: .6rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .lb-nav { top: auto; bottom: 20px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
