/* ==========================================================================
   Z Coffee Connection · landing page
   Conceito "Do problema à colheita": curvas de nível do campo + linhas de dados.
   Cores da marca: marrom #684230, verdes #8AA660 / #809B5A, quase preto #141917, branco.
   Regras de contraste: botões verdes usam texto quase preto; marrom nunca é cor de texto
   sobre fundo escuro (só superfície/decoração); branco nunca é texto sobre os verdes.
   ========================================================================== */

/* ---------- Fontes auto-hospedadas (SIL Open Font License) ---------- */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/league-spartan-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --zc-brown: #684230;
  --zc-brown-900: #4A2F22;
  --zc-sand: #E9E1D8;
  --zc-green: #8AA660;
  --zc-green-2: #809B5A;
  --zc-green-700: #4E6236;
  --zc-green-200: #C9D8B4;
  --zc-ink: #141917;
  --zc-ink-800: #232A26;
  --zc-ink-600: #3F4742;
  --zc-white: #FFFFFF;
  --zc-cream: #F4F1EA;

  --font-display: 'League Spartan', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 4.5rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 60px -28px rgb(20 25 23 / .55);
}

/* ---------- Temas por seção ---------- */
.theme-dark, .theme-raised { --fg: var(--zc-white); --muted: rgb(255 255 255 / .84); --accent: var(--zc-green); --heading: var(--zc-white); --focus: var(--zc-white); }
.theme-dark { --bg: var(--zc-ink); }
.theme-raised { --bg: var(--zc-ink-800); }
.theme-brown { --bg: var(--zc-brown); --fg: var(--zc-white); --muted: var(--zc-sand); --accent: var(--zc-green-200); --heading: var(--zc-white); --focus: var(--zc-white); }
.theme-light, .theme-cream { --fg: var(--zc-ink); --muted: var(--zc-ink-600); --accent: var(--zc-green-700); --heading: var(--zc-brown); --focus: var(--zc-brown); }
.theme-light { --bg: var(--zc-white); --line: #E2DED5; --surface: var(--zc-cream); }
.theme-cream { --bg: var(--zc-cream); --line: #DDD7CB; --surface: var(--zc-white); }
.theme-dark, .theme-raised, .theme-brown, .theme-light, .theme-cream { background-color: var(--bg); color: var(--fg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .3vw + .95rem, 1.125rem);
  line-height: 1.65;
  color: var(--zc-white);
  background: var(--zc-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.4vw + 1rem, 3.75rem); font-weight: 700; letter-spacing: -.015em; color: var(--heading); }
h3 { font-size: clamp(1.25rem, .6vw + 1.1rem, 1.5rem); font-weight: 700; }
p { margin: 0 0 1em; max-width: 65ch; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus, var(--zc-brown)); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.nowrap { white-space: nowrap; }
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 200;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--zc-white); color: var(--zc-ink); font-weight: 700; text-decoration: none;
  transform: translateY(-250%); transition: transform .2s;
}
.skip-link:focus { transform: none; outline: 3px solid var(--zc-green); outline-offset: 2px; }

.eyebrow {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}

