/* ============================================================
   Terra Nova — estúdio de design e tecnologia
   Landing page · vanilla CSS
   Structure mirrors a studio-site pattern: header · statement ·
   client marquee · 5 full-width work blocks · capabilities ·
   pull quote · CTA · footer. Content and visuals are original.
   ============================================================ */

:root {
  --paper: #fbfaf8;
  --ink: #14140f;
  --muted: #57554e;
  --line: #e6e4dd;

  --pad: clamp(20px, 5vw, 72px);
  --maxw: 1440px;
  --section-y: clamp(84px, 12vw, 184px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Familjen Grotesk", "Helvetica Neue", system-ui, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; padding: 0; }

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

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--paper); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
html { scrollbar-color: var(--line) var(--paper); scrollbar-width: thin; }

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

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 6px; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- reusable bits ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 0.72em 1.3em;
  font: inherit; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 0.95em 1.7em; font-size: clamp(1rem, 0.92rem + 0.5vw, 1.15rem); }

.text-cta {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
  display: inline; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease), opacity 0.2s var(--ease);
}
.text-cta:hover { background-size: 0% 1px; opacity: 0.7; }

.link-underline {
  display: inline-block;
  background: none; border: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer;
  text-decoration: none; font-weight: 500;
  padding: 0 0 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease), opacity 0.2s var(--ease);
}
.link-underline:hover { background-size: 0% 1px; opacity: 0.62; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: clamp(12px, 2vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - clamp(24px, 6vw, 48px));
  max-width: var(--maxw);
  z-index: 100;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -14px rgba(20, 20, 15, 0.18);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--ink) 94%, transparent);
  border-color: var(--ink);
  box-shadow: 0 10px 34px -12px rgba(20, 20, 15, 0.32);
}
.header.is-scrolled .wordmark,
.header.is-scrolled .nav__list a,
.header.is-scrolled .menu-btn {
  color: var(--paper);
}
.header.is-scrolled .nav__list a {
  background-image: linear-gradient(var(--paper), var(--paper));
}
.header.is-scrolled .nav__cta {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.header.is-scrolled .nav__cta:hover {
  background: transparent;
  color: var(--paper);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: clamp(12px, 1.6vw, 18px);
  padding-inline: clamp(18px, 2.6vw, 28px);
}

.wordmark {
  font-size: clamp(1.05rem, 0.92rem + 0.55vw, 1.3rem);
  font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(22px, 3.2vw, 44px); }
.nav__list { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav__list a {
  text-decoration: none; font-weight: 500; letter-spacing: -0.01em;
  padding-block: 4px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}
.nav__list a:hover { background-size: 100% 1.5px; }
.nav__cta { padding: 0.6em 1.15em; }
.nav__cta:hover { transform: none; }

.menu-btn {
  display: none;
  background: none; border: 0; font: inherit; font-weight: 500;
  color: inherit; cursor: pointer; padding: 6px 2px;
  letter-spacing: -0.01em;
}

/* ============================================================
   Hero / statement
   ============================================================ */
.hero {
  display: flex; align-items: center;
  min-height: 78vh; min-height: 78svh;
  padding-top: 164px;
  padding-bottom: 80px;
}
.hero__title {
  font-weight: 500;
  font-size: clamp(2.05rem, 0.9rem + 5.7vw, 4.9rem);
  line-height: 1.055;
  letter-spacing: -0.038em;
  max-width: 25ch;
  text-wrap: balance;
}
.hero__title .line { display: block; }
.hero__title .line + .line { margin-top: 0.5em; }

.js [data-animate] .line {
  opacity: 0;
  transform: translateY(0.32em);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js [data-animate] .line:nth-child(2) { transition-delay: 0.09s; }
[data-animate].is-ready .line { opacity: 1; transform: none; }

/* ============================================================
   Client marquee (single greyscale row, no label, no rules)
   ============================================================ */
.marquee {
  overflow: hidden;
  padding-block: clamp(8px, 2vw, 20px);
  margin-bottom: var(--section-y);
}
.marquee__track {
  display: flex; width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex-shrink: 0; }
.marquee__group span {
  display: inline-flex; align-items: center;
  padding-inline: clamp(20px, 3.2vw, 52px);
  font-size: clamp(1.15rem, 0.85rem + 1.5vw, 2rem);
  font-weight: 500; letter-spacing: -0.025em;
  color: var(--muted); white-space: nowrap;
}
.marquee__group span::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--line);
  margin-left: clamp(20px, 3.2vw, 52px);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Featured work — 5 full-width blocks, staggered media
   ============================================================ */
.work { display: flex; flex-direction: column; gap: clamp(72px, 10vw, 148px); }

.proj { padding-inline: clamp(12px, 3vw, 40px); }
.proj__link { display: block; text-decoration: none; }

.proj__meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px;
  margin-bottom: clamp(16px, 2vw, 26px);
}
.proj__name {
  font-size: clamp(1.4rem, 1rem + 1.7vw, 2.15rem);
  font-weight: 500; letter-spacing: -0.03em;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease);
}
.tags {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.tags li { display: inline-flex; align-items: center; }
.tags li:not(:last-child)::after {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; margin-left: 16px; opacity: 0.5;
}

.proj__media {
  display: grid;
  gap: clamp(8px, 1.2vw, 16px);
  overflow: hidden;
}
.proj__media--a { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, clamp(150px, 21vw, 330px)); grid-template-areas: "x x x" "y y z"; }
.proj__media--b { grid-template-columns: repeat(3, 1fr); grid-template-rows: clamp(230px, 34vw, 520px); grid-template-areas: "x x y"; }
.proj__media--c { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, clamp(140px, 19vw, 290px)); grid-template-areas: "x y y" "x z z"; }
.proj__media--d { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, clamp(150px, 19vw, 290px)); grid-template-areas: "x y z" "w w w"; }
.proj__media--e { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, clamp(140px, 18vw, 300px)); grid-template-areas: "x x x ." "x x x y"; }

