/* nashor.dev — fontes servidas pelo próprio site (nada é carregado do Google) */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- tema ---------- */
:root {
  --accent: #FF3B00;
  --on-accent: #0E0E0E;
  --bg: #F2EFE8;
  --fg: #0E0E0E;
  --muted: #56544F;
  --line: #0E0E0E;
  --soft-line: rgba(14, 14, 14, 0.16);
  --inverse-bg: #0E0E0E;
  --inverse-fg: #F2EFE8;
  --inverse-muted: #A8A59D;
  --inverse-line: #3A3936;
  --stripe-a: #1D1D1B;
  --stripe-b: #0E0E0E;
  color-scheme: light;

  --font: "Archivo", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0E;
    --fg: #F2EFE8;
    --muted: #A8A59D;
    --line: #F2EFE8;
    --soft-line: rgba(242, 239, 232, 0.16);
    --inverse-bg: #F2EFE8;
    --inverse-fg: #0E0E0E;
    --inverse-muted: #56544F;
    --inverse-line: #CFCBC2;
    --stripe-a: #E4E0D6;
    --stripe-b: #F2EFE8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E0E;
  --fg: #F2EFE8;
  --muted: #A8A59D;
  --line: #F2EFE8;
  --soft-line: rgba(242, 239, 232, 0.16);
  --inverse-bg: #F2EFE8;
  --inverse-fg: #0E0E0E;
  --inverse-muted: #56544F;
  --inverse-line: #CFCBC2;
  --stripe-a: #E4E0D6;
  --stripe-b: #F2EFE8;
  color-scheme: dark;
}
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease !important;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
section[id] { scroll-margin-top: 72px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.display { font-weight: 900; font-stretch: 125%; letter-spacing: -0.045em; line-height: 0.9; }
.sq { display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.06em; background: var(--accent); }

/* ---------- cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1.5px solid var(--line);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-block: 8px;
}
.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  min-height: 44px;
  padding-block: 12px;
  text-decoration: none;
}
.logo-word { font-size: 28px; font-weight: 900; font-stretch: 125%; letter-spacing: -0.045em; line-height: 0.8; }
.logo-dot { width: 7px; height: 7px; background: var(--accent); }
.logo-tag { font-family: var(--mono); font-size: 12px; line-height: 1; }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 0 26px; }
.nav a,
.footer-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.nav a::after,
.footer-nav a::after,
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover::after,
.footer-nav a:hover::after,
.link:hover::after { transform: scaleX(1); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.theme-toggle:hover { background: var(--fg); color: var(--bg); }
.theme-icon {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 0 28px;
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid var(--fg);
  font-size: 18px;
  font-weight: 700;
  font-stretch: 112%;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--fg); }
.btn-accent:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }
.link { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 9vw, 128px) clamp(64px, 8vw, 112px); }
.hero-title { margin: 0; font-size: clamp(44px, 11vw, 168px); }
.hero-title .indent { padding-left: 1.2em; }
.hero-actions { margin-top: clamp(40px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- títulos que sobem linha a linha ---------- */
.split .ln { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.split .ln > span { display: inline-block; transition: transform 1.1s var(--ease-out) var(--d, 0ms); }
.js .split:not(.is-in) .ln > span { transform: translateY(110%); }
.mark {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 0.08em;
  line-height: 1;
  color: var(--on-accent);
}
.mark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1) calc(var(--d, 0ms) + 450ms);
}
.js .split:not(.is-in) .mark::before { transform: scaleX(0); }