/* ---------- Botões ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem; border: 2px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
}
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: none; }
.btn:disabled { cursor: progress; transform: none; }
.btn__icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--zc-green); --btn-fg: var(--zc-ink); box-shadow: 0 12px 30px -14px rgb(138 166 96 / .8); }
.btn--primary:hover { --btn-bg: var(--zc-green-2); }
.btn--ghost { --btn-fg: var(--fg); border-color: rgb(255 255 255 / .55); }
.btn--ghost:hover { border-color: var(--zc-white); background: rgb(255 255 255 / .08); }
.btn--light { --btn-bg: var(--zc-white); --btn-fg: var(--zc-brown); box-shadow: 0 16px 40px -18px rgb(20 25 23 / .7); }
.btn--light:hover { --btn-bg: var(--zc-cream); }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.site-header {
  --focus: var(--zc-white);
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--zc-white);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgb(20 25 23 / .94);
  box-shadow: 0 1px 0 rgb(255 255 255 / .08), 0 12px 30px -20px rgb(0 0 0 / .8);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgb(20 25 23 / .82); backdrop-filter: blur(12px) saturate(1.2); }
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 44px;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
}
.brand__logo { width: 34px; }
@media (max-width: 399.98px) {
  .brand { gap: .5rem; font-size: 1rem; }
  .brand__logo { width: 30px; }
}
.site-nav__list { list-style: none; }
.site-nav__list a { text-decoration: none; font-weight: 600; }

.menu-toggle {
  display: none; align-items: center; gap: .6rem; min-height: 44px; padding: .5rem 1rem;
  border: 2px solid rgb(255 255 255 / .4); border-radius: 999px; background: transparent; color: inherit;
  font: 600 .95rem/1 var(--font-body); cursor: pointer;
}
@media (max-width: 899.98px) { html.js .menu-toggle { display: inline-flex; } }
.menu-toggle__bars, .menu-toggle__bars span, .menu-toggle__bars span::before, .menu-toggle__bars span::after { display: block; width: 18px; height: 2px; border-radius: 2px; }
.menu-toggle__bars { position: relative; height: 14px; }
.menu-toggle__bars span { position: absolute; top: 6px; background: currentColor; transition: background-color .2s; }
.menu-toggle__bars span::before, .menu-toggle__bars span::after { content: ""; position: absolute; left: 0; background: currentColor; transition: transform .25s var(--ease-out); }
.menu-toggle__bars span::before { transform: translateY(-6px); }
.menu-toggle__bars span::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span::after { transform: rotate(-45deg); }

@media (max-width: 899.98px) {
  html.js .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; display: none;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    padding: 1rem var(--gutter) 2rem; background: var(--zc-ink);
    border-top: 1px solid rgb(255 255 255 / .08); box-shadow: 0 30px 40px -20px rgb(0 0 0 / .8);
  }
  html.js .site-header.is-open .site-nav { display: block; }
  html.js .site-nav__list { margin-bottom: 1.25rem; }
  html.js .site-nav__list a { display: block; padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid rgb(255 255 255 / .08); }
  html.js .site-nav__cta { width: 100%; }
  /* Sem JS: o menu aparece como lista simples abaixo da marca */
  html.no-js .site-header { height: auto; }
  html.no-js .site-header__inner { flex-wrap: wrap; padding-block: .75rem; }
  html.no-js .site-nav__list { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
  html.no-js .site-nav__list a { display: inline-block; padding: .6rem 0; }
  html.no-js .site-nav__cta { display: none; }
}
@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: 2rem; }
  .site-nav__list { display: flex; gap: 1.75rem; }
  .site-nav__list a { position: relative; display: inline-block; padding: .65rem 0; font-size: .95rem; }
  .site-nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .35rem; height: 2px; border-radius: 2px;
    background: var(--zc-green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
  }
  .site-nav__list a:hover::after, .site-nav__list a:focus-visible::after { transform: scaleX(1); }
}
html.no-js .site-header { position: absolute; } /* sem JS não há fundo ao rolar: o cabeçalho fica só sobre o hero */

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 6rem;
  background: var(--zc-ink) url('../assets/img/curvas-de-nivel.svg') center / cover no-repeat;
}
.hero.has-canvas { background-image: none; }
.hero__canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
html.no-js .hero__canvas { display: none; }
.hero__z {
  position: absolute; z-index: -1; top: 50%; right: 5%; width: min(36vw, 520px); height: auto;
  transform: translateY(-50%);
  fill: rgb(138 166 96 / .05); stroke: rgb(138 166 96 / .5); stroke-width: 2;
}
.hero.has-canvas .hero__z { display: none; }
.hero__inner { position: relative; width: min(1200px, 100% - 2 * var(--gutter)); }
.hero__content { max-width: 42rem; }
.hero__logo img { width: clamp(72px, 7vw, 108px); margin-bottom: 1.5rem; filter: drop-shadow(0 12px 28px rgb(0 0 0 / .45)); }
.hero__title {
  font-size: clamp(2.6rem, 4.6vw + 1rem, 5.6rem); font-weight: 800; line-height: .96; letter-spacing: -.028em;
  margin-bottom: 1.5rem;
}
.hero__title .hl { color: var(--zc-green); }
.hero .eyebrow { color: var(--zc-green-200); } /* texto pequeno sobre as linhas do canvas: verde claro mantém AA */
.hero__lead { font-size: clamp(1.05rem, .55vw + .95rem, 1.3rem); color: var(--muted); max-width: 36em; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2.25rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; padding: .45rem 1.1rem .45rem .5rem;
  border: 1px solid rgb(255 255 255 / .16); border-radius: 999px; background: rgb(20 25 23 / .55);
  color: var(--zc-green-200); font-size: .875rem; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.hero__badge svg {
  flex: none; width: 30px; height: 30px; padding: 5px; border-radius: 50%;
  background: var(--zc-green); fill: none; stroke: var(--zc-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.hero__badge:hover span { text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 1024px) {
  .hero__content { max-width: min(56%, 46rem); }
}
@media (max-width: 1023.98px) {
  .hero__z { right: 50%; width: min(78vw, 420px); transform: translate(50%, -50%); opacity: .55; }
}
@media (max-width: 899.98px) {
  html.no-js .hero { padding-top: 9.5rem; }
}

/* entrada do hero (tipografia cinética) */
html.js .hero__title .w { display: inline-block; opacity: 0; transform: translateY(.42em) rotate(1.5deg); animation: word-rise .9s var(--ease-out) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
html.js .hero__logo, html.js .hero .eyebrow, html.js .hero__lead, html.js .hero__actions, html.js .hero__badge { animation: fade-up .9s var(--ease-out) both; }
html.js .hero .eyebrow { animation-delay: 80ms; }
html.js .hero__lead { animation-delay: .75s; }
html.js .hero__actions { animation-delay: .9s; }
html.js .hero__badge { animation-delay: 1.05s; }
@keyframes word-rise { to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.motion-toggle {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 1.5rem;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgb(255 255 255 / .35); border-radius: 50%; background: rgb(20 25 23 / .7); color: var(--zc-white);
  cursor: pointer; transition: border-color .2s, background-color .2s;
}
.motion-toggle:hover { border-color: var(--zc-white); }
.motion-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.motion-toggle__play { display: none; }
.motion-toggle__play path { fill: currentColor; stroke-width: 1.5; }
.motion-toggle[aria-pressed="true"] .motion-toggle__pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-toggle__play { display: block; }
html.no-js .motion-toggle { display: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 42px; border: 2px solid rgb(255 255 255 / .35); border-radius: 999px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--zc-green); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 767.98px), (max-height: 640px) { .scroll-cue { display: none; } }

/* ---------- Seções ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 7vw + 1.5rem, 8.5rem); }
.section--compact { padding-block: clamp(3rem, 4vw + 1.5rem, 5rem); }
.section[id], .hero { scroll-margin-top: var(--header-h); }
.section-head { max-width: 48rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-bottom: 1.1rem; }
.section-head__lead { font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem); color: var(--muted); }

/* foto com tratamento de marca */
.photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--zc-ink-800); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: .85rem; bottom: .85rem; padding: .3rem .75rem; border-radius: 999px;
  background: rgb(20 25 23 / .8); color: var(--zc-white); font-size: .75rem; font-weight: 600; letter-spacing: .02em;
}

/* ---------- 01 · Por que Z ---------- */
.z-story { overflow: hidden; }
.z-story__z {
  position: absolute; top: 50%; left: -14%; width: min(96vw, 900px); height: auto;
  transform: translateY(-50%); pointer-events: none;
  fill: rgb(20 25 23 / .07); stroke: rgb(255 255 255 / .15); stroke-width: 2; stroke-linejoin: round;
}
@media (min-width: 900px) { .z-story__z { left: -6%; width: min(62vw, 880px); } }
.z-story__z path { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
html.js .z-story__z path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-out) .2s; }
html.js .z-story__z.is-visible path { stroke-dashoffset: 0; }
.z-story__grid { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.z-story h2 { font-size: clamp(2.7rem, 5vw + 1rem, 5.4rem); line-height: .95; margin-bottom: 1.5rem; }
.z-story__text > p:not(.eyebrow):not(.kinetic) { font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem); }
.kinetic {
  margin-top: 2rem; max-width: 24ch;
  font-family: var(--font-display); font-size: clamp(1.55rem, 1.6vw + 1rem, 2.4rem); font-weight: 700; line-height: 1.15;
}
.kinetic__words { display: grid; height: 1.3em; overflow: hidden; color: var(--zc-green-200); }
.kinetic__words > span {
  grid-area: 1 / 1; line-height: 1.3; opacity: 0; transform: translateY(100%);
  text-decoration: underline; text-decoration-color: var(--zc-green); text-decoration-thickness: .1em; text-underline-offset: .18em;
  animation: word-cycle 9s var(--ease-out) infinite;
}
.kinetic__words > span:nth-child(2) { animation-delay: 3s; }
.kinetic__words > span:nth-child(3) { animation-delay: 6s; }
@keyframes word-cycle {
  0% { opacity: 0; transform: translateY(100%); }
  5%, 30% { opacity: 1; transform: none; }
  36%, 100% { opacity: 0; transform: translateY(-100%); }
}
.z-story__photo { aspect-ratio: 4 / 3; }
.z-story__photo img { object-position: 72% 50%; }
@media (min-width: 900px) {
  .z-story__grid { grid-template-columns: 1.05fr .95fr; }
  .z-story__photo { aspect-ratio: 4 / 5; }
}

/* ---------- Faixa de competências (marquee) ---------- */
.marquee { overflow: hidden; padding-block: 1.05rem; background: var(--zc-green); color: var(--zc-ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex-shrink: 0; list-style: none; }
.marquee__list li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.1vw, 2rem); font-weight: 700; line-height: 1.1; text-transform: uppercase;
}
.marquee__list li::after { content: ""; width: .5em; height: .5em; margin-inline: 1.4rem; background: currentColor; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 02 · Nossa história (linha do tempo) ---------- */
.timeline-wrap { position: relative; --node: 36px; --stem-x: 18px; --gap-x: 1.25rem; }
.timeline__stem {
  position: absolute; top: .5rem; bottom: .5rem; left: calc(var(--stem-x) - 1.5px); width: 3px; overflow: hidden;
  border-radius: 3px; background: rgb(255 255 255 / .12);
}
.timeline__stem-fill { position: absolute; inset: 0; background: linear-gradient(var(--zc-green), var(--zc-green-2)); transform-origin: top; }
html.js .timeline__stem-fill { transform: scaleY(var(--progress, 0)); transition: transform .25s linear; }
.timeline { position: relative; display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding-left: calc(var(--stem-x) * 2 + var(--gap-x)); list-style: none; }
.timeline__item { position: relative; }
.timeline__node {
  position: absolute; top: 1.35rem; left: calc(-1 * var(--stem-x) - var(--gap-x) - var(--node) / 2);
  display: grid; place-items: center; width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--zc-green); border: 2px solid var(--zc-green); color: var(--zc-ink);
  transition: background-color .4s, box-shadow .4s, color .4s;
}
.timeline__node svg { width: 18px; height: 18px; fill: rgb(20 25 23 / .12); stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html.js .timeline__item:not(.is-passed) .timeline__node { background: var(--zc-ink); color: var(--zc-green); }
.timeline__item.is-active .timeline__node { box-shadow: 0 0 0 6px rgb(138 166 96 / .18), 0 0 26px rgb(138 166 96 / .6); }
.timeline__card {
  position: relative; padding: clamp(1.35rem, 2.5vw, 2rem); border-radius: var(--radius);
  background: var(--zc-ink-800); border: 1px solid rgb(255 255 255 / .08);
  transition: border-color .4s;
}
.timeline__item.is-active .timeline__card { border-color: rgb(138 166 96 / .5); }
.timeline__title { font-size: clamp(1.4rem, 1vw + 1.1rem, 1.85rem); margin-bottom: .85rem; }
.timeline__when {
  display: block; margin-bottom: .55rem;
  font-family: var(--font-body); font-size: .78rem; font-weight: 600; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase;
  color: var(--zc-green);
}
.timeline__card > p { color: var(--muted); }
.timeline__photo {
  margin: calc(-1 * clamp(1.35rem, 2.5vw, 2rem)) calc(-1 * clamp(1.35rem, 2.5vw, 2rem)) 1.5rem;
  aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; box-shadow: none;
}
.tag {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1rem; padding: .25rem .75rem;
  border: 1px solid rgb(233 225 216 / .35); border-radius: 999px;
  color: var(--zc-sand); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.tag::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .7; }

/* card do prêmio: superfície marrom, textos claros */
.timeline__item--award .timeline__card { --muted: var(--zc-sand); --focus: var(--zc-white); background: var(--zc-brown); border-color: transparent; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.timeline__item--award.is-active .timeline__card { border-color: rgb(201 216 180 / .55); }
.timeline__item--award .timeline__when { color: var(--zc-green-200); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.5rem 0; list-style: none; }
.stat { display: grid; align-content: start; gap: .3rem; padding: 1rem; border-radius: var(--radius-sm); background: rgb(20 25 23 / .32); }
.stat__value { font-family: var(--font-display); font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2.25rem); font-weight: 800; line-height: 1; color: var(--zc-white); font-variant-numeric: tabular-nums; }
.stat__label { font-size: .85rem; line-height: 1.35; color: var(--zc-sand); }
.details { margin: 0 0 1rem; border-block: 1px solid rgb(255 255 255 / .2); }
.details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 48px; padding: .75rem 0;
  font-weight: 700; cursor: pointer; list-style: none;
}
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: ""; flex: none; width: .55rem; height: .55rem; margin-right: .35rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform .3s var(--ease-out); }
.details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.details p { padding-bottom: 1rem; color: var(--zc-sand); }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; }
.link-arrow svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 479.98px) {
  .stats { grid-template-columns: 1fr; gap: .5rem; }
  .stat { grid-template-columns: auto 1fr; align-items: baseline; gap: .75rem; padding: .75rem 1rem; }
  .stat__value { font-size: 1.6rem; white-space: nowrap; }
}
/* desktop: zigue-zague em volta do caule; cada card começa na metade do anterior (grade com faixas compartilhadas) */
@media (min-width: 900px) {
  .timeline-wrap { --stem-x: 50%; --half-gap: clamp(2.5rem, 4vw, 3.75rem); }
  .timeline__stem { left: calc(50% - 1.5px); }
  .timeline { grid-template-columns: 1fr 1fr; column-gap: calc(var(--half-gap) * 2); row-gap: 1.25rem; padding-left: 0; }
  .timeline__item { align-self: start; }
  .timeline__item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
  .timeline__item:nth-child(2) { grid-column: 2; grid-row: 2 / span 2; }
  .timeline__item:nth-child(3) { grid-column: 1; grid-row: 3 / span 2; }
  .timeline__item:nth-child(4) { grid-column: 2; grid-row: 4 / span 2; }
  .timeline__item:nth-child(odd) .timeline__node { left: auto; right: calc(-1 * var(--half-gap) - var(--node) / 2); }
  .timeline__item:nth-child(even) .timeline__node { left: calc(-1 * var(--half-gap) - var(--node) / 2); }
}

