:root {
  --white: #ffffff;
  --charcoal: #222222;
  --grey: #6b6b6b;
  --line: #e4e4e4;
  --steel: #bfd1e1;
  --steel-tint: #f2f6f9;
  --orange: #fb4a00;
  --blue: #3a668f;
  --heading: "Archivo", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--charcoal);
}
.nav__links a:hover { color: var(--orange); }
.nav__num {
  font-size: 0.75rem;
  color: var(--grey);
  margin-right: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.nav__cta {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  background: var(--charcoal);
  color: var(--white);
}
.nav__cta:hover { background: var(--orange); }

.hero {
  padding: clamp(5rem, 12vw, 10rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem);
  max-width: 76rem;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}

.hero__sub {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--grey);
  margin-bottom: 2.5rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 4rem; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.85rem 1.5rem;
  background: var(--charcoal);
  color: var(--white);
  transition: background 0.2s;
}
.btn:hover { background: var(--orange); }
.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--charcoal);
}
.btn--ghost:hover { background: var(--steel-tint); color: var(--charcoal); border-color: var(--charcoal); }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}
.hero__stats div { padding: 1.25rem 1rem 1.25rem 0; }
.hero__stats div + div { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.hero__stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 0.35rem;
}
.hero__stats dd {
  font-family: var(--heading);
  font-size: 1.125rem;
  font-weight: 500;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 76rem;
  margin: 0 auto;
}

.section__label {
  font-size: 0.8125rem;
  color: var(--grey);
  margin-bottom: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.section__title {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.section__intro {
  color: var(--grey);
  max-width: 34rem;
  margin-bottom: 3rem;
}

.work {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 2rem;
}

.work__item img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
}

.work__meta { padding-top: 1.25rem; }
.work__meta h3 {
  font-family: var(--heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.work__meta p { font-size: 0.9375rem; color: var(--grey); margin-bottom: 0.5rem; max-width: 32rem; }

.list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.list li { padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.list li:nth-child(3n+2), .list li:nth-child(3n+3) { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.list h3 {
  font-family: var(--heading);
  font-size: 1.0625rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.list p { font-size: 0.9375rem; color: var(--grey); }

.section--price {
  background: var(--steel-tint);
  max-width: none;
}
.price__label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  margin-bottom: 0.75rem;
}
.price__figure {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.price__note { color: var(--grey); max-width: 32rem; margin: 0 auto 2rem; }
.section--price { text-align: center; }
.section--price .section__label { margin-bottom: 2rem; }

.steps { list-style: none; border-top: 1px solid var(--line); max-width: 48rem; }
.steps li {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.steps__num {
  font-family: var(--heading);
  font-size: 1rem;
  color: var(--grey);
  min-width: 2.5rem;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-family: var(--heading); font-size: 1.125rem; font-weight: 500; margin-bottom: 0.25rem; }
.steps p { color: var(--grey); max-width: 36rem; }

.faq { border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--heading);
  font-size: 1.0625rem;
  font-weight: 500;
  padding: 1.25rem 0;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--body);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--orange);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--grey); padding-bottom: 1.25rem; max-width: 40rem; }

.section--contact { text-align: center; padding-bottom: clamp(5rem, 10vw, 8rem); }
.cta__title {
  font-family: var(--heading);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.cta__sub { color: var(--grey); margin-bottom: 2.5rem; }

.form-status {
  font-size: 0.9375rem;
  padding: 0.85rem 1.25rem;
  max-width: 34rem;
  margin: 0 auto 2rem;
}
.form-status--ok { background: var(--steel-tint); border: 1px solid var(--steel); color: var(--blue); }
.form-status--error { background: #fff2ee; border: 1px solid var(--orange); color: var(--orange); }

.signup {
  max-width: 34rem;
  margin: 0 auto;
  text-align: left;
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.signup__row { margin-bottom: 1.25rem; }
.signup__row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 0.4rem;
}
.signup__optional { text-transform: none; letter-spacing: 0; font-weight: 400; }
.signup__row input,
.signup__row textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.75rem 0.9rem;
  border-radius: 0;
  transition: border-color 0.2s;
}
.signup__row input:focus,
.signup__row textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}
.signup__row textarea { resize: vertical; }

.signup__submit { width: 100%; cursor: pointer; border: none; font-family: var(--body); }
.signup__fine {
  font-size: 0.8125rem;
  color: var(--grey);
  margin-top: 1rem;
  text-align: center;
}

.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  margin-top: clamp(3rem, 8vw, 6rem);
}

.footer__inner {
  max-width: 76rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.footer__wordmark {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.footer__dot { color: var(--orange); }

.footer__tag {
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.footer__cta {
  background: var(--orange);
  color: var(--white);
}
.footer__cta:hover { background: #e04200; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer__col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__head {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
}
.footer__col a,
.footer__col span {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}
.footer__col a:hover { color: var(--orange); }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .work { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }  .list { grid-template-columns: 1fr; }
  .list li:nth-child(3n+2), .list li:nth-child(3n+3) { border-left: none; padding-left: 0; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats div:nth-child(3) { border-left: none; padding-left: 0; }
  .hero__stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.hero__kicker, .hero__title, .hero__sub, .hero__actions, .hero__stats {
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__title { animation-delay: 0.08s; }
.hero__sub { animation-delay: 0.16s; }
.hero__actions { animation-delay: 0.24s; }
.hero__stats { animation-delay: 0.32s; }

.work__item img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s;
}
.work__item:hover img {
  transform: scale(1.02);
  border-color: var(--charcoal);
}
.work__item {
  overflow: hidden;
}
.work__meta {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn, .nav__cta {
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.btn:hover, .nav__cta:hover { transform: translateY(-2px); }
.btn:active, .nav__cta:active { transform: translateY(0); }

.nav {
  transition: box-shadow 0.3s, background 0.3s;
  background: var(--white);
}
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(0, 0, 0, 0.05); }

.faq details { transition: background 0.3s; }
.faq details:hover { background: var(--steel-tint); }
.faq summary::after { transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(180deg); }

.list li, .steps li { transition: background 0.3s; }
.list li:hover, .steps li:hover { background: var(--steel-tint); }

.price__figure { animation: rise 1s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__kicker, .hero__title, .hero__sub, .hero__actions, .hero__stats,
  .price__figure { animation: none; }
  .work__item:hover img { transform: none; }
  .btn:hover, .nav__cta:hover { transform: none; }
}
