:root {
  --bg: #0b1210;
  --bg-alt: #0e1815;
  --surface: #121d19;
  --surface-2: #172420;
  --border: #1f2f29;
  --border-strong: #2a4037;

  --text: #e6efea;
  --text-2: #b7c8bf;
  --muted: #7f958b;

  --emerald: #2ecc8a;
  --emerald-soft: rgba(46, 204, 138, 0.14);
  --emerald-deep: #12946a;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1120px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
select { font: inherit; }

:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--emerald);
  color: #06140e;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; }
.accent { color: var(--emerald); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--emerald); color: #06140e; border-color: var(--emerald); }
.btn--primary:hover { background: #3fe09b; }
.btn--ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn--sm { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--full { width: 100%; }
.btn__icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.btn--whatsapp {
  background: #25d366;
  color: #06210f;
  border-color: #25d366;
}
.btn--whatsapp:hover { background: #36e376; border-color: #36e376; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 18, 16, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-color: var(--border); background: rgba(11, 18, 16, 0.92); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
}
.nav__mark {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-soft);
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a:not(.btn) {
  font-size: .9rem; color: var(--text-2);
  position: relative; padding: .25rem 0;
  transition: color .2s;
}
.nav__links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--emerald);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:not(.btn):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: .5rem;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.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 {
  position: relative;
  min-height: auto;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 0 2.75rem;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 65% 45%, #000 20%, transparent 75%);
}
.hero::before {
  content: ''; position: absolute; pointer-events: none;
  width: 620px; height: 620px; right: -140px; top: 10%;
  background: radial-gradient(circle, rgba(46, 204, 138, .18), transparent 65%);
  filter: blur(10px);
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.25fr .75fr;
  gap: 4rem; align-items: center;
}

.eyebrow { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); margin-bottom: 1.15rem; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(46, 204, 138, .6);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 138, .55); }
  70% { box-shadow: 0 0 0 9px rgba(46, 204, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 138, 0); }
}

.hero__kicker {
  margin: 0 0 .75rem;
  color: var(--text-2);
  font-size: .95rem;
  font-weight: 500;
}
.hero__title {
  font-size: clamp(2.35rem, 5.4vw, 4.1rem);
  font-weight: 700;
  margin-bottom: 1rem;
  max-width: 18ch;
}
.hero__role {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2);
  min-height: 1.8em;
  margin-bottom: 1.35rem;
  display: flex; align-items: center; gap: .5rem;
}
.prompt { color: var(--emerald); }
.cursor {
  display: inline-block; width: 10px; height: 1.1em;
  background: var(--emerald); margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lead { max-width: 62ch; color: var(--text-2); font-size: 1.05rem; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .85rem; flex-wrap: wrap; }

.hero__photo { margin: 0; position: relative; justify-self: end; }
.photo-frame {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  background: var(--surface);
}
.photo-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, transparent 48%, rgba(11, 18, 16, .72)),
    radial-gradient(ellipse at 50% 40%, transparent 42%, rgba(11, 18, 16, .35) 100%);
  pointer-events: none;
}
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.section { padding: 4.25rem 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { margin-bottom: 2.25rem; max-width: 46rem; }
.section__label { display: block; color: var(--emerald); margin-bottom: .9rem; }
.section__head h2, .contact__text h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 600; }
.section__lead { margin: 1rem 0 0; color: var(--text-2); font-size: 1.05rem; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: border-color .3s, transform .3s var(--ease);
}
.service:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.service__index {
  color: var(--emerald);
  font-weight: 500;
}
.service h3 { font-size: 1.28rem; font-weight: 600; }
.service p { color: var(--text-2); margin: 0; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.project {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: border-color .3s, transform .3s var(--ease);
  overflow: hidden;
}
.project::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--emerald);
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.project:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.project:hover::before { transform: scaleY(1); }
.project__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; gap: 1rem; }
.project__index {
  padding: .3rem .6rem;
  background: var(--emerald-soft); color: var(--emerald);
  border-radius: 6px; font-weight: 500;
}
.project__type { color: var(--muted); }
.project h3 { font-size: 1.28rem; font-weight: 600; margin-bottom: .75rem; }
.project p { color: var(--text-2); }
.project__result {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  padding-left: .85rem;
  border-left: 2px solid var(--emerald);
}

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}
.process__step {
  padding: 1.5rem 1.35rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem; height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-weight: 500;
}
.process__step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: .55rem; }
.process__step p { margin: 0; color: var(--text-2); font-size: .95rem; }