/* ---------- aparece ao rolar ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- faixa ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  padding: 18px 0;
  background: var(--accent);
  color: var(--on-accent);
  border-block: 1.5px solid var(--line);
  font-size: 26px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  animation: marquee 32s linear infinite;
}
.marquee-track i { width: 12px; height: 12px; background: var(--on-accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- seções ---------- */
.section { padding-block: clamp(80px, 10vw, 136px); }
.section-title {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(34px, 5vw, 72px);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

/* clientes */
.clients { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1.5px solid var(--line); }
.client {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.client-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  font-size: clamp(30px, 4.6vw, 64px);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: transform 0.45s var(--ease);
}
.client-name::after {
  content: "";
  width: 0.2em;
  height: 0.2em;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}
.client:hover .client-name { transform: translateX(12px); }
.client:hover .client-name::after { transform: scale(1); }
.client-meta { color: var(--muted); }

/* método */
.method { border-top: 1.5px solid var(--line); }
.steps { --p: 0; position: relative; list-style: none; margin: 64px 0 0; padding: 0; }
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
}
.steps::before { background: var(--soft-line); }
.steps::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p)); }
.step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px 48px;
  padding: 44px 0 44px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--soft-line);
}
.step:last-child { border-bottom: 0; }
.step-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  margin: 0;
  font-size: clamp(40px, 6vw, 92px);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 0.9;
  transition: color 0.4s ease;
}
.step-name::after {
  content: "";
  width: 0.2em;
  height: 0.2em;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.js .step:not(.is-active) .step-name { color: var(--muted); }
.step.is-active .step-name::after { transform: scale(1); }
.step-body p { margin: 0; max-width: 34ch; font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.step-body .step-out { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; font-size: 17px; }
.step-out .mono { color: var(--muted); }

/* trabalhos */
.work { background: var(--inverse-bg); color: var(--inverse-fg); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
  margin-top: 56px;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--inverse-fg);
}
.js .card.reveal.is-in { transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.45s var(--ease); }
.card:hover { transform: translateY(-6px); }
.card-top {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--inverse-fg);
  font-size: 12px;
}
.card-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px);
}
.card-shot span { padding: 6px 10px; background: var(--inverse-bg); color: var(--inverse-muted); font-size: 12px; }
.card-title {
  margin: 0;
  padding: 22px 16px 14px;
  border-top: 1px solid var(--inverse-fg);
  font-size: 36px;
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  line-height: 1;
}
.card-spec { margin: 0; font-size: 13px; line-height: 1.4; }
.card-spec div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--inverse-line); }
.card-spec dt { color: var(--inverse-muted); }
.card-spec dd { margin: 0; text-align: right; }

/* contato */
.contact-title { margin: 0; font-size: clamp(44px, 8.4vw, 128px); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; margin-top: 48px; }

/* rodapé */
.site-footer { border-top: 1.5px solid var(--line); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: 28px 36px;
}
.footer-legal { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }

/* política de privacidade */
.legal { max-width: 760px; padding-block: clamp(56px, 8vw, 104px); }
.legal h1 { margin: 0; font-size: clamp(40px, 7vw, 88px); }
.legal .updated { margin: 20px 0 0; color: var(--muted); }
.legal h2 {
  margin: 48px 0 10px;
  font-size: 24px;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.legal p, .legal li { font-size: 17px; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }

/* ---------- menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .js .reveal,
  .js .split .ln > span,
  .js .split .mark::before {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .client-name, .card, .btn .arrow { transition: none; }
}

/* ---------- fichas clicáveis ---------- */
a.card { color: inherit; text-decoration: none; }
.card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px;
  border-top: 1.5px solid var(--inverse-fg);
  font-size: 13px;
  transition: background-color 0.25s, color 0.25s;
}
.card:hover .card-cta { background: var(--accent); color: var(--on-accent); }
.card-cta .arrow { transition: transform 0.35s var(--ease); }
.card:hover .card-cta .arrow { transform: translateX(6px); }

/* ---------- contato ---------- */
.contact-links { display: flex; flex-wrap: wrap; gap: 0 32px; }