.asset--x { grid-area: x; }
.asset--y { grid-area: y; }
.asset--z { grid-area: z; }
.asset--w { grid-area: w; }

.asset {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.55), rgba(20, 20, 15, 0.07)),
    rgb(var(--tint, 236 235 230));
  display: flex; align-items: flex-end;
  padding: clamp(14px, 2vw, 26px);
  color: color-mix(in srgb, var(--ink) 30%, transparent);
  font-size: clamp(1.3rem, 0.9rem + 1.8vw, 2.3rem);
  font-weight: 500; letter-spacing: -0.02em;
  transition: filter 0.4s var(--ease), transform 0.5s var(--ease);
}
.asset::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  mix-blend-mode: multiply; opacity: 0.35; pointer-events: none;
}
.proj__link:hover .asset { filter: brightness(0.97); transform: scale(1.008); }
.proj__link:hover .proj__name {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
}

.work__all { margin-top: clamp(8px, 2vw, 24px); }

/* ============================================================
   Capabilities
   ============================================================ */
.caps {
  border-top: 1px solid var(--line);
  padding-block: 64px;
}
.caps__head { margin-bottom: clamp(48px, 7vw, 104px); max-width: 52ch; }
.caps__head h2 {
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.4rem);
  font-weight: 500; letter-spacing: -0.032em; line-height: 1.08;
}
.caps__head p { margin-top: 16px; color: var(--muted); max-width: 44ch; }

.caps__cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}
.caps__col h3 {
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  padding-bottom: 14px; margin-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}
.caps__col li {
  padding-block: 7px;
  color: var(--muted); letter-spacing: -0.005em;
}

/* ============================================================
   Testimonial
   ============================================================ */
.quote {
  position: relative;
  isolation: isolate;
  min-height: 300px;
  background: #000;
  margin: clamp(24px, 4vw, 64px) var(--pad);
  border-radius: clamp(16px, 2vw, 28px);
  padding-block: 64px;
  overflow: hidden;
}
.quote blockquote { max-width: 60ch; }
.quote p {
  color: #fbfaf8;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 1.9rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.4;
}
.quote cite {
  display: block; margin-top: clamp(18px, 3vw, 30px);
  font-style: normal; font-weight: 500; font-size: 0.95rem;
  color: color-mix(in srgb, #7e5436 62%, #fbfaf8);
  letter-spacing: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  border-top: 1px solid var(--line);
  padding-block: 64px;
}
.faq__head { margin-bottom: clamp(40px, 6vw, 80px); }
.faq__head h2 {
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.4rem);
  font-weight: 500; letter-spacing: -0.032em; line-height: 1.08;
}
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-block: clamp(18px, 2.4vw, 28px);
  font-size: clamp(1.05rem, 0.94rem + 0.6vw, 1.3rem);
  font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 400; font-size: 1.25em; line-height: 1;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p {
  padding-bottom: clamp(20px, 3vw, 32px);
  color: var(--muted); max-width: 64ch;
}
.faq details > p a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat;
  text-decoration: none;
}

/* ============================================================
   Closing CTA
   ============================================================ */