.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; margin-bottom: 3rem; }
.about__text p { color: var(--text-2); font-size: 1.05rem; }
.about__text p:last-child { color: var(--text); font-weight: 500; }
.about__text a {
  color: var(--emerald);
  font-weight: 600;
  text-underline-offset: 3px;
}
.about__text a:hover { text-decoration: underline; }
.about__facts { display: grid; gap: .75rem; }
.fact {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius-sm);
}
.fact__value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.fact__label { color: var(--muted); }

.timeline { position: relative; max-width: 820px; }
.timeline::before {
  content: ''; position: absolute; left: 118px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border-strong);
}
.timeline__item {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 2.5rem; padding-bottom: 2.25rem; position: relative;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ''; position: absolute; left: 113px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--emerald);
}
.timeline__period { color: var(--emerald); padding-top: .2rem; text-align: right; }
.timeline__body h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .25rem; }
.timeline__org { color: var(--muted); font-size: .9rem; margin-bottom: .75rem; }
.timeline__body p:last-child { color: var(--text-2); margin: 0; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact__text p { color: var(--text-2); font-size: 1.05rem; margin: 1rem 0 1.25rem; }
.contact__promise {
  display: inline-block;
  margin: 0 0 1.75rem;
  padding: .45rem .8rem;
  color: var(--emerald);
  background: var(--emerald-soft);
  border-radius: 999px;
}
.contact__links { display: grid; gap: .6rem; }
.contact__links a {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .25s, transform .25s var(--ease);
}
.contact__links a:hover { border-color: var(--emerald); transform: translateX(4px); }
.contact__links .mono { color: var(--emerald); min-width: 88px; }

.contact__form {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid; gap: 1.1rem;
}
.form__intro {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__actions { display: grid; gap: .7rem; }
.form__legal { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.optional { color: var(--muted); font-weight: 400; font-size: .78rem; }

.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; color: var(--text-2); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237f958b' d='M1.4.3 6 4.9 10.6.3 12 1.7 6 7.7 0 1.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--emerald);
  box-shadow: 0 0 0 3px var(--emerald-soft);
}
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: #e76f51; }
.form__hint { margin: 0; min-height: 1.2em; color: var(--muted); }
.form__hint.ok { color: var(--emerald); }
.form__hint.err { color: #e76f51; }

.footer { border-top: 1px solid var(--border); padding: 1.75rem 0; }
.footer__inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .8rem;
}
.footer__inner a:hover { color: var(--emerald); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status-dot, .cursor { animation: none; }
  .btn, .project, .service, .contact__links a { transition: none; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__photo { justify-self: center; order: -1; }
  .photo-frame { width: min(300px, 70vw); }
  .hero { padding-top: calc(var(--nav-h) + 2rem); min-height: auto; }
  .hero__title { max-width: none; }
  .about, .contact { grid-template-columns: 1fr; gap: 2.5rem; }
  .projects, .services { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: .9rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav__links .btn { margin-top: 1rem; }

  .section { padding: 3.25rem 0; }
  .form__row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .timeline::before { left: 5px; }
  .timeline__item { grid-template-columns: 1fr; gap: .5rem; padding-left: 1.75rem; }
  .timeline__item::before { left: 0; }
  .timeline__period { text-align: left; }
}