/* ---------- 03 · O que fazemos agora (fluxo) ---------- */
.flow { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.flow__art { overflow: hidden; border-radius: var(--radius-lg); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .9); }
.flow__svg { width: 100%; height: auto; }
.flow__svg--v { display: none; }
@media (max-width: 767.98px) {
  .flow__art { max-width: 460px; margin-inline: auto; border-radius: 28px; }
  .flow__svg--h { display: none; }
  .flow__svg--v { display: block; }
}
.flow__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.flow__caption a { color: var(--zc-green-200); font-weight: 600; }

html.js .flow-path { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--flow, 0)); transition: stroke-dashoffset .3s linear; }
html.js .flow-station, html.js .flow-gate__mark { transform-box: fill-box; transform-origin: center; transition: transform .7s var(--ease-out), opacity .5s, filter .7s; }
html.js .flow-station { transform: scale(.82); opacity: .45; }
html.js .flow-station.is-on { transform: none; opacity: 1; filter: drop-shadow(0 0 18px rgb(138 166 96 / .55)); }
html.js .flow-gate__mark { transform: scale(.6) rotate(-45deg); opacity: .4; }
html.js .flow-gate__mark.is-on { transform: none; opacity: 1; }
html.js .flow-label, html.js .flow-gate text { opacity: .5; transition: opacity .6s; }
html.js .flow-label.is-on, html.js .flow-gate.is-on text { opacity: 1; }

