:root {
  --bg: #FAFAF7;
  --panel: #F0EFEA;
  --ink: #0A0A0A;
  --ink-soft: #666666;
  --line: rgba(10, 10, 10, 0.12);
  --radius: 2px;
  --font-head: "Space Grotesk", sans-serif;
  --font-sans: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button {
  font-family: var(--font-sans);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 72px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand--sm { font-size: 15px; }

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--ink);
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { opacity: 0.8; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--invert { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--invert:hover { opacity: 0.85; }
.btn--invert-outline { background: transparent; color: var(--bg); border-color: rgba(255,255,255,0.5); }
.btn--invert-outline:hover { border-color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); }

/* ---------- language switcher ---------- */
.lang-switch { position: relative; margin-left: auto; }
.lang-switch__trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
}
.lang-switch__trigger:hover { border-color: var(--ink); }

.lang-switch__panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 32px -20px rgba(10, 10, 10, 0.3);
  padding: 6px;
  z-index: 60;
}
.lang-switch.is-open .lang-switch__panel { display: block; }

.lang-switch__option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: none;
  border-radius: var(--radius);
  background: none;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.lang-switch__option:hover { background: var(--panel); }
.lang-switch__option.is-active { font-weight: 700; }

.lang-switch__flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
  flex: none;
  box-shadow: 0 0 0 1px var(--line);
}

/* ---------- hero ---------- */
.hero { padding: 120px 0 100px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
}
.hero__lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 28px 0 36px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--panel); }

.section__head { max-width: 560px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.section__lead { font-size: 16px; color: var(--ink-soft); margin-top: 14px; }

/* ---------- servi&ccedil;os ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--bg);
  padding: 36px 32px;
}
.service__num {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.service h3 { font-size: 19px; margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- cases ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.case {
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.case__media { aspect-ratio: 4 / 3; overflow: hidden; }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
.case__info { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.case__info h3 { font-size: 19px; }
.case__info p { color: var(--ink-soft); font-size: 14px; flex: 1; }
.case__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 4px;
}
.case__link svg { transition: transform 0.2s ease; }
.case:hover .case__link svg { transform: translateX(3px); }

.case--soon {
  border-style: dashed;
  justify-content: center;
}
.case--soon .case__info { justify-content: center; }
.case--soon h3 { color: var(--ink-soft); }

/* ---------- sobre ---------- */
.about { max-width: 640px; }
.about h2 { font-size: clamp(28px, 3.6vw, 36px); margin: 10px 0 20px; }
.about__text { font-size: 17px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- cta ---------- */
.cta { background: var(--ink); }
.cta__inner { text-align: center; }
.cta h2 { color: var(--bg); font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 36px; }
.cta__ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- contact form ---------- */
.contact-form { max-width: 480px; margin: 48px auto 0; text-align: left; }
.contact-form__or {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.55);
  margin: 0 0 24px;
}
.contact-form__row { display: flex; gap: 14px; }
.contact-form__field { flex: 1; margin-bottom: 14px; }
.contact-form__field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.55);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(250, 250, 247, 0.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--bg);
  background: rgba(250, 250, 247, 0.06);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(250, 250, 247, 0.4); }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--bg); }
.contact-form textarea { resize: vertical; min-height: 110px; margin-bottom: 14px; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__submit { width: 100%; }
.contact-form__submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-form__status { margin: 14px 0 0; font-size: 14px; text-align: center; min-height: 20px; }
.contact-form__status.is-success { color: #8FD19E; }
.contact-form__status.is-error { color: #E39090; }

@media (max-width: 560px) {
  .contact-form__row { flex-direction: column; gap: 0; }
}

/* ---------- dialog ---------- */
.dialog {
  position: fixed;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  box-shadow: 0 30px 60px -20px rgba(10, 10, 10, 0.35);
}
.dialog::backdrop {
  background: rgba(10, 10, 10, 0.55);
}
.dialog__form {
  position: relative;
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dialog__form h3 {
  font-size: 22px;
  margin-bottom: 4px;
}
.dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  border-radius: 50%;
}
.dialog__close:hover { background: var(--panel); color: var(--ink); }
.dialog__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}
.dialog__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 13px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
}
.dialog__input:focus {
  outline: none;
  border-color: var(--ink);
}
.dialog__submit {
  justify-content: center;
  margin-top: 8px;
  width: 100%;
}

/* ---------- case study page ---------- */
.breadcrumb { padding: 28px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.breadcrumb a svg { flex: none; }
.breadcrumb a:hover { color: var(--ink-soft); }

.case-hero { padding: 40px 0 64px; }
.case-hero h1 { font-size: clamp(32px, 4.8vw, 52px); margin: 10px 0 20px; max-width: 760px; }
.case-hero__lead { font-size: 18px; color: var(--ink-soft); max-width: 640px; margin-bottom: 36px; }
.case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 320px;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.case-meta dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.case-meta dd { margin: 0; font-size: 15px; font-weight: 600; }

.case-embed {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}
.case-embed__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.case-embed__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  border: none;
  display: block;
  pointer-events: none;
  transform-origin: top left;
}
.case-embed__fallback img { width: 100%; height: auto; display: block; }

.case-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.case-step { background: var(--bg); padding: 32px 28px; }
.case-step__num { display: block; font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; }
.case-step h3 { font-size: 18px; margin-bottom: 10px; }
.case-step p { color: var(--ink-soft); font-size: 14.5px; }

.case-prose { max-width: 680px; font-size: 16.5px; color: var(--ink-soft); line-height: 1.75; }
.case-prose p { margin-bottom: 18px; }
.case-prose p:last-child { margin-bottom: 0; }

.case-cta__ctas { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .case-steps { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer { padding: 32px 0; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy { font-size: 13px; color: var(--ink-soft); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .grid-3 { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }

  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__photo { max-width: 260px; order: -1; }
}

@media (max-width: 880px) {
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav.is-open { display: flex; }
}

@media (max-width: 600px) {
  .hero { padding: 90px 0 72px; }
  .section { padding: 72px 0; }
}