.cta {
  background: var(--ink); color: var(--paper);
  margin: clamp(24px, 4vw, 64px) var(--pad);
  border-radius: clamp(16px, 2vw, 28px);
  padding-block: 120px;
  overflow: hidden;
}
.cta .shell { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(28px, 4vw, 48px); }
.cta h2 {
  font-size: clamp(1.9rem, 1.05rem + 3.8vw, 3.7rem);
  font-weight: 500; letter-spacing: -0.032em; line-height: 1.1;
  max-width: 20ch; text-wrap: balance;
}
.cta .btn {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.cta .btn:hover { background: transparent; color: var(--paper); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink); color: var(--paper);
  padding-top: clamp(64px, 9vw, 128px);
  position: relative; overflow: hidden;
}
.footer ::selection { background: var(--paper); color: var(--ink); }
.footer__cols {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.footer__col h2 {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 48%, transparent);
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col li {
  display: flex; flex-direction: column; gap: 3px;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}
.footer__col li > span {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--paper) 46%, transparent);
}
.footer__col a {
  text-decoration: none; width: fit-content;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.footer__col a:hover { border-bottom-color: color-mix(in srgb, var(--paper) 55%, transparent); }
.footer__links a { color: var(--paper); }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  padding-block: 26px;
  padding-inline: var(--pad);
  border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--paper); }

/* ============================================================
   Mobile overlay menu
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--paper);
  padding: clamp(92px, 20vw, 140px) var(--pad) 44px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.45s var(--ease);
  pointer-events: none;
}
body.menu-open, body.modal-open { overflow: hidden; }
body.menu-open .overlay { clip-path: inset(0 0 0 0); pointer-events: auto; }
.overlay nav { display: flex; flex-direction: column; }
.overlay li a {
  display: block; padding: 16px 0;
  font-size: clamp(1.8rem, 1rem + 5vw, 2.6rem);
  font-weight: 500; letter-spacing: -0.035em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.overlay .btn { margin-top: 30px; align-self: flex-start; }

/* ============================================================
   Motion — scroll reveal
   ============================================================ */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================
   AI chat widget
   ============================================================ */
.chat-widget {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 150;
}

.chat-widget__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(20, 20, 15, 0.4);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.chat-widget__btn:hover { transform: translateY(-2px); }
.chat-widget__icon--close { display: none; }
.chat-widget.is-open .chat-widget__icon--open { display: none; }
.chat-widget.is-open .chat-widget__icon--close { display: block; }

.chat-panel {
  position: fixed;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 28px);
  bottom: calc(58px + 14px + clamp(16px, 3vw, 28px));
  width: min(360px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(20, 20, 15, 0.35);
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.chat-panel[hidden] { display: flex; opacity: 0; transform: translateY(12px) scale(0.97); pointer-events: none; }
.chat-widget.is-open .chat-panel { opacity: 1; transform: none; pointer-events: auto; }

.chat-panel__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.chat-panel__title { display: flex; align-items: flex-start; gap: 10px; }
.chat-panel__title h2 { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.01em; }
.chat-panel__title p { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.chat-panel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3f9b5c; margin-top: 6px; flex-shrink: 0;
}
.chat-panel__close {
  background: none; border: 0; padding: 4px; margin: -4px;
  color: var(--muted); cursor: pointer; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.chat-panel__close:hover { color: var(--ink); background: var(--line); }

.chat-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
}
.chat-msg { display: flex; }
.chat-msg p {
  max-width: 84%;
  padding: 0.6em 0.85em;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.chat-msg--bot { justify-content: flex-start; }
.chat-msg--bot p { background: var(--line); border-bottom-left-radius: 4px; }
.chat-msg--user { justify-content: flex-end; }
.chat-msg--user p { background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.chat-msg--typing p { display: inline-flex; align-items: center; padding: 0.45em 0.65em; background: var(--line); border-bottom-left-radius: 4px; }
.chat-msg--typing .loader-svg { width: 22px; height: 22px; color: var(--muted); --dur: 1s; }

.chat-panel__form {
  display: flex; align-items: center; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.chat-panel__form input {
  flex: 1 1 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6em 1em;
  font: inherit; font-size: 0.88rem;
  background: var(--paper); color: var(--ink);
}
.chat-panel__form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.chat-panel__send {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: 0; cursor: pointer;
  transition: opacity 0.2s var(--ease);
}
.chat-panel__send:hover { opacity: 0.85; }

/* ============================================================
   Standalone maintenance page (manutencao.html)
   ============================================================ */
.maint {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
}
.maint__inner { max-width: 62ch; }
.maint__mark {
  display: inline-block; margin-bottom: clamp(32px, 6vw, 64px);
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none;
}
.maint__title {
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.2rem);
  font-weight: 500; letter-spacing: -0.032em; line-height: 1.1;
  text-wrap: balance;
}
.maint__text {
  margin-top: 18px; color: var(--muted);
  font-size: clamp(1.05rem, 0.97rem + 0.3vw, 1.2rem);
  max-width: 46ch;
}
.maint__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(32px, 5vw, 48px);
}

/* ============================================================
   Contact modal (Fale com a gente)
   ============================================================ */
.contact-modal {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  padding: var(--pad);
}
.contact-modal[hidden] { display: none; }

.contact-modal__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.contact-modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 2 * var(--pad));
  overflow-y: auto;
  background: var(--paper); color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 30px 70px -20px rgba(20, 20, 15, 0.4);
  padding: clamp(22px, 4vw, 32px);
}