.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; margin-bottom: 1.25rem; list-style: none; }
.flow-step { position: relative; padding: 1.5rem; border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius); background: var(--zc-ink); transition: border-color .5s, box-shadow .5s; }
html.js .flow-step.is-on { border-color: rgb(138 166 96 / .6); box-shadow: inset 0 3px 0 var(--zc-green); }
.flow-step__num { display: block; margin-bottom: .75rem; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--zc-green); }
.flow-step h3 { margin-bottom: .55rem; }
.flow-step__meta { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--zc-green); white-space: nowrap; }
.flow-step p { font-size: .98rem; color: var(--muted); }

.callout {
  --focus: var(--zc-white);
  display: flex; align-items: flex-start; gap: 1rem; max-width: none; padding: 1.25rem 1.5rem;
  border-radius: var(--radius); background: var(--zc-brown); color: var(--zc-white);
  font-size: clamp(1rem, .3vw + .95rem, 1.1rem); font-weight: 600; line-height: 1.5;
}
.callout svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--zc-green-200); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 04 · Competências ---------- */
.skills__layout { display: grid; gap: 2rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.skills__layout .section-head { margin-bottom: 0; }
.skills__photo { aspect-ratio: 16 / 10; }
@media (min-width: 1024px) { .skills__layout { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; list-style: none; }
@media (min-width: 640px) { .cards--skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards--skills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; overflow: hidden; padding: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgb(138 166 96 / .22), transparent 70%);
  transition: opacity .35s;
}
.card > * { position: relative; }
.card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.25rem; border-radius: 16px; background: var(--zc-green-200); color: var(--zc-green-700); }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: .55rem; color: var(--heading); }
.card p { font-size: .98rem; color: var(--muted); }
.card--team .card__icon { background: var(--zc-brown); color: var(--zc-white); }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgb(78 98 54 / .4); }
  .card:hover::before { opacity: 1; }
}

