/* ============================================================
   Kolesnikov Advisory — main stylesheet
   Editorial dark theme · no build step · mobile-first
   ============================================================ */

:root {
  --ink-950: #0a0d12;
  --ink-900: #0e1219;
  --ink-850: #131824;
  --ink-800: #1a2130;
  --ink-700: #273043;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);
  --paper: #f4f1ea;
  --paper-dim: #c9c4b8;
  --muted: #8b94a7;
  --accent: #e8b45a;
  --accent-deep: #c78f2d;
  --good: #4ade80;
  --whatsapp: #25d366;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Archivo", -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--ink-950); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--ink-950);
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--paper-dim);
  max-width: 62ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:active { transform: scale(0.97); }

.btn--solid {
  background: var(--accent);
  color: var(--ink-950);
}
.btn--solid:hover { background: #f2c473; }

.btn--line {
  border-color: var(--line-strong);
  color: var(--paper);
  background: transparent;
}
.btn--line:hover { border-color: var(--accent); color: var(--accent); }

.btn--whatsapp {
  background: transparent;
  border-color: rgba(37, 211, 102, 0.5);
  color: var(--whatsapp);
}
.btn--whatsapp:hover { background: rgba(37, 211, 102, 0.1); border-color: var(--whatsapp); }

.btn svg { flex: none; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 13, 18, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--paper); }

.lang-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
.lang-switch a {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch a:hover { color: var(--paper); }
.lang-switch a[aria-current="true"] {
  background: var(--accent);
  color: var(--ink-950);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--paper);
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink-900);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px var(--pad); font-size: 16px; }
  .lang-switch { margin-left: 12px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(150px, 20vh, 210px) 0 clamp(70px, 10vh, 110px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(232, 180, 90, 0.13), transparent 62%),
    radial-gradient(700px 500px at -10% 110%, rgba(39, 48, 67, 0.55), transparent 60%);
  pointer-events: none;
}

.hero__brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 26px;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 78px);
  max-width: 15.5ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lead { margin: 28px 0 38px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cred-strip {
  margin-top: clamp(56px, 9vh, 90px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cred-strip span { display: inline-flex; align-items: center; gap: 10px; }
.cred-strip span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- trust strip / logos ---------- */

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--ink-900);
  padding: 28px 0 32px;
}
.trust-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.trust-strip__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 28px;
  width: 100%;
}
.trust-logos a,
.trust-logos span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  opacity: 0.78;
  transition: opacity 0.18s ease;
  text-decoration: none;
}
.trust-logos a:hover { opacity: 1; }
.trust-logos img {
  max-height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(0.15) brightness(1.05);
}
.trust-logos img.logo--light {
  filter: brightness(0) invert(0.92);
}
.trust-logos .wordmark {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--paper-dim);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ---------- sections ---------- */

.section { padding: clamp(72px, 11vh, 130px) 0; }
.section--tint { background: var(--ink-900); border-block: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head .lead { margin-top: 18px; }

/* ---------- problem ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-grid h2 { font-size: clamp(30px, 4vw, 46px); }
.problem-grid .lead { margin-top: 20px; }

.tension {
  display: grid;
  gap: 14px;
}
.tension blockquote {
  margin: 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-850);
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 24px);
  font-style: italic;
  color: var(--paper);
}
.tension__vs {
  justify-self: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- services ---------- */

.services { display: grid; gap: 14px; }

.service {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-900);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.service:hover { border-color: rgba(232, 180, 90, 0.45); background: var(--ink-850); }
@media (max-width: 640px) { .service { grid-template-columns: 1fr; gap: 14px; } }

.service__num {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}

.service h3 { font-size: clamp(22px, 2.6vw, 29px); margin-bottom: 6px; }
.service__tag {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.service p { color: var(--paper-dim); margin: 0 0 16px; max-width: 68ch; }

.service ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service ul li {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  background: var(--ink-950);
}

/* ---------- how we work ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  counter-increment: step;
  padding: 30px 28px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-950);
  position: relative;
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--accent);
}
.step h3 { font-size: 24px; margin: 12px 0 10px; }
.step p { color: var(--paper-dim); margin: 0; }

/* ---------- work / cases ---------- */

.cases { display: grid; gap: 18px; }

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-900);
  transition: border-color 0.25s ease;
}
.case:hover { border-color: rgba(232, 180, 90, 0.45); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

.case__media {
  position: relative;
  aspect-ratio: 3 / 2;
  min-height: 0;
  background: var(--ink-800);
  overflow: hidden;
}
.case__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case__body { padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; align-items: flex-start; }

.case__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.case__tags li {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(232, 180, 90, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
}

.case h3 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.case p { color: var(--paper-dim); margin: 0 0 12px; }
.case__value { font-size: 15px; }
.case__value strong { color: var(--paper); }

.case__facts {
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.case__facts li {
  font-size: 13.5px;
  color: var(--muted);
}
.case__facts strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--accent);
  margin-right: 5px;
}

.case__links { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.case__links .btn { padding: 11px 22px; font-size: 14px; }

/* ---------- brazil ---------- */

.brazil { position: relative; overflow: hidden; }
.brazil::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 420px at 100% 0%, rgba(232, 180, 90, 0.1), transparent 60%);
  pointer-events: none;
}