/* ---------- botão flutuante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 20px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1.5px solid var(--on-accent);
  text-decoration: none;
  transform: translateY(160%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.wa-float.is-visible { transform: none; visibility: visible; transition: transform 0.45s var(--ease); }
.no-js .wa-float { transform: none; visibility: visible; }
.wa-float .arrow { transition: transform 0.35s var(--ease); }
.wa-float:hover .arrow { transform: translateX(6px); }

/* ---------- página de projeto ---------- */
.project-hero { padding-block: clamp(48px, 7vw, 96px) 48px; }
.project-code { margin: 0 0 24px; color: var(--muted); }
.project-title { margin: 0; font-size: clamp(56px, 13vw, 200px); }
.project-lead { margin: 32px 0 0; max-width: 30ch; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; text-wrap: pretty; }
.project-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border: 1.5px solid var(--line);
  background: repeating-linear-gradient(135deg, var(--soft-line) 0 10px, transparent 10px 20px);
}
.project-shot span { padding: 6px 10px; background: var(--bg); color: var(--muted); font-size: 12px; }
.project-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 48px 72px;
  padding-block: clamp(56px, 8vw, 104px);
}
.project-spec { align-self: start; margin: 0; border-top: 1.5px solid var(--line); font-size: 13px; line-height: 1.4; }
.project-spec div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--soft-line); }
.project-spec dt { color: var(--muted); }
.project-spec dd { margin: 0; text-align: right; }
.project-text { display: flex; flex-direction: column; gap: 48px; }
.project-text h2 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 40px); font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1; }
.project-text p { margin: 0; max-width: 52ch; font-size: 19px; line-height: 1.55; }
.next-project {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 40px;
  border-block: 1.5px solid var(--line);
  text-decoration: none;
}
.next-project .mono { color: var(--muted); }
.next-name { font-size: clamp(36px, 6vw, 88px); font-weight: 900; font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.9; transition: transform 0.45s var(--ease); }
.next-project:hover .next-name { transform: translateX(12px); }

@media (prefers-reduced-motion: reduce) {
  .wa-float, .card-cta .arrow, .next-name { transition: none; }
}

/* ---------- topo dividido em partes ---------- */
.hero-part { display: block; }
.m-br { display: none; }
@media (max-width: 760px) { .m-br { display: inline; } }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  /* cabeçalho rola junto com a página */
  .site-header { position: relative; }
  section[id] { scroll-margin-top: 16px; }
  .header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 16px;
    padding-block: 6px 2px;
  }
  .header-right { display: contents; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 0 12px; }
  .nav a::after { bottom: 8px; }
  .theme-toggle { grid-column: 2; grid-row: 1; width: 44px; padding: 0; justify-content: center; }
  .theme-toggle [data-theme-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  /* topo ocupa a primeira tela inteira */
  .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 106px);
    min-height: calc(100svh - 106px);
    padding-block: 24px 32px;
  }
  .hero-title { font-size: 14.6vw; line-height: 1.02; }
  .hero-title .indent { padding-left: 0; }
  .hero-part:last-child { margin-top: 0.14em; }
  .hero-actions { margin-top: 40px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }

  /* faixa menor, mostrando mais de uma frase por vez */
  .marquee { padding: 14px 0; font-size: 18px; }
  .marquee-track { gap: 22px; padding-right: 22px; animation-duration: 24s; }
  .marquee-track i { width: 8px; height: 8px; }

  .contact-actions .btn { width: 100%; justify-content: space-between; }
}

/* ---------- dúvidas ---------- */
.faq { border-top: 1.5px solid var(--line); }
.faq-list { margin-top: 48px; border-top: 1.5px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5em;
  height: 0.5em;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 0.12em no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 0.12em 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; max-width: 56ch; padding: 0 0 28px; font-size: 19px; line-height: 1.55; color: var(--fg); }

/* ---------- aviso de cookies ---------- */
.consent {
  position: fixed;
  left: clamp(12px, 3vw, 32px);
  bottom: clamp(12px, 3vw, 32px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  padding: 20px;
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid var(--bg);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 15px; line-height: 1.5; }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-btn {
  min-height: 44px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--on-accent);
  border: 1.5px solid var(--accent);
  border-radius: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  font-stretch: 112%;
  cursor: pointer;
}
.consent-btn.ghost { background: transparent; color: var(--bg); border-color: var(--bg); }
.consent-btn:hover { filter: brightness(1.08); }
.consent-open .wa-float { visibility: hidden; }
@media (max-width: 760px) {
  .consent { right: 12px; max-width: none; }
}