/* ---------- 05 · Equipe ---------- */
.team .cards { margin-bottom: 1.25rem; }

/* ---------- 06 · Agende uma conversa ---------- */
/* sobre a foto, o destaque usa verde-200: contraste AA garantido mesmo sobre o pixel mais claro */
/* sem overflow:hidden aqui: ele viraria o contêiner de rolagem e quebraria o sticky da coluna de texto */
.cta { --accent: var(--zc-green-200); isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(20 25 23 / .95) 0%, rgb(20 25 23 / .9) 50%, rgb(20 25 23 / .86) 100%); }
.cta__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.cta__text h2 { margin-bottom: 1.25rem; }
.cta__text > p:not(.eyebrow) { font-size: clamp(1.05rem, .4vw + 1rem, 1.2rem); color: var(--muted); }
.cta__steps { display: grid; gap: .9rem; margin-top: 2rem; list-style: none; counter-reset: passo; }
.cta__steps li { display: grid; grid-template-columns: 2.25rem 1fr; gap: .9rem; align-items: start; color: var(--muted); counter-increment: passo; }
.cta__steps li::before {
  content: counter(passo); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--zc-green); color: var(--zc-ink); font-family: var(--font-display); font-weight: 700; line-height: 1;
}
@media (min-width: 1024px) {
  .cta__grid { grid-template-columns: .9fr 1.1fr; }
  .cta__text { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.form-card { padding: clamp(1.15rem, 3vw, 2.5rem); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -36px rgb(0 0 0 / .8); }
.form-card .btn--block { padding-inline: 1rem; }
.form__title { margin-bottom: .3rem; font-family: var(--font-display); font-size: clamp(1.5rem, 1vw + 1.2rem, 1.9rem); font-weight: 700; line-height: 1.1; color: var(--zc-brown); }
.form__note { margin-bottom: 1.5rem; font-size: .875rem; color: var(--muted); }
.form__honey { display: none; }
.form__row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) {
  .form__row { grid-template-columns: 1fr 1fr; }
  /* rótulos de 1 ou 2 linhas: os campos lado a lado ficam alinhados */
  @supports (grid-template-rows: subgrid) {
    .form__row { grid-template-rows: repeat(4, auto); }
    .form__row > .field { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
    .form__row > .field > label { align-self: end; }
  }
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; margin-bottom: .4rem; font-size: .95rem; font-weight: 600; line-height: 1.35; color: var(--zc-ink); }
.req { color: var(--zc-brown); font-weight: 800; }
.opt { font-size: .88em; font-weight: 500; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: .75rem .9rem;
  border: 1.5px solid #59605B; border-radius: var(--radius-sm); background-color: var(--zc-white); color: var(--zc-ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141917' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem;
}
.field input::placeholder, .field textarea::placeholder { color: #6A716C; opacity: 1; }
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: var(--zc-ink); }
.field :is(input, select, textarea):focus-visible { outline: 3px solid var(--zc-brown); outline-offset: 2px; border-color: var(--zc-brown); }
.field :is(input, select, textarea)[aria-invalid="true"] { border-width: 2px; border-color: var(--zc-brown); box-shadow: 0 0 0 3px rgb(104 66 48 / .14); }
.field__hint { margin: .4rem 0 0; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.field__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.field__counter { flex: none; margin-top: .4rem; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.field__error { display: flex; align-items: flex-start; gap: .45rem; margin: .45rem 0 0; font-size: .875rem; font-weight: 600; line-height: 1.4; color: var(--zc-brown); }
.field__error:empty { display: none; }
.field__error::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem; margin-top: .1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23684230'/%3E%3Cpath d='M12 6.5v7' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.3' r='1.6' fill='%23fff'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; align-items: start; }
.field--check input { width: 1.5rem; height: 1.5rem; margin: .05rem 0 0; accent-color: var(--zc-green-700); cursor: pointer; }
.field--check label { margin: 0; font-weight: 500; cursor: pointer; }
.field--check .field__hint, .field--check .field__error { grid-column: 2; }
.form__submit { margin-top: .5rem; }
.spinner { display: none; width: 1.1rem; height: 1.1rem; border: 2.5px solid rgb(20 25 23 / .25); border-top-color: var(--zc-ink); border-radius: 50%; animation: spin .8s linear infinite; }
.form.is-busy .spinner { display: inline-block; }
.form.is-busy .form__submit { opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 1rem; border-radius: var(--radius-sm); font-weight: 500; line-height: 1.5; }
.form-status:empty { margin-top: 0; }
.form-status.is-success { padding: 1rem 1.25rem; background: var(--zc-green-200); color: var(--zc-ink); }
.form-status.is-error { padding: 1rem 1.25rem; background: var(--zc-sand); color: var(--zc-brown-900); }
.form-status a { color: inherit; font-weight: 700; }
.form-status:focus-visible { outline: 3px solid var(--zc-brown); outline-offset: 3px; }

/* ---------- WhatsApp ---------- */
.whatsapp { background-image: url('../assets/img/curvas-de-nivel.svg'); background-size: cover; background-position: center; }
.whatsapp__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; }
.whatsapp h2 { margin-bottom: .5rem; font-size: clamp(1.9rem, 2.4vw + 1rem, 3rem); }
.whatsapp p { color: var(--muted); font-size: clamp(1.05rem, .3vw + 1rem, 1.2rem); }
.whatsapp strong { color: var(--zc-white); }
.btn__wa { width: 1.5rem; height: 1.5rem; flex: none; fill: currentColor; }

/* ---------- Rodapé ---------- */
.site-footer { padding: clamp(3rem, 6vw, 5rem) 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer__brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer__brand img { width: 52px; }
.footer__brand p { color: var(--muted); }
.footer__name { margin-bottom: .35rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.2; color: var(--zc-white) !important; }
.footer__title { margin-bottom: .75rem; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--zc-green); }
.site-footer ul { display: grid; gap: .15rem; list-style: none; }
.site-footer li a { display: inline-block; padding: .4rem 0; text-decoration: none; }
.site-footer li a:hover { color: var(--zc-green-200); text-decoration: underline; }
.footer__bottom { display: grid; gap: .5rem; padding-top: 1.5rem; font-size: .8rem; line-height: 1.6; color: rgb(255 255 255 / .74); }
.footer__bottom p { max-width: none; margin: 0; }
.footer__credits a { color: var(--zc-green-200); }

/* ---------- Granulação sutil ---------- */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Revelação ao rolar (só com JS) ---------- */
html.js [data-reveal]:not(.z-story__z) {
  opacity: 0; translate: 0 26px;
  transition: opacity .75s var(--ease-out) var(--delay, 0ms), translate .75s var(--ease-out) var(--delay, 0ms),
              transform .35s var(--ease-out), box-shadow .35s, border-color .4s;
}
html.js [data-reveal].is-visible { opacity: 1; translate: none; }

/* ---------- Animações pausadas pelo botão do hero (WCAG 2.2.2; classe posta pelo js/main.js) ---------- */
html.is-motion-paused .marquee__track { animation-play-state: paused; }
html.is-motion-paused .scroll-cue span { animation: none; }
html.is-motion-paused .kinetic__words > span { animation: none; opacity: 1; transform: none; }
html.is-motion-paused .kinetic__words > span:not(:first-child) { display: none; }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  html.js [data-reveal]:not(.z-story__z) { opacity: 1; translate: none; }
  html.js .hero__title .w, html.js .hero__logo, html.js .hero .eyebrow, html.js .hero__lead, html.js .hero__actions, html.js .hero__badge { animation: none; opacity: 1; transform: none; }
  html.js .z-story__z path { stroke-dashoffset: 0; }
  .kinetic__words > span { animation: none !important; opacity: 1; transform: none; }
  .kinetic__words > span:not(:first-child) { display: none; }
  .marquee__track { width: auto; animation: none; justify-content: center; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: .4rem; }
  .marquee__list + .marquee__list { display: none; }
  .scroll-cue span { animation: none; }
  .motion-toggle { display: none; }
  .card:hover { transform: none; }
}

/* ---------- Impressão ---------- */
@media print {
  .site-header, .hero__canvas, .motion-toggle, .scroll-cue, .marquee, .cta__bg, body::after { display: none !important; }
  .hero { min-height: auto; padding-top: 2rem; }
  html.js [data-reveal] { opacity: 1 !important; translate: none !important; }
  html.js .flow-path { stroke-dashoffset: 0 !important; }
}