.brazil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
@media (max-width: 860px) { .brazil-grid { grid-template-columns: 1fr; } }

.brazil-grid h2 { font-size: clamp(30px, 4vw, 46px); }
.brazil-grid .lead { margin-top: 20px; }

.corridor {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.corridor span { color: var(--accent); }

.corridor--hero {
  margin: 22px 0 34px;
  font-size: 13px;
  padding: 10px 20px;
}

.roles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.roles li {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--ink-900);
  font-size: 16px;
  color: var(--paper-dim);
}
.roles li strong { color: var(--paper); display: block; margin-bottom: 2px; }

/* ---------- founder ---------- */

.founder-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
}
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } }

.founder-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.founder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(10, 13, 18, 0.55));
}

.founder-body h2 { font-size: clamp(30px, 4vw, 46px); }
.founder-body .role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 0 22px;
}
.founder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.founder-meta li {
  font-size: 13.5px;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--ink-900);
}
.founder-meta strong { color: var(--accent); font-weight: 600; }

.founder-langs {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--paper-dim);
}
.founder-langs strong { color: var(--paper); }
.founder-body p { color: var(--paper-dim); max-width: 62ch; }

.founder-quote {
  margin: 30px 0 0;
  padding: 26px 30px;
  border-left: 3px solid var(--accent);
  background: var(--ink-900);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--paper);
}

/* ---------- fit ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 860px) { .fit-grid { grid-template-columns: 1fr; } }

.fit-card {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.fit-card--yes { background: var(--ink-900); border-color: rgba(74, 222, 128, 0.25); }
.fit-card--no { background: var(--ink-950); }

.fit-card h3 { font-size: clamp(21px, 2.4vw, 26px); margin-bottom: 22px; }

.fit-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.fit-card li {
  display: flex;
  gap: 13px;
  color: var(--paper-dim);
  font-size: 16px;
}
.fit-card li::before { flex: none; font-weight: 700; }
.fit-card--yes li::before { content: "✓"; color: var(--good); }
.fit-card--no li::before { content: "✕"; color: var(--muted); }

/* ---------- contact ---------- */

.contact { text-align: center; }
.contact .kicker { justify-content: center; }
.contact .kicker::before { display: none; }
.contact h2 { font-size: clamp(36px, 5.4vw, 62px); }
.contact .lead { margin: 24px auto 40px; }

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  text-align: left;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) { .contact-form .row { grid-template-columns: 1fr; } }

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper-dim);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-form .btn { justify-self: center; margin-top: 10px; min-width: 260px; }
.contact-form .btn:disabled { opacity: 0.65; cursor: wait; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 8px 0 0;
  text-align: center;
  font-size: 15px;
  min-height: 1.4em;
}
.form-status--ok { color: var(--good); }
.form-status--err { color: #f87171; }

.contact-alt {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: var(--ink-900);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-footer .logo { font-size: 17px; }
.site-footer p {
  margin: 6px 0 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer a.domain {
  font-size: 14px;
  color: var(--paper-dim);
  text-decoration: none;
}
.site-footer a.domain:hover { color: var(--accent); }

/* ---------- reveal animation ---------- */

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

/* ---------- floating whatsapp ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