.contact-modal__topbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: clamp(24px, 4vw, 34px);
}
.contact-modal__track {
  flex: 1 1 auto;
  height: 4px; background: var(--line); border-radius: 999px;
  overflow: hidden;
}
.contact-modal__bar {
  height: 100%; width: 14.2857%; background: var(--ink); border-radius: inherit;
  transition: width 0.35s var(--ease);
}
.contact-modal__close {
  background: none; border: 0; padding: 7px; margin: -7px;
  color: var(--muted); cursor: pointer; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-modal__close:hover { color: var(--ink); background: var(--line); }

.contact-modal__form { display: flex; flex-direction: column; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 0.95rem;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.65em 0.85em;
  resize: vertical;
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}

.qstep { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.qstep.is-active { display: block; }
.qstep legend { padding: 0; margin-bottom: 24px; width: 100%; }
.qstep__question {
  display: block; font-size: clamp(1.3rem, 1.05rem + 1vw, 1.6rem);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.25;
  text-wrap: balance;
}
.qstep__other { margin-top: 14px; }

.qoptions { display: flex; flex-direction: column; gap: 10px; }
.qoption {
  display: flex; align-items: center; gap: 12px;
  padding: 0.8em 1em;
  border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.qoption:hover { border-color: var(--muted); }
.qoption.is-checked { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.qoption input { accent-color: var(--ink); width: 17px; height: 17px; flex-shrink: 0; }
.qoption span { font-size: 0.92rem; line-height: 1.35; }

.qcontact-grid { display: flex; flex-direction: column; gap: 16px; }

.contact-modal__nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 28px;
}
.contact-modal__nav [hidden] { display: none; }

.contact-modal__success h2, .contact-modal__error h2 {
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.4rem);
  font-weight: 500; letter-spacing: -0.02em; margin-bottom: 10px;
}
.contact-modal__success p, .contact-modal__error p { color: var(--muted); margin-bottom: 22px; max-width: 46ch; }

/* ============================================================
   Loading animation (page entry + chat thinking)
   ============================================================ */
.loader-svg { --dur: 1.2s; display: block; }
.loader-svg rect { fill: color-mix(in srgb, currentColor 20%, transparent); }
.loader-svg rect.on { fill: currentColor; }
@keyframes f11110000 { 0% { opacity: 1; } 49.99% { opacity: 1; } 50.00% { opacity: 0; } 100% { opacity: 0; } }
@keyframes f01110000 { 0% { opacity: 0; } 12.49% { opacity: 0; } 12.50% { opacity: 1; } 49.99% { opacity: 1; } 50.00% { opacity: 0; } 100% { opacity: 0; } }
@keyframes f00111000 { 0% { opacity: 0; } 24.99% { opacity: 0; } 25.00% { opacity: 1; } 62.49% { opacity: 1; } 62.50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes f00011100 { 0% { opacity: 0; } 37.49% { opacity: 0; } 37.50% { opacity: 1; } 74.99% { opacity: 1; } 75.00% { opacity: 0; } 100% { opacity: 0; } }
@keyframes f00011110 { 0% { opacity: 0; } 37.49% { opacity: 0; } 37.50% { opacity: 1; } 87.49% { opacity: 1; } 87.50% { opacity: 0; } 100% { opacity: 0; } }

.page-loader {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  opacity: 1; visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.js .page-loader { display: flex; }
.page-loader .loader-svg { width: clamp(48px, 8vw, 64px); height: clamp(48px, 8vw, 64px); --dur: 1.1s; }
.page-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
html.is-loading { overflow: hidden; }

/* ============================================================
   Responsive
   ============================================================ */
@media (min-width: 821px) {
  .overlay { display: none; }
}

@media (max-width: 480px) {
  .chat-widget { right: 14px; bottom: 14px; }
  .chat-panel { top: 14px; right: 14px; bottom: calc(58px + 14px + 14px); width: calc(100vw - 28px); }
}

@media (max-width: 1040px) {
  .caps__cols { grid-template-columns: 1fr; gap: 0; }
  .caps__col { padding-top: 34px; margin-top: 34px; border-top: 1px solid var(--line); }
  .caps__col:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 760px) {
  .proj__media { display: flex; flex-direction: column; }
  .asset { aspect-ratio: 16 / 10; padding: 18px; }
  .footer__cols { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
}
